aimeat 2.1.0 → 2.2.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 +9 -4
- package/dist/locales/en.json +28 -0
- package/dist/locales/fi.json +28 -0
- package/dist/public/cortex-bundled/aimeat-charts.js +158 -10
- package/dist/public/cortex-bundled/aimeat-charts.yaml +1 -1
- package/dist/public/cortex-bundled/aimeat-dag.js +515 -173
- package/dist/public/cortex-bundled/aimeat-dag.yaml +1 -1
- package/dist/public/cortex-bundled/aimeat-i18n.js +6 -1
- package/dist/public/cortex-bundled/aimeat-i18n.yaml +1 -1
- package/dist/public/cortex-bundled/aimeat-surface.js +577 -0
- package/dist/public/cortex-bundled/aimeat-surface.yaml +107 -0
- package/dist/public/cortex-bundled/aimeat-viewport.js +405 -0
- package/dist/public/cortex-bundled/aimeat-viewport.yaml +100 -0
- package/dist/public/css/views/inbox.css +1 -1
- package/dist/public/css/views/profile.css +9 -0
- package/dist/public/lib/VENDORED.md +6 -3
- package/dist/public/lib/aimeat-daisyui-bridge.css +39 -2
- package/dist/public/lib/aimeat-theme.css +538 -0
- package/dist/public/lib/fonts/LICENSE.md +11 -4
- package/dist/public/lib/fonts/fraunces-var-latin-ext.woff2 +0 -0
- package/dist/public/lib/fonts/fraunces-var-latin.woff2 +0 -0
- package/dist/public/lib/fonts/inter-var-latin-ext.woff2 +0 -0
- package/dist/public/lib/fonts/inter-var-latin.woff2 +0 -0
- package/dist/public/lib/fonts/jetbrains-mono-var-latin-ext.woff2 +0 -0
- package/dist/public/lib/fonts/jetbrains-mono-var-latin.woff2 +0 -0
- package/dist/public/lib/fonts/space-grotesk-var-latin-ext.woff2 +0 -0
- package/dist/public/lib/fonts/space-grotesk-var-latin.woff2 +0 -0
- package/dist/public/lib/samples/theme-check.html +92 -0
- package/dist/public/lib/samples/themes-boot.js +20 -0
- package/dist/public/lib/samples/themes.html +154 -0
- package/dist/public/lib/samples/themes.js +60 -0
- package/dist/public/views/profile/access-tab/connected-apps.js +81 -5
- package/dist/public/views/profile/extensions-tab.maturity.js +4 -1
- package/dist/public/views/profile/inbox-tab/components.js +17 -1
- package/dist/public/views/profile/inbox-tab/use-thread-ux.js +29 -2
- package/dist/public/views/profile/libraries-tab.js +10 -2
- package/dist/public/views/profile/wallet-tab.js +64 -0
- package/dist/scripts/check-openapi.d.ts +2 -0
- package/dist/scripts/check-openapi.d.ts.map +1 -0
- package/dist/scripts/check-openapi.js +139 -0
- package/dist/scripts/check-openapi.js.map +1 -0
- package/dist/scripts/embed-viewport.d.ts +23 -0
- package/dist/scripts/embed-viewport.d.ts.map +1 -0
- package/dist/scripts/embed-viewport.js +116 -0
- package/dist/scripts/embed-viewport.js.map +1 -0
- package/dist/src/auth/sse-domain-scopes.d.ts +50 -0
- package/dist/src/auth/sse-domain-scopes.d.ts.map +1 -0
- package/dist/src/auth/sse-domain-scopes.js +111 -0
- package/dist/src/auth/sse-domain-scopes.js.map +1 -0
- package/dist/src/cli/connect/mcp/tools/agent-tasks.d.ts.map +1 -1
- package/dist/src/cli/connect/mcp/tools/agent-tasks.js +4 -1
- package/dist/src/cli/connect/mcp/tools/agent-tasks.js.map +1 -1
- package/dist/src/cli/connect/mcp/tools/core.d.ts.map +1 -1
- package/dist/src/cli/connect/mcp/tools/core.js +14 -3
- package/dist/src/cli/connect/mcp/tools/core.js.map +1 -1
- package/dist/src/cli/connect/mcp/tools/workspaces.d.ts +3 -0
- package/dist/src/cli/connect/mcp/tools/workspaces.d.ts.map +1 -1
- package/dist/src/cli/connect/mcp/tools/workspaces.js +4 -2
- package/dist/src/cli/connect/mcp/tools/workspaces.js.map +1 -1
- package/dist/src/cli/connect/tool-call-defs-core.d.ts.map +1 -1
- package/dist/src/cli/connect/tool-call-defs-core.js +13 -1
- package/dist/src/cli/connect/tool-call-defs-core.js.map +1 -1
- package/dist/src/commerce/__tests__/x402-registry.test.d.ts +2 -0
- package/dist/src/commerce/__tests__/x402-registry.test.d.ts.map +1 -0
- package/dist/src/commerce/__tests__/x402-registry.test.js +105 -0
- package/dist/src/commerce/__tests__/x402-registry.test.js.map +1 -0
- package/dist/src/commerce/evm-address.d.ts +21 -0
- package/dist/src/commerce/evm-address.d.ts.map +1 -0
- package/dist/src/commerce/evm-address.js +94 -0
- package/dist/src/commerce/evm-address.js.map +1 -0
- package/dist/src/commerce/money.d.ts +18 -5
- package/dist/src/commerce/money.d.ts.map +1 -1
- package/dist/src/commerce/money.js +27 -6
- package/dist/src/commerce/money.js.map +1 -1
- package/dist/src/commerce/x402-facilitator.d.ts +64 -13
- package/dist/src/commerce/x402-facilitator.d.ts.map +1 -1
- package/dist/src/commerce/x402-facilitator.js +71 -19
- package/dist/src/commerce/x402-facilitator.js.map +1 -1
- package/dist/src/commerce/x402-handler.d.ts +13 -7
- package/dist/src/commerce/x402-handler.d.ts.map +1 -1
- package/dist/src/commerce/x402-handler.js +23 -10
- package/dist/src/commerce/x402-handler.js.map +1 -1
- package/dist/src/commerce/x402.d.ts +11 -6
- package/dist/src/commerce/x402.d.ts.map +1 -1
- package/dist/src/commerce/x402.js +10 -7
- package/dist/src/commerce/x402.js.map +1 -1
- package/dist/src/config-types.d.ts +12 -0
- package/dist/src/config-types.d.ts.map +1 -1
- package/dist/src/config.d.ts.map +1 -1
- package/dist/src/config.js +8 -0
- package/dist/src/config.js.map +1 -1
- package/dist/src/data/app-templates/shells.d.ts +11 -3
- package/dist/src/data/app-templates/shells.d.ts.map +1 -1
- package/dist/src/data/app-templates/shells.js +87 -6
- package/dist/src/data/app-templates/shells.js.map +1 -1
- package/dist/src/data/app-templates.js +2 -2
- package/dist/src/data/app-templates.js.map +1 -1
- package/dist/src/data/library-packs/cortex.d.ts.map +1 -1
- package/dist/src/data/library-packs/cortex.js +108 -5
- package/dist/src/data/library-packs/cortex.js.map +1 -1
- package/dist/src/data/library-packs/sdk.d.ts.map +1 -1
- package/dist/src/data/library-packs/sdk.js +32 -8
- 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 +83 -6
- package/dist/src/data/library-packs/vendored.js.map +1 -1
- package/dist/src/generated/api-types.d.ts +478 -19
- package/dist/src/generated/api-types.d.ts.map +1 -1
- package/dist/src/mcp/agent-tasks.d.ts +4 -0
- package/dist/src/mcp/agent-tasks.d.ts.map +1 -1
- package/dist/src/mcp/agent-tasks.js +20 -2
- package/dist/src/mcp/agent-tasks.js.map +1 -1
- package/dist/src/mcp/capabilities.d.ts +7 -1
- package/dist/src/mcp/capabilities.d.ts.map +1 -1
- package/dist/src/mcp/capabilities.js +5 -2
- package/dist/src/mcp/capabilities.js.map +1 -1
- package/dist/src/mcp/catalog/definitions/commerce.d.ts.map +1 -1
- package/dist/src/mcp/catalog/definitions/commerce.js +4 -2
- package/dist/src/mcp/catalog/definitions/commerce.js.map +1 -1
- package/dist/src/mcp/catalog/definitions/discovery-work-boards.d.ts.map +1 -1
- package/dist/src/mcp/catalog/definitions/discovery-work-boards.js +4 -3
- package/dist/src/mcp/catalog/definitions/discovery-work-boards.js.map +1 -1
- package/dist/src/mcp/catalog/definitions/organisms-workspaces-apps.js +1 -1
- 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 +3 -2
- package/dist/src/mcp/catalog/definitions/schedules-tasks-memory.js.map +1 -1
- package/dist/src/mcp/catalog/output-schemas.d.ts +6 -1
- package/dist/src/mcp/catalog/output-schemas.d.ts.map +1 -1
- package/dist/src/mcp/catalog/output-schemas.js +6 -1
- package/dist/src/mcp/catalog/output-schemas.js.map +1 -1
- package/dist/src/mcp/commerce.d.ts.map +1 -1
- package/dist/src/mcp/commerce.js +15 -3
- package/dist/src/mcp/commerce.js.map +1 -1
- package/dist/src/mcp/core-storage.d.ts +23 -0
- package/dist/src/mcp/core-storage.d.ts.map +1 -0
- package/dist/src/mcp/core-storage.js +157 -0
- package/dist/src/mcp/core-storage.js.map +1 -0
- package/dist/src/mcp/core.d.ts +16 -0
- package/dist/src/mcp/core.d.ts.map +1 -1
- package/dist/src/mcp/core.js +75 -119
- package/dist/src/mcp/core.js.map +1 -1
- package/dist/src/mcp/dm-messages.d.ts +4 -0
- package/dist/src/mcp/dm-messages.d.ts.map +1 -1
- package/dist/src/mcp/dm-messages.js +43 -2
- package/dist/src/mcp/dm-messages.js.map +1 -1
- package/dist/src/mcp/exchange.d.ts.map +1 -1
- package/dist/src/mcp/exchange.js +3 -2
- package/dist/src/mcp/exchange.js.map +1 -1
- package/dist/src/mcp/extensions.d.ts.map +1 -1
- package/dist/src/mcp/extensions.js +6 -2
- package/dist/src/mcp/extensions.js.map +1 -1
- package/dist/src/mcp/index.d.ts +5 -0
- package/dist/src/mcp/index.d.ts.map +1 -1
- package/dist/src/mcp/index.js +23 -4
- package/dist/src/mcp/index.js.map +1 -1
- package/dist/src/mcp/memory-namespace-hints.d.ts +33 -0
- package/dist/src/mcp/memory-namespace-hints.d.ts.map +1 -0
- package/dist/src/mcp/memory-namespace-hints.js +60 -0
- package/dist/src/mcp/memory-namespace-hints.js.map +1 -0
- package/dist/src/mcp/workspaces.d.ts +5 -0
- package/dist/src/mcp/workspaces.d.ts.map +1 -1
- package/dist/src/mcp/workspaces.js +5 -3
- package/dist/src/mcp/workspaces.js.map +1 -1
- package/dist/src/models/agent-task-schemas.d.ts +25 -3
- package/dist/src/models/agent-task-schemas.d.ts.map +1 -1
- package/dist/src/models/agent-task-schemas.js +16 -0
- package/dist/src/models/agent-task-schemas.js.map +1 -1
- package/dist/src/models/app-tool-schemas.d.ts +518 -1
- package/dist/src/models/app-tool-schemas.d.ts.map +1 -1
- package/dist/src/models/app-tool-schemas.js +53 -1
- package/dist/src/models/app-tool-schemas.js.map +1 -1
- package/dist/src/models/odps-schemas.d.ts +305 -0
- package/dist/src/models/odps-schemas.d.ts.map +1 -0
- package/dist/src/models/odps-schemas.js +182 -0
- package/dist/src/models/odps-schemas.js.map +1 -0
- package/dist/src/models/offer-schemas.d.ts +357 -2
- package/dist/src/models/offer-schemas.d.ts.map +1 -1
- package/dist/src/models/offer-schemas.js +37 -0
- package/dist/src/models/offer-schemas.js.map +1 -1
- package/dist/src/models/schemas.d.ts +6 -3
- package/dist/src/models/schemas.d.ts.map +1 -1
- package/dist/src/models/schemas.js +10 -1
- package/dist/src/models/schemas.js.map +1 -1
- package/dist/src/models/webhook-schemas.d.ts +8 -8
- package/dist/src/routes/agent-tasks/create-read.d.ts +4 -0
- package/dist/src/routes/agent-tasks/create-read.d.ts.map +1 -1
- package/dist/src/routes/agent-tasks/create-read.js +20 -1
- package/dist/src/routes/agent-tasks/create-read.js.map +1 -1
- package/dist/src/routes/agent-tasks/lifecycle.d.ts.map +1 -1
- package/dist/src/routes/agent-tasks/lifecycle.js +10 -0
- package/dist/src/routes/agent-tasks/lifecycle.js.map +1 -1
- package/dist/src/routes/agents/offers.d.ts +2 -0
- package/dist/src/routes/agents/offers.d.ts.map +1 -1
- package/dist/src/routes/agents/offers.js +0 -0
- package/dist/src/routes/agents/offers.js.map +1 -1
- package/dist/src/routes/app-grants.d.ts +6 -0
- package/dist/src/routes/app-grants.d.ts.map +1 -1
- package/dist/src/routes/app-grants.js +55 -25
- package/dist/src/routes/app-grants.js.map +1 -1
- package/dist/src/routes/apps/drafts.d.ts +3 -0
- package/dist/src/routes/apps/drafts.d.ts.map +1 -1
- package/dist/src/routes/apps/drafts.js +63 -1
- package/dist/src/routes/apps/drafts.js.map +1 -1
- package/dist/src/routes/apps/publish.d.ts +2 -0
- package/dist/src/routes/apps/publish.d.ts.map +1 -1
- package/dist/src/routes/apps/publish.js +17 -2
- package/dist/src/routes/apps/publish.js.map +1 -1
- package/dist/src/routes/commerce.d.ts.map +1 -1
- package/dist/src/routes/commerce.js +122 -2
- package/dist/src/routes/commerce.js.map +1 -1
- package/dist/src/routes/exchange-market.d.ts +6 -2
- package/dist/src/routes/exchange-market.d.ts.map +1 -1
- package/dist/src/routes/exchange-market.js +154 -28
- package/dist/src/routes/exchange-market.js.map +1 -1
- package/dist/src/routes/exchange.d.ts.map +1 -1
- package/dist/src/routes/exchange.js +5 -2
- package/dist/src/routes/exchange.js.map +1 -1
- package/dist/src/routes/extensions/actions.d.ts.map +1 -1
- package/dist/src/routes/extensions/actions.js +18 -0
- package/dist/src/routes/extensions/actions.js.map +1 -1
- package/dist/src/routes/extensions/crud.d.ts.map +1 -1
- package/dist/src/routes/extensions/crud.js +36 -3
- package/dist/src/routes/extensions/crud.js.map +1 -1
- package/dist/src/routes/extensions/entitlement-gate.d.ts.map +1 -1
- package/dist/src/routes/extensions/entitlement-gate.js +13 -0
- package/dist/src/routes/extensions/entitlement-gate.js.map +1 -1
- package/dist/src/routes/extensions/manifest.d.ts +6 -0
- package/dist/src/routes/extensions/manifest.d.ts.map +1 -1
- package/dist/src/routes/extensions/manifest.js +68 -1
- package/dist/src/routes/extensions/manifest.js.map +1 -1
- package/dist/src/routes/extensions/pacing.d.ts +31 -0
- package/dist/src/routes/extensions/pacing.d.ts.map +1 -0
- package/dist/src/routes/extensions/pacing.js +73 -0
- package/dist/src/routes/extensions/pacing.js.map +1 -0
- package/dist/src/routes/extensions/paywall.d.ts.map +1 -1
- package/dist/src/routes/extensions/paywall.js +17 -17
- package/dist/src/routes/extensions/paywall.js.map +1 -1
- package/dist/src/routes/memory/crud.d.ts.map +1 -1
- package/dist/src/routes/memory/crud.js +10 -0
- package/dist/src/routes/memory/crud.js.map +1 -1
- package/dist/src/routes/organisms/crud.d.ts +3 -0
- package/dist/src/routes/organisms/crud.d.ts.map +1 -1
- package/dist/src/routes/organisms/crud.js +5 -2
- package/dist/src/routes/organisms/crud.js.map +1 -1
- package/dist/src/routes/organisms/workspace-read.d.ts.map +1 -1
- package/dist/src/routes/organisms/workspace-read.js +7 -2
- package/dist/src/routes/organisms/workspace-read.js.map +1 -1
- package/dist/src/routes/public-stats.d.ts +7 -0
- package/dist/src/routes/public-stats.d.ts.map +1 -1
- package/dist/src/routes/public-stats.js +28 -7
- package/dist/src/routes/public-stats.js.map +1 -1
- package/dist/src/routes/sse.d.ts +7 -0
- package/dist/src/routes/sse.d.ts.map +1 -1
- package/dist/src/routes/sse.js +36 -6
- package/dist/src/routes/sse.js.map +1 -1
- package/dist/src/routes/storage-files.d.ts +11 -0
- package/dist/src/routes/storage-files.d.ts.map +1 -1
- package/dist/src/routes/storage-files.js +58 -51
- package/dist/src/routes/storage-files.js.map +1 -1
- package/dist/src/routes/subdomains.d.ts +4 -0
- package/dist/src/routes/subdomains.d.ts.map +1 -1
- package/dist/src/routes/subdomains.js +42 -5
- package/dist/src/routes/subdomains.js.map +1 -1
- package/dist/src/routes/upload.d.ts +11 -0
- package/dist/src/routes/upload.d.ts.map +1 -1
- package/dist/src/routes/upload.js +108 -28
- package/dist/src/routes/upload.js.map +1 -1
- package/dist/src/routes/webmcp.d.ts.map +1 -1
- package/dist/src/routes/webmcp.js +4 -0
- package/dist/src/routes/webmcp.js.map +1 -1
- package/dist/src/schemas/knowledge-package.d.ts +1 -1
- package/dist/src/server-bootstrap/static-files.d.ts +4 -0
- package/dist/src/server-bootstrap/static-files.d.ts.map +1 -1
- package/dist/src/server-bootstrap/static-files.js +11 -0
- package/dist/src/server-bootstrap/static-files.js.map +1 -1
- package/dist/src/services/build-app-prompt.d.ts +19 -0
- package/dist/src/services/build-app-prompt.d.ts.map +1 -1
- package/dist/src/services/build-app-prompt.js +97 -11
- package/dist/src/services/build-app-prompt.js.map +1 -1
- package/dist/src/services/call-timing.d.ts +51 -0
- package/dist/src/services/call-timing.d.ts.map +1 -0
- package/dist/src/services/call-timing.js +91 -0
- package/dist/src/services/call-timing.js.map +1 -0
- package/dist/src/services/capability-invoke.d.ts +2 -0
- package/dist/src/services/capability-invoke.d.ts.map +1 -1
- package/dist/src/services/capability-invoke.js +10 -0
- package/dist/src/services/capability-invoke.js.map +1 -1
- package/dist/src/services/config-schema.d.ts.map +1 -1
- package/dist/src/services/config-schema.js +6 -0
- package/dist/src/services/config-schema.js.map +1 -1
- package/dist/src/services/draft-token.d.ts +22 -2
- package/dist/src/services/draft-token.d.ts.map +1 -1
- package/dist/src/services/draft-token.js +52 -3
- package/dist/src/services/draft-token.js.map +1 -1
- package/dist/src/services/exchange-market.d.ts +41 -8
- package/dist/src/services/exchange-market.d.ts.map +1 -1
- package/dist/src/services/exchange-market.js +24 -2
- package/dist/src/services/exchange-market.js.map +1 -1
- package/dist/src/services/exchange-odps.d.ts +58 -0
- package/dist/src/services/exchange-odps.d.ts.map +1 -0
- package/dist/src/services/exchange-odps.js +400 -0
- package/dist/src/services/exchange-odps.js.map +1 -0
- package/dist/src/services/exchange-projection.d.ts +61 -0
- package/dist/src/services/exchange-projection.d.ts.map +1 -0
- package/dist/src/services/exchange-projection.js +504 -0
- package/dist/src/services/exchange-projection.js.map +1 -0
- package/dist/src/services/exchange-proposals.d.ts.map +1 -1
- package/dist/src/services/exchange-proposals.js +2 -0
- package/dist/src/services/exchange-proposals.js.map +1 -1
- package/dist/src/services/extension-files.d.ts +64 -0
- package/dist/src/services/extension-files.d.ts.map +1 -0
- package/dist/src/services/extension-files.js +88 -0
- package/dist/src/services/extension-files.js.map +1 -0
- package/dist/src/services/extension-runtime.d.ts +33 -0
- package/dist/src/services/extension-runtime.d.ts.map +1 -1
- package/dist/src/services/extension-runtime.js +52 -0
- package/dist/src/services/extension-runtime.js.map +1 -1
- package/dist/src/services/file-refs.d.ts +105 -0
- package/dist/src/services/file-refs.d.ts.map +1 -0
- package/dist/src/services/file-refs.js +106 -0
- package/dist/src/services/file-refs.js.map +1 -0
- package/dist/src/services/metered-entitlements.d.ts +7 -0
- package/dist/src/services/metered-entitlements.d.ts.map +1 -1
- package/dist/src/services/metered-entitlements.js +4 -0
- package/dist/src/services/metered-entitlements.js.map +1 -1
- package/dist/src/services/owner-memory.d.ts +14 -1
- package/dist/src/services/owner-memory.d.ts.map +1 -1
- package/dist/src/services/owner-memory.js +8 -14
- package/dist/src/services/owner-memory.js.map +1 -1
- package/dist/src/services/task-files.d.ts +51 -0
- package/dist/src/services/task-files.d.ts.map +1 -0
- package/dist/src/services/task-files.js +58 -0
- package/dist/src/services/task-files.js.map +1 -0
- package/dist/src/services/upload-token.d.ts +29 -0
- package/dist/src/services/upload-token.d.ts.map +1 -1
- package/dist/src/services/upload-token.js +37 -0
- package/dist/src/services/upload-token.js.map +1 -1
- package/dist/src/services/upload-zip.d.ts +2 -0
- package/dist/src/services/upload-zip.d.ts.map +1 -1
- package/dist/src/services/upload-zip.js +5 -1
- package/dist/src/services/upload-zip.js.map +1 -1
- package/dist/src/services/workspace-meta.d.ts +15 -0
- package/dist/src/services/workspace-meta.d.ts.map +1 -1
- package/dist/src/services/workspace-meta.js +17 -0
- package/dist/src/services/workspace-meta.js.map +1 -1
- package/dist/src/services/workspace-provision.d.ts +3 -0
- package/dist/src/services/workspace-provision.d.ts.map +1 -1
- package/dist/src/services/workspace-provision.js +5 -3
- package/dist/src/services/workspace-provision.js.map +1 -1
- package/dist/src/storage/providers/postgres-kysely/methods/app-grants.d.ts +1 -0
- package/dist/src/storage/providers/postgres-kysely/methods/app-grants.d.ts.map +1 -1
- package/dist/src/storage/providers/postgres-kysely/methods/app-grants.js +10 -0
- package/dist/src/storage/providers/postgres-kysely/methods/app-grants.js.map +1 -1
- package/dist/src/storage/providers/postgres-kysely/methods/memory.d.ts +2 -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 +12 -1
- package/dist/src/storage/providers/postgres-kysely/methods/memory.js.map +1 -1
- package/dist/src/storage/providers/postgres-kysely/methods/organisms.d.ts.map +1 -1
- package/dist/src/storage/providers/postgres-kysely/methods/organisms.js +5 -1
- package/dist/src/storage/providers/postgres-kysely/methods/organisms.js.map +1 -1
- package/dist/src/storage/providers/postgres-kysely/migrations/0012_unique_live_app_grant.sql +29 -0
- package/dist/src/storage/providers/sqlite/methods/apps.d.ts +3 -0
- package/dist/src/storage/providers/sqlite/methods/apps.d.ts.map +1 -1
- package/dist/src/storage/providers/sqlite/methods/apps.js +7 -0
- package/dist/src/storage/providers/sqlite/methods/apps.js.map +1 -1
- package/dist/src/storage/providers/sqlite/methods/governance.d.ts +1 -0
- package/dist/src/storage/providers/sqlite/methods/governance.d.ts.map +1 -1
- package/dist/src/storage/providers/sqlite/methods/governance.js +4 -1
- package/dist/src/storage/providers/sqlite/methods/governance.js.map +1 -1
- package/dist/src/storage/providers/sqlite/methods/owner.d.ts +5 -0
- package/dist/src/storage/providers/sqlite/methods/owner.d.ts.map +1 -1
- package/dist/src/storage/providers/sqlite/methods/owner.js +8 -0
- package/dist/src/storage/providers/sqlite/methods/owner.js.map +1 -1
- package/dist/src/storage/providers/sqlite/schema.d.ts +3 -0
- package/dist/src/storage/providers/sqlite/schema.d.ts.map +1 -1
- package/dist/src/storage/providers/sqlite/schema.js +20 -0
- package/dist/src/storage/providers/sqlite/schema.js.map +1 -1
- package/dist/src/storage/repositories/app-grant.repository.d.ts +9 -1
- package/dist/src/storage/repositories/app-grant.repository.d.ts.map +1 -1
- package/dist/src/storage/repositories/memory.repository.d.ts +14 -0
- package/dist/src/storage/repositories/memory.repository.d.ts.map +1 -1
- package/dist/src/storage/repositories-impl/memory-repository.d.ts +8 -1
- package/dist/src/storage/repositories-impl/memory-repository.d.ts.map +1 -1
- package/dist/src/storage/repositories-impl/memory-repository.js +15 -4
- package/dist/src/storage/repositories-impl/memory-repository.js.map +1 -1
- package/dist/src/storage/types/agents-messaging.d.ts +19 -0
- package/dist/src/storage/types/agents-messaging.d.ts.map +1 -1
- package/dist/src/storage/types/agents-messaging.js.map +1 -1
- package/dist/src/storage/types/organisms-federation.d.ts +29 -0
- package/dist/src/storage/types/organisms-federation.d.ts.map +1 -1
- package/dist/src/utils/app-badge.d.ts.map +1 -1
- package/dist/src/utils/app-badge.js +7 -3
- package/dist/src/utils/app-badge.js.map +1 -1
- package/dist/static/app-catalog/_template.html +6 -5
- package/dist/static/app-catalog/js/cortex.js +3 -1
- package/dist/static/app-catalog/js/detail.js +411 -36
- package/dist/static/app-catalog/js/i18n-data.js +279 -3
- package/dist/static/app-catalog/js/main.js +28 -37
- package/dist/static/app-catalog/js/monetize.js +204 -16
- package/dist/static/app-catalog/js/odps.js +489 -0
- package/dist/static/app-catalog/js/render.js +3 -0
- package/dist/static/app-catalog/js/workcopy.js +198 -0
- package/dist/static/app-catalog/styles/app-catalog.css +60 -0
- package/dist/static/app-catalog.html +1450 -137
- package/dist/static/sdk-libs/agents/index.js +45 -7
- package/dist/static/sdk-libs/auth/cluster.js +97 -0
- package/dist/static/sdk-libs/auth/index.js +25 -1
- package/dist/static/sdk-libs/auth/locale.js +151 -0
- package/dist/static/sdk-libs/auth/modal.js +11 -2
- package/dist/static/sdk-libs/auth/palette.js +172 -0
- package/dist/static/sdk-libs/auth/pill.js +37 -6
- package/dist/static/sdk-libs/auth/theme.js +61 -20
- package/dist/static/sdk-libs/data/index.js +70 -8
- package/dist/static/sdk-libs/dist/aimeat-agents.js +41 -8
- package/dist/static/sdk-libs/dist/aimeat-auth.js +422 -21
- package/dist/static/sdk-libs/dist/aimeat-data.js +50 -8
- package/dist/static/sdk-libs/dist/aimeat-live.js +54 -2
- package/dist/static/sdk-libs/dist/aimeat-markdown.js +32 -1
- package/dist/static/sdk-libs/live/index.js +71 -4
- package/dist/static/sdk-libs/markdown/index.js +49 -1
- package/package.json +6 -2
|
@@ -5,6 +5,14 @@
|
|
|
5
5
|
* from scratch. Consumed by ../app-templates.ts which assembles the TEMPLATES registry.
|
|
6
6
|
* @structure SHELL_PURE_CLIENT · SHELL_CORTEX · SHELL_EXTENSION
|
|
7
7
|
* @version-history
|
|
8
|
+
* v1.3.0 — 2026-07-25 — Theme system v2: the head snippet restores the user's PALETTE
|
|
9
|
+
* (data-palette / 'aimeat-palette') next to the light/dark mode, so a generated app opens in
|
|
10
|
+
* the chosen look with no flash and no app code.
|
|
11
|
+
* v1.2.0 — 2026-07-25 — Themed by construction: all three shells link /lib/aimeat-theme.css and
|
|
12
|
+
* restore the user's light/dark choice in <head> (they used to hardcode data-theme="dark" and
|
|
13
|
+
* never load the theme, so an app opened in daisyUI indigo and ignored the AIMEAT pill). T2
|
|
14
|
+
* also loads aimeat-ui-motion and shows the two fixes that most change how a data app reads:
|
|
15
|
+
* statTiles for the numbers, skeleton instead of a spinner. Cards get a visible edge.
|
|
8
16
|
* v1.1.0 — 2026-07-19 — Mobile-safe by construction: viewport meta gains viewport-fit=cover +
|
|
9
17
|
* interactive-widget=resizes-content (keyboard resizes the layout), and body gets overflow-x-clip
|
|
10
18
|
* (kills the horizontal-overflow / shrink-to-fit class of bug). The login pill is compact-by-
|
|
@@ -22,15 +30,32 @@ version: 1.0.0
|
|
|
22
30
|
description: {{one-line description — REQUIRED for publishing}}
|
|
23
31
|
entry: index.html
|
|
24
32
|
-->
|
|
25
|
-
<html lang="en" data-theme="
|
|
33
|
+
<html lang="en" data-theme="light">
|
|
26
34
|
<head>
|
|
27
35
|
<meta charset="UTF-8" />
|
|
28
36
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover, interactive-widget=resizes-content" />
|
|
37
|
+
<!-- Bilingual? Declare it and the login pill renders the language button. Delete this line if not. -->
|
|
38
|
+
<meta name="aimeat-locales" content="en fi" />
|
|
29
39
|
<title>{{App Title}}</title>
|
|
30
40
|
<!-- Self-hosted Tailwind v4 + daisyUI 5 + theme bridge (served by the node, not a CDN) -->
|
|
31
41
|
<link href="/lib/daisyui@5.css" rel="stylesheet" type="text/css" />
|
|
42
|
+
<link href="/lib/aimeat-theme.css" rel="stylesheet" type="text/css" />
|
|
32
43
|
<link href="/lib/aimeat-daisyui-bridge.css" rel="stylesheet" type="text/css" />
|
|
33
44
|
<script src="/lib/tailwindcss@4.js"></script>
|
|
45
|
+
<!-- Follow the user's AIMEAT choices — light/dark MODE and PALETTE — in <head> so there is
|
|
46
|
+
no flash of the wrong look. aimeat-auth keeps both live after load; this covers first paint. -->
|
|
47
|
+
<script>
|
|
48
|
+
(function () {
|
|
49
|
+
function mode(t) { document.documentElement.setAttribute('data-theme', t === 'dark' ? 'dark' : 'light'); }
|
|
50
|
+
function pal(p) { if (p && p !== 'aimeat') document.documentElement.setAttribute('data-palette', p); else document.documentElement.removeAttribute('data-palette'); }
|
|
51
|
+
mode(localStorage.getItem('aimeat-theme') || (matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light'));
|
|
52
|
+
pal(localStorage.getItem('aimeat-palette'));
|
|
53
|
+
addEventListener('storage', function (e) {
|
|
54
|
+
if (e.key === 'aimeat-theme' && e.newValue) mode(e.newValue);
|
|
55
|
+
if (e.key === 'aimeat-palette' && e.newValue) pal(e.newValue);
|
|
56
|
+
});
|
|
57
|
+
})();
|
|
58
|
+
</script>
|
|
34
59
|
</head>
|
|
35
60
|
<body class="bg-base-100 text-base-content min-h-screen flex flex-col overflow-x-clip">
|
|
36
61
|
<nav class="navbar bg-base-200 px-4 shadow-sm sticky top-0 z-50">
|
|
@@ -71,6 +96,9 @@ entry: index.html
|
|
|
71
96
|
onLogin: function () { tryBoot(); },
|
|
72
97
|
onLogout: function () { booted = false; setStatus('Log in to continue.', 'alert-warning'); }
|
|
73
98
|
});
|
|
99
|
+
// The language button lives in the pill (from the aimeat-locales meta above). React to it.
|
|
100
|
+
var lang = AIMEAT.auth.getLang();
|
|
101
|
+
window.addEventListener('aimeat-lang-change', function (e) { lang = e.detail.lang; /* {{RE-RENDER}} */ });
|
|
74
102
|
// App origin: the silent/grant login resolves async and may not call onLogin — poll getSession.
|
|
75
103
|
var _iv = setInterval(function () { tryBoot(); if (booted) clearInterval(_iv); }, 300);
|
|
76
104
|
tryBoot();
|
|
@@ -87,14 +115,31 @@ version: 1.0.0
|
|
|
87
115
|
description: {{one-line description — REQUIRED for publishing}}
|
|
88
116
|
entry: index.html
|
|
89
117
|
-->
|
|
90
|
-
<html lang="en" data-theme="
|
|
118
|
+
<html lang="en" data-theme="light">
|
|
91
119
|
<head>
|
|
92
120
|
<meta charset="UTF-8" />
|
|
93
121
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover, interactive-widget=resizes-content" />
|
|
122
|
+
<!-- Bilingual? Declare it and the login pill renders the language button. Delete this line if not. -->
|
|
123
|
+
<meta name="aimeat-locales" content="en fi" />
|
|
94
124
|
<title>{{App Title}}</title>
|
|
95
125
|
<link href="/lib/daisyui@5.css" rel="stylesheet" type="text/css" />
|
|
126
|
+
<link href="/lib/aimeat-theme.css" rel="stylesheet" type="text/css" />
|
|
96
127
|
<link href="/lib/aimeat-daisyui-bridge.css" rel="stylesheet" type="text/css" />
|
|
97
128
|
<script src="/lib/tailwindcss@4.js"></script>
|
|
129
|
+
<!-- Follow the user's AIMEAT choices — light/dark MODE and PALETTE — in <head> so there is
|
|
130
|
+
no flash of the wrong look. aimeat-auth keeps both live after load; this covers first paint. -->
|
|
131
|
+
<script>
|
|
132
|
+
(function () {
|
|
133
|
+
function mode(t) { document.documentElement.setAttribute('data-theme', t === 'dark' ? 'dark' : 'light'); }
|
|
134
|
+
function pal(p) { if (p && p !== 'aimeat') document.documentElement.setAttribute('data-palette', p); else document.documentElement.removeAttribute('data-palette'); }
|
|
135
|
+
mode(localStorage.getItem('aimeat-theme') || (matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light'));
|
|
136
|
+
pal(localStorage.getItem('aimeat-palette'));
|
|
137
|
+
addEventListener('storage', function (e) {
|
|
138
|
+
if (e.key === 'aimeat-theme' && e.newValue) mode(e.newValue);
|
|
139
|
+
if (e.key === 'aimeat-palette' && e.newValue) pal(e.newValue);
|
|
140
|
+
});
|
|
141
|
+
})();
|
|
142
|
+
</script>
|
|
98
143
|
</head>
|
|
99
144
|
<body class="bg-base-100 text-base-content min-h-screen flex flex-col overflow-x-clip">
|
|
100
145
|
<nav class="navbar bg-base-200 px-4 shadow-sm sticky top-0 z-50">
|
|
@@ -103,7 +148,14 @@ entry: index.html
|
|
|
103
148
|
</nav>
|
|
104
149
|
<main id="app" class="flex-1 w-full max-w-4xl mx-auto p-4 flex flex-col gap-4">
|
|
105
150
|
<div id="status" class="alert">Loading…</div>
|
|
106
|
-
|
|
151
|
+
<!-- The numbers that matter, above the detail. Fill via AIMEAT.ui.motion.statTiles(). -->
|
|
152
|
+
<div id="kpis"></div>
|
|
153
|
+
<!-- Cards get an edge: the step alone reads as a lighter patch, the hairline reads as a card. -->
|
|
154
|
+
<section class="card bg-base-200 card-border border-base-300">
|
|
155
|
+
<div class="card-body gap-3">
|
|
156
|
+
<div id="view"></div>
|
|
157
|
+
</div>
|
|
158
|
+
</section>
|
|
107
159
|
</main>
|
|
108
160
|
|
|
109
161
|
<script src="/v1/libs/aimeat-auth.js"></script>
|
|
@@ -111,6 +163,10 @@ entry: index.html
|
|
|
111
163
|
<!-- Bundled cortex UI libraries (node-level — available on every AIMEAT node). Load only what you use. -->
|
|
112
164
|
<script src="/v1/cortex/aimeat-ui-viewers/libs/aimeat-ui-viewers.js"></script>
|
|
113
165
|
<script src="/v1/cortex/aimeat-ui-forms/libs/aimeat-ui-forms.js"></script>
|
|
166
|
+
<!-- Motion: KPI tiles with count-up numbers, skeletons, staggered list reveals. A data app that
|
|
167
|
+
renders a metric as plain body text and a spinner while loading looks unfinished; these are
|
|
168
|
+
the two cheapest fixes there are. -->
|
|
169
|
+
<script src="/v1/cortex/aimeat-ui-motion/libs/aimeat-ui-motion.js"></script>
|
|
114
170
|
<!-- Also available: aimeat-ui-layout, aimeat-ui-nav, aimeat-ui-dialogs, aimeat-charts, aimeat-canvas -->
|
|
115
171
|
<script>
|
|
116
172
|
var session = null;
|
|
@@ -118,8 +174,16 @@ entry: index.html
|
|
|
118
174
|
function boot(s) {
|
|
119
175
|
session = s;
|
|
120
176
|
setStatus('Ready.', 'alert-success');
|
|
121
|
-
|
|
122
|
-
|
|
177
|
+
var view = document.getElementById('view');
|
|
178
|
+
|
|
179
|
+
// Shimmer in the SHAPE of the coming content — reads as fast, where a spinner reads as stuck.
|
|
180
|
+
AIMEAT.ui.motion.skeleton(view, { lines: 4 });
|
|
181
|
+
|
|
182
|
+
// Example — the numbers that matter get tile treatment, not a sentence:
|
|
183
|
+
// AIMEAT.ui.motion.statTiles(document.getElementById('kpis'), [
|
|
184
|
+
// { label: 'Entries', value: rows.length }, { label: 'This week', value: 12, trend: { value: 3, dir: 'up' } }]);
|
|
185
|
+
// Example — structured data with the viewers cortex (replace with your data):
|
|
186
|
+
// AIMEAT.ui.viewers.DataTable({ target: view,
|
|
123
187
|
// columns: [{key:'name',label:'Name'}], rows: [{name:'…'}], sortable:true, filterable:true });
|
|
124
188
|
// Forms via AIMEAT.ui.forms.FormGroup({ target, fields:[…], onSubmit }).
|
|
125
189
|
// {{BUILD YOUR VIEWS — load data from AIMEAT.data, render with the cortex libs}}
|
|
@@ -143,14 +207,31 @@ version: 1.0.0
|
|
|
143
207
|
description: {{one-line description — REQUIRED for publishing}}
|
|
144
208
|
entry: index.html
|
|
145
209
|
-->
|
|
146
|
-
<html lang="en" data-theme="
|
|
210
|
+
<html lang="en" data-theme="light">
|
|
147
211
|
<head>
|
|
148
212
|
<meta charset="UTF-8" />
|
|
149
213
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover, interactive-widget=resizes-content" />
|
|
214
|
+
<!-- Bilingual? Declare it and the login pill renders the language button. Delete this line if not. -->
|
|
215
|
+
<meta name="aimeat-locales" content="en fi" />
|
|
150
216
|
<title>{{App Title}}</title>
|
|
151
217
|
<link href="/lib/daisyui@5.css" rel="stylesheet" type="text/css" />
|
|
218
|
+
<link href="/lib/aimeat-theme.css" rel="stylesheet" type="text/css" />
|
|
152
219
|
<link href="/lib/aimeat-daisyui-bridge.css" rel="stylesheet" type="text/css" />
|
|
153
220
|
<script src="/lib/tailwindcss@4.js"></script>
|
|
221
|
+
<!-- Follow the user's AIMEAT choices — light/dark MODE and PALETTE — in <head> so there is
|
|
222
|
+
no flash of the wrong look. aimeat-auth keeps both live after load; this covers first paint. -->
|
|
223
|
+
<script>
|
|
224
|
+
(function () {
|
|
225
|
+
function mode(t) { document.documentElement.setAttribute('data-theme', t === 'dark' ? 'dark' : 'light'); }
|
|
226
|
+
function pal(p) { if (p && p !== 'aimeat') document.documentElement.setAttribute('data-palette', p); else document.documentElement.removeAttribute('data-palette'); }
|
|
227
|
+
mode(localStorage.getItem('aimeat-theme') || (matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light'));
|
|
228
|
+
pal(localStorage.getItem('aimeat-palette'));
|
|
229
|
+
addEventListener('storage', function (e) {
|
|
230
|
+
if (e.key === 'aimeat-theme' && e.newValue) mode(e.newValue);
|
|
231
|
+
if (e.key === 'aimeat-palette' && e.newValue) pal(e.newValue);
|
|
232
|
+
});
|
|
233
|
+
})();
|
|
234
|
+
</script>
|
|
154
235
|
</head>
|
|
155
236
|
<body class="bg-base-100 text-base-content min-h-screen flex flex-col overflow-x-clip">
|
|
156
237
|
<nav class="navbar bg-base-200 px-4 shadow-sm sticky top-0 z-50">
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shells.js","sourceRoot":"","sources":["../../../../src/data/app-templates/shells.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"shells.js","sourceRoot":"","sources":["../../../../src/data/app-templates/shells.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,wEAAwE;AACxE,6FAA6F;AAC7F,+FAA+F;AAC/F,+EAA+E;AAE/E,MAAM,CAAC,MAAM,iBAAiB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAiFzB,CAAC;AAET,wEAAwE;AACxE,yFAAyF;AACzF,0DAA0D;AAE1D,MAAM,CAAC,MAAM,YAAY,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAuFpB,CAAC;AAET,wEAAwE;AACxE,8FAA8F;AAC9F,8FAA8F;AAC9F,+FAA+F;AAE/F,MAAM,CAAC,MAAM,eAAe,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAoEvB,CAAC"}
|
|
@@ -44,8 +44,8 @@ const TEMPLATES = [
|
|
|
44
44
|
kind: 'app-shell',
|
|
45
45
|
tier: 'T2',
|
|
46
46
|
title: 'Data app — built-in tables, forms & charts',
|
|
47
|
-
description: 'Standard app plus the bundled cortex UI libraries (DataTable, forms,
|
|
48
|
-
libs: ['aimeat-auth', 'aimeat-data', 'aimeat-ui-viewers', 'aimeat-ui-forms'],
|
|
47
|
+
description: 'Standard app plus the bundled cortex UI libraries (DataTable, forms, KPI tiles, skeletons) for richer structured UIs without hand-rolling components.',
|
|
48
|
+
libs: ['aimeat-auth', 'aimeat-data', 'aimeat-ui-viewers', 'aimeat-ui-forms', 'aimeat-ui-motion'],
|
|
49
49
|
content: SHELL_CORTEX,
|
|
50
50
|
},
|
|
51
51
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-templates.js","sourceRoot":"","sources":["../../../src/data/app-templates.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC7F,OAAO,EACL,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,aAAa,EACb,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,WAAW,EACX,gBAAgB,EAChB,aAAa,EACb,oBAAoB,EACpB,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAqB9G,MAAM,SAAS,GAAkB;IAC/B;QACE,EAAE,EAAE,mBAAmB;QACvB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,IAAI;QACV,KAAK,EAAE,wCAAwC;QAC/C,WAAW,EAAE,4JAA4J;QACzK,IAAI,EAAE,CAAC,aAAa,EAAE,aAAa,CAAC;QACpC,OAAO,EAAE,iBAAiB;KAC3B;IACD;QACE,EAAE,EAAE,cAAc;QAClB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,IAAI;QACV,KAAK,EAAE,4CAA4C;QACnD,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"app-templates.js","sourceRoot":"","sources":["../../../src/data/app-templates.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC7F,OAAO,EACL,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,aAAa,EACb,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,WAAW,EACX,gBAAgB,EAChB,aAAa,EACb,oBAAoB,EACpB,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAqB9G,MAAM,SAAS,GAAkB;IAC/B;QACE,EAAE,EAAE,mBAAmB;QACvB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,IAAI;QACV,KAAK,EAAE,wCAAwC;QAC/C,WAAW,EAAE,4JAA4J;QACzK,IAAI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AAC,IAAI,CAAC,GAAG,MAAM,CAAC;IAC3G,MAAM,IAAI,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;IAChC,IAAI,IAAI,CAAC,MAAM;QAAE,CAAC,IAAI,uDAAuD,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC;IACnH,OAAO,CAAC,CAAC;AACX,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cortex.d.ts","sourceRoot":"","sources":["../../../../src/data/library-packs/cortex.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,eAAO,MAAM,YAAY,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"cortex.d.ts","sourceRoot":"","sources":["../../../../src/data/library-packs/cortex.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,eAAO,MAAM,YAAY,EAAE,WAAW,EAwbrC,CAAC"}
|
|
@@ -151,7 +151,7 @@ export const CORTEX_PACKS = [
|
|
|
151
151
|
'<script src="{{BASE_URL}}/v1/cortex/aimeat-charts/libs/aimeat-charts.js"></script>',
|
|
152
152
|
],
|
|
153
153
|
requires: ['chartjs'],
|
|
154
|
-
version: '1.
|
|
154
|
+
version: '1.1.2',
|
|
155
155
|
license: 'MIT',
|
|
156
156
|
apiSurface: 'AIMEAT.charts',
|
|
157
157
|
aiDoc: [
|
|
@@ -162,7 +162,10 @@ export const CORTEX_PACKS = [
|
|
|
162
162
|
'AIMEAT.charts.ChartPanel({elementId, chartKey, nodeUrl, token?}) — reads a chart:* memory key and renders it.',
|
|
163
163
|
'AIMEAT.charts.TYPES — the supported type list.',
|
|
164
164
|
'Chart data stored in memory uses the schema key pattern "chart:*" (e.g. "chart:sales-2024").',
|
|
165
|
-
'Palette:
|
|
165
|
+
'Palette: taken from the theme tokens (--color-primary/-secondary/-accent/-info/-success/-warning/-error)',
|
|
166
|
+
' and repainted when the reader changes palette or light/dark. Pass backgroundColor only when a',
|
|
167
|
+
' series must keep one specific colour; otherwise leave colours out and let the theme decide.',
|
|
168
|
+
'AIMEAT.charts.palette(host?) — the colours a chart would draw with right now.',
|
|
166
169
|
'For direct Chart.js access (custom plugins, mixed charts) use the chartjs pack instead — window.Chart is loaded by the same file.',
|
|
167
170
|
].join('\n'),
|
|
168
171
|
changelog: [],
|
|
@@ -200,6 +203,103 @@ export const CORTEX_PACKS = [
|
|
|
200
203
|
modelTier: 'needs-doc',
|
|
201
204
|
promptLine: '- aimeat-canvas — drawing / freeform canvas (`AIMEAT.canvas`)',
|
|
202
205
|
},
|
|
206
|
+
{
|
|
207
|
+
id: 'aimeat-surface',
|
|
208
|
+
kind: 'cortex',
|
|
209
|
+
category: 'ui',
|
|
210
|
+
title: 'Living surface (panel-spec engine)',
|
|
211
|
+
description: 'Turn a plain-language request into ONE panel spec, resolve its data source into rows, and render them through the node\'s UI packs (stats / table / chart / timeline / brief / options). Data sources are plugins — memory and inline built in, the app registers the rest, and the registered sources assemble the composer\'s prompt. Renders the panel BODY only; chrome and persistence belong to the host.',
|
|
212
|
+
url: '/v1/cortex/aimeat-surface/libs/aimeat-surface.js',
|
|
213
|
+
include: ['<script src="{{BASE_URL}}/v1/cortex/aimeat-surface/libs/aimeat-surface.js"></script>'],
|
|
214
|
+
requires: ['aimeat-ui-viewers', 'aimeat-ui-motion', 'aimeat-charts'],
|
|
215
|
+
version: '1.1.0',
|
|
216
|
+
license: 'MIT',
|
|
217
|
+
apiSurface: 'AIMEAT.surface',
|
|
218
|
+
aiDoc: [
|
|
219
|
+
'Use this INSTEAD of hand-building a dashboard: the app composes a PANEL SPEC, resolves it',
|
|
220
|
+
'to rows, and renders. The same spec can be a card in one product and a frame on a canvas in',
|
|
221
|
+
'another, because the engine renders the BODY only.',
|
|
222
|
+
"const surface = AIMEAT.surface.create({ appId: APP_ID, locale: 'fi' });",
|
|
223
|
+
'SPEC: { id, title, kind, intent, source, view, needsYou, updatedAt, author }',
|
|
224
|
+
' kind: stats | table | chart | timeline | brief | options',
|
|
225
|
+
' view: table {columns:[{key,label}]} (omit → auto) · chart {chartType,labelKey,valueKeys}',
|
|
226
|
+
' stats {tiles:[{label,key,agg:count|sum|avg|latest,format:usd|eur,sparkKey}]}',
|
|
227
|
+
' timeline {tsKey,textKey} · brief {markdown} · options {items:[{title,body}],chosen}',
|
|
228
|
+
'SOURCES ARE PLUGINS. Built in: memory ({type,prefix} owner-scope, also picks up what the',
|
|
229
|
+
"owner's AGENTS wrote) and inline ({type,rows}). Register the rest:",
|
|
230
|
+
" surface.registerSource('companies', { hint, fields, resolve(src,ctx), normalize(src), claims(src) })",
|
|
231
|
+
'A source you do not register is one the composer is never offered — the registered sources',
|
|
232
|
+
'assemble its prompt. `claims` lets a source claim a malformed source object by SHAPE, because',
|
|
233
|
+
'models rename and drop the type field.',
|
|
234
|
+
'LOOP: compose(text,{prefixes}) → resolve(spec,{session}) → renderBody(box,spec,rows,{onPick})',
|
|
235
|
+
' reshape(spec, "make it a chart by month") · writeBrief(spec, rows) · refine(spec, rows)',
|
|
236
|
+
'RUN refine() AFTER the rows arrive whenever the composer guessed the shape blind (memory',
|
|
237
|
+
'sources above all): it re-picks kind + view against the REAL field names and keeps the source',
|
|
238
|
+
'pinned. That is the difference between a chart of the right column and a table of plumbing.',
|
|
239
|
+
'writeBrief() runs after resolve() on purpose, so a brief only ever sees fetched rows.',
|
|
240
|
+
'The engine persists NOTHING — store specs in an app memory key, a workspace record or a board.',
|
|
241
|
+
'Load aimeat-ui-viewers + aimeat-ui-motion + aimeat-charts (+ chartjs@4) for full fidelity;',
|
|
242
|
+
'every pack call degrades gracefully to plain DOM if one is missing.',
|
|
243
|
+
].join('\n'),
|
|
244
|
+
changelog: [
|
|
245
|
+
{ version: '1.0.0', date: '2026-07-25', summary: 'Initial release (TARGET-051). Engine lifted out of the TILA app v0.2.6 behaviour-for-behaviour, including every graceful fallback. New here: pluggable data sources (TILA had its PRH company source hardwired into the engine and into the composer prompt), injected locale/strings/appId instead of closed-over app state, and an onPick callback so a host no longer wires the options button by hand.' },
|
|
246
|
+
],
|
|
247
|
+
tierHint: 'T2',
|
|
248
|
+
interviewTriggers: ['surface', 'dashboard', 'panel', 'living surface', 'ask my data', 'pinta', 'näkymä', 'koostenäkymä'],
|
|
249
|
+
sizeEstimate: '~18KB',
|
|
250
|
+
status: 'preview',
|
|
251
|
+
modelTier: 'needs-doc',
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
id: 'aimeat-viewport',
|
|
255
|
+
kind: 'cortex',
|
|
256
|
+
category: 'canvas',
|
|
257
|
+
title: 'Viewport / camera primitive',
|
|
258
|
+
description: 'The camera for a movable surface of your OWN content: pan, zoom-at-cursor, pinch, drag delegation, animated fit/centerOn, and a navigate/interact capture-overlay mode that keeps panning working over iframes. Owns the camera and nothing about content — a hit-test delegate asks the app what is draggable.',
|
|
259
|
+
url: '/v1/cortex/aimeat-viewport/libs/aimeat-viewport.js',
|
|
260
|
+
include: ['<script src="{{BASE_URL}}/v1/cortex/aimeat-viewport/libs/aimeat-viewport.js"></script>'],
|
|
261
|
+
requires: [],
|
|
262
|
+
version: '1.0.4',
|
|
263
|
+
license: 'MIT',
|
|
264
|
+
apiSurface: 'AIMEAT.viewport',
|
|
265
|
+
apiCaveat: 'The host must have a SIZE. A full-screen board is `position: fixed; inset: 0` on the host itself — the viewport only promotes a STATIC host to relative, so your positioning is never overwritten.',
|
|
266
|
+
aiDoc: [
|
|
267
|
+
'Reach for this ONLY for a movable surface of the app\'s OWN content (arbitrary children, the',
|
|
268
|
+
'app\'s own layout). An auto-laid-out graph to READ → aimeat-dag. A user-drawn node-and-wire',
|
|
269
|
+
'diagram → aimeat-flow. Freehand drawing → aimeat-canvas. A static text-defined diagram →',
|
|
270
|
+
'mermaid. Picking this pack for those means reimplementing what they already do.',
|
|
271
|
+
'const vp = AIMEAT.viewport.create(elOrSelector, { classPrefix?, minZoom?, maxZoom?, initial?,',
|
|
272
|
+
' fitPadding?, fitMaxZoom?, centerMinZoom?, dragThreshold?, contentBBox?, onClaimPointer?,',
|
|
273
|
+
' onTap?, onCameraChange?, captureSelector?, mode? })',
|
|
274
|
+
'vp.world — append content here and position it in WORLD coordinates.',
|
|
275
|
+
'vp.cam() → {x,y,k} (copy) · vp.scale() → k · vp.setCamera({x,y,k}, animated)',
|
|
276
|
+
'vp.fit(animated) (asks contentBBox) · vp.centerOn({x,y,w,h}, animated)',
|
|
277
|
+
'vp.clientToWorld(cx,cy) · vp.worldToClient(wx,wy) · vp.destroy()',
|
|
278
|
+
'THE HOST MUST HAVE A SIZE (height, or position:fixed;inset:0). A zero-height host silently',
|
|
279
|
+
'swallows every pointer event — the most common mistake with canvas packs.',
|
|
280
|
+
'onClaimPointer(ev) is the whole content contract: return a drag handle { onMove(worldDx,',
|
|
281
|
+
'worldDy, ev, cam), onEnd(moved, ev) } to drive the drag (deltas arrive already divided by the',
|
|
282
|
+
'zoom), or null to let the viewport pan. Keep your own "did it move" flag in the handle closure',
|
|
283
|
+
'when your rule differs from the viewport threshold.',
|
|
284
|
+
'NAVIGATE/INTERACT is only needed when children swallow pointer events (iframes). Pass',
|
|
285
|
+
'captureSelector: in navigate mode each match gets a transparent overlay so panning works over',
|
|
286
|
+
'it; setMode("interact") removes them so the child behaves normally. Space-hold = temporary',
|
|
287
|
+
'navigate, middle-mouse always pans, Escape returns to navigate. Call refreshCaptures() after',
|
|
288
|
+
'adding/removing children. Omit captureSelector and no window listeners are attached at all.',
|
|
289
|
+
'Structural CSS only (position/transform/cursor/touch-action) — the app owns size, background',
|
|
290
|
+
'and radius, so the two never fight. Persist the camera from onCameraChange to an app memory',
|
|
291
|
+
'key and pass it back as `initial` on the next mount.',
|
|
292
|
+
].join('\n'),
|
|
293
|
+
changelog: [
|
|
294
|
+
{ version: '1.0.0', date: '2026-07-25', summary: 'Initial release (TARGET-051). Extracted from aimeat-dag v1.0.1 so a second consumer does not mean a third pan/zoom implementation. Behaviour-preserving for dag; new here are classPrefix, configurable zoom bounds, the pointer-claim delegate, clientToWorld/worldToClient as public API (dead code in dag), and the navigate/interact capture overlays. aimeat-dag embeds a byte-identical copy so it keeps shipping as one script tag — loading both packs is safe (idempotent namespace guard).' },
|
|
295
|
+
{ version: '1.0.1', date: '2026-07-25', summary: 'Fix: the injected CSS no longer forces position:relative on the host. Same-specificity, it silently beat a consumer’s own position:fixed, and a full-screen board (position:fixed; inset:0) collapsed to ZERO height — fit() then clamped to minZoom and every pointer event landed on nothing. create() now promotes the host only when its computed position is static, so an existing fixed/absolute/sticky host is left alone. Found by the first real consumer of the two-mode model.' },
|
|
296
|
+
],
|
|
297
|
+
tierHint: 'T2',
|
|
298
|
+
interviewTriggers: ['canvas', 'pan', 'zoom', 'viewport', 'infinite canvas', 'board', 'kangas', 'lauta', 'zoomaus'],
|
|
299
|
+
sizeEstimate: '~17KB',
|
|
300
|
+
status: 'preview',
|
|
301
|
+
modelTier: 'needs-doc',
|
|
302
|
+
},
|
|
203
303
|
{
|
|
204
304
|
id: 'aimeat-flow',
|
|
205
305
|
kind: 'cortex',
|
|
@@ -252,7 +352,7 @@ export const CORTEX_PACKS = [
|
|
|
252
352
|
url: '/v1/cortex/aimeat-dag/libs/aimeat-dag.js',
|
|
253
353
|
include: ['<script src="{{BASE_URL}}/v1/cortex/aimeat-dag/libs/aimeat-dag.js"></script>'],
|
|
254
354
|
requires: [],
|
|
255
|
-
version: '1.
|
|
355
|
+
version: '1.1.4',
|
|
256
356
|
license: 'MIT',
|
|
257
357
|
apiSurface: 'AIMEAT.dag',
|
|
258
358
|
aiDoc: [
|
|
@@ -267,14 +367,17 @@ export const CORTEX_PACKS = [
|
|
|
267
367
|
'Feed a workflow blueprint straight in: GET /v1/workflows/:id/blueprint → nodes/edges (map stepId→id);',
|
|
268
368
|
'mirror run states with setNodeState while AIMEAT.workflows.watchRun ticks.',
|
|
269
369
|
'READ/INSPECT-oriented (select → inspector panel). Freeform user-drawn diagrams → aimeat-flow instead.',
|
|
370
|
+
'dag.viewport exposes the underlying aimeat-viewport camera; prefer fit()/zoomTo() over it.',
|
|
270
371
|
].join('\n'),
|
|
271
372
|
changelog: [
|
|
272
373
|
{ version: '1.0.0', date: '2026-07-16', summary: 'Initial release: layered auto-layout (longest-path + barycenter), pointer-events pan/zoom/pinch, selection, node drag with position persistence hook, live state layer, prefers-reduced-motion support.' },
|
|
273
374
|
{ version: '1.0.1', date: '2026-07-16', summary: 'Fix: setPointerCapture is now best-effort (try/catch) — synthetic PointerEvents (tests/automation) and pointers released mid-dispatch threw NotFoundError and swallowed the whole pointerdown, breaking selection.' },
|
|
375
|
+
{ version: '1.1.0', date: '2026-07-25', summary: 'Camera extracted to the aimeat-viewport pack (TARGET-051) and embedded here verbatim, so this pack still ships as ONE script tag with no requires — existing apps need no change. API-preserving and behaviour-preserving: same public surface, same ad-* class names, same gesture semantics, same 0.2–2.5 zoom clamp, same fit padding and easing. Additive: dag.viewport exposes the camera. Dead code removed (clientToWorld was defined and never called; it is now real public API on the viewport). Drift between the embedded copy and its source is blocked by check:viewport in the pre-commit gate and CI.' },
|
|
376
|
+
{ version: '1.1.1', date: '2026-07-25', summary: 'Picks up aimeat-viewport 1.0.1 (the host no longer has position:relative forced on it). No change for dag consumers, whose hosts are static and are still promoted to relative exactly as before.' },
|
|
274
377
|
],
|
|
275
378
|
tierHint: 'T2',
|
|
276
379
|
interviewTriggers: ['dag', 'graph', 'pipeline', 'workflow canvas', 'org chart', 'blueprint'],
|
|
277
|
-
sizeEstimate: '~
|
|
380
|
+
sizeEstimate: '~39KB (camera embedded)',
|
|
278
381
|
status: 'preview',
|
|
279
382
|
modelTier: 'needs-doc',
|
|
280
383
|
},
|
|
@@ -323,7 +426,7 @@ export const CORTEX_PACKS = [
|
|
|
323
426
|
url: '/v1/cortex/aimeat-i18n/libs/aimeat-i18n.js',
|
|
324
427
|
include: ['<script src="{{BASE_URL}}/v1/cortex/aimeat-i18n/libs/aimeat-i18n.js"></script>'],
|
|
325
428
|
requires: [],
|
|
326
|
-
version: '1.
|
|
429
|
+
version: '1.1.0',
|
|
327
430
|
license: 'MIT',
|
|
328
431
|
apiSurface: 'AIMEAT.i18n',
|
|
329
432
|
aiDoc: 'AIMEAT.i18n — init(dictionaries), t(key), setLocale/getLocale, locales(), available(), LanguageSwitcher component, apply() over [data-i18n] elements.',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cortex.js","sourceRoot":"","sources":["../../../../src/data/library-packs/cortex.ts"],"names":[],"mappings":"AAiBA,MAAM,CAAC,MAAM,YAAY,GAAkB;IACzC;QACE,EAAE,EAAE,mBAAmB;QACvB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,KAAK,EAAE,6BAA6B;QACpC,WAAW,EAAE,iGAAiG;QAC9G,GAAG,EAAE,wDAAwD;QAC7D,OAAO,EAAE,CAAC,4FAA4F,CAAC;QACvG,QAAQ,EAAE,EAAE;QACZ,OAAO,EAAE,OAAO;QAChB,OAAO,EAAE,KAAK;QACd,UAAU,EAAE,mBAAmB;QAC/B,KAAK,EAAE;YACL,mGAAmG;YACnG,+FAA+F;YAC/F,mNAAmN;YACnN,kGAAkG;YAClG,6HAA6H;YAC7H,mJAAmJ;SACpJ,CAAC,IAAI,CAAC,IAAI,CAAC;QACZ,SAAS,EAAE,EAAE;QACb,cAAc,EAAE,iBAAiB;QACjC,QAAQ,EAAE,IAAI;QACd,iBAAiB,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,CAAC;QAChD,YAAY,EAAE,OAAO;QACrB,MAAM,EAAE,QAAQ;QAChB,SAAS,EAAE,WAAW;QACtB,UAAU,EAAE,qFAAqF;KAClG;IACD;QACE,EAAE,EAAE,iBAAiB;QACrB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAA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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../../../../src/data/library-packs/sdk.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,eAAO,MAAM,SAAS,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../../../../src/data/library-packs/sdk.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,eAAO,MAAM,SAAS,EAAE,WAAW,EA6clC,CAAC"}
|
|
@@ -34,8 +34,10 @@ export const SDK_PACKS = [
|
|
|
34
34
|
requires: ['aimeat-auth'],
|
|
35
35
|
license: 'MIT',
|
|
36
36
|
apiSurface: 'AIMEAT.data',
|
|
37
|
-
aiDoc: 'Memory API: get, set, search, getPublic, micro-memory. PRIVATE data: AIMEAT.data.set(key, value, { visibility: "private" }). SHARED/community data: each user writes their own public key, everyone reads with AIMEAT.data.getPublic(ownerGaii, key) — the only anonymous read. Shared feeds, journals, comments are ALL built this way.',
|
|
38
|
-
changelog: [
|
|
37
|
+
aiDoc: 'Memory API: get, set, search, getPublic, list, count, micro-memory. PRIVATE data: AIMEAT.data.set(key, value, { visibility: "private" }). SHARED/community data: each user writes their own public key, everyone reads with AIMEAT.data.getPublic(ownerGaii, key) — the only anonymous read. Shared feeds, journals, comments are ALL built this way. READING WHAT AGENTS PRODUCED: agent output lives under the AGENT\'s namespace (name#owner@node), not the owner\'s, and an app-grant token gets no automatic owner-scope broadening — so an unscoped list() returns NOTHING for it and the app looks empty. Say which namespace: list({ prefix, ownerScope: true }) for the owner\'s whole set, or { agent: "<full GAII>" } for one; the same { agent, ownerScope } options work on get/getEntry/search, and each listed item carries owner_gaii to pass straight back into get(). LISTINGS: pass { meta: true } for anything you render as a table/board — the default response inlines EVERY value, so a broad prefix is megabytes per load; meta returns key + bytes + tags + updated_at and you fetch a value on demand. { count: true } (or data.count()) returns just a number — the cheap "did anything change?" probe.',
|
|
38
|
+
changelog: [
|
|
39
|
+
{ version: '1.1.0', date: '2026-07-25', summary: 'get/getEntry/list/search take { agent, ownerScope }; list takes { meta, count }; added data.count(). Additive — existing calls unchanged.' },
|
|
40
|
+
],
|
|
39
41
|
tierHint: 'T1',
|
|
40
42
|
interviewTriggers: [],
|
|
41
43
|
sizeEstimate: '~8KB',
|
|
@@ -133,6 +135,7 @@ export const SDK_PACKS = [
|
|
|
133
135
|
interviewTriggers: [],
|
|
134
136
|
sizeEstimate: '~6KB',
|
|
135
137
|
status: 'stable',
|
|
138
|
+
modelTier: 'needs-doc',
|
|
136
139
|
promptGroup: 'economy',
|
|
137
140
|
promptLine: '- aimeat-wallet.js — morsel balance + transactions (`AIMEAT.wallet`)',
|
|
138
141
|
},
|
|
@@ -153,6 +156,7 @@ export const SDK_PACKS = [
|
|
|
153
156
|
interviewTriggers: [],
|
|
154
157
|
sizeEstimate: '~8KB',
|
|
155
158
|
status: 'stable',
|
|
159
|
+
modelTier: 'needs-doc',
|
|
156
160
|
promptGroup: 'economy',
|
|
157
161
|
promptLine: '- aimeat-work.js — actions / work requests (`AIMEAT.work`)',
|
|
158
162
|
},
|
|
@@ -167,12 +171,15 @@ export const SDK_PACKS = [
|
|
|
167
171
|
requires: ['aimeat-auth'],
|
|
168
172
|
license: 'MIT',
|
|
169
173
|
apiSurface: 'AIMEAT.agents',
|
|
170
|
-
aiDoc: "Commission & watch the owner's AI agents: list, createTask/run, watch progress live over SSE, read deliverables, and the ask-the-user option-prompt loop.",
|
|
171
|
-
changelog: [
|
|
174
|
+
aiDoc: "Commission & watch the owner's AI agents: list, createTask/run, watch progress live over SSE, read deliverables, and the ask-the-user option-prompt loop. TAG WHAT YOU COMMISSION: createTask(agent, { description, scope: [{name:'kind', value:'myapp-job'}, {name:'myapp_ref', value: id}] }) — filtering done tasks on your own tag is how the app finds its results again, instead of trying to parse the agent's memory-key slug (a 32-char truncation of the topic plus a hash). Pass the same array in a schedule's task_template.scope so recurring runs carry it. The task record is the metadata table: description holds the UNTRUNCATED topic, plus title, status, timestamps and telemetry (tokens, duration); memory keys are the payload. deliverable(agent, id) resolves task.deliverableKey when set, and otherwise falls back to the `task:<id>` memory tag — that field is OPTIONAL and many task-runners never set it, so never require it in a collector filter.",
|
|
175
|
+
changelog: [
|
|
176
|
+
{ version: '1.1.0', date: '2026-07-25', summary: 'createTask() forwards scope/verification/rules/resources (previously dropped); deliverable() falls back to the task:<id> memory tag. Additive.' },
|
|
177
|
+
],
|
|
172
178
|
tierHint: 'T1',
|
|
173
179
|
interviewTriggers: ['agent'],
|
|
174
180
|
sizeEstimate: '~7KB',
|
|
175
181
|
status: 'stable',
|
|
182
|
+
modelTier: 'needs-doc',
|
|
176
183
|
promptGroup: 'economy',
|
|
177
184
|
promptLine: "- aimeat-agents.js — commission & watch the owner's AI agents (`AIMEAT.agents`)",
|
|
178
185
|
},
|
|
@@ -193,6 +200,7 @@ export const SDK_PACKS = [
|
|
|
193
200
|
interviewTriggers: ['workflow', 'pipeline', 'automation', 'mission', 'orchestrate', 'approval'],
|
|
194
201
|
sizeEstimate: '~6KB',
|
|
195
202
|
status: 'preview',
|
|
203
|
+
modelTier: 'needs-doc',
|
|
196
204
|
promptGroup: 'core',
|
|
197
205
|
promptLine: '- aimeat-workflows.js — agent workflow pipelines: save/run/watch + human-approval steps (`AIMEAT.workflows`). Requires aimeat-auth.',
|
|
198
206
|
},
|
|
@@ -213,6 +221,7 @@ export const SDK_PACKS = [
|
|
|
213
221
|
interviewTriggers: [],
|
|
214
222
|
sizeEstimate: '~6KB',
|
|
215
223
|
status: 'stable',
|
|
224
|
+
modelTier: 'needs-doc',
|
|
216
225
|
promptGroup: 'economy',
|
|
217
226
|
promptLine: '- aimeat-capabilities.js — discover & invoke shared capabilities (`AIMEAT.capabilities`)',
|
|
218
227
|
},
|
|
@@ -233,6 +242,7 @@ export const SDK_PACKS = [
|
|
|
233
242
|
interviewTriggers: ['sell', 'buy', 'shop', 'checkout', 'kauppa', 'myynti'],
|
|
234
243
|
sizeEstimate: '~7KB',
|
|
235
244
|
status: 'stable',
|
|
245
|
+
modelTier: 'needs-doc',
|
|
236
246
|
promptGroup: 'economy',
|
|
237
247
|
promptLine: '- aimeat-commerce.js — buy/sell agent offers via checkout sessions: `AIMEAT.commerce.buyOffer(agent, offerId)` (open + complete in one call), `openCheckout`/`completeCheckout`, the public priced-offer `feed()`, price reading (`getOffer`, `priceOf`) and money formatting — money is integer 6-decimal MICRO-units, `AIMEAT.commerce.fmtMoney(1500000, "EUR")` → "1.50 EUR"; morsels stay plain integers (`fmtAmount` is currency-aware). A 402 error carries `err.paymentRequired` + the x402-style `err.accepts` list. Never ask the user for payment secrets — seller PSP config lives server-side. Requires aimeat-auth.',
|
|
238
248
|
},
|
|
@@ -253,6 +263,7 @@ export const SDK_PACKS = [
|
|
|
253
263
|
interviewTriggers: ['music', 'sound', 'audio', 'musiikki', 'ääni'],
|
|
254
264
|
sizeEstimate: '~60KB',
|
|
255
265
|
status: 'stable',
|
|
266
|
+
modelTier: 'needs-doc',
|
|
256
267
|
promptGroup: 'media',
|
|
257
268
|
promptLine: '- aimeat-audio.js — audio engine: instruments, synth, soundboard',
|
|
258
269
|
},
|
|
@@ -273,6 +284,7 @@ export const SDK_PACKS = [
|
|
|
273
284
|
interviewTriggers: ['voice', 'speech', 'puhe'],
|
|
274
285
|
sizeEstimate: '~15KB',
|
|
275
286
|
status: 'stable',
|
|
287
|
+
modelTier: 'needs-doc',
|
|
276
288
|
promptGroup: 'media',
|
|
277
289
|
promptLine: '- aimeat-speech.js — text-to-speech / speech helpers',
|
|
278
290
|
},
|
|
@@ -287,12 +299,15 @@ export const SDK_PACKS = [
|
|
|
287
299
|
requires: [],
|
|
288
300
|
license: 'MIT',
|
|
289
301
|
apiSurface: 'AIMEAT.md',
|
|
290
|
-
aiDoc: 'AIMEAT.md.render(text, target) renders a safe dependency-free GFM subset INTO an element — it returns an Element, so never assign the result to innerHTML; use the target param, appendChild, or renderToString(text). await AIMEAT.md.renderRich(text, target) upgrades to full GFM (task lists, footnotes, highlighted code, Mermaid diagrams), sanitized. LIVE DATA EMBEDS: an aimeat-memory fenced block (key/view/fields/title lines) renders the named memory key as a fresh table/props/list on every open.',
|
|
291
|
-
changelog: [
|
|
302
|
+
aiDoc: 'AIMEAT.md.render(text, target) renders a safe dependency-free GFM subset INTO an element — it returns an Element, so never assign the result to innerHTML; use the target param, appendChild, or renderToString(text). await AIMEAT.md.renderRich(text, target) upgrades to full GFM (task lists, footnotes, highlighted code, Mermaid diagrams), sanitized. LIVE DATA EMBEDS: an aimeat-memory fenced block (key/view/fields/title lines) renders the named memory key as a fresh table/props/list on every open. CITATIONS in agent-written prose: AIMEAT.md.citations(text) returns { body, sources: [{url, host, shortened}] } and handles the three conventions one document can mix — a trailing Source:/Sources: line, inline lenticular 【https://…】 brackets (a model artifact no renderer linkifies, so it shows as literal junk), and bare URLs. It strips that noise from body and flags link shorteners whose destination cannot be shown as a publisher. Do not hand-roll the URL regex: every hand-rolled version forgets to exclude 】 and puts the bracket inside the href, producing dead links. When repainting a rendered document, render into a detached element and swap it in one operation instead of clearing the target first — clearing then filling is what makes a view flicker.',
|
|
303
|
+
changelog: [
|
|
304
|
+
{ version: '1.1.0', date: '2026-07-25', summary: 'Added AIMEAT.md.citations(text) — one parser for the citation conventions LLM prose mixes. Additive.' },
|
|
305
|
+
],
|
|
292
306
|
tierHint: 'T1',
|
|
293
307
|
interviewTriggers: ['markdown', 'blog', 'document', 'dokumentti'],
|
|
294
308
|
sizeEstimate: '~12KB',
|
|
295
309
|
status: 'stable',
|
|
310
|
+
modelTier: 'needs-doc',
|
|
296
311
|
promptGroup: 'media',
|
|
297
312
|
promptLine: '- aimeat-markdown.js — render markdown INTO an element: `AIMEAT.md.render(text, target)` (returns an Element — never assign it to innerHTML; use `renderToString(text)` for a string). `await AIMEAT.md.renderRich(text, target)` adds task lists, footnotes, code highlighting, Mermaid diagrams AND live data embeds: a ```aimeat-memory fence (lines `key: <memory key>`, optional `view: table|props|list|value|json`, `fields: a,b`, `title: …`) renders that memory key as a fresh table on every open — perfect for agent-produced data in documents.',
|
|
298
313
|
},
|
|
@@ -316,6 +331,7 @@ export const SDK_PACKS = [
|
|
|
316
331
|
interviewTriggers: ['editor', 'write', 'notes', 'muistiinpano'],
|
|
317
332
|
sizeEstimate: '~8KB',
|
|
318
333
|
status: 'stable',
|
|
334
|
+
modelTier: 'needs-doc',
|
|
319
335
|
promptGroup: 'media',
|
|
320
336
|
promptLine: '- aimeat-editor.js — markdown editor: `AIMEAT.editor.mount(el, {value, onChange})`, `AIMEAT.editor.toolbar(adapter)`, `AIMEAT.editor.split(el, {value, onChange})` for editor + live preview (pairs with aimeat-markdown.js)',
|
|
321
337
|
},
|
|
@@ -336,6 +352,7 @@ export const SDK_PACKS = [
|
|
|
336
352
|
interviewTriggers: [],
|
|
337
353
|
sizeEstimate: '~7KB',
|
|
338
354
|
status: 'stable',
|
|
355
|
+
modelTier: 'needs-doc',
|
|
339
356
|
promptGroup: 'media',
|
|
340
357
|
promptLine: '- aimeat-header.js — drop-in canonical site header (nav + theme)',
|
|
341
358
|
},
|
|
@@ -350,12 +367,15 @@ export const SDK_PACKS = [
|
|
|
350
367
|
requires: ['aimeat-auth'],
|
|
351
368
|
license: 'MIT',
|
|
352
369
|
apiSurface: 'AIMEAT.live',
|
|
353
|
-
aiDoc: "AIMEAT.live.subscribe(['organisms','memory'], (domains) => reload()) — one shared, owner-scoped EventSource per browser (multi-tab via Web Locks + BroadcastChannel), debounced, visibility-gated, auto-reconnecting. The callback tells you WHICH domains changed; re-fetch only that data. Use this instead of polling for any view that shows server data. Deletes do not emit a change event — refresh locally after a delete.",
|
|
354
|
-
changelog: [
|
|
370
|
+
aiDoc: "AIMEAT.live.subscribe(['organisms','memory'], (domains) => reload()) — one shared, owner-scoped EventSource per browser (multi-tab via Web Locks + BroadcastChannel), debounced, visibility-gated, auto-reconnecting. The callback tells you WHICH domains changed; re-fetch only that data. Use this instead of polling for any view that shows server data. Deletes do not emit a change event — refresh locally after a delete. FIREHOSE WARNING: 'memory' fires on ANY write by the owner or any of their agents, so on an account with an active agent fleet it is near-continuous and a handler that re-fetches a full listing becomes a permanent poll. Gate it with the third argument: subscribe(['memory'], reload, { keyPrefix: 'crews.', ownerScope: true }) fires only when the key count under that prefix moved, or { minIntervalMs: 10000 } to just rate-limit. The change frame carries a DOMAIN name and never the key that changed, so keyPrefix catches a NEW key, not an in-place update — use minIntervalMs for update-sensitive views. And never let a live event repaint a surface the user is reading: if a dialog is open, refresh in the background and leave the visible content alone.",
|
|
371
|
+
changelog: [
|
|
372
|
+
{ version: '1.1.0', date: '2026-07-25', summary: 'subscribe() takes a third options argument { keyPrefix, agent, ownerScope, minIntervalMs } to gate the memory firehose. Additive.' },
|
|
373
|
+
],
|
|
355
374
|
tierHint: 'T1',
|
|
356
375
|
interviewTriggers: ['live', 'realtime'],
|
|
357
376
|
sizeEstimate: '~5KB',
|
|
358
377
|
status: 'stable',
|
|
378
|
+
modelTier: 'needs-doc',
|
|
359
379
|
promptGroup: 'media',
|
|
360
380
|
promptLine: "- aimeat-live.js — live server-push updates over SSE: `AIMEAT.live.subscribe(['memory'], reload)` — re-fetch a view when its data changed instead of polling. Requires aimeat-auth.",
|
|
361
381
|
},
|
|
@@ -376,6 +396,7 @@ export const SDK_PACKS = [
|
|
|
376
396
|
interviewTriggers: [],
|
|
377
397
|
sizeEstimate: '~3KB',
|
|
378
398
|
status: 'stable',
|
|
399
|
+
modelTier: 'needs-doc',
|
|
379
400
|
},
|
|
380
401
|
{
|
|
381
402
|
id: 'aimeat-webmcp',
|
|
@@ -394,6 +415,7 @@ export const SDK_PACKS = [
|
|
|
394
415
|
interviewTriggers: [],
|
|
395
416
|
sizeEstimate: '~6KB',
|
|
396
417
|
status: 'stable',
|
|
418
|
+
modelTier: 'needs-doc',
|
|
397
419
|
promptGroup: 'media',
|
|
398
420
|
promptLine: "- aimeat-webmcp.js — expose the app's declared tools to in-browser agents (WebMCP): `AIMEAT.webmcp.exposeAppTools({owner, appId})`",
|
|
399
421
|
},
|
|
@@ -414,6 +436,7 @@ export const SDK_PACKS = [
|
|
|
414
436
|
interviewTriggers: [],
|
|
415
437
|
sizeEstimate: '~10KB',
|
|
416
438
|
status: 'stable',
|
|
439
|
+
modelTier: 'needs-doc',
|
|
417
440
|
promptGroup: 'media',
|
|
418
441
|
promptLine: '- aimeat-tunnel.js — personal-node tunnel client (advanced)',
|
|
419
442
|
},
|
|
@@ -434,6 +457,7 @@ export const SDK_PACKS = [
|
|
|
434
457
|
interviewTriggers: [],
|
|
435
458
|
sizeEstimate: '~6KB',
|
|
436
459
|
status: 'deprecated',
|
|
460
|
+
modelTier: 'needs-doc',
|
|
437
461
|
},
|
|
438
462
|
];
|
|
439
463
|
//# sourceMappingURL=sdk.js.map
|