@xiaoso/dsh-tool-plus 0.1.7 → 0.1.8-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/lib/{abort-Caqff3M6.mjs → abort-BtBy5Svf.mjs} +1 -1
  2. package/lib/{alibaba-coding-plan-DTupMiAi.mjs → alibaba-coding-plan-oxHCHJtG.mjs} +2 -2
  3. package/lib/{alibaba-token-plan-Dj3OZhEE.mjs → alibaba-token-plan-B0WzvYnB.mjs} +2 -2
  4. package/lib/{amazon-bedrock-DbFSYXfJ.mjs → amazon-bedrock-BvfYGhrD.mjs} +6 -6
  5. package/lib/{anthropic-CXfWlp-x.mjs → anthropic-C6-vdduI.mjs} +1 -1
  6. package/lib/{anthropic-CTJ3IQVa.mjs → anthropic-Id561lwb.mjs} +13 -13
  7. package/lib/{anthropic-wire-CKuhDwZ1.mjs → anthropic-wire-Cb8AQ1tS.mjs} +13 -13
  8. package/lib/{api-key-validation-CGCJFbFr.mjs → api-key-validation-BXJKlsJg.mjs} +1 -1
  9. package/lib/{azure-openai-responses-ChFbWaGj.mjs → azure-openai-responses-CGws_ijz.mjs} +8 -8
  10. package/lib/{browser-render-9o0Rknop.mjs → browser-render-i7uYOl4f.mjs} +2 -2
  11. package/lib/client.js +2045 -19
  12. package/lib/{cloudflare-ai-gateway-BupNXyKK.mjs → cloudflare-ai-gateway-BK6eadm9.mjs} +2 -2
  13. package/lib/{cloudflare-ai-gateway-EWo0VkP5.mjs → cloudflare-ai-gateway-B_kWnF30.mjs} +1 -1
  14. package/lib/{collapse-DOR8sOGf.mjs → collapse-DU3g7d3B.mjs} +1 -1
  15. package/lib/{coreweave-Ct8cF-da.mjs → coreweave-CkR_FlQi.mjs} +2 -2
  16. package/lib/{cursor-LKGjucn2.mjs → cursor-BXx_5h4a.mjs} +2 -2
  17. package/lib/{cursor-DJV_dcgB.mjs → cursor-BcHwv8qq.mjs} +10 -10
  18. package/lib/{cursor-B95LzVWV.mjs → cursor-BjWbJJLe.mjs} +1 -1
  19. package/lib/{cursor-proto-B8Wj8bv9.mjs → cursor-proto-DPXXYx8S.mjs} +1 -1
  20. package/lib/{devin-DSp0Rw_E.mjs → devin-BZBfzyIz.mjs} +6 -6
  21. package/lib/{devin-BMTdx_hx.mjs → devin-Ce3Wz8_E.mjs} +5 -5
  22. package/lib/{devin-proto-Br8fdyNl.mjs → devin-proto-B6HwDwHK.mjs} +1 -1
  23. package/lib/{error-CORgGg5a.mjs → error-DdCn4m1q.mjs} +3 -3
  24. package/lib/{event-stream-ulcDenZD.mjs → event-stream-ldcUvOA0.mjs} +1 -1
  25. package/lib/{github-copilot-Dstq1D3s.mjs → github-copilot-BT5dkIJl.mjs} +2 -2
  26. package/lib/{github-copilot-headers-DOh1gt_w.mjs → github-copilot-headers-BGL8JO5c.mjs} +2 -2
  27. package/lib/{gitlab-duo-DSCMrU0m.mjs → gitlab-duo-B0qSYCa3.mjs} +1 -1
  28. package/lib/{google-CtsKkOQK.mjs → google-6cRgRmh0.mjs} +3 -3
  29. package/lib/{google-antigravity-z-5KsEci.mjs → google-antigravity-D1llOVad.mjs} +3 -3
  30. package/lib/{google-auth-ieLBaneO.mjs → google-auth-DYhqX1rJ.mjs} +5 -5
  31. package/lib/{google-gemini-cli-CAIPSl7e.mjs → google-gemini-cli-ByQUuKp9.mjs} +7 -7
  32. package/lib/{google-gemini-cli-C6NE5mWz.mjs → google-gemini-cli-CjHy6mFG.mjs} +3 -3
  33. package/lib/{google-oauth-shared-DhMllAkt.mjs → google-oauth-shared-CSwCT0Yl.mjs} +1 -1
  34. package/lib/{google-shared-B0aNCYEH.mjs → google-shared-DYjJp0mQ.mjs} +5 -5
  35. package/lib/{google-vertex-Bbd1tYNc.mjs → google-vertex-CbOvlE5j.mjs} +4 -4
  36. package/lib/{idle-iterator-DlUkEfzW.mjs → idle-iterator-DTBaEIbM.mjs} +2 -2
  37. package/lib/index.mjs +1278 -184
  38. package/lib/{kilo-ChJL54wq.mjs → kilo-cVG1aNZM.mjs} +1 -1
  39. package/lib/{kimi-C2c_Zq8A.mjs → kimi-BFfnFDhu.mjs} +4 -4
  40. package/lib/{launch-DKDH71En.mjs → launch-Uq7920ng.mjs} +7 -7
  41. package/lib/{markit-CmRfm4E2.mjs → markit-BmsfOFVh.mjs} +18 -18
  42. package/lib/{muse-code-Di1VZmB1.mjs → muse-code-CtcevJab.mjs} +1 -1
  43. package/lib/{ollama-B8ic3sEp.mjs → ollama-B5hR1P1p.mjs} +8 -8
  44. package/lib/{openai-codex-DuJNC99x.mjs → openai-codex-CxkPyvyt.mjs} +2 -2
  45. package/lib/{openai-codex-responses-BL29nh9K.mjs → openai-codex-responses-BbM3Q7nJ.mjs} +9 -9
  46. package/lib/{openai-completions-BK2f2dBv.mjs → openai-completions-CffXVOCL.mjs} +13 -13
  47. package/lib/{openai-reasoning-fallback-BdB3RCbj.mjs → openai-reasoning-fallback-DFdD1ok5.mjs} +2 -2
  48. package/lib/{openai-responses-CGQPlIIy.mjs → openai-responses-DgqOvSn_.mjs} +9 -9
  49. package/lib/{perplexity-TBjz3VMB.mjs → perplexity-JFp3knZN.mjs} +2 -2
  50. package/lib/{protobuf-aab1UGVn.mjs → protobuf-BJHNU9-E.mjs} +1 -1
  51. package/lib/{proxy-5nWqRL1f.mjs → proxy-B51IWEMt.mjs} +2 -2
  52. package/lib/{scrapers-CtQrQ5kG.mjs → scrapers-DU4u4-Co.mjs} +7 -7
  53. package/lib/{src-BwW51vA5.mjs → src-DUUqyo9y.mjs} +42 -42
  54. package/lib/{stream-B_7qN-bA.mjs → stream-DHdFrAG4.mjs} +54 -54
  55. package/lib/{stream-markup-healing-DKT1lnkW.mjs → stream-markup-healing-DlJ9abTw.mjs} +2 -2
  56. package/lib/{thinking-CiLa2LFB.mjs → thinking-D6LJxkz_.mjs} +1 -1
  57. package/lib/types/client/locales.d.ts +1 -1
  58. package/lib/types/config/settings.d.ts +8 -0
  59. package/lib/types/tools/ast-grep/adapter/index.d.ts +23 -0
  60. package/lib/types/tools/edit/adapter/index.d.ts +3 -0
  61. package/lib/types/tools/glob/adapter/index.d.ts +2 -0
  62. package/lib/types/tools/grep/adapter/index.d.ts +4 -0
  63. package/lib/types/tools/read/adapter/index.d.ts +18 -0
  64. package/lib/types/tools/write/adapter/index.d.ts +2 -0
  65. package/lib/types/web/client/ToolCardShell.d.ts +111 -0
  66. package/lib/types/web/client/labels.d.ts +36 -0
  67. package/lib/types/web/client/registerToolCards.d.ts +35 -0
  68. package/lib/types/web/client/row-utils.d.ts +177 -0
  69. package/lib/types/web/client/rows/AstEditRow.d.ts +22 -0
  70. package/lib/types/web/client/rows/FileMutationRow.d.ts +23 -0
  71. package/lib/types/web/client/rows/ReadRow.d.ts +31 -0
  72. package/lib/types/web/client/rows/SearchRow.d.ts +21 -0
  73. package/lib/types/web/client/rows/TerminalRow.d.ts +24 -0
  74. package/lib/types/web/client/rows/WriteRow.d.ts +22 -0
  75. package/lib/types/web/client/rows/image-card.d.ts +60 -0
  76. package/lib/types/web/contract.d.ts +249 -0
  77. package/lib/types/web/host/ast-edit.d.ts +10 -0
  78. package/lib/types/web/host/bash.d.ts +30 -0
  79. package/lib/types/web/host/edit.d.ts +33 -0
  80. package/lib/types/web/host/read.d.ts +48 -0
  81. package/lib/types/web/host/search.d.ts +41 -0
  82. package/lib/types/web/host/write.d.ts +13 -0
  83. package/lib/{types-PVueGi9S.mjs → types-DT9vgZ3S.mjs} +1 -1
  84. package/lib/{utils-CUPhpw9A.mjs → utils-BMmwLB0f.mjs} +2 -2
  85. package/lib/{utils-ECAwvaPQ.mjs → utils-C-Lo_JC6.mjs} +41 -41
  86. package/lib/{utils-DeWqNWV8.mjs → utils-D31VFael.mjs} +1 -1
  87. package/lib/{vision-guard-_XwsL1DF.mjs → vision-guard-BlAAqGUC.mjs} +1 -1
  88. package/lib/{xai-oauth-CXhnz0gO.mjs → xai-oauth-QPyScm4X.mjs} +1 -1
  89. package/lib/{xiaomi-psoUItal.mjs → xiaomi-CLzjxHAi.mjs} +1 -1
  90. package/lib/{zai-ApJ8HBgT.mjs → zai-wDp0g7VC.mjs} +1 -1
  91. package/lib/{zip-Kd602XNe.mjs → zip-CNtIFfyV.mjs} +7 -7
  92. package/package.json +3 -1
  93. package/presets/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import { installBunShim as __installBunShim } from "./bun-shim.mjs";
