@1outres/dsh-plugin-claude-subscription 0.3.0 → 0.5.0

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.
@@ -0,0 +1,33 @@
1
+ // src/standalone/inert-mcp.ts
2
+ import { readFileSync } from "node:fs";
3
+ import { createInterface } from "node:readline";
4
+ var DENIAL = "Denied: native tools are inert; only DSH runs tools.";
5
+ function resultFor(method, manifest) {
6
+ switch (method) {
7
+ case "initialize":
8
+ return {
9
+ protocolVersion: "2024-11-05",
10
+ capabilities: { tools: {} },
11
+ serverInfo: { name: "dsh-inert-inventory", version: "1" }
12
+ };
13
+ case "tools/list":
14
+ return { tools: manifest };
15
+ case "tools/call":
16
+ return { isError: true, content: [{ type: "text", text: DENIAL }] };
17
+ default:
18
+ return {};
19
+ }
20
+ }
21
+ async function main(manifestPath2) {
22
+ const manifest = JSON.parse(readFileSync(manifestPath2, "utf8"));
23
+ for await (const line of createInterface({ input: process.stdin })) {
24
+ const request = JSON.parse(line);
25
+ if (request.id === void 0) continue;
26
+ const answer = { jsonrpc: "2.0", id: request.id, result: resultFor(request.method, manifest) };
27
+ process.stdout.write(`${JSON.stringify(answer)}
28
+ `);
29
+ }
30
+ }
31
+ var manifestPath = process.argv[2];
32
+ if (manifestPath === void 0) throw new Error("usage: inert-mcp <manifest path>");
33
+ await main(manifestPath);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@1outres/dsh-plugin-claude-subscription",
3
- "version": "0.3.0",
4
- "description": "Use Claude models in DeepSeek Harness through your own claude login, by way of the Claude Agent SDK.",
3
+ "version": "0.5.0",
4
+ "description": "Use your own Claude subscription in DeepSeek Harness through the official Claude Code CLI. Unofficial; not affiliated with Anthropic.",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/1outres/my-dsh-plugins.git",
@@ -20,9 +20,8 @@
20
20
  "keywords": [
21
21
  "dsh",
22
22
  "dsh-plugin",
23
- "llm-provider",
24
- "claude",
25
- "deepseek-harness"
23
+ "deepseek-harness",
24
+ "llm-provider"
26
25
  ],
27
26
  "license": "MIT",
28
27
  "publishConfig": {
@@ -33,17 +32,15 @@
33
32
  "node": ">=22"
34
33
  },
35
34
  "dependencies": {
36
- "@anthropic-ai/claude-agent-sdk": "0.3.318"
35
+ "@deepseek-ai/schemastery": "~3.18.5"
37
36
  },
38
37
  "peerDependencies": {
39
- "@deepseek-ai/cordis": "~4.0.5",
40
- "@deepseek-ai/dsh-attachment": ">=0.2.1-rc.5 <0.3.0",
41
- "@deepseek-ai/dsh-llm": ">=0.2.1-rc.5 <0.3.0"
38
+ "@deepseek-ai/cordis": "~4.0.5"
42
39
  },
43
40
  "devDependencies": {
44
41
  "@deepseek-ai/dsh-attachment": "0.2.1-rc.5",
45
- "@deepseek-ai/dsh-brand": "0.2.1-rc.5",
46
- "@deepseek-ai/dsh-llm": "0.2.1-rc.5"
42
+ "@deepseek-ai/dsh-llm": "0.2.1-rc.5",
43
+ "@deepseek-ai/dsh-subprocess": "0.2.1-rc.5"
47
44
  },
48
45
  "dsh": {
49
46
  "bundle": {
@@ -53,6 +50,6 @@
53
50
  }
54
51
  },
55
52
  "scripts": {
56
- "test:contract": "vitest run --config test/contract/vitest.config.ts"
53
+ "eval": "node evals/run-all.mjs"
57
54
  }
58
55
  }