dsh-loop-engine 0.1.5-rc2 → 0.1.5-rc4

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 (54) hide show
  1. package/README.md +44 -177
  2. package/README.zh.md +48 -100
  3. package/lib/client.js +887 -266
  4. package/lib/index.js +2212 -914
  5. package/lib/invariant.js +43 -45
  6. package/lib/types/agent-preset-ids.d.ts +303 -0
  7. package/lib/types/client/LoopEngineBadge.d.ts +44 -17
  8. package/lib/types/client/LoopEngineComposerSelect.d.ts +79 -13
  9. package/lib/types/client/LoopEngineSection.d.ts +5 -4
  10. package/lib/types/client/locales.d.ts +133 -7
  11. package/lib/types/client/reload.d.ts +135 -0
  12. package/lib/types/client/session-engine.d.ts +474 -0
  13. package/lib/types/client/store.d.ts +1 -1
  14. package/lib/types/client/turn-status.d.ts +112 -10
  15. package/lib/types/client/use-session-engine.d.ts +66 -0
  16. package/lib/types/commands.d.ts +11 -3
  17. package/lib/types/driver-core/host-servers.d.ts +106 -0
  18. package/lib/types/driver-core/hosted-engine-runtime.d.ts +190 -0
  19. package/lib/types/driver-core/hosted-tool-vocabulary.d.ts +72 -0
  20. package/lib/types/driver-core/model-handover.d.ts +116 -0
  21. package/lib/types/driver-core/ownership.d.ts +6 -5
  22. package/lib/types/driver-core/prompt.d.ts +32 -0
  23. package/lib/types/driver-core/session-lifetime.d.ts +62 -0
  24. package/lib/types/driver-core/session-model.d.ts +82 -0
  25. package/lib/types/engine-claude/agent.d.ts +23 -3
  26. package/lib/types/engine-claude/loop.d.ts +16 -15
  27. package/lib/types/engine-codex/agent.d.ts +22 -3
  28. package/lib/types/engine-codex/appserver/client.d.ts +15 -2
  29. package/lib/types/engine-codex/loop.d.ts +13 -15
  30. package/lib/types/engine-codex/model-handover.d.ts +44 -0
  31. package/lib/types/engine-kimi/acp/client.d.ts +10 -0
  32. package/lib/types/engine-kimi/agent.d.ts +19 -2
  33. package/lib/types/engine-kimi/commands.d.ts +18 -14
  34. package/lib/types/engine-kimi/loop.d.ts +14 -16
  35. package/lib/types/engine-kimi/model-handover.d.ts +32 -0
  36. package/lib/types/engine-kimi/process.d.ts +2 -2
  37. package/lib/types/engine-kimi/types.d.ts +1 -1
  38. package/lib/types/engine-of-session.d.ts +97 -0
  39. package/lib/types/engine-pi/agent.d.ts +25 -23
  40. package/lib/types/engine-pi/loop.d.ts +13 -23
  41. package/lib/types/engine-pi/model-handover.d.ts +35 -0
  42. package/lib/types/engine-pi/types.d.ts +2 -2
  43. package/lib/types/engine-remote.d.ts +192 -0
  44. package/lib/types/engine-surface.d.ts +36 -0
  45. package/lib/types/index.d.ts +51 -50
  46. package/lib/types/invariant.d.ts +8 -5
  47. package/lib/types/model-selection-reset.d.ts +271 -0
  48. package/lib/types/patch-manager.d.ts +57 -39
  49. package/lib/types/preset.d.ts +39 -26
  50. package/lib/types/provider-route.d.ts +83 -36
  51. package/lib/types/router-loop.d.ts +406 -0
  52. package/lib/types/session-engine-store.d.ts +138 -0
  53. package/lib/types/settings.d.ts +12 -11
  54. package/package.json +109 -104
