@qqbrowser/qbot-dsh 0.1.0 → 0.1.2
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/cordis.patch.yml +50 -0
- package/lib/args-w1okyL78.js +9 -0
- package/lib/bin.js +1 -2
- package/lib/client.js +1 -0
- package/lib/content-review-CqDoh3wY.js +1 -0
- package/lib/content-review.js +1 -0
- package/lib/dump-config-CIL0Goqj.js +1 -0
- package/lib/gateway-port-CSFbDyoZ.js +1 -0
- package/lib/index.js +1 -0
- package/lib/llm-gateway-openai.js +17 -0
- package/lib/native-protocol-DdrIh89-.js +2 -0
- package/lib/{plugin-DNAeLZbb.js → plugin-viWCLnSr.js} +1 -1
- package/lib/profile-boot-CxJUSdnu.js +1 -0
- package/lib/profile-boot-DCgBQ4qO.js +8 -0
- package/lib/qb-auth-C2ofR1zn.js +4 -0
- package/lib/qb-auth.js +1 -0
- package/lib/web-search-dsh.js +1 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-cjs/index.js +7 -2
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +3 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +3 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/package.json +1 -1
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-cjs/index.js +7 -2
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +3 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +3 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/package.json +1 -1
- package/node_modules/@deepseek-ai/cordis-plugin-hmr/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-agent/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-agent-default-model/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-agent-instructions/lib/index.js +3 -3
- package/node_modules/@deepseek-ai/dsh-agent-instructions/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-agent-loop/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-agent-presets/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-anonymous-user-id/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-api-gateway/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-api-remotes/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-app-boot/lib/index.js +12 -12
- package/node_modules/@deepseek-ai/dsh-app-boot/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-atomic-write/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-attachment/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-attachment-local/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-attachment-local/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-base/cordis.patch.yml +6 -37
- package/node_modules/@deepseek-ai/dsh-base/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-bash-local/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-bash-sandbox/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-brand/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-connection/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-hmr/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-locale/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-locale/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-modules/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-runtime/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-schema-form/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-attachment/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/client.js +8 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-cordis/lib/client.js +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-cordis/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-goal/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-goal/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-jobs/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-jobs/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-layout/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-layout/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-plan/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-plan/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/client.js +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-skill/lib/client.js +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-skill/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-slots/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/client.js +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/lib/client.js +14 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-web/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-web-react/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-cmdline/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-cmdline/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-code-runtime/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-code-runtime-worker-thread/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-command-compact/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-command-feedback/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-command-goal/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-commands/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-compaction/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-compaction-basic/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-compaction-tool-result-pruner/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-cordis-client-runner/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-credentials/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-credentials-local/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-credentials-local/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-fs/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-fs-local/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-fs-observation-policy/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-fs-sandbox/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-goal/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-goal-round-driver/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-headless/lib/index.js +4 -4
- package/node_modules/@deepseek-ai/dsh-headless/lib/startup.js +3 -3
- package/node_modules/@deepseek-ai/dsh-headless/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-home-paths/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-home-paths/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-host-apiproxy/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-host-directory-picker/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-browse/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-host-frontend-static/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-host-webserver/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-host-webserver/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-invariants/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-jobs/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-jobs-local/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-launch-environment/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-llm/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-llm-deepseek/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-llm-retry/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-mcp-client/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-message-feedback/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-native-command/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-output-retention/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-permission-presets/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-persona/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-plan-mode/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-pwsh-local/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-sandbox/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-sandbox-local/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-sandbox-policy/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/runner.js +1 -1
- package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-schedule/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-scope/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-session/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-session-checkpoint-policy/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-session-log-export/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-session-log-export/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-session-persistence/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-session-projection/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-session-projection-cache/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-session-query/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-session-query-sqlite/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-session-reference/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-session-stats/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-session-telemetry/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-session-title/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-session-title-first-prompt-llm/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-session-title-llm/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-settings/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-settings-file/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-shell/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-shell-env/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-shell-env/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-skill/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-skill-badge/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-skill-filesystem/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-spill/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-spill-local/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-spill-policy/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-storage/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-storage-domain/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-storage-json/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-subagent/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-subagent-in-process-driver/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-subprocess/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-subprocess/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-subprocess-local/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-system-prompt/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-terminal/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-terminal-bash/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-time-context/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-timeout/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tmux-context/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-token-meter/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-ask-user/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-bash/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-call-timeout-policy/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/index.js +5 -29
- package/node_modules/@deepseek-ai/dsh-tool-cordis/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-fs/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-fs-search/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-goal/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-jobs/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-pwsh/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-ralph/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-skill/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-subagent/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-subagent-report/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-todo/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-web/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-workflow/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tools/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-typert-loader/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-typert-protocol/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-typert-registry/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-user-approval/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-user-questions/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-web/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-web/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-web-app/cordis.patch.yml +0 -1
- package/node_modules/@deepseek-ai/dsh-web-app/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-web-app/lib/startup.js +4 -5
- package/node_modules/@deepseek-ai/dsh-web-app/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-web-frontend/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-web-search-deepseek/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-workflow/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-workflow-worker-thread/lib/worker.cjs +9 -8
- package/node_modules/@deepseek-ai/dsh-workflow-worker-thread/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-workspace/package.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.js +5 -5
- package/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.js +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.js +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.js +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.js +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.js +3 -3
- package/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.js +4 -4
- package/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.js +5 -5
- package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses-shared.js +6 -6
- package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.js +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/openrouter-images.js +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.js +2 -2
- package/node_modules/@earendil-works/pi-ai/dist/api/simple-options.js +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/openrouter.js +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/auth/resolve.js +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/.manifest.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/cloudflare-ai-gateway.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/fireworks.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/github-copilot.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/huggingface.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/nvidia.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/openrouter.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/qwen-token-plan-cn.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/qwen-token-plan.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/together.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/vercel-ai-gateway.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/zai-coding-cn.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/zai.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/faux.js +5 -5
- package/node_modules/@earendil-works/pi-ai/package.json +1 -1
- package/node_modules/@koromix/koffi-darwin-arm64/darwin_arm64/koffi.node +0 -0
- package/node_modules/@koromix/koffi-darwin-arm64/package.json +1 -1
- package/node_modules/@koromix/koffi-darwin-x64/darwin_x64/koffi.node +0 -0
- package/node_modules/@koromix/koffi-darwin-x64/package.json +1 -1
- package/node_modules/@koromix/koffi-win32-x64/package.json +1 -1
- package/node_modules/@koromix/koffi-win32-x64/win32_x64/koffi.node +0 -0
- package/node_modules/@smithy/core/dist-cjs/index.js +3 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +126 -39
- package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +14 -3
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +3 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +3 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +10 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +10 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +16 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +4 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +4 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +4 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +4 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +4 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +7 -0
- package/node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/DefaultIdentityProviderConfig.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-decode.js +29 -13
- package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-encode.js +12 -4
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeDeserializer.js +9 -0
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeSerializer.js +7 -0
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeDeserializer2.js +44 -15
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeSerializer2.js +22 -4
- package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +5 -0
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/extensions/checksum.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/get-value-from-text-node.js +4 -1
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/object-mapping.js +6 -1
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/serde-json.js +4 -1
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/resolveEndpoint.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +7 -0
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/HeaderMarshaller.js +4 -1
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +9 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +5 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/parseRetryAfterHeader.js +4 -1
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.browser.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.native.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/parse-utils.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/transport/hasOwn.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/transport/index.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/transport/toEndpointV1.js +3 -0
- package/node_modules/@smithy/core/package.json +1 -1
- package/node_modules/@smithy/signature-v4/dist-cjs/index.js +19 -7
- package/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js +4 -1
- package/node_modules/@smithy/signature-v4/dist-es/getCanonicalQuery.js +4 -1
- package/node_modules/@smithy/signature-v4/dist-es/getPayloadHash.js +4 -1
- package/node_modules/@smithy/signature-v4/dist-es/headerUtil.js +10 -3
- package/node_modules/@smithy/signature-v4/dist-es/moveHeadersToQuery.js +4 -1
- package/node_modules/@smithy/signature-v4/dist-es/prepareRequest.js +4 -1
- package/node_modules/@smithy/signature-v4/package.json +1 -1
- package/node_modules/koffi/package.json +1 -1
- package/node_modules/koffi/src/koffi/index.cjs +1 -1
- package/node_modules/koffi/src/koffi/index.js +1 -1
- package/node_modules/koffi/src/koffi/indirect.cjs +1 -1
- package/node_modules/koffi/src/koffi/indirect.js +1 -1
- package/node_modules/negotiator/lib/accept.js +54 -0
- package/node_modules/negotiator/lib/charset.js +10 -34
- package/node_modules/negotiator/lib/encoding.js +9 -30
- package/node_modules/negotiator/lib/language.js +15 -36
- package/node_modules/negotiator/lib/mediaType.js +16 -134
- package/node_modules/negotiator/node_modules/content-type/LICENSE +22 -0
- package/node_modules/negotiator/node_modules/content-type/dist/index.js +176 -0
- package/node_modules/negotiator/node_modules/content-type/package.json +1 -0
- package/node_modules/negotiator/package.json +1 -1
- package/node_modules/typebox/build/compile/validator.mjs +1 -1
- package/node_modules/typebox/build/format/_idna.mjs +1 -1
- package/node_modules/typebox/build/format/_puny.mjs +1 -1
- package/node_modules/typebox/build/format/uuid.mjs +1 -1
- package/node_modules/typebox/build/guard/emit.mjs +1 -1
- package/node_modules/typebox/build/guard/guard.mjs +1 -1
- package/node_modules/typebox/build/guard/string.mjs +1 -1
- package/node_modules/typebox/build/schema/engine/_functions.mjs +1 -1
- package/node_modules/typebox/build/schema/engine/_guard.mjs +1 -0
- package/node_modules/typebox/build/schema/engine/boolean.mjs +1 -1
- package/node_modules/typebox/build/schema/engine/index.mjs +1 -1
- package/node_modules/typebox/build/schema/engine/schema.mjs +1 -1
- package/node_modules/typebox/build/schema/engine/type.mjs +1 -1
- package/node_modules/typebox/build/schema/types/_guard.mjs +1 -0
- package/node_modules/typebox/build/schema/types/index.mjs +1 -1
- package/node_modules/typebox/build/schema/types/schema.mjs +1 -1
- package/node_modules/typebox/build/system/locale/ar_001.mjs +1 -1
- package/node_modules/typebox/build/system/locale/bn_BD.mjs +1 -1
- package/node_modules/typebox/build/system/locale/cs_CZ.mjs +1 -1
- package/node_modules/typebox/build/system/locale/de_DE.mjs +1 -1
- package/node_modules/typebox/build/system/locale/el_GR.mjs +1 -1
- package/node_modules/typebox/build/system/locale/en_US.mjs +1 -1
- package/node_modules/typebox/build/system/locale/es_419.mjs +1 -1
- package/node_modules/typebox/build/system/locale/es_AR.mjs +1 -1
- package/node_modules/typebox/build/system/locale/es_ES.mjs +1 -1
- package/node_modules/typebox/build/system/locale/es_MX.mjs +1 -1
- package/node_modules/typebox/build/system/locale/fa_IR.mjs +1 -1
- package/node_modules/typebox/build/system/locale/fil_PH.mjs +1 -1
- package/node_modules/typebox/build/system/locale/fr_CA.mjs +1 -1
- package/node_modules/typebox/build/system/locale/fr_FR.mjs +1 -1
- package/node_modules/typebox/build/system/locale/ha_NG.mjs +1 -1
- package/node_modules/typebox/build/system/locale/hi_IN.mjs +1 -1
- package/node_modules/typebox/build/system/locale/hu_HU.mjs +1 -1
- package/node_modules/typebox/build/system/locale/id_ID.mjs +1 -1
- package/node_modules/typebox/build/system/locale/it_IT.mjs +1 -1
- package/node_modules/typebox/build/system/locale/ja_JP.mjs +1 -1
- package/node_modules/typebox/build/system/locale/ko_KR.mjs +1 -1
- package/node_modules/typebox/build/system/locale/ms_MY.mjs +1 -1
- package/node_modules/typebox/build/system/locale/nl_NL.mjs +1 -1
- package/node_modules/typebox/build/system/locale/pl_PL.mjs +1 -1
- package/node_modules/typebox/build/system/locale/pt_BR.mjs +1 -1
- package/node_modules/typebox/build/system/locale/pt_PT.mjs +1 -1
- package/node_modules/typebox/build/system/locale/ro_RO.mjs +1 -1
- package/node_modules/typebox/build/system/locale/ru_RU.mjs +1 -1
- package/node_modules/typebox/build/system/locale/sv_SE.mjs +1 -1
- package/node_modules/typebox/build/system/locale/sw_TZ.mjs +1 -1
- package/node_modules/typebox/build/system/locale/th_TH.mjs +1 -1
- package/node_modules/typebox/build/system/locale/tr_TR.mjs +1 -1
- package/node_modules/typebox/build/system/locale/uk_UA.mjs +1 -1
- package/node_modules/typebox/build/system/locale/ur_PK.mjs +1 -1
- package/node_modules/typebox/build/system/locale/vi_VN.mjs +1 -1
- package/node_modules/typebox/build/system/locale/yo_NG.mjs +1 -1
- package/node_modules/typebox/build/system/locale/zh_Hans.mjs +1 -1
- package/node_modules/typebox/build/system/locale/zh_Hant.mjs +1 -1
- package/node_modules/typebox/build/system/memory/clone.mjs +1 -1
- package/node_modules/typebox/build/system/settings/settings.mjs +1 -1
- package/node_modules/typebox/build/type/action/_optional.mjs +1 -0
- package/node_modules/typebox/build/type/action/_readonly.mjs +1 -0
- package/node_modules/typebox/build/type/action/awaited.mjs +1 -0
- package/node_modules/typebox/build/type/action/conditional.mjs +1 -1
- package/node_modules/typebox/build/type/action/index.mjs +1 -1
- package/node_modules/typebox/build/type/action/mapped.mjs +1 -1
- package/node_modules/typebox/build/type/action/module.mjs +1 -1
- package/node_modules/typebox/build/type/action/options.mjs +1 -0
- package/node_modules/typebox/build/type/engine/awaited/instantiate.mjs +1 -0
- package/node_modules/typebox/build/type/engine/call/distribute_arguments.mjs +1 -1
- package/node_modules/typebox/build/type/engine/call/instantiate.mjs +1 -1
- package/node_modules/typebox/build/type/engine/call/resolve_arguments.mjs +1 -1
- package/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.mjs +1 -1
- package/node_modules/typebox/build/type/engine/cyclic/candidates.mjs +1 -1
- package/node_modules/typebox/build/type/engine/cyclic/check.mjs +1 -1
- package/node_modules/typebox/build/type/engine/cyclic/dependencies.mjs +1 -1
- package/node_modules/typebox/build/type/engine/cyclic/extends.mjs +1 -1
- package/node_modules/typebox/build/type/engine/cyclic/instantiate.mjs +1 -1
- package/node_modules/typebox/build/type/engine/enum/enum_to_union.mjs +1 -0
- package/node_modules/typebox/build/type/engine/enum/index.mjs +1 -1
- package/node_modules/typebox/build/type/engine/evaluate/broaden.mjs +1 -1
- package/node_modules/typebox/build/type/engine/evaluate/composite.mjs +1 -1
- package/node_modules/typebox/build/type/engine/evaluate/distribute.mjs +1 -1
- package/node_modules/typebox/build/type/engine/evaluate/evaluate.mjs +1 -1
- package/node_modules/typebox/build/type/engine/exclude/operation.mjs +1 -1
- package/node_modules/typebox/build/type/engine/extract/operation.mjs +1 -1
- package/node_modules/typebox/build/type/engine/index.mjs +1 -1
- package/node_modules/typebox/build/type/engine/indexable/from_enum.mjs +1 -1
- package/node_modules/typebox/build/type/engine/indexable/from_template_literal.mjs +1 -1
- package/node_modules/typebox/build/type/engine/indexable/from_type.mjs +1 -1
- package/node_modules/typebox/build/type/engine/indexed/instantiate.mjs +1 -1
- package/node_modules/typebox/build/type/engine/instantiate.mjs +1 -1
- package/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.mjs +1 -1
- package/node_modules/typebox/build/type/engine/keyof/instantiate.mjs +1 -1
- package/node_modules/typebox/build/type/engine/mapped/mapped_operation.mjs +1 -1
- package/node_modules/typebox/build/type/engine/mapped/mapped_variants.mjs +1 -1
- package/node_modules/typebox/build/type/engine/module/instantiate.mjs +1 -1
- package/node_modules/typebox/build/type/engine/object/from_type.mjs +1 -1
- package/node_modules/typebox/build/type/engine/object/from_union.mjs +1 -1
- package/node_modules/typebox/build/type/engine/options/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/options/instantiate.mjs +1 -0
- package/node_modules/typebox/build/type/engine/parameters/instantiate.mjs +1 -1
- package/node_modules/typebox/build/type/engine/partial/from_intersect.mjs +1 -1
- package/node_modules/typebox/build/type/engine/partial/from_object.mjs +1 -1
- package/node_modules/typebox/build/type/engine/partial/from_type.mjs +1 -1
- package/node_modules/typebox/build/type/engine/readonly_object/from_array.mjs +1 -1
- package/node_modules/typebox/build/type/engine/readonly_object/from_intersect.mjs +1 -1
- package/node_modules/typebox/build/type/engine/readonly_object/from_object.mjs +1 -1
- package/node_modules/typebox/build/type/engine/readonly_object/from_tuple.mjs +1 -1
- package/node_modules/typebox/build/type/engine/readonly_object/from_type.mjs +1 -1
- package/node_modules/typebox/build/type/engine/record/from_key_enum.mjs +1 -1
- package/node_modules/typebox/build/type/engine/record/from_key_template_literal.mjs +1 -1
- package/node_modules/typebox/build/type/engine/ref/instantiate.mjs +1 -1
- package/node_modules/typebox/build/type/engine/required/from_intersect.mjs +1 -1
- package/node_modules/typebox/build/type/engine/required/from_object.mjs +1 -1
- package/node_modules/typebox/build/type/engine/required/from_type.mjs +1 -1
- package/node_modules/typebox/build/type/engine/template_literal/decode.mjs +1 -1
- package/node_modules/typebox/build/type/engine/template_literal/encode.mjs +1 -1
- package/node_modules/typebox/build/type/engine/template_literal/is_finite.mjs +1 -1
- package/node_modules/typebox/build/type/engine/this/expand_this.mjs +1 -1
- package/node_modules/typebox/build/type/extends/async_iterator.mjs +1 -0
- package/node_modules/typebox/build/type/extends/enum.mjs +1 -1
- package/node_modules/typebox/build/type/extends/extends_left.mjs +1 -1
- package/node_modules/typebox/build/type/extends/extends_right.mjs +1 -1
- package/node_modules/typebox/build/type/extends/inference.mjs +1 -1
- package/node_modules/typebox/build/type/extends/iterator.mjs +1 -0
- package/node_modules/typebox/build/type/extends/object.mjs +1 -1
- package/node_modules/typebox/build/type/extends/parameters.mjs +1 -1
- package/node_modules/typebox/build/type/extends/promise.mjs +1 -0
- package/node_modules/typebox/build/type/extends/template_literal.mjs +1 -1
- package/node_modules/typebox/build/type/extends/tuple.mjs +1 -1
- package/node_modules/typebox/build/type/extends/union.mjs +1 -1
- package/node_modules/typebox/build/type/script/mapping.mjs +1 -1
- package/node_modules/typebox/build/type/script/parser.mjs +6 -6
- package/node_modules/typebox/build/type/script/script.mjs +1 -1
- package/node_modules/typebox/build/type/script/token/internal/guard.mjs +1 -1
- package/node_modules/typebox/build/type/script/token/until.mjs +1 -1
- package/node_modules/typebox/build/type/types/_immutable.mjs +1 -1
- package/node_modules/typebox/build/type/types/_optional.mjs +1 -1
- package/node_modules/typebox/build/type/types/_readonly.mjs +1 -1
- package/node_modules/typebox/build/type/types/_refine.mjs +1 -1
- package/node_modules/typebox/build/type/types/async_iterator.mjs +1 -0
- package/node_modules/typebox/build/type/types/base.mjs +1 -0
- package/node_modules/typebox/build/type/types/call.mjs +1 -1
- package/node_modules/typebox/build/type/types/deferred.mjs +1 -1
- package/node_modules/typebox/build/type/types/enum.mjs +1 -1
- package/node_modules/typebox/build/type/types/index.mjs +1 -1
- package/node_modules/typebox/build/type/types/iterator.mjs +1 -0
- package/node_modules/typebox/build/type/types/number.mjs +1 -1
- package/node_modules/typebox/build/type/types/promise.mjs +1 -0
- package/node_modules/typebox/build/type/types/record.mjs +1 -1
- package/node_modules/typebox/build/typebox.mjs +1 -1
- package/node_modules/typebox/build/value/clean/clean.mjs +1 -1
- package/node_modules/typebox/build/value/clean/from_base.mjs +1 -0
- package/node_modules/typebox/build/value/clean/from_intersect.mjs +1 -1
- package/node_modules/typebox/build/value/clean/from_type.mjs +1 -1
- package/node_modules/typebox/build/value/clean/from_union.mjs +1 -1
- package/node_modules/typebox/build/value/clone/clone.mjs +1 -1
- package/node_modules/typebox/build/value/codec/decode.mjs +1 -1
- package/node_modules/typebox/build/value/codec/encode.mjs +1 -1
- package/node_modules/typebox/build/value/codec/from_array.mjs +1 -1
- package/node_modules/typebox/build/value/codec/from_object.mjs +1 -1
- package/node_modules/typebox/build/value/codec/from_record.mjs +1 -1
- package/node_modules/typebox/build/value/codec/from_tuple.mjs +1 -1
- package/node_modules/typebox/build/value/codec/from_union.mjs +1 -1
- package/node_modules/typebox/build/value/convert/from_base.mjs +1 -0
- package/node_modules/typebox/build/value/convert/from_enum.mjs +1 -1
- package/node_modules/typebox/build/value/convert/from_template_literal.mjs +1 -1
- package/node_modules/typebox/build/value/convert/from_type.mjs +1 -1
- package/node_modules/typebox/build/value/create/from_async_iterator.mjs +1 -0
- package/node_modules/typebox/build/value/create/from_base.mjs +1 -0
- package/node_modules/typebox/build/value/create/from_enum.mjs +1 -1
- package/node_modules/typebox/build/value/create/from_iterator.mjs +1 -0
- package/node_modules/typebox/build/value/create/from_promise.mjs +1 -0
- package/node_modules/typebox/build/value/create/from_type.mjs +1 -1
- package/node_modules/typebox/build/value/default/from_base.mjs +1 -0
- package/node_modules/typebox/build/value/default/from_object.mjs +1 -1
- package/node_modules/typebox/build/value/default/from_type.mjs +1 -1
- package/node_modules/typebox/build/value/index.mjs +1 -1
- package/node_modules/typebox/build/value/mutate/error.mjs +1 -0
- package/node_modules/typebox/build/value/mutate/from_array.mjs +1 -0
- package/node_modules/typebox/build/value/mutate/from_object.mjs +1 -0
- package/node_modules/typebox/build/value/mutate/from_unknown.mjs +1 -0
- package/node_modules/typebox/build/value/mutate/from_value.mjs +1 -0
- package/node_modules/typebox/build/value/mutate/index.mjs +1 -0
- package/node_modules/typebox/build/value/mutate/mutate.mjs +1 -0
- package/node_modules/typebox/build/value/repair/from_base.mjs +1 -0
- package/node_modules/typebox/build/value/repair/from_enum.mjs +1 -1
- package/node_modules/typebox/build/value/repair/from_type.mjs +1 -1
- package/node_modules/typebox/build/value/shared/union_priority_sort.mjs +1 -1
- package/node_modules/typebox/build/value/value.mjs +1 -1
- package/node_modules/typebox/package.json +1 -1
- package/package.json +1 -1
- package/lib/args-DcHS9iff.js +0 -9
- package/lib/dump-config-xQTUTTDD.js +0 -1
- package/lib/profile-boot-BkordgJK.js +0 -1
- package/lib/profile-boot-DDo03lXi.js +0 -8
- package/node_modules/@deepseek-ai/dsh-content-review/LICENSE +0 -21
- package/node_modules/@deepseek-ai/dsh-content-review/lib/index.js +0 -1
- package/node_modules/@deepseek-ai/dsh-content-review/lib/invariant.js +0 -1
- package/node_modules/@deepseek-ai/dsh-content-review/package.json +0 -1
- package/node_modules/@deepseek-ai/dsh-home-quarantine-macos/LICENSE +0 -21
- package/node_modules/@deepseek-ai/dsh-home-quarantine-macos/lib/index.js +0 -1
- package/node_modules/@deepseek-ai/dsh-home-quarantine-macos/lib/invariant.js +0 -1
- package/node_modules/@deepseek-ai/dsh-home-quarantine-macos/package.json +0 -1
- package/node_modules/@deepseek-ai/dsh-llm-gateway-openai/LICENSE +0 -21
- package/node_modules/@deepseek-ai/dsh-llm-gateway-openai/lib/index.js +0 -17
- package/node_modules/@deepseek-ai/dsh-llm-gateway-openai/lib/invariant.js +0 -1
- package/node_modules/@deepseek-ai/dsh-llm-gateway-openai/package.json +0 -1
- package/node_modules/@deepseek-ai/dsh-qb-auth/LICENSE +0 -21
- package/node_modules/@deepseek-ai/dsh-qb-auth/lib/index.js +0 -4
- package/node_modules/@deepseek-ai/dsh-qb-auth/lib/invariant.js +0 -1
- package/node_modules/@deepseek-ai/dsh-qb-auth/package.json +0 -1
- package/node_modules/@deepseek-ai/dsh-web-search-dsh/LICENSE +0 -21
- package/node_modules/@deepseek-ai/dsh-web-search-dsh/lib/index.js +0 -1
- package/node_modules/@deepseek-ai/dsh-web-search-dsh/lib/invariant.js +0 -1
- package/node_modules/@deepseek-ai/dsh-web-search-dsh/package.json +0 -1
- package/node_modules/@napi-rs/xattr/LICENSE +0 -21
- package/node_modules/@napi-rs/xattr/index.js +0 -567
- package/node_modules/@napi-rs/xattr/package.json +0 -1
- package/node_modules/@napi-rs/xattr-darwin-arm64/package.json +0 -1
- package/node_modules/@napi-rs/xattr-darwin-arm64/xattr.darwin-arm64.node +0 -0
- package/node_modules/@napi-rs/xattr-darwin-x64/package.json +0 -1
- package/node_modules/@napi-rs/xattr-darwin-x64/xattr.darwin-x64.node +0 -0
- package/node_modules/@parcel/watcher/LICENSE +0 -21
- package/node_modules/@parcel/watcher/index.js +0 -44
- package/node_modules/@parcel/watcher/index.js.flow +0 -45
- package/node_modules/@parcel/watcher/package.json +0 -1
- package/node_modules/@parcel/watcher/scripts/build-from-source.js +0 -16
- package/node_modules/@parcel/watcher/wrapper.js +0 -88
- package/node_modules/@parcel/watcher-darwin-arm64/LICENSE +0 -21
- package/node_modules/@parcel/watcher-darwin-arm64/package.json +0 -1
- package/node_modules/@parcel/watcher-darwin-arm64/watcher.node +0 -0
- package/node_modules/@parcel/watcher-darwin-x64/LICENSE +0 -21
- package/node_modules/@parcel/watcher-darwin-x64/package.json +0 -1
- package/node_modules/@parcel/watcher-darwin-x64/watcher.node +0 -0
- package/node_modules/@parcel/watcher-win32-x64/LICENSE +0 -21
- package/node_modules/@parcel/watcher-win32-x64/package.json +0 -1
- package/node_modules/@parcel/watcher-win32-x64/watcher.node +0 -0
- package/node_modules/is-extglob/LICENSE +0 -21
- package/node_modules/is-extglob/index.js +0 -20
- package/node_modules/is-extglob/package.json +0 -1
- package/node_modules/is-glob/LICENSE +0 -21
- package/node_modules/is-glob/index.js +0 -150
- package/node_modules/is-glob/package.json +0 -1
- package/node_modules/typebox/build/type/action/_add_immutable.mjs +0 -1
- package/node_modules/typebox/build/type/action/_add_optional.mjs +0 -1
- package/node_modules/typebox/build/type/action/_add_readonly.mjs +0 -1
- package/node_modules/typebox/build/type/action/_remove_immutable.mjs +0 -1
- package/node_modules/typebox/build/type/action/_remove_optional.mjs +0 -1
- package/node_modules/typebox/build/type/action/_remove_readonly.mjs +0 -1
- package/node_modules/typebox/build/type/action/with.mjs +0 -1
- package/node_modules/typebox/build/type/engine/immutable/instantiate_add.mjs +0 -1
- package/node_modules/typebox/build/type/engine/immutable/instantiate_remove.mjs +0 -1
- package/node_modules/typebox/build/type/engine/indexable/from_dependent.mjs +0 -1
- package/node_modules/typebox/build/type/engine/object/from_dependent.mjs +0 -1
- package/node_modules/typebox/build/type/engine/optional/instantiate_add.mjs +0 -1
- package/node_modules/typebox/build/type/engine/optional/instantiate_remove.mjs +0 -1
- package/node_modules/typebox/build/type/engine/partial/from_dependent.mjs +0 -1
- package/node_modules/typebox/build/type/engine/priority/index.mjs +0 -1
- package/node_modules/typebox/build/type/engine/priority/priority.mjs +0 -1
- package/node_modules/typebox/build/type/engine/readonly/instantiate_add.mjs +0 -1
- package/node_modules/typebox/build/type/engine/readonly/instantiate_remove.mjs +0 -1
- package/node_modules/typebox/build/type/engine/readonly_object/from_dependent.mjs +0 -1
- package/node_modules/typebox/build/type/engine/required/from_dependent.mjs +0 -1
- package/node_modules/typebox/build/type/engine/with/instantiate.mjs +0 -1
- package/node_modules/typebox/build/type/extends/dependent.mjs +0 -1
- package/node_modules/typebox/build/type/extends/record.mjs +0 -1
- package/node_modules/typebox/build/type/types/dependent.mjs +0 -1
- /package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/{types-D2_FQYSK.js → types-DE3U0cmQ.js} +0 -0
- /package/node_modules/typebox/build/type/engine/{with → awaited}/index.mjs +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var Ge=Object.defineProperty;var r=(e,t)=>Ge(e,"name",{value:t,configurable:!0});import{isDeepStrictEqual as ge}from"node:util";import{assertNever as we,createUserMessage as J}from"@deepseek-ai/dsh-llm";import{basename as Ke,dirname as z,isAbsolute as Se,join as G,relative as ne,resolve as j}from"node:path";import R from"@deepseek-ai/schemastery";import{dshHomeDisplay as
|
|
1
|
+
var Ge=Object.defineProperty;var r=(e,t)=>Ge(e,"name",{value:t,configurable:!0});import{isDeepStrictEqual as ge}from"node:util";import{assertNever as we,createUserMessage as J}from"@deepseek-ai/dsh-llm";import{basename as Ke,dirname as z,isAbsolute as Se,join as G,relative as ne,resolve as j}from"node:path";import R from"@deepseek-ai/schemastery";import{dshHomeDisplay as Ve,resolveDshHome as qe}from"@deepseek-ai/dsh-home-paths";import{createReadStream as Ye}from"node:fs";import{stat as Pe}from"node:fs/promises";import{createHash as Xe}from"node:crypto";const ke=[".git"],Ie=["AGENTS.md","CLAUDE.md"],Te=["AGENTS.local.md","CLAUDE.local.md"],Ee=1048576,Je=new Set(["",".",".."]),Qe=R.object({dshHome:R.string(),projectRootMarkers:R.array(R.string()).default([...ke]),maxBytes:R.number().required(),maxSourceBytes:R.number().step(1).min(1).default(Ee),instructionFileCandidates:R.array(R.string()).default([...Ie]),localInstructionFileCandidates:R.array(R.string()).default([...Te])});function Ze(e,t,n){return JSON.stringify({projectRoot:ne(t,n),projectRootMarkers:e.projectRootMarkers,maxBytes:e.maxBytes,maxSourceBytes:e.maxSourceBytes,instructionFileCandidates:e.instructionFileCandidates,localInstructionFileCandidates:e.localInstructionFileCandidates})}r(Ze,"workspaceBaselineIdentity");function Ce(e){return{...Ae(e),maxBytes:e.maxBytes,maxSourceBytes:e.maxSourceBytes??Ee}}r(Ce,"resolveConfig");function Ae(e){return{dshHome:qe(e.dshHome),projectRootMarkers:e.projectRootMarkers??[...ke],instructionFileCandidates:xe(e.instructionFileCandidates,Ie),localInstructionFileCandidates:xe(e.localInstructionFileCandidates,Te)}}r(Ae,"resolveDiscoveryConfig");function xe(e,t){return(e??[...t]).filter(n=>!Je.has(n)&&!/[\\/]/.test(n))}r(xe,"resolveInstructionFileCandidates");function oe(e){return Xe("sha1").update(e).digest("hex")}r(oe,"instructionContentSha1");function se(e){return oe(e.trim())}r(se,"trimmedInstructionDigest");const et="<system-reminder>",Be="</system-reminder>",tt="The following workspace instructions may be relevant to your work. Use them as guidance when applicable. More specific instructions take precedence over broader ones. They do not override system, developer, or direct user instructions.",nt="This complete workspace instruction baseline replaces all earlier workspace instruction baselines. The following workspace instructions may be relevant to your work. Use them as guidance when applicable. More specific instructions take precedence over broader ones. They do not override system, developer, or direct user instructions.",ot="This complete workspace instruction baseline replaces all earlier workspace instruction baselines. No workspace instructions are currently active.",st="Workspace instructions were omitted or truncated to fit the configured byte budget.";function M(e){return Buffer.byteLength(e,"utf8")}r(M,"byteLength");function Re(e,t){const n=Buffer.from(e,"utf8");if(n.length<=t)return e;let o=Math.max(0,Math.trunc(t));for(;o>0&&(n.readUInt8(o)&192)===128;)o-=1;return n.subarray(0,o).toString("utf8")}r(Re,"truncateUtf8");function re(e){return e.replaceAll(Be,"<\\/system-reminder>")}r(re,"escapeInstructionFrameBody");function rt(e){return`Instructions from: ${e.displayPath}
|
|
2
2
|
|
|
3
|
-
${e.content}`}r(rt,"sectionText");const ie="user-global",ce="AGENTS.md";function Me(e){return e==="~/.
|
|
3
|
+
${e.content}`}r(rt,"sectionText");const ie="user-global",ce="AGENTS.md";function Me(e){return e==="~/.dsh/AGENTS.md"||e==="$DSH_HOME/AGENTS.md"?ie:z(e)}r(Me,"scopeForDisplayPath");const Fe="\0";function K(e,t){return`${e}${Fe}${t}`}r(K,"candidateScopeKey");function it(e){return K(Me(e),Ke(e))}r(it,"instructionScopeKey");function ae(e){const t=e.indexOf(Fe);return t<0?{directory:e,candidateName:""}:{directory:e.slice(0,t),candidateName:e.slice(t+1)}}r(ae,"decodeScopeKey");function ct(e){const t=Me(e.displayPath);return[`Additional instructions from: ${e.displayPath}`,"",`These instructions apply to work under \`${t}\`. Use them as guidance when relevant; more specific instructions take precedence. They do not override system, developer, or direct user instructions.`,"",e.content].join(`
|
|
4
4
|
`)}r(ct,"additionalSectionText");const _e={intro:tt,section:rt};function at(e,t){return t!==!0?_e:{..._e,intro:e.length===0?ot:nt}}r(at,"baselineRenderStyle");function dt(e){const{change:t,file:n}=e;return t.action==="set"?ct(n):t.action==="remove"?`Instructions removed: ${t.path}
|
|
5
5
|
|
|
6
6
|
The previously loaded instructions from this file no longer apply.`:[`Updated instructions from: ${t.path}`,"","This file changed after it was loaded. Use the following content instead of the previously loaded instructions from this file.","",n.content].join(`
|
|
@@ -9,4 +9,4 @@ The previously loaded instructions from this file no longer apply.`:[`Updated in
|
|
|
9
9
|
`)),Be].join(`
|
|
10
10
|
`)}r(Q,"buildInstructionText");function de(e,t){return{...e,content:Re(e.content,t)}}r(de,"withTruncatedContent");function lt(e,t,n,o,s){const i=M(e.content);let d=0,v=i,p=de(e,0);for(;d<=v;){const b=Math.floor((d+v)/2),h=de(e,b),P=[{displayPath:e.displayPath,originalBytes:i,includedBytes:M(h.content)}];M(Q([...t,h],n,o,P,s))<=n?(p=h,d=b+1):v=b-1}return p}r(lt,"truncateToFit");function je(e,t,n){if(t<=0||!Number.isFinite(t))return{text:"",omitted:e,truncated:[],represented:[]};const o=Q(e,t,[],[],n);if(M(o)<=t)return{text:o,omitted:[],truncated:[],represented:e};for(let h=1;h<e.length;h+=1){const P=e.slice(h),T=e.slice(0,h).map(E=>({absolutePath:E.absolutePath,displayPath:E.displayPath})),S=Q(P,t,T,[],n);if(M(S)<=t)return{text:S,omitted:T,truncated:[],represented:P}}const s=e.at(-1);if(s===void 0)return{text:"",omitted:[],truncated:[],represented:[]};const i=e.slice(0,-1).map(h=>({absolutePath:h.absolutePath,displayPath:h.displayPath})),d=M(s.content);for(const h of[n,{...n,intro:st}]){const P=lt(s,[],t,i,h),T=M(P.content),S=[{displayPath:s.displayPath,originalBytes:d,includedBytes:T}],E=Q([P],t,i,S,h);if(M(E)<=t)return{text:E,omitted:i,truncated:S,represented:T>0||d===0?[s]:[]}}const v=[{displayPath:s.displayPath,originalBytes:d,includedBytes:0}],p=re(Ne(t,i,v)),b=re([p,n.section(de(s,0))].join(`
|
|
11
11
|
|
|
12
|
-
`));return M(b)<=t?{text:b,omitted:i,truncated:v,represented:d===0?[s]:[]}:{text:M(p)<=t?p:Re(p,t),omitted:i,truncated:v,represented:[]}}r(je,"renderInstructionContext");function ue(e,t){const n=at(e,t.replacePreviousBaseline),{represented:o,...s}=je(e,t.maxBytes,n);return{rendered:s,included:o}}r(ue,"renderWorkspaceInstructionSet");function ft(e,t){return ue(e,t).rendered}r(ft,"renderWorkspaceContext");function le(e){return e===void 0?void 0:{signal:e}}r(le,"signalOptions");function pt(e){return e instanceof Error&&"code"in e&&(e.code==="ENOENT"||e.code==="ENOTDIR")}r(pt,"isMissingPathError");async function ht(e,t){try{t?.throwIfAborted();const n=await Pe(e);return t?.throwIfAborted(),n.isFile()?{kind:"present",info:{size:n.size}}:{kind:"absent"}}catch(n){return t?.throwIfAborted(),pt(n)?{kind:"absent"}:{kind:"unavailable"}}}r(ht,"nodeStatFile");async function vt(e,t,n){try{const o=await t.resolve(e,le(n));n?.throwIfAborted();const s=await t.stat(o,n);return n?.throwIfAborted(),s?.type!=="file"?{kind:"absent"}:{kind:"present",info:{target:o,version:s.version,...s.size===void 0?{}:{size:s.size}}}}catch{return n?.throwIfAborted(),{kind:"unavailable"}}}r(vt,"fsStatFile");async function Oe(e,t,n){return t===void 0?ht(e,n):vt(e,t,n)}r(Oe,"statFile");async function mt(e,t,n){if(t!==void 0)try{const o=await t.resolve(e,le(n));return await t.stat(o,n)!==void 0}catch{return n?.throwIfAborted(),!1}try{return n?.throwIfAborted(),await Pe(e),n?.throwIfAborted(),!0}catch{return n?.throwIfAborted(),!1}}r(mt,"existsAsMarker");async function fe(e,t,n,o){let s=j(e);for(;;){for(const d of t)if(await mt(G(s,d),n,o))return s;const i=z(s);if(i===s)return j(e);s=i}}r(fe,"findProjectRoot");function pe(e,t){const n=[];let o=j(t);const s=j(e);for(;o!==s;){n.push(o);const i=z(o);if(i===o)break;o=i}return n.push(s),n.reverse()}r(pe,"ancestorChain");function yt(e,t){const n=j(e),o=Se(t)?j(t):j(n,t),s=z(o),i=ne(n,s);return i.length===0||i.startsWith("..")||Se(i)?[]:pe(n,s).slice(1)}r(yt,"descendantDirsBetween");function he(e,t){return ne(e,t)}r(he,"relativeDisplay");async function bt(e,t,n,o,s){const i=[];for(const d of n){const v=G(e,d),p=await Oe(v,o,s);switch(p.kind){case"present":i.push({absolutePath:v,displayPath:he(t,v),...p.info});continue;case"absent":case"unavailable":continue;default:we(p,"StatFileProbe")}}return i}r(bt,"allExistingInstructionFiles");async function De(e,t){const n=Ae(e),o=[],s=new Set,i=r(h=>{s.has(h.absolutePath)||(s.add(h.absolutePath),o.push(h))},"addFile"),d=G(n.dshHome,ce),v=await Oe(d,t,e.signal);switch(v.kind){case"present":i({absolutePath:d,displayPath:$e(n.dshHome),...v.info});break;case"absent":case"unavailable":break;default:we(v,"StatFileProbe")}const p=j(e.cwd),b=e.projectRoot??await fe(p,n.projectRootMarkers,t,e.signal);for(const h of pe(b,p))for(const P of[n.instructionFileCandidates,n.localInstructionFileCandidates])for(const T of await bt(h,b,P,t,e.signal))i(T);return o}r(De,"discoverInstructionFiles");async function gt(e){return(await De(e)).map(({absolutePath:t,displayPath:n})=>({absolutePath:t,displayPath:n}))}r(gt,"discoverBaselineInstructionFiles");async function*wt(e,t){const n=Ye(e,{encoding:"utf8",signal:t});for await(const o of n)yield String(o)}r(wt,"nodeTextChunks");async function Le(e,t,n,o){if(o?.throwIfAborted(),!(e.size!==void 0&&e.size>t))try{const s=n===void 0||e.target===void 0?wt(e.absolutePath,o):await n.streamText(e.target,o),i=[];let d=0;for await(const v of s){if(o?.throwIfAborted(),d+=Buffer.byteLength(v,"utf8"),d>t)return;i.push(v)}return o?.throwIfAborted(),i.join("")}catch{o?.throwIfAborted();return}}r(Le,"readBounded");function St(e){const t=new Map,n=[];for(const o of e){const s=z(o.displayPath);let i=t.get(s);i===void 0&&(i=new Set,t.set(s,i));const d=se(o.content);i.has(d)||(i.add(d),n.push(o))}return n}r(St,"dedupInstructionFilesByDirectory");async function Pt(e,t){return(await Ue(e,t))?.rendered}r(Pt,"loadBaselineInstructions");async function Ue(e,t){const n=Ce(e);if(n.maxBytes<=0||!Number.isFinite(n.maxBytes)||n.maxSourceBytes<=0||!Number.isFinite(n.maxSourceBytes))return;const o=await De(e,t),s=[];for(const p of o){const b=await Le(p,n.maxSourceBytes,t,e.signal);b!==void 0&&s.push({absolutePath:p.absolutePath,displayPath:p.displayPath,content:b,...p.version===void 0?{}:{version:p.version}})}const i=St(s);if(i.length===0){if(e.replacePreviousBaseline!==!0)return;const{rendered:p,included:b}=ue([],{maxBytes:n.maxBytes,replacePreviousBaseline:!0});return{rendered:p,observed:[],included:b}}const{rendered:d,included:v}=ue(i,{maxBytes:n.maxBytes,...e.replacePreviousBaseline===void 0?{}:{replacePreviousBaseline:e.replacePreviousBaseline}});return{rendered:d,observed:s,included:v}}r(Ue,"loadBaselineInstructionSet");async function kt(e,t,n,o,s){const{directory:i,candidateName:d}=ae(e),v=i==="user-global"?n.dshHome:i==="."?t:G(t,i),p=G(v,d);let b,h;try{b=await o.resolve(p,le(s)),h=await o.stat(b,s)}catch{return s?.throwIfAborted(),{kind:"unavailable"}}return h?.type!=="file"?{kind:"absent"}:{kind:"present",file:{absolutePath:p,displayPath:i==="user-global"?$e(n.dshHome):he(t,p),target:b,version:h.version,...h.size===void 0?{}:{size:h.size}}}}r(kt,"probeScopeInstruction");async function It(e,t,n,o){const s=await Le(e,t,n,o);if(s!==void 0)return{absolutePath:e.absolutePath,displayPath:e.displayPath,content:s,version:e.version}}r(It,"readScopeInstruction");function $e(e){return`${qe(e)}/AGENTS.md`}r($e,"userGlobalDisplayPath");const He="agent-instructions";function Tt(e,t){return J({content:[{type:"text",text:e}],source:{kind:"agent-instructions",form:"instructions",changes:t}})}r(Tt,"workspaceContextHook");function Et(e){return J({content:[{type:"text",text:e}],source:{kind:"plugin",plugin:He}})}r(Et,"workspaceContextMessage");function ve(e){return typeof e=="object"&&e!==null&&"kind"in e&&e.kind==="agent-instructions"&&"changes"in e&&Array.isArray(e.changes)}r(ve,"isWorkspaceContextSource");function Ct(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}r(Ct,"isRecord");function me(e){const t=[];for(const n of e.changes)Ct(n)&&(n.action!=="set"&&n.action!=="replace"&&n.action!=="remove"||typeof n.scope!="string"||typeof n.path!="string"||n.digest!==void 0&&typeof n.digest!="string"||t.push({action:n.action,scope:n.scope,path:n.path,...n.digest!==void 0?{digest:n.digest}:{}}));return t}r(me,"workspaceInstructionChanges");function At(e,t){return e.action===t.action&&e.scope===t.scope&&e.path===t.path&&e.digest===t.digest}r(At,"sameInstructionChange");function xt(e,t){const n=new Set(e.session.surface.nodes),o=new Map;for(const[s,i]of e.session.events.entries()){if(i.type!=="user/message"||!ve(i.data.source))continue;const d=me(i.data.source);for(const v of d)n.has(s)&&o.set(v.scope,v)}for(const s of t)if(ve(s.source))for(const i of me(s.source))o.set(i.scope,i);return o}r(xt,"visibleInstructionChanges");function We(e){const t=new Map,n=new Map;for(const o of e){const s=oe(o.content),i={action:"set",scope:it(o.displayPath),path:o.displayPath,digest:s};t.set(i.scope,i),o.version!==void 0&&n.set(i.scope,{path:o.displayPath,version:o.version,digest:s,trimmedDigest:se(o.content)})}return{changes:t,versions:n}}r(We,"baselineInstructionState");function ze(e,t){let n=t.get(e);return n===void 0&&(n=new Map,t.set(e,n)),n}r(ze,"versionStatesFor");function Bt(e,t){return e.filter(n=>t.some(o=>At(n.change,o)))}r(Bt,"retainedInstructionVersionUpdates");function Rt(e,t,n){if(t.length===0)return;const o=ze(e,n);for(const s of t)s.state===void 0?o.delete(s.change.scope):o.set(s.change.scope,s.state);o.size===0&&n.delete(e)}r(Rt,"applyInstructionVersionUpdates");function Mt(e,t){const n=he(e,t);return n.length===0?".":n}r(Mt,"relativeScope");async function Ft(e,t,n,o,s){const i=e.session,d=xt(e,s.authorityMessages),v=i.header.cwd??process.cwd(),p=s.projectRoot??await fe(v,t.projectRootMarkers,o,s.signal),b=new Set,h=new Set,P=r((a,y)=>{for(const u of t.instructionFileCandidates)a.add(K(y,u));for(const u of t.localInstructionFileCandidates)a.add(K(y,u))},"addDirScopes"),T=r((a,y)=>{P(a,Mt(p,y))},"addProjectScopes");h.add(K(ie,ce));for(const a of pe(p,v))T(h,a);if(s.includeBaselineScopes)for(const a of h)b.add(a);for(const a of s.scopeMessages)if(ve(a.source))for(const y of me(a.source))!s.includeBaselineScopes&&h.has(y.scope)||b.add(y.scope);for(const a of d.keys()){if(!s.includeBaselineScopes&&h.has(a))continue;const{directory:y}=ae(a);y==="user-global"?b.add(K(ie,ce)):P(b,y)}for(const a of s.touchedPaths)for(const y of yt(v,a))T(b,y);const S=ze(i,n),E=new Set,$=new Map,q=r((a,y)=>{let u=$.get(a);return u===void 0&&(u=new Set,$.set(a,u)),u.has(y)?!0:(u.add(y),!1)},"registerKeptTrimmed"),c=[],f=[],l=r((a,y)=>{const u={action:"remove",scope:a,path:y};c.push({change:u,file:{absolutePath:`removed:${a}`,displayPath:y,content:""}}),f.push({change:u})},"pushRemoval"),m=new Map;for(const a of b){const{directory:y}=ae(a),u=m.get(y);u===void 0?m.set(y,[a]):u.push(a)}for(const[a,y]of m){const u=[];for(const w of y)if(s.excludedBaselineScopes!==void 0&&h.has(w)&&s.excludedBaselineScopes.has(w)){const g=d.get(w);g===void 0||g.action==="remove"?S.delete(w):l(w,g.path)}else u.push(w);const x=c.length,C=f.length,D=[],H=new Map(u.map(w=>[w,S.get(w)]));for(const w of u){const g=d.get(w),L=await kt(w,p,t,o,s.signal);if(L.kind==="unavailable"){if(g===void 0||g.action==="remove")continue;c.splice(x),f.splice(C);for(const[B,V]of H)V===void 0?S.delete(B):S.set(B,V);for(const B of D)E.delete(B);$.delete(a);break}if(L.kind==="absent"){g===void 0||g.action==="remove"?S.delete(w):l(w,g.path);continue}const{file:I}=L;if(E.has(I.absolutePath))continue;E.add(I.absolutePath),D.push(I.absolutePath);const F=S.get(w);if(F!==void 0&&F.path===I.displayPath&&F.version===I.version&&g!==void 0&&g.action!=="remove"&&g.path===F.path&&g.digest===F.digest){q(a,F.trimmedDigest)&&l(w,g.path);continue}const A=await It(I,t.maxSourceBytes,o,s.signal);if(A===void 0)continue;const O=oe(A.content),_=se(A.content);if(q(a,_)){g!==void 0&&g.action!=="remove"?l(w,g.path):S.delete(w);continue}const W={path:A.displayPath,version:I.version,digest:O,trimmedDigest:_};if(g!==void 0&&g.action!=="remove"&&g.path===A.displayPath&&g.digest===O){S.set(w,W);continue}const N={action:g===void 0||g.action==="remove"?"set":"replace",scope:w,path:A.displayPath,digest:O};c.push({change:N,file:A}),f.push({change:N,state:W})}}if(c.length===0)return;const k=ut(c,t.maxBytes);if(!(k.text.length===0||k.changes.length===0))return{context:Tt(k.text,k.changes),versionUpdates:Bt(f,k.changes)}}r(Ft,"reconcileInstructionContext");function _t(e,t){for(const n of t.toReversed())if(n.source.kind==="agent-instructions"&&n.source.baseline===!0)return n.source;for(const n of e.session.surface.nodes.toReversed()){const o=e.session.events[n];if(o?.type==="user/message"&&o.data.source.kind==="agent-instructions"&&o.data.source.baseline===!0)return o.data.source}}r(_t,"visibleBaselineSource");function ye(e){return e.source.kind==="agent-instructions"}r(ye,"isWorkspaceContext");function Z(e,t){return ge(e.content,t.content)&&ge(e.source,t.source)}r(Z,"sameContextPayload");const Nt=new Set(["read","write","edit"]);function jt(e){if(!Nt.has(e.name)||typeof e.arguments!="object"||e.arguments===null||!("file_path"in e.arguments)||typeof e.arguments.file_path!="string")return;const t=e.arguments.file_path.trim();return t.length>0?t:void 0}r(jt,"filePathFromExecution");function Ot(e,t){const n=Ce(t),o=new WeakMap,s=new WeakMap,i=new AbortController,d=new Map;e.effect(()=>()=>{i.abort(new Error("agent-instructions disposed")),d.clear()},"agent-instructions.projectionLifecycle");const v=new WeakMap,p=new WeakMap,b=new WeakMap,h=r(async(c,f,l,m,k=[])=>{if(f.throwIfAborted(),n.maxBytes<=0||!Number.isFinite(n.maxBytes))return;const a=e.get("fs");if(a===void 0)return;if(k.length===0&&m.length>0)return m[0];const y=[],u=[];let x=!1;const C=[...l],D=c.session.header.cwd??process.cwd(),H=await fe(D,n.projectRootMarkers,a,f),w=Ze(n,D,H),g=_t(c,C),L=g!==void 0,I=g?.baselineIdentity===w,F=s.get(c.session);let A=I&&F?.identity===w?F.excludedScopes:void 0,O;if(!L||!I||A===void 0){const W=L&&!I,N=await Ue({cwd:D,dshHome:n.dshHome,projectRootMarkers:n.projectRootMarkers,maxBytes:n.maxBytes,maxSourceBytes:n.maxSourceBytes,instructionFileCandidates:n.instructionFileCandidates,localInstructionFileCandidates:n.localInstructionFileCandidates,projectRoot:H,replacePreviousBaseline:W,signal:f},a),B=We(N?.included??[]),V=We(N?.observed??[]),ee=new Set(V.changes.keys());for(const U of B.changes.keys())ee.delete(U);A=ee,O={identity:w,excludedScopes:ee};let Y=o.get(c.session);Y===void 0&&B.versions.size>0&&(Y=new Map,o.set(c.session,Y));for(const[U,te]of B.versions)Y?.set(U,te);if(!I&&N!==void 0&&N.rendered.text.length>0){const U=Et(N.rendered.text).content;y.push(...U);const te=new Set(B.changes.keys()),be=[...W?g.changes.flatMap(X=>X.action==="remove"||te.has(X.scope)?[]:[{action:"remove",scope:X.scope,path:X.path}]):[],...B.changes.values()];u.push(...be),C.push(J({content:U,source:{kind:"agent-instructions",form:"instructions",baseline:!0,baselineIdentity:w,changes:be}})),x=!0}}const _=await Ft(c,n,o,a,{authorityMessages:C,scopeMessages:m,includeBaselineScopes:I,...I?{excludedBaselineScopes:A}:{},touchedPaths:k,projectRoot:H,signal:f});if(_!==void 0&&(y.push(..._.context.content),_.context.source.kind==="agent-instructions"&&u.push(..._.context.source.changes),Rt(c.session,_.versionUpdates,o)),O!==void 0&&s.set(c.session,O),y.length!==0)return J({content:y,source:{kind:"agent-instructions",form:"instructions",...x?{baseline:!0}:{},...x?{baselineIdentity:w}:{},changes:u}})},"compose"),P=r((c,f,l)=>{const m=c.inbox.nextStep.filter(ye),k=l!==void 0&&(f.some(u=>Z(u,l))||c.session.surface.nodes.some(u=>{const x=c.session.events[u];return x?.type==="user/message"&&Z(x.data,l)}));if(l===void 0||k){for(const u of m)c.inbox.remove(u.id);return}const a=m.find(u=>Z(u,l));if(a!==void 0){for(const u of m)u!==a&&c.inbox.remove(u.id);return}const y=m[0];y===void 0?c.inbox.prepend("next-step",l):c.inbox.replace(y.id,l);for(const u of m.slice(1))c.inbox.remove(u.id)},"syncInbox"),T=r(async(c,f,l,m=[])=>{const k=c.inbox.nextStep.filter(ye),a=await h(c,f,l,k,m);f.throwIfAborted(),P(c,l,a)},"composeAndSync"),S=r((c,f)=>{const l=(v.get(c)??Promise.resolve()).then(()=>T(c,i.signal,[],[f])).catch(m=>{i.signal.aborted||e.logger.warn("workspace instruction refresh failed: %o",m)});v.set(c,l),l.then(()=>{v.get(c)===l&&v.delete(c)})},"queueProjection"),E=r(async c=>{let f;for(;(f=v.get(c))!==void 0;)await f},"waitForProjections"),$=r(c=>{const f=p.get(c);if(f!==void 0)return f;let l=!1;for(const m of c.events)m.type==="step/start"?l=!0:(m.type==="step/end"||m.type==="turn/end")&&(l=!1);return p.set(c,l),l},"stepIsOpen"),q=r(c=>{const f=c.agent.session;if(!$(f)){S(c.agent,c.path);return}const l=b.get(f);l===void 0?b.set(f,[c]):l.push(c)},"projectTouch");e.on("session/event",(c,f)=>{if(f.type==="step/start"){p.set(c,!0);return}if(f.type==="turn/end"){p.set(c,!1);return}if(f.type!=="step/end")return;p.set(c,!1);const l=b.get(c);if(l!==void 0){b.delete(c);for(const m of l)S(m.agent,m.path)}}),e.on("agent/pre-step",async({agent:c,messages:f,step:l,signal:m},k)=>{const a=await k();await E(c);const y=c.inbox.nextStep.filter(ye),u=await h(c,m,f,y);if(m.throwIfAborted(),a.kind==="reject"||l===1&&a.messages.length===0)return P(c,f,u),a;for(const C of y)c.inbox.remove(C.id);if(u===void 0||a.messages.some(C=>Z(C,u)))return a;const x=a.messages.findLastIndex(C=>f.includes(C));return{kind:"enter",messages:a.messages.toSpliced(x+1,0,u)}}),e.on("tools/result",(c,f)=>{const l=d.get(c.token)??[];if(d.delete(c.token),!f.isError&&c.agent!==void 0&&!c.signal.aborted){const m=jt(c);m!==void 0&&l.push({agent:c.agent,path:m})}if(c.parent!==void 0){if(l.length>0){const m=d.get(c.parent);m===void 0?d.set(c.parent,l):m.push(...l)}return}for(const m of l)q(m)})}r(Ot,"apply");export{Qe as Config,Ot as apply,gt as discoverBaselineInstructionFiles,Pt as loadBaselineInstructions,He as name,ft as renderWorkspaceContext};
|
|
12
|
+
`));return M(b)<=t?{text:b,omitted:i,truncated:v,represented:d===0?[s]:[]}:{text:M(p)<=t?p:Re(p,t),omitted:i,truncated:v,represented:[]}}r(je,"renderInstructionContext");function ue(e,t){const n=at(e,t.replacePreviousBaseline),{represented:o,...s}=je(e,t.maxBytes,n);return{rendered:s,included:o}}r(ue,"renderWorkspaceInstructionSet");function ft(e,t){return ue(e,t).rendered}r(ft,"renderWorkspaceContext");function le(e){return e===void 0?void 0:{signal:e}}r(le,"signalOptions");function pt(e){return e instanceof Error&&"code"in e&&(e.code==="ENOENT"||e.code==="ENOTDIR")}r(pt,"isMissingPathError");async function ht(e,t){try{t?.throwIfAborted();const n=await Pe(e);return t?.throwIfAborted(),n.isFile()?{kind:"present",info:{size:n.size}}:{kind:"absent"}}catch(n){return t?.throwIfAborted(),pt(n)?{kind:"absent"}:{kind:"unavailable"}}}r(ht,"nodeStatFile");async function vt(e,t,n){try{const o=await t.resolve(e,le(n));n?.throwIfAborted();const s=await t.stat(o,n);return n?.throwIfAborted(),s?.type!=="file"?{kind:"absent"}:{kind:"present",info:{target:o,version:s.version,...s.size===void 0?{}:{size:s.size}}}}catch{return n?.throwIfAborted(),{kind:"unavailable"}}}r(vt,"fsStatFile");async function De(e,t,n){return t===void 0?ht(e,n):vt(e,t,n)}r(De,"statFile");async function mt(e,t,n){if(t!==void 0)try{const o=await t.resolve(e,le(n));return await t.stat(o,n)!==void 0}catch{return n?.throwIfAborted(),!1}try{return n?.throwIfAborted(),await Pe(e),n?.throwIfAborted(),!0}catch{return n?.throwIfAborted(),!1}}r(mt,"existsAsMarker");async function fe(e,t,n,o){let s=j(e);for(;;){for(const d of t)if(await mt(G(s,d),n,o))return s;const i=z(s);if(i===s)return j(e);s=i}}r(fe,"findProjectRoot");function pe(e,t){const n=[];let o=j(t);const s=j(e);for(;o!==s;){n.push(o);const i=z(o);if(i===o)break;o=i}return n.push(s),n.reverse()}r(pe,"ancestorChain");function yt(e,t){const n=j(e),o=Se(t)?j(t):j(n,t),s=z(o),i=ne(n,s);return i.length===0||i.startsWith("..")||Se(i)?[]:pe(n,s).slice(1)}r(yt,"descendantDirsBetween");function he(e,t){return ne(e,t)}r(he,"relativeDisplay");async function bt(e,t,n,o,s){const i=[];for(const d of n){const v=G(e,d),p=await De(v,o,s);switch(p.kind){case"present":i.push({absolutePath:v,displayPath:he(t,v),...p.info});continue;case"absent":case"unavailable":continue;default:we(p,"StatFileProbe")}}return i}r(bt,"allExistingInstructionFiles");async function Oe(e,t){const n=Ae(e),o=[],s=new Set,i=r(h=>{s.has(h.absolutePath)||(s.add(h.absolutePath),o.push(h))},"addFile"),d=G(n.dshHome,ce),v=await De(d,t,e.signal);switch(v.kind){case"present":i({absolutePath:d,displayPath:$e(n.dshHome),...v.info});break;case"absent":case"unavailable":break;default:we(v,"StatFileProbe")}const p=j(e.cwd),b=e.projectRoot??await fe(p,n.projectRootMarkers,t,e.signal);for(const h of pe(b,p))for(const P of[n.instructionFileCandidates,n.localInstructionFileCandidates])for(const T of await bt(h,b,P,t,e.signal))i(T);return o}r(Oe,"discoverInstructionFiles");async function gt(e){return(await Oe(e)).map(({absolutePath:t,displayPath:n})=>({absolutePath:t,displayPath:n}))}r(gt,"discoverBaselineInstructionFiles");async function*wt(e,t){const n=Ye(e,{encoding:"utf8",signal:t});for await(const o of n)yield String(o)}r(wt,"nodeTextChunks");async function Le(e,t,n,o){if(o?.throwIfAborted(),!(e.size!==void 0&&e.size>t))try{const s=n===void 0||e.target===void 0?wt(e.absolutePath,o):await n.streamText(e.target,o),i=[];let d=0;for await(const v of s){if(o?.throwIfAborted(),d+=Buffer.byteLength(v,"utf8"),d>t)return;i.push(v)}return o?.throwIfAborted(),i.join("")}catch{o?.throwIfAborted();return}}r(Le,"readBounded");function St(e){const t=new Map,n=[];for(const o of e){const s=z(o.displayPath);let i=t.get(s);i===void 0&&(i=new Set,t.set(s,i));const d=se(o.content);i.has(d)||(i.add(d),n.push(o))}return n}r(St,"dedupInstructionFilesByDirectory");async function Pt(e,t){return(await Ue(e,t))?.rendered}r(Pt,"loadBaselineInstructions");async function Ue(e,t){const n=Ce(e);if(n.maxBytes<=0||!Number.isFinite(n.maxBytes)||n.maxSourceBytes<=0||!Number.isFinite(n.maxSourceBytes))return;const o=await Oe(e,t),s=[];for(const p of o){const b=await Le(p,n.maxSourceBytes,t,e.signal);b!==void 0&&s.push({absolutePath:p.absolutePath,displayPath:p.displayPath,content:b,...p.version===void 0?{}:{version:p.version}})}const i=St(s);if(i.length===0){if(e.replacePreviousBaseline!==!0)return;const{rendered:p,included:b}=ue([],{maxBytes:n.maxBytes,replacePreviousBaseline:!0});return{rendered:p,observed:[],included:b}}const{rendered:d,included:v}=ue(i,{maxBytes:n.maxBytes,...e.replacePreviousBaseline===void 0?{}:{replacePreviousBaseline:e.replacePreviousBaseline}});return{rendered:d,observed:s,included:v}}r(Ue,"loadBaselineInstructionSet");async function kt(e,t,n,o,s){const{directory:i,candidateName:d}=ae(e),v=i==="user-global"?n.dshHome:i==="."?t:G(t,i),p=G(v,d);let b,h;try{b=await o.resolve(p,le(s)),h=await o.stat(b,s)}catch{return s?.throwIfAborted(),{kind:"unavailable"}}return h?.type!=="file"?{kind:"absent"}:{kind:"present",file:{absolutePath:p,displayPath:i==="user-global"?$e(n.dshHome):he(t,p),target:b,version:h.version,...h.size===void 0?{}:{size:h.size}}}}r(kt,"probeScopeInstruction");async function It(e,t,n,o){const s=await Le(e,t,n,o);if(s!==void 0)return{absolutePath:e.absolutePath,displayPath:e.displayPath,content:s,version:e.version}}r(It,"readScopeInstruction");function $e(e){return`${Ve(e)}/AGENTS.md`}r($e,"userGlobalDisplayPath");const He="agent-instructions";function Tt(e,t){return J({content:[{type:"text",text:e}],source:{kind:"agent-instructions",form:"instructions",changes:t}})}r(Tt,"workspaceContextHook");function Et(e){return J({content:[{type:"text",text:e}],source:{kind:"plugin",plugin:He}})}r(Et,"workspaceContextMessage");function ve(e){return typeof e=="object"&&e!==null&&"kind"in e&&e.kind==="agent-instructions"&&"changes"in e&&Array.isArray(e.changes)}r(ve,"isWorkspaceContextSource");function Ct(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}r(Ct,"isRecord");function me(e){const t=[];for(const n of e.changes)Ct(n)&&(n.action!=="set"&&n.action!=="replace"&&n.action!=="remove"||typeof n.scope!="string"||typeof n.path!="string"||n.digest!==void 0&&typeof n.digest!="string"||t.push({action:n.action,scope:n.scope,path:n.path,...n.digest!==void 0?{digest:n.digest}:{}}));return t}r(me,"workspaceInstructionChanges");function At(e,t){return e.action===t.action&&e.scope===t.scope&&e.path===t.path&&e.digest===t.digest}r(At,"sameInstructionChange");function xt(e,t){const n=new Set(e.session.surface.nodes),o=new Map;for(const[s,i]of e.session.events.entries()){if(i.type!=="user/message"||!ve(i.data.source))continue;const d=me(i.data.source);for(const v of d)n.has(s)&&o.set(v.scope,v)}for(const s of t)if(ve(s.source))for(const i of me(s.source))o.set(i.scope,i);return o}r(xt,"visibleInstructionChanges");function We(e){const t=new Map,n=new Map;for(const o of e){const s=oe(o.content),i={action:"set",scope:it(o.displayPath),path:o.displayPath,digest:s};t.set(i.scope,i),o.version!==void 0&&n.set(i.scope,{path:o.displayPath,version:o.version,digest:s,trimmedDigest:se(o.content)})}return{changes:t,versions:n}}r(We,"baselineInstructionState");function ze(e,t){let n=t.get(e);return n===void 0&&(n=new Map,t.set(e,n)),n}r(ze,"versionStatesFor");function Bt(e,t){return e.filter(n=>t.some(o=>At(n.change,o)))}r(Bt,"retainedInstructionVersionUpdates");function Rt(e,t,n){if(t.length===0)return;const o=ze(e,n);for(const s of t)s.state===void 0?o.delete(s.change.scope):o.set(s.change.scope,s.state);o.size===0&&n.delete(e)}r(Rt,"applyInstructionVersionUpdates");function Mt(e,t){const n=he(e,t);return n.length===0?".":n}r(Mt,"relativeScope");async function Ft(e,t,n,o,s){const i=e.session,d=xt(e,s.authorityMessages),v=i.header.cwd??process.cwd(),p=s.projectRoot??await fe(v,t.projectRootMarkers,o,s.signal),b=new Set,h=new Set,P=r((a,y)=>{for(const u of t.instructionFileCandidates)a.add(K(y,u));for(const u of t.localInstructionFileCandidates)a.add(K(y,u))},"addDirScopes"),T=r((a,y)=>{P(a,Mt(p,y))},"addProjectScopes");h.add(K(ie,ce));for(const a of pe(p,v))T(h,a);if(s.includeBaselineScopes)for(const a of h)b.add(a);for(const a of s.scopeMessages)if(ve(a.source))for(const y of me(a.source))!s.includeBaselineScopes&&h.has(y.scope)||b.add(y.scope);for(const a of d.keys()){if(!s.includeBaselineScopes&&h.has(a))continue;const{directory:y}=ae(a);y==="user-global"?b.add(K(ie,ce)):P(b,y)}for(const a of s.touchedPaths)for(const y of yt(v,a))T(b,y);const S=ze(i,n),E=new Set,$=new Map,V=r((a,y)=>{let u=$.get(a);return u===void 0&&(u=new Set,$.set(a,u)),u.has(y)?!0:(u.add(y),!1)},"registerKeptTrimmed"),c=[],f=[],l=r((a,y)=>{const u={action:"remove",scope:a,path:y};c.push({change:u,file:{absolutePath:`removed:${a}`,displayPath:y,content:""}}),f.push({change:u})},"pushRemoval"),m=new Map;for(const a of b){const{directory:y}=ae(a),u=m.get(y);u===void 0?m.set(y,[a]):u.push(a)}for(const[a,y]of m){const u=[];for(const w of y)if(s.excludedBaselineScopes!==void 0&&h.has(w)&&s.excludedBaselineScopes.has(w)){const g=d.get(w);g===void 0||g.action==="remove"?S.delete(w):l(w,g.path)}else u.push(w);const x=c.length,C=f.length,O=[],H=new Map(u.map(w=>[w,S.get(w)]));for(const w of u){const g=d.get(w),L=await kt(w,p,t,o,s.signal);if(L.kind==="unavailable"){if(g===void 0||g.action==="remove")continue;c.splice(x),f.splice(C);for(const[B,q]of H)q===void 0?S.delete(B):S.set(B,q);for(const B of O)E.delete(B);$.delete(a);break}if(L.kind==="absent"){g===void 0||g.action==="remove"?S.delete(w):l(w,g.path);continue}const{file:I}=L;if(E.has(I.absolutePath))continue;E.add(I.absolutePath),O.push(I.absolutePath);const F=S.get(w);if(F!==void 0&&F.path===I.displayPath&&F.version===I.version&&g!==void 0&&g.action!=="remove"&&g.path===F.path&&g.digest===F.digest){V(a,F.trimmedDigest)&&l(w,g.path);continue}const A=await It(I,t.maxSourceBytes,o,s.signal);if(A===void 0)continue;const D=oe(A.content),_=se(A.content);if(V(a,_)){g!==void 0&&g.action!=="remove"?l(w,g.path):S.delete(w);continue}const W={path:A.displayPath,version:I.version,digest:D,trimmedDigest:_};if(g!==void 0&&g.action!=="remove"&&g.path===A.displayPath&&g.digest===D){S.set(w,W);continue}const N={action:g===void 0||g.action==="remove"?"set":"replace",scope:w,path:A.displayPath,digest:D};c.push({change:N,file:A}),f.push({change:N,state:W})}}if(c.length===0)return;const k=ut(c,t.maxBytes);if(!(k.text.length===0||k.changes.length===0))return{context:Tt(k.text,k.changes),versionUpdates:Bt(f,k.changes)}}r(Ft,"reconcileInstructionContext");function _t(e,t){for(const n of t.toReversed())if(n.source.kind==="agent-instructions"&&n.source.baseline===!0)return n.source;for(const n of e.session.surface.nodes.toReversed()){const o=e.session.events[n];if(o?.type==="user/message"&&o.data.source.kind==="agent-instructions"&&o.data.source.baseline===!0)return o.data.source}}r(_t,"visibleBaselineSource");function ye(e){return e.source.kind==="agent-instructions"}r(ye,"isWorkspaceContext");function Z(e,t){return ge(e.content,t.content)&&ge(e.source,t.source)}r(Z,"sameContextPayload");const Nt=new Set(["read","write","edit"]);function jt(e){if(!Nt.has(e.name)||typeof e.arguments!="object"||e.arguments===null||!("file_path"in e.arguments)||typeof e.arguments.file_path!="string")return;const t=e.arguments.file_path.trim();return t.length>0?t:void 0}r(jt,"filePathFromExecution");function Dt(e,t){const n=Ce(t),o=new WeakMap,s=new WeakMap,i=new AbortController,d=new Map;e.effect(()=>()=>{i.abort(new Error("agent-instructions disposed")),d.clear()},"agent-instructions.projectionLifecycle");const v=new WeakMap,p=new WeakMap,b=new WeakMap,h=r(async(c,f,l,m,k=[])=>{if(f.throwIfAborted(),n.maxBytes<=0||!Number.isFinite(n.maxBytes))return;const a=e.get("fs");if(a===void 0)return;if(k.length===0&&m.length>0)return m[0];const y=[],u=[];let x=!1;const C=[...l],O=c.session.header.cwd??process.cwd(),H=await fe(O,n.projectRootMarkers,a,f),w=Ze(n,O,H),g=_t(c,C),L=g!==void 0,I=g?.baselineIdentity===w,F=s.get(c.session);let A=I&&F?.identity===w?F.excludedScopes:void 0,D;if(!L||!I||A===void 0){const W=L&&!I,N=await Ue({cwd:O,dshHome:n.dshHome,projectRootMarkers:n.projectRootMarkers,maxBytes:n.maxBytes,maxSourceBytes:n.maxSourceBytes,instructionFileCandidates:n.instructionFileCandidates,localInstructionFileCandidates:n.localInstructionFileCandidates,projectRoot:H,replacePreviousBaseline:W,signal:f},a),B=We(N?.included??[]),q=We(N?.observed??[]),ee=new Set(q.changes.keys());for(const U of B.changes.keys())ee.delete(U);A=ee,D={identity:w,excludedScopes:ee};let Y=o.get(c.session);Y===void 0&&B.versions.size>0&&(Y=new Map,o.set(c.session,Y));for(const[U,te]of B.versions)Y?.set(U,te);if(!I&&N!==void 0&&N.rendered.text.length>0){const U=Et(N.rendered.text).content;y.push(...U);const te=new Set(B.changes.keys()),be=[...W?g.changes.flatMap(X=>X.action==="remove"||te.has(X.scope)?[]:[{action:"remove",scope:X.scope,path:X.path}]):[],...B.changes.values()];u.push(...be),C.push(J({content:U,source:{kind:"agent-instructions",form:"instructions",baseline:!0,baselineIdentity:w,changes:be}})),x=!0}}const _=await Ft(c,n,o,a,{authorityMessages:C,scopeMessages:m,includeBaselineScopes:I,...I?{excludedBaselineScopes:A}:{},touchedPaths:k,projectRoot:H,signal:f});if(_!==void 0&&(y.push(..._.context.content),_.context.source.kind==="agent-instructions"&&u.push(..._.context.source.changes),Rt(c.session,_.versionUpdates,o)),D!==void 0&&s.set(c.session,D),y.length!==0)return J({content:y,source:{kind:"agent-instructions",form:"instructions",...x?{baseline:!0}:{},...x?{baselineIdentity:w}:{},changes:u}})},"compose"),P=r((c,f,l)=>{const m=c.inbox.nextStep.filter(ye),k=l!==void 0&&(f.some(u=>Z(u,l))||c.session.surface.nodes.some(u=>{const x=c.session.events[u];return x?.type==="user/message"&&Z(x.data,l)}));if(l===void 0||k){for(const u of m)c.inbox.remove(u.id);return}const a=m.find(u=>Z(u,l));if(a!==void 0){for(const u of m)u!==a&&c.inbox.remove(u.id);return}const y=m[0];y===void 0?c.inbox.prepend("next-step",l):c.inbox.replace(y.id,l);for(const u of m.slice(1))c.inbox.remove(u.id)},"syncInbox"),T=r(async(c,f,l,m=[])=>{const k=c.inbox.nextStep.filter(ye),a=await h(c,f,l,k,m);f.throwIfAborted(),P(c,l,a)},"composeAndSync"),S=r((c,f)=>{const l=(v.get(c)??Promise.resolve()).then(()=>T(c,i.signal,[],[f])).catch(m=>{i.signal.aborted||e.logger.warn("workspace instruction refresh failed: %o",m)});v.set(c,l),l.then(()=>{v.get(c)===l&&v.delete(c)})},"queueProjection"),E=r(async c=>{let f;for(;(f=v.get(c))!==void 0;)await f},"waitForProjections"),$=r(c=>{const f=p.get(c);if(f!==void 0)return f;let l=!1;for(const m of c.events)m.type==="step/start"?l=!0:(m.type==="step/end"||m.type==="turn/end")&&(l=!1);return p.set(c,l),l},"stepIsOpen"),V=r(c=>{const f=c.agent.session;if(!$(f)){S(c.agent,c.path);return}const l=b.get(f);l===void 0?b.set(f,[c]):l.push(c)},"projectTouch");e.on("session/event",(c,f)=>{if(f.type==="step/start"){p.set(c,!0);return}if(f.type==="turn/end"){p.set(c,!1);return}if(f.type!=="step/end")return;p.set(c,!1);const l=b.get(c);if(l!==void 0){b.delete(c);for(const m of l)S(m.agent,m.path)}}),e.on("agent/pre-step",async({agent:c,messages:f,step:l,signal:m},k)=>{const a=await k();await E(c);const y=c.inbox.nextStep.filter(ye),u=await h(c,m,f,y);if(m.throwIfAborted(),a.kind==="reject"||l===1&&a.messages.length===0)return P(c,f,u),a;for(const C of y)c.inbox.remove(C.id);if(u===void 0||a.messages.some(C=>Z(C,u)))return a;const x=a.messages.findLastIndex(C=>f.includes(C));return{kind:"enter",messages:a.messages.toSpliced(x+1,0,u)}}),e.on("tools/result",(c,f)=>{const l=d.get(c.token)??[];if(d.delete(c.token),!f.isError&&c.agent!==void 0&&!c.signal.aborted){const m=jt(c);m!==void 0&&l.push({agent:c.agent,path:m})}if(c.parent!==void 0){if(l.length>0){const m=d.get(c.parent);m===void 0?d.set(c.parent,l):m.push(...l)}return}for(const m of l)V(m)})}r(Dt,"apply");export{Qe as Config,Dt as apply,gt as discoverBaselineInstructionFiles,Pt as loadBaselineInstructions,He as name,ft as renderWorkspaceContext};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@deepseek-ai/dsh-agent-instructions","version":"0.1.0","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-fs":"^0.1.0","@deepseek-ai/dsh-
|
|
1
|
+
{"name":"@deepseek-ai/dsh-agent-instructions","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-fs":"^0.1.0-rc.7","@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/dsh-llm":"^0.1.0-rc.7","@deepseek-ai/dsh-home-paths":"^0.1.0-rc.7","@deepseek-ai/dsh-tools":"^0.1.0-rc.7","@deepseek-ai/dsh-session":"^0.1.0-rc.7","@deepseek-ai/dsh-agent":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@deepseek-ai/dsh-agent-loop","version":"0.1.0","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-agent":"^0.1.0","@deepseek-ai/dsh-
|
|
1
|
+
{"name":"@deepseek-ai/dsh-agent-loop","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-agent":"^0.1.0-rc.7","@deepseek-ai/dsh-llm":"^0.1.0-rc.7","@deepseek-ai/dsh-scope":"^0.1.0-rc.7","@deepseek-ai/dsh-session":"^0.1.0-rc.7","@deepseek-ai/dsh-session-persistence":"^0.1.0-rc.7","@deepseek-ai/dsh-system-prompt":"^0.1.0-rc.7","@deepseek-ai/dsh-tools":"^0.1.0-rc.7","@deepseek-ai/dsh-settings":"^0.1.0-rc.7","@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@deepseek-ai/dsh-agent-presets","version":"0.1.0","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./types":{"types":"./lib/types/types.d.ts","default":"./lib/types/types.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/cordis-plugin-include":"^1.0.6","@deepseek-ai/cordis-plugin-loader":"^1.0.2","@deepseek-ai/dsh-agent":"^0.1.0","@deepseek-ai/dsh-
|
|
1
|
+
{"name":"@deepseek-ai/dsh-agent-presets","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./types":{"types":"./lib/types/types.d.ts","default":"./lib/types/types.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/cordis-plugin-include":"^1.0.6","@deepseek-ai/cordis-plugin-loader":"^1.0.2","@deepseek-ai/dsh-agent":"^0.1.0-rc.7","@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/dsh-home-paths":"^0.1.0-rc.7","@deepseek-ai/dsh-scope":"^0.1.0-rc.7","@deepseek-ai/dsh-session":"^0.1.0-rc.7","@deepseek-ai/dsh-atomic-write":"^0.1.0-rc.7","@deepseek-ai/dsh-system-prompt":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-settings":"^0.1.0-rc.7"},"dependencies":{"js-yaml":"^4.1.0","@deepseek-ai/schemastery":"^3.18.1"}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@deepseek-ai/dsh-agent-tool-presentation","version":"0.1.0","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","dependencies":{"@deepseek-ai/schemastery":"^3.18.1"},"peerDependencies":{"@deepseek-ai/
|
|
1
|
+
{"name":"@deepseek-ai/dsh-agent-tool-presentation","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","dependencies":{"@deepseek-ai/schemastery":"^3.18.1"},"peerDependencies":{"@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-tools":"^0.1.0-rc.7","@deepseek-ai/dsh-invariants":"^0.1.0-rc.7"}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@deepseek-ai/dsh-anonymous-user-id","version":"0.1.0","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-
|
|
1
|
+
{"name":"@deepseek-ai/dsh-anonymous-user-id","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/dsh-home-paths":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-brand":"^0.1.0-rc.7"}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@deepseek-ai/dsh-api-gateway","version":"0.1.0","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./client":{"types":"./lib/types/client/index.d.ts","default":"./lib/client.js"},"./types":{"types":"./lib/types/types.d.ts","default":"./lib/types/types.js"},"./src/*":"./src/*","./package.json":"./package.json"},"dsh":{"client":{"inject":["@deepseek-ai/dsh-typert-registry","@deepseek-ai/dsh-client-connection"],"platform":"web","immediately":true}},"license":"MIT","dependencies":{"@deepseek-ai/dsh-typert-protocol":"^0.1.0"},"peerDependencies":{"@deepseek-ai/dsh-client-connection":"^0.1.0","@deepseek-ai/
|
|
1
|
+
{"name":"@deepseek-ai/dsh-api-gateway","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./client":{"types":"./lib/types/client/index.d.ts","default":"./lib/client.js"},"./types":{"types":"./lib/types/types.d.ts","default":"./lib/types/types.js"},"./src/*":"./src/*","./package.json":"./package.json"},"dsh":{"client":{"inject":["@deepseek-ai/dsh-typert-registry","@deepseek-ai/dsh-client-connection"],"platform":"web","immediately":true}},"license":"MIT","dependencies":{"@deepseek-ai/dsh-typert-protocol":"^0.1.0-rc.7"},"peerDependencies":{"@deepseek-ai/dsh-client-connection":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/dsh-typert-registry":"^0.1.0-rc.7"}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@deepseek-ai/dsh-api-remotes","version":"0.1.0","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./client":{"types":"./lib/types/client/index.d.ts","default":"./lib/client.js"},"./types":{"types":"./lib/types/types.d.ts","default":"./lib/types/types.js"},"./src/*":"./src/*","./package.json":"./package.json"},"dsh":{"client":{"inject":["@deepseek-ai/dsh-api-gateway"],"platform":"web","immediately":true}},"license":"MIT","dependencies":{"@deepseek-ai/dsh-typert-protocol":"^0.1.0"},"peerDependencies":{"@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-agent":"^0.1.0","@deepseek-ai/dsh-api-gateway":"^0.1.0","@deepseek-ai/dsh-
|
|
1
|
+
{"name":"@deepseek-ai/dsh-api-remotes","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./client":{"types":"./lib/types/client/index.d.ts","default":"./lib/client.js"},"./types":{"types":"./lib/types/types.d.ts","default":"./lib/types/types.js"},"./src/*":"./src/*","./package.json":"./package.json"},"dsh":{"client":{"inject":["@deepseek-ai/dsh-api-gateway"],"platform":"web","immediately":true}},"license":"MIT","dependencies":{"@deepseek-ai/dsh-typert-protocol":"^0.1.0-rc.7"},"peerDependencies":{"@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-agent":"^0.1.0-rc.7","@deepseek-ai/dsh-api-gateway":"^0.1.0-rc.7","@deepseek-ai/dsh-credentials":"^0.1.0-rc.7","@deepseek-ai/dsh-commands":"^0.1.0-rc.7","@deepseek-ai/dsh-goal":"^0.1.0-rc.7","@deepseek-ai/dsh-host-plugin-inventory":"^0.1.0-rc.7","@deepseek-ai/dsh-cordis-host-runner":"^0.1.0-rc.7","@deepseek-ai/dsh-agent-presets":"^0.1.0-rc.7","@deepseek-ai/dsh-message-feedback":"^0.1.0-rc.7","@deepseek-ai/dsh-llm":"^0.1.0-rc.7","@deepseek-ai/dsh-session":"^0.1.0-rc.7","@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/dsh-session-persistence":"^0.1.0-rc.7","@deepseek-ai/dsh-settings":"^0.1.0-rc.7","@deepseek-ai/dsh-typert-registry":"^0.1.0-rc.7"}}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
var
|
|
1
|
+
var ie=Object.defineProperty;var c=(e,t)=>ie(e,"name",{value:t,configurable:!0});import{createRequire as se}from"node:module";import{fileURLToPath as ae,pathToFileURL as $}from"node:url";import{existsSync as S,lstatSync as H,mkdirSync as b,readFileSync as E,readlinkSync as U,symlinkSync as ce,unlinkSync as le,writeFileSync as P}from"node:fs";import{parseEnv as de}from"node:util";import{basename as A,dirname as L,extname as he,isAbsolute as fe,join as u,resolve as O}from"node:path";import*as g from"js-yaml";import{Context as ue,Service as pe}from"@deepseek-ai/cordis";import ye,{EntryGroup as we,EntryTree as Ee,isJsExpr as ge}from"@deepseek-ai/cordis-plugin-loader";import{access as me,constants as ve,readFile as Se,rename as _e,writeFile as Te}from"node:fs/promises";import{setTimeout as Oe}from"node:timers/promises";import $e from"@deepseek-ai/cordis-plugin-group";import{dshHomePath as Pe,resolveDshHome as R}from"@deepseek-ai/dsh-home-paths";import{createLaunchEnvironmentSnapshot as Ae}from"@deepseek-ai/dsh-launch-environment";const Le=new g.Type("tag:yaml.org,2002:js",{kind:"scalar",resolve:c(e=>typeof e=="string","resolve"),construct:c(e=>({__jsExpr:e}),"construct"),predicate:ge,represent:c(e=>e.__jsExpr,"represent")}),I=g.JSON_SCHEMA.extend(Le),x=I,M={".json":"application/json",".yaml":"application/yaml",".yml":"application/yaml"},Re=new Set(Object.keys(M)),Ie=10,ke=50;function be(e){const t=e?.code;return t==="EACCES"||t==="EBUSY"||t==="EPERM"}c(be,"retryableWriteError");function j(e,t,r){if(e=structuredClone(e),!t?.length)return e;const n=new Map,s=c(o=>{for(const i of o)i.id&&n.set(i.id,i),i.group&&Array.isArray(i.config)&&s(i.config)},"buildMap");s(e);for(const o of t){const{id:i,insert:a,name:l,...d}=o;if(a){if(i){const h=n.get(i);if(!h){r("patch insert: entry %C not found",i);continue}if(!h.group){r("patch insert: entry %C is not a group",i);continue}Array.isArray(h.config)||(h.config=[]),h.config.push(...a)}else e.push(...a);s(a);continue}if(!i){r("patch: id is required for non-insert patches");continue}const f=n.get(i);if(!f){r("patch: entry %C not found",i);continue}if(l&&l!==f.name){r("patch: name mismatch for %C (expected %C, got %C), skipping",i,f.name,l);continue}for(const[h,y]of Object.entries(d))h!=="id"&&(f[h]=y)}return e}c(j,"applyEntryPatches");var k=class extends Error{static{c(this,"ConfigFileError")}stage;constructor(e,t,r){super(`failed to ${e} config file ${t}`,{cause:r}),this.stage=e,this.name="ConfigFileError"}},B=class extends Ee{static{c(this,"Include")}config;static inject=["loader"];static[we.key]=!0;filename;type;readonly;content;data;writeTask;pendingWrite;writeQueue=Promise.resolve();applyQueue=Promise.resolve();constructor(e,t){super(e),this.config=t,this.enableLogs=t.enableLogs??e.fiber.entry?.parent.tree.enableLogs??!1,this.filename=ae(new URL(this.config.path,this.ctx.baseUrl));const r=he(this.filename);if(!Re.has(r))throw new Error(`extension "${r}" not supported`);this.type=M[r],this.readonly=!this.type,this.ctx.baseUrl=new URL(".",$(this.filename)).href,e.on("internal/update",async(n,s,o)=>{if(n.path!==this.config.path)return o();await this.enqueue(async()=>{const i=this.applyPatches(this.data,n.patches);await this.root.update(i),this.config=n})})}enqueue(e){const t=this.applyQueue.then(e,e);return this.applyQueue=t.then(()=>{},()=>{}),t}async checkAccess(){if(this.type)try{await me(this.filename,ve.W_OK)}catch{this.readonly=!0}}async read(e=!1){let t;try{t=await Se(this.filename,"utf8")}catch(n){throw new k("read",this.filename,n)}if(!e&&this.content===t)return;let r;try{if(this.type==="application/yaml")r=g.load(t,{schema:x});else if(this.type==="application/json")r=JSON.parse(t);else{const n=await import(this.filename);r=n.default||n}}catch(n){throw new k("parse",this.filename,n)}if(!Array.isArray(r))throw new k("validate",this.filename,new TypeError("config file must be a top-level array"));return{content:t,data:r}}applyPatches(e,t){return j(e,t,(r,...n)=>{this.ctx.root.logger?.("loader").warn(r,...n)})}async*[pe.init](){let e;try{e=await this.read(!0)}catch(t){if(!(t instanceof k)||t.stage!=="read"||t.cause?.code!=="ENOENT")throw t;if(this.config.initial)await this._writeFile(this.config.initial),e=await this.read(!0);else throw new Error(`config file not found: ${this.filename}`)}yield()=>this.stop(),await this.apply(e)}async stop(){await this.root.stop(),await this.flushWrite()}async refresh(){await this.enqueue(async()=>{const e=await this.read();e&&await this._apply(e)})}apply(e){return this.enqueue(()=>this._apply(e))}async _apply(e){const t=this.applyPatches(e.data,this.config.patches);await this.root.update(t),this.content=e.content,this.data=e.data,await this.checkAccess()}async _writeFile(e){if(this.readonly)throw new Error("cannot overwrite readonly config");this.type==="application/yaml"?this.content=g.dump(e,{schema:x}):this.type==="application/json"&&(this.content=JSON.stringify(e,null,2)),await Te(this.filename+".tmp",this.content);for(let t=0;;t++)try{await _e(this.filename+".tmp",this.filename);return}catch(r){if(!be(r)||t>=Ie)throw r;await Oe((t+1)*ke)}}writeFile(e){clearTimeout(this.writeTask),this.pendingWrite=e,this.writeTask=setTimeout(()=>{this.flushWrite()},0)}flushWrite(){clearTimeout(this.writeTask),this.writeTask=void 0;const e=this.pendingWrite;if(this.pendingWrite=void 0,e===void 0)return this.writeQueue;const t=this.writeQueue.then(()=>this._writeFile(e),()=>this._writeFile(e));return this.writeQueue=t,t.catch(r=>{this.ctx.root.logger?.("loader").warn("failed to write config file %C",this.filename),this.ctx.root.logger?.("loader").warn(r)}),t}write(){return this.context.emit("loader/config-update"),this.writeFile(this.root.data)}};const C="profiles",N="cordis.patch.yml";function J(e,t=R()){if(e===""||e.includes("/")||e.includes("\\")||e==="."||e===".."||e==="node_modules")throw new Error(`dsh: invalid profile name ${JSON.stringify(e)}`);return u(t,C,e)}c(J,"resolveProfileDir");const D={web:["@deepseek-ai/dsh-base","@deepseek-ai/dsh-web-app"],headless:["@deepseek-ai/dsh-base","@deepseek-ai/dsh-headless"]},je={headless:["@deepseek-ai/dsh-base","@deepseek-ai/dsh-web-app","@deepseek-ai/dsh-headless"]},Ce=["@deepseek-ai/dsh-base"],Ne=`# Your patch layer for this dsh profile, applied after every bundle layer:
|
|
2
2
|
# a top-level YAML array of loader patch entries (id-targeted config
|
|
3
3
|
# overrides, disables, and insert lists; \`!!js\` expressions allowed).
|
|
4
4
|
[]
|
|
5
|
-
`,
|
|
5
|
+
`,De=`packages:
|
|
6
6
|
- .
|
|
7
7
|
|
|
8
8
|
nodeLinker: hoisted
|
|
9
9
|
autoInstallPeers: false
|
|
10
|
-
`;function
|
|
11
|
-
`)}const n=
|
|
12
|
-
`)}
|
|
13
|
-
`)}}
|
|
14
|
-
`);return}const o=
|
|
15
|
-
`)}){let s;try{s=
|
|
10
|
+
`;function Y(e,t){b(e,{recursive:!0});const r=u(e,"package.json");if(!S(r)){const o={name:`dsh-profile-${A(e)}`,private:!0,dependencies:{},dsh:{profile:{bundles:[...t]}}};P(r,JSON.stringify(o,void 0,2)+`
|
|
11
|
+
`)}const n=u(e,N);S(n)||P(n,Ne);const s=u(e,"pnpm-workspace.yaml");S(s)||P(s,De)}c(Y,"initProfile");function Fe(e,t){let r;try{r=H(e)}catch{r=void 0}if(r!==void 0){if(!r.isSymbolicLink())throw new Error(`dsh: ${e} exists and is not a symlink; remove it so dsh can manage the installation fallback`);if(U(e)===t)return;le(e)}try{ce(t,e,"junction")}catch(n){if(n.code!=="EEXIST"||!H(e).isSymbolicLink()||U(e)!==t)throw n}}c(Fe,"ensureSymlink");function He(e,t=R()){const r=u(t,C),n=u(r,"node_modules");b(n,{recursive:!0});const s=JSON.parse(E(e,"utf8")),o=new Map;s.name!==void 0&&o.set(s.name,L(e));const i=[{anchor:e,manifest:s}];for(let a=i.shift();a!==void 0;a=i.shift())for(const l of[...Object.keys(a.manifest.dependencies??{}),...Object.keys(a.manifest.peerDependencies??{})]){if(o.has(l))continue;const d=q(a.anchor,l);if(d===void 0)continue;o.set(l,d);const f=u(d,"package.json");i.push({anchor:f,manifest:JSON.parse(E(f,"utf8"))})}for(const[a,l]of o){const d=u(n,a);b(L(d),{recursive:!0}),Fe(d,l)}}c(He,"healProfilesModuleFallback");function G(e,t){const r=u(t,"package.json");let n;try{n=E(r,"utf8")}catch(o){throw new Error(`${e}: failed to read profile manifest ${r}: ${String(o)}`)}const s=JSON.parse(n);if(s===null||typeof s!="object"||Array.isArray(s))throw new Error(`${e}: profile manifest ${r} must hold a JSON object`);return s}c(G,"readProfileManifest");function W(e,t){P(u(e,"package.json"),JSON.stringify(t,void 0,2)+`
|
|
12
|
+
`)}c(W,"writeProfileManifest");function Ue(e,t){return e.length===t.length&&e.every((r,n)=>r===t[n])}c(Ue,"sameBundles");function xe(e,t,r){const n=je[e],s=D[e],o=r.dsh?.profile?.bundles;if(n===void 0||s===void 0||o===void 0||!Ue(o,n))return r;const i={...r,dsh:{...r.dsh,profile:{...r.dsh?.profile,bundles:[...s]}}};return W(t,i),i}c(xe,"normalizeShippedProfile");function q(e,t){for(const r of se(e).resolve.paths(t)??[]){const n=u(r,t);if(S(u(n,"package.json")))return n}}c(q,"packageDirFromAnchor");function X(e,t,r,n){for(const s of[r,u(n,"package.json")]){const o=q(s,t);if(o!==void 0)return o}throw new Error(`${e}: cannot resolve profile bundle ${JSON.stringify(t)} from the dsh installation or ${n}; run 'dsh plugin --profile ${A(n)} install' if its dependency is not installed`)}c(X,"resolveBundleDir");function Me(e,t,r,n=R(),s={}){const o=J(t,n);if(!S(u(o,"package.json"))){const l=D[t];if(l===void 0)throw new Error(`${e}: profile ${JSON.stringify(t)} does not exist; create it with 'dsh plugin --profile ${t} add <package>'`);Y(o,l)}const i=(xe(t,o,G(e,o)).dsh?.profile?.bundles??[]).map(l=>{const d=X(e,l,r,o),f=JSON.parse(E(u(d,"package.json"),"utf8")).dsh?.bundle?.patch;if(f===void 0)throw new Error(`${e}: profile bundle ${JSON.stringify(l)} declares no dsh.bundle in its package.json`);const h=u(d,f);return{packageName:l,packageDir:d,patchPath:h,patches:F(e,h)}}),a=u(o,N);return{name:t,dir:o,layers:i,patchPath:a,patches:s.userLayer!==!1&&S(a)?F(e,a):[]}}c(Me,"loadProfile");function Be(e,t=()=>{}){return j([],structuredClone(e.flat()),(r,...n)=>{let s=0;t(r.replace(/%C/g,()=>JSON.stringify(n[s++])))})}c(Be,"composeEntries");function Je(e,t,r=process.cwd()){const n=O(r,e);if(t!=="replay")return n;const s=L(n),o=A(n).replace(/cordis\.ya?ml$/,"cordis.snapshot.yml");return O(s,o)}c(Je,"resolveConfigPath");function Ye(e,t=process.cwd(),r=n=>{process.stderr.write(n)}){try{process.loadEnvFile(O(t,".env"))}catch(n){n?.code!=="ENOENT"&&r(`${e}: failed to load .env: ${String(n)}
|
|
13
|
+
`)}}c(Ye,"loadEnv");const Ge=new Set(["PATH","HOME","USERPROFILE","SHELL","NODE_OPTIONS","NODE_PATH","NODE_EXTRA_CA_CERTS","LD_PRELOAD","LD_LIBRARY_PATH","LD_AUDIT","BASH_ENV","ENV","SHELLOPTS","BASHOPTS","PERL5OPT","PERL5LIB","PYTHONSTARTUP","PYTHONPATH","RUBYOPT","RUBYLIB","JAVA_TOOL_OPTIONS","_JAVA_OPTIONS","JDK_JAVA_OPTIONS","PYTHONHOME","GIT_SSH","GIT_SSH_COMMAND","GIT_EXTERNAL_DIFF","GIT_PAGER","GIT_EDITOR","GIT_ASKPASS","SSH_ASKPASS","GIT_CONFIG_GLOBAL","GIT_CONFIG_SYSTEM","GIT_CONFIG_COUNT","EDITOR","VISUAL","PAGER","DEEPSEEK_BASE_URL","DEEPSEEK_SEARCH_BASE_URL","SSL_CERT_FILE","SSL_CERT_DIR","HTTP_PROXY","HTTPS_PROXY","ALL_PROXY","NO_PROXY","REQUESTS_CA_BUNDLE","CURL_CA_BUNDLE","NODE_TLS_REJECT_UNAUTHORIZED"]),We=["DSH_","XDG_","DYLD_","BASH_FUNC_"];function qe(e){const t=e.toUpperCase();return Ge.has(t)||We.some(r=>t.startsWith(r))}c(qe,"isBootstrapOnly");function Q(e,t,r){const n=O(t,".env");let s;try{s=E(n,"utf8")}catch(i){i?.code!=="ENOENT"&&r(`${e}: failed to load .env: ${String(i)}
|
|
14
|
+
`);return}const o=de(s);for(const i of Object.keys(o))if(qe(i))throw new Error(`${e}: ${n} sets "${i}", which only the launching environment may set (it decides how this process starts, where its code and instructions load from, or how it reaches the network); export ${i} instead of putting it in a .env file`);return{path:n,values:o}}c(Q,"readEnvLayer");function Xe(e,t=process.cwd(),r=n=>{process.stderr.write(n)}){const n=R(),s={...process.env},o=Q(e,t,r),i=n===O(t)?void 0:Q(e,n,r);for(const a of[o,i])if(a!==void 0)for(const[l,d]of Object.entries(a.values))process.env[l]===void 0&&(process.env[l]=d);return Ae([{source:"process",values:s},...o===void 0?[]:[{source:"project-env",path:o.path,values:o.values}],...i===void 0?[]:[{source:"user-env",path:i.path,values:i.values}]])}c(Xe,"loadLayeredEnv");const V=new WeakMap,Qe=I;async function Ve(e,t){const{binName:r,filename:n,compose:s=c(l=>l,"compose")}=t,o=e.get("hmr");if(o===void 0)throw new Error(`${r}: user patch-layer watching requires the Cordis HMR service`);const i=V.get(e);if(i===void 0)throw new Error(`${r}: user patch-layer watching requires the root Include entry`);const a=o.registerConfig(n,async()=>{const{patches:l,...d}=i.options.config,f=K(r,n)??[],h=s(f);await i.update({config:{...d,patches:h}})});try{return await a}catch(l){if(l?.code==="INACTIVE_EFFECT")return async()=>{};throw l}}c(Ve,"watchUserPatches");function K(e,t){let r;try{r=E(t,"utf8")}catch(n){if(n?.code==="ENOENT")return;throw new Error(`${e}: failed to read patches ${t}: ${String(n)}`)}return z(e,t,r,"patches")}c(K,"loadOptionalPatches");function F(e,t){let r;try{r=E(t,"utf8")}catch(n){throw new Error(`${e}: failed to read overlay ${t}: ${String(n)}`)}return z(e,t,r,"overlay")}c(F,"loadOverlayPatches");function z(e,t,r,n){let s;try{s=g.load(r,{schema:Qe})}catch(o){throw new Error(`${e}: failed to parse ${n} ${t}: ${String(o)}`)}if(!Array.isArray(s))throw new Error(`${e}: ${n} ${t} must be a top-level YAML array of loader patch entries`);return s.forEach((o,i)=>{if(typeof o!="object"||o===null||Array.isArray(o))throw new Error(`${e}: ${n} entry ${i+1} in ${t} must be a mapping (a loader patch entry)`)}),s}c(z,"parsePatchList");function Ke(e,t,r,n=s=>{process.stderr.write(`${s}
|
|
15
|
+
`)}){let s;try{s=E(t,"utf8")}catch(w){throw new Error(`${e}: failed to read config ${t}: ${String(w)}`)}let o;try{o=g.load(s,{schema:I})}catch(w){throw new Error(`${e}: failed to parse config ${t}: ${String(w)}`)}if(!Array.isArray(o))throw new Error(`${e}: config ${t} must be a top-level YAML array of entries`);const i=A(t),a=o,l=c((w,m)=>{const T=structuredClone(r.slice(0,w).flatMap(v=>v.patches));return j(a,T,(v,...p)=>{let oe=0;m.push(v.replace(/%C/g,()=>JSON.stringify(p[oe++])))})},"snapshot");let d=a,f=[];const h=a.map(()=>({origin:i,patchedBy:[]}));let y=a;for(let w=1;w<=r.length;w+=1){const m=r[w-1];if(m===void 0)continue;const T=[];y=l(w,T);for(const p of T.slice(f.length))n(`${e}: [${m.label}] ${p}`);const v=d.map(p=>JSON.stringify(p));for(let p=0;p<y.length;p+=1)p>=v.length?h.push({origin:m.label,patchedBy:[]}):JSON.stringify(y[p])!==v[p]&&h[p]?.patchedBy.push(m.label);d=y,f=T}return ze(y,h)}c(Ke,"renderConfigDump");function ze(e,t){const r=[];let n,s=[];const o=c(()=>{n===void 0||s.length===0||(r.push(`# == ${n}`),r.push(g.dump(s,{schema:I,noRefs:!0}).trimEnd()),s=[])},"flush");for(let i=0;i<e.length;i+=1){const a=t[i];if(a===void 0)continue;const l=a.patchedBy.length===0?a.origin:`${a.origin}, patched by ${a.patchedBy.join(", ")}`;l!==n&&(o(),n=l),s.push(e[i])}return o(),r.join(`
|
|
16
16
|
`)+`
|
|
17
|
-
`}
|
|
18
|
-
`),r===void 0){t.exit(1);return}(async()=>{let
|
|
17
|
+
`}c(ze,"groupedDump");async function Z(e,t,r=[],n){e.loader.builtins.include=n===void 0?B:class extends B{static{c(this,"HostResolvedRootInclude")}import(d,f){const h=fe(d)?$(d).href:d;if(d.startsWith(".")||d.startsWith("cordis:"))return super.import(h,f);const y=this.ctx.loader.internal;return y===void 0?super.import(h,f):y.import(h,n,{})}},e.loader.builtins.group=$e;const s={id:"include",name:"cordis:include",config:{path:$(t).href,...r.length>0?{patches:[...r]}:{}}},o=await e.loader.create(s),i=e.get("loader");if(i===void 0)return;const a=i.resolve(o);return V.set(e,a),a}c(Z,"mountRootInclude");const _=new Map;function Ze(e){_.set(e,(_.get(e)??0)+1)}c(Ze,"retainAssembledRejection");function et(e){const t=_.get(e);t===void 0||t===1?_.delete(e):_.set(e,t-1)}c(et,"releaseAssembledRejection");async function tt(e){for(const t of e)Ze(t);try{await new Promise(t=>setImmediate(t))}finally{for(const t of e)et(t)}}c(tt,"observeLoaderRejectionCheckpoint");const ee=2e3;function rt(e,t=process,r){let n=!1;const s=c(i=>{if(!_.has(i)&&!n){if(n=!0,t.stderr.write(`${e}: fatal load failure: ${i instanceof Error?i.stack??i.message:String(i)}
|
|
18
|
+
`),r===void 0){t.exit(1);return}(async()=>{let a;try{await Promise.race([(async()=>r())(),new Promise(l=>{a=setTimeout(l,ee)})])}catch{}clearTimeout(a),t.exit(1)})()}},"handler"),o=c(()=>{t.off("unhandledRejection",s)},"uninstall");return t.on("unhandledRejection",s),o}c(rt,"installFailLoud");function te(e,t){const r=[...e.loader.entries()].filter(n=>n.fiber===void 0&&!n.disabled);if(r.length>0){const n=r.map(s=>s.options.name).join(", ");throw new Error(`${t}: plugin(s) failed to load: ${n}; Cordis startup failed because these plugin(s) could not be resolved (see the error(s) logged above)`)}}c(te,"assertEntriesLoaded");const nt=0,ot=2,it=3;function st(e){return e instanceof Error?e.stack??e.message:String(e)}c(st,"formatActivationError");async function re(e,t){te(e,t);const r=[],n=[];for(const s of e.loader.entries()){const o=s.fiber;if(o===void 0||s.disabled)continue;const i=o.state;if(i!==ot){if(i===it){try{await o.await()}catch(a){n.push(a),r.push(`${s.options.name}: ${st(a)}`)}continue}if(i===nt){const a=Object.keys(o.inject).filter(d=>o.ctx.get(d)===void 0),l=a.length===1?"service":"services";r.push(`${s.options.name}: pending (waiting for ${l}: ${a.join(", ")||"unknown"})`)}else r.push(`${s.options.name}: fiber state ${String(i)}`)}}if(r.length>0){n.length>0&&await tt(n);const s=r.length===1?"entry":"entries";throw new Error(`${t}: ${String(r.length)} ${s} did not activate
|
|
19
19
|
${r.join(`
|
|
20
|
-
`)}`)}}
|
|
21
|
-
${d.stack??d.message}`:"";throw new Error(`${e}: ${i}: ${l}${f}`,{cause:
|
|
20
|
+
`)}`)}}c(re,"assertEntriesActivated");async function at(e,t,r,n,s){const o=new ue;let i="host preparation failed";try{return o.baseUrl=$(L(t)).href+"/",o.provide("dshHomePath",Pe),await o.plugin(ye),await n?.(o),i="plugin tree failed to load",await Z(o,t,r,s),await o.get("loader")?.await(),o.get("loader")===void 0||await re(o,e),o}catch(a){await o.fiber.dispose();const l=a instanceof Error?a.message:String(a);let d=a;for(;d instanceof Error&&d.cause!==void 0;)d=d.cause;const f=d instanceof Error&&d!==a?`
|
|
21
|
+
${d.stack??d.message}`:"";throw new Error(`${e}: ${i}: ${l}${f}`,{cause:a})}}c(at,"boot");const ne="harness:source";function ct(e,t){const r=e.get("systemPrompt");if(r!==void 0)return r.section({name:ne,order:-99,text:`The DeepSeek Harness implementation checkout is at ${t}. The checkout location and current working directory are separate values and may differ; never infer the working directory from this path. Use pwd to determine the current working directory. Use this checkout only to inspect or extend DSH itself.`})}c(ct,"addHarnessSourceSection");export{Ce as DEFAULT_PROFILE_BUNDLES,ee as FAIL_LOUD_RELEASE_TIMEOUT_MS,ne as HARNESS_SOURCE_SECTION,C as PROFILES_DIR,N as PROFILE_PATCH_FILENAME,D as PROFILE_TEMPLATES,ct as addHarnessSourceSection,re as assertEntriesActivated,te as assertEntriesLoaded,at as boot,Be as composeEntries,He as healProfilesModuleFallback,Y as initProfile,rt as installFailLoud,Ye as loadEnv,Xe as loadLayeredEnv,K as loadOptionalPatches,F as loadOverlayPatches,Me as loadProfile,Z as mountRootInclude,G as readProfileManifest,Ke as renderConfigDump,X as resolveBundleDir,Je as resolveConfigPath,J as resolveProfileDir,Ve as watchUserPatches,W as writeProfileManifest};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@deepseek-ai/dsh-app-boot","version":"0.1.0","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","dependencies":{"js-yaml":"^4.2.0"},"peerDependencies":{"@deepseek-ai/cordis-plugin-
|
|
1
|
+
{"name":"@deepseek-ai/dsh-app-boot","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","dependencies":{"js-yaml":"^4.2.0"},"peerDependencies":{"@deepseek-ai/cordis-plugin-group":"^1.0.1","@deepseek-ai/cordis-plugin-hmr":"^1.0.16","@deepseek-ai/cordis-plugin-include":"^1.0.6","@deepseek-ai/cordis-plugin-loader":"^1.0.2","@deepseek-ai/dsh-launch-environment":"^0.1.0-rc.7","@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/dsh-system-prompt":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-home-paths":"^0.1.0-rc.7"},"peerDependenciesMeta":{"@deepseek-ai/cordis-plugin-hmr":{"optional":true}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@deepseek-ai/dsh-atomic-write","version":"0.1.0","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.1.0","@deepseek-ai/cordis":"^4.0.1"}}
|
|
1
|
+
{"name":"@deepseek-ai/dsh-atomic-write","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1"}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@deepseek-ai/dsh-attachment","version":"0.1.0","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-brand":"^0.1.0","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-invariants":"^0.1.0"}}
|
|
1
|
+
{"name":"@deepseek-ai/dsh-attachment","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-brand":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-invariants":"^0.1.0-rc.7"}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var j=Object.defineProperty;var r=(t,e)=>j(t,"name",{value:e,configurable:!0});import{
|
|
1
|
+
var j=Object.defineProperty;var r=(t,e)=>j(t,"name",{value:e,configurable:!0});import{dirname as y,join as h,parse as B,resolve as f}from"node:path";import w from"@deepseek-ai/schemastery";import{AttachmentError as i,AttachmentId as X,AttachmentStore as Y}from"@deepseek-ai/dsh-attachment";import{resolveDshHome as V}from"@deepseek-ai/dsh-home-paths";import{createHash as k,randomUUID as z}from"node:crypto";import{constants as A}from"node:fs";import{chmod as W,link as $,mkdir as q,open as M,readFile as b,unlink as x}from"node:fs/promises";import L from"sharp";const J={png:"image/png",jpeg:"image/jpeg",webp:"image/webp",gif:"image/gif"};async function O(t){const e=await t.metadata(),a=J[e.format];if(a===void 0)throw new i("Unsupported or malformed image data.","INVALID_IMAGE");return{mediaType:a,width:e.width,height:e.height}}r(O,"imageMetadata");async function K(t){try{return await O(L(t,{failOn:"error",limitInputPixels:!1}))}catch(e){throw e instanceof i?e:new i("Unsupported or malformed image data.","INVALID_IMAGE",{cause:e})}}r(K,"probeImage");async function D(t,e){try{const a=L(t,{failOn:"error",limitInputPixels:!1}),o=await O(a);if(e!==void 0&&o.width*o.height>e)throw new i("Image exceeds the configured decoded-pixel limit.","IMAGE_TOO_MANY_PIXELS");return await a.raw().toBuffer(),o}catch(a){throw a instanceof i?a:new i("Unsupported or malformed image data.","INVALID_IMAGE",{cause:a})}}r(D,"detectImage");const Q=/^sha256:([a-f0-9]{64})$/,N=new Set;function l(t){return k("sha256").update(t).digest("hex")}r(l,"digest");function Z(t){if(t===void 0)return;const e=t.slice(Math.max(t.lastIndexOf("/"),t.lastIndexOf("\\"))+1).replace(/[\u0000-\u001f\u007f]/g,"").trim().slice(0,255);return e===""?void 0:e}r(Z,"displayName");function v(t,e){return h(t,"objects",e.slice(0,2),e)}r(v,"objectPath");function ee(t){const e=Q.exec(String(t.attachmentId));if(e?.[1]===void 0)throw new i("Attachment reference is invalid.","INVALID_ATTACHMENT_REF");return e[1]}r(ee,"ensureReference");async function P(t,e,a){if(t.byteLength===0)throw new i("Image is empty.","INVALID_IMAGE");const o=await D(t,a);if(o.mediaType!==e)throw new i("Declared image type does not match its bytes.","IMAGE_TYPE_MISMATCH");return{...o,bytes:t.byteLength}}r(P,"inspectMetadata");async function S(t,e){if(t.data.byteLength>e.maxImageBytes)throw new i("Image exceeds the configured byte limit.","IMAGE_TOO_LARGE");await P(t.data,t.mediaType,e.maxImagePixels)}r(S,"validateImageFile");async function u(t){if(process.platform==="win32")return;const e=await M(t,A.O_RDONLY);try{await e.sync()}finally{await e.close()}}r(u,"syncDirectory");async function E(t,e){const a=f(t),o=f(e);await q(a,{recursive:!0,mode:448}),await W(a,448);let n=a;for(;n!==o;){const s=y(n);if(await u(s),s===n)return;n=s}}r(E,"ensureDurableDirectory");async function te(t){const e=f(t);return N.has(e)||(await E(e,B(e).root),N.add(e)),e}r(te,"ensureDurableHome");async function R(t,e,a){if(e.data.byteLength>a.maxImageBytes)throw new i("Image exceeds the configured byte limit.","IMAGE_TOO_LARGE");const o=await P(e.data,e.mediaType,a.maxImagePixels),n=l(e.data),s=h(t,"objects",n.slice(0,2)),c=h(t,"tmp"),T=await te(y(y(f(t))));await E(s,T),await E(c,T);const g=h(c,z()),p=v(t,n);let d;try{d=await M(g,A.O_CREAT|A.O_EXCL|A.O_WRONLY,384),await d.writeFile(e.data),await d.sync(),await d.close(),d=void 0;try{await $(g,p)}catch(m){if(!(m instanceof Error&&"code"in m&&m.code==="EEXIST"))throw m;if(l(new Uint8Array(await b(p)))!==n)throw new i("Stored attachment failed integrity verification.","ATTACHMENT_CORRUPT")}await u(s),await u(h(t,"objects")),await x(g)}catch(m){throw d!==void 0&&await d.close().catch(()=>{}),await x(g).catch(I=>{if(!(I instanceof Error&&"code"in I&&I.code==="ENOENT"))throw I}),m instanceof i?m:new i("Unable to persist image attachment.","ATTACHMENT_WRITE_FAILED",{cause:m})}const _=Z(e.name);return{attachmentId:X(`sha256:${n}`),...o,..._!==void 0?{name:_}:{}}}r(R,"saveImageFile");async function U(t,e,a){a?.throwIfAborted();const o=ee(e);let n;try{n=new Uint8Array(await b(v(t,o),{signal:a}))}catch(c){throw a?.throwIfAborted(),c instanceof Error&&"code"in c&&c.code==="ENOENT"?new i("Attachment object is missing.","ATTACHMENT_NOT_FOUND"):new i("Unable to read image attachment.","ATTACHMENT_READ_FAILED",{cause:c})}if(a?.throwIfAborted(),l(n)!==o)throw new i("Stored attachment failed integrity verification.","ATTACHMENT_CORRUPT");const s=await K(n);if(a?.throwIfAborted(),s.mediaType!==e.mediaType||n.byteLength!==e.bytes||s.width!==e.width||s.height!==e.height)throw new i("Stored attachment metadata does not match its reference.","ATTACHMENT_CORRUPT");return{ref:e,data:n}}r(U,"readImageFile");const G=5242880,ae=20,C=104857600,H=4e7;var F=class extends Y{static{r(this,"LocalAttachmentStore")}static Config=w.object({dshHome:w.string(),maxImageBytes:w.number().step(1).min(1).default(G),maxImagesPerMessage:w.number().step(1).min(1).default(20),maxMessageImageBytes:w.number().step(1).min(1).default(C),maxImagePixels:w.number().step(1).min(1).default(H)});root;imageLimits;constructor(t,e){super(t),this.root=f(h(V(e.dshHome),"attachments","v1")),this.imageLimits=Object.freeze({maxImageBytes:e.maxImageBytes??5242880,maxImagesPerMessage:e.maxImagesPerMessage??20,maxMessageImageBytes:e.maxMessageImageBytes??104857600,maxImagePixels:e.maxImagePixels??4e7,mediaTypes:Object.freeze(["image/png","image/jpeg","image/webp","image/gif"])})}async validateImage(t){await S(t,this.imageLimits)}async saveImage(t){return R(this.root,t,this.imageLimits)}async readImage(t,e){return U(this.root,t,e)}};export{ae as DEFAULT_MAX_IMAGES_PER_MESSAGE,G as DEFAULT_MAX_IMAGE_BYTES,H as DEFAULT_MAX_IMAGE_PIXELS,C as DEFAULT_MAX_MESSAGE_IMAGE_BYTES,F as LocalAttachmentStore,F as default,D as detectImage,U as readImageFile,R as saveImageFile,S as validateImageFile};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@deepseek-ai/dsh-attachment-local","version":"0.1.0","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-attachment":"^0.1.0","@deepseek-ai/dsh-invariants":"^0.1.0","@deepseek-ai/dsh-home-paths":"^0.1.0","@deepseek-ai/cordis":"^4.0.1"},"dependencies":{"sharp":"^0.35.3","@deepseek-ai/schemastery":"^3.18.1"}}
|
|
1
|
+
{"name":"@deepseek-ai/dsh-attachment-local","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-attachment":"^0.1.0-rc.7","@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/dsh-home-paths":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1"},"dependencies":{"sharp":"^0.35.3","@deepseek-ai/schemastery":"^3.18.1"}}
|
|
@@ -5,9 +5,6 @@
|
|
|
5
5
|
name: '@deepseek-ai/cordis-plugin-hmr'
|
|
6
6
|
config:
|
|
7
7
|
root: ['.']
|
|
8
|
-
- id: home-quarantine-macos
|
|
9
|
-
name: '@deepseek-ai/dsh-home-quarantine-macos'
|
|
10
|
-
disabled: true
|
|
11
8
|
- id: llm
|
|
12
9
|
name: '@deepseek-ai/dsh-llm'
|
|
13
10
|
- id: session
|
|
@@ -39,8 +36,8 @@
|
|
|
39
36
|
- id: agent-default-model
|
|
40
37
|
name: '@deepseek-ai/dsh-agent-default-model'
|
|
41
38
|
config:
|
|
42
|
-
provider:
|
|
43
|
-
model:
|
|
39
|
+
provider: deepseek-official
|
|
40
|
+
model: deepseek-v4-flash
|
|
44
41
|
- id: jobs
|
|
45
42
|
name: '@deepseek-ai/dsh-jobs-local'
|
|
46
43
|
- id: llm-retry
|
|
@@ -51,36 +48,6 @@
|
|
|
51
48
|
name: '@deepseek-ai/dsh-credentials-local'
|
|
52
49
|
- id: llm-pi-ai
|
|
53
50
|
name: '@deepseek-ai/dsh-llm-pi-ai'
|
|
54
|
-
config:
|
|
55
|
-
providers:
|
|
56
|
-
qb-gateway:
|
|
57
|
-
displayName: QQ浏览器提供的模型
|
|
58
|
-
apiKeyEnv: DSH_QB_GATEWAY_KEY
|
|
59
|
-
api: openai-completions
|
|
60
|
-
baseURLService: llmGateway
|
|
61
|
-
defaultContextWindow: 131072
|
|
62
|
-
defaultMaxTokens: 32768
|
|
63
|
-
models:
|
|
64
|
-
- id: Auto
|
|
65
|
-
name: Auto (免费)
|
|
66
|
-
- id: qb-auth
|
|
67
|
-
name: '@deepseek-ai/dsh-qb-auth'
|
|
68
|
-
- id: content-review
|
|
69
|
-
name: '@deepseek-ai/dsh-content-review'
|
|
70
|
-
- id: llm-gateway-openai
|
|
71
|
-
name: '@deepseek-ai/dsh-llm-gateway-openai'
|
|
72
|
-
config:
|
|
73
|
-
host: '127.0.0.1'
|
|
74
|
-
port: 0
|
|
75
|
-
upstream:
|
|
76
|
-
baseURL: https://qbqaproxy.imtt.qq.com/openapi
|
|
77
|
-
timeoutMs: 120000
|
|
78
|
-
auth:
|
|
79
|
-
kind: qb-encode-token
|
|
80
|
-
review:
|
|
81
|
-
input: true
|
|
82
|
-
output: true
|
|
83
|
-
thresholdChars: 100
|
|
84
51
|
- id: session-persistence-jsonl
|
|
85
52
|
name: '@deepseek-ai/dsh-session-persistence-jsonl'
|
|
86
53
|
config:
|
|
@@ -271,10 +238,12 @@
|
|
|
271
238
|
argumentsPreviewChars: 500
|
|
272
239
|
- id: web
|
|
273
240
|
name: '@deepseek-ai/dsh-web'
|
|
274
|
-
|
|
275
|
-
|
|
241
|
+
config:
|
|
242
|
+
searchProvider: deepseek-official
|
|
276
243
|
- id: web-search-deepseek
|
|
277
244
|
name: '@deepseek-ai/dsh-web-search-deepseek'
|
|
245
|
+
config:
|
|
246
|
+
apiKeyEnv: DEEPSEEK_API_KEY
|
|
278
247
|
- id: tool-web
|
|
279
248
|
name: '@deepseek-ai/dsh-tool-web'
|
|
280
249
|
config:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@deepseek-ai/dsh-base","version":"0.1.0","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./cordis.patch.yml":"./cordis.patch.yml","./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","dsh":{"bundle":{"patch":"./cordis.patch.yml"}},"dependencies":{"@deepseek-ai/
|
|
1
|
+
{"name":"@deepseek-ai/dsh-base","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./cordis.patch.yml":"./cordis.patch.yml","./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","dsh":{"bundle":{"patch":"./cordis.patch.yml"}},"dependencies":{"@deepseek-ai/cordis-plugin-hmr":"^1.0.16","@deepseek-ai/cordis-plugin-timer":"^1.1.3","@deepseek-ai/dsh-agent":"^0.1.0-rc.7","@deepseek-ai/dsh-agent-default-model":"^0.1.0-rc.7","@deepseek-ai/dsh-agent-loop":"^0.1.0-rc.7","@deepseek-ai/dsh-attachment-local":"^0.1.0-rc.7","@deepseek-ai/dsh-shell-env":"^0.1.0-rc.7","@deepseek-ai/dsh-bash-sandbox":"^0.1.0-rc.7","@deepseek-ai/dsh-command-compact":"^0.1.0-rc.7","@deepseek-ai/dsh-command-feedback":"^0.1.0-rc.7","@deepseek-ai/dsh-compaction-basic":"^0.1.0-rc.7","@deepseek-ai/dsh-commands":"^0.1.0-rc.7","@deepseek-ai/dsh-command-goal":"^0.1.0-rc.7","@deepseek-ai/dsh-compaction-tool-result-pruner":"^0.1.0-rc.7","@deepseek-ai/dsh-fs-sandbox":"^0.1.0-rc.7","@deepseek-ai/dsh-fs-local":"^0.1.0-rc.7","@deepseek-ai/dsh-credentials-local":"^0.1.0-rc.7","@deepseek-ai/dsh-goal":"^0.1.0-rc.7","@deepseek-ai/dsh-fs-observation-policy":"^0.1.0-rc.7","@deepseek-ai/dsh-goal-round-driver":"^0.1.0-rc.7","@deepseek-ai/dsh-api-gateway":"^0.1.0-rc.7","@deepseek-ai/dsh-llm":"^0.1.0-rc.7","@deepseek-ai/dsh-llm-deepseek":"^0.1.0-rc.7","@deepseek-ai/dsh-llm-pi-ai":"^0.1.0-rc.7","@deepseek-ai/dsh-llm-retry":"^0.1.0-rc.7","@deepseek-ai/dsh-plan-mode":"^0.1.0-rc.7","@deepseek-ai/dsh-pwsh-sandbox":"^0.1.0-rc.7","@deepseek-ai/dsh-repeat-tool-reminder":"^0.1.0-rc.7","@deepseek-ai/dsh-permission-presets":"^0.1.0-rc.7","@deepseek-ai/dsh-sandbox-local":"^0.1.0-rc.7","@deepseek-ai/dsh-sandbox-policy":"^0.1.0-rc.7","@deepseek-ai/dsh-session-persistence-jsonl":"^0.1.0-rc.7","@deepseek-ai/dsh-session":"^0.1.0-rc.7","@deepseek-ai/dsh-session-checkpoint-policy":"^0.1.0-rc.7","@deepseek-ai/dsh-session-projection":"^0.1.0-rc.7","@deepseek-ai/dsh-session-telemetry-otel":"^0.1.0-rc.7","@deepseek-ai/dsh-session-query-sqlite":"^0.1.0-rc.7","@deepseek-ai/dsh-session-title-first-prompt-llm":"^0.1.0-rc.7","@deepseek-ai/dsh-settings-file":"^0.1.0-rc.7","@deepseek-ai/dsh-skill":"^0.1.0-rc.7","@deepseek-ai/dsh-skill-badge":"^0.1.0-rc.7","@deepseek-ai/dsh-skill-filesystem":"^0.1.0-rc.7","@deepseek-ai/dsh-session-title":"^0.1.0-rc.7","@deepseek-ai/dsh-spill-policy":"^0.1.0-rc.7","@deepseek-ai/dsh-spill-local":"^0.1.0-rc.7","@deepseek-ai/dsh-subagent":"^0.1.0-rc.7","@deepseek-ai/dsh-subagent-fork-in-process":"^0.1.0-rc.7","@deepseek-ai/dsh-subagent-spawn-in-process":"^0.1.0-rc.7","@deepseek-ai/dsh-subprocess-local":"^0.1.0-rc.7","@deepseek-ai/dsh-system-prompt":"^0.1.0-rc.7","@deepseek-ai/dsh-tool-call-timeout-policy":"^0.1.0-rc.7","@deepseek-ai/dsh-tool-bash":"^0.1.0-rc.7","@deepseek-ai/dsh-jobs-local":"^0.1.0-rc.7","@deepseek-ai/dsh-token-meter":"^0.1.0-rc.7","@deepseek-ai/dsh-tool-fs-search":"^0.1.0-rc.7","@deepseek-ai/dsh-tool-goal":"^0.1.0-rc.7","@deepseek-ai/dsh-tool-pwsh":"^0.1.0-rc.7","@deepseek-ai/dsh-tool-fs":"^0.1.0-rc.7","@deepseek-ai/dsh-tool-ralph":"^0.1.0-rc.7","@deepseek-ai/dsh-tool-skill":"^0.1.0-rc.7","@deepseek-ai/dsh-tool-str-replace-editor":"^0.1.0-rc.7","@deepseek-ai/dsh-tool-subagent-control":"^0.1.0-rc.7","@deepseek-ai/dsh-tool-subagent-report":"^0.1.0-rc.7","@deepseek-ai/dsh-tool-subagent":"^0.1.0-rc.7","@deepseek-ai/dsh-tool-web":"^0.1.0-rc.7","@deepseek-ai/dsh-tool-todo":"^0.1.0-rc.7","@deepseek-ai/dsh-tool-jobs":"^0.1.0-rc.7","@deepseek-ai/dsh-tools":"^0.1.0-rc.7","@deepseek-ai/dsh-tool-workflow":"^0.1.0-rc.7","@deepseek-ai/dsh-typert-loader":"^0.1.0-rc.7","@deepseek-ai/dsh-typert-registry":"^0.1.0-rc.7","@deepseek-ai/dsh-user-approval":"^0.1.0-rc.7","@deepseek-ai/dsh-user-questions":"^0.1.0-rc.7","@deepseek-ai/dsh-web":"^0.1.0-rc.7","@deepseek-ai/dsh-web-search-deepseek":"^0.1.0-rc.7","@deepseek-ai/dsh-workflow-worker-thread":"^0.1.0-rc.7","@deepseek-ai/dsh-agent-instructions":"^0.1.0-rc.7"},"peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1"}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@deepseek-ai/dsh-bash-local","version":"0.1.0","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-
|
|
1
|
+
{"name":"@deepseek-ai/dsh-bash-local","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/dsh-timeout":"^0.1.0-rc.7","@deepseek-ai/dsh-settings":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-shell":"^0.1.0-rc.7","@deepseek-ai/dsh-subprocess":"^0.1.0-rc.7"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@deepseek-ai/dsh-bash-sandbox","version":"0.1.0","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-shell":"^0.1.0","@deepseek-ai/dsh-
|
|
1
|
+
{"name":"@deepseek-ai/dsh-bash-sandbox","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-shell":"^0.1.0-rc.7","@deepseek-ai/dsh-sandbox":"^0.1.0-rc.7","@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/dsh-sandbox-policy":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-bash-local":"^0.1.0-rc.7"}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@deepseek-ai/dsh-brand","version":"0.1.0","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.1.0","@deepseek-ai/cordis":"^4.0.1"}}
|
|
1
|
+
{"name":"@deepseek-ai/dsh-brand","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1"}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@deepseek-ai/dsh-client-connection","version":"0.1.0","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./client":{"types":"./lib/types/client/index.d.ts","default":"./lib/client.js"},"./src/*":"./src/*","./package.json":"./package.json"},"dsh":{"client":{"inject":[],"platform":"web","immediately":true}},"license":"MIT","dependencies":{"ws":"^8.21.0","@deepseek-ai/dsh-
|
|
1
|
+
{"name":"@deepseek-ai/dsh-client-connection","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./client":{"types":"./lib/types/client/index.d.ts","default":"./lib/client.js"},"./src/*":"./src/*","./package.json":"./package.json"},"dsh":{"client":{"inject":[],"platform":"web","immediately":true}},"license":"MIT","dependencies":{"ws":"^8.21.0","@deepseek-ai/dsh-host-apiproxy":"^0.1.0-rc.7","@deepseek-ai/dsh-commands":"^0.1.0-rc.7","@deepseek-ai/dsh-attachment":"^0.1.0-rc.7","@deepseek-ai/dsh-llm":"^0.1.0-rc.7","@deepseek-ai/dsh-tools":"^0.1.0-rc.7","@deepseek-ai/dsh-session":"^0.1.0-rc.7","@deepseek-ai/schemastery":"^3.18.1"},"peerDependencies":{"@deepseek-ai/dsh-host-webserver":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-invariants":"^0.1.0-rc.7"}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@deepseek-ai/dsh-client-hmr","version":"0.1.0","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./client":{"types":"./lib/types/client/index.d.ts","default":"./lib/client.js"},"./src/*":"./src/*","./package.json":"./package.json"},"dsh":{"client":{"inject":[],"platform":"web","immediately":true}},"license":"MIT","dependencies":{"@deepseek-ai/schemastery":"^3.18.1"},"peerDependencies":{"@deepseek-ai/cordis-plugin-loader":"^1.0.2","@deepseek-ai/dsh-client-modules":"^0.1.0","@deepseek-ai/dsh-
|
|
1
|
+
{"name":"@deepseek-ai/dsh-client-hmr","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./client":{"types":"./lib/types/client/index.d.ts","default":"./lib/client.js"},"./src/*":"./src/*","./package.json":"./package.json"},"dsh":{"client":{"inject":[],"platform":"web","immediately":true}},"license":"MIT","dependencies":{"@deepseek-ai/schemastery":"^3.18.1"},"peerDependencies":{"@deepseek-ai/cordis-plugin-loader":"^1.0.2","@deepseek-ai/dsh-client-modules":"^0.1.0-rc.7","@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/dsh-host-webserver":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1"}}
|