2
2
  __installBunShim();
3
3
  import { r as __exportAll } from "./fs-promises-shim-Bx0fpxuk.mjs";
4
- import { f as OAuthError } from "./error-CORgGg5a.mjs";
4
+ import { f as OAuthError } from "./error-DdCn4m1q.mjs";
5
5
  //#region node_modules/.pnpm/@oh-my-pi+pi-ai@18.1.17/node_modules/@oh-my-pi/pi-ai/src/registry/oauth/xai-oauth.ts
6
6
  /**
7
7
  * xAI OAuth endpoint discovery, identity, and billing helpers.
@@ -1,6 +1,6 @@
1
1
  import { installBunShim as __installBunShim } from "./bun-shim.mjs";
2
2
  __installBunShim();
3
- import { f as OAuthError, g as OnPromptRequiredError, m as LoginCancelledError, p as ApiKeyRequiredError } from "./error-CORgGg5a.mjs";
3
+ import { f as OAuthError, g as OnPromptRequiredError, m as LoginCancelledError, p as ApiKeyRequiredError } from "./error-DdCn4m1q.mjs";
4
4
  //#region node_modules/.pnpm/@oh-my-pi+pi-ai@18.1.17/node_modules/@oh-my-pi/pi-ai/src/registry/oauth/xiaomi.ts
5
5
  /**
6
6
  * Xiaomi MiMo login flow.
@@ -1,6 +1,6 @@
1
1
  import { installBunShim as __installBunShim } from "./bun-shim.mjs";
2
2
  __installBunShim();
3
- import { V as ProviderHttpError, f as OAuthError } from "./error-CORgGg5a.mjs";
3
+ import { V as ProviderHttpError, f as OAuthError } from "./error-DdCn4m1q.mjs";
4
4
  //#region node_modules/.pnpm/@oh-my-pi+pi-ai@18.1.17/node_modules/@oh-my-pi/pi-ai/src/registry/oauth/zai.ts
5
5
  /**
6
6
  * Z.ai / GLM OAuth flow (GLM Coding Plan · Sign in)
@@ -1,8 +1,8 @@
1
1
  import { installBunShim as __installBunShim } from "./bun-shim.mjs";
2
2
  __installBunShim();
3
- import { k as formatBytes } from "./src-BwW51vA5.mjs";
3
+ import { k as formatBytes } from "./src-DUUqyo9y.mjs";
4
4
  import { n as ToolError } from "./tool-errors-DoyxivAR.mjs";
5
- import * as path from "node:path";
5
+ import * as path$1 from "node:path";
6
6
  import * as zlib from "node:zlib";
7
7
  //#region src/tools/omp/utils/zip.ts
8
8
  const ENCODER = new TextEncoder();
@@ -581,7 +581,7 @@ function indexOfAscii(bytes, value, start) {
581
581
  }
582
582
  function normalizeOldGnuName(value, field) {
583
583
  const portable = value.replace(/\\/g, "/");
584
- if (path.posix.isAbsolute(portable)) throw new ToolError(`Invalid old-GNU ${field}`);
584
+ if (path$1.posix.isAbsolute(portable)) throw new ToolError(`Invalid old-GNU ${field}`);
585
585
  const normalized = normalizeArchiveEntryPath(portable);
586
586
  if (!normalized) throw new ToolError(`Invalid old-GNU ${field}`);
587
587
  assertTarPathString(normalized, field);
@@ -750,7 +750,7 @@ function readTarEntries(rawBytes) {
750
750
  const kind = typeFlag === "1" ? "hard link" : "symlink";
751
751
  const portableLinkName = linkName.replace(/\\/g, "/");
752
752
  assertTarPathString(portableLinkName, "link target");
753
- const targetPath = typeFlag === "1" ? normalizeArchiveEntryPath(portableLinkName) : path.posix.isAbsolute(portableLinkName) ? void 0 : normalizeArchiveLookupPath(path.posix.join(path.posix.dirname(normalizedPath), portableLinkName));
753
+ const targetPath = typeFlag === "1" ? normalizeArchiveEntryPath(portableLinkName) : path$1.posix.isAbsolute(portableLinkName) ? void 0 : normalizeArchiveLookupPath(path$1.posix.join(path$1.posix.dirname(normalizedPath), portableLinkName));
754
754
  const entry = {
755
755
  path: normalizedPath,
756
756
  isDirectory: false,
@@ -1130,13 +1130,13 @@ async function writeArchive(destPath, format, entries) {
1130
1130
  * are rejected. Returns the number of files written.
1131
1131
  */
