@love-moon/ai-sdk 0.7.7 → 0.9.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.
Files changed (45) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/built-in-backends.d.ts +1 -0
  3. package/dist/built-in-backends.js +6 -0
  4. package/dist/context-files.d.ts +16 -0
  5. package/dist/context-files.js +86 -0
  6. package/dist/index.d.ts +4 -1
  7. package/dist/index.js +4 -1
  8. package/dist/manager/index.d.ts +1 -0
  9. package/dist/manager/index.js +1 -0
  10. package/dist/manager/install.js +29 -2
  11. package/dist/manager/manager.d.ts +5 -1
  12. package/dist/manager/manager.js +8 -0
  13. package/dist/manager/network.js +4 -2
  14. package/dist/manager/quota/dsh.d.ts +55 -0
  15. package/dist/manager/quota/dsh.js +146 -0
  16. package/dist/manager/types.d.ts +26 -1
  17. package/dist/media-adapters.d.ts +34 -0
  18. package/dist/media-adapters.js +57 -0
  19. package/dist/media-input.d.ts +21 -0
  20. package/dist/media-input.js +197 -0
  21. package/dist/providers/chat-web-session.d.ts +7 -1
  22. package/dist/providers/chat-web-session.js +12 -1
  23. package/dist/providers/claude-agent-sdk-session.d.ts +10 -1
  24. package/dist/providers/claude-agent-sdk-session.js +24 -4
  25. package/dist/providers/codex-app-server-session.d.ts +12 -1
  26. package/dist/providers/codex-app-server-session.js +49 -20
  27. package/dist/providers/codex-exec-session.d.ts +8 -3
  28. package/dist/providers/codex-exec-session.js +13 -13
  29. package/dist/providers/copilot-sdk-session.d.ts +6 -1
  30. package/dist/providers/copilot-sdk-session.js +10 -3
  31. package/dist/providers/dsh-sdk-session.d.ts +194 -0
  32. package/dist/providers/dsh-sdk-session.js +951 -0
  33. package/dist/providers/kimi-cli-session.d.ts +11 -1
  34. package/dist/providers/kimi-cli-session.js +58 -4
  35. package/dist/providers/kimi-print-session.d.ts +10 -3
  36. package/dist/providers/kimi-print-session.js +23 -53
  37. package/dist/providers/opencode-sdk-session.d.ts +6 -1
  38. package/dist/providers/opencode-sdk-session.js +11 -9
  39. package/dist/resume/dsh.d.ts +23 -0
  40. package/dist/resume/dsh.js +122 -0
  41. package/dist/resume/index.js +2 -0
  42. package/dist/session-factory.d.ts +3 -1
  43. package/dist/session-factory.js +5 -1
  44. package/dsh/cordis.yml +100 -0
  45. package/package.json +24 -3
package/dsh/cordis.yml ADDED
@@ -0,0 +1,100 @@
1
+ # Conductor-owned DeepSeek Harness runtime composition for the ai-sdk `dsh`
2
+ # backend. Launched by src/providers/dsh-sdk-session.js through
3
+ # @deepseek-ai/dsh-sdk-client (stdio JSON-RPC); stdout is reserved for
4
+ # JSON-RPC, so no console logger or terminal UI may be mounted here.
5
+ #
6
+ # Modeled on deepseek-harness's examples/jsonrpc-agent/cordis.yml (the
7
+ # upstream unattended coding-agent reference) and the Python SDK's bundled
8
+ # zero-config composition. Plugin versions are pinned in package.json; bare
9
+ # plugin names resolve from this file's directory up into the ai-sdk
10
+ # node_modules tree.
11
+ #
12
+ # Environment contract (set by DshSdkSession when spawning the runtime):
13
+ # DEEPSEEK_API_KEY required; resolved by the llm-deepseek adapter
14
+ # DEEPSEEK_BASE_URL optional API endpoint override
15
+ # DSH_CWD workspace directory for bash/fs tools
16
+ # DSH_SESSION_ROOT JSONL session persistence root
17
+ # DSH_SYSTEM_PROMPT optional persona override
18
+
19
+ # Stdio JSON-RPC server entry; without it the agent has no SDK client.
20
+ - id: sdk-jsonrpc-server
21
+ name: '@deepseek-ai/dsh-sdk-jsonrpc-server'
22
+
23
+ # Stock DeepSeek adapter. Resolves DEEPSEEK_API_KEY / DEEPSEEK_BASE_URL from
24
+ # the launching environment; nothing secret is inlined here.
25
+ - id: llm-deepseek
26
+ name: '@deepseek-ai/dsh-llm-deepseek'
27
+
28
+ # Managed child-process groups for the bash executor.
29
+ - id: subprocess
30
+ name: '@deepseek-ai/dsh-subprocess-local'
31
+
32
+ - id: bash
33
+ name: '@deepseek-ai/dsh-bash-local'
34
+ config:
35
+ cwd: !!js process.env.DSH_CWD ?? process.cwd()
36
+ timeoutMs: 60000
37
+
38
+ # Agent spine: agent loop, system prompt, core coding tools.
39
+ - id: agent-spine
40
+ name: '@deepseek-ai/dsh-agent-spine-demo'
41
+ config:
42
+ persona: !!js process.env.DSH_SYSTEM_PROMPT ?? 'You are a coding agent.'
43
+ workspaceContext:
44
+ maxBytes: 65536
45
+
46
+ # JSONL persistence. Compression stays off so the resume dispatcher
47
+ # (src/resume/dsh.js) can read the header line back for cwd recovery.
48
+ - id: sessions
49
+ name: '@deepseek-ai/dsh-session-persistence-jsonl'
50
+ config:
51
+ root: !!js process.env.DSH_SESSION_ROOT ?? './.sessions'
52
+ compression: none
53
+
54
+ - id: session-checkpoints
55
+ name: '@deepseek-ai/dsh-session-checkpoint-policy'
56
+
57
+ # Subagent delegation (in-process spawn provider).
58
+ - id: subagent
59
+ name: '@deepseek-ai/dsh-subagent'
60
+
61
+ - id: subagent-spawn-in-process
62
+ name: '@deepseek-ai/dsh-subagent-spawn-in-process'
63
+ config:
64
+ providerName: spawn
65
+
66
+ - id: tool-subagent
67
+ name: '@deepseek-ai/dsh-tool-subagent'
68
+ config:
69
+ provider: spawn
70
+ toolName: subagent
71
+ enableRunInBackground: false
72
+
73
+ - id: tool-todo
74
+ name: '@deepseek-ai/dsh-tool-todo'
75
+ config:
76
+ allowParallelInProgress: true
77
+
78
+ # Filesystem tools.
79
+ - id: fs-local
80
+ name: '@deepseek-ai/dsh-fs-local'
81
+ config:
82
+ cwd: !!js process.env.DSH_CWD ?? process.cwd()
83
+
84
+ - id: fs-observation-policy
85
+ name: '@deepseek-ai/dsh-fs-observation-policy'
86
+
87
+ - id: tool-fs
88
+ name: '@deepseek-ai/dsh-tool-fs'
89
+
90
+ # Token accounting + context compaction.
91
+ - id: token-meter
92
+ name: '@deepseek-ai/dsh-token-meter'
93
+
94
+ - id: compaction-basic
95
+ name: '@deepseek-ai/dsh-compaction-basic'
96
+ config:
97
+ thresholdRatio: 0.8
98
+ retainRatio: 0.16
99
+ maxTokens: 8192
100
+ compactionRetries: 1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@love-moon/ai-sdk",
3
- "version": "0.7.7",
3
+ "version": "0.9.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/lovemoon-ai/conductor.git"
@@ -10,6 +10,7 @@
10
10
  "types": "dist/index.d.ts",
