@songtonyli/dsh-cli 0.1.53 → 0.1.55

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.
Files changed (1001) hide show
  1. package/README.md +1 -1
  2. package/bin/dsh.mjs +1 -1
  3. package/node_modules/@anthropic-ai/sdk/CHANGELOG.md +28 -0
  4. package/node_modules/@anthropic-ai/sdk/client.js +2 -1
  5. package/node_modules/@anthropic-ai/sdk/client.mjs +2 -1
  6. package/node_modules/@anthropic-ai/sdk/core/streaming.js +4 -2
  7. package/node_modules/@anthropic-ai/sdk/core/streaming.mjs +4 -2
  8. package/node_modules/@anthropic-ai/sdk/package.json +1 -1
  9. package/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.js +25 -10
  10. package/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.mjs +25 -10
  11. package/node_modules/@anthropic-ai/sdk/resources/beta/agents/versions.js +5 -2
  12. package/node_modules/@anthropic-ai/sdk/resources/beta/agents/versions.mjs +5 -2
  13. package/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.js +10 -4
  14. package/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.mjs +10 -4
  15. package/node_modules/@anthropic-ai/sdk/resources/beta/deployments.js +40 -16
  16. package/node_modules/@anthropic-ai/sdk/resources/beta/deployments.mjs +40 -16
  17. package/node_modules/@anthropic-ai/sdk/resources/beta/dreams.js +25 -10
  18. package/node_modules/@anthropic-ai/sdk/resources/beta/dreams.mjs +25 -10
  19. package/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.js +30 -12
  20. package/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.mjs +30 -12
  21. package/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.js +20 -8
  22. package/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.mjs +20 -8
  23. package/node_modules/@anthropic-ai/sdk/resources/beta/files.js +22 -9
  24. package/node_modules/@anthropic-ai/sdk/resources/beta/files.mjs +22 -9
  25. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.js +25 -10
  26. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.mjs +25 -10
  27. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.js +30 -12
  28. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.mjs +30 -12
  29. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.js +15 -6
  30. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.mjs +15 -6
  31. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.js +25 -11
  32. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.mjs +25 -11
  33. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.js +4 -2
  34. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.mjs +4 -2
  35. package/node_modules/@anthropic-ai/sdk/resources/beta/models.js +10 -4
  36. package/node_modules/@anthropic-ai/sdk/resources/beta/models.mjs +10 -4
  37. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.js +15 -6
  38. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.mjs +15 -6
  39. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/resources.js +25 -10
  40. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/resources.mjs +25 -10
  41. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.js +30 -12
  42. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.mjs +30 -12
  43. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.js +10 -4
  44. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.mjs +10 -4
  45. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.js +15 -6
  46. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.mjs +15 -6
  47. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.js +20 -8
  48. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.mjs +20 -8
  49. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.js +22 -9
  50. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.mjs +22 -9
  51. package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/certificates.js +20 -8
  52. package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/certificates.mjs +20 -8
  53. package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/tunnels.js +30 -12
  54. package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/tunnels.mjs +30 -12
  55. package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.js +35 -14
  56. package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.mjs +35 -14
  57. package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/vaults.js +30 -12
  58. package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/vaults.mjs +30 -12
  59. package/node_modules/@anthropic-ai/sdk/resources/completions.js +5 -2
  60. package/node_modules/@anthropic-ai/sdk/resources/completions.mjs +5 -2
  61. package/node_modules/@anthropic-ai/sdk/resources/files.js +79 -10
  62. package/node_modules/@anthropic-ai/sdk/resources/files.mjs +79 -10
  63. package/node_modules/@anthropic-ai/sdk/resources/messages/batches.js +52 -13
  64. package/node_modules/@anthropic-ai/sdk/resources/messages/batches.mjs +52 -13
  65. package/node_modules/@anthropic-ai/sdk/resources/messages/messages.js +10 -4
  66. package/node_modules/@anthropic-ai/sdk/resources/messages/messages.mjs +10 -4
  67. package/node_modules/@anthropic-ai/sdk/resources/models.js +23 -4
  68. package/node_modules/@anthropic-ai/sdk/resources/models.mjs +23 -4
  69. package/node_modules/@anthropic-ai/sdk/resources/skills/skills.js +64 -8
  70. package/node_modules/@anthropic-ai/sdk/resources/skills/skills.mjs +64 -8
  71. package/node_modules/@anthropic-ai/sdk/resources/skills/versions.js +67 -7
  72. package/node_modules/@anthropic-ai/sdk/resources/skills/versions.mjs +67 -7
  73. package/node_modules/@anthropic-ai/sdk/src/client.ts +12 -1
  74. package/node_modules/@anthropic-ai/sdk/src/core/streaming.ts +4 -2
  75. package/node_modules/@anthropic-ai/sdk/src/resources/beta/agents/agents.ts +75 -10
  76. package/node_modules/@anthropic-ai/sdk/src/resources/beta/agents/versions.ts +15 -2
  77. package/node_modules/@anthropic-ai/sdk/src/resources/beta/deployment-runs.ts +30 -4
  78. package/node_modules/@anthropic-ai/sdk/src/resources/beta/deployments.ts +120 -16
  79. package/node_modules/@anthropic-ai/sdk/src/resources/beta/dreams.ts +75 -10
  80. package/node_modules/@anthropic-ai/sdk/src/resources/beta/environments/environments.ts +90 -12
  81. package/node_modules/@anthropic-ai/sdk/src/resources/beta/environments/work.ts +60 -8
  82. package/node_modules/@anthropic-ai/sdk/src/resources/beta/files.ts +75 -11
  83. package/node_modules/@anthropic-ai/sdk/src/resources/beta/memory-stores/memories.ts +75 -10
  84. package/node_modules/@anthropic-ai/sdk/src/resources/beta/memory-stores/memory-stores.ts +90 -12
  85. package/node_modules/@anthropic-ai/sdk/src/resources/beta/memory-stores/memory-versions.ts +49 -10
  86. package/node_modules/@anthropic-ai/sdk/src/resources/beta/messages/batches.ts +85 -11
  87. package/node_modules/@anthropic-ai/sdk/src/resources/beta/messages/messages.ts +24 -2
  88. package/node_modules/@anthropic-ai/sdk/src/resources/beta/models.ts +30 -4
  89. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/compliance-settings.ts +12 -2
  90. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/index.ts +2 -0
  91. package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/organization.ts +4 -0
  92. package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/events.ts +45 -6
  93. package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/resources.ts +75 -10
  94. package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/sessions.ts +90 -12
  95. package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/threads/events.ts +30 -4
  96. package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/threads/threads.ts +45 -6
  97. package/node_modules/@anthropic-ai/sdk/src/resources/beta/skills/skills.ts +60 -8
  98. package/node_modules/@anthropic-ai/sdk/src/resources/beta/skills/versions.ts +72 -9
  99. package/node_modules/@anthropic-ai/sdk/src/resources/beta/tunnels/certificates.ts +60 -8
  100. package/node_modules/@anthropic-ai/sdk/src/resources/beta/tunnels/tunnels.ts +90 -12
  101. package/node_modules/@anthropic-ai/sdk/src/resources/beta/vaults/credentials.ts +105 -14
  102. package/node_modules/@anthropic-ai/sdk/src/resources/beta/vaults/vaults.ts +90 -12
  103. package/node_modules/@anthropic-ai/sdk/src/resources/completions.ts +15 -2
  104. package/node_modules/@anthropic-ai/sdk/src/resources/files.ts +161 -18
  105. package/node_modules/@anthropic-ai/sdk/src/resources/index.ts +5 -0
  106. package/node_modules/@anthropic-ai/sdk/src/resources/messages/batches.ts +137 -13
  107. package/node_modules/@anthropic-ai/sdk/src/resources/messages/index.ts +4 -0
  108. package/node_modules/@anthropic-ai/sdk/src/resources/messages/messages.ts +38 -4
  109. package/node_modules/@anthropic-ai/sdk/src/resources/models.ts +43 -4
  110. package/node_modules/@anthropic-ai/sdk/src/resources/skills/index.ts +2 -0
  111. package/node_modules/@anthropic-ai/sdk/src/resources/skills/skills.ts +127 -13
  112. package/node_modules/@anthropic-ai/sdk/src/resources/skills/versions.ts +115 -11
  113. package/node_modules/@anthropic-ai/sdk/src/tools/agent-toolset/fs-util.ts +16 -4
  114. package/node_modules/@anthropic-ai/sdk/src/version.ts +1 -1
  115. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.js +14 -4
  116. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.mjs +14 -4
  117. package/node_modules/@anthropic-ai/sdk/version.js +1 -1
  118. package/node_modules/@anthropic-ai/sdk/version.mjs +1 -1
  119. package/node_modules/@aws-sdk/client-bedrock-runtime/README.md +7 -0
  120. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/index.js +2419 -185
  121. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/BedrockRuntime.js +2 -0
  122. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commandBuilder.js +14 -0
  123. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/ApplyGuardrailCommand.js +2 -14
  124. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/ConverseCommand.js +2 -14
  125. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/ConverseStreamCommand.js +2 -18
  126. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/CountTokensCommand.js +2 -14
  127. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/GetAsyncInvokeCommand.js +2 -14
  128. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/InvokeGuardrailChecksCommand.js +4 -0
  129. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/InvokeModelCommand.js +2 -14
  130. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/InvokeModelWithBidirectionalStreamCommand.js +2 -27
  131. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/InvokeModelWithResponseStreamCommand.js +2 -18
  132. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/ListAsyncInvokesCommand.js +2 -14
  133. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/StartAsyncInvokeCommand.js +2 -14
  134. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/index.js +1 -0
  135. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/index.js +2 -1
  136. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/models/enums.js +51 -0
  137. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/runtimeConfig.browser.js +0 -2
  138. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/runtimeConfig.js +1 -2
  139. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/runtimeConfig.native.js +0 -2
  140. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/runtimeConfig.shared.js +2 -0
  141. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/schemas/schemas_0.js +244 -31
  142. package/node_modules/@aws-sdk/client-bedrock-runtime/package.json +43 -45
  143. package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +34 -32
  144. package/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +8 -4
  145. package/node_modules/@aws-sdk/token-providers/dist-es/index.js +4 -4
  146. package/node_modules/@aws-sdk/token-providers/package.json +31 -31
  147. package/node_modules/@deepseek-ai/dsh/README.i18n.yaml +4 -4
  148. package/node_modules/@deepseek-ai/dsh/README.md +3 -1
  149. package/node_modules/@deepseek-ai/dsh/README.zh.md +3 -1
  150. package/node_modules/@deepseek-ai/dsh/lib/bin.js +12 -8
  151. package/node_modules/@deepseek-ai/dsh/lib/{plugin-DkYIj96-.js → plugin-BGnVfe_D.js} +26 -8
  152. package/node_modules/@deepseek-ai/dsh/package.json +111 -111
  153. package/node_modules/@deepseek-ai/dsh-acp/package.json +22 -22
  154. package/node_modules/@deepseek-ai/dsh-acp-app/package.json +3 -3
  155. package/node_modules/@deepseek-ai/dsh-agent/package.json +20 -20
  156. package/node_modules/@deepseek-ai/dsh-agent-default-model/package.json +7 -7
  157. package/node_modules/@deepseek-ai/dsh-agent-instructions/package.json +22 -22
  158. package/node_modules/@deepseek-ai/dsh-agent-loop/package.json +24 -24
  159. package/node_modules/@deepseek-ai/dsh-agent-preset/package.json +6 -6
  160. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-composition-reference/references/packages.md +2 -2
  161. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/typert.host.js +1 -1
  162. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/package.json +28 -28
  163. package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/package.json +8 -8
  164. package/node_modules/@deepseek-ai/dsh-anonymous-user-id/package.json +5 -5
  165. package/node_modules/@deepseek-ai/dsh-api-account-controller/package.json +7 -7
  166. package/node_modules/@deepseek-ai/dsh-api-authorization-controller/package.json +9 -9
  167. package/node_modules/@deepseek-ai/dsh-api-gateway/README.i18n.yaml +2 -2
  168. package/node_modules/@deepseek-ai/dsh-api-gateway/README.md +2 -0
  169. package/node_modules/@deepseek-ai/dsh-api-gateway/README.zh.md +2 -0
  170. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/index.js +9 -0
  171. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/index.js +12 -0
  172. package/node_modules/@deepseek-ai/dsh-api-gateway/package.json +11 -11
  173. package/node_modules/@deepseek-ai/dsh-api-job-controller/package.json +10 -10
  174. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/client.js +260 -20
  175. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/types/client/index.js +2 -1
  176. package/node_modules/@deepseek-ai/dsh-api-remotes/package.json +41 -41
  177. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.host.js +160 -4
  178. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.remote-client.js +120 -0
  179. package/node_modules/@deepseek-ai/dsh-api-session-controller/package.json +69 -69
  180. package/node_modules/@deepseek-ai/dsh-api-settings-controller/package.json +13 -13
  181. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/README.i18n.yaml +2 -2
  182. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/README.md +1 -1
  183. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/README.zh.md +1 -1
  184. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/index.js +13 -7
  185. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/typert.host.js +1 -1
  186. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/types/shells.js +14 -8
  187. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/package.json +17 -17
  188. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/package.json +18 -18
  189. package/node_modules/@deepseek-ai/dsh-api-workspace-files/package.json +12 -12
  190. package/node_modules/@deepseek-ai/dsh-app-boot/package.json +9 -9
  191. package/node_modules/@deepseek-ai/dsh-atomic-write/package.json +1 -1
  192. package/node_modules/@deepseek-ai/dsh-attachment/package.json +3 -3
  193. package/node_modules/@deepseek-ai/dsh-attachment-local/package.json +6 -6
  194. package/node_modules/@deepseek-ai/dsh-authorization/package.json +7 -7
  195. package/node_modules/@deepseek-ai/dsh-base/package.json +93 -93
  196. package/node_modules/@deepseek-ai/dsh-bash-local/package.json +8 -8
  197. package/node_modules/@deepseek-ai/dsh-bash-sandbox/package.json +12 -12
  198. package/node_modules/@deepseek-ai/dsh-brand/package.json +1 -1
  199. package/node_modules/@deepseek-ai/dsh-chunked-list/package.json +1 -1
  200. package/node_modules/@deepseek-ai/dsh-client-connection/package.json +10 -10
  201. package/node_modules/@deepseek-ai/dsh-client-file-upload/lib/typert.host.js +1 -1
  202. package/node_modules/@deepseek-ai/dsh-client-file-upload/package.json +12 -12
  203. package/node_modules/@deepseek-ai/dsh-client-hmr/package.json +4 -4
  204. package/node_modules/@deepseek-ai/dsh-client-locale/package.json +10 -10
  205. package/node_modules/@deepseek-ai/dsh-client-modules/package.json +5 -5
  206. package/node_modules/@deepseek-ai/dsh-client-product-analytics/package.json +11 -11
  207. package/node_modules/@deepseek-ai/dsh-client-resources/package.json +5 -5
  208. package/node_modules/@deepseek-ai/dsh-client-shortcuts/README.i18n.yaml +2 -2
  209. package/node_modules/@deepseek-ai/dsh-client-shortcuts/README.md +1 -1
  210. package/node_modules/@deepseek-ai/dsh-client-shortcuts/README.zh.md +1 -1
  211. package/node_modules/@deepseek-ai/dsh-client-shortcuts/lib/client.js +12 -7
  212. package/node_modules/@deepseek-ai/dsh-client-shortcuts/package.json +8 -8
  213. package/node_modules/@deepseek-ai/dsh-client-store/package.json +1 -1
  214. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/README.i18n.yaml +2 -2
  215. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/README.md +1 -1
  216. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/README.zh.md +1 -1
  217. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/lib/client.js +9 -20
  218. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/package.json +16 -16
  219. package/node_modules/@deepseek-ai/dsh-client-ui-approval/package.json +13 -13
  220. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/package.json +9 -9
  221. package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/package.json +4 -4
  222. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.i18n.yaml +9 -9
  223. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.md +8 -3
  224. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.zh.md +7 -2
  225. package/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/client.js +90 -126
  226. package/node_modules/@deepseek-ai/dsh-client-ui-chat/package.json +37 -37
  227. package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.i18n.yaml +4 -4
  228. package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.md +7 -1
  229. package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.zh.md +7 -1
  230. package/node_modules/@deepseek-ai/dsh-client-ui-commands/lib/client.js +111 -50
  231. package/node_modules/@deepseek-ai/dsh-client-ui-commands/package.json +15 -15
  232. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/client.js +14 -1
  233. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/package.json +33 -33
  234. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/package.json +12 -12
  235. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.i18n.yaml +2 -2
  236. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.md +1 -1
  237. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.zh.md +1 -1
  238. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/client.js +3 -3
  239. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/package.json +27 -27
  240. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/package.json +7 -7
  241. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/package.json +3 -3
  242. package/node_modules/@deepseek-ai/dsh-client-ui-goal/package.json +14 -14
  243. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/package.json +12 -12
  244. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/package.json +10 -10
  245. package/node_modules/@deepseek-ai/dsh-client-ui-layout/package.json +9 -9
  246. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/package.json +16 -16
  247. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.i18n.yaml +6 -6
  248. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.md +9 -3
  249. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.zh.md +9 -3
  250. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/lib/client.js +216 -63
  251. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/package.json +16 -16
  252. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.i18n.yaml +6 -6
  253. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.md +3 -3
  254. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.zh.md +3 -3
  255. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/lib/client.js +37 -23
  256. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/package.json +19 -18
  257. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/package.json +15 -15
  258. package/node_modules/@deepseek-ai/dsh-client-ui-plan/README.i18n.yaml +2 -2
  259. package/node_modules/@deepseek-ai/dsh-client-ui-plan/README.md +1 -1
  260. package/node_modules/@deepseek-ai/dsh-client-ui-plan/README.zh.md +1 -1
  261. package/node_modules/@deepseek-ai/dsh-client-ui-plan/lib/client.js +4 -4
  262. package/node_modules/@deepseek-ai/dsh-client-ui-plan/package.json +20 -20
  263. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.i18n.yaml +4 -4
  264. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.md +2 -2
  265. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.zh.md +2 -2
  266. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/client.js +82 -101
  267. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/package.json +16 -16
  268. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.i18n.yaml +4 -4
  269. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.md +10 -3
  270. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.zh.md +10 -3
  271. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/DisclosureRow.module.css +14 -2
  272. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/MenuGroup.module.css +37 -0
  273. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/index.js +349 -226
  274. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/DisclosureRow.d.ts +1 -1
  275. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Input.d.ts +4 -3
  276. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/MenuGroup.d.ts +22 -0
  277. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/index.d.ts +1 -0
  278. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/package.json +4 -4
  279. package/node_modules/@deepseek-ai/dsh-client-ui-reference/package.json +13 -13
  280. package/node_modules/@deepseek-ai/dsh-client-ui-renderer/lib/client.js +1 -1
  281. package/node_modules/@deepseek-ai/dsh-client-ui-renderer/package.json +3 -3
  282. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/package.json +19 -19
  283. package/node_modules/@deepseek-ai/dsh-client-ui-session/package.json +8 -8
  284. package/node_modules/@deepseek-ai/dsh-client-ui-settings/package.json +6 -6
  285. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.i18n.yaml +2 -2
  286. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.md +1 -1
  287. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.zh.md +1 -1
  288. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/client.js +11 -15
  289. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/package.json +16 -16
  290. package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/package.json +9 -9
  291. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.i18n.yaml +2 -2
  292. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.md +1 -1
  293. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.zh.md +1 -1
  294. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +7 -7
  295. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/package.json +13 -13
  296. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/package.json +11 -11
  297. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/package.json +12 -12
  298. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/package.json +6 -6
  299. package/node_modules/@deepseek-ai/dsh-client-ui-settings-session-log/package.json +9 -9
  300. package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/package.json +9 -9
  301. package/node_modules/@deepseek-ai/dsh-client-ui-settings-signin/package.json +7 -7
  302. package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/package.json +9 -9
  303. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/package.json +9 -9
  304. package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/README.i18n.yaml +2 -2
  305. package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/README.md +1 -1
  306. package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/README.zh.md +1 -1
  307. package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/lib/client.js +1 -1
  308. package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/package.json +10 -10
  309. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.i18n.yaml +2 -2
  310. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.md +1 -1
  311. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.zh.md +1 -1
  312. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +10 -15
  313. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/package.json +12 -12
  314. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/package.json +11 -11
  315. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/package.json +18 -18
  316. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.i18n.yaml +2 -2
  317. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.md +1 -1
  318. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.zh.md +1 -1
  319. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/lib/client.js +9 -4
  320. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/package.json +14 -14
  321. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.i18n.yaml +6 -6
  322. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.md +4 -4
  323. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.zh.md +4 -4
  324. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/lib/client.js +183 -156
  325. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/package.json +15 -15
  326. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/package.json +15 -15
  327. package/node_modules/@deepseek-ai/dsh-client-ui-skill/README.i18n.yaml +2 -2
  328. package/node_modules/@deepseek-ai/dsh-client-ui-skill/README.md +1 -1
  329. package/node_modules/@deepseek-ai/dsh-client-ui-skill/README.zh.md +1 -1
  330. package/node_modules/@deepseek-ai/dsh-client-ui-skill/lib/client.js +1 -1
  331. package/node_modules/@deepseek-ai/dsh-client-ui-skill/package.json +13 -13
  332. package/node_modules/@deepseek-ai/dsh-client-ui-slots/package.json +3 -3
  333. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/package.json +17 -17
  334. package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.i18n.yaml +8 -8
  335. package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.md +5 -3
  336. package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.zh.md +5 -3
  337. package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/client.js +6 -6
  338. package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/index.js +4 -4
  339. package/node_modules/@deepseek-ai/dsh-client-ui-theme/package.json +11 -11
  340. package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.i18n.yaml +9 -6
  341. package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.md +12 -2
  342. package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.zh.md +12 -2
  343. package/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/client.js +304 -54
  344. package/node_modules/@deepseek-ai/dsh-client-ui-tool/package.json +24 -23
  345. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/package.json +16 -16
  346. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/README.i18n.yaml +26 -20
  347. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/README.md +37 -13
  348. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/README.zh.md +37 -13
  349. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/lib/client.js +1257 -218
  350. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/package.json +23 -19
  351. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/README.i18n.yaml +2 -2
  352. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/README.md +1 -1
  353. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/README.zh.md +1 -1
  354. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/lib/client.js +1 -1
  355. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/package.json +14 -14
  356. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.i18n.yaml +2 -2
  357. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.md +1 -1
  358. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.zh.md +1 -1
  359. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/client.js +3 -2
  360. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/package.json +24 -24
  361. package/node_modules/@deepseek-ai/dsh-cmdline/package.json +1 -1
  362. package/node_modules/@deepseek-ai/dsh-command-compact/package.json +8 -8
  363. package/node_modules/@deepseek-ai/dsh-command-feedback/package.json +11 -11
  364. package/node_modules/@deepseek-ai/dsh-command-goal/package.json +11 -11
  365. package/node_modules/@deepseek-ai/dsh-commands/lib/typert.host.js +1 -1
  366. package/node_modules/@deepseek-ai/dsh-commands/package.json +18 -18
  367. package/node_modules/@deepseek-ai/dsh-compaction/package.json +11 -11
  368. package/node_modules/@deepseek-ai/dsh-compaction-basic/package.json +22 -22
  369. package/node_modules/@deepseek-ai/dsh-compaction-image-offload/package.json +16 -16
  370. package/node_modules/@deepseek-ai/dsh-compaction-tool-result-pruner/package.json +13 -13
  371. package/node_modules/@deepseek-ai/dsh-config-editor/package.json +6 -6
  372. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/lib/client.js +59 -4
  373. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/package.json +6 -6
  374. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/README.i18n.yaml +5 -2
  375. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/README.md +8 -0
  376. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/README.zh.md +8 -0
  377. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/index.js +58 -20
  378. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/typert.host.js +18 -18
  379. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/typert.remote-client.js +12 -12
  380. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/types/index.js +5 -3
  381. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/types/inspect-registry.js +62 -17
  382. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/package.json +17 -16
  383. package/node_modules/@deepseek-ai/dsh-credentials/package.json +4 -4
  384. package/node_modules/@deepseek-ai/dsh-credentials-local/package.json +9 -9
  385. package/node_modules/@deepseek-ai/dsh-deepseek-account/package.json +7 -7
  386. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/package.json +9 -9
  387. package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/package.json +1 -1
  388. package/node_modules/@deepseek-ai/dsh-deque/package.json +1 -1
  389. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/package.json +21 -21
  390. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/package.json +4 -4
  391. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/package.json +5 -5
  392. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.i18n.yaml +2 -2
  393. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.md +1 -1
  394. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.zh.md +1 -1
  395. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/cordis.patch.yml +3 -0
  396. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/lib/index.js +11 -5
  397. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/package.json +39 -35
  398. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/package.json +22 -22
  399. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/package.json +31 -31
  400. package/node_modules/@deepseek-ai/dsh-experimental-schedule-bundle/package.json +4 -4
  401. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/package.json +6 -6
  402. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/package.json +7 -7
  403. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/package.json +22 -22
  404. package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/package.json +5 -5
  405. package/node_modules/@deepseek-ai/dsh-file-reference/package.json +3 -3
  406. package/node_modules/@deepseek-ai/dsh-file-reference-local/package.json +9 -9
  407. package/node_modules/@deepseek-ai/dsh-fs/package.json +9 -9
  408. package/node_modules/@deepseek-ai/dsh-fs-local/package.json +4 -4
  409. package/node_modules/@deepseek-ai/dsh-fs-observation-policy/package.json +4 -4
  410. package/node_modules/@deepseek-ai/dsh-fs-sandbox/package.json +10 -10
  411. package/node_modules/@deepseek-ai/dsh-goal/lib/typert.host.js +1 -1
  412. package/node_modules/@deepseek-ai/dsh-goal/package.json +22 -22
  413. package/node_modules/@deepseek-ai/dsh-goal-round-driver/package.json +15 -15
  414. package/node_modules/@deepseek-ai/dsh-headless/package.json +17 -17
  415. package/node_modules/@deepseek-ai/dsh-hmr/README.i18n.yaml +2 -2
  416. package/node_modules/@deepseek-ai/dsh-hmr/README.md +1 -0
  417. package/node_modules/@deepseek-ai/dsh-hmr/README.zh.md +1 -0
  418. package/node_modules/@deepseek-ai/dsh-hmr/package.json +6 -6
  419. package/node_modules/@deepseek-ai/dsh-home-paths/package.json +1 -1
  420. package/node_modules/@deepseek-ai/dsh-hook-protocol/package.json +7 -7
  421. package/node_modules/@deepseek-ai/dsh-hooks-claude-code/package.json +20 -20
  422. package/node_modules/@deepseek-ai/dsh-hooks-codex/package.json +18 -18
  423. package/node_modules/@deepseek-ai/dsh-host-directory-picker/package.json +1 -1
  424. package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/package.json +13 -13
  425. package/node_modules/@deepseek-ai/dsh-host-directory-picker-browse/package.json +2 -2
  426. package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/package.json +3 -3
  427. package/node_modules/@deepseek-ai/dsh-host-frontend-static/package.json +6 -6
  428. package/node_modules/@deepseek-ai/dsh-host-open-in-app/package.json +5 -5
  429. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/package.json +9 -9
  430. package/node_modules/@deepseek-ai/dsh-host-product-telemetry-otel/package.json +4 -4
  431. package/node_modules/@deepseek-ai/dsh-host-webserver/package.json +1 -1
  432. package/node_modules/@deepseek-ai/dsh-http-proxy/package.json +2 -2
  433. package/node_modules/@deepseek-ai/dsh-invariants/package.json +1 -1
  434. package/node_modules/@deepseek-ai/dsh-jobs/package.json +11 -11
  435. package/node_modules/@deepseek-ai/dsh-jobs-local/package.json +11 -11
  436. package/node_modules/@deepseek-ai/dsh-launch-environment/package.json +1 -1
  437. package/node_modules/@deepseek-ai/dsh-lazy-require/package.json +1 -1
  438. package/node_modules/@deepseek-ai/dsh-llm/lib/typert.host.js +1 -1
  439. package/node_modules/@deepseek-ai/dsh-llm/package.json +8 -8
  440. package/node_modules/@deepseek-ai/dsh-llm-cursor/package.json +20 -20
  441. package/node_modules/@deepseek-ai/dsh-llm-deepseek/package.json +37 -37
  442. package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/package.json +10 -10
  443. package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/package.json +9 -9
  444. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.i18n.yaml +4 -4
  445. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.md +3 -3
  446. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.zh.md +3 -3
  447. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/index.js +10 -6
  448. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/package.json +22 -22
  449. package/node_modules/@deepseek-ai/dsh-llm-retry/package.json +21 -21
  450. package/node_modules/@deepseek-ai/dsh-mcp-client/package.json +20 -20
  451. package/node_modules/@deepseek-ai/dsh-mcp-resources/package.json +12 -12
  452. package/node_modules/@deepseek-ai/dsh-message-feedback/package.json +14 -14
  453. package/node_modules/@deepseek-ai/dsh-native-command/package.json +2 -2
  454. package/node_modules/@deepseek-ai/dsh-no-progress-reminder/package.json +10 -10
  455. package/node_modules/@deepseek-ai/dsh-office-to-pdf/package.json +6 -6
  456. package/node_modules/@deepseek-ai/dsh-otel/package.json +3 -3
  457. package/node_modules/@deepseek-ai/dsh-output-retention/package.json +1 -1
  458. package/node_modules/@deepseek-ai/dsh-package-manifest/package.json +1 -1
  459. package/node_modules/@deepseek-ai/dsh-permission-presets/lib/typert.host.js +1 -1
  460. package/node_modules/@deepseek-ai/dsh-permission-presets/package.json +20 -20
  461. package/node_modules/@deepseek-ai/dsh-persona/package.json +4 -4
  462. package/node_modules/@deepseek-ai/dsh-plan-mode/package.json +22 -22
  463. package/node_modules/@deepseek-ai/dsh-plugin-manager/package.json +27 -27
  464. package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/package.json +13 -13
  465. package/node_modules/@deepseek-ai/dsh-ptc-runtime/package.json +3 -3
  466. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/package.json +20 -20
  467. package/node_modules/@deepseek-ai/dsh-pwsh-local/package.json +8 -8
  468. package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/package.json +12 -12
  469. package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/package.json +9 -9
  470. package/node_modules/@deepseek-ai/dsh-sandbox/package.json +6 -6
  471. package/node_modules/@deepseek-ai/dsh-sandbox-local/package.json +9 -9
  472. package/node_modules/@deepseek-ai/dsh-sandbox-policy/package.json +13 -13
  473. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/README.i18n.yaml +2 -2
  474. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/README.md +3 -3
  475. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/README.zh.md +3 -3
  476. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/assets/diagnose-windows-sandbox-acl/SKILL.md +39 -22
  477. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/assets/diagnose-windows-sandbox-acl/scripts/diagnose-windows-sandbox-acl.ps1 +308 -231
  478. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/package.json +10 -10
  479. package/node_modules/@deepseek-ai/dsh-schedule/README.i18n.yaml +2 -2
  480. package/node_modules/@deepseek-ai/dsh-schedule/README.md +3 -3
  481. package/node_modules/@deepseek-ai/dsh-schedule/README.zh.md +3 -3
  482. package/node_modules/@deepseek-ai/dsh-schedule/lib/index.js +6 -4
  483. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/domain.js +6 -4
  484. package/node_modules/@deepseek-ai/dsh-schedule/package.json +30 -30
  485. package/node_modules/@deepseek-ai/dsh-scope/package.json +3 -3
  486. package/node_modules/@deepseek-ai/dsh-sdk-app/package.json +5 -5
  487. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/package.json +21 -21
  488. package/node_modules/@deepseek-ai/dsh-sdk-minimal/package.json +28 -28
  489. package/node_modules/@deepseek-ai/dsh-sdk-protocol/package.json +7 -7
  490. package/node_modules/@deepseek-ai/dsh-session/package.json +9 -9
  491. package/node_modules/@deepseek-ai/dsh-session-checkpoint-policy/package.json +15 -15
  492. package/node_modules/@deepseek-ai/dsh-session-format/package.json +2 -2
  493. package/node_modules/@deepseek-ai/dsh-session-format-catalog/package.json +9 -9
  494. package/node_modules/@deepseek-ai/dsh-session-format-v0-to-v1/package.json +4 -4
  495. package/node_modules/@deepseek-ai/dsh-session-format-v1-to-v2/package.json +6 -6
  496. package/node_modules/@deepseek-ai/dsh-session-format-v2-to-v3/package.json +4 -4
  497. package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/package.json +3 -3
  498. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/package.json +15 -15
  499. package/node_modules/@deepseek-ai/dsh-session-log-export/package.json +21 -21
  500. package/node_modules/@deepseek-ai/dsh-session-persistence/package.json +9 -9
  501. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/package.json +10 -10
  502. package/node_modules/@deepseek-ai/dsh-session-projection/package.json +3 -3
  503. package/node_modules/@deepseek-ai/dsh-session-projection-cache/package.json +10 -10
  504. package/node_modules/@deepseek-ai/dsh-session-query/package.json +18 -18
  505. package/node_modules/@deepseek-ai/dsh-session-query-sqlite/package.json +9 -9
  506. package/node_modules/@deepseek-ai/dsh-session-reference/lib/typert.host.js +1 -1
  507. package/node_modules/@deepseek-ai/dsh-session-reference/package.json +34 -34
  508. package/node_modules/@deepseek-ai/dsh-session-stats/package.json +7 -7
  509. package/node_modules/@deepseek-ai/dsh-session-telemetry/package.json +5 -5
  510. package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/package.json +21 -21
  511. package/node_modules/@deepseek-ai/dsh-session-title/package.json +16 -16
  512. package/node_modules/@deepseek-ai/dsh-session-title-first-prompt-llm/package.json +13 -13
  513. package/node_modules/@deepseek-ai/dsh-session-title-llm/package.json +10 -10
  514. package/node_modules/@deepseek-ai/dsh-session-turn-outline/package.json +7 -7
  515. package/node_modules/@deepseek-ai/dsh-settings/package.json +12 -12
  516. package/node_modules/@deepseek-ai/dsh-shell/package.json +5 -5
  517. package/node_modules/@deepseek-ai/dsh-shell-env/package.json +11 -11
  518. package/node_modules/@deepseek-ai/dsh-skill/package.json +6 -6
  519. package/node_modules/@deepseek-ai/dsh-skill-badge/package.json +3 -3
  520. package/node_modules/@deepseek-ai/dsh-skill-filesystem/package.json +7 -7
  521. package/node_modules/@deepseek-ai/dsh-skill-office/package.json +3 -3
  522. package/node_modules/@deepseek-ai/dsh-spill/package.json +7 -7
  523. package/node_modules/@deepseek-ai/dsh-spill-local/package.json +6 -6
  524. package/node_modules/@deepseek-ai/dsh-spill-policy/package.json +30 -30
  525. package/node_modules/@deepseek-ai/dsh-storage/package.json +1 -1
  526. package/node_modules/@deepseek-ai/dsh-storage-domain/package.json +5 -5
  527. package/node_modules/@deepseek-ai/dsh-storage-json/package.json +3 -3
  528. package/node_modules/@deepseek-ai/dsh-subagent/lib/typert.host.js +1 -1
  529. package/node_modules/@deepseek-ai/dsh-subagent/package.json +48 -48
  530. package/node_modules/@deepseek-ai/dsh-subagent-acp/package.json +20 -20
  531. package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/package.json +14 -14
  532. package/node_modules/@deepseek-ai/dsh-subagent-in-process-driver/package.json +22 -22
  533. package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/package.json +17 -17
  534. package/node_modules/@deepseek-ai/dsh-subprocess/package.json +4 -4
  535. package/node_modules/@deepseek-ai/dsh-subprocess-local/package.json +7 -7
  536. package/node_modules/@deepseek-ai/dsh-system-prompt/package.json +7 -7
  537. package/node_modules/@deepseek-ai/dsh-terminal/package.json +6 -6
  538. package/node_modules/@deepseek-ai/dsh-terminal-bash/package.json +17 -17
  539. package/node_modules/@deepseek-ai/dsh-time-context/package.json +20 -20
  540. package/node_modules/@deepseek-ai/dsh-timeout/package.json +1 -1
  541. package/node_modules/@deepseek-ai/dsh-tmux-context/package.json +11 -11
  542. package/node_modules/@deepseek-ai/dsh-token-meter/package.json +14 -14
  543. package/node_modules/@deepseek-ai/dsh-tool-ask-user/README.i18n.yaml +22 -22
  544. package/node_modules/@deepseek-ai/dsh-tool-ask-user/README.md +27 -11
  545. package/node_modules/@deepseek-ai/dsh-tool-ask-user/README.zh.md +27 -11
  546. package/node_modules/@deepseek-ai/dsh-tool-ask-user/lib/index.js +211 -3
  547. package/node_modules/@deepseek-ai/dsh-tool-ask-user/package.json +12 -9
  548. package/node_modules/@deepseek-ai/dsh-tool-bash/README.i18n.yaml +2 -2
  549. package/node_modules/@deepseek-ai/dsh-tool-bash/README.md +1 -1
  550. package/node_modules/@deepseek-ai/dsh-tool-bash/README.zh.md +1 -1
  551. package/node_modules/@deepseek-ai/dsh-tool-bash/lib/index.js +1 -1
  552. package/node_modules/@deepseek-ai/dsh-tool-bash/package.json +29 -29
  553. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/package.json +19 -19
  554. package/node_modules/@deepseek-ai/dsh-tool-call-timeout-policy/package.json +7 -7
  555. package/node_modules/@deepseek-ai/dsh-tool-cordis/README.i18n.yaml +2 -2
  556. package/node_modules/@deepseek-ai/dsh-tool-cordis/README.md +1 -1
  557. package/node_modules/@deepseek-ai/dsh-tool-cordis/README.zh.md +1 -1
  558. package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/index.js +1 -1
  559. package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/api-catalog.js +31 -1
  560. package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/index.js +3 -3
  561. package/node_modules/@deepseek-ai/dsh-tool-cordis/package.json +10 -10
  562. package/node_modules/@deepseek-ai/dsh-tool-fs/package.json +29 -29
  563. package/node_modules/@deepseek-ai/dsh-tool-fs-search/package.json +20 -20
  564. package/node_modules/@deepseek-ai/dsh-tool-goal/package.json +16 -16
  565. package/node_modules/@deepseek-ai/dsh-tool-jobs/package.json +15 -15
  566. package/node_modules/@deepseek-ai/dsh-tool-present/package.json +17 -17
  567. package/node_modules/@deepseek-ai/dsh-tool-pwsh/README.i18n.yaml +2 -2
  568. package/node_modules/@deepseek-ai/dsh-tool-pwsh/README.md +1 -1
  569. package/node_modules/@deepseek-ai/dsh-tool-pwsh/README.zh.md +1 -1
  570. package/node_modules/@deepseek-ai/dsh-tool-pwsh/lib/index.js +2 -2
  571. package/node_modules/@deepseek-ai/dsh-tool-pwsh/package.json +28 -28
  572. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/README.i18n.yaml +4 -4
  573. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/README.md +2 -2
  574. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/README.zh.md +2 -2
  575. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/lib/index.js +1 -1
  576. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/package.json +20 -20
  577. package/node_modules/@deepseek-ai/dsh-tool-ralph/package.json +19 -19
  578. package/node_modules/@deepseek-ai/dsh-tool-skill/package.json +12 -12
  579. package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/package.json +19 -19
  580. package/node_modules/@deepseek-ai/dsh-tool-subagent/package.json +26 -26
  581. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/package.json +19 -19
  582. package/node_modules/@deepseek-ai/dsh-tool-todo/package.json +15 -15
  583. package/node_modules/@deepseek-ai/dsh-tool-web/package.json +19 -19
  584. package/node_modules/@deepseek-ai/dsh-tool-workflow/package.json +22 -22
  585. package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/package.json +6 -6
  586. package/node_modules/@deepseek-ai/dsh-tools/package.json +24 -24
  587. package/node_modules/@deepseek-ai/dsh-tui-app/package.json +75 -75
  588. package/node_modules/@deepseek-ai/dsh-typert-loader/package.json +4 -4
  589. package/node_modules/@deepseek-ai/dsh-typert-protocol/package.json +2 -2
  590. package/node_modules/@deepseek-ai/dsh-typert-registry/package.json +2 -2
  591. package/node_modules/@deepseek-ai/dsh-user-approval/package.json +15 -15
  592. package/node_modules/@deepseek-ai/dsh-user-questions/README.i18n.yaml +19 -22
  593. package/node_modules/@deepseek-ai/dsh-user-questions/README.md +13 -10
  594. package/node_modules/@deepseek-ai/dsh-user-questions/README.zh.md +13 -10
  595. package/node_modules/@deepseek-ai/dsh-user-questions/lib/index.js +659 -46
  596. package/node_modules/@deepseek-ai/dsh-user-questions/lib/typert.host.js +770 -0
  597. package/node_modules/@deepseek-ai/dsh-user-questions/lib/typert.remote-client.js +125 -0
  598. package/node_modules/@deepseek-ai/dsh-user-questions/lib/types/index.js +289 -58
  599. package/node_modules/@deepseek-ai/dsh-user-questions/lib/types/projection.js +298 -0
  600. package/node_modules/@deepseek-ai/dsh-user-questions/lib/types/timed-wait.js +85 -0
  601. package/node_modules/@deepseek-ai/dsh-user-questions/package.json +35 -11
  602. package/node_modules/@deepseek-ai/dsh-util-code-language/package.json +1 -1
  603. package/node_modules/@deepseek-ai/dsh-util-crypto/package.json +1 -1
  604. package/node_modules/@deepseek-ai/dsh-util-time/package.json +1 -1
  605. package/node_modules/@deepseek-ai/dsh-util-values/package.json +1 -1
  606. package/node_modules/@deepseek-ai/dsh-util-workspace-path/package.json +1 -1
  607. package/node_modules/@deepseek-ai/dsh-web/package.json +3 -3
  608. package/node_modules/@deepseek-ai/dsh-web-app/package.json +136 -136
  609. package/node_modules/@deepseek-ai/dsh-web-fetch-http/package.json +7 -7
  610. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-5SrrfWpU.js +127 -0
  611. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-BPHePDI_.css +1 -0
  612. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/index.html +2 -2
  613. package/node_modules/@deepseek-ai/dsh-web-frontend/package.json +16 -16
  614. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/package.json +15 -15
  615. package/node_modules/@deepseek-ai/dsh-web-search-exa/package.json +6 -6
  616. package/node_modules/@deepseek-ai/dsh-web-search-perplexity/package.json +6 -6
  617. package/node_modules/@deepseek-ai/dsh-webhook/package.json +21 -21
  618. package/node_modules/@deepseek-ai/dsh-webhook-github/package.json +10 -10
  619. package/node_modules/@deepseek-ai/dsh-win32-process/package.json +2 -2
  620. package/node_modules/@deepseek-ai/dsh-workflow/package.json +11 -11
  621. package/node_modules/@deepseek-ai/dsh-workflow-ptc/package.json +34 -34
  622. package/node_modules/@deepseek-ai/dsh-workspace/package.json +14 -14
  623. package/node_modules/@deepseek-ai/dsh-workspace-changes/package.json +11 -11
  624. package/node_modules/@earendil-works/pi-ai/README.md +52 -8
  625. package/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.js +131 -87
  626. package/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.js +17 -5
  627. package/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.js +13 -12
  628. package/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.js +21 -73
  629. package/node_modules/@earendil-works/pi-ai/dist/api/google-shared.js +55 -4
  630. package/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.js +25 -65
  631. package/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.js +19 -12
  632. package/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.js +26 -23
  633. package/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.js +44 -59
  634. package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses-shared.js +56 -56
  635. package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.js +14 -19
  636. package/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.js +2 -2
  637. package/node_modules/@earendil-works/pi-ai/dist/api/transform-messages.js +21 -7
  638. package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/load.js +5 -0
  639. package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/meta.js +190 -0
  640. package/node_modules/@earendil-works/pi-ai/dist/bun-oauth.js +2 -0
  641. package/node_modules/@earendil-works/pi-ai/dist/compat.js +9 -6
  642. package/node_modules/@earendil-works/pi-ai/dist/env-api-keys.js +1 -0
  643. package/node_modules/@earendil-works/pi-ai/dist/image-models.generated.js +49 -4
  644. package/node_modules/@earendil-works/pi-ai/dist/index.js +2 -1
  645. package/node_modules/@earendil-works/pi-ai/dist/models.generated.js +4 -0
  646. package/node_modules/@earendil-works/pi-ai/dist/models.js +5 -2
  647. package/node_modules/@earendil-works/pi-ai/dist/providers/all.js +2 -0
  648. package/node_modules/@earendil-works/pi-ai/dist/providers/data/.manifest.json +1 -1
  649. package/node_modules/@earendil-works/pi-ai/dist/providers/data/amazon-bedrock.json +1 -1
  650. package/node_modules/@earendil-works/pi-ai/dist/providers/data/ant-ling.json +1 -1
  651. package/node_modules/@earendil-works/pi-ai/dist/providers/data/anthropic.json +1 -1
  652. package/node_modules/@earendil-works/pi-ai/dist/providers/data/azure-openai-responses.json +1 -1
  653. package/node_modules/@earendil-works/pi-ai/dist/providers/data/baseten.json +1 -1
  654. package/node_modules/@earendil-works/pi-ai/dist/providers/data/cerebras.json +1 -1
  655. package/node_modules/@earendil-works/pi-ai/dist/providers/data/cloudflare-ai-gateway.json +1 -1
  656. package/node_modules/@earendil-works/pi-ai/dist/providers/data/cloudflare-workers-ai.json +1 -1
  657. package/node_modules/@earendil-works/pi-ai/dist/providers/data/deepseek.json +1 -1
  658. package/node_modules/@earendil-works/pi-ai/dist/providers/data/fireworks.json +1 -1
  659. package/node_modules/@earendil-works/pi-ai/dist/providers/data/github-copilot.json +1 -1
  660. package/node_modules/@earendil-works/pi-ai/dist/providers/data/google-vertex.json +1 -1
  661. package/node_modules/@earendil-works/pi-ai/dist/providers/data/google.json +1 -1
  662. package/node_modules/@earendil-works/pi-ai/dist/providers/data/groq.json +1 -1
  663. package/node_modules/@earendil-works/pi-ai/dist/providers/data/huggingface.json +1 -1
  664. package/node_modules/@earendil-works/pi-ai/dist/providers/data/kimi-coding.json +1 -1
  665. package/node_modules/@earendil-works/pi-ai/dist/providers/data/meta.json +1 -0
  666. package/node_modules/@earendil-works/pi-ai/dist/providers/data/minimax-cn.json +1 -1
  667. package/node_modules/@earendil-works/pi-ai/dist/providers/data/minimax.json +1 -1
  668. package/node_modules/@earendil-works/pi-ai/dist/providers/data/mistral.json +1 -1
  669. package/node_modules/@earendil-works/pi-ai/dist/providers/data/moonshotai-cn.json +1 -1
  670. package/node_modules/@earendil-works/pi-ai/dist/providers/data/moonshotai.json +1 -1
  671. package/node_modules/@earendil-works/pi-ai/dist/providers/data/nvidia.json +1 -1
  672. package/node_modules/@earendil-works/pi-ai/dist/providers/data/openai-codex.json +1 -1
  673. package/node_modules/@earendil-works/pi-ai/dist/providers/data/openai.json +1 -1
  674. package/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode-go.json +1 -1
  675. package/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode.json +1 -1
  676. package/node_modules/@earendil-works/pi-ai/dist/providers/data/openrouter.json +1 -1
  677. package/node_modules/@earendil-works/pi-ai/dist/providers/data/qwen-token-plan-cn.json +1 -1
  678. package/node_modules/@earendil-works/pi-ai/dist/providers/data/qwen-token-plan-individual.json +1 -1
  679. package/node_modules/@earendil-works/pi-ai/dist/providers/data/qwen-token-plan.json +1 -1
  680. package/node_modules/@earendil-works/pi-ai/dist/providers/data/radius.json +1 -0
  681. package/node_modules/@earendil-works/pi-ai/dist/providers/data/together.json +1 -1
  682. package/node_modules/@earendil-works/pi-ai/dist/providers/data/vercel-ai-gateway.json +1 -1
  683. package/node_modules/@earendil-works/pi-ai/dist/providers/data/xai.json +1 -1
  684. package/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi-token-plan-ams.json +1 -1
  685. package/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi-token-plan-cn.json +1 -1
  686. package/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi-token-plan-sgp.json +1 -1
  687. package/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi.json +1 -1
  688. package/node_modules/@earendil-works/pi-ai/dist/providers/data/zai-coding-cn.json +1 -1
  689. package/node_modules/@earendil-works/pi-ai/dist/providers/data/zai.json +1 -1
  690. package/node_modules/@earendil-works/pi-ai/dist/providers/faux.js +12 -11
  691. package/node_modules/@earendil-works/pi-ai/dist/providers/meta.js +24 -0
  692. package/node_modules/@earendil-works/pi-ai/dist/providers/meta.models.js +6 -0
  693. package/node_modules/@earendil-works/pi-ai/dist/providers/opencode-go.js +4 -3
  694. package/node_modules/@earendil-works/pi-ai/dist/providers/opencode-headers.js +22 -0
  695. package/node_modules/@earendil-works/pi-ai/dist/providers/opencode.js +5 -4
  696. package/node_modules/@earendil-works/pi-ai/dist/providers/radius.js +19 -5
  697. package/node_modules/@earendil-works/pi-ai/dist/providers/radius.models.js +6 -0
  698. package/node_modules/@earendil-works/pi-ai/dist/utils/estimate.js +8 -29
  699. package/node_modules/@earendil-works/pi-ai/dist/utils/event-stream.js +25 -7
  700. package/node_modules/@earendil-works/pi-ai/dist/utils/overflow.js +11 -5
  701. package/node_modules/@earendil-works/pi-ai/dist/utils/retry.js +9 -1
  702. package/node_modules/@earendil-works/pi-ai/dist/utils/text.js +26 -0
  703. package/node_modules/@earendil-works/pi-ai/dist/utils/transcript.js +204 -0
  704. package/node_modules/@earendil-works/pi-ai/node_modules/https-proxy-agent/LICENSE +22 -0
  705. package/node_modules/@earendil-works/pi-ai/node_modules/https-proxy-agent/README.md +70 -0
  706. package/node_modules/@earendil-works/pi-ai/node_modules/https-proxy-agent/dist/index.js +234 -0
  707. package/node_modules/@earendil-works/pi-ai/node_modules/https-proxy-agent/dist/parse-proxy-response.js +94 -0
  708. package/node_modules/@earendil-works/pi-ai/node_modules/https-proxy-agent/package.json +51 -0
  709. package/node_modules/@earendil-works/pi-ai/package.json +9 -9
  710. package/node_modules/@earendil-works/pi-telemetry/package.json +1 -1
  711. package/node_modules/@google/genai/README.md +19 -4
  712. package/node_modules/@google/genai/dist/index.cjs +7737 -2768
  713. package/node_modules/@google/genai/dist/index.mjs +7730 -2769
  714. package/node_modules/@google/genai/dist/node/index.cjs +7741 -2763
  715. package/node_modules/@google/genai/dist/node/index.mjs +7734 -2764
  716. package/node_modules/@google/genai/dist/tokenizer/node.cjs +424 -117
  717. package/node_modules/@google/genai/dist/tokenizer/node.mjs +424 -117
  718. package/node_modules/@google/genai/dist/vertex_internal/index.cjs +560 -181
  719. package/node_modules/@google/genai/dist/vertex_internal/index.js +561 -182
  720. package/node_modules/@google/genai/dist/web/index.mjs +7717 -2757
  721. package/node_modules/@google/genai/package.json +3 -3
  722. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +41 -70
  723. package/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +3 -0
  724. package/node_modules/@smithy/node-http-handler/dist-es/http2/ClientHttp2SessionRef.js +1 -0
  725. package/node_modules/@smithy/node-http-handler/dist-es/index.js +3 -3
  726. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +19 -8
  727. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +2 -3
  728. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +10 -2
  729. package/node_modules/@smithy/node-http-handler/package.json +23 -30
  730. package/node_modules/agent-base/dist/helpers.js +5 -34
  731. package/node_modules/agent-base/dist/index.js +8 -40
  732. package/node_modules/agent-base/package.json +11 -11
  733. package/node_modules/http-proxy-agent/dist/index.js +26 -42
  734. package/node_modules/http-proxy-agent/package.json +14 -13
  735. package/node_modules/https-proxy-agent/node_modules/agent-base/LICENSE +22 -0
  736. package/node_modules/https-proxy-agent/node_modules/agent-base/README.md +69 -0
  737. package/node_modules/https-proxy-agent/node_modules/agent-base/dist/helpers.js +66 -0
  738. package/node_modules/https-proxy-agent/node_modules/agent-base/dist/index.js +178 -0
  739. package/node_modules/https-proxy-agent/node_modules/agent-base/package.json +46 -0
  740. package/node_modules/proxy-agent-negotiate/dist/index.js +35 -0
  741. package/node_modules/proxy-agent-negotiate/package.json +43 -0
  742. package/node_modules/typebox/build/compile/validator.mjs +1 -1
  743. package/node_modules/typebox/build/format/date.mjs +1 -1
  744. package/node_modules/typebox/build/format/date_time.mjs +3 -3
  745. package/node_modules/typebox/build/format/email.mjs +2 -2
  746. package/node_modules/typebox/build/format/hostname.mjs +2 -10
  747. package/node_modules/typebox/build/format/idn_email.mjs +3 -3
  748. package/node_modules/typebox/build/format/idn_hostname.mjs +3 -11
  749. package/node_modules/typebox/build/format/idna/format/bidi.mjs +98 -0
  750. package/node_modules/typebox/build/format/idna/format/puny.mjs +144 -0
  751. package/node_modules/typebox/build/format/idna/hostname.mjs +16 -0
  752. package/node_modules/typebox/build/format/idna/idn-hostname.mjs +43 -0
  753. package/node_modules/typebox/build/format/idna/index.mjs +2 -0
  754. package/node_modules/typebox/build/format/idna/label/ascii.mjs +9 -0
  755. package/node_modules/typebox/build/format/idna/label/puny.mjs +28 -0
  756. package/node_modules/typebox/build/format/idna/label/unicode.mjs +106 -0
  757. package/node_modules/typebox/build/format/idna/pattern/pattern.mjs +70 -0
  758. package/node_modules/typebox/build/format/ipv4.mjs +2 -32
  759. package/node_modules/typebox/build/format/ipv6.mjs +2 -61
  760. package/node_modules/typebox/build/format/iri.mjs +30 -8
  761. package/node_modules/typebox/build/format/iri_reference.mjs +9 -55
  762. package/node_modules/typebox/build/format/json_pointer.mjs +2 -2
  763. package/node_modules/typebox/build/format/json_pointer_uri_fragment.mjs +2 -2
  764. package/node_modules/typebox/build/format/regex.mjs +2 -6
  765. package/node_modules/typebox/build/format/relative_json_pointer.mjs +2 -2
  766. package/node_modules/typebox/build/format/time.mjs +19 -14
  767. package/node_modules/typebox/build/format/uri.mjs +3 -130
  768. package/node_modules/typebox/build/format/uri_reference.mjs +2 -3
  769. package/node_modules/typebox/build/format/uri_template.mjs +4 -5
  770. package/node_modules/typebox/build/format/url.mjs +4 -5
  771. package/node_modules/typebox/build/guard/emit.mjs +13 -8
  772. package/node_modules/typebox/build/guard/guard.mjs +22 -13
  773. package/node_modules/typebox/build/guard/string.mjs +23 -31
  774. package/node_modules/typebox/build/schema/compile.mjs +8 -8
  775. package/node_modules/typebox/build/schema/engine/_context.mjs +12 -17
  776. package/node_modules/typebox/build/schema/engine/_functions.mjs +2 -3
  777. package/node_modules/typebox/build/schema/engine/_regexp.mjs +4 -0
  778. package/node_modules/typebox/build/schema/engine/_stack.mjs +138 -36
  779. package/node_modules/typebox/build/schema/engine/additionalItems.mjs +17 -7
  780. package/node_modules/typebox/build/schema/engine/additionalProperties.mjs +20 -7
  781. package/node_modules/typebox/build/schema/engine/allOf.mjs +2 -2
  782. package/node_modules/typebox/build/schema/engine/anyOf.mjs +2 -2
  783. package/node_modules/typebox/build/schema/engine/contains.mjs +18 -6
  784. package/node_modules/typebox/build/schema/engine/enum.mjs +1 -1
  785. package/node_modules/typebox/build/schema/engine/if.mjs +2 -2
  786. package/node_modules/typebox/build/schema/engine/items.mjs +26 -6
  787. package/node_modules/typebox/build/schema/engine/maxContains.mjs +3 -3
  788. package/node_modules/typebox/build/schema/engine/minContains.mjs +14 -4
  789. package/node_modules/typebox/build/schema/engine/not.mjs +4 -2
  790. package/node_modules/typebox/build/schema/engine/oneOf.mjs +9 -8
  791. package/node_modules/typebox/build/schema/engine/pattern.mjs +3 -2
  792. package/node_modules/typebox/build/schema/engine/patternProperties.mjs +4 -3
  793. package/node_modules/typebox/build/schema/engine/propertyNames.mjs +1 -3
  794. package/node_modules/typebox/build/schema/engine/ref.mjs +3 -9
  795. package/node_modules/typebox/build/schema/engine/schema.mjs +19 -4
  796. package/node_modules/typebox/build/schema/engine/type.mjs +1 -1
  797. package/node_modules/typebox/build/schema/engine/unevaluatedItems.mjs +2 -2
  798. package/node_modules/typebox/build/schema/engine/unevaluatedProperties.mjs +2 -2
  799. package/node_modules/typebox/build/schema/errors.mjs +7 -13
  800. package/node_modules/typebox/build/schema/intern/index.mjs +1 -0
  801. package/node_modules/typebox/build/schema/intern/intern.mjs +259 -0
  802. package/node_modules/typebox/build/schema/parse.mjs +10 -5
  803. package/node_modules/typebox/build/schema/resolve/resolve.mjs +327 -1
  804. package/node_modules/typebox/build/schema/schema.mjs +1 -0
  805. package/node_modules/typebox/build/schema/static/propertyNames.mjs +3 -0
  806. package/node_modules/typebox/build/schema/types/index.mjs +0 -2
  807. package/node_modules/typebox/build/system/memory/assign.mjs +2 -1
  808. package/node_modules/typebox/build/system/memory/clone.mjs +14 -11
  809. package/node_modules/typebox/build/system/memory/create.mjs +3 -4
  810. package/node_modules/typebox/build/system/memory/discard.mjs +8 -7
  811. package/node_modules/typebox/build/system/memory/freeze.mjs +6 -0
  812. package/node_modules/typebox/build/system/memory/update.mjs +3 -2
  813. package/node_modules/typebox/build/system/settings/settings.mjs +2 -0
  814. package/node_modules/typebox/build/type/engine/call/distribute_arguments.mjs +16 -3
  815. package/node_modules/typebox/build/type/engine/call/instantiate.mjs +34 -4
  816. package/node_modules/typebox/build/type/engine/evaluate/broaden.mjs +20 -26
  817. package/node_modules/typebox/build/type/engine/evaluate/compare.mjs +9 -13
  818. package/node_modules/typebox/build/type/engine/evaluate/composite.mjs +12 -19
  819. package/node_modules/typebox/build/type/engine/evaluate/distribute.mjs +8 -20
  820. package/node_modules/typebox/build/type/engine/evaluate/evaluate.mjs +11 -8
  821. package/node_modules/typebox/build/type/engine/evaluate/flatten.mjs +3 -4
  822. package/node_modules/typebox/build/type/engine/evaluate/narrow.mjs +26 -6
  823. package/node_modules/typebox/build/type/engine/exclude/operation.mjs +3 -4
  824. package/node_modules/typebox/build/type/engine/extract/operation.mjs +3 -4
  825. package/node_modules/typebox/build/type/engine/priority/priority.mjs +3 -4
  826. package/node_modules/typebox/build/type/script/mapping.mjs +18 -25
  827. package/node_modules/typebox/build/type/script/parser.mjs +27 -23
  828. package/node_modules/typebox/build/value/errors/errors.mjs +2 -7
  829. package/node_modules/typebox/package.json +29 -29
  830. package/node_modules/typebox/readme.md +84 -83
  831. package/package.json +294 -308
  832. package/node_modules/@aws-crypto/sha256-browser/CHANGELOG.md +0 -118
  833. package/node_modules/@aws-crypto/sha256-browser/LICENSE +0 -202
  834. package/node_modules/@aws-crypto/sha256-browser/README.md +0 -31
  835. package/node_modules/@aws-crypto/sha256-browser/build/main/constants.js +0 -43
  836. package/node_modules/@aws-crypto/sha256-browser/build/main/crossPlatformSha256.js +0 -30
  837. package/node_modules/@aws-crypto/sha256-browser/build/main/index.js +0 -8
  838. package/node_modules/@aws-crypto/sha256-browser/build/main/isEmptyData.js +0 -11
  839. package/node_modules/@aws-crypto/sha256-browser/build/main/webCryptoSha256.js +0 -56
  840. package/node_modules/@aws-crypto/sha256-browser/build/module/constants.js +0 -40
  841. package/node_modules/@aws-crypto/sha256-browser/build/module/crossPlatformSha256.js +0 -27
  842. package/node_modules/@aws-crypto/sha256-browser/build/module/index.js +0 -3
  843. package/node_modules/@aws-crypto/sha256-browser/build/module/isEmptyData.js +0 -7
  844. package/node_modules/@aws-crypto/sha256-browser/build/module/webCryptoSha256.js +0 -53
  845. package/node_modules/@aws-crypto/sha256-browser/package.json +0 -28
  846. package/node_modules/@aws-crypto/sha256-browser/src/constants.ts +0 -41
  847. package/node_modules/@aws-crypto/sha256-browser/src/crossPlatformSha256.ts +0 -30
  848. package/node_modules/@aws-crypto/sha256-browser/src/index.ts +0 -2
  849. package/node_modules/@aws-crypto/sha256-browser/src/isEmptyData.ts +0 -9
  850. package/node_modules/@aws-crypto/sha256-browser/src/webCryptoSha256.ts +0 -71
  851. package/node_modules/@aws-crypto/sha256-browser/tsconfig.json +0 -10
  852. package/node_modules/@aws-crypto/sha256-browser/tsconfig.module.json +0 -7
  853. package/node_modules/@aws-crypto/sha256-js/CHANGELOG.md +0 -106
  854. package/node_modules/@aws-crypto/sha256-js/LICENSE +0 -201
  855. package/node_modules/@aws-crypto/sha256-js/README.md +0 -29
  856. package/node_modules/@aws-crypto/sha256-js/build/main/RawSha256.js +0 -124
  857. package/node_modules/@aws-crypto/sha256-js/build/main/constants.js +0 -98
  858. package/node_modules/@aws-crypto/sha256-js/build/main/index.js +0 -5
  859. package/node_modules/@aws-crypto/sha256-js/build/main/jsSha256.js +0 -85
  860. package/node_modules/@aws-crypto/sha256-js/build/main/knownHashes.fixture.js +0 -322
  861. package/node_modules/@aws-crypto/sha256-js/build/module/RawSha256.js +0 -121
  862. package/node_modules/@aws-crypto/sha256-js/build/module/constants.js +0 -95
  863. package/node_modules/@aws-crypto/sha256-js/build/module/index.js +0 -2
  864. package/node_modules/@aws-crypto/sha256-js/build/module/jsSha256.js +0 -82
  865. package/node_modules/@aws-crypto/sha256-js/build/module/knownHashes.fixture.js +0 -319
  866. package/node_modules/@aws-crypto/sha256-js/package.json +0 -27
  867. package/node_modules/@aws-crypto/sha256-js/src/RawSha256.ts +0 -164
  868. package/node_modules/@aws-crypto/sha256-js/src/constants.ts +0 -98
  869. package/node_modules/@aws-crypto/sha256-js/src/index.ts +0 -1
  870. package/node_modules/@aws-crypto/sha256-js/src/jsSha256.ts +0 -94
  871. package/node_modules/@aws-crypto/sha256-js/src/knownHashes.fixture.ts +0 -401
  872. package/node_modules/@aws-crypto/sha256-js/tsconfig.json +0 -10
  873. package/node_modules/@aws-crypto/sha256-js/tsconfig.module.json +0 -7
  874. package/node_modules/@aws-crypto/supports-web-crypto/CHANGELOG.md +0 -66
  875. package/node_modules/@aws-crypto/supports-web-crypto/LICENSE +0 -202
  876. package/node_modules/@aws-crypto/supports-web-crypto/README.md +0 -32
  877. package/node_modules/@aws-crypto/supports-web-crypto/build/main/index.js +0 -5
  878. package/node_modules/@aws-crypto/supports-web-crypto/build/main/supportsWebCrypto.js +0 -69
  879. package/node_modules/@aws-crypto/supports-web-crypto/build/module/index.js +0 -2
  880. package/node_modules/@aws-crypto/supports-web-crypto/build/module/supportsWebCrypto.js +0 -62
  881. package/node_modules/@aws-crypto/supports-web-crypto/package.json +0 -23
  882. package/node_modules/@aws-crypto/supports-web-crypto/src/index.ts +0 -1
  883. package/node_modules/@aws-crypto/supports-web-crypto/src/supportsWebCrypto.ts +0 -76
  884. package/node_modules/@aws-crypto/supports-web-crypto/tsconfig.json +0 -10
  885. package/node_modules/@aws-crypto/supports-web-crypto/tsconfig.module.json +0 -7
  886. package/node_modules/@aws-crypto/util/CHANGELOG.md +0 -71
  887. package/node_modules/@aws-crypto/util/LICENSE +0 -201
  888. package/node_modules/@aws-crypto/util/README.md +0 -16
  889. package/node_modules/@aws-crypto/util/build/main/convertToBuffer.js +0 -24
  890. package/node_modules/@aws-crypto/util/build/main/index.js +0 -14
  891. package/node_modules/@aws-crypto/util/build/main/isEmptyData.js +0 -13
  892. package/node_modules/@aws-crypto/util/build/main/numToUint8.js +0 -15
  893. package/node_modules/@aws-crypto/util/build/main/uint32ArrayFrom.js +0 -20
  894. package/node_modules/@aws-crypto/util/build/module/convertToBuffer.js +0 -20
  895. package/node_modules/@aws-crypto/util/build/module/index.js +0 -7
  896. package/node_modules/@aws-crypto/util/build/module/isEmptyData.js +0 -9
  897. package/node_modules/@aws-crypto/util/build/module/numToUint8.js +0 -11
  898. package/node_modules/@aws-crypto/util/build/module/uint32ArrayFrom.js +0 -16
  899. package/node_modules/@aws-crypto/util/package.json +0 -27
  900. package/node_modules/@aws-crypto/util/src/convertToBuffer.ts +0 -30
  901. package/node_modules/@aws-crypto/util/src/index.ts +0 -7
  902. package/node_modules/@aws-crypto/util/src/isEmptyData.ts +0 -12
  903. package/node_modules/@aws-crypto/util/src/numToUint8.ts +0 -11
  904. package/node_modules/@aws-crypto/util/src/uint32ArrayFrom.ts +0 -16
  905. package/node_modules/@aws-crypto/util/tsconfig.json +0 -9
  906. package/node_modules/@aws-crypto/util/tsconfig.module.json +0 -7
  907. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/auth/httpAuthSchemeProvider.js +0 -63
  908. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/endpoint/bdd.js +0 -49
  909. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/endpoint/endpointResolver.js +0 -18
  910. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/models/BedrockRuntimeServiceException.js +0 -12
  911. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/models/errors.js +0 -169
  912. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/runtimeConfig.browser.js +0 -41
  913. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/runtimeConfig.js +0 -78
  914. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/runtimeConfig.native.js +0 -19
  915. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/runtimeConfig.shared.js +0 -48
  916. package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/schemas/schemas_0.js +0 -1500
  917. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/LICENSE +0 -201
  918. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/README.md +0 -9
  919. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-cjs/index.js +0 -859
  920. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/build-abort-error.js +0 -19
  921. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/constants.js +0 -1
  922. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +0 -12
  923. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/http2/ClientHttp2SessionRef.js +0 -51
  924. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/index.js +0 -3
  925. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +0 -251
  926. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +0 -135
  927. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-pool.js +0 -46
  928. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +0 -180
  929. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/set-connection-timeout.js +0 -36
  930. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/set-request-timeout.js +0 -21
  931. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/set-socket-keep-alive.js +0 -22
  932. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +0 -23
  933. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/timing.js +0 -4
  934. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +0 -63
  935. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/package.json +0 -56
  936. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/LICENSE +0 -201
  937. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/README.md +0 -9
  938. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-cjs/index.js +0 -859
  939. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/build-abort-error.js +0 -19
  940. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/constants.js +0 -1
  941. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +0 -12
  942. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/http2/ClientHttp2SessionRef.js +0 -51
  943. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/index.js +0 -3
  944. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +0 -251
  945. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +0 -135
  946. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-pool.js +0 -46
  947. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +0 -180
  948. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-http2.js +0 -2
  949. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-https.js +0 -2
  950. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/set-connection-timeout.js +0 -36
  951. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/set-request-timeout.js +0 -21
  952. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/set-socket-keep-alive.js +0 -22
  953. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +0 -23
  954. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/timing.js +0 -4
  955. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +0 -63
  956. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/package.json +0 -56
  957. package/node_modules/@aws-sdk/util-locate-window/LICENSE +0 -201
  958. package/node_modules/@aws-sdk/util-locate-window/README.md +0 -4
  959. package/node_modules/@aws-sdk/util-locate-window/dist-cjs/index.js +0 -12
  960. package/node_modules/@aws-sdk/util-locate-window/dist-es/index.js +0 -10
  961. package/node_modules/@aws-sdk/util-locate-window/package.json +0 -43
  962. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-Cq6ljTv2.css +0 -1
  963. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-Dy0OhsZ5.js +0 -127
  964. package/node_modules/@earendil-works/pi-ai/dist/utils/deferred-tools.js +0 -36
  965. package/node_modules/@smithy/is-array-buffer/LICENSE +0 -201
  966. package/node_modules/@smithy/is-array-buffer/README.md +0 -10
  967. package/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +0 -32
  968. package/node_modules/@smithy/is-array-buffer/dist-es/index.js +0 -2
  969. package/node_modules/@smithy/is-array-buffer/package.json +0 -48
  970. package/node_modules/@smithy/node-http-handler/dist-es/readable.mock.js +0 -21
  971. package/node_modules/@smithy/node-http-handler/dist-es/server.mock.js +0 -88
  972. package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/collector.js +0 -8
  973. package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/index.js +0 -41
  974. package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/readable.mock.js +0 -21
  975. package/node_modules/@smithy/util-buffer-from/LICENSE +0 -201
  976. package/node_modules/@smithy/util-buffer-from/README.md +0 -10
  977. package/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +0 -47
  978. package/node_modules/@smithy/util-buffer-from/dist-es/index.js +0 -14
  979. package/node_modules/@smithy/util-buffer-from/package.json +0 -49
  980. package/node_modules/@smithy/util-utf8/LICENSE +0 -201
  981. package/node_modules/@smithy/util-utf8/README.md +0 -4
  982. package/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.browser.js +0 -1
  983. package/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.js +0 -1
  984. package/node_modules/@smithy/util-utf8/dist-cjs/index.js +0 -65
  985. package/node_modules/@smithy/util-utf8/dist-cjs/toUint8Array.js +0 -1
  986. package/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.browser.js +0 -1
  987. package/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.js +0 -1
  988. package/node_modules/@smithy/util-utf8/dist-es/fromUtf8.browser.js +0 -1
  989. package/node_modules/@smithy/util-utf8/dist-es/fromUtf8.js +0 -5
  990. package/node_modules/@smithy/util-utf8/dist-es/index.js +0 -3
  991. package/node_modules/@smithy/util-utf8/dist-es/toUint8Array.js +0 -10
  992. package/node_modules/@smithy/util-utf8/dist-es/toUtf8.browser.js +0 -9
  993. package/node_modules/@smithy/util-utf8/dist-es/toUtf8.js +0 -10
  994. package/node_modules/@smithy/util-utf8/package.json +0 -54
  995. package/node_modules/typebox/build/format/_idna.mjs +0 -246
  996. package/node_modules/typebox/build/format/_puny.mjs +0 -77
  997. package/node_modules/typebox/build/schema/resolve/ref.mjs +0 -146
  998. package/node_modules/typebox/build/schema/types/contentEncoding.mjs +0 -13
  999. package/node_modules/typebox/build/schema/types/contentMediaType.mjs +0 -13
  1000. /package/node_modules/{@aws-sdk/credential-provider-http/node_modules/@smithy → @smithy}/node-http-handler/dist-es/node-http2.js +0 -0
  1001. /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
