@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
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
interface RuntimeSettingSource {
|
|
2
|
+
getSetting(key: string): unknown;
|
|
3
|
+
}
|
|
4
|
+
type EnvSource = Record<string, string | undefined>;
|
|
5
|
+
export declare function shouldLoadRemoteCodingRunnerForBoot(runtime: RuntimeSettingSource, env?: EnvSource): boolean;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=remote-coding-runner-gate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remote-coding-runner-gate.d.ts","sourceRoot":"","sources":["../../src/runtime/remote-coding-runner-gate.ts"],"names":[],"mappings":"AAAA,UAAU,oBAAoB;IAC5B,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CAClC;AAED,KAAK,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;AAoCpD,wBAAgB,mCAAmC,CACjD,OAAO,EAAE,oBAAoB,EAC7B,GAAG,GAAE,SAAuB,GAC3B,OAAO,CAQT"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
const RUNNER_SETTING_KEYS = [
|
|
2
|
+
"ELIZA_CODING_REMOTE_RUNNER",
|
|
3
|
+
"ELIZA_REMOTE_RUNNER",
|
|
4
|
+
];
|
|
5
|
+
const REMOTE_RUNNER_URL_KEYS = [
|
|
6
|
+
"ELIZA_CLOUD_SANDBOX_BASE_URL",
|
|
7
|
+
"ELIZA_CLOUD_REMOTE_RUNNER_URL",
|
|
8
|
+
"ELIZA_CLOUD_RUNNER_URL",
|
|
9
|
+
"ELIZA_HOME_REMOTE_RUNNER_URL",
|
|
10
|
+
"ELIZA_HOME_RUNNER_URL",
|
|
11
|
+
];
|
|
12
|
+
function readSetting(runtime, env, key) {
|
|
13
|
+
const fromRuntime = runtime.getSetting(key);
|
|
14
|
+
if (typeof fromRuntime === "string" && fromRuntime.trim().length > 0) {
|
|
15
|
+
return fromRuntime.trim();
|
|
16
|
+
}
|
|
17
|
+
const fromEnv = env[key];
|
|
18
|
+
if (typeof fromEnv === "string" && fromEnv.trim().length > 0) {
|
|
19
|
+
return fromEnv.trim();
|
|
20
|
+
}
|
|
21
|
+
return undefined;
|
|
22
|
+
}
|
|
23
|
+
function truthySetting(value) {
|
|
24
|
+
if (!value)
|
|
25
|
+
return false;
|
|
26
|
+
return ["1", "true", "yes", "on"].includes(value.toLowerCase());
|
|
27
|
+
}
|
|
28
|
+
export function shouldLoadRemoteCodingRunnerForBoot(runtime, env = process.env) {
|
|
29
|
+
if (RUNNER_SETTING_KEYS.some((key) => readSetting(runtime, env, key))) {
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
if (truthySetting(readSetting(runtime, env, "ELIZA_E2B_REMOTE_RUNNER"))) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
return REMOTE_RUNNER_URL_KEYS.some((key) => readSetting(runtime, env, key));
|
|
36
|
+
}
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
* }
|
|
15
15
|
*/
|
|
16
16
|
import { type Plugin, roleAction } from "@elizaos/core";
|
|
17
|
-
export { rolesProvider } from "./provider.
|
|
18
|
-
export type { ConnectorAdminWhitelist, RoleCheckResult, RoleGrantSource, RoleName, RolesConfig, RolesWorldMetadata, } from "./types.
|
|
19
|
-
export { ROLE_RANK } from "./types.
|
|
20
|
-
export { canModifyRole, checkSenderPrivateAccess, checkSenderRole, getConfiguredOwnerEntityIds, getConnectorAdminWhitelist, getEntityRole, hasConfiguredCanonicalOwner, matchEntityToConnectorAdminWhitelist, normalizeRole, resolveCanonicalOwnerId, resolveCanonicalOwnerIdForMessage, resolveEntityRole, resolveWorldForMessage, setConnectorAdminWhitelist, setEntityRole, } from "./utils.
|
|
17
|
+
export { rolesProvider } from "./provider.js";
|
|
18
|
+
export type { ConnectorAdminWhitelist, RoleCheckResult, RoleGrantSource, RoleName, RolesConfig, RolesWorldMetadata, } from "./types.js";
|
|
19
|
+
export { ROLE_RANK } from "./types.js";
|
|
20
|
+
export { canModifyRole, checkSenderPrivateAccess, checkSenderRole, getConfiguredOwnerEntityIds, getConnectorAdminWhitelist, getEntityRole, hasConfiguredCanonicalOwner, matchEntityToConnectorAdminWhitelist, normalizeRole, resolveCanonicalOwnerId, resolveCanonicalOwnerIdForMessage, resolveEntityRole, resolveWorldForMessage, setConnectorAdminWhitelist, setEntityRole, } from "./utils.js";
|
|
21
21
|
export { roleAction };
|
|
22
22
|
declare const rolesPlugin: Plugin;
|
|
23
23
|
export default rolesPlugin;
|
package/runtime/roles.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./roles/src/index.
|
|
2
|
-
export { default } from "./roles/src/index.
|
|
1
|
+
export * from "./roles/src/index.js";
|
|
2
|
+
export { default } from "./roles/src/index.js";
|
|
3
3
|
//# sourceMappingURL=roles.d.ts.map
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* config unchanged when the env var is absent or unparseable,
|
|
15
15
|
* so it is inert for every non-provisioned runtime.
|
|
16
16
|
*/
|
|
17
|
-
import type { ElizaConfig } from "../config/config.
|
|
17
|
+
import type { ElizaConfig } from "../config/config.js";
|
|
18
18
|
/**
|
|
19
19
|
* Whether this container should own (connect directly to) its platform
|
|
20
20
|
* connectors. Default false: the gateway owns the connection and forwards
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* forces this — a process-only cache could rely on the surrounding
|
|
15
15
|
* trajectory filter, but a shared on-disk store cannot.
|
|
16
16
|
*/
|
|
17
|
-
import type { CacheableToolDescriptor, PrivacyRedactor, ToolArgs, ToolCacheEntry, ToolOutput } from "./types.
|
|
17
|
+
import type { CacheableToolDescriptor, PrivacyRedactor, ToolArgs, ToolCacheEntry, ToolOutput } from "./types.js";
|
|
18
18
|
export interface ToolCallCacheOptions {
|
|
19
19
|
/** Root directory for the on-disk tier. Defaults to `<stateDir>/tool-cache`. */
|
|
20
20
|
diskRoot?: string;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* already cross network or shell boundaries, so a small fs touch is in the
|
|
10
10
|
* noise. Writes go through the privacy redactor before serialisation.
|
|
11
11
|
*/
|
|
12
|
-
import type { PrivacyRedactor, ToolCacheEntry } from "./types.
|
|
12
|
+
import type { PrivacyRedactor, ToolCacheEntry } from "./types.js";
|
|
13
13
|
export declare class DiskStore {
|
|
14
14
|
private readonly root;
|
|
15
15
|
private readonly redact;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export type { ToolCallCacheOptions } from "./cache.
|
|
2
|
-
export { ToolCallCache } from "./cache.
|
|
3
|
-
export { buildCacheKey, canonicalizeJson } from "./key.
|
|
4
|
-
export { defaultPrivacyRedactor } from "./redact.
|
|
5
|
-
export { CACHEABLE_TOOL_REGISTRY, isCacheable, resolveToolDescriptor, } from "./registry.
|
|
6
|
-
export type { CacheableToolDescriptor, PrivacyRedactor, ToolArgs, ToolCacheEntry, ToolOutput, } from "./types.
|
|
1
|
+
export type { ToolCallCacheOptions } from "./cache.js";
|
|
2
|
+
export { ToolCallCache } from "./cache.js";
|
|
3
|
+
export { buildCacheKey, canonicalizeJson } from "./key.js";
|
|
4
|
+
export { defaultPrivacyRedactor } from "./redact.js";
|
|
5
|
+
export { CACHEABLE_TOOL_REGISTRY, isCacheable, resolveToolDescriptor, } from "./registry.js";
|
|
6
|
+
export type { CacheableToolDescriptor, PrivacyRedactor, ToolArgs, ToolCacheEntry, ToolOutput, } from "./types.js";
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* argument shapes (e.g. `{a:1,b:2}` and `{b:2,a:1}`) collide on the same
|
|
6
6
|
* key. The final key is `sha256(toolName + ':' + canonicalJson)`.
|
|
7
7
|
*/
|
|
8
|
-
import type { ToolArgs } from "./types.
|
|
8
|
+
import type { ToolArgs } from "./types.js";
|
|
9
9
|
export declare function canonicalizeJson(value: unknown): string;
|
|
10
10
|
export declare function buildCacheKey(toolName: string, args: ToolArgs): string;
|
|
11
11
|
//# sourceMappingURL=key.d.ts.map
|
|
@@ -12,6 +12,6 @@
|
|
|
12
12
|
* - environment-variable values whose key name looks like a secret
|
|
13
13
|
* - geographic coordinates (matching the Location-plugin patterns)
|
|
14
14
|
*/
|
|
15
|
-
import type { PrivacyRedactor } from "./types.
|
|
15
|
+
import type { PrivacyRedactor } from "./types.js";
|
|
16
16
|
export declare const defaultPrivacyRedactor: PrivacyRedactor;
|
|
17
17
|
//# sourceMappingURL=redact.d.ts.map
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* against a working tree) get short TTLs; tools whose results are stable
|
|
12
12
|
* across days (search results, immutable web archives) get longer ones.
|
|
13
13
|
*/
|
|
14
|
-
import type { CacheableToolDescriptor } from "./types.
|
|
14
|
+
import type { CacheableToolDescriptor } from "./types.js";
|
|
15
15
|
export declare const CACHEABLE_TOOL_REGISTRY: Record<string, CacheableToolDescriptor>;
|
|
16
16
|
export declare function resolveToolDescriptor(name: string, overrides?: Partial<Pick<CacheableToolDescriptor, "ttlMs" | "version">>): CacheableToolDescriptor;
|
|
17
17
|
export declare function isCacheable(name: string): boolean;
|
|
@@ -4,16 +4,15 @@
|
|
|
4
4
|
* Wraps the `handler` of every registered Action that the cache registry
|
|
5
5
|
* marks as `cacheable: true` so the result of a (toolName, args) pair is
|
|
6
6
|
* served from the two-tier `ToolCallCache` instead of re-running the
|
|
7
|
-
* underlying tool. Side-effect tools and any tool not
|
|
8
|
-
*
|
|
7
|
+
* underlying tool. Side-effect tools and any tool not in the cacheable-tool
|
|
8
|
+
* registry pass through unchanged.
|
|
9
9
|
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* config block (see `zod-schema.agent-runtime.ts`).
|
|
10
|
+
* `plugin-lifecycle.ts` calls `wrapActionWithCache(action, cache, cfg)` per
|
|
11
|
+
* action after building the cache from config. Per-tool TTL overrides come
|
|
12
|
+
* from the `tools.cache` config block (see `zod-schema.agent-runtime.ts`).
|
|
14
13
|
*/
|
|
15
14
|
import type { Action } from "@elizaos/core";
|
|
16
|
-
import {
|
|
15
|
+
import { ToolCallCache } from "./tool-call-cache/index.js";
|
|
17
16
|
interface PerToolOverride {
|
|
18
17
|
ttlMinutes?: number;
|
|
19
18
|
version?: string;
|
|
@@ -34,6 +33,5 @@ export declare function createToolCallCacheFromConfig(cfg: ToolCacheConfig | und
|
|
|
34
33
|
* Non-cacheable actions are returned unchanged.
|
|
35
34
|
*/
|
|
36
35
|
export declare function wrapActionWithCache(action: Action, cache: ToolCallCache, cfg: ToolCacheConfig | undefined): Action;
|
|
37
|
-
export
|
|
38
|
-
export { CACHEABLE_TOOL_REGISTRY };
|
|
36
|
+
export {};
|
|
39
37
|
//# sourceMappingURL=tool-call-cache-wrapper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-call-cache-wrapper.d.ts","sourceRoot":"","sources":["../../src/runtime/tool-call-cache-wrapper.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"tool-call-cache-wrapper.d.ts","sourceRoot":"","sources":["../../src/runtime/tool-call-cache-wrapper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EACV,MAAM,EAIP,MAAM,eAAe,CAAC;AACvB,OAAO,EAKL,aAAa,EAEd,MAAM,4BAA4B,CAAC;AAEpC,UAAU,eAAe;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;CAC3C;AAED;;;GAGG;AACH,wBAAgB,6BAA6B,CAC3C,GAAG,EAAE,eAAe,GAAG,SAAS,GAC/B,aAAa,GAAG,IAAI,CAOtB;AAyBD;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,aAAa,EACpB,GAAG,EAAE,eAAe,GAAG,SAAS,GAC/B,MAAM,CAwBR"}
|
|
@@ -4,15 +4,14 @@
|
|
|
4
4
|
* Wraps the `handler` of every registered Action that the cache registry
|
|
5
5
|
* marks as `cacheable: true` so the result of a (toolName, args) pair is
|
|
6
6
|
* served from the two-tier `ToolCallCache` instead of re-running the
|
|
7
|
-
* underlying tool. Side-effect tools and any tool not
|
|
8
|
-
*
|
|
7
|
+
* underlying tool. Side-effect tools and any tool not in the cacheable-tool
|
|
8
|
+
* registry pass through unchanged.
|
|
9
9
|
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* config block (see `zod-schema.agent-runtime.ts`).
|
|
10
|
+
* `plugin-lifecycle.ts` calls `wrapActionWithCache(action, cache, cfg)` per
|
|
11
|
+
* action after building the cache from config. Per-tool TTL overrides come
|
|
12
|
+
* from the `tools.cache` config block (see `zod-schema.agent-runtime.ts`).
|
|
14
13
|
*/
|
|
15
|
-
import {
|
|
14
|
+
import { defaultPrivacyRedactor, isCacheable, resolveToolDescriptor, ToolCallCache, } from "./tool-call-cache/index.js";
|
|
16
15
|
/**
|
|
17
16
|
* Build a ToolCallCache from agent runtime config. Returns null when the
|
|
18
17
|
* cache is disabled so callers can skip the wrap-step entirely.
|
|
@@ -66,7 +65,3 @@ export function wrapActionWithCache(action, cache, cfg) {
|
|
|
66
65
|
};
|
|
67
66
|
return { ...action, handler: wrapped };
|
|
68
67
|
}
|
|
69
|
-
export function wrapActionsWithCache(actions, cache, cfg) {
|
|
70
|
-
return actions.map((a) => wrapActionWithCache(a, cache, cfg));
|
|
71
|
-
}
|
|
72
|
-
export { CACHEABLE_TOOL_REGISTRY };
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* Re-exports archive helpers and hosts the shared canonical list/detail/export
|
|
5
5
|
* shaping used by the agent runtime trajectory logger implementations.
|
|
6
6
|
*/
|
|
7
|
-
import type { Trajectory, TrajectoryExportOptions, TrajectoryExportResult, TrajectoryListItem } from "../types/trajectory.
|
|
8
|
-
import { type PersistedTrajectory } from "./trajectory-internals.
|
|
7
|
+
import type { Trajectory, TrajectoryExportOptions, TrajectoryExportResult, TrajectoryListItem } from "../types/trajectory.js";
|
|
8
|
+
import { type PersistedTrajectory } from "./trajectory-internals.js";
|
|
9
9
|
export type RuntimeTrajectoryExportOptions = TrajectoryExportOptions;
|
|
10
10
|
export declare function trajectoryRowToListItem(row: unknown, agentId: string): TrajectoryListItem | null;
|
|
11
11
|
export declare function persistedTrajectoryToDetailRecord(persisted: PersistedTrajectory, agentId: string): Trajectory;
|
|
@@ -14,5 +14,5 @@ export declare function exportPersistedTrajectories(params: {
|
|
|
14
14
|
persistedTrajectories: PersistedTrajectory[];
|
|
15
15
|
options: RuntimeTrajectoryExportOptions;
|
|
16
16
|
}): TrajectoryExportResult;
|
|
17
|
-
export { ensureArchiveDirectory, resolvePreferredTrajectoryArchiveRoot, resolveTrajectoryArchiveDirectory, stringifyArchiveRow, TRAJECTORY_ARCHIVE_DIRNAME, toArchiveSafeTimestamp, writeCompressedJsonlRows, } from "./trajectory-internals.
|
|
17
|
+
export { ensureArchiveDirectory, resolvePreferredTrajectoryArchiveRoot, resolveTrajectoryArchiveDirectory, stringifyArchiveRow, TRAJECTORY_ARCHIVE_DIRNAME, toArchiveSafeTimestamp, writeCompressedJsonlRows, } from "./trajectory-internals.js";
|
|
18
18
|
//# sourceMappingURL=trajectory-export.d.ts.map
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { type IAgentRuntime } from "@elizaos/core";
|
|
9
9
|
import { asRecord } from "@elizaos/shared";
|
|
10
10
|
export { asRecord };
|
|
11
|
-
import { type TrajectoryLlmCall, type TrajectoryProviderAccess, type TrajectoryStatus, type TrajectoryStep, type TrajectoryStepKind } from "../types/trajectory.
|
|
11
|
+
import { type TrajectoryLlmCall, type TrajectoryProviderAccess, type TrajectoryStatus, type TrajectoryStep, type TrajectoryStepKind } from "../types/trajectory.js";
|
|
12
12
|
export type RuntimeDb = {
|
|
13
13
|
execute: (query: {
|
|
14
14
|
queryChunks: object[];
|
|
@@ -44,6 +44,7 @@ export type PersistedLlmCall = TrajectoryLlmCall & {
|
|
|
44
44
|
response: string;
|
|
45
45
|
temperature: number;
|
|
46
46
|
maxTokens: number;
|
|
47
|
+
maxTokensOmitted?: boolean;
|
|
47
48
|
purpose: string;
|
|
48
49
|
actionType: string;
|
|
49
50
|
latencyMs: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trajectory-internals.d.ts","sourceRoot":"","sources":["../../src/runtime/trajectory-internals.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AASH,OAAO,EAGL,KAAK,aAAa,EAInB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,OAAO,EAAE,QAAQ,EAAE,CAAC;AAEpB,OAAO,EAEL,K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mBAAmB,GAAG,IAAI,CAAC,CA0BrC;AAgFD,wBAAsB,sBAAsB,CAC1C,OAAO,EAAE,aAAa,EACtB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAAC,CA4BrC;AAED,wBAAsB,cAAc,CAClC,OAAO,EAAE,aAAa,EACtB,UAAU,EAAE,mBAAmB,GAC9B,OAAO,CAAC,OAAO,CAAC,CA8NlB;AA4DD;;GAEG;AACH,wBAAgB,iCAAiC,CAC/C,OAAO,EAAE,OAAO,GACf,6BAA6B,GAAG,SAAS,CAY3C;AAMD,wBAAgB,qCAAqC,IAAI,MAAM,CAQ9D;AAED,wBAAsB,sBAAsB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAEvE;AAED,wBAAsB,iCAAiC,IAAI,OAAO,CAAC,MAAM,CAAC,CAiBzE;AAED,wBAAgB,sBAAsB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAEnE;AAED,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAIxE;AAED,wBAAsB,wBAAwB,CAC5C,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,GAC9B,OAAO,CAAC,IAAI,CAAC,CAaf;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,sCAAsC,CACpD,GAAG,GAAE,MAAM,CAAC,UAAwB,GACnC,OAAO,CAWT;AAqBD,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAQ5D"}
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
* The legacy `TRAJECTORY_STEP_SCRIPT_MAX_CHARS=4096` cap remains
|
|
23
23
|
* applied to the JSONB fallback.
|
|
24
24
|
*/
|
|
25
|
-
export { computeBySource, extractInsightsFromResponse, extractRows, flushObservationBuffer, pushChatExchange, readOrchestratorTrajectoryContext, shouldEnableTrajectoryLoggingByDefault, shouldRunObservationExtraction, truncateField, truncateRecord, } from "./trajectory-internals.
|
|
26
|
-
export { loadPersistedTrajectoryRows } from "./trajectory-query.
|
|
27
|
-
export { DEFAULT_GET_STEPS_LIMIT, getSteps, loadAllStepsForTrajectory, MAX_GET_STEPS_LIMIT, type TrajectoryStepsPage, } from "./trajectory-steps-reader.
|
|
28
|
-
export { clearAllSteps, deleteStepsForTrajectories, replaceStepsForTrajectory, upsertStep, } from "./trajectory-steps-writer.
|
|
29
|
-
export { annotateTrajectoryStep, clearPersistedTrajectoryRows, completeTrajectoryStepInDatabase, createDatabaseTrajectoryLogger, DatabaseTrajectoryLogger, deletePersistedTrajectoryRows, flushTrajectoryWrites, installDatabaseTrajectoryLogger, pruneOldTrajectories, startTrajectoryStepInDatabase, } from "./trajectory-storage.
|
|
25
|
+
export { computeBySource, extractInsightsFromResponse, extractRows, flushObservationBuffer, pushChatExchange, readOrchestratorTrajectoryContext, shouldEnableTrajectoryLoggingByDefault, shouldRunObservationExtraction, truncateField, truncateRecord, } from "./trajectory-internals.js";
|
|
26
|
+
export { loadPersistedTrajectoryRows } from "./trajectory-query.js";
|
|
27
|
+
export { DEFAULT_GET_STEPS_LIMIT, getSteps, loadAllStepsForTrajectory, MAX_GET_STEPS_LIMIT, type TrajectoryStepsPage, } from "./trajectory-steps-reader.js";
|
|
28
|
+
export { clearAllSteps, deleteStepsForTrajectories, replaceStepsForTrajectory, upsertStep, } from "./trajectory-steps-writer.js";
|
|
29
|
+
export { annotateTrajectoryStep, clearPersistedTrajectoryRows, completeTrajectoryStepInDatabase, createDatabaseTrajectoryLogger, DatabaseTrajectoryLogger, deletePersistedTrajectoryRows, flushTrajectoryWrites, installDatabaseTrajectoryLogger, pruneOldTrajectories, startTrajectoryStepInDatabase, } from "./trajectory-storage.js";
|
|
30
30
|
//# sourceMappingURL=trajectory-persistence.d.ts.map
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* `trajectories.steps_json`. Scripts are no longer capped at 4096 chars.
|
|
9
9
|
*/
|
|
10
10
|
import type { IAgentRuntime } from "@elizaos/core";
|
|
11
|
-
import type { PersistedStep } from "./trajectory-internals.
|
|
11
|
+
import type { PersistedStep } from "./trajectory-internals.js";
|
|
12
12
|
export interface TrajectoryStepsPage {
|
|
13
13
|
steps: PersistedStep[];
|
|
14
14
|
total: number;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* to inline JSON storage).
|
|
11
11
|
*/
|
|
12
12
|
import type { IAgentRuntime } from "@elizaos/core";
|
|
13
|
-
import { type PersistedStep } from "./trajectory-internals.
|
|
13
|
+
import { type PersistedStep } from "./trajectory-internals.js";
|
|
14
14
|
/**
|
|
15
15
|
* Upsert a single step row. Idempotent on `id` (== step.stepId).
|
|
16
16
|
*/
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
* logger, and the DatabaseTrajectoryLogger service class.
|
|
6
6
|
*/
|
|
7
7
|
import { type IAgentRuntime, Service } from "@elizaos/core";
|
|
8
|
-
import type { Trajectory, TrajectoryExportResult, TrajectoryListOptions, TrajectoryListResult, TrajectorySkillInvocation, TrajectoryStatus, TrajectoryStepKind } from "../types/trajectory.
|
|
9
|
-
import { type RuntimeTrajectoryExportOptions } from "./trajectory-export.
|
|
10
|
-
import { type CompleteStepOptions, type StartStepOptions } from "./trajectory-internals.
|
|
11
|
-
export type { CompleteStepOptions, StartStepOptions, } from "./trajectory-internals.
|
|
8
|
+
import type { Trajectory, TrajectoryExportResult, TrajectoryListOptions, TrajectoryListResult, TrajectorySkillInvocation, TrajectoryStatus, TrajectoryStepKind } from "../types/trajectory.js";
|
|
9
|
+
import { type RuntimeTrajectoryExportOptions } from "./trajectory-export.js";
|
|
10
|
+
import { type CompleteStepOptions, type StartStepOptions } from "./trajectory-internals.js";
|
|
11
|
+
export type { CompleteStepOptions, StartStepOptions, } from "./trajectory-internals.js";
|
|
12
12
|
export declare function installDatabaseTrajectoryLogger(runtime: IAgentRuntime): Promise<void>;
|
|
13
13
|
export declare function startTrajectoryStepInDatabase({ runtime, stepId, source, metadata, }: StartStepOptions): Promise<boolean>;
|
|
14
14
|
/**
|
|
@@ -41,7 +41,20 @@ export interface ActiveViewContext {
|
|
|
41
41
|
* so the awareness block degrades gracefully to "use list-elements".
|
|
42
42
|
*/
|
|
43
43
|
elements?: readonly ActiveViewElement[];
|
|
44
|
+
/**
|
|
45
|
+
* ISO timestamp of the most recent switch INTO this view, and who drove it.
|
|
46
|
+
* Carried from the navigate route so Stage-1 can acknowledge a just-happened
|
|
47
|
+
* switch (#8788). Absent when the view was not freshly switched.
|
|
48
|
+
*/
|
|
49
|
+
switchedAt?: string;
|
|
50
|
+
source?: "agent" | "user";
|
|
44
51
|
}
|
|
52
|
+
/**
|
|
53
|
+
* A view switch is "fresh" (worth acknowledging on the immediately-following
|
|
54
|
+
* turn) for this window. Kept in lockstep with VIEW_SWITCH_FRESH_MS in
|
|
55
|
+
* `views-routes.ts`.
|
|
56
|
+
*/
|
|
57
|
+
export declare const ACTIVE_VIEW_SWITCH_FRESH_MS = 15000;
|
|
45
58
|
export declare function setActiveViewContext(view: ActiveViewContext | null): void;
|
|
46
59
|
export declare function getActiveViewContext(): ActiveViewContext | null;
|
|
47
60
|
export declare function clearActiveViewContext(): void;
|
|
@@ -83,13 +96,13 @@ export declare function setActiveViewElements(viewId: string, elements: readonly
|
|
|
83
96
|
* element-controllable) when that view is the foreground surface. Names
|
|
84
97
|
* confirmed registered in each plugin's actions/ source; plugin-conditional like
|
|
85
98
|
* the rest (a missing-plugin skip when not loaded). Sources:
|
|
86
|
-
* calendar —
|
|
87
|
-
* health —
|
|
88
|
-
* focus —
|
|
99
|
+
* calendar — PA-registered calendar actions backed by plugin-calendar
|
|
100
|
+
* health — PA-registered actions built from plugin-health factories
|
|
101
|
+
* focus — PA-registered BLOCK umbrella backed by plugin-blocker;
|
|
89
102
|
* list_active / release are subactions of it, not standalone actions)
|
|
90
|
-
* finances —
|
|
103
|
+
* finances — PA-registered OWNER_FINANCES backed by plugin-finances
|
|
91
104
|
* inbox — plugins/plugin-inbox/src/actions/inbox (literal name: "INBOX")
|
|
92
|
-
* goals —
|
|
105
|
+
* goals — plugin-goals owns OWNER_GOALS; PA owns routines/reminders/alarms
|
|
93
106
|
* todos — plugins/plugin-personal-assistant/src/actions/owner-surfaces (OWNER_TODOS)
|
|
94
107
|
* lifeops — plugins/plugin-personal-assistant/src/actions (PERSONAL_ASSISTANT)
|
|
95
108
|
* relationships — plugins/plugin-relationships/src/actions/entity.ts
|
|
@@ -111,16 +124,6 @@ export declare function viewScopedActionNames(viewId: string | null | undefined)
|
|
|
111
124
|
export declare function validateViewActionMap(registeredActions: string[], logger?: {
|
|
112
125
|
warn: (msg: string) => void;
|
|
113
126
|
}): void;
|
|
114
|
-
/**
|
|
115
|
-
* Registered view ids that have NO domain-action affinity entry in
|
|
116
|
-
* VIEW_ACTION_MAP. These views are still fully agent-controllable through the
|
|
117
|
-
* universal agent-surface (`useAgentElement` click/fill/etc.), but their domain
|
|
118
|
-
* actions are not upweighted in the planner prompt when the view is foreground —
|
|
119
|
-
* so a `documents`/`messages`/`phone` view's domain action competes with every
|
|
120
|
-
* other action instead of being kept at full param detail. Pure; the caller
|
|
121
|
-
* supplies the live registry view ids. (#8798)
|
|
122
|
-
*/
|
|
123
|
-
export declare function findViewsWithoutActionAffinity(registeredViewIds: Iterable<string>): string[];
|
|
124
127
|
/**
|
|
125
128
|
* Completeness sibling of {@link validateViewActionMap}: where that flags a
|
|
126
129
|
* mapped action name that no longer exists, this flags a *registered view* that
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-action-affinity.d.ts","sourceRoot":"","sources":["../../src/runtime/view-action-affinity.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH;;;;;GAKG;AACH,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,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16
16
|
*/
|
|
17
17
|
/** Cap on elements rendered into the awareness block to bound prompt growth. */
|
|
18
18
|
export const ACTIVE_VIEW_ELEMENT_RENDER_CAP = 40;
|
|
19
|
+
/**
|
|
20
|
+
* A view switch is "fresh" (worth acknowledging on the immediately-following
|
|
21
|
+
* turn) for this window. Kept in lockstep with VIEW_SWITCH_FRESH_MS in
|
|
22
|
+
* `views-routes.ts`.
|
|
23
|
+
*/
|
|
24
|
+
export const ACTIVE_VIEW_SWITCH_FRESH_MS = 15_000;
|
|
25
|
+
function isActiveViewSwitchFresh(view) {
|
|
26
|
+
if (!view.switchedAt)
|
|
27
|
+
return false;
|
|
28
|
+
const at = Date.parse(view.switchedAt);
|
|
29
|
+
if (Number.isNaN(at))
|
|
30
|
+
return false;
|
|
31
|
+
return Date.now() - at <= ACTIVE_VIEW_SWITCH_FRESH_MS;
|
|
32
|
+
}
|
|
19
33
|
let activeView = null;
|
|
20
34
|
export function setActiveViewContext(view) {
|
|
21
35
|
activeView = view;
|
|
@@ -69,13 +83,13 @@ export function setActiveViewElements(viewId, elements) {
|
|
|
69
83
|
* element-controllable) when that view is the foreground surface. Names
|
|
70
84
|
* confirmed registered in each plugin's actions/ source; plugin-conditional like
|
|
71
85
|
* the rest (a missing-plugin skip when not loaded). Sources:
|
|
72
|
-
* calendar —
|
|
73
|
-
* health —
|
|
74
|
-
* focus —
|
|
86
|
+
* calendar — PA-registered calendar actions backed by plugin-calendar
|
|
87
|
+
* health — PA-registered actions built from plugin-health factories
|
|
88
|
+
* focus — PA-registered BLOCK umbrella backed by plugin-blocker;
|
|
75
89
|
* list_active / release are subactions of it, not standalone actions)
|
|
76
|
-
* finances —
|
|
90
|
+
* finances — PA-registered OWNER_FINANCES backed by plugin-finances
|
|
77
91
|
* inbox — plugins/plugin-inbox/src/actions/inbox (literal name: "INBOX")
|
|
78
|
-
* goals —
|
|
92
|
+
* goals — plugin-goals owns OWNER_GOALS; PA owns routines/reminders/alarms
|
|
79
93
|
* todos — plugins/plugin-personal-assistant/src/actions/owner-surfaces (OWNER_TODOS)
|
|
80
94
|
* lifeops — plugins/plugin-personal-assistant/src/actions (PERSONAL_ASSISTANT)
|
|
81
95
|
* relationships — plugins/plugin-relationships/src/actions/entity.ts
|
|
@@ -125,7 +139,7 @@ export const VIEW_ACTION_MAP = {
|
|
|
125
139
|
todos: ["OWNER_TODOS"],
|
|
126
140
|
lifeops: ["PERSONAL_ASSISTANT"],
|
|
127
141
|
relationships: ["ENTITY"],
|
|
128
|
-
// documents —
|
|
142
|
+
// documents — PA-registered OWNER_DOCUMENTS backed by plugin-documents routes
|
|
129
143
|
// (umbrella action "OWNER_DOCUMENTS"; DocumentsView reads/uploads via the
|
|
130
144
|
// docs-and-portals domain). Added so a contextual "pull up my documents"
|
|
131
145
|
// switch upweights the domain action while the view is foreground (#8798).
|
|
@@ -156,24 +170,6 @@ export function validateViewActionMap(registeredActions, logger) {
|
|
|
156
170
|
}
|
|
157
171
|
}
|
|
158
172
|
}
|
|
159
|
-
/**
|
|
160
|
-
* Registered view ids that have NO domain-action affinity entry in
|
|
161
|
-
* VIEW_ACTION_MAP. These views are still fully agent-controllable through the
|
|
162
|
-
* universal agent-surface (`useAgentElement` click/fill/etc.), but their domain
|
|
163
|
-
* actions are not upweighted in the planner prompt when the view is foreground —
|
|
164
|
-
* so a `documents`/`messages`/`phone` view's domain action competes with every
|
|
165
|
-
* other action instead of being kept at full param detail. Pure; the caller
|
|
166
|
-
* supplies the live registry view ids. (#8798)
|
|
167
|
-
*/
|
|
168
|
-
export function findViewsWithoutActionAffinity(registeredViewIds) {
|
|
169
|
-
const mapped = new Set(Object.keys(VIEW_ACTION_MAP));
|
|
170
|
-
const missing = [];
|
|
171
|
-
for (const viewId of registeredViewIds) {
|
|
172
|
-
if (!mapped.has(viewId))
|
|
173
|
-
missing.push(viewId);
|
|
174
|
-
}
|
|
175
|
-
return missing;
|
|
176
|
-
}
|
|
177
173
|
/**
|
|
178
174
|
* Completeness sibling of {@link validateViewActionMap}: where that flags a
|
|
179
175
|
* mapped action name that no longer exists, this flags a *registered view* that
|
|
@@ -208,12 +204,13 @@ export function renderActiveViewContextBlock(view) {
|
|
|
208
204
|
const lines = [
|
|
209
205
|
"# Active View",
|
|
210
206
|
`The user is looking at the "${view.viewLabel}" view (id: ${view.viewId}, ${view.viewType}${view.viewPath ? `, path ${view.viewPath}` : ""}).`,
|
|
211
|
-
"You can inspect and drive everything in it through the view-interact capabilities:",
|
|
212
|
-
"- list-elements — enumerate addressable controls/data (id, role, label, value, focus).",
|
|
213
|
-
"- get-agent-state — read the whole view snapshot, including the focused element.",
|
|
214
|
-
"- agent-click {id} / agent-fill {id,value} / agent-focus {id} / agent-scroll-to {id} — act on an element by its id.",
|
|
215
|
-
"Prefer acting directly on the view over describing what the user should click.",
|
|
216
207
|
];
|
|
208
|
+
// Turn-scoped acknowledgement of a just-happened switch (#8788): only on the
|
|
209
|
+
// immediately-following turn (freshness decays after 15s), so it never lingers.
|
|
210
|
+
if (isActiveViewSwitchFresh(view)) {
|
|
211
|
+
lines.push(`The user just switched into this view${view.source === "agent" ? " (you navigated here)" : ""} — briefly acknowledge the switch in your reply before doing anything else.`);
|
|
212
|
+
}
|
|
213
|
+
lines.push("You can inspect and drive everything in it through the view-interact capabilities:", "- list-elements — enumerate addressable controls/data (id, role, label, value, focus).", "- get-agent-state — read the whole view snapshot, including the focused element.", "- agent-click {id} / agent-fill {id,value} / agent-focus {id} / agent-scroll-to {id} — act on an element by its id.", "Prefer acting directly on the view over describing what the user should click.");
|
|
217
214
|
if (scoped.length > 0) {
|
|
218
215
|
lines.push(`Actions most relevant while on this view (prefer these when the request fits): ${scoped.join(", ")}.`);
|
|
219
216
|
}
|
|
@@ -18,8 +18,11 @@
|
|
|
18
18
|
* OpenAI, which is what makes the `openai.responses` branch fire.
|
|
19
19
|
*
|
|
20
20
|
* Controlled by:
|
|
21
|
-
* ELIZA_WEB_SEARCH=0|false|off
|
|
21
|
+
* ELIZA_WEB_SEARCH=0|false|off — disable every web-search surface
|
|
22
|
+
* ELIZA_SERVER_WEB_SEARCH=1|true|on — enable provider-native injection
|
|
22
23
|
*/
|
|
24
|
+
export declare function isServerSideWebSearchEnabled(): boolean;
|
|
25
|
+
export declare function __shouldSkipServerSideWebSearchForTests(params: Record<string, unknown>): boolean;
|
|
23
26
|
/**
|
|
24
27
|
* Enable server-side web search across all supported providers.
|
|
25
28
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web-search-tools.d.ts","sourceRoot":"","sources":["../../src/runtime/web-search-tools.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"web-search-tools.d.ts","sourceRoot":"","sources":["../../src/runtime/web-search-tools.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAmBH,wBAAgB,4BAA4B,IAAI,OAAO,CAGtD;AAiGD,wBAAgB,uCAAuC,CACrD,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC9B,OAAO,CAET;AAsFD;;;;;;GAMG;AACH,wBAAgB,0BAA0B,IAAI,IAAI,CAQjD"}
|