11
11
  "files": [
12
12
  "dist",
13
+ "dsh",
13
14
  "CHANGELOG.md"
14
15
  ],
15
16
  "publishConfig": {
@@ -25,6 +26,26 @@
25
26
  },
26
27
  "dependencies": {
27
28
  "@anthropic-ai/claude-agent-sdk": "^0.3.173",
29
+ "@deepseek-ai/dsh-agent-spine-demo": "0.1.0-rc.6",
30
+ "@deepseek-ai/dsh-bash-local": "0.1.0-rc.6",
31
+ "@deepseek-ai/dsh-compaction-basic": "0.1.0-rc.6",
32
+ "@deepseek-ai/dsh-fs-local": "0.1.0-rc.6",
33
+ "@deepseek-ai/dsh-fs-observation-policy": "0.1.0-rc.6",
34
+ "@deepseek-ai/dsh-llm-deepseek": "0.1.0-rc.6",
35
+ "@deepseek-ai/dsh-sdk-client": "0.1.0-rc.6",
36
+ "@deepseek-ai/dsh-sdk-jsonrpc-demo": "0.1.0-rc.6",
37
+ "@deepseek-ai/dsh-sdk-jsonrpc-server": "0.1.0-rc.6",
38
+ "@deepseek-ai/dsh-sdk-protocol": "0.1.0-rc.6",
39
+ "@deepseek-ai/dsh-session-checkpoint-policy": "0.1.0-rc.6",
40
+ "@deepseek-ai/dsh-session-persistence-jsonl": "0.1.0-rc.6",
41
+ "@deepseek-ai/dsh-subagent": "0.1.0-rc.6",
42
+ "@deepseek-ai/dsh-subagent-in-process-driver": "0.1.0-rc.6",
43
+ "@deepseek-ai/dsh-subagent-spawn-in-process": "0.1.0-rc.6",
44
+ "@deepseek-ai/dsh-subprocess-local": "0.1.0-rc.6",
45
+ "@deepseek-ai/dsh-token-meter": "0.1.0-rc.6",
46
+ "@deepseek-ai/dsh-tool-fs": "0.1.0-rc.6",
47
+ "@deepseek-ai/dsh-tool-subagent": "0.1.0-rc.6",
48
+ "@deepseek-ai/dsh-tool-todo": "0.1.0-rc.6",
28
49
  "@github/copilot-sdk": "^0.3.0",
29
50
  "@opencode-ai/sdk": "^1.2.25",
30
51
  "js-yaml": "^4.1.1",
@@ -32,12 +53,12 @@
32
53
  "zod": "^4.1.5"
33
54
  },
34
55
  "optionalDependencies": {
35
- "@love-moon/chat-web": "^0.7.7"
56
+ "@love-moon/chat-web": "^0.9.0"
36
57
  },
37
58
  "devDependencies": {
38
59
  "@types/node": "^22.10.2",
39
60
  "tsx": "^4.20.6",
40
61
  "typescript": "^5.6.3"
41
62
  },
42
- "gitCommitId": "26b2dbb"
63
+ "gitCommitId": "606e5a6"
43
64
  }