- Read-only diagnosis, and whitelisted repair, of Windows ACL objects that the
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. This script reports why such an object is
10
- unreadable or unopenable, and repairs package-ACE conflicts or missing rights.
11
-
12
- Diagnosis (the default) never changes ACLs: it reads each requested path
13
- and every ancestor with .NET and native icacls, and prints machine-parseable
14
- lines for the caller to interpret. REPORT JSON records distinguish observed
15
- facts, decisions and their reasons, attempted operations, and verification.
16
- A caught exception still emits the operation history and recovery commands.
17
- Failed repairs restore attempted DACL changes in reverse order and stop.
18
-
19
- Repair (-Fix) removes ONLY allow ACEs whose SID is an AppContainer package SID
20
- (S-1-15-2-*, excluding the well-known groups ending in 1 or 2). Removing them
21
- also removes that package's access. Repair requires
22
- -AllowRoot, refuses any target outside it or reached through a reparse point,
23
- and records a DACL backup with an independent recovery script. The grant checks
24
- effective rights; removal verifies that other icacls lines remain unchanged.
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 content writes are recovery artifacts and explicitly requested reports.
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 with any mutation. Every modified object must be strictly inside this directory.
42
+ Required. Every modified object must be this directory or strictly inside it.
34
43
 
35
44
  .PARAMETER Out
