chore(init): initialize automated dashboard & wiki git repository for parastoo

This commit is contained in:
parastoo 2026-11-08 04:51:29 +00:00
commit 9efca46a0a
168 changed files with 578113 additions and 0 deletions

30
.gitignore vendored Normal file
View file

@ -0,0 +1,30 @@
# Ignore large archives, media, databases, caches & backups
.curator_backups/
spillover/
node_modules/
.venv/
venv/
__pycache__/
*.pyc
*.tar.gz
*.tgz
*.zip
*.rar
*.7z
*.mp4
*.mov
*.mkv
*.avi
*.mp3
*.wav
*.db
*.sqlite
*.sqlite3
*.sqlite-wal
*.sqlite-shm
*.dump
*.bak*
*.log
.env
.env.*
!.env.example

View file

@ -0,0 +1,8 @@
FROM python:3.12-slim
WORKDIR /app
COPY sync_server.py /app/sync_server.py
COPY team_hours_lib.py /app/team_hours_lib.py
COPY composio/ /root/.composio/
RUN chmod -R a+rX /root/.composio && chmod 755 /root/.composio/composio
EXPOSE 8095
CMD ["python3", "-u", "sync_server.py"]

View file

@ -0,0 +1,14 @@
import sys, json
sys.path.insert(0, "/app")
import sync_server as m
# Columns in Parastoo|Graphic:
# A=روز, B=Task, C=Owner, D=Start Date, E=Est, F=Actual, G=Status, H=EstStat, I=Week, J=Note
# We append after row 766 (or update 767 if empty/push down)
r = m.composio_execute("GOOGLESHEETS_VALUES_GET", {
"spreadsheet_id": m.SHEET_ID, "range": "'Parastoo|Graphic'!A766:N775"})
vals = (r or {}).get("values") or []
print("Current rows 766-775:")
for i, row in enumerate(vals):
print(f"{766+i}: {row}")

View file

@ -0,0 +1,16 @@
import sys, json
sys.path.insert(0, "/app")
import sync_server as m
new_rows = [
["", "نوشتن تقویم محتوایی دو هفته آینده (اینستا، لینکدین، تلگرام و بله)", "", "", "2", "", "NotDone", "-", "", "تمرکز اصلی امروز: چینش تقویم محتوایی ۲ هفته جلوتر"],
["", "بررسی ظرفیت و تقسیم تسک‌های تیم (غزل و مبینا) با سقف ماهانه ۱۵۰ ساعت", "", "", "1.5", "", "NotDone", "-", "", "تقسیم وظایف محتوا و گرافیک با کنترل سقف حداکثر ۱۵۰ ساعت در ماه برای هر نیرو"]
]
r = m.composio_execute("GOOGLESHEETS_VALUES_UPDATE", {
"spreadsheet_id": m.SHEET_ID,
"range": "'Parastoo|Graphic'!A790:J791",
"value_input_option": "USER_ENTERED",
"values": new_rows
})
print("Update result:", json.dumps(r, ensure_ascii=False))

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,17 @@
import sys, json
sys.path.insert(0, "/app")
import sync_server as m
rows = [
["", "شیت محتوایی آرت — استوری‌ها و ریلزها", "", "", "1", "3", "Done", "OverEstimate", "", "استوری‌ها و ریلزها تکمیل شد"],
["", "هماهنگی با آیسا", "", "", "0.25", "0.25", "Done", "-", "", "هماهنگی‌ها و سوالات کامل پرسیده شد"],
["", "ایده‌های استوری اکیپا آرت", "", "", "0.25", "0.25", "NotDone", "-", "", "ایده‌ها نوشته شد، بدون سناریو — یادآوری فردا برای نوشتن سناریو"],
]
r = m.composio_execute("GOOGLESHEETS_VALUES_UPDATE", {
"spreadsheet_id": m.SHEET_ID,
"range": "'Parastoo|Graphic'!A757:J759",
"value_input_option": "USER_ENTERED",
"values": rows
})
print("Update result:", json.dumps(r, ensure_ascii=False)[:300])

View file

@ -0,0 +1,15 @@
import sys, json
sys.path.insert(0, "/app")
import sync_server as m
SHEET = m.SHEET_ID
# Read rows 730-770 to see the structure around today's entries
r = m.composio_execute("GOOGLESHEETS_VALUES_GET", {
"spreadsheet_id": SHEET,
"range": "'Parastoo|Graphic'!A730:N770"
})
vals = (r or {}).get("values") or []
for i, row in enumerate(vals):
idx = 730 + i
cells = [str(c)[:45] for c in row] if row else [""]
print(f" {idx}: {json.dumps(cells, ensure_ascii=False)}")

View file

@ -0,0 +1,54 @@
import sys, json
sys.path.insert(0, "/app")
import sync_server as m
SHEET = m.SHEET_ID
def read_tab(tab, upto=1100, page=100):
rows = []
start = 1
while start <= upto:
end = min(start + page - 1, upto)
rng = f"'{tab}'!A{start}:N{end}"
try:
r = m.composio_execute("GOOGLESHEETS_VALUES_GET", {
"spreadsheet_id": SHEET, "range": rng})
except Exception as e:
print(" ERR", rng, str(e)[:110]); break
vals = (r or {}).get("values") or []
if not vals:
if rows: break
rows.extend(vals)
if len(vals) < (end - start + 1):
break
start = end + 1
return rows
out = {}
for tab in ["Parastoo|Graphic", "ghazal-contetnt", "Mobina"]:
print("\n" + "="*60)
print("TAB:", tab)
rows = read_tab(tab)
print(" total rows fetched:", len(rows))
# header row (first row with a recognizable column name)
hdr = None
for i, r in enumerate(rows[:8]):
joined = " ".join(str(c) for c in r)
if "Task" in joined or "Owner" in joined or "Estimate" in joined:
hdr = (i, r); break
print(" header row index:", hdr[0] if hdr else None)
if hdr:
print(" header:", json.dumps(hdr[1], ensure_ascii=False))
# last non-empty row
last = None
for i, r in enumerate(rows):
if any(str(c).strip() for c in r):
last = (i+1, r)
print(" last non-empty row:", last[0] if last else None)
if last:
print(" ->", json.dumps([str(c)[:34] for c in last[1]], ensure_ascii=False))
out[tab] = {"rows": len(rows), "header": hdr[1] if hdr else None,
"last": last[1] if last else None, "last_idx": last[0] if last else None}
json.dump(out, open("/tmp/audit3_out.json","w"), ensure_ascii=False, indent=1)
print("\nsaved")

View file

@ -0,0 +1,8 @@
import sys, json
sys.path.insert(0, "/app")
import sync_server as m
r = m.composio_execute("GOOGLESHEETS_VALUES_GET", {
"spreadsheet_id": m.SHEET_ID, "range": "'Parastoo|Graphic'!A771:L775"})
for i, row in enumerate((r or {}).get("values") or []):
print(f"{771+i}: {json.dumps([str(c)[:30] for c in row], ensure_ascii=False)}")
print("last_data_row:", m.sheet_last_data_row())

View file

@ -0,0 +1,11 @@
import sys, json
sys.path.insert(0, "/app")
import sync_server as m
r = m.composio_execute("GOOGLESHEETS_VALUES_GET", {
"spreadsheet_id": m.SHEET_ID, "range": "'Parastoo|Graphic'!A760:N773"})
vals = (r or {}).get("values") or []
for i, row in enumerate(vals):
row_num = 760 + i
print(f"Row {row_num}: {row}")

View file

@ -0,0 +1,18 @@
import sys, json
sys.path.insert(0, "/app")
import sync_server as m
# check with FORMULA render option to see what formulas exist
r = m.composio_execute("GOOGLESHEETS_VALUES_GET", {
"spreadsheet_id": m.SHEET_ID,
"range": "'Parastoo|Graphic'!A744:N750",
"value_render_option": "FORMULA"
})
rows = (r or {}).get("values", [])
cols = ["A","B","C","D","E","F","G","H","I","J","K","L","M","N"]
for i, row in enumerate(rows):
row_num = 744 + i
for c_idx, c_letter in enumerate(cols):
val = str(row[c_idx]) if c_idx < len(row) else ""
if val.startswith("="):
print(f"Row {row_num} Col {c_letter}: {val}")

View file

@ -0,0 +1,7 @@
import sys
sys.path.insert(0, "/app")
import sync_server as m
r = m.composio_execute("GOOGLESHEETS_VALUES_GET", {
"spreadsheet_id": m.SHEET_ID, "range": "'Parastoo|Graphic'!G770:L790"})
for i, row in enumerate((r or {}).get("values") or []):
print(f"{770+i}: {row}")

View file

@ -0,0 +1,17 @@
import sys, json
sys.path.insert(0, "/app")
import sync_server as m
# read header rows (1-3) full width A:N
r = m.composio_execute("GOOGLESHEETS_VALUES_GET", {
"spreadsheet_id": m.SHEET_ID, "range": "'Parastoo|Graphic'!A1:N3"})
print("=== HEADERS (rows 1-3) ===")
for i, row in enumerate((r or {}).get("values") or []):
print(f"row {i+1}: {json.dumps([str(c)[:20] for c in row], ensure_ascii=False)}")
# read the rows I just updated (754-759) A:N
r = m.composio_execute("GOOGLESHEETS_VALUES_GET", {
"spreadsheet_id": m.SHEET_ID, "range": "'Parastoo|Graphic'!A754:N759"})
print("\n=== UPDATED ROWS (754-759) A:N ===")
for i, row in enumerate((r or {}).get("values") or []):
print(f"row {754+i}: {json.dumps([str(c)[:25] for c in row], ensure_ascii=False)}")

View file

@ -0,0 +1,9 @@
import sys, json
sys.path.insert(0, "/app")
import sync_server as m
# read the exact rows 754-758 full width to see everything
r = m.composio_execute("GOOGLESHEETS_VALUES_GET", {
"spreadsheet_id": m.SHEET_ID, "range": "'Parastoo|Graphic'!A752:N760"})
for i, row in enumerate((r or {}).get("values") or []):
print(f"{752+i}: {json.dumps([str(c)[:28] for c in row], ensure_ascii=False)}")

View file

@ -0,0 +1,10 @@
import sys, json
sys.path.insert(0, "/app")
import sync_server as m
# read rows 740-753 untouched historical rows
r = m.composio_execute("GOOGLESHEETS_VALUES_GET", {
"spreadsheet_id": m.SHEET_ID, "range": "'Parastoo|Graphic'!A740:N753"})
print("=== UNTOUCHED ROWS 740-753 ===")
for i, row in enumerate((r or {}).get("values") or []):
print(f"row {740+i}: {json.dumps([str(c)[:25] for c in row], ensure_ascii=False)}")

View file

@ -0,0 +1,9 @@
import sys, json
sys.path.insert(0, "/app")
import sync_server as m
r = m.composio_execute("GOOGLESHEETS_VALUES_GET", {
"spreadsheet_id": m.SHEET_ID, "range": "'Parastoo|Graphic'!A770:L790"})
for i, row in enumerate((r or {}).get("values") or []):
if any(str(c).strip() for c in row):
print(f"{770+i}: {json.dumps([str(c)[:25] for c in row], ensure_ascii=False)}")
print("last_data_row:", m.sheet_last_data_row())

View file

@ -0,0 +1,9 @@
import sys, json
sys.path.insert(0, "/app")
import sync_server as m
r = m.composio_execute("GOOGLESHEETS_VALUES_GET", {
"spreadsheet_id": m.SHEET_ID, "range": "'Parastoo|Graphic'!A770:L780"})
for i, row in enumerate((r or {}).get("values") or []):
if any(str(c).strip() for c in row):
print(f"{770+i}: {json.dumps([str(c)[:30] for c in row], ensure_ascii=False)}")
print("last_data_row:", m.sheet_last_data_row())

View file

@ -0,0 +1,12 @@
import sys
sys.path.insert(0, "/app")
import sync_server as m
r = m.composio_execute("GOOGLESHEETS_VALUES_GET", {
"spreadsheet_id": m.SHEET_ID, "range": "'Parastoo|Graphic'!A805:C830"})
vals = (r or {}).get("values") or []
print(f"read {len(vals)} rows: 805-830")
for i, row in enumerate(vals):
idx = 805 + i
cells = [str(c)[:35] for c in row]
if any(str(c).strip() for c in row):
print(f" {idx}: {cells}")

View file

@ -0,0 +1,15 @@
import sys
sys.path.insert(0, "/app")
import sync_server as m
for start in [800, 850, 900]:
r = m.composio_execute("GOOGLESHEETS_VALUES_GET", {
"spreadsheet_id": m.SHEET_ID,
"range": f"'Parastoo|Graphic'!A{start}:D{start+49}"
})
vals = (r or {}).get("values") or []
non_empty = [(start+i, row[1] if len(row)>1 else "") for i, row in enumerate(vals) if any(row)]
if non_empty:
print(f"Non-empty at {start}:", len(non_empty))
for idx, task in non_empty[:5]:
print(f" {idx}: {task[:35]}")

View file

