dsh-loop-engine-allinone 0.0.0-stage → 0.4.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 (143) hide show
  1. package/CHANGELOG.md +100 -0
  2. package/CONTRIBUTING.md +78 -0
  3. package/LICENSE +23 -0
  4. package/NOTICE +45 -0
  5. package/README.md +221 -2
  6. package/README.zh.md +89 -0
  7. package/SECURITY.md +39 -0
  8. package/cordis.patch.yml +3 -0
  9. package/lib/client.js +2166 -0
  10. package/lib/index.js +11621 -0
  11. package/lib/invariant.js +453 -0
  12. package/lib/types/agent-preset-ids.d.ts +276 -0
  13. package/lib/types/client/LoopEngineBadge.d.ts +71 -0
  14. package/lib/types/client/LoopEngineComposerSelect.d.ts +126 -0
  15. package/lib/types/client/LoopEngineSection.d.ts +35 -0
  16. package/lib/types/client/engine-marks.d.ts +87 -0
  17. package/lib/types/client/index.d.ts +39 -0
  18. package/lib/types/client/locales.d.ts +182 -0
  19. package/lib/types/client/reload.d.ts +135 -0
  20. package/lib/types/client/session-engine.d.ts +508 -0
  21. package/lib/types/client/store.d.ts +103 -0
  22. package/lib/types/client/turn-status.d.ts +234 -0
  23. package/lib/types/client/use-session-engine.d.ts +74 -0
  24. package/lib/types/commands.d.ts +77 -0
  25. package/lib/types/compat.d.ts +25 -0
  26. package/lib/types/driver-acp/agent.d.ts +289 -0
  27. package/lib/types/driver-acp/approval.d.ts +27 -0
  28. package/lib/types/driver-acp/capabilities.d.ts +200 -0
  29. package/lib/types/driver-acp/client.d.ts +297 -0
  30. package/lib/types/driver-acp/executable.d.ts +53 -0
  31. package/lib/types/driver-acp/mapping.d.ts +76 -0
  32. package/lib/types/driver-acp/profile.d.ts +126 -0
  33. package/lib/types/driver-acp/runtime.d.ts +45 -0
  34. package/lib/types/driver-acp/subprocess.d.ts +19 -0
  35. package/lib/types/driver-acp/terminal.d.ts +98 -0
  36. package/lib/types/driver-acp/transport.d.ts +43 -0
  37. package/lib/types/driver-acp/types.d.ts +152 -0
  38. package/lib/types/driver-cli/capability.d.ts +42 -0
  39. package/lib/types/driver-cli/cli-agent.d.ts +258 -0
  40. package/lib/types/driver-cli/cli-loop.d.ts +46 -0
  41. package/lib/types/driver-cli/flatten.d.ts +35 -0
  42. package/lib/types/driver-cli/frames.d.ts +128 -0
  43. package/lib/types/driver-cli/ndjson.d.ts +106 -0
  44. package/lib/types/driver-cli/session-sink.d.ts +333 -0
  45. package/lib/types/driver-cli/stream-json.d.ts +61 -0
  46. package/lib/types/driver-cli/text.d.ts +66 -0
  47. package/lib/types/driver-cli/transport.d.ts +84 -0
  48. package/lib/types/driver-core/agents-md-skill-provider.d.ts +72 -0
  49. package/lib/types/driver-core/assistant-stream.d.ts +68 -0
  50. package/lib/types/driver-core/context-files.d.ts +62 -0
  51. package/lib/types/driver-core/host-servers.d.ts +119 -0
  52. package/lib/types/driver-core/hosted-engine-runtime.d.ts +190 -0
  53. package/lib/types/driver-core/hosted-tool-vocabulary.d.ts +78 -0
  54. package/lib/types/driver-core/idle-child.d.ts +57 -0
  55. package/lib/types/driver-core/image-access.d.ts +25 -0
  56. package/lib/types/driver-core/inbox.d.ts +104 -0
  57. package/lib/types/driver-core/model-handover.d.ts +134 -0
  58. package/lib/types/driver-core/ownership.d.ts +41 -0
  59. package/lib/types/driver-core/permission-knobs.d.ts +26 -0
  60. package/lib/types/driver-core/prompt.d.ts +64 -0
  61. package/lib/types/driver-core/session-lifetime.d.ts +62 -0
  62. package/lib/types/driver-core/session-model.d.ts +128 -0
  63. package/lib/types/driver-core/skill-inject.d.ts +59 -0
  64. package/lib/types/driver-core/step-close.d.ts +49 -0
  65. package/lib/types/driver-core/step-images.d.ts +62 -0
  66. package/lib/types/driver-core/step-tools.d.ts +43 -0
  67. package/lib/types/driver-core/system-head.d.ts +43 -0
  68. package/lib/types/engine-agy/agent.d.ts +67 -0
  69. package/lib/types/engine-agy/frames.d.ts +90 -0
  70. package/lib/types/engine-agy/loop.d.ts +64 -0
  71. package/lib/types/engine-agy/process.d.ts +173 -0
  72. package/lib/types/engine-claude/agent.d.ts +186 -0
  73. package/lib/types/engine-claude/loop.d.ts +73 -0
  74. package/lib/types/engine-claude/mapping.d.ts +108 -0
  75. package/lib/types/engine-claude/permission.d.ts +41 -0
  76. package/lib/types/engine-claude/process.d.ts +59 -0
  77. package/lib/types/engine-claude/sdk.d.ts +67 -0
  78. package/lib/types/engine-claude/types.d.ts +28 -0
  79. package/lib/types/engine-codex/agent.d.ts +216 -0
  80. package/lib/types/engine-codex/appserver/client.d.ts +80 -0
  81. package/lib/types/engine-codex/appserver/mapping.d.ts +67 -0
  82. package/lib/types/engine-codex/appserver/thread.d.ts +66 -0
  83. package/lib/types/engine-codex/appserver/types.d.ts +225 -0
  84. package/lib/types/engine-codex/loop.d.ts +75 -0
  85. package/lib/types/engine-codex/model-handover.d.ts +56 -0
  86. package/lib/types/engine-codex/permission.d.ts +126 -0
  87. package/lib/types/engine-codex/skills.d.ts +28 -0
  88. package/lib/types/engine-codex/types.d.ts +36 -0
  89. package/lib/types/engine-drivers.d.ts +132 -0
  90. package/lib/types/engine-grok/agent.d.ts +24 -0
  91. package/lib/types/engine-grok/loop.d.ts +61 -0
  92. package/lib/types/engine-grok/process.d.ts +46 -0
  93. package/lib/types/engine-grok/profile.d.ts +82 -0
  94. package/lib/types/engine-hermes/agent.d.ts +47 -0
  95. package/lib/types/engine-hermes/loop.d.ts +56 -0
  96. package/lib/types/engine-hermes/process.d.ts +92 -0
  97. package/lib/types/engine-kimi/acp/client.d.ts +123 -0
  98. package/lib/types/engine-kimi/acp/mapping.d.ts +73 -0
  99. package/lib/types/engine-kimi/acp/types.d.ts +143 -0
  100. package/lib/types/engine-kimi/agent.d.ts +24 -0
  101. package/lib/types/engine-kimi/commands.d.ts +44 -0
  102. package/lib/types/engine-kimi/loop.d.ts +62 -0
  103. package/lib/types/engine-kimi/model-handover.d.ts +32 -0
  104. package/lib/types/engine-kimi/permission.d.ts +28 -0
  105. package/lib/types/engine-kimi/process.d.ts +47 -0
  106. package/lib/types/engine-kimi/profile.d.ts +19 -0
  107. package/lib/types/engine-kimi/skills.d.ts +52 -0
  108. package/lib/types/engine-kimi/types.d.ts +25 -0
  109. package/lib/types/engine-minimaxcode/agent.d.ts +24 -0
  110. package/lib/types/engine-minimaxcode/loop.d.ts +83 -0
  111. package/lib/types/engine-minimaxcode/process.d.ts +53 -0
  112. package/lib/types/engine-minimaxcode/profile.d.ts +72 -0
  113. package/lib/types/engine-of-session.d.ts +97 -0
  114. package/lib/types/engine-pi/agent.d.ts +230 -0
  115. package/lib/types/engine-pi/loop.d.ts +72 -0
  116. package/lib/types/engine-pi/model-handover.d.ts +84 -0
  117. package/lib/types/engine-pi/permission.d.ts +47 -0
  118. package/lib/types/engine-pi/rpc/client.d.ts +107 -0
  119. package/lib/types/engine-pi/rpc/mapping.d.ts +37 -0
  120. package/lib/types/engine-pi/rpc/types.d.ts +249 -0
  121. package/lib/types/engine-pi/skills.d.ts +47 -0
  122. package/lib/types/engine-pi/types.d.ts +36 -0
  123. package/lib/types/engine-qoderclicn/agent.d.ts +59 -0
  124. package/lib/types/engine-qoderclicn/loop.d.ts +51 -0
  125. package/lib/types/engine-qoderclicn/process.d.ts +113 -0
  126. package/lib/types/engine-registry.d.ts +584 -0
  127. package/lib/types/engine-remote.d.ts +192 -0
  128. package/lib/types/engine-surface.d.ts +36 -0
  129. package/lib/types/engine-zcode/agent.d.ts +50 -0
  130. package/lib/types/engine-zcode/loop.d.ts +47 -0
  131. package/lib/types/engine-zcode/process.d.ts +111 -0
  132. package/lib/types/index.d.ts +205 -0
  133. package/lib/types/invariant.d.ts +26 -0
  134. package/lib/types/model-selection-reset.d.ts +271 -0
  135. package/lib/types/namespace.d.ts +25 -0
  136. package/lib/types/patch-manager.d.ts +104 -0
  137. package/lib/types/preset.d.ts +254 -0
  138. package/lib/types/provider-route.d.ts +245 -0
  139. package/lib/types/router-loop.d.ts +458 -0
  140. package/lib/types/session-engine-store.d.ts +138 -0
  141. package/lib/types/settings.d.ts +60 -0
  142. package/lib/types/skills.d.ts +85 -0
  143. package/package.json +150 -4
