@jini-ai/agent-plugins 0.6.23 → 0.7.0

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 (220) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/README.md +13 -0
  3. package/calendly/exports/booking-calendar.css +7 -0
  4. package/calendly/exports/booking-calendar.html +5 -0
  5. package/calendly/mcp.json +10 -0
  6. package/calendly/plugin.json +47 -0
  7. package/calendly/skills/calendly/SKILL.md +27 -0
  8. package/charts-echarts/plugin.json +2 -2
  9. package/charts-recharts/plugin.json +2 -2
  10. package/cloudflare/lib/cms-forms.mjs +57 -0
  11. package/cloudflare/lib/forms.mjs +78 -18
  12. package/cloudflare/lib/target.mjs +17 -4
  13. package/cloudflare/plugin.json +2 -2
  14. package/cloudflare/skills/cloudflare/SKILL.md +4 -4
  15. package/cloudflare/skills/cloudflare/references/workers.md +4 -4
  16. package/cloudflare/worker/forms-receiver.mjs +81 -41
  17. package/cloudflare/worker/portable-validation.mjs +220 -0
  18. package/commerce/plugin.json +17 -0
  19. package/commerce/skills/commerce/SKILL.md +23 -0
  20. package/composio/mcp.json +1 -1
  21. package/composio/plugin.json +2 -2
  22. package/composio/skills/composio/SKILL.md +4 -4
  23. package/core/commerce-server.d.ts +2 -0
  24. package/core/commerce-server.mjs +2 -0
  25. package/dist/admin-surfaces/connections/connections.d.ts +35 -0
  26. package/dist/admin-surfaces/connections/connections.js +135 -0
  27. package/dist/admin-surfaces/connections/index.d.ts +3 -0
  28. package/dist/admin-surfaces/connections/index.js +2 -0
  29. package/dist/admin-surfaces/connections/ports.d.ts +110 -0
  30. package/dist/admin-surfaces/connections/ports.js +2 -0
  31. package/dist/admin-surfaces/index.d.ts +2 -0
  32. package/dist/admin-surfaces/index.js +1 -0
  33. package/dist/admin-surfaces/plugin-state-persistence.d.ts +27 -0
  34. package/dist/admin-surfaces/plugin-state-persistence.js +2 -0
  35. package/dist/admin-surfaces/plugin-state.d.ts +51 -0
  36. package/dist/admin-surfaces/plugin-state.js +106 -0
  37. package/dist/connect/access-token-tool.d.ts +240 -0
  38. package/dist/connect/access-token-tool.js +213 -0
  39. package/dist/connect/apply-connect-defaults.d.ts +91 -0
  40. package/dist/connect/apply-connect-defaults.js +113 -0
  41. package/dist/connect/apply-tool-renames.d.ts +72 -0
  42. package/dist/connect/apply-tool-renames.js +105 -0
  43. package/dist/connect/connect-card-ui.d.ts +143 -0
  44. package/dist/connect/connect-card-ui.js +106 -0
  45. package/dist/connect/connect-destination.d.ts +35 -0
  46. package/dist/connect/connect-destination.js +45 -0
  47. package/dist/connect/connect-sign-in-wait.d.ts +31 -0
  48. package/dist/connect/connect-sign-in-wait.js +21 -0
  49. package/dist/connect/connect-tool.d.ts +314 -0
  50. package/dist/connect/connect-tool.js +431 -0
  51. package/dist/connect/connection-status.d.ts +33 -0
  52. package/dist/connect/connection-status.js +63 -0
  53. package/dist/connect/credential-cards.d.ts +15 -0
  54. package/dist/connect/credential-cards.js +49 -0
  55. package/dist/connect/credential-save-tool.d.ts +45 -0
  56. package/dist/connect/credential-save-tool.js +156 -0
  57. package/dist/connect/enable-access.d.ts +67 -0
  58. package/dist/connect/enable-access.js +74 -0
  59. package/dist/connect/executable/approval.d.ts +58 -0
  60. package/dist/connect/executable/approval.js +40 -0
  61. package/dist/connect/executable/host-capabilities.d.ts +76 -0
  62. package/dist/connect/executable/host-capabilities.js +100 -0
  63. package/dist/connect/executable/index.d.ts +10 -0
  64. package/dist/connect/executable/index.js +9 -0
  65. package/dist/connect/executable/ports.d.ts +189 -0
  66. package/dist/connect/executable/ports.js +2 -0
  67. package/dist/connect/executable/register.d.ts +21 -0
  68. package/dist/connect/executable/register.js +125 -0
  69. package/dist/connect/federate-mcp.d.ts +190 -0
  70. package/dist/connect/federate-mcp.js +440 -0
  71. package/dist/connect/grant-signed-in-defaults.d.ts +96 -0
  72. package/dist/connect/grant-signed-in-defaults.js +100 -0
  73. package/dist/connect/import-access-token.d.ts +114 -0
  74. package/dist/connect/import-access-token.js +103 -0
  75. package/dist/connect/index.d.ts +19 -0
  76. package/dist/connect/index.js +19 -0
  77. package/dist/connect/plugin-credential-card.d.ts +46 -0
  78. package/dist/connect/plugin-credential-card.js +63 -0
  79. package/dist/connect/plugin-host/index.d.ts +203 -0
  80. package/dist/connect/plugin-host/index.js +153 -0
  81. package/dist/connect/ports.d.ts +74 -0
  82. package/dist/connect/ports.js +2 -0
  83. package/dist/connect/switch-on-saved-token.d.ts +48 -0
  84. package/dist/connect/switch-on-saved-token.js +20 -0
  85. package/dist/connect/token-sign-in.d.ts +51 -0
  86. package/dist/connect/token-sign-in.js +43 -0
  87. package/dist/core/identity-namespace.d.ts +39 -0
  88. package/dist/core/identity-namespace.js +61 -3
  89. package/dist/folder-zip-node.js +3 -1
  90. package/dist/lifecycle/automatic-use.d.ts +12 -7
  91. package/dist/lifecycle/automatic-use.js +37 -28
  92. package/dist/lifecycle/capability-projection.js +5 -1
  93. package/dist/lifecycle/contribution-loader.d.ts +2 -7
  94. package/dist/lifecycle/contribution-types.d.ts +8 -0
  95. package/dist/lifecycle/contribution-types.js +2 -0
  96. package/dist/lifecycle/credential-card-metadata.d.ts +23 -0
  97. package/dist/lifecycle/credential-card-metadata.js +184 -0
  98. package/dist/lifecycle/exports.d.ts +11 -0
  99. package/dist/lifecycle/exports.js +64 -3
  100. package/dist/lifecycle/host-tools/identity.d.ts +38 -0
  101. package/dist/lifecycle/host-tools/identity.js +58 -0
  102. package/dist/lifecycle/host-tools/index.d.ts +20 -0
  103. package/dist/lifecycle/host-tools/index.js +20 -0
  104. package/dist/lifecycle/host-tools/memory-tools.d.ts +22 -0
  105. package/dist/lifecycle/host-tools/memory-tools.js +63 -0
  106. package/dist/lifecycle/host-tools/ports.d.ts +121 -0
  107. package/dist/lifecycle/host-tools/ports.js +2 -0
  108. package/dist/lifecycle/host-tools/provider-status-tool.d.ts +88 -0
  109. package/dist/lifecycle/host-tools/provider-status-tool.js +45 -0
  110. package/dist/lifecycle/host-tools/search-tool.d.ts +74 -0
  111. package/dist/lifecycle/host-tools/search-tool.js +282 -0
  112. package/dist/lifecycle/host-tools/skill-tool.d.ts +219 -0
  113. package/dist/lifecycle/host-tools/skill-tool.js +482 -0
  114. package/dist/lifecycle/host-tools/write-note-tool.d.ts +22 -0
  115. package/dist/lifecycle/host-tools/write-note-tool.js +47 -0
  116. package/dist/lifecycle/index.d.ts +2 -1
  117. package/dist/lifecycle/install.js +2 -1
  118. package/dist/lifecycle/installed-package-index.js +5 -8
  119. package/dist/lifecycle/mail/adapter-descriptors.d.ts +78 -0
  120. package/dist/lifecycle/mail/adapter-descriptors.js +155 -0
  121. package/dist/lifecycle/mail/catalog.d.ts +116 -0
  122. package/dist/lifecycle/mail/catalog.js +72 -0
  123. package/dist/lifecycle/mail/configuration.d.ts +25 -0
  124. package/dist/lifecycle/mail/configuration.js +62 -0
  125. package/dist/lifecycle/mail/contribution.d.ts +89 -0
  126. package/dist/lifecycle/mail/contribution.js +115 -0
  127. package/dist/lifecycle/mail/host-mailer.d.ts +24 -0
  128. package/dist/lifecycle/mail/host-mailer.js +10 -0
  129. package/dist/lifecycle/mail/index.d.ts +16 -0
  130. package/dist/lifecycle/mail/index.js +16 -0
  131. package/dist/lifecycle/mail/selection.d.ts +40 -0
  132. package/dist/lifecycle/mail/selection.js +86 -0
  133. package/dist/lifecycle/manifest.d.ts +7 -2
  134. package/dist/lifecycle/manifest.js +32 -9
  135. package/dist/lifecycle/metadata.d.ts +31 -0
  136. package/dist/lifecycle/metadata.js +80 -0
  137. package/dist/lifecycle/persistent-state.js +2 -1
  138. package/dist/lifecycle/ports.d.ts +2 -0
  139. package/dist/lifecycle/resolve-agent-plugin-refs.d.ts +2 -1
  140. package/dist/lifecycle/resolve-agent-plugin-refs.js +14 -8
  141. package/dist/lifecycle/search-projection.d.ts +3 -4
  142. package/dist/lifecycle/search-projection.js +5 -7
  143. package/dist/lifecycle/search.js +3 -2
  144. package/fly/plugin.json +5 -5
  145. package/fly/skills/fly/SKILL.md +1 -1
  146. package/formspree/plugin.json +7 -0
  147. package/formspree/skills/formspree/SKILL.md +11 -0
  148. package/github/plugin.json +2 -2
  149. package/github/skills/github/SKILL.md +28 -28
  150. package/github/skills/github/references/actions.md +8 -8
  151. package/github/skills/github/references/auth-and-tokens.md +7 -7
  152. package/github/skills/github/references/repo-files.md +5 -5
  153. package/github/skills/github/references/site-backup.md +16 -16
  154. package/github/skills/github/references/source-control.md +17 -17
  155. package/github-pages/plugin.json +2 -2
  156. package/github-pages/skills/github-pages/SKILL.md +3 -3
  157. package/google-forms/plugin.json +7 -0
  158. package/google-forms/skills/google-forms/SKILL.md +15 -0
  159. package/google-login/plugin.json +3 -3
  160. package/google-login/skills/google-login/SKILL.md +17 -60
  161. package/google-workspace/plugin.json +6 -6
  162. package/google-workspace/skills/google-workspace/references/connection.md +1 -1
  163. package/google-workspace/skills/google-workspace/references/form-delivery.md +4 -4
  164. package/google-workspace/tovu-admin-surfaces.json +5 -5
  165. package/higgsfield-media/plugin.json +5 -5
  166. package/higgsfield-media/skills/higgsfield-media/SKILL.md +31 -33
  167. package/higgsfield-media/skills/higgsfield-media/references/failure-modes.md +7 -7
  168. package/higgsfield-media/skills/higgsfield-media/references/models-and-plan-gates.md +3 -3
  169. package/jev/plugin.json +2 -2
  170. package/langfuse/plugin.json +2 -2
  171. package/meilisearch/plugin.json +2 -2
  172. package/meilisearch/skills/meilisearch/SKILL.md +1 -1
  173. package/netlify/plugin.json +2 -2
  174. package/netlify/skills/netlify/SKILL.md +3 -3
  175. package/opentelemetry/plugin.json +2 -2
  176. package/opentelemetry/skills/opentelemetry/SKILL.md +7 -7
  177. package/package.json +92 -14
  178. package/posthog/plugin.json +2 -2
  179. package/posthog/skills/posthog/SKILL.md +7 -7
  180. package/railway/plugin.json +3 -3
  181. package/railway/skills/railway/SKILL.md +10 -11
  182. package/render/plugin.json +3 -3
  183. package/render/skills/render/SKILL.md +7 -8
  184. package/resend/NOTES.md +2 -2
  185. package/resend/mcp.json +1 -1
  186. package/resend/plugin.json +5 -5
  187. package/resend/skills/resend/SKILL.md +13 -13
  188. package/s3-compatible/plugin.json +2 -2
  189. package/s3-compatible/skills/s3-compatible/SKILL.md +4 -4
  190. package/sentry/plugin.json +2 -2
  191. package/sentry/skills/sentry/SKILL.md +7 -7
  192. package/shopify/plugin.json +2 -2
  193. package/site-compliance/plugin.json +2 -2
  194. package/site-compliance/skills/site-compliance/SKILL.md +3 -3
  195. package/site-compliance/skills/site-compliance/references/gdpr-eu-uk.md +1 -1
  196. package/site-import/plugin.json +2 -2
  197. package/slide-design/plugin.json +2 -2
  198. package/software-engineering/LICENSE +201 -0
  199. package/software-engineering/NOTICE +9 -0
  200. package/software-engineering/README.md +89 -0
  201. package/software-engineering/plugin.json +24 -0
  202. package/software-engineering/skills/software-engineering/SKILL.md +33 -0
  203. package/software-engineering/skills/software-engineering/references/debugging.md +54 -0
  204. package/software-engineering/skills/software-engineering/references/implementation.md +27 -0
  205. package/software-engineering/skills/software-engineering/references/planning.md +27 -0
  206. package/software-engineering/skills/software-engineering/references/prototyping.md +14 -0
  207. package/software-engineering/skills/software-engineering/references/security.md +47 -0
  208. package/software-engineering/skills/software-engineering/references/verification.md +53 -0
  209. package/stripe/plugin.json +2 -2
  210. package/supabase/mcp.json +4 -4
  211. package/supabase/plugin.json +3 -3
  212. package/supabase/skills/supabase/SKILL.md +8 -8
  213. package/supabase/skills/supabase/references/failure-modes.md +5 -5
  214. package/ui-ux-design/plugin.json +2 -2
  215. package/vercel/plugin.json +2 -2
  216. package/vercel/skills/vercel/SKILL.md +3 -3
  217. package/wordpress/plugin.json +2 -2
  218. package/wordpress/skills/wordpress/SKILL.md +3 -3
  219. package/wordpress/skills/wordpress/references/free-site-redirect.md +2 -2
  220. package/wordpress/skills/wordpress/references/subdomain.md +5 -5