@ -0,0 +1 @@
{"spreadsheet_id": "1a5IDPDSBsLZgF2pnB8GjkjATfCNEzvo_M1cxsm08eFo", "range": "Parastoo|Graphic!A773:L774"}

View file

@ -0,0 +1 @@
{"spreadsheet_id": "1a5IDPDSBsLZgF2pnB8GjkjATfCNEzvo_M1cxsm08eFo", "range": "Parastoo|Graphic!A760:N775"}

View file

@ -0,0 +1,11 @@
import sys, json
sys.path.insert(0, "/app")
import sync_server as m
r = m.composio_execute("GOOGLESHEETS_VALUES_UPDATE", {
"spreadsheet_id": m.SHEET_ID,
"range": "'Parastoo|Graphic'!A760:N760",
"value_input_option": "USER_ENTERED",
"values": [[""] * 14]
})
print("Result Clean 760:", r)

View file

@ -0,0 +1,12 @@
import sys, json
sys.path.insert(0, "/app")
import sync_server as m
empty_matrix = [[""] * 14 for _ in range(10)]
r = m.composio_execute("GOOGLESHEETS_VALUES_UPDATE", {
"spreadsheet_id": m.SHEET_ID,
"range": "'Parastoo|Graphic'!A761:N770",
"value_input_option": "USER_ENTERED",
"values": empty_matrix
})
print("Cleaned 761-770:", (r or {}).get("updatedRange"))

View file

@ -0,0 +1,11 @@
import sys, json
sys.path.insert(0, "/app")
import sync_server as m
r = m.composio_execute("GOOGLESHEETS_VALUES_UPDATE", {
"spreadsheet_id": m.SHEET_ID,
"range": "'Parastoo|Graphic'!A760",
"value_input_option": "USER_ENTERED",
"values": [[""]]
})
print("Result Clean A760:", r)

View file

@ -0,0 +1 @@
{"spreadsheet_id": "1a5IDPDSBsLZgF2pnB8GjkjATfCNEzvo_M1cxsm08eFo", "range": "Parastoo|Graphic!A773:L860"}

View file

@ -0,0 +1,17 @@
import sys, json
sys.path.insert(0, "/app")
import sync_server as m
# Check what row we reached
r = m.composio_execute("GOOGLESHEETS_VALUES_GET", {
"spreadsheet_id": m.SHEET_ID,
"range": "'Parastoo|Graphic'!A770:D890"
})
vals = (r or {}).get("values") or []
print("Rows from 770:")
for i, row in enumerate(vals):
idx = 770 + i
task = row[1] if len(row) > 1 else ""
date = row[3] if len(row) > 3 else ""
if task:
print(f" {idx}: {task[:40]} | {date}")

View file

@ -0,0 +1 @@
{"spreadsheet_id": "1a5IDPDSBsLZgF2pnB8GjkjATfCNEzvo_M1cxsm08eFo", "range": "Parastoo|Graphic!A815:L950"}

View file

@ -0,0 +1 @@
{"spreadsheet_id": "1a5IDPDSBsLZgF2pnB8GjkjATfCNEzvo_M1cxsm08eFo", "range": "Parastoo|Graphic!A815:L960"}

View file

@ -0,0 +1 @@
{"spreadsheet_id": "1a5IDPDSBsLZgF2pnB8GjkjATfCNEzvo_M1cxsm08eFo", "range": "Parastoo|Graphic!J814"}

View file

@ -0,0 +1 @@
{"spreadsheet_id": "1a5IDPDSBsLZgF2pnB8GjkjATfCNEzvo_M1cxsm08eFo", "range": "Parastoo|Graphic!A815:L825"}

View file

@ -0,0 +1,16 @@
import sys
sys.path.insert(0, "/app")
import sync_server as m
# check last row of sheet
r = m.composio_execute("GOOGLESHEETS_VALUES_GET", {
"spreadsheet_id": m.SHEET_ID, "range": "'Parastoo|Graphic'!A810:D820"})
vals = (r or {}).get("values") or []
for i, row in enumerate(vals):
task = (row[1] if len(row)>1 else "")
if "تست دستیار" in task:
idx = 810 + i
print(f"Clearing row {idx}: {task}")
m.composio_execute("GOOGLESHEETS_CLEAR_VALUES", {
"spreadsheet_id": m.SHEET_ID, "range": f"'Parastoo|Graphic'!A{idx}:L{idx}"})
print("sheet clean")

View file

@ -0,0 +1 @@
{"install_id":"942adcc3-d271-4296-b87e-75d62f924745","created_at":"2026-10-11T11:34:07.703Z"}

View file

@ -0,0 +1 @@
{"developer":{"enabled":true,"destructive_actions":false},"experimental_features":{},"artifact_directory":null,"experimental_subagent":null,"security":"auto"}

View file

@ -0,0 +1,4 @@
{
"lastChecked": "2026-11-04T06:54:50.831Z",
"latestVersion": "0.6.0"
}

View file

@ -0,0 +1 @@
{"api_key":null,"base_url":"https://backend.composio.dev","web_url":"https://dashboard.composio.dev/","org_id":null,"test_user_id":null}

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

Binary file not shown.

View file

@ -0,0 +1 @@
{"developer":{"enabled":true,"destructive_actions":false},"experimental_features":{},"artifact_directory":null,"experimental_subagent":null,"security":"auto"}

View file

@ -0,0 +1 @@
@composio/cli@0.4.1

View file

@ -0,0 +1 @@
export * from "./services/run-helpers-runtime.mjs";

View file

@ -0,0 +1 @@
export * from "./services/run-subagent-acp.mjs";

View file

@ -0,0 +1 @@
export * from "./services/run-subagent-legacy.mjs";

View file

@ -0,0 +1 @@
export * from "./services/run-subagent-output-mcp.mjs";

View file

@ -0,0 +1 @@
export * from "./services/run-subagent-shared.mjs";

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,41 @@
{
"version": "20260902_00",
"inputSchema": {
"type": "object",
"title": "SearchStreamGaqlRequest",
"required": [
"query"
],
"properties": {
"query": {
"type": "string",
"title": "Query",
"examples": [
"SELECT campaign.name, campaign.id, metrics.clicks, metrics.impressions, metrics.cost_micros FROM campaign LIMIT 50"
],
"description": "The Google Ads Query Language (GAQL) query string. Must follow SELECT ... FROM ... WHERE ... format. Example: SELECT campaign.name, campaign.id, metrics.impressions FROM campaign WHERE campaign.status = 'ENABLED'"
},
"customer_id": {
"type": "string",
"title": "Customer Id",
"description": "Target Google Ads customer ID for this tool call; hyphens and spaces are stripped. For MCC workflows, pass the child/sub-account ID. Defaults to the connection customer_id."
},
"summary_row_setting": {
"enum": [
"UNSPECIFIED",
"NO_SUMMARY_ROW",
"SUMMARY_ROW_ONLY",
"SUMMARY_ROW_WITH_RESULTS"
],
"type": "string",
"title": "SummaryRowSetting",
"examples": [
"UNSPECIFIED",
"NO_SUMMARY_ROW",
"SUMMARY_ROW_WITH_RESULTS"
],
"description": "Whether to include a summary row with aggregated metrics. Valid values are 'UNSPECIFIED', 'NO_SUMMARY_ROW', 'SUMMARY_ROW_ONLY', and 'SUMMARY_ROW_WITH_RESULTS'."
}
}
}
}

View file

@ -0,0 +1,30 @@
{
"version": "20260915_00",
"inputSchema": {
"type": "object",
"title": "GetSheetNamesRequest",
"required": [
"spreadsheet_id"
],
"properties": {
"exclude_hidden": {
"type": "boolean",
"title": "Exclude Hidden",
"default": false,
"description": "When True, hidden sheets will be excluded from the results. When False (default), all sheets including hidden ones are returned. Hidden sheets are sheets that have been hidden via the 'Hide sheet' option in Google Sheets UI.",
"human_parameter_name": "Exclude Hidden Sheets",
"human_parameter_description": "Whether to exclude hidden sheets from the results."
},
"spreadsheet_id": {
"type": "string",
"title": "Spreadsheet Id",
"examples": [
"1qpyC0XzvTcKT6EISywY_7H7D7No1tpxEXAMPLE_ID"
],
"description": "The unique identifier of the Google Spreadsheet (alphanumeric string, typically 44 characters). Extract only the ID portion from URLs - do not include leading/trailing slashes, '/edit' suffixes, query parameters, or URL fragments. From 'https://docs.google.com/spreadsheets/d/1qpyC0XzvTcKT6EISywY/edit#gid=0', use only '1qpyC0XzvTcKT6EISywY'.",
"human_parameter_name": "Spreadsheet ID",
"human_parameter_description": "The spreadsheet id value."
}
}
}
}

View file

@ -0,0 +1,75 @@
{
"version": "20260915_00",
"inputSchema": {
"type": "object",
"title": "GetSpreadsheetInfoRequest",
"properties": {
"fields": {
"type": "string",
"title": "Fields",
"examples": [
"sheets.properties(sheetId,title)",
"properties.title,sheets.properties",
"spreadsheetId,properties.title,sheets.properties(sheetId,title,index)"
],
"description": "Optional. Field mask specifying which fields to return. Uses Google's field mask syntax (comma-separated, dot-notation for nested fields). If not specified, a default mask returning common fields (spreadsheet ID, title, sheet properties) is applied to avoid payload size issues. For full metadata, use '*' (not recommended for large spreadsheets). When set, includeGridData is ignored. Examples: 'sheets.properties(sheetId,title)', 'properties.title,sheets.properties.sheetId'.",
"human_parameter_name": "Fields",
"human_parameter_description": "Specify which spreadsheet fields to return using field mask syntax. Leave empty for a sensible default that includes basic spreadsheet and sheet information."
},
"ranges": {
"type": "array",
"items": {
"type": "string"
},
"title": "Ranges",
"examples": [
[
"Sheet1!A1:D5"
],
[
"Sheet1!A1:B10",
"Sheet2!C1:E20"
]
],
"description": "Optional. The ranges to retrieve from the spreadsheet, specified using A1 notation (e.g., 'Sheet1!A1:D5', 'Sheet2!A1:C4'). Multiple ranges can be requested simultaneously. If not specified, metadata for the entire spreadsheet is returned without grid data.",
"human_parameter_name": "Ranges",
"human_parameter_description": "Optional list of specific ranges to retrieve using A1 notation. Leave empty to get full spreadsheet metadata."
},
"spreadsheet_id": {
"type": "string",
"title": "Spreadsheet Id",
"examples": [
"1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms",
"https://docs.google.com/spreadsheets/d/1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms/edit"
],
"minLength": 1,
"description": "Required. The Google Sheets spreadsheet ID or full URL. Accepts either the ID alone (e.g., '1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms') or a full Google Sheets URL (e.g., 'https://docs.google.com/spreadsheets/d/1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms/edit'). The ID will be automatically extracted from URLs. Note: Published/embedded URLs (containing '/d/e/2PACX-...') are not supported.",
"human_parameter_name": "Spreadsheet ID or URL",
"human_parameter_description": "The Google Sheets spreadsheet ID or full URL. You can paste the entire URL from your browser and the ID will be extracted automatically. Note: Published/embedded URLs are not supported; use the original spreadsheet URL instead."
},
"include_grid_data": {
"type": "boolean",
"title": "Include Grid Data",
"examples": [
true,
false
],
"description": "Optional. If true, grid data will be returned. This parameter is ignored if a field mask was set in the request. When false or not specified, only metadata is returned without cell values.",
"human_parameter_name": "Include Grid Data",
"human_parameter_description": "Set to true to include cell values and grid data in the response. Default is false (metadata only)."
},
"exclude_tables_in_banded_ranges": {
"type": "boolean",
"title": "Exclude Tables In Banded Ranges",
"examples": [
true,
false
],
"description": "Optional. If true, tables within banded ranges will be omitted from the response. Default is false when not specified.",
"human_parameter_name": "Exclude Tables In Banded Ranges",
"human_parameter_description": "Set to true to exclude tables that appear in banded ranges. Default is false."
}
},
"description": "Request model for getting spreadsheet information."
}
}

View file

