@elizaos/agent 2.0.3-beta.2 → 2.0.3-beta.4
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/__tests__/view-user-journeys.d.ts.map +1 -1
- package/__tests__/view-user-journeys.js +52 -41
- package/actions/context-signal.d.ts +2 -2
- package/actions/files.d.ts +9 -0
- package/actions/files.d.ts.map +1 -0
- package/actions/files.js +183 -0
- package/actions/index.d.ts +17 -17
- package/api/accounts-routes.d.ts +1 -1
- package/api/accounts-routes.js +1 -1
- package/api/agent-admin-routes.d.ts +1 -1
- package/api/agent-admin-routes.js +2 -2
- package/api/agent-model.d.ts +1 -1
- package/api/agent-status-routes.d.ts +1 -3
- package/api/agent-status-routes.d.ts.map +1 -1
- package/api/agent-status-routes.js +0 -2
- package/api/approval-routes.d.ts +38 -0
- package/api/approval-routes.d.ts.map +1 -0
- package/api/approval-routes.js +223 -0
- package/api/background-routes.d.ts +13 -0
- package/api/background-routes.d.ts.map +1 -0
- package/api/background-routes.js +91 -0
- package/api/binance-skill-helpers.d.ts +2 -2
- package/api/binance-skill-helpers.js +2 -2
- package/api/builtin-views.d.ts.map +1 -1
- package/api/builtin-views.js +44 -4
- package/api/character-routes.d.ts +1 -1
- package/api/chat-augmentation.d.ts.map +1 -1
- package/api/chat-augmentation.js +17 -0
- package/api/chat-routes.d.ts +29 -2
- package/api/chat-routes.d.ts.map +1 -1
- package/api/chat-routes.js +76 -1
- package/api/commands-routes.d.ts +10 -8
- package/api/commands-routes.d.ts.map +1 -1
- package/api/commands-routes.js +17 -59
- package/api/config-routes.d.ts +1 -1
- package/api/config-routes.d.ts.map +1 -1
- package/api/config-routes.js +0 -2
- package/api/connector-routes.d.ts +1 -1
- package/api/conversation-metadata.d.ts +1 -1
- package/api/conversation-metadata.d.ts.map +1 -1
- package/api/conversation-metadata.js +0 -1
- package/api/conversation-routes.d.ts +4 -3
- package/api/conversation-routes.d.ts.map +1 -1
- package/api/conversation-routes.js +34 -1
- package/api/documents-service-loader.d.ts +0 -4
- package/api/documents-service-loader.d.ts.map +1 -1
- package/api/documents-service-loader.js +0 -2
- package/api/files-routes.d.ts +14 -0
- package/api/files-routes.d.ts.map +1 -0
- package/api/files-routes.js +47 -0
- package/api/first-run-routes.d.ts +1 -1
- package/api/health-routes.d.ts +2 -2
- package/api/index.d.ts +40 -39
- package/api/index.d.ts.map +1 -1
- package/api/index.js +1 -0
- package/api/interactions-routes.d.ts +33 -0
- package/api/interactions-routes.d.ts.map +1 -0
- package/api/interactions-routes.js +63 -0
- package/api/media-runtime.d.ts +2 -1
- package/api/media-runtime.d.ts.map +1 -1
- package/api/media-runtime.js +64 -7
- package/api/media-store.d.ts +36 -0
- package/api/media-store.d.ts.map +1 -1
- package/api/media-store.js +141 -2
- package/api/memory-bounds.d.ts +0 -1
- package/api/memory-bounds.d.ts.map +1 -1
- package/api/memory-bounds.js +0 -1
- package/api/misc-routes.d.ts +1 -1
- package/api/model-provider-helpers.d.ts +2 -2
- package/api/model-provider-helpers.js +2 -2
- package/api/permissions-routes-extra.d.ts +1 -1
- package/api/permissions-routes.d.ts +1 -1
- package/api/permissions-routes.d.ts.map +1 -1
- package/api/permissions-routes.js +8 -7
- package/api/plugin-discovery-helpers.d.ts +5 -6
- package/api/plugin-discovery-helpers.d.ts.map +1 -1
- package/api/plugin-discovery-helpers.js +3 -4
- package/api/plugin-runtime-apply.d.ts +2 -2
- package/api/plugin-runtime-apply.d.ts.map +1 -1
- package/api/plugin-runtime-apply.js +74 -0
- package/api/provider-switch-config.d.ts +1 -1
- package/api/provider-switch-routes.d.ts +2 -2
- package/api/registry-routes.d.ts +1 -1
- package/api/registry-service.d.ts +1 -1
- package/api/remote-capability-routes.d.ts +2 -2
- package/api/remote-capability-routes.d.ts.map +1 -1
- package/api/remote-capability-routes.js +19 -0
- package/api/server-autonomy-helpers.d.ts +2 -2
- package/api/server-helpers-auth.d.ts +10 -0
- package/api/server-helpers-auth.d.ts.map +1 -1
- package/api/server-helpers-auth.js +16 -210
- package/api/server-helpers-config.d.ts +1 -1
- package/api/server-helpers-mcp.d.ts +2 -2
- package/api/server-helpers-plugin.d.ts +1 -1
- package/api/server-helpers-swarm.d.ts +3 -3
- package/api/server-helpers-swarm.d.ts.map +1 -1
- package/api/server-helpers-swarm.js +15 -5
- package/api/server-helpers-wallet.d.ts +1 -1
- package/api/server-helpers.d.ts +4 -4
- package/api/server-lazy-routes.d.ts +40 -38
- package/api/server-lazy-routes.d.ts.map +1 -1
- package/api/server-lazy-routes.js +7 -0
- package/api/server-route-dispatch.d.ts +2 -2
- package/api/server-route-dispatch.d.ts.map +1 -1
- package/api/server-route-dispatch.js +7 -0
- package/api/server-types.d.ts +9 -7
- package/api/server-types.d.ts.map +1 -1
- package/api/server.d.ts +19 -19
- package/api/server.d.ts.map +1 -1
- package/api/server.js +111 -17
- package/api/static-file-server.d.ts +2 -2
- package/api/static-file-server.js +2 -2
- package/api/subscription-routes.d.ts +4 -4
- package/api/subscription-routes.js +3 -4
- package/api/suggestions-routes.d.ts +1 -1
- package/api/suggestions-routes.d.ts.map +1 -1
- package/api/suggestions-routes.js +2 -3
- package/api/terminal-execution-routing.d.ts +1 -1
- package/api/training-service-like.d.ts +1 -1
- package/api/trajectory-fallback-routes.d.ts.map +1 -1
- package/api/trajectory-fallback-routes.js +21 -1
- package/api/update-routes.d.ts +1 -1
- package/api/view-registry-types.d.ts +1 -1
- package/api/views-registry.d.ts +14 -4
- package/api/views-registry.d.ts.map +1 -1
- package/api/views-registry.js +107 -72
- package/api/views-routes.d.ts +1 -1
- package/api/views-routes.d.ts.map +1 -1
- package/api/views-routes.js +131 -14
- package/api/views-search-index.d.ts +1 -1
- package/api/wallet-capability.d.ts +3 -3
- package/api/wallet-rpc.d.ts +1 -1
- package/api/wallet.d.ts +3 -3
- package/api/wallet.d.ts.map +1 -1
- package/api/wallet.js +4 -3
- package/api/workbench-context.d.ts +1 -1
- package/api/workbench-helpers.d.ts +3 -3
- package/api/workbench-helpers.js +3 -3
- package/api/workbench-routes.d.ts +2 -2
- package/api/workbench-vfs-routes.d.ts +1 -1
- package/api/ws-event-replay.d.ts +1 -2
- package/api/ws-event-replay.d.ts.map +1 -1
- package/api/ws-event-replay.js +1 -2
- package/api/x-relay-routes.d.ts +2 -2
- package/api/x402-route-validation.d.ts +4 -0
- package/api/x402-route-validation.d.ts.map +1 -0
- package/api/x402-route-validation.js +6 -0
- package/assets/view-heroes/background.png +0 -0
- package/auth/account-storage.d.ts +1 -1
- package/auth/anthropic.d.ts +1 -1
- package/auth/credentials.d.ts +2 -2
- package/auth/index.d.ts +7 -7
- package/auth/oauth-flow.d.ts +2 -2
- package/auth/openai-codex.d.ts +1 -1
- package/awareness/index.d.ts +1 -1
- package/config/config.js +0 -1
- package/config/env-vars.d.ts +1 -1
- package/config/env-vars.d.ts.map +1 -1
- package/config/env-vars.js +0 -1
- package/config/index.d.ts +10 -10
- package/config/model-metadata.d.ts +1 -1
- package/config/owner-contacts.d.ts +1 -1
- package/config/schema.d.ts +1 -1
- package/hooks/discovery.d.ts +1 -1
- package/hooks/eligibility.d.ts +2 -2
- package/hooks/index.d.ts +2 -2
- package/hooks/loader.d.ts +2 -2
- package/hooks/registry.d.ts +1 -1
- package/index.d.ts +87 -85
- package/index.d.ts.map +1 -1
- package/index.js +11 -3
- package/package.json +54 -44
- package/providers/media-provider.d.ts +1 -1
- package/providers/page-scoped-context.d.ts.map +1 -1
- package/providers/page-scoped-context.js +1 -70
- package/providers/relevant-conversations.d.ts.map +1 -1
- package/providers/relevant-conversations.js +8 -9
- package/providers/workspace.d.ts +1 -1
- package/runtime/actions/web-fetch.d.ts.map +1 -1
- package/runtime/actions/web-fetch.js +23 -3
- package/runtime/actions/web-search.d.ts +32 -0
- package/runtime/actions/web-search.d.ts.map +1 -0
- package/runtime/actions/web-search.js +245 -0
- package/runtime/advanced-capabilities-config.d.ts +1 -1
- package/runtime/boot-telemetry.d.ts +1 -1
- package/runtime/conversation-compactor-runtime.d.ts +1 -1
- package/runtime/conversation-compactor-runtime.js +1 -1
- package/runtime/conversation-compactor.d.ts +1 -1
- package/runtime/core-plugins.d.ts.map +1 -1
- package/runtime/core-plugins.js +9 -0
- package/runtime/custom-actions.d.ts +18 -9
- package/runtime/custom-actions.d.ts.map +1 -1
- package/runtime/custom-actions.js +85 -23
- package/runtime/eliza-plugin.d.ts.map +1 -1
- package/runtime/eliza-plugin.js +15 -1
- package/runtime/eliza.d.ts +9 -7
- package/runtime/eliza.d.ts.map +1 -1
- package/runtime/eliza.js +86 -23
- package/runtime/first-time-setup.d.ts +1 -3
- package/runtime/first-time-setup.d.ts.map +1 -1
- package/runtime/first-time-setup.js +0 -2
- package/runtime/index.d.ts +18 -18
- package/runtime/load-plugin-from-vfs.d.ts +2 -2
- package/runtime/mobile-dns.d.ts.map +1 -1
- package/runtime/mobile-dns.js +2 -5
- package/runtime/operations/classifier.d.ts +1 -1
- package/runtime/operations/cold-strategy.d.ts +1 -1
- package/runtime/operations/health-checks.d.ts +1 -1
- package/runtime/operations/health.d.ts +1 -1
- package/runtime/operations/index.d.ts +10 -10
- package/runtime/operations/manager.d.ts +3 -3
- package/runtime/operations/reload-hot.d.ts +1 -1
- package/runtime/operations/repository.d.ts +1 -1
- package/runtime/operations/vault-bridge.d.ts +1 -1
- package/runtime/plugin-collector.d.ts +6 -1
- package/runtime/plugin-collector.d.ts.map +1 -1
- package/runtime/plugin-collector.js +11 -28
- package/runtime/plugin-lifecycle.d.ts.map +1 -1
- package/runtime/plugin-lifecycle.js +1 -0
- package/runtime/plugin-resolver.d.ts +2 -2
- package/runtime/plugin-resolver.d.ts.map +1 -1
- package/runtime/plugin-resolver.js +113 -65
- package/runtime/plugin-types.d.ts +1 -1
- package/runtime/prompt-optimization.d.ts +4 -4
- package/runtime/remote-coding-runner-gate.d.ts +7 -0
- package/runtime/remote-coding-runner-gate.d.ts.map +1 -0
- package/runtime/remote-coding-runner-gate.js +36 -0
- package/runtime/roles/src/index.d.ts +4 -4
- package/runtime/roles.d.ts +2 -2
- package/runtime/sandbox-character.d.ts +1 -1
- package/runtime/tool-call-cache/cache.d.ts +1 -1
- package/runtime/tool-call-cache/disk-store.d.ts +1 -1
- package/runtime/tool-call-cache/index.d.ts +6 -6
- package/runtime/tool-call-cache/key.d.ts +1 -1
- package/runtime/tool-call-cache/redact.d.ts +1 -1
- package/runtime/tool-call-cache/registry.d.ts +1 -1
- package/runtime/tool-call-cache-wrapper.d.ts +7 -9
- package/runtime/tool-call-cache-wrapper.d.ts.map +1 -1
- package/runtime/tool-call-cache-wrapper.js +6 -11
- package/runtime/trajectory-export.d.ts +3 -3
- package/runtime/trajectory-internals.d.ts +2 -1
- package/runtime/trajectory-internals.d.ts.map +1 -1
- package/runtime/trajectory-persistence.d.ts +5 -5
- package/runtime/trajectory-steps-reader.d.ts +1 -1
- package/runtime/trajectory-steps-writer.d.ts +1 -1
- package/runtime/trajectory-storage.d.ts +4 -4
- package/runtime/view-action-affinity.d.ts +18 -15
- package/runtime/view-action-affinity.d.ts.map +1 -1
- package/runtime/view-action-affinity.js +26 -29
- package/runtime/web-search-tools.d.ts +4 -1
- package/runtime/web-search-tools.d.ts.map +1 -1
- package/runtime/web-search-tools.js +37 -9
- package/security/index.d.ts +3 -3
- package/services/approval/index.d.ts +9 -0
- package/services/approval/index.d.ts.map +1 -0
- package/services/approval/index.js +8 -0
- package/services/approval/service.d.ts +35 -0
- package/services/approval/service.d.ts.map +1 -0
- package/services/approval/service.js +40 -0
- package/services/approval/sql.d.ts +18 -0
- package/services/approval/sql.d.ts.map +1 -0
- package/services/approval/sql.js +104 -0
- package/services/approval/store.d.ts +39 -0
- package/services/approval/store.d.ts.map +1 -0
- package/services/approval/store.js +534 -0
- package/services/approval/types.d.ts +207 -0
- package/services/approval/types.d.ts.map +1 -0
- package/services/approval/types.js +34 -0
- package/services/character-persistence.d.ts +2 -2
- package/services/client-chat-sender.d.ts +1 -1
- package/services/config-plugin-manager.d.ts +2 -2
- package/services/connector-setup-service.d.ts +1 -1
- package/services/cove-quote-x509.d.ts +1 -1
- package/services/cove-quote.d.ts +2 -2
- package/services/dstack-tee-provider.d.ts +1 -1
- package/services/file-storage.d.ts +20 -0
- package/services/file-storage.d.ts.map +1 -0
- package/services/file-storage.js +70 -0
- package/services/global-pause/index.d.ts +8 -0
- package/services/global-pause/index.d.ts.map +1 -0
- package/services/global-pause/index.js +7 -0
- package/services/global-pause/service.d.ts +29 -0
- package/services/global-pause/service.d.ts.map +1 -0
- package/services/global-pause/service.js +34 -0
- package/services/global-pause/store.d.ts +31 -0
- package/services/global-pause/store.d.ts.map +1 -0
- package/services/global-pause/store.js +83 -0
- package/services/handoff/index.d.ts +8 -0
- package/services/handoff/index.d.ts.map +1 -0
- package/services/handoff/index.js +7 -0
- package/services/handoff/service.d.ts +29 -0
- package/services/handoff/service.d.ts.map +1 -0
- package/services/handoff/service.js +34 -0
- package/services/handoff/store.d.ts +76 -0
- package/services/handoff/store.d.ts.map +1 -0
- package/services/handoff/store.js +148 -0
- package/services/index.d.ts +30 -31
- package/services/index.d.ts.map +1 -1
- package/services/index.js +0 -6
- package/services/js-runtime-bridge.d.ts.map +1 -1
- package/services/js-runtime-bridge.js +8 -2
- package/services/knowledge-graph/index.d.ts +4 -4
- package/services/knowledge-graph/service.d.ts +2 -2
- package/services/pending-prompts/index.d.ts +8 -0
- package/services/pending-prompts/index.d.ts.map +1 -0
- package/services/pending-prompts/index.js +7 -0
- package/services/pending-prompts/service.d.ts +34 -0
- package/services/pending-prompts/service.d.ts.map +1 -0
- package/services/pending-prompts/service.js +68 -0
- package/services/pending-prompts/store.d.ts +70 -0
- package/services/pending-prompts/store.d.ts.map +1 -0
- package/services/pending-prompts/store.js +191 -0
- package/services/plugin-compiler.d.ts +1 -1
- package/services/plugin-installer.d.ts.map +1 -1
- package/services/plugin-installer.js +21 -11
- package/services/plugin-manager-types.d.ts +1 -1
- package/services/proactive-interaction-decider.d.ts +62 -11
- package/services/proactive-interaction-decider.d.ts.map +1 -1
- package/services/proactive-interaction-decider.js +223 -35
- package/services/push/apns-provider.d.ts +1 -1
- package/services/push/fcm-provider.d.ts +1 -1
- package/services/push/notification-push-service.d.ts +2 -2
- package/services/registry-client-app-meta.d.ts +1 -1
- package/services/registry-client-endpoints.d.ts +2 -2
- package/services/registry-client-local.d.ts +1 -1
- package/services/registry-client-network.d.ts +1 -1
- package/services/registry-client-queries.d.ts +1 -1
- package/services/registry-client.d.ts +3 -3
- package/services/relationships-graph.d.ts +1 -1
- package/services/remote-capability-cloud-sandbox.d.ts +3 -3
- package/services/remote-capability-endpoint-conformance.d.ts +1 -1
- package/services/remote-capability-endpoint-provider.d.ts +4 -4
- package/services/remote-capability-url-endpoint-providers.d.ts +1 -1
- package/services/remote-plugin-adapter.d.ts.map +1 -1
- package/services/remote-plugin-adapter.js +3 -0
- package/services/remote-plugin-bridge.d.ts.map +1 -1
- package/services/remote-plugin-bridge.js +97 -26
- package/services/remote-signing-service.d.ts +4 -4
- package/services/research-task-executor.d.ts +1 -1
- package/services/sandbox-manager.d.ts +1 -1
- package/services/self-updater.d.ts +1 -1
- package/services/self-updater.d.ts.map +1 -1
- package/services/self-updater.js +23 -9
- package/services/shell-execution-router.d.ts +1 -1
- package/services/shell-execution-router.d.ts.map +1 -1
- package/services/shell-execution-router.js +19 -2
- package/services/tee-boot-gate-state.d.ts +1 -1
- package/services/tee-boot-gate.d.ts +4 -4
- package/services/tee-confidential-inference.d.ts +3 -3
- package/services/tee-key-release.d.ts +2 -2
- package/services/tee-model-key-boot.d.ts +4 -4
- package/services/tee-policy.d.ts +1 -1
- package/services/tee-production-profile.d.ts +1 -1
- package/services/tee-release-policy.d.ts +1 -1
- package/services/tee-revocation.d.ts +2 -2
- package/services/tee-runtime-config.d.ts +1 -1
- package/services/tee-sealed-volume.d.ts +3 -3
- package/services/tee-signer-backend.d.ts +3 -3
- package/services/update-checker.d.ts +1 -1
- package/services/vault-signer-backend.d.ts +1 -1
- package/services/vfs-git.d.ts +1 -1
- package/test-support/index.d.ts +3 -3
- package/triggers/runtime.d.ts +1 -1
- package/triggers/scheduling.d.ts +3 -22
- package/triggers/scheduling.d.ts.map +1 -1
- package/triggers/scheduling.js +2 -214
- package/tui/agent-terminal-tui.d.ts.map +1 -1
- package/tui/agent-terminal-tui.js +174 -72
- package/types/index.d.ts +3 -3
- package/api/nfa-routes.d.ts +0 -6
- package/api/nfa-routes.d.ts.map +0 -1
- package/api/nfa-routes.js +0 -125
- package/api/server-auth.d.ts +0 -46
- package/api/server-auth.d.ts.map +0 -1
- package/api/server-auth.js +0 -504
- package/runtime/restart.d.ts +0 -9
- package/runtime/restart.d.ts.map +0 -1
- package/runtime/restart.js +0 -8
- package/test-utils/sqlite-compat.d.ts +0 -23
- package/test-utils/sqlite-compat.d.ts.map +0 -1
- package/test-utils/sqlite-compat.js +0 -214
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-user-journeys.d.ts","sourceRoot":"","sources":["../../src/__tests__/view-user-journeys.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,MAAM,WAAW,mBAAmB;IAClC,mDAAmD;IACnD,EAAE,EAAE,MAAM,CAAC;IACX,uDAAuD;IACvD,WAAW,EAAE,MAAM,CAAC;IACpB,uDAAuD;IACvD,WAAW,EAAE,MAAM,CAAC;IACpB,qEAAqE;IACrE,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,oBAAoB,EAAE,MAAM,EAAE,CAAC;IAC/B,iFAAiF;IACjF,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB;AAED,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,KAAK,GAAG,KAAK,GAAG,IAAI,CAAC;IAC/B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,eAAO,MAAM,0BAA0B,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"view-user-journeys.d.ts","sourceRoot":"","sources":["../../src/__tests__/view-user-journe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OCK_CASES = [
|
|
15
|
+
// Auto-mirrors the visual smoke matrix (packages/app/test/ui-smoke/plugin-view-cases.ts,
|
|
16
|
+
// gui + tui) and the XR ratchet (KNOWN_XR_VIEW_CASES in
|
|
17
|
+
// packages/app/test/route-coverage.test.ts). Kept in exact lockstep by
|
|
18
|
+
// plugin-view-llm-mock-coverage.test.ts; PLUGIN_VIEW_LLM_MOCK_JOURNEYS derives
|
|
19
|
+
// one journey per case below.
|
|
15
20
|
{ id: "companion", viewType: "gui", path: "/companion" },
|
|
16
|
-
{ id: "companion", viewType: "tui", path: "/companion
|
|
21
|
+
{ id: "companion", viewType: "tui", path: "/companion" },
|
|
17
22
|
{ id: "contacts", viewType: "gui", path: "/contacts" },
|
|
18
|
-
{ id: "contacts", viewType: "tui", path: "/contacts
|
|
23
|
+
{ id: "contacts", viewType: "tui", path: "/contacts" },
|
|
19
24
|
{ id: "hyperliquid", viewType: "gui", path: "/hyperliquid" },
|
|
20
|
-
{ id: "hyperliquid", viewType: "tui", path: "/hyperliquid
|
|
25
|
+
{ id: "hyperliquid", viewType: "tui", path: "/hyperliquid" },
|
|
21
26
|
{ id: "focus", viewType: "gui", path: "/focus" },
|
|
27
|
+
{ id: "focus", viewType: "tui", path: "/focus" },
|
|
22
28
|
{ id: "calendar", viewType: "gui", path: "/calendar" },
|
|
29
|
+
{ id: "calendar", viewType: "tui", path: "/calendar" },
|
|
23
30
|
{ id: "documents", viewType: "gui", path: "/documents" },
|
|
31
|
+
{ id: "documents", viewType: "tui", path: "/documents" },
|
|
24
32
|
{ id: "finances", viewType: "gui", path: "/finances" },
|
|
33
|
+
{ id: "finances", viewType: "tui", path: "/finances" },
|
|
25
34
|
{ id: "goals", viewType: "gui", path: "/goals" },
|
|
35
|
+
{ id: "goals", viewType: "tui", path: "/goals" },
|
|
26
36
|
{ id: "health", viewType: "gui", path: "/health" },
|
|
37
|
+
{ id: "health", viewType: "tui", path: "/health" },
|
|
27
38
|
{ id: "inbox", viewType: "gui", path: "/inbox" },
|
|
39
|
+
{ id: "inbox", viewType: "tui", path: "/inbox" },
|
|
28
40
|
{ id: "relationships", viewType: "gui", path: "/relationships" },
|
|
41
|
+
{ id: "relationships", viewType: "tui", path: "/relationships" },
|
|
29
42
|
{ id: "todos", viewType: "gui", path: "/todos" },
|
|
43
|
+
{ id: "todos", viewType: "tui", path: "/todos" },
|
|
30
44
|
{ id: "messages", viewType: "gui", path: "/messages" },
|
|
31
|
-
{ id: "messages", viewType: "tui", path: "/messages
|
|
45
|
+
{ id: "messages", viewType: "tui", path: "/messages" },
|
|
32
46
|
{ id: "model-tester", viewType: "gui", path: "/model-tester" },
|
|
33
|
-
{ id: "model-tester", viewType: "tui", path: "/model-tester
|
|
47
|
+
{ id: "model-tester", viewType: "tui", path: "/model-tester" },
|
|
34
48
|
{ id: "phone", viewType: "gui", path: "/phone" },
|
|
35
|
-
{ id: "phone", viewType: "tui", path: "/phone
|
|
49
|
+
{ id: "phone", viewType: "tui", path: "/phone" },
|
|
36
50
|
{ id: "polymarket", viewType: "gui", path: "/polymarket" },
|
|
37
|
-
{ id: "polymarket", viewType: "tui", path: "/polymarket
|
|
51
|
+
{ id: "polymarket", viewType: "tui", path: "/polymarket" },
|
|
38
52
|
{ id: "shopify", viewType: "gui", path: "/shopify" },
|
|
39
|
-
{ id: "shopify", viewType: "tui", path: "/shopify
|
|
53
|
+
{ id: "shopify", viewType: "tui", path: "/shopify" },
|
|
40
54
|
{ id: "steward", viewType: "gui", path: "/steward" },
|
|
41
|
-
{ id: "steward", viewType: "tui", path: "/steward
|
|
55
|
+
{ id: "steward", viewType: "tui", path: "/steward" },
|
|
42
56
|
{ id: "vincent", viewType: "gui", path: "/vincent" },
|
|
43
|
-
{ id: "vincent", viewType: "tui", path: "/vincent
|
|
57
|
+
{ id: "vincent", viewType: "tui", path: "/vincent" },
|
|
44
58
|
{ id: "waifu-imagegen", viewType: "gui", path: "/waifu-imagegen" },
|
|
59
|
+
{ id: "waifu-imagegen", viewType: "tui", path: "/waifu-imagegen" },
|
|
45
60
|
{ id: "waifu-swap", viewType: "gui", path: "/waifu-swap" },
|
|
61
|
+
{ id: "waifu-swap", viewType: "tui", path: "/waifu-swap" },
|
|
46
62
|
{ id: "wallet", viewType: "gui", path: "/wallet" },
|
|
47
|
-
{ id: "wallet", viewType: "tui", path: "/wallet
|
|
63
|
+
{ id: "wallet", viewType: "tui", path: "/wallet" },
|
|
48
64
|
{ id: "vector-browser", viewType: "gui", path: "/vector-browser" },
|
|
65
|
+
{ id: "vector-browser", viewType: "tui", path: "/vector-browser" },
|
|
49
66
|
{ id: "feed", viewType: "gui", path: "/feed" },
|
|
50
|
-
{ id: "feed", viewType: "tui", path: "/feed
|
|
67
|
+
{ id: "feed", viewType: "tui", path: "/feed" },
|
|
51
68
|
{ id: "views-manager", viewType: "gui", path: "/views" },
|
|
52
|
-
{ id: "views-manager", viewType: "tui", path: "/views
|
|
53
|
-
{ id: "clawville", viewType: "gui", path: "/clawville" },
|
|
54
|
-
{ id: "clawville", viewType: "tui", path: "/clawville/tui" },
|
|
55
|
-
{
|
|
56
|
-
id: "defense-of-the-agents",
|
|
57
|
-
viewType: "gui",
|
|
58
|
-
path: "/defense-of-the-agents",
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
id: "defense-of-the-agents",
|
|
62
|
-
viewType: "tui",
|
|
63
|
-
path: "/defense-of-the-agents/tui",
|
|
64
|
-
},
|
|
69
|
+
{ id: "views-manager", viewType: "tui", path: "/views" },
|
|
65
70
|
{ id: "screenshare", viewType: "gui", path: "/screenshare" },
|
|
66
|
-
{ id: "screenshare", viewType: "tui", path: "/screenshare
|
|
71
|
+
{ id: "screenshare", viewType: "tui", path: "/screenshare" },
|
|
67
72
|
{ id: "social-alpha", viewType: "gui", path: "/social-alpha" },
|
|
73
|
+
{ id: "social-alpha", viewType: "tui", path: "/social-alpha" },
|
|
68
74
|
{ id: "task-coordinator", viewType: "gui", path: "/task-coordinator" },
|
|
69
|
-
{ id: "task-coordinator", viewType: "tui", path: "/task-coordinator
|
|
75
|
+
{ id: "task-coordinator", viewType: "tui", path: "/task-coordinator" },
|
|
70
76
|
{ id: "orchestrator", viewType: "gui", path: "/orchestrator" },
|
|
71
|
-
{ id: "orchestrator", viewType: "tui", path: "/orchestrator
|
|
77
|
+
{ id: "orchestrator", viewType: "tui", path: "/orchestrator" },
|
|
72
78
|
{ id: "trajectory-logger", viewType: "gui", path: "/trajectory-logger" },
|
|
73
|
-
{ id: "trajectory-logger", viewType: "tui", path: "/trajectory-logger
|
|
79
|
+
{ id: "trajectory-logger", viewType: "tui", path: "/trajectory-logger" },
|
|
74
80
|
{ id: "training", viewType: "gui", path: "/apps/fine-tuning" },
|
|
75
|
-
{ id: "training", viewType: "tui", path: "/
|
|
81
|
+
{ id: "training", viewType: "tui", path: "/apps/fine-tuning" },
|
|
76
82
|
{ id: "facewear", viewType: "gui", path: "/apps/facewear" },
|
|
77
|
-
{ id: "facewear", viewType: "tui", path: "/apps/facewear
|
|
83
|
+
{ id: "facewear", viewType: "tui", path: "/apps/facewear" },
|
|
78
84
|
{ id: "smartglasses", viewType: "gui", path: "/apps/smartglasses" },
|
|
79
|
-
{ id: "smartglasses", viewType: "tui", path: "/apps/smartglasses
|
|
85
|
+
{ id: "smartglasses", viewType: "tui", path: "/apps/smartglasses" },
|
|
80
86
|
{ id: "companion", viewType: "xr", path: "/companion" },
|
|
81
87
|
{ id: "contacts", viewType: "xr", path: "/contacts" },
|
|
82
88
|
{ id: "hyperliquid", viewType: "xr", path: "/hyperliquid" },
|
|
@@ -92,19 +98,24 @@ export const PLUGIN_VIEW_LLM_MOCK_CASES = [
|
|
|
92
98
|
{ id: "waifu-swap", viewType: "xr", path: "/waifu-swap" },
|
|
93
99
|
{ id: "feed", viewType: "xr", path: "/feed" },
|
|
94
100
|
{ id: "views-manager", viewType: "xr", path: "/views" },
|
|
95
|
-
{ id: "clawville", viewType: "xr", path: "/clawville" },
|
|
96
|
-
{
|
|
97
|
-
id: "defense-of-the-agents",
|
|
98
|
-
viewType: "xr",
|
|
99
|
-
path: "/defense-of-the-agents",
|
|
100
|
-
},
|
|
101
101
|
{ id: "screenshare", viewType: "xr", path: "/screenshare" },
|
|
102
102
|
{ id: "task-coordinator", viewType: "xr", path: "/task-coordinator" },
|
|
103
103
|
{ id: "orchestrator", viewType: "xr", path: "/orchestrator" },
|
|
104
104
|
{ id: "trajectory-logger", viewType: "xr", path: "/trajectory-logger" },
|
|
105
|
-
{ id: "training", viewType: "xr", path: "/
|
|
106
|
-
{ id: "
|
|
107
|
-
{ id: "
|
|
105
|
+
{ id: "training", viewType: "xr", path: "/apps/fine-tuning" },
|
|
106
|
+
{ id: "focus", viewType: "xr", path: "/focus" },
|
|
107
|
+
{ id: "calendar", viewType: "xr", path: "/calendar" },
|
|
108
|
+
{ id: "documents", viewType: "xr", path: "/documents" },
|
|
109
|
+
{ id: "finances", viewType: "xr", path: "/finances" },
|
|
110
|
+
{ id: "goals", viewType: "xr", path: "/goals" },
|
|
111
|
+
{ id: "health", viewType: "xr", path: "/health" },
|
|
112
|
+
{ id: "inbox", viewType: "xr", path: "/inbox" },
|
|
113
|
+
{ id: "relationships", viewType: "xr", path: "/relationships" },
|
|
114
|
+
{ id: "todos", viewType: "xr", path: "/todos" },
|
|
115
|
+
{ id: "vector-browser", viewType: "xr", path: "/vector-browser" },
|
|
116
|
+
{ id: "social-alpha", viewType: "xr", path: "/social-alpha" },
|
|
117
|
+
{ id: "facewear", viewType: "xr", path: "/apps/facewear" },
|
|
118
|
+
{ id: "smartglasses", viewType: "xr", path: "/apps/smartglasses" },
|
|
108
119
|
];
|
|
109
120
|
const formatPluginViewLabel = (id) => id.replaceAll("-", " ").replace(/\b\w/g, (char) => char.toUpperCase());
|
|
110
121
|
export const PLUGIN_VIEW_LLM_MOCK_JOURNEYS = PLUGIN_VIEW_LLM_MOCK_CASES.map((view) => {
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
*/
|
|
14
14
|
import { type AgentContext, type Memory, type State } from "@elizaos/core";
|
|
15
15
|
import { collectKeywordTermMatches, textIncludesKeywordTerm } from "@elizaos/shared";
|
|
16
|
-
import { type ContextSignalKey } from "./context-signal-lexicon.
|
|
17
|
-
import { recentConversationTexts as collectRecentConversationTexts } from "./recent-conversation-texts.
|
|
16
|
+
import { type ContextSignalKey } from "./context-signal-lexicon.js";
|
|
17
|
+
import { recentConversationTexts as collectRecentConversationTexts } from "./recent-conversation-texts.js";
|
|
18
18
|
export { collectKeywordTermMatches, textIncludesKeywordTerm };
|
|
19
19
|
export declare function collectKeywordTermMatchesForKey(texts: string[], key: ContextSignalKey, options?: {
|
|
20
20
|
includeAllLocales?: boolean;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Action } from "@elizaos/core";
|
|
2
|
+
/**
|
|
3
|
+
* FILES action: gives the agent read/CRUD access to the content-addressed file
|
|
4
|
+
* store via {@link IFileStorageService}. op:list shows recent stored files
|
|
5
|
+
* (optional query/limit); op:get returns a file's details + served URL by
|
|
6
|
+
* fileName; op:delete removes a file (requires confirm:true).
|
|
7
|
+
*/
|
|
8
|
+
export declare const filesAction: Action;
|
|
9
|
+
//# sourceMappingURL=files.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../src/actions/files.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EAMP,MAAM,eAAe,CAAC;AA4IvB;;;;;GAKG;AACH,eAAO,MAAM,WAAW,EAAE,MAsFzB,CAAC"}
|
package/actions/files.js
ADDED
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import { logger, ServiceType } from "@elizaos/core";
|
|
2
|
+
const FILES_OPS = ["list", "get", "delete"];
|
|
3
|
+
function fail(text, error) {
|
|
4
|
+
return { success: false, text, data: { error } };
|
|
5
|
+
}
|
|
6
|
+
function getStorage(runtime) {
|
|
7
|
+
return (runtime.getService(ServiceType.REMOTE_FILES) ?? null);
|
|
8
|
+
}
|
|
9
|
+
function normalizeOp(params) {
|
|
10
|
+
const candidate = (params.action ?? params.subaction ?? params.op ?? "")
|
|
11
|
+
.toString()
|
|
12
|
+
.toLowerCase();
|
|
13
|
+
return FILES_OPS.includes(candidate)
|
|
14
|
+
? candidate
|
|
15
|
+
: undefined;
|
|
16
|
+
}
|
|
17
|
+
function clampLimit(value, fallback) {
|
|
18
|
+
if (typeof value !== "number" || !Number.isFinite(value))
|
|
19
|
+
return fallback;
|
|
20
|
+
return Math.max(1, Math.min(100, Math.floor(value)));
|
|
21
|
+
}
|
|
22
|
+
function humanSize(bytes) {
|
|
23
|
+
if (bytes < 1024)
|
|
24
|
+
return `${bytes} B`;
|
|
25
|
+
if (bytes < 1024 * 1024)
|
|
26
|
+
return `${(bytes / 1024).toFixed(1)} KB`;
|
|
27
|
+
return `${(bytes / (1024 * 1024)).toFixed(1)} MB`;
|
|
28
|
+
}
|
|
29
|
+
function matchesQuery(file, query) {
|
|
30
|
+
const q = query.trim().toLowerCase();
|
|
31
|
+
if (!q)
|
|
32
|
+
return true;
|
|
33
|
+
return (file.fileName.toLowerCase().includes(q) ||
|
|
34
|
+
file.mimeType.toLowerCase().includes(q));
|
|
35
|
+
}
|
|
36
|
+
async function doList(runtime, params) {
|
|
37
|
+
const storage = getStorage(runtime);
|
|
38
|
+
if (!storage) {
|
|
39
|
+
return fail("File storage is not available.", "FILES_NO_SERVICE");
|
|
40
|
+
}
|
|
41
|
+
const all = (await storage.list()).sort((a, b) => b.createdAt - a.createdAt);
|
|
42
|
+
const filtered = params.query
|
|
43
|
+
? all.filter((file) => matchesQuery(file, params.query ?? ""))
|
|
44
|
+
: all;
|
|
45
|
+
const limit = clampLimit(params.limit, 20);
|
|
46
|
+
const top = filtered.slice(0, limit);
|
|
47
|
+
const text = top.length
|
|
48
|
+
? `Found ${filtered.length} file(s).${filtered.length > top.length ? ` Most recent ${top.length}:` : ""}\n${top
|
|
49
|
+
.map((file) => `- ${file.fileName} (${file.mimeType}, ${humanSize(file.size)}) ${file.url}`)
|
|
50
|
+
.join("\n")}`
|
|
51
|
+
: "No stored files match.";
|
|
52
|
+
return {
|
|
53
|
+
success: true,
|
|
54
|
+
text,
|
|
55
|
+
data: { files: top, total: filtered.length },
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
async function doGet(runtime, params) {
|
|
59
|
+
const storage = getStorage(runtime);
|
|
60
|
+
if (!storage) {
|
|
61
|
+
return fail("File storage is not available.", "FILES_NO_SERVICE");
|
|
62
|
+
}
|
|
63
|
+
const name = params.fileName?.trim();
|
|
64
|
+
if (!name) {
|
|
65
|
+
return fail("fileName is required for op:get.", "FILES_INVALID");
|
|
66
|
+
}
|
|
67
|
+
const url = storage.getUrl(name);
|
|
68
|
+
if (!url || !(await storage.exists(name))) {
|
|
69
|
+
return fail(`No stored file named ${name}.`, "FILES_NOT_FOUND");
|
|
70
|
+
}
|
|
71
|
+
const item = (await storage.list()).find((file) => file.fileName === name);
|
|
72
|
+
return {
|
|
73
|
+
success: true,
|
|
74
|
+
text: item
|
|
75
|
+
? `${name}: ${item.mimeType}, ${humanSize(item.size)} — ${url}`
|
|
76
|
+
: `${name} — ${url}`,
|
|
77
|
+
data: { file: item ?? { fileName: name, url } },
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
async function doDelete(runtime, params) {
|
|
81
|
+
const storage = getStorage(runtime);
|
|
82
|
+
if (!storage) {
|
|
83
|
+
return fail("File storage is not available.", "FILES_NO_SERVICE");
|
|
84
|
+
}
|
|
85
|
+
const name = params.fileName?.trim();
|
|
86
|
+
if (!name) {
|
|
87
|
+
return fail("fileName is required for op:delete.", "FILES_INVALID");
|
|
88
|
+
}
|
|
89
|
+
if (params.confirm !== true) {
|
|
90
|
+
return fail("Deleting a file requires confirm:true.", "FILES_CONFIRM_REQUIRED");
|
|
91
|
+
}
|
|
92
|
+
const deleted = await storage.delete(name);
|
|
93
|
+
return {
|
|
94
|
+
success: deleted,
|
|
95
|
+
text: deleted
|
|
96
|
+
? `Deleted ${name}.`
|
|
97
|
+
: `Could not delete ${name} (not found).`,
|
|
98
|
+
data: { deleted, fileName: name },
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* FILES action: gives the agent read/CRUD access to the content-addressed file
|
|
103
|
+
* store via {@link IFileStorageService}. op:list shows recent stored files
|
|
104
|
+
* (optional query/limit); op:get returns a file's details + served URL by
|
|
105
|
+
* fileName; op:delete removes a file (requires confirm:true).
|
|
106
|
+
*/
|
|
107
|
+
export const filesAction = {
|
|
108
|
+
name: "FILES",
|
|
109
|
+
contexts: ["documents", "agent_internal"],
|
|
110
|
+
roleGate: { minRole: "OWNER" },
|
|
111
|
+
similes: [
|
|
112
|
+
"LIST_FILES",
|
|
113
|
+
"RECENT_FILES",
|
|
114
|
+
"SHOW_FILES",
|
|
115
|
+
"BROWSE_FILES",
|
|
116
|
+
"GET_FILE",
|
|
117
|
+
"FIND_FILE",
|
|
118
|
+
"DELETE_FILE",
|
|
119
|
+
"REMOVE_FILE",
|
|
120
|
+
],
|
|
121
|
+
description: "Access stored files. op:list shows recent stored files (optional query/limit); op:get returns a file's details + served URL by fileName; op:delete removes a file (requires confirm:true).",
|
|
122
|
+
descriptionCompressed: "list/get/delete stored files; delete requires confirm:true",
|
|
123
|
+
validate: async () => true,
|
|
124
|
+
handler: async (runtime, _message, _state, options) => {
|
|
125
|
+
const params = (options?.parameters ??
|
|
126
|
+
{});
|
|
127
|
+
const op = normalizeOp(params);
|
|
128
|
+
if (!op) {
|
|
129
|
+
return fail(`op is required and must be one of ${FILES_OPS.join(", ")}.`, "FILES_INVALID");
|
|
130
|
+
}
|
|
131
|
+
try {
|
|
132
|
+
switch (op) {
|
|
133
|
+
case "list":
|
|
134
|
+
return await doList(runtime, params);
|
|
135
|
+
case "get":
|
|
136
|
+
return await doGet(runtime, params);
|
|
137
|
+
case "delete":
|
|
138
|
+
return await doDelete(runtime, params);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
catch (err) {
|
|
142
|
+
const msg = err instanceof Error ? err.message : String(err);
|
|
143
|
+
logger.warn(`[files:${op}] failed: ${msg}`);
|
|
144
|
+
return {
|
|
145
|
+
success: false,
|
|
146
|
+
text: `Failed to ${op} file(s): ${msg}`,
|
|
147
|
+
data: { error: `FILES_${op.toUpperCase()}_FAILED` },
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
parameters: [
|
|
152
|
+
{
|
|
153
|
+
name: "op",
|
|
154
|
+
description: "Operation: list | get | delete",
|
|
155
|
+
required: true,
|
|
156
|
+
schema: { type: "string", enum: [...FILES_OPS] },
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
name: "fileName",
|
|
160
|
+
description: "Stored filename (<sha256>.<ext>) — required for get/delete",
|
|
161
|
+
required: false,
|
|
162
|
+
schema: { type: "string" },
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
name: "query",
|
|
166
|
+
description: "Optional filter for op:list (matches filename or mime type substring)",
|
|
167
|
+
required: false,
|
|
168
|
+
schema: { type: "string" },
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
name: "limit",
|
|
172
|
+
description: "Max results for op:list (default 20, max 100)",
|
|
173
|
+
required: false,
|
|
174
|
+
schema: { type: "number" },
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
name: "confirm",
|
|
178
|
+
description: "Must be true to delete a file",
|
|
179
|
+
required: false,
|
|
180
|
+
schema: { type: "boolean" },
|
|
181
|
+
},
|
|
182
|
+
],
|
|
183
|
+
};
|
package/actions/index.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export * from "./compact-conversation.
|
|
2
|
-
export * from "./connector-resolver.
|
|
3
|
-
export * from "./contact.
|
|
4
|
-
export * from "./context-signal.
|
|
5
|
-
export * from "./context-signal-lexicon.
|
|
6
|
-
export * from "./database.
|
|
7
|
-
export * from "./extract-params.
|
|
8
|
-
export * from "./grounded-action-reply.
|
|
9
|
-
export * from "./logs.
|
|
10
|
-
export * from "./memories.
|
|
11
|
-
export * from "./page-action-groups.
|
|
12
|
-
export * from "./plugin.
|
|
13
|
-
export * from "./recent-conversation-texts.
|
|
14
|
-
export * from "./runtime.
|
|
15
|
-
export * from "./settings-actions.
|
|
16
|
-
export * from "./terminal.
|
|
17
|
-
export * from "./trigger.
|
|
1
|
+
export * from "./compact-conversation.js";
|
|
2
|
+
export * from "./connector-resolver.js";
|
|
3
|
+
export * from "./contact.js";
|
|
4
|
+
export * from "./context-signal.js";
|
|
5
|
+
export * from "./context-signal-lexicon.js";
|
|
6
|
+
export * from "./database.js";
|
|
7
|
+
export * from "./extract-params.js";
|
|
8
|
+
export * from "./grounded-action-reply.js";
|
|
9
|
+
export * from "./logs.js";
|
|
10
|
+
export * from "./memories.js";
|
|
11
|
+
export * from "./page-action-groups.js";
|
|
12
|
+
export * from "./plugin.js";
|
|
13
|
+
export * from "./recent-conversation-texts.js";
|
|
14
|
+
export * from "./runtime.js";
|
|
15
|
+
export * from "./settings-actions.js";
|
|
16
|
+
export * from "./terminal.js";
|
|
17
|
+
export * from "./trigger.js";
|
|
18
18
|
//# sourceMappingURL=index.d.ts.map
|
package/api/accounts-routes.d.ts
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
* powers.
|
|
26
26
|
*/
|
|
27
27
|
import type { RouteRequestContext } from "@elizaos/shared";
|
|
28
|
-
import type { ElizaConfig } from "../config/types.eliza.
|
|
28
|
+
import type { ElizaConfig } from "../config/types.eliza.js";
|
|
29
29
|
/** Test-only: drop the cached pool reference between tests. */
|
|
30
30
|
export declare function _resetAccountsRoutesPoolCache(): void;
|
|
31
31
|
export interface AccountsRouteContext extends RouteRequestContext {
|
package/api/accounts-routes.js
CHANGED
|
@@ -39,7 +39,7 @@ async function getPool() {
|
|
|
39
39
|
// String-literal dynamic import — see comment in
|
|
40
40
|
// ../runtime/eliza.ts#importAppCoreRuntime for the AOSP bundle issue.
|
|
41
41
|
const mod = (await import(
|
|
42
|
-
/* @vite-ignore */ "@elizaos/app-core"));
|
|
42
|
+
/* @vite-ignore */ "@elizaos/app-core/account-pool"));
|
|
43
43
|
return mod.getDefaultAccountPool();
|
|
44
44
|
})();
|
|
45
45
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AgentRuntime, RouteRequestMeta, UUID } from "@elizaos/core";
|
|
2
2
|
import type { RouteHelpers } from "@elizaos/shared";
|
|
3
|
-
import type { AutonomousConfigLike } from "../types/config-like.
|
|
3
|
+
import type { AutonomousConfigLike } from "../types/config-like.js";
|
|
4
4
|
type AgentStateStatus = "not_started" | "starting" | "running" | "paused" | "stopped" | "restarting" | "error";
|
|
5
5
|
export interface AgentAdminRouteState {
|
|
6
6
|
runtime: AgentRuntime | null;
|
|
@@ -9,7 +9,7 @@ async function importAppCoreRuntime() {
|
|
|
9
9
|
// ../runtime/eliza.ts#importAppCoreRuntime for the AOSP bundle issue
|
|
10
10
|
// that requires Bun.build to statically follow this specifier.
|
|
11
11
|
return import(
|
|
12
|
-
/* webpackIgnore: true */ "@elizaos/app-core");
|
|
12
|
+
/* webpackIgnore: true */ "@elizaos/app-core/services/vault-mirror");
|
|
13
13
|
}
|
|
14
14
|
function resolveDefaultAgentName(config) {
|
|
15
15
|
const ui = config.ui;
|
|
@@ -84,7 +84,7 @@ export async function handleAgentAdminRoutes(ctx) {
|
|
|
84
84
|
if (method === "POST" && pathname === "/api/agent/reset") {
|
|
85
85
|
try {
|
|
86
86
|
if (state.runtime) {
|
|
87
|
-
await state.runtime.stop();
|
|
87
|
+
await state.runtime.stop({ fast: true });
|
|
88
88
|
state.runtime = null;
|
|
89
89
|
}
|
|
90
90
|
const stateDir = resolveStateDir();
|
package/api/agent-model.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AgentRuntime } from "@elizaos/core";
|
|
2
|
-
import type { ElizaConfig } from "../config/config.
|
|
2
|
+
import type { ElizaConfig } from "../config/config.js";
|
|
3
3
|
export declare function detectRuntimeModel(runtime: AgentRuntime | null, config?: Pick<ElizaConfig, "deploymentTarget" | "serviceRouting" | "agents">): string | undefined;
|
|
4
4
|
export declare function resolveProviderFromModel(model: string): string | null;
|
|
5
5
|
//# sourceMappingURL=agent-model.d.ts.map
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Agent self-status and ERC-8004 registry inline routes.
|
|
3
|
-
*
|
|
4
|
-
* Extracted from server.ts to reduce file size.
|
|
5
3
|
*/
|
|
6
4
|
import type http from "node:http";
|
|
7
5
|
import type { ReadJsonBodyOptions } from "@elizaos/core";
|
|
8
|
-
import type { ElizaConfig } from "../config/config.
|
|
6
|
+
import type { ElizaConfig } from "../config/config.js";
|
|
9
7
|
interface RegistryServiceStatic {
|
|
10
8
|
defaultCapabilitiesHash: () => string;
|
|
11
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-status-routes.d.ts","sourceRoot":"","sources":["../../src/api/agent-status-routes.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"agent-status-routes.d.ts","sourceRoot":"","sources":["../../src/api/agent-status-routes.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAMzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAMvD,UAAU,qBAAqB;IAC7B,uBAAuB,EAAE,MAAM,MAAM,CAAC;CACvC;AAmCD,UAAU,qBAAqB;IAC7B,cAAc,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;CACvD;AAED,MAAM,WAAW,oBAAoB;IACnC,kBAAkB,EAAE,MAAM;QACxB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;QAC1B,aAAa,EAAE,MAAM,GA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tension = (this && this.__rewriteRelativeImportExtension) || function (path, preserveJsx) {
|
|
7
5
|
if (typeof path === "string" && /^\.\.?\//.test(path)) {
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Approval / pending-user-action routes.
|
|
3
|
+
*
|
|
4
|
+
* `GET /api/approvals` is the canonical read surface for work that is blocked
|
|
5
|
+
* on the user. It aggregates legacy owner approval rows, task-based approval
|
|
6
|
+
* records, and pending planner prompts into the shared `PendingUserAction`
|
|
7
|
+
* contract so clients render one list without knowing producer internals.
|
|
8
|
+
*/
|
|
9
|
+
import type http from "node:http";
|
|
10
|
+
import { type PendingUserAction, type RouteHelpers, type Task } from "@elizaos/core";
|
|
11
|
+
import type { ApprovalAction, ApprovalRequest, ApprovalRequestState } from "../services/approval/types.js";
|
|
12
|
+
interface ApprovalRouteRuntime {
|
|
13
|
+
agentId?: string;
|
|
14
|
+
getService: (type: string) => unknown;
|
|
15
|
+
}
|
|
16
|
+
export interface ApprovalRouteState {
|
|
17
|
+
runtime: ApprovalRouteRuntime | null;
|
|
18
|
+
}
|
|
19
|
+
export interface ApprovalRequestDto {
|
|
20
|
+
id: string;
|
|
21
|
+
state: ApprovalRequestState;
|
|
22
|
+
requestedBy: string;
|
|
23
|
+
subjectUserId: string;
|
|
24
|
+
action: ApprovalAction;
|
|
25
|
+
payload: ApprovalRequest["payload"];
|
|
26
|
+
channel: ApprovalRequest["channel"];
|
|
27
|
+
reason: string;
|
|
28
|
+
expiresAt: string;
|
|
29
|
+
resolvedAt: string | null;
|
|
30
|
+
resolvedBy: string | null;
|
|
31
|
+
resolutionReason: string | null;
|
|
32
|
+
createdAt: string;
|
|
33
|
+
updatedAt: string;
|
|
34
|
+
}
|
|
35
|
+
export declare function approvalTaskToPendingAction(task: Task): PendingUserAction | null;
|
|
36
|
+
export declare function handleApprovalRoute(req: http.IncomingMessage, res: http.ServerResponse, pathname: string, method: string, state: ApprovalRouteState, helpers: RouteHelpers): Promise<boolean>;
|
|
37
|
+
export {};
|
|
38
|
+
//# sourceMappingURL=approval-routes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"approval-routes.d.ts","sourceRoot":"","sources":["../../src/api/approval-routes.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAEL,KAAK,iBAAiB,EAEtB,KAAK,YAAY,EAEjB,KAAK,IAAI,EAEV,MAAM,eAAe,CAAC;AAEvB,OAAO,KAAK,EACV,cAAc,EAGd,eAAe,EACf,oBAAoB,EACrB,MAAM,+BAA+B,CAAC;AAGvC,UAAU,oBAAoB;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;CACvC;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,oBAAoB,GAAG,IAAI,CAAC;CACtC;AAgBD,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,oBAAoB,CAAC;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,cAAc,CAAC;IACvB,OAAO,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC;IACpC,OAAO,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAgLD,wBAAgB,2BAA2B,CACzC,IAAI,EAAE,IAAI,GACT,iBAAiB,GAAG,IAAI,CAgB1B;AAeD,wBAAsB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