dsh-deja 0.18.0 → 0.18.1
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/index.js +9 -7
- package/package.json +1 -4
package/index.js
CHANGED
|
@@ -14,13 +14,13 @@ const require = createRequire(import.meta.url);
|
|
|
14
14
|
// missing peer takes the whole profile down with it, so both imports degrade:
|
|
15
15
|
// without them the command and automatic recall still work, only the
|
|
16
16
|
// model-facing tools are skipped.
|
|
17
|
+
// The tool registry lives in the host. A plugin that throws on a missing peer
|
|
18
|
+
// takes the whole profile down with it, so this degrades: without dsh-tools the
|
|
19
|
+
// command and automatic recall still work, only the model-facing tools are
|
|
20
|
+
// skipped.
|
|
17
21
|
let defineTool = null;
|
|
18
|
-
let z = null;
|
|
19
|
-
let createUserMessage = null;
|
|
20
22
|
try {
|
|
21
23
|
({ defineTool } = await import("@deepseek-ai/dsh-tools"));
|
|
22
|
-
z = (await import("@deepseek-ai/schemastery")).default;
|
|
23
|
-
({ createUserMessage } = await import("@deepseek-ai/dsh-llm"));
|
|
24
24
|
} catch {}
|
|
25
25
|
|
|
26
26
|
const PLATFORM = process.platform === "win32" ? "windows" : process.platform;
|
|
@@ -59,12 +59,14 @@ function run(args, input) {
|
|
|
59
59
|
const NOTHING = "Nothing in this machine's history matches that.";
|
|
60
60
|
|
|
61
61
|
function tools(ctx) {
|
|
62
|
-
if (!defineTool
|
|
62
|
+
if (!defineTool) return;
|
|
63
63
|
|
|
64
64
|
// Every tool here answers with the text deja printed, so one output
|
|
65
|
-
// declaration serves all three.
|
|
65
|
+
// declaration serves all three. The schema is plain JSON Schema — a
|
|
66
|
+
// schemastery instance is rejected as "schema must be a value schema object",
|
|
67
|
+
// because the host validates that this is an ordinary JSON record.
|
|
66
68
|
const TEXT_OUTPUT = {
|
|
67
|
-
schema:
|
|
69
|
+
schema: { type: "string" },
|
|
68
70
|
render: (_args, value) => [{ type: "text", text: String(value) }],
|
|
69
71
|
};
|
|
70
72
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-deja",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.1",
|
|
4
4
|
"description": "Brings the session history of nineteen other coding agents into DeepSeek Harness: recall, session digest and per-file history tools over a local index, plus optional automatic recall before each step.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -44,8 +44,5 @@
|
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@vshulcz/deja-vu": "0.18.0"
|
|
47
|
-
},
|
|
48
|
-
"peerDependencies": {
|
|
49
|
-
"@deepseek-ai/dsh-tools": "^0.1.0"
|
|
50
47
|
}
|
|
51
48
|
}
|