@ -0,0 +1,88 @@
{
"version": "20260915_00",
"inputSchema": {
"type": "object",
"title": "ValuesGetRequest",
"required": [
"spreadsheet_id",
"range"
],
"properties": {
"range": {
"type": "string",
"title": "Range",
"examples": [
"Sheet1!A1:B3",
"'My Sheet'!A1:D5",
"'Feuille 1'!A1:C10",
"A1:D5",
"Sheet1!A:A"
],
"description": "The A1 notation or R1C1 notation of the range to retrieve values from. If the sheet name contains spaces or special characters, wrap the sheet name in single quotes (e.g., \"'My Sheet'!A1:B2\"). Without single quotes, the API will return a 400 error for sheet names with spaces. Examples: 'Sheet1!A1:B3', \"'Sheet With Spaces'!A1:D5\", 'A1:D5' (no sheet name uses first visible sheet), 'Sheet1!A:A' (entire column), 'SheetName' (entire sheet).",
"human_parameter_name": "Range",
"human_parameter_description": "Specify the range of cells you want to retrieve using A1 notation (e.g., 'A1:B10', 'Sheet1!A1:C5'). If the sheet name contains spaces or special characters, enclose the sheet name in single quotes (e.g., \"'My Sheet'!A1:B2\")."
},
"end_row": {
"type": "integer",
"title": "End Row",
"description": "1-based row number to stop reading at (inclusive). Use with start_row for pagination to avoid large response errors. Example: start_row=501, end_row=1000 fetches rows 501-1000.",
"human_parameter_name": "End Row",
"human_parameter_description": "Last row to read (1-based). Leave empty to read to the end of the range."
},
"start_row": {
"type": "integer",
"title": "Start Row",
"description": "1-based row number to start reading from (inclusive). Use with end_row for pagination to avoid large response errors. Example: start_row=1, end_row=500 fetches the first 500 rows.",
"human_parameter_name": "Start Row",
"human_parameter_description": "First row to read (1-based). Leave empty to start from the beginning of the range."
},
"spreadsheet_id": {
"type": "string",
"title": "Spreadsheet Id",
"examples": [
"1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms"
],
"description": "The unique identifier of the Google Spreadsheet from which to retrieve values. This is the long alphanumeric string found in the spreadsheet URL between '/d/' and '/edit' (e.g., '1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms'). WARNING: Do NOT use the spreadsheet name or title (e.g., 'My Sales Report'); you must use the actual ID from the URL.",
"human_parameter_name": "Spreadsheet Id",
"human_parameter_description": "Provide the unique ID of the spreadsheet you want to extract values from. The ID is the long alphanumeric string in the URL between '/d/' and '/edit'. Do NOT use the spreadsheet name."
},
"major_dimension": {
"enum": [
"DIMENSION_UNSPECIFIED",
"ROWS",
"COLUMNS"
],
"type": "string",
"title": "MajorDimension",
"description": "The major dimension for results.",
"human_parameter_name": "Major Dimension",
"human_parameter_description": "Indicate whether you want your data organized by rows or columns. If you're not sure, it defaults to rows."
},
"value_render_option": {
"enum": [
"FORMATTED_VALUE",
"UNFORMATTED_VALUE",
"FORMULA"
],
"type": "string",
"title": "Value Render Option",
"default": "FORMATTED_VALUE",
"description": "How values should be rendered in the output. FORMATTED_VALUE: Values are calculated and formatted (default). UNFORMATTED_VALUE: Values are calculated but not formatted. FORMULA: Values are not calculated; the formula is returned instead.",
"human_parameter_name": "Value Render Option",
"human_parameter_description": "Choose how you want the values to be displayed. You can get the formatted version, an unformatted version, or just the underlying formula."
},
"date_time_render_option": {
"enum": [
"SERIAL_NUMBER",
"FORMATTED_STRING"
],
"type": "string",
"title": "Date Time Render Option",
"default": "SERIAL_NUMBER",
"description": "How dates, times, and durations should be represented in the output. SERIAL_NUMBER: Dates are returned as serial numbers (default). FORMATTED_STRING: Dates returned as formatted strings.",
"human_parameter_name": "Date Time Render Option",
"human_parameter_description": "Select how you want dates and times to be shown. You can use serial numbers or get formatted strings."
}
}
}
}

View file

@ -0,0 +1,28 @@
{
"version": "20260721_00",
"inputSchema": {
"type": "object",
"title": "ListAccountSummariesRequest",
"properties": {
"pageSize": {
"type": "integer",
"title": "Page Size",
"maximum": 200,
"minimum": 1,
"examples": [
50
],
"description": "Maximum number of account summaries to return. The service may return fewer than this value. If unspecified, at most 50 resources will be returned. Maximum value is 200; higher values will be coerced to the maximum."
},
"pageToken": {
"type": "string",
"title": "Page Token",
"examples": [
"token123"
],
"description": "Page token received from a previous ListAccountSummaries call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListAccountSummaries must match the call that provided the page token."
}
},
"description": "Request model for listing Account Summaries."
}
}

View file

@ -0,0 +1,183 @@
{
"version": "20260721_00",
"inputSchema": {
"type": "object",
"title": "RunReportRequest",
"required": [
"property"
],
"properties": {
"limit": {
"type": "integer",
"title": "Limit",
"minimum": 1,
"examples": [
1000
],
"description": "Optional. Number of rows to return. Must be between 1 and 250000."
},
"offset": {
"type": "integer",
"title": "Offset",
"minimum": 0,
"examples": [
0
],
"description": "Optional. 0-based start row for pagination. Must be >= 0."
},
"metrics": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
},
"title": "Metrics",
"examples": [
{
"name": "activeUsers"
},
{
"name": "sessions"
},
{
"name": "screenPageViews"
}
],
"description": "Optional. The metrics to request and display. Maximum 10 metrics per request. Each metric MUST be an object with a required non-empty 'name' field. Common valid metric names: activeUsers, totalUsers, newUsers, sessions, engagedSessions, screenPageViews, eventCount, conversions, userEngagementDuration, engagementRate, bounceRate, averageSessionDuration, sessionsPerUser, screenPageViewsPerSession, purchaseRevenue, totalRevenue, transactions, ecommercePurchases, publisherAdClicks, publisherAdImpressions, totalAdRevenue. Custom metrics use format 'customEvent:parameter_name'. CRITICAL: 'averageEngagementTime' is NOT a valid metric - use 'userEngagementDuration' or 'averageSessionDuration' instead. 'exits' is NOT a valid metric in GA4."
},
"orderBys": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
},
"title": "Order Bys",
"examples": [
{
"desc": true,
"metric": {
"metricName": "activeUsers"
}
},
{
"desc": false,
"dimension": {
"orderType": "ALPHANUMERIC",
"dimensionName": "country"
}
}
],
"description": "Optional. Specify how rows are ordered. Each OrderBy object must have 'desc' (boolean) at the top level and exactly one of: 'metric' (with 'metricName' string), 'dimension' (with 'dimensionName' or 'name' string and optional 'orderType': 'ALPHANUMERIC', 'CASE_INSENSITIVE_ALPHANUMERIC', or 'NUMERIC'), or 'pivot'. Note: For dimension ordering, you can use either 'dimensionName' or 'name' field - both are accepted and normalized. Example for metric ordering: {'desc': true, 'metric': {'metricName': 'activeUsers'}}. Example for dimension ordering: {'desc': false, 'dimension': {'dimensionName': 'country', 'orderType': 'ALPHANUMERIC'}}."
},
"property": {
"type": "string",
"title": "Property",
"examples": [
"properties/123456789"
],
"description": "Required. The property resource on which to run the report. Format: properties/{property_id} where property_id must be a numeric ID (e.g., 'properties/123456789')."
},
"cohortSpec": {
"type": "object",
"title": "Cohort Spec",
"description": "Optional. Cohort specification. Requires requesting the cohort dimension.",
"additionalProperties": true
},
"dateRanges": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
},
"title": "Date Ranges",
"examples": [
{
"endDate": "2023-01-31",
"startDate": "2023-01-01"
}
],
"minItems": 1,
"description": "The date ranges to read. Required for standard reports. Each range MUST be an object with required 'startDate' and 'endDate' fields (both must be non-empty). Dates can be in YYYY-MM-DD format or special values like 'today', 'yesterday', '7daysAgo', '30daysAgo'. IMPORTANT: For cohort requests (when cohortSpec is provided), dateRanges must be omitted."
},
"dimensions": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
},
"title": "Dimensions",
"examples": [
{
"name": "city"
},
{
"name": "date"
},
{
"name": "deviceCategory"
}
],
"description": "Optional. The dimensions to request and display. Maximum 9 dimensions per request. Each dimension MUST be an object with a required non-empty 'name' field. Common valid dimension names: date, dateHour, dateHourMinute, year, month, week, day, dayOfWeek, hour, city, cityId, country, countryId, continent, continentId, region, subContinent, deviceCategory, browser, operatingSystem, platform, platformDeviceCategory, screenResolution, sessionSource, sessionMedium, sessionSourceMedium, sessionCampaignName, sessionDefaultChannelGroup, firstUserSource, firstUserMedium, firstUserCampaignName, firstUserDefaultChannelGroup, pagePath, pagePathPlusQueryString, pageTitle, landingPage, hostname, eventName, streamName, userAgeBracket, userGender, language, newVsReturning. Custom dimensions: 'customEvent:parameter_name' or 'customUser:parameter_name'. 'dateRange' is NOT a valid dimension — use date dimensions (date, dateHour, year, month, etc.) instead. 'exits' is NOT a valid dimension in GA4. COMPATIBILITY: Not all dimensions can be combined with each other or with certain metrics/filters. If you receive a compatibility error, use GOOGLE_ANALYTICS_CHECK_COMPATIBILITY to validate combinations, or see https://developers.google.com/analytics/devguides/reporting/data/v1/compatibility"
},
"comparisons": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
},
"title": "Comparisons",
"description": "Optional. The comparison configuration. Adds a comparison column to the response."
},
"currencyCode": {
"type": "string",
"title": "Currency Code",
"examples": [
"USD"
],
"description": "Optional. The currency code to apply, in ISO 4217 format. Defaults to property currency."
},
"metricFilter": {
"type": "object",
"title": "Metric Filter",
"description": "Optional. Filter expression to restrict rows by metric values. Applied after aggregation. IMPORTANT: Only use metric field names here (e.g., 'activeUsers', 'sessions', 'ecommercePurchases', 'purchaseRevenue'). Do NOT use dimension names in metricFilter - if you need to filter by a dimension (e.g., 'country', 'city', 'pagePath'), use dimensionFilter instead. The action validates that only metric names are used in metricFilter and will reject dimension names with a clear error. Structure: {'filter': {'fieldName': '<metric_name>', 'numericFilter': {'operation': 'GREATER_THAN', 'value': {'int64Value': '0'}}}} or use 'andGroup'/'orGroup' for multiple conditions.",
"additionalProperties": true
},
"keepEmptyRows": {
"type": "boolean",
"title": "Keep Empty Rows",
"description": "Optional. If true, rows with all zero metrics will be returned; otherwise omitted."
},
"dimensionFilter": {
"type": "object",
"title": "Dimension Filter",
"description": "Optional. Filter expression to restrict rows by dimension values. IMPORTANT: Only use dimension field names here (e.g., 'country', 'city', 'date', 'deviceCategory', 'pagePath'). Do NOT use metric names in dimensionFilter - if you need to filter by a metric (e.g., 'activeUsers', 'sessions', 'ecommercePurchases'), use metricFilter instead. Structure: {'filter': {'fieldName': '<dimension_name>', 'stringFilter': {...}}} or use 'andGroup'/'orGroup' for multiple conditions. COMPATIBILITY WARNING: Dimension filters must be compatible with the dimensions in your request. For example, filtering on 'sessionCampaignName' while using demographic dimensions (userAgeBracket, userGender) will fail. The filter field creates an implicit dimension that must be compatible with all other dimensions and metrics. Use GOOGLE_ANALYTICS_CHECK_COMPATIBILITY to verify your filter dimensions work with your requested dimensions/metrics.",
"additionalProperties": true
},
"metricAggregations": {
"type": "array",
"items": {
"type": "string"
},
"title": "Metric Aggregations",
"examples": [
"TOTAL"
],
"description": "Optional. Aggregation types to include over metrics, e.g., 'TOTAL', 'MINIMUM', 'MAXIMUM'."
},
"returnPropertyQuota": {
"type": "boolean",
"title": "Return Property Quota",
"description": "Optional. If true, include the property's current quota state in the response."
},
"removed_dimensions_internal": {
"type": "array",
"items": {
"type": "string"
},
"title": "Removed Dimensions Internal",
"description": "Internal field to store filtered dimension names for execution message. Not sent to API."
}
},
"description": "Request model for running a customized Google Analytics 4 report."
}
}

View file

@ -0,0 +1,42 @@
{
"version": "20260806_00",
"inputSchema": {
"type": "object",
"title": "InspectUrlRequest",
"required": [
"inspection_url",
"site_url"
],
"properties": {
"site_url": {
"type": "string",
"title": "Site Url",
"examples": [
"https://www.example.com/",
"sc-domain:example.com"
],
"description": "The URL of the property as defined in Search Console. URL-prefix properties must include a trailing slash. For example: https://www.example.com/"
},
"language_code": {
"type": "string",
"title": "Language Code",
"default": "en-US",
"examples": [
"en-US",
"es-ES",
"fr-FR"
],
"description": "IETF BCP-47 language code for localizing the inspection results. For example: en-US, es-ES, fr-FR"
},
"inspection_url": {
"type": "string",
"title": "Inspection Url",
"examples": [
"https://www.example.com/page",
"https://www.example.com/"
],
"description": "The fully-qualified URL to inspect. Must be a page under the site specified in site_url. For example: https://www.example.com/page"
}
}
}
}

View file