36
- Required with -Fix, -GrantFullControl or -Compact. Receives recovery artifacts
37
- and, with -Compact, a unique full JSONL report.
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. Requires -AllowRoot
56
- and WRITE_DAC, preserves owner and SACL, and is exclusive with either repair.
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 'C:\Users\me\.ssh'
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 '<workspace>\.dsh-acl-fixture-x\case1' -AllowRoot '<workspace>\.dsh-acl-fixture-x' -Out '<workspace>\.dsh-acl-fixture-x\report' -Fix
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
- [switch]$Fix,
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) if (-not $Compact) { Write-Output $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
- if ($script:reportWriter) {
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
- $script:reportWriter.Dispose()
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
- if (-not $Compact -or $script:reportFailed) { [Console]::Out.WriteLine('REPORT ' + $json) }
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
- $backup = Join-Path $fullDirectory ('acl-backup-{0}.txt' -f ([guid]::NewGuid().ToString('N')))
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 backup directory after that registration is gone.
293
- $restoreScript = $backup + '.ps1'
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 'All recovery files must be written successfully before attempting the ACL change.' @{ files = @($backup, $record, $restoreScript, ($backup + '.rollback.txt')) }
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
- $output = @(icacls $FullPath /save $backup 2>&1)
299
- if ($LASTEXITCODE -ne 0) { throw "Could not back up the DACL (icacls exit $LASTEXITCODE): $($output -join "`n")" }
300
- @{ Path = $FullPath; Dacl = (Get-Acl -LiteralPath $FullPath).GetSecurityDescriptorSddlForm([System.Security.AccessControl.AccessControlSections]::Access) } |
301
- ConvertTo-Json | Set-Content -LiteralPath $record -Encoding utf8
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; backup = $backup; record = $record; script = $restoreScript; command = $command; attempted = $false; restored = $false })
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, $backup)
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
- $actual = Invoke-ReportedOperation read_restored_dacl $FullPath 'Read the restored DACL to compare it with the saved record.' none {
326
- (Get-Acl -LiteralPath $FullPath).GetSecurityDescriptorSddlForm([System.Security.AccessControl.AccessControlSections]::Access)
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
- Write-Report verification restore $FullPath $(if ($actual -eq $saved.Dacl) { 'verified' } else { 'failed' }) 'Compare the observed DACL with the recovery record after writing it.' @{ expectedDacl = $saved.Dacl; actualDacl = $actual }
329
- if ($actual -ne $saved.Dacl) { throw 'RESTORE_FAILED the restored DACL differs from the backup' }
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
- aces = $facts.Aces; nativeListing = @($facts.AclLines | ForEach-Object { $_.Trim() } | Where-Object { $_ }); lowLabel = $facts.LowLabel; errors = $facts.Errors
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
- $reportFailed = $false
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' } elseif ($GrantFullControl) { 'grant' } elseif ($Fix) { 'fix' } else { 'diagnose' }
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 before deciding whether the requested operation can run.' @{
472
- paths = $Path; allowRoot = $AllowRoot; outputDirectory = $Out; recoveryRecord = $Restore; fix = $Fix.IsPresent; grantFullControl = $GrantFullControl.IsPresent
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 ($Compact) {
475
- if (-not $Out) { throw [System.ArgumentException]::new('-Compact requires -Out for the complete report') }
476
- Invoke-ReportedOperation prepare_report $Out 'Create the requested report directory and a new JSONL report; existing reports are never overwritten.' files {
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
- if ($mode -ne 'diagnose') { $refused++; break paths }
515
- continue
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
- $f = Get-ObjectFacts -FullPath $ancestor -MeSid $meSid
523
- if ($ancestor -eq $full) { $targetFacts = $f }
524
- Write-Line (' OBJECT={0} READABLE={1}{2}' -f $f.Object, $f.Readable, $(if ($f.Readable) { '' } else { ' ERROR=' + $f.Error }))
525
- if ($f.Readable) {
526
- Write-Line (' OWNER={0} IS_CURRENT_USER={1} MY_RIGHTS=[{2}] WRITE_DAC={3} WRITE_OWNER={4} LOW_LABEL={5}' -f $f.Owner, $f.OwnerIsMe, $f.MyRights, $f.HasWriteDac, $f.HasWriteOwner, $f.LowLabel)
527
- foreach ($ace in $f.PackageAces) { Write-Line (' PACKAGE_ACE {0}' -f $ace) }
528
- foreach ($sid in ($f.OtherAppContainerSids | Sort-Object -Unique)) { Write-Line (' OTHER_S1_15 SID={0} (reported only)' -f $sid) }
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 ($f.PackageAces.Count -gt 0) { $packageTargets += $f }
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 | ForEach-Object { $_.Object }) }
613
+ Write-Report decision classify $full $verdict $reason @{ writeDac = $targetFacts.HasWriteDac; writeOwner = $targetFacts.HasWriteOwner; packageObjects = @($packageTargets) }
560
614
 
561
- if ($mode -eq 'diagnose') {
562
- Write-Decision diagnose $full skipped 'No mutation mode was requested; all reported ACLs were left unchanged.'
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++; break paths
621
+ $refused++
622
+ break paths
568
623
  }
569
624
 
570
- if ($Restore) {
571
- Restore-SavedDacl -FullPath $full -Record $Restore -Root $AllowRoot
572
- continue
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
- if ($GrantFullControl) {
576
- if ($unreadable) { Write-Line 'GRANT_REFUSED the object could not be read; the grant needs an unconfined caller'; Write-Decision grant $full refused 'The ACL is unreadable, so a preserving grant cannot be constructed.'; $refused++; break paths }
577
- $refusal = Get-RepairRefusal -FullPath $full -Root $AllowRoot
578
- if ($refusal) { Write-Line ('GRANT_REFUSED {0}' -f $refusal); Write-Decision grant $full refused $refusal; $refused++; break paths }
579
- if ($targetFacts.HasWriteDac -and $targetFacts.HasWriteOwner) { Write-Line ('GRANT_SKIPPED {0} already carries WRITE_DAC and WRITE_OWNER' -f $full); Write-Decision grant $full skipped 'Effective WRITE_DAC and WRITE_OWNER are already available; no grant or backup is needed.'; continue }
580
- if (-not $targetFacts.HasWriteDac) { Write-Line 'GRANT_REFUSED the caller lacks WRITE_DAC; stop for permission-policy review'; Write-Decision grant $full refused 'Effective WRITE_DAC is absent; this caller cannot change the DACL. Stop for permission-policy review; do not elevate a writable script copy.'; $refused++; break paths }
581
- Save-AclBackup -FullPath $full -Directory $Out -Root $AllowRoot
582
- # AddAccessRule preserves explicit denies; icacls /grant can remove a deny
583
- # for the same principal. Write only the DACL, leaving owner and SACL intact.
584
- $grantAcl = Get-Acl -LiteralPath $full
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 $full "WRITE_OWNER is missing and WRITE_DAC is available; add a FullControl allow ACE for $meSid while preserving deny ACEs, owner and SACL." acl {
590
- [Dsh.TokenInfo]::SetDacl($full, $grantAcl.GetSecurityDescriptorSddlForm([System.Security.AccessControl.AccessControlSections]::Access))
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
- $after = Get-ObjectFacts -FullPath $full -MeSid $meSid
593
- $verified = $after.Readable -and $after.Errors.Count -eq 0 -and $after.HasWriteDac -and $after.HasWriteOwner
594
- Write-Report verification grant $full $(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.' @{
595
- before = @{ writeDac = $targetFacts.HasWriteDac; writeOwner = $targetFacts.HasWriteOwner }
596
- after = @{ writeDac = $after.HasWriteDac; writeOwner = $after.HasWriteOwner }
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 $full, $meSid); $granted++
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 $full)
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
- [array]::Reverse($sources)
622
- foreach ($target in (@($sources) + @($packageTargets))) {
623
- $refusal = Get-RepairRefusal -FullPath $target.Object -Root $AllowRoot
624
- if ($refusal) { Write-Line ('FIX_REFUSED {0}' -f $refusal); Write-Decision fix $target.Object refused $refusal; $refused++; break paths }
625
- if ($target.Errors.Count -gt 0) { Write-Decision fix $target.Object refused 'The ACL observations are incomplete; collateral changes could not be verified.'; $refused++; break paths }
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
- Write-Report decision fix_sources $full selected 'Remove explicit package allow ACEs from their sources, ancestor first. Inherited entries are verified after source changes; inheritance stays enabled.' @{
640
- sources = @($sources | ForEach-Object { $_.Object }); affectedPaths = @($packageTargets | ForEach-Object { $_.Object })
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 ($target in $sources) {
643
- Save-AclBackup -FullPath $target.Object -Directory $Out -Root $AllowRoot
644
- $sids = @($target.Aces | Where-Object { $_.type -eq 'Allow' -and $_.sid -match $PACKAGE_SID -and -not $_.inherited } | ForEach-Object { $_.sid } | Sort-Object -Unique)
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
- $repairPath = $target.Object
647
- Invoke-ReportedOperation remove_package_allow $repairPath "Remove the observed package allow ACE for $sid as requested by -Fix; preserve deny ACEs and all other principals." acl {
648
- $output = @(icacls $repairPath /remove:g "*$sid" 2>&1)
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
- foreach ($target in $packageTargets) {
654
- $before = $target.AclLines
655
- $after = Get-ObjectFacts -FullPath $target.Object -MeSid $meSid
656
- # icacls prefixes only the first ACE with the path, so compare entries
657
- # without that prefix when checking for collateral changes.
658
- $keepBefore = @($before | ForEach-Object {
659
- $line = $_.Trim()
660
- if ($line.StartsWith($target.Object, [System.StringComparison]::OrdinalIgnoreCase)) { $line = $line.Substring($target.Object.Length).Trim() }
661
- $line
662
- } | Where-Object { $_ -notmatch $PACKAGE_SID })
663
- $keepAfter = @($after.AclLines | ForEach-Object {
664
- $line = $_.Trim()
665
- if ($line.StartsWith($target.Object, [System.StringComparison]::OrdinalIgnoreCase)) { $line = $line.Substring($target.Object.Length).Trim() }
666
- $line
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
- $explicitSids = @($target.Aces | Where-Object { $_.type -eq 'Allow' -and $_.sid -match $PACKAGE_SID -and -not $_.inherited } | ForEach-Object { $_.sid } | Sort-Object -Unique)
679
- foreach ($sid in $explicitSids) { Write-Line ('FIXED {0} SID={1}' -f $target.Object, $sid); $fixed++ }
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 $target.Object, (-not $collateral))
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
- $nextAction = if ($rollbackStatus -eq 'failed') { 'restore_pending_then_stop' } elseif ($exitCode -ne 0 -or $observationFailures -gt 0 -or $Restore) { 'stop' } elseif ($mode -eq 'diagnose') { 'review_findings' } else { 'verify_original_confined_operation' }
711
- Write-Line ('SUMMARY FIXED={0} GRANTED={1} REFUSED={2} RESTORED={3}' -f $fixed, $granted, $refused, $restored)
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