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
|
@@ -238,12 +238,64 @@
|
|
|
238
238
|
hadHiddenUpdate = false;
|
|
239
239
|
}
|
|
240
240
|
}
|
|
241
|
-
function subscribe(domains, fn) {
|
|
241
|
+
function subscribe(domains, fn, opts) {
|
|
242
242
|
if (typeof domains === "function") {
|
|
243
|
+
opts = fn;
|
|
243
244
|
fn = domains;
|
|
244
245
|
domains = null;
|
|
245
246
|
}
|
|
246
|
-
|
|
247
|
+
opts = opts || {};
|
|
248
|
+
var prefixes = opts.keyPrefix ? Array.isArray(opts.keyPrefix) ? opts.keyPrefix.slice() : [opts.keyPrefix] : null;
|
|
249
|
+
var minInterval = opts.minIntervalMs > 0 ? opts.minIntervalMs : 0;
|
|
250
|
+
var counts = /* @__PURE__ */ Object.create(null);
|
|
251
|
+
var lastCall = 0;
|
|
252
|
+
var probing = false;
|
|
253
|
+
var primed = !prefixes;
|
|
254
|
+
function pass(dset) {
|
|
255
|
+
lastCall = Date.now();
|
|
256
|
+
try {
|
|
257
|
+
fn(dset);
|
|
258
|
+
} catch {
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
function gate(dset) {
|
|
262
|
+
if (minInterval && Date.now() - lastCall < minInterval) return;
|
|
263
|
+
if (!prefixes) {
|
|
264
|
+
pass(dset);
|
|
265
|
+
return;
|
|
266
|
+
}
|
|
267
|
+
if (probing) return;
|
|
268
|
+
probing = true;
|
|
269
|
+
Promise.all(prefixes.map(function(p) {
|
|
270
|
+
var qs = "count=true&prefix=" + encodeURIComponent(p) + (opts.agent ? "&agent=" + encodeURIComponent(opts.agent) : opts.ownerScope ? "&owner_scope=true" : "");
|
|
271
|
+
return getSession2().fetch("/v1/memory?" + qs).then(function(r) {
|
|
272
|
+
var c = r && r.data && typeof r.data.count === "number" ? r.data.count : null;
|
|
273
|
+
return { prefix: p, count: c };
|
|
274
|
+
}).catch(function() {
|
|
275
|
+
return { prefix: p, count: null };
|
|
276
|
+
});
|
|
277
|
+
})).then(function(res) {
|
|
278
|
+
probing = false;
|
|
279
|
+
var changed = false;
|
|
280
|
+
res.forEach(function(r) {
|
|
281
|
+
if (r.count == null) return;
|
|
282
|
+
if (counts[r.prefix] !== r.count) {
|
|
283
|
+
changed = true;
|
|
284
|
+
counts[r.prefix] = r.count;
|
|
285
|
+
}
|
|
286
|
+
});
|
|
287
|
+
if (!primed) {
|
|
288
|
+
primed = true;
|
|
289
|
+
if (res.every(function(r) {
|
|
290
|
+
return r.count != null;
|
|
291
|
+
})) return;
|
|
292
|
+
}
|
|
293
|
+
if (changed) pass(dset);
|
|
294
|
+
}).catch(function() {
|
|
295
|
+
probing = false;
|
|
296
|
+
});
|
|
297
|
+
}
|
|
298
|
+
var entry = { domains: domains ? new Set(domains) : null, fn: gate };
|
|
247
299
|
subscribers.push(entry);
|
|
248
300
|
connect();
|
|
249
301
|
return function() {
|
|
@@ -598,5 +598,36 @@
|
|
|
598
598
|
(document.head || document.documentElement).appendChild(s);
|
|
599
599
|
}
|
|
600
600
|
injectCss();
|
|
601
|
-
|
|
601
|
+
var CITE_URL_RE = /https?:\/\/[^\s,;)\]}"'【】]+/g;
|
|
602
|
+
var SHORTENERS = ["lnkd.in", "bit.ly", "t.co", "ow.ly", "tinyurl.com", "buff.ly", "goo.gl", "is.gd", "rb.gy"];
|
|
603
|
+
function citations(text, opts) {
|
|
604
|
+
var strip = !opts || opts.stripInline !== false;
|
|
605
|
+
var body = String(text == null ? "" : text);
|
|
606
|
+
var seen = /* @__PURE__ */ Object.create(null);
|
|
607
|
+
var out = [];
|
|
608
|
+
function push(u) {
|
|
609
|
+
u = String(u).replace(/[.,;:]+$/, "");
|
|
610
|
+
if (!u || seen[u]) return;
|
|
611
|
+
seen[u] = 1;
|
|
612
|
+
var host;
|
|
613
|
+
try {
|
|
614
|
+
host = new URL(u).hostname.replace(/^www\./, "");
|
|
615
|
+
} catch {
|
|
616
|
+
host = "";
|
|
617
|
+
}
|
|
618
|
+
out.push({ url: u, host, shortened: SHORTENERS.indexOf(host) >= 0 });
|
|
619
|
+
}
|
|
620
|
+
body = body.replace(/【\s*(https?:\/\/[^】\s]+)\s*】/g, function(m, u) {
|
|
621
|
+
push(u);
|
|
622
|
+
return strip ? "" : m;
|
|
623
|
+
});
|
|
624
|
+
body = body.replace(/^[ \t]*Sources?[ \t]*:[ \t]*(.*)$/gim, function(m, rest) {
|
|
625
|
+
(String(rest).match(CITE_URL_RE) || []).forEach(push);
|
|
626
|
+
return strip ? "" : m;
|
|
627
|
+
});
|
|
628
|
+
(body.match(CITE_URL_RE) || []).forEach(push);
|
|
629
|
+
if (strip) body = body.replace(/[ \t]+$/gm, "").replace(/\n{3,}/g, "\n\n").trim();
|
|
630
|
+
return { body, sources: out };
|
|
631
|
+
}
|
|
632
|
+
attach("md", { render, renderToString, renderRich, sanitizeHref, sanitizeImgSrc, citations });
|
|
602
633
|
})();
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
* const off = AIMEAT.live.subscribe(['agent-tasks','organisms'], (domains) => reload());
|
|
14
14
|
* @version-history
|
|
15
15
|
* v1.0.0 — 2026-07-19 — Migrated from src/routes/lib-live.ts (SDK-libs migration Phase 1).
|
|
16
|
+
* v1.1.0 — 2026-07-25 — subscribe() takes a third options argument: { keyPrefix, agent, ownerScope,
|
|
17
|
+
* minIntervalMs }. On a multi-agent fleet the 'memory' domain fires continuously, so every
|
|
18
|
+
* subscriber effectively polled. keyPrefix gates on a cheap server-side COUNT (the change frame
|
|
19
|
+
* carries no key, so a new key is detected and an in-place update is not). Additive.
|
|
16
20
|
*/
|
|
17
21
|
import { makeSession } from '../_core/session.js';
|
|
18
22
|
const { getSession } = makeSession('aimeat-live.js');
|
|
@@ -136,10 +140,73 @@ function disconnect() {
|
|
|
136
140
|
}
|
|
137
141
|
}
|
|
138
142
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
+
/**
|
|
144
|
+
* Subscribe to specific domains (or null = all). Auto-connects on first subscribe.
|
|
145
|
+
* Returns an unsubscribe function.
|
|
146
|
+
*
|
|
147
|
+
* opts (all optional, all additive — a two-argument call behaves exactly as before):
|
|
148
|
+
* keyPrefix — string | string[]. Only fire when the number of the caller's memory keys
|
|
149
|
+
* under one of these prefixes has CHANGED since the last check. The server's
|
|
150
|
+
* change frame carries a domain name only (see services/event-bus.ts), never
|
|
151
|
+
* the key that changed, so this is a client-side gate: on each 'memory' event
|
|
152
|
+
* the lib asks for a cheap server-side COUNT (`?count=true`, no values, its
|
|
153
|
+
* cache invalidated by any write) and stays quiet when the count is unmoved.
|
|
154
|
+
* LIMITATION, by design of the frame: a NEW key is detected, an in-place
|
|
155
|
+
* UPDATE of an existing key is not. For update-sensitive views pass
|
|
156
|
+
* minIntervalMs instead of (or with) keyPrefix.
|
|
157
|
+
* agent — GAII to scope the count to one agent's namespace.
|
|
158
|
+
* ownerScope — count across the owner's GHII + agents (an app-grant token needs this).
|
|
159
|
+
* minIntervalMs— never invoke the callback more often than this. On a fleet with many agents
|
|
160
|
+
* the 'memory' domain is a firehose; this is the blunt version of the gate.
|
|
161
|
+
*
|
|
162
|
+
* Why this exists: a multi-agent owner writes memory constantly, so `subscribe(['memory'], reload)`
|
|
163
|
+
* fires more or less continuously, and every subscriber that re-fetched a full listing on each
|
|
164
|
+
* event turned one agent's activity into a permanent poll.
|
|
165
|
+
*/
|
|
166
|
+
function subscribe(domains, fn, opts) {
|
|
167
|
+
if (typeof domains === 'function') { opts = fn; fn = domains; domains = null; }
|
|
168
|
+
opts = opts || {};
|
|
169
|
+
var prefixes = opts.keyPrefix
|
|
170
|
+
? (Array.isArray(opts.keyPrefix) ? opts.keyPrefix.slice() : [opts.keyPrefix])
|
|
171
|
+
: null;
|
|
172
|
+
var minInterval = opts.minIntervalMs > 0 ? opts.minIntervalMs : 0;
|
|
173
|
+
var counts = Object.create(null); // prefix -> last seen count
|
|
174
|
+
var lastCall = 0;
|
|
175
|
+
var probing = false;
|
|
176
|
+
var primed = !prefixes; // with keyPrefix, the first event only records a baseline
|
|
177
|
+
|
|
178
|
+
function pass(dset) { lastCall = Date.now(); try { fn(dset); } catch { /* subscriber threw */ } }
|
|
179
|
+
|
|
180
|
+
function gate(dset) {
|
|
181
|
+
if (minInterval && (Date.now() - lastCall) < minInterval) return;
|
|
182
|
+
if (!prefixes) { pass(dset); return; }
|
|
183
|
+
if (probing) return; // one probe in flight is enough
|
|
184
|
+
probing = true;
|
|
185
|
+
Promise.all(prefixes.map(function (p) {
|
|
186
|
+
var qs = 'count=true&prefix=' + encodeURIComponent(p) +
|
|
187
|
+
(opts.agent ? '&agent=' + encodeURIComponent(opts.agent)
|
|
188
|
+
: (opts.ownerScope ? '&owner_scope=true' : ''));
|
|
189
|
+
return getSession().fetch('/v1/memory?' + qs)
|
|
190
|
+
.then(function (r) {
|
|
191
|
+
var c = r && r.data && typeof r.data.count === 'number' ? r.data.count : null;
|
|
192
|
+
return { prefix: p, count: c };
|
|
193
|
+
})
|
|
194
|
+
.catch(function () { return { prefix: p, count: null }; });
|
|
195
|
+
})).then(function (res) {
|
|
196
|
+
probing = false;
|
|
197
|
+
var changed = false;
|
|
198
|
+
res.forEach(function (r) {
|
|
199
|
+
if (r.count == null) return; // probe failed: do not claim a change
|
|
200
|
+
if (counts[r.prefix] !== r.count) { changed = true; counts[r.prefix] = r.count; }
|
|
201
|
+
});
|
|
202
|
+
// A failed/unavailable probe must not silence a real update forever: if we could not
|
|
203
|
+
// establish any baseline, fall through and let the subscriber decide.
|
|
204
|
+
if (!primed) { primed = true; if (res.every(function (r) { return r.count != null; })) return; }
|
|
205
|
+
if (changed) pass(dset);
|
|
206
|
+
}).catch(function () { probing = false; });
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
var entry = { domains: domains ? new Set(domains) : null, fn: gate };
|
|
143
210
|
subscribers.push(entry);
|
|
144
211
|
connect();
|
|
145
212
|
return function () {
|
|
@@ -14,6 +14,10 @@
|
|
|
14
14
|
* @usage <script src="/v1/libs/aimeat-markdown.js"></script> AIMEAT.md.render(md, '#out')
|
|
15
15
|
* @version-history
|
|
16
16
|
* v1.0.0 — 2026-07-19 — Migrated from src/routes/lib-markdown.ts (SDK-libs migration Phase 2).
|
|
17
|
+
* v1.1.0 — 2026-07-25 — Added AIMEAT.md.citations(text): pulls `Source:`/`Sources:` lines, inline
|
|
18
|
+
* lenticular 【url】 citations and bare URLs out of LLM prose into one source list (host +
|
|
19
|
+
* shortener flag). Every app rendering agent output had hand-rolled this, and the hand-rolled
|
|
20
|
+
* URL regexes kept including the closing 】 in the href.
|
|
17
21
|
*/
|
|
18
22
|
import { NODE_URL } from '../_core/config.js';
|
|
19
23
|
import { attach } from '../_core/namespace.js';
|
|
@@ -519,4 +523,48 @@ function injectCss() {
|
|
|
519
523
|
}
|
|
520
524
|
injectCss();
|
|
521
525
|
|
|
522
|
-
|
|
526
|
+
// ── citations ───────────────────────────────────────────────────────────────
|
|
527
|
+
// LLM-written prose cites its sources in at least three conventions, often mixed
|
|
528
|
+
// inside ONE document: a trailing `Source:`/`Sources:` line, inline lenticular
|
|
529
|
+
// 【https://…】 brackets (a model artifact no markdown renderer linkifies, so it
|
|
530
|
+
// renders as literal junk), and bare inline URLs. Every app that displays agent
|
|
531
|
+
// output re-invented this parse, and the hand-rolled URL regexes kept forgetting
|
|
532
|
+
// to exclude 】 — which silently puts the bracket inside the href and breaks the
|
|
533
|
+
// link. One implementation, here, next to the renderer that consumes it.
|
|
534
|
+
var CITE_URL_RE = /https?:\/\/[^\s,;)\]}"'【】]+/g;
|
|
535
|
+
|
|
536
|
+
// Link shorteners hide their destination, so a UI cannot show a trustworthy
|
|
537
|
+
// publisher name for them. Reported separately rather than silently.
|
|
538
|
+
var SHORTENERS = ['lnkd.in', 'bit.ly', 't.co', 'ow.ly', 'tinyurl.com', 'buff.ly', 'goo.gl', 'is.gd', 'rb.gy'];
|
|
539
|
+
|
|
540
|
+
/**
|
|
541
|
+
* Split cited sources out of prose.
|
|
542
|
+
* @param {string} text
|
|
543
|
+
* @param {{stripInline?: boolean}} [opts] stripInline (default true): remove the
|
|
544
|
+
* bracketed/trailing citation noise from `body`. Bare inline URLs are left in place.
|
|
545
|
+
* @returns {{body: string, sources: Array<{url: string, host: string, shortened: boolean}>}}
|
|
546
|
+
*/
|
|
547
|
+
function citations(text, opts) {
|
|
548
|
+
var strip = !opts || opts.stripInline !== false;
|
|
549
|
+
var body = String(text == null ? '' : text);
|
|
550
|
+
var seen = Object.create(null);
|
|
551
|
+
var out = [];
|
|
552
|
+
function push(u) {
|
|
553
|
+
u = String(u).replace(/[.,;:]+$/, '');
|
|
554
|
+
if (!u || seen[u]) return;
|
|
555
|
+
seen[u] = 1;
|
|
556
|
+
var host;
|
|
557
|
+
try { host = new URL(u).hostname.replace(/^www\./, ''); } catch { host = ''; }
|
|
558
|
+
out.push({ url: u, host: host, shortened: SHORTENERS.indexOf(host) >= 0 });
|
|
559
|
+
}
|
|
560
|
+
body = body.replace(/【\s*(https?:\/\/[^】\s]+)\s*】/g, function (m, u) { push(u); return strip ? '' : m; });
|
|
561
|
+
body = body.replace(/^[ \t]*Sources?[ \t]*:[ \t]*(.*)$/gim, function (m, rest) {
|
|
562
|
+
(String(rest).match(CITE_URL_RE) || []).forEach(push);
|
|
563
|
+
return strip ? '' : m;
|
|
564
|
+
});
|
|
565
|
+
(body.match(CITE_URL_RE) || []).forEach(push);
|
|
566
|
+
if (strip) body = body.replace(/[ \t]+$/gm, '').replace(/\n{3,}/g, '\n\n').trim();
|
|
567
|
+
return { body: body, sources: out };
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
attach('md', { render: render, renderToString: renderToString, renderRich: renderRich, sanitizeHref: sanitizeHref, sanitizeImgSrc: sanitizeImgSrc, citations: citations });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aimeat",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "AIME AT - AI Memory Exchange and Action Transfer - reference implementation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
@@ -178,6 +178,7 @@
|
|
|
178
178
|
"typecheck:sdk": "tsc --noEmit -p tsconfig.sdk.json",
|
|
179
179
|
"check:importmap": "tsx scripts/check-importmap.ts",
|
|
180
180
|
"check:no-max-tokens": "tsx scripts/check-no-max-tokens.ts",
|
|
181
|
+
"check:openapi": "tsx scripts/check-openapi.ts",
|
|
181
182
|
"screenshot:worker": "tsx scripts/screenshot-worker.ts",
|
|
182
183
|
"generate:types": "openapi-typescript ../openapi.yaml -o src/generated/api-types.ts",
|
|
183
184
|
"db:reset": "node --env-file=.env --import tsx scripts/db-reset.ts",
|
|
@@ -195,6 +196,9 @@
|
|
|
195
196
|
"audit:mcp-schemas": "tsx scripts/audit-mcp-schemas.ts",
|
|
196
197
|
"eval:mcp-surface": "tsx test/eval-mcp/surface-weight.ts",
|
|
197
198
|
"perf:bench": "node --import tsx tools/perf-bench/bench.ts",
|
|
198
|
-
"perf:bench:backends": "node --import tsx tools/perf-bench/bench-backends.ts"
|
|
199
|
+
"perf:bench:backends": "node --import tsx tools/perf-bench/bench-backends.ts",
|
|
200
|
+
"sync:viewport": "tsx scripts/embed-viewport.ts",
|
|
201
|
+
"check:viewport": "tsx scripts/embed-viewport.ts --check",
|
|
202
|
+
"check:theme": "tsx tools/theme-contrast.ts"
|
|
199
203
|
}
|
|
200
204
|
}
|