@ -0,0 +1,28 @@
{
"version": "20260806_00",
"inputSchema": {
"type": "object",
"title": "ListSitemapsRequest",
"required": [
"site_url"
],
"properties": {
"site_url": {
"type": "string",
"title": "Site Url",
"examples": [
"https://www.example.com/"
],
"description": "The site's URL, including protocol. For example: https://www.example.com/ Must exactly match the Search Console property string — include trailing slash for URL-prefix properties or use `sc-domain:example.com` format for domain properties. An inexact match silently returns no data."
},
"sitemap_index": {
"type": "string",
"title": "Sitemap Index",
"examples": [
"http://www.example.com/sitemapindex.xml"
],
"description": "A URL of a site's sitemap index file (e.g., http://www.example.com/sitemapindex.xml). When specified, lists the sitemaps contained within this sitemap index file instead of all sitemaps for the site."
}
}
}
}

View file

@ -0,0 +1,8 @@
{
"version": "20260806_00",
"inputSchema": {
"type": "object",
"title": "ListSitesRequest",
"properties": {}
}
}

View file

@ -0,0 +1,148 @@
{
"version": "20260806_00",
"inputSchema": {
"type": "object",
"title": "SearchAnalyticsQueryRequest",
"required": [
"site_url",
"start_date",
"end_date"
],
"properties": {
"end_date": {
"type": "string",
"title": "End Date",
"examples": [
"2023-12-31"
],
"description": "The end date of the date range for the query, in YYYY-MM-DD format."
},
"site_url": {
"type": "string",
"title": "Site Url",
"examples": [
"https://www.example.com/",
"sc-domain:example.com"
],
"description": "The site's URL, including protocol (e.g., https://www.example.com/) or a domain property (e.g., sc-domain:example.com). URL-prefix properties specify exact protocol and path, while domain properties aggregate data across all subdomains and protocols."
},
"row_limit": {
"type": "integer",
"title": "Row Limit",
"default": 1000,
"maximum": 25000,
"minimum": 1,
"description": "The maximum number of rows to return. Must be between 1 and 25,000. Note: The API returns top results sorted by clicks (or date when grouping by date). Must be between 1 and 5000. Use start_row to paginate; stop when response rows < row_limit."
},
"start_row": {
"type": "integer",
"title": "Start Row",
"default": 0,
"minimum": 0,
"description": "The first row to return from the result set. Used for pagination."
},
"data_state": {
"enum": [
"final",
"all",
"hourly_all"
],
"type": "string",
"title": "Data State",
"default": "final",
"examples": [
"final",
"all",
"hourly_all"
],
"description": "The data state to return."
},
"dimensions": {
"type": "array",
"items": {
"enum": [
"query",
"page",
"country",
"device",
"date",
"searchAppearance",
"hour"
],
"type": "string"
},
"title": "Dimensions",
"default": [
"query"
],
"examples": [
[
"query",
"page"
],
[
"country",
"device"
],
[
"date"
]
],
"description": "The dimensions to group the data by. Results are sorted by clicks descending, except when grouping by date (sorted by date ascending)."
},
"start_date": {
"type": "string",
"title": "Start Date",
"examples": [
"2023-01-01"
],
"description": "The start date of the date range for the query, in YYYY-MM-DD format. Data lags 2–3 days (UTC); most recent 1–2 days may be incomplete. Data retention is ~16 months; older ranges return zero rows."
},
"search_type": {
"enum": [
"web",
"image",
"video",
"news",
"discover",
"googleNews"
],
"type": "string",
"title": "Search Type",
"default": "web",
"examples": [
"web",
"image",
"video"
],
"description": "The search type to filter results by."
},
"aggregation_type": {
"enum": [
"auto",
"byPage",
"byProperty",
"byNewsShowcasePanel"
],
"type": "string",
"title": "Aggregation Type",
"default": "auto",
"examples": [
"auto",
"byProperty",
"byPage"
],
"description": "How data is aggregated."
},
"dimension_filter_groups": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
},
"title": "Dimension Filter Groups",
"description": "Optional filters to apply to dimensions. Each filter group contains an array of filters with structure: [{'filters': [{'dimension': 'country', 'operator': 'equals', 'expression': 'USA'}]}]. Operators: equals, notEquals, contains, notContains, includingRegex, excludingRegex. Invalid dimension names, unsupported operators, or mismatched expressions return zero rows without an error — verify each filter before trusting empty results."
}
}
}
}

View file

@ -0,0 +1,60 @@
{
"version": "20260915_00",
"inputSchema": {
"type": "object",
"title": "GetIgMediaInsightsRequest",
"required": [
"ig_media_id",
"metric"
],
"properties": {
"metric": {
"type": "array",
"items": {
"type": "string"
},
"title": "Metric",
"examples": [
[
"views",
"reach",
"likes",
"comments",
"saved"
]
],
"description": "List of metrics to retrieve. Must be provided as an array of strings, e.g., ['reach', 'saved', 'likes']. COMMONLY SUPPORTED METRICS: views, reach, saved, likes, comments, shares, total_interactions, reposts. REELS-SPECIFIC METRICS: ig_reels_video_view_total_time, ig_reels_avg_watch_time, reels_skip_rate, facebook_views, crossposted_views. FEED-AND-STORY METRICS: profile_activity. STORIES-SPECIFIC METRICS: link_clicks, replies, navigation, follows, profile_visits. DEPRECATED METRICS (will be filtered out): 'impressions', 'plays', 'video_views', 'clips_replays_count', 'ig_reels_aggregated_all_plays_count' (use 'views' instead); 'taps_forward', 'taps_back', 'exits' (Story navigation metrics deprecated in API v18+, use 'navigation' instead). INVALID METRIC NAMES (will be rejected): 'clicks', 'engagement' are NOT valid metric names."
},
"period": {
"type": "string",
"const": "lifetime",
"title": "Period",
"default": "lifetime",
"description": "The time period for metric aggregation. Instagram media insights automatically use 'lifetime'; other period values are not supported."
},
"breakdown": {
"enum": [
"action_type",
"story_navigation_action_type"
],
"type": "string",
"title": "Breakdown",
"description": "Optional breakdown dimension for supported metrics. Allowed values: 'action_type' (e.g. for profile_activity) and 'story_navigation_action_type' (for Story navigation). Only applicable to metrics that support breakdowns."
},
"ig_media_id": {
"type": "string",
"title": "Ig Media Id",
"examples": [
"18044673371703564"
],
"description": "The ID of the Instagram media object (photo, video, reel, carousel album) for which to retrieve insights"
},
"graph_api_version": {
"type": "string",
"title": "Graph Api Version",
"default": "v21.0",
"description": "Instagram Graph API version to use"
}
}
}
}

View file

@ -0,0 +1,68 @@
{
"version": "20260915_00",
"inputSchema": {
"type": "object",
"title": "GetIgUserMediaRequest",
"required": [
"ig_user_id"
],
"properties": {
"after": {
"type": "string",
"title": "After",
"description": "Forward-pagination cursor from paging.cursors.after in the previous response; omit for the first page."
},
"limit": {
"type": "integer",
"title": "Limit",
"default": 25,
"maximum": 100,
"minimum": 1,
"description": "Maximum number of media objects to return in this page (default 25, maximum 100)."
},
"since": {
"type": "integer",
"title": "Since",
"description": "Unix timestamp - filter results to media created after this time. If both 'since' and 'until' are provided, 'since' must be less than 'until'."
},
"until": {
"type": "integer",
"title": "Until",
"description": "Unix timestamp - filter results to media created before this time. If both 'since' and 'until' are provided, 'since' must be less than 'until'."
},
"before": {
"type": "string",
"title": "Before",
"description": "Cursor for backward pagination - retrieve media before this cursor"
},
"fields": {
"type": "string",
"title": "Fields",
"default": "id,caption,media_type,media_url,permalink,thumbnail_url,timestamp,username,legacy_instagram_media_id,alt_text,is_ai_generated,is_shared_to_feed,media_audio_type,view_count,reposts_count,saved_count,shares_count,total_like_count,total_comments_count,total_views_count",
"description": "Comma-separated projection of fields to select for each media object. Available fields: id, caption, media_type, media_url, permalink, thumbnail_url, timestamp, username, comments_count, like_count, legacy_instagram_media_id, is_comment_enabled, owner, shortcode, media_product_type, alt_text, is_ai_generated, is_shared_to_feed, media_audio_type, view_count, reposts_count, saved_count, shares_count, total_like_count, total_comments_count, total_views_count, children{media_url,media_type,thumbnail_url}. Reels appear as media_type=VIDEO and media_product_type=REELS; filter both fields to identify reels. media_url is a direct file URL; permalink is the user-facing share link. Optional fields like caption and like_count may be null or absent in the response."
},
"ig_user_id": {
"type": "string",
"title": "Ig User Id",
"examples": [
"me",
"17841405793187218"
],
"minLength": 2,
"description": "Instagram Business or Creator Account ID. Use 'me' for the authenticated user, or provide the numeric IG User ID obtained from the Instagram Graph API (typically 17 digits, e.g., '17841405793187218'). Facebook Page IDs are not supported or automatically converted."
},
"graph_api_version": {
"type": "string",
"title": "Graph Api Version",
"default": "v21.0",
"description": "Instagram Graph API version to use (e.g., 'v21.0')"
},
"auto_resolve_fb_page_id": {
"type": "boolean",
"title": "Auto Resolve Fb Page Id",
"default": true,
"description": "Deprecated no-op retained for backwards compatibility. On Instagram Login the host follows the token (graph.instagram.com) and Facebook Page IDs are not resolved. Provide an Instagram Business or Creator Account ID directly (or 'me')."
}
}
}
}

View file

@ -0,0 +1,26 @@
{
"version": "20260915_00",
"inputSchema": {
"type": "object",
"title": "GetUserInfoRequest",
"properties": {
"fields": {
"type": "string",
"title": "Fields",
"minLength": 1,
"description": "Optional exact comma-separated projection of Instagram user fields. Supported profile fields include id, user_id, username, name, account_type, profile_picture_url, followers_count, follows_count, and media_count. When omitted, the action uses its existing profile field defaults."
},
"ig_user_id": {
"type": "string",
"title": "Ig User Id",
"description": "Instagram Business Account ID. IMPORTANT: You can only query Business/Creator accounts that you manage through Facebook Business Manager. Use \"me\" to query your own authenticated account. To query other accounts you manage, provide their numeric Business Account ID. Arbitrary public accounts cannot be queried. If not provided, defaults to \"me\"."
},
"graph_api_version": {
"type": "string",
"title": "Graph Api Version",
"default": "v21.0",
"description": "The Facebook Graph API version to use for the request."
}
}
}
}

View file

@ -0,0 +1,99 @@
{
"version": "20260915_00",
"inputSchema": {
"type": "object",
"title": "GetUserInsightsRequest",
"properties": {
"since": {
"type": "integer",
"title": "Since",
"description": "Start of time range (inclusive) as a Unix timestamp (seconds). Also accepts date strings (YYYY-MM-DD or ISO 8601 format) which will be converted to timestamps."
},
"until": {
"type": "integer",
"title": "Until",
"description": "End of time range (inclusive) as a Unix timestamp (seconds). Also accepts date strings (YYYY-MM-DD or ISO 8601 format) which will be converted to timestamps."
},
"metric": {
"type": "array",
"items": {
"enum": [
"reach",
"follower_count",
"online_followers",
"accounts_engaged",
"total_interactions",
"likes",
"comments",
"shares",
"saves",
"replies",
"follows_and_unfollows",
"profile_links_taps",
"views",
"profile_views",
"website_clicks",
"engaged_audience_demographics",
"reached_audience_demographics",
"follower_demographics",
"reposts",
"threads_likes",
"threads_replies",
"threads_followers",
"threads_follower_demographics",
"threads_views",
"threads_clicks",
"threads_reposts",
"quotes",
"content_views"
],
"type": "string",
"title": "UserInsightMetric",
"description": "Valid metrics for Instagram account-level insights.\n\nCore: reach, follower_count, online_followers.\nEngagement: accounts_engaged, total_interactions, likes, comments, shares, saves,\nreplies. Activity: follows_and_unfollows, profile_links_taps, views, profile_views,\nwebsite_clicks. Demographics (need timeframe): engaged_audience_demographics,\nreached_audience_demographics, follower_demographics. Also: reposts.\nThreads (served by this endpoint too): threads_likes, threads_replies,\nthreads_followers, threads_follower_demographics, threads_views, threads_clicks,\nthreads_reposts, quotes, content_views.\n\nA metric may return an EMPTY result instead of an error when the account has no such\ndata (follower_count/online_followers are suppressed under 100 followers; Threads\nmetrics need a linked Threads profile). Empty is valid, not a failure.\n\nRejected by Meta - do not request: impressions, email_contacts, phone_call_clicks,\ntext_message_clicks, get_directions_clicks."
},
"title": "Metric",
"description": "List or comma-separated metrics. Valid: reach, follower_count, online_followers, accounts_engaged, total_interactions, likes, comments, shares, saves, replies, follows_and_unfollows, profile_links_taps, views, profile_views, website_clicks, reposts, threads_likes, threads_replies, threads_followers, threads_views, threads_clicks, threads_reposts, quotes, content_views, and the demographics metrics engaged_audience_demographics, reached_audience_demographics, follower_demographics, and threads_follower_demographics. All demographics metrics require `timeframe`. All metrics in one call must share a period. Empty results are valid when data is unavailable (follower_count/online_followers require 100 followers; Threads metrics require a linked Threads profile). Rejected by Meta, do not request: impressions, email_contacts, phone_call_clicks, text_message_clicks, get_directions_clicks, audience_*."
},
"period": {
"enum": [
"day",
"lifetime"
],
"type": "string",
"title": "InsightPeriod",
"default": "day",
"description": "Valid period values for Instagram user insights aggregation.\n\nAvailable periods:\n- day: Daily aggregation (time-series metrics)\n- lifetime: Lifetime aggregation (for audience/demographics metrics)\n\nNote: 'week' and 'days_28' are no longer supported for IG user insights."
},
"breakdown": {
"type": "string",
"title": "Breakdown",
"description": "Breakdown to use when metric_type=total_value. Allowed values: contact_button_type, follow_type, media_product_type, age, city, country, gender."
},
"timeframe": {
"enum": [
"this_month",
"this_week"
],
"type": "string",
"title": "InsightTimeframe",
"description": "Valid timeframe values for demographics-related Instagram user insights.\n\nRequired for engaged_audience_demographics, reached_audience_demographics,\nfollower_demographics, and threads_follower_demographics metrics. Overrides\nsince/until parameters when specified.\n\nNote: As of 2025, Instagram deprecated the following timeframe values for demographics metrics:\nlast_14_days, last_30_days, last_90_days, and prev_month. Only this_week and this_month are\ncurrently supported by the Instagram Graph API.\n\nAll demographics metrics use period=lifetime and require the timeframe parameter."
},
"ig_user_id": {
"type": "string",
"title": "Ig User Id",
"description": "Instagram Business Account ID - must be a numeric ID (e.g., '17841400008460056'). Content API IDs with 'ca_' prefix are not supported. Optional, defaults to current user."
},
"metric_type": {
"type": "string",
"title": "Metric Type",
"description": "Aggregation type for results. Allowed values: time_series, total_value."
},
"graph_api_version": {
"type": "string",
"title": "Graph Api Version",
"default": "v21.0",
"description": "The Facebook Graph API version to use for the request."
}
}
}
}

