@bendyline/gilde 0.3.12 → 0.3.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/authoring/chat-models/spark-x2.6-4b-q4.json +121 -0
  2. package/data/chat-models/index.json +1 -1
  3. package/data/chat-models/raw-index.json +1 -1
  4. package/data/chat-models/sp/spark-x2.6-4b-q4/manifest.json +125 -0
  5. package/data/chat-models/sp/spark-x2.6-4b-q4/versions/1.0.0/manifest.json +15 -0
  6. package/data/connector-types/bl/bluesky-posts/manifest.json +1 -1
  7. package/data/connector-types/bl/bluesky-posts/versions/1.0.3/manifest.json +95 -0
  8. package/data/connector-types/ca/calendar-google/versions/1.0.2/manifest.json +67 -0
  9. package/data/connector-types/in/instagram-media/manifest.json +1 -1
  10. package/data/connector-types/in/instagram-media/versions/1.0.2/manifest.json +98 -0
  11. package/data/connector-types/index.json +1 -1
  12. package/data/connector-types/li/linkedin-posts/manifest.json +1 -1
  13. package/data/connector-types/li/linkedin-posts/versions/1.0.1/manifest.json +56 -0
  14. package/data/connector-types/raw-index.json +1 -1
  15. package/data/connector-types/x-/x-posts/manifest.json +1 -1
  16. package/data/connector-types/x-/x-posts/versions/1.0.2/manifest.json +95 -0
  17. package/data/craftbook-templates/bo/board-game-web/versions/1.0.5/craftbook.json +317 -0
  18. package/data/craftbook-templates/bo/board-game-web/versions/1.0.5/test.json +99 -0
  19. package/data/craftbook-templates/ca/canvas-generative-art/versions/1.0.5/craftbook.json +254 -0
  20. package/data/craftbook-templates/ca/canvas-generative-art/versions/1.0.5/test.json +106 -0
  21. package/data/craftbook-templates/ch/chart-pack/versions/1.0.5/craftbook.json +317 -0
  22. package/data/craftbook-templates/ch/chart-pack/versions/1.0.5/test.json +104 -0
  23. package/data/craftbook-templates/da/data-viz-page/versions/1.0.5/craftbook.json +318 -0
  24. package/data/craftbook-templates/da/data-viz-page/versions/1.0.5/test.json +117 -0
  25. package/data/craftbook-templates/fo/form-wizard/versions/1.0.5/craftbook.json +251 -0
  26. package/data/craftbook-templates/fo/form-wizard/versions/1.0.5/test.json +110 -0
  27. package/data/craftbook-templates/ga/game-with-screens/versions/1.0.5/craftbook.json +335 -0
  28. package/data/craftbook-templates/ga/game-with-screens/versions/1.0.5/test.json +99 -0
  29. package/data/craftbook-templates/ht/html-puzzle-game/versions/1.0.5/craftbook.json +317 -0
  30. package/data/craftbook-templates/ht/html-puzzle-game/versions/1.0.5/test.json +99 -0
  31. package/data/craftbook-templates/id/idle-clicker-game/versions/1.0.5/craftbook.json +317 -0
  32. package/data/craftbook-templates/id/idle-clicker-game/versions/1.0.5/test.json +99 -0
  33. package/data/craftbook-templates/in/interactive-quiz/versions/1.0.5/craftbook.json +310 -0
  34. package/data/craftbook-templates/in/interactive-quiz/versions/1.0.5/test.json +124 -0
  35. package/data/craftbook-templates/index.json +1 -1
  36. package/data/craftbook-templates/kp/kpi-scorecard/versions/1.0.6/craftbook.json +317 -0
  37. package/data/craftbook-templates/kp/kpi-scorecard/versions/1.0.6/test.json +84 -0
  38. package/data/craftbook-templates/mi/micro-game-jam/versions/1.0.5/craftbook.json +258 -0
  39. package/data/craftbook-templates/mi/micro-game-jam/versions/1.0.5/test.json +99 -0
  40. package/data/craftbook-templates/on/onboarding-flow/versions/1.0.6/craftbook.json +310 -0
  41. package/data/craftbook-templates/on/onboarding-flow/versions/1.0.6/test.json +85 -0
  42. package/data/craftbook-templates/ph/physics-toy/versions/1.0.6/craftbook.json +251 -0
  43. package/data/craftbook-templates/ph/physics-toy/versions/1.0.6/test.json +75 -0
  44. package/data/craftbook-templates/pu/pull-request-review/versions/1.9.18/craftbook.json +611 -0
  45. package/data/craftbook-templates/pu/pull-request-review/versions/1.9.18/test.json +156 -0
  46. package/data/craftbook-templates/raw-index.json +1 -1
  47. package/data/craftbook-templates/sp/spa-dashboard/versions/1.0.6/craftbook.json +315 -0
  48. package/data/craftbook-templates/sp/spa-dashboard/versions/1.0.6/test.json +85 -0
  49. package/data/craftbook-templates/we/web-app-crud/versions/1.0.6/craftbook.json +310 -0
  50. package/data/craftbook-templates/we/web-app-crud/versions/1.0.6/test.json +85 -0
  51. package/data/gezel-templates/index.json +1 -1
  52. package/data/gezel-templates/me/meester/versions/1.4.2/about.md +26 -0
  53. package/data/gezel-templates/me/meester/versions/1.4.2/manifest.json +9 -0
  54. package/data/gezel-templates/raw-index.json +1 -1
  55. package/data/page-libraries/ch/chart.js/manifest.json +19 -0
  56. package/data/page-libraries/ch/chart.js/versions/1.0.0/manifest.json +70 -0
  57. package/data/page-libraries/d3/d3/manifest.json +20 -0
  58. package/data/page-libraries/d3/d3/versions/1.0.0/manifest.json +661 -0
  59. package/data/page-libraries/ht/htm/manifest.json +19 -0
  60. package/data/page-libraries/ht/htm/versions/1.0.0/manifest.json +45 -0
  61. package/data/page-libraries/index.json +1 -0
  62. package/data/page-libraries/ku/kurkle-color/manifest.json +18 -0
  63. package/data/page-libraries/ku/kurkle-color/versions/1.0.0/manifest.json +38 -0
  64. package/data/page-libraries/pr/preact/manifest.json +19 -0
  65. package/data/page-libraries/pr/preact/versions/1.0.0/manifest.json +52 -0
  66. package/data/page-libraries/raw-index.json +1 -0
  67. package/data/page-libraries/re/react/manifest.json +19 -0
  68. package/data/page-libraries/re/react/versions/1.0.0/manifest.json +197 -0
  69. package/data/page-libraries/re/react-dom/manifest.json +19 -0
  70. package/data/page-libraries/re/react-dom/versions/1.0.0/manifest.json +161 -0
  71. package/data/page-libraries/sc/scheduler/manifest.json +18 -0
  72. package/data/page-libraries/sc/scheduler/versions/1.0.0/manifest.json +61 -0
  73. package/data/page-libraries/th/three/manifest.json +21 -0
  74. package/data/page-libraries/th/three/versions/1.0.0/manifest.json +217 -0
  75. package/data/page-libraries/vu/vue/manifest.json +19 -0
  76. package/data/page-libraries/vu/vue/versions/1.0.0/manifest.json +46 -0
  77. package/package.json +1 -1
  78. package/schemas/connector-type-test.schema.json +225 -0
  79. package/schemas/connector-type-version.schema.json +22 -0
  80. package/schemas/craftbook-doc.schema.json +16 -0
  81. package/schemas/craftbook-template-version.schema.json +16 -0
  82. package/schemas/craftbook-test.schema.json +1 -0
  83. package/schemas/page-library-identity.schema.json +99 -0
  84. package/schemas/page-library-version.schema.json +372 -0
