duclaw-cli 1.9.19 → 2.0.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/dist/agent/companyValues.d.ts +9 -0
- package/dist/agent/companyValues.d.ts.map +1 -0
- package/dist/agent/createAgent.d.ts +11 -0
- package/dist/agent/createAgent.d.ts.map +1 -0
- package/dist/agent/createAgentCore.d.ts +7 -0
- package/dist/agent/createAgentCore.d.ts.map +1 -0
- package/dist/agent/duclawAgentConfig.d.ts +4 -0
- package/dist/agent/duclawAgentConfig.d.ts.map +1 -0
- package/dist/agent/events.d.ts +31 -0
- package/dist/agent/events.d.ts.map +1 -0
- package/dist/agent/interruptRegistry.d.ts +37 -0
- package/dist/agent/interruptRegistry.d.ts.map +1 -0
- package/dist/agent/outboundDedup.d.ts +10 -0
- package/dist/agent/outboundDedup.d.ts.map +1 -0
- package/dist/agent/types.d.ts +47 -0
- package/dist/agent/types.d.ts.map +1 -0
- package/dist/agent/workDossier.d.ts +3 -0
- package/dist/agent/workDossier.d.ts.map +1 -0
- package/dist/attachments/attachmentContext.d.ts +28 -0
- package/dist/attachments/attachmentContext.d.ts.map +1 -0
- package/dist/background/BackgroundManager.d.ts +24 -0
- package/dist/background/BackgroundManager.d.ts.map +1 -0
- package/dist/bundle.js +17317 -15775
- package/dist/channels/ChannelConfigAdapter.d.ts +5 -0
- package/dist/channels/ChannelConfigAdapter.d.ts.map +1 -0
- package/dist/channels/ChannelGatewayAdapter.d.ts +12 -0
- package/dist/channels/ChannelGatewayAdapter.d.ts.map +1 -0
- package/dist/channels/ChannelMeta.d.ts +6 -0
- package/dist/channels/ChannelMeta.d.ts.map +1 -0
- package/dist/channels/ChannelOutboundAdapter.d.ts +21 -0
- package/dist/channels/ChannelOutboundAdapter.d.ts.map +1 -0
- package/dist/channels/ChannelPlugin.d.ts +12 -0
- package/dist/channels/ChannelPlugin.d.ts.map +1 -0
- package/dist/channels/ChannelRegistry.d.ts +11 -0
- package/dist/channels/ChannelRegistry.d.ts.map +1 -0
- package/dist/channels/feishu/feishu-client.d.ts +36 -0
- package/dist/channels/feishu/feishu-client.d.ts.map +1 -0
- package/dist/channels/feishu/feishuChannelsPlugin.d.ts +5 -0
- package/dist/channels/feishu/feishuChannelsPlugin.d.ts.map +1 -0
- package/dist/channels/index.d.ts +13 -0
- package/dist/channels/index.d.ts.map +1 -0
- package/dist/channels/mobile/mobileChannelPlugin.d.ts +4 -0
- package/dist/channels/mobile/mobileChannelPlugin.d.ts.map +1 -0
- package/dist/common/date.d.ts +2 -0
- package/dist/common/date.d.ts.map +1 -0
- package/dist/compact/CompactEngine.d.ts +35 -0
- package/dist/compact/CompactEngine.d.ts.map +1 -0
- package/dist/compact/compactPrompt.d.ts +7 -0
- package/dist/compact/compactPrompt.d.ts.map +1 -0
- package/dist/compact/config.d.ts +25 -0
- package/dist/compact/config.d.ts.map +1 -0
- package/dist/compact/errors.d.ts +2 -0
- package/dist/compact/errors.d.ts.map +1 -0
- package/dist/compact/microCompact.d.ts +11 -0
- package/dist/compact/microCompact.d.ts.map +1 -0
- package/dist/compact/tokenEstimate.d.ts +12 -0
- package/dist/compact/tokenEstimate.d.ts.map +1 -0
- package/dist/compact/types.d.ts +23 -0
- package/dist/compact/types.d.ts.map +1 -0
- package/dist/config/LoadConfig.d.ts +10 -0
- package/dist/config/LoadConfig.d.ts.map +1 -0
- package/dist/config/LoadEnv.d.ts +2 -0
- package/dist/config/LoadEnv.d.ts.map +1 -0
- package/dist/cron/cron.d.ts +33 -0
- package/dist/cron/cron.d.ts.map +1 -0
- package/dist/cron/customHandlers.d.ts +6 -0
- package/dist/cron/customHandlers.d.ts.map +1 -0
- package/dist/cron/index.d.ts +6 -0
- package/dist/cron/index.d.ts.map +1 -0
- package/dist/cron/jobs.d.ts +31 -0
- package/dist/cron/jobs.d.ts.map +1 -0
- package/dist/cron/types.d.ts +25 -0
- package/dist/cron/types.d.ts.map +1 -0
- package/dist/db/createDB.d.ts +14 -0
- package/dist/db/createDB.d.ts.map +1 -0
- package/dist/deduplication/MessageDeduplication.d.ts +28 -0
- package/dist/deduplication/MessageDeduplication.d.ts.map +1 -0
- package/dist/deduplication/RedisMessageDeduplication.d.ts +41 -0
- package/dist/deduplication/RedisMessageDeduplication.d.ts.map +1 -0
- package/dist/department/Department.d.ts +12 -0
- package/dist/department/Department.d.ts.map +1 -0
- package/dist/department/DepartmentMember.d.ts +9 -0
- package/dist/department/DepartmentMember.d.ts.map +1 -0
- package/dist/department/index.d.ts +5 -0
- package/dist/department/index.d.ts.map +1 -0
- package/dist/department/learning.d.ts +58 -0
- package/dist/department/learning.d.ts.map +1 -0
- package/dist/department/mailbox/ceoFollowup.d.ts +27 -0
- package/dist/department/mailbox/ceoFollowup.d.ts.map +1 -0
- package/dist/department/mailbox/events.d.ts +26 -0
- package/dist/department/mailbox/events.d.ts.map +1 -0
- package/dist/department/mailbox/mailbox.d.ts +33 -0
- package/dist/department/mailbox/mailbox.d.ts.map +1 -0
- package/dist/department/mailbox/toolReceipt.d.ts +12 -0
- package/dist/department/mailbox/toolReceipt.d.ts.map +1 -0
- package/dist/department/mailbox/types.d.ts +32 -0
- package/dist/department/mailbox/types.d.ts.map +1 -0
- package/dist/department/types.d.ts +20 -0
- package/dist/department/types.d.ts.map +1 -0
- package/dist/department/workspace/types.d.ts +7 -0
- package/dist/department/workspace/types.d.ts.map +1 -0
- package/dist/department/workspace/workspace.d.ts +16 -0
- package/dist/department/workspace/workspace.d.ts.map +1 -0
- package/dist/dream/DreamEngine.d.ts +37 -0
- package/dist/dream/DreamEngine.d.ts.map +1 -0
- package/dist/dream/dreamPrompt.d.ts +9 -0
- package/dist/dream/dreamPrompt.d.ts.map +1 -0
- package/dist/dream/types.d.ts +33 -0
- package/dist/dream/types.d.ts.map +1 -0
- package/dist/llm/AnthropicAdapter.d.ts +14 -0
- package/dist/llm/AnthropicAdapter.d.ts.map +1 -0
- package/dist/llm/LLMClient.d.ts +9 -0
- package/dist/llm/LLMClient.d.ts.map +1 -0
- package/dist/llm/types.d.ts +42 -0
- package/dist/llm/types.d.ts.map +1 -0
- package/dist/main.js +1 -1
- package/dist/memory/MemoryEngine.d.ts +51 -0
- package/dist/memory/MemoryEngine.d.ts.map +1 -0
- package/dist/memory/index.d.ts +3 -0
- package/dist/memory/index.d.ts.map +1 -0
- package/dist/memory/types.d.ts +46 -0
- package/dist/memory/types.d.ts.map +1 -0
- package/dist/mobile/mobileStore.d.ts +83 -0
- package/dist/mobile/mobileStore.d.ts.map +1 -0
- package/dist/recall/recallIndex.d.ts +31 -0
- package/dist/recall/recallIndex.d.ts.map +1 -0
- package/dist/runtime/activity.d.ts +10 -0
- package/dist/runtime/activity.d.ts.map +1 -0
- package/dist/runtime/duclawHome.d.ts +7 -0
- package/dist/runtime/duclawHome.d.ts.map +1 -0
- package/dist/runtime/events.d.ts +20 -0
- package/dist/runtime/events.d.ts.map +1 -0
- package/dist/runtime/localToolActivity.d.ts +17 -0
- package/dist/runtime/localToolActivity.d.ts.map +1 -0
- package/dist/runtime/paths.d.ts +4 -0
- package/dist/runtime/paths.d.ts.map +1 -0
- package/dist/runtime/plugins/activityToolHook.d.ts +3 -0
- package/dist/runtime/plugins/activityToolHook.d.ts.map +1 -0
- package/dist/runtime/plugins/index.d.ts +7 -0
- package/dist/runtime/plugins/index.d.ts.map +1 -0
- package/dist/runtime/plugins/localToolActivityHook.d.ts +3 -0
- package/dist/runtime/plugins/localToolActivityHook.d.ts.map +1 -0
- package/dist/runtime/plugins/saasCreditToolHook.d.ts +3 -0
- package/dist/runtime/plugins/saasCreditToolHook.d.ts.map +1 -0
- package/dist/runtime/runtimeMode.d.ts +5 -0
- package/dist/runtime/runtimeMode.d.ts.map +1 -0
- package/dist/runtime/runtimeSafetyPrompt.d.ts +2 -0
- package/dist/runtime/runtimeSafetyPrompt.d.ts.map +1 -0
- package/dist/runtime/sandbox/AuditEventWriter.d.ts +19 -0
- package/dist/runtime/sandbox/AuditEventWriter.d.ts.map +1 -0
- package/dist/runtime/sandbox/DockerSandboxRuntime.d.ts +16 -0
- package/dist/runtime/sandbox/DockerSandboxRuntime.d.ts.map +1 -0
- package/dist/runtime/sandbox/HostCapabilityBroker.d.ts +11 -0
- package/dist/runtime/sandbox/HostCapabilityBroker.d.ts.map +1 -0
- package/dist/runtime/sandbox/NetworkPolicyEngine.d.ts +25 -0
- package/dist/runtime/sandbox/NetworkPolicyEngine.d.ts.map +1 -0
- package/dist/runtime/sandbox/SandboxReviewStore.d.ts +51 -0
- package/dist/runtime/sandbox/SandboxReviewStore.d.ts.map +1 -0
- package/dist/runtime/sandbox/SandboxRuntime.d.ts +27 -0
- package/dist/runtime/sandbox/SandboxRuntime.d.ts.map +1 -0
- package/dist/runtime/sandbox/SecretBroker.d.ts +10 -0
- package/dist/runtime/sandbox/SecretBroker.d.ts.map +1 -0
- package/dist/runtime/sandbox/ToolPolicyEngine.d.ts +30 -0
- package/dist/runtime/sandbox/ToolPolicyEngine.d.ts.map +1 -0
- package/dist/runtime/sandbox/WorkspaceBroker.d.ts +24 -0
- package/dist/runtime/sandbox/WorkspaceBroker.d.ts.map +1 -0
- package/dist/runtime/sandbox/index.d.ts +11 -0
- package/dist/runtime/sandbox/index.d.ts.map +1 -0
- package/dist/runtime/sandbox/sandboxToolHook.d.ts +11 -0
- package/dist/runtime/sandbox/sandboxToolHook.d.ts.map +1 -0
- package/dist/runtime/toolHooks.d.ts +31 -0
- package/dist/runtime/toolHooks.d.ts.map +1 -0
- package/dist/sdk/duclaw.d.ts +10 -0
- package/dist/sdk/duclaw.d.ts.map +1 -0
- package/dist/sdk/duclaw.js +56480 -0
- package/dist/sdk/index.d.ts +39 -0
- package/dist/sdk/index.d.ts.map +1 -0
- package/dist/sdk/index.js +41268 -0
- package/dist/skill/SkillRegistry.d.ts +5 -0
- package/dist/skill/SkillRegistry.d.ts.map +1 -0
- package/dist/skill/SkillValidator.d.ts +40 -0
- package/dist/skill/SkillValidator.d.ts.map +1 -0
- package/dist/skill/index.d.ts +9 -0
- package/dist/skill/index.d.ts.map +1 -0
- package/dist/skill/type.d.ts +10 -0
- package/dist/skill/type.d.ts.map +1 -0
- package/dist/skillForge/SkillForgeEngine.d.ts +37 -0
- package/dist/skillForge/SkillForgeEngine.d.ts.map +1 -0
- package/dist/skillForge/index.d.ts +3 -0
- package/dist/skillForge/index.d.ts.map +1 -0
- package/dist/skillForge/types.d.ts +30 -0
- package/dist/skillForge/types.d.ts.map +1 -0
- package/dist/storage/FileStorage.d.ts +7 -0
- package/dist/storage/FileStorage.d.ts.map +1 -0
- package/dist/storage/RedisStorage.d.ts +29 -0
- package/dist/storage/RedisStorage.d.ts.map +1 -0
- package/dist/storage/Storage.d.ts +7 -0
- package/dist/storage/Storage.d.ts.map +1 -0
- package/dist/storage/runtimeStorage.d.ts +7 -0
- package/dist/storage/runtimeStorage.d.ts.map +1 -0
- package/dist/storage/utils.d.ts +79 -0
- package/dist/storage/utils.d.ts.map +1 -0
- package/dist/tasks/goal.d.ts +51 -0
- package/dist/tasks/goal.d.ts.map +1 -0
- package/dist/tasks/goalConversation.d.ts +16 -0
- package/dist/tasks/goalConversation.d.ts.map +1 -0
- package/dist/tasks/index.d.ts +7 -0
- package/dist/tasks/index.d.ts.map +1 -0
- package/dist/tasks/task.d.ts +23 -0
- package/dist/tasks/task.d.ts.map +1 -0
- package/dist/tasks/types.d.ts +33 -0
- package/dist/tasks/types.d.ts.map +1 -0
- package/dist/tools/Tool.d.ts +21 -0
- package/dist/tools/Tool.d.ts.map +1 -0
- package/dist/tools/ToolExecutor.d.ts +16 -0
- package/dist/tools/ToolExecutor.d.ts.map +1 -0
- package/dist/tools/ToolRegistry.d.ts +9 -0
- package/dist/tools/ToolRegistry.d.ts.map +1 -0
- package/dist/tools/UserRecoverableToolError.d.ts +7 -0
- package/dist/tools/UserRecoverableToolError.d.ts.map +1 -0
- package/dist/tools/baseTools.d.ts +17 -0
- package/dist/tools/baseTools.d.ts.map +1 -0
- package/dist/tools/duclawTools.d.ts +23 -0
- package/dist/tools/duclawTools.d.ts.map +1 -0
- package/dist/tools/index.d.ts +11 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/tools/Bash.d.ts +5 -0
- package/dist/tools/tools/Bash.d.ts.map +1 -0
- package/dist/tools/tools/CodeSearch.d.ts +3 -0
- package/dist/tools/tools/CodeSearch.d.ts.map +1 -0
- package/dist/tools/tools/DateTool.d.ts +3 -0
- package/dist/tools/tools/DateTool.d.ts.map +1 -0
- package/dist/tools/tools/Edit.d.ts +3 -0
- package/dist/tools/tools/Edit.d.ts.map +1 -0
- package/dist/tools/tools/Glob.d.ts +3 -0
- package/dist/tools/tools/Glob.d.ts.map +1 -0
- package/dist/tools/tools/Grep.d.ts +3 -0
- package/dist/tools/tools/Grep.d.ts.map +1 -0
- package/dist/tools/tools/ImageGenerate.d.ts +3 -0
- package/dist/tools/tools/ImageGenerate.d.ts.map +1 -0
- package/dist/tools/tools/ImageUnderstand.d.ts +6 -0
- package/dist/tools/tools/ImageUnderstand.d.ts.map +1 -0
- package/dist/tools/tools/ImageUnderstandMetering.d.ts +60 -0
- package/dist/tools/tools/ImageUnderstandMetering.d.ts.map +1 -0
- package/dist/tools/tools/InternalEventDecision.d.ts +3 -0
- package/dist/tools/tools/InternalEventDecision.d.ts.map +1 -0
- package/dist/tools/tools/Read.d.ts +3 -0
- package/dist/tools/tools/Read.d.ts.map +1 -0
- package/dist/tools/tools/ReadAttachment.d.ts +3 -0
- package/dist/tools/tools/ReadAttachment.d.ts.map +1 -0
- package/dist/tools/tools/RecallChatHistory.d.ts +7 -0
- package/dist/tools/tools/RecallChatHistory.d.ts.map +1 -0
- package/dist/tools/tools/SendFile.d.ts +4 -0
- package/dist/tools/tools/SendFile.d.ts.map +1 -0
- package/dist/tools/tools/SendMessage.d.ts +3 -0
- package/dist/tools/tools/SendMessage.d.ts.map +1 -0
- package/dist/tools/tools/Skill.d.ts +3 -0
- package/dist/tools/tools/Skill.d.ts.map +1 -0
- package/dist/tools/tools/WebFetch.d.ts +3 -0
- package/dist/tools/tools/WebFetch.d.ts.map +1 -0
- package/dist/tools/tools/WebSearch.d.ts +3 -0
- package/dist/tools/tools/WebSearch.d.ts.map +1 -0
- package/dist/tools/tools/Write.d.ts +3 -0
- package/dist/tools/tools/Write.d.ts.map +1 -0
- package/dist/tools/tools/cron/CronAdd.d.ts +3 -0
- package/dist/tools/tools/cron/CronAdd.d.ts.map +1 -0
- package/dist/tools/tools/cron/CronDelete.d.ts +3 -0
- package/dist/tools/tools/cron/CronDelete.d.ts.map +1 -0
- package/dist/tools/tools/cron/CronList.d.ts +3 -0
- package/dist/tools/tools/cron/CronList.d.ts.map +1 -0
- package/dist/tools/tools/cron/CronLogs.d.ts +3 -0
- package/dist/tools/tools/cron/CronLogs.d.ts.map +1 -0
- package/dist/tools/tools/cron/CronUpdate.d.ts +3 -0
- package/dist/tools/tools/cron/CronUpdate.d.ts.map +1 -0
- package/dist/tools/tools/department/CheckDepartmentReplies.d.ts +3 -0
- package/dist/tools/tools/department/CheckDepartmentReplies.d.ts.map +1 -0
- package/dist/tools/tools/department/DepartmentCommunicate.d.ts +3 -0
- package/dist/tools/tools/department/DepartmentCommunicate.d.ts.map +1 -0
- package/dist/tools/tools/department/DepartmentCreate.d.ts +3 -0
- package/dist/tools/tools/department/DepartmentCreate.d.ts.map +1 -0
- package/dist/tools/tools/department/DepartmentDelete.d.ts +3 -0
- package/dist/tools/tools/department/DepartmentDelete.d.ts.map +1 -0
- package/dist/tools/tools/department/DepartmentLearning.d.ts +11 -0
- package/dist/tools/tools/department/DepartmentLearning.d.ts.map +1 -0
- package/dist/tools/tools/department/DepartmentList.d.ts +3 -0
- package/dist/tools/tools/department/DepartmentList.d.ts.map +1 -0
- package/dist/tools/tools/department/DepartmentMemberCreate.d.ts +3 -0
- package/dist/tools/tools/department/DepartmentMemberCreate.d.ts.map +1 -0
- package/dist/tools/tools/department/DepartmentMemberDelete.d.ts +3 -0
- package/dist/tools/tools/department/DepartmentMemberDelete.d.ts.map +1 -0
- package/dist/tools/tools/department/DepartmentMemberList.d.ts +3 -0
- package/dist/tools/tools/department/DepartmentMemberList.d.ts.map +1 -0
- package/dist/tools/tools/department/MailboxFollowup.d.ts +4 -0
- package/dist/tools/tools/department/MailboxFollowup.d.ts.map +1 -0
- package/dist/tools/tools/department/mailboxQueueGuard.d.ts +5 -0
- package/dist/tools/tools/department/mailboxQueueGuard.d.ts.map +1 -0
- package/dist/tools/tools/memory/MemoryCreate.d.ts +4 -0
- package/dist/tools/tools/memory/MemoryCreate.d.ts.map +1 -0
- package/dist/tools/tools/memory/MemoryDelete.d.ts +4 -0
- package/dist/tools/tools/memory/MemoryDelete.d.ts.map +1 -0
- package/dist/tools/tools/memory/MemoryRead.d.ts +4 -0
- package/dist/tools/tools/memory/MemoryRead.d.ts.map +1 -0
- package/dist/tools/tools/memory/MemoryUpdate.d.ts +4 -0
- package/dist/tools/tools/memory/MemoryUpdate.d.ts.map +1 -0
- package/dist/tools/tools/skillforge/SkillForgeDrop.d.ts +4 -0
- package/dist/tools/tools/skillforge/SkillForgeDrop.d.ts.map +1 -0
- package/dist/tools/tools/skillforge/SkillForgeKeep.d.ts +4 -0
- package/dist/tools/tools/skillforge/SkillForgeKeep.d.ts.map +1 -0
- package/dist/tools/tools/skillforge/SkillForgePropose.d.ts +4 -0
- package/dist/tools/tools/skillforge/SkillForgePropose.d.ts.map +1 -0
- package/dist/tools/tools/tasks/GoalCreate.d.ts +3 -0
- package/dist/tools/tools/tasks/GoalCreate.d.ts.map +1 -0
- package/dist/tools/tools/tasks/GoalDelete.d.ts +3 -0
- package/dist/tools/tools/tasks/GoalDelete.d.ts.map +1 -0
- package/dist/tools/tools/tasks/GoalGet.d.ts +3 -0
- package/dist/tools/tools/tasks/GoalGet.d.ts.map +1 -0
- package/dist/tools/tools/tasks/GoalList.d.ts +3 -0
- package/dist/tools/tools/tasks/GoalList.d.ts.map +1 -0
- package/dist/tools/tools/tasks/GoalUpdate.d.ts +3 -0
- package/dist/tools/tools/tasks/GoalUpdate.d.ts.map +1 -0
- package/dist/tools/tools/tasks/TaskCreate.d.ts +3 -0
- package/dist/tools/tools/tasks/TaskCreate.d.ts.map +1 -0
- package/dist/tools/tools/tasks/TaskGet.d.ts +3 -0
- package/dist/tools/tools/tasks/TaskGet.d.ts.map +1 -0
- package/dist/tools/tools/tasks/TaskList.d.ts +3 -0
- package/dist/tools/tools/tasks/TaskList.d.ts.map +1 -0
- package/dist/tools/tools/tasks/TaskUpdate.d.ts +3 -0
- package/dist/tools/tools/tasks/TaskUpdate.d.ts.map +1 -0
- package/dist/tools/utils/localSandboxReview.d.ts +25 -0
- package/dist/tools/utils/localSandboxReview.d.ts.map +1 -0
- package/dist/tools/utils/workspaceGuard.d.ts +33 -0
- package/dist/tools/utils/workspaceGuard.d.ts.map +1 -0
- package/dist/tracing/redact.d.ts +2 -0
- package/dist/tracing/redact.d.ts.map +1 -0
- package/dist/tracing/runtimeTracer.d.ts +17 -0
- package/dist/tracing/runtimeTracer.d.ts.map +1 -0
- package/dist/tracing/types.d.ts +20 -0
- package/dist/tracing/types.d.ts.map +1 -0
- package/dist/types/builders.d.ts +19 -0
- package/dist/types/builders.d.ts.map +1 -0
- package/dist/types/content.d.ts +45 -0
- package/dist/types/content.d.ts.map +1 -0
- package/dist/types/context.d.ts +11 -0
- package/dist/types/context.d.ts.map +1 -0
- package/dist/types/guards.d.ts +21 -0
- package/dist/types/guards.d.ts.map +1 -0
- package/dist/types/message.d.ts +20 -0
- package/dist/types/message.d.ts.map +1 -0
- package/dist/types/request.d.ts +13 -0
- package/dist/types/request.d.ts.map +1 -0
- package/dist/types/usage.d.ts +7 -0
- package/dist/types/usage.d.ts.map +1 -0
- package/dist/web/assets/{index-DnD9jpKq.js → index-B7wHu0Xo.js} +1 -1
- package/dist/web/assets/index-PAk0qq4m.css +1 -0
- package/dist/web/index.html +2 -2
- package/dist/worker/queue.d.ts +2 -0
- package/dist/worker/queue.d.ts.map +1 -0
- package/dist/worker/spool.d.ts +59 -0
- package/dist/worker/spool.d.ts.map +1 -0
- package/dist/worker-main.js +1 -1
- package/package.json +16 -2
- package/dist/DuclawMac.app/Contents/Info.plist +0 -35
- package/dist/DuclawMac.app/Contents/MacOS/DuclawMac +0 -0
- package/dist/DuclawMac.app/Contents/Resources/AppIcon.icns +0 -0
- package/dist/DuclawMac.app/Contents/Resources/Assets.car +0 -0
- package/dist/DuclawMac.app/Contents/assetcatalog_generated_info.plist +0 -10
- package/dist/macos/Duclaw-0.1.0-macOS.zip +0 -0
- package/dist/macos/Duclaw.app/Contents/Info.plist +0 -50
- package/dist/macos/Duclaw.app/Contents/MacOS/Duclaw +0 -0
- package/dist/macos/Duclaw.app/Contents/PkgInfo +0 -1
- package/dist/macos/Duclaw.app/Contents/_CodeSignature/CodeResources +0 -123
- package/dist/macos/Duclaw.app/Contents/embedded.provisionprofile +0 -0
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/DerivedSources/Duclaw-Swift.h +0 -391
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/DerivedSources/Entitlements.plist +0 -16
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Duclaw-all-non-framework-target-headers.hmap +0 -0
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Duclaw-all-target-headers.hmap +0 -0
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Duclaw-generated-files.hmap +0 -0
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Duclaw-own-target-headers.hmap +0 -0
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Duclaw-project-headers.hmap +0 -0
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Duclaw.DependencyMetadataFileList +0 -0
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Duclaw.DependencyStaticMetadataFileList +0 -0
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Duclaw.app.xcent +0 -16
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Duclaw.app.xcent.der +0 -2
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Duclaw.hmap +0 -0
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Objects-normal/arm64/AppModels.o +0 -0
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Objects-normal/arm64/AppModels.stringsdata +0 -5
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Objects-normal/arm64/AppStore.o +0 -0
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Objects-normal/arm64/AppStore.stringsdata +0 -5
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Objects-normal/arm64/BrandTheme.o +0 -0
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Objects-normal/arm64/BrandTheme.stringsdata +0 -5
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Objects-normal/arm64/ContentView.o +0 -0
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Objects-normal/arm64/ContentView.stringsdata +0 -56
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Objects-normal/arm64/ConversationView.o +0 -0
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Objects-normal/arm64/ConversationView.stringsdata +0 -112
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Objects-normal/arm64/CronView.o +0 -0
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Objects-normal/arm64/CronView.stringsdata +0 -104
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Objects-normal/arm64/DetailView.o +0 -0
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Objects-normal/arm64/DetailView.stringsdata +0 -5
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Objects-normal/arm64/Duclaw-OutputFileMap.json +0 -101
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Objects-normal/arm64/Duclaw-Swift.h +0 -385
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Objects-normal/arm64/Duclaw-dependencies-1.json +0 -655
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Objects-normal/arm64/Duclaw-linker-args.resp +0 -1
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Objects-normal/arm64/Duclaw-primary.d +0 -22
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Objects-normal/arm64/Duclaw-primary.dia +0 -0
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Objects-normal/arm64/Duclaw-primary.swiftconstvalues +0 -1
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Objects-normal/arm64/Duclaw.LinkFileList +0 -18
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Objects-normal/arm64/Duclaw.SwiftConstValuesFileList +0 -1
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Objects-normal/arm64/Duclaw.SwiftFileList +0 -18
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Objects-normal/arm64/Duclaw.abi.json +0 -9
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Objects-normal/arm64/Duclaw.dependency-scan.dia +0 -0
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Objects-normal/arm64/Duclaw.swiftdoc +0 -0
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Objects-normal/arm64/Duclaw.swiftmodule +0 -0
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Objects-normal/arm64/Duclaw.swiftsourceinfo +0 -0
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Objects-normal/arm64/DuclawMacApp.o +0 -0
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Objects-normal/arm64/DuclawMacApp.stringsdata +0 -56
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Objects-normal/arm64/Duclaw_const_extract_protocols.json +0 -1
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Objects-normal/arm64/Duclaw_dependency_info.dat +0 -0
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Objects-normal/arm64/ExtractedAppShortcutsMetadata.stringsdata +0 -7
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Objects-normal/arm64/FilesView.o +0 -0
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Objects-normal/arm64/FilesView.stringsdata +0 -96
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Objects-normal/arm64/GoalsView.o +0 -0
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Objects-normal/arm64/GoalsView.stringsdata +0 -40
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Objects-normal/arm64/LocalRuntimeAPIClient.o +0 -0
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Objects-normal/arm64/LocalRuntimeAPIClient.stringsdata +0 -5
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Objects-normal/arm64/MacRuntimeAPIClient.o +0 -0
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Objects-normal/arm64/MacRuntimeAPIClient.stringsdata +0 -5
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Objects-normal/arm64/RuntimeSupervisor.o +0 -0
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Objects-normal/arm64/RuntimeSupervisor.stringsdata +0 -5
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Objects-normal/arm64/RuntimeView.o +0 -0
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Objects-normal/arm64/RuntimeView.stringsdata +0 -136
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Objects-normal/arm64/SettingsView.o +0 -0
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Objects-normal/arm64/SettingsView.stringsdata +0 -224
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Objects-normal/arm64/SharedViews.o +0 -0
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Objects-normal/arm64/SharedViews.stringsdata +0 -16
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Objects-normal/arm64/SidebarView.o +0 -0
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Objects-normal/arm64/SidebarView.stringsdata +0 -56
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Objects-normal/arm64/TeamView.o +0 -0
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Objects-normal/arm64/TeamView.stringsdata +0 -72
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/Objects-normal/arm64/supplementaryOutputs-1 +0 -12
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/SwiftStdLibToolInputDependencies.dep +0 -0
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/Duclaw.build/empty-Duclaw.plist +0 -5
- package/dist/macos-derived-data/Build/Intermediates.noindex/DuclawMac.build/Release/DuclawMac-c7e69682876cfcff51351de3a3d99f90-VFS/all-product-headers.yaml +0 -1
- package/dist/macos-derived-data/Build/Intermediates.noindex/XCBuildData/7665df728b5503d96dd65a7670f7ee46.xcbuilddata/attachments/16848c3481572c796c90f6470680b7ae +0 -18
- package/dist/macos-derived-data/Build/Intermediates.noindex/XCBuildData/7665df728b5503d96dd65a7670f7ee46.xcbuilddata/attachments/18d36032bfd1421fc519eacbb365614b +0 -0
- package/dist/macos-derived-data/Build/Intermediates.noindex/XCBuildData/7665df728b5503d96dd65a7670f7ee46.xcbuilddata/attachments/2de6a04cdba79ed13580c47dfd70cc5f +0 -5
- package/dist/macos-derived-data/Build/Intermediates.noindex/XCBuildData/7665df728b5503d96dd65a7670f7ee46.xcbuilddata/attachments/414c71058c4887675ab39fb971e37f36 +0 -1
- package/dist/macos-derived-data/Build/Intermediates.noindex/XCBuildData/7665df728b5503d96dd65a7670f7ee46.xcbuilddata/attachments/7e002fa69f193488efb1fea98011ebe7 +0 -16
- package/dist/macos-derived-data/Build/Intermediates.noindex/XCBuildData/7665df728b5503d96dd65a7670f7ee46.xcbuilddata/attachments/8bba4233626f64a7ea772bb94a08a1a9 +0 -1
- package/dist/macos-derived-data/Build/Intermediates.noindex/XCBuildData/7665df728b5503d96dd65a7670f7ee46.xcbuilddata/attachments/9a2910799639cff85464f3dcb75559c1 +0 -1
- package/dist/macos-derived-data/Build/Intermediates.noindex/XCBuildData/7665df728b5503d96dd65a7670f7ee46.xcbuilddata/attachments/a2b7dab48fada9df12270f014c657fca +0 -101
- package/dist/macos-derived-data/Build/Intermediates.noindex/XCBuildData/7665df728b5503d96dd65a7670f7ee46.xcbuilddata/attachments/c706ad95bf70246dacc25beba5e15c14 +0 -18
- package/dist/macos-derived-data/Build/Intermediates.noindex/XCBuildData/7665df728b5503d96dd65a7670f7ee46.xcbuilddata/attachments/d41d8cd98f00b204e9800998ecf8427e +0 -0
- package/dist/macos-derived-data/Build/Intermediates.noindex/XCBuildData/7665df728b5503d96dd65a7670f7ee46.xcbuilddata/attachments/fd8314defc70a8778956f026c0ddfd19 +0 -0
- package/dist/macos-derived-data/Build/Intermediates.noindex/XCBuildData/7665df728b5503d96dd65a7670f7ee46.xcbuilddata/build-request.json +0 -65
- package/dist/macos-derived-data/Build/Intermediates.noindex/XCBuildData/7665df728b5503d96dd65a7670f7ee46.xcbuilddata/description.msgpack +0 -0
- package/dist/macos-derived-data/Build/Intermediates.noindex/XCBuildData/7665df728b5503d96dd65a7670f7ee46.xcbuilddata/manifest.json +0 -1
- package/dist/macos-derived-data/Build/Intermediates.noindex/XCBuildData/7665df728b5503d96dd65a7670f7ee46.xcbuilddata/target-graph.txt +0 -2
- package/dist/macos-derived-data/Build/Intermediates.noindex/XCBuildData/7665df728b5503d96dd65a7670f7ee46.xcbuilddata/task-store.msgpack +0 -0
- package/dist/macos-derived-data/Build/Intermediates.noindex/XCBuildData/PIFCache/project/PROJECT@v11_mod=92f1da9fe0a68c419bece73ff20eda35_hash=c7e69682876cfcff51351de3a3d99f90plugins=1OJSG6M1FOV3XYQCBH7Z29RZ0FPR9XDE1-json +0 -1
- package/dist/macos-derived-data/Build/Intermediates.noindex/XCBuildData/PIFCache/target/TARGET@v11_hash=2dcd34f0b6d7a5f2cfbc734f30761b23-json +0 -1
- package/dist/macos-derived-data/Build/Intermediates.noindex/XCBuildData/PIFCache/workspace/WORKSPACE@v11_hash=(null)_subobjects=f2496d0e39d6a34ee46c36c1e51cef98-json +0 -1
- package/dist/macos-derived-data/Build/Intermediates.noindex/XCBuildData/build.db +0 -0
- package/dist/macos-derived-data/Build/Products/Release/Duclaw.app/Contents/Info.plist +0 -50
- package/dist/macos-derived-data/Build/Products/Release/Duclaw.app/Contents/MacOS/Duclaw +0 -0
- package/dist/macos-derived-data/Build/Products/Release/Duclaw.app/Contents/PkgInfo +0 -1
- package/dist/macos-derived-data/Build/Products/Release/Duclaw.app/Contents/_CodeSignature/CodeResources +0 -123
- package/dist/macos-derived-data/Build/Products/Release/Duclaw.app/Contents/embedded.provisionprofile +0 -0
- package/dist/macos-derived-data/Build/Products/Release/Duclaw.app.dSYM/Contents/Info.plist +0 -20
- package/dist/macos-derived-data/Build/Products/Release/Duclaw.app.dSYM/Contents/Resources/DWARF/Duclaw +0 -0
- package/dist/macos-derived-data/Build/Products/Release/Duclaw.app.dSYM/Contents/Resources/Relocations/aarch64/Duclaw.yml +0 -1944
- package/dist/macos-derived-data/Build/Products/Release/Duclaw.swiftmodule/Project/arm64-apple-macos.swiftsourceinfo +0 -0
- package/dist/macos-derived-data/Build/Products/Release/Duclaw.swiftmodule/arm64-apple-macos.abi.json +0 -9
- package/dist/macos-derived-data/Build/Products/Release/Duclaw.swiftmodule/arm64-apple-macos.swiftdoc +0 -0
- package/dist/macos-derived-data/Build/Products/Release/Duclaw.swiftmodule/arm64-apple-macos.swiftmodule +0 -0
- package/dist/macos-derived-data/CompilationCache.noindex/generic/lock +0 -0
- package/dist/macos-derived-data/CompilationCache.noindex/generic/v1.1/v3.actions +0 -0
- package/dist/macos-derived-data/CompilationCache.noindex/generic/v1.1/v3.actions.shared +0 -0
- package/dist/macos-derived-data/CompilationCache.noindex/generic/v1.1/v8.data +0 -0
- package/dist/macos-derived-data/CompilationCache.noindex/generic/v1.1/v8.data.shared +0 -0
- package/dist/macos-derived-data/CompilationCache.noindex/generic/v1.1/v8.index +0 -0
- package/dist/macos-derived-data/CompilationCache.noindex/generic/v1.1/v8.index.shared +0 -0
- package/dist/macos-derived-data/Logs/Build/LogStoreManifest.plist +0 -10
- package/dist/macos-derived-data/Logs/Launch/LogStoreManifest.plist +0 -10
- package/dist/macos-derived-data/Logs/Localization/LogStoreManifest.plist +0 -10
- package/dist/macos-derived-data/Logs/Package/LogStoreManifest.plist +0 -10
- package/dist/macos-derived-data/Logs/Test/LogStoreManifest.plist +0 -10
- package/dist/macos-derived-data/ModuleCache.noindex/Accessibility-EPZJKJZKHLGH8S30BEX9AEP5T.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/AppKit-8WVE2YI69Z1T2FYEP8T03WNIF.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/ApplicationServices-22F6VSD5NEECVLEPITBPGP80G.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/AuthenticationServices-14SYYYCAR64X7G73PC844QVQT.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/CFNetwork-2YTT6XJY9ATJWXIOEI0X3RDS1.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/CUPS-2026J5BRGH5Z6NB0F073FC3WH.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/ColorSync-BJO3TAAY0R1H5VNL7X3QC107S.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/CoreData-GT3WO5F7V637FMX45JD997ON.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/CoreFoundation-MZ051I8QBCMIWKHUZPD923JK.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/CoreGraphics-7E84JUTHXR831U6PH2YTB5K4C.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/CoreImage-8TFSHTUWQVW44TS6S1X8C5S21.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/CoreServices-7O1MXJNSVRU9NUUSHLBNU7DTG.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/CoreText-8JKNR8WJ9JQZG32FZTUL2XO6W.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/CoreTransferable-7G6EWHF9Q6JGC6N51JITZWZ68.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/CoreVideo-8VE7TYNI1JW74I4ZRAV3NIQ40.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/Darwin-5F5T551R5BNAEKJMZY1DDQMRC.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/DataDetection-DP6AWRJMB3HYI7Y178Q47SQHW.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/DeveloperToolsSupport-E1LY7RZKG74JG0NTPJAM5GNCD.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/DiskArbitration-7J4AWCPP9P653BXM83C3XV9CW.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/Dispatch-8Y9BFX2P00EB9G2UAHI67JPEA.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/Foundation-Q4YEXYF7MX4GR6OA8YNSERUD.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/IOKit-CB2ZM1GROOEEK7IM12604N4ZD.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/IOSurface-A3008QGKU9ZV0FRAQFXW20K2N.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/ImageIO-314AQCEMTA6HYAPPPBER7NEKN.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/LocalAuthentication-90MAZWVHPEEC404CSYQX9EB6T.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/MachO-CBOUKR29KV2JU7O6URBDT9R2M.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/Metal-T6WVZFMVEUQ3XBI1128X1PE.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/OSLog-67JFIMQT76HAL8LL80VFP0LMH.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/ObjectiveC-8Z5LYM0W66408L33ODXGYFMCX.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/OpenGL-E0EUNSPQC9Q5Q6L76XP18PZBL.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/QuartzCore-8652P2LLM36I7C3AM568GD7E2.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/Security-ABNKEKZLLW6JTHZQR5BJCGYZX.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/Session.modulevalidation +0 -1
- package/dist/macos-derived-data/ModuleCache.noindex/Spatial-PVIAGC546YY0DF13PW6AF00Y.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/SwiftShims-AFSSAMYMUW0QTOWSMZYR1FLG8.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/SwiftUI-DR6F3BQWG6PJID1ERUNH97XCX.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/SwiftUICore-T2COTXDI0NGOD7887SDBIVYL.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/Symbols-3A8X6SZHJ075HPLD1RUT04LPW.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/Accessibility-RCJSN2GG3RAR.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/AppKit-2VI8NB39I5AT6.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/ApplicationServices-3NXEUUZF9JJBD.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/AuthenticationServices-2XR6F0IJCJ3L9.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/CFNetwork-1PNPO1ORVQZLS.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/CUPS-1HLHMKUB322XA.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/ColorSync-3EIM4S8RXNRVI.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/CoreData-1KHK1L2CYC2N6.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/CoreFoundation-16SA8WK3L6MQN.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/CoreGraphics-1PSDCAYCIV3T9.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/CoreImage-39ZO87840M5PP.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/CoreServices-39NCTJOEW7PQ2.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/CoreText-3FAL1B4J38DIR.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/CoreTransferable-27T896KGHFB3R.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/CoreVideo-DBBGB2LXU3HG.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/Darwin-1FXX23EKWOBA9.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/DataDetection-R5W4QHNMPWVH.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/DeveloperToolsSupport-3SUCMSK9ZS2JA.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/DiskArbitration-3LBJF5I58QD8.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/Dispatch-R76HXUP80TVL.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/Foundation-24LYWIP48SHNP.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/IOKit-1IAL9NTK1TABA.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/IOSurface-26455DPS9NDS0.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/ImageIO-2ZSF831VT29UB.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/LocalAuthentication-26H9AZG3KEECH.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/MachO-20RPYVQSX341K.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/Metal-1GCZV9N85NJOH.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/OSLog-218FBXNFJGY61.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/ObjectiveC-1G8H182PQX3QE.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/OpenGL-H89XJT7GTCP.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/QuartzCore-39A8LQKF980J1.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/Security-3QCVXOV25KK54.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/Spatial-1JZLH83HN83CS.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/SwiftShims-2IMTS4WWRU7VJ.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/SwiftUI-3DCHKT5UWXXCX.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/SwiftUICore-86HIVXUC6WOA.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/Symbols-3KC1789KJFX94.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/UniformTypeIdentifiers-1OLJP4K3PLM48.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/XPC-T0ZXCAST7PE3.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/_AvailabilityInternal-2YSBQADOLX02V.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/_Builtin_float-2OQWMRBVRD4OJ.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/_Builtin_intrinsics-2OQWMRBVRD4OJ.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/_Builtin_inttypes-2OQWMRBVRD4OJ.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/_Builtin_limits-2OQWMRBVRD4OJ.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/_Builtin_stdarg-2OQWMRBVRD4OJ.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/_Builtin_stdatomic-2OQWMRBVRD4OJ.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/_Builtin_stdbool-2OQWMRBVRD4OJ.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/_Builtin_stddef-2OQWMRBVRD4OJ.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/_Builtin_stdint-2OQWMRBVRD4OJ.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/_Builtin_tgmath-2OQWMRBVRD4OJ.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/_DarwinFoundation1-2YSBQADOLX02V.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/_DarwinFoundation2-3J4ZFA06I5V1P.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/_DarwinFoundation3-2NSGASPTSNBVQ.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/_SwiftConcurrencyShims-2IMTS4WWRU7VJ.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/launch-3T3BU4MASLMUM.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/libDER-26DYHF6GC6WWA.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/libkern-2KQ0X67RTM1JF.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/os-2MV8OP7R98AN8.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/os_object-2MV8OP7R98AN8.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/os_workgroup-2MV8OP7R98AN8.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/ptrauth-2OQWMRBVRD4OJ.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/ptrcheck-2OQWMRBVRD4OJ.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/simd-KY25Q80SBOHY.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UAVS3N7R9SV4/sys_types-3J4ZFA06I5V1P.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/UniformTypeIdentifiers-83SQLNZQRK3H2KXUK111O5I4K.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/XPC-EZEGWTHE1GMGJ73B5QPV637PF.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/_AvailabilityInternal-DUBFS7PPVT4O9ATB4G9TOJHF7.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/_Builtin_float-5YBOEE147SLFHCGNRI09APS4N.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/_Builtin_intrinsics-7FFXB6JNF9XOZJHGGC13VBM1N.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/_Builtin_inttypes-5EZP7WE0FC5LOMR6J3D74BYFX.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/_Builtin_limits-AEGUFKD0C1K1D4OQ4DQ5YVKY9.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/_Builtin_stdarg-DK9R0I8EMZ861TR8854YLP0D4.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/_Builtin_stdatomic-CJ0MCKZU947OKLAE06A9T64MT.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/_Builtin_stdbool-5N87U878MWGYKCJZ9SNB8XXIK.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/_Builtin_stddef-5NTIEISJIP4ZKO8TB1BI1MDYR.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/_Builtin_stdint-C7SU5781UV8N5GF087ARLX2C4.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/_Builtin_tgmath-AB0ON95W4VQ2ZKFZ3DM1BG314.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/_DarwinFoundation1-E190GMAISVTHCX284OP284XYH.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/_DarwinFoundation2-1UPXDZK39B21OVOJW0QJ8N41.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/_DarwinFoundation3-9I64E6FHLFV81I7VF3GF99Y2O.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/_SwiftConcurrencyShims-BW2FJ1L8883MXMIPFO8JRC5VL.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/launch-BE5QHHN47PFYGFWGPQMCTRIKL.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/libDER-2ON8L8KUT13HZCKEK8EK9KKJO.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/libkern-1X2SPINFK3MU0VSFY2BDKYG21.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/modules.timestamp +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/os-6QG5F30JDNX1SM0T0XTAPXOXX.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/os_object-9WK0CD2ZN2XAFN1CKUF4P9YRC.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/os_workgroup-F0PKWLCF5BPHJGRAVEJRTIBHM.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/ptrauth-2HBU40YY8OCO6Z4BGEYQM5HTO.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/ptrcheck-F0QI8P4RBM2GGQESSOJQZODBZ.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/simd-CVY24EZJFO3GIR64TY70A1NYA.pcm +0 -0
- package/dist/macos-derived-data/ModuleCache.noindex/sys_types-DFWCO03XIAVMD6AF060H66F56.pcm +0 -0
- package/dist/macos-derived-data/SDKStatCaches.noindex/macosx26.5-25F70-e082c4a02f00227109f4ed75e425c832.sdkstatcache +0 -0
- package/dist/macos-derived-data/info.plist +0 -10
- package/dist/web/assets/index-Bbgvdjvr.css +0 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DepartmentDefinition } from "./types";
|
|
2
|
+
export declare const getDepartmentBaseDir: () => string;
|
|
3
|
+
export declare const getDepartmentWorkSpaceDir: (departmentName: string) => string;
|
|
4
|
+
export declare const getDepartmentJsonPath: (departmentName: string) => string;
|
|
5
|
+
export declare const migrateLegacyTeamsToDepartments: () => void;
|
|
6
|
+
export declare const resetLegacyDepartmentMigrationForTest: () => void;
|
|
7
|
+
export declare const createDepartment: (departmentDefinition?: DepartmentDefinition) => DepartmentDefinition;
|
|
8
|
+
export declare const getDepartment: (name: string) => DepartmentDefinition | null;
|
|
9
|
+
export declare const listDepartments: () => DepartmentDefinition[];
|
|
10
|
+
export declare const getDepartmentById: (id: string) => DepartmentDefinition | null;
|
|
11
|
+
export declare const deleteDepartment: (name: string) => void;
|
|
12
|
+
//# sourceMappingURL=Department.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Department.d.ts","sourceRoot":"","sources":["../../src/department/Department.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAoD,MAAM,SAAS,CAAC;AAuBjG,eAAO,MAAM,oBAAoB,cAEhC,CAAA;AAMD,eAAO,MAAM,yBAAyB,GAAI,gBAAgB,MAAM,WAE/D,CAAA;AAMD,eAAO,MAAM,qBAAqB,GAAI,gBAAgB,MAAM,WAE3D,CAAA;AAqCD,eAAO,MAAM,+BAA+B,QAAO,IAuBlD,CAAA;AAED,eAAO,MAAM,qCAAqC,QAAO,IAExD,CAAA;AAED,eAAO,MAAM,gBAAgB,GAAI,uBAAuB,oBAAoB,KAAG,oBAQ9E,CAAA;AAED,eAAO,MAAM,aAAa,GAAI,MAAM,MAAM,KAAG,oBAAoB,GAAG,IAQnE,CAAA;AAED,eAAO,MAAM,eAAe,QAAO,oBAAoB,EAYtD,CAAA;AAED,eAAO,MAAM,iBAAiB,GAAI,IAAI,MAAM,KAAG,oBAAoB,GAAG,IAGrE,CAAA;AAED,eAAO,MAAM,gBAAgB,GAAI,MAAM,MAAM,KAAG,IAK/C,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DepartmentMemberDefinition } from "./types";
|
|
2
|
+
export declare const createDepartmentMember: (departmentMemberDefinition: DepartmentMemberDefinition) => DepartmentMemberDefinition;
|
|
3
|
+
export declare const listDepartmentMembers: (departmentName: string) => DepartmentMemberDefinition[];
|
|
4
|
+
export declare const getDepartmentMember: (departmentName: string, departmentMemberId: string) => DepartmentMemberDefinition | null;
|
|
5
|
+
export declare const getDepartmentMemberByName: (departmentName: string, departmentMemberName: string) => DepartmentMemberDefinition | null;
|
|
6
|
+
export declare const getDepartmentMemberByMailboxId: (mailboxId: string) => DepartmentMemberDefinition | null;
|
|
7
|
+
export declare const getDepartmentMemberById: (memberId: string) => DepartmentMemberDefinition | null;
|
|
8
|
+
export declare const deleteDepartmentMemberById: (departmentName: string, memberId: string) => void;
|
|
9
|
+
//# sourceMappingURL=DepartmentMember.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DepartmentMember.d.ts","sourceRoot":"","sources":["../../src/department/DepartmentMember.ts"],"names":[],"mappings":"AAEA,OAAO,EAAwB,0BAA0B,EAAE,MAAM,SAAS,CAAC;AAW3E,eAAO,MAAM,sBAAsB,GAAI,4BAA4B,0BAA0B,+BAyC5F,CAAA;AAED,eAAO,MAAM,qBAAqB,GAAI,gBAAgB,MAAM,KAAG,0BAA0B,EAOxF,CAAA;AAED,eAAO,MAAM,mBAAmB,GAAI,gBAAgB,MAAM,EAAE,oBAAoB,MAAM,KAAG,0BAA0B,GAAG,IAGrH,CAAA;AAED,eAAO,MAAM,yBAAyB,GAAI,gBAAgB,MAAM,EAAE,sBAAsB,MAAM,KAAG,0BAA0B,GAAG,IAG7H,CAAA;AAED,eAAO,MAAM,8BAA8B,GAAI,WAAW,MAAM,KAAG,0BAA0B,GAAG,IAI/F,CAAA;AAED,eAAO,MAAM,uBAAuB,GAAI,UAAU,MAAM,KAAG,0BAA0B,GAAG,IAMvF,CAAA;AAED,eAAO,MAAM,0BAA0B,GAAI,gBAAgB,MAAM,EAAE,UAAU,MAAM,KAAG,IAiBrF,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { getMailBoxId, cancelMailboxMessages } from "./mailbox/mailbox";
|
|
2
|
+
import { createDepartment, deleteDepartment, getDepartment, listDepartments } from "./Department";
|
|
3
|
+
import { createDepartmentMember, getDepartmentMember, getDepartmentMemberByName, listDepartmentMembers } from "./DepartmentMember";
|
|
4
|
+
export { createDepartment, getDepartment, listDepartments, deleteDepartment, createDepartmentMember, listDepartmentMembers, getDepartmentMember, getDepartmentMemberByName, getMailBoxId, cancelMailboxMessages, };
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/department/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAClG,OAAO,EACH,sBAAsB,EACtB,mBAAmB,EACnB,yBAAyB,EACzB,qBAAqB,EACxB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACH,gBAAgB,EAChB,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,sBAAsB,EACtB,qBAAqB,EACrB,mBAAmB,EACnB,yBAAyB,EACzB,YAAY,EACZ,qBAAqB,GACxB,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { UserRequest } from "../types/request";
|
|
2
|
+
export type DepartmentMemory = {
|
|
3
|
+
id: string;
|
|
4
|
+
departmentName: string;
|
|
5
|
+
title: string;
|
|
6
|
+
content: string;
|
|
7
|
+
sourceMailboxId?: string;
|
|
8
|
+
createdAt: number;
|
|
9
|
+
updatedAt: number;
|
|
10
|
+
};
|
|
11
|
+
export type DepartmentSkill = {
|
|
12
|
+
id: string;
|
|
13
|
+
departmentName: string;
|
|
14
|
+
skillName: string;
|
|
15
|
+
description: string;
|
|
16
|
+
skillMd: string;
|
|
17
|
+
status: 'pending' | 'active' | 'dropped';
|
|
18
|
+
createdByMailboxId?: string;
|
|
19
|
+
createdAt: number;
|
|
20
|
+
updatedAt: number;
|
|
21
|
+
};
|
|
22
|
+
export type DepartmentProposal = {
|
|
23
|
+
id: string;
|
|
24
|
+
proposerDepartmentName: string;
|
|
25
|
+
proposerMailboxId: string;
|
|
26
|
+
title: string;
|
|
27
|
+
reason: string;
|
|
28
|
+
suggestedDepartmentName: string;
|
|
29
|
+
suggestedCharter: string;
|
|
30
|
+
evidenceThreadIds: string[];
|
|
31
|
+
status: 'pending' | 'accepted' | 'rejected';
|
|
32
|
+
createdAt: number;
|
|
33
|
+
resolvedAt?: number;
|
|
34
|
+
};
|
|
35
|
+
export declare const getDepartmentNameForHead: (request?: UserRequest) => string | null;
|
|
36
|
+
export declare const listDepartmentMemories: (departmentName: string) => DepartmentMemory[];
|
|
37
|
+
export declare const createDepartmentMemory: (departmentName: string, input: {
|
|
38
|
+
title: string;
|
|
39
|
+
content: string;
|
|
40
|
+
sourceMailboxId?: string;
|
|
41
|
+
}) => DepartmentMemory;
|
|
42
|
+
export declare const updateDepartmentMemory: (departmentName: string, id: string, patch: {
|
|
43
|
+
title?: string;
|
|
44
|
+
content?: string;
|
|
45
|
+
}) => DepartmentMemory | null;
|
|
46
|
+
export declare const deleteDepartmentMemory: (departmentName: string, id: string) => DepartmentMemory | null;
|
|
47
|
+
export declare const listDepartmentSkills: (departmentName: string) => DepartmentSkill[];
|
|
48
|
+
export declare const proposeDepartmentSkill: (departmentName: string, input: {
|
|
49
|
+
skillName: string;
|
|
50
|
+
description: string;
|
|
51
|
+
skillMd: string;
|
|
52
|
+
createdByMailboxId?: string;
|
|
53
|
+
}) => DepartmentSkill | null;
|
|
54
|
+
export declare const keepDepartmentSkill: (departmentName: string, id: string) => DepartmentSkill | null;
|
|
55
|
+
export declare const dropDepartmentSkill: (departmentName: string, id: string) => DepartmentSkill | null;
|
|
56
|
+
export declare const createDepartmentProposal: (input: Omit<DepartmentProposal, "id" | "status" | "createdAt">) => DepartmentProposal;
|
|
57
|
+
export declare const buildDepartmentLearningContext: (departmentName?: string) => string;
|
|
58
|
+
//# sourceMappingURL=learning.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"learning.d.ts","sourceRoot":"","sources":["../../src/department/learning.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAQ/C,MAAM,MAAM,gBAAgB,GAAG;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACrB,CAAA;AAED,MAAM,MAAM,eAAe,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;IACzC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACrB,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,sBAAsB,EAAE,MAAM,CAAC;IAC/B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,uBAAuB,EAAE,MAAM,CAAC;IAChC,gBAAgB,EAAE,MAAM,CAAC;IACzB,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,MAAM,EAAE,SAAS,GAAG,UAAU,GAAG,UAAU,CAAC;IAC5C,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB,CAAA;AA8BD,eAAO,MAAM,wBAAwB,GAAI,UAAU,WAAW,KAAG,MAAM,GAAG,IAOzE,CAAA;AAED,eAAO,MAAM,sBAAsB,GAAI,gBAAgB,MAAM,KAAG,gBAAgB,EAG/E,CAAA;AAED,eAAO,MAAM,sBAAsB,GAAI,gBAAgB,MAAM,EAAE,OAAO;IAClE,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B,KAAG,gBAeH,CAAA;AAED,eAAO,MAAM,sBAAsB,GAAI,gBAAgB,MAAM,EAAE,IAAI,MAAM,EAAE,OAAO;IAC9E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB,KAAG,gBAAgB,GAAG,IAYtB,CAAA;AAED,eAAO,MAAM,sBAAsB,GAAI,gBAAgB,MAAM,EAAE,IAAI,MAAM,KAAG,gBAAgB,GAAG,IAK9F,CAAA;AAED,eAAO,MAAM,oBAAoB,GAAI,gBAAgB,MAAM,KAAG,eAAe,EAG5E,CAAA;AAED,eAAO,MAAM,sBAAsB,GAAI,gBAAgB,MAAM,EAAE,OAAO;IAClE,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC/B,KAAG,eAAe,GAAG,IA8BrB,CAAA;AAED,eAAO,MAAM,mBAAmB,GAAI,gBAAgB,MAAM,EAAE,IAAI,MAAM,KAAG,eAAe,GAAG,IAuB1F,CAAA;AAED,eAAO,MAAM,mBAAmB,GAAI,gBAAgB,MAAM,EAAE,IAAI,MAAM,KAAG,eAAe,GAAG,IAO1F,CAAA;AAED,eAAO,MAAM,wBAAwB,GAAI,OAAO,IAAI,CAAC,kBAAkB,EAAE,IAAI,GAAG,QAAQ,GAAG,WAAW,CAAC,KAAG,kBAWzG,CAAA;AAED,eAAO,MAAM,8BAA8B,GAAI,iBAAiB,MAAM,KAAG,MAqBxE,CAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { MailBoxMessage } from "./types";
|
|
2
|
+
export type CeoFollowupStatus = 'pending' | 'processing' | 'completed' | 'failed';
|
|
3
|
+
export type CeoFollowup = {
|
|
4
|
+
id: string;
|
|
5
|
+
sourceMessageId: string;
|
|
6
|
+
status: CeoFollowupStatus;
|
|
7
|
+
originUserId: string;
|
|
8
|
+
originPlatform: string;
|
|
9
|
+
fromMailboxId: string;
|
|
10
|
+
threadId?: string;
|
|
11
|
+
parentMessageId?: string;
|
|
12
|
+
workItemId?: string;
|
|
13
|
+
content: string;
|
|
14
|
+
attempts: number;
|
|
15
|
+
lastError?: string;
|
|
16
|
+
createdAt: number;
|
|
17
|
+
updatedAt: number;
|
|
18
|
+
completedAt?: number;
|
|
19
|
+
};
|
|
20
|
+
export declare const enqueueCeoFollowupFromMailbox: (message: MailBoxMessage) => CeoFollowup | null;
|
|
21
|
+
export declare const listPendingCeoFollowups: (limit?: number) => CeoFollowup[];
|
|
22
|
+
export declare const claimCeoFollowup: (id: string) => CeoFollowup | null;
|
|
23
|
+
export declare const completeCeoFollowup: (id: string) => void;
|
|
24
|
+
export declare const failCeoFollowup: (id: string, error: string) => void;
|
|
25
|
+
export declare const recoverStaleProcessingCeoFollowups: (staleBefore: number) => number;
|
|
26
|
+
export declare const completePendingCeoFollowupsForUser: (originUserId: string) => number;
|
|
27
|
+
//# sourceMappingURL=ceoFollowup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ceoFollowup.d.ts","sourceRoot":"","sources":["../../../src/department/mailbox/ceoFollowup.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,YAAY,GAAG,WAAW,GAAG,QAAQ,CAAC;AAElF,MAAM,MAAM,WAAW,GAAG;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAgEF,eAAO,MAAM,6BAA6B,GAAI,SAAS,cAAc,KAAG,WAAW,GAAG,IAwDrF,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,cAAU,KAAG,WAAW,EA0B/D,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,IAAI,MAAM,KAAG,WAAW,GAAG,IAc3D,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,IAAI,MAAM,KAAG,IAmBhD,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,IAAI,MAAM,EAAE,OAAO,MAAM,KAAG,IAW3D,CAAC;AAEF,eAAO,MAAM,kCAAkC,GAAI,aAAa,MAAM,KAAG,MAaxE,CAAC;AAEF,eAAO,MAAM,kCAAkC,GAAI,cAAc,MAAM,KAAG,MAmCzE,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { MailBoxEvent, MailBoxEventType, MailBoxStatus } from "./types";
|
|
2
|
+
type RecordMailboxEventInput = {
|
|
3
|
+
messageId?: string;
|
|
4
|
+
mailboxId: string;
|
|
5
|
+
actorMailboxId?: string;
|
|
6
|
+
counterpartMailboxId?: string;
|
|
7
|
+
eventType: MailBoxEventType;
|
|
8
|
+
detail?: Record<string, unknown>;
|
|
9
|
+
createdAt?: number;
|
|
10
|
+
};
|
|
11
|
+
export declare const recordMailboxEvent: (input: RecordMailboxEventInput) => MailBoxEvent;
|
|
12
|
+
export declare const recordMailboxStatusChange: (params: {
|
|
13
|
+
messageId: string;
|
|
14
|
+
mailboxId: string;
|
|
15
|
+
previousStatus: MailBoxStatus;
|
|
16
|
+
nextStatus: MailBoxStatus;
|
|
17
|
+
actorMailboxId?: string;
|
|
18
|
+
counterpartMailboxId?: string;
|
|
19
|
+
reason?: string;
|
|
20
|
+
}) => MailBoxEvent | null;
|
|
21
|
+
export declare const listMailboxEvents: (params: {
|
|
22
|
+
mailboxId: string;
|
|
23
|
+
limit?: number;
|
|
24
|
+
}) => MailBoxEvent[];
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/department/mailbox/events.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExE,KAAK,uBAAuB,GAAG;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,SAAS,EAAE,gBAAgB,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAA;AAuED,eAAO,MAAM,kBAAkB,GAAI,OAAO,uBAAuB,KAAG,YAsCnE,CAAA;AAED,eAAO,MAAM,yBAAyB,GAAI,QAAQ;IAC9C,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,aAAa,CAAC;IAC9B,UAAU,EAAE,aAAa,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,wBAiBA,CAAA;AAED,eAAO,MAAM,iBAAiB,GAAI,QAAQ;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB,KAAG,YAAY,EA+Bf,CAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { MailBoxMessage, MailBoxStatus, MailBoxWorkItemRole } from "./types";
|
|
2
|
+
export declare const getMailBoxId: (departmentName: string, memberName: string) => string;
|
|
3
|
+
export declare const getMailBoxIdFromDepartmentMemberId: (memberId: string) => string | null;
|
|
4
|
+
/**
|
|
5
|
+
* 通过mailbox接收消息
|
|
6
|
+
* @param mailBoxId: 打开哪个mailbox的邮件
|
|
7
|
+
* */
|
|
8
|
+
export declare const openMessages: (mailBoxId: string) => MailBoxMessage[];
|
|
9
|
+
/**
|
|
10
|
+
* 批量取消某个 mailboxId 相关的 pending/processing 消息。
|
|
11
|
+
*/
|
|
12
|
+
export declare const cancelMailboxMessages: (mailboxId: string) => number;
|
|
13
|
+
export type SendMessageOptions = {
|
|
14
|
+
originUserId?: string;
|
|
15
|
+
originPlatform?: string;
|
|
16
|
+
threadId?: string;
|
|
17
|
+
parentMessageId?: string;
|
|
18
|
+
workItemId?: string;
|
|
19
|
+
workItemRole?: MailBoxWorkItemRole;
|
|
20
|
+
upstreamMessageId?: string;
|
|
21
|
+
auditDetail?: Record<string, unknown>;
|
|
22
|
+
localSandboxPolicy?: string;
|
|
23
|
+
localSandboxAccess?: string;
|
|
24
|
+
};
|
|
25
|
+
export declare const recordManagerMailboxAgentEvent: (msg: MailBoxMessage) => import("../../agent/events").AgentEvent | null;
|
|
26
|
+
export declare const sendMessage: (fromMailboxId: string, toMailboxId: string, content: string, options?: SendMessageOptions) => MailBoxMessage;
|
|
27
|
+
export declare const updateMailboxMessageStatus: (messageId: string, nextStatus: MailBoxStatus, options?: {
|
|
28
|
+
fromStatus?: MailBoxStatus | MailBoxStatus[];
|
|
29
|
+
actorMailboxId?: string;
|
|
30
|
+
counterpartMailboxId?: string;
|
|
31
|
+
reason?: string;
|
|
32
|
+
}) => boolean;
|
|
33
|
+
//# sourceMappingURL=mailbox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mailbox.d.ts","sourceRoot":"","sources":["../../../src/department/mailbox/mailbox.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAK7E,eAAO,MAAM,YAAY,GAAI,gBAAgB,MAAM,EAAE,YAAY,MAAM,WAEtE,CAAA;AAED,eAAO,MAAM,kCAAkC,GAAI,UAAU,MAAM,kBAQlE,CAAA;AAGD;;;KAGK;AACL,eAAO,MAAM,YAAY,GAAI,WAAW,MAAM,KAAG,cAAc,EA2B9D,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,qBAAqB,GAAI,WAAW,MAAM,KAAG,MAiBzD,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,mBAAmB,CAAC;IACnC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACtC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC/B,CAAA;AA2JD,eAAO,MAAM,8BAA8B,GAAI,KAAK,cAAc,mDAyBjE,CAAC;AA2BF,eAAO,MAAM,WAAW,GAAI,eAAe,MAAM,EAAE,aAAa,MAAM,EAAE,SAAS,MAAM,EAAE,UAAU,kBAAkB,KAAE,cAiFtH,CAAA;AAED,eAAO,MAAM,0BAA0B,GACnC,WAAW,MAAM,EACjB,YAAY,aAAa,EACzB,UAAU;IACN,UAAU,CAAC,EAAE,aAAa,GAAG,aAAa,EAAE,CAAC;IAC7C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,KACF,OAsCF,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type MailboxToolReceipt = {
|
|
2
|
+
action: string;
|
|
3
|
+
userVisible: boolean;
|
|
4
|
+
closedOriginalWork: boolean;
|
|
5
|
+
nextOwner: string;
|
|
6
|
+
nextExpected: string;
|
|
7
|
+
message: string;
|
|
8
|
+
messageId?: string;
|
|
9
|
+
threadId?: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const formatMailboxToolReceipt: (receipt: MailboxToolReceipt) => string;
|
|
12
|
+
//# sourceMappingURL=toolReceipt.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolReceipt.d.ts","sourceRoot":"","sources":["../../../src/department/mailbox/toolReceipt.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,OAAO,CAAC;IACrB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,SAAS,kBAAkB,KAAG,MActE,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export type MailBoxStatus = 'pending' | 'processing' | 'done' | 'failed' | 'cancelled' | 'read';
|
|
2
|
+
export type MailBoxWorkItemRole = 'upstream_request' | 'delegation' | 'executor_result' | 'downstream_reply' | 'upstream_report' | 'followup' | 'message';
|
|
3
|
+
export interface MailBoxMessage {
|
|
4
|
+
id: string;
|
|
5
|
+
toMailboxId: string;
|
|
6
|
+
fromMailboxId: string;
|
|
7
|
+
content: string;
|
|
8
|
+
sendTime: number;
|
|
9
|
+
status: MailBoxStatus;
|
|
10
|
+
originUserId?: string;
|
|
11
|
+
originPlatform?: string;
|
|
12
|
+
threadId?: string;
|
|
13
|
+
parentMessageId?: string;
|
|
14
|
+
workItemId?: string;
|
|
15
|
+
workItemRole?: MailBoxWorkItemRole;
|
|
16
|
+
upstreamMessageId?: string;
|
|
17
|
+
localSandboxPolicy?: string;
|
|
18
|
+
localSandboxAccess?: string;
|
|
19
|
+
}
|
|
20
|
+
export type MailBoxEventType = 'message_sent' | 'message_status_changed' | 'mailbox_listed' | 'message_opened' | 'message_replied' | 'message_discarded' | 'message_followed_up' | 'message_unhandled';
|
|
21
|
+
export interface MailBoxEvent {
|
|
22
|
+
id: string;
|
|
23
|
+
messageId?: string;
|
|
24
|
+
mailboxId: string;
|
|
25
|
+
actorMailboxId?: string;
|
|
26
|
+
counterpartMailboxId?: string;
|
|
27
|
+
eventType: MailBoxEventType;
|
|
28
|
+
detail?: Record<string, unknown>;
|
|
29
|
+
createdAt: number;
|
|
30
|
+
message?: MailBoxMessage | null;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/department/mailbox/types.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,YAAY,GAAG,MAAM,GAAG,QAAQ,GAAG,WAAW,GAAG,MAAM,CAAC;AAChG,MAAM,MAAM,mBAAmB,GACzB,kBAAkB,GAClB,YAAY,GACZ,iBAAiB,GACjB,kBAAkB,GAClB,iBAAiB,GACjB,UAAU,GACV,SAAS,CAAC;AAEhB,MAAM,WAAW,cAAc;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,aAAa,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,mBAAmB,CAAC;IACnC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,MAAM,MAAM,gBAAgB,GACtB,cAAc,GACd,wBAAwB,GACxB,gBAAgB,GAChB,gBAAgB,GAChB,iBAAiB,GACjB,mBAAmB,GACnB,qBAAqB,GACrB,mBAAmB,CAAC;AAE1B,MAAM,WAAW,YAAY;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,SAAS,EAAE,gBAAgB,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,cAAc,GAAG,IAAI,CAAC;CACnC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type DepartmentMemberRole = 'department_head' | 'executor';
|
|
2
|
+
export interface DepartmentDefinition {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
sourceGoalId?: string;
|
|
6
|
+
charter?: string;
|
|
7
|
+
workpath?: string;
|
|
8
|
+
headMemberId?: string;
|
|
9
|
+
departmentMembers: DepartmentMemberDefinition[];
|
|
10
|
+
}
|
|
11
|
+
export interface DepartmentMemberDefinition {
|
|
12
|
+
id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
departmentId: string;
|
|
15
|
+
mailBoxId: string;
|
|
16
|
+
workspaceId: string;
|
|
17
|
+
role?: DepartmentMemberRole;
|
|
18
|
+
focusOn?: string;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/department/types.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,oBAAoB,GAAG,iBAAiB,GAAG,UAAU,CAAC;AAElE,MAAM,WAAW,oBAAoB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iBAAiB,EAAE,0BAA0B,EAAE,CAAC;CACnD;AAED,MAAM,WAAW,0BAA0B;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,oBAAoB,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/department/workspace/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,kBAAkB,EAAE,MAAM,CAAC;CAC9B"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { WorkspaceDefinition } from "./types";
|
|
2
|
+
export declare const getWorkspaceId: (departmentName: string, memberName: string) => string;
|
|
3
|
+
/**
|
|
4
|
+
* 创建工作区对象
|
|
5
|
+
* @return void
|
|
6
|
+
* */
|
|
7
|
+
export declare const createWorkspace: (workspace: WorkspaceDefinition) => void;
|
|
8
|
+
/**
|
|
9
|
+
* 根据id获取工作区对象
|
|
10
|
+
* @param workspaceId 工作区id
|
|
11
|
+
* @returns
|
|
12
|
+
*/
|
|
13
|
+
export declare const getWorkspaceById: (workspaceId: string) => WorkspaceDefinition;
|
|
14
|
+
export declare const listWorkspaces: () => WorkspaceDefinition[];
|
|
15
|
+
export declare const deleteWorkspace: (workspaceId: string) => void;
|
|
16
|
+
//# sourceMappingURL=workspace.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../../../src/department/workspace/workspace.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAG9C,eAAO,MAAM,cAAc,GAAI,gBAAgB,MAAM,EAAE,YAAY,MAAM,WAExE,CAAA;AAED;;;KAGK;AACL,eAAO,MAAM,eAAe,GAAI,WAAW,mBAAmB,KAAG,IAShE,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,GAAI,aAAa,MAAM,KAAE,mBAgBrD,CAAA;AAED,eAAO,MAAM,cAAc,QAAM,mBAAmB,EAenD,CAAA;AAED,eAAO,MAAM,eAAe,GAAI,aAAa,MAAM,KAAE,IAGpD,CAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { DreamHistoryEntry, DreamResult, DreamEngineDeps } from "./types";
|
|
2
|
+
export declare class DreamEngine {
|
|
3
|
+
private readonly storage;
|
|
4
|
+
private readonly dreamStorage;
|
|
5
|
+
private readonly historyStorage?;
|
|
6
|
+
private readonly recallIndexStorage?;
|
|
7
|
+
private readonly stateStorage;
|
|
8
|
+
private readonly llm;
|
|
9
|
+
private readonly historyLimit;
|
|
10
|
+
constructor(deps: DreamEngineDeps);
|
|
11
|
+
/**
|
|
12
|
+
* 检查是否需要做梦,如果需要则执行。
|
|
13
|
+
* 同时更新 lastActivityAt。
|
|
14
|
+
* @returns true 表示执行了做梦,false 表示跳过
|
|
15
|
+
*/
|
|
16
|
+
checkAndDream(userId: string): Promise<boolean>;
|
|
17
|
+
/**
|
|
18
|
+
* 执行一次做梦:读取消息 + 旧梦境 → 调用 LLM → 写入新梦境。
|
|
19
|
+
* @returns 做梦结果,如果跳过则返回 null
|
|
20
|
+
*/
|
|
21
|
+
dream(userId: string): Promise<DreamResult | null>;
|
|
22
|
+
/**
|
|
23
|
+
* 获取梦境注入文本,用于追加到 systemPrompt。
|
|
24
|
+
* @returns 追加到 systemPrompt 末尾的字符串,无梦境则返回空字符串
|
|
25
|
+
*/
|
|
26
|
+
injectDream(userId: string): Promise<string>;
|
|
27
|
+
getDreamHistory(userId: string): Promise<DreamHistoryEntry[]>;
|
|
28
|
+
private getState;
|
|
29
|
+
private appendHistory;
|
|
30
|
+
private upsertRecallIndex;
|
|
31
|
+
/**
|
|
32
|
+
* 读取用户消息,支持旧 key 回退。
|
|
33
|
+
* 优先读新格式 mem:{userId},为空则按日期倒序尝试旧格式 mem:{userId}:{YYYYMMDD}。
|
|
34
|
+
*/
|
|
35
|
+
private readMessagesWithFallback;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=DreamEngine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DreamEngine.d.ts","sourceRoot":"","sources":["../../src/dream/DreamEngine.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAc,WAAW,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAItF,qBAAa,WAAW;IACpB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAqB;IAC7C,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAkB;IAC/C,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAC,CAA+B;IAC/D,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAA8B;IAClE,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAsB;IACnD,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAY;IAChC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAS;gBAE1B,IAAI,EAAE,eAAe;IAYjC;;;;OAIG;IACG,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAoBrD;;;OAGG;IACG,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;IA4DxD;;;OAGG;IACG,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAU5C,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,EAAE,CAAC;YAOrD,QAAQ;YAcR,aAAa;YASb,iBAAiB;IAqB/B;;;OAGG;YACW,wBAAwB;CA2BzC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Message } from "../types/message";
|
|
2
|
+
export declare const DREAM_MAX_TOKENS = 2048;
|
|
3
|
+
export declare const DREAM_MAX_MESSAGE_CHARS = 10000;
|
|
4
|
+
export declare const DREAM_SYSTEM_PROMPT = "\u4F60\u662F Duclaw \u7684\u957F\u671F\u8BB0\u5FC6\u6574\u7406\u5668\u3002\u4F60\u7684\u4EFB\u52A1\u662F\u4ECE\u6700\u8FD1\u5BF9\u8BDD\u548C\u4E0A\u4E00\u6761\u68A6\u5883\u4E2D\u63D0\u70BC\u957F\u671F\u7A33\u5B9A\u4FE1\u606F\uFF0C\u800C\u4E0D\u662F\u603B\u7ED3\u5F53\u524D\u4EFB\u52A1\u8FC7\u7A0B\u3002\n\n\u4F60\u7684\u4EA7\u51FA\u4F1A\u88AB\u6CE8\u5165\u5230 Agent \u7684 systemPrompt \u4E2D\uFF0C\u4F5C\u4E3A\u8DE8\u5929\u957F\u671F\u8BB0\u5FC6\u3002\u5FC5\u987B\u4E25\u683C\u533A\u5206\uFF1A\n- \u5E94\u957F\u671F\u4FDD\u7559\uFF1A\u7A33\u5B9A\u504F\u597D\u3001\u957F\u671F\u7EA6\u675F\u3001\u4ECD\u5728\u8FDB\u884C\u7684\u957F\u671F\u76EE\u6807\u3001\u53CD\u590D\u51FA\u73B0\u7684\u95EE\u9898\u3001\u53EF\u590D\u7528\u7ECF\u9A8C\u3002\n- \u5E94\u9057\u5FD8\uFF1A\u4E00\u6B21\u6027\u4EFB\u52A1\u8FC7\u7A0B\u3001\u5DF2\u5B8C\u6210\u7684\u4E34\u65F6\u4EFB\u52A1\u3001\u957F\u5DE5\u5177\u65E5\u5FD7\u3001\u65E0\u590D\u7528\u4EF7\u503C\u7684\u9519\u8BEF\u8F93\u51FA\u3001\u88AB\u65B0\u4FE1\u606F\u66FF\u4EE3\u7684\u65E7\u4E8B\u5B9E\u3002\n\n\u6838\u5FC3\u539F\u5219\uFF1A\n1. \u8F93\u51FA\u5FC5\u987B\u662F\u7ED3\u6784\u5316 XML \u98CE\u683C\u6587\u672C\uFF0C\u6839\u6807\u7B7E\u4E3A <dream-memory>\u3002\n2. \u63A7\u5236\u5728 1000-1500 \u5B57\u4EE5\u5185\uFF0C\u5B81\u53EF\u5C11\u8BB0\uFF0C\u4E0D\u8981\u591A\u8BB0\u3002\n3. \u4E25\u683C\u57FA\u4E8E\u8F93\u5165\u7684\u5BF9\u8BDD\u8BB0\u5F55\uFF0C\u4E0D\u7F16\u9020\u4EFB\u4F55\u4FE1\u606F\u3002\n4. \u65E7\u68A6\u5883\u4E2D\u4ECD\u7136\u6709\u6548\u7684\u4FE1\u606F\u8981\u4FDD\u7559\uFF1B\u8FC7\u65F6\u6216\u5DF2\u5B8C\u6210\u7684\u4E00\u6B21\u6027\u4FE1\u606F\u8981\u79FB\u5165\"\u5E94\u9057\u5FD8\u7684\u4FE1\u606F\"\u6216\u76F4\u63A5\u5220\u9664\u3002\n5. \u4E0D\u8981\u590D\u5236\u957F\u5DE5\u5177\u7ED3\u679C\uFF0C\u53EA\u63D0\u70BC\u53EF\u590D\u7528\u7ECF\u9A8C\u6216\u4ECD\u6709\u957F\u671F\u4EF7\u503C\u7684\u7ED3\u8BBA\u3002\n6. \u4E0D\u8981\u628A compact summary \u5F53\u4F5C\u5B8C\u6574\u4E8B\u5B9E\u6765\u6E90\uFF1B\u5982\u679C\u51FA\u73B0 compact summary\uFF0C\u53EA\u63D0\u70BC\u5176\u4E2D\u957F\u671F\u6709\u7528\u7684\u4FE1\u606F\u3002\n\n\u8F93\u51FA\u683C\u5F0F\u5FC5\u987B\u662F\uFF1A\n<dream-memory>\n\u7A33\u5B9A\u504F\u597D\uFF1A\n\u957F\u671F\u7EA6\u675F\uFF1A\n\u8FDB\u884C\u4E2D\u7684\u957F\u671F\u76EE\u6807\uFF1A\n\u53CD\u590D\u51FA\u73B0\u7684\u95EE\u9898\uFF1A\n\u53EF\u590D\u7528\u7ECF\u9A8C\uFF1A\n\u5E94\u9057\u5FD8\u7684\u4FE1\u606F\uFF1A\n</dream-memory>\n\n\u5BF9\u8BDD\u8BB0\u5F55\u4E2D\u53EF\u80FD\u51FA\u73B0\u4EE5\u4E0B\u65B9\u62EC\u53F7\u6807\u8BB0\uFF0C\u5B83\u4EEC\u662F Agent \u7684\"\u884C\u52A8\u75D5\u8FF9\"\uFF0C\u8BF7\u7406\u89E3\u5176\u542B\u4E49\u4F46\u4E0D\u8981\u5728\u68A6\u5883\u4E2D\u9010\u5B57\u590D\u8FF0\u8FD9\u4E9B\u6807\u8BB0\uFF1A\n- [\u8C03\u7528\u5DE5\u5177#xxx \u5DE5\u5177\u540D(\u53C2\u6570)]\uFF1AAgent \u4E3B\u52A8\u8C03\u7528\u4E86\u67D0\u4E2A\u5DE5\u5177\n- [\u5DE5\u5177\u7ED3\u679C#xxx: ...]\uFF1A\u8BE5\u5DE5\u5177\u8FD4\u56DE\u7684\u5185\u5BB9\n- [\u56FE\u7247(...)]\uFF1A\u7528\u6237\u6216\u5DE5\u5177\u8F93\u5165\u7684\u56FE\u7247";
|
|
5
|
+
export declare const buildDreamPrompt: (previousDream: string | null, messages: Message[]) => {
|
|
6
|
+
system: string;
|
|
7
|
+
user: string;
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=dreamPrompt.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dreamPrompt.d.ts","sourceRoot":"","sources":["../../src/dream/dreamPrompt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAG3C,eAAO,MAAM,gBAAgB,OAAO,CAAC;AACrC,eAAO,MAAM,uBAAuB,QAAQ,CAAC;AAM7C,eAAO,MAAM,mBAAmB,y/FA2BT,CAAC;AA+CxB,eAAO,MAAM,gBAAgB,GACzB,eAAe,MAAM,GAAG,IAAI,EAC5B,UAAU,OAAO,EAAE,KACpB;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CA2ChC,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { LLMClient } from "../llm/LLMClient";
|
|
2
|
+
import { Storage } from "../storage/Storage";
|
|
3
|
+
import { Message } from "../types/message";
|
|
4
|
+
import { RecallIndexEntry } from "../recall/recallIndex";
|
|
5
|
+
/** 用户梦境状态,存储在 dream:state:{userId} */
|
|
6
|
+
export type DreamState = {
|
|
7
|
+
lastActivityAt: number;
|
|
8
|
+
lastDreamAt: number | null;
|
|
9
|
+
dreamCount: number;
|
|
10
|
+
};
|
|
11
|
+
/** 单条梦境历史,存储在 dream:history:{userId} */
|
|
12
|
+
export type DreamHistoryEntry = {
|
|
13
|
+
id: string;
|
|
14
|
+
content: string;
|
|
15
|
+
createdAt: number;
|
|
16
|
+
sourceMessageCount: number;
|
|
17
|
+
};
|
|
18
|
+
/** 做梦结果 */
|
|
19
|
+
export type DreamResult = {
|
|
20
|
+
dreamContent: string;
|
|
21
|
+
historyEntry: DreamHistoryEntry;
|
|
22
|
+
};
|
|
23
|
+
/** DreamEngine 构造参数 */
|
|
24
|
+
export type DreamEngineDeps = {
|
|
25
|
+
storage: Storage<Message[]>;
|
|
26
|
+
dreamStorage: Storage<string>;
|
|
27
|
+
historyStorage?: Storage<DreamHistoryEntry[]>;
|
|
28
|
+
recallIndexStorage?: Storage<RecallIndexEntry[]>;
|
|
29
|
+
stateStorage: Storage<DreamState>;
|
|
30
|
+
llm: LLMClient;
|
|
31
|
+
historyLimit?: number;
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/dream/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,sCAAsC;AACtC,MAAM,MAAM,UAAU,GAAG;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,wCAAwC;AACxC,MAAM,MAAM,iBAAiB,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,kBAAkB,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF,WAAW;AACX,MAAM,MAAM,WAAW,GAAG;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,iBAAiB,CAAC;CACnC,CAAC;AAEF,uBAAuB;AACvB,MAAM,MAAM,eAAe,GAAG;IAC1B,OAAO,EAAE,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;IAC5B,YAAY,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;IAC9B,cAAc,CAAC,EAAE,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAAC;IAC9C,kBAAkB,CAAC,EAAE,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAAC;IACjD,YAAY,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC;IAClC,GAAG,EAAE,SAAS,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { LLMClient } from "./LLMClient";
|
|
2
|
+
import { LLMMessage } from "./types";
|
|
3
|
+
export type AnthropicOptions = {
|
|
4
|
+
apiKey: string;
|
|
5
|
+
model?: string;
|
|
6
|
+
baseURL?: string;
|
|
7
|
+
maxTokens?: number;
|
|
8
|
+
/** 认证方式: 'x-api-key'(默认,Anthropic标准) 或 'bearer'(Authorization: Bearer, 部分代理需要) */
|
|
9
|
+
authStyle?: 'x-api-key' | 'bearer';
|
|
10
|
+
};
|
|
11
|
+
/** Anthropic适配器 (内部数据类型 ↔ @anthropic-ai/sdk 类型转换 ) */
|
|
12
|
+
export declare const createAnthropicAdapter: (options: AnthropicOptions) => LLMClient;
|
|
13
|
+
export declare const sanitizeToolProtocolMessages: (messages: LLMMessage[]) => LLMMessage[];
|
|
14
|
+
//# sourceMappingURL=AnthropicAdapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AnthropicAdapter.d.ts","sourceRoot":"","sources":["../../src/llm/AnthropicAdapter.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,UAAU,EAAqB,MAAM,SAAS,CAAC;AAIxD,MAAM,MAAM,gBAAgB,GAAG;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kFAAkF;IAClF,SAAS,CAAC,EAAE,WAAW,GAAG,QAAQ,CAAC;CACtC,CAAC;AAEF,sDAAsD;AACtD,eAAO,MAAM,sBAAsB,GAAI,SAAS,gBAAgB,KAAG,SA8ElE,CAAA;AAwED,eAAO,MAAM,4BAA4B,GAAI,UAAU,UAAU,EAAE,KAAG,UAAU,EA+B/E,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Tool } from "../tools";
|
|
2
|
+
import { LLMMessage, LLMResponse } from "./types";
|
|
3
|
+
export interface LLMClient {
|
|
4
|
+
chat(messages: LLMMessage[], system: string, tools?: Tool[], options?: {
|
|
5
|
+
requestId?: string;
|
|
6
|
+
signal?: globalThis.AbortSignal;
|
|
7
|
+
}): Promise<LLMResponse>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=LLMClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LLMClient.d.ts","sourceRoot":"","sources":["../../src/llm/LLMClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAElD,MAAM,WAAW,SAAS;IACtB,IAAI,CAAC,QAAQ,EAAE,UAAU,EAAE,EAAC,MAAM,EAAC,MAAM,EAAE,KAAK,CAAC,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,UAAU,CAAC,WAAW,CAAA;KAAE,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;CACvJ"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Message } from "../types/message";
|
|
2
|
+
import { LLMUsage } from "../types/usage";
|
|
3
|
+
export type LLMMessage = Message;
|
|
4
|
+
/**
|
|
5
|
+
* stopReason:
|
|
6
|
+
* end_turn: 正常结束回合
|
|
7
|
+
* max_tokens: 达到最大token限制
|
|
8
|
+
* tool_use: 需要调用工具
|
|
9
|
+
* stop_sequence: 遇到停止序列
|
|
10
|
+
* pause_turn: 工具调用后暂停,等待工具结束
|
|
11
|
+
* refusal: Claude 拒绝回答时(比如安全政策、非法请求)
|
|
12
|
+
*/
|
|
13
|
+
export type LLMResponse = {
|
|
14
|
+
role: `assistant`;
|
|
15
|
+
content: Array<{
|
|
16
|
+
type: `text`;
|
|
17
|
+
text: string;
|
|
18
|
+
} | {
|
|
19
|
+
type: `thinking`;
|
|
20
|
+
thinking: string;
|
|
21
|
+
signature?: string;
|
|
22
|
+
} | {
|
|
23
|
+
type: `tool_use`;
|
|
24
|
+
id: string;
|
|
25
|
+
name: string;
|
|
26
|
+
input: Record<string, unknown>;
|
|
27
|
+
}>;
|
|
28
|
+
stopReason: `end_turn` | `max_tokens` | `tool_use` | `stop_sequence` | `pause_turn` | `refusal` | `model_context_window_exceeded`;
|
|
29
|
+
usage?: LLMUsage;
|
|
30
|
+
providerResponseId?: string;
|
|
31
|
+
model?: string;
|
|
32
|
+
};
|
|
33
|
+
export type Tool = {
|
|
34
|
+
name: string;
|
|
35
|
+
description: string;
|
|
36
|
+
input_schema: {
|
|
37
|
+
type: `object`;
|
|
38
|
+
properties: Record<string, unknown>;
|
|
39
|
+
required?: string[];
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/llm/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,MAAM,MAAM,UAAU,GAAG,OAAO,CAAC;AAEjC;;;;;;;;GAQG;AACH,MAAM,MAAM,WAAW,GAAG;IACtB,IAAI,EAAE,WAAW,CAAC;IAClB,OAAO,EAAE,KAAK,CACR;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAC,GAC7B;QAAE,IAAI,EAAE,UAAU,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAC,GACzD;QAAE,IAAI,EAAE,UAAU,CAAC;QAAC,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAC,OAAO,CAAC,CAAA;KAAC,CACjF,CAAC;IACF,UAAU,EAAE,UAAU,GAAG,YAAY,GAAG,UAAU,GAAG,eAAe,GAAG,YAAY,GAAG,SAAS,GAAG,+BAA+B,CAAC;IAClI,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,IAAI,GAAG;IACf,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE;QACV,IAAI,EAAE,QAAQ,CAAC;QACf,UAAU,EAAE,MAAM,CAAC,MAAM,EAAC,OAAO,CAAC,CAAC;QACnC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;KACvB,CAAC;CACL,CAAC"}
|