package/package.json CHANGED
@@ -1,104 +1,109 @@
1
- {
2
- "name": "dsh-loop-engine",
3
- "description": "Web-switchable agent loop engine selection for the DeepSeek Harness - out-of-tree plugin (Claude Code / Codex / Pi / Kimi Code drivers) maintained by @kuun993, zero main-repo changes",
4
- "version": "0.1.5-rc2",
5
- "publishConfig": {
6
- "access": "public"
7
- },
8
- "repository": "github:kuun993/dsh-loop-engine",
9
- "type": "module",
10
- "main": "lib/index.js",
11
- "types": "lib/types/index.d.ts",
12
- "exports": {
13
- ".": {
14
- "types": "./lib/types/index.d.ts",
15
- "default": "./lib/index.js"
16
- },
17
- "./invariant": {
18
- "types": "./lib/types/invariant.d.ts",
19
- "default": "./lib/invariant.js"
20
- },
21
- "./client": {
22
- "types": "./lib/types/client/index.d.ts",
23
- "default": "./lib/client.js"
24
- },
25
- "./src/*": "./src/*",
26
- "./package.json": "./package.json"
27
- },
28
- "files": [
29
- "lib/index.js",
30
- "lib/invariant.js",
31
- "lib/client.js",
32
- "lib/types/**/*.d.ts",
33
- "cordis.patch.yml"
34
- ],
35
- "license": "MIT",
36
- "scripts": {
37
- "build": "node build.mjs",
38
- "typecheck": "tsc -p tsconfig.build.json --noEmit",
39
- "test": "vitest run",
40
- "test:coverage": "vitest run --coverage"
41
- },
42
- "dsh": {
43
- "bundle": {
44
- "patch": "./cordis.patch.yml"
45
- },
46
- "client": {
47
- "inject": [
48
- "@deepseek-ai/dsh-client-locale",
49
- "@deepseek-ai/dsh-client-ui-settings",
50
- "@deepseek-ai/dsh-api-remotes"
51
- ],
52
- "platform": "web",
53
- "external": [
54
- "@deepseek-ai/dsh-client-locale/client",
55
- "@deepseek-ai/dsh-client-store",
56
- "@deepseek-ai/dsh-client-ui-settings/client",
57
- "@deepseek-ai/dsh-api-remotes/client",
58
- "@deepseek-ai/dsh-settings/types"
59
- ]
60
- }
61
- },
62
- "dependencies": {
63
- "@anthropic-ai/claude-agent-sdk": "0.3.220",
64
- "@anthropic-ai/sdk": "0.93.0",
65
- "@deepseek-ai/schemastery": "3.18.1",
66
- "@earendil-works/pi-coding-agent": "0.84.3",
67
- "@openai/codex": "0.149.1"
68
- },
69
- "peerDependencies": {
70
- "@deepseek-ai/cordis": "^4.0.1",
71
- "@deepseek-ai/dsh-agent": "0.1.5-rc.1",
72
- "@deepseek-ai/dsh-invariants": "0.1.5-rc.1",
73
- "@deepseek-ai/dsh-llm": "0.1.5-rc.1",
74
- "@deepseek-ai/dsh-scope": "0.1.5-rc.1",
75
- "@deepseek-ai/dsh-session": "0.1.5-rc.1",
76
- "@deepseek-ai/dsh-session-persistence": "0.1.5-rc.1",
77
- "@deepseek-ai/dsh-settings": "0.1.5-rc.1",
78
- "@deepseek-ai/dsh-subprocess": "0.1.5-rc.1",
79
- "@deepseek-ai/dsh-timeout": "0.1.5-rc.1"
80
- },
81
- "devDependencies": {
82
- "@deepseek-ai/dsh-attachment": "0.1.5-rc.1",
83
- "@deepseek-ai/dsh-client-locale": "0.1.5-rc.1",
84
- "@deepseek-ai/dsh-client-store": "0.1.5-rc.1",
85
- "@deepseek-ai/dsh-client-ui-renderer": "0.1.5-rc.1",
86
- "@deepseek-ai/dsh-client-ui-conversation": "0.1.5-rc.1",
87
- "@deepseek-ai/dsh-client-ui-primitives": "0.1.5-rc.1",
88
- "@deepseek-ai/dsh-client-ui-settings": "0.1.5-rc.1",
89
- "@deepseek-ai/dsh-client-ui-slots": "0.1.5-rc.1",
90
- "@deepseek-ai/dsh-home-paths": "0.1.5-rc.1",
91
- "@deepseek-ai/dsh-session-persistence-jsonl": "0.1.5-rc.1",
92
- "@deepseek-ai/dsh-subprocess-local": "0.1.5-rc.1",
93
- "@deepseek-ai/dsh-system-prompt": "0.1.5-rc.1",
94
- "@types/node": "^22.20.0",
95
- "@types/react": "^19.0.0",
96
- "@vitest/coverage-v8": "^4.1.8",
97
- "esbuild": "^0.28.2",
98
- "tsx": "^4.22.4",
99
- "typescript": "^6.0.3",
100
- "vite": "^7.0.0",
101
- "vite-tsconfig-paths": "^6.1.1",
102
- "vitest": "^4.1.8"
103
- }
104
- }
1
+ {
2
+ "name": "dsh-loop-engine",
3
+ "description": "Web-switchable agent loop engine selection for the DeepSeek Harness - out-of-tree plugin (Claude Code / Codex / Pi / Kimi Code drivers) maintained by @kuun993, zero main-repo changes",
4
+ "version": "0.1.5-rc4",
5
+ "publishConfig": {
6
+ "access": "public"
7
+ },
8
+ "repository": "github:kuun993/dsh-loop-engine",
9
+ "type": "module",
10
+ "main": "lib/index.js",
11
+ "types": "lib/types/index.d.ts",
12
+ "exports": {
13
+ ".": {
14
+ "types": "./lib/types/index.d.ts",
15
+ "default": "./lib/index.js"
16
+ },
17
+ "./invariant": {
18
+ "types": "./lib/types/invariant.d.ts",
19
+ "default": "./lib/invariant.js"
20
+ },
21
+ "./client": {
22
+ "types": "./lib/types/client/index.d.ts",
23
+ "default": "./lib/client.js"
24
+ },
25
+ "./src/*": "./src/*",
26
+ "./package.json": "./package.json"
27
+ },
28
+ "files": [
29
+ "lib/index.js",
30
+ "lib/invariant.js",
31
+ "lib/client.js",
32
+ "lib/types/**/*.d.ts",
33
+ "cordis.patch.yml"
34
+ ],
35
+ "license": "MIT",
36
+ "scripts": {
37
+ "build": "node build.mjs",
38
+ "typecheck": "tsc -p tsconfig.build.json --noEmit",
39
+ "test": "vitest run",
40
+ "test:coverage": "vitest run --coverage"
41
+ },
42
+ "dsh": {
43
+ "bundle": {
44
+ "patch": "./cordis.patch.yml"
45
+ },
46
+ "client": {
47
+ "inject": [
48
+ "@deepseek-ai/dsh-client-locale",
49
+ "@deepseek-ai/dsh-client-ui-settings",
50
+ "@deepseek-ai/dsh-api-remotes",
51
+ "@deepseek-ai/dsh-api-session-controller"
52
+ ],
53
+ "platform": "web",
54
+ "external": [
55
+ "@deepseek-ai/dsh-client-locale/client",
56
+ "@deepseek-ai/dsh-client-store",
57
+ "@deepseek-ai/dsh-client-ui-settings/client",
58
+ "@deepseek-ai/dsh-api-remotes/client",
59
+ "@deepseek-ai/dsh-settings/types"
60
+ ]
61
+ }
62
+ },
63
+ "dependencies": {
64
+ "@anthropic-ai/claude-agent-sdk": "0.3.220",
65
+ "@anthropic-ai/sdk": "0.93.0",
66
+ "@deepseek-ai/schemastery": "3.18.1",
67
+ "@earendil-works/pi-coding-agent": "0.84.3",
68
+ "@openai/codex": "0.149.1"
69
+ },
70
+ "peerDependencies": {
71
+ "@deepseek-ai/cordis": "^4.0.1",
72
+ "@deepseek-ai/dsh-agent": "0.1.5-rc.2",
73
+ "@deepseek-ai/dsh-agent-loop": "0.1.5-rc.2",
74
+ "@deepseek-ai/dsh-invariants": "0.1.5-rc.2",
75
+ "@deepseek-ai/dsh-llm": "0.1.5-rc.2",
76
+ "@deepseek-ai/dsh-scope": "0.1.5-rc.2",
77
+ "@deepseek-ai/dsh-session": "0.1.5-rc.2",
78
+ "@deepseek-ai/dsh-session-persistence": "0.1.5-rc.2",
79
+ "@deepseek-ai/dsh-settings": "0.1.5-rc.2",
80
+ "@deepseek-ai/dsh-subprocess": "0.1.5-rc.2",
81
+ "@deepseek-ai/dsh-timeout": "0.1.5-rc.2",
82
+ "@deepseek-ai/dsh-typert-protocol": "0.1.5-rc.2"
83
+ },
84
+ "devDependencies": {
85
+ "@deepseek-ai/dsh-agent-loop": "0.1.5-rc.2",
86
+ "@deepseek-ai/dsh-attachment": "0.1.5-rc.2",
87
+ "@deepseek-ai/dsh-client-locale": "0.1.5-rc.2",
88
+ "@deepseek-ai/dsh-client-store": "0.1.5-rc.2",
89
+ "@deepseek-ai/dsh-client-ui-conversation": "0.1.5-rc.2",
90
+ "@deepseek-ai/dsh-client-ui-primitives": "0.1.5-rc.2",
91
+ "@deepseek-ai/dsh-client-ui-renderer": "0.1.5-rc.2",
92
+ "@deepseek-ai/dsh-client-ui-settings": "0.1.5-rc.2",
93
+ "@deepseek-ai/dsh-client-ui-slots": "0.1.5-rc.2",
94
+ "@deepseek-ai/dsh-home-paths": "0.1.5-rc.2",
95
+ "@deepseek-ai/dsh-session-persistence-jsonl": "0.1.5-rc.2",
96
+ "@deepseek-ai/dsh-subprocess-local": "0.1.5-rc.2",
97
+ "@deepseek-ai/dsh-system-prompt": "0.1.5-rc.2",
98
+ "@deepseek-ai/dsh-typert-protocol": "0.1.5-rc.2",
99
+ "@types/node": "^22.20.0",
100
+ "@types/react": "^19.0.0",
101
+ "@vitest/coverage-v8": "^4.1.8",
102
+ "esbuild": "^0.28.2",
103
+ "tsx": "^4.22.4",
104
+ "typescript": "^6.0.3",
105
+ "vite": "^7.0.0",
106
+ "vite-tsconfig-paths": "^6.1.1",
107
+ "vitest": "^4.1.8"
108
+ }
109
+ }