@songtonyli/dsh-cli 0.1.53 → 0.1.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/bin/dsh.mjs +1 -1
- package/node_modules/@anthropic-ai/sdk/CHANGELOG.md +28 -0
- package/node_modules/@anthropic-ai/sdk/client.js +2 -1
- package/node_modules/@anthropic-ai/sdk/client.mjs +2 -1
- package/node_modules/@anthropic-ai/sdk/core/streaming.js +4 -2
- package/node_modules/@anthropic-ai/sdk/core/streaming.mjs +4 -2
- package/node_modules/@anthropic-ai/sdk/package.json +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.js +25 -10
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.mjs +25 -10
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/versions.js +5 -2
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/versions.mjs +5 -2
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.js +10 -4
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.mjs +10 -4
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployments.js +40 -16
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployments.mjs +40 -16
- package/node_modules/@anthropic-ai/sdk/resources/beta/dreams.js +25 -10
- package/node_modules/@anthropic-ai/sdk/resources/beta/dreams.mjs +25 -10
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.js +30 -12
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.mjs +30 -12
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.js +20 -8
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.mjs +20 -8
- package/node_modules/@anthropic-ai/sdk/resources/beta/files.js +22 -9
- package/node_modules/@anthropic-ai/sdk/resources/beta/files.mjs +22 -9
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.js +25 -10
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.mjs +25 -10
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.js +30 -12
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.mjs +30 -12
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.js +15 -6
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.mjs +15 -6
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.js +25 -11
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.mjs +25 -11
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.js +4 -2
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.mjs +4 -2
- package/node_modules/@anthropic-ai/sdk/resources/beta/models.js +10 -4
- package/node_modules/@anthropic-ai/sdk/resources/beta/models.mjs +10 -4
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.js +15 -6
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.mjs +15 -6
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/resources.js +25 -10
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/resources.mjs +25 -10
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.js +30 -12
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.mjs +30 -12
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.js +10 -4
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.mjs +10 -4
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.js +15 -6
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.mjs +15 -6
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.js +20 -8
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.mjs +20 -8
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.js +22 -9
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.mjs +22 -9
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/certificates.js +20 -8
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/certificates.mjs +20 -8
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/tunnels.js +30 -12
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/tunnels.mjs +30 -12
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.js +35 -14
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.mjs +35 -14
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/vaults.js +30 -12
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/vaults.mjs +30 -12
- package/node_modules/@anthropic-ai/sdk/resources/completions.js +5 -2
- package/node_modules/@anthropic-ai/sdk/resources/completions.mjs +5 -2
- package/node_modules/@anthropic-ai/sdk/resources/files.js +79 -10
- package/node_modules/@anthropic-ai/sdk/resources/files.mjs +79 -10
- package/node_modules/@anthropic-ai/sdk/resources/messages/batches.js +52 -13
- package/node_modules/@anthropic-ai/sdk/resources/messages/batches.mjs +52 -13
- package/node_modules/@anthropic-ai/sdk/resources/messages/messages.js +10 -4
- package/node_modules/@anthropic-ai/sdk/resources/messages/messages.mjs +10 -4
- package/node_modules/@anthropic-ai/sdk/resources/models.js +23 -4
- package/node_modules/@anthropic-ai/sdk/resources/models.mjs +23 -4
- package/node_modules/@anthropic-ai/sdk/resources/skills/skills.js +64 -8
- package/node_modules/@anthropic-ai/sdk/resources/skills/skills.mjs +64 -8
- package/node_modules/@anthropic-ai/sdk/resources/skills/versions.js +67 -7
- package/node_modules/@anthropic-ai/sdk/resources/skills/versions.mjs +67 -7
- package/node_modules/@anthropic-ai/sdk/src/client.ts +12 -1
- package/node_modules/@anthropic-ai/sdk/src/core/streaming.ts +4 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/agents/agents.ts +75 -10
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/agents/versions.ts +15 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/deployment-runs.ts +30 -4
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/deployments.ts +120 -16
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/dreams.ts +75 -10
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/environments/environments.ts +90 -12
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/environments/work.ts +60 -8
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/files.ts +75 -11
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/memory-stores/memories.ts +75 -10
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/memory-stores/memory-stores.ts +90 -12
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/memory-stores/memory-versions.ts +49 -10
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/messages/batches.ts +85 -11
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/messages/messages.ts +24 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/models.ts +30 -4
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/compliance-settings.ts +12 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/index.ts +2 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/organization.ts +4 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/events.ts +45 -6
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/resources.ts +75 -10
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/sessions.ts +90 -12
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/threads/events.ts +30 -4
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/threads/threads.ts +45 -6
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/skills/skills.ts +60 -8
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/skills/versions.ts +72 -9
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/tunnels/certificates.ts +60 -8
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/tunnels/tunnels.ts +90 -12
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/vaults/credentials.ts +105 -14
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/vaults/vaults.ts +90 -12
- package/node_modules/@anthropic-ai/sdk/src/resources/completions.ts +15 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/files.ts +161 -18
- package/node_modules/@anthropic-ai/sdk/src/resources/index.ts +5 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/messages/batches.ts +137 -13
- package/node_modules/@anthropic-ai/sdk/src/resources/messages/index.ts +4 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/messages/messages.ts +38 -4
- package/node_modules/@anthropic-ai/sdk/src/resources/models.ts +43 -4
- package/node_modules/@anthropic-ai/sdk/src/resources/skills/index.ts +2 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/skills/skills.ts +127 -13
- package/node_modules/@anthropic-ai/sdk/src/resources/skills/versions.ts +115 -11
- package/node_modules/@anthropic-ai/sdk/src/tools/agent-toolset/fs-util.ts +16 -4
- package/node_modules/@anthropic-ai/sdk/src/version.ts +1 -1
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.js +14 -4
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.mjs +14 -4
- package/node_modules/@anthropic-ai/sdk/version.js +1 -1
- package/node_modules/@anthropic-ai/sdk/version.mjs +1 -1
- package/node_modules/@aws-sdk/client-bedrock-runtime/README.md +7 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/index.js +2419 -185
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/BedrockRuntime.js +2 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commandBuilder.js +14 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/ApplyGuardrailCommand.js +2 -14
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/ConverseCommand.js +2 -14
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/ConverseStreamCommand.js +2 -18
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/CountTokensCommand.js +2 -14
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/GetAsyncInvokeCommand.js +2 -14
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/InvokeGuardrailChecksCommand.js +4 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/InvokeModelCommand.js +2 -14
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/InvokeModelWithBidirectionalStreamCommand.js +2 -27
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/InvokeModelWithResponseStreamCommand.js +2 -18
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/ListAsyncInvokesCommand.js +2 -14
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/StartAsyncInvokeCommand.js +2 -14
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/index.js +1 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/index.js +2 -1
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/models/enums.js +51 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/runtimeConfig.browser.js +0 -2
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/runtimeConfig.js +1 -2
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/runtimeConfig.native.js +0 -2
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/schemas/schemas_0.js +244 -31
- package/node_modules/@aws-sdk/client-bedrock-runtime/package.json +43 -45
- package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +34 -32
- package/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +8 -4
- package/node_modules/@aws-sdk/token-providers/dist-es/index.js +4 -4
- package/node_modules/@aws-sdk/token-providers/package.json +31 -31
- package/node_modules/@deepseek-ai/dsh/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh/README.md +3 -1
- package/node_modules/@deepseek-ai/dsh/README.zh.md +3 -1
- package/node_modules/@deepseek-ai/dsh/lib/bin.js +12 -8
- package/node_modules/@deepseek-ai/dsh/lib/{plugin-DkYIj96-.js → plugin-BGnVfe_D.js} +26 -8
- package/node_modules/@deepseek-ai/dsh/package.json +111 -111
- package/node_modules/@deepseek-ai/dsh-acp/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-acp-app/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-agent/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-agent-default-model/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-agent-instructions/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-agent-loop/package.json +24 -24
- package/node_modules/@deepseek-ai/dsh-agent-preset/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-composition-reference/references/packages.md +1 -1
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/package.json +28 -28
- package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-anonymous-user-id/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-api-account-controller/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-api-authorization-controller/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-api-gateway/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-api-gateway/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-api-gateway/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-api-gateway/lib/index.js +9 -0
- package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/index.js +12 -0
- package/node_modules/@deepseek-ai/dsh-api-gateway/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-api-job-controller/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-api-remotes/lib/client.js +260 -20
- package/node_modules/@deepseek-ai/dsh-api-remotes/lib/types/client/index.js +2 -1
- package/node_modules/@deepseek-ai/dsh-api-remotes/package.json +41 -41
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.host.js +160 -4
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.remote-client.js +120 -0
- package/node_modules/@deepseek-ai/dsh-api-session-controller/package.json +69 -69
- package/node_modules/@deepseek-ai/dsh-api-settings-controller/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/index.js +13 -7
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/types/shells.js +14 -8
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-api-workspace-controller/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-api-workspace-files/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-app-boot/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-atomic-write/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-attachment/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-attachment-local/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-authorization/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-base/package.json +93 -93
- package/node_modules/@deepseek-ai/dsh-bash-local/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-bash-sandbox/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-brand/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-chunked-list/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-connection/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-client-file-upload/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-file-upload/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-client-hmr/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-client-locale/lib/client.js +7 -7
- package/node_modules/@deepseek-ai/dsh-client-locale/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-client-modules/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-client-product-analytics/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-client-resources/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-client-shortcuts/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-shortcuts/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-shortcuts/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-shortcuts/lib/client.js +12 -7
- package/node_modules/@deepseek-ai/dsh-client-shortcuts/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-client-store/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/lib/client.js +69 -80
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-approval/lib/client.js +10 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-approval/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-attachment/lib/client.js +49 -49
- package/node_modules/@deepseek-ai/dsh-client-ui-attachment/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.i18n.yaml +9 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.md +8 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.zh.md +7 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/client.js +289 -325
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/package.json +37 -37
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.md +7 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.zh.md +7 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/lib/client.js +126 -65
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/client.js +167 -154
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/package.json +33 -33
- package/node_modules/@deepseek-ai/dsh-client-ui-cordis/lib/client.js +74 -74
- package/node_modules/@deepseek-ai/dsh-client-ui-cordis/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/client.js +80 -80
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/package.json +27 -27
- package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/lib/client.js +39 -39
- package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-goal/lib/client.js +16 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-goal/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/lib/client.js +23 -23
- package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-jobs/lib/client.js +37 -37
- package/node_modules/@deepseek-ai/dsh-client-ui-jobs/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-layout/lib/client.js +9 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-layout/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/lib/client.js +12 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.md +9 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.zh.md +9 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/lib/client.js +240 -87
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.md +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.zh.md +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/lib/client.js +45 -31
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/package.json +19 -18
- package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/lib/client.js +18 -18
- package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-plan/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-plan/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-plan/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-plan/lib/client.js +26 -26
- package/node_modules/@deepseek-ai/dsh-client-ui-plan/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/client.js +219 -238
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.md +10 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.zh.md +10 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/DisclosureRow.module.css +14 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/MenuGroup.module.css +37 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/index.js +349 -226
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/DisclosureRow.d.ts +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Input.d.ts +4 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/MenuGroup.d.ts +22 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/index.d.ts +1 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-reference/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-renderer/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-renderer/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/client.js +182 -182
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-client-ui-session/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-settings/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/client.js +139 -143
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +56 -56
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/client.js +87 -87
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/lib/client.js +41 -41
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/client.js +13 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-session-log/lib/client.js +5 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-session-log/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-signin/lib/client.js +24 -24
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-signin/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/lib/client.js +27 -27
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/lib/client.js +43 -43
- package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +53 -58
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/lib/client.js +25 -25
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.excel.js +9 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.js +70 -70
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.pdf.js +9 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/lib/client.js +27 -22
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.md +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.zh.md +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/lib/client.js +209 -182
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/lib/client.js +16 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/lib/client.terminal.js +11 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-skill/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-skill/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-skill/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-skill/lib/client.js +19 -19
- package/node_modules/@deepseek-ai/dsh-client-ui-skill/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-slots/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/lib/client.js +37 -37
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.i18n.yaml +8 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.md +5 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.zh.md +5 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/client.js +33 -33
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/index.js +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.i18n.yaml +9 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.md +12 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.zh.md +12 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/client.js +393 -143
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/package.json +24 -23
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/lib/client.js +197 -197
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/README.i18n.yaml +26 -20
- package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/README.md +37 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/README.zh.md +37 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/lib/client.js +1303 -264
- package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/package.json +23 -19
- package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/lib/client.js +26 -26
- package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/client.js +95 -94
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/package.json +24 -24
- package/node_modules/@deepseek-ai/dsh-cmdline/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-command-compact/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-command-feedback/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-command-goal/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-commands/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-commands/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-compaction/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-compaction-basic/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-compaction-image-offload/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-compaction-tool-result-pruner/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-config-editor/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-cordis-client-runner/lib/client.js +59 -4
- package/node_modules/@deepseek-ai/dsh-cordis-client-runner/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/README.i18n.yaml +5 -2
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/README.md +8 -0
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/README.zh.md +8 -0
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/index.js +58 -20
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/typert.host.js +18 -18
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/typert.remote-client.js +12 -12
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/types/index.js +5 -3
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/types/inspect-registry.js +62 -17
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/package.json +17 -16
- package/node_modules/@deepseek-ai/dsh-credentials/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-credentials-local/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-deepseek-account/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-deque/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/package.json +35 -35
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/lib/client.js +32 -32
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/lib/client.js +24 -24
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/package.json +31 -31
- package/node_modules/@deepseek-ai/dsh-experimental-schedule-bundle/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-file-reference/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-file-reference-local/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-fs/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-fs-local/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-fs-observation-policy/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-fs-sandbox/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-goal/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-goal/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-goal-round-driver/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-headless/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-hmr/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-hmr/README.md +1 -0
- package/node_modules/@deepseek-ai/dsh-hmr/README.zh.md +1 -0
- package/node_modules/@deepseek-ai/dsh-hmr/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-home-paths/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-hook-protocol/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-hooks-claude-code/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-hooks-codex/package.json +18 -18
- 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 +13 -13
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-browse/package.json +2 -2
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-host-frontend-static/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-host-open-in-app/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-host-product-telemetry-otel/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-host-webserver/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-http-proxy/package.json +2 -2
- package/node_modules/@deepseek-ai/dsh-invariants/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-jobs/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-jobs-local/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-launch-environment/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-lazy-require/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-llm/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-llm/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-llm-cursor/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-llm-deepseek/package.json +37 -37
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.md +3 -3
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.zh.md +3 -3
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/index.js +10 -6
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-llm-retry/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-mcp-client/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-mcp-resources/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-message-feedback/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-native-command/package.json +2 -2
- package/node_modules/@deepseek-ai/dsh-no-progress-reminder/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-office-to-pdf/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-otel/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-output-retention/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-package-manifest/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-permission-presets/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-permission-presets/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-persona/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-plan-mode/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-plugin-manager/package.json +27 -27
- package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-ptc-runtime/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-pwsh-local/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-sandbox/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-sandbox-local/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-sandbox-policy/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/README.md +3 -3
- package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/README.zh.md +3 -3
- package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/assets/diagnose-windows-sandbox-acl/SKILL.md +39 -22
- package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/assets/diagnose-windows-sandbox-acl/scripts/diagnose-windows-sandbox-acl.ps1 +308 -231
- package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-schedule/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-schedule/README.md +3 -3
- package/node_modules/@deepseek-ai/dsh-schedule/README.zh.md +3 -3
- package/node_modules/@deepseek-ai/dsh-schedule/lib/index.js +6 -4
- package/node_modules/@deepseek-ai/dsh-schedule/lib/types/domain.js +6 -4
- package/node_modules/@deepseek-ai/dsh-schedule/package.json +30 -30
- package/node_modules/@deepseek-ai/dsh-scope/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-sdk-app/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-sdk-minimal/package.json +28 -28
- package/node_modules/@deepseek-ai/dsh-sdk-protocol/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-session/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-session-checkpoint-policy/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-session-format/package.json +2 -2
- package/node_modules/@deepseek-ai/dsh-session-format-catalog/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-session-format-v0-to-v1/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-session-format-v1-to-v2/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-session-format-v2-to-v3/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-session-log-deepseek/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-session-log-export/lib/client.js +3 -3
- package/node_modules/@deepseek-ai/dsh-session-log-export/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-session-persistence/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-session-projection/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-session-projection-cache/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-session-query/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-session-query-sqlite/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-session-reference/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-session-reference/package.json +34 -34
- package/node_modules/@deepseek-ai/dsh-session-stats/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-session-telemetry/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-session-title/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-session-title-first-prompt-llm/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-session-title-llm/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-session-turn-outline/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-settings/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-shell/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-shell-env/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-skill/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-skill-badge/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-skill-filesystem/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-skill-office/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-spill/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-spill-local/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-spill-policy/package.json +30 -30
- package/node_modules/@deepseek-ai/dsh-storage/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-storage-domain/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-storage-json/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-subagent/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-subagent/package.json +48 -48
- package/node_modules/@deepseek-ai/dsh-subagent-acp/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-subagent-in-process-driver/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-subprocess/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-subprocess-local/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-system-prompt/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-terminal/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-terminal-bash/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-time-context/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-timeout/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tmux-context/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-token-meter/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-tool-ask-user/README.i18n.yaml +22 -22
- package/node_modules/@deepseek-ai/dsh-tool-ask-user/README.md +27 -11
- package/node_modules/@deepseek-ai/dsh-tool-ask-user/README.zh.md +27 -11
- package/node_modules/@deepseek-ai/dsh-tool-ask-user/lib/index.js +211 -3
- package/node_modules/@deepseek-ai/dsh-tool-ask-user/package.json +12 -9
- package/node_modules/@deepseek-ai/dsh-tool-bash/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-tool-bash/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-bash/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-bash/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-bash/package.json +29 -29
- package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-tool-call-timeout-policy/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-tool-cordis/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-tool-cordis/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-cordis/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/api-catalog.js +31 -1
- package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/index.js +3 -3
- package/node_modules/@deepseek-ai/dsh-tool-cordis/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-tool-fs/package.json +29 -29
- package/node_modules/@deepseek-ai/dsh-tool-fs-search/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-tool-goal/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-tool-jobs/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-tool-present/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-tool-pwsh/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-tool-pwsh/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-pwsh/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-pwsh/lib/index.js +2 -2
- package/node_modules/@deepseek-ai/dsh-tool-pwsh/package.json +28 -28
- package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-tool-ralph/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-tool-skill/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-tool-subagent/package.json +26 -26
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-tool-todo/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-tool-web/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-tool-workflow/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-tools/package.json +24 -24
- package/node_modules/@deepseek-ai/dsh-tui-app/package.json +75 -75
- package/node_modules/@deepseek-ai/dsh-typert-loader/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-typert-protocol/package.json +2 -2
- package/node_modules/@deepseek-ai/dsh-typert-registry/package.json +2 -2
- package/node_modules/@deepseek-ai/dsh-user-approval/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-user-questions/README.i18n.yaml +19 -22
- package/node_modules/@deepseek-ai/dsh-user-questions/README.md +13 -10
- package/node_modules/@deepseek-ai/dsh-user-questions/README.zh.md +13 -10
- package/node_modules/@deepseek-ai/dsh-user-questions/lib/index.js +659 -46
- package/node_modules/@deepseek-ai/dsh-user-questions/lib/typert.host.js +770 -0
- package/node_modules/@deepseek-ai/dsh-user-questions/lib/typert.remote-client.js +125 -0
- package/node_modules/@deepseek-ai/dsh-user-questions/lib/types/index.js +289 -58
- package/node_modules/@deepseek-ai/dsh-user-questions/lib/types/projection.js +298 -0
- package/node_modules/@deepseek-ai/dsh-user-questions/lib/types/timed-wait.js +85 -0
- package/node_modules/@deepseek-ai/dsh-user-questions/package.json +35 -11
- package/node_modules/@deepseek-ai/dsh-util-code-language/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-util-crypto/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-util-time/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-util-values/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-util-workspace-path/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-web/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-web-app/package.json +136 -136
- package/node_modules/@deepseek-ai/dsh-web-fetch-http/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-5SrrfWpU.js +127 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-BPHePDI_.css +1 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/index.html +2 -2
- package/node_modules/@deepseek-ai/dsh-web-frontend/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-web-search-deepseek/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-web-search-exa/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-web-search-perplexity/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-webhook/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-webhook-github/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-win32-process/package.json +2 -2
- package/node_modules/@deepseek-ai/dsh-workflow/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-workflow-ptc/package.json +34 -34
- package/node_modules/@deepseek-ai/dsh-workspace/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-workspace-changes/package.json +11 -11
- package/node_modules/@earendil-works/pi-ai/README.md +52 -8
- package/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.js +131 -87
- package/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.js +17 -5
- package/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.js +13 -12
- package/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.js +21 -73
- package/node_modules/@earendil-works/pi-ai/dist/api/google-shared.js +55 -4
- package/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.js +25 -65
- package/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.js +19 -12
- package/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.js +26 -23
- package/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.js +44 -59
- package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses-shared.js +56 -56
- package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.js +14 -19
- package/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.js +2 -2
- package/node_modules/@earendil-works/pi-ai/dist/api/transform-messages.js +21 -7
- package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/load.js +5 -0
- package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/meta.js +190 -0
- package/node_modules/@earendil-works/pi-ai/dist/bun-oauth.js +2 -0
- package/node_modules/@earendil-works/pi-ai/dist/compat.js +9 -6
- package/node_modules/@earendil-works/pi-ai/dist/env-api-keys.js +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/image-models.generated.js +49 -4
- package/node_modules/@earendil-works/pi-ai/dist/index.js +2 -1
- package/node_modules/@earendil-works/pi-ai/dist/models.generated.js +4 -0
- package/node_modules/@earendil-works/pi-ai/dist/models.js +5 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/all.js +2 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/.manifest.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/amazon-bedrock.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/ant-ling.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/anthropic.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/azure-openai-responses.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/baseten.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/cerebras.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/cloudflare-workers-ai.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/deepseek.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/google-vertex.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/google.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/groq.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/kimi-coding.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/meta.json +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/minimax-cn.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/minimax.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/mistral.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/moonshotai-cn.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/moonshotai.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/openai-codex.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/openai.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode-go.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-individual.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/radius.json +1 -0
- 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/xai.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi-token-plan-ams.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi-token-plan-cn.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi-token-plan-sgp.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi.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 +12 -11
- package/node_modules/@earendil-works/pi-ai/dist/providers/meta.js +24 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/meta.models.js +6 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/opencode-go.js +4 -3
- package/node_modules/@earendil-works/pi-ai/dist/providers/opencode-headers.js +22 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/opencode.js +5 -4
- package/node_modules/@earendil-works/pi-ai/dist/providers/radius.js +19 -5
- package/node_modules/@earendil-works/pi-ai/dist/providers/radius.models.js +6 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/estimate.js +8 -29
- package/node_modules/@earendil-works/pi-ai/dist/utils/event-stream.js +25 -7
- package/node_modules/@earendil-works/pi-ai/dist/utils/overflow.js +11 -5
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry.js +9 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/text.js +26 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/transcript.js +204 -0
- package/node_modules/@earendil-works/pi-ai/node_modules/https-proxy-agent/LICENSE +22 -0
- package/node_modules/@earendil-works/pi-ai/node_modules/https-proxy-agent/README.md +70 -0
- package/node_modules/@earendil-works/pi-ai/node_modules/https-proxy-agent/dist/index.js +234 -0
- package/node_modules/@earendil-works/pi-ai/node_modules/https-proxy-agent/dist/parse-proxy-response.js +94 -0
- package/node_modules/@earendil-works/pi-ai/node_modules/https-proxy-agent/package.json +51 -0
- package/node_modules/@earendil-works/pi-ai/package.json +9 -9
- package/node_modules/@earendil-works/pi-telemetry/package.json +1 -1
- package/node_modules/@google/genai/README.md +19 -4
- package/node_modules/@google/genai/dist/index.cjs +7737 -2768
- package/node_modules/@google/genai/dist/index.mjs +7730 -2769
- package/node_modules/@google/genai/dist/node/index.cjs +7741 -2763
- package/node_modules/@google/genai/dist/node/index.mjs +7734 -2764
- package/node_modules/@google/genai/dist/tokenizer/node.cjs +424 -117
- package/node_modules/@google/genai/dist/tokenizer/node.mjs +424 -117
- package/node_modules/@google/genai/dist/vertex_internal/index.cjs +560 -181
- package/node_modules/@google/genai/dist/vertex_internal/index.js +561 -182
- package/node_modules/@google/genai/dist/web/index.mjs +7717 -2757
- package/node_modules/@google/genai/package.json +3 -3
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +41 -70
- package/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +3 -0
- package/node_modules/@smithy/node-http-handler/dist-es/http2/ClientHttp2SessionRef.js +1 -0
- package/node_modules/@smithy/node-http-handler/dist-es/index.js +3 -3
- package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +19 -8
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +2 -3
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +10 -2
- package/node_modules/@smithy/node-http-handler/package.json +23 -30
- package/node_modules/agent-base/dist/helpers.js +5 -34
- package/node_modules/agent-base/dist/index.js +8 -40
- package/node_modules/agent-base/package.json +11 -11
- package/node_modules/http-proxy-agent/dist/index.js +26 -42
- package/node_modules/http-proxy-agent/package.json +14 -13
- package/node_modules/https-proxy-agent/node_modules/agent-base/LICENSE +22 -0
- package/node_modules/https-proxy-agent/node_modules/agent-base/README.md +69 -0
- package/node_modules/https-proxy-agent/node_modules/agent-base/dist/helpers.js +66 -0
- package/node_modules/https-proxy-agent/node_modules/agent-base/dist/index.js +178 -0
- package/node_modules/https-proxy-agent/node_modules/agent-base/package.json +46 -0
- package/node_modules/proxy-agent-negotiate/dist/index.js +35 -0
- package/node_modules/proxy-agent-negotiate/package.json +43 -0
- package/node_modules/typebox/build/compile/validator.mjs +1 -1
- package/node_modules/typebox/build/format/date.mjs +1 -1
- package/node_modules/typebox/build/format/date_time.mjs +3 -3
- package/node_modules/typebox/build/format/email.mjs +2 -2
- package/node_modules/typebox/build/format/hostname.mjs +2 -10
- package/node_modules/typebox/build/format/idn_email.mjs +3 -3
- package/node_modules/typebox/build/format/idn_hostname.mjs +3 -11
- package/node_modules/typebox/build/format/idna/format/bidi.mjs +98 -0
- package/node_modules/typebox/build/format/idna/format/puny.mjs +144 -0
- package/node_modules/typebox/build/format/idna/hostname.mjs +16 -0
- package/node_modules/typebox/build/format/idna/idn-hostname.mjs +43 -0
- package/node_modules/typebox/build/format/idna/index.mjs +2 -0
- package/node_modules/typebox/build/format/idna/label/ascii.mjs +9 -0
- package/node_modules/typebox/build/format/idna/label/puny.mjs +28 -0
- package/node_modules/typebox/build/format/idna/label/unicode.mjs +106 -0
- package/node_modules/typebox/build/format/idna/pattern/pattern.mjs +70 -0
- package/node_modules/typebox/build/format/ipv4.mjs +2 -32
- package/node_modules/typebox/build/format/ipv6.mjs +2 -61
- package/node_modules/typebox/build/format/iri.mjs +30 -8
- package/node_modules/typebox/build/format/iri_reference.mjs +9 -55
- package/node_modules/typebox/build/format/json_pointer.mjs +2 -2
- package/node_modules/typebox/build/format/json_pointer_uri_fragment.mjs +2 -2
- package/node_modules/typebox/build/format/regex.mjs +2 -6
- package/node_modules/typebox/build/format/relative_json_pointer.mjs +2 -2
- package/node_modules/typebox/build/format/time.mjs +19 -14
- package/node_modules/typebox/build/format/uri.mjs +3 -130
- package/node_modules/typebox/build/format/uri_reference.mjs +2 -3
- package/node_modules/typebox/build/format/uri_template.mjs +4 -5
- package/node_modules/typebox/build/format/url.mjs +4 -5
- package/node_modules/typebox/build/guard/emit.mjs +13 -8
- package/node_modules/typebox/build/guard/guard.mjs +22 -13
- package/node_modules/typebox/build/guard/string.mjs +23 -31
- package/node_modules/typebox/build/schema/compile.mjs +8 -8
- package/node_modules/typebox/build/schema/engine/_context.mjs +12 -17
- package/node_modules/typebox/build/schema/engine/_functions.mjs +2 -3
- package/node_modules/typebox/build/schema/engine/_regexp.mjs +4 -0
- package/node_modules/typebox/build/schema/engine/_stack.mjs +138 -36
- package/node_modules/typebox/build/schema/engine/additionalItems.mjs +17 -7
- package/node_modules/typebox/build/schema/engine/additionalProperties.mjs +20 -7
- package/node_modules/typebox/build/schema/engine/allOf.mjs +2 -2
- package/node_modules/typebox/build/schema/engine/anyOf.mjs +2 -2
- package/node_modules/typebox/build/schema/engine/contains.mjs +18 -6
- package/node_modules/typebox/build/schema/engine/enum.mjs +1 -1
- package/node_modules/typebox/build/schema/engine/if.mjs +2 -2
- package/node_modules/typebox/build/schema/engine/items.mjs +26 -6
- package/node_modules/typebox/build/schema/engine/maxContains.mjs +3 -3
- package/node_modules/typebox/build/schema/engine/minContains.mjs +14 -4
- package/node_modules/typebox/build/schema/engine/not.mjs +4 -2
- package/node_modules/typebox/build/schema/engine/oneOf.mjs +9 -8
- package/node_modules/typebox/build/schema/engine/pattern.mjs +3 -2
- package/node_modules/typebox/build/schema/engine/patternProperties.mjs +4 -3
- package/node_modules/typebox/build/schema/engine/propertyNames.mjs +1 -3
- package/node_modules/typebox/build/schema/engine/ref.mjs +3 -9
- package/node_modules/typebox/build/schema/engine/schema.mjs +19 -4
- package/node_modules/typebox/build/schema/engine/type.mjs +1 -1
- package/node_modules/typebox/build/schema/engine/unevaluatedItems.mjs +2 -2
- package/node_modules/typebox/build/schema/engine/unevaluatedProperties.mjs +2 -2
- package/node_modules/typebox/build/schema/errors.mjs +7 -13
- package/node_modules/typebox/build/schema/intern/index.mjs +1 -0
- package/node_modules/typebox/build/schema/intern/intern.mjs +259 -0
- package/node_modules/typebox/build/schema/parse.mjs +10 -5
- package/node_modules/typebox/build/schema/resolve/resolve.mjs +327 -1
- package/node_modules/typebox/build/schema/schema.mjs +1 -0
- package/node_modules/typebox/build/schema/static/propertyNames.mjs +3 -0
- package/node_modules/typebox/build/schema/types/index.mjs +0 -2
- package/node_modules/typebox/build/system/memory/assign.mjs +2 -1
- package/node_modules/typebox/build/system/memory/clone.mjs +14 -11
- package/node_modules/typebox/build/system/memory/create.mjs +3 -4
- package/node_modules/typebox/build/system/memory/discard.mjs +8 -7
- package/node_modules/typebox/build/system/memory/freeze.mjs +6 -0
- package/node_modules/typebox/build/system/memory/update.mjs +3 -2
- package/node_modules/typebox/build/system/settings/settings.mjs +2 -0
- package/node_modules/typebox/build/type/engine/call/distribute_arguments.mjs +16 -3
- package/node_modules/typebox/build/type/engine/call/instantiate.mjs +34 -4
- package/node_modules/typebox/build/type/engine/evaluate/broaden.mjs +20 -26
- package/node_modules/typebox/build/type/engine/evaluate/compare.mjs +9 -13
- package/node_modules/typebox/build/type/engine/evaluate/composite.mjs +12 -19
- package/node_modules/typebox/build/type/engine/evaluate/distribute.mjs +8 -20
- package/node_modules/typebox/build/type/engine/evaluate/evaluate.mjs +11 -8
- package/node_modules/typebox/build/type/engine/evaluate/flatten.mjs +3 -4
- package/node_modules/typebox/build/type/engine/evaluate/narrow.mjs +26 -6
- package/node_modules/typebox/build/type/engine/exclude/operation.mjs +3 -4
- package/node_modules/typebox/build/type/engine/extract/operation.mjs +3 -4
- package/node_modules/typebox/build/type/engine/priority/priority.mjs +3 -4
- package/node_modules/typebox/build/type/script/mapping.mjs +18 -25
- package/node_modules/typebox/build/type/script/parser.mjs +27 -23
- package/node_modules/typebox/build/value/errors/errors.mjs +2 -7
- package/node_modules/typebox/package.json +29 -29
- package/node_modules/typebox/readme.md +84 -83
- package/package.json +294 -308
- package/node_modules/@aws-crypto/sha256-browser/CHANGELOG.md +0 -118
- package/node_modules/@aws-crypto/sha256-browser/LICENSE +0 -202
- package/node_modules/@aws-crypto/sha256-browser/README.md +0 -31
- package/node_modules/@aws-crypto/sha256-browser/build/main/constants.js +0 -43
- package/node_modules/@aws-crypto/sha256-browser/build/main/crossPlatformSha256.js +0 -30
- package/node_modules/@aws-crypto/sha256-browser/build/main/index.js +0 -8
- package/node_modules/@aws-crypto/sha256-browser/build/main/isEmptyData.js +0 -11
- package/node_modules/@aws-crypto/sha256-browser/build/main/webCryptoSha256.js +0 -56
- package/node_modules/@aws-crypto/sha256-browser/build/module/constants.js +0 -40
- package/node_modules/@aws-crypto/sha256-browser/build/module/crossPlatformSha256.js +0 -27
- package/node_modules/@aws-crypto/sha256-browser/build/module/index.js +0 -3
- package/node_modules/@aws-crypto/sha256-browser/build/module/isEmptyData.js +0 -7
- package/node_modules/@aws-crypto/sha256-browser/build/module/webCryptoSha256.js +0 -53
- package/node_modules/@aws-crypto/sha256-browser/package.json +0 -28
- package/node_modules/@aws-crypto/sha256-browser/src/constants.ts +0 -41
- package/node_modules/@aws-crypto/sha256-browser/src/crossPlatformSha256.ts +0 -30
- package/node_modules/@aws-crypto/sha256-browser/src/index.ts +0 -2
- package/node_modules/@aws-crypto/sha256-browser/src/isEmptyData.ts +0 -9
- package/node_modules/@aws-crypto/sha256-browser/src/webCryptoSha256.ts +0 -71
- package/node_modules/@aws-crypto/sha256-browser/tsconfig.json +0 -10
- package/node_modules/@aws-crypto/sha256-browser/tsconfig.module.json +0 -7
- package/node_modules/@aws-crypto/sha256-js/CHANGELOG.md +0 -106
- package/node_modules/@aws-crypto/sha256-js/LICENSE +0 -201
- package/node_modules/@aws-crypto/sha256-js/README.md +0 -29
- package/node_modules/@aws-crypto/sha256-js/build/main/RawSha256.js +0 -124
- package/node_modules/@aws-crypto/sha256-js/build/main/constants.js +0 -98
- package/node_modules/@aws-crypto/sha256-js/build/main/index.js +0 -5
- package/node_modules/@aws-crypto/sha256-js/build/main/jsSha256.js +0 -85
- package/node_modules/@aws-crypto/sha256-js/build/main/knownHashes.fixture.js +0 -322
- package/node_modules/@aws-crypto/sha256-js/build/module/RawSha256.js +0 -121
- package/node_modules/@aws-crypto/sha256-js/build/module/constants.js +0 -95
- package/node_modules/@aws-crypto/sha256-js/build/module/index.js +0 -2
- package/node_modules/@aws-crypto/sha256-js/build/module/jsSha256.js +0 -82
- package/node_modules/@aws-crypto/sha256-js/build/module/knownHashes.fixture.js +0 -319
- package/node_modules/@aws-crypto/sha256-js/package.json +0 -27
- package/node_modules/@aws-crypto/sha256-js/src/RawSha256.ts +0 -164
- package/node_modules/@aws-crypto/sha256-js/src/constants.ts +0 -98
- package/node_modules/@aws-crypto/sha256-js/src/index.ts +0 -1
- package/node_modules/@aws-crypto/sha256-js/src/jsSha256.ts +0 -94
- package/node_modules/@aws-crypto/sha256-js/src/knownHashes.fixture.ts +0 -401
- package/node_modules/@aws-crypto/sha256-js/tsconfig.json +0 -10
- package/node_modules/@aws-crypto/sha256-js/tsconfig.module.json +0 -7
- package/node_modules/@aws-crypto/supports-web-crypto/CHANGELOG.md +0 -66
- package/node_modules/@aws-crypto/supports-web-crypto/LICENSE +0 -202
- package/node_modules/@aws-crypto/supports-web-crypto/README.md +0 -32
- package/node_modules/@aws-crypto/supports-web-crypto/build/main/index.js +0 -5
- package/node_modules/@aws-crypto/supports-web-crypto/build/main/supportsWebCrypto.js +0 -69
- package/node_modules/@aws-crypto/supports-web-crypto/build/module/index.js +0 -2
- package/node_modules/@aws-crypto/supports-web-crypto/build/module/supportsWebCrypto.js +0 -62
- package/node_modules/@aws-crypto/supports-web-crypto/package.json +0 -23
- package/node_modules/@aws-crypto/supports-web-crypto/src/index.ts +0 -1
- package/node_modules/@aws-crypto/supports-web-crypto/src/supportsWebCrypto.ts +0 -76
- package/node_modules/@aws-crypto/supports-web-crypto/tsconfig.json +0 -10
- package/node_modules/@aws-crypto/supports-web-crypto/tsconfig.module.json +0 -7
- package/node_modules/@aws-crypto/util/CHANGELOG.md +0 -71
- package/node_modules/@aws-crypto/util/LICENSE +0 -201
- package/node_modules/@aws-crypto/util/README.md +0 -16
- package/node_modules/@aws-crypto/util/build/main/convertToBuffer.js +0 -24
- package/node_modules/@aws-crypto/util/build/main/index.js +0 -14
- package/node_modules/@aws-crypto/util/build/main/isEmptyData.js +0 -13
- package/node_modules/@aws-crypto/util/build/main/numToUint8.js +0 -15
- package/node_modules/@aws-crypto/util/build/main/uint32ArrayFrom.js +0 -20
- package/node_modules/@aws-crypto/util/build/module/convertToBuffer.js +0 -20
- package/node_modules/@aws-crypto/util/build/module/index.js +0 -7
- package/node_modules/@aws-crypto/util/build/module/isEmptyData.js +0 -9
- package/node_modules/@aws-crypto/util/build/module/numToUint8.js +0 -11
- package/node_modules/@aws-crypto/util/build/module/uint32ArrayFrom.js +0 -16
- package/node_modules/@aws-crypto/util/package.json +0 -27
- package/node_modules/@aws-crypto/util/src/convertToBuffer.ts +0 -30
- package/node_modules/@aws-crypto/util/src/index.ts +0 -7
- package/node_modules/@aws-crypto/util/src/isEmptyData.ts +0 -12
- package/node_modules/@aws-crypto/util/src/numToUint8.ts +0 -11
- package/node_modules/@aws-crypto/util/src/uint32ArrayFrom.ts +0 -16
- package/node_modules/@aws-crypto/util/tsconfig.json +0 -9
- package/node_modules/@aws-crypto/util/tsconfig.module.json +0 -7
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/auth/httpAuthSchemeProvider.js +0 -63
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/endpoint/bdd.js +0 -49
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/endpoint/endpointResolver.js +0 -18
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/models/BedrockRuntimeServiceException.js +0 -12
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/models/errors.js +0 -169
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/runtimeConfig.browser.js +0 -41
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/runtimeConfig.js +0 -78
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/runtimeConfig.native.js +0 -19
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/runtimeConfig.shared.js +0 -48
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/schemas/schemas_0.js +0 -1500
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/LICENSE +0 -201
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/README.md +0 -9
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-cjs/index.js +0 -859
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/build-abort-error.js +0 -19
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/constants.js +0 -1
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +0 -12
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/http2/ClientHttp2SessionRef.js +0 -51
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/index.js +0 -3
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +0 -251
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +0 -135
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-pool.js +0 -46
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +0 -180
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/set-connection-timeout.js +0 -36
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/set-request-timeout.js +0 -21
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/set-socket-keep-alive.js +0 -22
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +0 -23
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/timing.js +0 -4
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +0 -63
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/package.json +0 -56
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/LICENSE +0 -201
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/README.md +0 -9
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-cjs/index.js +0 -859
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/build-abort-error.js +0 -19
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/constants.js +0 -1
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +0 -12
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/http2/ClientHttp2SessionRef.js +0 -51
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/index.js +0 -3
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +0 -251
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +0 -135
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-pool.js +0 -46
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +0 -180
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-http2.js +0 -2
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-https.js +0 -2
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/set-connection-timeout.js +0 -36
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/set-request-timeout.js +0 -21
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/set-socket-keep-alive.js +0 -22
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +0 -23
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/timing.js +0 -4
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +0 -63
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/package.json +0 -56
- package/node_modules/@aws-sdk/util-locate-window/LICENSE +0 -201
- package/node_modules/@aws-sdk/util-locate-window/README.md +0 -4
- package/node_modules/@aws-sdk/util-locate-window/dist-cjs/index.js +0 -12
- package/node_modules/@aws-sdk/util-locate-window/dist-es/index.js +0 -10
- package/node_modules/@aws-sdk/util-locate-window/package.json +0 -43
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/OnboardingSurface.module.css +0 -28
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/OnboardingSurface.d.ts +0 -11
- package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/types-DxezulnA.js +0 -1324
- package/node_modules/@deepseek-ai/dsh-schedule/lib/types/persistence.js +0 -30
- package/node_modules/@deepseek-ai/dsh-schedule/lib/types/projection.js +0 -68
- package/node_modules/@deepseek-ai/dsh-schedule/lib/types/transaction.js +0 -22
- package/node_modules/@deepseek-ai/dsh-subprocess-local/lib/runner-launch-DGV26RBf.js +0 -1525
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-Cq6ljTv2.css +0 -1
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-Dy0OhsZ5.js +0 -127
- package/node_modules/@earendil-works/pi-ai/dist/utils/deferred-tools.js +0 -36
- package/node_modules/@smithy/is-array-buffer/LICENSE +0 -201
- package/node_modules/@smithy/is-array-buffer/README.md +0 -10
- package/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +0 -32
- package/node_modules/@smithy/is-array-buffer/dist-es/index.js +0 -2
- package/node_modules/@smithy/is-array-buffer/package.json +0 -48
- package/node_modules/@smithy/node-http-handler/dist-es/readable.mock.js +0 -21
- package/node_modules/@smithy/node-http-handler/dist-es/server.mock.js +0 -88
- package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/collector.js +0 -8
- package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/index.js +0 -41
- package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/readable.mock.js +0 -21
- package/node_modules/@smithy/util-buffer-from/LICENSE +0 -201
- package/node_modules/@smithy/util-buffer-from/README.md +0 -10
- package/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +0 -47
- package/node_modules/@smithy/util-buffer-from/dist-es/index.js +0 -14
- package/node_modules/@smithy/util-buffer-from/package.json +0 -49
- package/node_modules/@smithy/util-utf8/LICENSE +0 -201
- package/node_modules/@smithy/util-utf8/README.md +0 -4
- package/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.browser.js +0 -1
- package/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.js +0 -1
- package/node_modules/@smithy/util-utf8/dist-cjs/index.js +0 -65
- package/node_modules/@smithy/util-utf8/dist-cjs/toUint8Array.js +0 -1
- package/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.browser.js +0 -1
- package/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.js +0 -1
- package/node_modules/@smithy/util-utf8/dist-es/fromUtf8.browser.js +0 -1
- package/node_modules/@smithy/util-utf8/dist-es/fromUtf8.js +0 -5
- package/node_modules/@smithy/util-utf8/dist-es/index.js +0 -3
- package/node_modules/@smithy/util-utf8/dist-es/toUint8Array.js +0 -10
- package/node_modules/@smithy/util-utf8/dist-es/toUtf8.browser.js +0 -9
- package/node_modules/@smithy/util-utf8/dist-es/toUtf8.js +0 -10
- package/node_modules/@smithy/util-utf8/package.json +0 -54
- package/node_modules/typebox/build/format/_idna.mjs +0 -246
- package/node_modules/typebox/build/format/_puny.mjs +0 -77
- package/node_modules/typebox/build/schema/resolve/ref.mjs +0 -146
- package/node_modules/typebox/build/schema/types/contentEncoding.mjs +0 -13
- package/node_modules/typebox/build/schema/types/contentMediaType.mjs +0 -13
- /package/node_modules/{@aws-sdk/credential-provider-http/node_modules/@smithy → @smithy}/node-http-handler/dist-es/node-http2.js +0 -0
- /package/node_modules/{@aws-sdk/credential-provider-http/node_modules/@smithy → @smithy}/node-http-handler/dist-es/node-https.js +0 -0
|
@@ -1,75 +1,66 @@
|
|
|
1
1
|
<#
|
|
2
2
|
.SYNOPSIS
|
|
3
|
-
|
|
4
|
-
DSH sandbox cannot open.
|
|
3
|
+
Diagnose the DSH sandbox ACL failures on Windows and repair them in one run.
|
|
5
4
|
|
|
6
5
|
.DESCRIPTION
|
|
7
6
|
A denial inside the DSH sandbox is worth diagnosing only when it contradicts
|
|
8
7
|
what the active mode promises: writes inside the workspace, or reads that the
|
|
9
|
-
signed-in user should plainly have.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
8
|
+
signed-in user should plainly have. One invocation reads each requested path
|
|
9
|
+
and every ancestor, then repairs what it can in the same run:
|
|
10
|
+
|
|
11
|
+
* every directory on that chain inside -AllowRoot that lacks effective
|
|
12
|
+
WRITE_DAC or WRITE_OWNER gets a FullControl allow ACE for the current
|
|
13
|
+
user, so the sandbox can provision the grant it needs; and
|
|
14
|
+
* every explicit AppContainer package allow ACE (S-1-15-2-*, excluding the
|
|
15
|
+
well-known groups ending in 1 or 2) is removed at its source, ancestor
|
|
16
|
+
first, which also removes that package's access to the tree.
|
|
17
|
+
|
|
18
|
+
A directory the caller cannot provision is the state the sandbox reports on the
|
|
19
|
+
workspace root, while the conflicting entry often sits deeper; the authorized root
|
|
20
|
+
is examined for the same reason. For either case the same run also collects explicit
|
|
21
|
+
package allow ACEs under the requested directory, so they do not need a second call.
|
|
22
|
+
The walk is bounded, enters no reparse point or managed application tree, and reports
|
|
23
|
+
truncation and unreadable directories instead of claiming a complete walk.
|
|
24
|
+
|
|
25
|
+
Every observation, change, verification and recovery command is printed as it
|
|
26
|
+
happens, so one run shows the caller the complete set of actions.
|
|
27
|
+
|
|
28
|
+
-AllowRoot bounds every change: an object is modified only when it is that
|
|
29
|
+
directory or strictly inside it, so a caller can repair its own workspace
|
|
30
|
+
root. Reparse paths and managed application trees are refused. Each modified
|
|
31
|
+
object is backed up first, with an independent recovery script, and every DACL
|
|
32
|
+
write is verified by re-reading it. A failed repair restores all attempted
|
|
33
|
+
DACL changes from this invocation in reverse order and stops.
|
|
25
34
|
|
|
26
35
|
The script never creates, deletes, or writes the contents of any file. Its
|
|
27
|
-
only
|
|
36
|
+
only writes are the recovery artifacts under -Out and the DACLs it repairs.
|
|
28
37
|
|
|
29
38
|
.PARAMETER Path
|
|
30
|
-
One or more failing paths. Each is diagnosed together with its ancestors.
|
|
39
|
+
One or more failing paths. Each is diagnosed and repaired together with its ancestors.
|
|
31
40
|
|
|
32
41
|
.PARAMETER AllowRoot
|
|
33
|
-
Required
|
|
42
|
+
Required. Every modified object must be this directory or strictly inside it.
|
|
34
43
|
|
|
35
44
|
.PARAMETER Out
|
|
36
|
-
Required
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
.PARAMETER Compact
|
|
40
|
-
Save every REPORT record under -Out and print a decision summary with the
|
|
41
|
-
inspected paths, findings, actions, verification and pending recovery commands.
|
|
42
|
-
|
|
43
|
-
.PARAMETER Fix
|
|
44
|
-
Remove individual package allow ACEs, preserving well-known package groups.
|
|
45
|
-
Without a mutation switch, only diagnose.
|
|
46
|
-
|
|
47
|
-
.PARAMETER GrantFullControl
|
|
48
|
-
Grant the current user full control on the requested path. Full control is what
|
|
49
|
-
the documented precondition needs: it carries WRITE_DAC for the DACL and
|
|
50
|
-
WRITE_OWNER for the mandatory label DSH writes in the same call, while taking
|
|
51
|
-
ownership supplies only WRITE_DAC. The owner is never changed. Mutually
|
|
52
|
-
exclusive with -Fix.
|
|
45
|
+
Required for a repair. Receives one recovery record and one recovery script
|
|
46
|
+
per change, so an object repaired twice keeps both recovery points.
|
|
53
47
|
|
|
54
48
|
.PARAMETER Restore
|
|
55
|
-
Restore the DACL recovery record for exactly one -Path
|
|
56
|
-
and WRITE_DAC, preserves owner and SACL
|
|
49
|
+
Restore the DACL recovery record for exactly one -Path instead of repairing.
|
|
50
|
+
Requires -AllowRoot and WRITE_DAC, preserves owner and SACL.
|
|
57
51
|
|
|
58
52
|
.EXAMPLE
|
|
59
|
-
pwsh -File diagnose-windows-sandbox-acl.ps1 -Path '
|
|
53
|
+
pwsh -File diagnose-windows-sandbox-acl.ps1 -Path '<failing path>' -AllowRoot '<authorized directory>' -Out '<recovery directory>'
|
|
60
54
|
|
|
61
55
|
.EXAMPLE
|
|
62
|
-
pwsh -File diagnose-windows-sandbox-acl.ps1 -Path '<
|
|
56
|
+
pwsh -File diagnose-windows-sandbox-acl.ps1 -Path '<failing path>' -AllowRoot '<authorized directory>' -Restore '<recovery record>'
|
|
63
57
|
#>
|
|
64
58
|
[CmdletBinding()]
|
|
65
59
|
param(
|
|
66
60
|
[Parameter(Mandatory = $true)][string[]]$Path,
|
|
67
61
|
[string]$AllowRoot,
|
|
68
62
|
[string]$Out,
|
|
69
|
-
[
|
|
70
|
-
[switch]$GrantFullControl,
|
|
71
|
-
[string]$Restore,
|
|
72
|
-
[switch]$Compact
|
|
63
|
+
[string]$Restore
|
|
73
64
|
)
|
|
74
65
|
|
|
75
66
|
Set-StrictMode -Version Latest
|
|
@@ -78,30 +69,34 @@ $ErrorActionPreference = 'Stop'
|
|
|
78
69
|
# These two well-known groups name all packages, not one conflicting package.
|
|
79
70
|
$PACKAGE_SID = '^S-1-15-2-(?![12]$)'
|
|
80
71
|
$LOW_LABEL_SID = 'S-1-16-4096'
|
|
72
|
+
# Upper bound on the directories one subtree scan may visit, so a huge workspace
|
|
73
|
+
# cannot turn one approved repair into an unbounded walk. Truncation is reported.
|
|
74
|
+
$SCAN_LIMIT = 2000
|
|
81
75
|
|
|
82
|
-
function Write-Line { param([string]$Text)
|
|
76
|
+
function Write-Line { param([string]$Text) Write-Output $Text }
|
|
83
77
|
|
|
84
78
|
# Reports bypass the success pipeline so diagnostics cannot become a function's
|
|
85
79
|
# return value. Each JSON record occupies one stdout line, including paths/errors.
|
|
86
80
|
function Write-Report {
|
|
87
81
|
param([string]$Kind, [string]$Operation, [string]$Target, [string]$Status, [string]$Reason, $Details = @{})
|
|
88
82
|
$record = [ordered]@{ kind = $Kind; operation = $Operation; path = $Target; status = $Status; reason = $Reason; details = $Details }
|
|
89
|
-
$script:reports.Add($record)
|
|
90
83
|
if ($Kind -eq 'observation' -and $Status -in @('unknown', 'unreadable', 'partial')) { $script:observationFailures++ }
|
|
84
|
+
$script:reports.Add($record)
|
|
91
85
|
$json = $record | ConvertTo-Json -Depth 12 -Compress
|
|
92
|
-
|
|
86
|
+
# The complete record set also lands in the report file: tool output is truncated to its
|
|
87
|
+
# tail, so a long run's early records survive only there.
|
|
88
|
+
if ($null -ne $script:reportWriter) {
|
|
93
89
|
try { $script:reportWriter.WriteLine($json); $script:reportWriter.Flush() }
|
|
94
|
-
catch {
|
|
95
|
-
|
|
90
|
+
catch [System.IO.IOException] {
|
|
91
|
+
# stdout keeps only its tail, so this file is the complete record: a write failure
|
|
92
|
+
# has to reach the caller, on stderr, instead of leaving a silently incomplete file.
|
|
93
|
+
[Console]::Error.WriteLine('REPORT_IO_FAILED {0}: {1}' -f $script:reportPath, $_.Exception.Message)
|
|
94
|
+
try { $script:reportWriter.Dispose() } catch { }
|
|
96
95
|
$script:reportWriter = $null
|
|
97
|
-
$script:reportFailed = $true
|
|
98
|
-
[Console]::Out.WriteLine('REPORT ' + $json)
|
|
99
|
-
throw
|
|
100
96
|
}
|
|
101
97
|
}
|
|
102
|
-
|
|
98
|
+
[Console]::Out.WriteLine('REPORT ' + $json)
|
|
103
99
|
}
|
|
104
|
-
|
|
105
100
|
function Invoke-ReportedOperation {
|
|
106
101
|
param([string]$Operation, [string]$Target, [string]$Reason, [string]$Effect, [scriptblock]$Action)
|
|
107
102
|
$entry = [ordered]@{ id = $script:operations.Count + 1; operation = $Operation; path = $Target; effect = $Effect; status = 'started' }
|
|
@@ -257,15 +252,16 @@ function Test-DangerousRoot {
|
|
|
257
252
|
}
|
|
258
253
|
|
|
259
254
|
function Test-UnderRoot {
|
|
260
|
-
param([string]$FullPath, [string]$Root)
|
|
255
|
+
param([string]$FullPath, [string]$Root, [switch]$AllowEqual)
|
|
261
256
|
$r = Get-NormalizedPath $Root
|
|
262
257
|
$c = Get-NormalizedPath $FullPath
|
|
258
|
+
if ($AllowEqual -and $c -ieq $r) { return $true }
|
|
263
259
|
return $c -ine $r -and $c.StartsWith($r.TrimEnd('\') + '\', [System.StringComparison]::OrdinalIgnoreCase)
|
|
264
260
|
}
|
|
265
261
|
|
|
266
262
|
function Get-RepairRefusal {
|
|
267
|
-
param([string]$FullPath, [string]$Root)
|
|
268
|
-
if (-not (Test-UnderRoot -FullPath $FullPath -Root $Root)) { return "$FullPath is outside -AllowRoot" }
|
|
263
|
+
param([string]$FullPath, [string]$Root, [switch]$AllowEqual)
|
|
264
|
+
if (-not (Test-UnderRoot -FullPath $FullPath -Root $Root -AllowEqual:$AllowEqual)) { return "$FullPath is outside -AllowRoot" }
|
|
269
265
|
$danger = Test-DangerousRoot -FullPath $FullPath
|
|
270
266
|
if ($danger) { return "$FullPath is a $danger" }
|
|
271
267
|
# Checking every component also covers a junction used as AllowRoot itself.
|
|
@@ -278,6 +274,68 @@ function Get-RepairRefusal {
|
|
|
278
274
|
return $null
|
|
279
275
|
}
|
|
280
276
|
|
|
277
|
+
# A caller that cannot provision a directory also cannot confine a child anywhere
|
|
278
|
+
# under it, so one approved run examines that subtree for explicit package allow
|
|
279
|
+
# ACEs instead of leaving them for a second call. Directories only: DSH grants and
|
|
280
|
+
# traverses directories, and no reparse point or managed application tree is entered.
|
|
281
|
+
function Get-SubtreePackageSources {
|
|
282
|
+
param([string]$Root, [int]$Limit)
|
|
283
|
+
$sources = @()
|
|
284
|
+
$visited = 0
|
|
285
|
+
$enqueued = 0
|
|
286
|
+
$failed = 0
|
|
287
|
+
$truncated = $false
|
|
288
|
+
$queue = [System.Collections.Generic.Queue[string]]::new()
|
|
289
|
+
# Unreadable directories are skipped, never guessed at: the caller reports the count.
|
|
290
|
+
try {
|
|
291
|
+
foreach ($child in [System.IO.Directory]::EnumerateDirectories($Root)) {
|
|
292
|
+
if ($enqueued -ge $Limit) { $truncated = $true; break }
|
|
293
|
+
$queue.Enqueue($child); $enqueued++
|
|
294
|
+
}
|
|
295
|
+
} catch [System.UnauthorizedAccessException] { $failed++ }
|
|
296
|
+
catch [System.IO.IOException] { $failed++ }
|
|
297
|
+
while ($queue.Count -gt 0) {
|
|
298
|
+
if ($visited -ge $Limit) { $truncated = $true; break }
|
|
299
|
+
$current = $queue.Dequeue()
|
|
300
|
+
$visited++
|
|
301
|
+
if (Test-DangerousRoot -FullPath $current) { continue }
|
|
302
|
+
$item = Get-Item -LiteralPath $current -Force -ErrorAction SilentlyContinue
|
|
303
|
+
if ($null -eq $item) { $failed++; continue }
|
|
304
|
+
if (($item.Attributes -band [System.IO.FileAttributes]::ReparsePoint) -ne 0) { continue }
|
|
305
|
+
try {
|
|
306
|
+
$acl = Get-Acl -LiteralPath $current
|
|
307
|
+
foreach ($rule in $acl.GetAccessRules($true, $false, [System.Security.Principal.SecurityIdentifier])) {
|
|
308
|
+
if ($rule.AccessControlType -eq 'Allow' -and $rule.IdentityReference.Value -match $PACKAGE_SID) { $sources += $current; break }
|
|
309
|
+
}
|
|
310
|
+
} catch [System.UnauthorizedAccessException] { $failed++ }
|
|
311
|
+
catch [System.IO.IOException] { $failed++ }
|
|
312
|
+
try {
|
|
313
|
+
foreach ($child in [System.IO.Directory]::EnumerateDirectories($current)) {
|
|
314
|
+
if ($enqueued -ge $Limit) { $truncated = $true; break }
|
|
315
|
+
$queue.Enqueue($child); $enqueued++
|
|
316
|
+
}
|
|
317
|
+
} catch [System.UnauthorizedAccessException] { $failed++ }
|
|
318
|
+
catch [System.IO.IOException] { $failed++ }
|
|
319
|
+
}
|
|
320
|
+
return [ordered]@{ sources = @($sources); visited = $visited; truncated = $truncated; failed = $failed }
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
function Get-OwnDaclSddl {
|
|
324
|
+
param([string]$Sddl)
|
|
325
|
+
# Inherited ACEs follow their parent: repeating them in a saved DACL forces them
|
|
326
|
+
# back onto the object on restore and stops matching once the parent re-derives
|
|
327
|
+
# them. Keep the observed control flags so the result still carries the
|
|
328
|
+
# object's inheritance protection, and keep every ACE the object owns.
|
|
329
|
+
$flags = [regex]::Match($Sddl, '^D:([A-Z]*)').Groups[1].Value
|
|
330
|
+
$aces = @([regex]::Matches($Sddl, '\([^()]*\)') | ForEach-Object { $_.Value } | Where-Object { ($_ -split ';')[1] -notmatch 'ID' })
|
|
331
|
+
return 'D:{0}{1}' -f $flags, ($aces -join '')
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
function Get-AceSet {
|
|
335
|
+
param([string]$Sddl)
|
|
336
|
+
return @([regex]::Matches($Sddl, '\([^()]*\)') | ForEach-Object { $_.Value } | Sort-Object)
|
|
337
|
+
}
|
|
338
|
+
|
|
281
339
|
function Save-AclBackup {
|
|
282
340
|
param([string]$FullPath, [string]$Directory, [string]$Root)
|
|
283
341
|
$fullDirectory = [System.IO.Path]::GetFullPath($Directory)
|
|
@@ -286,31 +344,32 @@ function Save-AclBackup {
|
|
|
286
344
|
New-Item -ItemType Directory -Path $fullDirectory | Out-Null
|
|
287
345
|
}
|
|
288
346
|
}
|
|
289
|
-
$
|
|
290
|
-
$record = $backup + '.json'
|
|
347
|
+
$record = Join-Path $fullDirectory ('acl-backup-{0}.json' -f ([guid]::NewGuid().ToString('N')))
|
|
291
348
|
# The skill's extracted directory expires with its registration. Recovery must
|
|
292
|
-
# remain runnable from the
|
|
293
|
-
$restoreScript = $
|
|
349
|
+
# remain runnable from the recovery directory after that registration is gone.
|
|
350
|
+
$restoreScript = $record + '.ps1'
|
|
294
351
|
$command = "pwsh -NoProfile -File '{0}' -Path '{1}' -AllowRoot '{2}' -Restore '{3}'" -f
|
|
295
352
|
$restoreScript.Replace("'", "''"), $FullPath.Replace("'", "''"), ([System.IO.Path]::GetFullPath($Root)).Replace("'", "''"), $record.Replace("'", "''")
|
|
296
|
-
Write-Report decision backup $FullPath selected '
|
|
353
|
+
Write-Report decision backup $FullPath selected 'The recovery record and an independent recovery script are written before the ACL change.' @{ files = @($record, $restoreScript) }
|
|
297
354
|
Invoke-ReportedOperation backup $FullPath 'Save the original DACL and an independent recovery command before changing permissions.' files {
|
|
298
|
-
$
|
|
299
|
-
|
|
300
|
-
@{
|
|
301
|
-
|
|
355
|
+
$backupAcl = Get-Acl -LiteralPath $FullPath
|
|
356
|
+
$observed = $backupAcl.GetSecurityDescriptorSddlForm([System.Security.AccessControl.AccessControlSections]::Access)
|
|
357
|
+
@{
|
|
358
|
+
Path = $FullPath
|
|
359
|
+
Dacl = Get-OwnDaclSddl -Sddl $observed
|
|
360
|
+
Protected = $backupAcl.AreAccessRulesProtected
|
|
361
|
+
Observed = $observed
|
|
362
|
+
} | ConvertTo-Json | Set-Content -LiteralPath $record -Encoding utf8
|
|
302
363
|
Copy-Item -LiteralPath $PSCommandPath -Destination $restoreScript
|
|
303
|
-
$command | Set-Content -LiteralPath ($backup + '.rollback.txt')
|
|
304
364
|
}
|
|
305
|
-
$script:recoveries.Add(@{ path = $FullPath;
|
|
365
|
+
$script:recoveries.Add(@{ path = $FullPath; record = $record; script = $restoreScript; command = $command; attempted = $false; restored = $false })
|
|
306
366
|
Write-Report observation recovery $FullPath available 'These files can restore the saved DACL; no rollback has been executed.' $script:recoveries[-1]
|
|
307
|
-
Write-Line ('BACKUP {0} -> {1}' -f $FullPath, $
|
|
367
|
+
Write-Line ('BACKUP {0} -> {1}' -f $FullPath, $record)
|
|
308
368
|
Write-Line ('ROLLBACK {0}' -f $command)
|
|
309
369
|
}
|
|
310
|
-
|
|
311
370
|
function Restore-SavedDacl {
|
|
312
371
|
param([string]$FullPath, [string]$Record, [string]$Root)
|
|
313
|
-
$refusal = Get-RepairRefusal -FullPath $FullPath -Root $Root
|
|
372
|
+
$refusal = Get-RepairRefusal -FullPath $FullPath -Root $Root -AllowEqual
|
|
314
373
|
if ($refusal) { throw [System.ArgumentException]::new("RESTORE_REFUSED $refusal") }
|
|
315
374
|
$saved = Invoke-ReportedOperation read_recovery $Record 'Read the recovery record and verify it belongs to the requested path before restoring its DACL.' none {
|
|
316
375
|
Get-Content -LiteralPath $Record -Raw | ConvertFrom-Json
|
|
@@ -322,46 +381,25 @@ function Restore-SavedDacl {
|
|
|
322
381
|
Invoke-ReportedOperation restore_dacl $FullPath 'Restore the requested backup DACL and inheritance protection, preserving owner and SACL.' acl {
|
|
323
382
|
[Dsh.TokenInfo]::SetDacl($FullPath, $saved.Dacl)
|
|
324
383
|
}
|
|
325
|
-
$
|
|
326
|
-
|
|
384
|
+
$restoredAcl = Invoke-ReportedOperation read_restored_dacl $FullPath 'Read the restored DACL to compare it with the saved record.' none {
|
|
385
|
+
Get-Acl -LiteralPath $FullPath
|
|
327
386
|
}
|
|
328
|
-
|
|
329
|
-
|
|
387
|
+
# Inherited entries follow the parent, so the same object can render a different
|
|
388
|
+
# full DACL before and after a correct restore. Compare the own ACEs and the
|
|
389
|
+
# protection state, which the restore owns.
|
|
390
|
+
$restoredProtected = $restoredAcl.AreAccessRulesProtected
|
|
391
|
+
$actual = Get-OwnDaclSddl -Sddl $restoredAcl.GetSecurityDescriptorSddlForm([System.Security.AccessControl.AccessControlSections]::Access)
|
|
392
|
+
$expectedAces = Get-AceSet -Sddl $saved.Dacl
|
|
393
|
+
$actualAces = Get-AceSet -Sddl $actual
|
|
394
|
+
$restored = (@($expectedAces) -join "`n") -eq (@($actualAces) -join "`n") -and $restoredProtected -eq [bool]$saved.Protected
|
|
395
|
+
Write-Report verification restore $FullPath $(if ($restored) { 'verified' } else { 'failed' }) 'Compare the restored own ACEs and protection state with the recovery record.' @{ expectedAces = @($expectedAces); actualAces = @($actualAces); protected = $restoredProtected; expectedProtected = [bool]$saved.Protected }
|
|
396
|
+
if (-not $restored) { throw 'RESTORE_FAILED the restored DACL differs from the backup' }
|
|
330
397
|
$script:restored++
|
|
331
398
|
Write-Line ('RESTORED {0}' -f $FullPath)
|
|
332
399
|
}
|
|
333
400
|
|
|
334
|
-
function Write-CompactSummary {
|
|
335
|
-
param([string]$Status, [string]$NextAction, [array]$RollbackCommands)
|
|
336
|
-
$byPath = [ordered]@{}
|
|
337
|
-
foreach ($record in $script:reports) { if ($record.operation -eq 'inspect_acl') { $byPath[$record.path] = $record } }
|
|
338
|
-
$observations = @($byPath.Values)
|
|
339
|
-
$classifications = @($script:reports | Where-Object { $_.operation -eq 'classify' })
|
|
340
|
-
$findings = @($observations | Where-Object {
|
|
341
|
-
$_.path -in $script:requestedPaths -or $_.status -ne 'read' -or
|
|
342
|
-
@($_.details['aces'] | Where-Object { $_ -and $_.sid -match $PACKAGE_SID -and $_.type -eq 'Allow' }).Count -gt 0
|
|
343
|
-
} | ForEach-Object {
|
|
344
|
-
@{ path = $_.path; status = $_.status; writeDac = $_.details['writeDac']; writeOwner = $_.details['writeOwner']
|
|
345
|
-
packageAllowSids = @($_.details['aces'] | Where-Object { $_ -and $_.sid -match $PACKAGE_SID -and $_.type -eq 'Allow' } | ForEach-Object { $_.sid })
|
|
346
|
-
denies = @($_.details['aces'] | Where-Object { $_ -and $_.type -eq 'Deny' }); errors = @($_.details['errors']; $_.details['error']) }
|
|
347
|
-
})
|
|
348
|
-
$details = [ordered]@{
|
|
349
|
-
report = $script:reportPath; exitCode = $script:exitCode; nextAction = $NextAction
|
|
350
|
-
inspectedPaths = @($observations | ForEach-Object { $_.path } | Select-Object -Unique)
|
|
351
|
-
findings = $findings
|
|
352
|
-
decisions = @($classifications | ForEach-Object { @{ path = $_.path; verdict = $_.status; reason = $_.reason; packageObjects = $_.details.packageObjects } })
|
|
353
|
-
actions = @($script:reports | Where-Object { $_.kind -eq 'action' -and $_.details['effect'] -eq 'acl' -and $_.status -ne 'started' } | ForEach-Object { @{ operation = $_.operation; path = $_.path; status = $_.status; reason = $_.reason } })
|
|
354
|
-
verification = @($script:reports | Where-Object { $_.kind -eq 'verification' } | ForEach-Object { @{ operation = $_.operation; path = $_.path; status = $_.status } })
|
|
355
|
-
rollback = $script:rollbackStatus; rollbackCommands = $RollbackCommands
|
|
356
|
-
errors = @($script:reports | Where-Object { $_.kind -eq 'error' -or ($_.kind -eq 'decision' -and $_.status -eq 'refused') } | ForEach-Object { @{ path = $_.path; reason = $_.reason; details = $_.details } })
|
|
357
|
-
}
|
|
358
|
-
$record = @{ kind = 'summary'; operation = $script:mode; path = $script:currentPath; status = $Status
|
|
359
|
-
reason = 'Full observations, actions and reasons are in the report. Follow nextAction; a failed repair must not be followed by another repair.'; details = $details }
|
|
360
|
-
[Console]::Out.WriteLine('REPORT ' + ($record | ConvertTo-Json -Depth 12 -Compress))
|
|
361
|
-
}
|
|
362
|
-
|
|
363
401
|
function Get-ObjectFacts {
|
|
364
|
-
param([string]$FullPath, [string]$MeSid)
|
|
402
|
+
param([string]$FullPath, [string]$MeSid, [switch]$CompactRecord)
|
|
365
403
|
$facts = [ordered]@{
|
|
366
404
|
Object = $FullPath
|
|
367
405
|
Readable = $false
|
|
@@ -429,7 +467,10 @@ function Get-ObjectFacts {
|
|
|
429
467
|
}
|
|
430
468
|
Write-Report observation inspect_acl $FullPath $(if ($facts.Errors.Count) { 'partial' } else { 'read' }) 'Read the ACL and check effective WRITE_DAC and WRITE_OWNER; observed ACEs alone do not identify which rule caused a denial.' @{
|
|
431
469
|
owner = $facts.Owner; writeDac = $facts.HasWriteDac; writeOwner = $facts.HasWriteOwner
|
|
432
|
-
|
|
470
|
+
# A re-read after a change repeats an ACL this run already recorded: keep the
|
|
471
|
+
# full ACE list in memory, but do not print it twice.
|
|
472
|
+
aces = $(if ($CompactRecord) { @() } else { $facts.Aces }); acesOmitted = [bool]$CompactRecord
|
|
473
|
+
lowLabel = $facts.LowLabel; errors = $facts.Errors
|
|
433
474
|
}
|
|
434
475
|
return $facts
|
|
435
476
|
}
|
|
@@ -452,9 +493,8 @@ function Get-Ancestors {
|
|
|
452
493
|
$operations = [System.Collections.Generic.List[object]]::new()
|
|
453
494
|
$recoveries = [System.Collections.Generic.List[object]]::new()
|
|
454
495
|
$reports = [System.Collections.Generic.List[object]]::new()
|
|
455
|
-
$reportWriter = $null
|
|
456
496
|
$reportPath = $null
|
|
457
|
-
$
|
|
497
|
+
$reportWriter = $null
|
|
458
498
|
$requestedPaths = @()
|
|
459
499
|
$rollbackStatus = 'not-needed'
|
|
460
500
|
$fixed = 0
|
|
@@ -463,17 +503,20 @@ $refused = 0
|
|
|
463
503
|
$restored = 0
|
|
464
504
|
$exitCode = 0
|
|
465
505
|
$observationFailures = 0
|
|
506
|
+
$scanTruncated = $false
|
|
466
507
|
$currentPath = ''
|
|
467
|
-
$mode = if ($Restore) { 'restore' }
|
|
508
|
+
$mode = if ($Restore) { 'restore' } else { 'repair' }
|
|
468
509
|
|
|
469
510
|
try {
|
|
470
511
|
$requestedPaths = @($Path | ForEach-Object { [System.IO.Path]::GetFullPath($_) })
|
|
471
|
-
Write-Report invocation $mode '' started 'Inspect the requested paths
|
|
472
|
-
paths = $Path; allowRoot = $AllowRoot; outputDirectory = $Out; recoveryRecord = $Restore
|
|
512
|
+
Write-Report invocation $mode '' started 'Inspect the requested paths, then repair the ACL problems this run can prove, before anything else is attempted.' @{
|
|
513
|
+
paths = $Path; allowRoot = $AllowRoot; outputDirectory = $Out; recoveryRecord = $Restore
|
|
473
514
|
}
|
|
474
|
-
if ($
|
|
475
|
-
|
|
476
|
-
|
|
515
|
+
if (-not $AllowRoot) { throw [System.ArgumentException]::new('Every modification requires -AllowRoot') }
|
|
516
|
+
if (-not $Restore -and -not $Out) { throw [System.ArgumentException]::new('A repair requires -Out for its recovery artifacts') }
|
|
517
|
+
if ($Restore -and $Path.Count -ne 1) { throw [System.ArgumentException]::new('-Restore requires exactly one -Path') }
|
|
518
|
+
if ($Out) {
|
|
519
|
+
Invoke-ReportedOperation prepare_report $Out 'Create the recovery directory and a new JSONL report that keeps every record, because tool output is truncated to its tail.' files {
|
|
477
520
|
$directory = [System.IO.Path]::GetFullPath($Out)
|
|
478
521
|
[System.IO.Directory]::CreateDirectory($directory) | Out-Null
|
|
479
522
|
$script:reportPath = Join-Path $directory ('acl-report-{0}.jsonl' -f [guid]::NewGuid().ToString('N'))
|
|
@@ -488,20 +531,6 @@ try {
|
|
|
488
531
|
$integrity = Get-IntegritySid
|
|
489
532
|
Write-Line ('CALLER SID={0} INTEGRITY={1}' -f $meSid, $integrity)
|
|
490
533
|
Write-Report observation caller '' read 'The caller token determines effective access; unconfined execution does not imply elevation.' @{ sid = $meSid; integrity = $integrity }
|
|
491
|
-
|
|
492
|
-
if (@(@($Fix.IsPresent, $GrantFullControl.IsPresent, [bool]$Restore) | Where-Object { $_ }).Count -gt 1) {
|
|
493
|
-
throw [System.ArgumentException]::new('-Fix, -GrantFullControl and -Restore are separate operations; run one at a time')
|
|
494
|
-
}
|
|
495
|
-
if ($Fix -or $GrantFullControl -or $Restore) {
|
|
496
|
-
$requiredArguments = if ($Restore) { @('AllowRoot') } else { @('AllowRoot', 'Out') }
|
|
497
|
-
foreach ($required in $requiredArguments) {
|
|
498
|
-
if (-not (Get-Variable -Name $required -ValueOnly)) {
|
|
499
|
-
throw [System.ArgumentException]::new("The requested repair requires -$required")
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
if ($Restore -and $Path.Count -ne 1) { throw [System.ArgumentException]::new('-Restore requires exactly one -Path') }
|
|
503
|
-
}
|
|
504
|
-
|
|
505
534
|
:paths foreach ($requested in $Path) {
|
|
506
535
|
$currentPath = $requested
|
|
507
536
|
$full = Get-NormalizedPath $requested
|
|
@@ -511,23 +540,27 @@ try {
|
|
|
511
540
|
Write-Line ' MISSING'
|
|
512
541
|
Write-Line 'VERDICT=NOT_THIS_CLASS'
|
|
513
542
|
Write-Decision $mode $full skipped 'The requested path does not exist; no ACL was read or changed for it.'
|
|
514
|
-
|
|
515
|
-
|
|
543
|
+
$refused++
|
|
544
|
+
break paths
|
|
516
545
|
}
|
|
517
546
|
|
|
547
|
+
$factsByPath = @{}
|
|
548
|
+
$inspectOrder = @()
|
|
518
549
|
$packageTargets = @()
|
|
519
550
|
$targetFacts = $null
|
|
520
551
|
foreach ($ancestor in (Get-Ancestors -FullPath $full)) {
|
|
521
552
|
if (-not (Test-Path -LiteralPath $ancestor)) { continue }
|
|
522
|
-
$
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
if ($
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
553
|
+
$facts = Get-ObjectFacts -FullPath $ancestor -MeSid $meSid
|
|
554
|
+
$factsByPath[$facts.Object] = $facts
|
|
555
|
+
$inspectOrder += $facts.Object
|
|
556
|
+
if ($ancestor -eq $full) { $targetFacts = $facts }
|
|
557
|
+
Write-Line (' OBJECT={0} READABLE={1}{2}' -f $facts.Object, $facts.Readable, $(if ($facts.Readable) { '' } else { ' ERROR=' + $facts.Error }))
|
|
558
|
+
if ($facts.Readable) {
|
|
559
|
+
Write-Line (' OWNER={0} IS_CURRENT_USER={1} MY_RIGHTS=[{2}] WRITE_DAC={3} WRITE_OWNER={4} LOW_LABEL={5}' -f $facts.Owner, $facts.OwnerIsMe, $facts.MyRights, $facts.HasWriteDac, $facts.HasWriteOwner, $facts.LowLabel)
|
|
560
|
+
foreach ($ace in $facts.PackageAces) { Write-Line (' PACKAGE_ACE {0}' -f $ace) }
|
|
561
|
+
foreach ($sid in ($facts.OtherAppContainerSids | Sort-Object -Unique)) { Write-Line (' OTHER_S1_15 SID={0} (reported only)' -f $sid) }
|
|
529
562
|
}
|
|
530
|
-
if ($
|
|
563
|
+
if ($facts.PackageAces.Count -gt 0) { $packageTargets += $facts.Object }
|
|
531
564
|
}
|
|
532
565
|
|
|
533
566
|
# The precondition is judged on the requested path itself. Ancestors above the
|
|
@@ -538,11 +571,32 @@ try {
|
|
|
538
571
|
$needsPrecondition = (-not $unreadable) -and
|
|
539
572
|
((-not $targetFacts.HasWriteDac) -or (-not $targetFacts.HasWriteOwner))
|
|
540
573
|
|
|
574
|
+
# A directory the caller cannot provision is the workspace root half the time: the sandbox
|
|
575
|
+
# reports its own failure there while the conflicting entry sits deeper. Examine that
|
|
576
|
+
# subtree before the verdict so the classification and its packageObjects describe what
|
|
577
|
+
# this run will actually repair.
|
|
578
|
+
$ownsRoot = $full -ieq (Get-NormalizedPath $AllowRoot)
|
|
579
|
+
if (-not $Restore -and $targetFacts.Errors.Count -eq 0 -and [System.IO.Directory]::Exists($full) -and ($needsPrecondition -or $ownsRoot)) {
|
|
580
|
+
$scan = Get-SubtreePackageSources -Root $full -Limit $SCAN_LIMIT
|
|
581
|
+
foreach ($object in $scan.sources) {
|
|
582
|
+
if ($packageTargets -notcontains $object) { $packageTargets += $object }
|
|
583
|
+
if (-not $factsByPath.ContainsKey($object)) {
|
|
584
|
+
$scanned = Get-ObjectFacts -FullPath $object -MeSid $meSid
|
|
585
|
+
$factsByPath[$scanned.Object] = $scanned
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
Write-Report observation subtree_scan $full $(if ($scan.failed -gt 0) { 'partial' } else { 'read' }) 'The caller cannot provision this directory, or it is the authorized root, so explicit package allow ACEs under it were collected in the same run; no reparse point or managed application tree is entered.' @{
|
|
589
|
+
visited = $scan.visited; packageSources = @($scan.sources); truncated = [bool]$scan.truncated; unreadable = [int]$scan.failed
|
|
590
|
+
}
|
|
591
|
+
Write-Line ('SCAN {0} VISITED={1} PACKAGE_SOURCES={2}{3}{4}' -f $full, $scan.visited, @($scan.sources).Count, $(if ($scan.truncated) { ' TRUNCATED' } else { '' }), $(if ($scan.failed -gt 0) { " UNREADABLE=$($scan.failed)" } else { '' }))
|
|
592
|
+
if ($scan.truncated) { $script:scanTruncated = $true }
|
|
593
|
+
}
|
|
594
|
+
|
|
541
595
|
if ($targetFacts.Errors.Count -gt 0) {
|
|
542
596
|
$verdict = 'INCOMPLETE'
|
|
543
597
|
$reason = 'Some observations failed; missing evidence is not evidence that a right is absent or a repair is safe.'
|
|
544
598
|
} elseif ($packageTargets.Count -gt 0) {
|
|
545
|
-
$blocked = @($packageTargets | Where-Object { -not $_.HasWriteDac })
|
|
599
|
+
$blocked = @($packageTargets | Where-Object { -not $factsByPath[$_].HasWriteDac })
|
|
546
600
|
$verdict = if ($needsPrecondition -or $blocked.Count -gt 0) { 'BOTH' } else { 'CULPRIT' }
|
|
547
601
|
$reason = 'Package allow ACEs were observed. Required access checks determine whether the caller can perform the requested repair; other causes remain possible.'
|
|
548
602
|
} elseif ($unreadable) {
|
|
@@ -556,133 +610,138 @@ try {
|
|
|
556
610
|
$reason = 'No package allow ACE was observed and both required rights are available. Other ACL restrictions and causes of the original failure are not ruled out.'
|
|
557
611
|
}
|
|
558
612
|
Write-Line ('VERDICT={0}' -f $verdict)
|
|
559
|
-
Write-Report decision classify $full $verdict $reason @{ writeDac = $targetFacts.HasWriteDac; writeOwner = $targetFacts.HasWriteOwner; packageObjects = @($packageTargets
|
|
613
|
+
Write-Report decision classify $full $verdict $reason @{ writeDac = $targetFacts.HasWriteDac; writeOwner = $targetFacts.HasWriteOwner; packageObjects = @($packageTargets) }
|
|
560
614
|
|
|
561
|
-
if ($
|
|
562
|
-
|
|
615
|
+
if ($Restore) {
|
|
616
|
+
Restore-SavedDacl -FullPath $full -Record $Restore -Root $AllowRoot
|
|
563
617
|
continue
|
|
564
618
|
}
|
|
565
619
|
if ($targetFacts.Errors.Count -gt 0) {
|
|
566
620
|
Write-Decision $mode $full refused 'Required observations are incomplete; no repair was attempted for this path.'
|
|
567
|
-
$refused
|
|
621
|
+
$refused++
|
|
622
|
+
break paths
|
|
568
623
|
}
|
|
569
624
|
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
625
|
+
# Nothing is changed while a package source or a grant target is out of reach: a
|
|
626
|
+
# repair that cannot finish would leave the tree half repaired before refusing.
|
|
627
|
+
foreach ($packagePath in $packageTargets) {
|
|
628
|
+
$refusal = Get-RepairRefusal -FullPath $packagePath -Root $AllowRoot -AllowEqual
|
|
629
|
+
if ($refusal) { Write-Line ('REPAIR_REFUSED {0}' -f $refusal); Write-Decision $mode $packagePath refused $refusal; $refused++; break paths }
|
|
630
|
+
if ($factsByPath[$packagePath].Errors.Count -gt 0) {
|
|
631
|
+
Write-Decision $mode $packagePath refused 'The ACL observations are incomplete; collateral changes could not be verified.'
|
|
632
|
+
$refused++
|
|
633
|
+
break paths
|
|
634
|
+
}
|
|
573
635
|
}
|
|
574
636
|
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
637
|
+
# Missing WRITE_DAC or WRITE_OWNER on a directory in the chain is what stops DSH
|
|
638
|
+
# from provisioning the workspace grant. One approved run repairs every such
|
|
639
|
+
# directory, including the authorized root itself.
|
|
640
|
+
$grantTargets = @($inspectOrder | Where-Object {
|
|
641
|
+
[System.IO.Directory]::Exists($_) -and $factsByPath[$_].Readable -and $factsByPath[$_].Errors.Count -eq 0 -and
|
|
642
|
+
((-not $factsByPath[$_].HasWriteDac) -or (-not $factsByPath[$_].HasWriteOwner)) -and
|
|
643
|
+
-not (Get-RepairRefusal -FullPath $_ -Root $AllowRoot -AllowEqual)
|
|
644
|
+
})
|
|
645
|
+
# Writing a DACL needs WRITE_DAC: refuse a target that lacks it before anything is
|
|
646
|
+
# changed, instead of failing mid-repair and marking a recovery for an object that
|
|
647
|
+
# the rollback then cannot restore either.
|
|
648
|
+
foreach ($object in $grantTargets) {
|
|
649
|
+
if (-not $factsByPath[$object].HasWriteDac) {
|
|
650
|
+
Write-Line ('REPAIR_REFUSED {0} needs WRITE_DAC; stop for permission-policy review' -f $object)
|
|
651
|
+
Write-Decision $mode $object refused 'Effective WRITE_DAC is absent; adding the grant requires that right.'
|
|
652
|
+
$refused++
|
|
653
|
+
break paths
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
if ($grantTargets.Count -gt 0) {
|
|
657
|
+
Write-Report decision grant_targets $full selected 'These directories lack effective WRITE_DAC or WRITE_OWNER; each is backed up, then receives a FullControl allow ACE for the current user.' @{ paths = @($grantTargets) }
|
|
658
|
+
}
|
|
659
|
+
foreach ($object in $grantTargets) {
|
|
660
|
+
$grantBefore = $factsByPath[$object]
|
|
661
|
+
Save-AclBackup -FullPath $object -Directory $Out -Root $AllowRoot
|
|
662
|
+
$grantAcl = Get-Acl -LiteralPath $object
|
|
585
663
|
$grantAcl.AddAccessRule([System.Security.AccessControl.FileSystemAccessRule]::new(
|
|
586
664
|
[System.Security.Principal.SecurityIdentifier]::new($meSid),
|
|
587
665
|
[System.Security.AccessControl.FileSystemRights]::FullControl,
|
|
588
666
|
[System.Security.AccessControl.AccessControlType]::Allow))
|
|
589
|
-
Invoke-ReportedOperation grant_dacl $
|
|
590
|
-
[Dsh.TokenInfo]::SetDacl($
|
|
667
|
+
Invoke-ReportedOperation grant_dacl $object "WRITE_DAC or WRITE_OWNER is missing; add a FullControl allow ACE for $meSid while preserving deny ACEs, owner and SACL." acl {
|
|
668
|
+
[Dsh.TokenInfo]::SetDacl($object, $grantAcl.GetSecurityDescriptorSddlForm([System.Security.AccessControl.AccessControlSections]::Access))
|
|
591
669
|
}
|
|
592
|
-
$
|
|
593
|
-
$
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
670
|
+
$grantAfter = Get-ObjectFacts -FullPath $object -MeSid $meSid -CompactRecord
|
|
671
|
+
$factsByPath[$object] = $grantAfter
|
|
672
|
+
$verified = $grantAfter.Readable -and $grantAfter.Errors.Count -eq 0 -and $grantAfter.HasWriteDac -and $grantAfter.HasWriteOwner
|
|
673
|
+
Write-Report verification grant $object $(if ($verified) { 'verified' } else { 'failed' }) 'The DACL write completed; recheck effective access before claiming that provisioning can succeed. On failure, restore this invocation and stop.' @{
|
|
674
|
+
before = @{ writeDac = $grantBefore.HasWriteDac; writeOwner = $grantBefore.HasWriteOwner }
|
|
675
|
+
after = @{ writeDac = $grantAfter.HasWriteDac; writeOwner = $grantAfter.HasWriteOwner }
|
|
597
676
|
recovery = $recoveries[-1].command
|
|
598
677
|
}
|
|
599
678
|
if ($verified) {
|
|
600
|
-
Write-Line ('GRANTED {0} SID={1}' -f $
|
|
679
|
+
Write-Line ('GRANTED {0} SID={1}' -f $object, $meSid); $granted++
|
|
601
680
|
} else {
|
|
602
|
-
Write-Line ('GRANT_FAILED {0}; effective WRITE_DAC and WRITE_OWNER were not both confirmed; restore this invocation and stop' -f $
|
|
681
|
+
Write-Line ('GRANT_FAILED {0}; effective WRITE_DAC and WRITE_OWNER were not both confirmed; restore this invocation and stop' -f $object)
|
|
603
682
|
$refused++
|
|
604
683
|
break paths
|
|
605
684
|
}
|
|
606
|
-
continue
|
|
607
685
|
}
|
|
608
686
|
|
|
609
|
-
if (-not $Fix) { continue }
|
|
610
|
-
|
|
611
|
-
if ($unreadable) {
|
|
612
|
-
Write-Line 'FIX_REFUSED the object could not be read; repair needs an unconfined caller'
|
|
613
|
-
Write-Decision fix $full refused 'The requested ACL could not be read; no package removal was attempted.'
|
|
614
|
-
$refused++
|
|
615
|
-
break paths
|
|
616
|
-
}
|
|
617
|
-
if ($packageTargets.Count -eq 0) { Write-Decision fix $full skipped 'No package allow ACE was observed on the inspected objects; no ACL change or backup is needed.' }
|
|
618
687
|
$sources = @($packageTargets | Where-Object {
|
|
619
|
-
@($_.Aces | Where-Object { $_.type -eq 'Allow' -and $_.sid -match $PACKAGE_SID -and -not $_.inherited }).Count -gt 0
|
|
688
|
+
@($factsByPath[$_].Aces | Where-Object { $_.type -eq 'Allow' -and $_.sid -match $PACKAGE_SID -and -not $_.inherited }).Count -gt 0
|
|
620
689
|
})
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
if (
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
if ($packageTargets.Count -gt 0 -and $needsPrecondition) {
|
|
628
|
-
Write-Decision fix $full refused 'Package removal requires verified WRITE_DAC and WRITE_OWNER on the requested path. A failed grant must not be followed by -Fix.'
|
|
629
|
-
$refused++; break paths
|
|
630
|
-
}
|
|
631
|
-
foreach ($target in $sources) {
|
|
632
|
-
if (-not $target.HasWriteDac) {
|
|
633
|
-
Write-Line ('FIX_REFUSED {0} needs WRITE_DAC; stop for permission-policy review' -f $target.Object)
|
|
634
|
-
Write-Decision fix $target.Object refused 'Effective WRITE_DAC is absent; removing a package allow ACE requires that right.'
|
|
690
|
+
# Ancestor first, for chain and scan-discovered sources alike.
|
|
691
|
+
$sources = @($sources | Sort-Object -Property @{ Expression = { $_.Split([char]92).Count } }, @{ Expression = { $_ } })
|
|
692
|
+
foreach ($source in $sources) {
|
|
693
|
+
if (-not $factsByPath[$source].HasWriteDac) {
|
|
694
|
+
Write-Line ('REPAIR_REFUSED {0} needs WRITE_DAC; stop for permission-policy review' -f $source)
|
|
695
|
+
Write-Decision $mode $source refused 'Effective WRITE_DAC is absent; removing a package allow ACE requires that right.'
|
|
635
696
|
$refused++
|
|
636
697
|
break paths
|
|
637
698
|
}
|
|
638
699
|
}
|
|
639
|
-
|
|
640
|
-
|
|
700
|
+
if ($sources.Count -gt 0) {
|
|
701
|
+
Write-Report decision remove_package_sources $full selected 'Remove explicit package allow ACEs from their sources, ancestor first, leaving inheritance enabled so inherited copies follow their repaired source.' @{
|
|
702
|
+
sources = @($sources); affectedPaths = @($packageTargets)
|
|
703
|
+
}
|
|
641
704
|
}
|
|
642
|
-
foreach ($
|
|
643
|
-
Save-AclBackup -FullPath $
|
|
644
|
-
$sids = @($
|
|
705
|
+
foreach ($source in $sources) {
|
|
706
|
+
Save-AclBackup -FullPath $source -Directory $Out -Root $AllowRoot
|
|
707
|
+
$sids = @($factsByPath[$source].Aces | Where-Object { $_.type -eq 'Allow' -and $_.sid -match $PACKAGE_SID -and -not $_.inherited } | ForEach-Object { $_.sid } | Sort-Object -Unique)
|
|
645
708
|
foreach ($sid in $sids) {
|
|
646
|
-
$
|
|
647
|
-
|
|
648
|
-
$
|
|
649
|
-
if ($LASTEXITCODE -ne 0) { throw "icacls removal exit ${LASTEXITCODE}: $($output -join "`n")" }
|
|
709
|
+
Invoke-ReportedOperation remove_package_allow $source "Remove the observed package allow ACE for $sid; preserve deny ACEs and all other principals." acl {
|
|
710
|
+
$output = @(icacls $source /remove:g "*$sid" 2>&1)
|
|
711
|
+
if ($LASTEXITCODE -ne 0) { throw "icacls removal exit $($LASTEXITCODE): $($output -join [char]10)" }
|
|
650
712
|
}
|
|
651
713
|
}
|
|
652
714
|
}
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
$
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
$
|
|
667
|
-
} | Where-Object { $_ -notmatch $PACKAGE_SID })
|
|
668
|
-
# A package deny can share the removed allow's SID. Preserve it explicitly
|
|
669
|
-
# even though native listing comparison omits lines naming package SIDs.
|
|
670
|
-
$expectedAces = @($target.Aces | Where-Object { -not ($_.type -eq 'Allow' -and $_.sid -match $PACKAGE_SID) })
|
|
671
|
-
$collateral = (($keepBefore -join "`n") -eq ($keepAfter -join "`n")) -and
|
|
672
|
-
(($expectedAces | ConvertTo-Json -Compress) -eq ($after.Aces | ConvertTo-Json -Compress))
|
|
673
|
-
$verified = $after.Readable -and $after.Errors.Count -eq 0 -and $after.PackageAces.Count -eq 0 -and $collateral
|
|
674
|
-
Write-Report verification fix $target.Object $(if ($verified) { 'verified' } else { 'failed' }) 'The removal command completed; verify that package allow ACEs disappeared and other ACL listing entries remained unchanged. On failure, restore this invocation and stop.' @{
|
|
675
|
-
remainingPackageAces = $after.PackageAces; otherEntriesUnchanged = $collateral
|
|
715
|
+
|
|
716
|
+
# A package deny can share the removed allow's SID; only allow ACEs were removed.
|
|
717
|
+
foreach ($packagePath in $packageTargets) {
|
|
718
|
+
$fixBefore = $factsByPath[$packagePath]
|
|
719
|
+
$fixAfter = Get-ObjectFacts -FullPath $packagePath -MeSid $meSid -CompactRecord
|
|
720
|
+
# Compare the object's own ACEs as sorted sets: listing order and inherited
|
|
721
|
+
# entries follow the parent, so neither proves a collateral change.
|
|
722
|
+
$rowOf = { param($ace) '{0}|{1}|{2}|{3}|{4}' -f $ace.type, $ace.sid, $ace.rights, $ace.inheritance, $ace.propagation }
|
|
723
|
+
$ownAfter = @($fixAfter.Aces | Where-Object { -not $_.inherited } | ForEach-Object { & $rowOf $_ } | Sort-Object)
|
|
724
|
+
$expectedOwn = @($fixBefore.Aces | Where-Object { -not $_.inherited -and -not ($_.type -eq 'Allow' -and $_.sid -match $PACKAGE_SID) } | ForEach-Object { & $rowOf $_ } | Sort-Object)
|
|
725
|
+
$collateral = (@($expectedOwn) -join [char]10) -eq (@($ownAfter) -join [char]10)
|
|
726
|
+
$verified = $fixAfter.Readable -and $fixAfter.Errors.Count -eq 0 -and $fixAfter.PackageAces.Count -eq 0 -and $collateral
|
|
727
|
+
Write-Report verification fix $packagePath $(if ($verified) { 'verified' } else { 'failed' }) 'The removal command completed; verify that package allow ACEs disappeared and other own ACEs remained unchanged. On failure, restore this invocation and stop.' @{
|
|
728
|
+
remainingPackageAces = $fixAfter.PackageAces; otherEntriesUnchanged = $collateral
|
|
676
729
|
}
|
|
677
730
|
if ($verified) {
|
|
678
|
-
$
|
|
679
|
-
foreach ($sid in $
|
|
731
|
+
$removedSids = @($fixBefore.Aces | Where-Object { $_.type -eq 'Allow' -and $_.sid -match $PACKAGE_SID -and -not $_.inherited } | ForEach-Object { $_.sid } | Sort-Object -Unique)
|
|
732
|
+
foreach ($sid in $removedSids) {
|
|
733
|
+
Write-Line ('FIXED {0} SID={1}' -f $packagePath, $sid); $fixed++
|
|
734
|
+
}
|
|
680
735
|
} else {
|
|
681
|
-
Write-Line ('FIX_FAILED {0} collateral_change={1}' -f $
|
|
736
|
+
Write-Line ('FIX_FAILED {0} collateral_change={1}' -f $packagePath, (-not $collateral))
|
|
682
737
|
$refused++
|
|
683
738
|
break paths
|
|
684
739
|
}
|
|
685
740
|
}
|
|
741
|
+
|
|
742
|
+
if ($packageTargets.Count -eq 0 -and $grantTargets.Count -eq 0) {
|
|
743
|
+
Write-Decision $mode $full skipped 'No package allow ACE and no missing WRITE_DAC or WRITE_OWNER was observed on the inspected objects; no ACL change was needed.'
|
|
744
|
+
}
|
|
686
745
|
}
|
|
687
746
|
} catch {
|
|
688
747
|
$exitCode = if ($_.Exception -is [System.ArgumentException]) { 2 } else { 1 }
|
|
@@ -707,15 +766,33 @@ try {
|
|
|
707
766
|
}
|
|
708
767
|
$pending = @($recoveries | Where-Object { $_.attempted -and -not $_.restored } | ForEach-Object { $_.command })
|
|
709
768
|
[array]::Reverse($pending)
|
|
710
|
-
$
|
|
711
|
-
|
|
769
|
+
$repaired = ($fixed + $granted) -gt 0
|
|
770
|
+
$nextAction = if ($rollbackStatus -eq 'failed') { 'restore_pending_then_stop' } elseif ($exitCode -ne 0 -or $observationFailures -gt 0) { 'stop' } elseif ($repaired) { 'verify_original_confined_operation' } else { 'stop' }
|
|
771
|
+
# The tool keeps only the tail of stdout. Recapitulate the decisions here so the
|
|
772
|
+
# records a reader needs survive truncation; the report file holds every record.
|
|
773
|
+
$recap = [ordered]@{
|
|
774
|
+
verdicts = @($reports | Where-Object { $_.operation -eq 'classify' } | ForEach-Object {
|
|
775
|
+
@{ path = $_.path; verdict = $_.status; writeDac = $_.details['writeDac']; writeOwner = $_.details['writeOwner']; packageObjects = $_.details['packageObjects'] }
|
|
776
|
+
})
|
|
777
|
+
changes = @($reports | Where-Object { $_.kind -eq 'action' -and $_.details['effect'] -eq 'acl' -and $_.status -eq 'completed' } | ForEach-Object { @{ operation = $_.operation; path = $_.path } })
|
|
778
|
+
verifications = @($reports | Where-Object { $_.kind -eq 'verification' } | ForEach-Object { @{ operation = $_.operation; path = $_.path; status = $_.status } })
|
|
779
|
+
refusals = @($reports | Where-Object { $_.kind -eq 'decision' -and $_.status -eq 'refused' } | ForEach-Object { @{ path = $_.path; reason = $_.reason } })
|
|
780
|
+
scans = @($reports | Where-Object { $_.operation -eq 'subtree_scan' } | ForEach-Object {
|
|
781
|
+
@{ path = $_.path; visited = $_.details['visited']; packageSources = @($_.details['packageSources']); truncated = $_.details['truncated']; unreadable = $_.details['unreadable'] }
|
|
782
|
+
})
|
|
783
|
+
report = $reportPath
|
|
784
|
+
}
|
|
712
785
|
$status = if ($exitCode -ne 0) { 'failed' } elseif ($observationFailures -gt 0) { 'partial' } else { 'completed' }
|
|
713
786
|
Write-Report summary $mode $currentPath $status 'Operation completion records API execution; verification records the observed result. Only rerunning the original confined operation can confirm its failure is resolved.' @{
|
|
714
787
|
exitCode = $exitCode; fixed = $fixed; granted = $granted; refused = $refused; restored = $restored
|
|
715
788
|
operations = @($operations.ToArray()); recoveries = @($recoveries.ToArray()); automaticRollback = $true; observationFailures = $observationFailures
|
|
716
|
-
rollback = $rollbackStatus; rollbackCommands = $pending; nextAction = $nextAction; report = $reportPath
|
|
789
|
+
rollback = $rollbackStatus; rollbackCommands = $pending; nextAction = $nextAction; scanTruncated = $scanTruncated; report = $reportPath
|
|
717
790
|
}
|
|
791
|
+
# Last on stdout, after the summary record: whatever the tool truncates, the tail
|
|
792
|
+
# still carries the decisions, the report path and the counts.
|
|
793
|
+
Write-Line ('RECAP ' + ($recap | ConvertTo-Json -Depth 8 -Compress))
|
|
794
|
+
if ($reportPath) { Write-Line ('REPORT_FILE {0}' -f $reportPath) }
|
|
795
|
+
Write-Line ('SUMMARY FIXED={0} GRANTED={1} REFUSED={2} RESTORED={3}' -f $fixed, $granted, $refused, $restored)
|
|
718
796
|
if ($reportWriter) { $reportWriter.Dispose() }
|
|
719
|
-
if ($Compact) { Write-CompactSummary -Status $status -NextAction $nextAction -RollbackCommands $pending }
|
|
720
797
|
}
|
|
721
798
|
exit $exitCode
|