View file

@ -0,0 +1,8 @@
{
"version": "20260915_00",
"inputSchema": {
"type": "object",
"title": "GetMyInfoRequest",
"properties": {}
}
}

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1 @@
{"api_key":"uak_4vTZSJmq650NuwLKMoWMgGfnJMbB-tMykFO_fqgmzzh","base_url":"https://backend.composio.dev","web_url":"https://dashboard.composio.dev/","org_id":"ok_PglBs272WeE1","test_user_id":"pg-test-7a50d386-0b8b-4172-b27f-8786ad671725"}

View file

@ -0,0 +1,16 @@
import sys
sys.path.insert(0, "/app")
import sync_server as m
# Clear rows 773 to 950
empty_rows = [[""] * 12 for _ in range(200)]
r = m.composio_execute("GOOGLESHEETS_UPDATE_SPREADSHEET_VALUES", {
"spreadsheet_id": m.SHEET_ID,
"range": "'Parastoo|Graphic'!A773:L973",
"values": empty_rows
})
print("Cleared 773-973:", r is not None)
# Verify last non-empty row
r2 = m.sheet_last_data_row()
print("New last non-empty row:", r2)

View file

@ -0,0 +1,20 @@
import sys, json
sys.path.insert(0, "/app")
import sync_server as m
TAB = "Parastoo|Graphic"
all_rows = []
# paginate 100 rows at a time
for start in range(1, 1100, 100):
try:
r = m.composio_execute("GOOGLESHEETS_VALUES_GET", {
"spreadsheet_id": m.SHEET_ID,
"range": f"'{TAB}'!A{start}:N{start+99}"})
except Exception as e:
break
vals = (r or {}).get("values") or []
if not vals:
break
for i, row in enumerate(vals):
all_rows.append({"row": start + i, "cells": row})
print(json.dumps({"total": len(all_rows), "rows": all_rows}, ensure_ascii=False))

View file

@ -0,0 +1,20 @@
import sys
sys.path.insert(0, "/app")
import sync_server as m
# Find test rows (mine) beyond the real data end
r = m.composio_execute("GOOGLESHEETS_VALUES_GET", {
"spreadsheet_id": m.SHEET_ID, "range": "'Parastoo|Graphic'!A770:L900"})
vals = (r or {}).get("values") or []
tests = []
for i, row in enumerate(vals):
idx = 770 + i
task = (row[1] if len(row) > 1 else "").strip()
if task and any(k in task for k in ["تست "]):
tests.append((idx, task[:45]))
print("Test rows found:", len(tests))
for idx, t in tests:
print(f" {idx}: {t}")
if tests:
lo = min(i for i, _ in tests)
print(f"\nClearing from row {lo} to 900")

View file

@ -0,0 +1,12 @@
import sys, json
sys.path.insert(0, "/app")
import sync_server as m
r = m.composio_execute("GOOGLESHEETS_VALUES_GET", {
"spreadsheet_id": m.SHEET_ID, "range": "'Parastoo|Graphic'!A760:N800"})
vals = (r or {}).get("values") or []
for i, row in enumerate(vals):
row_num = 760 + i
if any(str(c).strip() for c in row):
print(f"Row {row_num}: {row}")

View file

@ -0,0 +1,8 @@
import sys, json
sys.path.insert(0, "/app")
import sync_server as m
r = m.composio_execute("GOOGLESHEETS_GET_SHEET_NAMES", {
"spreadsheet_id": m.SHEET_ID
})
print("Sheet Tabs:", json.dumps(r, ensure_ascii=False))

View file

@ -0,0 +1,18 @@
import sys
sys.path.insert(0, "/app")
import sync_server as m
# scan wide to locate any test row
for start in [770, 800, 830, 860, 890, 920]:
try:
r = m.composio_execute("GOOGLESHEETS_VALUES_GET", {
"spreadsheet_id": m.SHEET_ID, "range": f"'Parastoo|Graphic'!A{start}:D{start+29}"})
except Exception as e:
print(f"{start}: error {str(e)[:80]}"); continue
vals = (r or {}).get("values") or []
hits = [(start+i, (row[1] if len(row)>1 else "")) for i, row in enumerate(vals) if any(str(c).strip() for c in row)]
if hits:
print(f"--- {start}: {len(hits)} non-empty")
for idx, t in hits[:8]:
print(f" {idx}: {t[:50]}")
print("\nlast_data_row:", m.sheet_last_data_row())

View file

@ -0,0 +1,16 @@
import sys, json
sys.path.insert(0, "/app")
import sync_server as m
# The Sheets API exposes tab names via the spreadsheet metadata tool.
for slug in ["GOOGLESHEETS_GET_SPREADSHEET_METADATA",
"GOOGLESHEETS_SPREADSHEETS_GET",
"GOOGLESHEETS_GET_SPREADSHEET_INFO"]:
try:
r = m.composio_execute(slug, {"spreadsheetId": m.SHEET_ID})
if r:
print("SLUG OK:", slug)
print(json.dumps(r, ensure_ascii=False)[:2500])
break
except Exception as e:
print("fail", slug, str(e)[:120])

View file

@ -0,0 +1,19 @@
import sys
sys.path.insert(0, "/app")
import sync_server as m
# Scan a wide range to find where the appended rows actually went
for start in [700, 750, 800, 850, 880, 900, 950, 1000]:
r = m.composio_execute("GOOGLESHEETS_VALUES_GET", {
"spreadsheet_id": m.SHEET_ID,
"range": f"'Parastoo|Graphic'!A{start}:D{start+29}"
})
vals = (r or {}).get("values") or []
hits = [(start+i, (row[1] if len(row)>1 else ""), (row[3] if len(row)>3 else ""))
for i, row in enumerate(vals) if any(str(c).strip() for c in row)]
if hits:
print(f"--- rows {start}-{start+29}: {len(hits)} non-empty")
for idx, t, d in hits[:6]:
print(f" {idx}: {t[:40]} | {d}")
print()
print("sheet_last_data_row() =", m.sheet_last_data_row())

View file

@ -0,0 +1,13 @@
import sys
sys.path.insert(0, "/app")
import sync_server as m
# scan wide for any test rows
for start in [760, 800, 850, 900, 950, 1000, 1050]:
r = m.composio_execute("GOOGLESHEETS_VALUES_GET", {
"spreadsheet_id": m.SHEET_ID, "range": f"'Parastoo|Graphic'!A{start}:C{start+49}"})
vals = (r or {}).get("values") or []
for i, row in enumerate(vals):
task = (row[1] if len(row) > 1 else "").strip()
if task:
print(f" {start+i}: {task[:50]}")

View file

@ -0,0 +1,11 @@
import sys, json
sys.path.insert(0, "/app")
import sync_server as m
r = m.composio_execute("GOOGLESHEETS_VALUES_UPDATE", {
"spreadsheet_id": m.SHEET_ID,
"range": "'Parastoo|Graphic'!G756",
"value_input_option": "USER_ENTERED",
"values": [["NotDone"]]
})
print("Result 756 G:", r)

View file

@ -0,0 +1,11 @@
import sys, json
sys.path.insert(0, "/app")
import sync_server as m
r = m.composio_execute("GOOGLESHEETS_VALUES_UPDATE", {
"spreadsheet_id": m.SHEET_ID,
"range": "'Parastoo|Graphic'!A759:J759",
"value_input_option": "USER_ENTERED",
"values": [["", "ایده‌های استوری اکیپا آرت", "پرستو", "", "0.25", "0.25", "NotDone", '=IFS(and(F759>E759,G759="Done"),"OverEstimate", and(F759<=E759,G759="Done"),"UnderEstimate",TRUE, "-")', "", "ایده‌ها نوشته شد، بدون سناریو — یادآوری فردا برای نوشتن سناریو"]]
})
print("Result 759:", r)

View file

@ -0,0 +1,11 @@
import sys, json
sys.path.insert(0, "/app")
import sync_server as m
r = m.composio_execute("GOOGLESHEETS_VALUES_UPDATE", {
"spreadsheet_id": m.SHEET_ID,
"range": "'Parastoo|Graphic'!A760:J760",
"value_input_option": "USER_ENTERED",
"values": [["", "دیلی", "پرستو", "", "0.25", "", "NotDone", '=IFS(and(F760>E760,G760="Done"),"OverEstimate", and(F760<=E760,G760="Done"),"UnderEstimate",TRUE, "-")', "", ""]]
})
print("Result 760:", r)

View file

@ -0,0 +1,42 @@
import sys, json
sys.path.insert(0, "/app")
import sync_server as m
# Prepare correct rows 754-759
# Formulas in H use the exact row number:
# =IFS(and(F{r}>E{r},G{r}="Done"),"OverEstimate", and(F{r}<=E{r},G{r}="Done"),"UnderEstimate",TRUE, "-")
def h_formula(r):
return f'=IFS(and(F{r}>E{r},G{r}="Done"),"OverEstimate", and(F{r}<=E{r},G{r}="Done"),"UnderEstimate",TRUE, "-")'
correct_rows = [
# 754: First row of the day has Day(A), Date(D)
["چ", "ساخت دشبور", "پرستو", "9/23/2026", "1.5", "1.5", "Done", h_formula(754), "", "ساخت داشبورد تسک‌ها با دستیار"],
# 755
["", "چک کردن هوشیار و در آوردن سوال هام", "پرستو", "", "0.25", "0.5", "Done", h_formula(755), "", "تحقیق بنچ‌مارک بلاگرها/رقبا"],
# 756
["", "بررسی ساعت و تسک های مبینا و غزل", "پرستو", "", "0.5", "0.25", "NotDone", h_formula(756), "", "نیاز به جلسه با هر دو برای تقسیم تسک و بررسی ساعت"],
# 757
["", "شیت محتوایی آرت — استوری‌ها و ریلزها", "پرستو", "", "1", "3", "Done", h_formula(757), "", "استوری‌ها و ریلزها تکمیل شد"],
# 758
["", "هماهنگی با آیسا", "پرستو", "", "0.25", "0.25", "Done", h_formula(758), "", "هماهنگی‌ها و سوالات کامل پرسیده شد"],
# 759
["", "ایده‌های استوری اکیپا آرت", "پرستو", "", "0.25", "0.25", "NotDone", h_formula(759), "", "ایده‌ها نوشته شد، بدون سناریو — یادآوری فردا برای نوشتن سناریو"],
]
print("1) Writing correct rows 754-759...")
r1 = m.composio_execute("GOOGLESHEETS_VALUES_UPDATE", {
"spreadsheet_id": m.SHEET_ID,
"range": "'Parastoo|Graphic'!A754:J759",
"value_input_option": "USER_ENTERED",
"values": correct_rows
})
print("Update 754-759:", (r1 or {}).get("updatedRange"))
print("2) Clearing duplicate rows 760-764...")
r2 = m.composio_execute("GOOGLESHEETS_CLEAR_VALUES", {
"spreadsheet_id": m.SHEET_ID,
"range": "'Parastoo|Graphic'!A760:N764"
})
print("Cleared 760-764:", (r2 or {}).get("clearedRange"))

View file

