@jini-ai/agent-plugins 0.7.2 → 0.7.3-next.1
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.
- package/CHANGELOG.md +4 -6
- package/NOTICE +2 -0
- package/README.md +11 -15
- package/calendly/plugin.json +3 -3
- package/cloudflare/lib/forms.mjs +9 -10
- package/cloudflare/lib/target.mjs +1 -1
- package/cloudflare/plugin.json +3 -3
- package/cloudflare/worker/forms-receiver.mjs +9 -9
- package/composio/plugin.json +3 -3
- package/core/persistent-state.js +227 -163
- package/dist/admin-surfaces/connections/connections.d.ts +11 -6
- package/dist/admin-surfaces/connections/connections.js +102 -85
- package/dist/admin-surfaces/node.d.ts +27 -0
- package/dist/admin-surfaces/node.js +32 -0
- package/dist/admin-surfaces/plugin-state.js +21 -18
- package/dist/admin-surfaces/surface-client.d.ts +4 -0
- package/dist/admin-surfaces/surface-client.js +124 -117
- package/dist/admin-surfaces/surface-handlers.js +21 -17
- package/dist/admin-surfaces/theme.d.ts +5 -1
- package/dist/admin-surfaces/theme.js +3 -3
- package/dist/connect/access-token-tool.d.ts +3 -1
- package/dist/connect/access-token-tool.js +3 -2
- package/dist/connect/apply-connect-defaults.js +2 -2
- package/dist/connect/apply-tool-renames.js +9 -8
- package/dist/connect/connect-tool.d.ts +2 -0
- package/dist/connect/connect-tool.js +3 -2
- package/dist/connect/credential-cards.js +3 -2
- package/dist/connect/credential-save-tool.d.ts +14 -11
- package/dist/connect/credential-save-tool.js +128 -121
- package/dist/connect/enable-access.d.ts +2 -2
- package/dist/connect/enable-access.js +6 -6
- package/dist/connect/executable/register.js +40 -34
- package/dist/connect/federate-mcp.d.ts +21 -11
- package/dist/connect/federate-mcp.js +28 -21
- package/dist/connect/grant-signed-in-defaults.js +3 -3
- package/dist/connect/import-access-token.js +2 -1
- package/dist/connect/index.d.ts +1 -0
- package/dist/connect/index.js +1 -0
- package/dist/connect/plugin-credential-card.js +2 -1
- package/dist/connect/plugin-host/index.d.ts +9 -5
- package/dist/connect/plugin-host/index.js +113 -100
- package/dist/connect/ports.d.ts +1 -1
- package/dist/connect/row-update.d.ts +22 -0
- package/dist/connect/row-update.js +18 -0
- package/dist/connect/switch-on-saved-token.d.ts +4 -2
- package/dist/connect/switch-on-saved-token.js +1 -1
- package/dist/connect/token-map.d.ts +44 -0
- package/dist/connect/token-map.js +49 -0
- package/dist/core/identity-namespace.js +5 -0
- package/dist/folder-zip.d.ts +3 -1
- package/dist/folder-zip.js +2 -2
- package/dist/lifecycle/activation.d.ts +4 -4
- package/dist/lifecycle/activation.js +4 -5
- package/dist/lifecycle/automatic-use.js +236 -210
- package/dist/lifecycle/bundled-digests.d.ts +75 -12
- package/dist/lifecycle/bundled-digests.js +213 -212
- package/dist/lifecycle/bundled-source-archive.d.ts +1 -1
- package/dist/lifecycle/bundled-source-archive.js +263 -264
- package/dist/lifecycle/capability-projection.d.ts +1 -1
- package/dist/lifecycle/capability-projection.js +1 -1
- package/dist/lifecycle/credential-card-metadata.d.ts +1 -1
- package/dist/lifecycle/credential-card-metadata.js +27 -3
- package/dist/lifecycle/exports.js +9 -4
- package/dist/lifecycle/fetch-archive.d.ts +1 -1
- package/dist/lifecycle/fetch-archive.js +1 -1
- package/dist/lifecycle/host-tools/identity.js +3 -2
- package/dist/lifecycle/host-tools/ports.d.ts +2 -0
- package/dist/lifecycle/host-tools/search-tool.js +8 -8
- package/dist/lifecycle/host-tools/skill-tool.d.ts +18 -2
- package/dist/lifecycle/host-tools/skill-tool.js +16 -8
- package/dist/lifecycle/index.d.ts +118 -110
- package/dist/lifecycle/index.js +45 -12
- package/dist/lifecycle/install-errors.d.ts +1 -1
- package/dist/lifecycle/install-from-url.d.ts +1 -1
- package/dist/lifecycle/install-from-url.js +1 -1
- package/dist/lifecycle/install.d.ts +7 -2
- package/dist/lifecycle/install.js +414 -396
- package/dist/lifecycle/installed-package-index.js +45 -42
- package/dist/lifecycle/layout.d.ts +1 -1
- package/dist/lifecycle/layout.js +1 -1
- package/dist/lifecycle/mail/catalog.d.ts +8 -32
- package/dist/lifecycle/mail/catalog.js +25 -20
- package/dist/lifecycle/mail/contribution.d.ts +2 -2
- package/dist/lifecycle/mail/contribution.js +34 -34
- package/dist/lifecycle/mail/selection.js +6 -2
- package/dist/lifecycle/manifest.d.ts +3 -3
- package/dist/lifecycle/manifest.js +4 -4
- package/dist/lifecycle/mcp-provisioning.d.ts +3 -3
- package/dist/lifecycle/mcp-provisioning.js +3 -3
- package/dist/lifecycle/package-paths.d.ts +1 -1
- package/dist/lifecycle/package-paths.js +1 -1
- package/dist/lifecycle/persistent-state.js +1 -2
- package/dist/lifecycle/ports.d.ts +5 -1
- package/dist/lifecycle/resolve-agent-plugin-refs.d.ts +30 -8
- package/dist/lifecycle/resolve-agent-plugin-refs.js +227 -228
- package/dist/lifecycle/retire-bundled.d.ts +1 -52
- package/dist/lifecycle/retire-bundled.js +134 -84
- package/dist/lifecycle/search.d.ts +2 -1
- package/dist/lifecycle/search.js +1 -1
- package/dist/lifecycle/seed-bundled.d.ts +1 -1
- package/dist/lifecycle/seed-bundled.js +154 -155
- package/dist/lifecycle/set-enabled.d.ts +1 -1
- package/dist/lifecycle/set-enabled.js +1 -1
- package/dist/lifecycle/skill-file-reader.js +53 -50
- package/dist/lifecycle/tools/projection.d.ts +4 -7
- package/dist/lifecycle/tools/projection.js +109 -108
- package/dist/lifecycle/trusted-plugin-files.d.ts +2 -2
- package/dist/lifecycle/trusted-plugin-files.js +1 -1
- package/dist/lifecycle/uninstall.d.ts +1 -1
- package/dist/lifecycle/uninstall.js +237 -241
- package/dist/lifecycle/update-store.js +20 -17
- package/dist/lifecycle/update.js +287 -281
- package/dist/lifecycle/yauzl-archive-reader.d.ts +2 -2
- package/dist/lifecycle/yauzl-archive-reader.js +8 -2
- package/dist/manifest.d.ts +11 -3
- package/dist/manifest.js +9 -9
- package/fly/jini-credential-schemes.json +11 -0
- package/fly/plugin.json +3 -4
- package/github/plugin.json +3 -3
- package/github/source-control/backup-push.mjs +11 -11
- package/github/source-control/commit-site.mjs +3 -3
- package/github/source-control/github.mjs +12 -6
- package/github/source-control/write-files.mjs +27 -28
- package/github-pages/{tovu-deploy-targets.json → jini-deploy-targets.json} +22 -22
- package/github-pages/plugin.json +3 -3
- package/github-pages/targets/github-pages.mjs +3 -3
- package/google-login/plugin.json +3 -3
- package/google-workspace/README.md +14 -14
- package/google-workspace/form-destinations/README.md +3 -3
- package/google-workspace/form-destinations/dedupe.mjs +1 -1
- package/google-workspace/form-destinations/mapping.mjs +8 -9
- package/google-workspace/form-destinations/sheets.mjs +1 -1
- package/google-workspace/{tovu-admin-surfaces.json → jini-admin-surfaces.json} +2 -2
- package/google-workspace/{tovu-agent-tools.json → jini-agent-tools.json} +28 -28
- package/google-workspace/{tovu-connections.json → jini-connections.json} +2 -2
- package/google-workspace/lib/auth.mjs +2 -2
- package/google-workspace/lib/form-destination-settings.mjs +1 -1
- package/google-workspace/lib/picker-flow.mjs +2 -2
- package/google-workspace/lib/request-policy.mjs +1 -1
- package/google-workspace/lib/surface-actions.mjs +1 -1
- package/google-workspace/plugin.json +3 -3
- package/google-workspace/tools/sheets/README.md +3 -3
- package/google-workspace/tools/sheets-admin/README.md +3 -3
- package/google-workspace/ui/README.md +4 -4
- package/google-workspace/ui/connection-panel.mjs +51 -51
- package/google-workspace/ui/destination-panel.mjs +34 -34
- package/google-workspace/ui/dom.mjs +15 -16
- package/google-workspace/ui/picker-flow.mjs +2 -2
- package/google-workspace/ui/picker.mjs +19 -19
- package/google-workspace/ui/surface-client.mjs +96 -69
- package/higgsfield-media/plugin.json +3 -3
- package/jev/plugin.json +3 -3
- package/kuinetic/CHANGELOG.md +12 -0
- package/kuinetic/mcp.json +4 -0
- package/kuinetic/plugin.json +27 -0
- package/kuinetic/skills/kuinetic/SKILL.md +120 -0
- package/kuinetic/skills/kuinetic/references/effects-by-family.md +32 -0
- package/kuinetic/skills/kuinetic/references/opt-in-tiers.md +12 -0
- package/kuinetic/skills/kuinetic/references/reserved-keys.md +36 -0
- package/meilisearch/plugin.json +5 -5
- package/netlify/plugin.json +3 -3
- package/netlify/targets/netlify.mjs +14 -4
- package/opentelemetry/plugin.json +3 -3
- package/package.json +25 -20
- package/posthog/plugin.json +3 -3
- package/railway/plugin.json +3 -3
- package/render/plugin.json +3 -3
- package/resend/NOTES.md +2 -2
- package/resend/adapters/resend.mjs +1 -1
- package/resend/{tovu-mail-adapters.json → jini-mail-adapters.json} +1 -1
- package/resend/lib/domains.mjs +8 -8
- package/resend/plugin.json +3 -3
- package/s3-compatible/{tovu-deploy-targets.json → jini-deploy-targets.json} +68 -68
- package/s3-compatible/jini-object-stores.json +29 -0
- package/s3-compatible/object-stores/s3-compatible.mjs +19 -13
- package/s3-compatible/plugin.json +3 -3
- package/s3-compatible/targets/s3-compatible.mjs +25 -25
- package/sentry/plugin.json +3 -3
- package/shadcn-ui/CHANGELOG.md +7 -0
- package/shadcn-ui/LICENSE +201 -0
- package/shadcn-ui/NOTICE +10 -0
- package/shadcn-ui/mcp.json +4 -0
- package/shadcn-ui/plugin.json +26 -0
- package/shopify/plugin.json +3 -3
- package/site-compliance/plugin.json +3 -3
- package/site-import/plugin.json +3 -3
- package/supabase/mcp.json +1 -4
- package/supabase/plugin.json +3 -3
- package/ui-ux-design/CHANGELOG.md +13 -0
- package/ui-ux-design/NOTICE +2 -0
- package/ui-ux-design/README.md +17 -7
- package/ui-ux-design/plugin.json +6 -3
- package/ui-ux-design/skills/ui-ux-design/SKILL.md +38 -152
- package/ui-ux-design/skills/ui-ux-design/references/full-workflow.md +156 -0
- package/ui-ux-design/skills/ui-ux-design/references/ui-animation.md +4 -4
- package/vercel/NOTES.md +1 -1
- package/vercel/object-stores/vercel-blob.mjs +12 -2
- package/vercel/plugin.json +3 -3
- package/vercel/targets/vercel.mjs +3 -3
- package/wordpress/plugin.json +3 -3
- package/dist/lifecycle/node.d.ts +0 -11
- package/dist/lifecycle/node.js +0 -38
- package/fly/tovu-credential-schemes.json +0 -11
- package/github/deployments/github.mjs +0 -415
- package/s3-compatible/tovu-object-stores.json +0 -29
- package/ui-ux-design/skills/ui-ux-design/references/kuinetic-reference.md +0 -184
- /package/cloudflare/{tovu-consent.json → jini-consent.json} +0 -0
- /package/cloudflare/{tovu-deploy-targets.json → jini-deploy-targets.json} +0 -0
- /package/cloudflare/{tovu-form-destinations.json → jini-form-destinations.json} +0 -0
- /package/fly/{tovu-deploy-configs.json → jini-deploy-configs.json} +0 -0
- /package/fly/{tovu-deploy-ops.json → jini-deploy-ops.json} +0 -0
- /package/github/{tovu-deploy-ops.json → jini-deploy-ops.json} +0 -0
- /package/github/{tovu-source-control.json → jini-source-control.json} +0 -0
- /package/google-login/{tovu-login-providers.json → jini-login-providers.json} +0 -0
- /package/google-workspace/{tovu-form-destinations.json → jini-form-destinations.json} +0 -0
- /package/meilisearch/{tovu-search-providers.json → jini-search-providers.json} +0 -0
- /package/netlify/{tovu-consent.json → jini-consent.json} +0 -0
- /package/netlify/{tovu-deploy-targets.json → jini-deploy-targets.json} +0 -0
- /package/railway/{tovu-deploy-configs.json → jini-deploy-configs.json} +0 -0
- /package/railway/{tovu-deploy-ops.json → jini-deploy-ops.json} +0 -0
- /package/render/{tovu-deploy-configs.json → jini-deploy-configs.json} +0 -0
- /package/render/{tovu-deploy-ops.json → jini-deploy-ops.json} +0 -0
- /package/{ui-ux-design → shadcn-ui}/skills/shadcn-ui/README.md +0 -0
- /package/{ui-ux-design → shadcn-ui}/skills/shadcn-ui/SKILL.md +0 -0
- /package/{ui-ux-design → shadcn-ui}/skills/shadcn-ui/examples/auth-layout.tsx +0 -0
- /package/{ui-ux-design → shadcn-ui}/skills/shadcn-ui/examples/data-table.tsx +0 -0
- /package/{ui-ux-design → shadcn-ui}/skills/shadcn-ui/examples/form-pattern.tsx +0 -0
- /package/{ui-ux-design → shadcn-ui}/skills/shadcn-ui/resources/component-catalog.md +0 -0
- /package/{ui-ux-design → shadcn-ui}/skills/shadcn-ui/resources/customization-guide.md +0 -0
- /package/{ui-ux-design → shadcn-ui}/skills/shadcn-ui/resources/migration-guide.md +0 -0
- /package/{ui-ux-design → shadcn-ui}/skills/shadcn-ui/resources/setup-guide.md +0 -0
- /package/{ui-ux-design → shadcn-ui}/skills/shadcn-ui/scripts/verify-setup.sh +0 -0
- /package/vercel/{tovu-consent.json → jini-consent.json} +0 -0
- /package/vercel/{tovu-deploy-targets.json → jini-deploy-targets.json} +0 -0
- /package/vercel/{tovu-object-stores.json → jini-object-stores.json} +0 -0
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"module": "targets/github-pages.mjs",
|
|
8
8
|
"projectName": {
|
|
9
9
|
"label": "Commit message",
|
|
10
|
-
"help": "Used as the commit message when
|
|
10
|
+
"help": "Used as the commit message when the app pushes the export to the gh-pages branch."
|
|
11
11
|
},
|
|
12
12
|
"config": [
|
|
13
13
|
{
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"i18n": {
|
|
56
56
|
"es": {
|
|
57
57
|
"Commit message": "Mensaje de confirmación",
|
|
58
|
-
"Used as the commit message when
|
|
58
|
+
"Used as the commit message when the app pushes the export to the gh-pages branch.": "Se usa como mensaje de confirmación cuando la aplicación envía la exportación a la rama gh-pages.",
|
|
59
59
|
"Needs a classic personal access token with the \"repo\" scope, or a fine-grained token with Contents and Pages permissions set to Read and write.": "Necesita un token de acceso personal clásico con el alcance \"repo\", o un token de granularidad fina con permisos Contents y Pages configurados en Read and write.",
|
|
60
60
|
"Repository": "Repositorio",
|
|
61
61
|
"Owner": "Propietario",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
},
|
|
69
69
|
"id": {
|
|
70
70
|
"Commit message": "Pesan commit",
|
|
71
|
-
"Used as the commit message when
|
|
71
|
+
"Used as the commit message when the app pushes the export to the gh-pages branch.": "Digunakan sebagai pesan commit saat aplikasi ini mendorong ekspor ke branch gh-pages.",
|
|
72
72
|
"Needs a classic personal access token with the \"repo\" scope, or a fine-grained token with Contents and Pages permissions set to Read and write.": "Memerlukan token akses pribadi klasik dengan cakupan \"repo\", atau token terperinci dengan izin Contents dan Pages yang disetel ke Read and write.",
|
|
73
73
|
"Repository": "Repositori",
|
|
74
74
|
"Owner": "Pemilik",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
},
|
|
81
81
|
"de": {
|
|
82
82
|
"Commit message": "Commit-Nachricht",
|
|
83
|
-
"Used as the commit message when
|
|
83
|
+
"Used as the commit message when the app pushes the export to the gh-pages branch.": "Wird als Commit-Nachricht verwendet, wenn die App den Export in den Branch gh-pages pusht.",
|
|
84
84
|
"Needs a classic personal access token with the \"repo\" scope, or a fine-grained token with Contents and Pages permissions set to Read and write.": "Benötigt einen klassischen persönlichen Zugriffstoken mit dem Bereich \"repo\" oder einen feingranularen Token mit den Berechtigungen Contents und Pages auf Read and write.",
|
|
85
85
|
"Owner": "Inhaber",
|
|
86
86
|
"The GitHub user or organization that owns the repository. Enter your own username, or the organization's name if the organization owns it.": "Der GitHub-Benutzer oder die Organisation, dem bzw. der das Repository gehört. Geben Sie Ihren eigenen Benutzernamen ein oder den Namen der Organisation, wenn es der Organisation gehört.",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
},
|
|
92
92
|
"zh-CN": {
|
|
93
93
|
"Commit message": "提交消息",
|
|
94
|
-
"Used as the commit message when
|
|
94
|
+
"Used as the commit message when the app pushes the export to the gh-pages branch.": "应用将导出内容推送到 gh-pages 分支时,会使用此消息作为提交消息。",
|
|
95
95
|
"Needs a classic personal access token with the \"repo\" scope, or a fine-grained token with Contents and Pages permissions set to Read and write.": "需要具有 \"repo\" 范围的经典个人访问令牌,或将 Contents 和 Pages 权限设为 Read and write 的细粒度令牌。",
|
|
96
96
|
"Repository": "仓库",
|
|
97
97
|
"Owner": "所有者",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
},
|
|
105
105
|
"zh-TW": {
|
|
106
106
|
"Commit message": "提交訊息",
|
|
107
|
-
"Used as the commit message when
|
|
107
|
+
"Used as the commit message when the app pushes the export to the gh-pages branch.": "應用程式將匯出內容推送至 gh-pages 分支時,會使用此訊息作為提交訊息。",
|
|
108
108
|
"Needs a classic personal access token with the \"repo\" scope, or a fine-grained token with Contents and Pages permissions set to Read and write.": "需要具有 \"repo\" 範圍的傳統個人存取權杖,或將 Contents 與 Pages 權限設為 Read and write 的細微權杖。",
|
|
109
109
|
"Repository": "儲存庫",
|
|
110
110
|
"Owner": "擁有者",
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
},
|
|
118
118
|
"pt-BR": {
|
|
119
119
|
"Commit message": "Mensagem de commit",
|
|
120
|
-
"Used as the commit message when
|
|
120
|
+
"Used as the commit message when the app pushes the export to the gh-pages branch.": "Usada como mensagem de commit quando o aplicativo envia a exportação para a branch gh-pages.",
|
|
121
121
|
"Needs a classic personal access token with the \"repo\" scope, or a fine-grained token with Contents and Pages permissions set to Read and write.": "Precisa de um token de acesso pessoal clássico com o escopo \"repo\", ou de um token refinado com as permissões Contents e Pages definidas como Read and write.",
|
|
122
122
|
"Repository": "Repositório",
|
|
123
123
|
"Owner": "Proprietário",
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
},
|
|
130
130
|
"ru": {
|
|
131
131
|
"Commit message": "Сообщение коммита",
|
|
132
|
-
"Used as the commit message when
|
|
132
|
+
"Used as the commit message when the app pushes the export to the gh-pages branch.": "Используется как сообщение коммита, когда приложение отправляет экспорт в ветку gh-pages.",
|
|
133
133
|
"Needs a classic personal access token with the \"repo\" scope, or a fine-grained token with Contents and Pages permissions set to Read and write.": "Нужен классический персональный токен доступа с областью \"repo\" или детализированный токен с разрешениями Contents и Pages, установленными в Read and write.",
|
|
134
134
|
"Owner": "Владелец",
|
|
135
135
|
"The GitHub user or organization that owns the repository. Enter your own username, or the organization's name if the organization owns it.": "Пользователь или организация GitHub, которой принадлежит репозиторий. Введите своё имя пользователя или название организации, если репозиторий принадлежит ей.",
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
},
|
|
143
143
|
"fa": {
|
|
144
144
|
"Commit message": "پیام کامیت",
|
|
145
|
-
"Used as the commit message when
|
|
145
|
+
"Used as the commit message when the app pushes the export to the gh-pages branch.": "وقتی برنامه خروجی را به شاخه gh-pages پوش میکند، از این بهعنوان پیام کامیت استفاده میشود.",
|
|
146
146
|
"Needs a classic personal access token with the \"repo\" scope, or a fine-grained token with Contents and Pages permissions set to Read and write.": "به یک توکن دسترسی شخصی کلاسیک با دامنه \"repo\"، یا یک توکن ریزدانه با مجوزهای Contents و Pages روی Read and write نیاز دارد.",
|
|
147
147
|
"Owner": "مالک",
|
|
148
148
|
"The GitHub user or organization that owns the repository. Enter your own username, or the organization's name if the organization owns it.": "کاربر یا سازمان GitHub که مالک مخزن است. نام کاربری خودتان را وارد کنید، یا اگر مخزن متعلق به سازمان است، نام سازمان را.",
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
},
|
|
156
156
|
"ar": {
|
|
157
157
|
"Commit message": "رسالة الالتزام",
|
|
158
|
-
"Used as the commit message when
|
|
158
|
+
"Used as the commit message when the app pushes the export to the gh-pages branch.": "تُستخدم كرسالة التزام عندما يدفع التطبيق التصدير إلى فرع gh-pages.",
|
|
159
159
|
"Needs a classic personal access token with the \"repo\" scope, or a fine-grained token with Contents and Pages permissions set to Read and write.": "يتطلب رمز وصول شخصياً تقليدياً بنطاق \"repo\"، أو رمزاً دقيق الصلاحيات مع تعيين أذونات Contents وPages إلى Read and write.",
|
|
160
160
|
"Owner": "المالك",
|
|
161
161
|
"The GitHub user or organization that owns the repository. Enter your own username, or the organization's name if the organization owns it.": "مستخدم GitHub أو المؤسسة التي تملك المستودع. أدخل اسم المستخدم الخاص بك، أو اسم المؤسسة إذا كانت هي المالكة.",
|
|
@@ -168,7 +168,7 @@
|
|
|
168
168
|
},
|
|
169
169
|
"ja": {
|
|
170
170
|
"Commit message": "コミットメッセージ",
|
|
171
|
-
"Used as the commit message when
|
|
171
|
+
"Used as the commit message when the app pushes the export to the gh-pages branch.": "このアプリがエクスポートを gh-pages ブランチへプッシュするときのコミットメッセージとして使われます。",
|
|
172
172
|
"Needs a classic personal access token with the \"repo\" scope, or a fine-grained token with Contents and Pages permissions set to Read and write.": "\"repo\" スコープの従来の個人アクセストークン、または Contents と Pages の権限を Read and write に設定したきめ細かいトークンが必要です。",
|
|
173
173
|
"Repository": "リポジトリ",
|
|
174
174
|
"Owner": "オーナー",
|
|
@@ -181,7 +181,7 @@
|
|
|
181
181
|
},
|
|
182
182
|
"ko": {
|
|
183
183
|
"Commit message": "커밋 메시지",
|
|
184
|
-
"Used as the commit message when
|
|
184
|
+
"Used as the commit message when the app pushes the export to the gh-pages branch.": "앱이 내보내기를 gh-pages 브랜치로 푸시할 때 커밋 메시지로 사용됩니다.",
|
|
185
185
|
"Needs a classic personal access token with the \"repo\" scope, or a fine-grained token with Contents and Pages permissions set to Read and write.": "\"repo\" 범위가 있는 클래식 개인 액세스 토큰 또는 Contents와 Pages 권한이 Read and write로 설정된 세분화된 토큰이 필요합니다.",
|
|
186
186
|
"Repository": "리포지토리",
|
|
187
187
|
"Owner": "소유자",
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
},
|
|
195
195
|
"pl": {
|
|
196
196
|
"Commit message": "Komunikat commitu",
|
|
197
|
-
"Used as the commit message when
|
|
197
|
+
"Used as the commit message when the app pushes the export to the gh-pages branch.": "Używane jako komunikat commitu, gdy aplikacja wysyła eksport do gałęzi gh-pages.",
|
|
198
198
|
"Needs a classic personal access token with the \"repo\" scope, or a fine-grained token with Contents and Pages permissions set to Read and write.": "Wymaga klasycznego osobistego tokenu dostępu z zakresem \"repo\" albo szczegółowego tokenu z uprawnieniami Contents i Pages ustawionymi na Read and write.",
|
|
199
199
|
"Owner": "Właściciel",
|
|
200
200
|
"The GitHub user or organization that owns the repository. Enter your own username, or the organization's name if the organization owns it.": "Użytkownik lub organizacja GitHub, do której należy repozytorium. Wpisz swoją nazwę użytkownika albo nazwę organizacji, jeśli to ona jest właścicielem.",
|
|
@@ -207,7 +207,7 @@
|
|
|
207
207
|
},
|
|
208
208
|
"hu": {
|
|
209
209
|
"Commit message": "Commit üzenet",
|
|
210
|
-
"Used as the commit message when
|
|
210
|
+
"Used as the commit message when the app pushes the export to the gh-pages branch.": "Ezt használja commit üzenetként, amikor az alkalmazás az exportot a gh-pages ágba küldi.",
|
|
211
211
|
"Needs a classic personal access token with the \"repo\" scope, or a fine-grained token with Contents and Pages permissions set to Read and write.": "Klasszikus személyes hozzáférési token szükséges \"repo\" hatókörrel, vagy finomhangolt token, amelynél a Contents és Pages engedélyek Read and write értékre vannak állítva.",
|
|
212
212
|
"Owner": "Tulajdonos",
|
|
213
213
|
"The GitHub user or organization that owns the repository. Enter your own username, or the organization's name if the organization owns it.": "Az a GitHub-felhasználó vagy szervezet, amelyé a tároló. Adja meg a saját felhasználónevét, vagy a szervezet nevét, ha a tároló a szervezeté.",
|
|
@@ -220,7 +220,7 @@
|
|
|
220
220
|
},
|
|
221
221
|
"fr": {
|
|
222
222
|
"Commit message": "Message de commit",
|
|
223
|
-
"Used as the commit message when
|
|
223
|
+
"Used as the commit message when the app pushes the export to the gh-pages branch.": "Utilisé comme message de commit lorsque l’application envoie l’export vers la branche gh-pages.",
|
|
224
224
|
"Needs a classic personal access token with the \"repo\" scope, or a fine-grained token with Contents and Pages permissions set to Read and write.": "Nécessite un jeton d’accès personnel classique avec la portée \"repo\", ou un jeton à granularité fine avec les autorisations Contents et Pages réglées sur Read and write.",
|
|
225
225
|
"Repository": "Dépôt",
|
|
226
226
|
"Owner": "Propriétaire",
|
|
@@ -233,7 +233,7 @@
|
|
|
233
233
|
},
|
|
234
234
|
"uk": {
|
|
235
235
|
"Commit message": "Повідомлення коміту",
|
|
236
|
-
"Used as the commit message when
|
|
236
|
+
"Used as the commit message when the app pushes the export to the gh-pages branch.": "Використовується як повідомлення коміту, коли застосунок надсилає експорт до гілки gh-pages.",
|
|
237
237
|
"Needs a classic personal access token with the \"repo\" scope, or a fine-grained token with Contents and Pages permissions set to Read and write.": "Потрібен класичний персональний токен доступу з областю \"repo\" або деталізований токен із дозволами Contents і Pages, установленими на Read and write.",
|
|
238
238
|
"Owner": "Власник",
|
|
239
239
|
"The GitHub user or organization that owns the repository. Enter your own username, or the organization's name if the organization owns it.": "Користувач або організація GitHub, якій належить репозиторій. Введіть своє ім’я користувача або назву організації, якщо репозиторій належить їй.",
|
|
@@ -246,7 +246,7 @@
|
|
|
246
246
|
},
|
|
247
247
|
"tr": {
|
|
248
248
|
"Commit message": "Commit mesajı",
|
|
249
|
-
"Used as the commit message when
|
|
249
|
+
"Used as the commit message when the app pushes the export to the gh-pages branch.": "Uygulama dışa aktarmayı gh-pages dalına gönderdiğinde commit mesajı olarak kullanılır.",
|
|
250
250
|
"Needs a classic personal access token with the \"repo\" scope, or a fine-grained token with Contents and Pages permissions set to Read and write.": "\"repo\" kapsamına sahip klasik bir kişisel erişim belirteci veya Contents ve Pages izinleri Read and write olarak ayarlanmış ayrıntılı bir belirteç gerekir.",
|
|
251
251
|
"Owner": "Sahip",
|
|
252
252
|
"The GitHub user or organization that owns the repository. Enter your own username, or the organization's name if the organization owns it.": "Deponun sahibi olan GitHub kullanıcısı veya kuruluşu. Kendi kullanıcı adınızı ya da depo bir kuruluşa aitse kuruluşun adını girin.",
|
|
@@ -259,7 +259,7 @@
|
|
|
259
259
|
},
|
|
260
260
|
"th": {
|
|
261
261
|
"Commit message": "ข้อความคอมมิต",
|
|
262
|
-
"Used as the commit message when
|
|
262
|
+
"Used as the commit message when the app pushes the export to the gh-pages branch.": "ใช้เป็นข้อความคอมมิตเมื่อแอปพุชการส่งออกไปยังสาขา gh-pages",
|
|
263
263
|
"Needs a classic personal access token with the \"repo\" scope, or a fine-grained token with Contents and Pages permissions set to Read and write.": "ต้องใช้โทเค็นการเข้าถึงส่วนบุคคลแบบคลาสสิกที่มีขอบเขต \"repo\" หรือโทเค็นแบบละเอียดที่ตั้งค่าสิทธิ์ Contents และ Pages เป็น Read and write",
|
|
264
264
|
"Owner": "เจ้าของ",
|
|
265
265
|
"The GitHub user or organization that owns the repository. Enter your own username, or the organization's name if the organization owns it.": "ผู้ใช้หรือองค์กร GitHub ที่เป็นเจ้าของรีโพซิทอรี ใส่ชื่อผู้ใช้ของคุณเอง หรือชื่อองค์กรหากองค์กรเป็นเจ้าของ",
|
|
@@ -272,7 +272,7 @@
|
|
|
272
272
|
},
|
|
273
273
|
"it": {
|
|
274
274
|
"Commit message": "Messaggio di commit",
|
|
275
|
-
"Used as the commit message when
|
|
275
|
+
"Used as the commit message when the app pushes the export to the gh-pages branch.": "Usato come messaggio di commit quando l’applicazione invia l’esportazione al branch gh-pages.",
|
|
276
276
|
"Needs a classic personal access token with the \"repo\" scope, or a fine-grained token with Contents and Pages permissions set to Read and write.": "Richiede un token di accesso personale classico con l’ambito \"repo\", oppure un token granulare con i permessi Contents e Pages impostati su Read and write.",
|
|
277
277
|
"Owner": "Proprietario",
|
|
278
278
|
"The GitHub user or organization that owns the repository. Enter your own username, or the organization's name if the organization owns it.": "L’utente o l’organizzazione GitHub proprietaria del repository. Inserisci il tuo nome utente, oppure il nome dell’organizzazione se il repository è suo.",
|
|
@@ -284,7 +284,7 @@
|
|
|
284
284
|
},
|
|
285
285
|
"hi": {
|
|
286
286
|
"Commit message": "कमिट संदेश",
|
|
287
|
-
"Used as the commit message when
|
|
287
|
+
"Used as the commit message when the app pushes the export to the gh-pages branch.": "जब यह ऐप एक्सपोर्ट को gh-pages शाखा में पुश करता है, तो यह कमिट संदेश के रूप में उपयोग होता है।",
|
|
288
288
|
"Needs a classic personal access token with the \"repo\" scope, or a fine-grained token with Contents and Pages permissions set to Read and write.": "\"repo\" स्कोप वाला क्लासिक व्यक्तिगत एक्सेस टोकन, या Contents और Pages अनुमतियों को Read and write पर सेट किया गया फाइन-ग्रेन्ड टोकन चाहिए।",
|
|
289
289
|
"Owner": "स्वामी",
|
|
290
290
|
"The GitHub user or organization that owns the repository. Enter your own username, or the organization's name if the organization owns it.": "वह GitHub उपयोगकर्ता या संगठन जिसके पास रिपॉज़िटरी है। अपना उपयोगकर्ता नाम दर्ज करें, या यदि रिपॉज़िटरी संगठन की है तो संगठन का नाम।",
|
|
@@ -297,7 +297,7 @@
|
|
|
297
297
|
},
|
|
298
298
|
"ur": {
|
|
299
299
|
"Commit message": "کمٹ پیغام",
|
|
300
|
-
"Used as the commit message when
|
|
300
|
+
"Used as the commit message when the app pushes the export to the gh-pages branch.": "جب یہ ایپ ایکسپورٹ کو gh-pages برانچ پر پش کرتی ہے تو اسے کمٹ پیغام کے طور پر استعمال کیا جاتا ہے۔",
|
|
301
301
|
"Needs a classic personal access token with the \"repo\" scope, or a fine-grained token with Contents and Pages permissions set to Read and write.": "\"repo\" دائرہ کار والا کلاسک ذاتی رسائی ٹوکن، یا Contents اور Pages کی اجازتیں Read and write پر سیٹ والا باریک ٹوکن درکار ہے۔",
|
|
302
302
|
"Owner": "مالک",
|
|
303
303
|
"The GitHub user or organization that owns the repository. Enter your own username, or the organization's name if the organization owns it.": "وہ GitHub صارف یا تنظیم جس کی ملکیت میں ریپوزٹری ہے۔ اپنا صارف نام درج کریں، یا اگر ریپوزٹری تنظیم کی ہے تو تنظیم کا نام۔",
|
|
@@ -310,7 +310,7 @@
|
|
|
310
310
|
},
|
|
311
311
|
"bn": {
|
|
312
312
|
"Commit message": "কমিট বার্তা",
|
|
313
|
-
"Used as the commit message when
|
|
313
|
+
"Used as the commit message when the app pushes the export to the gh-pages branch.": "অ্যাপটি যখন gh-pages শাখায় এক্সপোর্ট পুশ করে, তখন এটি কমিট বার্তা হিসেবে ব্যবহৃত হয়।",
|
|
314
314
|
"Needs a classic personal access token with the \"repo\" scope, or a fine-grained token with Contents and Pages permissions set to Read and write.": "\"repo\" স্কোপসহ একটি ক্লাসিক ব্যক্তিগত অ্যাক্সেস টোকেন, অথবা Contents এবং Pages অনুমতি Read and write-এ সেট করা একটি সূক্ষ্ম-গ্রেইন টোকেন প্রয়োজন।",
|
|
315
315
|
"Owner": "মালিক",
|
|
316
316
|
"The GitHub user or organization that owns the repository. Enter your own username, or the organization's name if the organization owns it.": "যে GitHub ব্যবহারকারী বা সংস্থা রিপোজিটরির মালিক। আপনার নিজের ব্যবহারকারী নাম লিখুন, অথবা রিপোজিটরি সংস্থার হলে সংস্থার নাম।",
|
package/github-pages/plugin.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
|
|
3
3
|
"name": "github-pages",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.2",
|
|
5
5
|
"description": "Publishes the site's static export to GitHub Pages with the workspace's own saved token. Ships the host code itself (a host loads it only because that host chose to ship this plugin) and the know-how an agent needs: which token permissions to grant, never guessing the owner, the address and base path, and what each failure means in plain words.",
|
|
6
|
-
"author": "
|
|
6
|
+
"author": "Jini",
|
|
7
7
|
"license": "Apache-2.0",
|
|
8
8
|
"extensions": {
|
|
9
9
|
"jini": {
|
|
10
10
|
"vendorAliases": ["github_pages", "github pages", "githubpages", "github.io"],
|
|
11
11
|
"displayName": "GitHub Pages",
|
|
12
12
|
"summary": "Puts your website online on GitHub Pages. The assistant shows you a preview first.",
|
|
13
|
-
"id": "
|
|
13
|
+
"id": "jini/github-pages",
|
|
14
14
|
"provides": [
|
|
15
15
|
"deploy-target:github-pages"
|
|
16
16
|
],
|
|
@@ -9,7 +9,7 @@ import { createHash } from "node:crypto";
|
|
|
9
9
|
* `DeployError` come from the host kit the host injects (see {@link bindGitHubPages}), bound once
|
|
10
10
|
* per target: an installed plugin has no npm dependencies.
|
|
11
11
|
*
|
|
12
|
-
* What the first host
|
|
12
|
+
* What the first host used to add in its core around this target now lives in the module
|
|
13
13
|
* contract at the bottom: the `.nojekyll` marker, the `/<repo>` base path, and the owner/repo/branch
|
|
14
14
|
* validation. GitHub Pages has no response-header config, so `responseHeaders` is ignored.
|
|
15
15
|
*
|
|
@@ -47,7 +47,7 @@ function withNoJekyll(files) {
|
|
|
47
47
|
* `DeployHostKit` helpers, called positionally; `DeployError` is `new (message, status?, details?)`).
|
|
48
48
|
* @returns The target class, constructed with `{ token, owner, repo, branch? }` as in devops.
|
|
49
49
|
*/
|
|
50
|
-
export function bindGitHubPages(kit) {
|
|
50
|
+
export function bindGitHubPages(kit, _optional = {}) {
|
|
51
51
|
const { fetch: fetchWithTimeout, timeouts: FETCH_TIMEOUT_MS, sleep, DeployError, checkDeploymentUrl, normalizeDeploymentUrl, waitForReachableDeploymentUrl, assertNotRedirected, redirectGuardInit } = kit;
|
|
52
52
|
const GITHUB_PAGES_TARGET_ID = 'github-pages';
|
|
53
53
|
const GITHUB_API = 'https://api.github.com';
|
|
@@ -516,7 +516,7 @@ export default {
|
|
|
516
516
|
},
|
|
517
517
|
/**
|
|
518
518
|
* Shape check at the boundary before any value reaches a URL (the class still escapes each
|
|
519
|
-
* segment). Texts are byte-identical to the checks the first host
|
|
519
|
+
* segment). Texts are byte-identical to the checks the first host ran in its core before this moved here.
|
|
520
520
|
* @param {{ owner?: unknown, repo?: unknown, branch?: unknown }} config
|
|
521
521
|
* @returns {string | null}
|
|
522
522
|
*/
|
package/google-login/plugin.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
|
|
3
3
|
"name": "google-login",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.2",
|
|
5
5
|
"description": "Adds Google sign-in for site members using this site's own Google OAuth client. Includes setup guidance for apps using Supabase Auth.",
|
|
6
|
-
"author": "
|
|
6
|
+
"author": "Jini",
|
|
7
7
|
"license": "Apache-2.0",
|
|
8
8
|
"extensions": {
|
|
9
9
|
"jini": {
|
|
10
10
|
"maturity": "soon",
|
|
11
|
-
"id": "
|
|
11
|
+
"id": "jini/google-login",
|
|
12
12
|
"displayName": "Google Login",
|
|
13
13
|
"summary": "Let members sign in with Google, or set up Google in an app's existing Supabase Auth.",
|
|
14
14
|
"provides": ["member-login:google"],
|
|
@@ -16,11 +16,11 @@ callback route) lives in the host's overlay for this plugin, not here.
|
|
|
16
16
|
| Path | What it is |
|
|
17
17
|
|---|---|
|
|
18
18
|
| `plugin.json`, `mcp.json` | Manifest (no MCP servers). |
|
|
19
|
-
| `
|
|
19
|
+
| `jini-connections.json` | The sign-in (the `jini-*.json` files are the host's contribution contracts): Google endpoints, per-client-kind parameters, Picker start params and the `picked_file_ids` callback field, and the NAMES of the host config holding the client ids (`JINI_GOOGLE_WORKSPACE_OAUTH_{WEB,DESKTOP}_CLIENT_{ID,SECRET}`, placeholders until the Cloud project exists). `byoClient: true` lets a workspace admin use their own OAuth client instead (saved as the custom credential `google-workspace/account OAuth client`; see `skills/google-workspace/references/connection.md`). |
|
|
20
20
|
| `products.json` | Product catalog: id, label, tool prefix (every tool named with it belongs to the product and is gated by it; a security pin enumerates them), required scopes. Sheets = `drive.file` only. |
|
|
21
|
-
| `
|
|
22
|
-
| `
|
|
23
|
-
| `
|
|
21
|
+
| `jini-agent-tools.json` + `tools/` | Executable tools (the host adds its own prefix to each name): `account_info`, and the Sheets tools in `tools/sheets/` (see its README). |
|
|
22
|
+
| `jini-admin-surfaces.json` + `ui/` | Plugin-owned admin surfaces: the connection panel, Choose spreadsheet (Picker) and Form destinations, each with a server-side `handlerModule`. See `ui/README.md`. |
|
|
23
|
+
| `jini-form-destinations.json` + `form-destinations/` | Push-only `google-sheets` destination (no `receive`): frozen column mapping, bounded submission-id dedupe, contract-shaped results. See `form-destinations/README.md`. Not yet called by the host's forms fan-out (wired in a later lot). |
|
|
24
24
|
| `lib/` | Shared code (below). |
|
|
25
25
|
| `skills/google-workspace/` | What the in-app assistant reads. |
|
|
26
26
|
| `__tests__/` | Plugin-local `node:test` suites (not shipped): `fake-google-http.mjs` (127.0.0.1 fake Google), the OAuth contract pins and the skill-content pins. |
|
|
@@ -52,7 +52,7 @@ callback route) lives in the host's overlay for this plugin, not here.
|
|
|
52
52
|
revoke throws `provider-unreachable` or `provider-refused` for the host to record.
|
|
53
53
|
- An access token can expire in flight: a 401 gets one more token read and is retried only if the
|
|
54
54
|
token differs. An unchanged token or second 401 is `reconnect-required`. Tools and form delivery share this.
|
|
55
|
-
- The budgets declared in `
|
|
55
|
+
- The budgets declared in `jini-connections.json` (45/min per account, 240/min per instance) are
|
|
56
56
|
charged by the host on every token read; its refusal (`rate-limited`) becomes `quota-delay` with
|
|
57
57
|
the host's `retryAfterMs` and `outcome: 'not-applied'`, and follows the same inline backoff rules
|
|
58
58
|
as Google's 429 (nothing was sent, so even an append may wait and retry).
|
|
@@ -60,17 +60,17 @@ callback route) lives in the host's overlay for this plugin, not here.
|
|
|
60
60
|
|
|
61
61
|
## How it fits
|
|
62
62
|
|
|
63
|
-
The host reads each contribution file and runs it on Jini's services: `
|
|
64
|
-
`@jini-ai/integrations/api-connections`; `
|
|
65
|
-
`@jini-ai/agent-plugins/lifecycle/tools`; `
|
|
66
|
-
`@jini-ai/agent-plugins/admin-surfaces`; `
|
|
67
|
-
destination registry. In
|
|
63
|
+
The host reads each contribution file and runs it on Jini's services: `jini-connections.json` on
|
|
64
|
+
`@jini-ai/integrations/api-connections`; `jini-agent-tools.json` on
|
|
65
|
+
`@jini-ai/agent-plugins/lifecycle/tools`; `jini-admin-surfaces.json` on
|
|
66
|
+
`@jini-ai/agent-plugins/admin-surfaces`; `jini-form-destinations.json` through the host's form
|
|
67
|
+
destination registry. In the first host those readers are `features/api-connections/contribution.ts`,
|
|
68
68
|
`features/agent-plugins/executable-tools`, `features/agent-plugins/admin-surfaces` and
|
|
69
69
|
`features/form-destinations/registry.ts`.
|
|
70
70
|
|
|
71
71
|
## Extension points
|
|
72
72
|
|
|
73
|
-
A new product adds an entry to `products.json` (its scopes), its tools to `
|
|
73
|
+
A new product adds an entry to `products.json` (its scopes), its tools to `jini-agent-tools.json`
|
|
74
74
|
under its own prefix, and its modules under `products/<id>/`, all on the same sign-in.
|
|
75
75
|
|
|
76
76
|
## Known gaps
|
|
@@ -94,13 +94,13 @@ under its own prefix, and its modules under `products/<id>/`, all on the same si
|
|
|
94
94
|
- Panels (G13b) are built and unit-tested only; they need a Chrome check (hosted Picker inside the
|
|
95
95
|
sandboxed frame, desktop system-browser Picker, the account-page button). The host says whether it
|
|
96
96
|
is hosted or desktop (`context.hostKind`); a hosted site also needs both
|
|
97
|
-
`
|
|
97
|
+
`JINI_GOOGLE_PICKER_BROWSER_KEY` and `JINI_GOOGLE_PICKER_APP_ID` (placeholders, never real values)
|
|
98
98
|
or the Picker is `picker-not-configured`. The panels cannot open links themselves (no
|
|
99
99
|
`allow-popups`): the connection panel declares `linkOrigins: ["https://myaccount.google.com"]` and
|
|
100
100
|
asks the admin page to open the Google account-access page (`client.openLink`); the address also
|
|
101
101
|
stays visible as text.
|
|
102
102
|
- Quotas: the per-account (45/min) and per-instance (240/min) budgets declared in
|
|
103
|
-
`
|
|
103
|
+
`jini-connections.json` are implemented by the host and charged on every token read; there is no
|
|
104
104
|
plugin-side limiter. Form delivery reads a token per Google request (`credential.getAccessToken`),
|
|
105
105
|
so it is charged per request like the tools.
|
|
106
106
|
- Hosted Picker sessions are kept one per surface (`picker-session:<surfaceId>`), not per tab or
|
|
@@ -128,5 +128,5 @@ on `GoogleWorkspaceError` (a request index or kind name, never Google's text or
|
|
|
128
128
|
Hosted sign-in asks for consent when Jini has no renewable credential stored (`forceConsentParams`),
|
|
129
129
|
so connecting another workspace can obtain offline access. Renewable same-account reconnects keep
|
|
130
130
|
incremental grants without forcing consent. Client settings now use the full plugin namespace,
|
|
131
|
-
`
|
|
131
|
+
`JINI_GOOGLE_WORKSPACE_OAUTH_{WEB,DESKTOP}_CLIENT_{ID,SECRET}`. Provision these settings
|
|
132
132
|
before enabling this build; the earlier abbreviated names were never configured, so no fallback is needed.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# `form-destinations/` — the Google Sheets form destination
|
|
2
2
|
|
|
3
3
|
**Purpose.** Push each accepted form submission into a Google Sheets tab as one row, at least once,
|
|
4
|
-
with best-effort dedupe. Declared in `../
|
|
4
|
+
with best-effort dedupe. Declared in `../jini-form-destinations.json` as `google-sheets` (push only,
|
|
5
5
|
no `receive`), part of the Sheets product (`../products.json`).
|
|
6
6
|
|
|
7
7
|
## Public API
|
|
@@ -31,7 +31,7 @@ connection now holds another account (`authorization-required`), and a binding w
|
|
|
31
31
|
(`configuration-invalid`).
|
|
32
32
|
|
|
33
33
|
Which column holds which field is kept in the sheet, not the binding: the first time a field is
|
|
34
|
-
written, its column gets a developer-metadata marker (`
|
|
34
|
+
written, its column gets a developer-metadata marker (`jini_form_field` = the field id, visibility
|
|
35
35
|
`DOCUMENT`, attached to that one column). The marker decides the column from then on, so a label
|
|
36
36
|
edited in the form, a header renamed in the sheet, or columns inserted or moved before it keep the
|
|
37
37
|
field's data in one column (Google moves column metadata with the column). An untagged field is
|
|
@@ -52,7 +52,7 @@ there. A distinct outcome needs a contract change in Jini (`@jini-ai/cms/forms`)
|
|
|
52
52
|
|---|---|
|
|
53
53
|
| `sheets.mjs` | One attempt: product check → tab by sheet id → header row + column markers → dedupe scan → one atomic column batch (grid, headers, markers) → RAW append → re-scan after a lost answer. |
|
|
54
54
|
| `mapping.mjs` | Field id ↔ marker / header ↔ column (`buildMapping`, `readMarkers`, `planColumns`); mapping errors; the RAW row (checkbox groups joined `", "`). |
|
|
55
|
-
| `dedupe.mjs` | Scans the `
|
|
55
|
+
| `dedupe.mjs` | Scans the `_jini_submission_id` column in 5,000-row chunks; > 50,000 data rows → `destination-limit`. |
|
|
56
56
|
| `delivery-result.mjs` | The contract's result shape and the plugin-error → contract-code table. |
|
|
57
57
|
|
|
58
58
|
## How it fits
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @file Best-effort dedupe for the Google Sheets form destination: finds the rows whose
|
|
3
|
-
* `
|
|
3
|
+
* `_jini_submission_id` cell holds a submission id, by reading that one column in bounded chunks.
|
|
4
4
|
*
|
|
5
5
|
* Exists because a retry (a lost answer, a replayed job) must not add the same submission twice,
|
|
6
6
|
* and Google's append has no idempotency key. The delivery scans before every append and again
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*
|
|
5
5
|
* Exists so a spreadsheet's columns never silently change meaning. Fields are identified by their
|
|
6
6
|
* stable field id (`name`); the label is only the header text. The first time the plugin writes a field
|
|
7
|
-
* to a column it tags that column with a developer-metadata marker (`
|
|
7
|
+
* to a column it tags that column with a developer-metadata marker (`jini_form_field` = field id,
|
|
8
8
|
* attached to the column itself). From then on the marker decides the column: a label edited in
|
|
9
9
|
* the form, a header renamed in the sheet, or columns inserted or moved before it do not move the
|
|
10
10
|
* field's data (Google moves column metadata with its column). Why a marker in the sheet and not
|
|
@@ -18,12 +18,11 @@
|
|
|
18
18
|
*/
|
|
19
19
|
import { DeliveryRefusal } from './delivery-result.mjs';
|
|
20
20
|
|
|
21
|
-
// These
|
|
22
|
-
|
|
23
|
-
export const
|
|
24
|
-
export const SUBMITTED_AT_HEADER = '_tovu_submitted_at';
|
|
21
|
+
// These fixed headers and the marker key identify the plugin's spreadsheet columns.
|
|
22
|
+
export const SUBMISSION_ID_HEADER = '_jini_submission_id';
|
|
23
|
+
export const SUBMITTED_AT_HEADER = '_jini_submitted_at';
|
|
25
24
|
/** Developer-metadata key tagging a column with the form field id it holds. */
|
|
26
|
-
export const FIELD_MARKER_KEY = '
|
|
25
|
+
export const FIELD_MARKER_KEY = 'jini_form_field';
|
|
27
26
|
|
|
28
27
|
const mappingInvalid = () => new DeliveryRefusal({ code: 'mapping-invalid', retryable: false });
|
|
29
28
|
|
|
@@ -93,8 +92,8 @@ function addColumn(plan, header) {
|
|
|
93
92
|
return index;
|
|
94
93
|
}
|
|
95
94
|
|
|
96
|
-
/** A plugin column (`
|
|
97
|
-
function
|
|
95
|
+
/** A plugin column (`_jini_*` header): found once by its fixed header, or new on a fresh tab. @complexity O(width). */
|
|
96
|
+
function managedColumn(plan, entry) {
|
|
98
97
|
const positions = headerPositions(plan, entry.header);
|
|
99
98
|
if (positions.length === 1) return positions[0];
|
|
100
99
|
if (positions.length > 1 || !plan.fresh) throw mappingInvalid();
|
|
@@ -128,7 +127,7 @@ export function planColumns(required, _optional = {}) {
|
|
|
128
127
|
const tagged = new Set([...markers.values()].flat());
|
|
129
128
|
const headerRow = fresh ? [] : required.headerRow;
|
|
130
129
|
const plan = { fresh, tagged, headerRow, width: Math.max(headerRow.length, ...[...tagged].map((index) => index + 1)), newHeaders: [], untagged: [] };
|
|
131
|
-
const columns = mapping.map((entry) => (entry.source ?
|
|
130
|
+
const columns = mapping.map((entry) => (entry.source ? managedColumn(plan, entry) : fieldColumn(plan, entry, markers.get(entry.field) ?? [])));
|
|
132
131
|
if (new Set(columns).size !== columns.length) throw mappingInvalid();
|
|
133
132
|
return { columns, newHeaders: plan.newHeaders, untagged: plan.untagged, width: plan.width };
|
|
134
133
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* submission was planned) into at most one spreadsheet row, and to report the outcome in the forms
|
|
7
7
|
* delivery contract's vocabulary. Per attempt it: refuses while the Sheets product is off; finds
|
|
8
8
|
* the tab by its numeric sheet id (renames are safe); matches columns by their field markers and
|
|
9
|
-
* headers (`mapping.mjs`); scans the `
|
|
9
|
+
* headers (`mapping.mjs`); scans the `_jini_submission_id` column for this submission
|
|
10
10
|
* (`dedupe.mjs`) and stops as delivered when the row is already there (more than one such row is
|
|
11
11
|
* reported as delivered, never appended again; its "review" note is dropped by the ledger); in one atomic batch grows the
|
|
12
12
|
* grid, writes the new headers and tags new field columns; appends the row with RAW values. An append whose answer was lost is never replayed: the column is scanned again,
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"handlerModule": "ui/picker.handler.mjs",
|
|
28
28
|
"bootstrap": {"type":"object","properties":{"mode":{"type":"string","maxLength":16,"enum":["unavailable","system-browser","hosted"]},"reason":{"type":"string","maxLength":64},"message":{"type":"string","maxLength":300},"accountLabel":{"type":"string","maxLength":320},"picker":{"type":"object","properties":{"accessToken":{"type":"string","maxLength":4096},"developerKey":{"type":"string","maxLength":256},"appId":{"type":"string","maxLength":64},"sessionId":{"type":"string","maxLength":64}},"required":["accessToken","developerKey","appId","sessionId"],"additionalProperties":false}},"required":["mode"],"additionalProperties":false},
|
|
29
29
|
"connections": [{"id":"account","startParams":["trigger_onepick","mimetypes"],"callbackFields":["picked_file_ids"]}],
|
|
30
|
-
"publicConfig": ["
|
|
30
|
+
"publicConfig": ["JINI_GOOGLE_PICKER_BROWSER_KEY","JINI_GOOGLE_PICKER_APP_ID"],
|
|
31
31
|
"actions": [
|
|
32
32
|
{"name":"list-picked","effect":"read","input":{"type":"object","properties":{},"required":[],"additionalProperties":false},"result":{"type":"object","properties":{"spreadsheets":{"type":"array","items":{"type":"object","properties":{"spreadsheetId":{"type":"string","maxLength":200},"title":{"type":"string","maxLength":1024},"url":{"type":"string","maxLength":512}},"required":["spreadsheetId","title","url"],"additionalProperties":false},"maxItems":10}},"required":["spreadsheets"],"additionalProperties":false}},
|
|
33
33
|
{"name":"verify-picked","input":{"type":"object","properties":{"sessionId":{"type":"string","maxLength":64,"minLength":1},"fileId":{"type":"string","maxLength":256,"minLength":1}},"required":["sessionId","fileId"],"additionalProperties":false},"result":{"type":"object","properties":{"spreadsheet":{"type":"object","properties":{"spreadsheetId":{"type":"string","maxLength":200},"title":{"type":"string","maxLength":1024},"url":{"type":"string","maxLength":512}},"required":["spreadsheetId","title","url"],"additionalProperties":false}},"required":["spreadsheet"],"additionalProperties":false}},
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"forms": ["list"],
|
|
47
47
|
"bootstrap": {"type":"object","properties":{"mode":{"type":"string","maxLength":16,"enum":["unavailable","system-browser","hosted"]},"reason":{"type":"string","maxLength":64},"message":{"type":"string","maxLength":300},"accountLabel":{"type":"string","maxLength":320},"picker":{"type":"object","properties":{"accessToken":{"type":"string","maxLength":4096},"developerKey":{"type":"string","maxLength":256},"appId":{"type":"string","maxLength":64},"sessionId":{"type":"string","maxLength":64}},"required":["accessToken","developerKey","appId","sessionId"],"additionalProperties":false}},"required":["mode"],"additionalProperties":false},
|
|
48
48
|
"connections": [{"id":"account","startParams":["trigger_onepick","mimetypes"],"callbackFields":["picked_file_ids"]}],
|
|
49
|
-
"publicConfig": ["
|
|
49
|
+
"publicConfig": ["JINI_GOOGLE_PICKER_BROWSER_KEY","JINI_GOOGLE_PICKER_APP_ID"],
|
|
50
50
|
"actions": [
|
|
51
51
|
{"name":"list-picked","effect":"read","input":{"type":"object","properties":{},"required":[],"additionalProperties":false},"result":{"type":"object","properties":{"spreadsheets":{"type":"array","items":{"type":"object","properties":{"spreadsheetId":{"type":"string","maxLength":200},"title":{"type":"string","maxLength":1024},"url":{"type":"string","maxLength":512}},"required":["spreadsheetId","title","url"],"additionalProperties":false},"maxItems":10}},"required":["spreadsheets"],"additionalProperties":false}},
|
|
52
52
|
{"name":"verify-picked","input":{"type":"object","properties":{"sessionId":{"type":"string","maxLength":64,"minLength":1},"fileId":{"type":"string","maxLength":256,"minLength":1}},"required":["sessionId","fileId"],"additionalProperties":false},"result":{"type":"object","properties":{"spreadsheet":{"type":"object","properties":{"spreadsheetId":{"type":"string","maxLength":200},"title":{"type":"string","maxLength":1024},"url":{"type":"string","maxLength":512}},"required":["spreadsheetId","title","url"],"additionalProperties":false}},"required":["spreadsheet"],"additionalProperties":false}},
|