dsh-tavern-bundle 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +216 -0
- package/cordis.patch.yml +14 -0
- package/lib/adapters/model-gateway.d.ts +4 -0
- package/lib/adapters/model-gateway.d.ts.map +1 -0
- package/lib/adapters/model-gateway.js +3 -0
- package/lib/adapters/model-gateway.js.map +1 -0
- package/lib/adapters/prestep-spike.d.ts +16 -0
- package/lib/adapters/prestep-spike.d.ts.map +1 -0
- package/lib/adapters/prestep-spike.js +114 -0
- package/lib/adapters/prestep-spike.js.map +1 -0
- package/lib/adapters/runtime-probe.d.ts +67 -0
- package/lib/adapters/runtime-probe.d.ts.map +1 -0
- package/lib/adapters/runtime-probe.js +106 -0
- package/lib/adapters/runtime-probe.js.map +1 -0
- package/lib/adapters/session-agent-provider.d.ts +3 -0
- package/lib/adapters/session-agent-provider.d.ts.map +1 -0
- package/lib/adapters/session-agent-provider.js +3 -0
- package/lib/adapters/session-agent-provider.js.map +1 -0
- package/lib/adapters/subagent-gateway.d.ts +3 -0
- package/lib/adapters/subagent-gateway.d.ts.map +1 -0
- package/lib/adapters/subagent-gateway.js +3 -0
- package/lib/adapters/subagent-gateway.js.map +1 -0
- package/lib/application/chat/chat-application-service.d.ts +94 -0
- package/lib/application/chat/chat-application-service.d.ts.map +1 -0
- package/lib/application/chat/chat-application-service.js +291 -0
- package/lib/application/chat/chat-application-service.js.map +1 -0
- package/lib/application/companion/agent-orchestrator.d.ts +91 -0
- package/lib/application/companion/agent-orchestrator.d.ts.map +1 -0
- package/lib/application/companion/agent-orchestrator.js +298 -0
- package/lib/application/companion/agent-orchestrator.js.map +1 -0
- package/lib/application/companion/companion-child-service.d.ts +47 -0
- package/lib/application/companion/companion-child-service.d.ts.map +1 -0
- package/lib/application/companion/companion-child-service.js +30 -0
- package/lib/application/companion/companion-child-service.js.map +1 -0
- package/lib/application/companion/companion-invocation-service.d.ts +42 -0
- package/lib/application/companion/companion-invocation-service.d.ts.map +1 -0
- package/lib/application/companion/companion-invocation-service.js +50 -0
- package/lib/application/companion/companion-invocation-service.js.map +1 -0
- package/lib/application/companion/companion-profile-service.d.ts +32 -0
- package/lib/application/companion/companion-profile-service.d.ts.map +1 -0
- package/lib/application/companion/companion-profile-service.js +112 -0
- package/lib/application/companion/companion-profile-service.js.map +1 -0
- package/lib/application/companion/companion-promotion-service.d.ts +69 -0
- package/lib/application/companion/companion-promotion-service.d.ts.map +1 -0
- package/lib/application/companion/companion-promotion-service.js +129 -0
- package/lib/application/companion/companion-promotion-service.js.map +1 -0
- package/lib/application/group-chat/group-chat-execution-service.d.ts +22 -0
- package/lib/application/group-chat/group-chat-execution-service.d.ts.map +1 -0
- package/lib/application/group-chat/group-chat-execution-service.js +110 -0
- package/lib/application/group-chat/group-chat-execution-service.js.map +1 -0
- package/lib/application/group-chat/group-chat-orchestrator.d.ts +51 -0
- package/lib/application/group-chat/group-chat-orchestrator.d.ts.map +1 -0
- package/lib/application/group-chat/group-chat-orchestrator.js +57 -0
- package/lib/application/group-chat/group-chat-orchestrator.js.map +1 -0
- package/lib/application/memory/memory-retriever.d.ts +37 -0
- package/lib/application/memory/memory-retriever.d.ts.map +1 -0
- package/lib/application/memory/memory-retriever.js +91 -0
- package/lib/application/memory/memory-retriever.js.map +1 -0
- package/lib/application/memory/memory-service.d.ts +128 -0
- package/lib/application/memory/memory-service.d.ts.map +1 -0
- package/lib/application/memory/memory-service.js +346 -0
- package/lib/application/memory/memory-service.js.map +1 -0
- package/lib/application/ports/companion-runtime-port.d.ts +72 -0
- package/lib/application/ports/companion-runtime-port.d.ts.map +1 -0
- package/lib/application/ports/companion-runtime-port.js +2 -0
- package/lib/application/ports/companion-runtime-port.js.map +1 -0
- package/lib/application/ports/llm-port.d.ts +7 -0
- package/lib/application/ports/llm-port.d.ts.map +1 -0
- package/lib/application/ports/llm-port.js +2 -0
- package/lib/application/ports/llm-port.js.map +1 -0
- package/lib/application/ports/message-source.d.ts +4 -0
- package/lib/application/ports/message-source.d.ts.map +1 -0
- package/lib/application/ports/message-source.js +5 -0
- package/lib/application/ports/message-source.js.map +1 -0
- package/lib/application/ports/session-context-port.d.ts +13 -0
- package/lib/application/ports/session-context-port.d.ts.map +1 -0
- package/lib/application/ports/session-context-port.js +2 -0
- package/lib/application/ports/session-context-port.js.map +1 -0
- package/lib/application/ports/subagent-port.d.ts +31 -0
- package/lib/application/ports/subagent-port.d.ts.map +1 -0
- package/lib/application/ports/subagent-port.js +2 -0
- package/lib/application/ports/subagent-port.js.map +1 -0
- package/lib/application/ports/user-resolver-port.d.ts +5 -0
- package/lib/application/ports/user-resolver-port.d.ts.map +1 -0
- package/lib/application/ports/user-resolver-port.js +2 -0
- package/lib/application/ports/user-resolver-port.js.map +1 -0
- package/lib/application/relationship/relationship-event-service.d.ts +31 -0
- package/lib/application/relationship/relationship-event-service.d.ts.map +1 -0
- package/lib/application/relationship/relationship-event-service.js +43 -0
- package/lib/application/relationship/relationship-event-service.js.map +1 -0
- package/lib/application/relationship/relationship-policy.d.ts +20 -0
- package/lib/application/relationship/relationship-policy.d.ts.map +1 -0
- package/lib/application/relationship/relationship-policy.js +24 -0
- package/lib/application/relationship/relationship-policy.js.map +1 -0
- package/lib/application/relationship/relationship-projection.d.ts +14 -0
- package/lib/application/relationship/relationship-projection.d.ts.map +1 -0
- package/lib/application/relationship/relationship-projection.js +25 -0
- package/lib/application/relationship/relationship-projection.js.map +1 -0
- package/lib/application/relationship/relationship-service.d.ts +95 -0
- package/lib/application/relationship/relationship-service.d.ts.map +1 -0
- package/lib/application/relationship/relationship-service.js +254 -0
- package/lib/application/relationship/relationship-service.js.map +1 -0
- package/lib/application/workspace/workspace-service.d.ts +106 -0
- package/lib/application/workspace/workspace-service.d.ts.map +1 -0
- package/lib/application/workspace/workspace-service.js +44 -0
- package/lib/application/workspace/workspace-service.js.map +1 -0
- package/lib/bootstrap/create-domain.d.ts +5 -0
- package/lib/bootstrap/create-domain.d.ts.map +1 -0
- package/lib/bootstrap/create-domain.js +14 -0
- package/lib/bootstrap/create-domain.js.map +1 -0
- package/lib/bootstrap/create-repositories.d.ts +403 -0
- package/lib/bootstrap/create-repositories.d.ts.map +1 -0
- package/lib/bootstrap/create-repositories.js +39 -0
- package/lib/bootstrap/create-repositories.js.map +1 -0
- package/lib/bootstrap/create-runtime.d.ts +8 -0
- package/lib/bootstrap/create-runtime.d.ts.map +1 -0
- package/lib/bootstrap/create-runtime.js +10 -0
- package/lib/bootstrap/create-runtime.js.map +1 -0
- package/lib/bootstrap/create-services.d.ts +52 -0
- package/lib/bootstrap/create-services.d.ts.map +1 -0
- package/lib/bootstrap/create-services.js +79 -0
- package/lib/bootstrap/create-services.js.map +1 -0
- package/lib/bootstrap/install-commands.d.ts +4 -0
- package/lib/bootstrap/install-commands.d.ts.map +1 -0
- package/lib/bootstrap/install-commands.js +322 -0
- package/lib/bootstrap/install-commands.js.map +1 -0
- package/lib/bootstrap/install-http.d.ts +7 -0
- package/lib/bootstrap/install-http.d.ts.map +1 -0
- package/lib/bootstrap/install-http.js +265 -0
- package/lib/bootstrap/install-http.js.map +1 -0
- package/lib/bootstrap/lifecycle.d.ts +14 -0
- package/lib/bootstrap/lifecycle.d.ts.map +1 -0
- package/lib/bootstrap/lifecycle.js +56 -0
- package/lib/bootstrap/lifecycle.js.map +1 -0
- package/lib/bootstrap/types.d.ts +9 -0
- package/lib/bootstrap/types.d.ts.map +1 -0
- package/lib/bootstrap/types.js +2 -0
- package/lib/bootstrap/types.js.map +1 -0
- package/lib/client.js +6 -0
- package/lib/client.js.map +1 -0
- package/lib/core/audit-service.d.ts +43 -0
- package/lib/core/audit-service.d.ts.map +1 -0
- package/lib/core/audit-service.js +75 -0
- package/lib/core/audit-service.js.map +1 -0
- package/lib/core/candidate-extractor.d.ts +31 -0
- package/lib/core/candidate-extractor.d.ts.map +1 -0
- package/lib/core/candidate-extractor.js +83 -0
- package/lib/core/candidate-extractor.js.map +1 -0
- package/lib/core/candidate-service.d.ts +72 -0
- package/lib/core/candidate-service.d.ts.map +1 -0
- package/lib/core/candidate-service.js +283 -0
- package/lib/core/candidate-service.js.map +1 -0
- package/lib/core/character-service.d.ts +26 -0
- package/lib/core/character-service.d.ts.map +1 -0
- package/lib/core/character-service.js +68 -0
- package/lib/core/character-service.js.map +1 -0
- package/lib/core/chat-file-io.d.ts +28 -0
- package/lib/core/chat-file-io.d.ts.map +1 -0
- package/lib/core/chat-file-io.js +114 -0
- package/lib/core/chat-file-io.js.map +1 -0
- package/lib/core/chat-service.d.ts +4 -0
- package/lib/core/chat-service.d.ts.map +1 -0
- package/lib/core/chat-service.js +3 -0
- package/lib/core/chat-service.js.map +1 -0
- package/lib/core/command-arguments.d.ts +2 -0
- package/lib/core/command-arguments.d.ts.map +1 -0
- package/lib/core/command-arguments.js +42 -0
- package/lib/core/command-arguments.js.map +1 -0
- package/lib/core/companion-child-agent-service.d.ts +3 -0
- package/lib/core/companion-child-agent-service.d.ts.map +1 -0
- package/lib/core/companion-child-agent-service.js +3 -0
- package/lib/core/companion-child-agent-service.js.map +1 -0
- package/lib/core/companion-invocation-service.d.ts +3 -0
- package/lib/core/companion-invocation-service.d.ts.map +1 -0
- package/lib/core/companion-invocation-service.js +3 -0
- package/lib/core/companion-invocation-service.js.map +1 -0
- package/lib/core/companion-profile-service.d.ts +3 -0
- package/lib/core/companion-profile-service.d.ts.map +1 -0
- package/lib/core/companion-profile-service.js +3 -0
- package/lib/core/companion-profile-service.js.map +1 -0
- package/lib/core/companion-promotion-service.d.ts +3 -0
- package/lib/core/companion-promotion-service.d.ts.map +1 -0
- package/lib/core/companion-promotion-service.js +3 -0
- package/lib/core/companion-promotion-service.js.map +1 -0
- package/lib/core/context-assembler.d.ts +92 -0
- package/lib/core/context-assembler.d.ts.map +1 -0
- package/lib/core/context-assembler.js +185 -0
- package/lib/core/context-assembler.js.map +1 -0
- package/lib/core/conversation-repository.d.ts +42 -0
- package/lib/core/conversation-repository.d.ts.map +1 -0
- package/lib/core/conversation-repository.js +94 -0
- package/lib/core/conversation-repository.js.map +1 -0
- package/lib/core/group-chat-execution-service.d.ts +3 -0
- package/lib/core/group-chat-execution-service.d.ts.map +1 -0
- package/lib/core/group-chat-execution-service.js +3 -0
- package/lib/core/group-chat-execution-service.js.map +1 -0
- package/lib/core/group-chat-orchestrator.d.ts +3 -0
- package/lib/core/group-chat-orchestrator.d.ts.map +1 -0
- package/lib/core/group-chat-orchestrator.js +3 -0
- package/lib/core/group-chat-orchestrator.js.map +1 -0
- package/lib/core/memory-retriever.d.ts +3 -0
- package/lib/core/memory-retriever.d.ts.map +1 -0
- package/lib/core/memory-retriever.js +3 -0
- package/lib/core/memory-retriever.js.map +1 -0
- package/lib/core/memory-service.d.ts +3 -0
- package/lib/core/memory-service.d.ts.map +1 -0
- package/lib/core/memory-service.js +3 -0
- package/lib/core/memory-service.js.map +1 -0
- package/lib/core/personality-candidate-service.d.ts +46 -0
- package/lib/core/personality-candidate-service.d.ts.map +1 -0
- package/lib/core/personality-candidate-service.js +65 -0
- package/lib/core/personality-candidate-service.js.map +1 -0
- package/lib/core/prompt-assembler.d.ts +43 -0
- package/lib/core/prompt-assembler.d.ts.map +1 -0
- package/lib/core/prompt-assembler.js +67 -0
- package/lib/core/prompt-assembler.js.map +1 -0
- package/lib/core/relationship-event-service.d.ts +3 -0
- package/lib/core/relationship-event-service.d.ts.map +1 -0
- package/lib/core/relationship-event-service.js +3 -0
- package/lib/core/relationship-event-service.js.map +1 -0
- package/lib/core/relationship-policy.d.ts +3 -0
- package/lib/core/relationship-policy.d.ts.map +1 -0
- package/lib/core/relationship-policy.js +3 -0
- package/lib/core/relationship-policy.js.map +1 -0
- package/lib/core/relationship-projection.d.ts +3 -0
- package/lib/core/relationship-projection.d.ts.map +1 -0
- package/lib/core/relationship-projection.js +3 -0
- package/lib/core/relationship-projection.js.map +1 -0
- package/lib/core/relationship-service.d.ts +3 -0
- package/lib/core/relationship-service.d.ts.map +1 -0
- package/lib/core/relationship-service.js +3 -0
- package/lib/core/relationship-service.js.map +1 -0
- package/lib/core/roleplay-contract.d.ts +11 -0
- package/lib/core/roleplay-contract.d.ts.map +1 -0
- package/lib/core/roleplay-contract.js +27 -0
- package/lib/core/roleplay-contract.js.map +1 -0
- package/lib/core/runtime-binding-service.d.ts +19 -0
- package/lib/core/runtime-binding-service.d.ts.map +1 -0
- package/lib/core/runtime-binding-service.js +66 -0
- package/lib/core/runtime-binding-service.js.map +1 -0
- package/lib/core/scene-service.d.ts +60 -0
- package/lib/core/scene-service.d.ts.map +1 -0
- package/lib/core/scene-service.js +212 -0
- package/lib/core/scene-service.js.map +1 -0
- package/lib/core/session-binding-service.d.ts +51 -0
- package/lib/core/session-binding-service.d.ts.map +1 -0
- package/lib/core/session-binding-service.js +106 -0
- package/lib/core/session-binding-service.js.map +1 -0
- package/lib/core/skill-service.d.ts +82 -0
- package/lib/core/skill-service.d.ts.map +1 -0
- package/lib/core/skill-service.js +45 -0
- package/lib/core/skill-service.js.map +1 -0
- package/lib/core/tavern-session-bridge.d.ts +3 -0
- package/lib/core/tavern-session-bridge.d.ts.map +1 -0
- package/lib/core/tavern-session-bridge.js +3 -0
- package/lib/core/tavern-session-bridge.js.map +1 -0
- package/lib/core/user-resolver.d.ts +15 -0
- package/lib/core/user-resolver.d.ts.map +1 -0
- package/lib/core/user-resolver.js +17 -0
- package/lib/core/user-resolver.js.map +1 -0
- package/lib/core/workspace-service.d.ts +3 -0
- package/lib/core/workspace-service.d.ts.map +1 -0
- package/lib/core/workspace-service.js +3 -0
- package/lib/core/workspace-service.js.map +1 -0
- package/lib/core/workspace-session-service.d.ts +11 -0
- package/lib/core/workspace-session-service.d.ts.map +1 -0
- package/lib/core/workspace-session-service.js +14 -0
- package/lib/core/workspace-session-service.js.map +1 -0
- package/lib/domain/schemas.d.ts +1173 -0
- package/lib/domain/schemas.d.ts.map +1 -0
- package/lib/domain/schemas.js +590 -0
- package/lib/domain/schemas.js.map +1 -0
- package/lib/domain/spec.d.ts +494 -0
- package/lib/domain/spec.d.ts.map +1 -0
- package/lib/domain/spec.js +63 -0
- package/lib/domain/spec.js.map +1 -0
- package/lib/import/artifact-service.d.ts +33 -0
- package/lib/import/artifact-service.d.ts.map +1 -0
- package/lib/import/artifact-service.js +67 -0
- package/lib/import/artifact-service.js.map +1 -0
- package/lib/import/import-service.d.ts +30 -0
- package/lib/import/import-service.d.ts.map +1 -0
- package/lib/import/import-service.js +154 -0
- package/lib/import/import-service.js.map +1 -0
- package/lib/import/parser.d.ts +81 -0
- package/lib/import/parser.d.ts.map +1 -0
- package/lib/import/parser.js +423 -0
- package/lib/import/parser.js.map +1 -0
- package/lib/index.d.ts +60 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +111 -0
- package/lib/index.js.map +1 -0
- package/lib/infrastructure/dsh/llm/llm-port.d.ts +3 -0
- package/lib/infrastructure/dsh/llm/llm-port.d.ts.map +1 -0
- package/lib/infrastructure/dsh/llm/llm-port.js +2 -0
- package/lib/infrastructure/dsh/llm/llm-port.js.map +1 -0
- package/lib/infrastructure/dsh/llm/model-gateway.d.ts +10 -0
- package/lib/infrastructure/dsh/llm/model-gateway.d.ts.map +1 -0
- package/lib/infrastructure/dsh/llm/model-gateway.js +21 -0
- package/lib/infrastructure/dsh/llm/model-gateway.js.map +1 -0
- package/lib/infrastructure/dsh/session/session-agent-provider.d.ts +28 -0
- package/lib/infrastructure/dsh/session/session-agent-provider.d.ts.map +1 -0
- package/lib/infrastructure/dsh/session/session-agent-provider.js +40 -0
- package/lib/infrastructure/dsh/session/session-agent-provider.js.map +1 -0
- package/lib/infrastructure/dsh/session/tavern-session-bridge.d.ts +142 -0
- package/lib/infrastructure/dsh/session/tavern-session-bridge.d.ts.map +1 -0
- package/lib/infrastructure/dsh/session/tavern-session-bridge.js +544 -0
- package/lib/infrastructure/dsh/session/tavern-session-bridge.js.map +1 -0
- package/lib/infrastructure/dsh/subagent/subagent-gateway.d.ts +63 -0
- package/lib/infrastructure/dsh/subagent/subagent-gateway.d.ts.map +1 -0
- package/lib/infrastructure/dsh/subagent/subagent-gateway.js +70 -0
- package/lib/infrastructure/dsh/subagent/subagent-gateway.js.map +1 -0
- package/lib/infrastructure/runtime/companion-runtime.d.ts +128 -0
- package/lib/infrastructure/runtime/companion-runtime.d.ts.map +1 -0
- package/lib/infrastructure/runtime/companion-runtime.js +127 -0
- package/lib/infrastructure/runtime/companion-runtime.js.map +1 -0
- package/lib/infrastructure/runtime/runtime-factory.d.ts +10 -0
- package/lib/infrastructure/runtime/runtime-factory.d.ts.map +1 -0
- package/lib/infrastructure/runtime/runtime-factory.js +14 -0
- package/lib/infrastructure/runtime/runtime-factory.js.map +1 -0
- package/lib/interfaces/http/chat/chat-http.d.ts +23 -0
- package/lib/interfaces/http/chat/chat-http.d.ts.map +1 -0
- package/lib/interfaces/http/chat/chat-http.js +310 -0
- package/lib/interfaces/http/chat/chat-http.js.map +1 -0
- package/lib/interfaces/http/companion/companion-http.d.ts +8 -0
- package/lib/interfaces/http/companion/companion-http.d.ts.map +1 -0
- package/lib/interfaces/http/companion/companion-http.js +76 -0
- package/lib/interfaces/http/companion/companion-http.js.map +1 -0
- package/lib/interfaces/http/companion/promotion-http.d.ts +6 -0
- package/lib/interfaces/http/companion/promotion-http.d.ts.map +1 -0
- package/lib/interfaces/http/companion/promotion-http.js +25 -0
- package/lib/interfaces/http/companion/promotion-http.js.map +1 -0
- package/lib/interfaces/http/companion/runtime-http.d.ts +13 -0
- package/lib/interfaces/http/companion/runtime-http.d.ts.map +1 -0
- package/lib/interfaces/http/companion/runtime-http.js +51 -0
- package/lib/interfaces/http/companion/runtime-http.js.map +1 -0
- package/lib/interfaces/http/companion/stage4-companion-http.d.ts +30 -0
- package/lib/interfaces/http/companion/stage4-companion-http.d.ts.map +1 -0
- package/lib/interfaces/http/companion/stage4-companion-http.js +149 -0
- package/lib/interfaces/http/companion/stage4-companion-http.js.map +1 -0
- package/lib/interfaces/http/group/group-http.d.ts +11 -0
- package/lib/interfaces/http/group/group-http.d.ts.map +1 -0
- package/lib/interfaces/http/group/group-http.js +77 -0
- package/lib/interfaces/http/group/group-http.js.map +1 -0
- package/lib/interfaces/http/memory/candidate-http.d.ts +8 -0
- package/lib/interfaces/http/memory/candidate-http.d.ts.map +1 -0
- package/lib/interfaces/http/memory/candidate-http.js +86 -0
- package/lib/interfaces/http/memory/candidate-http.js.map +1 -0
- package/lib/interfaces/http/relationship/companion-relationship-http.d.ts +7 -0
- package/lib/interfaces/http/relationship/companion-relationship-http.d.ts.map +1 -0
- package/lib/interfaces/http/relationship/companion-relationship-http.js +30 -0
- package/lib/interfaces/http/relationship/companion-relationship-http.js.map +1 -0
- package/lib/interfaces/http/workspace/workspace-http.d.ts +19 -0
- package/lib/interfaces/http/workspace/workspace-http.d.ts.map +1 -0
- package/lib/interfaces/http/workspace/workspace-http.js +78 -0
- package/lib/interfaces/http/workspace/workspace-http.js.map +1 -0
- package/lib/interfaces/read-model/tavern-read-api.d.ts +44 -0
- package/lib/interfaces/read-model/tavern-read-api.d.ts.map +1 -0
- package/lib/interfaces/read-model/tavern-read-api.js +189 -0
- package/lib/interfaces/read-model/tavern-read-api.js.map +1 -0
- package/lib/remote/candidate-api.d.ts +3 -0
- package/lib/remote/candidate-api.d.ts.map +1 -0
- package/lib/remote/candidate-api.js +3 -0
- package/lib/remote/candidate-api.js.map +1 -0
- package/lib/remote/chat-api.d.ts +3 -0
- package/lib/remote/chat-api.d.ts.map +1 -0
- package/lib/remote/chat-api.js +3 -0
- package/lib/remote/chat-api.js.map +1 -0
- package/lib/remote/companion-api.d.ts +3 -0
- package/lib/remote/companion-api.d.ts.map +1 -0
- package/lib/remote/companion-api.js +3 -0
- package/lib/remote/companion-api.js.map +1 -0
- package/lib/remote/companion-promotion-api.d.ts +3 -0
- package/lib/remote/companion-promotion-api.d.ts.map +1 -0
- package/lib/remote/companion-promotion-api.js +3 -0
- package/lib/remote/companion-promotion-api.js.map +1 -0
- package/lib/remote/import-http.d.ts +29 -0
- package/lib/remote/import-http.d.ts.map +1 -0
- package/lib/remote/import-http.js +106 -0
- package/lib/remote/import-http.js.map +1 -0
- package/lib/remote/stage4-api.d.ts +6 -0
- package/lib/remote/stage4-api.d.ts.map +1 -0
- package/lib/remote/stage4-api.js +4 -0
- package/lib/remote/stage4-api.js.map +1 -0
- package/lib/remote/stage5-runtime-api.d.ts +4 -0
- package/lib/remote/stage5-runtime-api.d.ts.map +1 -0
- package/lib/remote/stage5-runtime-api.js +2 -0
- package/lib/remote/stage5-runtime-api.js.map +1 -0
- package/lib/remote/stage6-group-api.d.ts +4 -0
- package/lib/remote/stage6-group-api.d.ts.map +1 -0
- package/lib/remote/stage6-group-api.js +2 -0
- package/lib/remote/stage6-group-api.js.map +1 -0
- package/lib/remote/tavern-api.d.ts +3 -0
- package/lib/remote/tavern-api.d.ts.map +1 -0
- package/lib/remote/tavern-api.js +3 -0
- package/lib/remote/tavern-api.js.map +1 -0
- package/lib/runtime/agent-orchestrator.d.ts +3 -0
- package/lib/runtime/agent-orchestrator.d.ts.map +1 -0
- package/lib/runtime/agent-orchestrator.js +3 -0
- package/lib/runtime/agent-orchestrator.js.map +1 -0
- package/lib/runtime/companion-runtime.d.ts +3 -0
- package/lib/runtime/companion-runtime.d.ts.map +1 -0
- package/lib/runtime/companion-runtime.js +3 -0
- package/lib/runtime/companion-runtime.js.map +1 -0
- package/lib/runtime/langgraph-graph.d.ts +32 -0
- package/lib/runtime/langgraph-graph.d.ts.map +1 -0
- package/lib/runtime/langgraph-graph.js +32 -0
- package/lib/runtime/langgraph-graph.js.map +1 -0
- package/lib/runtime/state.d.ts +38 -0
- package/lib/runtime/state.d.ts.map +1 -0
- package/lib/runtime/state.js +16 -0
- package/lib/runtime/state.js.map +1 -0
- package/lib/seed/elaine.d.ts +9 -0
- package/lib/seed/elaine.d.ts.map +1 -0
- package/lib/seed/elaine.js +27 -0
- package/lib/seed/elaine.js.map +1 -0
- package/lib/tools/import-character.d.ts +16 -0
- package/lib/tools/import-character.d.ts.map +1 -0
- package/lib/tools/import-character.js +98 -0
- package/lib/tools/import-character.js.map +1 -0
- package/package.json +108 -0
|
@@ -0,0 +1,1173 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DSH-Tavern 领域数据模型(阶段 0 交付:三个核心实体的 zod schema)。
|
|
3
|
+
*
|
|
4
|
+
* 说明:
|
|
5
|
+
* - Storage Domain 的 `domainTable(schema)` 要求 zod schema(见
|
|
6
|
+
* @deepseek-ai/dsh-storage-domain 的 DomainTableSpec.valueSchema:
|
|
7
|
+
* ZodType<V>,运行时调用 `schema.parse(raw)`)。本文件只定义 schema 与
|
|
8
|
+
* 推断类型;`defineDomain`/`domainTable` 组合在阶段 2(Storage、恢复)
|
|
9
|
+
* 落地。
|
|
10
|
+
* - CharacterDefinition 禁止保存 childSessionId / subagentId / 任何运行态
|
|
11
|
+
* session id(产品文档 §4.1)。
|
|
12
|
+
* - FollowupDelivery.source 持久化为 MessageSource 的可 JSON 序列化快照
|
|
13
|
+
* (完整 MessageSource 由 DeliveryQueue 在投递时附加;阶段 2 细化)。
|
|
14
|
+
*/
|
|
15
|
+
import { z } from 'zod';
|
|
16
|
+
/** 角色实例生命周期状态(产品文档 §4.1)。 */
|
|
17
|
+
export declare const CharacterInstanceStatusSchema: z.ZodEnum<{
|
|
18
|
+
creating: "creating";
|
|
19
|
+
active: "active";
|
|
20
|
+
retiring: "retiring";
|
|
21
|
+
retired: "retired";
|
|
22
|
+
failed: "failed";
|
|
23
|
+
}>;
|
|
24
|
+
export type CharacterInstanceStatus = z.infer<typeof CharacterInstanceStatusSchema>;
|
|
25
|
+
/** 一次投递的状态机(方案 §5.1):accepted ≠ completed。 */
|
|
26
|
+
export declare const DeliveryStatusSchema: z.ZodEnum<{
|
|
27
|
+
failed: "failed";
|
|
28
|
+
assembling: "assembling";
|
|
29
|
+
queued: "queued";
|
|
30
|
+
accepted: "accepted";
|
|
31
|
+
completed: "completed";
|
|
32
|
+
cancelled: "cancelled";
|
|
33
|
+
}>;
|
|
34
|
+
export type DeliveryStatus = z.infer<typeof DeliveryStatusSchema>;
|
|
35
|
+
/** 可版本化的静态角色档案;禁止保存运行态 session id。 */
|
|
36
|
+
export declare const CharacterDefinitionSchema: z.ZodObject<{
|
|
37
|
+
id: z.ZodString;
|
|
38
|
+
revision: z.ZodNumber;
|
|
39
|
+
name: z.ZodString;
|
|
40
|
+
persona: z.ZodString;
|
|
41
|
+
scenario: z.ZodOptional<z.ZodString>;
|
|
42
|
+
exampleDialogue: z.ZodOptional<z.ZodString>;
|
|
43
|
+
firstMessage: z.ZodOptional<z.ZodString>;
|
|
44
|
+
alternateGreetings: z.ZodArray<z.ZodString>;
|
|
45
|
+
capabilityProfileId: z.ZodString;
|
|
46
|
+
lorebookIds: z.ZodArray<z.ZodString>;
|
|
47
|
+
avatarArtifactId: z.ZodOptional<z.ZodString>;
|
|
48
|
+
importRecordId: z.ZodOptional<z.ZodString>;
|
|
49
|
+
createdAt: z.ZodString;
|
|
50
|
+
updatedAt: z.ZodString;
|
|
51
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
52
|
+
active: "active";
|
|
53
|
+
trashed: "trashed";
|
|
54
|
+
}>>;
|
|
55
|
+
trashedAt: z.ZodOptional<z.ZodString>;
|
|
56
|
+
}, z.core.$strip>;
|
|
57
|
+
export type CharacterDefinition = z.infer<typeof CharacterDefinitionSchema>;
|
|
58
|
+
/** 某个角色 revision 在某个 Scene 的运行时实例;创建时固定 characterRevision。 */
|
|
59
|
+
export declare const CharacterAgentInstanceSchema: z.ZodObject<{
|
|
60
|
+
id: z.ZodString;
|
|
61
|
+
characterId: z.ZodString;
|
|
62
|
+
characterRevision: z.ZodNumber;
|
|
63
|
+
parentSessionId: z.ZodString;
|
|
64
|
+
childSessionId: z.ZodString;
|
|
65
|
+
sceneId: z.ZodString;
|
|
66
|
+
status: z.ZodEnum<{
|
|
67
|
+
creating: "creating";
|
|
68
|
+
active: "active";
|
|
69
|
+
retiring: "retiring";
|
|
70
|
+
retired: "retired";
|
|
71
|
+
failed: "failed";
|
|
72
|
+
}>;
|
|
73
|
+
createdAt: z.ZodString;
|
|
74
|
+
retiredAt: z.ZodOptional<z.ZodString>;
|
|
75
|
+
failureCode: z.ZodOptional<z.ZodString>;
|
|
76
|
+
}, z.core.$strip>;
|
|
77
|
+
export type CharacterAgentInstance = z.infer<typeof CharacterAgentInstanceSchema>;
|
|
78
|
+
/** 持久化的序列化错误(delivery.error)。 */
|
|
79
|
+
export declare const SerializedErrorSchema: z.ZodObject<{
|
|
80
|
+
name: z.ZodString;
|
|
81
|
+
message: z.ZodString;
|
|
82
|
+
code: z.ZodOptional<z.ZodString>;
|
|
83
|
+
stack: z.ZodOptional<z.ZodString>;
|
|
84
|
+
}, z.core.$strip>;
|
|
85
|
+
export type SerializedError = z.infer<typeof SerializedErrorSchema>;
|
|
86
|
+
/** MessageSource 的可持久化快照(kind/form 判别 + 归属 session)。 */
|
|
87
|
+
export declare const MessageSourceSnapshotSchema: z.ZodObject<{
|
|
88
|
+
kind: z.ZodString;
|
|
89
|
+
form: z.ZodOptional<z.ZodString>;
|
|
90
|
+
senderSessionId: z.ZodOptional<z.ZodString>;
|
|
91
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
92
|
+
}, z.core.$strip>;
|
|
93
|
+
export type MessageSourceSnapshot = z.infer<typeof MessageSourceSnapshotSchema>;
|
|
94
|
+
/** 一次创建/投递/续推角色消息的可追踪记录。 */
|
|
95
|
+
export declare const FollowupDeliverySchema: z.ZodObject<{
|
|
96
|
+
id: z.ZodString;
|
|
97
|
+
idempotencyKey: z.ZodString;
|
|
98
|
+
instanceId: z.ZodString;
|
|
99
|
+
parentSessionId: z.ZodString;
|
|
100
|
+
childSessionId: z.ZodString;
|
|
101
|
+
source: z.ZodObject<{
|
|
102
|
+
kind: z.ZodString;
|
|
103
|
+
form: z.ZodOptional<z.ZodString>;
|
|
104
|
+
senderSessionId: z.ZodOptional<z.ZodString>;
|
|
105
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
106
|
+
}, z.core.$strip>;
|
|
107
|
+
status: z.ZodEnum<{
|
|
108
|
+
failed: "failed";
|
|
109
|
+
assembling: "assembling";
|
|
110
|
+
queued: "queued";
|
|
111
|
+
accepted: "accepted";
|
|
112
|
+
completed: "completed";
|
|
113
|
+
cancelled: "cancelled";
|
|
114
|
+
}>;
|
|
115
|
+
inputFingerprint: z.ZodString;
|
|
116
|
+
loreHitIds: z.ZodArray<z.ZodString>;
|
|
117
|
+
memoryHitIds: z.ZodArray<z.ZodString>;
|
|
118
|
+
relationshipHitIds: z.ZodArray<z.ZodString>;
|
|
119
|
+
acceptedAt: z.ZodOptional<z.ZodString>;
|
|
120
|
+
completedAt: z.ZodOptional<z.ZodString>;
|
|
121
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
122
|
+
name: z.ZodString;
|
|
123
|
+
message: z.ZodString;
|
|
124
|
+
code: z.ZodOptional<z.ZodString>;
|
|
125
|
+
stack: z.ZodOptional<z.ZodString>;
|
|
126
|
+
}, z.core.$strip>>;
|
|
127
|
+
createdAt: z.ZodString;
|
|
128
|
+
}, z.core.$strip>;
|
|
129
|
+
export type FollowupDelivery = z.infer<typeof FollowupDeliverySchema>;
|
|
130
|
+
/** 导入资产(角色卡原始字节)的载体格式。 */
|
|
131
|
+
export declare const ArtifactKindSchema: z.ZodEnum<{
|
|
132
|
+
"character-card-json": "character-card-json";
|
|
133
|
+
"character-card-png": "character-card-png";
|
|
134
|
+
charx: "charx";
|
|
135
|
+
}>;
|
|
136
|
+
export type ArtifactKind = z.infer<typeof ArtifactKindSchema>;
|
|
137
|
+
/** 保留的原始导入资产:内容寻址(id = sha256 hex),哈希去重。 */
|
|
138
|
+
export declare const ArtifactSchema: z.ZodObject<{
|
|
139
|
+
id: z.ZodString;
|
|
140
|
+
kind: z.ZodEnum<{
|
|
141
|
+
"character-card-json": "character-card-json";
|
|
142
|
+
"character-card-png": "character-card-png";
|
|
143
|
+
charx: "charx";
|
|
144
|
+
}>;
|
|
145
|
+
hash: z.ZodString;
|
|
146
|
+
size: z.ZodNumber;
|
|
147
|
+
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
148
|
+
storedAt: z.ZodString;
|
|
149
|
+
}, z.core.$strip>;
|
|
150
|
+
export type Artifact = z.infer<typeof ArtifactSchema>;
|
|
151
|
+
/** 导入诊断级别。 */
|
|
152
|
+
export declare const ImportDiagnosticLevelSchema: z.ZodEnum<{
|
|
153
|
+
error: "error";
|
|
154
|
+
info: "info";
|
|
155
|
+
warning: "warning";
|
|
156
|
+
}>;
|
|
157
|
+
export type ImportDiagnosticLevel = z.infer<typeof ImportDiagnosticLevelSchema>;
|
|
158
|
+
/** 一条导入诊断:字段映射、缺失、降级(unsupported)等信息。 */
|
|
159
|
+
export declare const ImportDiagnosticSchema: z.ZodObject<{
|
|
160
|
+
level: z.ZodEnum<{
|
|
161
|
+
error: "error";
|
|
162
|
+
info: "info";
|
|
163
|
+
warning: "warning";
|
|
164
|
+
}>;
|
|
165
|
+
field: z.ZodString;
|
|
166
|
+
message: z.ZodString;
|
|
167
|
+
}, z.core.$strip>;
|
|
168
|
+
export type ImportDiagnostic = z.infer<typeof ImportDiagnosticSchema>;
|
|
169
|
+
/** 世界书条目匹配模式:contains=子串包含即触发;word=完整词匹配(\b 边界)。 */
|
|
170
|
+
export declare const LoreMatchModeSchema: z.ZodEnum<{
|
|
171
|
+
contains: "contains";
|
|
172
|
+
word: "word";
|
|
173
|
+
}>;
|
|
174
|
+
export type LoreMatchMode = z.infer<typeof LoreMatchModeSchema>;
|
|
175
|
+
/** 一条世界书条目:关键词 → 背景信息。
|
|
176
|
+
* constant=true 表示「始终激活」:导入时内容已并入 persona,检索注入阶段
|
|
177
|
+
* 跳过(避免与 persona 重复);default(false) 兼容无此字段的旧存储数据。 */
|
|
178
|
+
export declare const LoreEntrySchema: z.ZodObject<{
|
|
179
|
+
id: z.ZodString;
|
|
180
|
+
keys: z.ZodArray<z.ZodString>;
|
|
181
|
+
content: z.ZodString;
|
|
182
|
+
priority: z.ZodNumber;
|
|
183
|
+
enabled: z.ZodBoolean;
|
|
184
|
+
constant: z.ZodDefault<z.ZodBoolean>;
|
|
185
|
+
caseSensitive: z.ZodBoolean;
|
|
186
|
+
matchMode: z.ZodEnum<{
|
|
187
|
+
contains: "contains";
|
|
188
|
+
word: "word";
|
|
189
|
+
}>;
|
|
190
|
+
}, z.core.$strip>;
|
|
191
|
+
export type LoreEntry = z.infer<typeof LoreEntrySchema>;
|
|
192
|
+
/** 世界书定义:绑定到角色的关键词背景集合(角色卡内嵌或独立导入)。 */
|
|
193
|
+
export declare const LorebookDefinitionSchema: z.ZodObject<{
|
|
194
|
+
id: z.ZodString;
|
|
195
|
+
name: z.ZodString;
|
|
196
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
197
|
+
id: z.ZodString;
|
|
198
|
+
keys: z.ZodArray<z.ZodString>;
|
|
199
|
+
content: z.ZodString;
|
|
200
|
+
priority: z.ZodNumber;
|
|
201
|
+
enabled: z.ZodBoolean;
|
|
202
|
+
constant: z.ZodDefault<z.ZodBoolean>;
|
|
203
|
+
caseSensitive: z.ZodBoolean;
|
|
204
|
+
matchMode: z.ZodEnum<{
|
|
205
|
+
contains: "contains";
|
|
206
|
+
word: "word";
|
|
207
|
+
}>;
|
|
208
|
+
}, z.core.$strip>>;
|
|
209
|
+
createdAt: z.ZodString;
|
|
210
|
+
updatedAt: z.ZodString;
|
|
211
|
+
}, z.core.$strip>;
|
|
212
|
+
export type LorebookDefinition = z.infer<typeof LorebookDefinitionSchema>;
|
|
213
|
+
/** 关系节点种类:用户 / 角色 / 角色实例 / 场景(阶段 5.1 关系图谱)。 */
|
|
214
|
+
export declare const RelationshipNodeKindSchema: z.ZodEnum<{
|
|
215
|
+
user: "user";
|
|
216
|
+
character: "character";
|
|
217
|
+
"character-instance": "character-instance";
|
|
218
|
+
companion: "companion";
|
|
219
|
+
scene: "scene";
|
|
220
|
+
}>;
|
|
221
|
+
export type RelationshipNodeKind = z.infer<typeof RelationshipNodeKindSchema>;
|
|
222
|
+
/** 关系节点:只存元数据,不存运行态对象(节点与实体分离,实体经 entityId 引用)。 */
|
|
223
|
+
export declare const RelationshipNodeSchema: z.ZodObject<{
|
|
224
|
+
id: z.ZodString;
|
|
225
|
+
kind: z.ZodEnum<{
|
|
226
|
+
user: "user";
|
|
227
|
+
character: "character";
|
|
228
|
+
"character-instance": "character-instance";
|
|
229
|
+
companion: "companion";
|
|
230
|
+
scene: "scene";
|
|
231
|
+
}>;
|
|
232
|
+
entityId: z.ZodString;
|
|
233
|
+
label: z.ZodString;
|
|
234
|
+
createdAt: z.ZodString;
|
|
235
|
+
}, z.core.$strip>;
|
|
236
|
+
export type RelationshipNode = z.infer<typeof RelationshipNodeSchema>;
|
|
237
|
+
/** 关系边来源:关系值只能由这些来源写入(模型自身不得改动关系值)。 */
|
|
238
|
+
export declare const RelationshipEdgeSourceSchema: z.ZodEnum<{
|
|
239
|
+
user: "user";
|
|
240
|
+
import: "import";
|
|
241
|
+
tool: "tool";
|
|
242
|
+
system: "system";
|
|
243
|
+
"game-rule": "game-rule";
|
|
244
|
+
}>;
|
|
245
|
+
export type RelationshipEdgeSource = z.infer<typeof RelationshipEdgeSourceSchema>;
|
|
246
|
+
/** 关系边状态:superseded 用于更正(不删历史,只追加 + 标记旧边)。 */
|
|
247
|
+
export declare const RelationshipEdgeStatusSchema: z.ZodEnum<{
|
|
248
|
+
active: "active";
|
|
249
|
+
superseded: "superseded";
|
|
250
|
+
archived: "archived";
|
|
251
|
+
}>;
|
|
252
|
+
export type RelationshipEdgeStatus = z.infer<typeof RelationshipEdgeStatusSchema>;
|
|
253
|
+
/** 关系类型(当前值域;后续子阶段可扩展 enum)。 */
|
|
254
|
+
export declare const RelationshipTypeSchema: z.ZodEnum<{
|
|
255
|
+
trust: "trust";
|
|
256
|
+
familiarity: "familiarity";
|
|
257
|
+
affection: "affection";
|
|
258
|
+
ally: "ally";
|
|
259
|
+
rival: "rival";
|
|
260
|
+
}>;
|
|
261
|
+
export type RelationshipType = z.infer<typeof RelationshipTypeSchema>;
|
|
262
|
+
/** 关系边:两个节点之间的有向关系(value 语义约定 0-100,越高越强)。 */
|
|
263
|
+
export declare const RelationshipEdgeSchema: z.ZodObject<{
|
|
264
|
+
id: z.ZodString;
|
|
265
|
+
fromNodeId: z.ZodString;
|
|
266
|
+
toNodeId: z.ZodString;
|
|
267
|
+
type: z.ZodEnum<{
|
|
268
|
+
trust: "trust";
|
|
269
|
+
familiarity: "familiarity";
|
|
270
|
+
affection: "affection";
|
|
271
|
+
ally: "ally";
|
|
272
|
+
rival: "rival";
|
|
273
|
+
}>;
|
|
274
|
+
value: z.ZodNumber;
|
|
275
|
+
source: z.ZodEnum<{
|
|
276
|
+
user: "user";
|
|
277
|
+
import: "import";
|
|
278
|
+
tool: "tool";
|
|
279
|
+
system: "system";
|
|
280
|
+
"game-rule": "game-rule";
|
|
281
|
+
}>;
|
|
282
|
+
sourceEventId: z.ZodOptional<z.ZodString>;
|
|
283
|
+
sceneId: z.ZodOptional<z.ZodString>;
|
|
284
|
+
status: z.ZodEnum<{
|
|
285
|
+
active: "active";
|
|
286
|
+
superseded: "superseded";
|
|
287
|
+
archived: "archived";
|
|
288
|
+
}>;
|
|
289
|
+
supersedes: z.ZodOptional<z.ZodString>;
|
|
290
|
+
projectionBaseline: z.ZodOptional<z.ZodNumber>;
|
|
291
|
+
createdAt: z.ZodString;
|
|
292
|
+
updatedAt: z.ZodString;
|
|
293
|
+
}, z.core.$strip>;
|
|
294
|
+
export type RelationshipEdge = z.infer<typeof RelationshipEdgeSchema>;
|
|
295
|
+
/** 记忆分类(阶段 5.2):player=用户信息,world=世界设定,npc=其他角色,general=一般。 */
|
|
296
|
+
export declare const MemoryCategorySchema: z.ZodEnum<{
|
|
297
|
+
player: "player";
|
|
298
|
+
world: "world";
|
|
299
|
+
npc: "npc";
|
|
300
|
+
general: "general";
|
|
301
|
+
"shared-experience": "shared-experience";
|
|
302
|
+
"relationship-milestone": "relationship-milestone";
|
|
303
|
+
}>;
|
|
304
|
+
export type MemoryCategory = z.infer<typeof MemoryCategorySchema>;
|
|
305
|
+
/** 记忆状态:superseded=被更正(保留审计链路),forgotten=遗忘。 */
|
|
306
|
+
export declare const MemoryStatusSchema: z.ZodEnum<{
|
|
307
|
+
active: "active";
|
|
308
|
+
superseded: "superseded";
|
|
309
|
+
forgotten: "forgotten";
|
|
310
|
+
}>;
|
|
311
|
+
export type MemoryStatus = z.infer<typeof MemoryStatusSchema>;
|
|
312
|
+
/** 记忆来源:模型不得自行写入,只有工具/用户/系统/游戏规则来源可写。 */
|
|
313
|
+
export declare const MemorySourceSchema: z.ZodEnum<{
|
|
314
|
+
user: "user";
|
|
315
|
+
tool: "tool";
|
|
316
|
+
system: "system";
|
|
317
|
+
"game-rule": "game-rule";
|
|
318
|
+
}>;
|
|
319
|
+
export type MemorySource = z.infer<typeof MemorySourceSchema>;
|
|
320
|
+
/** 一条记忆:characterId 必填(不跨角色混淆),来源必须可追溯。 */
|
|
321
|
+
export declare const MemoryEntrySchema: z.ZodObject<{
|
|
322
|
+
id: z.ZodString;
|
|
323
|
+
characterId: z.ZodString;
|
|
324
|
+
instanceId: z.ZodOptional<z.ZodString>;
|
|
325
|
+
sceneId: z.ZodOptional<z.ZodString>;
|
|
326
|
+
fact: z.ZodString;
|
|
327
|
+
category: z.ZodEnum<{
|
|
328
|
+
player: "player";
|
|
329
|
+
world: "world";
|
|
330
|
+
npc: "npc";
|
|
331
|
+
general: "general";
|
|
332
|
+
"shared-experience": "shared-experience";
|
|
333
|
+
"relationship-milestone": "relationship-milestone";
|
|
334
|
+
}>;
|
|
335
|
+
status: z.ZodEnum<{
|
|
336
|
+
active: "active";
|
|
337
|
+
superseded: "superseded";
|
|
338
|
+
forgotten: "forgotten";
|
|
339
|
+
}>;
|
|
340
|
+
supersedes: z.ZodOptional<z.ZodString>;
|
|
341
|
+
source: z.ZodEnum<{
|
|
342
|
+
user: "user";
|
|
343
|
+
tool: "tool";
|
|
344
|
+
system: "system";
|
|
345
|
+
"game-rule": "game-rule";
|
|
346
|
+
}>;
|
|
347
|
+
ownerUserId: z.ZodOptional<z.ZodString>;
|
|
348
|
+
sourceMessageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
349
|
+
candidateId: z.ZodOptional<z.ZodString>;
|
|
350
|
+
sourceEventId: z.ZodOptional<z.ZodString>;
|
|
351
|
+
confidence: z.ZodNumber;
|
|
352
|
+
salience: z.ZodNumber;
|
|
353
|
+
lastAccessedAt: z.ZodOptional<z.ZodString>;
|
|
354
|
+
evidenceInvalidatedAt: z.ZodOptional<z.ZodString>;
|
|
355
|
+
createdAt: z.ZodString;
|
|
356
|
+
updatedAt: z.ZodString;
|
|
357
|
+
}, z.core.$strip>;
|
|
358
|
+
export type MemoryEntry = z.infer<typeof MemoryEntrySchema>;
|
|
359
|
+
/** 场景状态(阶段 5.3):archived=归档只读,不可再修改。 */
|
|
360
|
+
export declare const TavernSceneStatusSchema: z.ZodEnum<{
|
|
361
|
+
active: "active";
|
|
362
|
+
archived: "archived";
|
|
363
|
+
}>;
|
|
364
|
+
export type TavernSceneStatus = z.infer<typeof TavernSceneStatusSchema>;
|
|
365
|
+
/** 场景定义:隔离边界——同一角色在不同场景中的记忆/关系互不可见。 */
|
|
366
|
+
export declare const TavernSceneSchema: z.ZodObject<{
|
|
367
|
+
id: z.ZodString;
|
|
368
|
+
ownerUserId: z.ZodString;
|
|
369
|
+
title: z.ZodOptional<z.ZodString>;
|
|
370
|
+
status: z.ZodEnum<{
|
|
371
|
+
active: "active";
|
|
372
|
+
archived: "archived";
|
|
373
|
+
}>;
|
|
374
|
+
worldLorebookIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
375
|
+
createdAt: z.ZodString;
|
|
376
|
+
updatedAt: z.ZodString;
|
|
377
|
+
}, z.core.$strip>;
|
|
378
|
+
export type TavernScene = z.infer<typeof TavernSceneSchema>;
|
|
379
|
+
/** 场景参与者种类。 */
|
|
380
|
+
export declare const SceneParticipantKindSchema: z.ZodEnum<{
|
|
381
|
+
user: "user";
|
|
382
|
+
"character-instance": "character-instance";
|
|
383
|
+
companion: "companion";
|
|
384
|
+
}>;
|
|
385
|
+
export type SceneParticipantKind = z.infer<typeof SceneParticipantKindSchema>;
|
|
386
|
+
/** 场景参与者角色。 */
|
|
387
|
+
export declare const SceneParticipantRoleSchema: z.ZodEnum<{
|
|
388
|
+
owner: "owner";
|
|
389
|
+
member: "member";
|
|
390
|
+
observer: "observer";
|
|
391
|
+
}>;
|
|
392
|
+
export type SceneParticipantRole = z.infer<typeof SceneParticipantRoleSchema>;
|
|
393
|
+
/** 场景参与者:leftAt 记录退出时间,不删除历史(幂等键 id = sceneId:entityId)。 */
|
|
394
|
+
export declare const SceneParticipantSchema: z.ZodObject<{
|
|
395
|
+
id: z.ZodString;
|
|
396
|
+
sceneId: z.ZodString;
|
|
397
|
+
entityId: z.ZodString;
|
|
398
|
+
entityKind: z.ZodEnum<{
|
|
399
|
+
user: "user";
|
|
400
|
+
"character-instance": "character-instance";
|
|
401
|
+
companion: "companion";
|
|
402
|
+
}>;
|
|
403
|
+
role: z.ZodEnum<{
|
|
404
|
+
owner: "owner";
|
|
405
|
+
member: "member";
|
|
406
|
+
observer: "observer";
|
|
407
|
+
}>;
|
|
408
|
+
joinedAt: z.ZodString;
|
|
409
|
+
leftAt: z.ZodOptional<z.ZodString>;
|
|
410
|
+
}, z.core.$strip>;
|
|
411
|
+
export type SceneParticipant = z.infer<typeof SceneParticipantSchema>;
|
|
412
|
+
/** 审计实体类型(阶段 5.4):基础 5 类 + 场景体系扩展(scene/participant)。 */
|
|
413
|
+
export declare const AuditLogEntityTypeSchema: z.ZodEnum<{
|
|
414
|
+
character: "character";
|
|
415
|
+
scene: "scene";
|
|
416
|
+
instance: "instance";
|
|
417
|
+
memory: "memory";
|
|
418
|
+
relationship: "relationship";
|
|
419
|
+
delivery: "delivery";
|
|
420
|
+
participant: "participant";
|
|
421
|
+
candidate: "candidate";
|
|
422
|
+
relationship_event: "relationship_event";
|
|
423
|
+
companion_profile: "companion_profile";
|
|
424
|
+
personality_candidate: "personality_candidate";
|
|
425
|
+
skill: "skill";
|
|
426
|
+
workspace: "workspace";
|
|
427
|
+
capability_grant: "capability_grant";
|
|
428
|
+
}>;
|
|
429
|
+
export type AuditLogEntityType = z.infer<typeof AuditLogEntityTypeSchema>;
|
|
430
|
+
/** 审计动作:创建 / 更新 / 更正 / 遗忘 / 归档(非查询操作全集)。 */
|
|
431
|
+
export declare const AuditLogActionSchema: z.ZodEnum<{
|
|
432
|
+
create: "create";
|
|
433
|
+
update: "update";
|
|
434
|
+
supersede: "supersede";
|
|
435
|
+
forget: "forget";
|
|
436
|
+
archive: "archive";
|
|
437
|
+
}>;
|
|
438
|
+
export type AuditLogAction = z.infer<typeof AuditLogActionSchema>;
|
|
439
|
+
/** 审计来源:必须明确(不能为空、不能是 unknown)。 */
|
|
440
|
+
export declare const AuditLogSourceSchema: z.ZodEnum<{
|
|
441
|
+
user: "user";
|
|
442
|
+
tool: "tool";
|
|
443
|
+
system: "system";
|
|
444
|
+
"game-rule": "game-rule";
|
|
445
|
+
}>;
|
|
446
|
+
export type AuditLogSource = z.infer<typeof AuditLogSourceSchema>;
|
|
447
|
+
/**
|
|
448
|
+
* 审计日志:只追加不修改(id 唯一、不可变),每个状态变更都可溯源。
|
|
449
|
+
* before/after 只存关键字段快照(不序列化整个对象,避免膨胀)。
|
|
450
|
+
*/
|
|
451
|
+
export declare const AuditLogSchema: z.ZodObject<{
|
|
452
|
+
id: z.ZodString;
|
|
453
|
+
entityType: z.ZodEnum<{
|
|
454
|
+
character: "character";
|
|
455
|
+
scene: "scene";
|
|
456
|
+
instance: "instance";
|
|
457
|
+
memory: "memory";
|
|
458
|
+
relationship: "relationship";
|
|
459
|
+
delivery: "delivery";
|
|
460
|
+
participant: "participant";
|
|
461
|
+
candidate: "candidate";
|
|
462
|
+
relationship_event: "relationship_event";
|
|
463
|
+
companion_profile: "companion_profile";
|
|
464
|
+
personality_candidate: "personality_candidate";
|
|
465
|
+
skill: "skill";
|
|
466
|
+
workspace: "workspace";
|
|
467
|
+
capability_grant: "capability_grant";
|
|
468
|
+
}>;
|
|
469
|
+
entityId: z.ZodString;
|
|
470
|
+
action: z.ZodEnum<{
|
|
471
|
+
create: "create";
|
|
472
|
+
update: "update";
|
|
473
|
+
supersede: "supersede";
|
|
474
|
+
forget: "forget";
|
|
475
|
+
archive: "archive";
|
|
476
|
+
}>;
|
|
477
|
+
before: z.ZodOptional<z.ZodUnknown>;
|
|
478
|
+
after: z.ZodOptional<z.ZodUnknown>;
|
|
479
|
+
source: z.ZodEnum<{
|
|
480
|
+
user: "user";
|
|
481
|
+
tool: "tool";
|
|
482
|
+
system: "system";
|
|
483
|
+
"game-rule": "game-rule";
|
|
484
|
+
}>;
|
|
485
|
+
sourceEventId: z.ZodOptional<z.ZodString>;
|
|
486
|
+
actorId: z.ZodOptional<z.ZodString>;
|
|
487
|
+
sceneId: z.ZodOptional<z.ZodString>;
|
|
488
|
+
createdAt: z.ZodString;
|
|
489
|
+
}, z.core.$strip>;
|
|
490
|
+
export type AuditLog = z.infer<typeof AuditLogSchema>;
|
|
491
|
+
/** 迁移状态(阶段 0):每个 schema 迁移的 checkpoint 与校验结果(§22.1)。 */
|
|
492
|
+
export declare const MigrationCheckpointStatusSchema: z.ZodEnum<{
|
|
493
|
+
failed: "failed";
|
|
494
|
+
completed: "completed";
|
|
495
|
+
planned: "planned";
|
|
496
|
+
running: "running";
|
|
497
|
+
paused: "paused";
|
|
498
|
+
}>;
|
|
499
|
+
export type MigrationCheckpointStatus = z.infer<typeof MigrationCheckpointStatusSchema>;
|
|
500
|
+
export declare const MigrationCheckpointSchema: z.ZodObject<{
|
|
501
|
+
id: z.ZodString;
|
|
502
|
+
migrationId: z.ZodString;
|
|
503
|
+
status: z.ZodEnum<{
|
|
504
|
+
failed: "failed";
|
|
505
|
+
completed: "completed";
|
|
506
|
+
planned: "planned";
|
|
507
|
+
running: "running";
|
|
508
|
+
paused: "paused";
|
|
509
|
+
}>;
|
|
510
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
511
|
+
processedCount: z.ZodDefault<z.ZodNumber>;
|
|
512
|
+
failedCount: z.ZodDefault<z.ZodNumber>;
|
|
513
|
+
startedAt: z.ZodString;
|
|
514
|
+
completedAt: z.ZodOptional<z.ZodString>;
|
|
515
|
+
error: z.ZodOptional<z.ZodString>;
|
|
516
|
+
}, z.core.$strip>;
|
|
517
|
+
export type MigrationCheckpoint = z.infer<typeof MigrationCheckpointSchema>;
|
|
518
|
+
/** 稳定用户(阶段 1):id 来自 getOrCreateAnonymousUserId()(ADR-004)。 */
|
|
519
|
+
export declare const UserSchema: z.ZodObject<{
|
|
520
|
+
id: z.ZodString;
|
|
521
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
522
|
+
createdAt: z.ZodString;
|
|
523
|
+
updatedAt: z.ZodString;
|
|
524
|
+
}, z.core.$strip>;
|
|
525
|
+
export type User = z.infer<typeof UserSchema>;
|
|
526
|
+
export declare const ConversationStatusSchema: z.ZodEnum<{
|
|
527
|
+
active: "active";
|
|
528
|
+
trashed: "trashed";
|
|
529
|
+
archived: "archived";
|
|
530
|
+
}>;
|
|
531
|
+
export type ConversationStatus = z.infer<typeof ConversationStatusSchema>;
|
|
532
|
+
/** 普通聊天的领域事实源(消息树容器,ADR-003)。 */
|
|
533
|
+
export declare const ConversationSchema: z.ZodObject<{
|
|
534
|
+
id: z.ZodString;
|
|
535
|
+
ownerUserId: z.ZodString;
|
|
536
|
+
characterId: z.ZodString;
|
|
537
|
+
characterRevision: z.ZodNumber;
|
|
538
|
+
sceneId: z.ZodOptional<z.ZodString>;
|
|
539
|
+
title: z.ZodOptional<z.ZodString>;
|
|
540
|
+
activeLeafMessageId: z.ZodOptional<z.ZodString>;
|
|
541
|
+
status: z.ZodEnum<{
|
|
542
|
+
active: "active";
|
|
543
|
+
trashed: "trashed";
|
|
544
|
+
archived: "archived";
|
|
545
|
+
}>;
|
|
546
|
+
createdAt: z.ZodString;
|
|
547
|
+
updatedAt: z.ZodString;
|
|
548
|
+
}, z.core.$strip>;
|
|
549
|
+
export type Conversation = z.infer<typeof ConversationSchema>;
|
|
550
|
+
export declare const ConversationMessageRoleSchema: z.ZodEnum<{
|
|
551
|
+
user: "user";
|
|
552
|
+
system: "system";
|
|
553
|
+
assistant: "assistant";
|
|
554
|
+
}>;
|
|
555
|
+
export type ConversationMessageRole = z.infer<typeof ConversationMessageRoleSchema>;
|
|
556
|
+
export declare const ConversationMessageStatusSchema: z.ZodEnum<{
|
|
557
|
+
active: "active";
|
|
558
|
+
superseded: "superseded";
|
|
559
|
+
edited: "edited";
|
|
560
|
+
}>;
|
|
561
|
+
export type ConversationMessageStatus = z.infer<typeof ConversationMessageStatusSchema>;
|
|
562
|
+
/** 消息树节点:parentMessageId 原生支持编辑/重新生成/swipe/分支(ADR-003)。 */
|
|
563
|
+
export declare const ConversationMessageSchema: z.ZodObject<{
|
|
564
|
+
id: z.ZodString;
|
|
565
|
+
conversationId: z.ZodString;
|
|
566
|
+
parentMessageId: z.ZodOptional<z.ZodString>;
|
|
567
|
+
role: z.ZodEnum<{
|
|
568
|
+
user: "user";
|
|
569
|
+
system: "system";
|
|
570
|
+
assistant: "assistant";
|
|
571
|
+
}>;
|
|
572
|
+
content: z.ZodString;
|
|
573
|
+
status: z.ZodEnum<{
|
|
574
|
+
active: "active";
|
|
575
|
+
superseded: "superseded";
|
|
576
|
+
edited: "edited";
|
|
577
|
+
}>;
|
|
578
|
+
modelInfo: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
579
|
+
generationInfo: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
580
|
+
createdAt: z.ZodString;
|
|
581
|
+
}, z.core.$strip>;
|
|
582
|
+
export type ConversationMessage = z.infer<typeof ConversationMessageSchema>;
|
|
583
|
+
/**
|
|
584
|
+
* 聊天文件的原生会话绑定:一个 Conversation 最多拥有一个打开的 DSH Session。
|
|
585
|
+
* Conversation 是事实源;Session 只是原生 DSH 呈现与输入租约。旧版
|
|
586
|
+
* activeConversationId 保留为 optional,仅用于启动迁移,业务代码不得再依赖它。
|
|
587
|
+
*/
|
|
588
|
+
export declare const SessionBindingSchema: z.ZodObject<{
|
|
589
|
+
id: z.ZodString;
|
|
590
|
+
sessionId: z.ZodString;
|
|
591
|
+
characterId: z.ZodString;
|
|
592
|
+
ownerUserId: z.ZodString;
|
|
593
|
+
conversationId: z.ZodOptional<z.ZodString>;
|
|
594
|
+
companionProfileId: z.ZodOptional<z.ZodString>;
|
|
595
|
+
activeConversationId: z.ZodOptional<z.ZodString>;
|
|
596
|
+
createdAt: z.ZodString;
|
|
597
|
+
updatedAt: z.ZodString;
|
|
598
|
+
}, z.core.$strip>;
|
|
599
|
+
export type SessionBinding = z.infer<typeof SessionBindingSchema>;
|
|
600
|
+
export declare const CandidateKindSchema: z.ZodEnum<{
|
|
601
|
+
user_fact: "user_fact";
|
|
602
|
+
preference: "preference";
|
|
603
|
+
shared_event: "shared_event";
|
|
604
|
+
relationship_signal: "relationship_signal";
|
|
605
|
+
goal: "goal";
|
|
606
|
+
commitment: "commitment";
|
|
607
|
+
boundary: "boundary";
|
|
608
|
+
}>;
|
|
609
|
+
export type CandidateKind = z.infer<typeof CandidateKindSchema>;
|
|
610
|
+
export declare const CandidateSensitivitySchema: z.ZodEnum<{
|
|
611
|
+
low: "low";
|
|
612
|
+
medium: "medium";
|
|
613
|
+
high: "high";
|
|
614
|
+
}>;
|
|
615
|
+
export type CandidateSensitivity = z.infer<typeof CandidateSensitivitySchema>;
|
|
616
|
+
export declare const CandidateStatusSchema: z.ZodEnum<{
|
|
617
|
+
accepted: "accepted";
|
|
618
|
+
superseded: "superseded";
|
|
619
|
+
pending: "pending";
|
|
620
|
+
rejected: "rejected";
|
|
621
|
+
"evidence-invalid": "evidence-invalid";
|
|
622
|
+
}>;
|
|
623
|
+
export type CandidateStatus = z.infer<typeof CandidateStatusSchema>;
|
|
624
|
+
/** 模型只能提案;只有审阅接受后才会产生正式 MemoryEntry。 */
|
|
625
|
+
export declare const InsightCandidateSchema: z.ZodObject<{
|
|
626
|
+
id: z.ZodString;
|
|
627
|
+
ownerUserId: z.ZodString;
|
|
628
|
+
characterId: z.ZodString;
|
|
629
|
+
conversationId: z.ZodString;
|
|
630
|
+
sceneId: z.ZodOptional<z.ZodString>;
|
|
631
|
+
kind: z.ZodEnum<{
|
|
632
|
+
user_fact: "user_fact";
|
|
633
|
+
preference: "preference";
|
|
634
|
+
shared_event: "shared_event";
|
|
635
|
+
relationship_signal: "relationship_signal";
|
|
636
|
+
goal: "goal";
|
|
637
|
+
commitment: "commitment";
|
|
638
|
+
boundary: "boundary";
|
|
639
|
+
}>;
|
|
640
|
+
proposedContent: z.ZodString;
|
|
641
|
+
sourceMessageIds: z.ZodArray<z.ZodString>;
|
|
642
|
+
rationale: z.ZodOptional<z.ZodString>;
|
|
643
|
+
confidence: z.ZodNumber;
|
|
644
|
+
sensitivity: z.ZodEnum<{
|
|
645
|
+
low: "low";
|
|
646
|
+
medium: "medium";
|
|
647
|
+
high: "high";
|
|
648
|
+
}>;
|
|
649
|
+
extractionVersion: z.ZodString;
|
|
650
|
+
status: z.ZodEnum<{
|
|
651
|
+
accepted: "accepted";
|
|
652
|
+
superseded: "superseded";
|
|
653
|
+
pending: "pending";
|
|
654
|
+
rejected: "rejected";
|
|
655
|
+
"evidence-invalid": "evidence-invalid";
|
|
656
|
+
}>;
|
|
657
|
+
reviewerUserId: z.ZodOptional<z.ZodString>;
|
|
658
|
+
reviewedAt: z.ZodOptional<z.ZodString>;
|
|
659
|
+
resultingMemoryId: z.ZodOptional<z.ZodString>;
|
|
660
|
+
invalidationReason: z.ZodOptional<z.ZodString>;
|
|
661
|
+
invalidatedAt: z.ZodOptional<z.ZodString>;
|
|
662
|
+
supersedes: z.ZodOptional<z.ZodString>;
|
|
663
|
+
createdAt: z.ZodString;
|
|
664
|
+
updatedAt: z.ZodString;
|
|
665
|
+
}, z.core.$strip>;
|
|
666
|
+
export type InsightCandidate = z.infer<typeof InsightCandidateSchema>;
|
|
667
|
+
/** 关系数值的追加式事实;阶段 3 后续里程碑以此重放投影。 */
|
|
668
|
+
export declare const RelationshipEventSchema: z.ZodObject<{
|
|
669
|
+
id: z.ZodString;
|
|
670
|
+
ownerUserId: z.ZodString;
|
|
671
|
+
characterId: z.ZodOptional<z.ZodString>;
|
|
672
|
+
sceneId: z.ZodOptional<z.ZodString>;
|
|
673
|
+
fromNodeId: z.ZodString;
|
|
674
|
+
toNodeId: z.ZodString;
|
|
675
|
+
type: z.ZodEnum<{
|
|
676
|
+
trust: "trust";
|
|
677
|
+
familiarity: "familiarity";
|
|
678
|
+
affection: "affection";
|
|
679
|
+
ally: "ally";
|
|
680
|
+
rival: "rival";
|
|
681
|
+
}>;
|
|
682
|
+
delta: z.ZodNumber;
|
|
683
|
+
source: z.ZodEnum<{
|
|
684
|
+
user: "user";
|
|
685
|
+
tool: "tool";
|
|
686
|
+
system: "system";
|
|
687
|
+
"game-rule": "game-rule";
|
|
688
|
+
}>;
|
|
689
|
+
idempotencyKey: z.ZodString;
|
|
690
|
+
sourceMessageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
691
|
+
sourceEventId: z.ZodOptional<z.ZodString>;
|
|
692
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
693
|
+
createdAt: z.ZodString;
|
|
694
|
+
}, z.core.$strip>;
|
|
695
|
+
export type RelationshipEvent = z.infer<typeof RelationshipEventSchema>;
|
|
696
|
+
export declare const CompanionProfileStatusSchema: z.ZodEnum<{
|
|
697
|
+
active: "active";
|
|
698
|
+
retired: "retired";
|
|
699
|
+
paused: "paused";
|
|
700
|
+
}>;
|
|
701
|
+
export type CompanionProfileStatus = z.infer<typeof CompanionProfileStatusSchema>;
|
|
702
|
+
export declare const PersonalityTraitSourceSchema: z.ZodEnum<{
|
|
703
|
+
"character-card": "character-card";
|
|
704
|
+
"conversation-summary": "conversation-summary";
|
|
705
|
+
"user-confirmed": "user-confirmed";
|
|
706
|
+
}>;
|
|
707
|
+
export declare const PersonalityTraitStatusSchema: z.ZodEnum<{
|
|
708
|
+
active: "active";
|
|
709
|
+
superseded: "superseded";
|
|
710
|
+
rejected: "rejected";
|
|
711
|
+
}>;
|
|
712
|
+
export declare const PersonalityTraitSchema: z.ZodObject<{
|
|
713
|
+
id: z.ZodString;
|
|
714
|
+
name: z.ZodString;
|
|
715
|
+
description: z.ZodString;
|
|
716
|
+
strength: z.ZodNumber;
|
|
717
|
+
confidence: z.ZodNumber;
|
|
718
|
+
source: z.ZodEnum<{
|
|
719
|
+
"character-card": "character-card";
|
|
720
|
+
"conversation-summary": "conversation-summary";
|
|
721
|
+
"user-confirmed": "user-confirmed";
|
|
722
|
+
}>;
|
|
723
|
+
status: z.ZodEnum<{
|
|
724
|
+
active: "active";
|
|
725
|
+
superseded: "superseded";
|
|
726
|
+
rejected: "rejected";
|
|
727
|
+
}>;
|
|
728
|
+
}, z.core.$strip>;
|
|
729
|
+
export type PersonalityTrait = z.infer<typeof PersonalityTraitSchema>;
|
|
730
|
+
export declare const CompanionMemoryPolicySchema: z.ZodObject<{
|
|
731
|
+
conversationIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
732
|
+
sceneIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
733
|
+
includedMemoryIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
734
|
+
excludedMemoryIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
735
|
+
}, z.core.$strip>;
|
|
736
|
+
export type CompanionMemoryPolicy = z.infer<typeof CompanionMemoryPolicySchema>;
|
|
737
|
+
export declare const CompanionRelationshipScopeSchema: z.ZodObject<{
|
|
738
|
+
includeGlobal: z.ZodOptional<z.ZodBoolean>;
|
|
739
|
+
sceneIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
740
|
+
workspaceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
741
|
+
}, z.core.$strip>;
|
|
742
|
+
export type CompanionRelationshipScope = z.infer<typeof CompanionRelationshipScopeSchema>;
|
|
743
|
+
/** 长期伙伴身份;运行时 session/thread 不得写入此实体。 */
|
|
744
|
+
export declare const CompanionModelPreferenceSchema: z.ZodObject<{
|
|
745
|
+
mode: z.ZodEnum<{
|
|
746
|
+
"inherit-dsh-session": "inherit-dsh-session";
|
|
747
|
+
"inherit-dsh-default": "inherit-dsh-default";
|
|
748
|
+
"runtime-default": "runtime-default";
|
|
749
|
+
}>;
|
|
750
|
+
providerId: z.ZodOptional<z.ZodString>;
|
|
751
|
+
modelId: z.ZodOptional<z.ZodString>;
|
|
752
|
+
}, z.core.$strip>;
|
|
753
|
+
export type CompanionModelPreference = z.infer<typeof CompanionModelPreferenceSchema>;
|
|
754
|
+
export declare const CompanionProfileSchema: z.ZodObject<{
|
|
755
|
+
id: z.ZodString;
|
|
756
|
+
ownerUserId: z.ZodString;
|
|
757
|
+
characterId: z.ZodString;
|
|
758
|
+
characterRevision: z.ZodNumber;
|
|
759
|
+
status: z.ZodEnum<{
|
|
760
|
+
active: "active";
|
|
761
|
+
retired: "retired";
|
|
762
|
+
paused: "paused";
|
|
763
|
+
}>;
|
|
764
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
765
|
+
modelPreference: z.ZodOptional<z.ZodObject<{
|
|
766
|
+
mode: z.ZodEnum<{
|
|
767
|
+
"inherit-dsh-session": "inherit-dsh-session";
|
|
768
|
+
"inherit-dsh-default": "inherit-dsh-default";
|
|
769
|
+
"runtime-default": "runtime-default";
|
|
770
|
+
}>;
|
|
771
|
+
providerId: z.ZodOptional<z.ZodString>;
|
|
772
|
+
modelId: z.ZodOptional<z.ZodString>;
|
|
773
|
+
}, z.core.$strip>>;
|
|
774
|
+
identitySummary: z.ZodOptional<z.ZodString>;
|
|
775
|
+
communicationPreferences: z.ZodOptional<z.ZodString>;
|
|
776
|
+
personalitySummary: z.ZodOptional<z.ZodString>;
|
|
777
|
+
personalityTraits: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
778
|
+
id: z.ZodString;
|
|
779
|
+
name: z.ZodString;
|
|
780
|
+
description: z.ZodString;
|
|
781
|
+
strength: z.ZodNumber;
|
|
782
|
+
confidence: z.ZodNumber;
|
|
783
|
+
source: z.ZodEnum<{
|
|
784
|
+
"character-card": "character-card";
|
|
785
|
+
"conversation-summary": "conversation-summary";
|
|
786
|
+
"user-confirmed": "user-confirmed";
|
|
787
|
+
}>;
|
|
788
|
+
status: z.ZodEnum<{
|
|
789
|
+
active: "active";
|
|
790
|
+
superseded: "superseded";
|
|
791
|
+
rejected: "rejected";
|
|
792
|
+
}>;
|
|
793
|
+
}, z.core.$strip>>>;
|
|
794
|
+
personalityVersion: z.ZodOptional<z.ZodNumber>;
|
|
795
|
+
personalitySourceConversationIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
796
|
+
personalitySourceMessageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
797
|
+
personalitySummarizedAt: z.ZodOptional<z.ZodString>;
|
|
798
|
+
personalityConfirmedAt: z.ZodOptional<z.ZodString>;
|
|
799
|
+
userRelationshipSummary: z.ZodOptional<z.ZodString>;
|
|
800
|
+
sharedHistorySummary: z.ZodOptional<z.ZodString>;
|
|
801
|
+
memoryPolicy: z.ZodOptional<z.ZodObject<{
|
|
802
|
+
conversationIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
803
|
+
sceneIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
804
|
+
includedMemoryIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
805
|
+
excludedMemoryIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
806
|
+
}, z.core.$strip>>;
|
|
807
|
+
relationshipScope: z.ZodOptional<z.ZodObject<{
|
|
808
|
+
includeGlobal: z.ZodOptional<z.ZodBoolean>;
|
|
809
|
+
sceneIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
810
|
+
workspaceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
811
|
+
}, z.core.$strip>>;
|
|
812
|
+
boundaries: z.ZodArray<z.ZodString>;
|
|
813
|
+
goals: z.ZodArray<z.ZodString>;
|
|
814
|
+
createdAt: z.ZodString;
|
|
815
|
+
updatedAt: z.ZodString;
|
|
816
|
+
}, z.core.$strip>;
|
|
817
|
+
export type CompanionProfile = z.infer<typeof CompanionProfileSchema>;
|
|
818
|
+
export declare const PersonalityCandidateStatusSchema: z.ZodEnum<{
|
|
819
|
+
accepted: "accepted";
|
|
820
|
+
superseded: "superseded";
|
|
821
|
+
pending: "pending";
|
|
822
|
+
rejected: "rejected";
|
|
823
|
+
"evidence-invalid": "evidence-invalid";
|
|
824
|
+
}>;
|
|
825
|
+
export type PersonalityCandidateStatus = z.infer<typeof PersonalityCandidateStatusSchema>;
|
|
826
|
+
/** 性格提案与事实记忆候选分表,避免两者在 UI 和审阅语义上混淆。 */
|
|
827
|
+
export declare const PersonalityCandidateSchema: z.ZodObject<{
|
|
828
|
+
id: z.ZodString;
|
|
829
|
+
ownerUserId: z.ZodString;
|
|
830
|
+
companionProfileId: z.ZodString;
|
|
831
|
+
conversationId: z.ZodString;
|
|
832
|
+
traitName: z.ZodString;
|
|
833
|
+
description: z.ZodString;
|
|
834
|
+
strength: z.ZodNumber;
|
|
835
|
+
confidence: z.ZodNumber;
|
|
836
|
+
sourceMessageIds: z.ZodArray<z.ZodString>;
|
|
837
|
+
extractionVersion: z.ZodString;
|
|
838
|
+
status: z.ZodEnum<{
|
|
839
|
+
accepted: "accepted";
|
|
840
|
+
superseded: "superseded";
|
|
841
|
+
pending: "pending";
|
|
842
|
+
rejected: "rejected";
|
|
843
|
+
"evidence-invalid": "evidence-invalid";
|
|
844
|
+
}>;
|
|
845
|
+
reviewerUserId: z.ZodOptional<z.ZodString>;
|
|
846
|
+
reviewedAt: z.ZodOptional<z.ZodString>;
|
|
847
|
+
invalidationReason: z.ZodOptional<z.ZodString>;
|
|
848
|
+
invalidatedAt: z.ZodOptional<z.ZodString>;
|
|
849
|
+
supersedes: z.ZodOptional<z.ZodString>;
|
|
850
|
+
createdAt: z.ZodString;
|
|
851
|
+
updatedAt: z.ZodString;
|
|
852
|
+
}, z.core.$strip>;
|
|
853
|
+
export type PersonalityCandidate = z.infer<typeof PersonalityCandidateSchema>;
|
|
854
|
+
export declare const CompanionSkillStatusSchema: z.ZodEnum<{
|
|
855
|
+
active: "active";
|
|
856
|
+
disabled: "disabled";
|
|
857
|
+
}>;
|
|
858
|
+
export type CompanionSkillStatus = z.infer<typeof CompanionSkillStatusSchema>;
|
|
859
|
+
export declare const CompanionWorkflowIdSchema: z.ZodEnum<{
|
|
860
|
+
conversation: "conversation";
|
|
861
|
+
analysis: "analysis";
|
|
862
|
+
planning: "planning";
|
|
863
|
+
research: "research";
|
|
864
|
+
}>;
|
|
865
|
+
export type CompanionWorkflowId = z.infer<typeof CompanionWorkflowIdSchema>;
|
|
866
|
+
export declare const CompanionSkillSchema: z.ZodObject<{
|
|
867
|
+
id: z.ZodString;
|
|
868
|
+
ownerUserId: z.ZodString;
|
|
869
|
+
companionProfileId: z.ZodString;
|
|
870
|
+
name: z.ZodString;
|
|
871
|
+
description: z.ZodString;
|
|
872
|
+
instructions: z.ZodString;
|
|
873
|
+
workflowId: z.ZodOptional<z.ZodEnum<{
|
|
874
|
+
conversation: "conversation";
|
|
875
|
+
analysis: "analysis";
|
|
876
|
+
planning: "planning";
|
|
877
|
+
research: "research";
|
|
878
|
+
}>>;
|
|
879
|
+
outputFormat: z.ZodOptional<z.ZodString>;
|
|
880
|
+
boundaries: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
881
|
+
requiredToolIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
882
|
+
status: z.ZodEnum<{
|
|
883
|
+
active: "active";
|
|
884
|
+
disabled: "disabled";
|
|
885
|
+
}>;
|
|
886
|
+
version: z.ZodNumber;
|
|
887
|
+
createdAt: z.ZodString;
|
|
888
|
+
updatedAt: z.ZodString;
|
|
889
|
+
}, z.core.$strip>;
|
|
890
|
+
export type CompanionSkill = z.infer<typeof CompanionSkillSchema>;
|
|
891
|
+
export declare const WorkspaceStatusSchema: z.ZodEnum<{
|
|
892
|
+
active: "active";
|
|
893
|
+
archived: "archived";
|
|
894
|
+
suspended: "suspended";
|
|
895
|
+
}>;
|
|
896
|
+
export declare const WorkspaceSchema: z.ZodObject<{
|
|
897
|
+
id: z.ZodString;
|
|
898
|
+
ownerUserId: z.ZodString;
|
|
899
|
+
name: z.ZodString;
|
|
900
|
+
status: z.ZodEnum<{
|
|
901
|
+
active: "active";
|
|
902
|
+
archived: "archived";
|
|
903
|
+
suspended: "suspended";
|
|
904
|
+
}>;
|
|
905
|
+
createdAt: z.ZodString;
|
|
906
|
+
updatedAt: z.ZodString;
|
|
907
|
+
}, z.core.$strip>;
|
|
908
|
+
export type Workspace = z.infer<typeof WorkspaceSchema>;
|
|
909
|
+
export declare const WorkspaceMemberSchema: z.ZodObject<{
|
|
910
|
+
id: z.ZodString;
|
|
911
|
+
workspaceId: z.ZodString;
|
|
912
|
+
entityId: z.ZodString;
|
|
913
|
+
entityKind: z.ZodEnum<{
|
|
914
|
+
user: "user";
|
|
915
|
+
companion: "companion";
|
|
916
|
+
}>;
|
|
917
|
+
role: z.ZodEnum<{
|
|
918
|
+
owner: "owner";
|
|
919
|
+
member: "member";
|
|
920
|
+
observer: "observer";
|
|
921
|
+
}>;
|
|
922
|
+
joinedAt: z.ZodString;
|
|
923
|
+
leftAt: z.ZodOptional<z.ZodString>;
|
|
924
|
+
}, z.core.$strip>;
|
|
925
|
+
export type WorkspaceMember = z.infer<typeof WorkspaceMemberSchema>;
|
|
926
|
+
export declare const WorkspacePolicySchema: z.ZodObject<{
|
|
927
|
+
id: z.ZodString;
|
|
928
|
+
workspaceId: z.ZodString;
|
|
929
|
+
createdAt: z.ZodString;
|
|
930
|
+
updatedAt: z.ZodString;
|
|
931
|
+
}, z.core.$strip>;
|
|
932
|
+
export type WorkspacePolicy = z.infer<typeof WorkspacePolicySchema>;
|
|
933
|
+
export declare const WorkspaceSceneBindingSchema: z.ZodObject<{
|
|
934
|
+
id: z.ZodString;
|
|
935
|
+
workspaceId: z.ZodString;
|
|
936
|
+
sceneId: z.ZodString;
|
|
937
|
+
boundAt: z.ZodString;
|
|
938
|
+
unboundAt: z.ZodOptional<z.ZodString>;
|
|
939
|
+
}, z.core.$strip>;
|
|
940
|
+
export type WorkspaceSceneBinding = z.infer<typeof WorkspaceSceneBindingSchema>;
|
|
941
|
+
export declare const WorkspaceSessionBindingSchema: z.ZodObject<{
|
|
942
|
+
id: z.ZodString;
|
|
943
|
+
ownerUserId: z.ZodString;
|
|
944
|
+
workspaceId: z.ZodString;
|
|
945
|
+
sceneId: z.ZodString;
|
|
946
|
+
threadId: z.ZodString;
|
|
947
|
+
sessionId: z.ZodString;
|
|
948
|
+
status: z.ZodEnum<{
|
|
949
|
+
active: "active";
|
|
950
|
+
archived: "archived";
|
|
951
|
+
}>;
|
|
952
|
+
createdAt: z.ZodString;
|
|
953
|
+
updatedAt: z.ZodString;
|
|
954
|
+
}, z.core.$strip>;
|
|
955
|
+
export type WorkspaceSessionBinding = z.infer<typeof WorkspaceSessionBindingSchema>;
|
|
956
|
+
export declare const GroupThreadSchema: z.ZodObject<{
|
|
957
|
+
id: z.ZodString;
|
|
958
|
+
workspaceId: z.ZodString;
|
|
959
|
+
sceneId: z.ZodString;
|
|
960
|
+
ownerUserId: z.ZodString;
|
|
961
|
+
status: z.ZodEnum<{
|
|
962
|
+
active: "active";
|
|
963
|
+
closed: "closed";
|
|
964
|
+
}>;
|
|
965
|
+
createdAt: z.ZodString;
|
|
966
|
+
updatedAt: z.ZodString;
|
|
967
|
+
}, z.core.$strip>;
|
|
968
|
+
export type GroupThread = z.infer<typeof GroupThreadSchema>;
|
|
969
|
+
export declare const GroupMessageSchema: z.ZodObject<{
|
|
970
|
+
id: z.ZodString;
|
|
971
|
+
threadId: z.ZodString;
|
|
972
|
+
senderKind: z.ZodEnum<{
|
|
973
|
+
user: "user";
|
|
974
|
+
companion: "companion";
|
|
975
|
+
}>;
|
|
976
|
+
senderId: z.ZodString;
|
|
977
|
+
content: z.ZodString;
|
|
978
|
+
sequence: z.ZodNumber;
|
|
979
|
+
createdAt: z.ZodString;
|
|
980
|
+
}, z.core.$strip>;
|
|
981
|
+
export type GroupMessage = z.infer<typeof GroupMessageSchema>;
|
|
982
|
+
export declare const GroupDeliveryBatchSchema: z.ZodObject<{
|
|
983
|
+
id: z.ZodString;
|
|
984
|
+
threadId: z.ZodString;
|
|
985
|
+
triggerMessageId: z.ZodString;
|
|
986
|
+
ownerUserId: z.ZodString;
|
|
987
|
+
status: z.ZodEnum<{
|
|
988
|
+
failed: "failed";
|
|
989
|
+
queued: "queued";
|
|
990
|
+
completed: "completed";
|
|
991
|
+
running: "running";
|
|
992
|
+
partial: "partial";
|
|
993
|
+
}>;
|
|
994
|
+
decisionId: z.ZodString;
|
|
995
|
+
createdAt: z.ZodString;
|
|
996
|
+
completedAt: z.ZodOptional<z.ZodString>;
|
|
997
|
+
}, z.core.$strip>;
|
|
998
|
+
export type GroupDeliveryBatch = z.infer<typeof GroupDeliveryBatchSchema>;
|
|
999
|
+
export declare const GroupDeliverySchema: z.ZodObject<{
|
|
1000
|
+
id: z.ZodString;
|
|
1001
|
+
batchId: z.ZodString;
|
|
1002
|
+
companionProfileId: z.ZodString;
|
|
1003
|
+
status: z.ZodEnum<{
|
|
1004
|
+
failed: "failed";
|
|
1005
|
+
accepted: "accepted";
|
|
1006
|
+
completed: "completed";
|
|
1007
|
+
cancelled: "cancelled";
|
|
1008
|
+
running: "running";
|
|
1009
|
+
}>;
|
|
1010
|
+
responseMessageId: z.ZodOptional<z.ZodString>;
|
|
1011
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1012
|
+
createdAt: z.ZodString;
|
|
1013
|
+
completedAt: z.ZodOptional<z.ZodString>;
|
|
1014
|
+
}, z.core.$strip>;
|
|
1015
|
+
export type GroupDelivery = z.infer<typeof GroupDeliverySchema>;
|
|
1016
|
+
export declare const SchedulingDecisionSchema: z.ZodObject<{
|
|
1017
|
+
id: z.ZodString;
|
|
1018
|
+
workspaceId: z.ZodString;
|
|
1019
|
+
sceneId: z.ZodString;
|
|
1020
|
+
triggerMessageId: z.ZodString;
|
|
1021
|
+
policyVersion: z.ZodString;
|
|
1022
|
+
candidateCompanionIds: z.ZodArray<z.ZodString>;
|
|
1023
|
+
selectedCompanionIds: z.ZodArray<z.ZodString>;
|
|
1024
|
+
excludedCompanionIds: z.ZodArray<z.ZodString>;
|
|
1025
|
+
perCandidateScores: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
1026
|
+
selectionReasons: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
|
1027
|
+
exclusionReasons: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
|
1028
|
+
requestedMentions: z.ZodArray<z.ZodString>;
|
|
1029
|
+
decisionMode: z.ZodEnum<{
|
|
1030
|
+
mention: "mention";
|
|
1031
|
+
deterministic: "deterministic";
|
|
1032
|
+
}>;
|
|
1033
|
+
createdAt: z.ZodString;
|
|
1034
|
+
}, z.core.$strip>;
|
|
1035
|
+
export type SchedulingDecision = z.infer<typeof SchedulingDecisionSchema>;
|
|
1036
|
+
export declare const McpServerRegistrationSchema: z.ZodObject<{
|
|
1037
|
+
id: z.ZodString;
|
|
1038
|
+
ownerUserId: z.ZodString;
|
|
1039
|
+
name: z.ZodString;
|
|
1040
|
+
transport: z.ZodEnum<{
|
|
1041
|
+
stdio: "stdio";
|
|
1042
|
+
"streamable-http": "streamable-http";
|
|
1043
|
+
}>;
|
|
1044
|
+
endpoint: z.ZodOptional<z.ZodString>;
|
|
1045
|
+
trusted: z.ZodBoolean;
|
|
1046
|
+
status: z.ZodEnum<{
|
|
1047
|
+
active: "active";
|
|
1048
|
+
disabled: "disabled";
|
|
1049
|
+
}>;
|
|
1050
|
+
createdAt: z.ZodString;
|
|
1051
|
+
updatedAt: z.ZodString;
|
|
1052
|
+
}, z.core.$strip>;
|
|
1053
|
+
export type McpServerRegistration = z.infer<typeof McpServerRegistrationSchema>;
|
|
1054
|
+
export declare const McpToolSnapshotSchema: z.ZodObject<{
|
|
1055
|
+
id: z.ZodString;
|
|
1056
|
+
serverId: z.ZodString;
|
|
1057
|
+
ownerUserId: z.ZodString;
|
|
1058
|
+
toolId: z.ZodString;
|
|
1059
|
+
schemaHash: z.ZodString;
|
|
1060
|
+
schemaVersion: z.ZodNumber;
|
|
1061
|
+
toolSchema: z.ZodUnknown;
|
|
1062
|
+
status: z.ZodEnum<{
|
|
1063
|
+
active: "active";
|
|
1064
|
+
superseded: "superseded";
|
|
1065
|
+
}>;
|
|
1066
|
+
createdAt: z.ZodString;
|
|
1067
|
+
updatedAt: z.ZodString;
|
|
1068
|
+
}, z.core.$strip>;
|
|
1069
|
+
export type McpToolSnapshot = z.infer<typeof McpToolSnapshotSchema>;
|
|
1070
|
+
export declare const CapabilityGrantSchema: z.ZodObject<{
|
|
1071
|
+
id: z.ZodString;
|
|
1072
|
+
ownerUserId: z.ZodString;
|
|
1073
|
+
companionProfileId: z.ZodString;
|
|
1074
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
1075
|
+
toolId: z.ZodString;
|
|
1076
|
+
scope: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1077
|
+
riskLevel: z.ZodEnum<{
|
|
1078
|
+
R0: "R0";
|
|
1079
|
+
R1: "R1";
|
|
1080
|
+
R2: "R2";
|
|
1081
|
+
R3: "R3";
|
|
1082
|
+
}>;
|
|
1083
|
+
approvalPolicy: z.ZodEnum<{
|
|
1084
|
+
auto: "auto";
|
|
1085
|
+
notify: "notify";
|
|
1086
|
+
confirm: "confirm";
|
|
1087
|
+
"double-confirm": "double-confirm";
|
|
1088
|
+
}>;
|
|
1089
|
+
constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1090
|
+
grantedAt: z.ZodString;
|
|
1091
|
+
expiresAt: z.ZodOptional<z.ZodString>;
|
|
1092
|
+
revokedAt: z.ZodOptional<z.ZodString>;
|
|
1093
|
+
}, z.core.$strip>;
|
|
1094
|
+
export type CapabilityGrant = z.infer<typeof CapabilityGrantSchema>;
|
|
1095
|
+
export declare const RuntimeBindingStatusSchema: z.ZodEnum<{
|
|
1096
|
+
active: "active";
|
|
1097
|
+
suspended: "suspended";
|
|
1098
|
+
requested: "requested";
|
|
1099
|
+
released: "released";
|
|
1100
|
+
orphaned: "orphaned";
|
|
1101
|
+
reclaimed: "reclaimed";
|
|
1102
|
+
}>;
|
|
1103
|
+
export type RuntimeBindingStatus = z.infer<typeof RuntimeBindingStatusSchema>;
|
|
1104
|
+
export declare const RuntimeBindingSchema: z.ZodObject<{
|
|
1105
|
+
id: z.ZodString;
|
|
1106
|
+
runtimeType: z.ZodEnum<{
|
|
1107
|
+
"dsh-child": "dsh-child";
|
|
1108
|
+
"langgraph-thread": "langgraph-thread";
|
|
1109
|
+
generation: "generation";
|
|
1110
|
+
}>;
|
|
1111
|
+
runtimeId: z.ZodString;
|
|
1112
|
+
ownerUserId: z.ZodString;
|
|
1113
|
+
companionProfileId: z.ZodString;
|
|
1114
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
1115
|
+
sceneId: z.ZodOptional<z.ZodString>;
|
|
1116
|
+
purpose: z.ZodEnum<{
|
|
1117
|
+
companion: "companion";
|
|
1118
|
+
"group-delivery": "group-delivery";
|
|
1119
|
+
"chat-generation": "chat-generation";
|
|
1120
|
+
}>;
|
|
1121
|
+
status: z.ZodEnum<{
|
|
1122
|
+
active: "active";
|
|
1123
|
+
suspended: "suspended";
|
|
1124
|
+
requested: "requested";
|
|
1125
|
+
released: "released";
|
|
1126
|
+
orphaned: "orphaned";
|
|
1127
|
+
reclaimed: "reclaimed";
|
|
1128
|
+
}>;
|
|
1129
|
+
leaseExpiresAt: z.ZodOptional<z.ZodString>;
|
|
1130
|
+
createdAt: z.ZodString;
|
|
1131
|
+
releasedAt: z.ZodOptional<z.ZodString>;
|
|
1132
|
+
}, z.core.$strip>;
|
|
1133
|
+
export type RuntimeBindingRecord = z.infer<typeof RuntimeBindingSchema>;
|
|
1134
|
+
export declare const ToolExecutionRunSchema: z.ZodObject<{
|
|
1135
|
+
id: z.ZodString;
|
|
1136
|
+
runtimeBindingId: z.ZodString;
|
|
1137
|
+
ownerUserId: z.ZodString;
|
|
1138
|
+
companionProfileId: z.ZodString;
|
|
1139
|
+
toolId: z.ZodString;
|
|
1140
|
+
arguments: z.ZodOptional<z.ZodUnknown>;
|
|
1141
|
+
idempotencyKey: z.ZodString;
|
|
1142
|
+
status: z.ZodEnum<{
|
|
1143
|
+
failed: "failed";
|
|
1144
|
+
completed: "completed";
|
|
1145
|
+
cancelled: "cancelled";
|
|
1146
|
+
rejected: "rejected";
|
|
1147
|
+
proposed: "proposed";
|
|
1148
|
+
waiting_approval: "waiting_approval";
|
|
1149
|
+
approved: "approved";
|
|
1150
|
+
}>;
|
|
1151
|
+
approvalId: z.ZodOptional<z.ZodString>;
|
|
1152
|
+
resultDigest: z.ZodOptional<z.ZodString>;
|
|
1153
|
+
createdAt: z.ZodString;
|
|
1154
|
+
updatedAt: z.ZodString;
|
|
1155
|
+
}, z.core.$strip>;
|
|
1156
|
+
export type ToolExecutionRun = z.infer<typeof ToolExecutionRunSchema>;
|
|
1157
|
+
export declare const ApprovalSchema: z.ZodObject<{
|
|
1158
|
+
id: z.ZodString;
|
|
1159
|
+
toolExecutionRunId: z.ZodString;
|
|
1160
|
+
ownerUserId: z.ZodString;
|
|
1161
|
+
status: z.ZodEnum<{
|
|
1162
|
+
pending: "pending";
|
|
1163
|
+
rejected: "rejected";
|
|
1164
|
+
approved: "approved";
|
|
1165
|
+
expired: "expired";
|
|
1166
|
+
}>;
|
|
1167
|
+
decisionPayload: z.ZodOptional<z.ZodUnknown>;
|
|
1168
|
+
createdAt: z.ZodString;
|
|
1169
|
+
decidedAt: z.ZodOptional<z.ZodString>;
|
|
1170
|
+
expiresAt: z.ZodOptional<z.ZodString>;
|
|
1171
|
+
}, z.core.$strip>;
|
|
1172
|
+
export type Approval = z.infer<typeof ApprovalSchema>;
|
|
1173
|
+
//# sourceMappingURL=schemas.d.ts.map
|