@ -0,0 +1,47 @@
import sys, json
sys.path.insert(0, "/app")
import sync_server as m
# Let's cleanly rewrite Thursday (9/24/2026) rows from row 760 onwards:
# 760: ['پ', 'دیلی ', 'پرستو', '9/24/2026', '', '0.25', 'Done', 'OverEstimate', '', '', '10:45', '18:30']
# 761: ['', 'سناریو های استوری آرت ', '', '', '', '1.5', 'Done']
# 762: ['', 'سناریو های استوری اکیپا ', '', '', '', '', 'NotDone', '-']
# 763: ['', 'جلسه با بنیامین و غزاله ', '', '', '', '2', 'Done']
# 764: ['', 'چک کردن تسک ها با غزل و گزارش دهی تلگرام ', '', '', '', '1.5', 'Done']
# 765: ['', 'جلسه با آقای فلاحی ', '', '', '', '0.25', 'Done']
# 766: ['', 'گزارش نیمه دوم شهریور ', '', '', '', '', 'NotDone', '-']
# 767: ['', 'پیگیری کارهای گروه فیلم‌برداری آیسا (ورکشاپ پخت سوشی و دریافت راش)', '', '', '0.25', '0.15', 'Done', 'UnderEstimate', '', 'پیگیری وضعیت تیزر و راش‌های خام ورکشاپ پخت سوشی']
# 768: ['', 'توضیح کار و شرایط همکاری به مهدیس', '', '', '0.25', '0.15', 'Done', 'UnderEstimate', '', 'معرفی اکیپا و توضیح مدل و هدف کار به مهدیس']
# 769: ['', 'پیگیری وضعیت ویدیوهای صدف (یوتیوب و ریلز ورکشاپ ۲۱ام)', '', '', '0.25', '0.1', 'Done', 'UnderEstimate', '', 'پیگیری وضعیت آماده‌سازی ویدیو یوتیوب و ریلز اینستاگرام']
# 770: ['', 'ساخت داشبورد گزارش وضعیت سوشال‌ها و فانل فروش (اتوماسیون KPIهای ۱۵ روزه)', '', '', '2', '0', 'NotDone', '-', '', 'طراحی فلو خودکار برای محاسبه KPIهای ۱۵ روزه و نرخ کلیک/تبدیل فروش — هنوز شروع نشده']
# 771: ['ش', 'سناریو های استوری اکیپا ', 'پرستو', '9/26/2026', '', '', 'NotDone', '-', '', '']
rows = [
["پ", "دیلی ", "پرستو", "9/24/2026", "", "0.25", "Done", "OverEstimate", "", "", "10:45", "18:30"],
["", "سناریو های استوری آرت ", "", "", "", "1.5", "Done", "-", "", ""],
["", "سناریو های استوری اکیپا ", "", "", "", "", "NotDone", "-", "", ""],
["", "جلسه با بنیامین و غزاله ", "", "", "", "2", "Done", "-", "", ""],
["", "چک کردن تسک ها با غزل و گزارش دهی تلگرام ", "", "", "", "1.5", "Done", "-", "", ""],
["", "جلسه با آقای فلاحی ", "", "", "", "0.25", "Done", "-", "", ""],
["", "گزارش نیمه دوم شهریور ", "", "", "", "", "NotDone", "-", "", ""],
["", "پیگیری کارهای گروه فیلم‌برداری آیسا (ورکشاپ سوشی)", "", "", "0.25", "0.15", "Done", "UnderEstimate", "", "پیگیری وضعیت تیزر و راش‌های خام ورکشاپ پخت سوشی"],
["", "توضیح کار و شرایط همکاری به مهدیس", "", "", "0.25", "0.15", "Done", "UnderEstimate", "", "معرفی اکیپا و توضیح مدل و هدف کار به مهدیس"],
["", "پیگیری وضعیت ویدیوهای صدف (یوتیوب و ریلز)", "", "", "0.25", "0.1", "Done", "UnderEstimate", "", "پیگیری وضعیت آماده‌سازی ویدیو یوتیوب و ریلز اینستاگرام ۲۱ام"],
["", "ساخت داشبورد گزارش وضعیت سوشال‌ها و فانل فروش (اتوماسیون KPIهای ۱۵ روزه)", "", "", "2", "0", "NotDone", "-", "", "طراحی فلو خودکار برای محاسبه KPIهای ۱۵ روزه و نرخ کلیک/تبدیل فروش — هنوز شروع نشده"],
["ش", "سناریو های استوری اکیپا ", "پرستو", "9/26/2026", "", "", "NotDone", "-", "", ""]
]
r = m.composio_execute("GOOGLESHEETS_VALUES_UPDATE", {
"spreadsheet_id": m.SHEET_ID,
"range": "'Parastoo|Graphic'!A760:L771",
"value_input_option": "USER_ENTERED",
"values": rows
})
print("Update result:", json.dumps(r, ensure_ascii=False))
# Clear trailing rows 772-785
m.composio_execute("GOOGLESHEETS_CLEAR_VALUES", {
"spreadsheet_id": m.SHEET_ID,
"range": "'Parastoo|Graphic'!A772:L785"
})
print("Cleared trailing rows 772-785")

View file

@ -0,0 +1,66 @@
import importlib.util, json, re
from collections import defaultdict
spec = importlib.util.spec_from_file_location("ss", "/app/sync_server.py")
m = importlib.util.module_from_spec(spec)
spec.loader.exec_module(m)
# Read ghazal-contetnt FULL width (A1:R2000), get K/L/M columns
rows = []
for start in range(1, 2200, 100):
d = m.composio_execute("GOOGLESHEETS_VALUES_GET", {"spreadsheet_id": m.SHEET_ID, "range": f"'ghazal-contetnt'!A{start}:R{start+99}"})
v = d.get("values", [])
if not v: break
rows.extend(v)
if len(v) < 100: break
def parse_time(x):
if x is None: return 0.0
s = str(x).strip().replace(",", ".")
if not s: return 0.0
if ":" in s:
parts = s.split(":")
try:
if len(parts) == 2: return float(parts[0]) + float(parts[1])/60
if len(parts) == 3: return float(parts[0]) + float(parts[1])/60 + float(parts[2])/3600
except Exception: return 0.0
tr = {"۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"}
try: return float("".join(tr.get(c,c) for c in s))
except Exception: return 0.0
clock_rows = []
for i, r in enumerate(rows):
if len(r) < 10: continue
task = str(r[1]).strip()
if not task or task.startswith("Task"): continue
cin = str(r[10]).strip() if len(r) > 10 else ""
cout = str(r[11]).strip() if len(r) > 11 else ""
wh = parse_time(r[12]) if len(r) > 12 else 0.0
act = parse_time(r[5]) if len(r) > 5 else 0.0
date_s = str(r[3]).strip() if len(r) > 3 else ""
status = str(r[6]).strip() if len(r) > 6 else ""
if cin or cout or wh or act:
clock_rows.append({"task": task[:40], "cin": cin, "cout": cout, "wh": wh, "act": act, "date": date_s, "status": status})
print("ghazal rows:", len(rows), "| with clock/act:", len(clock_rows))
for cr in clock_rows[:20]:
print(" ", cr["task"], "| in:", cr["cin"], "| out:", cr["cout"], "| wh:", cr["wh"], "| act:", cr["act"], "| date:", cr["date"], "| st:", cr["status"])
# aggregate workdays via clock-in pairs
pairs = defaultdict(list)
for cr in clock_rows:
if cr["cin"] and cr["cout"]:
pairs[(cr["cin"], cr["cout"])].append(cr)
print("\ndistinct clock pairs (workdays):", len(pairs))
tot_wh = sum(max(cr["wh"] for cr in v) if any(cr["wh"]>0 for cr in v) else 0 for v in pairs.values())
print("sum work_hours:", round(tot_wh, 1))
# fallback: rows with act only
act_rows = [cr for cr in clock_rows if cr["act"] > 0]
print("act rows:", len(act_rows), "sum act:", round(sum(cr["act"] for cr in act_rows), 1))
# rows with wh value
wh_rows = [cr for cr in clock_rows if cr["wh"] > 0]
print("wh rows:", len(wh_rows), "sum wh:", round(sum(cr["wh"] for cr in wh_rows), 1), "avg/row:", round(sum(cr["wh"] for cr in wh_rows)/max(len(wh_rows),1), 2))
print(">=8h:", sum(1 for cr in wh_rows if cr["wh"] >= 8), "<8h:", sum(1 for cr in wh_rows if 0 < cr["wh"] < 8))
# check dates on clock rows
dated = [cr for cr in clock_rows if "/" in cr["date"]]
print("clock rows with real date:", len(dated))

View file

@ -0,0 +1,31 @@
import sys, json
sys.path.insert(0, "/app")
import sync_server as m
# Read rows 773-900 in full to identify test rows vs real data
r = m.composio_execute("GOOGLESHEETS_VALUES_GET", {
"spreadsheet_id": m.SHEET_ID,
"range": "'Parastoo|Graphic'!A773:N900"
})
vals = (r or {}).get("values") or []
print(f"Read {len(vals)} rows (773-900)")
real = []
test = []
for i, row in enumerate(vals):
idx = 773 + i
task = (row[1] if len(row) > 1 else "").strip()
date = (row[3] if len(row) > 3 else "").strip()
if not task:
continue
# my test tasks are recognizable
if any(k in task for k in ["تست سینک", "تست زمان", "تست اتصال", "تست پایان"]):
test.append((idx, task, date))
else:
real.append((idx, task, date))
print(f"\nREAL tasks: {len(real)}")
for idx, t, d in real[:10]:
print(f" {idx}: {t[:45]} | {d}")
print(f"\nTEST tasks: {len(test)}")
for idx, t, d in test[:10]:
print(f" {idx}: {t[:45]} | {d}")

View file

@ -0,0 +1,19 @@
import sys, json
sys.path.insert(0, "/app")
import sync_server as m
r = m.composio_execute("GOOGLESHEETS_VALUES_GET", {
"spreadsheet_id": m.SHEET_ID,
"range": "'Parastoo|Graphic'!A815:N825"
})
vals = (r or {}).get("values") or []
for i, row in enumerate(vals):
print(f"{815+i}: {json.dumps(row, ensure_ascii=False)}")
print("\n--- real row 771 for comparison ---")
r2 = m.composio_execute("GOOGLESHEETS_VALUES_GET", {
"spreadsheet_id": m.SHEET_ID,
"range": "'Parastoo|Graphic'!A770:N773"
})
for i, row in enumerate((r2 or {}).get("values") or []):
print(f"{770+i}: {json.dumps(row, ensure_ascii=False)}")

View file

@ -0,0 +1,16 @@
import importlib.util, json
spec = importlib.util.spec_from_file_location("ss", "/app/sync_server.py")
m = importlib.util.module_from_spec(spec)
spec.loader.exec_module(m)
rng = "'Parastoo|Graphic'!A808:J850"
d = m.composio_execute("GOOGLESHEETS_VALUES_GET", {"spreadsheet_id": m.SHEET_ID, "range": rng})
v = d.get("values", [])
print("window rows:", len(v))
test_rows = []
for i, r in enumerate(v):
row_no = 808 + i
if any(str(x).strip() for x in r):
# NOTE: base row is offset by the number of blank leading rows returned
print(row_no, "|", " || ".join(str(x)[:26] for x in r[:10]))

View file

@ -0,0 +1,7 @@
import sys, json
sys.path.insert(0, "/app")
import sync_server as m
r = m.composio_execute("GOOGLESHEETS_VALUES_GET", {
"spreadsheet_id": m.SHEET_ID, "range": "'Parastoo|Graphic'!A810:L820"})
for i, row in enumerate((r or {}).get("values") or []):
print(f"{810+i}: {json.dumps([str(c)[:32] for c in row], ensure_ascii=False)}")

View file