@@ -0,0 +1,125 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "kind": "chat-model",
4
+ "id": "spark-x2.6-4b-q4",
5
+ "name": "Spark-X2.6 (4B, Q4)",
6
+ "description": "XHToken's compact on-device agent model, tuned for tool use, coding and multi-step tasks. Three of every four layers use a 512-token sliding window, so its context cache is small: about 2.4 GB at 64K tokens in FP16, half that at Gezel's default cache setting. The Q4 download is 3.5 GB. Text-only, with adjustable thinking, native tool calling, and English + Chinese.",
7
+ "tags": [
8
+ "xhtoken",
9
+ "agentic",
10
+ "coding",
11
+ "tools",
12
+ "reasoning",
13
+ "long-context",
14
+ "multilingual",
15
+ "small",
16
+ "open-weights"
17
+ ],
18
+ "category": "general",
19
+ "maintainer": {
20
+ "name": "XHToken",
21
+ "url": "https://huggingface.co/XHToken/Spark-X2.6-4B-GGUF"
22
+ },
23
+ "version": "1.0.0",
24
+ "updatedAt": "2026-11-19T00:00:00Z",
25
+ "license": "Apache-2.0",
26
+ "licenseClass": "open",
27
+ "licenseShortName": "Apache 2.0",
28
+ "parameterSize": "4B",
29
+ "approxSizeBytes": 3543441312,
30
+ "supportsTools": true,
31
+ "contextWindow": 262144,
32
+ "kvBytesPerTokenF16": 36864,
33
+ "kvFixedBytesF16": 113246208,
34
+ "upstream": "https://huggingface.co/XHToken/Spark-X2.6-4B",
35
+ "style": {
36
+ "family": "other",
37
+ "reasoningFormat": "think",
38
+ "toolCallFormat": "function-call"
39
+ },
40
+ "behaviors": [
41
+ "reasoning.strip-think-tags",
42
+ "prompt.private-reasoning-guidance",
43
+ "prompt.tool-cookbook-full",
44
+ "mcp.compact-tool-schemas",
45
+ "mcp.relax-required-fields",
46
+ "mcp.default-missing-fields",
47
+ "fabrication.detect-past-tense-no-tools",
48
+ "prompt.retrieval-first",
49
+ {
50
+ "id": "turn.continuation-budget",
51
+ "config": {
52
+ "count": 4
53
+ }
54
+ },
55
+ "turn.preamble-folding",
56
+ "turn.ramble-detection",
57
+ "prompt.prefer-writefile-edits"
58
+ ],
59
+ "tuning": {
60
+ "sampling": {
61
+ "temperature": 1,
62
+ "topP": 0.95,
63
+ "maxTokens": 16384
64
+ },
65
+ "samplingWhenThinking": {
66
+ "temperature": 1,
67
+ "topP": 0.95
68
+ },
69
+ "reasoning": {
70
+ "enableThinking": true,
71
+ "thinkingBudget": 8192
72
+ },
73
+ "profiles": {
74
+ "thinking-general": {
75
+ "sampling": {
76
+ "temperature": 1,
77
+ "topP": 0.95,
78
+ "maxTokens": 16384
79
+ }
80
+ },
81
+ "thinking-coding": {
82
+ "sampling": {
83
+ "temperature": 1,
84
+ "topP": 0.95,
85
+ "maxTokens": 16384
86
+ }
87
+ },
88
+ "thinking-precise": {
89
+ "sampling": {
90
+ "temperature": 1,
91
+ "topP": 0.95,
92
+ "maxTokens": 16384
93
+ }
94
+ },
95
+ "instruct": {
96
+ "sampling": {
97
+ "temperature": 0.7,
98
+ "topP": 0.95,
99
+ "maxTokens": 8192
100
+ },
101
+ "reasoning": {
102
+ "enableThinking": false
103
+ }
104
+ },
105
+ "creative": {
106
+ "sampling": {
107
+ "temperature": 1,
108
+ "topP": 0.95,
109
+ "maxTokens": 8192
110
+ },
111
+ "reasoning": {
112
+ "enableThinking": false
113
+ }
114
+ }
115
+ }
116
+ },
117
+ "llamaCpp": {
118
+ "huggingfaceRepo": "XHToken/Spark-X2.6-4B-GGUF",
119
+ "revision": "9d716770ac7477776de5f891f70cdf98b003a5cd",
120
+ "filename": "Spark-X2.6-4B-Q4_K_M.gguf",
121
+ "sha256": "91cb2811aebb47ac916aa619d27d4cdd7f4143106b7917accb8ead4cd7f5cbd9",
122
+ "approxSizeBytes": 3543441312,
123
+ "quantization": "Q4_K_M"
124
+ }
125
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "version": "1.0.0",
4
+ "releasedAt": "2026-11-19T00:00:00Z",
5
+ "minGezelVersion": "1.26317",
6
+ "approxSizeBytes": 3543441312,
7
+ "llamaCpp": {
8
+ "huggingfaceRepo": "XHToken/Spark-X2.6-4B-GGUF",
9
+ "revision": "9d716770ac7477776de5f891f70cdf98b003a5cd",
10
+ "filename": "Spark-X2.6-4B-Q4_K_M.gguf",
11
+ "sha256": "91cb2811aebb47ac916aa619d27d4cdd7f4143106b7917accb8ead4cd7f5cbd9",
12
+ "approxSizeBytes": 3543441312,
13
+ "quantization": "Q4_K_M"
14
+ }
15
+ }
@@ -3,7 +3,7 @@
3
3
  "kind": "connector-type",