package/CHANGELOG.md CHANGED
@@ -1,3 +1,50 @@
1
+ ## 0.7.0
2
+
3
+ ### Minor Changes
4
+
5
+ - c393010: Publish the A2 mail seams: platform exposes `toPluginHttpClient`, `fromPositionalMailer`,
6
+ `toPositionalMailer` and `createProviderMailer`; agent-plugins exposes
7
+ `createMailContributions`, `createMailCatalog`, `createMailConfiguration`,
8
+ `createMailSelection` and `createHostMailer`.
9
+
10
+ Hosts inject `parseSetup` and their credential-label policy. The legacy raw-only
11
+ `parseMailAdaptersFile({ raw }, optional)` call remains supported through a local
12
+ validation boundary, preserving declared setup validation and v1/v2 descriptors.
13
+ Provider-status and credential-save factories also require host wording and catalog
14
+ provenance so a second host supplies its own navigation without changing Tovu bytes.
15
+
16
+ - ce9e9dc: Expose the injected API host and connection sign-in flow from integrations/api-connections,
17
+ and the persisted plugin-state store from the universal agent-plugins/admin-surfaces entry.
18
+ Hosts bind their existing storage, state, callbacks, links, app identity and wording.
19
+ - 1838089: Add the core-vault-only AdminSurfacePluginStatePersistence contract and API-host runtime
20
+ ports for an already-built state store, callback inbox/path, loopback receiver and exact
21
+ host messages. Sign-in links and model-facing refusal wording are host-supplied.
22
+ - df2698c: Declare local executable-tool contribution, approval and capability ports and the complete admin-surface connections host contract. Hosts retain their contribution registry, frozen accounts, token memory, saved connection keys and error constructors.
23
+ - 4044fe3: Expose host-injected executable tool registration/disclosure/capabilities and admin-surface connection adapters through two explicit public subpaths. Hosts supply registries, approval policies, saved keys, errors and account services while keeping the original shared state and token custody.
24
+ - 0ccd93c: Expose the portable plugin connect, token-card, token-import, default-grant and tool-rename APIs through the existing `connect` entry. Hosts supply card identity, approval and exchange lifecycles, canonical stores and projections, activation owners, token validation and product copy. No new package dependencies are introduced.
25
+ - a6e4a75: Remove the copied mail setup parser from `@jini-ai/agent-plugins/lifecycle/mail` (owner-approved deletion of `legacy-mail-setup.ts` and its test); setup validation is owned by the host runtime. `parseMailAdaptersFile`'s `parseSetup` stays optional, but **a raw-only call (no `parseSetup`) now refuses every schemaVersion 2 descriptor** with exactly `{ ok: false, reason: "this host supplies no mail setup validator" }` instead of validating it with the copy. This approved raw-only v2 refusal is the only behaviour change: schemaVersion 1 files still parse without a validator, and hosts that inject a validator (for example `parseMailProviderSetupProperty` from `@jini-ai/platform/mail`, as `contribution.ts` already passes from the host) see identical results.
26
+ - 42cfff7: `registerAgentPluginExecutableTools` (`@jini-ai/agent-plugins/connect/executable`) now takes a required `toolPermission: string` in its required object and authorizes every plugin tool with that permission instead of the fixed `admin.assistant.use` name. **Breaking for direct registrar callers:** a caller that builds `AgentPluginExecutableRegistrationRequired` itself must now pass the permission its own RBAC grants (there is no default). A host that wants the previous behaviour passes `toolPermission: 'admin.assistant.use'`; the refusal shape on denial is unchanged.
27
+ - 1cf0306: Expose host-wired credential card builders, credential-save routing and card metadata operations, and provider-status tools. Hosts supply app identity, reviewed tool metadata, permission names, validation errors and public-field policy.
28
+
29
+ ### Patch Changes
30
+
31
+ - fedca02: Add the entries `@jini-ai/agent-plugins/lifecycle/host-tools` and `@jini-ai/agent-plugins/lifecycle/mail`. `@jini-ai/user-management` declares `@jini-ai/oauth` as an optional peer. The new entries are empty for now; their contents arrive in later releases.
32
+ - 11ce174: The `search_agent_plugin_local` description no longer names host tools. A host passes its own tool names through `messages.searchHostTools` (`inventory`, `setEnabled`, `loadGuidance`); `agentPluginSearchToolCatalog` takes the same `messages` as its optional argument. Without them the text is neutral.
33
+ - 291a220: Read portable plugin metadata with legacy compatibility, ship host-neutral guidance, and regenerate agent catalog payload digests.
34
+ - 699b478: Expose six type-only contract areas in core and retain existing type exports. Reconcile card contracts with the complete UI presentation shapes so hosts can wire package objects without cross-package type imports.
35
+ - Updated dependencies [7dd0dbb]
36
+ - Updated dependencies [8fe045b]
37
+ - Updated dependencies [c393010]
38
+ - Updated dependencies [41ff2ff]
39
+ - Updated dependencies [a266ba8]
40
+ - Updated dependencies [27063ef]
41
+ - Updated dependencies [6ab1d81]
42
+ - Updated dependencies [699b478]
43
+ - Updated dependencies [39cf677]
44
+ - @jini-ai/commerce@0.7.0
45
+ - @jini-ai/core@0.7.0
46
+ - @jini-ai/platform@0.7.0
47
+
1
48
  ## 0.6.23