@ -0,0 +1,49 @@
import sys, json
sys.path.insert(0, "/app")
import sync_server as m
# Thursday 9/24/2026 rows (760 to 766):
# 760: ['پ', 'دیلی ', 'پرستو', '9/24/2026', '', '0.25', 'Done', 'OverEstimate', '', '', '10:45', '18:30']
# 761: ['', 'سناریو های استوری آرت ', '', '', '', '1.5', 'Done', '-']
# 762: ['', 'سناریو های استوری اکیپا ', '', '', '', '', 'NotDone', '-']
# 763: ['', 'جلسه با بنیامین و غزاله ', '', '', '', '2', 'Done', '-']
# 764: ['', 'چک کردن تسک ها با غزل و گزارش دهی تلگرام ', '', '', '', '1.5', 'Done', '-']
# 765: ['', 'جلسه با آقای فلاحی ', '', '', '', '0.25', 'Done', '-']
# 766: ['', 'گزارش نیمه دوم شهریور ', '', '', '', '', 'NotDone', '-']
# Saturday 9/26/2026 rows (767 onwards):
# 767: ['ش', 'پیگیری کارهای گروه فیلم‌برداری آیسا (ورکشاپ سوشی)', 'پرستو', '9/26/2026', '0.25', '0.15', 'Done', 'UnderEstimate', '4 مهر', 'پیگیری وضعیت تیزر و راش‌های خام ورکشاپ پخت سوشی']
# 768: ['', 'توضیح کار و شرایط همکاری به مهدیس', '', '', '0.25', '0.15', 'Done', 'UnderEstimate', '', 'معرفی اکیپا و توضیح مدل و هدف کار به مهدیس']
# 769: ['', 'پیگیری وضعیت ویدیوهای صدف (یوتیوب و ریلز)', '', '', '0.25', '0.1', 'Done', 'UnderEstimate', '', 'پیگیری وضعیت آماده‌سازی ویدیو یوتیوب و ریلز اینستاگرام ۲۱ام']
# 770: ['', 'ساخت داشبورد گزارش وضعیت سوشال‌ها و فانل فروش (اتوماسیون KPIهای ۱۵ روزه)', '', '', '2', '0', 'NotDone', '-', '', 'طراحی فلو خودکار برای محاسبه KPIهای ۱۵ روزه و نرخ کلیک/تبدیل فروش — هنوز شروع نشده']
# 771: ['', 'سناریو های استوری اکیپا ', '', '', '', '', 'NotDone', '-', '', '']
thursday_and_saturday_rows = [
["پ", "دیلی ", "پرستو", "9/24/2026", "", "0.25", "Done", "OverEstimate", "", "", "10:45", "18:30"],
["", "سناریو های استوری آرت ", "", "", "", "1.5", "Done", "-", "", ""],
["", "سناریو های استوری اکیپا ", "", "", "", "", "NotDone", "-", "", ""],
["", "جلسه با بنیامین و غزاله ", "", "", "", "2", "Done", "-", "", ""],
["", "چک کردن تسک ها با غزل و گزارش دهی تلگرام ", "", "", "", "1.5", "Done", "-", "", ""],
["", "جلسه با آقای فلاحی ", "", "", "", "0.25", "Done", "-", "", ""],
["", "گزارش نیمه دوم شهریور ", "", "", "", "", "NotDone", "-", "", ""],
["ش", "پیگیری کارهای گروه فیلم‌برداری آیسا (ورکشاپ سوشی)", "پرستو", "9/26/2026", "0.25", "0.15", "Done", "UnderEstimate", "4 مهر", "پیگیری وضعیت تیزر و راش‌های خام ورکشاپ پخت سوشی"],
["", "توضیح کار و شرایط همکاری به مهدیس", "", "", "0.25", "0.15", "Done", "UnderEstimate", "", "معرفی اکیپا و توضیح مدل و هدف کار به مهدیس"],
["", "پیگیری وضعیت ویدیوهای صدف (یوتیوب و ریلز)", "", "", "0.25", "0.1", "Done", "UnderEstimate", "", "پیگیری وضعیت آماده‌سازی ویدیو یوتیوب و ریلز اینستاگرام ۲۱ام"],
["", "ساخت داشبورد گزارش وضعیت سوشال‌ها و فانل فروش (اتوماسیون KPIهای ۱۵ روزه)", "", "", "2", "0", "NotDone", "-", "", "طراحی فلو خودکار برای محاسبه KPIهای ۱۵ روزه و نرخ کلیک/تبدیل فروش — هنوز شروع نشده"],
["", "سناریو های استوری اکیپا ", "", "", "", "", "NotDone", "-", "", ""]
]
r = m.composio_execute("GOOGLESHEETS_VALUES_UPDATE", {
"spreadsheet_id": m.SHEET_ID,
"range": "'Parastoo|Graphic'!A760:L771",
"value_input_option": "USER_ENTERED",
"values": thursday_and_saturday_rows
})
print("Update result:", json.dumps(r, ensure_ascii=False))
# Clear trailing rows 772-785
m.composio_execute("GOOGLESHEETS_CLEAR_VALUES", {
"spreadsheet_id": m.SHEET_ID,
"range": "'Parastoo|Graphic'!A772:L785"
})
print("Cleared trailing rows 772-785")

View file

@ -0,0 +1,59 @@
{
"date": "2026-11-01",
"date_fa": "۱۴۰۵/۰۸/۱۰",
"day": "یکشنبه",
"total_hours": 4.42,
"total_hours_fa": "۴٫۴۲",
"tasks_count": 7,
"tasks": [
{
"jira_key": "EMO-1549",
"title": "نگارش کپشن و انتشار ۳ ویدیوی ایونت سازمانی در لینکدین",
"status": "Done",
"hours": 1.0,
"desc": "نوشتن کپشن‌های تخصصی B2B با تمرکز بر دردهای سازمانی، فرسودگی شغلی و تیم‌بیلدینگ، و آپلود و انتشار موفق ۳ ویدیو در لینکدین."
},
{
"jira_key": "EMO-1555",
"title": "تکمیل و اصلاحات تدوین سند برندبوک و هویت کلامی اکیپا",
"status": "In Progress",
"hours": 0.5,
"desc": "پیشبرد و تدوین بخش‌های هویت کلامی، لحن گفتار سازمانی (Tone of Voice)، ماتریس واژگان مجاز و ممنوعه و بازبینی هسته استراتژیک برندبوک اکیپا."
},
{
"jira_key": "EMO-1554",
"title": "بررسی و ادیت پاسخ اتومات دایرکت‌های وردست + پیگیری تلفنی و تیکت پشتیبانی",
"status": "Done",
"hours": 0.5,
"desc": "چک کردن و ویرایش دستی پاسخ‌های اتوماتیک هوش مصنوعی وردست روی دایرکت‌ها، پیگیری تلفنی دوم با پشتیبانی وردست (عدم پاسخگویی) و ثبت تیکت رسمی پشتیبانی جهت اصلاح عملکرد."
},
{
"jira_key": "EMO-1551",
"title": "طراحی فلو و سناریوی فروش ایونت از سوشال (مدل باهزینه و ارگانیک ۲ هفته و ۱ ماه)",
"status": "In Progress",
"hours": 0.5,
"desc": "تدوین فلوچارت، قیف فروش و سناریوهای فروش ایونت‌های سازمانی از طریق سوشال مدیا در دو مدل باهزینه (تبلیغات ادز/اینفلوئنسر) و ارگانیک در دو بازه ۲ هفته‌ای و ۱ ماهه (در حال پیشبرد)."
},
{
"jira_key": "EMO-1553",
"title": "گزارش تحلیلی اقدامات سوشال مدیا در فروش و نرخ تبدیل (Conversion)",
"status": "Done",
"hours": 0.75,
"desc": "تحلیل و بررسی داده‌های اقدامات شبکه‌های اجتماعی بر فروش، پایش لیدها و اندازه‌گیری دقیق نرخ تبدیل (کانورژن) کمپین‌ها و محتواهای منتشر شده."
},
{
"jira_key": "EMO-1550",
"title": "جلسه با کیمیا برای ایده‌پردازی و پیگیری‌های سوشال",
"status": "Done",
"hours": 0.17,
"desc": "جلسه همفکری و هماهنگی با کیمیا درباره ایده‌های محتوایی جدید، ترندهای تعاملی و پیگیری روند اجرای تسک‌های شبکه‌های اجتماعی اکیپا."
},
{
"jira_key": "EMO-1552",
"title": "اتصال هیگزفیلد به هرمس، اتوماسیون تولید ویدیوها و پیدا کردن سورس‌ها",
"status": "Done",
"hours": 1.0,
"desc": "اتصال و یکپارچه‌سازی پلتفرم Higgsfield با سیستم هوشمند هرمس، اتوماسیون فرآیند جنریت ویدیوهای سوشال و استخراج و دسته‌بندی سورس‌ها و پرامپت‌های تولید محتوا."
}
]
}

View file

@ -0,0 +1,81 @@
{
"date": "1405/08/13",
"gregorian_date": "2026-11-04",
"weekday": "چهارشنبه",
"entry_time": "10:30",
"exit_time": "18:00",
"total_work_minutes": 450,
"total_work_hours": "۷٫۵",
"tasks": [
{
"row": 1,
"title": "هماهنگی با غزاله و صدف برای تحویل ماگ از زیتون",
"category": "سایر و هماهنگی",
"minutes": 15,
"hours": "۰٫۲۵",
"status": "Done",
"jira_key": "EMO-1668",
"notes": "پیگیری، هماهنگی تلفنی و پیام با غزاله و صدف جهت تحویل گرفتن ماگ‌های اکیپا از زیتون"
},
{
"row": 2,
"title": "هماهنگی با غزاله برای فرستادن آیسا به ضبط",
"category": "ویدیو و تدوین",
"minutes": 30,
"hours": "۰٫۵",
"status": "Done",
"jira_key": "EMO-1669",
"notes": "هماهنگی آفیش و آماده‌سازی آیسا برای حضور در استودیو و جلسه ضبط محتوا"
},
{
"row": 3,
"title": "گزارش‌گیری وضعیت سوشال و فروش",
"category": "تحلیل داده و گزارش",
"minutes": 30,
"hours": "۰٫۵",
"status": "Done",
"jira_key": "EMO-1670",
"notes": "استخراج آمار بازدیدها، تعاملات شبکه‌های اجتماعی، لیدهای ورودی و نرخ تبدیل به فروش پکیج‌ها"
},
{
"row": 4,
"title": "کار کردن روی اتومات کردن تولید محتوا (اضافه کردن اسکیل، سناریونویسی، اتصال Higgsfield، آنالیز رقبا و نمونه‌های ادیت)",
"category": "ویدیو و تدوین",
"minutes": 120,
"hours": "۲٫۰",
"status": "Done",
"jira_key": "EMO-1671",
"notes": "کار روی پایپ‌لاین تولید خودکار محتوا: اضافه کردن اسکیل‌ها، نگارش سناریوهای هوش مصنوعی، تنظیم نحوه اتصال به ابزار هیگزفیلد، بررسی و بنچ‌مارک رقبا و آماده‌سازی نمونه‌های ادیت ویدیویی"
},
{
"row": 5,
"title": "پیدا کردن اینفلوئنسر و اتومات کردن مراحل پیدا کردن اینفلوئنسر اینستا + پیدا کردن روزانه ۲۰ اینفلوئنسر و ارائه گزارش در تلگرام",
"category": "اینفلوئنسر مارکتینگ",
"minutes": 60,
"hours": "۱٫۰",
"status": "Done",
"jira_key": "EMO-1672",
"notes": "فرآیند اتوماتیک یافتن اینفلوئنسرها، غربالگری ۲۰ اینفلوئنسر روزانه و ارسال گزارش تحلیلی در تلگرام"
},
{
"row": 6,
"title": "پیدا کردن کانال تبلیغات و نوشتن محتوا برای ارسال به ادمین‌های بله و سعی در اتومات کردن",
"category": "تلگرام و بله",
"minutes": 150,
"hours": "۲٫۵",
"status": "Done",
"jira_key": "EMO-1673",
"notes": "جستجو و انتخاب کانال‌های پربازده بله، نگارش کپی و متن بنر تبلیغاتی اختصاصی و تلاش در جهت اتومات کردن فرآیند ارتباط و ارسال"
},
{
"row": 7,
"title": "قیمت‌گذاری و اصلاح پکیج آرت برای سوشال",
"category": "کمپین و سوشال",
"minutes": 45,
"hours": "۰٫۷۵",
"status": "Done",
"jira_key": "EMO-1674",
"notes": "بررسی مارجین سود، اصلاح قیمت‌ها و بازطراحی بسته‌های تفریحی اکیپا آرت برای معرفی در شبکه‌های اجتماعی"
}
]
}

View file

@ -0,0 +1,22 @@
{
"date": "1405/08/14",
"gregorian_date": "2026-11-05",
"weekday": "پنجشنبه",
"entry_time": "—",
"exit_time": "—",
"status": "مرخصی",
"total_work_minutes": 0,
"total_work_hours": "۰٫۰",
"tasks": [
{
"row": 1,
"title": "مرخصی روزانه",
"category": "مرخصی و عدم حضور",
"minutes": 0,
"hours": "۰٫۰",
"status": "Done",
"jira_key": "LEAVE",
"notes": "مرخصی روزانه با هماهنگی تیم"
}
]
}

View file

@ -0,0 +1,31 @@
{
"date": "1405/08/15",
"gregorian_date": "2026-11-06",
"weekday": "جمعه",
"entry_time": "غیرحضوری / ریموت",
"exit_time": "—",
"total_work_minutes": 45,
"total_work_hours": "۰٫۷۵",
"tasks": [
{
"row": 1,
"title": "تماس با آیسا (ضبط کنسل شد به دلیل تکمیل نبودن ظرفیت)",
"category": "ویدیو و تدوین",
"minutes": 15,
"hours": "۰٫۲۵",
"status": "Done",
"jira_key": "EMO-1675",
"notes": "بررسی آمار ثبت‌نامی‌ها و تماس با آیسا برای کنسل کردن تایم ضبط استودیو به دلیل تکمیل نبودن ظرفیت"
},
{
"row": 2,
"title": "هماهنگی برای گرفتن پنل مبینا از روز چهارشنبه تا جمعه (پنل هنوز مشکل داره)",
"category": "سایر و زیرساخت",
"minutes": 30,
"hours": "۰٫۵",
"status": "In Progress",
"jira_key": "EMO-1676",
"notes": "هماهنگی‌های مکرر فنی و ارتباط با پشتیبانی جهت رفع مشکل دسترسی و تحویل‌گیری پنل مبینا"
}
]
}