4
4
  "id": "bluesky-posts",
5
5
  "name": "Bluesky Posts",
6
- "description": "Keep a searchable copy of your Bluesky presence: your posts with their likes and reposts, mentions and replies from others, and a daily follower count. Sign in with an app password from Bluesky's settings — never your real password. Your crew can also draft posts for you, and with your permission publish them; every publish still asks for your consent.",
6
+ "description": "Keep a searchable copy of your Bluesky presence: your posts with their likes and reposts, mentions and replies from others, and a daily follower count. Sign in with an app password from Bluesky's settings — never your real password. Your crew can also draft posts for you and, once you allow publishing, post them while working on something you asked for. Anything they post on their own waits for your approval.",
7
7
  "tags": [
8
8
  "bluesky",
9
9
  "social",
@@ -0,0 +1,95 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "version": "1.0.3",
4
+ "releasedAt": "2026-11-20T00:00:00Z",
5
+ "minGezelVersion": "1.26325",
6
+ "driver": "native",
7
+ "source": {
8
+ "adapterId": "bluesky-posts"
9
+ },
10
+ "configSchema": {
11
+ "type": "object",
12
+ "properties": {
13
+ "handle": {
14
+ "type": "string",
15
+ "title": "Bluesky handle",
16
+ "description": "Your full handle, such as yourname.bsky.social.",
17
+ "x-gezel-priority": "primary"
18
+ },
19
+ "service": {
20
+ "type": "string",
21
+ "title": "Service URL",
22
+ "default": "https://bsky.social"
23
+ },
24
+ "syncMentions": {
25
+ "type": "boolean",
26
+ "title": "Sync mentions, replies, and quotes",
27
+ "default": true
28
+ },
29
+ "allowPublish": {
30
+ "type": "boolean",
31
+ "title": "Allow publishing",
32
+ "description": "This project's gezels may post as you. They post right away while working on something you just asked for. Anything they post otherwise, on a schedule, overnight, or for another gezel, waits in the outbox until you approve it in Connections.",
33
+ "default": false
34
+ },
35
+ "metricsWindowDays": {
36
+ "type": "integer",
37
+ "title": "Days of recent posts to keep engagement counts fresh for",
38
+ "default": 30,
39
+ "minimum": 1,
40
+ "maximum": 365
41
+ },
42
+ "metricsRefreshHours": {
43
+ "type": "number",
44
+ "title": "Hours between engagement-count refreshes",
45
+ "default": 6
46
+ },
47
+ "statsIntervalHours": {
48
+ "type": "number",
49
+ "title": "Hours between account-stats snapshots",
50
+ "default": 6
51
+ },
52
+ "metricsHistory": {
53
+ "type": "boolean",
54
+ "title": "Record daily engagement history records",
55
+ "description": "One per post per day while a post stays inside the metrics window",
56
+ "default": true
57
+ }
58
+ },
59
+ "required": [
60
+ "handle"
61
+ ]
62
+ },
63
+ "secretShape": {
64
+ "kind": "apikey",
65
+ "field": "appPassword",
66
+ "label": "Bluesky app password",
67
+ "required": true,
68
+ "x-gezel-priority": "primary",
69
+ "description": "Do not enter your normal Bluesky account password. Create a separate app password in Bluesky, then paste the generated app password here.",
70
+ "helpUrl": "https://bsky.app/settings/app-passwords",
71
+ "helpLabel": "Open Bluesky app-password settings"
72
+ },
73
+ "setupInstructions": {
74
+ "title": "Create a Bluesky app password",
75
+ "description": "Create this password inside Bluesky. If Bluesky asks you to sign in, enter your normal password only on Bluesky's own site — never in Gezel.",
76
+ "steps": [
77
+ "Open Bluesky's App Passwords settings using the link below and sign in to Bluesky if asked.",
78
+ "Choose Add App Password and give it a name such as Gezel.",
79
+ "Copy the generated app password, return to Gezel, and paste it into the Bluesky app password field."
80
+ ],
81
+ "url": "https://bsky.app/settings/app-passwords",
82
+ "urlLabel": "Open Bluesky app-password settings"
83
+ },
84
+ "normalize": {
85
+ "kind": "native"
86
+ },
87
+ "actions": [
88
+ {
89
+ "name": "publish",
90
+ "consentScope": "social-publish"
91
+ }
92
+ ],
93
+ "completeness": "window",
94
+ "notes": "Syncs three things from the signed-in account: the account's own posts (text, language, reply threading, link and image-description context, plus like/repost/reply/quote counts), mentions of the account (mention, reply, and quote notifications), and a once-per-day account-stats record (followers, following, total posts) refreshed at the configured interval. Engagement counts on posts from the last metricsWindowDays are re-observed roughly every metricsRefreshHours, updating the existing files in place; unless metricsHistory is turned off, each observation also writes a per-post per-day engagement history record under the posts corpus's metrics-history/ bucket, so engagement curves stay reconstructable after counts move on. The first sync captures up to 500 recent posts; older history is not backfilled. A burst of new posts or mentions larger than one sync round is fetched over the following rounds without gaps. A post deleted while still inside the metrics window leaves the corpus, together with its engagement history, at the next engagement refresh; deletions of older posts are not detected. Bluesky allows an account only 300 sign-ins a day across all its apps, so the connector signs in once and reuses the session between syncs; a sign-in Bluesky is rationing is reported as such, not as a wrong password. Reposts are skipped in this version, and synced images are represented by their alt text rather than downloaded. Publishing is off by default: a gezel can only draft posts until allowPublish is enabled on the binding, and the switch covers the whole connection, not each post: a gezel publishes at once while working on something the person just asked for, and any other publish (a scheduled run, the night shift, another gezel's request) waits in the outbox until the person approves it. Published posts can embed up to 4 images (1,000,000 bytes each at most; png/jpg/jpeg/webp/gif), read from project-relative paths resolved against the project's artifacts directory first, then its workspace."
95
+ }
@@ -0,0 +1,67 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "version": "1.0.2",
4
+ "releasedAt": "2026-11-18T00:00:00Z",
5
+ "driver": "native",
6
+ "source": {
7
+ "adapterId": "calendar-google"
8
+ },
9
+ "configSchema": {
10
+ "type": "object",
11
+ "properties": {
12
+ "calendars": {
13
+ "type": "array",
14
+ "title": "Calendars to mirror (blank = all)",
15
+ "description": "Calendar names or IDs, such as primary or team@group.calendar.google.com",
16
+ "items": {
17
+ "type": "string"
18
+ }
19
+ },
20
+ "pastDays": {
21
+ "type": "integer",
22
+ "title": "Days of past events to mirror",
23
+ "default": 90,
24
+ "minimum": 0,
25
+ "maximum": 1825
26
+ },
27
+ "futureDays": {
28
+ "type": "integer",
29
+ "title": "Days of upcoming events to mirror",
30
+ "default": 365,
31
+ "minimum": 1,
32
+ "maximum": 730
33
+ }
34
+ }
35
+ },
36
+ "secretShape": {
37
+ "kind": "oauth2",
38
+ "authorizeUrl": "https://accounts.google.com/o/oauth2/v2/auth",
39
+ "tokenUrl": "https://oauth2.googleapis.com/token",
40
+ "scopes": "https://www.googleapis.com/auth/calendar.calendarlist.readonly https://www.googleapis.com/auth/calendar.events.readonly",
41
+ "clientIdEnv": "GEZEL_GOOGLE_CLIENT_ID",
42
+ "clientSecretEnv": "GEZEL_GOOGLE_CLIENT_SECRET",
43
+ "authParams": {
44
+ "access_type": "offline",
45
+ "prompt": "consent"
46
+ },
47
+ "clientSetup": {
48
+ "providerLabel": "Google",
49
+ "docsUrl": "https://console.cloud.google.com/apis/credentials",
50
+ "secretRequired": true,
51
+ "appTypeNote": "Create an OAuth client ID of type Desktop app in Google Cloud Console. Desktop clients are issued a client secret Google does not treat as confidential — enter both here. Any loopback port works for the redirect.",
52
+ "steps": [
53
+ "Sign in at console.cloud.google.com and create (or pick) a project.",
54
+ "Under APIs & Services, open Library and enable the Google Calendar API.",
55
+ "Under APIs & Services, open OAuth consent screen: configure the app as External and add yourself as a test user.",
56
+ "Set the publishing status to In production — apps left in Testing get their sign-ins expired every 7 days. An unverified-app warning on your own app is safe to click through.",
57
+ "Under APIs & Services, open Credentials and choose Create credentials, then OAuth client ID, application type 'Desktop app'.",
58
+ "Copy the Client ID and Client Secret from the created client and paste them below. Desktop clients accept any 127.0.0.1 port, so there is no redirect URI to register."
59
+ ]
60
+ }
61
+ },
62
+ "normalize": {
63
+ "kind": "native"
64
+ },
65
+ "completeness": "window",
66
+ "notes": "Mirrors a sliding window: events from the last pastDays days (default 90) through the next futureDays days (default 365). Older events were never fetched, and an event that ages out of the window stays in the corpus rather than being pruned. The window moves forward about once a week. Recurring events are mirrored one record per occurrence. Cancelled and deleted events, and events rescheduled outside the window, are removed. Working-location markers are skipped. Records keep the same identity as version 1.0.0, so upgrading refreshes existing records in place instead of duplicating them. Every record uses the same fields as the Outlook calendar connector. From version 1.0.2 it asks Google only to read the calendar list and events (calendar.calendarlist.readonly and calendar.events.readonly), the two things it reads, rather than all of Calendar read-only."
67
+ }
@@ -3,7 +3,7 @@
3
3
  "kind": "connector-type",