2
49
 
3
50
  - Security hardening.
package/README.md CHANGED
@@ -29,6 +29,19 @@ decides its own install mechanism, permission model, and sandboxing.
29
29
 
30
30
  ## What a plugin looks like on disk
31
31
 
32
+ Portable Jini metadata lives in `plugin.json` under `extensions.jini`. The manifest parser returns
33
+ typed identity and presentation fields; `readAgentPluginMetadata({ value })` also reads advisory
34
+ metadata from partial manifests. `parseAgentPluginMcpConfig({ value }, { pluginManifest })` reads
35
+ `authMode`, `defaultTools`, `tokenAuth`, and `renamedTools` without a product namespace. Reviewed
36
+ `defaultTools.read` declarations must come from `plugin.json`, never an inline transport entry.
37
+
38
+ Compatibility with installed `extensions.tovu` manifests and prefixed MCP metadata is retained
39
+ through **at least 2027-05-06**. Removal requires an explicit future release decision; the date
40
+ never causes a plugin to stop loading. A present `extensions.jini` wins as a whole, and a present
41
+ new MCP field wins over its legacy alias even when malformed. Parsers return compatibility
42
+ warnings; lifecycle indexing and MCP loading forward them through the host's `onEvent` port.
43
+ Existing publisher ids remain stable during this namespace migration.
44
+
32
45
  A plugin is a directory. Example (this package publishes it as `@jini-ai/agent-plugins/ui-ux-design`):
