@zhin.js/agent 1.1.8 → 1.1.10
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 +15 -23
- package/lib/activity-feedback/adapter-integration.d.ts +1 -2
- package/lib/activity-feedback/adapter-integration.d.ts.map +1 -1
- package/lib/activity-feedback/adapter-integration.js +46 -18
- package/lib/activity-feedback/adapter-integration.js.map +1 -1
- package/lib/assistant/index.d.ts +1 -1
- package/lib/assistant/index.d.ts.map +1 -1
- package/lib/assistant/index.js +1 -1
- package/lib/assistant/index.js.map +1 -1
- package/lib/assistant/job-creator.d.ts +0 -7
- package/lib/assistant/job-creator.d.ts.map +1 -1
- package/lib/assistant/job-creator.js +1 -12
- package/lib/assistant/job-creator.js.map +1 -1
- package/lib/builtin/five-agent/index.d.ts +6 -3
- package/lib/builtin/five-agent/index.d.ts.map +1 -1
- package/lib/builtin/five-agent/index.js +6 -4
- package/lib/builtin/five-agent/index.js.map +1 -1
- package/lib/builtin/five-agent/prompts.d.ts +3 -3
- package/lib/builtin/five-agent/prompts.d.ts.map +1 -1
- package/lib/builtin/five-agent/prompts.js +3 -3
- package/lib/builtin/five-agent/prompts.js.map +1 -1
- package/lib/builtin/five-agent/role-capability-policy.d.ts +9 -0
- package/lib/builtin/five-agent/role-capability-policy.d.ts.map +1 -0
- package/lib/builtin/five-agent/role-capability-policy.js +22 -0
- package/lib/builtin/five-agent/role-capability-policy.js.map +1 -0
- package/lib/builtin/five-agent/roles.d.ts +5 -0
- package/lib/builtin/five-agent/roles.d.ts.map +1 -0
- package/lib/builtin/five-agent/roles.js +12 -0
- package/lib/builtin/five-agent/roles.js.map +1 -0
- package/lib/builtin/generate-image-tool.d.ts +1 -1
- package/lib/builtin/generate-image-tool.d.ts.map +1 -1
- package/lib/builtin/generate-image-tool.js +3 -3
- package/lib/builtin/generate-image-tool.js.map +1 -1
- package/lib/builtin/orchestration-tools.d.ts.map +1 -1
- package/lib/builtin/orchestration-tools.js +12 -38
- package/lib/builtin/orchestration-tools.js.map +1 -1
- package/lib/builtin/spawn-task-tool.js +2 -2
- package/lib/builtin/spawn-task-tool.js.map +1 -1
- package/lib/builtins/builtin-tool-service.d.ts +28 -0
- package/lib/builtins/builtin-tool-service.d.ts.map +1 -0
- package/lib/builtins/builtin-tool-service.js +63 -0
- package/lib/builtins/builtin-tool-service.js.map +1 -0
- package/lib/config/agent-interfaces.d.ts +2 -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 +1 -38
- 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 +1 -1
- package/lib/config/index.js.map +1 -1
- package/lib/config/resolve-five-agent-binding.d.ts +10 -0
- package/lib/config/resolve-five-agent-binding.d.ts.map +1 -0
- package/lib/config/resolve-five-agent-binding.js +31 -0
- package/lib/config/resolve-five-agent-binding.js.map +1 -0
- package/lib/config/zhin-agent-config.d.ts +4 -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 +2 -0
- package/lib/config/zhin-agent-defaults.js.map +1 -1
- package/lib/context/context-system.d.ts +2 -2
- package/lib/context/context-system.d.ts.map +1 -1
- package/lib/context/context-system.js +2 -3
- package/lib/context/context-system.js.map +1 -1
- package/lib/context/context-tail-limit.d.ts +0 -2
- package/lib/context/context-tail-limit.d.ts.map +1 -1
- package/lib/context/context-tail-limit.js +1 -3
- package/lib/context/context-tail-limit.js.map +1 -1
- package/lib/context/default-builders.d.ts +0 -4
- package/lib/context/default-builders.d.ts.map +1 -1
- package/lib/context/default-builders.js +0 -14
- package/lib/context/default-builders.js.map +1 -1
- package/lib/context/envelope-parts.d.ts +0 -1
- package/lib/context/envelope-parts.d.ts.map +1 -1
- package/lib/context/index.d.ts +2 -2
- package/lib/context/index.d.ts.map +1 -1
- package/lib/context/index.js +2 -2
- package/lib/context/index.js.map +1 -1
- package/lib/context/turn-envelope.d.ts +0 -1
- package/lib/context/turn-envelope.d.ts.map +1 -1
- package/lib/context/turn-envelope.js +0 -2
- package/lib/context/turn-envelope.js.map +1 -1
- package/lib/core/agent-core-run.js +1 -1
- package/lib/core/agent-core-run.js.map +1 -1
- package/lib/core/agent-loop-standalone.d.ts +2 -1
- package/lib/core/agent-loop-standalone.d.ts.map +1 -1
- package/lib/core/agent-loop-standalone.js.map +1 -1
- package/lib/core/turn-event-mapper.d.ts +3 -1
- package/lib/core/turn-event-mapper.d.ts.map +1 -1
- package/lib/core/turn-event-mapper.js +12 -2
- package/lib/core/turn-event-mapper.js.map +1 -1
- package/lib/event/agent-stream-bus.d.ts +0 -1
- package/lib/event/agent-stream-bus.d.ts.map +1 -1
- package/lib/event/agent-stream-bus.js.map +1 -1
- package/lib/event/publish-agent-stream.js +2 -2
- package/lib/event/publish-agent-stream.js.map +1 -1
- package/lib/event/turn-event.d.ts +16 -1
- package/lib/event/turn-event.d.ts.map +1 -1
- package/lib/event/turn-event.js.map +1 -1
- package/lib/index.d.ts +23 -21
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +13 -15
- package/lib/index.js.map +1 -1
- package/lib/init/activate-ai-database-storage.d.ts +2 -2
- package/lib/init/activate-ai-database-storage.d.ts.map +1 -1
- package/lib/init/activate-ai-database-storage.js +1 -3
- package/lib/init/activate-ai-database-storage.js.map +1 -1
- package/lib/init/define-ai-database-models.d.ts +1 -1
- package/lib/init/define-ai-database-models.d.ts.map +1 -1
- package/lib/init/define-ai-database-models.js +1 -9
- package/lib/init/define-ai-database-models.js.map +1 -1
- package/lib/init/runtime-management-commands.d.ts +2 -3
- package/lib/init/runtime-management-commands.d.ts.map +1 -1
- package/lib/init/runtime-management-commands.js +6 -6
- package/lib/init/runtime-management-commands.js.map +1 -1
- package/lib/internal/agent-host.d.ts +2 -3
- package/lib/internal/agent-host.d.ts.map +1 -1
- package/lib/internal/host-types.d.ts +0 -28
- package/lib/internal/host-types.d.ts.map +1 -1
- package/lib/memory/context-repository-store.js +1 -1
- package/lib/memory/context-repository-store.js.map +1 -1
- package/lib/memory/memory-system.d.ts +1 -2
- package/lib/memory/memory-system.d.ts.map +1 -1
- package/lib/memory/memory-system.js +1 -3
- package/lib/memory/memory-system.js.map +1 -1
- package/lib/orchestrator/bootstrap-executors.d.ts +0 -4
- package/lib/orchestrator/bootstrap-executors.d.ts.map +1 -1
- package/lib/orchestrator/bootstrap-executors.js +11 -137
- package/lib/orchestrator/bootstrap-executors.js.map +1 -1
- package/lib/orchestrator/orchestration-mappers.d.ts +1 -1
- package/lib/orchestrator/orchestration-mappers.d.ts.map +1 -1
- package/lib/orchestrator/orchestration-mappers.js +4 -49
- package/lib/orchestrator/orchestration-mappers.js.map +1 -1
- package/lib/orchestrator/orchestration-service.d.ts.map +1 -1
- package/lib/orchestrator/orchestration-service.js +2 -5
- package/lib/orchestrator/orchestration-service.js.map +1 -1
- package/lib/orchestrator/orchestration-source.d.ts +5 -0
- package/lib/orchestrator/orchestration-source.d.ts.map +1 -0
- package/lib/orchestrator/orchestration-source.js +22 -0
- package/lib/orchestrator/orchestration-source.js.map +1 -0
- package/lib/orchestrator/types.d.ts +9 -0
- package/lib/orchestrator/types.d.ts.map +1 -1
- package/lib/outbound/send-proactive.d.ts +3 -13
- package/lib/outbound/send-proactive.d.ts.map +1 -1
- package/lib/outbound/send-proactive.js +1 -53
- package/lib/outbound/send-proactive.js.map +1 -1
- package/lib/plugin-runtime/agent-host-port.d.ts +12 -3
- package/lib/plugin-runtime/agent-host-port.d.ts.map +1 -1
- package/lib/plugin-runtime/agent-host-port.js +1 -1
- package/lib/plugin-runtime/agent-host-port.js.map +1 -1
- package/lib/plugin-runtime/agent-runtime.d.ts +7 -4
- package/lib/plugin-runtime/agent-runtime.d.ts.map +1 -1
- package/lib/plugin-runtime/agent-runtime.js +3 -2
- package/lib/plugin-runtime/agent-runtime.js.map +1 -1
- package/lib/plugin-runtime/capability-tools.d.ts.map +1 -1
- package/lib/plugin-runtime/capability-tools.js +3 -0
- package/lib/plugin-runtime/capability-tools.js.map +1 -1
- package/lib/plugin-runtime/deferred-capability-plan.d.ts +1 -0
- package/lib/plugin-runtime/deferred-capability-plan.d.ts.map +1 -1
- package/lib/plugin-runtime/deferred-capability-plan.js +7 -1
- package/lib/plugin-runtime/deferred-capability-plan.js.map +1 -1
- package/lib/plugin-runtime/full-agent-turn-engine.d.ts.map +1 -1
- package/lib/plugin-runtime/full-agent-turn-engine.js +239 -14
- package/lib/plugin-runtime/full-agent-turn-engine.js.map +1 -1
- package/lib/plugin-runtime/host-mcp-projection.d.ts.map +1 -1
- package/lib/plugin-runtime/host-mcp-projection.js +17 -2
- package/lib/plugin-runtime/host-mcp-projection.js.map +1 -1
- package/lib/plugin-runtime/schedule-capability-plan.d.ts +20 -0
- package/lib/plugin-runtime/schedule-capability-plan.d.ts.map +1 -0
- package/lib/plugin-runtime/schedule-capability-plan.js +88 -0
- package/lib/plugin-runtime/schedule-capability-plan.js.map +1 -0
- package/lib/prompt/assembly.d.ts.map +1 -1
- package/lib/prompt/assembly.js +2 -0
- package/lib/prompt/assembly.js.map +1 -1
- package/lib/prompt/define-agent-prompt-section.d.ts +29 -0
- package/lib/prompt/define-agent-prompt-section.d.ts.map +1 -0
- package/lib/prompt/define-agent-prompt-section.js +22 -0
- package/lib/prompt/define-agent-prompt-section.js.map +1 -0
- package/lib/prompt/discover-prompt-sections.d.ts +21 -0
- package/lib/prompt/discover-prompt-sections.d.ts.map +1 -0
- package/lib/prompt/discover-prompt-sections.js +49 -0
- package/lib/prompt/discover-prompt-sections.js.map +1 -0
- package/lib/prompt/index.d.ts +10 -1
- package/lib/prompt/index.d.ts.map +1 -1
- package/lib/prompt/index.js +6 -1
- package/lib/prompt/index.js.map +1 -1
- package/lib/prompt/prompt-assembly-registry.d.ts +31 -0
- package/lib/prompt/prompt-assembly-registry.d.ts.map +1 -0
- package/lib/prompt/prompt-assembly-registry.js +56 -0
- package/lib/prompt/prompt-assembly-registry.js.map +1 -0
- package/lib/prompt/prompt-budget.d.ts +9 -0
- package/lib/prompt/prompt-budget.d.ts.map +1 -0
- package/lib/prompt/prompt-budget.js +28 -0
- package/lib/prompt/prompt-budget.js.map +1 -0
- package/lib/prompt/prompt-builder.js +1 -1
- package/lib/prompt/prompt-builder.js.map +1 -1
- package/lib/prompt/prompt-section-loader.d.ts +27 -0
- package/lib/prompt/prompt-section-loader.d.ts.map +1 -0
- package/lib/prompt/prompt-section-loader.js +75 -0
- package/lib/prompt/prompt-section-loader.js.map +1 -0
- package/lib/prompt/system-prompt.d.ts +5 -8
- package/lib/prompt/system-prompt.d.ts.map +1 -1
- package/lib/prompt/system-prompt.js +159 -78
- package/lib/prompt/system-prompt.js.map +1 -1
- package/lib/prompt/tokens.d.ts +8 -0
- package/lib/prompt/tokens.d.ts.map +1 -0
- package/lib/prompt/tokens.js +2 -0
- package/lib/prompt/tokens.js.map +1 -0
- package/lib/prompt/turn-prompt-profile.d.ts +1 -2
- package/lib/prompt/turn-prompt-profile.d.ts.map +1 -1
- package/lib/schedule-domain/audit-logger.d.ts +2 -2
- package/lib/schedule-domain/audit-logger.d.ts.map +1 -1
- package/lib/schedule-domain/execution-domain.d.ts +21 -17
- package/lib/schedule-domain/execution-domain.d.ts.map +1 -1
- package/lib/schedule-domain/execution-domain.js +41 -23
- package/lib/schedule-domain/execution-domain.js.map +1 -1
- package/lib/schedule-domain/index.d.ts +0 -1
- package/lib/schedule-domain/index.d.ts.map +1 -1
- package/lib/schedule-domain/index.js +0 -1
- package/lib/schedule-domain/index.js.map +1 -1
- package/lib/schedule-domain/prompt-assembler.d.ts +3 -4
- package/lib/schedule-domain/prompt-assembler.d.ts.map +1 -1
- package/lib/schedule-domain/prompt-assembler.js +0 -16
- package/lib/schedule-domain/prompt-assembler.js.map +1 -1
- package/lib/schedule-domain/security-harness.d.ts +10 -15
- package/lib/schedule-domain/security-harness.d.ts.map +1 -1
- package/lib/schedule-domain/security-harness.js +5 -78
- package/lib/schedule-domain/security-harness.js.map +1 -1
- package/lib/seam/index.d.ts +8 -0
- package/lib/seam/index.d.ts.map +1 -0
- package/lib/seam/index.js +4 -0
- package/lib/seam/index.js.map +1 -0
- package/lib/seam/seam-integration.d.ts +46 -0
- package/lib/seam/seam-integration.d.ts.map +1 -0
- package/lib/seam/seam-integration.js +70 -0
- package/lib/seam/seam-integration.js.map +1 -0
- package/lib/seam/seam-provider.d.ts +63 -0
- package/lib/seam/seam-provider.d.ts.map +1 -0
- package/lib/seam/seam-provider.js +66 -0
- package/lib/seam/seam-provider.js.map +1 -0
- package/lib/seam/skill-service.d.ts +49 -0
- package/lib/seam/skill-service.d.ts.map +1 -0
- package/lib/seam/skill-service.js +8 -0
- package/lib/seam/skill-service.js.map +1 -0
- package/lib/seam/tokens.d.ts +8 -0
- package/lib/seam/tokens.d.ts.map +1 -0
- package/lib/seam/tokens.js +5 -0
- package/lib/seam/tokens.js.map +1 -0
- package/lib/seam/tool-service.d.ts +58 -0
- package/lib/seam/tool-service.d.ts.map +1 -0
- package/lib/seam/tool-service.js +8 -0
- package/lib/seam/tool-service.js.map +1 -0
- package/lib/security/exec-policy.d.ts +2 -0
- package/lib/security/exec-policy.d.ts.map +1 -1
- package/lib/security/exec-policy.js +21 -0
- package/lib/security/exec-policy.js.map +1 -1
- package/lib/security/owner-approve-always-store.d.ts +8 -3
- package/lib/security/owner-approve-always-store.d.ts.map +1 -1
- package/lib/security/owner-approve-always-store.js +160 -173
- package/lib/security/owner-approve-always-store.js.map +1 -1
- package/lib/security/policy-facade.d.ts.map +1 -1
- package/lib/security/policy-facade.js +11 -1
- package/lib/security/policy-facade.js.map +1 -1
- package/lib/service.d.ts.map +1 -1
- package/lib/service.js +0 -7
- package/lib/service.js.map +1 -1
- package/lib/session/index.d.ts +3 -3
- package/lib/session/index.d.ts.map +1 -1
- package/lib/session/index.js +3 -3
- package/lib/session/index.js.map +1 -1
- package/lib/session/passive-group-session.js +1 -1
- package/lib/session/session-key.d.ts +4 -0
- package/lib/session/session-key.d.ts.map +1 -0
- package/lib/session/session-key.js +6 -0
- package/lib/session/session-key.js.map +1 -0
- package/lib/session/session-system.d.ts.map +1 -1
- package/lib/session/session-system.js +4 -4
- package/lib/session/session-system.js.map +1 -1
- package/lib/session/session-tree-commands.d.ts +2 -3
- package/lib/session/session-tree-commands.d.ts.map +1 -1
- package/lib/session/session-tree-commands.js +2 -5
- package/lib/session/session-tree-commands.js.map +1 -1
- package/lib/session/strategies.d.ts +1 -1
- package/lib/session/strategies.d.ts.map +1 -1
- package/lib/session/strategies.js +2 -2
- package/lib/session/strategies.js.map +1 -1
- package/lib/skill/skill-registry-as-service.d.ts +29 -0
- package/lib/skill/skill-registry-as-service.d.ts.map +1 -0
- package/lib/skill/skill-registry-as-service.js +53 -0
- package/lib/skill/skill-registry-as-service.js.map +1 -0
- package/lib/subagent/im-result-sink.d.ts.map +1 -1
- package/lib/subagent/im-result-sink.js +0 -1
- package/lib/subagent/im-result-sink.js.map +1 -1
- package/lib/subagent-goal-notify.d.ts +0 -9
- package/lib/subagent-goal-notify.d.ts.map +1 -1
- package/lib/subagent-goal-notify.js +0 -13
- package/lib/subagent-goal-notify.js.map +1 -1
- package/lib/task-executor.d.ts +14 -3
- package/lib/task-executor.d.ts.map +1 -1
- package/lib/task-executor.js +48 -61
- package/lib/task-executor.js.map +1 -1
- package/lib/tool/classic-tool-execution-authority.d.ts.map +1 -1
- package/lib/tool/classic-tool-execution-authority.js +4 -3
- package/lib/tool/classic-tool-execution-authority.js.map +1 -1
- package/lib/tool/prepare-turn-tools.d.ts +0 -2
- package/lib/tool/prepare-turn-tools.d.ts.map +1 -1
- package/lib/tool/prepare-turn-tools.js +1 -55
- package/lib/tool/prepare-turn-tools.js.map +1 -1
- package/lib/tool/tool-runtime.d.ts +1 -1
- package/lib/tool/tool-runtime.d.ts.map +1 -1
- package/lib/turn/auto-continue.js +1 -1
- package/lib/turn/auto-continue.js.map +1 -1
- package/lib/turn/cancel-intent.d.ts +2 -0
- package/lib/turn/cancel-intent.d.ts.map +1 -0
- package/lib/turn/cancel-intent.js +5 -0
- package/lib/turn/cancel-intent.js.map +1 -0
- package/lib/turn/index.d.ts +2 -0
- package/lib/turn/index.d.ts.map +1 -1
- package/lib/turn/index.js +2 -0
- package/lib/turn/index.js.map +1 -1
- package/lib/turn/persist-deferred-context.js +1 -1
- package/lib/turn/persist-deferred-context.js.map +1 -1
- package/lib/turn/persist-subagent-context.js +1 -1
- package/lib/turn/persist-subagent-context.js.map +1 -1
- package/lib/turn/process-stream.d.ts.map +1 -1
- package/lib/turn/process-stream.js +0 -2
- package/lib/turn/process-stream.js.map +1 -1
- package/lib/turn/prompt-controller.d.ts +2 -0
- package/lib/turn/prompt-controller.d.ts.map +1 -1
- package/lib/turn/prompt-controller.js +9 -0
- package/lib/turn/prompt-controller.js.map +1 -1
- package/lib/turn/trigger-cancelled-error.d.ts +10 -0
- package/lib/turn/trigger-cancelled-error.d.ts.map +1 -0
- package/lib/turn/trigger-cancelled-error.js +19 -0
- package/lib/turn/trigger-cancelled-error.js.map +1 -0
- package/lib/turn/turn-ingress.d.ts +21 -1
- package/lib/turn/turn-ingress.d.ts.map +1 -1
- package/lib/turn/turn-ingress.js +29 -0
- package/lib/turn/turn-ingress.js.map +1 -1
- package/lib/turn/turn-pipeline.d.ts +0 -5
- package/lib/turn/turn-pipeline.d.ts.map +1 -1
- package/lib/turn/turn-pipeline.js +12 -32
- package/lib/turn/turn-pipeline.js.map +1 -1
- package/lib/turn/turn-terminal.d.ts.map +1 -1
- package/lib/turn/turn-terminal.js +4 -0
- package/lib/turn/turn-terminal.js.map +1 -1
- package/lib/typing-indicator/adapter-integration.d.ts +1 -2
- 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.map +1 -1
- package/lib/typing-indicator/index.js +3 -6
- package/lib/typing-indicator/index.js.map +1 -1
- package/lib/typing-indicator/integration.d.ts +2 -3
- package/lib/typing-indicator/integration.d.ts.map +1 -1
- package/lib/typing-indicator/integration.js +51 -17
- package/lib/typing-indicator/integration.js.map +1 -1
- package/lib/zhin-agent/index.d.ts +5 -8
- package/lib/zhin-agent/index.d.ts.map +1 -1
- package/lib/zhin-agent/index.js +21 -15
- package/lib/zhin-agent/index.js.map +1 -1
- package/package.json +9 -9
- package/lib/aop/index.d.ts +0 -11
- package/lib/aop/index.d.ts.map +0 -1
- package/lib/aop/index.js +0 -11
- package/lib/aop/index.js.map +0 -1
- package/lib/aop/pipeline/index.d.ts +0 -12
- package/lib/aop/pipeline/index.d.ts.map +0 -1
- package/lib/aop/pipeline/index.js +0 -12
- package/lib/aop/pipeline/index.js.map +0 -1
- package/lib/aop/pipeline/pipeline-flow.d.ts +0 -25
- package/lib/aop/pipeline/pipeline-flow.d.ts.map +0 -1
- package/lib/aop/pipeline/pipeline-flow.js +0 -115
- package/lib/aop/pipeline/pipeline-flow.js.map +0 -1
- package/lib/aop/pipeline/pipeline-mode.d.ts +0 -10
- package/lib/aop/pipeline/pipeline-mode.d.ts.map +0 -1
- package/lib/aop/pipeline/pipeline-mode.js +0 -16
- package/lib/aop/pipeline/pipeline-mode.js.map +0 -1
- package/lib/aop/pipeline/pipeline-service.d.ts +0 -123
- package/lib/aop/pipeline/pipeline-service.d.ts.map +0 -1
- package/lib/aop/pipeline/pipeline-service.js +0 -238
- package/lib/aop/pipeline/pipeline-service.js.map +0 -1
- package/lib/aop/pipeline/pipeline-transitions.d.ts +0 -14
- package/lib/aop/pipeline/pipeline-transitions.d.ts.map +0 -1
- package/lib/aop/pipeline/pipeline-transitions.js +0 -31
- package/lib/aop/pipeline/pipeline-transitions.js.map +0 -1
- package/lib/aop/pipeline/ports.d.ts +0 -16
- package/lib/aop/pipeline/ports.d.ts.map +0 -1
- package/lib/aop/pipeline/ports.js +0 -2
- package/lib/aop/pipeline/ports.js.map +0 -1
- package/lib/aop/pipeline/role-capability-policy.d.ts +0 -16
- package/lib/aop/pipeline/role-capability-policy.d.ts.map +0 -1
- package/lib/aop/pipeline/role-capability-policy.js +0 -29
- package/lib/aop/pipeline/role-capability-policy.js.map +0 -1
- package/lib/aop/runtime/index.d.ts +0 -9
- package/lib/aop/runtime/index.d.ts.map +0 -1
- package/lib/aop/runtime/index.js +0 -9
- package/lib/aop/runtime/index.js.map +0 -1
- package/lib/collaboration/collab-admin-gate.d.ts +0 -21
- package/lib/collaboration/collab-admin-gate.d.ts.map +0 -1
- package/lib/collaboration/collab-admin-gate.js +0 -74
- package/lib/collaboration/collab-admin-gate.js.map +0 -1
- package/lib/collaboration/collab-utils.d.ts +0 -15
- package/lib/collaboration/collab-utils.d.ts.map +0 -1
- package/lib/collaboration/collab-utils.js +0 -37
- package/lib/collaboration/collab-utils.js.map +0 -1
- package/lib/collaboration/collaboration-artifact-repository.d.ts +0 -48
- package/lib/collaboration/collaboration-artifact-repository.d.ts.map +0 -1
- package/lib/collaboration/collaboration-artifact-repository.js +0 -114
- package/lib/collaboration/collaboration-artifact-repository.js.map +0 -1
- package/lib/collaboration/collaboration-commands.d.ts +0 -38
- package/lib/collaboration/collaboration-commands.d.ts.map +0 -1
- package/lib/collaboration/collaboration-commands.js +0 -373
- package/lib/collaboration/collaboration-commands.js.map +0 -1
- package/lib/collaboration/collaboration-config.d.ts +0 -30
- package/lib/collaboration/collaboration-config.d.ts.map +0 -1
- package/lib/collaboration/collaboration-config.js +0 -170
- package/lib/collaboration/collaboration-config.js.map +0 -1
- package/lib/collaboration/collaboration-context.d.ts +0 -15
- package/lib/collaboration/collaboration-context.d.ts.map +0 -1
- package/lib/collaboration/collaboration-context.js +0 -101
- package/lib/collaboration/collaboration-context.js.map +0 -1
- package/lib/collaboration/collaboration-db-model.d.ts +0 -350
- package/lib/collaboration/collaboration-db-model.d.ts.map +0 -1
- package/lib/collaboration/collaboration-db-model.js +0 -112
- package/lib/collaboration/collaboration-db-model.js.map +0 -1
- package/lib/collaboration/collaboration-delegation.d.ts +0 -21
- package/lib/collaboration/collaboration-delegation.d.ts.map +0 -1
- package/lib/collaboration/collaboration-delegation.js +0 -221
- package/lib/collaboration/collaboration-delegation.js.map +0 -1
- package/lib/collaboration/collaboration-dispatch.d.ts +0 -32
- package/lib/collaboration/collaboration-dispatch.d.ts.map +0 -1
- package/lib/collaboration/collaboration-dispatch.js +0 -93
- package/lib/collaboration/collaboration-dispatch.js.map +0 -1
- package/lib/collaboration/collaboration-kernel-bridge.d.ts +0 -23
- package/lib/collaboration/collaboration-kernel-bridge.d.ts.map +0 -1
- package/lib/collaboration/collaboration-kernel-bridge.js +0 -105
- package/lib/collaboration/collaboration-kernel-bridge.js.map +0 -1
- package/lib/collaboration/collaboration-outbound.d.ts +0 -64
- package/lib/collaboration/collaboration-outbound.d.ts.map +0 -1
- package/lib/collaboration/collaboration-outbound.js +0 -312
- package/lib/collaboration/collaboration-outbound.js.map +0 -1
- package/lib/collaboration/collaboration-scene-repository.d.ts +0 -154
- package/lib/collaboration/collaboration-scene-repository.d.ts.map +0 -1
- package/lib/collaboration/collaboration-scene-repository.js +0 -451
- package/lib/collaboration/collaboration-scene-repository.js.map +0 -1
- package/lib/collaboration/collaboration-turn-snapshot.d.ts +0 -18
- package/lib/collaboration/collaboration-turn-snapshot.d.ts.map +0 -1
- package/lib/collaboration/collaboration-turn-snapshot.js +0 -35
- package/lib/collaboration/collaboration-turn-snapshot.js.map +0 -1
- package/lib/collaboration/delegation-state.d.ts +0 -30
- package/lib/collaboration/delegation-state.d.ts.map +0 -1
- package/lib/collaboration/delegation-state.js +0 -86
- package/lib/collaboration/delegation-state.js.map +0 -1
- package/lib/collaboration/endpoint-identity.d.ts +0 -28
- package/lib/collaboration/endpoint-identity.d.ts.map +0 -1
- package/lib/collaboration/endpoint-identity.js +0 -80
- package/lib/collaboration/endpoint-identity.js.map +0 -1
- package/lib/collaboration/group-feed.d.ts +0 -30
- package/lib/collaboration/group-feed.d.ts.map +0 -1
- package/lib/collaboration/group-feed.js +0 -150
- package/lib/collaboration/group-feed.js.map +0 -1
- package/lib/collaboration/group-message.d.ts +0 -53
- package/lib/collaboration/group-message.d.ts.map +0 -1
- package/lib/collaboration/group-message.js +0 -101
- package/lib/collaboration/group-message.js.map +0 -1
- package/lib/collaboration/im-mention-delegate.d.ts +0 -22
- package/lib/collaboration/im-mention-delegate.d.ts.map +0 -1
- package/lib/collaboration/im-mention-delegate.js +0 -15
- package/lib/collaboration/im-mention-delegate.js.map +0 -1
- package/lib/collaboration/inbound-peer-handback.d.ts +0 -18
- package/lib/collaboration/inbound-peer-handback.d.ts.map +0 -1
- package/lib/collaboration/inbound-peer-handback.js +0 -65
- package/lib/collaboration/inbound-peer-handback.js.map +0 -1
- package/lib/collaboration/inbound-spawn-task.d.ts +0 -29
- package/lib/collaboration/inbound-spawn-task.d.ts.map +0 -1
- package/lib/collaboration/inbound-spawn-task.js +0 -96
- package/lib/collaboration/inbound-spawn-task.js.map +0 -1
- package/lib/collaboration/inbound-turn-endpoint.d.ts +0 -16
- package/lib/collaboration/inbound-turn-endpoint.d.ts.map +0 -1
- package/lib/collaboration/inbound-turn-endpoint.js +0 -26
- package/lib/collaboration/inbound-turn-endpoint.js.map +0 -1
- package/lib/collaboration/inbound-turn-tools.d.ts +0 -13
- package/lib/collaboration/inbound-turn-tools.d.ts.map +0 -1
- package/lib/collaboration/inbound-turn-tools.js +0 -24
- package/lib/collaboration/inbound-turn-tools.js.map +0 -1
- package/lib/collaboration/index.d.ts +0 -21
- package/lib/collaboration/index.d.ts.map +0 -1
- package/lib/collaboration/index.js +0 -19
- package/lib/collaboration/index.js.map +0 -1
- package/lib/collaboration/init-observe-hook.d.ts +0 -56
- package/lib/collaboration/init-observe-hook.d.ts.map +0 -1
- package/lib/collaboration/init-observe-hook.js +0 -168
- package/lib/collaboration/init-observe-hook.js.map +0 -1
- package/lib/collaboration/init-wizard-service.d.ts +0 -57
- package/lib/collaboration/init-wizard-service.d.ts.map +0 -1
- package/lib/collaboration/init-wizard-service.js +0 -187
- package/lib/collaboration/init-wizard-service.js.map +0 -1
- package/lib/collaboration/outbound-resolver.d.ts +0 -37
- package/lib/collaboration/outbound-resolver.d.ts.map +0 -1
- package/lib/collaboration/outbound-resolver.js +0 -189
- package/lib/collaboration/outbound-resolver.js.map +0 -1
- package/lib/collaboration/peer-policy.d.ts +0 -29
- package/lib/collaboration/peer-policy.d.ts.map +0 -1
- package/lib/collaboration/peer-policy.js +0 -118
- package/lib/collaboration/peer-policy.js.map +0 -1
- package/lib/collaboration/resolve-agent-session-key.d.ts +0 -21
- package/lib/collaboration/resolve-agent-session-key.d.ts.map +0 -1
- package/lib/collaboration/resolve-agent-session-key.js +0 -61
- package/lib/collaboration/resolve-agent-session-key.js.map +0 -1
- package/lib/collaboration/runtime-inbound-gate.d.ts +0 -35
- package/lib/collaboration/runtime-inbound-gate.d.ts.map +0 -1
- package/lib/collaboration/runtime-inbound-gate.js +0 -105
- package/lib/collaboration/runtime-inbound-gate.js.map +0 -1
- package/lib/collaboration/scene-context.d.ts +0 -17
- package/lib/collaboration/scene-context.d.ts.map +0 -1
- package/lib/collaboration/scene-context.js +0 -22
- package/lib/collaboration/scene-context.js.map +0 -1
- package/lib/collaboration/scene-identity-service.d.ts +0 -169
- package/lib/collaboration/scene-identity-service.d.ts.map +0 -1
- package/lib/collaboration/scene-identity-service.js +0 -479
- package/lib/collaboration/scene-identity-service.js.map +0 -1
- package/lib/collaboration/scene-service.d.ts +0 -67
- package/lib/collaboration/scene-service.d.ts.map +0 -1
- package/lib/collaboration/scene-service.js +0 -157
- package/lib/collaboration/scene-service.js.map +0 -1
- package/lib/collaboration/structured-ai-outbound.d.ts +0 -25
- package/lib/collaboration/structured-ai-outbound.d.ts.map +0 -1
- package/lib/collaboration/structured-ai-outbound.js +0 -179
- package/lib/collaboration/structured-ai-outbound.js.map +0 -1
- package/lib/collaboration/turn-plan-resolver.d.ts +0 -17
- package/lib/collaboration/turn-plan-resolver.d.ts.map +0 -1
- package/lib/collaboration/turn-plan-resolver.js +0 -63
- package/lib/collaboration/turn-plan-resolver.js.map +0 -1
- package/lib/collaboration/types.d.ts +0 -147
- package/lib/collaboration/types.d.ts.map +0 -1
- package/lib/collaboration/types.js +0 -16
- package/lib/collaboration/types.js.map +0 -1
- package/lib/collaboration/wire-collaboration-storage.d.ts +0 -4
- package/lib/collaboration/wire-collaboration-storage.d.ts.map +0 -1
- package/lib/collaboration/wire-collaboration-storage.js +0 -26
- package/lib/collaboration/wire-collaboration-storage.js.map +0 -1
- package/lib/config/resolve-pipeline-binding.d.ts +0 -16
- package/lib/config/resolve-pipeline-binding.d.ts.map +0 -1
- package/lib/config/resolve-pipeline-binding.js +0 -35
- package/lib/config/resolve-pipeline-binding.js.map +0 -1
- package/lib/discovery/register-agent-surface.d.ts +0 -33
- package/lib/discovery/register-agent-surface.d.ts.map +0 -1
- package/lib/discovery/register-agent-surface.js +0 -170
- package/lib/discovery/register-agent-surface.js.map +0 -1
- package/lib/init/create-zhin-agent.d.ts +0 -3
- package/lib/init/create-zhin-agent.d.ts.map +0 -1
- package/lib/init/create-zhin-agent.js +0 -401
- package/lib/init/create-zhin-agent.js.map +0 -1
- package/lib/init/register-ai-service.d.ts +0 -7
- package/lib/init/register-ai-service.d.ts.map +0 -1
- package/lib/init/register-ai-service.js +0 -45
- package/lib/init/register-ai-service.js.map +0 -1
- package/lib/init/register-builtin-tools.d.ts +0 -3
- package/lib/init/register-builtin-tools.d.ts.map +0 -1
- package/lib/init/register-builtin-tools.js +0 -411
- package/lib/init/register-builtin-tools.js.map +0 -1
- package/lib/init/register-capability-features.d.ts +0 -2
- package/lib/init/register-capability-features.d.ts.map +0 -1
- package/lib/init/register-capability-features.js +0 -28
- package/lib/init/register-capability-features.js.map +0 -1
- package/lib/init/register-collaboration-commands.d.ts +0 -2
- package/lib/init/register-collaboration-commands.d.ts.map +0 -1
- package/lib/init/register-collaboration-commands.js +0 -110
- package/lib/init/register-collaboration-commands.js.map +0 -1
- package/lib/init/register-db-models.d.ts +0 -2
- package/lib/init/register-db-models.d.ts.map +0 -1
- package/lib/init/register-db-models.js +0 -18
- package/lib/init/register-db-models.js.map +0 -1
- package/lib/init/register-db-upgrade.d.ts +0 -7
- package/lib/init/register-db-upgrade.d.ts.map +0 -1
- package/lib/init/register-db-upgrade.js +0 -79
- package/lib/init/register-db-upgrade.js.map +0 -1
- package/lib/init/register-group-session-passive.d.ts +0 -3
- package/lib/init/register-group-session-passive.d.ts.map +0 -1
- package/lib/init/register-group-session-passive.js +0 -61
- package/lib/init/register-group-session-passive.js.map +0 -1
- package/lib/init/register-im-segment-filter.d.ts +0 -2
- package/lib/init/register-im-segment-filter.d.ts.map +0 -1
- package/lib/init/register-im-segment-filter.js +0 -23
- package/lib/init/register-im-segment-filter.js.map +0 -1
- package/lib/init/register-init-wizard-guardrail.d.ts +0 -2
- package/lib/init/register-init-wizard-guardrail.d.ts.map +0 -1
- package/lib/init/register-init-wizard-guardrail.js +0 -41
- package/lib/init/register-init-wizard-guardrail.js.map +0 -1
- package/lib/init/register-introspection-commands.d.ts +0 -3
- package/lib/init/register-introspection-commands.d.ts.map +0 -1
- package/lib/init/register-introspection-commands.js +0 -107
- package/lib/init/register-introspection-commands.js.map +0 -1
- package/lib/init/register-management-tools.d.ts +0 -10
- package/lib/init/register-management-tools.d.ts.map +0 -1
- package/lib/init/register-management-tools.js +0 -42
- package/lib/init/register-management-tools.js.map +0 -1
- package/lib/init/register-mcp-from-config.d.ts +0 -2
- package/lib/init/register-mcp-from-config.d.ts.map +0 -1
- package/lib/init/register-mcp-from-config.js +0 -87
- package/lib/init/register-mcp-from-config.js.map +0 -1
- package/lib/init/register-orchestrator.d.ts +0 -2
- package/lib/init/register-orchestrator.d.ts.map +0 -1
- package/lib/init/register-orchestrator.js +0 -15
- package/lib/init/register-orchestrator.js.map +0 -1
- package/lib/init/register-tool-service.d.ts +0 -2
- package/lib/init/register-tool-service.d.ts.map +0 -1
- package/lib/init/register-tool-service.js +0 -9
- package/lib/init/register-tool-service.js.map +0 -1
- package/lib/init/shared-refs.d.ts +0 -14
- package/lib/init/shared-refs.d.ts.map +0 -1
- package/lib/init/shared-refs.js +0 -7
- package/lib/init/shared-refs.js.map +0 -1
- package/lib/init/types.d.ts +0 -26
- package/lib/init/types.d.ts.map +0 -1
- package/lib/init/types.js +0 -7
- package/lib/init/types.js.map +0 -1
- package/lib/init.d.ts +0 -7
- package/lib/init.d.ts.map +0 -1
- package/lib/init.js +0 -11
- package/lib/init.js.map +0 -1
- package/lib/schedule-domain/tool-resolver.d.ts +0 -20
- package/lib/schedule-domain/tool-resolver.d.ts.map +0 -1
- package/lib/schedule-domain/tool-resolver.js +0 -80
- package/lib/schedule-domain/tool-resolver.js.map +0 -1
- package/lib/schedule-domain/turn-context.d.ts +0 -9
- package/lib/schedule-domain/turn-context.d.ts.map +0 -1
- package/lib/schedule-domain/turn-context.js +0 -36
- package/lib/schedule-domain/turn-context.js.map +0 -1
- package/lib/session/agent-session-host-port.d.ts +0 -23
- package/lib/session/agent-session-host-port.d.ts.map +0 -1
- package/lib/session/agent-session-host-port.js +0 -61
- package/lib/session/agent-session-host-port.js.map +0 -1
- package/lib/session/http-agent-session-store.d.ts +0 -76
- package/lib/session/http-agent-session-store.d.ts.map +0 -1
- package/lib/session/http-agent-session-store.js +0 -211
- package/lib/session/http-agent-session-store.js.map +0 -1
- package/lib/session/http-approval-adapter.d.ts +0 -11
- package/lib/session/http-approval-adapter.d.ts.map +0 -1
- package/lib/session/http-approval-adapter.js +0 -19
- package/lib/session/http-approval-adapter.js.map +0 -1
- package/lib/session/http-approval-waiter.d.ts +0 -11
- package/lib/session/http-approval-waiter.d.ts.map +0 -1
- package/lib/session/http-approval-waiter.js +0 -61
- package/lib/session/http-approval-waiter.js.map +0 -1
- package/lib/session/http-session-persistence.d.ts +0 -28
- package/lib/session/http-session-persistence.d.ts.map +0 -1
- package/lib/session/http-session-persistence.js +0 -60
- package/lib/session/http-session-persistence.js.map +0 -1
- package/lib/session/http-session-sink.d.ts +0 -11
- package/lib/session/http-session-sink.d.ts.map +0 -1
- package/lib/session/http-session-sink.js +0 -32
- package/lib/session/http-session-sink.js.map +0 -1
- package/lib/session/http-step-projector.d.ts +0 -16
- package/lib/session/http-step-projector.d.ts.map +0 -1
- package/lib/session/http-step-projector.js +0 -118
- package/lib/session/http-step-projector.js.map +0 -1
- package/lib/session/http-turn-runner.d.ts +0 -16
- package/lib/session/http-turn-runner.d.ts.map +0 -1
- package/lib/session/http-turn-runner.js +0 -57
- package/lib/session/http-turn-runner.js.map +0 -1
- package/lib/session/park-controller.d.ts +0 -24
- package/lib/session/park-controller.d.ts.map +0 -1
- package/lib/session/park-controller.js +0 -58
- package/lib/session/park-controller.js.map +0 -1
- package/lib/session/resolve-approval-port.d.ts +0 -7
- package/lib/session/resolve-approval-port.d.ts.map +0 -1
- package/lib/session/resolve-approval-port.js +0 -13
- package/lib/session/resolve-approval-port.js.map +0 -1
- package/lib/session/session-event-log.d.ts +0 -17
- package/lib/session/session-event-log.d.ts.map +0 -1
- package/lib/session/session-event-log.js +0 -56
- package/lib/session/session-event-log.js.map +0 -1
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { buildAiOutboundPromptHint } from '@zhin.js/core';
|
|
2
|
-
import { resolveCellForScene, findCellMemberByEndpoint } from './collaboration-config.js';
|
|
3
|
-
/** 每轮 turn envelope 用的精简 Cell 提示(勿重复 buildAiOutboundPromptHint 长文)。 */
|
|
4
|
-
export function formatCollaborationTurnCellHint(cell, currentEndpointKey) {
|
|
5
|
-
const self = findCellMemberByEndpoint(cell, currentEndpointKey);
|
|
6
|
-
const peers = cell.members.filter((m) => m.endpointKey !== currentEndpointKey);
|
|
7
|
-
const peerBrief = peers
|
|
8
|
-
.map((p) => `${p.primary}=${p.endpointKey}`)
|
|
9
|
-
.join(', ');
|
|
10
|
-
const lines = [
|
|
11
|
-
`[Cell ${cell.id}] You: ${self?.primary ?? currentEndpointKey} (${currentEndpointKey})`,
|
|
12
|
-
];
|
|
13
|
-
if (cell.goal?.trim())
|
|
14
|
-
lines.push(`Goal: ${cell.goal.trim()}`);
|
|
15
|
-
if (peerBrief)
|
|
16
|
-
lines.push(`Peers: ${peerBrief}`);
|
|
17
|
-
lines.push('Peer dispatch uses internal_room via the orchestration kernel; IM @ is optional (im_projection / project_to_im).');
|
|
18
|
-
lines.push('If the inbound message includes #taskId (im_projection), include that #taskId in your public handback.');
|
|
19
|
-
return lines.join('\n');
|
|
20
|
-
}
|
|
21
|
-
export function formatCollaborationSceneHint(cell, currentEndpointKey, options) {
|
|
22
|
-
const self = findCellMemberByEndpoint(cell, currentEndpointKey);
|
|
23
|
-
const peers = cell.members.filter((m) => m.endpointKey !== currentEndpointKey);
|
|
24
|
-
const cellLines = [
|
|
25
|
-
'[Collaboration cell]',
|
|
26
|
-
`Cell: ${cell.id} (adapter ${cell.adapter}, scene ${cell.sceneId})`,
|
|
27
|
-
];
|
|
28
|
-
if (cell.goal?.trim())
|
|
29
|
-
cellLines.push(`Goal: ${cell.goal.trim()}`);
|
|
30
|
-
if (self) {
|
|
31
|
-
cellLines.push(`You: endpoint ${currentEndpointKey}, agent "${self.primary}"${self.role ? ` (${self.role})` : ''}.`);
|
|
32
|
-
}
|
|
33
|
-
if (peers.length > 0) {
|
|
34
|
-
cellLines.push('Peers:');
|
|
35
|
-
for (const peer of peers) {
|
|
36
|
-
cellLines.push(`- "${peer.endpointKey}": agent "${peer.primary}"${peer.role ? ` (${peer.role})` : ''}`);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
const lines = [
|
|
40
|
-
buildAiOutboundPromptHint({
|
|
41
|
-
rosterLines: cellLines,
|
|
42
|
-
forceJsonOnly: options?.forceJsonOnly ?? false,
|
|
43
|
-
}),
|
|
44
|
-
'Peer dispatch and task handback are managed by the orchestration kernel (internal_room; IM projection is optional).',
|
|
45
|
-
];
|
|
46
|
-
return lines.join('\n');
|
|
47
|
-
}
|
|
48
|
-
/** 仅当入站消息命中多 Bot 协作 Cell 时返回 Cell(私聊、非成员、单 Bot Cell 均不注入)。 */
|
|
49
|
-
export function resolveCollaborationSceneForMessage(message) {
|
|
50
|
-
if (!message)
|
|
51
|
-
return undefined;
|
|
52
|
-
const scope = message.$channel?.type;
|
|
53
|
-
if (scope !== 'group' && scope !== 'channel')
|
|
54
|
-
return undefined;
|
|
55
|
-
const sceneId = message.$channel?.id;
|
|
56
|
-
if (!sceneId)
|
|
57
|
-
return undefined;
|
|
58
|
-
const endpointKey = String(message.$endpoint ?? '');
|
|
59
|
-
if (!endpointKey)
|
|
60
|
-
return undefined;
|
|
61
|
-
return resolveCollaborationScene({
|
|
62
|
-
platform: String(message.$adapter ?? ''),
|
|
63
|
-
endpoint: endpointKey,
|
|
64
|
-
scope,
|
|
65
|
-
sceneId: String(sceneId),
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
function resolveCollaborationScene(input) {
|
|
69
|
-
if (input.scope !== 'group' && input.scope !== 'channel')
|
|
70
|
-
return undefined;
|
|
71
|
-
const cell = resolveCellForScene(input.platform, input.sceneId);
|
|
72
|
-
if (!cell || cell.members.length < 2)
|
|
73
|
-
return undefined;
|
|
74
|
-
if (!findCellMemberByEndpoint(cell, input.endpoint))
|
|
75
|
-
return undefined;
|
|
76
|
-
return cell;
|
|
77
|
-
}
|
|
78
|
-
/** 构建 turn envelope 用的协作提示;不满足场景时返回 undefined。 */
|
|
79
|
-
export function resolveCollaborationTurnHint(message, _inboundContent) {
|
|
80
|
-
const cell = resolveCollaborationSceneForMessage(message);
|
|
81
|
-
if (!cell)
|
|
82
|
-
return undefined;
|
|
83
|
-
const endpointKey = String(message.$endpoint);
|
|
84
|
-
const lines = [
|
|
85
|
-
formatCollaborationTurnCellHint(cell, endpointKey),
|
|
86
|
-
].filter(Boolean);
|
|
87
|
-
return lines.join('\n');
|
|
88
|
-
}
|
|
89
|
-
/** Canonical Turn variant used by Agent Context; no IM Message crosses the boundary. */
|
|
90
|
-
export function resolveCollaborationTurnHintFromOrigin(origin) {
|
|
91
|
-
if (origin.kind !== 'im')
|
|
92
|
-
return undefined;
|
|
93
|
-
const cell = resolveCollaborationScene({
|
|
94
|
-
platform: origin.platform,
|
|
95
|
-
endpoint: origin.endpoint,
|
|
96
|
-
scope: origin.scope,
|
|
97
|
-
sceneId: origin.sceneId,
|
|
98
|
-
});
|
|
99
|
-
return cell ? formatCollaborationTurnCellHint(cell, origin.endpoint) : undefined;
|
|
100
|
-
}
|
|
101
|
-
//# sourceMappingURL=collaboration-context.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"collaboration-context.js","sourceRoot":"","sources":["../../src/collaboration/collaboration-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAGxE,OAAO,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAC1F,uEAAuE;AACvE,MAAM,UAAU,+BAA+B,CAC7C,IAAwB,EACxB,kBAA0B;IAE1B,MAAM,IAAI,GAAG,wBAAwB,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC;IAChE,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,KAAK,kBAAkB,CAAC,CAAC;IAC/E,MAAM,SAAS,GAAG,KAAK;SACpB,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,OAAO,IAAI,CAAC,CAAC,WAAW,EAAE,CAAC;SAC3C,IAAI,CAAC,IAAI,CAAC,CAAC;IACd,MAAM,KAAK,GAAG;QACZ,SAAS,IAAI,CAAC,EAAE,UAAU,IAAI,EAAE,OAAO,IAAI,kBAAkB,KAAK,kBAAkB,GAAG;KACxF,CAAC;IACF,IAAI,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE;QAAE,KAAK,C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,CAAC"}
|
|
@@ -1,350 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* collaboration_scenes + collaboration_scene_members — GroupCell 持久化(ADR 0023)
|
|
3
|
-
*/
|
|
4
|
-
export declare const COLLABORATION_SCENE_MODEL: {
|
|
5
|
-
id: {
|
|
6
|
-
type: "text";
|
|
7
|
-
nullable: boolean;
|
|
8
|
-
};
|
|
9
|
-
adapter: {
|
|
10
|
-
type: "text";
|
|
11
|
-
nullable: boolean;
|
|
12
|
-
};
|
|
13
|
-
scene_id: {
|
|
14
|
-
type: "text";
|
|
15
|
-
nullable: boolean;
|
|
16
|
-
};
|
|
17
|
-
goal: {
|
|
18
|
-
type: "text";
|
|
19
|
-
default: string;
|
|
20
|
-
};
|
|
21
|
-
mission_run_id: {
|
|
22
|
-
type: "text";
|
|
23
|
-
default: string;
|
|
24
|
-
};
|
|
25
|
-
/** Pipeline 状态机 JSON(ADR 0024 D4);空串表示尚未初始化。 */
|
|
26
|
-
pipeline_state: {
|
|
27
|
-
type: "text";
|
|
28
|
-
default: string;
|
|
29
|
-
};
|
|
30
|
-
version: {
|
|
31
|
-
type: "integer";
|
|
32
|
-
default: number;
|
|
33
|
-
};
|
|
34
|
-
enabled: {
|
|
35
|
-
type: "integer";
|
|
36
|
-
default: number;
|
|
37
|
-
};
|
|
38
|
-
created_at: {
|
|
39
|
-
type: "integer";
|
|
40
|
-
default: number;
|
|
41
|
-
};
|
|
42
|
-
updated_at: {
|
|
43
|
-
type: "integer";
|
|
44
|
-
default: number;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
export declare const COLLABORATION_SCENE_MEMBER_MODEL: {
|
|
48
|
-
collaboration_scene_id: {
|
|
49
|
-
type: "text";
|
|
50
|
-
nullable: boolean;
|
|
51
|
-
};
|
|
52
|
-
endpoint_id: {
|
|
53
|
-
type: "text";
|
|
54
|
-
nullable: boolean;
|
|
55
|
-
};
|
|
56
|
-
/** 成员 transport adapter;空串表示继承 Cell.adapter */
|
|
57
|
-
adapter: {
|
|
58
|
-
type: "text";
|
|
59
|
-
default: string;
|
|
60
|
-
};
|
|
61
|
-
primary: {
|
|
62
|
-
type: "text";
|
|
63
|
-
nullable: boolean;
|
|
64
|
-
};
|
|
65
|
-
role: {
|
|
66
|
-
type: "text";
|
|
67
|
-
default: string;
|
|
68
|
-
};
|
|
69
|
-
/** Five-Agent pipeline 角色(ADR 0024 D3)。 */
|
|
70
|
-
pipeline_role: {
|
|
71
|
-
type: "text";
|
|
72
|
-
default: string;
|
|
73
|
-
};
|
|
74
|
-
sort_order: {
|
|
75
|
-
type: "integer";
|
|
76
|
-
default: number;
|
|
77
|
-
};
|
|
78
|
-
enabled: {
|
|
79
|
-
type: "integer";
|
|
80
|
-
default: number;
|
|
81
|
-
};
|
|
82
|
-
created_at: {
|
|
83
|
-
type: "integer";
|
|
84
|
-
default: number;
|
|
85
|
-
};
|
|
86
|
-
updated_at: {
|
|
87
|
-
type: "integer";
|
|
88
|
-
default: number;
|
|
89
|
-
};
|
|
90
|
-
};
|
|
91
|
-
/** Pipeline 阶段产物表(ADR 0024 D4)。 */
|
|
92
|
-
export declare const COLLABORATION_SCENE_ARTIFACT_MODEL: {
|
|
93
|
-
id: {
|
|
94
|
-
type: "text";
|
|
95
|
-
nullable: boolean;
|
|
96
|
-
};
|
|
97
|
-
collaboration_scene_id: {
|
|
98
|
-
type: "text";
|
|
99
|
-
nullable: boolean;
|
|
100
|
-
};
|
|
101
|
-
run_id: {
|
|
102
|
-
type: "text";
|
|
103
|
-
default: string;
|
|
104
|
-
};
|
|
105
|
-
stage: {
|
|
106
|
-
type: "text";
|
|
107
|
-
default: string;
|
|
108
|
-
};
|
|
109
|
-
kind: {
|
|
110
|
-
type: "text";
|
|
111
|
-
default: string;
|
|
112
|
-
};
|
|
113
|
-
payload: {
|
|
114
|
-
type: "text";
|
|
115
|
-
default: string;
|
|
116
|
-
};
|
|
117
|
-
created_by_endpoint: {
|
|
118
|
-
type: "text";
|
|
119
|
-
default: string;
|
|
120
|
-
};
|
|
121
|
-
created_at: {
|
|
122
|
-
type: "integer";
|
|
123
|
-
default: number;
|
|
124
|
-
};
|
|
125
|
-
};
|
|
126
|
-
export interface CollaborationSceneArtifactRow {
|
|
127
|
-
id: string;
|
|
128
|
-
collaboration_scene_id: string;
|
|
129
|
-
run_id: string;
|
|
130
|
-
stage: string;
|
|
131
|
-
kind: string;
|
|
132
|
-
payload: string;
|
|
133
|
-
created_by_endpoint: string;
|
|
134
|
-
created_at: number;
|
|
135
|
-
}
|
|
136
|
-
export interface CollaborationSceneRecord {
|
|
137
|
-
id: string;
|
|
138
|
-
adapter: string;
|
|
139
|
-
scene_id: string;
|
|
140
|
-
goal: string;
|
|
141
|
-
mission_run_id: string;
|
|
142
|
-
pipeline_state: string;
|
|
143
|
-
version: number;
|
|
144
|
-
enabled: number;
|
|
145
|
-
created_at: number;
|
|
146
|
-
updated_at: number;
|
|
147
|
-
}
|
|
148
|
-
export interface CollaborationSceneMemberRow {
|
|
149
|
-
collaboration_scene_id: string;
|
|
150
|
-
endpoint_id: string;
|
|
151
|
-
adapter: string;
|
|
152
|
-
primary: string;
|
|
153
|
-
role: string;
|
|
154
|
-
pipeline_role: string;
|
|
155
|
-
sort_order: number;
|
|
156
|
-
enabled: number;
|
|
157
|
-
created_at: number;
|
|
158
|
-
updated_at: number;
|
|
159
|
-
}
|
|
160
|
-
export interface CollaborationSceneMemberRecord {
|
|
161
|
-
endpointKey: string;
|
|
162
|
-
adapter?: string;
|
|
163
|
-
primary: string;
|
|
164
|
-
role?: string;
|
|
165
|
-
pipelineRole?: string;
|
|
166
|
-
sortOrder?: number;
|
|
167
|
-
enabled?: boolean;
|
|
168
|
-
}
|
|
169
|
-
export interface UpsertCollaborationSceneInput {
|
|
170
|
-
id: string;
|
|
171
|
-
adapter: string;
|
|
172
|
-
sceneId: string;
|
|
173
|
-
goal?: string;
|
|
174
|
-
missionRunId?: string;
|
|
175
|
-
pipelineState?: string;
|
|
176
|
-
members?: CollaborationSceneMemberRecord[];
|
|
177
|
-
enabled?: boolean;
|
|
178
|
-
}
|
|
179
|
-
export interface UpsertCollaborationMemberInput {
|
|
180
|
-
endpointKey: string;
|
|
181
|
-
adapter?: string;
|
|
182
|
-
primary: string;
|
|
183
|
-
role?: string;
|
|
184
|
-
pipelineRole?: string;
|
|
185
|
-
sortOrder?: number;
|
|
186
|
-
enabled?: boolean;
|
|
187
|
-
}
|
|
188
|
-
export declare function memberRowToRecord(row: CollaborationSceneMemberRow): CollaborationSceneMemberRecord;
|
|
189
|
-
export declare function memberInputToRow(collaborationSceneId: string, input: UpsertCollaborationMemberInput, now?: number, existing?: CollaborationSceneMemberRow): CollaborationSceneMemberRow;
|
|
190
|
-
export declare const COLLABORATION_SCENE_ALIAS_MODEL: {
|
|
191
|
-
logical_scene_id: {
|
|
192
|
-
type: "text";
|
|
193
|
-
nullable: boolean;
|
|
194
|
-
};
|
|
195
|
-
adapter: {
|
|
196
|
-
type: "text";
|
|
197
|
-
nullable: boolean;
|
|
198
|
-
};
|
|
199
|
-
scene_id: {
|
|
200
|
-
type: "text";
|
|
201
|
-
nullable: boolean;
|
|
202
|
-
};
|
|
203
|
-
created_at: {
|
|
204
|
-
type: "integer";
|
|
205
|
-
default: number;
|
|
206
|
-
};
|
|
207
|
-
};
|
|
208
|
-
export declare const COLLABORATION_INIT_SESSION_MODEL: {
|
|
209
|
-
id: {
|
|
210
|
-
type: "text";
|
|
211
|
-
nullable: boolean;
|
|
212
|
-
};
|
|
213
|
-
logical_scene_id: {
|
|
214
|
-
type: "text";
|
|
215
|
-
default: string;
|
|
216
|
-
};
|
|
217
|
-
planner_endpoint_id: {
|
|
218
|
-
type: "text";
|
|
219
|
-
nullable: boolean;
|
|
220
|
-
};
|
|
221
|
-
planner_adapter: {
|
|
222
|
-
type: "text";
|
|
223
|
-
nullable: boolean;
|
|
224
|
-
};
|
|
225
|
-
planner_scene_id: {
|
|
226
|
-
type: "text";
|
|
227
|
-
default: string;
|
|
228
|
-
};
|
|
229
|
-
status: {
|
|
230
|
-
type: "text";
|
|
231
|
-
default: string;
|
|
232
|
-
};
|
|
233
|
-
wizard_step: {
|
|
234
|
-
type: "text";
|
|
235
|
-
default: string;
|
|
236
|
-
};
|
|
237
|
-
created_at: {
|
|
238
|
-
type: "integer";
|
|
239
|
-
default: number;
|
|
240
|
-
};
|
|
241
|
-
updated_at: {
|
|
242
|
-
type: "integer";
|
|
243
|
-
default: number;
|
|
244
|
-
};
|
|
245
|
-
};
|
|
246
|
-
export declare const COLLABORATION_INIT_OBSERVATION_MODEL: {
|
|
247
|
-
session_id: {
|
|
248
|
-
type: "text";
|
|
249
|
-
nullable: boolean;
|
|
250
|
-
};
|
|
251
|
-
observer_endpoint_id: {
|
|
252
|
-
type: "text";
|
|
253
|
-
nullable: boolean;
|
|
254
|
-
};
|
|
255
|
-
observer_adapter: {
|
|
256
|
-
type: "text";
|
|
257
|
-
nullable: boolean;
|
|
258
|
-
};
|
|
259
|
-
observer_scene_id: {
|
|
260
|
-
type: "text";
|
|
261
|
-
nullable: boolean;
|
|
262
|
-
};
|
|
263
|
-
at_target_platform_id: {
|
|
264
|
-
type: "text";
|
|
265
|
-
nullable: boolean;
|
|
266
|
-
};
|
|
267
|
-
wizard_step: {
|
|
268
|
-
type: "text";
|
|
269
|
-
default: string;
|
|
270
|
-
};
|
|
271
|
-
observed_at: {
|
|
272
|
-
type: "integer";
|
|
273
|
-
default: number;
|
|
274
|
-
};
|
|
275
|
-
};
|
|
276
|
-
export interface CollaborationSceneAliasRow {
|
|
277
|
-
logical_scene_id: string;
|
|
278
|
-
adapter: string;
|
|
279
|
-
scene_id: string;
|
|
280
|
-
created_at: number;
|
|
281
|
-
}
|
|
282
|
-
export interface CollaborationInitSessionRow {
|
|
283
|
-
id: string;
|
|
284
|
-
logical_scene_id: string;
|
|
285
|
-
planner_endpoint_id: string;
|
|
286
|
-
planner_adapter: string;
|
|
287
|
-
planner_scene_id: string;
|
|
288
|
-
status: string;
|
|
289
|
-
wizard_step: string;
|
|
290
|
-
created_at: number;
|
|
291
|
-
updated_at: number;
|
|
292
|
-
}
|
|
293
|
-
export type InitSessionStatus = 'wizard' | 'aggregating' | 'active' | 'cancelled';
|
|
294
|
-
export declare const WIZARD_STEPS: readonly ["researcher", "evaluator", "executor", "reviewer", "done"];
|
|
295
|
-
export type WizardStep = typeof WIZARD_STEPS[number];
|
|
296
|
-
/** 可分配角色的向导步骤(不含 done)。 */
|
|
297
|
-
export declare const ASSIGNABLE_WIZARD_ROLES: readonly ["researcher", "evaluator", "executor", "reviewer"];
|
|
298
|
-
export type AssignableWizardRole = typeof ASSIGNABLE_WIZARD_ROLES[number];
|
|
299
|
-
export declare function isWizardStep(value: unknown): value is WizardStep;
|
|
300
|
-
export declare function isAssignableWizardRole(value: unknown): value is AssignableWizardRole;
|
|
301
|
-
export interface CollaborationInitObservationRow {
|
|
302
|
-
session_id: string;
|
|
303
|
-
observer_endpoint_id: string;
|
|
304
|
-
observer_adapter: string;
|
|
305
|
-
observer_scene_id: string;
|
|
306
|
-
at_target_platform_id: string;
|
|
307
|
-
wizard_step: string;
|
|
308
|
-
observed_at: number;
|
|
309
|
-
}
|
|
310
|
-
/** 成员跨 adapter 身份表(identity 边表)。 */
|
|
311
|
-
export declare const COLLABORATION_SCENE_MEMBER_CHANNEL_MODEL: {
|
|
312
|
-
logical_scene_id: {
|
|
313
|
-
type: "text";
|
|
314
|
-
nullable: boolean;
|
|
315
|
-
};
|
|
316
|
-
endpoint_id: {
|
|
317
|
-
type: "text";
|
|
318
|
-
nullable: boolean;
|
|
319
|
-
};
|
|
320
|
-
pipeline_role: {
|
|
321
|
-
type: "text";
|
|
322
|
-
default: string;
|
|
323
|
-
};
|
|
324
|
-
adapter: {
|
|
325
|
-
type: "text";
|
|
326
|
-
nullable: boolean;
|
|
327
|
-
};
|
|
328
|
-
scene_id: {
|
|
329
|
-
type: "text";
|
|
330
|
-
nullable: boolean;
|
|
331
|
-
};
|
|
332
|
-
bot_id: {
|
|
333
|
-
type: "text";
|
|
334
|
-
nullable: boolean;
|
|
335
|
-
};
|
|
336
|
-
created_at: {
|
|
337
|
-
type: "integer";
|
|
338
|
-
default: number;
|
|
339
|
-
};
|
|
340
|
-
};
|
|
341
|
-
export interface CollaborationSceneMemberChannelRow {
|
|
342
|
-
logical_scene_id: string;
|
|
343
|
-
endpoint_id: string;
|
|
344
|
-
pipeline_role: string;
|
|
345
|
-
adapter: string;
|
|
346
|
-
scene_id: string;
|
|
347
|
-
bot_id: string;
|
|
348
|
-
created_at: number;
|
|
349
|
-
}
|
|
350
|
-
//# sourceMappingURL=collaboration-db-model.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"collaboration-db-model.d.ts","sourceRoot":"","sources":["../../src/collaboration/collaboration-db-model.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;IAMpC,gDAAgD;;;;;;;;;;;;;;;;;;;;;CAMjD,CAAC;AAEF,eAAO,MAAM,gCAAgC;;;;;;;;;IAG3C,+CAA+C;;;;;;;;;;;;;IAI/C,2CAA2C;;;;;;;;;;;;;;;;;;;;;CAM5C,CAAC;AAEF,mCAAmC;AACnC,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAS9C,CAAC;AAEF,MAAM,WAAW,6BAA6B;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,sBAAsB,EAAE,MAAM,CAAC;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,wBAAwB;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM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AAO,YAAY,CAAC,MAAM,CAAC,CAAC;AAErD,2BAA2B;AAC3B,eAAO,MAAM,uBAAuB,8DAA+D,CAAC;AACpG,MAAM,MAAM,oBAAoB,GAAG,OAAO,uBAAuB,CAAC,MAAM,CAAC,CAAC;AAE1E,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,UAAU,CAEhE;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,oBAAoB,CAEpF;AAED,MAAM,WAAW,+BAA+B;IAC9C,UAAU,EAAE,MAAM,CAAC;IACnB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,gBAAgB,EAAE,MAAM,CAAC;IACzB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,oCAAoC;AACpC,eAAO,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQpD,CAAC;AAEF,MAAM,WAAW,kCAAkC;IACjD,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* collaboration_scenes + collaboration_scene_members — GroupCell 持久化(ADR 0023)
|
|
3
|
-
*/
|
|
4
|
-
export const COLLABORATION_SCENE_MODEL = {
|
|
5
|
-
id: { type: 'text', nullable: false },
|
|
6
|
-
adapter: { type: 'text', nullable: false },
|
|
7
|
-
scene_id: { type: 'text', nullable: false },
|
|
8
|
-
goal: { type: 'text', default: '' },
|
|
9
|
-
mission_run_id: { type: 'text', default: '' },
|
|
10
|
-
/** Pipeline 状态机 JSON(ADR 0024 D4);空串表示尚未初始化。 */
|
|
11
|
-
pipeline_state: { type: 'text', default: '' },
|
|
12
|
-
version: { type: 'integer', default: 0 },
|
|
13
|
-
enabled: { type: 'integer', default: 1 },
|
|
14
|
-
created_at: { type: 'integer', default: 0 },
|
|
15
|
-
updated_at: { type: 'integer', default: 0 },
|
|
16
|
-
};
|
|
17
|
-
export const COLLABORATION_SCENE_MEMBER_MODEL = {
|
|
18
|
-
collaboration_scene_id: { type: 'text', nullable: false },
|
|
19
|
-
endpoint_id: { type: 'text', nullable: false },
|
|
20
|
-
/** 成员 transport adapter;空串表示继承 Cell.adapter */
|
|
21
|
-
adapter: { type: 'text', default: '' },
|
|
22
|
-
primary: { type: 'text', nullable: false },
|
|
23
|
-
role: { type: 'text', default: '' },
|
|
24
|
-
/** Five-Agent pipeline 角色(ADR 0024 D3)。 */
|
|
25
|
-
pipeline_role: { type: 'text', default: '' },
|
|
26
|
-
sort_order: { type: 'integer', default: 0 },
|
|
27
|
-
enabled: { type: 'integer', default: 1 },
|
|
28
|
-
created_at: { type: 'integer', default: 0 },
|
|
29
|
-
updated_at: { type: 'integer', default: 0 },
|
|
30
|
-
};
|
|
31
|
-
/** Pipeline 阶段产物表(ADR 0024 D4)。 */
|
|
32
|
-
export const COLLABORATION_SCENE_ARTIFACT_MODEL = {
|
|
33
|
-
id: { type: 'text', nullable: false },
|
|
34
|
-
collaboration_scene_id: { type: 'text', nullable: false },
|
|
35
|
-
run_id: { type: 'text', default: '' },
|
|
36
|
-
stage: { type: 'text', default: '' },
|
|
37
|
-
kind: { type: 'text', default: '' },
|
|
38
|
-
payload: { type: 'text', default: '' },
|
|
39
|
-
created_by_endpoint: { type: 'text', default: '' },
|
|
40
|
-
created_at: { type: 'integer', default: 0 },
|
|
41
|
-
};
|
|
42
|
-
export function memberRowToRecord(row) {
|
|
43
|
-
return {
|
|
44
|
-
endpointKey: row.endpoint_id,
|
|
45
|
-
adapter: row.adapter || undefined,
|
|
46
|
-
primary: row.primary,
|
|
47
|
-
role: row.role || undefined,
|
|
48
|
-
pipelineRole: row.pipeline_role || undefined,
|
|
49
|
-
sortOrder: row.sort_order,
|
|
50
|
-
enabled: row.enabled !== 0,
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
export function memberInputToRow(collaborationSceneId, input, now = Date.now(), existing) {
|
|
54
|
-
return {
|
|
55
|
-
collaboration_scene_id: collaborationSceneId,
|
|
56
|
-
endpoint_id: input.endpointKey,
|
|
57
|
-
adapter: input.adapter ?? existing?.adapter ?? '',
|
|
58
|
-
primary: input.primary,
|
|
59
|
-
role: input.role ?? existing?.role ?? '',
|
|
60
|
-
pipeline_role: input.pipelineRole ?? existing?.pipeline_role ?? '',
|
|
61
|
-
sort_order: input.sortOrder ?? existing?.sort_order ?? 0,
|
|
62
|
-
enabled: input.enabled == null ? existing?.enabled ?? 1 : input.enabled === false ? 0 : 1,
|
|
63
|
-
created_at: existing?.created_at ?? now,
|
|
64
|
-
updated_at: now,
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
export const COLLABORATION_SCENE_ALIAS_MODEL = {
|
|
68
|
-
logical_scene_id: { type: 'text', nullable: false },
|
|
69
|
-
adapter: { type: 'text', nullable: false },
|
|
70
|
-
scene_id: { type: 'text', nullable: false },
|
|
71
|
-
created_at: { type: 'integer', default: 0 },
|
|
72
|
-
};
|
|
73
|
-
export const COLLABORATION_INIT_SESSION_MODEL = {
|
|
74
|
-
id: { type: 'text', nullable: false },
|
|
75
|
-
logical_scene_id: { type: 'text', default: '' },
|
|
76
|
-
planner_endpoint_id: { type: 'text', nullable: false },
|
|
77
|
-
planner_adapter: { type: 'text', nullable: false },
|
|
78
|
-
planner_scene_id: { type: 'text', default: '' },
|
|
79
|
-
status: { type: 'text', default: 'wizard' },
|
|
80
|
-
wizard_step: { type: 'text', default: '' },
|
|
81
|
-
created_at: { type: 'integer', default: 0 },
|
|
82
|
-
updated_at: { type: 'integer', default: 0 },
|
|
83
|
-
};
|
|
84
|
-
export const COLLABORATION_INIT_OBSERVATION_MODEL = {
|
|
85
|
-
session_id: { type: 'text', nullable: false },
|
|
86
|
-
observer_endpoint_id: { type: 'text', nullable: false },
|
|
87
|
-
observer_adapter: { type: 'text', nullable: false },
|
|
88
|
-
observer_scene_id: { type: 'text', nullable: false },
|
|
89
|
-
at_target_platform_id: { type: 'text', nullable: false },
|
|
90
|
-
wizard_step: { type: 'text', default: '' },
|
|
91
|
-
observed_at: { type: 'integer', default: 0 },
|
|
92
|
-
};
|
|
93
|
-
export const WIZARD_STEPS = ['researcher', 'evaluator', 'executor', 'reviewer', 'done'];
|
|
94
|
-
/** 可分配角色的向导步骤(不含 done)。 */
|
|
95
|
-
export const ASSIGNABLE_WIZARD_ROLES = ['researcher', 'evaluator', 'executor', 'reviewer'];
|
|
96
|
-
export function isWizardStep(value) {
|
|
97
|
-
return typeof value === 'string' && WIZARD_STEPS.includes(value);
|
|
98
|
-
}
|
|
99
|
-
export function isAssignableWizardRole(value) {
|
|
100
|
-
return typeof value === 'string' && ASSIGNABLE_WIZARD_ROLES.includes(value);
|
|
101
|
-
}
|
|
102
|
-
/** 成员跨 adapter 身份表(identity 边表)。 */
|
|
103
|
-
export const COLLABORATION_SCENE_MEMBER_CHANNEL_MODEL = {
|
|
104
|
-
logical_scene_id: { type: 'text', nullable: false },
|
|
105
|
-
endpoint_id: { type: 'text', nullable: false },
|
|
106
|
-
pipeline_role: { type: 'text', default: '' },
|
|
107
|
-
adapter: { type: 'text', nullable: false },
|
|
108
|
-
scene_id: { type: 'text', nullable: false },
|
|
109
|
-
bot_id: { type: 'text', nullable: false },
|
|
110
|
-
created_at: { type: 'integer', default: 0 },
|
|
111
|
-
};
|
|
112
|
-
//# sourceMappingURL=collaboration-db-model.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"collaboration-db-model.js","sourceRoot":"","sources":["../../src/collaboration/collaboration-db-model.ts"],"names":[],"mappings":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SAAkB,EAAE,OAAO,EAAE,CAAC,EAAE;CACrD,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Pipeline 协作委派识别与 handback 摘要(传输层 harness)。
|
|
3
|
-
*/
|
|
4
|
-
import { type Message } from '@zhin.js/core';
|
|
5
|
-
import type { CollaborationScene } from './types.js';
|
|
6
|
-
export { resolvePlannerEndpointKey } from './collab-utils.js';
|
|
7
|
-
export declare function messageTextContent(message: Message): string;
|
|
8
|
-
/** 模型把 cell_* 工具返回值原样贴到群里的 JSON blob。 */
|
|
9
|
-
export declare function isCellToolResultJson(text: string): boolean;
|
|
10
|
-
/** 从混合正文中剥离内嵌的 legacy cell_* 工具 JSON(保留其余可读文本)。 */
|
|
11
|
-
export declare function removeEmbeddedCellToolJsonFromText(text: string): string;
|
|
12
|
-
/** 从被委派方出站正文提取公开回复摘要(剥离 JSON handback / markdown 围栏 / 工具 JSON)。 */
|
|
13
|
-
export declare function summarizeDelegateeReply(text: string): string;
|
|
14
|
-
/** Kernel / 群协作 handback:须为实质公开内容,不能只有「已完成」。 */
|
|
15
|
-
export declare function isSubstantiveGroupTaskReply(text: string): boolean;
|
|
16
|
-
/** 剥离模型贴到回复里的 cell_* 工具 JSON(勿发到群)。 */
|
|
17
|
-
export declare function stripCellToolJsonFromOutputElements(elements: import('@zhin.js/ai').OutputElement[]): import('@zhin.js/ai').OutputElement[];
|
|
18
|
-
export declare function formatActiveDelegationHint(cell: CollaborationScene, endpointKey: string): string | undefined;
|
|
19
|
-
/** Planner 收到成员 handback @ 时的 turn 指引。 */
|
|
20
|
-
export declare function formatPlannerHandbackHint(_cell: CollaborationScene): string | undefined;
|
|
21
|
-
//# sourceMappingURL=collaboration-delegation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"collaboration-delegation.d.ts","sourceRoot":"","sources":["../../src/collaboration/collaboration-delegation.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,OAAO,EAAiC,MAAM,eAAe,CAAC;AAC5E,OAAO,KAAK,EAAE,kBAAkB,EAAwB,MAAM,YAAY,CAAC;AAG3E,OAAO,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAQ3D;AAED,yCAAyC;AACzC,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CA8B1D;AAoCD,mDAAmD;AACnD,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAuCvE;AAED,mEAAmE;AACnE,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAY5D;AAED,gDAAgD;AAChD,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAMjE;AAED,uCAAuC;AACvC,wBAAgB,mCAAmC,CACjD,QAAQ,EAAE,OAAO,aAAa,EAAE,aAAa,EAAE,GAC9C,OAAO,aAAa,EAAE,aAAa,EAAE,CAcvC;AAkBD,wBAAgB,0BAA0B,CACxC,IAAI,EAAE,kBAAkB,EACxB,WAAW,EAAE,MAAM,GAClB,MAAM,GAAG,SAAS,CAuBpB;AAED,0CAA0C;AAC1C,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,kBAAkB,GAAG,MAAM,GAAG,SAAS,CAOvF"}
|