1132
1132
  async function extractArchive(source, destDir) {
1133
- const extractRoot = path.resolve(destDir);
1133
+ const extractRoot = path$1.resolve(destDir);
1134
1134
  const entries = await readArchiveEntries(source);
1135
1135
  let count = 0;
1136
1136
  for (const [name, content] of entries) {
1137
1137
  if (name.endsWith("/")) continue;
1138
- const outputPath = path.resolve(extractRoot, name);
1139
- if (!outputPath.startsWith(extractRoot + path.sep)) throw new ToolError(`Archive entry escapes extraction dir: ${name}`);
1138
+ const outputPath = path$1.resolve(extractRoot, name);
1139
+ if (!outputPath.startsWith(extractRoot + path$1.sep)) throw new ToolError(`Archive entry escapes extraction dir: ${name}`);
1140
1140
  await Bun.write(outputPath, content);
1141
1141
  count++;
1142
1142
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@xiaoso/dsh-tool-plus",
3
3
  "description": "Oh My Pi bash runtime ported as a deepseek-harness tool plugin: persistent shell session, output minimizer, managed background jobs, command interception",
4
- "version": "0.1.7",
4
+ "version": "0.1.8-beta.2",
5
5
  "license": "MIT",
6
6
  "keywords": [
7
7
  "deepseek-harness",
@@ -118,11 +118,13 @@
118
118
  "@deepseek-ai/dsh-agent": "0.1.5-rc.1",
119
119
  "@deepseek-ai/dsh-client-connection": "0.1.5-rc.1",
120
120
  "@deepseek-ai/dsh-client-locale": "0.1.5-rc.1",
121
+ "@deepseek-ai/dsh-client-ui-chat": "0.1.5-rc.1",
121
122
  "@deepseek-ai/dsh-client-ui-primitives": "0.1.5-rc.1",
122
123
  "@deepseek-ai/dsh-client-ui-renderer": "0.1.5-rc.1",
123
124
  "@deepseek-ai/dsh-client-ui-settings": "0.1.5-rc.1",
124
125
  "@deepseek-ai/dsh-client-ui-settings-plugins": "0.1.5-rc.1",
125
126
  "@deepseek-ai/dsh-client-ui-slots": "0.1.5-rc.1",
127
+ "@deepseek-ai/dsh-client-ui-tool": "0.1.5-rc.1",
126
128
  "@deepseek-ai/dsh-fs-local": "0.1.5-rc.1",
127
129
  "@deepseek-ai/dsh-jobs": "0.1.5-rc.1",
128
130
  "@deepseek-ai/dsh-jobs-local": "0.1.5-rc.1",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xiaoso/dsh-tool-plus-presets",
3
- "version": "0.1.7",
3
+ "version": "0.1.8-beta.2",
4
4
  "description": "Agent-preset installer for dsh-tool-plus: installs the standard / PTC enhanced preset templates into a DeepSeek Harness home.",
5
5
  "license": "MIT",
6
6
  "keywords": [