View file

@ -0,0 +1,81 @@
{
"date": "1405/08/16",
"gregorian_date": "2026-11-07",
"weekday": "شنبه",
"entry_time": "10:00",
"exit_time": "18:00",
"total_work_minutes": 380,
"total_work_hours": "۶٫۳۳",
"tasks": [
{
"row": 1,
"title": "پیگیری نهایی دسترسی پنل مبینا و تکمیل فعال‌سازی",
"category": "زیرساخت و دسترسی",
"minutes": 15,
"hours": "۰٫۲۵",
"status": "Done",
"jira_key": "EMO-1685",
"notes": "پیگیری نهایی با تیم فنی/پشتیبانی و اتمام فرآیند دریافت و فعال‌سازی دسترسی پنل مبینا"
},
{
"row": 2,
"title": "استعلام نرخ، مذاکره با ادمین‌ها و نهایی‌سازی یک تبلیغ در بله",
"category": "تلگرام و بله",
"minutes": 150,
"hours": "۲٫۵",
"status": "Done",
"jira_key": "EMO-1686",
"notes": "استعلام تعرفه‌های تبلیغاتی کانال‌های پیام‌رسان بله، ارتباط با ادمین‌ها و نهایی کردن یک جایگاه تبلیغاتی (در انتظار ارسال بنر، محتوا و پرداخت تسویه) + ارسال بنر و محتوا، پرداخت هزینه تبلیغ و دریافت اسلات زمانی"
},
{
"row": 3,
"title": "طراحی فلو و اتوماسیون محتواهای ادز تلگرام (سناریونویسی و UTM)",
"category": "کمپین و اتوماسیون",
"minutes": 120,
"hours": "۲٫۰",
"status": "Done",
"jira_key": "EMO-1687",
"notes": "ساخت فلو کامل اتوماتیک برای محتواهای تبلیغاتی تلگرام ادز شامل سناریونویسی و ساختارهای استاندارد UTMها، آماده برای ران کردن کمپین‌ها"
},
{
"row": 4,
"title": "جلسه هماهنگی با آقای فلاحی و غزل",
"category": "جلسات و هماهنگی",
"minutes": 60,
"hours": "۱٫۰",
"status": "Done",
"jira_key": "EMO-1688",
"notes": "بررسی اولویت‌های مارکتینگ، کمپین‌های تبلیغاتی پیش‌رو، محتوای سوشال و هماهنگی‌های تیم"
},
{
"row": 5,
"title": "نهایی‌سازی پرداخت تسویه‌حساب صدف",
"category": "مالی و تسویه",
"minutes": 10,
"hours": "۰٫۱۷",
"status": "Done",
"jira_key": "EMO-1689",
"notes": "کنترل فاکتور، هماهنگی‌های مالی و پرداخت نهایی دستمزد صدف برای محتواها"
},
{
"row": 6,
"title": "نهایی‌سازی پیش‌پرداخت ضبط آیسا",
"category": "مالی و تسویه",
"minutes": 10,
"hours": "۰٫۱۷",
"status": "Done",
"jira_key": "EMO-1690",
"notes": "هماهنگی و واریز پیش‌پرداخت مربوط به تایم‌های ضبط محتوای آیسا"
},
{
"row": 7,
"title": "تحویل محتواهای آماده به غزل جهت بارگذاری و انتشار",
"category": "ویدیو و تدوین",
"minutes": 15,
"hours": "۰٫۲۵",
"status": "Done",
"jira_key": "EMO-1697",
"notes": "بررسی نهایی، ارسال راش‌ها و محتواهای ادیت‌شده به غزل جهت آپلود و انتشار در کانال‌ها/پیج"
}
]
}

View file

@ -0,0 +1,39 @@
{
"date_fa": "۱۴۰۵/۰۸/۰۷",
"day_name": "چهارشنبه",
"entry_time": "11:00",
"exit_time": "",
"rows": [
{
"task": "جلسه هماهنگی و پیدا کردن لوکیشن",
"hours": 0.17,
"jira_key": "EMO-1402",
"status": "انجام شد"
},
{
"task": "ممیزی، بازیابی و همگام‌سازی کامل تسک‌های مهر و آبان در جیرا و شیت (با هوش مصنوعی)",
"hours": 0.75,
"jira_key": "EMO-1481",
"status": "انجام شد"
},
{
"task": "اتومات کردن گزارش‌های دوهفته‌ای و اتصال شیت (کامپوزیو)",
"hours": 1.0,
"jira_key": "EMO-1483",
"status": "در حال انجام (قطع شدن کامپوزیو و ارجاع به احسان)"
},
{
"task": "بررسی و بازبینی تسک‌های روزانه",
"hours": 0.17,
"jira_key": "EMO-1484",
"status": "انجام شد"
},
{
"task": "گرفتن قرارداد، ثبت قرارداد و هماهنگی برای لوکیشن‌ها",
"hours": 0.5,
"jira_key": "EMO-1485",
"status": "انجام شد"
}
],
"total_hours": 2.59
}

View file

@ -0,0 +1,73 @@
{
"date_fa": "۱۴۰۵/۰۸/۰۸",
"day_name": "پنجشنبه",
"entry_time": "11:00",
"exit_time": "18:30",
"rows": [
{
"task": "جلسه مارکتینگ",
"owner": "پرستو",
"date": "29/10/2026",
"est": "1.5",
"actual": "1.5",
"status": "Done",
"est_status": "Exact",
"jira_key": "EMO-1499",
"note": "بررسی شاخص‌ها و KPIهای بازاریابی، بررسی کمپین هالووین و نیازمندی‌های هفته آینده",
"entry_time": "11:00",
"exit_time": "18:30"
},
{
"task": "جلسه با غزل",
"owner": "پرستو",
"date": "29/10/2026",
"est": "0.5",
"actual": "0.5",
"status": "Done",
"est_status": "Exact",
"jira_key": "EMO-1500",
"note": "هماهنگی ویدیوها و ریلزهای اکیپا و اکیپا آرت، ادیت و اولویت‌های انتشار",
"entry_time": "",
"exit_time": ""
},
{
"task": "سناریو نویسی",
"owner": "پرستو",
"date": "29/10/2026",
"est": "2",
"actual": "2",
"status": "Done",
"est_status": "Exact",
"jira_key": "EMO-1501",
"note": "ایده‌پردازی و نگارش دیالوگ‌ها، مشخص کردن پلان‌ها و دستورالعمل تدوین ریلزها",
"entry_time": "",
"exit_time": ""
},
{
"task": "ارسال محتوای تولید شده برای سکرت اف",
"owner": "پرستو",
"date": "29/10/2026",
"est": "0.25",
"actual": "0.25",
"status": "Done",
"est_status": "Exact",
"jira_key": "EMO-1491",
"note": "جمع‌آوری فایل‌های محتوا، کنترل کیفیت و ارسال به رابط سکرت اف",
"entry_time": "",
"exit_time": ""
},
{
"task": "فروش پکیجی‌ها از طریق سوشال",
"owner": "پرستو",
"date": "29/10/2026",
"est": "",
"actual": "0",
"status": "To Do",
"est_status": "NotStarted",
"jira_key": "EMO-1490",
"note": "انجام نشد - موکول به روزهای بعد",
"entry_time": "",
"exit_time": ""
}
]
}

View file

@ -0,0 +1,79 @@
{
"date": "2026-10-31",
"date_fa": "۱۴۰۵/۰۸/۰۹",
"day": "شنبه",
"check_in": "10:30",
"check_out": "18:30",
"total_presence_hours": 8.0,
"total_presence_hours_fa": "۸٫۰",
"total_work_hours": 8.0,
"total_work_hours_fa": "۸٫۰",
"tasks_count": 8,
"all_done": true,
"tasks": [
{
"jira_key": "EMO-1517",
"title": "جلسه دیلی شروع هفته",
"time_spent": "10m",
"hours": 0.17,
"hours_fa": "۰٫۱۷",
"status": "Done"
},
{
"jira_key": "EMO-1518",
"title": "چک کردن نحوه گزارش‌دهی غزل",
"time_spent": "5m",
"hours": 0.08,
"hours_fa": "۰٫۰۸",
"status": "Done"
},
{
"jira_key": "EMO-1519",
"title": "فرستادن پیامک گروهی",
"time_spent": "10m",
"hours": 0.17,
"hours_fa": "۰٫۱۷",
"status": "Done"
},
{
"jira_key": "EMO-1520",
"title": "بهبود و افزایش اسکیل‌های هرمس",
"time_spent": "20m",
"hours": 0.33,
"hours_fa": "۰٫۳۳",
"status": "Done"
},
{
"jira_key": "EMO-1527",
"title": "جلسه گزارش‌دهی مالی و حقوقی با آقای فلاحی",
"time_spent": "30m",
"hours": 0.5,
"hours_fa": "۰٫۵",
"status": "Done"
},
{
"jira_key": "EMO-1528",
"title": "استراتژی محتوایی، سناریونویسی و پلن تلگرام ادز ایونت‌های سازمانی",
"time_spent": "2h 15m",
"hours": 2.25,
"hours_fa": "۲٫۲۵",
"status": "Done"
},
{
"jira_key": "EMO-1529",
"title": "تدوین اصول برندبوک، بیانیه ماموریت و پرسونای B2B و B2C اکیپا",
"time_spent": "2h",
"hours": 2.0,
"hours_fa": "۲٫۰",
"status": "Done"
},
{
"jira_key": "EMO-1530",
"title": "دریافت راش‌ها، تدوین، هوک‌گذاری و رندر ۶ ویدیوی ایونت سازمانی برای لینکدین",
"time_spent": "2h 30m",
"hours": 2.5,
"hours_fa": "۲٫۵",
"status": "Done"
}
]
}

View file

@ -0,0 +1,23 @@
import sys, json
sys.path.insert(0, "/app")
import sync_server as m
# 1) Fix row 759: ensure Col C = "پرستو"
r1 = m.composio_execute("GOOGLESHEETS_VALUES_UPDATE", {
"spreadsheet_id": m.SHEET_ID,
"range": "'Parastoo|Graphic'!C759",
"value_input_option": "USER_ENTERED",
"values": [["پرستو"]]
})
print("Fixed 759 C:", r1)
# 2) Overwrite rows 760-770 with completely empty strings
empty_matrix = [[""] * 14 for _ in range(11)]
r2 = m.composio_execute("GOOGLESHEETS_VALUES_UPDATE", {
"spreadsheet_id": m.SHEET_ID,
"range": "'Parastoo|Graphic'!A760:N770",
"value_input_option": "USER_ENTERED",
"values": empty_matrix
})
print("Cleared 760-770:", (r2 or {}).get("updatedRange"))

View file

@ -0,0 +1,10 @@
import sys, json
sys.path.insert(0, "/app")
import sync_server as m
r = m.composio_execute("GOOGLESHEETS_VALUES_GET", {
"spreadsheet_id": m.SHEET_ID, "range": "'Parastoo|Graphic'!A2:N2"})
headers = (r or {}).get("values", [[]])[0]
cols = ["A","B","C","D","E","F","G","H","I","J","K","L","M","N"]
for c, h in zip(cols, headers):
print(f"Col {c}: {h}")

View file

@ -0,0 +1,19 @@
import importlib.util, json
spec = importlib.util.spec_from_file_location("ss", "/app/sync_server.py")
m = importlib.util.module_from_spec(spec)
spec.loader.exec_module(m)
# Check remaining tabs for content calendars (insta/linkedin/telegram)
tabs = ["hand off", "Sara", "Sheida", "Iman", "Backlog&Bug", "Task Dashboard", "Metric Dashboard", "Rokhsareh|Commeical"]
for tab in tabs:
print("=" * 60)
print("TAB:", repr(tab))
try:
d = m.composio_execute("GOOGLESHEETS_VALUES_GET", {"spreadsheet_id": m.SHEET_ID, "range": f"'{tab}'!A1:H16"})
v = d.get("values", [])
print("rows:", len(v))
for i, r in enumerate(v[:14]):
print(" ", i + 1, "|", " || ".join(str(x)[:24] for x in r[:8]))
except Exception as e:
print("ERR:", str(e)[:150])

View file

@ -0,0 +1,13 @@
import importlib.util, json
spec = importlib.util.spec_from_file_location("ss", "/app/sync_server.py")
m = importlib.util.module_from_spec(spec)
spec.loader.exec_module(m)
# Full width of Parastoo|Graphic: read A1:N40 to see all columns incl. K/L/M/N
d = m.composio_execute("GOOGLESHEETS_VALUES_GET", {"spreadsheet_id": m.SHEET_ID, "range": "'Parastoo|Graphic'!A1:N40"})
v = d.get("values", [])
print("rows:", len(v))
for i, r in enumerate(v):
if any(str(x).strip() for x in r):
print(f"row {i+1} ({len(r)} cols):", " || ".join(str(x)[:20] for x in r))

Some files were not shown because too many files have changed in this diff Show more