@zhin.js/agent 1.1.3 → 1.1.6
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/README.md +52 -52
- package/lib/activity-feedback/adapter-integration.d.ts +8 -9
- package/lib/activity-feedback/adapter-integration.d.ts.map +1 -1
- package/lib/activity-feedback/adapter-integration.js +22 -18
- package/lib/activity-feedback/adapter-integration.js.map +1 -1
- package/lib/activity-feedback/ai-bus.d.ts.map +1 -1
- package/lib/activity-feedback/ai-bus.js +7 -1
- package/lib/activity-feedback/ai-bus.js.map +1 -1
- package/lib/activity-feedback/event-context.d.ts +1 -1
- package/lib/activity-feedback/event-context.d.ts.map +1 -1
- package/lib/activity-feedback/event-context.js +9 -6
- package/lib/activity-feedback/event-context.js.map +1 -1
- package/lib/activity-feedback/index.d.ts +3 -2
- package/lib/activity-feedback/index.d.ts.map +1 -1
- package/lib/activity-feedback/index.js +3 -2
- package/lib/activity-feedback/index.js.map +1 -1
- package/lib/activity-feedback/manager.d.ts +4 -1
- package/lib/activity-feedback/manager.d.ts.map +1 -1
- package/lib/activity-feedback/manager.js +10 -8
- package/lib/activity-feedback/manager.js.map +1 -1
- package/lib/activity-feedback/subagent-prefix.d.ts +17 -0
- package/lib/activity-feedback/subagent-prefix.d.ts.map +1 -0
- package/lib/activity-feedback/subagent-prefix.js +54 -0
- package/lib/activity-feedback/subagent-prefix.js.map +1 -0
- package/lib/agent-prompt/registry.js +1 -1
- package/lib/agent-prompt/registry.js.map +1 -1
- package/lib/agent-prompt/resolver.d.ts.map +1 -1
- package/lib/agent-prompt/resolver.js +5 -7
- package/lib/agent-prompt/resolver.js.map +1 -1
- package/lib/ai-event-bus.js +2 -2
- package/lib/ai-event-bus.js.map +1 -1
- package/lib/ai-event-subscriber.d.ts +1 -1
- package/lib/ai-event-subscriber.d.ts.map +1 -1
- package/lib/ai-event-subscriber.js +1 -1
- package/lib/ai-event-subscriber.js.map +1 -1
- package/lib/aop/index.d.ts +1 -1
- package/lib/aop/index.d.ts.map +1 -1
- package/lib/aop/index.js +1 -1
- package/lib/aop/index.js.map +1 -1
- package/lib/aop/pipeline/pipeline-service.d.ts +2 -0
- package/lib/aop/pipeline/pipeline-service.d.ts.map +1 -1
- package/lib/aop/pipeline/pipeline-service.js +26 -14
- package/lib/aop/pipeline/pipeline-service.js.map +1 -1
- package/lib/assistant/bootstrap-assistant-home.d.ts +31 -0
- package/lib/assistant/bootstrap-assistant-home.d.ts.map +1 -0
- package/lib/assistant/bootstrap-assistant-home.js +97 -0
- package/lib/assistant/bootstrap-assistant-home.js.map +1 -0
- package/lib/assistant/deliver-schedule-to-adapter.d.ts +3 -3
- package/lib/assistant/deliver-schedule-to-adapter.d.ts.map +1 -1
- package/lib/assistant/deliver-schedule-to-adapter.js +2 -6
- package/lib/assistant/deliver-schedule-to-adapter.js.map +1 -1
- package/lib/assistant/domains/{home-assistant.d.ts → ha-home-backend.d.ts} +16 -13
- package/lib/assistant/domains/ha-home-backend.d.ts.map +1 -0
- package/lib/assistant/domains/{home-assistant.js → ha-home-backend.js} +32 -7
- package/lib/assistant/domains/ha-home-backend.js.map +1 -0
- package/lib/assistant/domains/ha-ws-transport.d.ts +59 -0
- package/lib/assistant/domains/ha-ws-transport.d.ts.map +1 -0
- package/lib/assistant/domains/ha-ws-transport.js +135 -0
- package/lib/assistant/domains/ha-ws-transport.js.map +1 -0
- package/lib/assistant/domains/home-entity.d.ts +5 -0
- package/lib/assistant/domains/home-entity.d.ts.map +1 -0
- package/lib/assistant/domains/home-entity.js +8 -0
- package/lib/assistant/domains/home-entity.js.map +1 -0
- package/lib/assistant/domains/home-state-watch.d.ts +40 -0
- package/lib/assistant/domains/home-state-watch.d.ts.map +1 -0
- package/lib/assistant/domains/home-state-watch.js +118 -0
- package/lib/assistant/domains/home-state-watch.js.map +1 -0
- package/lib/assistant/home-config.d.ts +21 -7
- package/lib/assistant/home-config.d.ts.map +1 -1
- package/lib/assistant/home-config.js +5 -0
- package/lib/assistant/home-config.js.map +1 -1
- package/lib/assistant/home-facade.d.ts +73 -0
- package/lib/assistant/home-facade.d.ts.map +1 -0
- package/lib/assistant/home-facade.js +144 -0
- package/lib/assistant/home-facade.js.map +1 -0
- package/lib/assistant/home-policy.d.ts +3 -2
- package/lib/assistant/home-policy.d.ts.map +1 -1
- package/lib/assistant/home-policy.js +8 -36
- package/lib/assistant/home-policy.js.map +1 -1
- package/lib/assistant/home-tools.d.ts +9 -12
- package/lib/assistant/home-tools.d.ts.map +1 -1
- package/lib/assistant/home-tools.js +94 -135
- package/lib/assistant/home-tools.js.map +1 -1
- package/lib/assistant/index.d.ts +18 -11
- package/lib/assistant/index.d.ts.map +1 -1
- package/lib/assistant/index.js +10 -7
- package/lib/assistant/index.js.map +1 -1
- package/lib/assistant/job-creator.d.ts +3 -3
- package/lib/assistant/job-creator.d.ts.map +1 -1
- package/lib/assistant/job-creator.js +6 -11
- package/lib/assistant/job-creator.js.map +1 -1
- package/lib/assistant/job-engine.d.ts +1 -1
- package/lib/assistant/job-engine.d.ts.map +1 -1
- package/lib/assistant/job-engine.js +11 -22
- package/lib/assistant/job-engine.js.map +1 -1
- package/lib/assistant/job-scheduler.d.ts +0 -3
- package/lib/assistant/job-scheduler.d.ts.map +1 -1
- package/lib/assistant/job-scheduler.js +5 -3
- package/lib/assistant/job-scheduler.js.map +1 -1
- package/lib/assistant/job-store.d.ts.map +1 -1
- package/lib/assistant/job-store.js +31 -3
- package/lib/assistant/job-store.js.map +1 -1
- package/lib/assistant/job-worker.d.ts +2 -9
- package/lib/assistant/job-worker.d.ts.map +1 -1
- package/lib/assistant/job-worker.js +42 -36
- package/lib/assistant/job-worker.js.map +1 -1
- package/lib/assistant/notification-router.d.ts +2 -1
- package/lib/assistant/notification-router.d.ts.map +1 -1
- package/lib/assistant/notification-router.js +18 -9
- package/lib/assistant/notification-router.js.map +1 -1
- package/lib/assistant/runtime-registry.d.ts +4 -3
- package/lib/assistant/runtime-registry.d.ts.map +1 -1
- package/lib/assistant/runtime-registry.js +7 -16
- package/lib/assistant/runtime-registry.js.map +1 -1
- package/lib/assistant/schedule-execution.d.ts +0 -17
- package/lib/assistant/schedule-execution.d.ts.map +1 -1
- package/lib/assistant/schedule-execution.js +0 -41
- package/lib/assistant/schedule-execution.js.map +1 -1
- package/lib/assistant/schedule-job-service.d.ts +4 -2
- package/lib/assistant/schedule-job-service.d.ts.map +1 -1
- package/lib/assistant/schedule-job-service.js +38 -8
- package/lib/assistant/schedule-job-service.js.map +1 -1
- package/lib/assistant/types.d.ts +3 -0
- package/lib/assistant/types.d.ts.map +1 -1
- package/lib/assistant/types.js.map +1 -1
- package/lib/authoring/entries/tools.d.ts +1 -1
- package/lib/authoring/entries/tools.d.ts.map +1 -1
- package/lib/authoring/entries/tools.js +1 -1
- package/lib/authoring/entries/tools.js.map +1 -1
- package/lib/authoring/index.d.ts +1 -1
- package/lib/authoring/index.d.ts.map +1 -1
- package/lib/authoring/index.js +1 -1
- package/lib/authoring/index.js.map +1 -1
- package/lib/authoring/tool-policy.d.ts +1 -1
- package/lib/authoring/tool-policy.d.ts.map +1 -1
- package/lib/authoring/tool-policy.js +1 -1
- package/lib/authoring/tool-policy.js.map +1 -1
- package/lib/bootstrap.d.ts +2 -3
- package/lib/bootstrap.d.ts.map +1 -1
- package/lib/bootstrap.js +1 -12
- package/lib/bootstrap.js.map +1 -1
- package/lib/builtin/analyze-media-tool.d.ts.map +1 -1
- package/lib/builtin/analyze-media-tool.js +0 -12
- package/lib/builtin/analyze-media-tool.js.map +1 -1
- package/lib/builtin/bash-tool.d.ts.map +1 -1
- package/lib/builtin/bash-tool.js +0 -6
- package/lib/builtin/bash-tool.js.map +1 -1
- package/lib/builtin/bing-search-html.d.ts +1 -17
- package/lib/builtin/bing-search-html.d.ts.map +1 -1
- package/lib/builtin/bing-search-html.js +12 -10
- package/lib/builtin/bing-search-html.js.map +1 -1
- package/lib/builtin/edit-file-tool.d.ts.map +1 -1
- package/lib/builtin/edit-file-tool.js +0 -7
- package/lib/builtin/edit-file-tool.js.map +1 -1
- package/lib/builtin/glob-tool.d.ts.map +1 -1
- package/lib/builtin/glob-tool.js +0 -5
- package/lib/builtin/glob-tool.js.map +1 -1
- package/lib/builtin/grep-tool.d.ts.map +1 -1
- package/lib/builtin/grep-tool.js +0 -5
- package/lib/builtin/grep-tool.js.map +1 -1
- package/lib/builtin/list-dir-tool.d.ts.map +1 -1
- package/lib/builtin/list-dir-tool.js +0 -5
- package/lib/builtin/list-dir-tool.js.map +1 -1
- package/lib/builtin/memory-search-tool.js +1 -1
- package/lib/builtin/memory-search-tool.js.map +1 -1
- package/lib/builtin/memory-upsert-tool.js +1 -1
- package/lib/builtin/memory-upsert-tool.js.map +1 -1
- package/lib/builtin/read-file-tool.d.ts.map +1 -1
- package/lib/builtin/read-file-tool.js +0 -13
- package/lib/builtin/read-file-tool.js.map +1 -1
- package/lib/builtin/spawn-task-tool.d.ts.map +1 -1
- package/lib/builtin/spawn-task-tool.js +8 -10
- package/lib/builtin/spawn-task-tool.js.map +1 -1
- package/lib/builtin/web-fetch-tool.d.ts.map +1 -1
- package/lib/builtin/web-fetch-tool.js +9 -28
- package/lib/builtin/web-fetch-tool.js.map +1 -1
- package/lib/builtin/web-search-tool.d.ts.map +1 -1
- package/lib/builtin/web-search-tool.js +10 -0
- package/lib/builtin/web-search-tool.js.map +1 -1
- package/lib/builtin/write-file-tool.d.ts.map +1 -1
- package/lib/builtin/write-file-tool.js +0 -7
- package/lib/builtin/write-file-tool.js.map +1 -1
- package/lib/builtin-tools.d.ts +3 -14
- package/lib/builtin-tools.d.ts.map +1 -1
- package/lib/builtin-tools.js +3 -14
- package/lib/builtin-tools.js.map +1 -1
- package/lib/collaboration/collab-admin-gate.d.ts +1 -1
- package/lib/collaboration/collab-admin-gate.d.ts.map +1 -1
- package/lib/collaboration/collab-admin-gate.js +8 -8
- package/lib/collaboration/collab-admin-gate.js.map +1 -1
- package/lib/collaboration/collab-utils.d.ts +15 -0
- package/lib/collaboration/collab-utils.d.ts.map +1 -0
- package/lib/collaboration/collab-utils.js +37 -0
- package/lib/collaboration/collab-utils.js.map +1 -0
- package/lib/collaboration/collaboration-artifact-repository.d.ts +2 -0
- package/lib/collaboration/collaboration-artifact-repository.d.ts.map +1 -1
- package/lib/collaboration/collaboration-artifact-repository.js +17 -5
- package/lib/collaboration/collaboration-artifact-repository.js.map +1 -1
- package/lib/collaboration/collaboration-commands.d.ts +3 -3
- package/lib/collaboration/collaboration-commands.d.ts.map +1 -1
- package/lib/collaboration/collaboration-commands.js +25 -156
- package/lib/collaboration/collaboration-commands.js.map +1 -1
- package/lib/collaboration/collaboration-config.d.ts +5 -5
- package/lib/collaboration/collaboration-config.d.ts.map +1 -1
- package/lib/collaboration/collaboration-config.js +19 -19
- package/lib/collaboration/collaboration-config.js.map +1 -1
- package/lib/collaboration/collaboration-context.d.ts +5 -2
- package/lib/collaboration/collaboration-context.d.ts.map +1 -1
- package/lib/collaboration/collaboration-context.js +39 -27
- package/lib/collaboration/collaboration-context.js.map +1 -1
- package/lib/collaboration/collaboration-db-model.d.ts +2 -2
- package/lib/collaboration/collaboration-db-model.d.ts.map +1 -1
- package/lib/collaboration/collaboration-db-model.js +2 -2
- package/lib/collaboration/collaboration-db-model.js.map +1 -1
- package/lib/collaboration/collaboration-delegation.d.ts +2 -2
- package/lib/collaboration/collaboration-delegation.d.ts.map +1 -1
- package/lib/collaboration/collaboration-delegation.js +4 -6
- package/lib/collaboration/collaboration-delegation.js.map +1 -1
- package/lib/collaboration/collaboration-dispatch.d.ts +4 -4
- package/lib/collaboration/collaboration-dispatch.d.ts.map +1 -1
- package/lib/collaboration/collaboration-dispatch.js +12 -12
- package/lib/collaboration/collaboration-dispatch.js.map +1 -1
- package/lib/collaboration/collaboration-kernel-bridge.d.ts +3 -3
- package/lib/collaboration/collaboration-kernel-bridge.d.ts.map +1 -1
- package/lib/collaboration/collaboration-kernel-bridge.js +15 -16
- package/lib/collaboration/collaboration-kernel-bridge.js.map +1 -1
- package/lib/collaboration/collaboration-outbound.d.ts +7 -7
- package/lib/collaboration/collaboration-outbound.d.ts.map +1 -1
- package/lib/collaboration/collaboration-outbound.js +38 -41
- package/lib/collaboration/collaboration-outbound.js.map +1 -1
- package/lib/collaboration/collaboration-scene-repository.d.ts +17 -15
- package/lib/collaboration/collaboration-scene-repository.d.ts.map +1 -1
- package/lib/collaboration/collaboration-scene-repository.js +43 -32
- package/lib/collaboration/collaboration-scene-repository.js.map +1 -1
- package/lib/collaboration/collaboration-turn-snapshot.d.ts +3 -3
- package/lib/collaboration/collaboration-turn-snapshot.d.ts.map +1 -1
- package/lib/collaboration/collaboration-turn-snapshot.js +6 -6
- package/lib/collaboration/collaboration-turn-snapshot.js.map +1 -1
- package/lib/collaboration/delegation-state.d.ts +6 -6
- package/lib/collaboration/delegation-state.d.ts.map +1 -1
- package/lib/collaboration/delegation-state.js +17 -17
- package/lib/collaboration/delegation-state.js.map +1 -1
- package/lib/collaboration/endpoint-identity.d.ts +4 -4
- package/lib/collaboration/endpoint-identity.d.ts.map +1 -1
- package/lib/collaboration/endpoint-identity.js +17 -25
- package/lib/collaboration/endpoint-identity.js.map +1 -1
- package/lib/collaboration/group-message.d.ts +5 -5
- package/lib/collaboration/group-message.d.ts.map +1 -1
- package/lib/collaboration/group-message.js +10 -71
- package/lib/collaboration/group-message.js.map +1 -1
- package/lib/collaboration/im-mention-delegate.d.ts +1 -1
- package/lib/collaboration/im-mention-delegate.d.ts.map +1 -1
- package/lib/collaboration/im-mention-delegate.js +2 -2
- package/lib/collaboration/im-mention-delegate.js.map +1 -1
- package/lib/collaboration/inbound-peer-handback.d.ts +1 -1
- package/lib/collaboration/inbound-peer-handback.d.ts.map +1 -1
- package/lib/collaboration/inbound-peer-handback.js +13 -17
- package/lib/collaboration/inbound-peer-handback.js.map +1 -1
- package/lib/collaboration/inbound-spawn-task.d.ts.map +1 -1
- package/lib/collaboration/inbound-spawn-task.js +7 -8
- package/lib/collaboration/inbound-spawn-task.js.map +1 -1
- package/lib/collaboration/inbound-turn-tools.d.ts +1 -1
- package/lib/collaboration/inbound-turn-tools.d.ts.map +1 -1
- package/lib/collaboration/inbound-turn-tools.js +8 -3
- package/lib/collaboration/inbound-turn-tools.js.map +1 -1
- package/lib/collaboration/index.d.ts +1 -5
- package/lib/collaboration/index.d.ts.map +1 -1
- package/lib/collaboration/index.js +1 -4
- package/lib/collaboration/index.js.map +1 -1
- package/lib/collaboration/init-observe-hook.d.ts +8 -11
- package/lib/collaboration/init-observe-hook.d.ts.map +1 -1
- package/lib/collaboration/init-observe-hook.js +18 -40
- package/lib/collaboration/init-observe-hook.js.map +1 -1
- package/lib/collaboration/init-wizard-service.d.ts +2 -2
- package/lib/collaboration/init-wizard-service.d.ts.map +1 -1
- package/lib/collaboration/init-wizard-service.js +9 -11
- package/lib/collaboration/init-wizard-service.js.map +1 -1
- package/lib/collaboration/outbound-resolver.d.ts +3 -3
- package/lib/collaboration/outbound-resolver.d.ts.map +1 -1
- package/lib/collaboration/outbound-resolver.js +18 -18
- package/lib/collaboration/outbound-resolver.js.map +1 -1
- package/lib/collaboration/peer-policy.d.ts +7 -7
- package/lib/collaboration/peer-policy.d.ts.map +1 -1
- package/lib/collaboration/peer-policy.js +19 -19
- package/lib/collaboration/peer-policy.js.map +1 -1
- package/lib/collaboration/resolve-agent-session-key.js +2 -2
- package/lib/collaboration/resolve-agent-session-key.js.map +1 -1
- package/lib/collaboration/runtime-inbound-gate.d.ts.map +1 -1
- package/lib/collaboration/runtime-inbound-gate.js +26 -32
- package/lib/collaboration/runtime-inbound-gate.js.map +1 -1
- package/lib/collaboration/scene-identity-service.d.ts +13 -11
- package/lib/collaboration/scene-identity-service.d.ts.map +1 -1
- package/lib/collaboration/scene-identity-service.js +33 -22
- package/lib/collaboration/scene-identity-service.js.map +1 -1
- package/lib/collaboration/scene-service.d.ts +5 -3
- package/lib/collaboration/scene-service.d.ts.map +1 -1
- package/lib/collaboration/scene-service.js +17 -12
- package/lib/collaboration/scene-service.js.map +1 -1
- package/lib/collaboration/structured-ai-outbound.d.ts +1 -1
- package/lib/collaboration/structured-ai-outbound.d.ts.map +1 -1
- package/lib/collaboration/structured-ai-outbound.js +8 -9
- package/lib/collaboration/structured-ai-outbound.js.map +1 -1
- package/lib/collaboration/turn-plan-resolver.d.ts +2 -2
- package/lib/collaboration/turn-plan-resolver.d.ts.map +1 -1
- package/lib/collaboration/turn-plan-resolver.js +12 -12
- package/lib/collaboration/turn-plan-resolver.js.map +1 -1
- package/lib/collaboration/types.d.ts +6 -6
- package/lib/collaboration/types.d.ts.map +1 -1
- package/lib/collaboration/wire-collaboration-storage.d.ts.map +1 -1
- package/lib/collaboration/wire-collaboration-storage.js +0 -2
- package/lib/collaboration/wire-collaboration-storage.js.map +1 -1
- package/lib/common-adapter-tools.js +1 -1
- package/lib/common-adapter-tools.js.map +1 -1
- package/lib/config/agent-interfaces.d.ts +1 -2
- package/lib/config/agent-interfaces.d.ts.map +1 -1
- package/lib/config/fix-ai-config.d.ts.map +1 -1
- package/lib/config/fix-ai-config.js +52 -3
- package/lib/config/fix-ai-config.js.map +1 -1
- package/lib/config/index.d.ts +1 -1
- package/lib/config/index.d.ts.map +1 -1
- package/lib/config/index.js.map +1 -1
- package/lib/config/normalize-ai-config.d.ts +4 -2
- package/lib/config/normalize-ai-config.d.ts.map +1 -1
- package/lib/config/normalize-ai-config.js +29 -81
- package/lib/config/normalize-ai-config.js.map +1 -1
- package/lib/config/validate-ai-config.d.ts.map +1 -1
- package/lib/config/validate-ai-config.js +10 -0
- package/lib/config/validate-ai-config.js.map +1 -1
- package/lib/config/zhin-agent-config.d.ts +14 -0
- package/lib/config/zhin-agent-config.d.ts.map +1 -1
- package/lib/config/zhin-agent-defaults.d.ts.map +1 -1
- package/lib/config/zhin-agent-defaults.js +11 -0
- package/lib/config/zhin-agent-defaults.js.map +1 -1
- package/lib/context/context-system.d.ts +4 -2
- package/lib/context/context-system.d.ts.map +1 -1
- package/lib/context/context-system.js +15 -12
- package/lib/context/context-system.js.map +1 -1
- package/lib/context/contracts.d.ts +3 -3
- package/lib/context/contracts.d.ts.map +1 -1
- package/lib/context/default-builders.js +3 -3
- package/lib/context/default-builders.js.map +1 -1
- package/lib/context/im-turn-context-adapter.d.ts +9 -0
- package/lib/context/im-turn-context-adapter.d.ts.map +1 -0
- package/lib/context/im-turn-context-adapter.js +54 -0
- package/lib/context/im-turn-context-adapter.js.map +1 -0
- package/lib/context/index.d.ts +2 -2
- package/lib/context/index.d.ts.map +1 -1
- package/lib/context/index.js +1 -1
- package/lib/context/index.js.map +1 -1
- package/lib/context/turn-envelope.d.ts +5 -4
- package/lib/context/turn-envelope.d.ts.map +1 -1
- package/lib/context/turn-envelope.js +43 -50
- package/lib/context/turn-envelope.js.map +1 -1
- package/lib/core/agent-core-run.d.ts +37 -14
- package/lib/core/agent-core-run.d.ts.map +1 -1
- package/lib/core/agent-core-run.js +79 -182
- package/lib/core/agent-core-run.js.map +1 -1
- package/lib/core/agent-loop-standalone.d.ts.map +1 -1
- package/lib/core/agent-loop-standalone.js +35 -34
- package/lib/core/agent-loop-standalone.js.map +1 -1
- package/lib/core/agent-run-shared.d.ts +4 -0
- package/lib/core/agent-run-shared.d.ts.map +1 -0
- package/lib/core/agent-run-shared.js +8 -0
- package/lib/core/agent-run-shared.js.map +1 -0
- package/lib/core/compose-deps.d.ts.map +1 -1
- package/lib/core/compose-deps.js +1 -2
- package/lib/core/compose-deps.js.map +1 -1
- package/lib/core/spawn-delegation.d.ts +23 -0
- package/lib/core/spawn-delegation.d.ts.map +1 -0
- package/lib/core/spawn-delegation.js +64 -0
- package/lib/core/spawn-delegation.js.map +1 -0
- package/lib/core/tool-execution-authority.d.ts +21 -0
- package/lib/core/tool-execution-authority.d.ts.map +1 -0
- package/lib/core/tool-execution-authority.js +2 -0
- package/lib/core/tool-execution-authority.js.map +1 -0
- package/lib/core/turn-event-mapper.d.ts.map +1 -1
- package/lib/core/turn-event-mapper.js +13 -0
- package/lib/core/turn-event-mapper.js.map +1 -1
- package/lib/deferred-worker-runner.d.ts.map +1 -1
- package/lib/deferred-worker-runner.js +9 -23
- package/lib/deferred-worker-runner.js.map +1 -1
- package/lib/discovery/agent-surface-info.d.ts.map +1 -1
- package/lib/discovery/agent-surface-info.js +7 -2
- package/lib/discovery/agent-surface-info.js.map +1 -1
- package/lib/discovery/tools.js +2 -2
- package/lib/discovery/tools.js.map +1 -1
- package/lib/event/event-emitter.d.ts.map +1 -1
- package/lib/event/event-emitter.js +2 -13
- package/lib/event/event-emitter.js.map +1 -1
- package/lib/event/turn-event.d.ts +35 -2
- package/lib/event/turn-event.d.ts.map +1 -1
- package/lib/event/turn-event.js +4 -1
- package/lib/event/turn-event.js.map +1 -1
- package/lib/event/turn-to-agent-stream.js +20 -0
- package/lib/event/turn-to-agent-stream.js.map +1 -1
- package/lib/hooks.d.ts +1 -1
- package/lib/hooks.d.ts.map +1 -1
- package/lib/index.d.ts +34 -27
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +26 -21
- package/lib/index.js.map +1 -1
- package/lib/ingress/capability-ingress.d.ts +3 -1
- package/lib/ingress/capability-ingress.d.ts.map +1 -1
- package/lib/ingress/capability-ingress.js +10 -6
- package/lib/ingress/capability-ingress.js.map +1 -1
- package/lib/init/configure-zhin-agent.d.ts +7 -35
- package/lib/init/configure-zhin-agent.d.ts.map +1 -1
- package/lib/init/configure-zhin-agent.js +1 -1
- package/lib/init/configure-zhin-agent.js.map +1 -1
- package/lib/init/create-zhin-agent.d.ts.map +1 -1
- package/lib/init/create-zhin-agent.js +64 -78
- package/lib/init/create-zhin-agent.js.map +1 -1
- package/lib/init/dispose-zhin-agent.d.ts +6 -22
- package/lib/init/dispose-zhin-agent.d.ts.map +1 -1
- package/lib/init/dispose-zhin-agent.js +1 -2
- package/lib/init/dispose-zhin-agent.js.map +1 -1
- package/lib/init/introspection-collectors.js +2 -2
- package/lib/init/introspection-collectors.js.map +1 -1
- package/lib/init/register-ai-service.d.ts.map +1 -1
- package/lib/init/register-ai-service.js +3 -4
- package/lib/init/register-ai-service.js.map +1 -1
- package/lib/init/register-builtin-tools.d.ts.map +1 -1
- package/lib/init/register-builtin-tools.js +12 -30
- package/lib/init/register-builtin-tools.js.map +1 -1
- package/lib/init/register-db-upgrade.d.ts.map +1 -1
- package/lib/init/register-db-upgrade.js +5 -9
- package/lib/init/register-db-upgrade.js.map +1 -1
- package/lib/init/register-group-session-passive.d.ts.map +1 -1
- package/lib/init/register-group-session-passive.js +15 -10
- package/lib/init/register-group-session-passive.js.map +1 -1
- package/lib/init/register-init-wizard-guardrail.d.ts.map +1 -1
- package/lib/init/register-init-wizard-guardrail.js +6 -11
- package/lib/init/register-init-wizard-guardrail.js.map +1 -1
- package/lib/init/register-introspection-commands.d.ts.map +1 -1
- package/lib/init/register-introspection-commands.js +20 -1
- package/lib/init/register-introspection-commands.js.map +1 -1
- package/lib/init/register-mcp-from-config.js +4 -4
- package/lib/init/register-mcp-from-config.js.map +1 -1
- package/lib/init/upgrade-endpoint-id-schema.d.ts +2 -2
- package/lib/init/upgrade-endpoint-id-schema.d.ts.map +1 -1
- package/lib/init/upgrade-endpoint-id-schema.js +3 -3
- package/lib/init/upgrade-endpoint-id-schema.js.map +1 -1
- package/lib/init.d.ts +4 -22
- package/lib/init.d.ts.map +1 -1
- package/lib/init.js +6 -57
- package/lib/init.js.map +1 -1
- package/lib/interaction/index.d.ts +2 -0
- package/lib/interaction/index.d.ts.map +1 -0
- package/lib/interaction/index.js +2 -0
- package/lib/interaction/index.js.map +1 -0
- package/lib/interaction/interaction-router.d.ts +20 -0
- package/lib/interaction/interaction-router.d.ts.map +1 -0
- package/lib/interaction/interaction-router.js +146 -0
- package/lib/interaction/interaction-router.js.map +1 -0
- package/lib/internal/agent-host.d.ts +58 -64
- package/lib/internal/agent-host.d.ts.map +1 -1
- package/lib/internal/ai-service-refs.d.ts +8 -0
- package/lib/internal/ai-service-refs.d.ts.map +1 -0
- package/lib/internal/ai-service-refs.js +7 -0
- package/lib/internal/ai-service-refs.js.map +1 -0
- package/lib/internal/as-private.d.ts +3 -6
- package/lib/internal/as-private.d.ts.map +1 -1
- package/lib/internal/as-private.js.map +1 -1
- package/lib/internal/host-types.d.ts +26 -3
- package/lib/internal/host-types.d.ts.map +1 -1
- package/lib/internal/prompt-trace.d.ts.map +1 -1
- package/lib/internal/prompt-trace.js +4 -15
- package/lib/internal/prompt-trace.js.map +1 -1
- package/lib/internal/turn-context.d.ts +1 -6
- package/lib/internal/turn-context.d.ts.map +1 -1
- package/lib/internal/turn-context.js +0 -9
- package/lib/internal/turn-context.js.map +1 -1
- package/lib/journal/file-journal-store.d.ts +21 -0
- package/lib/journal/file-journal-store.d.ts.map +1 -0
- package/lib/journal/file-journal-store.js +200 -0
- package/lib/journal/file-journal-store.js.map +1 -0
- package/lib/journal/index.d.ts +3 -0
- package/lib/journal/index.d.ts.map +1 -0
- package/lib/journal/index.js +3 -0
- package/lib/journal/index.js.map +1 -0
- package/lib/journal/persistent-turn-journal.d.ts +13 -0
- package/lib/journal/persistent-turn-journal.d.ts.map +1 -0
- package/lib/journal/persistent-turn-journal.js +72 -0
- package/lib/journal/persistent-turn-journal.js.map +1 -0
- package/lib/media/index.d.ts +0 -1
- package/lib/media/index.d.ts.map +1 -1
- package/lib/media/index.js +0 -1
- package/lib/media/index.js.map +1 -1
- package/lib/media/media-capabilities.d.ts.map +1 -1
- package/lib/media/media-capabilities.js +0 -6
- package/lib/media/media-capabilities.js.map +1 -1
- package/lib/media/media-normalize.d.ts +1 -12
- package/lib/media/media-normalize.d.ts.map +1 -1
- package/lib/media/media-normalize.js +0 -71
- package/lib/media/media-normalize.js.map +1 -1
- package/lib/media/media-router.d.ts +1 -2
- package/lib/media/media-router.d.ts.map +1 -1
- package/lib/media/media-router.js +2 -10
- package/lib/media/media-router.js.map +1 -1
- package/lib/media/resolve-config.d.ts.map +1 -1
- package/lib/media/resolve-config.js +1 -28
- package/lib/media/resolve-config.js.map +1 -1
- package/lib/media/subagent-inbound.d.ts +2 -2
- package/lib/media/subagent-inbound.d.ts.map +1 -1
- package/lib/media/subagent-inbound.js +2 -7
- package/lib/media/subagent-inbound.js.map +1 -1
- package/lib/media/vision-capability.d.ts +1 -3
- package/lib/media/vision-capability.d.ts.map +1 -1
- package/lib/media/vision-capability.js +0 -15
- package/lib/media/vision-capability.js.map +1 -1
- package/lib/memory/compaction-runtime.d.ts +3 -4
- package/lib/memory/compaction-runtime.d.ts.map +1 -1
- package/lib/memory/compaction-runtime.js +0 -10
- package/lib/memory/compaction-runtime.js.map +1 -1
- package/lib/memory/memory-system.d.ts.map +1 -1
- package/lib/memory/memory-system.js +1 -2
- package/lib/memory/memory-system.js.map +1 -1
- package/lib/memory-entry-registry.d.ts +6 -0
- package/lib/memory-entry-registry.d.ts.map +1 -1
- package/lib/memory-entry-registry.js +19 -3
- package/lib/memory-entry-registry.js.map +1 -1
- package/lib/memory-layers.d.ts +2 -2
- package/lib/memory-layers.d.ts.map +1 -1
- package/lib/memory-layers.js +11 -22
- package/lib/memory-layers.js.map +1 -1
- package/lib/orchestration-runtime-registry.d.ts +3 -1
- package/lib/orchestration-runtime-registry.d.ts.map +1 -1
- package/lib/orchestration-runtime-registry.js +9 -4
- package/lib/orchestration-runtime-registry.js.map +1 -1
- package/lib/orchestrator/agent-dispatcher.d.ts +3 -38
- package/lib/orchestrator/agent-dispatcher.d.ts.map +1 -1
- package/lib/orchestrator/agent-dispatcher.js +2 -155
- package/lib/orchestrator/agent-dispatcher.js.map +1 -1
- package/lib/orchestrator/bootstrap-executors.d.ts +5 -1
- package/lib/orchestrator/bootstrap-executors.d.ts.map +1 -1
- package/lib/orchestrator/bootstrap-executors.js +65 -36
- package/lib/orchestrator/bootstrap-executors.js.map +1 -1
- package/lib/orchestrator/index.d.ts +1 -1
- package/lib/orchestrator/index.d.ts.map +1 -1
- package/lib/orchestrator/index.js +1 -1
- package/lib/orchestrator/index.js.map +1 -1
- package/lib/orchestrator/orchestration-mappers.js +8 -8
- package/lib/orchestrator/orchestration-mappers.js.map +1 -1
- package/lib/orchestrator/orchestration-service.d.ts +18 -9
- package/lib/orchestrator/orchestration-service.d.ts.map +1 -1
- package/lib/orchestrator/orchestration-service.js +50 -47
- package/lib/orchestrator/orchestration-service.js.map +1 -1
- package/lib/orchestrator/remote-agent-registry.d.ts +3 -3
- package/lib/orchestrator/remote-agent-registry.d.ts.map +1 -1
- package/lib/orchestrator/remote-agent-registry.js +9 -13
- package/lib/orchestrator/remote-agent-registry.js.map +1 -1
- package/lib/orchestrator/remote-task-executor.d.ts.map +1 -1
- package/lib/orchestrator/remote-task-executor.js +12 -4
- package/lib/orchestrator/remote-task-executor.js.map +1 -1
- package/lib/orchestrator/remote-task-poller.d.ts +3 -2
- package/lib/orchestrator/remote-task-poller.d.ts.map +1 -1
- package/lib/orchestrator/remote-task-poller.js +18 -15
- package/lib/orchestrator/remote-task-poller.js.map +1 -1
- package/lib/orchestrator/role-configs.d.ts +30 -0
- package/lib/orchestrator/role-configs.d.ts.map +1 -0
- package/lib/orchestrator/role-configs.js +133 -0
- package/lib/orchestrator/role-configs.js.map +1 -0
- package/lib/orchestrator/task-queue.d.ts +3 -2
- package/lib/orchestrator/task-queue.d.ts.map +1 -1
- package/lib/orchestrator/task-queue.js +12 -11
- package/lib/orchestrator/task-queue.js.map +1 -1
- package/lib/orchestrator/tool-selection.d.ts +4 -3
- package/lib/orchestrator/tool-selection.d.ts.map +1 -1
- package/lib/orchestrator/tool-selection.js +17 -14
- package/lib/orchestrator/tool-selection.js.map +1 -1
- package/lib/orchestrator/types.d.ts +3 -2
- package/lib/orchestrator/types.d.ts.map +1 -1
- package/lib/outbound/send-proactive.js +1 -1
- package/lib/outbound/send-proactive.js.map +1 -1
- package/lib/plugin-ai-hook-bus.d.ts +3 -6
- package/lib/plugin-ai-hook-bus.d.ts.map +1 -1
- package/lib/plugin-ai-hook-bus.js +2 -20
- package/lib/plugin-ai-hook-bus.js.map +1 -1
- package/lib/plugin-runtime/agent-host-port.d.ts +25 -0
- package/lib/plugin-runtime/agent-host-port.d.ts.map +1 -1
- package/lib/plugin-runtime/agent-host-port.js.map +1 -1
- package/lib/plugin-runtime/agent-runtime.d.ts +61 -8
- package/lib/plugin-runtime/agent-runtime.d.ts.map +1 -1
- package/lib/plugin-runtime/agent-runtime.js +226 -11
- package/lib/plugin-runtime/agent-runtime.js.map +1 -1
- package/lib/plugin-runtime/capability-ingress.d.ts +4 -4
- package/lib/plugin-runtime/capability-ingress.d.ts.map +1 -1
- package/lib/plugin-runtime/capability-ingress.js +46 -20
- package/lib/plugin-runtime/capability-ingress.js.map +1 -1
- package/lib/plugin-runtime/capability-tools.d.ts +17 -0
- package/lib/plugin-runtime/capability-tools.d.ts.map +1 -0
- package/lib/plugin-runtime/capability-tools.js +55 -0
- package/lib/plugin-runtime/capability-tools.js.map +1 -0
- package/lib/plugin-runtime/deferred-capability-plan.d.ts +30 -0
- package/lib/plugin-runtime/deferred-capability-plan.d.ts.map +1 -0
- package/lib/plugin-runtime/deferred-capability-plan.js +152 -0
- package/lib/plugin-runtime/deferred-capability-plan.js.map +1 -0
- package/lib/plugin-runtime/full-agent-turn-engine.d.ts +17 -0
- package/lib/plugin-runtime/full-agent-turn-engine.d.ts.map +1 -0
- package/lib/plugin-runtime/full-agent-turn-engine.js +174 -0
- package/lib/plugin-runtime/full-agent-turn-engine.js.map +1 -0
- package/lib/plugin-runtime/host-mcp-projection.d.ts +10 -0
- package/lib/plugin-runtime/host-mcp-projection.d.ts.map +1 -0
- package/lib/plugin-runtime/host-mcp-projection.js +33 -0
- package/lib/plugin-runtime/host-mcp-projection.js.map +1 -0
- package/lib/plugin-runtime/host-tool-projection.d.ts +21 -0
- package/lib/plugin-runtime/host-tool-projection.d.ts.map +1 -0
- package/lib/plugin-runtime/host-tool-projection.js +22 -0
- package/lib/plugin-runtime/host-tool-projection.js.map +1 -0
- package/lib/plugin-runtime/index.d.ts +10 -0
- package/lib/plugin-runtime/index.d.ts.map +1 -1
- package/lib/plugin-runtime/index.js +10 -0
- package/lib/plugin-runtime/index.js.map +1 -1
- package/lib/plugin-runtime/native-file-tools.d.ts +9 -0
- package/lib/plugin-runtime/native-file-tools.d.ts.map +1 -0
- package/lib/plugin-runtime/native-file-tools.js +240 -0
- package/lib/plugin-runtime/native-file-tools.js.map +1 -0
- package/lib/plugin-runtime/native-interaction-tools.d.ts +8 -0
- package/lib/plugin-runtime/native-interaction-tools.d.ts.map +1 -0
- package/lib/plugin-runtime/native-interaction-tools.js +72 -0
- package/lib/plugin-runtime/native-interaction-tools.js.map +1 -0
- package/lib/plugin-runtime/native-todo-tools.d.ts +26 -0
- package/lib/plugin-runtime/native-todo-tools.d.ts.map +1 -0
- package/lib/plugin-runtime/native-todo-tools.js +152 -0
- package/lib/plugin-runtime/native-todo-tools.js.map +1 -0
- package/lib/plugin-runtime/native-web-tools.d.ts +10 -0
- package/lib/plugin-runtime/native-web-tools.d.ts.map +1 -0
- package/lib/plugin-runtime/native-web-tools.js +120 -0
- package/lib/plugin-runtime/native-web-tools.js.map +1 -0
- package/lib/prompt/assembly.d.ts +19 -9
- package/lib/prompt/assembly.d.ts.map +1 -1
- package/lib/prompt/assembly.js +54 -26
- package/lib/prompt/assembly.js.map +1 -1
- package/lib/prompt/index.d.ts +3 -2
- package/lib/prompt/index.d.ts.map +1 -1
- package/lib/prompt/index.js +2 -2
- package/lib/prompt/index.js.map +1 -1
- package/lib/prompt/model-aware-builder.d.ts.map +1 -1
- package/lib/prompt/model-aware-builder.js +13 -14
- package/lib/prompt/model-aware-builder.js.map +1 -1
- package/lib/prompt/model-prompt-strategy.d.ts.map +1 -1
- package/lib/prompt/model-prompt-strategy.js +79 -0
- package/lib/prompt/model-prompt-strategy.js.map +1 -1
- package/lib/prompt/rules/critical-rules.d.ts.map +1 -1
- package/lib/prompt/rules/critical-rules.js +10 -12
- package/lib/prompt/rules/critical-rules.js.map +1 -1
- package/lib/prompt/system-prompt.d.ts +4 -23
- package/lib/prompt/system-prompt.d.ts.map +1 -1
- package/lib/prompt/system-prompt.js +22 -348
- package/lib/prompt/system-prompt.js.map +1 -1
- package/lib/prompt/templates.d.ts +3 -6
- package/lib/prompt/templates.d.ts.map +1 -1
- package/lib/prompt/templates.js +17 -21
- package/lib/prompt/templates.js.map +1 -1
- package/lib/prompt/turn-prompt-profile.d.ts +16 -0
- package/lib/prompt/turn-prompt-profile.d.ts.map +1 -0
- package/lib/prompt/turn-prompt-profile.js +2 -0
- package/lib/prompt/turn-prompt-profile.js.map +1 -0
- package/lib/routing/route-matcher.d.ts +2 -2
- package/lib/routing/route-matcher.d.ts.map +1 -1
- package/lib/routing/route-matcher.js +1 -1
- package/lib/routing/route-matcher.js.map +1 -1
- package/lib/routing/subagent-summarize.d.ts.map +1 -1
- package/lib/routing/subagent-summarize.js +1 -6
- package/lib/routing/subagent-summarize.js.map +1 -1
- package/lib/schedule-domain/audit-logger.d.ts +38 -0
- package/lib/schedule-domain/audit-logger.d.ts.map +1 -0
- package/lib/schedule-domain/audit-logger.js +27 -0
- package/lib/schedule-domain/audit-logger.js.map +1 -0
- package/lib/schedule-domain/budget-guard.d.ts +27 -0
- package/lib/schedule-domain/budget-guard.d.ts.map +1 -0
- package/lib/schedule-domain/budget-guard.js +48 -0
- package/lib/schedule-domain/budget-guard.js.map +1 -0
- package/lib/schedule-domain/execution-domain.d.ts +49 -0
- package/lib/schedule-domain/execution-domain.d.ts.map +1 -0
- package/lib/schedule-domain/execution-domain.js +125 -0
- package/lib/schedule-domain/execution-domain.js.map +1 -0
- package/lib/schedule-domain/index.d.ts +8 -0
- package/lib/schedule-domain/index.d.ts.map +1 -0
- package/lib/schedule-domain/index.js +8 -0
- package/lib/schedule-domain/index.js.map +1 -0
- package/lib/schedule-domain/output-validator.d.ts +7 -0
- package/lib/schedule-domain/output-validator.d.ts.map +1 -0
- package/lib/schedule-domain/output-validator.js +36 -0
- package/lib/schedule-domain/output-validator.js.map +1 -0
- package/lib/schedule-domain/prompt-assembler.d.ts +22 -0
- package/lib/schedule-domain/prompt-assembler.d.ts.map +1 -0
- package/lib/schedule-domain/prompt-assembler.js +75 -0
- package/lib/schedule-domain/prompt-assembler.js.map +1 -0
- package/lib/schedule-domain/security-harness.d.ts +19 -0
- package/lib/schedule-domain/security-harness.d.ts.map +1 -0
- package/lib/schedule-domain/security-harness.js +89 -0
- package/lib/schedule-domain/security-harness.js.map +1 -0
- package/lib/schedule-domain/tool-resolver.d.ts +20 -0
- package/lib/schedule-domain/tool-resolver.d.ts.map +1 -0
- package/lib/schedule-domain/tool-resolver.js +80 -0
- package/lib/schedule-domain/tool-resolver.js.map +1 -0
- package/lib/schedule-domain/turn-context.d.ts +9 -0
- package/lib/schedule-domain/turn-context.d.ts.map +1 -0
- package/lib/schedule-domain/turn-context.js +36 -0
- package/lib/schedule-domain/turn-context.js.map +1 -0
- package/lib/schedule-manager.d.ts +12 -13
- package/lib/schedule-manager.d.ts.map +1 -1
- package/lib/schedule-manager.js +91 -155
- package/lib/schedule-manager.js.map +1 -1
- package/lib/security/anomaly-detection.d.ts +3 -6
- package/lib/security/anomaly-detection.d.ts.map +1 -1
- package/lib/security/anomaly-detection.js +24 -31
- package/lib/security/anomaly-detection.js.map +1 -1
- package/lib/security/audit-logger.d.ts +5 -4
- package/lib/security/audit-logger.d.ts.map +1 -1
- package/lib/security/audit-logger.js +17 -25
- package/lib/security/audit-logger.js.map +1 -1
- package/lib/security/dangerous-tool-policy.d.ts +1 -1
- package/lib/security/dangerous-tool-policy.d.ts.map +1 -1
- package/lib/security/dangerous-tool-policy.js +6 -25
- package/lib/security/dangerous-tool-policy.js.map +1 -1
- package/lib/security/exec-policy.d.ts +2 -1
- package/lib/security/exec-policy.d.ts.map +1 -1
- package/lib/security/exec-policy.js +6 -11
- package/lib/security/exec-policy.js.map +1 -1
- package/lib/security/file-policy.d.ts.map +1 -1
- package/lib/security/file-policy.js +1 -0
- package/lib/security/file-policy.js.map +1 -1
- package/lib/security/file-role-policy.d.ts.map +1 -1
- package/lib/security/file-role-policy.js +1 -4
- package/lib/security/file-role-policy.js.map +1 -1
- package/lib/security/index.d.ts +0 -2
- package/lib/security/index.d.ts.map +1 -1
- package/lib/security/index.js +0 -2
- package/lib/security/index.js.map +1 -1
- package/lib/security/network-policy-context.d.ts +7 -0
- package/lib/security/network-policy-context.d.ts.map +1 -0
- package/lib/security/network-policy-context.js +9 -0
- package/lib/security/network-policy-context.js.map +1 -0
- package/lib/security/network-policy.d.ts +14 -1
- package/lib/security/network-policy.d.ts.map +1 -1
- package/lib/security/network-policy.js +70 -3
- package/lib/security/network-policy.js.map +1 -1
- package/lib/security/owner-approve-always-store.d.ts +1 -1
- package/lib/security/owner-approve-always-store.d.ts.map +1 -1
- package/lib/security/owner-approve-always-store.js +12 -12
- package/lib/security/owner-approve-always-store.js.map +1 -1
- package/lib/security/policy-facade.d.ts +27 -0
- package/lib/security/policy-facade.d.ts.map +1 -1
- package/lib/security/policy-facade.js +190 -3
- package/lib/security/policy-facade.js.map +1 -1
- package/lib/security/sandbox.d.ts +2 -7
- package/lib/security/sandbox.d.ts.map +1 -1
- package/lib/security/sandbox.js +12 -21
- package/lib/security/sandbox.js.map +1 -1
- package/lib/security/turn-file-authority.d.ts +14 -0
- package/lib/security/turn-file-authority.d.ts.map +1 -0
- package/lib/security/turn-file-authority.js +101 -0
- package/lib/security/turn-file-authority.js.map +1 -0
- package/lib/security/turn-network-client.d.ts +30 -0
- package/lib/security/turn-network-client.d.ts.map +1 -0
- package/lib/security/turn-network-client.js +111 -0
- package/lib/security/turn-network-client.js.map +1 -0
- package/lib/service.d.ts +3 -13
- package/lib/service.d.ts.map +1 -1
- package/lib/service.js +3 -35
- package/lib/service.js.map +1 -1
- package/lib/session/{session-interaction-port.d.ts → approval-port.d.ts} +4 -7
- package/lib/session/approval-port.d.ts.map +1 -0
- package/lib/session/{session-interaction-port.js → approval-port.js} +1 -1
- package/lib/session/approval-port.js.map +1 -0
- package/lib/session/http-approval-adapter.d.ts +2 -2
- package/lib/session/http-approval-adapter.d.ts.map +1 -1
- package/lib/session/http-approval-adapter.js +1 -1
- package/lib/session/http-approval-adapter.js.map +1 -1
- package/lib/session/http-approval-waiter.d.ts +1 -1
- package/lib/session/http-approval-waiter.d.ts.map +1 -1
- package/lib/session/http-approval-waiter.js +25 -2
- package/lib/session/http-approval-waiter.js.map +1 -1
- package/lib/session/index.d.ts +6 -3
- package/lib/session/index.d.ts.map +1 -1
- package/lib/session/index.js +3 -2
- package/lib/session/index.js.map +1 -1
- package/lib/session/passive-group-session.d.ts +8 -10
- package/lib/session/passive-group-session.d.ts.map +1 -1
- package/lib/session/passive-group-session.js +23 -27
- package/lib/session/passive-group-session.js.map +1 -1
- package/lib/session/resolve-approval-port.d.ts +7 -0
- package/lib/session/resolve-approval-port.d.ts.map +1 -0
- package/lib/session/resolve-approval-port.js +13 -0
- package/lib/session/resolve-approval-port.js.map +1 -0
- package/lib/session/session-io.d.ts +3 -4
- package/lib/session/session-io.d.ts.map +1 -1
- package/lib/session/session-io.js +7 -15
- package/lib/session/session-io.js.map +1 -1
- package/lib/session/session-system.d.ts +16 -1
- package/lib/session/session-system.d.ts.map +1 -1
- package/lib/session/session-system.js +38 -10
- package/lib/session/session-system.js.map +1 -1
- package/lib/session/session-tree-commands.d.ts.map +1 -1
- package/lib/session/session-tree-commands.js +2 -4
- package/lib/session/session-tree-commands.js.map +1 -1
- package/lib/session/turn-ingress-session.d.ts +23 -0
- package/lib/session/turn-ingress-session.d.ts.map +1 -0
- package/lib/session/turn-ingress-session.js +89 -0
- package/lib/session/turn-ingress-session.js.map +1 -0
- package/lib/session-tree-runtime-registry.d.ts +3 -1
- package/lib/session-tree-runtime-registry.d.ts.map +1 -1
- package/lib/session-tree-runtime-registry.js +6 -4
- package/lib/session-tree-runtime-registry.js.map +1 -1
- package/lib/stability/memory-pressure.d.ts.map +1 -1
- package/lib/stability/memory-pressure.js +4 -21
- package/lib/stability/memory-pressure.js.map +1 -1
- package/lib/subagent/subagent-runtime.d.ts.map +1 -1
- package/lib/subagent/subagent-runtime.js +1 -5
- package/lib/subagent/subagent-runtime.js.map +1 -1
- package/lib/subagent/subagent-system-init.js +2 -2
- package/lib/subagent/subagent-system-init.js.map +1 -1
- package/lib/subagent-ai-events.d.ts +3 -0
- package/lib/subagent-ai-events.d.ts.map +1 -1
- package/lib/subagent-ai-events.js +4 -1
- package/lib/subagent-ai-events.js.map +1 -1
- package/lib/subagent-goal-notify.d.ts +1 -1
- package/lib/subagent-goal-notify.d.ts.map +1 -1
- package/lib/subagent-goal-notify.js +1 -1
- package/lib/subagent-goal-notify.js.map +1 -1
- package/lib/task-executor.d.ts +14 -25
- package/lib/task-executor.d.ts.map +1 -1
- package/lib/task-executor.js +106 -137
- package/lib/task-executor.js.map +1 -1
- package/lib/tool/builtin-policy-extractors.d.ts +2 -0
- package/lib/tool/builtin-policy-extractors.d.ts.map +1 -0
- package/lib/tool/builtin-policy-extractors.js +65 -0
- package/lib/tool/builtin-policy-extractors.js.map +1 -0
- package/lib/tool/classic-tool-execution-authority.d.ts +22 -0
- package/lib/tool/classic-tool-execution-authority.d.ts.map +1 -0
- package/lib/tool/classic-tool-execution-authority.js +79 -0
- package/lib/tool/classic-tool-execution-authority.js.map +1 -0
- package/lib/tool/contracts.d.ts +2 -2
- package/lib/tool/contracts.d.ts.map +1 -1
- package/lib/tool/contracts.js +1 -1
- package/lib/tool/deferred-resolution.d.ts +5 -3
- package/lib/tool/deferred-resolution.d.ts.map +1 -1
- package/lib/tool/deferred-resolution.js +31 -5
- package/lib/tool/deferred-resolution.js.map +1 -1
- package/lib/tool/index.d.ts +2 -0
- package/lib/tool/index.d.ts.map +1 -1
- package/lib/tool/index.js +1 -0
- package/lib/tool/index.js.map +1 -1
- package/lib/tool/prepare-turn-tools.d.ts +2 -0
- package/lib/tool/prepare-turn-tools.d.ts.map +1 -1
- package/lib/tool/prepare-turn-tools.js +62 -10
- package/lib/tool/prepare-turn-tools.js.map +1 -1
- package/lib/tool/runtime.d.ts +1 -1
- package/lib/tool/runtime.d.ts.map +1 -1
- package/lib/tool/runtime.js +1 -1
- package/lib/tool/runtime.js.map +1 -1
- package/lib/tool/sources.d.ts +5 -2
- package/lib/tool/sources.d.ts.map +1 -1
- package/lib/tool/sources.js +4 -4
- package/lib/tool/sources.js.map +1 -1
- package/lib/tool/tool-approval-gate.d.ts +3 -3
- package/lib/tool/tool-approval-gate.d.ts.map +1 -1
- package/lib/tool/tool-approval-gate.js +2 -1
- package/lib/tool/tool-approval-gate.js.map +1 -1
- package/lib/tool/tool-runtime.d.ts +52 -0
- package/lib/tool/tool-runtime.d.ts.map +1 -0
- package/lib/tool/tool-runtime.js +101 -0
- package/lib/tool/tool-runtime.js.map +1 -0
- package/lib/tool/tool-system.d.ts +7 -3
- package/lib/tool/tool-system.d.ts.map +1 -1
- package/lib/tool/tool-system.js +12 -6
- package/lib/tool/tool-system.js.map +1 -1
- package/lib/tool/turn-tool-runtime.d.ts +29 -0
- package/lib/tool/turn-tool-runtime.d.ts.map +1 -0
- package/lib/tool/turn-tool-runtime.js +89 -0
- package/lib/tool/turn-tool-runtime.js.map +1 -0
- package/lib/tool-catalog/deferred-turn-controller.d.ts +30 -0
- package/lib/tool-catalog/deferred-turn-controller.d.ts.map +1 -0
- package/lib/tool-catalog/deferred-turn-controller.js +126 -0
- package/lib/tool-catalog/deferred-turn-controller.js.map +1 -0
- package/lib/turn/auto-continue.d.ts +5 -4
- package/lib/turn/auto-continue.d.ts.map +1 -1
- package/lib/turn/auto-continue.js +43 -31
- package/lib/turn/auto-continue.js.map +1 -1
- package/lib/turn/deferred-turn-state.d.ts +29 -0
- package/lib/turn/deferred-turn-state.d.ts.map +1 -0
- package/lib/turn/deferred-turn-state.js +35 -0
- package/lib/turn/deferred-turn-state.js.map +1 -0
- package/lib/turn/execute-agent-turn.d.ts +14 -0
- package/lib/turn/execute-agent-turn.d.ts.map +1 -0
- package/lib/turn/execute-agent-turn.js +171 -0
- package/lib/turn/execute-agent-turn.js.map +1 -0
- package/lib/turn/inbound-media.d.ts +3 -3
- package/lib/turn/inbound-media.d.ts.map +1 -1
- package/lib/turn/inbound-media.js +11 -4
- package/lib/turn/inbound-media.js.map +1 -1
- package/lib/turn/index.d.ts +8 -1
- package/lib/turn/index.d.ts.map +1 -1
- package/lib/turn/index.js +5 -1
- package/lib/turn/index.js.map +1 -1
- package/lib/turn/journal-integrity.d.ts +5 -0
- package/lib/turn/journal-integrity.d.ts.map +1 -0
- package/lib/turn/journal-integrity.js +8 -0
- package/lib/turn/journal-integrity.js.map +1 -0
- package/lib/turn/process-stream.d.ts.map +1 -1
- package/lib/turn/process-stream.js +21 -55
- package/lib/turn/process-stream.js.map +1 -1
- package/lib/turn/prompt-controller.d.ts +7 -4
- package/lib/turn/prompt-controller.d.ts.map +1 -1
- package/lib/turn/prompt-controller.js +23 -11
- package/lib/turn/prompt-controller.js.map +1 -1
- package/lib/turn/subagent-auto-continue.d.ts +2 -0
- package/lib/turn/subagent-auto-continue.d.ts.map +1 -1
- package/lib/turn/subagent-auto-continue.js +17 -1
- package/lib/turn/subagent-auto-continue.js.map +1 -1
- package/lib/turn/task-continuation.d.ts +3 -6
- package/lib/turn/task-continuation.d.ts.map +1 -1
- package/lib/turn/task-continuation.js +10 -13
- package/lib/turn/task-continuation.js.map +1 -1
- package/lib/turn/turn-complete.d.ts +1 -0
- package/lib/turn/turn-complete.d.ts.map +1 -1
- package/lib/turn/turn-complete.js +3 -2
- package/lib/turn/turn-complete.js.map +1 -1
- package/lib/turn/turn-context-bridge.d.ts +0 -4
- package/lib/turn/turn-context-bridge.d.ts.map +1 -1
- package/lib/turn/turn-context-bridge.js +0 -10
- package/lib/turn/turn-context-bridge.js.map +1 -1
- package/lib/turn/turn-event-source.d.ts +15 -0
- package/lib/turn/turn-event-source.d.ts.map +1 -0
- package/lib/turn/turn-event-source.js +61 -0
- package/lib/turn/turn-event-source.js.map +1 -0
- package/lib/turn/turn-ingress.d.ts +157 -0
- package/lib/turn/turn-ingress.d.ts.map +1 -0
- package/lib/turn/turn-ingress.js +76 -0
- package/lib/turn/turn-ingress.js.map +1 -0
- package/lib/turn/turn-metrics.d.ts.map +1 -1
- package/lib/turn/turn-metrics.js +10 -9
- package/lib/turn/turn-metrics.js.map +1 -1
- package/lib/turn/turn-pipeline.d.ts +10 -3
- package/lib/turn/turn-pipeline.d.ts.map +1 -1
- package/lib/turn/turn-pipeline.js +73 -41
- package/lib/turn/turn-pipeline.js.map +1 -1
- package/lib/typing-indicator/adapter-integration.d.ts +3 -5
- package/lib/typing-indicator/adapter-integration.d.ts.map +1 -1
- package/lib/typing-indicator/adapter-integration.js.map +1 -1
- package/lib/typing-indicator/index.d.ts +4 -4
- package/lib/typing-indicator/index.d.ts.map +1 -1
- package/lib/typing-indicator/index.js +25 -29
- package/lib/typing-indicator/index.js.map +1 -1
- package/lib/typing-indicator/integration.d.ts +6 -8
- package/lib/typing-indicator/integration.d.ts.map +1 -1
- package/lib/typing-indicator/integration.js +12 -10
- package/lib/typing-indicator/integration.js.map +1 -1
- package/lib/utils/keyed-mutex.d.ts +10 -0
- package/lib/utils/keyed-mutex.d.ts.map +1 -0
- package/lib/utils/keyed-mutex.js +34 -0
- package/lib/utils/keyed-mutex.js.map +1 -0
- package/lib/zhin-agent/index.d.ts +57 -42
- package/lib/zhin-agent/index.d.ts.map +1 -1
- package/lib/zhin-agent/index.js +32 -46
- package/lib/zhin-agent/index.js.map +1 -1
- package/package.json +13 -11
- package/lib/assistant/domains/home-assistant.d.ts.map +0 -1
- package/lib/assistant/domains/home-assistant.js.map +0 -1
- package/lib/assistant/schedule-message.d.ts +0 -9
- package/lib/assistant/schedule-message.d.ts.map +0 -1
- package/lib/assistant/schedule-message.js +0 -23
- package/lib/assistant/schedule-message.js.map +0 -1
- package/lib/assistant/schedule-tool-runtime.d.ts +0 -7
- package/lib/assistant/schedule-tool-runtime.d.ts.map +0 -1
- package/lib/assistant/schedule-tool-runtime.js +0 -50
- package/lib/assistant/schedule-tool-runtime.js.map +0 -1
- package/lib/builtin/ask-user-session-service.d.ts +0 -40
- package/lib/builtin/ask-user-session-service.d.ts.map +0 -1
- package/lib/builtin/ask-user-session-service.js +0 -258
- package/lib/builtin/ask-user-session-service.js.map +0 -1
- package/lib/builtin/ask-user-session.d.ts +0 -18
- package/lib/builtin/ask-user-session.d.ts.map +0 -1
- package/lib/builtin/ask-user-session.js +0 -21
- package/lib/builtin/ask-user-session.js.map +0 -1
- package/lib/builtin/ask-user-tool.d.ts +0 -22
- package/lib/builtin/ask-user-tool.d.ts.map +0 -1
- package/lib/builtin/ask-user-tool.js +0 -148
- package/lib/builtin/ask-user-tool.js.map +0 -1
- package/lib/builtin/deferred-tool-meta.d.ts +0 -51
- package/lib/builtin/deferred-tool-meta.d.ts.map +0 -1
- package/lib/builtin/deferred-tool-meta.js +0 -143
- package/lib/builtin/deferred-tool-meta.js.map +0 -1
- package/lib/collaboration/ask-user-bridge.d.ts +0 -9
- package/lib/collaboration/ask-user-bridge.d.ts.map +0 -1
- package/lib/collaboration/ask-user-bridge.js +0 -73
- package/lib/collaboration/ask-user-bridge.js.map +0 -1
- package/lib/collaboration/bootstrap-agent-runtimes.d.ts +0 -22
- package/lib/collaboration/bootstrap-agent-runtimes.d.ts.map +0 -1
- package/lib/collaboration/bootstrap-agent-runtimes.js +0 -106
- package/lib/collaboration/bootstrap-agent-runtimes.js.map +0 -1
- package/lib/collaboration/inbound-turn-compat.d.ts +0 -32
- package/lib/collaboration/inbound-turn-compat.d.ts.map +0 -1
- package/lib/collaboration/inbound-turn-compat.js +0 -30
- package/lib/collaboration/inbound-turn-compat.js.map +0 -1
- package/lib/collaboration/runtime-registry.d.ts +0 -18
- package/lib/collaboration/runtime-registry.d.ts.map +0 -1
- package/lib/collaboration/runtime-registry.js +0 -45
- package/lib/collaboration/runtime-registry.js.map +0 -1
- package/lib/init/management-command-guard.d.ts +0 -6
- package/lib/init/management-command-guard.d.ts.map +0 -1
- package/lib/init/management-command-guard.js +0 -6
- package/lib/init/management-command-guard.js.map +0 -1
- package/lib/init/output-renderer.d.ts +0 -7
- package/lib/init/output-renderer.d.ts.map +0 -1
- package/lib/init/output-renderer.js +0 -44
- package/lib/init/output-renderer.js.map +0 -1
- package/lib/init/register-home-tools.d.ts +0 -2
- package/lib/init/register-home-tools.d.ts.map +0 -1
- package/lib/init/register-home-tools.js +0 -51
- package/lib/init/register-home-tools.js.map +0 -1
- package/lib/init/register-owner-approve-commands.d.ts +0 -10
- package/lib/init/register-owner-approve-commands.d.ts.map +0 -1
- package/lib/init/register-owner-approve-commands.js +0 -12
- package/lib/init/register-owner-approve-commands.js.map +0 -1
- package/lib/media/constants.d.ts +0 -3
- package/lib/media/constants.d.ts.map +0 -1
- package/lib/media/constants.js +0 -3
- package/lib/media/constants.js.map +0 -1
- package/lib/orchestrator/owner-confirm-orchestration.d.ts +0 -39
- package/lib/orchestrator/owner-confirm-orchestration.d.ts.map +0 -1
- package/lib/orchestrator/owner-confirm-orchestration.js +0 -92
- package/lib/orchestrator/owner-confirm-orchestration.js.map +0 -1
- package/lib/orchestrator/owner-orchestration-constants.d.ts +0 -6
- package/lib/orchestrator/owner-orchestration-constants.d.ts.map +0 -1
- package/lib/orchestrator/owner-orchestration-constants.js +0 -10
- package/lib/orchestrator/owner-orchestration-constants.js.map +0 -1
- package/lib/security/dangerous-tool-policy-hook.d.ts +0 -6
- package/lib/security/dangerous-tool-policy-hook.d.ts.map +0 -1
- package/lib/security/dangerous-tool-policy-hook.js +0 -41
- package/lib/security/dangerous-tool-policy-hook.js.map +0 -1
- package/lib/security/exec-policy-hook.d.ts +0 -7
- package/lib/security/exec-policy-hook.d.ts.map +0 -1
- package/lib/security/exec-policy-hook.js +0 -29
- package/lib/security/exec-policy-hook.js.map +0 -1
- package/lib/security/file-policy-hook.d.ts +0 -6
- package/lib/security/file-policy-hook.d.ts.map +0 -1
- package/lib/security/file-policy-hook.js +0 -30
- package/lib/security/file-policy-hook.js.map +0 -1
- package/lib/security/sandbox-enhanced.d.ts +0 -173
- package/lib/security/sandbox-enhanced.d.ts.map +0 -1
- package/lib/security/sandbox-enhanced.js +0 -665
- package/lib/security/sandbox-enhanced.js.map +0 -1
- package/lib/session/im-approval-adapter.d.ts +0 -12
- package/lib/session/im-approval-adapter.d.ts.map +0 -1
- package/lib/session/im-approval-adapter.js +0 -24
- package/lib/session/im-approval-adapter.js.map +0 -1
- package/lib/session/resolve-session-interaction-port.d.ts +0 -9
- package/lib/session/resolve-session-interaction-port.d.ts.map +0 -1
- package/lib/session/resolve-session-interaction-port.js +0 -17
- package/lib/session/resolve-session-interaction-port.js.map +0 -1
- package/lib/session/session-interaction-port.d.ts.map +0 -1
- package/lib/session/session-interaction-port.js.map +0 -1
package/lib/index.js
CHANGED
|
@@ -9,20 +9,21 @@ export { AIService } from './service.js';
|
|
|
9
9
|
export { createAgentSession } from './create-agent-session.js';
|
|
10
10
|
export { PluginAILoopHookRegistry } from './plugin-loop-hooks.js';
|
|
11
11
|
export { ZhinAgent } from './zhin-agent/index.js';
|
|
12
|
-
export { elementsToMessageContent } from './init/output-renderer.js';
|
|
13
12
|
export { pluginToolToAgentTool, agentToolToLlmTool, agentToolsToLlmTools, } from './tool-bridge.js';
|
|
13
|
+
export { createTurnIngress, resolveTurnContextValue, turnPermissionSubject, } from './turn/turn-ingress.js';
|
|
14
|
+
export { executeAgentTurn } from './turn/execute-agent-turn.js';
|
|
14
15
|
export { DEFAULT_CONFIG as ZHIN_AGENT_DEFAULT_CONFIG, DEFAULT_ALWAYS_LOADED_TOOLS, SECTION_SEP, } from './config/index.js';
|
|
15
16
|
export { MODEL_HARNESS_DEFAULTS, resolveModelHarness, mergeModelHarnessValues } from './config/model-harness-runtime.js';
|
|
16
17
|
export { checkExecPolicy, applyExecPolicyToTools, resolveExecAllowlist, EXEC_PRESETS, isDangerousCommand, stripEnvVarPrefix, stripSafeWrappers, splitCompoundCommand, extractCommandName, } from './security/exec-policy.js';
|
|
17
|
-
export { ZHIN_NEEDS_OWNER_FIRST_LINE, OWNER_HARD_ORCHESTRATION_TOOLS, parseNeedsOwnerSignal, shouldHardOrchestrateOwnerConfirm, createOwnerOrchestratedToolResultTransform, } from './orchestrator/owner-confirm-orchestration.js';
|
|
18
18
|
export { OWNER_APPROVE_ALWAYS_TOOL, handleRuntimeOwnerApproveCommand, getEndpointMaster, hasOwnerApproveAlways, addOwnerApproveAlways, formatBashApproveList, } from './security/owner-approve-always-store.js';
|
|
19
19
|
export { handleRuntimeManagementCommand, } from './init/runtime-management-commands.js';
|
|
20
|
-
export { buildRichSystemPrompt, buildLiteSystemPromptWithPlatform,
|
|
20
|
+
export { buildRichSystemPrompt, buildLiteSystemPromptWithPlatform, buildUserMessageWithHistory, describePromptSectionsForDebug, } from './prompt/system-prompt.js';
|
|
21
21
|
export { buildAgentsEnvelopeContext, collectAgentsInstructionChain, clearAgentsInstructionCache, } from './context/agents-instruction.js';
|
|
22
22
|
export { resolveWorkspacePrompt, clearWorkspacePromptCache, } from './prompt/workspace-prompt.js';
|
|
23
23
|
export { registerAgentPromptContributor, unregisterAgentPromptContributor, getAgentPromptContributor, clearAgentPromptContributors, resolveAgentPromptSections, resolveAgentPromptMarkdown, resolveDeferredToolsForPlatform, formatAgentPromptSectionsMarkdown, } from './agent-prompt/index.js';
|
|
24
24
|
export { createImTranscriptHistoryTool, createUserProfileTool } from './tool/context-tools.js';
|
|
25
25
|
export { createSpawnTaskTool } from './builtin/spawn-task-tool.js';
|
|
26
|
+
export * from './interaction/index.js';
|
|
26
27
|
export { UserProfileStore, AI_USER_PROFILE_MODEL } from './user-profile.js';
|
|
27
28
|
export { SubagentSystem } from './subagent/index.js';
|
|
28
29
|
export { SubagentRuntime } from './subagent/subagent-runtime.js';
|
|
@@ -42,15 +43,19 @@ export { WebFetchBuiltinTool, createWebFetchTool, WEB_FETCH_PARAMETERS, WEB_FETC
|
|
|
42
43
|
export { TodoReadBuiltinTool, createTodoReadTool, TODO_READ_PARAMETERS, } from './builtin/todo-read-tool.js';
|
|
43
44
|
export { TodoWriteBuiltinTool, createTodoWriteTool, TODO_WRITE_PARAMETERS, } from './builtin/todo-write-tool.js';
|
|
44
45
|
export { readSkillInstructions, LoadSkillBuiltinTool, createLoadSkillTool, LOAD_SKILL_PARAMETERS, } from './builtin/load-skill-tool.js';
|
|
45
|
-
export { DiscoverBuiltinTool, LoadToolBuiltinTool, LoadSkillBuiltinToolMeta, createDeferredMetaTools, bindDeferredToolRuntime, getDeferredToolRuntime, isToolsMutatedResult, TOOLS_MUTATED_MARKER, } from './builtin/deferred-tool-meta.js';
|
|
46
46
|
export { InstallSkillBuiltinTool, createInstallSkillTool, INSTALL_SKILL_PARAMETERS, } from './builtin/install-skill-tool.js';
|
|
47
|
-
export { AskUserBuiltinTool, createAskUserTool, ASK_USER_PARAMETERS, askViaPrompt, formatOwnerResponse, } from './builtin/ask-user-tool.js';
|
|
48
47
|
export { createBuiltinTools } from './builtin-tools.js';
|
|
48
|
+
export { createToolRuntime, registerPolicyExtractor, } from './tool/tool-runtime.js';
|
|
49
|
+
export { registerBuiltinPolicyExtractors } from './tool/builtin-policy-extractors.js';
|
|
50
|
+
export { stampToolGeneration } from './tool/tool-system.js';
|
|
51
|
+
export { FileJournalStore } from './journal/index.js';
|
|
52
|
+
export { PersistentTurnJournal } from './journal/index.js';
|
|
49
53
|
export { ZHIN_WEB_USER_AGENT, WEB_TOOL_FETCH_TIMEOUT_MS } from './builtin/web-tool-utils.js';
|
|
50
|
-
export { createScheduleTools,
|
|
51
|
-
export { ScheduleJobEngine, ScheduleJobStore, AssistantJobEngine, AssistantJobStore, AssistantEventIngress, JobWorker, createScheduleJobStoreFromConfig, createAssistantJobStore, getScheduleJobsPath, getAssistantJobsPath, resolveAssistantConfig, resolveAssistantDefaultsConfig, resolveAssistantEventsConfig, isAssistantEventsActive, createNotificationRouter, imNotifyToSendOptions, parseJobNotify,
|
|
54
|
+
export { createScheduleTools, generateScheduleJobId, SCHEDULE_JOBS_FILENAME, } from './schedule-manager.js';
|
|
55
|
+
export { ScheduleJobEngine, ScheduleJobStore, AssistantJobEngine, AssistantJobStore, AssistantEventIngress, JobWorker, createScheduleJobStoreFromConfig, createAssistantJobStore, getScheduleJobsPath, getAssistantJobsPath, resolveAssistantConfig, resolveAssistantDefaultsConfig, resolveAssistantEventsConfig, isAssistantEventsActive, createNotificationRouter, imNotifyToSendOptions, parseJobNotify, provideAssistantRuntime, getAssistantRuntime, isAssistantEventsEndpointActive, getAssistantEventsTokenFallback, SCHEDULE_JOBS_VERSION, ASSISTANT_JOBS_FILENAME, syncProfileRoutinesToStore, scheduleJobCreatorFromPrincipal, parseScheduleJobCreator, parseExecutionPlanFromArgs, parseScheduleJobExecutionPlan, addScheduleJob, parseScheduleAddFromToolArgs, parseScheduleAddFromRpcMessage, bootstrapAssistantHome, isAssistantHomeActive, resolveAssistantHomeConfig, } from './assistant/index.js';
|
|
56
|
+
export * from './schedule-domain/index.js';
|
|
52
57
|
export { loadAssistantProfileFile, loadBootstrapWithProfile, syncProfileHeartbeatToStore, syncProfileCronRoutinesToStore, pruneStaleProfileCronJobs, mergeProfileDeviceAliases, validateAssistantProfile, resolveAssistantProfileConfig, ASSISTANT_PROFILE_VERSION, DEFAULT_PROFILE_FILENAME, PROFILE_HEARTBEAT_JOB_ID, PROFILE_MORNING_BRIEF_JOB_ID, PROFILE_BEDTIME_CHECK_JOB_ID, } from './assistant/index.js';
|
|
53
|
-
export {
|
|
58
|
+
export { provideSessionTreeRuntime, getSessionTreeRuntime, createSessionTreeRuntimeFromAgent, } from './session-tree-runtime-registry.js';
|
|
54
59
|
/** Runtime Host(basic/cli)装配 session tree runtime 时的门面收窄(同 legacy create-zhin-agent)。 */
|
|
55
60
|
export { asPrivate } from './internal/as-private.js';
|
|
56
61
|
export { createAgentSessionHostPort, } from './session/agent-session-host-port.js';
|
|
@@ -58,13 +63,13 @@ export { HttpAgentSessionStore } from './session/http-agent-session-store.js';
|
|
|
58
63
|
export { FileHttpSessionPersistence } from './session/http-session-persistence.js';
|
|
59
64
|
export { HttpStepProjector } from './session/http-step-projector.js';
|
|
60
65
|
export { HttpApprovalWaiter } from './session/http-approval-waiter.js';
|
|
61
|
-
export {
|
|
62
|
-
export {
|
|
66
|
+
export { beginIngressTurnSession } from './session/turn-ingress-session.js';
|
|
67
|
+
export { provideOrchestrationRuntime, getOrchestrationRuntime, createOrchestrationRuntimeFromService, } from './orchestration-runtime-registry.js';
|
|
68
|
+
export { getOrchestrationService, getOrchestrationKernel, createOrchestrationService, provideOrchestrationService, upgradeOrchestrationRepository, OrchestrationKernel, OrchestrationService, } from './orchestrator/orchestration-service.js';
|
|
63
69
|
export { MemoryOrchestrationRepository, DatabaseOrchestrationRepository, } from './orchestrator/orchestration-repository.js';
|
|
64
70
|
export { registerDefaultExecutors } from './orchestrator/bootstrap-executors.js';
|
|
65
|
-
export {
|
|
66
|
-
export {
|
|
67
|
-
export { getRemoteTaskPoller, startRemoteTaskPoller, } from './orchestrator/remote-task-poller.js';
|
|
71
|
+
export { getRemoteAgentRegistry, provideRemoteAgentRegistry, } from './orchestrator/remote-agent-registry.js';
|
|
72
|
+
export { getRemoteTaskPoller, provideRemoteTaskPoller, } from './orchestrator/remote-task-poller.js';
|
|
68
73
|
export { introspectionRestBindings, introspectionRestEndpoints, introspectionRestCommands, introspectionRestMcp, introspectionRestTools, } from './init/introspection-rest.js';
|
|
69
74
|
export { collectIntrospectionBindings, collectIntrospectionAgentTools, collectIntrospectionSkills, collectIntrospectionMcpLabels, collectIntrospectionMcpWithConfigFallback } from './init/introspection-collectors.js';
|
|
70
75
|
export { ensureMcpConnections, ensureMcpConnectionsForBinding, getMcpToolsForBinding } from './orchestrator/mcp-lifecycle.js';
|
|
@@ -72,8 +77,9 @@ export { waitForAgentBootstrap } from './init/bootstrap-gate.js';
|
|
|
72
77
|
export { composeZhinAgentRuntime } from './init/compose-zhin-agent-runtime.js';
|
|
73
78
|
export { activateAiDatabaseStorage } from './init/activate-ai-database-storage.js';
|
|
74
79
|
export { defineAiDatabaseModels } from './init/define-ai-database-models.js';
|
|
75
|
-
export { loadBootstrapFiles, buildContextFiles, buildBootstrapContextSection, buildStableContextFiles, buildStableBootstrapSection, loadSoulPersona, loadToolsGuide, loadAgentsMemory, clearBootstrapCache,
|
|
76
|
-
export {
|
|
80
|
+
export { loadBootstrapFiles, buildContextFiles, buildBootstrapContextSection, buildStableContextFiles, buildStableBootstrapSection, loadSoulPersona, loadToolsGuide, loadAgentsMemory, clearBootstrapCache, STABLE_BOOTSTRAP_FILENAMES, } from './bootstrap.js';
|
|
81
|
+
export { getFileMemoryContext, getMemoryDir } from './memory-layers.js';
|
|
82
|
+
export { preprocessInboundMedia, publishOutboundElements, resolveMultimodalConfig, resolveOutboundCapabilities, } from './media/index.js';
|
|
77
83
|
export { filterImDeliveryContent } from './segment/filter-im-delivery.js';
|
|
78
84
|
export { loadMemoryLayers, buildMemoryPrompt, safeSessionKey, getMemoryRoot, checkMemoryWritePath, classifyMemoryWritePath, formatMemoryPathsHint, resolveMemoryPromptOptions, DEFAULT_MEMORY_BUDGETS, migrateLegacyMemoryFiles, } from './memory-layers.js';
|
|
79
85
|
export { registerAIHook, unregisterAIHook, triggerAIHook, createAIHookEvent as createLegacyAIHookEvent, clearAIHooks, getRegisteredAIHookKeys, } from './hooks.js';
|
|
@@ -82,18 +88,17 @@ export { createAIHookBusPayload, isAISessionNewPayload, isAISessionCompactPayloa
|
|
|
82
88
|
export { AI_EVENT_NAMES, subscribeAIEvents, subscribeAIEventsOnTarget, } from './ai-event-subscriber.js';
|
|
83
89
|
export { originFromMessage } from './builtin/spawn-task-tool.js';
|
|
84
90
|
export { initAgentModule } from './init.js';
|
|
85
|
-
export {
|
|
91
|
+
export { registerEndpointKeyColumnMigrationHook } from './init/upgrade-endpoint-id-schema.js';
|
|
86
92
|
// ── Activity Feedback(替代 endpoint typingIndicator)──
|
|
87
|
-
export { ActivityFeedbackManager, getActivityFeedbackManager, initActivityFeedbackManager, resolveActivityFeedbackPhaseConfig, isActivityFeedbackEnabled, toActivityFeedbackEventContext, resolveActivitySceneType, resolveActivityEventTargets, enableActivityFeedbackForBot, getAdapterActivityFeedbackManager, initAdapterActivityFeedbackManager, isGenericActivityFeedbackManager, activityFeedbackAiBus, ActivityFeedbackAIBus, } from './activity-feedback/index.js';
|
|
93
|
+
export { ActivityFeedbackManager, getActivityFeedbackManager, initActivityFeedbackManager, provideActivityFeedbackManager, resolveActivityFeedbackPhaseConfig, isActivityFeedbackEnabled, toActivityFeedbackEventContext, resolveActivitySceneType, resolveActivityEventTargets, enableActivityFeedbackForBot, getAdapterActivityFeedbackManager, initAdapterActivityFeedbackManager, provideAdapterActivityFeedbackManager, isGenericActivityFeedbackManager, activityFeedbackAiBus, ActivityFeedbackAIBus, resolveSubagentActivityTag, formatSubagentActivityPrefix, withSubagentActivityPrefix, applySubagentActivityPrefixToConfig, resolveActivityFeedbackSessionId, } from './activity-feedback/index.js';
|
|
88
94
|
export { createProactiveOutboundService } from './outbound/send-proactive.js';
|
|
89
95
|
export { deliverScheduleToAdapter } from './assistant/deliver-schedule-to-adapter.js';
|
|
90
96
|
export { createTaskExecutor, drainTaskExecutorLocks } from './task-executor.js';
|
|
91
97
|
export { requestConnectionAuthorization, completeConnectionAuthorization, buildAuthorizationRequiredEvent, buildAuthorizationCompletedEvent, } from './connection/authorization-flow.js';
|
|
92
98
|
export { SKILL_DISCLOSURE_TOOLS, SKILL_DISCLOSURE_STEPS, SKILL_DISCLOSURE_PROMPT_HINT, } from './skill/progressive-disclosure.js';
|
|
93
99
|
export { resolveOutboundBatches, stripFakeAtTokens } from './collaboration/outbound-resolver.js';
|
|
94
|
-
export { AskUserSessionService } from './builtin/ask-user-session-service.js';
|
|
95
100
|
// ── Typing Indicator ──
|
|
96
|
-
export { TypingIndicatorManager, ReactionTypingIndicator, MessageTypingIndicator, NoneTypingIndicator, ReactionTypingIndicatorAdapter, NativeTypingIndicatorAdapter, NativeTypingIndicator, GenericTypingIndicatorAdapter, getTypingIndicatorManager,
|
|
101
|
+
export { TypingIndicatorManager, ReactionTypingIndicator, MessageTypingIndicator, NoneTypingIndicator, ReactionTypingIndicatorAdapter, NativeTypingIndicatorAdapter, NativeTypingIndicator, GenericTypingIndicatorAdapter, getTypingIndicatorManager, provideTypingIndicatorManager, startTypingIndicator, stopTypingIndicator, } from './typing-indicator/index.js';
|
|
97
102
|
// ── Activity Feedback 平台能力 ──
|
|
98
103
|
export { PLATFORM_FEATURES, buildTypingSendContent, } from './typing-indicator/adapter-integration.js';
|
|
99
104
|
// ── MCP Client ──
|
|
@@ -105,8 +110,8 @@ export { AgentOrchestrator } from './orchestrator/index.js';
|
|
|
105
110
|
export { AgentOrchestrator as ResourceHub } from './orchestrator/index.js';
|
|
106
111
|
export { ResourceRegistry, ToolRegistry, ZhinTool, isZhinTool, defineTool, extractParamInfo, canAccessTool, normalizeTool, sharedToolSelection, SkillRegistry, SubAgentRegistry, McpRegistry, HookRegistry, createAIHookEvent, } from './orchestrator/index.js';
|
|
107
112
|
// ── Collaboration (GroupCell multi-endpoint) ──
|
|
108
|
-
export {
|
|
109
|
-
export { resolveMemberBySender,
|
|
113
|
+
export { getCollaborationSceneService, initCollaborationSceneService, resetCollaborationSceneService, wireCollaborationStorage, getCollaborationSceneRepository, MemoryCollaborationSceneRepository, getCollaborationArtifactRepository, setCollaborationArtifactRepository, createCollaborationArtifactRepository, COLLABORATION_SCENE_MODEL, COLLABORATION_SCENE_MEMBER_MODEL, COLLABORATION_SCENE_ARTIFACT_MODEL, buildTurnPlan, evaluatePeerTrigger, applyRuntimeCollaborationInbound, findCellForInbound, resolveCollaborationSceneContextKey, resolveCollaborationSceneContextKeyFromMessage, } from './collaboration/index.js';
|
|
114
|
+
export { resolveMemberBySender, resolveEndpointKeysForMember, isInboundFromPeerBot, } from './collaboration/endpoint-identity.js';
|
|
110
115
|
export { FIVE_AGENT_WORKFLOW_STRATEGY_NAME, createFiveAgentWorkflowStrategy, } from './builtin/five-agent/index.js';
|
|
111
116
|
export { defineAgent, defineAgentTool, defineSkill, defineSchedule, defineConnection, defineHook, defineEval, disableTool, normalizeToolDenylist, defineState, defineDynamic, namespaceAuthoringName, slotNameFromFile, slotNameFromDir, } from './authoring/index.js';
|
|
112
117
|
export { discoverAllPluginAgentSurfaces, discoverPluginAgentSurface, collectPluginAgentRoots, } from './discovery/agent-surface.js';
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,+BAA+B;AAE/B,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAE/D,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAOlE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,+BAA+B;AAE/B,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAE/D,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAOlE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,OAAO,EACL,qBAAqB,EACrB,kBAAkB,EAClB,oBAAoB,GACrB,MAAM,kBAAkB,CAAC;AAmB1B,OAAO,EACL,iBAAiB,EACjB,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AA2BhE,OAAO,EACL,cAAc,IAAI,yBAAyB,EAC3C,2BAA2B,EAC3B,WAAW,GACZ,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,uBAAuB,EAAE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qB,EACrB,WAAW,EACX,aAAa,EACb,sBAAsB,EACtB,gBAAgB,EAChB,eAAe,GAChB,MAAM,sBAAsB,CAAC;AAc9B,OAAO,EACL,8BAA8B,EAC9B,0BAA0B,EAC1B,uBAAuB,GACxB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,uBAAuB,GAExB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,2BAA2B,EAC3B,4BAA4B,GAC7B,MAAM,mCAAmC,CAAC;AAM3C,OAAO,EACL,aAAa,EACb,gBAAgB,EAChB,sBAAsB,EACtB,oCAAoC,EACpC,6BAA6B,GAC9B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,yBAAyB,EACzB,uBAAuB,EACvB,oBAAoB,GACrB,MAAM,+BAA+B,CAAC;AAKvC,OAAO,EACL,2BAA2B,EAC3B,cAAc,EACd,kCAAkC,GACnC,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,YAAY,EACZ,UAAU,GACX,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,wBAAwB,EACxB,8BAA8B,GAC/B,MAAM,oBAAoB,CAAC"}
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
* `CapabilityIngress` exported by `@zhin.js/agent/runtime`.
|
|
18
18
|
*/
|
|
19
19
|
import { type Message, type ToolFeature, type SkillFeature } from '@zhin.js/core';
|
|
20
|
+
import type { PermissionHost } from '@zhin.js/permission';
|
|
20
21
|
import type { AgentOrchestrator } from '../orchestrator/index.js';
|
|
21
22
|
import type { AgentFeature } from '../features/agent-feature.js';
|
|
22
23
|
import type { MCPFeature } from '../features/mcp-feature.js';
|
|
@@ -30,6 +31,7 @@ export interface CapabilityFeatureBundle {
|
|
|
30
31
|
export interface IngressTurnContext {
|
|
31
32
|
binding: ResolvedAgentBinding;
|
|
32
33
|
message: Message;
|
|
34
|
+
host?: PermissionHost | null;
|
|
33
35
|
}
|
|
34
36
|
/** Result of ensureForTurn; `release()` must be called when the turn ends. */
|
|
35
37
|
export interface IngressTurnLease {
|
|
@@ -68,7 +70,7 @@ export declare class FeatureCapabilityIngress {
|
|
|
68
70
|
* projection instead of purging it; the purge runs when the last turn
|
|
69
71
|
* holding that projection releases its lease.
|
|
70
72
|
*/
|
|
71
|
-
ensureForTurn(orchestrator: AgentOrchestrator, features: CapabilityFeatureBundle, ctx: IngressTurnContext): IngressTurnLease
|
|
73
|
+
ensureForTurn(orchestrator: AgentOrchestrator, features: CapabilityFeatureBundle, ctx: IngressTurnContext): Promise<IngressTurnLease>;
|
|
72
74
|
}
|
|
73
75
|
export declare function createFeatureCapabilityIngress(): FeatureCapabilityIngress;
|
|
74
76
|
//# sourceMappingURL=capability-ingress.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capability-ingress.d.ts","sourceRoot":"","sources":["../../src/ingress/capability-ingress.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAGL,KAAK,OAAO,EAGZ,KAAK,WAAW,EAChB,KAAK,YAAY,EAClB,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"capability-ingress.d.ts","sourceRoot":"","sources":["../../src/ingress/capability-ingress.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAGL,KAAK,OAAO,EAGZ,KAAK,WAAW,EAChB,KAAK,YAAY,EAClB,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAElE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE/D,MAAM,WAAW,uBAAuB;IACtC,KAAK,CAAC,EAAE,WAA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
|
};
|
|
36
36
|
}
|
|
37
37
|
/** Skill visibility via same platforms/scopes/permissions contract as Tool. */
|
|
38
|
-
function canAccessSkill(skill, message) {
|
|
38
|
+
async function canAccessSkill(skill, message, host) {
|
|
39
39
|
return canAccessTool({
|
|
40
40
|
name: skill.name,
|
|
41
41
|
description: skill.description,
|
|
42
42
|
parameters: { type: 'object', properties: {} },
|
|
43
43
|
execute: () => undefined,
|
|
44
44
|
platforms: skill.platforms,
|
|
45
|
-
}, message);
|
|
45
|
+
}, message, host);
|
|
46
46
|
}
|
|
47
47
|
function toolAccessMeta(tool) {
|
|
48
48
|
return [
|
|
@@ -167,7 +167,7 @@ export class FeatureCapabilityIngress {
|
|
|
167
167
|
* projection instead of purging it; the purge runs when the last turn
|
|
168
168
|
* holding that projection releases its lease.
|
|
169
169
|
*/
|
|
170
|
-
ensureForTurn(orchestrator, features, ctx) {
|
|
170
|
+
async ensureForTurn(orchestrator, features, ctx) {
|
|
171
171
|
const fp = featureFingerprint(features);
|
|
172
172
|
const key = buildTurnCacheKey(ctx, fp);
|
|
173
173
|
if (this.live && this.live.key === key) {
|
|
@@ -203,17 +203,21 @@ export class FeatureCapabilityIngress {
|
|
|
203
203
|
for (const tool of features.tools?.getAll() ?? []) {
|
|
204
204
|
if (isBuiltinToolSource(tool.source))
|
|
205
205
|
continue;
|
|
206
|
-
if (!canAccessTool(tool, ctx.message))
|
|
206
|
+
if (!(await canAccessTool(tool, ctx.message, ctx.host)))
|
|
207
207
|
continue;
|
|
208
208
|
orchestrator.addTool(toolToOrchestrator(tool), undefined, tool.source ?? 'feature');
|
|
209
209
|
projection.owned.tools.add(tool.name);
|
|
210
210
|
tools++;
|
|
211
211
|
}
|
|
212
212
|
for (const skill of features.skills?.getAll() ?? []) {
|
|
213
|
-
if (!canAccessSkill(skill, ctx.message))
|
|
213
|
+
if (!(await canAccessSkill(skill, ctx.message, ctx.host)))
|
|
214
214
|
continue;
|
|
215
215
|
const orchSkill = skillToOrchestrator(skill);
|
|
216
|
-
|
|
216
|
+
const toolAccessResults = await Promise.all(orchSkill.tools.map(async (t) => ({
|
|
217
|
+
tool: t,
|
|
218
|
+
allowed: await canAccessTool(t, ctx.message, ctx.host),
|
|
219
|
+
})));
|
|
220
|
+
orchSkill.tools = toolAccessResults.filter((r) => r.allowed).map((r) => r.tool);
|
|
217
221
|
orchestrator.addSkill(orchSkill, undefined, skill.pluginName);
|
|
218
222
|
projection.owned.skills.add(skill.name);
|
|
219
223
|
skills++;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capability-ingress.js","sourceRoot":"","sources":["../../src/ingress/capability-ingress.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EACL,aAAa,EACb,sBAAsB,GAMvB,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"capability-ingress.js","sourceRoot":"","sources":["../../src/ingress/capability-ingress.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EACL,aAAa,EACb,sBAAsB,GAMvB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AA2BlD,SAAS,kBAAkB,CAAC,IAAc;IACxC,OAAO,IAAuB,CAAC;AACjC,CAAC;AAED,SAAS,mBAAmB,CAAC,KAAgB;IAC3C,OAAO;QACL,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,WAAW,EAAE,KAAK,CAAC,WAAW;QAC9B,KAAK,EAAE,CAAC,KAAK,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,kBAAkB,CAAC;QAClD,SAAS,EAAE,KAAK,CAAC,SAAS;QAC1B,QAAQ,EAAE,KAAK,CAAC,QAAQ;QACxB,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,UAAU,EAAE,KAAK,CAAC,UAAU;QAC5B,QAAQ,EAAE,KAAK,CAAC,QAAQ;QACxB,MAAM,EAAE,KAAK,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,EAAE,CAAC;YACxB,kEAAkE;YAClE,UAAU,CAAC,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,UAAU,CAAC,QAAQ,GAAG,CAAC,CAAC,CAAC;YAC3D,OAAO;QACT,CAAC;QACD,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC;YAAE,OAAO,CAAC,kCAAkC;QAC7E,UAAU,CAAC,QAAQ,EAAE,CAAC;QACtB,IAAI,UAAU,CAAC,QAAQ,GAAG,CAAC;YAAE,OAAO;QACpC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;QAChC,kEAAkE;QAClE,iDAAiD;QACjD,MAAM,QAAQ,GAAG,UAAU,EAAE,CAAC;QAC9B,IAAI,IAAI,CAAC,IAAI;YAAE,UAAU,CAAC,QAAQ,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACrD,KAAK,MAAM,KAAK,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YACjC,IAAI,KAAK,CAAC,QAAQ,GAAG,CAAC;gBAAE,UAAU,CAAC,QAAQ,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;QAC5D,CAAC;QACD,UAAU,CAAC,YAAY,EAAE,UAAU,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;IACvD,CAAC;CACF;AAED,MAAM,UAAU,8BAA8B;IAC5C,OAAO,IAAI,wBAAwB,EAAE,CAAC;AACxC,CAAC"}
|
|
@@ -1,47 +1,19 @@
|
|
|
1
|
-
import { AIProvider
|
|
2
|
-
import { SkillSystem } from '../skill/skill-system.js';
|
|
3
|
-
import type { AgentCore } from '../core/agent-core.js';
|
|
4
|
-
import type { ToolSystem } from '../tool/tool-system.js';
|
|
5
|
-
import type { ContextSystem } from '../context/context-system.js';
|
|
1
|
+
import { AIProvider } from '@zhin.js/ai';
|
|
6
2
|
import type { MemorySystem } from '../memory/memory-system.js';
|
|
7
|
-
import type { SessionSystem } from '../session/session-system.js';
|
|
8
3
|
import type { EventSystem } from '../event/event-system.js';
|
|
9
|
-
import type {
|
|
10
|
-
import type {
|
|
11
|
-
import type { SubagentSystem, SubagentResultSender } from '../subagent/index.js';
|
|
12
|
-
import type { ResolvedAgentBinding } from '../config/types.js';
|
|
13
|
-
import type { ZhinAgentConfig, ZhinAgentDependencies } from '../config/index.js';
|
|
14
|
-
import type { ZhinAgentEventEmitter } from '../event/event-emitter.js';
|
|
4
|
+
import type { ZhinAgentDependencies } from '../config/index.js';
|
|
5
|
+
import type { ZhinAgentPrivate } from '../internal/agent-host.js';
|
|
15
6
|
import type { TurnContextBridgeState } from '../turn/turn-context-bridge.js';
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
skillSystem: SkillSystem | null;
|
|
20
|
-
orchestrator: AgentOrchestrator | null;
|
|
21
|
-
agentCore: AgentCore | null;
|
|
22
|
-
toolSystem: ToolSystem | null;
|
|
23
|
-
contextSystem: ContextSystem | null;
|
|
7
|
+
/** configure 的写入目标:权威接口(ZhinAgentPrivate)Pick + 门面内部装配字段。 */
|
|
8
|
+
export type ConfigureZhinAgentTarget = Pick<ZhinAgentPrivate, 'config' | 'skillRegistry' | 'skillSystem' | 'orchestrator' | 'agentCore' | 'toolSystem' | 'contextSystem' | 'sessionSystem' | 'imSessionStore' | 'agentSessionStore' | 'contextRepository' | 'imTranscriptStore' | 'modelRegistry' | 'subagentSystem' | 'emitter' | 'activeBinding' | 'bootstrapContext' | 'globalContext' | 'skillsSummaryXML' | 'deferred'> & {
|
|
9
|
+
/** 接口外的运行时模块(declare 在类上,不经 ZhinAgentPrivate 暴露) */
|
|
24
10
|
memorySystem: MemorySystem | null;
|
|
25
|
-
sessionSystem: SessionSystem | null;
|
|
26
11
|
eventSystem: EventSystem | null;
|
|
27
|
-
imSessionStore: ZhinAgentDependencies['imSessionStore'];
|
|
28
|
-
agentSessionStore: ZhinAgentDependencies['agentSessionStore'];
|
|
29
|
-
contextRepository: ZhinAgentDependencies['contextRepository'];
|
|
30
|
-
imTranscriptStore: ZhinAgentDependencies['imTranscriptStore'];
|
|
31
|
-
modelRegistry: ModelRegistry | null;
|
|
32
|
-
subagentSystem: SubagentSystem | null;
|
|
33
|
-
emitter: ZhinAgentEventEmitter;
|
|
34
|
-
provider: AIProvider;
|
|
35
12
|
providerResolver: ((alias: string) => AIProvider) | null;
|
|
36
|
-
activeBinding: ResolvedAgentBinding | null;
|
|
37
|
-
deferredResultSender: SubagentResultSender | null;
|
|
38
|
-
bootstrapContext: string;
|
|
39
|
-
globalContext: string;
|
|
40
13
|
alwaysSkillsBaseline: string;
|
|
41
|
-
skillsSummaryXML: string;
|
|
42
14
|
turnContextState: TurnContextBridgeState;
|
|
43
15
|
wireLlmApiLayer(): void;
|
|
44
|
-
}
|
|
16
|
+
};
|
|
45
17
|
export declare function applyZhinAgentConfigure(target: ConfigureZhinAgentTarget, deps: Partial<ZhinAgentDependencies>): void;
|
|
46
18
|
export declare function wireZhinAgentLlmApiLayer(provider: AIProvider, providerResolver: ((alias: string) => AIProvider) | null): void;
|
|
47
19
|
//# sourceMappingURL=configure-zhin-agent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configure-zhin-agent.d.ts","sourceRoot":"","sources":["../../src/init/configure-zhin-agent.ts"],"names":[],"mappings":"AACA,OAAO,EAAqD,UAAU,
|
|
1
|
+
{"version":3,"file":"configure-zhin-agent.d.ts","sourceRoot":"","sources":["../../src/init/configure-zhin-agent.ts"],"names":[],"mappings":"AACA,OAAO,EAAqD,UAAU,EAAiB,MAAM,aAAa,CAAC;AAK3G,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE/D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAI5D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAG7E,6DAA6D;AAC7D,MAAM,MAAM,wBAAwB,GAAG,IAAI,CACzC,gBAAgB,EACd,QAAQ,GAAG,eAAe,GAAG,aAAa,GAAG,cAAc,GAAG,WAAW,GAAG,YAAY,GACxF,eAAe,GAAG,eAAe,GACjC,gBAAgB,GAAG,mBAAmB,GAAG,mBAAmB,GAAG,mBAAmB,GAClF,eAAe,GAAG,gBAAgB,GAAG,SAAS,GAAG,eAAe,GAChE,kBAAkB,GAAG,eAAe,GAAG,kBAAkB,GAAG,UAAU,CACzE,GAAG;IACF,oDAAoD;IACpD,YAAY,EAAE,YAAY,GAAG,IAAI,CAAC;IAClC,WAAW,EAAE,WAAW,GAAG,IAAI,CAAC;IAChC,gBAAgB,EAAE,CAAC,CAAC,KAAK,EAAE,MAAM,KAAK,UAAU,CAAC,GAAG,IAAI,CAAC;IACzD,oBAAoB,EAAE,MAAM,CAAC;IAC7B,gBAAgB,EAAE,sBAAsB,CAAC;IACzC,eAAe,IAAI,IAAI,CAAC;CACzB,CAAC;AAEF,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,wBAAwB,EAChC,IAAI,EAAE,OAAO,CAAC,qBAAqB,CAAC,GACnC,IAAI,CAqDN;AAED,wBAAgB,wBAAwB,CACtC,QAAQ,EAAE,UAAU,EACpB,gBAAgB,EAAE,CAAC,CAAC,KAAK,EAAE,MAAM,KAAK,UAAU,CAAC,GAAG,IAAI,GACvD,IAAI,CAQN"}
|
|
@@ -54,7 +54,7 @@ export function applyZhinAgentConfigure(target, deps) {
|
|
|
54
54
|
target.subagentSystem?.setSender(deps.subagentSender);
|
|
55
55
|
}
|
|
56
56
|
if (deps.deferredResultSender !== undefined)
|
|
57
|
-
target.
|
|
57
|
+
target.deferred.resultSender = deps.deferredResultSender;
|
|
58
58
|
if (deps.bootstrapContext !== undefined) {
|
|
59
59
|
target.bootstrapContext = deps.bootstrapContext;
|
|
60
60
|
logger.debug(`Bootstrap context set (${deps.bootstrapContext.length} chars)`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configure-zhin-agent.js","sourceRoot":"","sources":["../../src/init/configure-zhin-agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,2BAA2B,EAAE,oBAAoB,EAA6B,MAAM,aAAa,CAAC;AAC3G,OAAO,EAAE,iBAAiB,EAAe,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"configure-zhin-agent.js","sourceRoot":"","sources":["../../src/init/configure-zhin-agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,2BAA2B,EAAE,oBAAoB,EAA6B,MAAM,aAAa,CAAC;AAC3G,OAAO,EAAE,iBAAiB,EAAe,MAAM,0BAA0B,CAAC;AAS1E,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAIrE,MAAM,MAAM,GAAG,SAAS,CAAC,WAAW,CAAC,CAAC;AAoBtC,MAAM,UAAU,uBAAuB,CACrC,MAAgC,EAChC,IAAoC;IAEpC,IAAI,IAAI,CAAC,aAAa,KAAK,SAAS,EAAE,CAAC;QACrC,MAAM,CAAC,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC;QAC1C,MAAM,CAAC,WAAW,GAAG,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,iBAAiB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QACvF,MAAM,CAAC,KAAK,CAAC,4BAA4B,IAAI,CAAC,aAAa,CAAC,IAAI,UAAU,CAAC,CAAC;IAC9E,CAAC;IACD,IAAI,IAAI,CAAC,YAAY,KAAK,SAAS,EAAE,CAAC;QACpC,MAAM,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC;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uBAAuB,IAAI,CAAC,aAAa,CAAC,MAAM,SAAS,CAAC,CAAC;IAC1E,CAAC;IACD,IAAI,IAAI,CAAC,mBAAmB,KAAK,SAAS,EAAE,CAAC;QAC3C,MAAM,CAAC,oBAAoB,GAAG,IAAI,CAAC,mBAAmB,IAAI,EAAE,CAAC;QAC7D,MAAM,CAAC,gBAAgB,CAAC,oBAAoB,GAAG,MAAM,CAAC,oBAAoB,CAAC;IAC7E,CAAC;IACD,IAAI,IAAI,CAAC,gBAAgB,KAAK,SAAS;QAAE,MAAM,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,IAAI,EAAE,CAAC;AACjG,CAAC;AAED,MAAM,UAAU,wBAAwB,CACtC,QAAoB,EACpB,gBAAwD;IAExD,2BAA2B,CACzB,CAAC,oBAAoB,CAAC,QAAQ,CAAC,CAAC,EAChC,CAAC,KAAK,EAAE,EAAE;QACR,MAAM,CAAC,GAAG,KAAK,KAAK,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,gBAAgB,EAAE,CAAC,KAAK,CAAC,CAAC;QACzE,OAAO,CAAC,EAAE,MAAM,IAAI,EAAE,CAAC;IACzB,CAAC,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-zhin-agent.d.ts","sourceRoot":"","sources":["../../src/init/create-zhin-agent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-zhin-agent.d.ts","sourceRoot":"","sources":["../../src/init/create-zhin-agent.ts"],"names":[],"mappings":"AA0CA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AA6CtD,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,aAAa,GAAG,IAAI,CAkWhE"}
|