aimeat 2.7.0 → 3.1.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.
- package/dist/.env.example +86 -2
- package/dist/build-stamp.json +4 -4
- package/dist/locales/en.json +9103 -8612
- package/dist/locales/es.json +9095 -0
- package/dist/locales/fi.json +9103 -8612
- package/dist/public/agent-consent.html +17 -2
- package/dist/public/changelog.json +169 -0
- package/dist/public/components/AgentConsent.js +158 -0
- package/dist/public/components/CardMenu.js +100 -0
- package/dist/public/components/CopyButton.js +20 -4
- package/dist/public/components/HomeUiSwitch.js +78 -0
- package/dist/public/components/ImageDeliverable.js +2 -3
- package/dist/public/components/LinkPreview.js +28 -5
- package/dist/public/components/NotificationBell.js +4 -3
- package/dist/public/components/OpenItemsButton.js +67 -0
- package/dist/public/components/OpenItemsList.js +151 -0
- package/dist/public/components/PromptCard.js +128 -0
- package/dist/public/cortex-bundled/aimeat-input.js +611 -0
- package/dist/public/cortex-bundled/aimeat-input.yaml +149 -0
- package/dist/public/css/components/card-menu.css +64 -0
- package/dist/public/css/components/hello-mcp.css +8 -0
- package/dist/public/css/style-testbed.css +2 -5
- package/dist/public/css/theme.css +86 -35
- package/dist/public/css/views/agents-detail.css +12 -16
- package/dist/public/css/views/help.css +7 -33
- package/dist/public/css/views/home.css +538 -0
- package/dist/public/css/views/inbox.css +40 -1
- package/dist/public/css/views/landing.css +25 -8
- package/dist/public/css/views/portal-classic.css +3 -17
- package/dist/public/css/views/portal-dev.css +23 -12
- package/dist/public/css/views/profile.css +3683 -3553
- package/dist/public/css/views/start.css +1 -1
- package/dist/public/js/api.js +17 -17
- package/dist/public/js/components/auth-image.js +2 -8
- package/dist/public/js/services/admin.js +0 -8
- package/dist/public/js/services/auth.js +261 -79
- package/dist/public/js/services/memory.js +2 -5
- package/dist/public/js/services/offers.js +22 -2
- package/dist/public/js/services/open-items.js +116 -0
- package/dist/public/js/services/organisms.images.js +2 -2
- package/dist/public/js/services/organisms.js +7 -11
- package/dist/public/js/services/organisms.prompts.js +29 -9
- package/dist/public/js/services/packages.js +3 -6
- package/dist/public/js/services/shares.js +70 -0
- package/dist/public/js/services/skills.js +5 -8
- package/dist/public/js/services/unfurl.js +2 -3
- package/dist/public/js/style-testbed.js +13 -15
- package/dist/public/js/use-session.js +38 -0
- package/dist/public/js/utils.js +12 -7
- package/dist/public/lib/VENDORED.md +1 -0
- package/dist/public/lib/three-world@1.min.js +4335 -0
- package/dist/public/oauth-consent.html +54 -10
- package/dist/public/spa.html +1028 -959
- package/dist/public/style-testbed.html +12 -11
- package/dist/public/views/admin/csm-tab.js +4 -1
- package/dist/public/views/admin/email-tab.js +459 -458
- package/dist/public/views/admin/portal-tab.js +4 -2
- package/dist/public/views/admin/prompts-tab.js +16 -0
- package/dist/public/views/admin/security-tab.js +2 -2
- package/dist/public/views/admin.js +1 -4
- package/dist/public/views/app-grant.js +7 -12
- package/dist/public/views/help.js +3 -1
- package/dist/public/views/home/feed.js +209 -0
- package/dist/public/views/home/header.js +44 -0
- package/dist/public/views/home/index.js +227 -0
- package/dist/public/views/home/settings-dialog.js +96 -0
- package/dist/public/views/home/step-agent.js +277 -0
- package/dist/public/views/home/step-branch-b.js +186 -0
- package/dist/public/views/home/step-mat.js +228 -0
- package/dist/public/views/home/welcome-door.js +143 -0
- package/dist/public/views/invite-accept.js +17 -20
- package/dist/public/views/landing-prompts.js +170 -0
- package/dist/public/views/landing.js +89 -188
- package/dist/public/views/portal-classic.js +19 -13
- package/dist/public/views/portal-dev.js +28 -16
- package/dist/public/views/portal-dev.panels.js +18 -30
- package/dist/public/views/portal-dev.shared.js +9 -4
- package/dist/public/views/portfolio/builder.js +4 -1
- package/dist/public/views/portfolio/shared.js +4 -8
- package/dist/public/views/portfolio.js +9 -25
- package/dist/public/views/profile/access-tab/access-tokens.js +3 -8
- package/dist/public/views/profile/access-tab/connections.js +158 -3
- package/dist/public/views/profile/access-tab/shares-incoming.js +63 -0
- package/dist/public/views/profile/access-tab/sharing-groups.js +119 -2
- package/dist/public/views/profile/access-tab.js +11 -4
- package/dist/public/views/profile/agents/agent-card.js +69 -32
- package/dist/public/views/profile/agents/scope-config.js +27 -43
- package/dist/public/views/profile/agents/scope-model.js +296 -0
- package/dist/public/views/profile/agents/scopes-modal.js +54 -43
- package/dist/public/views/profile/agents/shared-board.js +20 -16
- package/dist/public/views/profile/agents/state-detector.js +35 -29
- package/dist/public/views/profile/agents/tab-agent-config.js +5 -2
- package/dist/public/views/profile/agents/tab-integration.js +8 -4
- package/dist/public/views/profile/agents-tab.js +46 -73
- package/dist/public/views/profile/ai-setup-guide.js +7 -3
- package/dist/public/views/profile/appdev-tab.js +46 -2
- package/dist/public/views/profile/apps-tab.js +19 -13
- package/dist/public/views/profile/calibrator-batch.helpers.js +2 -3
- package/dist/public/views/profile/calibrator-batch.js +5 -2
- package/dist/public/views/profile/calibrator-tab.js +6 -3
- package/dist/public/views/profile/companies-front-page.js +172 -0
- package/dist/public/views/profile/companies-prompts.js +194 -0
- package/dist/public/views/profile/companies-tab.js +354 -0
- package/dist/public/views/profile/ecosystem-tab.cards.js +3 -1
- package/dist/public/views/profile/ecosystem-tab.helpers.js +12 -1
- package/dist/public/views/profile/extensions-tab.js +8 -8
- package/dist/public/views/profile/hello-mcp-panel.js +5 -2
- package/dist/public/views/profile/inbox-tab/components.js +24 -40
- package/dist/public/views/profile/inbox-tab/helpers.js +57 -4
- package/dist/public/views/profile/inbox-tab/panels.js +7 -0
- package/dist/public/views/profile/inbox-tab/use-thread-ux.js +48 -2
- package/dist/public/views/profile/inbox-tab.js +63 -57
- package/dist/public/views/profile/instruction-block.js +4 -1
- package/dist/public/views/profile/landing-page.cards.js +32 -2
- package/dist/public/views/profile/landing-page.js +52 -7
- package/dist/public/views/profile/landing-page.modals.js +2 -6
- package/dist/public/views/profile/memory-tab/backup.js +77 -0
- package/dist/public/views/profile/memory-tab/browse-view.js +4 -1
- package/dist/public/views/profile/memory-tab/components.js +16 -46
- package/dist/public/views/profile/memory-tab/entries-view.js +50 -10
- package/dist/public/views/profile/memory-tab/file-helpers.js +2 -5
- package/dist/public/views/profile/memory-tab/files-view.js +5 -2
- package/dist/public/views/profile/memory-tab/sharing.js +74 -0
- package/dist/public/views/profile/memory-tab.js +19 -57
- package/dist/public/views/profile/nodes-tab.js +4 -1
- package/dist/public/views/profile/notifications-tab.js +2 -1
- package/dist/public/views/profile/organisms/helpers.js +2 -2
- package/dist/public/views/profile/organisms/home.js +4 -1
- package/dist/public/views/profile/organisms/invite-panel.js +6 -5
- package/dist/public/views/profile/organisms/members.js +2 -1
- package/dist/public/views/profile/organisms/panels.js +4 -1
- package/dist/public/views/profile/organisms/readme-panel.js +17 -7
- package/dist/public/views/profile/organisms/workspace/generator.js +4 -1
- package/dist/public/views/profile/organisms/workspace/model.js +4 -7
- package/dist/public/views/profile/organisms/workspace/panels.js +7 -2
- package/dist/public/views/profile/organisms/workspace/record-space.js +9 -1
- package/dist/public/views/profile/organisms/workspace-comments.js +2 -1
- package/dist/public/views/profile/organisms/workspace-list.js +3 -3
- package/dist/public/views/profile/organisms/workspace.js +8 -5
- package/dist/public/views/profile/organisms-tab.js +37 -4
- package/dist/public/views/profile/pnl-tab.js +236 -0
- package/dist/public/views/profile/portfolio-tab.js +4 -1
- package/dist/public/views/profile/wallet-tab.js +48 -3
- package/dist/public/views/profile.js +4 -0
- package/dist/public/views/public-knowledge-viewer.js +4 -1
- package/dist/public/views/public-workspace-viewer.js +7 -16
- package/dist/public/views/start.js +6 -4
- package/dist/public/views/transparency.js +11 -0
- package/dist/scripts/audit-mcp-tools.js +32 -1
- package/dist/scripts/audit-mcp-tools.js.map +1 -1
- package/dist/scripts/changelog-add.d.ts +2 -0
- package/dist/scripts/changelog-add.d.ts.map +1 -0
- package/dist/scripts/changelog-add.js +133 -0
- package/dist/scripts/changelog-add.js.map +1 -0
- package/dist/scripts/check-ai-disclosure.d.ts.map +1 -1
- package/dist/scripts/check-ai-disclosure.js +44 -21
- package/dist/scripts/check-ai-disclosure.js.map +1 -1
- package/dist/scripts/check-copied-logic.d.ts +2 -0
- package/dist/scripts/check-copied-logic.d.ts.map +1 -0
- package/dist/scripts/check-copied-logic.js +201 -0
- package/dist/scripts/check-copied-logic.js.map +1 -0
- package/dist/scripts/check-ext-entrypoints.d.ts +2 -0
- package/dist/scripts/check-ext-entrypoints.d.ts.map +1 -0
- package/dist/scripts/check-ext-entrypoints.js +118 -0
- package/dist/scripts/check-ext-entrypoints.js.map +1 -0
- package/dist/scripts/check-js-syntax.d.ts +1 -26
- package/dist/scripts/check-js-syntax.d.ts.map +1 -1
- package/dist/scripts/check-js-syntax.js +9 -82
- package/dist/scripts/check-js-syntax.js.map +1 -1
- package/dist/scripts/check-liaison-surface.d.ts +2 -0
- package/dist/scripts/check-liaison-surface.d.ts.map +1 -0
- package/dist/scripts/check-liaison-surface.js +181 -0
- package/dist/scripts/check-liaison-surface.js.map +1 -0
- package/dist/scripts/check-locales.d.ts +2 -0
- package/dist/scripts/check-locales.d.ts.map +1 -0
- package/dist/scripts/check-locales.js +46 -0
- package/dist/scripts/check-locales.js.map +1 -0
- package/dist/scripts/check-outbound-fetch.d.ts +8 -0
- package/dist/scripts/check-outbound-fetch.d.ts.map +1 -0
- package/dist/scripts/check-outbound-fetch.js +134 -0
- package/dist/scripts/check-outbound-fetch.js.map +1 -0
- package/dist/scripts/check-profile-tabs.d.ts +2 -0
- package/dist/scripts/check-profile-tabs.d.ts.map +1 -0
- package/dist/scripts/check-profile-tabs.js +71 -0
- package/dist/scripts/check-profile-tabs.js.map +1 -0
- package/dist/scripts/check-route-scopes.d.ts +8 -0
- package/dist/scripts/check-route-scopes.d.ts.map +1 -0
- package/dist/scripts/check-route-scopes.js +174 -0
- package/dist/scripts/check-route-scopes.js.map +1 -0
- package/dist/scripts/check-shared-implementation.d.ts +2 -0
- package/dist/scripts/check-shared-implementation.d.ts.map +1 -0
- package/dist/scripts/check-shared-implementation.js +158 -0
- package/dist/scripts/check-shared-implementation.js.map +1 -0
- package/dist/scripts/check-sse-parity.d.ts +2 -0
- package/dist/scripts/check-sse-parity.d.ts.map +1 -0
- package/dist/scripts/check-sse-parity.js +195 -0
- package/dist/scripts/check-sse-parity.js.map +1 -0
- package/dist/scripts/check-storage-parity.d.ts +2 -0
- package/dist/scripts/check-storage-parity.d.ts.map +1 -0
- package/dist/scripts/check-storage-parity.js +121 -0
- package/dist/scripts/check-storage-parity.js.map +1 -0
- package/dist/scripts/check-trusted-keys.d.ts +9 -0
- package/dist/scripts/check-trusted-keys.d.ts.map +1 -0
- package/dist/scripts/check-trusted-keys.js +122 -0
- package/dist/scripts/check-trusted-keys.js.map +1 -0
- package/dist/scripts/lib/locale-files.d.ts +40 -0
- package/dist/scripts/lib/locale-files.d.ts.map +1 -0
- package/dist/scripts/lib/locale-files.js +181 -0
- package/dist/scripts/lib/locale-files.js.map +1 -0
- package/dist/scripts/locale-extract.d.ts +2 -0
- package/dist/scripts/locale-extract.d.ts.map +1 -0
- package/dist/scripts/locale-extract.js +99 -0
- package/dist/scripts/locale-extract.js.map +1 -0
- package/dist/scripts/locale-merge.d.ts +2 -0
- package/dist/scripts/locale-merge.d.ts.map +1 -0
- package/dist/scripts/locale-merge.js +114 -0
- package/dist/scripts/locale-merge.js.map +1 -0
- package/dist/scripts/migrate-group-shares.d.ts +2 -0
- package/dist/scripts/migrate-group-shares.d.ts.map +1 -0
- package/dist/scripts/migrate-group-shares.js +89 -0
- package/dist/scripts/migrate-group-shares.js.map +1 -0
- package/dist/src/auth/jwt.d.ts.map +1 -1
- package/dist/src/auth/jwt.js +12 -2
- package/dist/src/auth/jwt.js.map +1 -1
- package/dist/src/auth/middleware.d.ts +56 -0
- package/dist/src/auth/middleware.d.ts.map +1 -1
- package/dist/src/auth/middleware.js +121 -4
- package/dist/src/auth/middleware.js.map +1 -1
- package/dist/src/auth/sse-domain-scopes.d.ts +4 -7
- package/dist/src/auth/sse-domain-scopes.d.ts.map +1 -1
- package/dist/src/auth/sse-domain-scopes.js +15 -4
- package/dist/src/auth/sse-domain-scopes.js.map +1 -1
- package/dist/src/cli/connect/mcp/tools/agent-management.d.ts +1 -0
- package/dist/src/cli/connect/mcp/tools/agent-management.d.ts.map +1 -1
- package/dist/src/cli/connect/mcp/tools/agent-management.js +9 -0
- package/dist/src/cli/connect/mcp/tools/agent-management.js.map +1 -1
- package/dist/src/cli/connect/mcp/tools/appdev.d.ts +8 -1
- package/dist/src/cli/connect/mcp/tools/appdev.d.ts.map +1 -1
- package/dist/src/cli/connect/mcp/tools/appdev.js +13 -13
- package/dist/src/cli/connect/mcp/tools/appdev.js.map +1 -1
- package/dist/src/cli/connect/mcp/tools/companies.d.ts +20 -0
- package/dist/src/cli/connect/mcp/tools/companies.d.ts.map +1 -0
- package/dist/src/cli/connect/mcp/tools/companies.js +103 -0
- package/dist/src/cli/connect/mcp/tools/companies.js.map +1 -0
- package/dist/src/cli/connect/mcp/tools/groups.d.ts.map +1 -1
- package/dist/src/cli/connect/mcp/tools/groups.js +27 -0
- package/dist/src/cli/connect/mcp/tools/groups.js.map +1 -1
- package/dist/src/cli/connect/mcp/tools/index.d.ts.map +1 -1
- package/dist/src/cli/connect/mcp/tools/index.js +4 -2
- package/dist/src/cli/connect/mcp/tools/index.js.map +1 -1
- package/dist/src/cli/connect/mcp/tools/knowledge.d.ts +7 -0
- package/dist/src/cli/connect/mcp/tools/knowledge.d.ts.map +1 -1
- package/dist/src/cli/connect/mcp/tools/knowledge.js +9 -5
- package/dist/src/cli/connect/mcp/tools/knowledge.js.map +1 -1
- package/dist/src/cli/connect/mcp/tools/portfolio.d.ts +19 -0
- package/dist/src/cli/connect/mcp/tools/portfolio.d.ts.map +1 -0
- package/dist/src/cli/connect/mcp/tools/portfolio.js +13 -0
- package/dist/src/cli/connect/mcp/tools/portfolio.js.map +1 -0
- package/dist/src/cli/connect/mcp/tools/schedules.d.ts +3 -0
- package/dist/src/cli/connect/mcp/tools/schedules.d.ts.map +1 -1
- package/dist/src/cli/connect/mcp/tools/schedules.js +5 -0
- package/dist/src/cli/connect/mcp/tools/schedules.js.map +1 -1
- package/dist/src/cli/connect/tool-call-defs-agent.d.ts +3 -1
- package/dist/src/cli/connect/tool-call-defs-agent.d.ts.map +1 -1
- package/dist/src/cli/connect/tool-call-defs-agent.js +16 -31
- package/dist/src/cli/connect/tool-call-defs-agent.js.map +1 -1
- package/dist/src/cli/connect/tool-call-defs-apps.d.ts +39 -0
- package/dist/src/cli/connect/tool-call-defs-apps.d.ts.map +1 -1
- package/dist/src/cli/connect/tool-call-defs-apps.js +116 -21
- package/dist/src/cli/connect/tool-call-defs-apps.js.map +1 -1
- package/dist/src/cli/connect/tool-call-defs-core.d.ts +33 -0
- package/dist/src/cli/connect/tool-call-defs-core.d.ts.map +1 -1
- package/dist/src/cli/connect/tool-call-defs-core.js +64 -4
- package/dist/src/cli/connect/tool-call-defs-core.js.map +1 -1
- package/dist/src/cli/connect/tool-call-defs-organism.d.ts.map +1 -1
- package/dist/src/cli/connect/tool-call-defs-organism.js +6 -0
- package/dist/src/cli/connect/tool-call-defs-organism.js.map +1 -1
- package/dist/src/cli/init-wizard/presets.d.ts.map +1 -1
- package/dist/src/cli/init-wizard/presets.js +2 -0
- package/dist/src/cli/init-wizard/presets.js.map +1 -1
- package/dist/src/cli/init-wizard/steps-advanced.d.ts +3 -0
- package/dist/src/cli/init-wizard/steps-advanced.d.ts.map +1 -1
- package/dist/src/cli/init-wizard/steps-advanced.js +30 -0
- package/dist/src/cli/init-wizard/steps-advanced.js.map +1 -1
- package/dist/src/commerce/beneficiary-book.d.ts +19 -0
- package/dist/src/commerce/beneficiary-book.d.ts.map +1 -1
- package/dist/src/commerce/beneficiary-book.js +20 -0
- package/dist/src/commerce/beneficiary-book.js.map +1 -1
- package/dist/src/commerce/hold-book.d.ts +49 -0
- package/dist/src/commerce/hold-book.d.ts.map +1 -0
- package/dist/src/commerce/hold-book.js +181 -0
- package/dist/src/commerce/hold-book.js.map +1 -0
- package/dist/src/commerce/session-service.d.ts +8 -1
- package/dist/src/commerce/session-service.d.ts.map +1 -1
- package/dist/src/commerce/session-service.js +45 -1
- package/dist/src/commerce/session-service.js.map +1 -1
- package/dist/src/commerce/stripe-handler.d.ts +3 -0
- package/dist/src/commerce/stripe-handler.d.ts.map +1 -1
- package/dist/src/commerce/stripe-handler.js +49 -0
- package/dist/src/commerce/stripe-handler.js.map +1 -1
- package/dist/src/commerce/test-money-handler.d.ts +1 -1
- package/dist/src/commerce/test-money-handler.d.ts.map +1 -1
- package/dist/src/commerce/test-money-handler.js +36 -5
- package/dist/src/commerce/test-money-handler.js.map +1 -1
- package/dist/src/commerce/types.d.ts +41 -0
- package/dist/src/commerce/types.d.ts.map +1 -1
- package/dist/src/config-hosts.d.ts +25 -0
- package/dist/src/config-hosts.d.ts.map +1 -0
- package/dist/src/config-hosts.js +43 -0
- package/dist/src/config-hosts.js.map +1 -0
- package/dist/src/config-operator.d.ts +4 -1
- package/dist/src/config-operator.d.ts.map +1 -1
- package/dist/src/config-operator.js +4 -4
- package/dist/src/config-operator.js.map +1 -1
- package/dist/src/config-posture.d.ts +25 -0
- package/dist/src/config-posture.d.ts.map +1 -0
- package/dist/src/config-posture.js +30 -0
- package/dist/src/config-posture.js.map +1 -0
- package/dist/src/config-site-contacts.d.ts +24 -0
- package/dist/src/config-site-contacts.d.ts.map +1 -0
- package/dist/src/config-site-contacts.js +42 -0
- package/dist/src/config-site-contacts.js.map +1 -0
- package/dist/src/config-types.d.ts +54 -0
- package/dist/src/config-types.d.ts.map +1 -1
- package/dist/src/config.d.ts +1 -7
- package/dist/src/config.d.ts.map +1 -1
- package/dist/src/config.js +60 -94
- package/dist/src/config.js.map +1 -1
- package/dist/src/data/app-templates/components.d.ts +1 -0
- package/dist/src/data/app-templates/components.d.ts.map +1 -1
- package/dist/src/data/app-templates/components.js +28 -0
- package/dist/src/data/app-templates/components.js.map +1 -1
- package/dist/src/data/app-templates.d.ts.map +1 -1
- package/dist/src/data/app-templates.js +2 -1
- package/dist/src/data/app-templates.js.map +1 -1
- package/dist/src/data/appdev-pitfalls.d.ts +4 -0
- package/dist/src/data/appdev-pitfalls.d.ts.map +1 -1
- package/dist/src/data/appdev-pitfalls.js +34 -0
- package/dist/src/data/appdev-pitfalls.js.map +1 -1
- package/dist/src/data/builtin-skills.d.ts +8 -0
- package/dist/src/data/builtin-skills.d.ts.map +1 -1
- package/dist/src/data/builtin-skills.js +25 -3
- package/dist/src/data/builtin-skills.js.map +1 -1
- package/dist/src/data/builtin-skills.open-items.d.ts +19 -0
- package/dist/src/data/builtin-skills.open-items.d.ts.map +1 -0
- package/dist/src/data/builtin-skills.open-items.js +130 -0
- package/dist/src/data/builtin-skills.open-items.js.map +1 -0
- package/dist/src/data/getting-started.d.ts +29 -0
- package/dist/src/data/getting-started.d.ts.map +1 -0
- package/dist/src/data/getting-started.js +89 -0
- package/dist/src/data/getting-started.js.map +1 -0
- package/dist/src/data/library-packs/cortex.d.ts +3 -0
- package/dist/src/data/library-packs/cortex.d.ts.map +1 -1
- package/dist/src/data/library-packs/cortex.js +58 -0
- package/dist/src/data/library-packs/cortex.js.map +1 -1
- package/dist/src/data/library-packs/sdk.js +2 -2
- package/dist/src/data/library-packs/sdk.js.map +1 -1
- package/dist/src/data/library-packs/vendored.d.ts.map +1 -1
- package/dist/src/data/library-packs/vendored.js +41 -0
- package/dist/src/data/library-packs/vendored.js.map +1 -1
- package/dist/src/generated/api-types.d.ts +23904 -19849
- package/dist/src/generated/api-types.d.ts.map +1 -1
- package/dist/src/i18n.d.ts +1 -1
- package/dist/src/i18n.d.ts.map +1 -1
- package/dist/src/i18n.js +13 -6
- package/dist/src/i18n.js.map +1 -1
- package/dist/src/mcp/agent-capabilities.d.ts +5 -0
- package/dist/src/mcp/agent-capabilities.d.ts.map +1 -1
- package/dist/src/mcp/agent-capabilities.js +13 -23
- package/dist/src/mcp/agent-capabilities.js.map +1 -1
- package/dist/src/mcp/agent-management.d.ts +11 -2
- package/dist/src/mcp/agent-management.d.ts.map +1 -1
- package/dist/src/mcp/agent-management.js +51 -66
- package/dist/src/mcp/agent-management.js.map +1 -1
- package/dist/src/mcp/agent-messages.d.ts +8 -0
- package/dist/src/mcp/agent-messages.d.ts.map +1 -1
- package/dist/src/mcp/agent-messages.js +39 -43
- package/dist/src/mcp/agent-messages.js.map +1 -1
- package/dist/src/mcp/agent-onboarding.d.ts +5 -1
- package/dist/src/mcp/agent-onboarding.d.ts.map +1 -1
- package/dist/src/mcp/agent-onboarding.js +44 -135
- package/dist/src/mcp/agent-onboarding.js.map +1 -1
- package/dist/src/mcp/agent-schedules.d.ts +17 -5
- package/dist/src/mcp/agent-schedules.d.ts.map +1 -1
- package/dist/src/mcp/agent-schedules.js +88 -80
- package/dist/src/mcp/agent-schedules.js.map +1 -1
- package/dist/src/mcp/agent-tasks.d.ts +20 -0
- package/dist/src/mcp/agent-tasks.d.ts.map +1 -1
- package/dist/src/mcp/agent-tasks.js +118 -172
- package/dist/src/mcp/agent-tasks.js.map +1 -1
- package/dist/src/mcp/agent-telemetry.d.ts.map +1 -1
- package/dist/src/mcp/agent-telemetry.js +5 -23
- package/dist/src/mcp/agent-telemetry.js.map +1 -1
- package/dist/src/mcp/annotations.d.ts +2 -0
- package/dist/src/mcp/annotations.d.ts.map +1 -1
- package/dist/src/mcp/annotations.js +19 -3
- package/dist/src/mcp/annotations.js.map +1 -1
- package/dist/src/mcp/appdev-pitfalls.d.ts +9 -1
- package/dist/src/mcp/appdev-pitfalls.d.ts.map +1 -1
- package/dist/src/mcp/appdev-pitfalls.js +37 -18
- package/dist/src/mcp/appdev-pitfalls.js.map +1 -1
- package/dist/src/mcp/appdev-proofs.d.ts +11 -3
- package/dist/src/mcp/appdev-proofs.d.ts.map +1 -1
- package/dist/src/mcp/appdev-proofs.js +33 -72
- package/dist/src/mcp/appdev-proofs.js.map +1 -1
- package/dist/src/mcp/apps-fork.d.ts +22 -0
- package/dist/src/mcp/apps-fork.d.ts.map +1 -0
- package/dist/src/mcp/apps-fork.js +71 -0
- package/dist/src/mcp/apps-fork.js.map +1 -0
- package/dist/src/mcp/apps-ui.d.ts +39 -0
- package/dist/src/mcp/apps-ui.d.ts.map +1 -0
- package/dist/src/mcp/apps-ui.js +291 -0
- package/dist/src/mcp/apps-ui.js.map +1 -0
- package/dist/src/mcp/apps.d.ts +27 -0
- package/dist/src/mcp/apps.d.ts.map +1 -1
- package/dist/src/mcp/apps.js +180 -228
- package/dist/src/mcp/apps.js.map +1 -1
- package/dist/src/mcp/boards.d.ts +5 -0
- package/dist/src/mcp/boards.d.ts.map +1 -1
- package/dist/src/mcp/boards.js +68 -98
- package/dist/src/mcp/boards.js.map +1 -1
- package/dist/src/mcp/capabilities.d.ts +11 -0
- package/dist/src/mcp/capabilities.d.ts.map +1 -1
- package/dist/src/mcp/capabilities.js +76 -79
- package/dist/src/mcp/capabilities.js.map +1 -1
- package/dist/src/mcp/catalog/definitions/agent-messaging.d.ts +2 -0
- package/dist/src/mcp/catalog/definitions/agent-messaging.d.ts.map +1 -1
- package/dist/src/mcp/catalog/definitions/agent-messaging.js +12 -0
- package/dist/src/mcp/catalog/definitions/agent-messaging.js.map +1 -1
- package/dist/src/mcp/catalog/definitions/capabilities-groups-skills.d.ts +2 -1
- package/dist/src/mcp/catalog/definitions/capabilities-groups-skills.d.ts.map +1 -1
- package/dist/src/mcp/catalog/definitions/capabilities-groups-skills.js +30 -21
- package/dist/src/mcp/catalog/definitions/capabilities-groups-skills.js.map +1 -1
- package/dist/src/mcp/catalog/definitions/companies.d.ts +20 -0
- package/dist/src/mcp/catalog/definitions/companies.d.ts.map +1 -0
- package/dist/src/mcp/catalog/definitions/companies.js +81 -0
- package/dist/src/mcp/catalog/definitions/companies.js.map +1 -0
- package/dist/src/mcp/catalog/definitions/organisms-workspaces-apps.js +2 -2
- package/dist/src/mcp/catalog/definitions/organisms-workspaces-apps.js.map +1 -1
- package/dist/src/mcp/catalog/definitions/schedules-tasks-memory.d.ts.map +1 -1
- package/dist/src/mcp/catalog/definitions/schedules-tasks-memory.js +13 -1
- package/dist/src/mcp/catalog/definitions/schedules-tasks-memory.js.map +1 -1
- package/dist/src/mcp/catalog/definitions.d.ts.map +1 -1
- package/dist/src/mcp/catalog/definitions.js +2 -0
- package/dist/src/mcp/catalog/definitions.js.map +1 -1
- package/dist/src/mcp/catalog/scopes.d.ts +21 -43
- package/dist/src/mcp/catalog/scopes.d.ts.map +1 -1
- package/dist/src/mcp/catalog/scopes.js +195 -16
- package/dist/src/mcp/catalog/scopes.js.map +1 -1
- package/dist/src/mcp/catalog/surfaces.d.ts.map +1 -1
- package/dist/src/mcp/catalog/surfaces.js +12 -4
- package/dist/src/mcp/catalog/surfaces.js.map +1 -1
- package/dist/src/mcp/chat-instances.d.ts +4 -0
- package/dist/src/mcp/chat-instances.d.ts.map +1 -1
- package/dist/src/mcp/chat-instances.js +14 -34
- package/dist/src/mcp/chat-instances.js.map +1 -1
- package/dist/src/mcp/commerce.d.ts +19 -4
- package/dist/src/mcp/commerce.d.ts.map +1 -1
- package/dist/src/mcp/commerce.js +131 -62
- package/dist/src/mcp/commerce.js.map +1 -1
- package/dist/src/mcp/companies.d.ts +21 -0
- package/dist/src/mcp/companies.d.ts.map +1 -0
- package/dist/src/mcp/companies.js +156 -0
- package/dist/src/mcp/companies.js.map +1 -0
- package/dist/src/mcp/consent.d.ts +4 -1
- package/dist/src/mcp/consent.d.ts.map +1 -1
- package/dist/src/mcp/consent.js +30 -33
- package/dist/src/mcp/consent.js.map +1 -1
- package/dist/src/mcp/core-admin.d.ts +4 -0
- package/dist/src/mcp/core-admin.d.ts.map +1 -1
- package/dist/src/mcp/core-admin.js +12 -22
- package/dist/src/mcp/core-admin.js.map +1 -1
- package/dist/src/mcp/core-storage.d.ts +6 -0
- package/dist/src/mcp/core-storage.d.ts.map +1 -1
- package/dist/src/mcp/core-storage.js +37 -37
- package/dist/src/mcp/core-storage.js.map +1 -1
- package/dist/src/mcp/core.d.ts +27 -1
- package/dist/src/mcp/core.d.ts.map +1 -1
- package/dist/src/mcp/core.js +161 -160
- package/dist/src/mcp/core.js.map +1 -1
- package/dist/src/mcp/cortex.d.ts +9 -0
- package/dist/src/mcp/cortex.d.ts.map +1 -1
- package/dist/src/mcp/cortex.js +87 -123
- package/dist/src/mcp/cortex.js.map +1 -1
- package/dist/src/mcp/dm-messages.d.ts.map +1 -1
- package/dist/src/mcp/dm-messages.js +38 -5
- package/dist/src/mcp/dm-messages.js.map +1 -1
- package/dist/src/mcp/exchange-run.d.ts.map +1 -1
- package/dist/src/mcp/exchange-run.js +8 -0
- package/dist/src/mcp/exchange-run.js.map +1 -1
- package/dist/src/mcp/exchange.d.ts.map +1 -1
- package/dist/src/mcp/exchange.js +12 -41
- package/dist/src/mcp/exchange.js.map +1 -1
- package/dist/src/mcp/extensions.d.ts +23 -1
- package/dist/src/mcp/extensions.d.ts.map +1 -1
- package/dist/src/mcp/extensions.js +202 -255
- package/dist/src/mcp/extensions.js.map +1 -1
- package/dist/src/mcp/flags.d.ts +7 -2
- package/dist/src/mcp/flags.d.ts.map +1 -1
- package/dist/src/mcp/flags.js +24 -25
- package/dist/src/mcp/flags.js.map +1 -1
- package/dist/src/mcp/index.d.ts +17 -0
- package/dist/src/mcp/index.d.ts.map +1 -1
- package/dist/src/mcp/index.js +65 -33
- package/dist/src/mcp/index.js.map +1 -1
- package/dist/src/mcp/instructions.d.ts +31 -0
- package/dist/src/mcp/instructions.d.ts.map +1 -0
- package/dist/src/mcp/instructions.js +38 -0
- package/dist/src/mcp/instructions.js.map +1 -0
- package/dist/src/mcp/knowledge.d.ts +7 -1
- package/dist/src/mcp/knowledge.d.ts.map +1 -1
- package/dist/src/mcp/knowledge.js +32 -114
- package/dist/src/mcp/knowledge.js.map +1 -1
- package/dist/src/mcp/memory-namespace-hints.d.ts.map +1 -1
- package/dist/src/mcp/memory-namespace-hints.js +11 -8
- package/dist/src/mcp/memory-namespace-hints.js.map +1 -1
- package/dist/src/mcp/memory-version-lock.d.ts +43 -0
- package/dist/src/mcp/memory-version-lock.d.ts.map +1 -0
- package/dist/src/mcp/memory-version-lock.js +49 -0
- package/dist/src/mcp/memory-version-lock.js.map +1 -0
- package/dist/src/mcp/oauth.d.ts +2 -0
- package/dist/src/mcp/oauth.d.ts.map +1 -1
- package/dist/src/mcp/oauth.js +11 -0
- package/dist/src/mcp/oauth.js.map +1 -1
- package/dist/src/mcp/operator-config.d.ts +29 -1
- package/dist/src/mcp/operator-config.d.ts.map +1 -1
- package/dist/src/mcp/operator-config.js +84 -31
- package/dist/src/mcp/operator-config.js.map +1 -1
- package/dist/src/mcp/organisms-email-invites.d.ts +6 -0
- package/dist/src/mcp/organisms-email-invites.d.ts.map +1 -1
- package/dist/src/mcp/organisms-email-invites.js +19 -8
- package/dist/src/mcp/organisms-email-invites.js.map +1 -1
- package/dist/src/mcp/organisms-name-invites.d.ts +3 -0
- package/dist/src/mcp/organisms-name-invites.d.ts.map +1 -1
- package/dist/src/mcp/organisms-name-invites.js +8 -2
- package/dist/src/mcp/organisms-name-invites.js.map +1 -1
- package/dist/src/mcp/organisms.d.ts +4 -0
- package/dist/src/mcp/organisms.d.ts.map +1 -1
- package/dist/src/mcp/organisms.js +56 -125
- package/dist/src/mcp/organisms.js.map +1 -1
- package/dist/src/mcp/portfolio.d.ts +28 -0
- package/dist/src/mcp/portfolio.d.ts.map +1 -0
- package/dist/src/mcp/portfolio.js +49 -0
- package/dist/src/mcp/portfolio.js.map +1 -0
- package/dist/src/mcp/prompts-managed.d.ts +30 -0
- package/dist/src/mcp/prompts-managed.d.ts.map +1 -0
- package/dist/src/mcp/prompts-managed.js +102 -0
- package/dist/src/mcp/prompts-managed.js.map +1 -0
- package/dist/src/mcp/schema-flags.d.ts +33 -0
- package/dist/src/mcp/schema-flags.d.ts.map +1 -0
- package/dist/src/mcp/schema-flags.js +31 -0
- package/dist/src/mcp/schema-flags.js.map +1 -0
- package/dist/src/mcp/sharing-groups.d.ts +9 -2
- package/dist/src/mcp/sharing-groups.d.ts.map +1 -1
- package/dist/src/mcp/sharing-groups.js +93 -68
- package/dist/src/mcp/sharing-groups.js.map +1 -1
- package/dist/src/mcp/skills.d.ts.map +1 -1
- package/dist/src/mcp/skills.js +7 -0
- package/dist/src/mcp/skills.js.map +1 -1
- package/dist/src/mcp/workflows.d.ts.map +1 -1
- package/dist/src/mcp/workflows.js +15 -20
- package/dist/src/mcp/workflows.js.map +1 -1
- package/dist/src/mcp/workspace-create.d.ts +41 -0
- package/dist/src/mcp/workspace-create.d.ts.map +1 -0
- package/dist/src/mcp/workspace-create.js +52 -0
- package/dist/src/mcp/workspace-create.js.map +1 -0
- package/dist/src/mcp/workspace-transfer.d.ts.map +1 -1
- package/dist/src/mcp/workspace-transfer.js +4 -1
- package/dist/src/mcp/workspace-transfer.js.map +1 -1
- package/dist/src/mcp/workspaces.d.ts +11 -0
- package/dist/src/mcp/workspaces.d.ts.map +1 -1
- package/dist/src/mcp/workspaces.js +152 -228
- package/dist/src/mcp/workspaces.js.map +1 -1
- package/dist/src/middleware/cors.d.ts +5 -0
- package/dist/src/middleware/cors.d.ts.map +1 -1
- package/dist/src/middleware/cors.js +30 -2
- package/dist/src/middleware/cors.js.map +1 -1
- package/dist/src/middleware/envelope.d.ts.map +1 -1
- package/dist/src/middleware/envelope.js +25 -2
- package/dist/src/middleware/envelope.js.map +1 -1
- package/dist/src/middleware/readiness-gate.d.ts +12 -0
- package/dist/src/middleware/readiness-gate.d.ts.map +1 -1
- package/dist/src/middleware/readiness-gate.js +26 -0
- package/dist/src/middleware/readiness-gate.js.map +1 -1
- package/dist/src/middleware/subdomain.d.ts +27 -0
- package/dist/src/middleware/subdomain.d.ts.map +1 -1
- package/dist/src/middleware/subdomain.js +103 -10
- package/dist/src/middleware/subdomain.js.map +1 -1
- package/dist/src/middleware/workspace-access.d.ts +6 -4
- package/dist/src/middleware/workspace-access.d.ts.map +1 -1
- package/dist/src/middleware/workspace-access.js +9 -138
- package/dist/src/middleware/workspace-access.js.map +1 -1
- package/dist/src/models/agent-onboarding-schemas.d.ts +9 -0
- package/dist/src/models/agent-onboarding-schemas.d.ts.map +1 -1
- package/dist/src/models/agent-onboarding-schemas.js +22 -0
- package/dist/src/models/agent-onboarding-schemas.js.map +1 -1
- package/dist/src/models/company-schemas.d.ts +85 -0
- package/dist/src/models/company-schemas.d.ts.map +1 -0
- package/dist/src/models/company-schemas.js +24 -0
- package/dist/src/models/company-schemas.js.map +1 -0
- package/dist/src/models/company-smtp-schemas.d.ts +31 -0
- package/dist/src/models/company-smtp-schemas.d.ts.map +1 -0
- package/dist/src/models/company-smtp-schemas.js +15 -0
- package/dist/src/models/company-smtp-schemas.js.map +1 -0
- package/dist/src/models/connection-schemas.d.ts +77 -2
- package/dist/src/models/connection-schemas.d.ts.map +1 -1
- package/dist/src/models/finance-schemas.d.ts +268 -0
- package/dist/src/models/finance-schemas.d.ts.map +1 -0
- package/dist/src/models/finance-schemas.js +33 -0
- package/dist/src/models/finance-schemas.js.map +1 -0
- package/dist/src/models/message-schemas.d.ts +3 -1
- package/dist/src/models/message-schemas.d.ts.map +1 -1
- package/dist/src/models/message-schemas.js +9 -2
- package/dist/src/models/message-schemas.js.map +1 -1
- package/dist/src/models/outbound-schemas.d.ts +81 -0
- package/dist/src/models/outbound-schemas.d.ts.map +1 -0
- package/dist/src/models/outbound-schemas.js +20 -0
- package/dist/src/models/outbound-schemas.js.map +1 -0
- package/dist/src/models/schemas.d.ts +3 -0
- package/dist/src/models/schemas.d.ts.map +1 -1
- package/dist/src/models/schemas.js +16 -0
- package/dist/src/models/schemas.js.map +1 -1
- package/dist/src/models/workflow-schemas.d.ts +1 -0
- package/dist/src/models/workflow-schemas.d.ts.map +1 -1
- package/dist/src/models/workflow-schemas.js +1 -1
- package/dist/src/models/workflow-schemas.js.map +1 -1
- package/dist/src/routes/access-tokens.d.ts.map +1 -1
- package/dist/src/routes/access-tokens.js +6 -0
- package/dist/src/routes/access-tokens.js.map +1 -1
- package/dist/src/routes/admin-economy.d.ts +4 -1
- package/dist/src/routes/admin-economy.d.ts.map +1 -1
- package/dist/src/routes/admin-economy.js +12 -41
- package/dist/src/routes/admin-economy.js.map +1 -1
- package/dist/src/routes/admin-features.d.ts.map +1 -1
- package/dist/src/routes/admin-features.js +5 -4
- package/dist/src/routes/admin-features.js.map +1 -1
- package/dist/src/routes/admin-monitoring.d.ts.map +1 -1
- package/dist/src/routes/admin-monitoring.js +98 -0
- package/dist/src/routes/admin-monitoring.js.map +1 -1
- package/dist/src/routes/agent-capabilities.d.ts +3 -0
- package/dist/src/routes/agent-capabilities.d.ts.map +1 -1
- package/dist/src/routes/agent-capabilities.js +18 -33
- package/dist/src/routes/agent-capabilities.js.map +1 -1
- package/dist/src/routes/agent-messages.d.ts +6 -0
- package/dist/src/routes/agent-messages.d.ts.map +1 -1
- package/dist/src/routes/agent-messages.js +17 -83
- package/dist/src/routes/agent-messages.js.map +1 -1
- package/dist/src/routes/agent-onboarding.d.ts +12 -0
- package/dist/src/routes/agent-onboarding.d.ts.map +1 -1
- package/dist/src/routes/agent-onboarding.js +95 -144
- package/dist/src/routes/agent-onboarding.js.map +1 -1
- package/dist/src/routes/agent-tasks/completion.d.ts +13 -0
- package/dist/src/routes/agent-tasks/completion.d.ts.map +1 -1
- package/dist/src/routes/agent-tasks/completion.js +54 -149
- package/dist/src/routes/agent-tasks/completion.js.map +1 -1
- package/dist/src/routes/agent-tasks/create-read.d.ts +3 -0
- package/dist/src/routes/agent-tasks/create-read.d.ts.map +1 -1
- package/dist/src/routes/agent-tasks/create-read.js +27 -158
- package/dist/src/routes/agent-tasks/create-read.js.map +1 -1
- package/dist/src/routes/agent-tasks/helpers.d.ts +22 -1
- package/dist/src/routes/agent-tasks/helpers.d.ts.map +1 -1
- package/dist/src/routes/agent-tasks/helpers.js +35 -1
- package/dist/src/routes/agent-tasks/helpers.js.map +1 -1
- package/dist/src/routes/agent-tasks/lifecycle.d.ts +3 -0
- package/dist/src/routes/agent-tasks/lifecycle.d.ts.map +1 -1
- package/dist/src/routes/agent-tasks/lifecycle.js +12 -106
- package/dist/src/routes/agent-tasks/lifecycle.js.map +1 -1
- package/dist/src/routes/agent-telemetry.d.ts.map +1 -1
- package/dist/src/routes/agent-telemetry.js +3 -25
- package/dist/src/routes/agent-telemetry.js.map +1 -1
- package/dist/src/routes/agents/constants.d.ts +18 -2
- package/dist/src/routes/agents/constants.d.ts.map +1 -1
- package/dist/src/routes/agents/constants.js +18 -2
- package/dist/src/routes/agents/constants.js.map +1 -1
- package/dist/src/routes/agents/device-auth.d.ts +25 -0
- package/dist/src/routes/agents/device-auth.d.ts.map +1 -1
- package/dist/src/routes/agents/device-auth.js +75 -10
- package/dist/src/routes/agents/device-auth.js.map +1 -1
- package/dist/src/routes/agents/management.d.ts +7 -0
- package/dist/src/routes/agents/management.d.ts.map +1 -1
- package/dist/src/routes/agents/management.js +59 -4
- package/dist/src/routes/agents/management.js.map +1 -1
- package/dist/src/routes/agents/profile-metadata.d.ts +12 -0
- package/dist/src/routes/agents/profile-metadata.d.ts.map +1 -1
- package/dist/src/routes/agents/profile-metadata.js +74 -101
- package/dist/src/routes/agents/profile-metadata.js.map +1 -1
- package/dist/src/routes/agents/registration.d.ts +8 -0
- package/dist/src/routes/agents/registration.d.ts.map +1 -1
- package/dist/src/routes/agents/registration.js +11 -1
- package/dist/src/routes/agents/registration.js.map +1 -1
- package/dist/src/routes/ai-transparency.d.ts +10 -4
- package/dist/src/routes/ai-transparency.d.ts.map +1 -1
- package/dist/src/routes/ai-transparency.js +68 -7
- package/dist/src/routes/ai-transparency.js.map +1 -1
- package/dist/src/routes/ai.d.ts +4 -0
- package/dist/src/routes/ai.d.ts.map +1 -1
- package/dist/src/routes/ai.js +10 -1
- package/dist/src/routes/ai.js.map +1 -1
- package/dist/src/routes/app-grants.d.ts +26 -0
- package/dist/src/routes/app-grants.d.ts.map +1 -1
- package/dist/src/routes/app-grants.js +139 -5
- package/dist/src/routes/app-grants.js.map +1 -1
- package/dist/src/routes/apps/catalogue-admin.d.ts.map +1 -1
- package/dist/src/routes/apps/catalogue-admin.js +15 -1
- package/dist/src/routes/apps/catalogue-admin.js.map +1 -1
- package/dist/src/routes/apps/drafts.d.ts +8 -0
- package/dist/src/routes/apps/drafts.d.ts.map +1 -1
- package/dist/src/routes/apps/drafts.js +41 -69
- package/dist/src/routes/apps/drafts.js.map +1 -1
- package/dist/src/routes/apps/fork-manage.d.ts +5 -0
- package/dist/src/routes/apps/fork-manage.d.ts.map +1 -1
- package/dist/src/routes/apps/fork-manage.js +37 -176
- package/dist/src/routes/apps/fork-manage.js.map +1 -1
- package/dist/src/routes/apps/helpers.d.ts +25 -2
- package/dist/src/routes/apps/helpers.d.ts.map +1 -1
- package/dist/src/routes/apps/helpers.js +57 -12
- package/dist/src/routes/apps/helpers.js.map +1 -1
- package/dist/src/routes/apps/publish.d.ts +4 -0
- package/dist/src/routes/apps/publish.d.ts.map +1 -1
- package/dist/src/routes/apps/publish.js +8 -3
- package/dist/src/routes/apps/publish.js.map +1 -1
- package/dist/src/routes/apps/read.d.ts +10 -0
- package/dist/src/routes/apps/read.d.ts.map +1 -1
- package/dist/src/routes/apps/read.js +93 -10
- package/dist/src/routes/apps/read.js.map +1 -1
- package/dist/src/routes/attestations.d.ts +18 -0
- package/dist/src/routes/attestations.d.ts.map +1 -0
- package/dist/src/routes/attestations.js +92 -0
- package/dist/src/routes/attestations.js.map +1 -0
- package/dist/src/routes/auth.d.ts +9 -0
- package/dist/src/routes/auth.d.ts.map +1 -1
- package/dist/src/routes/auth.js +45 -20
- package/dist/src/routes/auth.js.map +1 -1
- package/dist/src/routes/boards.d.ts +13 -1
- package/dist/src/routes/boards.d.ts.map +1 -1
- package/dist/src/routes/boards.js +104 -303
- package/dist/src/routes/boards.js.map +1 -1
- package/dist/src/routes/bootstrap.d.ts.map +1 -1
- package/dist/src/routes/bootstrap.js +10 -61
- package/dist/src/routes/bootstrap.js.map +1 -1
- package/dist/src/routes/capabilities.d.ts +10 -0
- package/dist/src/routes/capabilities.d.ts.map +1 -1
- package/dist/src/routes/capabilities.js +39 -177
- package/dist/src/routes/capabilities.js.map +1 -1
- package/dist/src/routes/chat-instances.d.ts +4 -0
- package/dist/src/routes/chat-instances.d.ts.map +1 -1
- package/dist/src/routes/chat-instances.js +10 -30
- package/dist/src/routes/chat-instances.js.map +1 -1
- package/dist/src/routes/commerce-acp.d.ts +1 -0
- package/dist/src/routes/commerce-acp.d.ts.map +1 -1
- package/dist/src/routes/commerce-acp.js +2 -1
- package/dist/src/routes/commerce-acp.js.map +1 -1
- package/dist/src/routes/commerce-beneficiaries.d.ts.map +1 -1
- package/dist/src/routes/commerce-beneficiaries.js +1 -13
- package/dist/src/routes/commerce-beneficiaries.js.map +1 -1
- package/dist/src/routes/commerce-ucp.d.ts +1 -0
- package/dist/src/routes/commerce-ucp.d.ts.map +1 -1
- package/dist/src/routes/commerce-ucp.js +2 -1
- package/dist/src/routes/commerce-ucp.js.map +1 -1
- package/dist/src/routes/commerce-webhooks.d.ts +35 -0
- package/dist/src/routes/commerce-webhooks.d.ts.map +1 -0
- package/dist/src/routes/commerce-webhooks.js +178 -0
- package/dist/src/routes/commerce-webhooks.js.map +1 -0
- package/dist/src/routes/commerce.d.ts +4 -0
- package/dist/src/routes/commerce.d.ts.map +1 -1
- package/dist/src/routes/commerce.js +100 -3
- package/dist/src/routes/commerce.js.map +1 -1
- package/dist/src/routes/companies.d.ts +22 -0
- package/dist/src/routes/companies.d.ts.map +1 -0
- package/dist/src/routes/companies.js +291 -0
- package/dist/src/routes/companies.js.map +1 -0
- package/dist/src/routes/connections.d.ts +3 -0
- package/dist/src/routes/connections.d.ts.map +1 -1
- package/dist/src/routes/connections.js +232 -18
- package/dist/src/routes/connections.js.map +1 -1
- package/dist/src/routes/consent.d.ts.map +1 -1
- package/dist/src/routes/consent.js +21 -60
- package/dist/src/routes/consent.js.map +1 -1
- package/dist/src/routes/cortex.d.ts +5 -0
- package/dist/src/routes/cortex.d.ts.map +1 -1
- package/dist/src/routes/cortex.js +64 -176
- package/dist/src/routes/cortex.js.map +1 -1
- package/dist/src/routes/disputes.d.ts +4 -0
- package/dist/src/routes/disputes.d.ts.map +1 -1
- package/dist/src/routes/disputes.js +18 -1
- package/dist/src/routes/disputes.js.map +1 -1
- package/dist/src/routes/exchange-market.d.ts.map +1 -1
- package/dist/src/routes/exchange-market.js +7 -44
- package/dist/src/routes/exchange-market.js.map +1 -1
- package/dist/src/routes/extensions/actions.d.ts +6 -1
- package/dist/src/routes/extensions/actions.d.ts.map +1 -1
- package/dist/src/routes/extensions/actions.js +62 -423
- package/dist/src/routes/extensions/actions.js.map +1 -1
- package/dist/src/routes/extensions/crud.d.ts +7 -0
- package/dist/src/routes/extensions/crud.d.ts.map +1 -1
- package/dist/src/routes/extensions/crud.js +64 -215
- package/dist/src/routes/extensions/crud.js.map +1 -1
- package/dist/src/routes/extensions/entitlement-gate.d.ts +4 -3
- package/dist/src/routes/extensions/entitlement-gate.d.ts.map +1 -1
- package/dist/src/routes/extensions/entitlement-gate.js.map +1 -1
- package/dist/src/routes/extensions/instances.d.ts +2 -0
- package/dist/src/routes/extensions/instances.d.ts.map +1 -1
- package/dist/src/routes/extensions/instances.js +10 -3
- package/dist/src/routes/extensions/instances.js.map +1 -1
- package/dist/src/routes/extensions/internal-pass.d.ts +2 -0
- package/dist/src/routes/extensions/internal-pass.d.ts.map +1 -1
- package/dist/src/routes/extensions/internal-pass.js +12 -0
- package/dist/src/routes/extensions/internal-pass.js.map +1 -1
- package/dist/src/routes/extensions/manifest.d.ts +40 -7
- package/dist/src/routes/extensions/manifest.d.ts.map +1 -1
- package/dist/src/routes/extensions/manifest.js +115 -5
- package/dist/src/routes/extensions/manifest.js.map +1 -1
- package/dist/src/routes/extensions/metered-response.d.ts +31 -2
- package/dist/src/routes/extensions/metered-response.d.ts.map +1 -1
- package/dist/src/routes/extensions/metered-response.js +18 -0
- package/dist/src/routes/extensions/metered-response.js.map +1 -1
- package/dist/src/routes/extensions/pacing.d.ts +4 -3
- package/dist/src/routes/extensions/pacing.d.ts.map +1 -1
- package/dist/src/routes/extensions/pacing.js.map +1 -1
- package/dist/src/routes/extensions/paywall.d.ts +2 -2
- package/dist/src/routes/extensions/paywall.d.ts.map +1 -1
- package/dist/src/routes/extensions/paywall.js +111 -3
- package/dist/src/routes/extensions/paywall.js.map +1 -1
- package/dist/src/routes/extensions/permissions.d.ts +38 -0
- package/dist/src/routes/extensions/permissions.d.ts.map +1 -1
- package/dist/src/routes/extensions/permissions.js +44 -3
- package/dist/src/routes/extensions/permissions.js.map +1 -1
- package/dist/src/routes/federation-genesis.d.ts +2 -0
- package/dist/src/routes/federation-genesis.d.ts.map +1 -1
- package/dist/src/routes/federation-genesis.js +14 -8
- package/dist/src/routes/federation-genesis.js.map +1 -1
- package/dist/src/routes/federation-peer/lifecycle.d.ts +4 -1
- package/dist/src/routes/federation-peer/lifecycle.d.ts.map +1 -1
- package/dist/src/routes/federation-peer/lifecycle.js +49 -4
- package/dist/src/routes/federation-peer/lifecycle.js.map +1 -1
- package/dist/src/routes/federation-peer/peers.d.ts +3 -1
- package/dist/src/routes/federation-peer/peers.d.ts.map +1 -1
- package/dist/src/routes/federation-peer/peers.js +26 -16
- package/dist/src/routes/federation-peer/peers.js.map +1 -1
- package/dist/src/routes/federation-settlements.d.ts +3 -0
- package/dist/src/routes/federation-settlements.d.ts.map +1 -1
- package/dist/src/routes/federation-settlements.js +11 -3
- package/dist/src/routes/federation-settlements.js.map +1 -1
- package/dist/src/routes/federation-sync/templates.d.ts +4 -0
- package/dist/src/routes/federation-sync/templates.d.ts.map +1 -1
- package/dist/src/routes/federation-sync/templates.js +39 -1
- package/dist/src/routes/federation-sync/templates.js.map +1 -1
- package/dist/src/routes/finance-ledger.d.ts +17 -0
- package/dist/src/routes/finance-ledger.d.ts.map +1 -0
- package/dist/src/routes/finance-ledger.js +384 -0
- package/dist/src/routes/finance-ledger.js.map +1 -0
- package/dist/src/routes/finance.d.ts +22 -0
- package/dist/src/routes/finance.d.ts.map +1 -0
- package/dist/src/routes/finance.js +338 -0
- package/dist/src/routes/finance.js.map +1 -0
- package/dist/src/routes/flags.d.ts +4 -2
- package/dist/src/routes/flags.d.ts.map +1 -1
- package/dist/src/routes/flags.js +18 -111
- package/dist/src/routes/flags.js.map +1 -1
- package/dist/src/routes/ghii/attach-email.d.ts +18 -0
- package/dist/src/routes/ghii/attach-email.d.ts.map +1 -0
- package/dist/src/routes/ghii/attach-email.js +90 -0
- package/dist/src/routes/ghii/attach-email.js.map +1 -0
- package/dist/src/routes/ghii/profile.d.ts +6 -0
- package/dist/src/routes/ghii/profile.d.ts.map +1 -1
- package/dist/src/routes/ghii/profile.js +31 -7
- package/dist/src/routes/ghii/profile.js.map +1 -1
- package/dist/src/routes/ghii/recovery.d.ts +8 -0
- package/dist/src/routes/ghii/recovery.d.ts.map +1 -1
- package/dist/src/routes/ghii/recovery.js +34 -9
- package/dist/src/routes/ghii/recovery.js.map +1 -1
- package/dist/src/routes/ghii/register-login.d.ts +10 -0
- package/dist/src/routes/ghii/register-login.d.ts.map +1 -1
- package/dist/src/routes/ghii/register-login.js +31 -121
- package/dist/src/routes/ghii/register-login.js.map +1 -1
- package/dist/src/routes/ghii/web-verify.d.ts +7 -0
- package/dist/src/routes/ghii/web-verify.d.ts.map +1 -1
- package/dist/src/routes/ghii/web-verify.js +32 -10
- package/dist/src/routes/ghii/web-verify.js.map +1 -1
- package/dist/src/routes/ghii.d.ts.map +1 -1
- package/dist/src/routes/ghii.js +2 -0
- package/dist/src/routes/ghii.js.map +1 -1
- package/dist/src/routes/home/feed.d.ts +17 -0
- package/dist/src/routes/home/feed.d.ts.map +1 -0
- package/dist/src/routes/home/feed.js +51 -0
- package/dist/src/routes/home/feed.js.map +1 -0
- package/dist/src/routes/home/first-agent.d.ts +24 -0
- package/dist/src/routes/home/first-agent.d.ts.map +1 -0
- package/dist/src/routes/home/first-agent.js +41 -0
- package/dist/src/routes/home/first-agent.js.map +1 -0
- package/dist/src/routes/home/state.d.ts +18 -0
- package/dist/src/routes/home/state.d.ts.map +1 -0
- package/dist/src/routes/home/state.js +56 -0
- package/dist/src/routes/home/state.js.map +1 -0
- package/dist/src/routes/home/track.d.ts +32 -0
- package/dist/src/routes/home/track.d.ts.map +1 -0
- package/dist/src/routes/home/track.js +73 -0
- package/dist/src/routes/home/track.js.map +1 -0
- package/dist/src/routes/home/welcome-mat.d.ts +45 -0
- package/dist/src/routes/home/welcome-mat.d.ts.map +1 -0
- package/dist/src/routes/home/welcome-mat.js +193 -0
- package/dist/src/routes/home/welcome-mat.js.map +1 -0
- package/dist/src/routes/home.d.ts +26 -0
- package/dist/src/routes/home.d.ts.map +1 -0
- package/dist/src/routes/home.js +38 -0
- package/dist/src/routes/home.js.map +1 -0
- package/dist/src/routes/instances/install.d.ts +1 -0
- package/dist/src/routes/instances/install.d.ts.map +1 -1
- package/dist/src/routes/instances/install.js +2 -0
- package/dist/src/routes/instances/install.js.map +1 -1
- package/dist/src/routes/instances/migration.d.ts +3 -0
- package/dist/src/routes/instances/migration.d.ts.map +1 -1
- package/dist/src/routes/instances/migration.js +23 -1
- package/dist/src/routes/instances/migration.js.map +1 -1
- package/dist/src/routes/invite-accept.d.ts +39 -0
- package/dist/src/routes/invite-accept.d.ts.map +1 -0
- package/dist/src/routes/invite-accept.js +304 -0
- package/dist/src/routes/invite-accept.js.map +1 -0
- package/dist/src/routes/ledger.js +1 -1
- package/dist/src/routes/ledger.js.map +1 -1
- package/dist/src/routes/librarian.d.ts +3 -0
- package/dist/src/routes/librarian.d.ts.map +1 -1
- package/dist/src/routes/librarian.js +8 -1
- package/dist/src/routes/librarian.js.map +1 -1
- package/dist/src/routes/libs.d.ts.map +1 -1
- package/dist/src/routes/libs.js +7 -1
- package/dist/src/routes/libs.js.map +1 -1
- package/dist/src/routes/memory/bulk.d.ts +2 -0
- package/dist/src/routes/memory/bulk.d.ts.map +1 -1
- package/dist/src/routes/memory/bulk.js +4 -2
- package/dist/src/routes/memory/bulk.js.map +1 -1
- package/dist/src/routes/memory/crud.d.ts +3 -0
- package/dist/src/routes/memory/crud.d.ts.map +1 -1
- package/dist/src/routes/memory/crud.js +62 -156
- package/dist/src/routes/memory/crud.js.map +1 -1
- package/dist/src/routes/memory/federation.d.ts +2 -0
- package/dist/src/routes/memory/federation.d.ts.map +1 -1
- package/dist/src/routes/memory/federation.js +19 -2
- package/dist/src/routes/memory/federation.js.map +1 -1
- package/dist/src/routes/memory/files.d.ts +2 -0
- package/dist/src/routes/memory/files.d.ts.map +1 -1
- package/dist/src/routes/memory/files.js +6 -4
- package/dist/src/routes/memory/files.js.map +1 -1
- package/dist/src/routes/memory/key.d.ts +5 -0
- package/dist/src/routes/memory/key.d.ts.map +1 -1
- package/dist/src/routes/memory/key.js +22 -2
- package/dist/src/routes/memory/key.js.map +1 -1
- package/dist/src/routes/memory/owner-target.d.ts +105 -0
- package/dist/src/routes/memory/owner-target.d.ts.map +1 -0
- package/dist/src/routes/memory/owner-target.js +104 -0
- package/dist/src/routes/memory/owner-target.js.map +1 -0
- package/dist/src/routes/memory/patch.d.ts +32 -0
- package/dist/src/routes/memory/patch.d.ts.map +1 -0
- package/dist/src/routes/memory/patch.js +264 -0
- package/dist/src/routes/memory/patch.js.map +1 -0
- package/dist/src/routes/memory.d.ts.map +1 -1
- package/dist/src/routes/memory.js +3 -0
- package/dist/src/routes/memory.js.map +1 -1
- package/dist/src/routes/messages.d.ts.map +1 -1
- package/dist/src/routes/messages.js +80 -2
- package/dist/src/routes/messages.js.map +1 -1
- package/dist/src/routes/open-items.d.ts +22 -0
- package/dist/src/routes/open-items.d.ts.map +1 -0
- package/dist/src/routes/open-items.js +183 -0
- package/dist/src/routes/open-items.js.map +1 -0
- package/dist/src/routes/organisms/crud.d.ts +6 -0
- package/dist/src/routes/organisms/crud.d.ts.map +1 -1
- package/dist/src/routes/organisms/crud.js +44 -202
- package/dist/src/routes/organisms/crud.js.map +1 -1
- package/dist/src/routes/organisms/gates.d.ts.map +1 -1
- package/dist/src/routes/organisms/gates.js +5 -0
- package/dist/src/routes/organisms/gates.js.map +1 -1
- package/dist/src/routes/organisms/membership.d.ts +6 -0
- package/dist/src/routes/organisms/membership.d.ts.map +1 -1
- package/dist/src/routes/organisms/membership.js +47 -30
- package/dist/src/routes/organisms/membership.js.map +1 -1
- package/dist/src/routes/organisms/record-helpers.d.ts +33 -0
- package/dist/src/routes/organisms/record-helpers.d.ts.map +1 -0
- package/dist/src/routes/organisms/record-helpers.js +44 -0
- package/dist/src/routes/organisms/record-helpers.js.map +1 -0
- package/dist/src/routes/organisms/shared.d.ts +14 -5
- package/dist/src/routes/organisms/shared.d.ts.map +1 -1
- package/dist/src/routes/organisms/shared.js +44 -50
- package/dist/src/routes/organisms/shared.js.map +1 -1
- package/dist/src/routes/organisms/workspace-access.d.ts +7 -0
- package/dist/src/routes/organisms/workspace-access.d.ts.map +1 -1
- package/dist/src/routes/organisms/workspace-access.js +58 -232
- package/dist/src/routes/organisms/workspace-access.js.map +1 -1
- package/dist/src/routes/organisms/workspace-ops.d.ts.map +1 -1
- package/dist/src/routes/organisms/workspace-ops.js +1 -0
- package/dist/src/routes/organisms/workspace-ops.js.map +1 -1
- package/dist/src/routes/organisms.d.ts.map +1 -1
- package/dist/src/routes/organisms.js +4 -0
- package/dist/src/routes/organisms.js.map +1 -1
- package/dist/src/routes/outbound.d.ts +22 -0
- package/dist/src/routes/outbound.d.ts.map +1 -0
- package/dist/src/routes/outbound.js +212 -0
- package/dist/src/routes/outbound.js.map +1 -0
- package/dist/src/routes/owners/export.d.ts +25 -0
- package/dist/src/routes/owners/export.d.ts.map +1 -0
- package/dist/src/routes/owners/export.js +417 -0
- package/dist/src/routes/owners/export.js.map +1 -0
- package/dist/src/routes/owners.d.ts +6 -0
- package/dist/src/routes/owners.d.ts.map +1 -1
- package/dist/src/routes/owners.js +30 -555
- package/dist/src/routes/owners.js.map +1 -1
- package/dist/src/routes/portal.d.ts +3 -0
- package/dist/src/routes/portal.d.ts.map +1 -1
- package/dist/src/routes/portal.js +42 -17
- package/dist/src/routes/portal.js.map +1 -1
- package/dist/src/routes/portfolio.d.ts +58 -1
- package/dist/src/routes/portfolio.d.ts.map +1 -1
- package/dist/src/routes/portfolio.js +157 -54
- package/dist/src/routes/portfolio.js.map +1 -1
- package/dist/src/routes/prompts-intent-pool.d.ts +13 -0
- package/dist/src/routes/prompts-intent-pool.d.ts.map +1 -0
- package/dist/src/routes/prompts-intent-pool.js +27 -0
- package/dist/src/routes/prompts-intent-pool.js.map +1 -0
- package/dist/src/routes/prompts-open-items.d.ts +32 -0
- package/dist/src/routes/prompts-open-items.d.ts.map +1 -0
- package/dist/src/routes/prompts-open-items.js +115 -0
- package/dist/src/routes/prompts-open-items.js.map +1 -0
- package/dist/src/routes/prompts.d.ts +4 -0
- package/dist/src/routes/prompts.d.ts.map +1 -1
- package/dist/src/routes/prompts.js +75 -4
- package/dist/src/routes/prompts.js.map +1 -1
- package/dist/src/routes/push.d.ts +9 -4
- package/dist/src/routes/push.d.ts.map +1 -1
- package/dist/src/routes/push.js +73 -14
- package/dist/src/routes/push.js.map +1 -1
- package/dist/src/routes/registration-invites.d.ts +31 -0
- package/dist/src/routes/registration-invites.d.ts.map +1 -0
- package/dist/src/routes/registration-invites.js +110 -0
- package/dist/src/routes/registration-invites.js.map +1 -0
- package/dist/src/routes/schedules.d.ts +21 -0
- package/dist/src/routes/schedules.d.ts.map +1 -1
- package/dist/src/routes/schedules.js +57 -294
- package/dist/src/routes/schedules.js.map +1 -1
- package/dist/src/routes/sharing-groups.d.ts +13 -0
- package/dist/src/routes/sharing-groups.d.ts.map +1 -1
- package/dist/src/routes/sharing-groups.js +119 -99
- package/dist/src/routes/sharing-groups.js.map +1 -1
- package/dist/src/routes/storage-files.d.ts +13 -0
- package/dist/src/routes/storage-files.d.ts.map +1 -1
- package/dist/src/routes/storage-files.js +58 -64
- package/dist/src/routes/storage-files.js.map +1 -1
- package/dist/src/routes/subdomain-admin.d.ts +17 -0
- package/dist/src/routes/subdomain-admin.d.ts.map +1 -0
- package/dist/src/routes/subdomain-admin.js +132 -0
- package/dist/src/routes/subdomain-admin.js.map +1 -0
- package/dist/src/routes/subdomains.d.ts +18 -5
- package/dist/src/routes/subdomains.d.ts.map +1 -1
- package/dist/src/routes/subdomains.js +76 -125
- package/dist/src/routes/subdomains.js.map +1 -1
- package/dist/src/routes/totp.d.ts +5 -0
- package/dist/src/routes/totp.d.ts.map +1 -1
- package/dist/src/routes/totp.js +18 -9
- package/dist/src/routes/totp.js.map +1 -1
- package/dist/src/routes/upload.d.ts +29 -1
- package/dist/src/routes/upload.d.ts.map +1 -1
- package/dist/src/routes/upload.js +123 -35
- package/dist/src/routes/upload.js.map +1 -1
- package/dist/src/routes/verification.d.ts +5 -0
- package/dist/src/routes/verification.d.ts.map +1 -1
- package/dist/src/routes/verification.js +13 -5
- package/dist/src/routes/verification.js.map +1 -1
- package/dist/src/routes/work.d.ts +74 -16
- package/dist/src/routes/work.d.ts.map +1 -1
- package/dist/src/routes/work.js +38 -206
- package/dist/src/routes/work.js.map +1 -1
- package/dist/src/routes/workflows.d.ts.map +1 -1
- package/dist/src/routes/workflows.js +4 -20
- package/dist/src/routes/workflows.js.map +1 -1
- package/dist/src/server-bootstrap/routes-loader.d.ts.map +1 -1
- package/dist/src/server-bootstrap/routes-loader.js +25 -3
- package/dist/src/server-bootstrap/routes-loader.js.map +1 -1
- package/dist/src/server-bootstrap/service-init.d.ts.map +1 -1
- package/dist/src/server-bootstrap/service-init.js +8 -0
- package/dist/src/server-bootstrap/service-init.js.map +1 -1
- package/dist/src/server.d.ts.map +1 -1
- package/dist/src/server.js +4 -0
- package/dist/src/server.js.map +1 -1
- package/dist/src/services/access-guard.d.ts +4 -0
- package/dist/src/services/access-guard.d.ts.map +1 -1
- package/dist/src/services/access-guard.js +13 -0
- package/dist/src/services/access-guard.js.map +1 -1
- package/dist/src/services/agent-connect-prompt.d.ts +41 -0
- package/dist/src/services/agent-connect-prompt.d.ts.map +1 -0
- package/dist/src/services/agent-connect-prompt.js +113 -0
- package/dist/src/services/agent-connect-prompt.js.map +1 -0
- package/dist/src/services/agent-health.d.ts +104 -0
- package/dist/src/services/agent-health.d.ts.map +1 -0
- package/dist/src/services/agent-health.js +130 -0
- package/dist/src/services/agent-health.js.map +1 -0
- package/dist/src/services/agent-message-send.d.ts +52 -0
- package/dist/src/services/agent-message-send.d.ts.map +1 -0
- package/dist/src/services/agent-message-send.js +142 -0
- package/dist/src/services/agent-message-send.js.map +1 -0
- package/dist/src/services/agent-offers-write.d.ts +108 -0
- package/dist/src/services/agent-offers-write.d.ts.map +1 -0
- package/dist/src/services/agent-offers-write.js +98 -0
- package/dist/src/services/agent-offers-write.js.map +1 -0
- package/dist/src/services/agent-onboard-prompt.d.ts +23 -0
- package/dist/src/services/agent-onboard-prompt.d.ts.map +1 -0
- package/dist/src/services/agent-onboard-prompt.js +78 -0
- package/dist/src/services/agent-onboard-prompt.js.map +1 -0
- package/dist/src/services/agent-profile-write.d.ts +164 -0
- package/dist/src/services/agent-profile-write.d.ts.map +1 -0
- package/dist/src/services/agent-profile-write.js +383 -0
- package/dist/src/services/agent-profile-write.js.map +1 -0
- package/dist/src/services/agent-task-fanout.d.ts +40 -0
- package/dist/src/services/agent-task-fanout.d.ts.map +1 -0
- package/dist/src/services/agent-task-fanout.js +150 -0
- package/dist/src/services/agent-task-fanout.js.map +1 -0
- package/dist/src/services/agent-task-rules.d.ts +67 -0
- package/dist/src/services/agent-task-rules.d.ts.map +1 -0
- package/dist/src/services/agent-task-rules.js +54 -0
- package/dist/src/services/agent-task-rules.js.map +1 -0
- package/dist/src/services/agent-task-write.d.ts +116 -0
- package/dist/src/services/agent-task-write.d.ts.map +1 -0
- package/dist/src/services/agent-task-write.js +395 -0
- package/dist/src/services/agent-task-write.js.map +1 -0
- package/dist/src/services/ai-provenance-marks.d.ts +5 -0
- package/dist/src/services/ai-provenance-marks.d.ts.map +1 -1
- package/dist/src/services/ai-provenance-marks.js +39 -8
- package/dist/src/services/ai-provenance-marks.js.map +1 -1
- package/dist/src/services/ai-provenance.d.ts.map +1 -1
- package/dist/src/services/ai-provenance.js +22 -1
- package/dist/src/services/ai-provenance.js.map +1 -1
- package/dist/src/services/ai-tool-setup.d.ts +117 -0
- package/dist/src/services/ai-tool-setup.d.ts.map +1 -1
- package/dist/src/services/ai-tool-setup.js +195 -17
- package/dist/src/services/ai-tool-setup.js.map +1 -1
- package/dist/src/services/app-access-token.d.ts +26 -0
- package/dist/src/services/app-access-token.d.ts.map +1 -0
- package/dist/src/services/app-access-token.js +94 -0
- package/dist/src/services/app-access-token.js.map +1 -0
- package/dist/src/services/app-artifact-lint.d.ts +60 -0
- package/dist/src/services/app-artifact-lint.d.ts.map +1 -0
- package/dist/src/services/app-artifact-lint.js +285 -0
- package/dist/src/services/app-artifact-lint.js.map +1 -0
- package/dist/src/services/app-lifecycle.d.ts +156 -0
- package/dist/src/services/app-lifecycle.d.ts.map +1 -0
- package/dist/src/services/app-lifecycle.js +410 -0
- package/dist/src/services/app-lifecycle.js.map +1 -0
- package/dist/src/services/app-publish-next-steps.d.ts +30 -0
- package/dist/src/services/app-publish-next-steps.d.ts.map +1 -0
- package/dist/src/services/app-publish-next-steps.js +40 -0
- package/dist/src/services/app-publish-next-steps.js.map +1 -0
- package/dist/src/services/app-publish.d.ts +14 -0
- package/dist/src/services/app-publish.d.ts.map +1 -1
- package/dist/src/services/app-publish.js +64 -5
- package/dist/src/services/app-publish.js.map +1 -1
- package/dist/src/services/app-serve-marks.d.ts +4 -0
- package/dist/src/services/app-serve-marks.d.ts.map +1 -1
- package/dist/src/services/app-serve-marks.js +7 -0
- package/dist/src/services/app-serve-marks.js.map +1 -1
- package/dist/src/services/app-spec-gate.d.ts +60 -0
- package/dist/src/services/app-spec-gate.d.ts.map +1 -0
- package/dist/src/services/app-spec-gate.js +48 -0
- package/dist/src/services/app-spec-gate.js.map +1 -0
- package/dist/src/services/appdev-kb.d.ts +18 -2
- package/dist/src/services/appdev-kb.d.ts.map +1 -1
- package/dist/src/services/appdev-kb.js +26 -4
- package/dist/src/services/appdev-kb.js.map +1 -1
- package/dist/src/services/attestation.d.ts +39 -0
- package/dist/src/services/attestation.d.ts.map +1 -0
- package/dist/src/services/attestation.js +142 -0
- package/dist/src/services/attestation.js.map +1 -0
- package/dist/src/services/board-post.d.ts +79 -0
- package/dist/src/services/board-post.d.ts.map +1 -0
- package/dist/src/services/board-post.js +215 -0
- package/dist/src/services/board-post.js.map +1 -0
- package/dist/src/services/board-read-access.d.ts +46 -0
- package/dist/src/services/board-read-access.d.ts.map +1 -0
- package/dist/src/services/board-read-access.js +30 -0
- package/dist/src/services/board-read-access.js.map +1 -0
- package/dist/src/services/board-subscribers.d.ts +28 -0
- package/dist/src/services/board-subscribers.d.ts.map +1 -0
- package/dist/src/services/board-subscribers.js +37 -0
- package/dist/src/services/board-subscribers.js.map +1 -0
- package/dist/src/services/board-write.d.ts +95 -0
- package/dist/src/services/board-write.d.ts.map +1 -0
- package/dist/src/services/board-write.js +195 -0
- package/dist/src/services/board-write.js.map +1 -0
- package/dist/src/services/build-app-prompt.d.ts +7 -69
- package/dist/src/services/build-app-prompt.d.ts.map +1 -1
- package/dist/src/services/build-app-prompt.js +189 -5
- package/dist/src/services/build-app-prompt.js.map +1 -1
- package/dist/src/services/capability-record.d.ts +103 -0
- package/dist/src/services/capability-record.d.ts.map +1 -0
- package/dist/src/services/capability-record.js +298 -0
- package/dist/src/services/capability-record.js.map +1 -0
- package/dist/src/services/chat-instance-write.d.ts +91 -0
- package/dist/src/services/chat-instance-write.d.ts.map +1 -0
- package/dist/src/services/chat-instance-write.js +59 -0
- package/dist/src/services/chat-instance-write.js.map +1 -0
- package/dist/src/services/company/company-portfolio.d.ts +53 -0
- package/dist/src/services/company/company-portfolio.d.ts.map +1 -0
- package/dist/src/services/company/company-portfolio.js +78 -0
- package/dist/src/services/company/company-portfolio.js.map +1 -0
- package/dist/src/services/company/company-service.d.ts +30 -0
- package/dist/src/services/company/company-service.d.ts.map +1 -0
- package/dist/src/services/company/company-service.js +217 -0
- package/dist/src/services/company/company-service.js.map +1 -0
- package/dist/src/services/company/company-smtp.d.ts +42 -0
- package/dist/src/services/company/company-smtp.d.ts.map +1 -0
- package/dist/src/services/company/company-smtp.js +127 -0
- package/dist/src/services/company/company-smtp.js.map +1 -0
- package/dist/src/services/component-registrar.d.ts +26 -0
- package/dist/src/services/component-registrar.d.ts.map +1 -1
- package/dist/src/services/component-registrar.js +67 -29
- package/dist/src/services/component-registrar.js.map +1 -1
- package/dist/src/services/config-schema.d.ts.map +1 -1
- package/dist/src/services/config-schema.js +5 -1
- package/dist/src/services/config-schema.js.map +1 -1
- package/dist/src/services/connections/attach.d.ts.map +1 -1
- package/dist/src/services/connections/attach.js +2 -0
- package/dist/src/services/connections/attach.js.map +1 -1
- package/dist/src/services/connections/instance.d.ts.map +1 -1
- package/dist/src/services/connections/instance.js +2 -0
- package/dist/src/services/connections/instance.js.map +1 -1
- package/dist/src/services/connections/metrics.d.ts +62 -0
- package/dist/src/services/connections/metrics.d.ts.map +1 -0
- package/dist/src/services/connections/metrics.js +287 -0
- package/dist/src/services/connections/metrics.js.map +1 -0
- package/dist/src/services/connections/oauth.d.ts.map +1 -1
- package/dist/src/services/connections/oauth.js +88 -16
- package/dist/src/services/connections/oauth.js.map +1 -1
- package/dist/src/services/connections/providers.d.ts +53 -2
- package/dist/src/services/connections/providers.d.ts.map +1 -1
- package/dist/src/services/connections/providers.js +191 -9
- package/dist/src/services/connections/providers.js.map +1 -1
- package/dist/src/services/connections/publish-gate.d.ts +9 -1
- package/dist/src/services/connections/publish-gate.d.ts.map +1 -1
- package/dist/src/services/connections/publish-gate.js +0 -0
- package/dist/src/services/connections/publish-gate.js.map +1 -1
- package/dist/src/services/connections/publish-run.d.ts +64 -0
- package/dist/src/services/connections/publish-run.d.ts.map +1 -0
- package/dist/src/services/connections/publish-run.js +120 -0
- package/dist/src/services/connections/publish-run.js.map +1 -0
- package/dist/src/services/connections/publish.d.ts +9 -1
- package/dist/src/services/connections/publish.d.ts.map +1 -1
- package/dist/src/services/connections/publish.js +211 -1
- package/dist/src/services/connections/publish.js.map +1 -1
- package/dist/src/services/connections/refresh.d.ts.map +1 -1
- package/dist/src/services/connections/refresh.js +49 -17
- package/dist/src/services/connections/refresh.js.map +1 -1
- package/dist/src/services/connections/scheduled-publish-job.d.ts +57 -0
- package/dist/src/services/connections/scheduled-publish-job.d.ts.map +1 -0
- package/dist/src/services/connections/scheduled-publish-job.js +101 -0
- package/dist/src/services/connections/scheduled-publish-job.js.map +1 -0
- package/dist/src/services/consent-write.d.ts +49 -0
- package/dist/src/services/consent-write.d.ts.map +1 -0
- package/dist/src/services/consent-write.js +141 -0
- package/dist/src/services/consent-write.js.map +1 -0
- package/dist/src/services/contribution-proofs.d.ts +92 -0
- package/dist/src/services/contribution-proofs.d.ts.map +1 -0
- package/dist/src/services/contribution-proofs.js +144 -0
- package/dist/src/services/contribution-proofs.js.map +1 -0
- package/dist/src/services/conversation-group.d.ts +90 -0
- package/dist/src/services/conversation-group.d.ts.map +1 -0
- package/dist/src/services/conversation-group.js +201 -0
- package/dist/src/services/conversation-group.js.map +1 -0
- package/dist/src/services/core-jobs.d.ts.map +1 -1
- package/dist/src/services/core-jobs.js +12 -0
- package/dist/src/services/core-jobs.js.map +1 -1
- package/dist/src/services/cortex-lifecycle.d.ts +138 -0
- package/dist/src/services/cortex-lifecycle.d.ts.map +1 -0
- package/dist/src/services/cortex-lifecycle.js +187 -0
- package/dist/src/services/cortex-lifecycle.js.map +1 -0
- package/dist/src/services/db/access-tab-db-service.js +1 -1
- package/dist/src/services/db/access-tab-db-service.js.map +1 -1
- package/dist/src/services/db/agent-activity-overview-db-service.js +1 -1
- package/dist/src/services/db/agent-activity-overview-db-service.js.map +1 -1
- package/dist/src/services/db/agent-data-access-overview-db-service.js +1 -1
- package/dist/src/services/db/agent-data-access-overview-db-service.js.map +1 -1
- package/dist/src/services/db/agent-db-service.d.ts +3 -3
- package/dist/src/services/db/agent-db-service.d.ts.map +1 -1
- package/dist/src/services/db/agent-db-service.js +2 -2
- package/dist/src/services/db/agent-db-service.js.map +1 -1
- package/dist/src/services/db/agent-integration-overview-db-service.js +1 -1
- package/dist/src/services/db/agent-integration-overview-db-service.js.map +1 -1
- package/dist/src/services/db/agent-messages-overview-db-service.js +1 -1
- package/dist/src/services/db/agent-messages-overview-db-service.js.map +1 -1
- package/dist/src/services/db/calibrator-detail-db-service.js +1 -1
- package/dist/src/services/db/calibrator-detail-db-service.js.map +1 -1
- package/dist/src/services/db/data-wallet-db-service.js +1 -1
- package/dist/src/services/db/data-wallet-db-service.js.map +1 -1
- package/dist/src/services/db/home-dashboard-service.js +1 -1
- package/dist/src/services/db/home-dashboard-service.js.map +1 -1
- package/dist/src/services/db/knowledge-tab-db-service.js +1 -1
- package/dist/src/services/db/knowledge-tab-db-service.js.map +1 -1
- package/dist/src/services/db/living-docs-db-service.js +1 -1
- package/dist/src/services/db/living-docs-db-service.js.map +1 -1
- package/dist/src/services/db/memory-tab-db-service.js +1 -1
- package/dist/src/services/db/memory-tab-db-service.js.map +1 -1
- package/dist/src/services/db/messages-inbox-db-service.d.ts +16 -1
- package/dist/src/services/db/messages-inbox-db-service.d.ts.map +1 -1
- package/dist/src/services/db/messages-inbox-db-service.js +33 -2
- package/dist/src/services/db/messages-inbox-db-service.js.map +1 -1
- package/dist/src/services/db/messaging-db-service.js +1 -1
- package/dist/src/services/db/messaging-db-service.js.map +1 -1
- package/dist/src/services/db/notebook-db-service.js +1 -1
- package/dist/src/services/db/notebook-db-service.js.map +1 -1
- package/dist/src/services/db/owner-identity.d.ts +5 -5
- package/dist/src/services/db/owner-identity.d.ts.map +1 -1
- package/dist/src/services/db/owner-identity.js +10 -10
- package/dist/src/services/db/owner-identity.js.map +1 -1
- package/dist/src/services/db/packages-tab-db-service.js +1 -1
- package/dist/src/services/db/packages-tab-db-service.js.map +1 -1
- package/dist/src/services/db/security-tab-db-service.js +1 -1
- package/dist/src/services/db/security-tab-db-service.js.map +1 -1
- package/dist/src/services/db/wallet-tab-db-service.js +1 -1
- package/dist/src/services/db/wallet-tab-db-service.js.map +1 -1
- package/dist/src/services/db/work-tab-db-service.js +1 -1
- package/dist/src/services/db/work-tab-db-service.js.map +1 -1
- package/dist/src/services/discovery/sources/memory-source.d.ts +4 -0
- package/dist/src/services/discovery/sources/memory-source.d.ts.map +1 -1
- package/dist/src/services/discovery/sources/memory-source.js +5 -1
- package/dist/src/services/discovery/sources/memory-source.js.map +1 -1
- package/dist/src/services/email-templates.d.ts +46 -0
- package/dist/src/services/email-templates.d.ts.map +1 -1
- package/dist/src/services/email-templates.js +299 -106
- package/dist/src/services/email-templates.js.map +1 -1
- package/dist/src/services/email-verification-start.d.ts +7 -0
- package/dist/src/services/email-verification-start.d.ts.map +1 -0
- package/dist/src/services/email-verification-start.js +34 -0
- package/dist/src/services/email-verification-start.js.map +1 -0
- package/dist/src/services/email.d.ts +13 -0
- package/dist/src/services/email.d.ts.map +1 -1
- package/dist/src/services/email.js +23 -0
- package/dist/src/services/email.js.map +1 -1
- package/dist/src/services/exchange-market.d.ts +43 -0
- package/dist/src/services/exchange-market.d.ts.map +1 -1
- package/dist/src/services/exchange-market.js +81 -1
- package/dist/src/services/exchange-market.js.map +1 -1
- package/dist/src/services/extension-ctx.d.ts +108 -0
- package/dist/src/services/extension-ctx.d.ts.map +1 -0
- package/dist/src/services/extension-ctx.js +347 -0
- package/dist/src/services/extension-ctx.js.map +1 -0
- package/dist/src/services/extension-lifecycle.d.ts +109 -0
- package/dist/src/services/extension-lifecycle.d.ts.map +1 -0
- package/dist/src/services/extension-lifecycle.js +200 -0
- package/dist/src/services/extension-lifecycle.js.map +1 -0
- package/dist/src/services/extension-notify.d.ts +21 -0
- package/dist/src/services/extension-notify.d.ts.map +1 -0
- package/dist/src/services/extension-notify.js +102 -0
- package/dist/src/services/extension-notify.js.map +1 -0
- package/dist/src/services/extension-purchase.d.ts.map +1 -1
- package/dist/src/services/extension-purchase.js +30 -6
- package/dist/src/services/extension-purchase.js.map +1 -1
- package/dist/src/services/extension-runtime.d.ts +3 -0
- package/dist/src/services/extension-runtime.d.ts.map +1 -1
- package/dist/src/services/extension-runtime.js.map +1 -1
- package/dist/src/services/extension-secrets.d.ts +27 -0
- package/dist/src/services/extension-secrets.d.ts.map +1 -1
- package/dist/src/services/extension-secrets.js +37 -0
- package/dist/src/services/extension-secrets.js.map +1 -1
- package/dist/src/services/extension-upsert.d.ts +52 -0
- package/dist/src/services/extension-upsert.d.ts.map +1 -0
- package/dist/src/services/extension-upsert.js +61 -0
- package/dist/src/services/extension-upsert.js.map +1 -0
- package/dist/src/services/federation.d.ts +11 -0
- package/dist/src/services/federation.d.ts.map +1 -1
- package/dist/src/services/federation.js +11 -0
- package/dist/src/services/federation.js.map +1 -1
- package/dist/src/services/finance/accountant-access.d.ts +40 -0
- package/dist/src/services/finance/accountant-access.d.ts.map +1 -0
- package/dist/src/services/finance/accountant-access.js +84 -0
- package/dist/src/services/finance/accountant-access.js.map +1 -0
- package/dist/src/services/finance/errors.d.ts +14 -0
- package/dist/src/services/finance/errors.d.ts.map +1 -0
- package/dist/src/services/finance/errors.js +19 -0
- package/dist/src/services/finance/errors.js.map +1 -0
- package/dist/src/services/finance/export.d.ts +16 -0
- package/dist/src/services/finance/export.d.ts.map +1 -0
- package/dist/src/services/finance/export.js +116 -0
- package/dist/src/services/finance/export.js.map +1 -0
- package/dist/src/services/finance/finvoice-operator.d.ts +22 -0
- package/dist/src/services/finance/finvoice-operator.d.ts.map +1 -0
- package/dist/src/services/finance/finvoice-operator.js +154 -0
- package/dist/src/services/finance/finvoice-operator.js.map +1 -0
- package/dist/src/services/finance/finvoice.d.ts +29 -0
- package/dist/src/services/finance/finvoice.d.ts.map +1 -0
- package/dist/src/services/finance/finvoice.js +151 -0
- package/dist/src/services/finance/finvoice.js.map +1 -0
- package/dist/src/services/finance/invoice-pdf.d.ts +4 -0
- package/dist/src/services/finance/invoice-pdf.d.ts.map +1 -0
- package/dist/src/services/finance/invoice-pdf.js +177 -0
- package/dist/src/services/finance/invoice-pdf.js.map +1 -0
- package/dist/src/services/finance/invoice-service.d.ts +55 -0
- package/dist/src/services/finance/invoice-service.d.ts.map +1 -0
- package/dist/src/services/finance/invoice-service.js +292 -0
- package/dist/src/services/finance/invoice-service.js.map +1 -0
- package/dist/src/services/finance/pnl.d.ts +37 -0
- package/dist/src/services/finance/pnl.d.ts.map +1 -0
- package/dist/src/services/finance/pnl.js +51 -0
- package/dist/src/services/finance/pnl.js.map +1 -0
- package/dist/src/services/finance/reference-number.d.ts +28 -0
- package/dist/src/services/finance/reference-number.d.ts.map +1 -0
- package/dist/src/services/finance/reference-number.js +74 -0
- package/dist/src/services/finance/reference-number.js.map +1 -0
- package/dist/src/services/finance/vat-codes.d.ts +28 -0
- package/dist/src/services/finance/vat-codes.d.ts.map +1 -0
- package/dist/src/services/finance/vat-codes.js +84 -0
- package/dist/src/services/finance/vat-codes.js.map +1 -0
- package/dist/src/services/finance/vat-report.d.ts +41 -0
- package/dist/src/services/finance/vat-report.d.ts.map +1 -0
- package/dist/src/services/finance/vat-report.js +59 -0
- package/dist/src/services/finance/vat-report.js.map +1 -0
- package/dist/src/services/finance/vouchers.d.ts +30 -0
- package/dist/src/services/finance/vouchers.d.ts.map +1 -0
- package/dist/src/services/finance/vouchers.js +101 -0
- package/dist/src/services/finance/vouchers.js.map +1 -0
- package/dist/src/services/group-shares.d.ts +103 -0
- package/dist/src/services/group-shares.d.ts.map +1 -0
- package/dist/src/services/group-shares.js +224 -0
- package/dist/src/services/group-shares.js.map +1 -0
- package/dist/src/services/handbooks/agent.d.ts +4 -1
- package/dist/src/services/handbooks/agent.d.ts.map +1 -1
- package/dist/src/services/handbooks/agent.js +13 -6
- package/dist/src/services/handbooks/agent.js.map +1 -1
- package/dist/src/services/hello-mcp.d.ts +3 -0
- package/dist/src/services/hello-mcp.d.ts.map +1 -1
- package/dist/src/services/hello-mcp.js +12 -2
- package/dist/src/services/hello-mcp.js.map +1 -1
- package/dist/src/services/home-feed.d.ts +49 -0
- package/dist/src/services/home-feed.d.ts.map +1 -0
- package/dist/src/services/home-feed.js +61 -0
- package/dist/src/services/home-feed.js.map +1 -0
- package/dist/src/services/home-rooms.d.ts +58 -0
- package/dist/src/services/home-rooms.d.ts.map +1 -0
- package/dist/src/services/home-rooms.js +80 -0
- package/dist/src/services/home-rooms.js.map +1 -0
- package/dist/src/services/home-state.d.ts +117 -0
- package/dist/src/services/home-state.d.ts.map +1 -0
- package/dist/src/services/home-state.js +160 -0
- package/dist/src/services/home-state.js.map +1 -0
- package/dist/src/services/inactivity-nudge.d.ts +103 -0
- package/dist/src/services/inactivity-nudge.d.ts.map +1 -0
- package/dist/src/services/inactivity-nudge.js +207 -0
- package/dist/src/services/inactivity-nudge.js.map +1 -0
- package/dist/src/services/install-quotas.d.ts +52 -0
- package/dist/src/services/install-quotas.d.ts.map +1 -0
- package/dist/src/services/install-quotas.js +47 -0
- package/dist/src/services/install-quotas.js.map +1 -0
- package/dist/src/services/intent-pool-prompt.d.ts +24 -0
- package/dist/src/services/intent-pool-prompt.d.ts.map +1 -0
- package/dist/src/services/intent-pool-prompt.js +62 -0
- package/dist/src/services/intent-pool-prompt.js.map +1 -0
- package/dist/src/services/invitations.d.ts +95 -2
- package/dist/src/services/invitations.d.ts.map +1 -1
- package/dist/src/services/invitations.js +195 -3
- package/dist/src/services/invitations.js.map +1 -1
- package/dist/src/services/job-seeding.d.ts.map +1 -1
- package/dist/src/services/job-seeding.js +8 -0
- package/dist/src/services/job-seeding.js.map +1 -1
- package/dist/src/services/key-credentials.js +1 -1
- package/dist/src/services/key-credentials.js.map +1 -1
- package/dist/src/services/knowledge-package-entry.d.ts +107 -0
- package/dist/src/services/knowledge-package-entry.d.ts.map +1 -0
- package/dist/src/services/knowledge-package-entry.js +103 -0
- package/dist/src/services/knowledge-package-entry.js.map +1 -0
- package/dist/src/services/memory-ceilings.d.ts +66 -0
- package/dist/src/services/memory-ceilings.d.ts.map +1 -0
- package/dist/src/services/memory-ceilings.js +69 -0
- package/dist/src/services/memory-ceilings.js.map +1 -0
- package/dist/src/services/memory-write.d.ts +146 -0
- package/dist/src/services/memory-write.d.ts.map +1 -0
- package/dist/src/services/memory-write.js +251 -0
- package/dist/src/services/memory-write.js.map +1 -0
- package/dist/src/services/message-alias.d.ts +105 -0
- package/dist/src/services/message-alias.d.ts.map +1 -0
- package/dist/src/services/message-alias.js +102 -0
- package/dist/src/services/message-alias.js.map +1 -0
- package/dist/src/services/message-provenance.d.ts +45 -0
- package/dist/src/services/message-provenance.d.ts.map +1 -0
- package/dist/src/services/message-provenance.js +38 -0
- package/dist/src/services/message-provenance.js.map +1 -0
- package/dist/src/services/metered-access.d.ts +21 -0
- package/dist/src/services/metered-access.d.ts.map +1 -1
- package/dist/src/services/metered-access.js +44 -18
- package/dist/src/services/metered-access.js.map +1 -1
- package/dist/src/services/metered-settlement.js +28 -14
- package/dist/src/services/metered-settlement.js.map +1 -1
- package/dist/src/services/moderation-flags.d.ts +62 -0
- package/dist/src/services/moderation-flags.d.ts.map +1 -0
- package/dist/src/services/moderation-flags.js +196 -0
- package/dist/src/services/moderation-flags.js.map +1 -0
- package/dist/src/services/morsel.d.ts +26 -0
- package/dist/src/services/morsel.d.ts.map +1 -1
- package/dist/src/services/morsel.js +65 -1
- package/dist/src/services/morsel.js.map +1 -1
- package/dist/src/services/notification-templates.d.ts +5 -3
- package/dist/src/services/notification-templates.d.ts.map +1 -1
- package/dist/src/services/notification-templates.js +23 -3
- package/dist/src/services/notification-templates.js.map +1 -1
- package/dist/src/services/onboarding-funnel.d.ts +240 -0
- package/dist/src/services/onboarding-funnel.d.ts.map +1 -0
- package/dist/src/services/onboarding-funnel.js +538 -0
- package/dist/src/services/onboarding-funnel.js.map +1 -0
- package/dist/src/services/onboarding-progress.d.ts +85 -0
- package/dist/src/services/onboarding-progress.d.ts.map +1 -0
- package/dist/src/services/onboarding-progress.js +169 -0
- package/dist/src/services/onboarding-progress.js.map +1 -0
- package/dist/src/services/open-items-prompt.d.ts +33 -0
- package/dist/src/services/open-items-prompt.d.ts.map +1 -0
- package/dist/src/services/open-items-prompt.js +67 -0
- package/dist/src/services/open-items-prompt.js.map +1 -0
- package/dist/src/services/open-items.d.ts +169 -0
- package/dist/src/services/open-items.d.ts.map +1 -0
- package/dist/src/services/open-items.js +364 -0
- package/dist/src/services/open-items.js.map +1 -0
- package/dist/src/services/operators.d.ts +32 -0
- package/dist/src/services/operators.d.ts.map +1 -0
- package/dist/src/services/operators.js +21 -0
- package/dist/src/services/operators.js.map +1 -0
- package/dist/src/services/organism-export.d.ts.map +1 -1
- package/dist/src/services/organism-export.js +7 -1
- package/dist/src/services/organism-export.js.map +1 -1
- package/dist/src/services/organism-lifecycle.d.ts +85 -0
- package/dist/src/services/organism-lifecycle.d.ts.map +1 -0
- package/dist/src/services/organism-lifecycle.js +320 -0
- package/dist/src/services/organism-lifecycle.js.map +1 -0
- package/dist/src/services/organism-namespace-access.d.ts +59 -0
- package/dist/src/services/organism-namespace-access.d.ts.map +1 -0
- package/dist/src/services/organism-namespace-access.js +122 -0
- package/dist/src/services/organism-namespace-access.js.map +1 -0
- package/dist/src/services/outbound/outbound-service.d.ts +53 -0
- package/dist/src/services/outbound/outbound-service.d.ts.map +1 -0
- package/dist/src/services/outbound/outbound-service.js +258 -0
- package/dist/src/services/outbound/outbound-service.js.map +1 -0
- package/dist/src/services/owner-erasure.d.ts +38 -0
- package/dist/src/services/owner-erasure.d.ts.map +1 -0
- package/dist/src/services/owner-erasure.js +94 -0
- package/dist/src/services/owner-erasure.js.map +1 -0
- package/dist/src/services/owner-provisioning.d.ts.map +1 -1
- package/dist/src/services/owner-provisioning.js +14 -0
- package/dist/src/services/owner-provisioning.js.map +1 -1
- package/dist/src/services/platform-detector.d.ts +11 -0
- package/dist/src/services/platform-detector.d.ts.map +1 -1
- package/dist/src/services/platform-detector.js +44 -16
- package/dist/src/services/platform-detector.js.map +1 -1
- package/dist/src/services/prompt-defaults/portal.d.ts.map +1 -1
- package/dist/src/services/prompt-defaults/portal.js +57 -5
- package/dist/src/services/prompt-defaults/portal.js.map +1 -1
- package/dist/src/services/prompt-defaults.d.ts +7 -0
- package/dist/src/services/prompt-defaults.d.ts.map +1 -1
- package/dist/src/services/prompt-defaults.js.map +1 -1
- package/dist/src/services/prompt-seeder.d.ts.map +1 -1
- package/dist/src/services/prompt-seeder.js +8 -2
- package/dist/src/services/prompt-seeder.js.map +1 -1
- package/dist/src/services/push.d.ts +7 -1
- package/dist/src/services/push.d.ts.map +1 -1
- package/dist/src/services/push.js +32 -20
- package/dist/src/services/push.js.map +1 -1
- package/dist/src/services/quota-alarm.d.ts +39 -0
- package/dist/src/services/quota-alarm.d.ts.map +1 -0
- package/dist/src/services/quota-alarm.js +114 -0
- package/dist/src/services/quota-alarm.js.map +1 -0
- package/dist/src/services/quota.d.ts +2 -0
- package/dist/src/services/quota.d.ts.map +1 -1
- package/dist/src/services/quota.js +10 -1
- package/dist/src/services/quota.js.map +1 -1
- package/dist/src/services/schedule-gate.d.ts +31 -0
- package/dist/src/services/schedule-gate.d.ts.map +1 -0
- package/dist/src/services/schedule-gate.js +88 -0
- package/dist/src/services/schedule-gate.js.map +1 -0
- package/dist/src/services/schedule-write.d.ts +89 -0
- package/dist/src/services/schedule-write.d.ts.map +1 -0
- package/dist/src/services/schedule-write.js +440 -0
- package/dist/src/services/schedule-write.js.map +1 -0
- package/dist/src/services/scheduler-extension-job.d.ts +11 -0
- package/dist/src/services/scheduler-extension-job.d.ts.map +1 -1
- package/dist/src/services/scheduler-extension-job.js +23 -179
- package/dist/src/services/scheduler-extension-job.js.map +1 -1
- package/dist/src/services/scheduler-remote-jobs.d.ts +4 -0
- package/dist/src/services/scheduler-remote-jobs.d.ts.map +1 -1
- package/dist/src/services/scheduler-remote-jobs.js +9 -1
- package/dist/src/services/scheduler-remote-jobs.js.map +1 -1
- package/dist/src/services/scheduler.d.ts +9 -0
- package/dist/src/services/scheduler.d.ts.map +1 -1
- package/dist/src/services/scheduler.js +22 -0
- package/dist/src/services/scheduler.js.map +1 -1
- package/dist/src/services/scope-vocabulary-migration.d.ts +77 -0
- package/dist/src/services/scope-vocabulary-migration.d.ts.map +1 -0
- package/dist/src/services/scope-vocabulary-migration.js +87 -0
- package/dist/src/services/scope-vocabulary-migration.js.map +1 -0
- package/dist/src/services/sharing-group-members.d.ts +66 -0
- package/dist/src/services/sharing-group-members.d.ts.map +1 -0
- package/dist/src/services/sharing-group-members.js +185 -0
- package/dist/src/services/sharing-group-members.js.map +1 -0
- package/dist/src/services/site.d.ts +1 -1
- package/dist/src/services/site.d.ts.map +1 -1
- package/dist/src/services/site.js +8 -1
- package/dist/src/services/site.js.map +1 -1
- package/dist/src/services/storage-file-write.d.ts +103 -0
- package/dist/src/services/storage-file-write.d.ts.map +1 -0
- package/dist/src/services/storage-file-write.js +113 -0
- package/dist/src/services/storage-file-write.js.map +1 -0
- package/dist/src/services/task-resume.d.ts +10 -0
- package/dist/src/services/task-resume.d.ts.map +1 -0
- package/dist/src/services/task-resume.js +43 -0
- package/dist/src/services/task-resume.js.map +1 -0
- package/dist/src/services/upload-token.d.ts +14 -2
- package/dist/src/services/upload-token.d.ts.map +1 -1
- package/dist/src/services/upload-token.js +59 -4
- package/dist/src/services/upload-token.js.map +1 -1
- package/dist/src/services/usage-metering.d.ts +16 -0
- package/dist/src/services/usage-metering.d.ts.map +1 -1
- package/dist/src/services/usage-metering.js +32 -0
- package/dist/src/services/usage-metering.js.map +1 -1
- package/dist/src/services/usage-summary.d.ts.map +1 -1
- package/dist/src/services/usage-summary.js +7 -1
- package/dist/src/services/usage-summary.js.map +1 -1
- package/dist/src/services/welcome-mat-parse.d.ts +72 -0
- package/dist/src/services/welcome-mat-parse.d.ts.map +1 -0
- package/dist/src/services/welcome-mat-parse.js +206 -0
- package/dist/src/services/welcome-mat-parse.js.map +1 -0
- package/dist/src/services/welcome-mat-prompt.d.ts +38 -0
- package/dist/src/services/welcome-mat-prompt.d.ts.map +1 -0
- package/dist/src/services/welcome-mat-prompt.js +122 -0
- package/dist/src/services/welcome-mat-prompt.js.map +1 -0
- package/dist/src/services/welcome-message.d.ts +52 -0
- package/dist/src/services/welcome-message.d.ts.map +1 -0
- package/dist/src/services/welcome-message.js +70 -0
- package/dist/src/services/welcome-message.js.map +1 -0
- package/dist/src/services/work-lifecycle.d.ts +86 -0
- package/dist/src/services/work-lifecycle.d.ts.map +1 -0
- package/dist/src/services/work-lifecycle.js +141 -0
- package/dist/src/services/work-lifecycle.js.map +1 -0
- package/dist/src/services/workflow/lifecycle.d.ts +23 -0
- package/dist/src/services/workflow/lifecycle.d.ts.map +1 -1
- package/dist/src/services/workflow/lifecycle.js +36 -0
- package/dist/src/services/workflow/lifecycle.js.map +1 -1
- package/dist/src/services/workflow/signal-eval.d.ts.map +1 -1
- package/dist/src/services/workflow/signal-eval.js +29 -2
- package/dist/src/services/workflow/signal-eval.js.map +1 -1
- package/dist/src/services/workspace-export.d.ts +9 -0
- package/dist/src/services/workspace-export.d.ts.map +1 -1
- package/dist/src/services/workspace-export.js +39 -0
- package/dist/src/services/workspace-export.js.map +1 -1
- package/dist/src/services/workspace-write-guards.d.ts +60 -0
- package/dist/src/services/workspace-write-guards.d.ts.map +1 -0
- package/dist/src/services/workspace-write-guards.js +42 -0
- package/dist/src/services/workspace-write-guards.js.map +1 -0
- package/dist/src/services/workspace-write.d.ts +94 -0
- package/dist/src/services/workspace-write.d.ts.map +1 -0
- package/dist/src/services/workspace-write.js +77 -0
- package/dist/src/services/workspace-write.js.map +1 -0
- package/dist/src/storage/adapter/legacy-memory-adapter.d.ts +4 -7
- package/dist/src/storage/adapter/legacy-memory-adapter.d.ts.map +1 -1
- package/dist/src/storage/adapter/legacy-memory-adapter.js +0 -7
- package/dist/src/storage/adapter/legacy-memory-adapter.js.map +1 -1
- package/dist/src/storage/adapter/memory-adapter.d.ts +7 -12
- package/dist/src/storage/adapter/memory-adapter.d.ts.map +1 -1
- package/dist/src/storage/interface.d.ts +32 -2
- package/dist/src/storage/interface.d.ts.map +1 -1
- package/dist/src/storage/memory-sharing.d.ts +37 -0
- package/dist/src/storage/memory-sharing.d.ts.map +1 -0
- package/dist/src/storage/memory-sharing.js +23 -0
- package/dist/src/storage/memory-sharing.js.map +1 -0
- package/dist/src/storage/pattern-utils.d.ts +6 -1
- package/dist/src/storage/pattern-utils.d.ts.map +1 -1
- package/dist/src/storage/pattern-utils.js +17 -1
- package/dist/src/storage/pattern-utils.js.map +1 -1
- package/dist/src/storage/providers/postgres-kysely/db-types.d.ts +221 -15
- package/dist/src/storage/providers/postgres-kysely/db-types.d.ts.map +1 -1
- package/dist/src/storage/providers/postgres-kysely/index.d.ts +10 -17
- package/dist/src/storage/providers/postgres-kysely/index.d.ts.map +1 -1
- package/dist/src/storage/providers/postgres-kysely/index.js +34 -6
- package/dist/src/storage/providers/postgres-kysely/index.js.map +1 -1
- package/dist/src/storage/providers/postgres-kysely/methods/agent-misc.d.ts +7 -1
- package/dist/src/storage/providers/postgres-kysely/methods/agent-misc.d.ts.map +1 -1
- package/dist/src/storage/providers/postgres-kysely/methods/agent-misc.js +59 -3
- package/dist/src/storage/providers/postgres-kysely/methods/agent-misc.js.map +1 -1
- package/dist/src/storage/providers/postgres-kysely/methods/agent-msg-dispute-invite.d.ts +4 -0
- package/dist/src/storage/providers/postgres-kysely/methods/agent-msg-dispute-invite.d.ts.map +1 -1
- package/dist/src/storage/providers/postgres-kysely/methods/agent-msg-dispute-invite.js +11 -1
- package/dist/src/storage/providers/postgres-kysely/methods/agent-msg-dispute-invite.js.map +1 -1
- package/dist/src/storage/providers/postgres-kysely/methods/companies.d.ts +4 -0
- package/dist/src/storage/providers/postgres-kysely/methods/companies.d.ts.map +1 -0
- package/dist/src/storage/providers/postgres-kysely/methods/companies.js +138 -0
- package/dist/src/storage/providers/postgres-kysely/methods/companies.js.map +1 -0
- package/dist/src/storage/providers/postgres-kysely/methods/connections.d.ts +23 -1
- package/dist/src/storage/providers/postgres-kysely/methods/connections.d.ts.map +1 -1
- package/dist/src/storage/providers/postgres-kysely/methods/connections.js +148 -7
- package/dist/src/storage/providers/postgres-kysely/methods/connections.js.map +1 -1
- package/dist/src/storage/providers/postgres-kysely/methods/direct-message.d.ts +5 -1
- package/dist/src/storage/providers/postgres-kysely/methods/direct-message.d.ts.map +1 -1
- package/dist/src/storage/providers/postgres-kysely/methods/direct-message.js +52 -0
- package/dist/src/storage/providers/postgres-kysely/methods/direct-message.js.map +1 -1
- package/dist/src/storage/providers/postgres-kysely/methods/finance.d.ts +4 -0
- package/dist/src/storage/providers/postgres-kysely/methods/finance.d.ts.map +1 -0
- package/dist/src/storage/providers/postgres-kysely/methods/finance.js +402 -0
- package/dist/src/storage/providers/postgres-kysely/methods/finance.js.map +1 -0
- package/dist/src/storage/providers/postgres-kysely/methods/identity.d.ts +10 -0
- package/dist/src/storage/providers/postgres-kysely/methods/identity.d.ts.map +1 -1
- package/dist/src/storage/providers/postgres-kysely/methods/identity.js +39 -16
- package/dist/src/storage/providers/postgres-kysely/methods/identity.js.map +1 -1
- package/dist/src/storage/providers/postgres-kysely/methods/memory.d.ts +1 -0
- package/dist/src/storage/providers/postgres-kysely/methods/memory.d.ts.map +1 -1
- package/dist/src/storage/providers/postgres-kysely/methods/memory.js +36 -2
- package/dist/src/storage/providers/postgres-kysely/methods/memory.js.map +1 -1
- package/dist/src/storage/providers/postgres-kysely/methods/node-infra.d.ts +2 -1
- package/dist/src/storage/providers/postgres-kysely/methods/node-infra.d.ts.map +1 -1
- package/dist/src/storage/providers/postgres-kysely/methods/node-infra.js +18 -6
- package/dist/src/storage/providers/postgres-kysely/methods/node-infra.js.map +1 -1
- package/dist/src/storage/providers/postgres-kysely/methods/outbound.d.ts +4 -0
- package/dist/src/storage/providers/postgres-kysely/methods/outbound.d.ts.map +1 -0
- package/dist/src/storage/providers/postgres-kysely/methods/outbound.js +158 -0
- package/dist/src/storage/providers/postgres-kysely/methods/outbound.js.map +1 -0
- package/dist/src/storage/providers/postgres-kysely/methods/owner-cascade.d.ts +51 -0
- package/dist/src/storage/providers/postgres-kysely/methods/owner-cascade.d.ts.map +1 -0
- package/dist/src/storage/providers/postgres-kysely/methods/owner-cascade.js +111 -0
- package/dist/src/storage/providers/postgres-kysely/methods/owner-cascade.js.map +1 -0
- package/dist/src/storage/providers/postgres-kysely/methods/sessions.d.ts +1 -0
- package/dist/src/storage/providers/postgres-kysely/methods/sessions.d.ts.map +1 -1
- package/dist/src/storage/providers/postgres-kysely/methods/sessions.js +4 -0
- package/dist/src/storage/providers/postgres-kysely/methods/sessions.js.map +1 -1
- package/dist/src/storage/providers/postgres-kysely/methods/wallet.d.ts +1 -0
- package/dist/src/storage/providers/postgres-kysely/methods/wallet.d.ts.map +1 -1
- package/dist/src/storage/providers/postgres-kysely/methods/wallet.js +10 -2
- package/dist/src/storage/providers/postgres-kysely/methods/wallet.js.map +1 -1
- package/dist/src/storage/providers/postgres-kysely/migrations/0024_principal_provider_clients.sql +42 -0
- package/dist/src/storage/providers/postgres-kysely/migrations/0025_publish_metrics.sql +33 -0
- package/dist/src/storage/providers/postgres-kysely/migrations/0026_finance.sql +130 -0
- package/dist/src/storage/providers/postgres-kysely/migrations/0027_outbound.sql +52 -0
- package/dist/src/storage/providers/postgres-kysely/migrations/0028_companies.sql +44 -0
- package/dist/src/storage/providers/postgres-kysely/migrations/0029_company_smtp.sql +30 -0
- package/dist/src/storage/providers/postgres-kysely/migrations/0030_invitation_node_level.sql +31 -0
- package/dist/src/storage/providers/postgres-kysely/migrations/0031_group_conversations.sql +35 -0
- package/dist/src/storage/providers/postgres-kysely/migrations/0032_push_subscription_per_device.sql +35 -0
- package/dist/src/storage/providers/postgres-kysely/migrations/0033_drop_feedback.sql +16 -0
- package/dist/src/storage/providers/postgres-kysely/migrations/0033_group_shares.sql +35 -0
- package/dist/src/storage/providers/postgres-kysely/migrations/0034_agent_console_url.sql +16 -0
- package/dist/src/storage/providers/postgres-kysely/migrations/0035_agent_registered_by.sql +19 -0
- package/dist/src/storage/providers/sqlite/index.d.ts +26 -29
- package/dist/src/storage/providers/sqlite/index.d.ts.map +1 -1
- package/dist/src/storage/providers/sqlite/index.js +104 -2
- package/dist/src/storage/providers/sqlite/index.js.map +1 -1
- package/dist/src/storage/providers/sqlite/methods/capability-agents.d.ts +7 -1
- package/dist/src/storage/providers/sqlite/methods/capability-agents.d.ts.map +1 -1
- package/dist/src/storage/providers/sqlite/methods/capability-agents.js +19 -0
- package/dist/src/storage/providers/sqlite/methods/capability-agents.js.map +1 -1
- package/dist/src/storage/providers/sqlite/methods/community.d.ts +4 -1
- package/dist/src/storage/providers/sqlite/methods/community.d.ts.map +1 -1
- package/dist/src/storage/providers/sqlite/methods/community.js +27 -21
- package/dist/src/storage/providers/sqlite/methods/community.js.map +1 -1
- package/dist/src/storage/providers/sqlite/methods/companies.d.ts +13 -0
- package/dist/src/storage/providers/sqlite/methods/companies.d.ts.map +1 -0
- package/dist/src/storage/providers/sqlite/methods/companies.js +124 -0
- package/dist/src/storage/providers/sqlite/methods/companies.js.map +1 -0
- package/dist/src/storage/providers/sqlite/methods/connections.d.ts +26 -1
- package/dist/src/storage/providers/sqlite/methods/connections.d.ts.map +1 -1
- package/dist/src/storage/providers/sqlite/methods/connections.js +120 -13
- package/dist/src/storage/providers/sqlite/methods/connections.js.map +1 -1
- package/dist/src/storage/providers/sqlite/methods/extensions-notify.d.ts +6 -0
- package/dist/src/storage/providers/sqlite/methods/extensions-notify.d.ts.map +1 -1
- package/dist/src/storage/providers/sqlite/methods/extensions-notify.js +22 -3
- package/dist/src/storage/providers/sqlite/methods/extensions-notify.js.map +1 -1
- package/dist/src/storage/providers/sqlite/methods/finance.d.ts +18 -0
- package/dist/src/storage/providers/sqlite/methods/finance.d.ts.map +1 -0
- package/dist/src/storage/providers/sqlite/methods/finance.js +321 -0
- package/dist/src/storage/providers/sqlite/methods/finance.js.map +1 -0
- package/dist/src/storage/providers/sqlite/methods/messaging.d.ts +5 -1
- package/dist/src/storage/providers/sqlite/methods/messaging.d.ts.map +1 -1
- package/dist/src/storage/providers/sqlite/methods/messaging.js +13 -0
- package/dist/src/storage/providers/sqlite/methods/messaging.js.map +1 -1
- package/dist/src/storage/providers/sqlite/methods/outbound.d.ts +14 -0
- package/dist/src/storage/providers/sqlite/methods/outbound.d.ts.map +1 -0
- package/dist/src/storage/providers/sqlite/methods/outbound.js +150 -0
- package/dist/src/storage/providers/sqlite/methods/outbound.js.map +1 -0
- package/dist/src/storage/providers/sqlite/methods/owner-cascade.d.ts +23 -0
- package/dist/src/storage/providers/sqlite/methods/owner-cascade.d.ts.map +1 -0
- package/dist/src/storage/providers/sqlite/methods/owner-cascade.js +71 -0
- package/dist/src/storage/providers/sqlite/methods/owner-cascade.js.map +1 -0
- package/dist/src/storage/providers/sqlite/methods/owner-memory-bulk.d.ts +3 -0
- package/dist/src/storage/providers/sqlite/methods/owner-memory-bulk.d.ts.map +1 -1
- package/dist/src/storage/providers/sqlite/methods/owner-memory-bulk.js +18 -0
- package/dist/src/storage/providers/sqlite/methods/owner-memory-bulk.js.map +1 -1
- package/dist/src/storage/providers/sqlite/methods/owner.d.ts +10 -5
- package/dist/src/storage/providers/sqlite/methods/owner.d.ts.map +1 -1
- package/dist/src/storage/providers/sqlite/methods/owner.js +52 -80
- package/dist/src/storage/providers/sqlite/methods/owner.js.map +1 -1
- package/dist/src/storage/providers/sqlite/methods/work.d.ts +1 -0
- package/dist/src/storage/providers/sqlite/methods/work.d.ts.map +1 -1
- package/dist/src/storage/providers/sqlite/methods/work.js +4 -0
- package/dist/src/storage/providers/sqlite/methods/work.js.map +1 -1
- package/dist/src/storage/providers/sqlite/repos/agent.d.ts +5 -0
- package/dist/src/storage/providers/sqlite/repos/agent.d.ts.map +1 -1
- package/dist/src/storage/providers/sqlite/repos/agent.js +6 -1
- package/dist/src/storage/providers/sqlite/repos/agent.js.map +1 -1
- package/dist/src/storage/providers/sqlite/repos/auth.d.ts +2 -0
- package/dist/src/storage/providers/sqlite/repos/auth.d.ts.map +1 -1
- package/dist/src/storage/providers/sqlite/repos/auth.js +4 -0
- package/dist/src/storage/providers/sqlite/repos/auth.js.map +1 -1
- package/dist/src/storage/providers/sqlite/repos/direct-message.d.ts +14 -1
- package/dist/src/storage/providers/sqlite/repos/direct-message.d.ts.map +1 -1
- package/dist/src/storage/providers/sqlite/repos/direct-message.js +51 -0
- package/dist/src/storage/providers/sqlite/repos/direct-message.js.map +1 -1
- package/dist/src/storage/providers/sqlite/repos/sharing-group.d.ts +10 -2
- package/dist/src/storage/providers/sqlite/repos/sharing-group.d.ts.map +1 -1
- package/dist/src/storage/providers/sqlite/repos/sharing-group.js +47 -2
- package/dist/src/storage/providers/sqlite/repos/sharing-group.js.map +1 -1
- package/dist/src/storage/providers/sqlite/schema-tables-1.d.ts +7 -0
- package/dist/src/storage/providers/sqlite/schema-tables-1.d.ts.map +1 -1
- package/dist/src/storage/providers/sqlite/schema-tables-1.js +10 -16
- package/dist/src/storage/providers/sqlite/schema-tables-1.js.map +1 -1
- package/dist/src/storage/providers/sqlite/schema-tables-2.d.ts +4 -0
- package/dist/src/storage/providers/sqlite/schema-tables-2.d.ts.map +1 -1
- package/dist/src/storage/providers/sqlite/schema-tables-2.js +10 -7
- package/dist/src/storage/providers/sqlite/schema-tables-2.js.map +1 -1
- package/dist/src/storage/providers/sqlite/schema-tables-3.d.ts +3 -0
- package/dist/src/storage/providers/sqlite/schema-tables-3.d.ts.map +1 -1
- package/dist/src/storage/providers/sqlite/schema-tables-3.js +685 -624
- package/dist/src/storage/providers/sqlite/schema-tables-3.js.map +1 -1
- package/dist/src/storage/providers/sqlite/schema-tables-4.d.ts +12 -0
- package/dist/src/storage/providers/sqlite/schema-tables-4.d.ts.map +1 -0
- package/dist/src/storage/providers/sqlite/schema-tables-4.js +226 -0
- package/dist/src/storage/providers/sqlite/schema-tables-4.js.map +1 -0
- package/dist/src/storage/providers/sqlite/schema.d.ts +9 -0
- package/dist/src/storage/providers/sqlite/schema.d.ts.map +1 -1
- package/dist/src/storage/providers/sqlite/schema.js +161 -0
- package/dist/src/storage/providers/sqlite/schema.js.map +1 -1
- package/dist/src/storage/read-scope/identity-map.d.ts +0 -0
- package/dist/src/storage/read-scope/identity-map.d.ts.map +1 -0
- package/dist/src/storage/read-scope/identity-map.js +0 -0
- package/dist/src/storage/read-scope/identity-map.js.map +1 -0
- package/dist/src/storage/read-scope/read-scope.d.ts +18 -0
- package/dist/src/storage/read-scope/read-scope.d.ts.map +1 -0
- package/dist/src/storage/read-scope/read-scope.js +63 -0
- package/dist/src/storage/read-scope/read-scope.js.map +1 -0
- package/dist/src/storage/repositories/company.repository.d.ts +30 -0
- package/dist/src/storage/repositories/company.repository.d.ts.map +1 -0
- package/dist/src/storage/repositories/company.repository.js +2 -0
- package/dist/src/storage/repositories/company.repository.js.map +1 -0
- package/dist/src/storage/repositories/connection.repository.d.ts +53 -2
- package/dist/src/storage/repositories/connection.repository.d.ts.map +1 -1
- package/dist/src/storage/repositories/direct-message.repository.d.ts +7 -1
- package/dist/src/storage/repositories/direct-message.repository.d.ts.map +1 -1
- package/dist/src/storage/repositories/finance.repository.d.ts +73 -0
- package/dist/src/storage/repositories/finance.repository.d.ts.map +1 -0
- package/dist/src/storage/repositories/finance.repository.js +22 -0
- package/dist/src/storage/repositories/finance.repository.js.map +1 -0
- package/dist/src/storage/repositories/index.d.ts +0 -1
- package/dist/src/storage/repositories/index.d.ts.map +1 -1
- package/dist/src/storage/repositories/invitation.repository.d.ts +38 -3
- package/dist/src/storage/repositories/invitation.repository.d.ts.map +1 -1
- package/dist/src/storage/repositories/invitation.repository.js +7 -1
- package/dist/src/storage/repositories/invitation.repository.js.map +1 -1
- package/dist/src/storage/repositories/memory.repository.d.ts +10 -0
- package/dist/src/storage/repositories/memory.repository.d.ts.map +1 -1
- package/dist/src/storage/repositories/node.repository.d.ts +13 -1
- package/dist/src/storage/repositories/node.repository.d.ts.map +1 -1
- package/dist/src/storage/repositories/outbound.repository.d.ts +30 -0
- package/dist/src/storage/repositories/outbound.repository.d.ts.map +1 -0
- package/dist/src/storage/repositories/outbound.repository.js +2 -0
- package/dist/src/storage/repositories/outbound.repository.js.map +1 -0
- package/dist/src/storage/repositories/session.repository.d.ts +14 -0
- package/dist/src/storage/repositories/session.repository.d.ts.map +1 -1
- package/dist/src/storage/repositories/session.repository.js +2 -0
- package/dist/src/storage/repositories/session.repository.js.map +1 -1
- package/dist/src/storage/repositories/sharing-group.repository.d.ts +15 -2
- package/dist/src/storage/repositories/sharing-group.repository.d.ts.map +1 -1
- package/dist/src/storage/repositories/sharing-group.repository.js +5 -1
- package/dist/src/storage/repositories/sharing-group.repository.js.map +1 -1
- package/dist/src/storage/repositories/wallet.repository.d.ts +5 -0
- package/dist/src/storage/repositories/wallet.repository.d.ts.map +1 -1
- package/dist/src/storage/storage-factory.d.ts +6 -0
- package/dist/src/storage/storage-factory.d.ts.map +1 -1
- package/dist/src/storage/storage-factory.js +38 -19
- package/dist/src/storage/storage-factory.js.map +1 -1
- package/dist/src/storage/types/agents-messaging.d.ts +59 -30
- package/dist/src/storage/types/agents-messaging.d.ts.map +1 -1
- package/dist/src/storage/types/agents-messaging.js +0 -3
- package/dist/src/storage/types/agents-messaging.js.map +1 -1
- package/dist/src/storage/types/apps.d.ts +16 -0
- package/dist/src/storage/types/apps.d.ts.map +1 -1
- package/dist/src/storage/types/identity.d.ts +31 -0
- package/dist/src/storage/types/identity.d.ts.map +1 -1
- package/dist/src/storage/types/organisms-federation.d.ts +8 -2
- package/dist/src/storage/types/organisms-federation.d.ts.map +1 -1
- package/dist/src/utils/app-chrome-reserve.d.ts +37 -0
- package/dist/src/utils/app-chrome-reserve.d.ts.map +1 -0
- package/dist/src/utils/app-chrome-reserve.js +47 -0
- package/dist/src/utils/app-chrome-reserve.js.map +1 -0
- package/dist/src/utils/env-config/sections-features.d.ts.map +1 -1
- package/dist/src/utils/env-config/sections-features.js +12 -0
- package/dist/src/utils/env-config/sections-features.js.map +1 -1
- package/dist/src/utils/env-config/sections-platform.js +1 -1
- package/dist/src/utils/env-config/sections-platform.js.map +1 -1
- package/dist/src/utils/env-validator.d.ts +4 -1
- package/dist/src/utils/env-validator.d.ts.map +1 -1
- package/dist/src/utils/env-validator.js +25 -1
- package/dist/src/utils/env-validator.js.map +1 -1
- package/dist/src/utils/file-download-headers.d.ts +71 -0
- package/dist/src/utils/file-download-headers.d.ts.map +1 -0
- package/dist/src/utils/file-download-headers.js +88 -0
- package/dist/src/utils/file-download-headers.js.map +1 -0
- package/dist/src/utils/gaii.d.ts +11 -0
- package/dist/src/utils/gaii.d.ts.map +1 -1
- package/dist/src/utils/gaii.js +20 -1
- package/dist/src/utils/gaii.js.map +1 -1
- package/dist/src/utils/inline-script-parse.d.ts +47 -0
- package/dist/src/utils/inline-script-parse.d.ts.map +1 -0
- package/dist/src/utils/inline-script-parse.js +126 -0
- package/dist/src/utils/inline-script-parse.js.map +1 -0
- package/dist/src/utils/json-merge-patch.d.ts +48 -0
- package/dist/src/utils/json-merge-patch.d.ts.map +1 -0
- package/dist/src/utils/json-merge-patch.js +73 -0
- package/dist/src/utils/json-merge-patch.js.map +1 -0
- package/dist/src/utils/login-identifier.d.ts +34 -0
- package/dist/src/utils/login-identifier.d.ts.map +1 -0
- package/dist/src/utils/login-identifier.js +29 -0
- package/dist/src/utils/login-identifier.js.map +1 -0
- package/dist/src/utils/reserved-keys.d.ts +66 -12
- package/dist/src/utils/reserved-keys.d.ts.map +1 -1
- package/dist/src/utils/reserved-keys.js +76 -13
- package/dist/src/utils/reserved-keys.js.map +1 -1
- package/dist/src/utils/scope-coverage.d.ts +72 -0
- package/dist/src/utils/scope-coverage.d.ts.map +1 -0
- package/dist/src/utils/scope-coverage.js +115 -0
- package/dist/src/utils/scope-coverage.js.map +1 -0
- package/dist/static/app-catalog/js/favorites.js +1 -1
- package/dist/static/app-catalog/js/i18n-data.js +4 -4
- package/dist/static/app-catalog/js/promote.js +1 -1
- package/dist/static/app-catalog/js/render.js +19 -0
- package/dist/static/app-catalog/js/server-io.js +4 -0
- package/dist/static/app-catalog/js/settings.js +1 -1
- package/dist/static/app-catalog/js/util.js +53 -10
- package/dist/static/app-catalog/styles/app-catalog.css +23 -3
- package/dist/static/app-catalog.html +47 -13
- package/dist/static/sdk-libs/_core/sdk-globals.d.ts +6 -2
- package/dist/static/sdk-libs/agentface/index.js +35 -1
- package/dist/static/sdk-libs/ai/strings.js +5 -2
- package/dist/static/sdk-libs/auth/config.js +5 -0
- package/dist/static/sdk-libs/auth/i18n.js +9 -4
- package/dist/static/sdk-libs/auth/modal.js +232 -114
- package/dist/static/sdk-libs/auth/pill-strings.js +52 -0
- package/dist/static/sdk-libs/auth/pill.js +31 -12
- package/dist/static/sdk-libs/auth/pkce.js +32 -0
- package/dist/static/sdk-libs/auth/session.js +26 -33
- package/dist/static/sdk-libs/connect/index.js +205 -8
- package/dist/static/sdk-libs/connect/notes.js +8 -0
- package/dist/static/sdk-libs/dist/aimeat-agentface.js +30 -0
- package/dist/static/sdk-libs/dist/aimeat-ai.js +32 -1
- package/dist/static/sdk-libs/dist/aimeat-auth.js +248 -116
- package/dist/static/sdk-libs/dist/aimeat-connect.js +83 -6
- package/dist/static/sdk-libs/dist/aimeat-game.js +32 -2
- package/dist/static/sdk-libs/dist/aimeat-header.js +34 -7
- package/dist/static/sdk-libs/game/i18n.js +38 -7
- package/dist/static/sdk-libs/header/index.js +47 -14
- package/package.json +22 -3
|
@@ -1,628 +1,689 @@
|
|
|
1
1
|
export function applySchemaTables3(db) {
|
|
2
|
-
db.exec(`
|
|
3
|
-
-- ── OAuth 2.1 Persistent State ──
|
|
4
|
-
CREATE TABLE IF NOT EXISTS oauth_clients (
|
|
5
|
-
clientId TEXT PRIMARY KEY,
|
|
6
|
-
clientSecret TEXT NOT NULL,
|
|
7
|
-
clientName TEXT NOT NULL,
|
|
8
|
-
redirectUris TEXT NOT NULL DEFAULT '[]',
|
|
9
|
-
createdAt TEXT NOT NULL
|
|
10
|
-
);
|
|
11
|
-
|
|
12
|
-
CREATE TABLE IF NOT EXISTS oauth_refresh_tokens (
|
|
13
|
-
tokenHash TEXT PRIMARY KEY,
|
|
14
|
-
clientId TEXT NOT NULL,
|
|
15
|
-
gaii TEXT NOT NULL,
|
|
16
|
-
owner TEXT NOT NULL,
|
|
17
|
-
roles TEXT NOT NULL DEFAULT '[]',
|
|
18
|
-
createdAt TEXT NOT NULL
|
|
19
|
-
);
|
|
20
|
-
CREATE INDEX IF NOT EXISTS idx_oauth_refresh_tokens_clientId ON oauth_refresh_tokens(clientId);
|
|
21
|
-
CREATE INDEX IF NOT EXISTS idx_oauth_refresh_tokens_gaii ON oauth_refresh_tokens(gaii);
|
|
22
|
-
|
|
23
|
-
CREATE TABLE IF NOT EXISTS oauth_approvals (
|
|
24
|
-
clientId TEXT NOT NULL,
|
|
25
|
-
gaii TEXT NOT NULL,
|
|
26
|
-
owner TEXT NOT NULL,
|
|
27
|
-
scope TEXT NOT NULL DEFAULT 'aimeat:full',
|
|
28
|
-
approvedAt TEXT NOT NULL,
|
|
29
|
-
PRIMARY KEY (clientId, gaii)
|
|
30
|
-
);
|
|
31
|
-
CREATE INDEX IF NOT EXISTS idx_oauth_approvals_gaii ON oauth_approvals(gaii);
|
|
32
|
-
CREATE INDEX IF NOT EXISTS idx_oauth_approvals_owner ON oauth_approvals(owner);
|
|
33
|
-
|
|
34
|
-
-- System Prompts (Phase 4)
|
|
35
|
-
CREATE TABLE IF NOT EXISTS system_prompts (
|
|
36
|
-
id TEXT PRIMARY KEY,
|
|
37
|
-
grp TEXT NOT NULL,
|
|
38
|
-
name TEXT NOT NULL,
|
|
39
|
-
description TEXT NOT NULL DEFAULT '',
|
|
40
|
-
content TEXT NOT NULL,
|
|
41
|
-
locales TEXT,
|
|
42
|
-
active INTEGER NOT NULL DEFAULT 1,
|
|
43
|
-
variables TEXT NOT NULL DEFAULT '[]',
|
|
44
|
-
usedIn TEXT NOT NULL DEFAULT '[]',
|
|
45
|
-
version INTEGER NOT NULL DEFAULT 1,
|
|
46
|
-
updatedAt TEXT NOT NULL,
|
|
47
|
-
updatedBy TEXT NOT NULL DEFAULT 'system'
|
|
48
|
-
);
|
|
49
|
-
|
|
50
|
-
CREATE TABLE IF NOT EXISTS system_prompt_versions (
|
|
51
|
-
promptId TEXT NOT NULL,
|
|
52
|
-
version INTEGER NOT NULL,
|
|
53
|
-
content TEXT NOT NULL,
|
|
54
|
-
locales TEXT,
|
|
55
|
-
changedBy TEXT NOT NULL,
|
|
56
|
-
changedAt TEXT NOT NULL,
|
|
57
|
-
changeNote TEXT,
|
|
58
|
-
PRIMARY KEY (promptId, version)
|
|
59
|
-
);
|
|
60
|
-
|
|
61
|
-
-- ── Packages ──
|
|
62
|
-
CREATE TABLE IF NOT EXISTS packages (
|
|
63
|
-
id TEXT PRIMARY KEY,
|
|
64
|
-
packageGroupId TEXT NOT NULL,
|
|
65
|
-
name TEXT NOT NULL,
|
|
66
|
-
author TEXT NOT NULL,
|
|
67
|
-
authorGhii TEXT NOT NULL,
|
|
68
|
-
version TEXT NOT NULL,
|
|
69
|
-
changelog TEXT DEFAULT '',
|
|
70
|
-
description TEXT DEFAULT '',
|
|
71
|
-
category TEXT DEFAULT 'other',
|
|
72
|
-
tags TEXT NOT NULL DEFAULT '[]',
|
|
73
|
-
visibility TEXT DEFAULT 'private',
|
|
74
|
-
status TEXT DEFAULT 'draft',
|
|
75
|
-
components TEXT NOT NULL,
|
|
76
|
-
manifest TEXT DEFAULT '',
|
|
77
|
-
createdAt TEXT NOT NULL,
|
|
78
|
-
updatedAt TEXT NOT NULL,
|
|
79
|
-
UNIQUE(packageGroupId, version)
|
|
80
|
-
);
|
|
81
|
-
CREATE INDEX IF NOT EXISTS idx_packages_group ON packages(packageGroupId);
|
|
82
|
-
CREATE INDEX IF NOT EXISTS idx_packages_author ON packages(author);
|
|
83
|
-
CREATE INDEX IF NOT EXISTS idx_packages_status ON packages(status);
|
|
84
|
-
|
|
85
|
-
-- ── Template Listings ──
|
|
86
|
-
CREATE TABLE IF NOT EXISTS template_listings (
|
|
87
|
-
id TEXT PRIMARY KEY,
|
|
88
|
-
packageGroupId TEXT NOT NULL UNIQUE,
|
|
89
|
-
packageName TEXT NOT NULL,
|
|
90
|
-
packageAuthor TEXT NOT NULL,
|
|
91
|
-
publishedBy TEXT NOT NULL,
|
|
92
|
-
publishedByGhii TEXT NOT NULL,
|
|
93
|
-
title TEXT NOT NULL,
|
|
94
|
-
description TEXT DEFAULT '',
|
|
95
|
-
screenshots TEXT NOT NULL DEFAULT '[]',
|
|
96
|
-
category TEXT DEFAULT 'other',
|
|
97
|
-
tags TEXT NOT NULL DEFAULT '[]',
|
|
98
|
-
featured INTEGER DEFAULT 0,
|
|
99
|
-
installCount INTEGER DEFAULT 0,
|
|
100
|
-
rating REAL DEFAULT 0,
|
|
101
|
-
reviewCount INTEGER DEFAULT 0,
|
|
102
|
-
status TEXT DEFAULT 'listed',
|
|
103
|
-
createdAt TEXT NOT NULL,
|
|
104
|
-
updatedAt TEXT NOT NULL,
|
|
105
|
-
rejectionReason TEXT,
|
|
106
|
-
reviewedBy TEXT,
|
|
107
|
-
reviewedAt TEXT,
|
|
108
|
-
reviewComment TEXT,
|
|
109
|
-
proposedAt TEXT,
|
|
110
|
-
proposedBy TEXT
|
|
111
|
-
);
|
|
112
|
-
CREATE INDEX IF NOT EXISTS idx_template_listings_category ON template_listings(category);
|
|
113
|
-
CREATE INDEX IF NOT EXISTS idx_template_listings_featured ON template_listings(featured);
|
|
114
|
-
CREATE INDEX IF NOT EXISTS idx_template_listings_status ON template_listings(status);
|
|
115
|
-
|
|
116
|
-
-- ── Template Reviews (separate table — avoids race conditions) ──
|
|
117
|
-
CREATE TABLE IF NOT EXISTS template_reviews (
|
|
118
|
-
id TEXT PRIMARY KEY,
|
|
119
|
-
listingId TEXT NOT NULL,
|
|
120
|
-
authorGhii TEXT NOT NULL,
|
|
121
|
-
authorName TEXT NOT NULL,
|
|
122
|
-
rating INTEGER NOT NULL,
|
|
123
|
-
comment TEXT DEFAULT '',
|
|
124
|
-
createdAt TEXT NOT NULL,
|
|
125
|
-
UNIQUE(listingId, authorGhii)
|
|
126
|
-
);
|
|
127
|
-
CREATE INDEX IF NOT EXISTS idx_template_reviews_listing ON template_reviews(listingId);
|
|
128
|
-
|
|
129
|
-
-- ── Template Discussions (separate table — threaded) ──
|
|
130
|
-
CREATE TABLE IF NOT EXISTS template_discussions (
|
|
131
|
-
id TEXT PRIMARY KEY,
|
|
132
|
-
listingId TEXT NOT NULL,
|
|
133
|
-
authorGhii TEXT NOT NULL,
|
|
134
|
-
authorName TEXT NOT NULL,
|
|
135
|
-
message TEXT NOT NULL,
|
|
136
|
-
parentId TEXT,
|
|
137
|
-
createdAt TEXT NOT NULL
|
|
138
|
-
);
|
|
139
|
-
CREATE INDEX IF NOT EXISTS idx_template_discussions_listing ON template_discussions(listingId);
|
|
140
|
-
|
|
141
|
-
-- ── Package Instances ──
|
|
142
|
-
CREATE TABLE IF NOT EXISTS package_instances (
|
|
143
|
-
id TEXT PRIMARY KEY,
|
|
144
|
-
packageGroupId TEXT NOT NULL,
|
|
145
|
-
packageVersion TEXT NOT NULL,
|
|
146
|
-
packageRecordId TEXT NOT NULL,
|
|
147
|
-
owner TEXT NOT NULL,
|
|
148
|
-
ownerGhii TEXT NOT NULL,
|
|
149
|
-
label TEXT DEFAULT '',
|
|
150
|
-
installedComponents TEXT NOT NULL,
|
|
151
|
-
status TEXT DEFAULT 'installed',
|
|
152
|
-
installedAt TEXT NOT NULL,
|
|
153
|
-
updatedAt TEXT NOT NULL
|
|
154
|
-
);
|
|
155
|
-
CREATE INDEX IF NOT EXISTS idx_package_instances_owner ON package_instances(owner);
|
|
156
|
-
CREATE INDEX IF NOT EXISTS idx_package_instances_package ON package_instances(packageGroupId);
|
|
157
|
-
|
|
158
|
-
-- Capabilities
|
|
159
|
-
CREATE TABLE IF NOT EXISTS capabilities (
|
|
160
|
-
id TEXT PRIMARY KEY,
|
|
161
|
-
name TEXT NOT NULL,
|
|
162
|
-
summary TEXT NOT NULL DEFAULT '',
|
|
163
|
-
ownerGhii TEXT NOT NULL,
|
|
164
|
-
visibility TEXT NOT NULL DEFAULT 'private',
|
|
165
|
-
scope TEXT NOT NULL DEFAULT 'local',
|
|
166
|
-
status TEXT NOT NULL DEFAULT 'draft',
|
|
167
|
-
rejectionReason TEXT,
|
|
168
|
-
deprecationMessage TEXT,
|
|
169
|
-
replacedBy TEXT,
|
|
170
|
-
sourceType TEXT NOT NULL,
|
|
171
|
-
sourceRef TEXT NOT NULL,
|
|
172
|
-
sourceVersion TEXT NOT NULL DEFAULT '',
|
|
173
|
-
authRequired TEXT NOT NULL DEFAULT 'registered',
|
|
174
|
-
callable INTEGER NOT NULL DEFAULT 0,
|
|
175
|
-
inputSchema TEXT,
|
|
176
|
-
outputSchema TEXT,
|
|
177
|
-
exports TEXT,
|
|
178
|
-
usage TEXT NOT NULL DEFAULT '',
|
|
179
|
-
whenToUse TEXT NOT NULL DEFAULT '',
|
|
180
|
-
whenNotToUse TEXT NOT NULL DEFAULT '',
|
|
181
|
-
examples TEXT NOT NULL DEFAULT '[]',
|
|
182
|
-
dependencies TEXT NOT NULL DEFAULT '[]',
|
|
183
|
-
schemaHash TEXT NOT NULL DEFAULT '',
|
|
184
|
-
webhookUrl TEXT,
|
|
185
|
-
cost TEXT,
|
|
186
|
-
trustRequired REAL,
|
|
187
|
-
trust TEXT NOT NULL DEFAULT '{"operatorReviewed":false,"reviewedAt":null,"vouchCount":0,"publisherTrustScore":0,"codeAudited":false,"auditNotes":null}',
|
|
188
|
-
redactedFields TEXT NOT NULL DEFAULT '[]',
|
|
189
|
-
operatorOverride TEXT,
|
|
190
|
-
stats TEXT NOT NULL DEFAULT '{"totalInvocations":0,"successCount":0,"errorCount":0,"lastInvokedAt":null,"avgResponseMs":0,"lastError":null}',
|
|
191
|
-
tags TEXT NOT NULL DEFAULT '[]',
|
|
192
|
-
createdAt TEXT NOT NULL,
|
|
193
|
-
updatedAt TEXT NOT NULL
|
|
194
|
-
);
|
|
195
|
-
CREATE INDEX IF NOT EXISTS idx_capabilities_owner ON capabilities(ownerGhii);
|
|
196
|
-
CREATE INDEX IF NOT EXISTS idx_capabilities_source ON capabilities(sourceType, sourceRef);
|
|
197
|
-
CREATE INDEX IF NOT EXISTS idx_capabilities_status ON capabilities(status);
|
|
198
|
-
CREATE INDEX IF NOT EXISTS idx_capabilities_visibility ON capabilities(visibility);
|
|
199
|
-
|
|
200
|
-
CREATE TABLE IF NOT EXISTS capability_logs (
|
|
201
|
-
id TEXT PRIMARY KEY,
|
|
202
|
-
capabilityId TEXT NOT NULL,
|
|
203
|
-
callerGhii TEXT NOT NULL,
|
|
204
|
-
input TEXT NOT NULL DEFAULT '{}',
|
|
205
|
-
status TEXT NOT NULL,
|
|
206
|
-
durationMs INTEGER NOT NULL DEFAULT 0,
|
|
207
|
-
error TEXT,
|
|
208
|
-
timestamp TEXT NOT NULL,
|
|
209
|
-
FOREIGN KEY (capabilityId) REFERENCES capabilities(id) ON DELETE CASCADE
|
|
210
|
-
);
|
|
211
|
-
CREATE INDEX IF NOT EXISTS idx_capability_logs_cap ON capability_logs(capabilityId, timestamp);
|
|
212
|
-
CREATE INDEX IF NOT EXISTS idx_capability_logs_status ON capability_logs(capabilityId, status);
|
|
213
|
-
|
|
214
|
-
CREATE TABLE IF NOT EXISTS capability_vouches (
|
|
215
|
-
capabilityId TEXT NOT NULL,
|
|
216
|
-
userGhii TEXT NOT NULL,
|
|
217
|
-
comment TEXT,
|
|
218
|
-
createdAt TEXT NOT NULL,
|
|
219
|
-
PRIMARY KEY (capabilityId, userGhii),
|
|
220
|
-
FOREIGN KEY (capabilityId) REFERENCES capabilities(id) ON DELETE CASCADE
|
|
221
|
-
);
|
|
222
|
-
|
|
223
|
-
-- ── Stats Persistence ──
|
|
224
|
-
CREATE TABLE IF NOT EXISTS stats_counters (
|
|
225
|
-
key TEXT PRIMARY KEY,
|
|
226
|
-
value INTEGER NOT NULL DEFAULT 0
|
|
227
|
-
);
|
|
228
|
-
|
|
229
|
-
CREATE TABLE IF NOT EXISTS stats_daily_history (
|
|
230
|
-
date TEXT NOT NULL,
|
|
231
|
-
key TEXT NOT NULL,
|
|
232
|
-
value INTEGER NOT NULL DEFAULT 0,
|
|
233
|
-
PRIMARY KEY (date, key)
|
|
234
|
-
);
|
|
235
|
-
|
|
236
|
-
-- Operator storage-growth telemetry: one row per hourly snapshot; counts = { table: rowCount } JSON.
|
|
237
|
-
CREATE TABLE IF NOT EXISTS storage_stats_snapshots (
|
|
238
|
-
id TEXT PRIMARY KEY,
|
|
239
|
-
capturedAt TEXT NOT NULL,
|
|
240
|
-
counts TEXT NOT NULL,
|
|
241
|
-
totalRows INTEGER NOT NULL DEFAULT 0
|
|
242
|
-
);
|
|
243
|
-
CREATE INDEX IF NOT EXISTS idx_storage_stats_capturedAt ON storage_stats_snapshots(capturedAt);
|
|
244
|
-
|
|
245
|
-
-- ── Agent Tasks ──
|
|
246
|
-
CREATE TABLE IF NOT EXISTS agent_tasks (
|
|
247
|
-
id TEXT PRIMARY KEY,
|
|
248
|
-
agentGaii TEXT NOT NULL,
|
|
249
|
-
ownerGaii TEXT NOT NULL,
|
|
250
|
-
title TEXT NOT NULL,
|
|
251
|
-
description TEXT NOT NULL DEFAULT '',
|
|
252
|
-
scope TEXT NOT NULL DEFAULT '[]',
|
|
253
|
-
rules TEXT NOT NULL DEFAULT '[]',
|
|
254
|
-
verification TEXT NOT NULL DEFAULT '{}',
|
|
255
|
-
resources TEXT,
|
|
256
|
-
todos TEXT NOT NULL DEFAULT '[]',
|
|
257
|
-
status TEXT NOT NULL DEFAULT 'draft',
|
|
258
|
-
dedupeKey TEXT,
|
|
259
|
-
parentTaskId TEXT,
|
|
260
|
-
workTrackingCode TEXT,
|
|
261
|
-
telemetry TEXT,
|
|
262
|
-
lastEventAt TEXT,
|
|
263
|
-
createdAt TEXT NOT NULL,
|
|
264
|
-
updatedAt TEXT NOT NULL,
|
|
265
|
-
completedAt TEXT,
|
|
266
|
-
deliverableKey TEXT,
|
|
267
|
-
rating TEXT,
|
|
268
|
-
triage TEXT,
|
|
269
|
-
automation TEXT
|
|
270
|
-
);
|
|
271
|
-
CREATE INDEX IF NOT EXISTS idx_agent_tasks_agent ON agent_tasks(agentGaii, status);
|
|
272
|
-
CREATE INDEX IF NOT EXISTS idx_agent_tasks_owner ON agent_tasks(ownerGaii);
|
|
273
|
-
|
|
274
|
-
-- Agent Task Events
|
|
275
|
-
CREATE TABLE IF NOT EXISTS agent_task_events (
|
|
276
|
-
id TEXT PRIMARY KEY,
|
|
277
|
-
taskId TEXT NOT NULL,
|
|
278
|
-
type TEXT NOT NULL,
|
|
279
|
-
message TEXT NOT NULL,
|
|
280
|
-
details TEXT,
|
|
281
|
-
timestamp TEXT NOT NULL
|
|
282
|
-
);
|
|
283
|
-
CREATE INDEX IF NOT EXISTS idx_task_events_task ON agent_task_events(taskId, timestamp);
|
|
284
|
-
|
|
285
|
-
-- ── Agent Directives ──
|
|
286
|
-
CREATE TABLE IF NOT EXISTS agent_directives (
|
|
287
|
-
agentGaii TEXT PRIMARY KEY,
|
|
288
|
-
purpose TEXT NOT NULL DEFAULT '',
|
|
289
|
-
rules TEXT NOT NULL DEFAULT '[]',
|
|
290
|
-
memoryAreas TEXT NOT NULL DEFAULT '[]',
|
|
291
|
-
resources TEXT NOT NULL DEFAULT '[]',
|
|
292
|
-
budgetLimits TEXT,
|
|
293
|
-
updatedAt TEXT NOT NULL
|
|
294
|
-
);
|
|
295
|
-
|
|
296
|
-
-- Owner Agent Defaults
|
|
297
|
-
CREATE TABLE IF NOT EXISTS owner_agent_defaults (
|
|
298
|
-
ownerGaii TEXT PRIMARY KEY,
|
|
299
|
-
rules TEXT NOT NULL DEFAULT '[]',
|
|
300
|
-
defaultTokenBudget INTEGER,
|
|
301
|
-
defaultMemoryAreas TEXT NOT NULL DEFAULT '[]',
|
|
302
|
-
updatedAt TEXT NOT NULL
|
|
303
|
-
);
|
|
304
|
-
|
|
305
|
-
-- ── Sharing Groups ──
|
|
306
|
-
CREATE TABLE IF NOT EXISTS sharing_groups (
|
|
307
|
-
id TEXT PRIMARY KEY,
|
|
308
|
-
name TEXT NOT NULL,
|
|
309
|
-
description TEXT,
|
|
310
|
-
ownerGaii TEXT NOT NULL,
|
|
311
|
-
members TEXT NOT NULL DEFAULT '[]',
|
|
312
|
-
defaultPermissions TEXT NOT NULL DEFAULT '{"read":true,"write":false}',
|
|
313
|
-
createdAt TEXT NOT NULL,
|
|
314
|
-
updatedAt TEXT NOT NULL
|
|
315
|
-
);
|
|
316
|
-
CREATE INDEX IF NOT EXISTS idx_sharing_groups_owner ON sharing_groups(ownerGaii);
|
|
317
|
-
|
|
318
|
-
-- ──
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
CREATE
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
CREATE
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
agentGaii
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
);
|
|
496
|
-
CREATE INDEX IF NOT EXISTS
|
|
497
|
-
|
|
498
|
-
-- ──
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
)
|
|
550
|
-
--
|
|
551
|
-
|
|
552
|
-
CREATE
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
--
|
|
557
|
-
--
|
|
558
|
-
--
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
CREATE
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
2
|
+
db.exec(`
|
|
3
|
+
-- ── OAuth 2.1 Persistent State ──
|
|
4
|
+
CREATE TABLE IF NOT EXISTS oauth_clients (
|
|
5
|
+
clientId TEXT PRIMARY KEY,
|
|
6
|
+
clientSecret TEXT NOT NULL,
|
|
7
|
+
clientName TEXT NOT NULL,
|
|
8
|
+
redirectUris TEXT NOT NULL DEFAULT '[]',
|
|
9
|
+
createdAt TEXT NOT NULL
|
|
10
|
+
);
|
|
11
|
+
|
|
12
|
+
CREATE TABLE IF NOT EXISTS oauth_refresh_tokens (
|
|
13
|
+
tokenHash TEXT PRIMARY KEY,
|
|
14
|
+
clientId TEXT NOT NULL,
|
|
15
|
+
gaii TEXT NOT NULL,
|
|
16
|
+
owner TEXT NOT NULL,
|
|
17
|
+
roles TEXT NOT NULL DEFAULT '[]',
|
|
18
|
+
createdAt TEXT NOT NULL
|
|
19
|
+
);
|
|
20
|
+
CREATE INDEX IF NOT EXISTS idx_oauth_refresh_tokens_clientId ON oauth_refresh_tokens(clientId);
|
|
21
|
+
CREATE INDEX IF NOT EXISTS idx_oauth_refresh_tokens_gaii ON oauth_refresh_tokens(gaii);
|
|
22
|
+
|
|
23
|
+
CREATE TABLE IF NOT EXISTS oauth_approvals (
|
|
24
|
+
clientId TEXT NOT NULL,
|
|
25
|
+
gaii TEXT NOT NULL,
|
|
26
|
+
owner TEXT NOT NULL,
|
|
27
|
+
scope TEXT NOT NULL DEFAULT 'aimeat:full',
|
|
28
|
+
approvedAt TEXT NOT NULL,
|
|
29
|
+
PRIMARY KEY (clientId, gaii)
|
|
30
|
+
);
|
|
31
|
+
CREATE INDEX IF NOT EXISTS idx_oauth_approvals_gaii ON oauth_approvals(gaii);
|
|
32
|
+
CREATE INDEX IF NOT EXISTS idx_oauth_approvals_owner ON oauth_approvals(owner);
|
|
33
|
+
|
|
34
|
+
-- System Prompts (Phase 4)
|
|
35
|
+
CREATE TABLE IF NOT EXISTS system_prompts (
|
|
36
|
+
id TEXT PRIMARY KEY,
|
|
37
|
+
grp TEXT NOT NULL,
|
|
38
|
+
name TEXT NOT NULL,
|
|
39
|
+
description TEXT NOT NULL DEFAULT '',
|
|
40
|
+
content TEXT NOT NULL,
|
|
41
|
+
locales TEXT,
|
|
42
|
+
active INTEGER NOT NULL DEFAULT 1,
|
|
43
|
+
variables TEXT NOT NULL DEFAULT '[]',
|
|
44
|
+
usedIn TEXT NOT NULL DEFAULT '[]',
|
|
45
|
+
version INTEGER NOT NULL DEFAULT 1,
|
|
46
|
+
updatedAt TEXT NOT NULL,
|
|
47
|
+
updatedBy TEXT NOT NULL DEFAULT 'system'
|
|
48
|
+
);
|
|
49
|
+
|
|
50
|
+
CREATE TABLE IF NOT EXISTS system_prompt_versions (
|
|
51
|
+
promptId TEXT NOT NULL,
|
|
52
|
+
version INTEGER NOT NULL,
|
|
53
|
+
content TEXT NOT NULL,
|
|
54
|
+
locales TEXT,
|
|
55
|
+
changedBy TEXT NOT NULL,
|
|
56
|
+
changedAt TEXT NOT NULL,
|
|
57
|
+
changeNote TEXT,
|
|
58
|
+
PRIMARY KEY (promptId, version)
|
|
59
|
+
);
|
|
60
|
+
|
|
61
|
+
-- ── Packages ──
|
|
62
|
+
CREATE TABLE IF NOT EXISTS packages (
|
|
63
|
+
id TEXT PRIMARY KEY,
|
|
64
|
+
packageGroupId TEXT NOT NULL,
|
|
65
|
+
name TEXT NOT NULL,
|
|
66
|
+
author TEXT NOT NULL,
|
|
67
|
+
authorGhii TEXT NOT NULL,
|
|
68
|
+
version TEXT NOT NULL,
|
|
69
|
+
changelog TEXT DEFAULT '',
|
|
70
|
+
description TEXT DEFAULT '',
|
|
71
|
+
category TEXT DEFAULT 'other',
|
|
72
|
+
tags TEXT NOT NULL DEFAULT '[]',
|
|
73
|
+
visibility TEXT DEFAULT 'private',
|
|
74
|
+
status TEXT DEFAULT 'draft',
|
|
75
|
+
components TEXT NOT NULL,
|
|
76
|
+
manifest TEXT DEFAULT '',
|
|
77
|
+
createdAt TEXT NOT NULL,
|
|
78
|
+
updatedAt TEXT NOT NULL,
|
|
79
|
+
UNIQUE(packageGroupId, version)
|
|
80
|
+
);
|
|
81
|
+
CREATE INDEX IF NOT EXISTS idx_packages_group ON packages(packageGroupId);
|
|
82
|
+
CREATE INDEX IF NOT EXISTS idx_packages_author ON packages(author);
|
|
83
|
+
CREATE INDEX IF NOT EXISTS idx_packages_status ON packages(status);
|
|
84
|
+
|
|
85
|
+
-- ── Template Listings ──
|
|
86
|
+
CREATE TABLE IF NOT EXISTS template_listings (
|
|
87
|
+
id TEXT PRIMARY KEY,
|
|
88
|
+
packageGroupId TEXT NOT NULL UNIQUE,
|
|
89
|
+
packageName TEXT NOT NULL,
|
|
90
|
+
packageAuthor TEXT NOT NULL,
|
|
91
|
+
publishedBy TEXT NOT NULL,
|
|
92
|
+
publishedByGhii TEXT NOT NULL,
|
|
93
|
+
title TEXT NOT NULL,
|
|
94
|
+
description TEXT DEFAULT '',
|
|
95
|
+
screenshots TEXT NOT NULL DEFAULT '[]',
|
|
96
|
+
category TEXT DEFAULT 'other',
|
|
97
|
+
tags TEXT NOT NULL DEFAULT '[]',
|
|
98
|
+
featured INTEGER DEFAULT 0,
|
|
99
|
+
installCount INTEGER DEFAULT 0,
|
|
100
|
+
rating REAL DEFAULT 0,
|
|
101
|
+
reviewCount INTEGER DEFAULT 0,
|
|
102
|
+
status TEXT DEFAULT 'listed',
|
|
103
|
+
createdAt TEXT NOT NULL,
|
|
104
|
+
updatedAt TEXT NOT NULL,
|
|
105
|
+
rejectionReason TEXT,
|
|
106
|
+
reviewedBy TEXT,
|
|
107
|
+
reviewedAt TEXT,
|
|
108
|
+
reviewComment TEXT,
|
|
109
|
+
proposedAt TEXT,
|
|
110
|
+
proposedBy TEXT
|
|
111
|
+
);
|
|
112
|
+
CREATE INDEX IF NOT EXISTS idx_template_listings_category ON template_listings(category);
|
|
113
|
+
CREATE INDEX IF NOT EXISTS idx_template_listings_featured ON template_listings(featured);
|
|
114
|
+
CREATE INDEX IF NOT EXISTS idx_template_listings_status ON template_listings(status);
|
|
115
|
+
|
|
116
|
+
-- ── Template Reviews (separate table — avoids race conditions) ──
|
|
117
|
+
CREATE TABLE IF NOT EXISTS template_reviews (
|
|
118
|
+
id TEXT PRIMARY KEY,
|
|
119
|
+
listingId TEXT NOT NULL,
|
|
120
|
+
authorGhii TEXT NOT NULL,
|
|
121
|
+
authorName TEXT NOT NULL,
|
|
122
|
+
rating INTEGER NOT NULL,
|
|
123
|
+
comment TEXT DEFAULT '',
|
|
124
|
+
createdAt TEXT NOT NULL,
|
|
125
|
+
UNIQUE(listingId, authorGhii)
|
|
126
|
+
);
|
|
127
|
+
CREATE INDEX IF NOT EXISTS idx_template_reviews_listing ON template_reviews(listingId);
|
|
128
|
+
|
|
129
|
+
-- ── Template Discussions (separate table — threaded) ──
|
|
130
|
+
CREATE TABLE IF NOT EXISTS template_discussions (
|
|
131
|
+
id TEXT PRIMARY KEY,
|
|
132
|
+
listingId TEXT NOT NULL,
|
|
133
|
+
authorGhii TEXT NOT NULL,
|
|
134
|
+
authorName TEXT NOT NULL,
|
|
135
|
+
message TEXT NOT NULL,
|
|
136
|
+
parentId TEXT,
|
|
137
|
+
createdAt TEXT NOT NULL
|
|
138
|
+
);
|
|
139
|
+
CREATE INDEX IF NOT EXISTS idx_template_discussions_listing ON template_discussions(listingId);
|
|
140
|
+
|
|
141
|
+
-- ── Package Instances ──
|
|
142
|
+
CREATE TABLE IF NOT EXISTS package_instances (
|
|
143
|
+
id TEXT PRIMARY KEY,
|
|
144
|
+
packageGroupId TEXT NOT NULL,
|
|
145
|
+
packageVersion TEXT NOT NULL,
|
|
146
|
+
packageRecordId TEXT NOT NULL,
|
|
147
|
+
owner TEXT NOT NULL,
|
|
148
|
+
ownerGhii TEXT NOT NULL,
|
|
149
|
+
label TEXT DEFAULT '',
|
|
150
|
+
installedComponents TEXT NOT NULL,
|
|
151
|
+
status TEXT DEFAULT 'installed',
|
|
152
|
+
installedAt TEXT NOT NULL,
|
|
153
|
+
updatedAt TEXT NOT NULL
|
|
154
|
+
);
|
|
155
|
+
CREATE INDEX IF NOT EXISTS idx_package_instances_owner ON package_instances(owner);
|
|
156
|
+
CREATE INDEX IF NOT EXISTS idx_package_instances_package ON package_instances(packageGroupId);
|
|
157
|
+
|
|
158
|
+
-- Capabilities
|
|
159
|
+
CREATE TABLE IF NOT EXISTS capabilities (
|
|
160
|
+
id TEXT PRIMARY KEY,
|
|
161
|
+
name TEXT NOT NULL,
|
|
162
|
+
summary TEXT NOT NULL DEFAULT '',
|
|
163
|
+
ownerGhii TEXT NOT NULL,
|
|
164
|
+
visibility TEXT NOT NULL DEFAULT 'private',
|
|
165
|
+
scope TEXT NOT NULL DEFAULT 'local',
|
|
166
|
+
status TEXT NOT NULL DEFAULT 'draft',
|
|
167
|
+
rejectionReason TEXT,
|
|
168
|
+
deprecationMessage TEXT,
|
|
169
|
+
replacedBy TEXT,
|
|
170
|
+
sourceType TEXT NOT NULL,
|
|
171
|
+
sourceRef TEXT NOT NULL,
|
|
172
|
+
sourceVersion TEXT NOT NULL DEFAULT '',
|
|
173
|
+
authRequired TEXT NOT NULL DEFAULT 'registered',
|
|
174
|
+
callable INTEGER NOT NULL DEFAULT 0,
|
|
175
|
+
inputSchema TEXT,
|
|
176
|
+
outputSchema TEXT,
|
|
177
|
+
exports TEXT,
|
|
178
|
+
usage TEXT NOT NULL DEFAULT '',
|
|
179
|
+
whenToUse TEXT NOT NULL DEFAULT '',
|
|
180
|
+
whenNotToUse TEXT NOT NULL DEFAULT '',
|
|
181
|
+
examples TEXT NOT NULL DEFAULT '[]',
|
|
182
|
+
dependencies TEXT NOT NULL DEFAULT '[]',
|
|
183
|
+
schemaHash TEXT NOT NULL DEFAULT '',
|
|
184
|
+
webhookUrl TEXT,
|
|
185
|
+
cost TEXT,
|
|
186
|
+
trustRequired REAL,
|
|
187
|
+
trust TEXT NOT NULL DEFAULT '{"operatorReviewed":false,"reviewedAt":null,"vouchCount":0,"publisherTrustScore":0,"codeAudited":false,"auditNotes":null}',
|
|
188
|
+
redactedFields TEXT NOT NULL DEFAULT '[]',
|
|
189
|
+
operatorOverride TEXT,
|
|
190
|
+
stats TEXT NOT NULL DEFAULT '{"totalInvocations":0,"successCount":0,"errorCount":0,"lastInvokedAt":null,"avgResponseMs":0,"lastError":null}',
|
|
191
|
+
tags TEXT NOT NULL DEFAULT '[]',
|
|
192
|
+
createdAt TEXT NOT NULL,
|
|
193
|
+
updatedAt TEXT NOT NULL
|
|
194
|
+
);
|
|
195
|
+
CREATE INDEX IF NOT EXISTS idx_capabilities_owner ON capabilities(ownerGhii);
|
|
196
|
+
CREATE INDEX IF NOT EXISTS idx_capabilities_source ON capabilities(sourceType, sourceRef);
|
|
197
|
+
CREATE INDEX IF NOT EXISTS idx_capabilities_status ON capabilities(status);
|
|
198
|
+
CREATE INDEX IF NOT EXISTS idx_capabilities_visibility ON capabilities(visibility);
|
|
199
|
+
|
|
200
|
+
CREATE TABLE IF NOT EXISTS capability_logs (
|
|
201
|
+
id TEXT PRIMARY KEY,
|
|
202
|
+
capabilityId TEXT NOT NULL,
|
|
203
|
+
callerGhii TEXT NOT NULL,
|
|
204
|
+
input TEXT NOT NULL DEFAULT '{}',
|
|
205
|
+
status TEXT NOT NULL,
|
|
206
|
+
durationMs INTEGER NOT NULL DEFAULT 0,
|
|
207
|
+
error TEXT,
|
|
208
|
+
timestamp TEXT NOT NULL,
|
|
209
|
+
FOREIGN KEY (capabilityId) REFERENCES capabilities(id) ON DELETE CASCADE
|
|
210
|
+
);
|
|
211
|
+
CREATE INDEX IF NOT EXISTS idx_capability_logs_cap ON capability_logs(capabilityId, timestamp);
|
|
212
|
+
CREATE INDEX IF NOT EXISTS idx_capability_logs_status ON capability_logs(capabilityId, status);
|
|
213
|
+
|
|
214
|
+
CREATE TABLE IF NOT EXISTS capability_vouches (
|
|
215
|
+
capabilityId TEXT NOT NULL,
|
|
216
|
+
userGhii TEXT NOT NULL,
|
|
217
|
+
comment TEXT,
|
|
218
|
+
createdAt TEXT NOT NULL,
|
|
219
|
+
PRIMARY KEY (capabilityId, userGhii),
|
|
220
|
+
FOREIGN KEY (capabilityId) REFERENCES capabilities(id) ON DELETE CASCADE
|
|
221
|
+
);
|
|
222
|
+
|
|
223
|
+
-- ── Stats Persistence ──
|
|
224
|
+
CREATE TABLE IF NOT EXISTS stats_counters (
|
|
225
|
+
key TEXT PRIMARY KEY,
|
|
226
|
+
value INTEGER NOT NULL DEFAULT 0
|
|
227
|
+
);
|
|
228
|
+
|
|
229
|
+
CREATE TABLE IF NOT EXISTS stats_daily_history (
|
|
230
|
+
date TEXT NOT NULL,
|
|
231
|
+
key TEXT NOT NULL,
|
|
232
|
+
value INTEGER NOT NULL DEFAULT 0,
|
|
233
|
+
PRIMARY KEY (date, key)
|
|
234
|
+
);
|
|
235
|
+
|
|
236
|
+
-- Operator storage-growth telemetry: one row per hourly snapshot; counts = { table: rowCount } JSON.
|
|
237
|
+
CREATE TABLE IF NOT EXISTS storage_stats_snapshots (
|
|
238
|
+
id TEXT PRIMARY KEY,
|
|
239
|
+
capturedAt TEXT NOT NULL,
|
|
240
|
+
counts TEXT NOT NULL,
|
|
241
|
+
totalRows INTEGER NOT NULL DEFAULT 0
|
|
242
|
+
);
|
|
243
|
+
CREATE INDEX IF NOT EXISTS idx_storage_stats_capturedAt ON storage_stats_snapshots(capturedAt);
|
|
244
|
+
|
|
245
|
+
-- ── Agent Tasks ──
|
|
246
|
+
CREATE TABLE IF NOT EXISTS agent_tasks (
|
|
247
|
+
id TEXT PRIMARY KEY,
|
|
248
|
+
agentGaii TEXT NOT NULL,
|
|
249
|
+
ownerGaii TEXT NOT NULL,
|
|
250
|
+
title TEXT NOT NULL,
|
|
251
|
+
description TEXT NOT NULL DEFAULT '',
|
|
252
|
+
scope TEXT NOT NULL DEFAULT '[]',
|
|
253
|
+
rules TEXT NOT NULL DEFAULT '[]',
|
|
254
|
+
verification TEXT NOT NULL DEFAULT '{}',
|
|
255
|
+
resources TEXT,
|
|
256
|
+
todos TEXT NOT NULL DEFAULT '[]',
|
|
257
|
+
status TEXT NOT NULL DEFAULT 'draft',
|
|
258
|
+
dedupeKey TEXT,
|
|
259
|
+
parentTaskId TEXT,
|
|
260
|
+
workTrackingCode TEXT,
|
|
261
|
+
telemetry TEXT,
|
|
262
|
+
lastEventAt TEXT,
|
|
263
|
+
createdAt TEXT NOT NULL,
|
|
264
|
+
updatedAt TEXT NOT NULL,
|
|
265
|
+
completedAt TEXT,
|
|
266
|
+
deliverableKey TEXT,
|
|
267
|
+
rating TEXT,
|
|
268
|
+
triage TEXT,
|
|
269
|
+
automation TEXT
|
|
270
|
+
);
|
|
271
|
+
CREATE INDEX IF NOT EXISTS idx_agent_tasks_agent ON agent_tasks(agentGaii, status);
|
|
272
|
+
CREATE INDEX IF NOT EXISTS idx_agent_tasks_owner ON agent_tasks(ownerGaii);
|
|
273
|
+
|
|
274
|
+
-- Agent Task Events
|
|
275
|
+
CREATE TABLE IF NOT EXISTS agent_task_events (
|
|
276
|
+
id TEXT PRIMARY KEY,
|
|
277
|
+
taskId TEXT NOT NULL,
|
|
278
|
+
type TEXT NOT NULL,
|
|
279
|
+
message TEXT NOT NULL,
|
|
280
|
+
details TEXT,
|
|
281
|
+
timestamp TEXT NOT NULL
|
|
282
|
+
);
|
|
283
|
+
CREATE INDEX IF NOT EXISTS idx_task_events_task ON agent_task_events(taskId, timestamp);
|
|
284
|
+
|
|
285
|
+
-- ── Agent Directives ──
|
|
286
|
+
CREATE TABLE IF NOT EXISTS agent_directives (
|
|
287
|
+
agentGaii TEXT PRIMARY KEY,
|
|
288
|
+
purpose TEXT NOT NULL DEFAULT '',
|
|
289
|
+
rules TEXT NOT NULL DEFAULT '[]',
|
|
290
|
+
memoryAreas TEXT NOT NULL DEFAULT '[]',
|
|
291
|
+
resources TEXT NOT NULL DEFAULT '[]',
|
|
292
|
+
budgetLimits TEXT,
|
|
293
|
+
updatedAt TEXT NOT NULL
|
|
294
|
+
);
|
|
295
|
+
|
|
296
|
+
-- Owner Agent Defaults
|
|
297
|
+
CREATE TABLE IF NOT EXISTS owner_agent_defaults (
|
|
298
|
+
ownerGaii TEXT PRIMARY KEY,
|
|
299
|
+
rules TEXT NOT NULL DEFAULT '[]',
|
|
300
|
+
defaultTokenBudget INTEGER,
|
|
301
|
+
defaultMemoryAreas TEXT NOT NULL DEFAULT '[]',
|
|
302
|
+
updatedAt TEXT NOT NULL
|
|
303
|
+
);
|
|
304
|
+
|
|
305
|
+
-- ── Sharing Groups ──
|
|
306
|
+
CREATE TABLE IF NOT EXISTS sharing_groups (
|
|
307
|
+
id TEXT PRIMARY KEY,
|
|
308
|
+
name TEXT NOT NULL,
|
|
309
|
+
description TEXT,
|
|
310
|
+
ownerGaii TEXT NOT NULL,
|
|
311
|
+
members TEXT NOT NULL DEFAULT '[]',
|
|
312
|
+
defaultPermissions TEXT NOT NULL DEFAULT '{"read":true,"write":false}',
|
|
313
|
+
createdAt TEXT NOT NULL,
|
|
314
|
+
updatedAt TEXT NOT NULL
|
|
315
|
+
);
|
|
316
|
+
CREATE INDEX IF NOT EXISTS idx_sharing_groups_owner ON sharing_groups(ownerGaii);
|
|
317
|
+
|
|
318
|
+
-- ── Key-space shares: this owner lets this group read this key pattern ──
|
|
319
|
+
-- Indexed both ways on purpose. The group direction answers the reader ("what is shared with
|
|
320
|
+
-- me") AND every cross-owner read, so it must never become a scan; the owner direction is the
|
|
321
|
+
-- Access tab. A share is a row rather than a column on the record because one record can be in
|
|
322
|
+
-- several shares, and because a pattern has to cover keys that do not exist yet.
|
|
323
|
+
CREATE TABLE IF NOT EXISTS group_shares (
|
|
324
|
+
id TEXT PRIMARY KEY,
|
|
325
|
+
groupId TEXT NOT NULL,
|
|
326
|
+
ownerGaii TEXT NOT NULL,
|
|
327
|
+
keyPattern TEXT NOT NULL,
|
|
328
|
+
note TEXT,
|
|
329
|
+
expiresAt TEXT,
|
|
330
|
+
createdAt TEXT NOT NULL,
|
|
331
|
+
createdBy TEXT NOT NULL
|
|
332
|
+
);
|
|
333
|
+
CREATE INDEX IF NOT EXISTS idx_group_shares_group ON group_shares(groupId);
|
|
334
|
+
CREATE INDEX IF NOT EXISTS idx_group_shares_owner ON group_shares(ownerGaii, groupId);
|
|
335
|
+
|
|
336
|
+
-- ── Agent Activity (Phase 2 prep) ──
|
|
337
|
+
CREATE TABLE IF NOT EXISTS agent_activity (
|
|
338
|
+
agentGaii TEXT NOT NULL,
|
|
339
|
+
date TEXT NOT NULL,
|
|
340
|
+
hour INTEGER NOT NULL,
|
|
341
|
+
metric TEXT NOT NULL,
|
|
342
|
+
value INTEGER NOT NULL DEFAULT 0,
|
|
343
|
+
PRIMARY KEY (agentGaii, date, hour, metric)
|
|
344
|
+
);
|
|
345
|
+
CREATE INDEX IF NOT EXISTS idx_agent_activity_gaii ON agent_activity(agentGaii, date);
|
|
346
|
+
|
|
347
|
+
-- ── Agent Messages (Phase 3) ──
|
|
348
|
+
CREATE TABLE IF NOT EXISTS agent_messages (
|
|
349
|
+
id TEXT PRIMARY KEY,
|
|
350
|
+
agentGaii TEXT NOT NULL,
|
|
351
|
+
threadId TEXT NOT NULL,
|
|
352
|
+
direction TEXT NOT NULL,
|
|
353
|
+
senderGaii TEXT NOT NULL,
|
|
354
|
+
content TEXT NOT NULL,
|
|
355
|
+
status TEXT NOT NULL DEFAULT 'pending',
|
|
356
|
+
linkedTaskId TEXT,
|
|
357
|
+
metadata TEXT,
|
|
358
|
+
createdAt TEXT NOT NULL,
|
|
359
|
+
processedAt TEXT
|
|
360
|
+
);
|
|
361
|
+
CREATE INDEX IF NOT EXISTS idx_agent_messages_agent ON agent_messages(agentGaii, threadId, createdAt);
|
|
362
|
+
CREATE INDEX IF NOT EXISTS idx_agent_messages_pending ON agent_messages(agentGaii, status);
|
|
363
|
+
|
|
364
|
+
-- ── Direct Messages (human↔human GHII messaging + federation) ──
|
|
365
|
+
CREATE TABLE IF NOT EXISTS direct_messages (
|
|
366
|
+
id TEXT NOT NULL,
|
|
367
|
+
ownerGhii TEXT NOT NULL,
|
|
368
|
+
conversationId TEXT NOT NULL,
|
|
369
|
+
subject TEXT,
|
|
370
|
+
senderGhii TEXT NOT NULL,
|
|
371
|
+
recipientGhii TEXT NOT NULL,
|
|
372
|
+
body TEXT NOT NULL DEFAULT '',
|
|
373
|
+
attachments TEXT,
|
|
374
|
+
interactive TEXT,
|
|
375
|
+
broadcastId TEXT,
|
|
376
|
+
respondable INTEGER,
|
|
377
|
+
status TEXT NOT NULL DEFAULT 'queued',
|
|
378
|
+
direction TEXT NOT NULL,
|
|
379
|
+
replyToId TEXT,
|
|
380
|
+
origin TEXT NOT NULL DEFAULT 'local',
|
|
381
|
+
originNodeId TEXT NOT NULL,
|
|
382
|
+
error TEXT,
|
|
383
|
+
createdAt TEXT NOT NULL,
|
|
384
|
+
deliveredAt TEXT,
|
|
385
|
+
readAt TEXT,
|
|
386
|
+
PRIMARY KEY (id, ownerGhii)
|
|
387
|
+
);
|
|
388
|
+
CREATE INDEX IF NOT EXISTS idx_direct_messages_inbox ON direct_messages(ownerGhii, direction, createdAt);
|
|
389
|
+
CREATE INDEX IF NOT EXISTS idx_direct_messages_convo ON direct_messages(ownerGhii, conversationId, createdAt);
|
|
390
|
+
CREATE INDEX IF NOT EXISTS idx_direct_messages_status ON direct_messages(status, origin);
|
|
391
|
+
|
|
392
|
+
-- ── Group conversations (a thread with MORE than two participants) ──
|
|
393
|
+
-- A row exists ONLY for a group thread. A two-party thread derives its id from the participant
|
|
394
|
+
-- pair and needs no row, which is why nothing here migrates: every conversation that existed
|
|
395
|
+
-- before groups keeps working untouched.
|
|
396
|
+
CREATE TABLE IF NOT EXISTS conversations (
|
|
397
|
+
id TEXT PRIMARY KEY,
|
|
398
|
+
kind TEXT NOT NULL DEFAULT 'group',
|
|
399
|
+
subject TEXT,
|
|
400
|
+
participants TEXT NOT NULL,
|
|
401
|
+
createdBy TEXT NOT NULL,
|
|
402
|
+
alias TEXT,
|
|
403
|
+
createdAt TEXT NOT NULL,
|
|
404
|
+
updatedAt TEXT NOT NULL
|
|
405
|
+
);
|
|
406
|
+
CREATE INDEX IF NOT EXISTS idx_conversations_alias ON conversations(alias, updatedAt);
|
|
407
|
+
|
|
408
|
+
-- ── Contact consent (first-contact gate for direct messages + the owner's address book) ──
|
|
409
|
+
CREATE TABLE IF NOT EXISTS contact_consents (
|
|
410
|
+
ownerGhii TEXT NOT NULL,
|
|
411
|
+
contactId TEXT NOT NULL,
|
|
412
|
+
state TEXT NOT NULL DEFAULT 'pending',
|
|
413
|
+
origin TEXT NOT NULL DEFAULT 'message',
|
|
414
|
+
firstMessageId TEXT,
|
|
415
|
+
createdAt TEXT NOT NULL,
|
|
416
|
+
updatedAt TEXT NOT NULL,
|
|
417
|
+
PRIMARY KEY (ownerGhii, contactId)
|
|
418
|
+
);
|
|
419
|
+
CREATE INDEX IF NOT EXISTS idx_contact_consents_state ON contact_consents(ownerGhii, state);
|
|
420
|
+
|
|
421
|
+
-- ── Direct-message delivery telemetry (operator dashboard; no content/identities) ──
|
|
422
|
+
CREATE TABLE IF NOT EXISTS message_delivery_log (
|
|
423
|
+
id TEXT PRIMARY KEY,
|
|
424
|
+
messageId TEXT NOT NULL,
|
|
425
|
+
origin TEXT NOT NULL,
|
|
426
|
+
targetNodeId TEXT NOT NULL,
|
|
427
|
+
status TEXT NOT NULL,
|
|
428
|
+
httpStatus INTEGER,
|
|
429
|
+
errorMessage TEXT,
|
|
430
|
+
latencyMs INTEGER NOT NULL DEFAULT 0,
|
|
431
|
+
createdAt TEXT NOT NULL
|
|
432
|
+
);
|
|
433
|
+
CREATE INDEX IF NOT EXISTS idx_message_delivery_created ON message_delivery_log(createdAt);
|
|
434
|
+
CREATE INDEX IF NOT EXISTS idx_message_delivery_status ON message_delivery_log(status);
|
|
435
|
+
|
|
436
|
+
-- ── Telemetry Events (Phase A push layer) ──
|
|
437
|
+
CREATE TABLE IF NOT EXISTS telemetry_events (
|
|
438
|
+
id TEXT PRIMARY KEY,
|
|
439
|
+
agentGaii TEXT NOT NULL,
|
|
440
|
+
type TEXT NOT NULL,
|
|
441
|
+
data TEXT NOT NULL DEFAULT '{}',
|
|
442
|
+
sessionId TEXT,
|
|
443
|
+
taskId TEXT,
|
|
444
|
+
createdAt TEXT NOT NULL
|
|
445
|
+
);
|
|
446
|
+
CREATE INDEX IF NOT EXISTS idx_telemetry_agent_created ON telemetry_events(agentGaii, createdAt);
|
|
447
|
+
|
|
448
|
+
-- ── Agent LLM Usage Ledger (LEDGER / TARGET-016) ──
|
|
449
|
+
-- Append-only per-call events = source of truth (billing audit, TARGET-019).
|
|
450
|
+
-- costUsd/priceRef are nullable: a missing price stays null (never coerced to 0).
|
|
451
|
+
-- Context cols (organism/workspace/capability) ship in the schema from v1 but are
|
|
452
|
+
-- filled only once TARGET-018 wires context through the run — no later migration.
|
|
453
|
+
CREATE TABLE IF NOT EXISTS agent_usage_event (
|
|
454
|
+
id TEXT PRIMARY KEY,
|
|
455
|
+
ts TEXT NOT NULL,
|
|
456
|
+
agentGaii TEXT NOT NULL,
|
|
457
|
+
ownerGhii TEXT NOT NULL,
|
|
458
|
+
runId TEXT,
|
|
459
|
+
model TEXT NOT NULL,
|
|
460
|
+
provider TEXT NOT NULL,
|
|
461
|
+
promptTokens INTEGER NOT NULL DEFAULT 0,
|
|
462
|
+
completionTokens INTEGER NOT NULL DEFAULT 0,
|
|
463
|
+
costUsd REAL,
|
|
464
|
+
priceRef TEXT,
|
|
465
|
+
source TEXT NOT NULL,
|
|
466
|
+
apiKeyScope TEXT NOT NULL DEFAULT 'own',
|
|
467
|
+
organismId TEXT,
|
|
468
|
+
workspaceId TEXT,
|
|
469
|
+
capabilityId TEXT,
|
|
470
|
+
consumerGhii TEXT,
|
|
471
|
+
provenanceId TEXT
|
|
472
|
+
);
|
|
473
|
+
CREATE INDEX IF NOT EXISTS idx_agent_usage_event_owner ON agent_usage_event(ownerGhii, ts);
|
|
474
|
+
CREATE INDEX IF NOT EXISTS idx_agent_usage_event_agent ON agent_usage_event(agentGaii, ts);
|
|
475
|
+
CREATE INDEX IF NOT EXISTS idx_agent_usage_event_run ON agent_usage_event(runId);
|
|
476
|
+
|
|
477
|
+
-- Daily rollup, upsert-incremented. Context dims default to '' (not NULL) so the
|
|
478
|
+
-- composite PK stays NULL-free for ON CONFLICT upsert. UI reads this, not raw events.
|
|
479
|
+
CREATE TABLE IF NOT EXISTS agent_usage_daily (
|
|
480
|
+
date TEXT NOT NULL,
|
|
481
|
+
agentGaii TEXT NOT NULL,
|
|
482
|
+
ownerGhii TEXT NOT NULL,
|
|
483
|
+
apiKeyScope TEXT NOT NULL DEFAULT 'own',
|
|
484
|
+
model TEXT NOT NULL,
|
|
485
|
+
provider TEXT NOT NULL,
|
|
486
|
+
organismId TEXT NOT NULL DEFAULT '',
|
|
487
|
+
workspaceId TEXT NOT NULL DEFAULT '',
|
|
488
|
+
promptTokens INTEGER NOT NULL DEFAULT 0,
|
|
489
|
+
completionTokens INTEGER NOT NULL DEFAULT 0,
|
|
490
|
+
costUsd REAL NOT NULL DEFAULT 0,
|
|
491
|
+
calls INTEGER NOT NULL DEFAULT 0,
|
|
492
|
+
unpricedCalls INTEGER NOT NULL DEFAULT 0,
|
|
493
|
+
PRIMARY KEY (date, agentGaii, ownerGhii, apiKeyScope, model, provider, organismId, workspaceId)
|
|
494
|
+
);
|
|
495
|
+
CREATE INDEX IF NOT EXISTS idx_agent_usage_daily_owner ON agent_usage_daily(ownerGhii, date);
|
|
496
|
+
CREATE INDEX IF NOT EXISTS idx_agent_usage_daily_org ON agent_usage_daily(organismId, date);
|
|
497
|
+
|
|
498
|
+
-- ── Webhook Delivery Log (Phase A push layer) ──
|
|
499
|
+
CREATE TABLE IF NOT EXISTS webhook_delivery_log (
|
|
500
|
+
id TEXT PRIMARY KEY,
|
|
501
|
+
agentGaii TEXT NOT NULL,
|
|
502
|
+
event TEXT NOT NULL,
|
|
503
|
+
payload TEXT NOT NULL DEFAULT '{}',
|
|
504
|
+
status TEXT NOT NULL,
|
|
505
|
+
httpStatus INTEGER,
|
|
506
|
+
errorMessage TEXT,
|
|
507
|
+
attemptCount INTEGER NOT NULL DEFAULT 1,
|
|
508
|
+
latencyMs INTEGER NOT NULL DEFAULT 0,
|
|
509
|
+
createdAt TEXT NOT NULL
|
|
510
|
+
);
|
|
511
|
+
CREATE INDEX IF NOT EXISTS idx_delivery_log_agent ON webhook_delivery_log(agentGaii, createdAt);
|
|
512
|
+
|
|
513
|
+
-- ── Agent Onboarding (Phase B Hello Integration) ──
|
|
514
|
+
CREATE TABLE IF NOT EXISTS agent_onboarding (
|
|
515
|
+
agentGaii TEXT PRIMARY KEY,
|
|
516
|
+
status TEXT NOT NULL DEFAULT 'pending',
|
|
517
|
+
startedAt TEXT NOT NULL,
|
|
518
|
+
completedAt TEXT,
|
|
519
|
+
steps TEXT NOT NULL DEFAULT '[]',
|
|
520
|
+
readinessScore INTEGER,
|
|
521
|
+
readinessLevel TEXT,
|
|
522
|
+
detectedPlatform TEXT,
|
|
523
|
+
installedRuntime TEXT,
|
|
524
|
+
onboardingBaseline INTEGER,
|
|
525
|
+
operationalHealth REAL,
|
|
526
|
+
healthComponents TEXT,
|
|
527
|
+
healthRecalculatedAt TEXT,
|
|
528
|
+
readinessOverride TEXT
|
|
529
|
+
);
|
|
530
|
+
CREATE INDEX IF NOT EXISTS idx_agent_onboarding_status ON agent_onboarding(status);
|
|
531
|
+
|
|
532
|
+
-- ── AI Provenance records (TARGET-058, EU AI Act Art. 50) ──
|
|
533
|
+
-- APPEND-ONLY: a record is an attributable statement about a specific set of bytes. Correcting
|
|
534
|
+
-- one means minting a new record about the new bytes, never editing the old statement — so
|
|
535
|
+
-- there is no UPDATE path anywhere in the repository.
|
|
536
|
+
-- The record column holds the canonical aimeat.provenance/v1 document as JSON and is the single
|
|
537
|
+
-- source of truth; the columns beside it are AIMEAT's authorization + lookup metadata, not spec.
|
|
538
|
+
-- contentHash is NOT unique: the same bytes can honestly be generated twice, and the second
|
|
539
|
+
-- statement does not invalidate the first.
|
|
540
|
+
CREATE TABLE IF NOT EXISTS ai_provenance (
|
|
541
|
+
id TEXT PRIMARY KEY,
|
|
542
|
+
ownerGhii TEXT NOT NULL,
|
|
543
|
+
principal TEXT NOT NULL,
|
|
544
|
+
contentHash TEXT,
|
|
545
|
+
generatedAt TEXT NOT NULL,
|
|
546
|
+
createdAt TEXT NOT NULL,
|
|
547
|
+
record TEXT NOT NULL
|
|
548
|
+
);
|
|
549
|
+
-- The detection lookup ("did this node produce these exact bytes?") is hash-keyed and public,
|
|
550
|
+
-- so it is the one query that must stay index-backed under anonymous traffic.
|
|
551
|
+
CREATE INDEX IF NOT EXISTS idx_ai_provenance_hash ON ai_provenance(contentHash);
|
|
552
|
+
CREATE INDEX IF NOT EXISTS idx_ai_provenance_owner ON ai_provenance(ownerGhii, generatedAt);
|
|
553
|
+
|
|
554
|
+
-- ── Outbound connections (TARGET-057, aimeat-connect) ──
|
|
555
|
+
-- "principal" is WHOEVER CONNECTED THE ACCOUNT, which in a multi-user app is the app's USER and
|
|
556
|
+
-- not the app's owner. It is deliberately not called "owner": that word already means the
|
|
557
|
+
-- account layer in AIMEAT, and reusing it produced a model that could not carry a multi-user app.
|
|
558
|
+
-- "credential" is ALWAYS ciphertext (iv:tag:ct, AES-256-GCM via services/encryption.ts) — the
|
|
559
|
+
-- same path extension secrets take. No API response contains this column.
|
|
560
|
+
CREATE TABLE IF NOT EXISTS connections (
|
|
561
|
+
id TEXT PRIMARY KEY,
|
|
562
|
+
principal TEXT NOT NULL,
|
|
563
|
+
mode TEXT NOT NULL DEFAULT 'personal',
|
|
564
|
+
provider TEXT NOT NULL,
|
|
565
|
+
instance TEXT,
|
|
566
|
+
accountLabel TEXT NOT NULL,
|
|
567
|
+
externalId TEXT NOT NULL,
|
|
568
|
+
credential TEXT NOT NULL,
|
|
569
|
+
credentialShape TEXT NOT NULL,
|
|
570
|
+
scopes TEXT NOT NULL DEFAULT '[]',
|
|
571
|
+
-- NULL is a legitimate value, not a missing one: some providers issue tokens that never
|
|
572
|
+
-- expire. Code that reads NULL as "expired" parks a working Mastodon connection.
|
|
573
|
+
expiresAt TEXT,
|
|
574
|
+
status TEXT NOT NULL DEFAULT 'active',
|
|
575
|
+
lastOkAt TEXT,
|
|
576
|
+
lastError TEXT,
|
|
577
|
+
-- Single-flight refresh claim. Several providers invalidate the old refresh token when they
|
|
578
|
+
-- issue a new one, so two concurrent publishes on one connection would leave one working
|
|
579
|
+
-- token and one connection wrongly parked — a failure caused purely by our own concurrency.
|
|
580
|
+
refreshClaimedAt TEXT,
|
|
581
|
+
-- WHICH client minted this token. NULL = the node's configured client. A token can only be
|
|
582
|
+
-- renewed by the client that issued it, so a connection made with a principal's own app has
|
|
583
|
+
-- to remember whose app that was; otherwise it authorises fine and dies on first refresh.
|
|
584
|
+
providerClientId TEXT,
|
|
585
|
+
createdAt TEXT NOT NULL,
|
|
586
|
+
updatedAt TEXT NOT NULL
|
|
587
|
+
);
|
|
588
|
+
-- COALESCE, not the bare column: NULL never equals NULL in a unique index, so without it every
|
|
589
|
+
-- fixed-endpoint provider (YouTube, Bluesky) would accept the same account twice.
|
|
590
|
+
CREATE UNIQUE INDEX IF NOT EXISTS idx_connections_identity
|
|
591
|
+
ON connections(principal, provider, externalId, COALESCE(instance, ''));
|
|
592
|
+
CREATE INDEX IF NOT EXISTS idx_connections_principal ON connections(principal, status);
|
|
593
|
+
|
|
594
|
+
-- One named errand over one connection, with the parameters the app may not choose already
|
|
595
|
+
-- decided. An app calls a DELEGATION, never a connection: it cannot retarget the channel, the
|
|
596
|
+
-- visibility or the playlist because those are not its parameters.
|
|
597
|
+
CREATE TABLE IF NOT EXISTS connection_delegations (
|
|
598
|
+
id TEXT PRIMARY KEY,
|
|
599
|
+
connectionId TEXT NOT NULL,
|
|
600
|
+
appId TEXT NOT NULL,
|
|
601
|
+
action TEXT NOT NULL,
|
|
602
|
+
fixed TEXT NOT NULL DEFAULT '{}',
|
|
603
|
+
-- Keyed on the PUBLISHER's GHII, which is only possible because a shared publish requires an
|
|
604
|
+
-- identified user. Without it one publisher drains an allowance everyone shares.
|
|
605
|
+
perUserLimit TEXT,
|
|
606
|
+
moderation TEXT NOT NULL DEFAULT 'hold',
|
|
607
|
+
enabled INTEGER NOT NULL DEFAULT 1,
|
|
608
|
+
createdAt TEXT NOT NULL,
|
|
609
|
+
updatedAt TEXT NOT NULL
|
|
610
|
+
);
|
|
611
|
+
CREATE UNIQUE INDEX IF NOT EXISTS idx_delegations_triple
|
|
612
|
+
ON connection_delegations(connectionId, appId, action);
|
|
613
|
+
CREATE INDEX IF NOT EXISTS idx_delegations_app ON connection_delegations(appId, action);
|
|
614
|
+
|
|
615
|
+
-- A publish, written BEFORE it is attempted. That order is the whole point: a retry racing a
|
|
616
|
+
-- slow success publishes the video twice, and this repository has produced that family of bug
|
|
617
|
+
-- three times already. The unique index is what arbitrates — an application-level check is
|
|
618
|
+
-- exactly the read-then-write race it would be meant to close.
|
|
619
|
+
-- Doubles as the attribution record (which of an app's users caused which post) and the quota
|
|
620
|
+
-- ledger.
|
|
621
|
+
CREATE TABLE IF NOT EXISTS publish_attempts (
|
|
622
|
+
id TEXT PRIMARY KEY,
|
|
623
|
+
idempotencyKey TEXT NOT NULL,
|
|
624
|
+
-- WHO published. In shared mode this is the app's user, NOT the connection's principal.
|
|
625
|
+
publisher TEXT NOT NULL,
|
|
626
|
+
connectionId TEXT NOT NULL,
|
|
627
|
+
delegationId TEXT,
|
|
628
|
+
storageKey TEXT NOT NULL,
|
|
629
|
+
-- 'held' is moderation and 'queued' is a full shared quota: honest waiting states, not
|
|
630
|
+
-- failures, and neither is retried as one. 'rejected' is permanent.
|
|
631
|
+
status TEXT NOT NULL,
|
|
632
|
+
externalRef TEXT,
|
|
633
|
+
error TEXT,
|
|
634
|
+
createdAt TEXT NOT NULL,
|
|
635
|
+
updatedAt TEXT NOT NULL
|
|
636
|
+
);
|
|
637
|
+
CREATE UNIQUE INDEX IF NOT EXISTS idx_publish_idempotency ON publish_attempts(idempotencyKey);
|
|
638
|
+
CREATE INDEX IF NOT EXISTS idx_publish_publisher ON publish_attempts(publisher, createdAt);
|
|
639
|
+
CREATE INDEX IF NOT EXISTS idx_publish_delegation ON publish_attempts(delegationId, createdAt);
|
|
640
|
+
CREATE INDEX IF NOT EXISTS idx_publish_connection ON publish_attempts(connectionId, createdAt);
|
|
641
|
+
|
|
642
|
+
-- How a published item is actually doing (TARGET-057). A TIME SERIES rather than a column on
|
|
643
|
+
-- the attempt: "how did that post do" is a question about a curve, and a field holding only the
|
|
644
|
+
-- latest value can never say whether 40 likes took an hour or a month. Append-only; a series
|
|
645
|
+
-- that can be edited is not a record. NULL means the platform does not report that number to
|
|
646
|
+
-- the author -- which is a different answer from zero, and writing 0 would invent a measurement.
|
|
647
|
+
CREATE TABLE IF NOT EXISTS publish_metrics (
|
|
648
|
+
id TEXT PRIMARY KEY,
|
|
649
|
+
attemptId TEXT NOT NULL,
|
|
650
|
+
fetchedAt TEXT NOT NULL,
|
|
651
|
+
impressions INTEGER,
|
|
652
|
+
likes INTEGER,
|
|
653
|
+
comments INTEGER,
|
|
654
|
+
shares INTEGER,
|
|
655
|
+
raw TEXT NOT NULL DEFAULT '{}'
|
|
656
|
+
);
|
|
657
|
+
CREATE INDEX IF NOT EXISTS idx_publish_metrics_attempt
|
|
658
|
+
ON publish_metrics(attemptId, fetchedAt DESC);
|
|
659
|
+
|
|
660
|
+
-- Client credentials this node holds AT a provider instance (TARGET-057). NOT the user's token
|
|
661
|
+
-- and not .env either. A fixed provider's client id/secret (Google, Bluesky) are one per node
|
|
662
|
+
-- and live in config; an instance-scoped provider (Mastodon) issues them PER INSTANCE, there is
|
|
663
|
+
-- no way to know which instance the next user arrives from, and there are hundreds -- so they
|
|
664
|
+
-- are runtime configuration the node acquires by registering itself and remembers here.
|
|
665
|
+
-- clientSecret is ciphertext: not personal data, but a table that stores a secret in the clear
|
|
666
|
+
-- teaches the next table to do the same.
|
|
667
|
+
CREATE TABLE IF NOT EXISTS provider_clients (
|
|
668
|
+
id TEXT PRIMARY KEY,
|
|
669
|
+
provider TEXT NOT NULL,
|
|
670
|
+
-- Normalised and validated before it gets here: it originates from a USER-SUPPLIED address,
|
|
671
|
+
-- which makes it an SSRF vector, and every request to it goes through safeFetch.
|
|
672
|
+
instance TEXT,
|
|
673
|
+
-- WHOSE client. NULL = the node's own registration, shared by everyone from that instance.
|
|
674
|
+
-- Non-null = a principal brought their own app, and spends their own allowance and bill.
|
|
675
|
+
principal TEXT,
|
|
676
|
+
clientId TEXT NOT NULL,
|
|
677
|
+
clientSecret TEXT NOT NULL,
|
|
678
|
+
registeredAt TEXT NOT NULL
|
|
679
|
+
);
|
|
680
|
+
-- idx_provider_clients_key and idx_provider_clients_principal are created in schema.ts, AFTER
|
|
681
|
+
-- the guarded rebuild that gives an upgraded table its principal column. BOTH definitions
|
|
682
|
+
-- name principal (the _key one in its WHERE clause), so creating them here crashed the boot
|
|
683
|
+
-- of every SQLite node whose provider_clients predated that column: CREATE TABLE IF NOT EXISTS
|
|
684
|
+
-- is a no-op on the old table, and the index then indexes a column that does not exist yet.
|
|
685
|
+
-- Reported from a self-hosted node on 2026-08-13, upgrading 2.7.0 -> 3.0.0.
|
|
686
|
+
|
|
626
687
|
`);
|
|
627
688
|
}
|
|
628
689
|
//# sourceMappingURL=schema-tables-3.js.map
|