@xiaoso/dsh-tool-plus 0.1.0-beta.5 → 0.1.0-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +1 -1
- package/README.md +2 -2
- package/THIRD_PARTY_NOTICES.md +42 -42
- package/lib/{abort-dIkZBV7Q.mjs → abort-CsjZitYv.mjs} +1 -1
- package/lib/{amazon-bedrock-WQhvjHYu.mjs → amazon-bedrock-CfNIDi5k.mjs} +7 -7
- package/lib/{anthropic-CJCauvYz.mjs → anthropic-BVfZdnMp.mjs} +12 -12
- package/lib/{anthropic-tTntD8BD.mjs → anthropic-DGXmmg43.mjs} +2 -2
- package/lib/{api-key-login-BzqNdM2y.mjs → api-key-login-BikQAfD-.mjs} +1 -1
- package/lib/{aws-credentials-CXryMobh.mjs → aws-credentials-DrssNMn_.mjs} +4 -4
- package/lib/{azure-openai-responses-DuukbD0F.mjs → azure-openai-responses-C-5q-5K2.mjs} +8 -8
- package/lib/browser-render-z6b8Ljo9.mjs +183 -0
- package/lib/{bundled-references-Cavaffah.mjs → bundled-references-D71z7_T3.mjs} +2 -2
- package/lib/{callback-server-CQ5Jo8F-.mjs → callback-server-Di6C4RqI.mjs} +1 -1
- package/lib/client.js +613 -107
- package/lib/{cursor-B6TUEmgP.mjs → cursor-CQQtygwl.mjs} +1 -1
- package/lib/{cursor-DkSX2h3H.mjs → cursor-DXJxwdcg.mjs} +7 -7
- package/lib/{cursor-aJrXeYCb.mjs → cursor-Hr5Zw1gt.mjs} +3 -3
- package/lib/{device-code-DBo3B5nh.mjs → device-code-wZUbgPdB.mjs} +1 -1
- package/lib/{devin-BHZZyMhO.mjs → devin-CF6UhCFw.mjs} +2 -2
- package/lib/{devin-BK7DHeca.mjs → devin-DXJoDlW2.mjs} +1 -1
- package/lib/{devin-vNZTNUON.mjs → devin-P37gURs_.mjs} +5 -5
- package/lib/{dom-DGdYAVTv.mjs → dom-CawWi8fa.mjs} +14 -1
- package/lib/{error-Dd8DIqs-.mjs → error-DoHuatWw.mjs} +1 -1
- package/lib/{event-stream-BbFZJy-z.mjs → event-stream-C-FmBYUt.mjs} +1 -1
- package/lib/{github-copilot-CYkjeTi3.mjs → github-copilot-C2dTonBX.mjs} +3 -3
- package/lib/{github-copilot-B1yiyVRh.mjs → github-copilot-qETlj_bD.mjs} +1 -1
- package/lib/{gitlab-duo-CM7Ref1H.mjs → gitlab-duo-FQZiFRQe.mjs} +3 -3
- package/lib/{gitlab-duo-workflow-BGAF6JDw.mjs → gitlab-duo-workflow-DLTabzOy.mjs} +2 -2
- package/lib/{google-BS4T25Pn.mjs → google-BilwFSzx.mjs} +3 -3
- package/lib/{google-antigravity-DGmwC2KV.mjs → google-antigravity-BfBiINdu.mjs} +2 -2
- package/lib/{google-auth-B6gjsZvg.mjs → google-auth-CWlKXJ-H.mjs} +3 -3
- package/lib/{google-gemini-cli-Dsztq0N5.mjs → google-gemini-cli-CB89ljNz.mjs} +3 -3
- package/lib/{google-gemini-cli-Cqds_Q5T.mjs → google-gemini-cli-CygFcR6N.mjs} +8 -8
- package/lib/{google-oauth-shared-CuEHaDDj.mjs → google-oauth-shared-Cn82h1o2.mjs} +2 -2
- package/lib/{google-shared-Dr-VG-ap.mjs → google-shared-CF1JrqTM.mjs} +6 -6
- package/lib/{google-vertex-BDN2tLaD.mjs → google-vertex-DgMhhFw8.mjs} +5 -5
- package/lib/{identity-Da1GPU9a.mjs → identity-C0SPVyIZ.mjs} +1 -1
- package/lib/{idle-iterator-DUjKQEGT.mjs → idle-iterator-HzbbfXP4.mjs} +2 -2
- package/lib/index.mjs +310 -29
- package/lib/{kimi-Dh0pv3WZ.mjs → kimi-DHDO6Fde.mjs} +3 -3
- package/lib/launch-DwpE70Pv.mjs +148 -0
- package/lib/{markit-BL3cH47U.mjs → markit-B9exZ0ZV.mjs} +1 -1
- package/lib/{minimax-code-Uq8Qu9LW.mjs → minimax-code-vAhEXhev.mjs} +1 -1
- package/lib/{models-SGASygJ3.mjs → models-Cp3PzU3l.mjs} +1 -1
- package/lib/{ollama-DPzBmq89.mjs → ollama-TrkXTNqE.mjs} +8 -8
- package/lib/{openai-codex-Ch8CkT3p.mjs → openai-codex-CrjHtSH4.mjs} +3 -3
- package/lib/{openai-codex-responses-pejZgdZo.mjs → openai-codex-responses-C4uMpWNy.mjs} +10 -10
- package/lib/{openai-completions-DIf361kF.mjs → openai-completions-1ydXm5vF.mjs} +13 -13
- package/lib/{openai-reasoning-fallback-Nj6yB2rY.mjs → openai-reasoning-fallback-CigKCyzc.mjs} +2 -2
- package/lib/{openai-responses-Db_a-U4-.mjs → openai-responses-CN79gRGQ.mjs} +10 -10
- package/lib/{opencode-Rq_Q2vAO.mjs → opencode-CEGlimzL.mjs} +1 -1
- package/lib/{perplexity-C4iLVMUj.mjs → perplexity-BLJN-8dM.mjs} +2 -2
- package/lib/{proxy-pM_NIv-H.mjs → proxy-XOYi58TM.mjs} +1 -1
- package/lib/readability-Cpm-ocau.mjs +455 -0
- package/lib/{scrapers-1FTlHNQV.mjs → scrapers-DrSYgPyf.mjs} +11 -10
- package/lib/{src-BgpusnsB.mjs → src-D_e1qMwi.mjs} +5 -1
- package/lib/{stream-CRtexYLe.mjs → stream-DveNFWSN.mjs} +56 -56
- package/lib/{stream-markup-healing-KMkiAA00.mjs → stream-markup-healing-C9eC7Gf8.mjs} +3 -3
- package/lib/tool-errors-DoyxivAR.mjs +47 -0
- package/lib/types-BUO0JXO-.mjs +251 -0
- package/lib/{utils-D2YknRk4.mjs → utils-B-mTYQBc.mjs} +1 -1
- package/lib/{utils-C616y7eF.mjs → utils-DSEEKy3G.mjs} +28 -268
- package/lib/{utils-Cp76gCyk.mjs → utils-fnV2zzp3.mjs} +3 -3
- package/lib/{vision-guard-01qSwFpf.mjs → vision-guard-BsvOWmfB.mjs} +2 -2
- package/lib/{wafer-CgtPHerf.mjs → wafer-Dpy7tL3l.mjs} +1 -1
- package/lib/{xai-oauth-Buk8XVvM.mjs → xai-oauth-BkPNQS-q.mjs} +2 -2
- package/lib/{xiaomi-D2qT5cAC.mjs → xiaomi-CG3TsYRz.mjs} +1 -1
- package/lib/{zai-C59YnomG.mjs → zai--cewobzN.mjs} +2 -2
- package/lib/{zip-Cg9ANN_U.mjs → zip-CqKW2-TK.mjs} +3 -46
- package/package.json +3 -1
- package/presets/package.json +1 -1
|
@@ -1,52 +1,9 @@
|
|
|
1
1
|
import { installBunShim as __installBunShim } from "./bun-shim.mjs";
|
|
2
2
|
__installBunShim();
|
|
3
|
-
import { j as formatBytes } from "./src-
|
|
3
|
+
import { j as formatBytes } from "./src-D_e1qMwi.mjs";
|
|
4
|
+
import { n as ToolError } from "./tool-errors-DoyxivAR.mjs";
|
|
4
5
|
import * as path from "node:path";
|
|
5
6
|
import * as zlib from "node:zlib";
|
|
6
|
-
//#region src/tools/omp/tools/tool-errors.ts
|
|
7
|
-
/**
|
|
8
|
-
* Standardized error types for tool execution.
|
|
9
|
-
*
|
|
10
|
-
* Tools should throw these instead of returning error text.
|
|
11
|
-
* The agent loop catches and renders them appropriately.
|
|
12
|
-
*/
|
|
13
|
-
/**
|
|
14
|
-
* Base error for tool execution failures.
|
|
15
|
-
* Override render() for custom LLM-facing formatting.
|
|
16
|
-
*/
|
|
17
|
-
var ToolError = class extends Error {
|
|
18
|
-
context;
|
|
19
|
-
constructor(message, context) {
|
|
20
|
-
super(message);
|
|
21
|
-
this.context = context;
|
|
22
|
-
this.name = "ToolError";
|
|
23
|
-
}
|
|
24
|
-
/** Render error for LLM consumption. Override for custom formatting. */
|
|
25
|
-
render() {
|
|
26
|
-
return this.message;
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* Error thrown when a tool operation is aborted (e.g., via AbortSignal).
|
|
31
|
-
*/
|
|
32
|
-
var ToolAbortError = class ToolAbortError extends Error {
|
|
33
|
-
static MESSAGE = "Operation aborted";
|
|
34
|
-
constructor(message = ToolAbortError.MESSAGE, options) {
|
|
35
|
-
super(message, options);
|
|
36
|
-
this.name = "ToolAbortError";
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
/**
|
|
40
|
-
* Throw ToolAbortError if the signal is aborted.
|
|
41
|
-
* Use this instead of signal?.throwIfAborted() to get consistent error types.
|
|
42
|
-
*/
|
|
43
|
-
function throwIfAborted(signal) {
|
|
44
|
-
if (signal?.aborted) {
|
|
45
|
-
const reason = signal.reason instanceof Error ? signal.reason : void 0;
|
|
46
|
-
throw reason instanceof ToolAbortError ? reason : new ToolAbortError(void 0, { cause: signal.reason });
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
//#endregion
|
|
50
7
|
//#region src/tools/omp/utils/zip.ts
|
|
51
8
|
const ENCODER = new TextEncoder();
|
|
52
9
|
const UTF8_DECODER = new TextDecoder();
|
|
@@ -1313,4 +1270,4 @@ function extractZipMember(bytes, storage, uncompressedSize) {
|
|
|
1313
1270
|
return decodeZipMember(readMemoryRange(bytes, dataStart, dataStart + storage.compressedSize), storage.compression, uncompressedSize);
|
|
1314
1271
|
}
|
|
1315
1272
|
//#endregion
|
|
1316
|
-
export { openArchive as a, sniffArchiveFormat as c, writeArchive as d,
|
|
1273
|
+
export { openArchive as a, sniffArchiveFormat as c, writeArchive as d, listArchiveRoot as i, unzip as l, extractArchive as n, parseArchivePathCandidates as o, formatArchiveEntryLines as r, readArchiveEntries as s, archiveFormatFromPath as t, unzipText as u };
|
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.0-beta.
|
|
4
|
+
"version": "0.1.0-beta.7",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"deepseek-harness",
|
|
@@ -83,6 +83,7 @@
|
|
|
83
83
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
84
84
|
"@deepseek-ai/dsh-agent": "^0.1.1-rc.2",
|
|
85
85
|
"@deepseek-ai/dsh-attachment": "^0.1.1-rc.2",
|
|
86
|
+
"@deepseek-ai/dsh-client-connection": "^0.1.1-rc.2",
|
|
86
87
|
"@deepseek-ai/dsh-fs": "^0.1.1-rc.2",
|
|
87
88
|
"@deepseek-ai/dsh-jobs": "^0.1.1-rc.2",
|
|
88
89
|
"@deepseek-ai/dsh-llm": "^0.1.1-rc.2",
|
|
@@ -107,6 +108,7 @@
|
|
|
107
108
|
"@oh-my-pi/pi-tui": "17.3.5",
|
|
108
109
|
"@oh-my-pi/pi-utils": "17.3.5",
|
|
109
110
|
"json5": "^2.2.3",
|
|
111
|
+
"puppeteer-core": "^25.3.0",
|
|
110
112
|
"yaml": "^2.9.0"
|
|
111
113
|
},
|
|
112
114
|
"devDependencies": {
|
package/presets/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xiaoso/dsh-tool-plus-presets",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.7",
|
|
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": [
|