4
4
  "id": "instagram-media",
5
5
  "name": "Instagram Media",
6
- "description": "Keep a searchable copy of your Instagram presence: your posts, reels, and carousels with captions, links, like and comment counts and a daily engagement history, plus a daily follower count. Works with Instagram professional (business or creator) accounts through Meta's own sign-in. Your crew can draft posts for review and — once you allow publishing on the connector — publish images with your per-post consent. One honest catch: Instagram's API only accepts images already hosted at a public https URL, so Gezel cannot publish local files directly.",
6
+ "description": "Keep a searchable copy of your Instagram presence: your posts, reels, and carousels with captions, links, like and comment counts and a daily engagement history, plus a daily follower count. Works with Instagram professional (business or creator) accounts through Meta's own sign-in. Your crew can draft posts for review and, once you allow publishing, publish images while working on something you asked for. Anything they publish on their own waits for your approval. One honest catch: Instagram's API only accepts images already hosted at a public https URL, so Gezel cannot publish local files directly.",
7
7
  "tags": [
8
8
  "instagram",
9
9
  "social",
@@ -0,0 +1,98 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "version": "1.0.2",
4
+ "releasedAt": "2026-11-20T00:00:00Z",
5
+ "minGezelVersion": "1.26325",
6
+ "driver": "native",
7
+ "source": {
8
+ "adapterId": "instagram-media"
9
+ },
10
+ "configSchema": {
11
+ "type": "object",
12
+ "properties": {
13
+ "downloadMedia": {
14
+ "type": "boolean",
15
+ "title": "Download media files (reserved — this version stores captions and links only)",
16
+ "default": false
17
+ },
18
+ "allowPublish": {
19
+ "type": "boolean",
20
+ "title": "Allow publishing",
21
+ "description": "This project's gezels may post as you. They post right away while working on something you just asked for. Anything they post otherwise, on a schedule, overnight, or for another gezel, waits in the outbox until you approve it in Connections.",
22
+ "default": false
23
+ },
24
+ "maxMedia": {
25
+ "type": "integer",
26
+ "title": "Most recent posts to keep synced",
27
+ "default": 200,
28
+ "minimum": 1,
29
+ "maximum": 10000
30
+ },
31
+ "metricsWindowDays": {
32
+ "type": "integer",
33
+ "title": "Days of recent posts to keep like/comment counts fresh for",
34
+ "default": 30,
35
+ "minimum": 1,
36
+ "maximum": 365
37
+ },
38
+ "metricsRefreshHours": {
39
+ "type": "number",
40
+ "title": "Hours between like/comment-count refreshes",
41
+ "default": 12,
42
+ "minimum": 0.25,
43
+ "maximum": 720
44
+ },
45
+ "metricsHistory": {
46
+ "type": "boolean",
47
+ "title": "Record daily engagement history records",
48
+ "default": true
49
+ },
50
+ "statsIntervalHours": {
51
+ "type": "number",
52
+ "title": "Hours between account-stats snapshots",
53
+ "default": 6,
54
+ "minimum": 0.25,
55
+ "maximum": 720
56
+ }
57
+ }
58
+ },
59
+ "secretShape": {
60
+ "kind": "oauth2",
61
+ "authorizeUrl": "https://www.instagram.com/oauth/authorize",
62
+ "tokenUrl": "https://api.instagram.com/oauth/access_token",
63
+ "scopes": "instagram_business_basic instagram_business_content_publish",
64
+ "clientIdEnv": "GEZEL_INSTAGRAM_CLIENT_ID",
65
+ "clientSecretEnv": "GEZEL_INSTAGRAM_CLIENT_SECRET",
66
+ "longLivedExchange": {
67
+ "exchangeUrl": "https://graph.instagram.com/access_token",
68
+ "refreshUrl": "https://graph.instagram.com/refresh_access_token"
69
+ },
70
+ "clientSetup": {
71
+ "providerLabel": "Instagram (Meta)",
72
+ "docsUrl": "https://developers.facebook.com/apps/",
73
+ "secretRequired": true,
74
+ "appTypeNote": "Create a Meta app with Instagram API (Instagram Login) for a business or creator account. The app secret stays on this machine, in your OS keychain.",
75
+ "redirectPort": 6242,
76
+ "redirectNote": "Meta matches redirect URIs exactly and may require an https URI; if it refuses the http form, tell us — https loopback support is planned.",
77
+ "steps": [
78
+ "Sign in at developers.facebook.com, choose My Apps, then Create app (the Business type, or the default when not asked).",
79
+ "On the app dashboard, add the 'Instagram' product and choose 'API setup with Instagram Login'.",
80
+ "Your Instagram account must be Professional (business or creator) — switch it in the Instagram app under Settings if needed, then connect it as the tester account when prompted.",
81
+ "In the product's API setup, open 'Set up Instagram business login' and add the redirect URI shown below under OAuth redirect URIs, exactly.",
82
+ "Copy the Instagram App ID and Instagram App Secret from the same setup page (they also live under App settings, Basic).",
83
+ "Paste both below — the secret stays in your OS keychain. Your own account works while the Meta app stays in development mode."
84
+ ]
85
+ }
86
+ },
87
+ "normalize": {
88
+ "kind": "native"
89
+ },
90
+ "actions": [
91
+ {
92
+ "name": "publish",
93
+ "consentScope": "social-publish"
94
+ }
95
+ ],
96
+ "completeness": "window",
97
+ "notes": "Works only with Instagram professional accounts (business or creator) via the Instagram API with Instagram Login — personal accounts cannot link. Requires your own Meta developer app: set GEZEL_INSTAGRAM_CLIENT_ID and GEZEL_INSTAGRAM_CLIENT_SECRET, and note Meta requires app review before accounts other than the app's own testers can link in production. Meta issues no refresh token: linking trades the sign-in for a long-lived (~60 day) token that Gezel refreshes in place whenever a sync runs with under 7 days remaining; if the account sits unsynced past expiry, re-link it. Syncs the account's media (posts, reels, carousels) as caption plus permalink — media files are not downloaded in this version — with like and comment counts on posts from the last metricsWindowDays re-observed roughly every metricsRefreshHours (each observation also appends a per-day metrics-history record per post, the engagement curve over time, unless metricsHistory is turned off), plus a once-per-day account-stats record (followers, following, total posts). The first sync captures up to maxMedia recent posts; older history is not backfilled. New posts beyond one sync round are fetched over the following rounds without gaps. A caption edited, or a post deleted, while the post is still inside the metrics window is picked up at the next engagement refresh — the record is updated, or removed together with its engagement history; changes to older posts are not detected. Publishing works, with Meta's contract stated honestly: Instagram's publishing API has Meta's servers fetch the image from a public https URL, and Gezel is local-first and does not host your files — so publishing needs an image that is already hosted somewhere public (any CDN or static host will do), caption-only posts do not exist on Instagram, and drafts stay fully usable without any public URL. The caption travels as the draft's post text, so Gezel's draft flow requires one (Instagram itself allows empty captions). Publishing is off by default: a gezel can only draft until allowPublish is enabled on the binding, and the switch covers the whole connection, not each post: a gezel publishes at once while working on something the person just asked for, and any other publish (a scheduled run, the night shift, another gezel's request) waits in the outbox until the person approves it. Accounts linked before publishing existed must re-link from the connector's settings to grant the instagram_business_content_publish permission."
98
+ }