@@ -0,0 +1,85 @@
1
+ /**
2
+ * Claude Code skill provider: discovers skills from the project's `.claude/`
3
+ * directory, the user-level `~/.claude/skills/` directory, and the project's
4
+ * `CLAUDE.md` file, using the same YAML-frontmatter + markdown format as DSH
5
+ * skills.
6
+ *
7
+ * @module dsh-loop-engine-allinone/skills
8
+ */
9
+ import type { SkillDefinition } from './driver-core/skill-inject.ts';
10
+ export interface SkillInvocationPolicy {
11
+ readonly modelInvocable: boolean;
12
+ readonly userInvocable: boolean;
13
+ }
14
+ export type SkillSource = string;
15
+ export interface SkillCandidate {
16
+ readonly name: string;
17
+ readonly description: string;
18
+ readonly whenToUse?: string;
19
+ readonly invocation: SkillInvocationPolicy;
20
+ readonly source: SkillSource;
21
+ readonly provider: string;
22
+ readonly rank: number;
23
+ readonly locator: unknown;
24
+ readonly path?: string;
25
+ readonly resourceBase?: {
26
+ readonly kind: string;
27
+ readonly path: string;
28
+ };
29
+ }
30
+ /**
31
+ * The providers' loaded-skill shape is the driver-core one, so the skill
32
+ * providers and the engine agents that consume them cannot drift apart.
33
+ */
34
+ export type { SkillDefinition } from './driver-core/skill-inject.ts';
35
+ export interface SkillLookupOptions {
36
+ readonly cwd?: string;
37
+ readonly signal?: AbortSignal;
38
+ }
39
+ export interface SkillProvider {
40
+ readonly name: string;
41
+ list(options: SkillLookupOptions): Promise<readonly SkillCandidate[] | {
42
+ candidates: readonly SkillCandidate[];
43
+ complete: boolean;
44
+ }>;
45
+ get(candidate: SkillCandidate, options: SkillLookupOptions): Promise<SkillDefinition | undefined>;
46
+ }
47
+ export interface SkillProviderControl {
48
+ readonly signal: AbortSignal;
49
+ invalidate(): void;
50
+ }
51
+ /** One parsed agents-skill standard skill: frontmatter metadata plus the body. */
52
+ export interface ParsedSkill {
53
+ name: string;
54
+ description: string;
55
+ whenToUse?: string;
56
+ invocation: SkillInvocationPolicy;
57
+ content: string;
58
+ }
59
+ /**
60
+ * Parse one agents-skill standard file: YAML frontmatter (`name`,
61
+ * `description`, optional `whenToUse`/`disable-model-invocation`/
62
+ * `user-invocable`) plus the markdown body.
63
+ * @param raw - the raw file content.
64
+ * @returns the parsed skill, or `undefined` when the file is not a skill.
65
+ */
66
+ export declare function parseSkillFile(raw: string): ParsedSkill | undefined;
67
+ /**
68
+ * Skill provider that discovers skills from Claude Code's standard locations:
69
+ * - `<project>/.claude/skills/` — project skills
70
+ * - `~/.claude/skills/` — personal skills
71
+ * Each location accepts both Claude Code layouts: a `<name>/SKILL.md`
72
+ * directory (its directory becomes the resource base) and a flat `<name>.md`
73
+ * file. `CLAUDE.md` in the project root is also read when it carries skill
74
+ * frontmatter.
75
+ */
76
+ export declare class ClaudeCodeSkillProvider implements SkillProvider {
77
+ private readonly control;
78
+ readonly name = "claude-code";
79
+ constructor(control: SkillProviderControl);
80
+ list(options: SkillLookupOptions): Promise<readonly SkillCandidate[]>;
81
+ get(candidate: SkillCandidate, _options: SkillLookupOptions): Promise<SkillDefinition | undefined>;
82
+ }
83
+ export declare function findProjectRoot(cwd: string): Promise<string>;
84
+ export default ClaudeCodeSkillProvider;
85
+ //# sourceMappingURL=skills.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,152 @@
1
1
  {
2
2
  "name": "dsh-loop-engine-allinone",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "description": "Web-switchable agent loop engine selection for the DeepSeek Harness - out-of-tree plugin with a data-driven engine registry and a pluggable driver layer. Ten engines: Claude Code / Codex / Pi / Kimi Code / Antigravity / ZCode / Qoder CN / Hermes / Grok Build / MiniMax Code. All-in-one fork of kuun993/dsh-loop-engine.",
4
+ "version": "0.4.0",
5
+ "publishConfig": {
6
+ "registry": "https://registry.npmjs.org/"
7
+ },
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/yaliklinty/dsh-loop-engine-allinone.git"
11
+ },
12
+ "type": "module",
13
+ "main": "lib/index.js",
14
+ "types": "lib/types/index.d.ts",
15
+ "exports": {
16
+ ".": {
17
+ "types": "./lib/types/index.d.ts",
18
+ "default": "./lib/index.js"
19
+ },
20
+ "./invariant": {
21
+ "types": "./lib/types/invariant.d.ts",
22
+ "default": "./lib/invariant.js"
23
+ },
24
+ "./client": {
25
+ "types": "./lib/types/client/index.d.ts",
26
+ "default": "./lib/client.js"
27
+ },
28
+ "./src/*": "./src/*",
29
+ "./package.json": "./package.json"
30
+ },
31
+ "files": [
32
+ "lib/index.js",
33
+ "lib/invariant.js",
34
+ "lib/client.js",
35
+ "lib/types/**/*.d.ts",
36
+ "cordis.patch.yml",
37
+ "README.md",
38
+ "CHANGELOG.md",
39
+ "CONTRIBUTING.md",
40
+ "SECURITY.md",
41
+ "LICENSE",
42
+ "NOTICE"
43
+ ],
44
+ "license": "MIT",
45
+ "engines": {
46
+ "node": "^22.19.0 || >=24.0.0"
47
+ },
48
+ "packageManager": "pnpm@11.23.0",
49
+ "scripts": {
50
+ "build": "node build.mjs",
51
+ "typecheck": "tsc -p tsconfig.build.json --noEmit",
52
+ "test": "vitest run",
53
+ "test:coverage": "vitest run --coverage",
54
+ "compat:install": "pnpm -C .compat/015 install --frozen-lockfile && pnpm -C .compat/017 install --frozen-lockfile && pnpm -C .compat/020 install --frozen-lockfile",
55
+ "test:compat": "vitest run --config vitest.config.compat015.ts && vitest run --config vitest.config.compat017.ts && vitest run --config vitest.config.compat020.ts"
56
+ },
57
+ "dsh": {
58
+ "bundle": {
59
+ "patch": "./cordis.patch.yml"
60
+ },
61
+ "client": {
62
+ "inject": [
63
+ "@deepseek-ai/dsh-client-locale",
64
+ "@deepseek-ai/dsh-client-ui-settings",
65
+ "@deepseek-ai/dsh-api-remotes",
66
+ "@deepseek-ai/dsh-api-session-controller"
67
+ ],
68
+ "platform": "web",
69
+ "external": [
70
+ "@deepseek-ai/dsh-client-locale/client",
71
+ "@deepseek-ai/dsh-client-store",
72
+ "@deepseek-ai/dsh-client-ui-settings/client",
73
+ "@deepseek-ai/dsh-api-remotes/client",
74
+ "@deepseek-ai/dsh-settings/types"
75
+ ]
76
+ }
77
+ },
78
+ "dependencies": {
79
+ "@anthropic-ai/claude-agent-sdk": "0.3.220",
80
+ "@anthropic-ai/sdk": "0.93.0",
81
+ "@deepseek-ai/schemastery": "3.18.4",
82
+ "@earendil-works/pi-coding-agent": "0.84.3",
83
+ "@openai/codex": "0.149.1"
84
+ },
85
+ "peerDependencies": {
86
+ "@deepseek-ai/cordis": "^4.0.1",
87
+ "@deepseek-ai/dsh-agent": ">=0.1.5-rc.1 <0.1.6-0 || >=0.1.7-rc.1 <0.1.8-0 || >=0.2.0-rc.1 <0.2.1-0",
88
+ "@deepseek-ai/dsh-agent-loop": ">=0.1.5-rc.1 <0.1.6-0 || >=0.1.7-rc.1 <0.1.8-0 || >=0.2.0-rc.1 <0.2.1-0",
89
+ "@deepseek-ai/dsh-invariants": ">=0.1.5-rc.1 <0.1.6-0 || >=0.1.7-rc.1 <0.1.8-0 || >=0.2.0-rc.1 <0.2.1-0",
90
+ "@deepseek-ai/dsh-llm": ">=0.1.5-rc.1 <0.1.6-0 || >=0.1.7-rc.1 <0.1.8-0 || >=0.2.0-rc.1 <0.2.1-0",
91
+ "@deepseek-ai/dsh-scope": ">=0.1.5-rc.1 <0.1.6-0 || >=0.1.7-rc.1 <0.1.8-0 || >=0.2.0-rc.1 <0.2.1-0",
92
+ "@deepseek-ai/dsh-session": ">=0.1.5-rc.1 <0.1.6-0 || >=0.1.7-rc.1 <0.1.8-0 || >=0.2.0-rc.1 <0.2.1-0",
93
+ "@deepseek-ai/dsh-session-persistence": ">=0.1.5-rc.1 <0.1.6-0 || >=0.1.7-rc.1 <0.1.8-0 || >=0.2.0-rc.1 <0.2.1-0",
94
+ "@deepseek-ai/dsh-settings": ">=0.1.5-rc.1 <0.1.6-0 || >=0.1.7-rc.1 <0.1.8-0 || >=0.2.0-rc.1 <0.2.1-0",
95
+ "@deepseek-ai/dsh-subprocess": ">=0.1.5-rc.1 <0.1.6-0 || >=0.1.7-rc.1 <0.1.8-0 || >=0.2.0-rc.1 <0.2.1-0",
96
+ "@deepseek-ai/dsh-timeout": ">=0.1.5-rc.1 <0.1.6-0 || >=0.1.7-rc.1 <0.1.8-0 || >=0.2.0-rc.1 <0.2.1-0",
97
+ "@deepseek-ai/dsh-typert-protocol": ">=0.1.5-rc.1 <0.1.6-0 || >=0.1.7-rc.1 <0.1.8-0 || >=0.2.0-rc.1 <0.2.1-0"
98
+ },
99
+ "devDependencies": {
100
+ "@deepseek-ai/dsh-agent": "0.2.0-rc.2",
101
+ "@deepseek-ai/dsh-agent-loop": "0.2.0-rc.2",
102
+ "@deepseek-ai/dsh-invariants": "0.2.0-rc.2",
103
+ "@deepseek-ai/dsh-llm": "0.2.0-rc.2",
104
+ "@deepseek-ai/dsh-scope": "0.2.0-rc.2",
105
+ "@deepseek-ai/dsh-session": "0.2.0-rc.2",
106
+ "@deepseek-ai/dsh-session-persistence": "0.2.0-rc.2",
107
+ "@deepseek-ai/dsh-settings": "0.2.0-rc.2",
108
+ "@deepseek-ai/dsh-subprocess": "0.2.0-rc.2",
109
+ "@deepseek-ai/dsh-timeout": "0.2.0-rc.2",
110
+ "@deepseek-ai/dsh-attachment": "0.2.0-rc.2",
111
+ "@deepseek-ai/dsh-client-locale": "0.2.0-rc.2",
112
+ "@deepseek-ai/dsh-client-store": "0.2.0-rc.2",
113
+ "@deepseek-ai/dsh-client-ui-conversation": "0.2.0-rc.2",
114
+ "@deepseek-ai/dsh-client-ui-primitives": "0.2.0-rc.2",
115
+ "@deepseek-ai/dsh-client-ui-renderer": "0.2.0-rc.2",
116
+ "@deepseek-ai/dsh-client-ui-settings": "0.2.0-rc.2",
117
+ "@deepseek-ai/dsh-client-ui-slots": "0.2.0-rc.2",
118
+ "@deepseek-ai/dsh-home-paths": "0.2.0-rc.2",
119
+ "@deepseek-ai/dsh-session-persistence-jsonl": "0.2.0-rc.2",
120
+ "@deepseek-ai/dsh-subprocess-local": "0.2.0-rc.2",
121
+ "@deepseek-ai/dsh-system-prompt": "0.2.0-rc.2",
122
+ "@deepseek-ai/dsh-typert-protocol": "0.2.0-rc.2",
123
+ "@types/node": "^22.20.0",
124
+ "@types/react": "^19.0.0",
125
+ "@vitest/coverage-v8": "^4.1.8",
126
+ "esbuild": "^0.28.2",
127
+ "tsx": "^4.22.4",
128
+ "typescript": "^6.0.3",
129
+ "vite": "^7.0.0",
130
+ "vite-tsconfig-paths": "^6.1.1",
131
+ "vitest": "^4.1.8"
132
+ },
133
+ "bugs": {
134
+ "url": "https://github.com/yaliklinty/dsh-loop-engine-allinone/issues"
135
+ },
136
+ "homepage": "https://github.com/yaliklinty/dsh-loop-engine-allinone#readme",
137
+ "author": "dsh-loop-engine-allinone contributors",
138
+ "keywords": [
139
+ "deepseek-harness",
140
+ "dsh",
141
+ "dsh-plugin",
142
+ "agent-loop",
143
+ "coding-agent",
144
+ "claude-code",
145
+ "codex",
146
+ "kimi",
147
+ "antigravity",
148
+ "grok",
149
+ "minimax",
150
+ "acp"
151
+ ]
152
+ }