33
46
 
34
47
  ```
@@ -0,0 +1,7 @@
1
+ .plugin-calendly-booking-calendar { width: 100%; max-width: 100%; }
2
+ .plugin-calendly-booking-calendar__frame { display: block; width: 100%; height: clamp(640px, 85vh, 900px); border: 0; border-radius: 8px; }
3
+ .plugin-calendly-booking-calendar__frame:not([src]) { display: none; }
4
+ .plugin-calendly-booking-calendar__note { display: none; margin: 0 0 0.5rem; }
5
+ .plugin-calendly-booking-calendar__frame:not([src]) ~ .plugin-calendly-booking-calendar__note { display: block; }
6
+ .plugin-calendly-booking-calendar__link { margin: 0.5rem 0 0; font-size: 0.9em; }
7
+ .plugin-calendly-booking-calendar__link a { color: inherit; text-decoration: underline; }
@@ -0,0 +1,5 @@
1
+ <div class="plugin-calendly-booking-calendar">
2
+ <iframe class="plugin-calendly-booking-calendar__frame" src="{{props.url}}" title="Book a time" loading="lazy" width="100%" height="720"></iframe>
3
+ <p class="plugin-calendly-booking-calendar__note">The calendar appears here once functional cookies are allowed.</p>
4
+ <p class="plugin-calendly-booking-calendar__link"><a href="{{props.url}}">Open the booking page</a></p>
5
+ </div>
@@ -0,0 +1,10 @@
1
+ {
2
+ "$schema": "https://agent-plugins.org/schemas/1.0.0/mcp.schema.json",
3
+ "mcpServers": {
4
+ "calendly": {
5
+ "type": "streamable-http",
6
+ "url": "https://mcp.calendly.com",
7
+ "tovuAuthMode": "oauth"
8
+ }
9
+ }
10
+ }
@@ -0,0 +1,47 @@
1
+ {
2
+ "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3
+ "name": "calendly",
4
+ "version": "0.1.0",
5
+ "description": "Shows a live Calendly booking calendar on a site page. A public Calendly link is all it needs; signing in to Calendly is optional.",
6
+ "author": "Tovu",
7
+ "license": "Apache-2.0",
8
+ "extensions": {
9
+ "jini": {
10
+ "id": "tovu/calendly",
11
+ "displayName": "Calendly",
12
+ "summary": "Show your Calendly booking calendar on a page so visitors can book a time.", "provides": ["scheduling"],
13
+ "exports": {
14
+ "booking-calendar": {
15
+ "template": "exports/booking-calendar.html",
16
+ "styles": "exports/booking-calendar.css",
17
+ "version": 1,
18
+ "consent": "functional",
19
+ "staticExport": "full",
20
+ "externalHosts": { "frame": ["https://calendly.com"] },
21
+ "urlProps": ["url"],
22
+ "props": {
23
+ "type": "object",
24
+ "properties": { "url": { "type": "string", "minLength": 1, "maxLength": 500 } },
25
+ "required": ["url"],
26
+ "additionalProperties": false
27
+ }
28
+ }
29
+ },
30
+ "credentialCards": [
31
+ {
32
+ "target": "calendly",
33
+ "title": "Connect Calendly",
34
+ "label": "Calendly account",
35
+ "category": "general",
36
+ "intro": "Optional. Sign in so the assistant can read your event types. Your booking calendar works on your site without this.",
37
+ "usedFor": ["Lets the assistant find your booking links and scheduled events"],
38
+ "keyHint": "Browser sign-in only; this connection does not accept a pasted API key.",
39
+ "saveKind": "oauth",
40
+ "permissions": "Signing in lets the assistant look up your event types, booking links and scheduled events. Your booking calendar does not use this connection. Review the permissions on the Calendly sign-in page.",
41
+ "baseUrl": "https://mcp.calendly.com"
42
+ }
43
+ ]
44
+ }
45
+ },
46
+ "keywords": ["calendly", "booking", "book-a-call", "calendar", "scheduling", "appointments", "meetings", "contact-page", "embed"]
47
+ }
@@ -0,0 +1,27 @@
1
+ ---
2
+ name: calendly
3
+ description: Put a live Calendly booking calendar on a site page, such as a contact page.
4
+ ---
5
+
6
+ # Calendly
7
+
8
+ Use this when someone wants visitors to book time with them from their site.
9
+
10
+ ## Adding the calendar
11
+
12
+ 1. You need their public booking link, such as `https://calendly.com/their-name/30min`. If you do not have it, ask for it in one short question. It is on their Calendly "Scheduling" page under "Copy link". Do not make one up.
13
+ 2. Read the page, then place the plugin's `booking-calendar` embed where the calendar belongs. The host's guidance gives the exact markup and the page tools to write it; the embed's `url` prop is their booking link.
14
+
15
+ The link inside the embed is what visitors see if the calendar cannot load. Keep it, pointing at the same booking link.
16
+
17
+ Never write Calendly's `<script>` or `<iframe>` by hand. This embed handles loading, cookie consent, styling and static exports.
18
+
19
+ ## What to tell the person
20
+
21
+ - The link must be a page on `https://calendly.com`. If the write is refused for the link, tell them it needs to look like the example above.
22
+ - If the site asks visitors about cookies, the calendar loads after a visitor allows functional cookies. Until then visitors see a link to the booking page.
23
+ - Calendly handles the bookings and confirmations. Nothing is stored on this site.
24
+
25
+ ## Connecting a Calendly account is optional
26
+
27
+ The calendar never needs a sign-in. Only offer the plugin's sign-in through the host if they want you to look up their event types or scheduled events through Calendly. This sign-in has not been tested with a real Calendly account yet; say so before relying on it.
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3
3
  "name": "charts-echarts",
4
- "version": "0.1.0",
4
+ "version": "0.1.1",
5
5
  "description": "Teaches the assistant to draw bar, stacked bar, line, area, pie, donut and scatter charts in chat with the Apache ECharts chart provider: finding the chart components with search_components, the data shape each one takes, several series in one chart through the generic chart.spec entry, axis names and number formats, and what falls back to a table. Know-how only: no code, no MCP server; the ECharts provider plugin (charts-echarts) draws the charts and switches this plugin on and off.",
6
6
  "license": "Apache-2.0",
7
7
  "extensions": {
8
- "tovu": {
8
+ "jini": {
9
9
  "id": "jini/charts-echarts-agent",
10
10
  "displayName": "ECharts",
11
11
  "summary": "Lets the assistant draw bar, stacked bar, line, area, pie, donut and scatter charts in chat, with several series. Ask for a chart of your data.",
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3
3
  "name": "charts-recharts",
4
- "version": "0.1.0",
4
+ "version": "0.1.1",
5
5
  "description": "Teaches the assistant to draw bar, line and pie charts in chat with the Recharts chart provider: finding the chart components with search_components, the data shape each one takes, what Recharts draws and what falls back to a table, and the generic chart.spec entry for several series. Know-how only: no code, no MCP server; the Recharts provider plugin (charts-recharts) draws the charts and switches this plugin on and off.",
6
6
  "license": "Apache-2.0",
7
7
  "extensions": {
8
- "tovu": {
8
+ "jini": {
9
9
  "id": "jini/charts-recharts-agent",
10
10
  "displayName": "Recharts",
11
11
  "summary": "Lets the assistant draw bar, line and pie charts in chat. Ask for a chart of your data.",
@@ -0,0 +1,57 @@
1
+ // ../core/dist/records.js
2
+ function isRecord(required, _optional = {}) {
3
+ const { value } = required;
4
+ return typeof value === "object" && value !== null;
5
+ }
6
+ function isNonArrayRecord(required, _optional = {}) {
7
+ return isRecord(required) && !Array.isArray(required.value);
8
+ }
9
+
10
+ // ../cms/dist/forms/submission-evidence.js
11
+ var MAX_EVIDENCE_BYTES = 1024 * 1024;
12
+ function assertEvidenceSize({ value }) {
13
+ if (new TextEncoder().encode(JSON.stringify(value)).byteLength > MAX_EVIDENCE_BYTES)
14
+ throw new TypeError("Form submission evidence exceeds 1 MiB.");
15
+ }
16
+ function isField(value) {
17
+ if (!isNonArrayRecord({ value }))
18
+ return false;
19
+ const field = value;
20
+ const identity = typeof field.id === "string" && typeof field.label === "string" && typeof field.type === "string" && typeof field.required === "boolean";
21
+ const choices = field.options === void 0 || Array.isArray(field.options) && field.options.every(isOption);
22
+ return identity && choices;
23
+ }
24
+ function isOption(value) {
25
+ return isNonArrayRecord({ value }) && typeof value.value === "string" && typeof value.label === "string";
26
+ }
27
+ function isConsent(value) {
28
+ if (!isNonArrayRecord({ value }))
29
+ return false;
30
+ const consent = value;
31
+ return typeof consent.fieldId === "string" && typeof consent.wording === "string" && (consent.helpText === void 0 || typeof consent.helpText === "string");
32
+ }
33
+ function readSubmissionEvidence({ value }, _optional = {}) {
34
+ if (value === void 0 || value === null)
35
+ return void 0;
36
+ if (!isNonArrayRecord({ value }))
37
+ throw new TypeError("Invalid form submission evidence.");
38
+ const evidence = value;
39
+ assertEvidenceHeader({ evidence });
40
+ if (!Array.isArray(evidence.fields) || !evidence.fields.every(isField))
41
+ throw new TypeError("Invalid form submission evidence fields.");
42
+ if (!Array.isArray(evidence.consent) || !evidence.consent.every(isConsent))
43
+ throw new TypeError("Invalid form submission evidence consent.");
44
+ assertEvidenceSize({ value });
45
+ return structuredClone(value);
46
+ }
47
+ function assertEvidenceHeader({ evidence }) {
48
+ if (evidence.version !== 1 || typeof evidence.schemaHash !== "string" || !/^[a-f0-9]{64}$/.test(evidence.schemaHash))
49
+ throw new TypeError("Invalid form submission evidence hash.");
50
+ if (typeof evidence.capturedAt !== "string" || !["native", "cloudflare"].includes(String(evidence.source)))
51
+ throw new TypeError("Invalid form submission evidence provenance.");
52
+ if (evidence.html !== void 0 && typeof evidence.html !== "string")
53
+ throw new TypeError("Invalid form submission evidence HTML.");
54
+ }
55
+ export {
56
+ readSubmissionEvidence
57
+ };
@@ -1,4 +1,5 @@
1
1
  import { readFile } from 'node:fs/promises';
2
+ import { readSubmissionEvidence } from './cms-forms.mjs';
2
3
  import { refusal, segment } from './api.mjs';
3
4
 
4
5
  /** Form submissions destination: one D1 database per site Worker plus the bundled receiver.
@@ -27,27 +28,40 @@ export const MIGRATIONS = Object.freeze([
27
28
  ]);
28
29
  const MIGRATIONS_TABLE = 'CREATE TABLE IF NOT EXISTS schema_migrations (version INTEGER PRIMARY KEY, applied_at TEXT NOT NULL)';
29
30
 
30
- /** Validates the host's generic `formDestination` input. `null` means no active forms: assets-only Worker.
31
- * @complexity O(forms * fields), both capped. */
31
+ /** Validate host manifests, retaining an existing receiver when its saved key accompanies no forms.
32
+ * @complexity O(total schema bytes) time/space, forms/fields/evidence bounded.
33
+ * @overallScore 100 */
32
34
  export function normalizeForms({ formDestination, kit }, { requireSecret = true } = {}) {
33
35
  const forms = formDestination?.forms ?? [];
34
36
  if (!Array.isArray(forms) || forms.length > MAX_FORMS) throw formsRefusal({ kit, message: `Expected at most ${MAX_FORMS} forms in the form manifest. Disable unused forms in the site admin, then publish again.` });
35
- if (forms.length === 0) return null;
37
+ if (forms.length === 0) return normalizeEmptyForms({ formDestination, kit, requireSecret });
36
38
  const secret = formDestination.secret;
37
39
  if (requireSecret) checkReceiverSecret({ secret, kit });
38
40
  return { forms: forms.map(form => normalizeForm({ form, kit })), secret };
39
41
  }
40
42
 
43
+ /** Only a previously saved key can retain an empty receiver; plain form-less sites stay assets-only.
44
+ * @complexity O(1) time/space; no I/O. @overallScore 100 */
45
+ function normalizeEmptyForms({ formDestination, kit, requireSecret }, _options = {}) {
46
+ const secret = formDestination?.secret;
47
+ if (!secret) return null;
48
+ if (requireSecret) checkReceiverSecret({ secret, kit });
49
+ return { forms: [], secret };
50
+ }
51
+
41
52
  function checkReceiverSecret({ secret, kit }, _options = {}) {
42
53
  if (typeof secret !== 'string' || secret.length < 32) throw formsRefusal({ kit, message: 'The form receiver key is missing. Publish again from the site admin so it can create the key.' });
43
54
  }
44
55
 
56
+ /** Validate one schema and its bounded evidence before any remote provisioning.
57
+ * @complexity O(schema bytes) time/space; no I/O. @overallScore 100 */
45
58
  function normalizeForm({ form, kit }, _options = {}) {
46
59
  if (!SLUG.test(form?.slug ?? '')) throw formsRefusal({ kit, message: `Form slug "${String(form?.slug).slice(0, 100)}" cannot be served here. Use lowercase letters, digits and hyphens, then publish again.` });
47
60
  checkFieldCount({ form, kit });
48
61
  const successPath = form.successPath;
49
62
  checkSuccessPath({ form, successPath, kit });
50
- return { slug: form.slug, fields: form.fields.map(field => normalizeField({ field, kit, slug: form.slug })), ...(successPath ? { successPath } : {}) };
63
+ const evidence = form.evidence === undefined ? undefined : readSubmissionEvidence({ value: { ...form.evidence, capturedAt: 'published', source: 'cloudflare' } });
64
+ return { slug: form.slug, ...(evidence ? { evidence } : {}), fields: form.fields.map(field => normalizeField({ field, kit, slug: form.slug })), ...(successPath ? { successPath } : {}) };
51
65
  }
52
66
 
53
67
  function checkFieldCount({ form, kit }, _options = {}) {
@@ -59,6 +73,8 @@ function checkSuccessPath({ form, successPath, kit }, _options = {}) {
59
73
  if (typeof successPath !== 'string' || !/^\/(?![/\\])[^\\\s]{0,499}$/.test(successPath)) throw formsRefusal({ kit, message: `Form ${form.slug} has an unusable success page. Use a path on this site starting with "/".` });
60
74
  }
61
75
 
76
+ /** Preserve only the supported receiver constraints of one published field.
77
+ * @complexity O(options) time/space; no I/O. @overallScore 100 */
62
78
  function normalizeField({ field, kit, slug }, _options = {}) {
63
79
  if (!FIELD_NAME.test(field?.name ?? '')) throw formsRefusal({ kit, message: `Form ${slug} has a field name that cannot be served here. Rename the field in the site admin, then publish again.` });
64
80
  field = { ...field, ...(field.options ? { options: field.options.filter(value => value !== '') } : {}) };
@@ -68,16 +84,22 @@ function normalizeField({ field, kit, slug }, _options = {}) {
68
84
  return { name: field.name, required: field.required === true, ...receiverConstraints({ field }), ...(Number.isInteger(max) ? { maxLength: max } : {}), ...(field.multiple === true ? { multiple: true } : {}) };
69
85
  }
70
86
 
87
+ /** Project constraints unchanged after descriptor-boundary validation.
88
+ * @complexity O(1) time/space; options referenced, no I/O. @overallScore 100 */
71
89
  function receiverConstraints({ field }, _options = {}) {
72
90
  return {
73
91
  ...(field.type ? { type: field.type } : {}),
74
92
  ...(field.options ? { options: field.options } : {}),
75
93
  ...(field.minLength !== undefined ? { minLength: field.minLength } : {}),
76
94
  ...(field.checkboxValue !== undefined ? { checkboxValue: field.checkboxValue } : {}),
95
+ ...(field.min !== undefined ? { min: field.min } : {}),
96
+ ...(field.max !== undefined ? { max: field.max } : {}),
97
+ ...(field.step !== undefined ? { step: field.step } : {}),
77
98
  };
78
99
  }
79
100
 
80
- /** Refuse richer validation before provisioning a receiver that could report false success. */
101
+ /** Refuse richer validation before provisioning a receiver that could report false success.
102
+ * @complexity O(options) time and O(1) space; no I/O. @overallScore 100 */
81
103
  function assertReceiverField({ field, kit, slug }, _options = {}) {
82
104
  const supported = ['text', 'textarea', 'hidden', 'email', 'tel', 'phone', 'url', 'number', 'range', 'date', 'time', 'datetime', 'datetime-local', 'color', 'password', 'checkbox', 'toggle', 'select', 'radio', 'multi-select', 'checkbox-group'];
83
105
  if (field.type === 'file') throw formsRefusal({ kit, message: `Form ${slug} field ${field.name} accepts files, but this receiver cannot store files. Remove the file field or choose a live server before publishing.` });
@@ -113,14 +135,26 @@ export async function findDatabase({ api, kit, name }, _options = {}) {
113
135
  }
114
136
 
115
137
  /** Read-only preview lines for the publish confirmation. Pages has no receiver in v1.
116
- * @complexity One bounded D1 inventory read. */
138
+ * @complexity O(schema bytes) space; one bounded inventory read and one indexed scalar count.
139
+ * @overallScore 98 — Minor: the preview count is a snapshot and can change before publishing. */
117
140
  export async function previewForms({ api, kit, resourceName, targetId, formDestination }, _options = {}) {
118
141
  const normalized = normalizeForms({ formDestination, kit }, { requireSecret: false });
119
- if (!normalized) return undefined;
120
- const count = normalized.forms.length;
121
- if (targetId !== 'cloudflare-workers') {
122
- return { status: 'unsupported', forms: count, changes: [], message: `This site has ${count} active form(s), but Cloudflare Pages publishing cannot receive submissions yet. Publish to Cloudflare Workers to accept form submissions; on Pages the forms will not submit.` };
123
- }
142
+ if (!normalized && !formDestination) return undefined;
143
+ const count = normalized?.forms.length ?? 0;
144
+ if (targetId !== 'cloudflare-workers') return unsupportedFormsPreview({ count });
145
+ return previewWorkersForms({ api, kit, resourceName, normalized, count });
146
+ }
147
+
148
+ /** Explain an unsupported hosting target only when active built-in forms need it.
149
+ * @complexity O(1) time/space; no I/O. @overallScore 100 */
150
+ function unsupportedFormsPreview({ count }, _options = {}) {
151
+ return count ? { status: 'unsupported', forms: count, changes: [], message: `This site has ${count} active form(s), but Cloudflare Pages publishing cannot receive submissions yet. Publish to Cloudflare Workers to accept form submissions; on Pages the forms will not submit.` } : undefined;
152
+ }
153
+
154
+ /** Inspect existing receiver resources without creating or modifying them.
155
+ * @complexity One bounded inventory read and one indexed count; O(inventory) response space.
156
+ * @overallScore 98 — Minor: remote inventory/count snapshots are inherently non-atomic. */
157
+ async function previewWorkersForms({ api, kit, resourceName, normalized, count }, _options = {}) {
124
158
  const name = databaseName({ resourceName });
125
159
  let existing;
126
160
  try { existing = await findDatabase({ api, kit, name }); }
@@ -128,10 +162,31 @@ export async function previewForms({ api, kit, resourceName, targetId, formDesti
128
162
  if (error.code !== 'CLOUDFLARE_D1_PERMISSION_REQUIRED') throw error;
129
163
  return { status: 'permission-required', forms: count, changes: [], message: error.message.replace(/^CLOUDFLARE_D1_PERMISSION_REQUIRED: /, '') };
130
164
  }
131
- return { status: 'on', forms: count,
165
+ if (!normalized && !existing) return undefined;
166
+ const pendingCount = existing ? await pendingAnswers({ api, databaseId: existing.uuid }) : 0;
167
+ return workerFormsPreview({ resourceName, name, existing, count, pendingCount });
168
+ }
169
+
170
+ /** Show storage retention and pending answers explicitly in the approval preview.
171
+ * @complexity O(resource-name length) time/space; no I/O. @overallScore 100 */
172
+ function workerFormsPreview({ resourceName, name, existing, count, pendingCount }, _options = {}) {
173
+ return { status: 'on', forms: count, pendingCount,
132
174
  changes: [{ action: existing ? 'reuse' : 'create', resource: 'd1-database', name, ...(existing ? { databaseId: existing.uuid } : {}) },
133
- { action: 'bind', resource: 'worker', resourceName, routes: FORMS_WORKER_ROUTES }],
134
- message: `Form submissions: on (${count} form${count === 1 ? '' : 's'}). Submissions are stored in D1 database ${name} (${existing ? 'reused' : 'created'}) in this Cloudflare account and pulled into the site admin on demand. ${FREE_PLAN_NOTE}` };
175
+ { action: 'bind', resource: 'worker', resourceName, routes: count ? FORMS_WORKER_ROUTES : ['/_tovu/*'] }],
176
+ message: `Form submissions: on (${count} form${count === 1 ? '' : 's'}). Submissions are stored in D1 database ${name} (${existing ? 'reused' : 'created'}) in this Cloudflare account and pulled into the site admin on demand. ${FREE_PLAN_NOTE} Pending answers: ${pendingCount ?? 'count unavailable'}. Uncollected answers never expire automatically.` };
177
+ }
178
+
179
+ /** One indexed scalar read per preview; no answer payloads and no polling or expiry work.
180
+ * @complexity O(pending rows) index scan time, O(1) client response space.
181
+ * @overallScore 98 — Minor: D1 count failures show an explicit unavailable count. */
182
+ async function pendingAnswers({ api, databaseId }, _options = {}) {
183
+ try {
184
+ const rows = await query({ api, databaseId, sql: 'SELECT COUNT(*) AS count FROM submissions WHERE pulled_at IS NULL' });
185
+ return Number.isSafeInteger(Number(rows[0]?.count)) ? Number(rows[0].count) : null;
186
+ } catch {
187
+ console.warn('CLOUDFLARE_FORMS_PENDING_COUNT_UNAVAILABLE');
188
+ return null;
189
+ }
135
190
  }
136
191
 
137
192
  /** Find-or-create the database, then apply pending migrations. Never drops or recreates anything.
@@ -180,9 +235,11 @@ export async function migrate({ api, kit, databaseId }, _options = {}) {
180
235
  }
181
236
 
182
237
  let receiverSource;
183
- /** The receiver module text, read once from this plugin's own folder (path-separator safe). */
238
+ /** Read the receiver once; its portable validation helper is emitted beside it during build.
239
+ * @complexity O(receiver bytes) time/space; one cached local file read.
240
+ * @overallScore 98 — Minor: the emitted helper must accompany the receiver; the bundle execution test checks both. */
184
241
  export async function receiverModule(_required = {}, _options = {}) {
185
- receiverSource ??= await readFile(new URL('../worker/forms-receiver.mjs', import.meta.url), 'utf8');
242
+ receiverSource ??= (await readFile(new URL('../worker/forms-receiver.mjs', import.meta.url), 'utf8'));
186
243
  return receiverSource;
187
244
  }
188
245
 
@@ -212,17 +269,20 @@ function routesForPage({ path }, _options = {}) {
212
269
  return [`/${path}`, `/${path.slice(0, -'.html'.length)}`];
213
270
  }
214
271
 
215
- /** Worker modules and bindings for a site with forms. The manifest is compiled in; visitors never supply it. */
272
+ /** Bundle receiver, portable validator, manifest and existing bindings together.
273
+ * @complexity O(manifest + module bytes) time/space; at most two local file reads.
274
+ * @overallScore 98 — Minor: the distribution must include the built CMS portable module. */
216
275
  export async function formsWorkerParts({ manifest, secret, databaseId }, { pageRoutes = [] } = {}) {
217
276
  const main = "import { handleRequest } from './receiver.mjs';\nimport manifest from './forms-manifest.mjs';\nexport default { fetch: (request, env) => handleRequest({ request, env, manifest }) };\n";
218
277
  return {
219
278
  modules: [
220
279
  { name: 'index.mjs', source: main },
221
280
  { name: 'receiver.mjs', source: await receiverModule() },
281
+ { name: 'portable-validation.mjs', source: await readFile(new URL('../worker/portable-validation.mjs', import.meta.url), 'utf8') },
222
282
  { name: 'forms-manifest.mjs', source: `export default ${JSON.stringify({ forms: manifest.forms })};\n` },
223
283
  ],
224
284
  bindings: [{ type: 'd1', name: FORMS_BINDING, id: databaseId }, { type: 'secret_text', name: FORMS_SECRET_BINDING, text: secret }],
225
- runWorkerFirst: [...FORMS_WORKER_ROUTES, ...pageRoutes],
285
+ runWorkerFirst: manifest.forms.length ? [...FORMS_WORKER_ROUTES, ...pageRoutes] : ['/_tovu/*'],
226
286
  };
227
287
  }
228
288
 
@@ -4,7 +4,7 @@ import { prepareAssets } from './assets.mjs';
4
4
  import { previewDomains, assertDomainApproval, applyDomains } from './domains.mjs';
5
5
  import { normalizeDomain } from './zones.mjs';
6
6
  import { pagesAddress } from './pages-upload.mjs';
7
- import { formPageRoutes, formsWorkerParts, normalizeForms, previewForms, provisionForms } from './forms.mjs';
7
+ import { databaseName, findDatabase, formPageRoutes, formsWorkerParts, normalizeForms, previewForms, provisionForms } from './forms.mjs';
8
8
 
9
9
  const WORKERS_TARGET_ID = 'cloudflare-workers';
10
10
 
@@ -98,17 +98,30 @@ function publishResult({ targetId, name, accountId, hosting, link, hostnames, pl
98
98
  ...(forms ? { formSubmissions: forms.summary } : {}) } };
99
99
  }
100
100
 
101
- /** Workers with active forms: provision D1 and build the receiver parts. Pages and form-less sites keep assets only.
102
- * Runs after consent checks and before the upload session, so a failed provision changes no script. */
101
+ /** Provision active forms or retain the existing receiver for pending imports after a provider switch.
102
+ * Runs after consent checks and before upload, so failed provisioning changes no script.
103
+ * @complexity O(manifest + module bytes) space; existing provisioning or one inventory read.
104
+ * @overallScore 98 — Minor: existing multi-request provisioning is not an atomic Cloudflare transaction. */
103
105
  async function prepareForms({ api, kit, targetId, resourceName, formDestination, files }, _options = {}) {
104
106
  if (targetId !== WORKERS_TARGET_ID) return undefined;
105
107
  const normalized = normalizeForms({ formDestination, kit });
106
108
  if (!normalized) return undefined;
107
- const database = await provisionForms({ api, kit, resourceName });
109
+ const database = normalized.forms.length
110
+ ? await provisionForms({ api, kit, resourceName })
111
+ : await retainedFormsDatabase({ api, kit, resourceName });
112
+ if (!database) return undefined;
108
113
  const parts = await formsWorkerParts({ manifest: normalized, secret: normalized.secret, databaseId: database.databaseId }, { pageRoutes: formPageRoutes({ files }) });
109
114
  return { parts, summary: { forms: normalized.forms.length, databaseId: database.databaseId, databaseName: database.databaseName } };
110
115
  }
111
116
 
117
+ /** Rebind an existing receiver only: switching providers never discards uncollected answers.
118
+ * @complexity One bounded inventory read; O(inventory) response space. @overallScore 100 */
119
+ async function retainedFormsDatabase({ api, kit, resourceName }, _options = {}) {
120
+ const name = databaseName({ resourceName });
121
+ const existing = await findDatabase({ api, kit, name });
122
+ return existing ? { databaseId: existing.uuid, databaseName: name } : undefined;
123
+ }
124
+
112
125
  function preparePublish({ input, kit, config, plan, targetId }, _options = {}) {
113
126
  const maxFiles = targetId === WORKERS_TARGET_ID && config.assetPlan === 'paid' ? 100_000 : 20_000;
114
127
  const assets = prepareAssets({ files: input.files, responseHeaders: input.responseHeaders, kit }, { maxFiles });
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3
3
  "name": "cloudflare",
4
- "version": "0.3.1",
4
+ "version": "0.3.3",
5
5
  "description": "Publishes static exports to Cloudflare Workers or Pages and attaches reviewed custom domains using your saved Cloudflare connection. Workers sites with active forms store submissions in a D1 database in your Cloudflare account for the host to pull. Preview reads current infrastructure; domain changes require human confirmation.",
6
6
  "author": "Tovu",
7
7
  "license": "Apache-2.0",
8
8
  "extensions": {
9
- "tovu": {
9
+ "jini": {
10
10
  "vendorAliases": ["pages.dev", "workers.dev"],
11
11
  "displayName": "Cloudflare",
12
12
  "summary": "Publish static exports with Workers or Pages and review apex/www domain changes before applying them.",
@@ -10,10 +10,10 @@ description: Publish a site's static exports to Cloudflare Workers or Pages and
10
10
  Choose the card yourself from its `usedFor` list. Reuse a saved key or working sign-in for that
11
11
  task. Never offer a replacement unless the person asks.
12
12
 
13
- Open the plugin’s own card for the selected destination: `credential_save {kind:"plugin-provider",target:"cloudflare-workers"}` or `credential_save {kind:"plugin-provider",target:"cloudflare-pages"}`. Each card explains its permissions and collects the Account ID and optional Zone ID along with the masked token. Read `references/permissions.md` before requesting custom-domain access.
13
+ Open the plugin’s secure connection card for the selected destination, Workers or Pages. Each card explains its permissions and collects the Account ID and optional Zone ID along with the masked token. Read `references/permissions.md` before requesting custom-domain access.
14
14
 
15
- Use `deployment_get_static_publish_capabilities` → `deployment_preview_static_publish` →
16
- `deployment_execute_static_publish`. Prefer **Workers** (`cloudflare-workers`) for a **new** destination.
15
+ Inspect static-publishing capabilities → preview static publishing →
16
+ publish the static site with confirmation. Prefer **Workers** (`cloudflare-workers`) for a **new** destination.
17
17
  Keep **Pages** (`cloudflare-pages`) for existing Pages history/bindings or an explicit Pages choice.
18
18
  A plugin upgrade never moves an existing site between products. Use `lastPublish` and the exact
19
19
  `resourceName` from its config. Never guess a workers.dev account subdomain.
@@ -39,7 +39,7 @@ If state or the credential changes, preview and confirm again. The current HTTP
39
39
  approve domains; guide the person to the existing chat confirmation card until the domain UI lands.
40
40
 
41
41
  Keep one saved vendor connection: kind `vendor`, vendor `cloudflare`, encrypted
42
- `{token, accountId, zoneId?}`. Open `credential_save` with kind `plugin-provider` and the selected target;
42
+ `{token, accountId, zoneId?}`. Open the secure connection card for the selected destination;
43
43
  people enter secrets in its secure form, never chat. Keep existing Pages-only `worksFor` compatibility.
44
44
  To add Workers/DNS capabilities, the person must explicitly update permissions/compatibility on that
45
45
  same credential. Token active status alone proves no capability's permissions.
@@ -21,13 +21,13 @@ and should advance only after release acceptance.
21
21
 
22
22
  When the site has at least one active form, the same Worker also receives `POST /forms/:slug/submit`
23
23
  (the path the host's forms already post to, so exported HTML is unchanged and there is no CORS). Publishing
24
- finds or creates D1 database `tovu-forms-<script name>`, applies the plugin's forward-only migrations
25
- (`schema_migrations`), binds it as `TOVU_FORMS`, installs the per-site receiver key as secret
26
- `TOVU_FORMS_SECRET`, and routes `/forms/*` and `/_tovu/*` to the Worker before static assets. The
24
+ finds or creates the D1 database for that script, applies the plugin's forward-only migrations
25
+ (`schema_migrations`), binds it as the configured form-database binding, installs the per-site receiver key in
26
+ the configured secret binding, and routes `/forms/*` and the host's internal form routes to the Worker before static assets. The
27
27
  database is never dropped or recreated. The receiver checks only the compact manifest the host supplies
28
28
  (slugs, field names, required, max length), honours the host's `_hp` honeypot and rate-limits to 5 valid
29
29
  submissions per IP per form per 60 seconds; the host re-validates on pull. No file uploads. The host pulls
30
- pending rows through `GET /_tovu/forms/pending` and `POST /_tovu/forms/ack` with the receiver key.
30
+ pending rows through the host's pending-submission endpoint and its acknowledgement endpoint with the receiver key.
31
31
  After a submission the visitor returns to the page with `?form=<slug>&form_status=success`. Pages
32
32
  that contain a form are also routed to the Worker first (exact paths only; assets and other pages stay
33
33
  on the free static path), which hides the form and shows the host's own success message, or one plain