dsh-openwrite 0.2.8

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 (275) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +107 -0
  3. package/THIRD_PARTY_NOTICES.md +33 -0
  4. package/assets/logo-dark.svg +31 -0
  5. package/assets/logo-light.svg +31 -0
  6. package/cordis.patch.yml +11 -0
  7. package/docs/BENCHMARK_TASKS.md +54 -0
  8. package/docs/COST_MEASUREMENT.md +39 -0
  9. package/docs/DEVELOPMENT.md +65 -0
  10. package/docs/DSH_STORE.md +58 -0
  11. package/docs/FRAMEWORK_ADVANTAGES.md +288 -0
  12. package/docs/IMPROVEMENT_PLAN.md +252 -0
  13. package/docs/INSTALL.md +99 -0
  14. package/docs/LEARNING.md +68 -0
  15. package/docs/OPEN_SOURCE_NOVEL_AUDIT.md +191 -0
  16. package/docs/PLUGIN_MAINTENANCE.md +54 -0
  17. package/docs/PLUGIN_MAINTENANCE_RC7.md +157 -0
  18. package/docs/QA_20260908.md +103 -0
  19. package/docs/QA_20260909_BENCHMARK.md +24 -0
  20. package/docs/RELEASE_ACCEPTANCE.md +116 -0
  21. package/docs/REVIEW_DAG_FRAMEWORK.md +82 -0
  22. package/docs/TARGETED_NOVEL_PROJECT_REVIEW.md +167 -0
  23. package/docs/WORKFLOWS.md +74 -0
  24. package/docs/WORKSPACE_CONTEXT_CONTRACT.md +125 -0
  25. package/docs/WORKSPACE_INTEGRATION_GOAL.md +278 -0
  26. package/docs/research/autosave-race-repro.mjs +133 -0
  27. package/docs/research/framework-stats-2026-09-05.json +116 -0
  28. package/dog-tools.mjs +11 -0
  29. package/package.json +132 -0
  30. package/packages/openwrite-bridge/LICENSE +201 -0
  31. package/packages/openwrite-bridge/cordis.patch.yml +10 -0
  32. package/packages/openwrite-bridge/lib/client.d.ts +95 -0
  33. package/packages/openwrite-bridge/lib/client.js +193 -0
  34. package/packages/openwrite-bridge/lib/contracts-generated.d.ts +367 -0
  35. package/packages/openwrite-bridge/lib/contracts-generated.js +1764 -0
  36. package/packages/openwrite-bridge/lib/dog-delivery.d.ts +12 -0
  37. package/packages/openwrite-bridge/lib/dog-delivery.js +362 -0
  38. package/packages/openwrite-bridge/lib/dog-review.d.ts +50 -0
  39. package/packages/openwrite-bridge/lib/dog-review.js +470 -0
  40. package/packages/openwrite-bridge/lib/domain.d.ts +70 -0
  41. package/packages/openwrite-bridge/lib/domain.js +496 -0
  42. package/packages/openwrite-bridge/lib/index.d.ts +17 -0
  43. package/packages/openwrite-bridge/lib/index.js +89 -0
  44. package/packages/openwrite-bridge/lib/managed-runtime.d.ts +95 -0
  45. package/packages/openwrite-bridge/lib/managed-runtime.js +510 -0
  46. package/packages/openwrite-bridge/lib/preset-tools.d.ts +13 -0
  47. package/packages/openwrite-bridge/lib/preset-tools.js +18 -0
  48. package/packages/openwrite-bridge/lib/tool-policy.d.ts +6 -0
  49. package/packages/openwrite-bridge/lib/tool-policy.js +56 -0
  50. package/packages/openwrite-bridge/lib/tools.d.ts +24 -0
  51. package/packages/openwrite-bridge/lib/tools.js +2404 -0
  52. package/packages/openwrite-bridge/package.json +67 -0
  53. package/packages/studio-panel/LICENSE +21 -0
  54. package/packages/studio-panel/README.md +51 -0
  55. package/packages/studio-panel/cordis.patch.yml +5 -0
  56. package/packages/studio-panel/lib/client.js +158087 -0
  57. package/packages/studio-panel/lib/client.js.map +1 -0
  58. package/packages/studio-panel/lib/index.js +50 -0
  59. package/packages/studio-panel/lib/types/client/AssetEditor.d.ts +122 -0
  60. package/packages/studio-panel/lib/types/client/AssetsView.d.ts +43 -0
  61. package/packages/studio-panel/lib/types/client/BenchmarkView.d.ts +9 -0
  62. package/packages/studio-panel/lib/types/client/ContinuousReader.d.ts +13 -0
  63. package/packages/studio-panel/lib/types/client/CreationView.d.ts +6 -0
  64. package/packages/studio-panel/lib/types/client/DagCanvas.d.ts +11 -0
  65. package/packages/studio-panel/lib/types/client/DiscardDraftDialog.d.ts +8 -0
  66. package/packages/studio-panel/lib/types/client/DomainToolCard.d.ts +9 -0
  67. package/packages/studio-panel/lib/types/client/GraphView.d.ts +46 -0
  68. package/packages/studio-panel/lib/types/client/HeaderChrome.d.ts +18 -0
  69. package/packages/studio-panel/lib/types/client/LaunchOpenWrite.d.ts +13 -0
  70. package/packages/studio-panel/lib/types/client/LibraryView.d.ts +6 -0
  71. package/packages/studio-panel/lib/types/client/MarkdownText.d.ts +3 -0
  72. package/packages/studio-panel/lib/types/client/ModelView.d.ts +9 -0
  73. package/packages/studio-panel/lib/types/client/OperationsView.d.ts +6 -0
  74. package/packages/studio-panel/lib/types/client/OutlinePlans.d.ts +37 -0
  75. package/packages/studio-panel/lib/types/client/OutlineView.d.ts +29 -0
  76. package/packages/studio-panel/lib/types/client/ResearchView.d.ts +7 -0
  77. package/packages/studio-panel/lib/types/client/ReviewCard.d.ts +28 -0
  78. package/packages/studio-panel/lib/types/client/SceneWorkbench.d.ts +55 -0
  79. package/packages/studio-panel/lib/types/client/SearchView.d.ts +33 -0
  80. package/packages/studio-panel/lib/types/client/TasksView.d.ts +11 -0
  81. package/packages/studio-panel/lib/types/client/TransferWorkspaces.d.ts +19 -0
  82. package/packages/studio-panel/lib/types/client/TurnMutationSummary.d.ts +62 -0
  83. package/packages/studio-panel/lib/types/client/VditorBody.d.ts +55 -0
  84. package/packages/studio-panel/lib/types/client/WorkbenchStore.d.ts +121 -0
  85. package/packages/studio-panel/lib/types/client/api.d.ts +72 -0
  86. package/packages/studio-panel/lib/types/client/asset-drafts.d.ts +20 -0
  87. package/packages/studio-panel/lib/types/client/benchmark-options.d.ts +43 -0
  88. package/packages/studio-panel/lib/types/client/draft-store.d.ts +26 -0
  89. package/packages/studio-panel/lib/types/client/dto.d.ts +517 -0
  90. package/packages/studio-panel/lib/types/client/index.d.ts +4 -0
  91. package/packages/studio-panel/lib/types/client/locales.d.ts +15 -0
  92. package/packages/studio-panel/lib/types/client/manuscript-annotations.d.ts +59 -0
  93. package/packages/studio-panel/lib/types/client/manuscript-markers.d.ts +61 -0
  94. package/packages/studio-panel/lib/types/client/manuscript-mentions.d.ts +30 -0
  95. package/packages/studio-panel/lib/types/client/manuscript-overlay-dom.d.ts +7 -0
  96. package/packages/studio-panel/lib/types/client/manuscript-overlay.d.ts +42 -0
  97. package/packages/studio-panel/lib/types/client/manuscript-selection.d.ts +59 -0
  98. package/packages/studio-panel/lib/types/client/model-view-memory.d.ts +17 -0
  99. package/packages/studio-panel/lib/types/client/storage.d.ts +8 -0
  100. package/packages/studio-panel/lib/types/client/workbench-epochs.d.ts +16 -0
  101. package/packages/studio-panel/lib/types/client/workspace-context.d.ts +52 -0
  102. package/packages/studio-panel/lib/types/client/writing-scope.d.ts +7 -0
  103. package/packages/studio-panel/lib/types/index.d.ts +5 -0
  104. package/packages/studio-panel/package.json +105 -0
  105. package/packages/studio-panel/vendor/vditor/LICENSE +21 -0
  106. package/packages/studio-panel/vendor/vditor/dist/css/content-theme/dark.css +123 -0
  107. package/packages/studio-panel/vendor/vditor/dist/css/content-theme/light.css +101 -0
  108. package/packages/studio-panel/vendor/vditor/dist/index.css +1823 -0
  109. package/packages/studio-panel/vendor/vditor/dist/index.min.js +1 -0
  110. package/packages/studio-panel/vendor/vditor/dist/js/i18n/zh_CN.js +86 -0
  111. package/packages/studio-panel/vendor/vditor/dist/js/icons/ant.js +174 -0
  112. package/packages/studio-panel/vendor/vditor/dist/js/lute/lute.min.js +72 -0
  113. package/plugin.d.ts +3 -0
  114. package/plugin.mjs +80 -0
  115. package/presets/README.md +32 -0
  116. package/presets/openwrite/agent.cordis.yml +317 -0
  117. package/presets/openwrite/preset.yml +3 -0
  118. package/presets/openwrite/skills/canon/SKILL.md +15 -0
  119. package/presets/openwrite/skills/dialoguequality/SKILL.md +166 -0
  120. package/presets/openwrite/skills/dog-delivery-query/SKILL.md +40 -0
  121. package/presets/openwrite/skills/dog-import-query/SKILL.md +27 -0
  122. package/presets/openwrite/skills/dog-review-query/SKILL.md +40 -0
  123. package/presets/openwrite/skills/export-book/SKILL.md +14 -0
  124. package/presets/openwrite/skills/foreshadow/SKILL.md +14 -0
  125. package/presets/openwrite/skills/foreshadowing-system/SKILL.md +125 -0
  126. package/presets/openwrite/skills/learn/SKILL.md +24 -0
  127. package/presets/openwrite/skills/novel-creator/SKILL.md +88 -0
  128. package/presets/openwrite/skills/novel-creator/templates/beat_templates.yaml +179 -0
  129. package/presets/openwrite/skills/novel-creator/templates/example_usage.yaml +74 -0
  130. package/presets/openwrite/skills/novel-reviewer/SKILL.md +85 -0
  131. package/presets/openwrite/skills/oh-story-deslop/LICENSE +21 -0
  132. package/presets/openwrite/skills/oh-story-deslop/SKILL.md +36 -0
  133. package/presets/openwrite/skills/oh-story-deslop/agents/openai.yaml +4 -0
  134. package/presets/openwrite/skills/oh-story-deslop/references/method.md +22 -0
  135. package/presets/openwrite/skills/oh-story-long-analyze/LICENSE +21 -0
  136. package/presets/openwrite/skills/oh-story-long-analyze/SKILL.md +37 -0
  137. package/presets/openwrite/skills/oh-story-long-analyze/agents/openai.yaml +4 -0
  138. package/presets/openwrite/skills/oh-story-long-analyze/references/method.md +22 -0
  139. package/presets/openwrite/skills/oh-story-long-scan/LICENSE +21 -0
  140. package/presets/openwrite/skills/oh-story-long-scan/SKILL.md +36 -0
  141. package/presets/openwrite/skills/oh-story-long-scan/agents/openai.yaml +4 -0
  142. package/presets/openwrite/skills/oh-story-long-scan/references/method.md +21 -0
  143. package/presets/openwrite/skills/oh-story-long-write/LICENSE +21 -0
  144. package/presets/openwrite/skills/oh-story-long-write/SKILL.md +37 -0
  145. package/presets/openwrite/skills/oh-story-long-write/agents/openai.yaml +4 -0
  146. package/presets/openwrite/skills/oh-story-long-write/references/method.md +33 -0
  147. package/presets/openwrite/skills/oh-story-review/LICENSE +21 -0
  148. package/presets/openwrite/skills/oh-story-review/SKILL.md +36 -0
  149. package/presets/openwrite/skills/oh-story-review/agents/openai.yaml +4 -0
  150. package/presets/openwrite/skills/oh-story-review/references/method.md +25 -0
  151. package/presets/openwrite/skills/progress/SKILL.md +16 -0
  152. package/presets/openwrite/skills/review-chapter/SKILL.md +17 -0
  153. package/presets/openwrite/skills/revise-span/SKILL.md +16 -0
  154. package/presets/openwrite/skills/style-system/SKILL.md +135 -0
  155. package/presets/openwrite/skills/style-system/prompts/analyze_style.md +214 -0
  156. package/presets/openwrite/skills/style-system/prompts/batch_extract_style.md +66 -0
  157. package/presets/openwrite/skills/style-system/prompts/compose_style.md +83 -0
  158. package/presets/openwrite/skills/style-system/prompts/extract_style.md +84 -0
  159. package/presets/openwrite/skills/style-system/prompts/initialize_style.md +52 -0
  160. package/presets/openwrite/skills/style-system/templates/analysis_report.yaml +78 -0
  161. package/presets/openwrite/skills/style-system/templates/composed_style.md +96 -0
  162. package/presets/openwrite/skills/style-system/templates/extraction_report.yaml +80 -0
  163. package/presets/openwrite/skills/style-system/templates/fingerprint.yaml +61 -0
  164. package/presets/openwrite/skills/style-system/tools/README.md +33 -0
  165. package/presets/openwrite/skills/truth-validation/SKILL.md +119 -0
  166. package/presets/openwrite/skills/workflow-manager/SKILL.md +81 -0
  167. package/presets/openwrite/skills/world-query/SKILL.md +45 -0
  168. package/presets/openwrite/skills/write-next/SKILL.md +17 -0
  169. package/release/core-requirements.in +12 -0
  170. package/release/licenses/@deepseek-ai__cosmokit@1.8.3/LICENSE +21 -0
  171. package/release/licenses/@deepseek-ai__schemastery@3.18.2/LICENSE +21 -0
  172. package/release/licenses/@isaacs__fs-minipass@4.0.1/LICENSE +15 -0
  173. package/release/licenses/@standard-schema__spec@1.1.0/LICENSE +21 -0
  174. package/release/licenses/@types__d3-color@3.1.3/LICENSE +21 -0
  175. package/release/licenses/@types__d3-drag@3.0.7/LICENSE +21 -0
  176. package/release/licenses/@types__d3-interpolate@3.0.4/LICENSE +21 -0
  177. package/release/licenses/@types__d3-selection@3.0.11/LICENSE +21 -0
  178. package/release/licenses/@types__d3-transition@3.0.9/LICENSE +21 -0
  179. package/release/licenses/@types__d3-zoom@3.0.8/LICENSE +21 -0
  180. package/release/licenses/@xyflow__react@12.11.6/LICENSE +21 -0
  181. package/release/licenses/@xyflow__system@0.0.82/LICENSE +21 -0
  182. package/release/licenses/ajv-formats@3.0.1/LICENSE +21 -0
  183. package/release/licenses/ajv@8.20.0/LICENSE +22 -0
  184. package/release/licenses/chownr@3.0.0/LICENSE.md +63 -0
  185. package/release/licenses/classcat@5.0.5/LICENSE.md +7 -0
  186. package/release/licenses/commander@7.2.0/LICENSE +22 -0
  187. package/release/licenses/d3-array@3.2.4/LICENSE +13 -0
  188. package/release/licenses/d3-axis@3.0.0/LICENSE +13 -0
  189. package/release/licenses/d3-brush@3.0.0/LICENSE +13 -0
  190. package/release/licenses/d3-chord@3.0.1/LICENSE +13 -0
  191. package/release/licenses/d3-color@3.1.0/LICENSE +13 -0
  192. package/release/licenses/d3-contour@4.0.2/LICENSE +13 -0
  193. package/release/licenses/d3-delaunay@6.0.4/LICENSE +14 -0
  194. package/release/licenses/d3-dispatch@3.0.1/LICENSE +13 -0
  195. package/release/licenses/d3-drag@3.0.0/LICENSE +13 -0
  196. package/release/licenses/d3-dsv@3.0.1/LICENSE +13 -0
  197. package/release/licenses/d3-ease@3.0.1/LICENSE +28 -0
  198. package/release/licenses/d3-fetch@3.0.1/LICENSE +13 -0
  199. package/release/licenses/d3-force@3.0.0/LICENSE +13 -0
  200. package/release/licenses/d3-format@3.1.2/LICENSE +13 -0
  201. package/release/licenses/d3-geo@3.1.1/LICENSE +34 -0
  202. package/release/licenses/d3-hierarchy@3.1.2/LICENSE +13 -0
  203. package/release/licenses/d3-interpolate@3.0.1/LICENSE +13 -0
  204. package/release/licenses/d3-path@3.1.0/LICENSE +13 -0
  205. package/release/licenses/d3-polygon@3.0.1/LICENSE +13 -0
  206. package/release/licenses/d3-quadtree@3.0.1/LICENSE +13 -0
  207. package/release/licenses/d3-random@3.0.1/LICENSE +13 -0
  208. package/release/licenses/d3-scale-chromatic@3.1.0/LICENSE +28 -0
  209. package/release/licenses/d3-scale@4.0.2/LICENSE +13 -0
  210. package/release/licenses/d3-selection@3.0.0/LICENSE +13 -0
  211. package/release/licenses/d3-shape@3.2.0/LICENSE +13 -0
  212. package/release/licenses/d3-time-format@4.1.0/LICENSE +13 -0
  213. package/release/licenses/d3-time@3.1.0/LICENSE +13 -0
  214. package/release/licenses/d3-timer@3.0.1/LICENSE +13 -0
  215. package/release/licenses/d3-transition@3.0.1/LICENSE +13 -0
  216. package/release/licenses/d3-zoom@3.0.0/LICENSE +13 -0
  217. package/release/licenses/d3@7.9.0/LICENSE +13 -0
  218. package/release/licenses/delaunator@5.1.0/LICENSE +15 -0
  219. package/release/licenses/elkjs@0.12.0/LICENSE.md +263 -0
  220. package/release/licenses/fast-deep-equal@3.1.3/LICENSE +21 -0
  221. package/release/licenses/fast-uri@3.1.7/LICENSE +30 -0
  222. package/release/licenses/fflate@0.8.2/LICENSE +21 -0
  223. package/release/licenses/graceful-fs@4.2.11/LICENSE +15 -0
  224. package/release/licenses/iconv-lite@0.6.3/LICENSE +21 -0
  225. package/release/licenses/internmap@2.0.3/LICENSE +13 -0
  226. package/release/licenses/json-schema-traverse@1.0.0/LICENSE +21 -0
  227. package/release/licenses/lucide-react@0.468.0/LICENSE +15 -0
  228. package/release/licenses/minipass@7.1.3/LICENSE.md +55 -0
  229. package/release/licenses/minizlib@3.1.0/LICENSE +26 -0
  230. package/release/licenses/proper-lockfile@4.1.2/LICENSE +21 -0
  231. package/release/licenses/require-from-string@2.0.2/license +21 -0
  232. package/release/licenses/retry@0.12.0/License +21 -0
  233. package/release/licenses/robust-predicates@3.0.3/LICENSE +24 -0
  234. package/release/licenses/rw@1.3.3/LICENSE +26 -0
  235. package/release/licenses/safer-buffer@2.1.2/LICENSE +21 -0
  236. package/release/licenses/signal-exit@3.0.7/LICENSE.txt +16 -0
  237. package/release/licenses/tar@7.5.7/LICENSE.md +55 -0
  238. package/release/licenses/use-sync-external-store@1.6.0/LICENSE +21 -0
  239. package/release/licenses/yallist@5.0.0/LICENSE.md +63 -0
  240. package/release/licenses/zustand@4.5.7/LICENSE +21 -0
  241. package/release/openwrite-5.8.1-py3-none-any.whl +0 -0
  242. package/release/platform-overrides.in +5 -0
  243. package/release/python-constraints.in +96 -0
  244. package/release/requirements.lock +2927 -0
  245. package/release/runtime-manifest.json +98 -0
  246. package/release/sdk-compatibility.json +240 -0
  247. package/release/source.json +859 -0
  248. package/release/wheels/cryptography-50.0.1-cp312-abi3-macosx_13_0_x86_64.whl +0 -0
  249. package/release/wheels/licenses/LICENSE.txt +177 -0
  250. package/release/wheels/provenance.json +15 -0
  251. package/scripts/dog/delivery-stage.js +32 -0
  252. package/scripts/dog/import-chapter.js +20 -0
  253. package/scripts/dog/import-record.js +35 -0
  254. package/scripts/dog/review-dimension.js +41 -0
  255. package/scripts/dog/review-record.js +42 -0
  256. package/scripts/maintenance.mjs +179 -0
  257. package/scripts/prepare.mjs +21 -0
  258. package/vendor/dsh-dog/LICENSE +29 -0
  259. package/vendor/dsh-dog/README.md +114 -0
  260. package/vendor/dsh-dog/UPSTREAM.md +22 -0
  261. package/vendor/dsh-dog/cordis.patch.yml +14 -0
  262. package/vendor/dsh-dog/lib/client.js +2898 -0
  263. package/vendor/dsh-dog/lib/client.js.map +1 -0
  264. package/vendor/dsh-dog/lib/core-BiEBMLz3.d.ts +495 -0
  265. package/vendor/dsh-dog/lib/core-DdfMcrB4.js +2074 -0
  266. package/vendor/dsh-dog/lib/core.d.ts +2 -0
  267. package/vendor/dsh-dog/lib/core.js +2 -0
  268. package/vendor/dsh-dog/lib/index.d.ts +133 -0
  269. package/vendor/dsh-dog/lib/index.js +967 -0
  270. package/vendor/dsh-dog/package.json +97 -0
  271. package/vendor/dsh-dog/schemas/schema-0.2/graph.schema.json +139 -0
  272. package/vendor/dsh-dog/schemas/schema-0.2/report.schema.json +87 -0
  273. package/vendor/dsh-dog/schemas/schema-0.2/run.schema.json +259 -0
  274. package/vendor/dsh-dog/schemas/schema-0.2/runtime-event.schema.json +105 -0
  275. package/vendor/dsh-dog/schemas/schema-0.2/verification.schema.json +40 -0
@@ -0,0 +1,97 @@
1
+ {
2
+ "name": "@dsh-external/dsh-dog",
3
+ "version": "1.2.0",
4
+ "description": "DeepSeek Harness DoG (DAG of Goals) graph validation and trusted artifact verification plugin.",
5
+ "private": true,
6
+ "type": "module",
7
+ "main": "lib/index.js",
8
+ "types": "lib/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./lib/index.d.ts",
12
+ "default": "./lib/index.js"
13
+ },
14
+ "./core": {
15
+ "types": "./lib/core.d.ts",
16
+ "default": "./lib/core.js"
17
+ },
18
+ "./client": "./lib/client.js",
19
+ "./cordis.patch.yml": "./cordis.patch.yml",
20
+ "./package.json": "./package.json"
21
+ },
22
+ "files": [
23
+ "lib",
24
+ "src",
25
+ "SPEC.md",
26
+ "cordis.patch.yml"
27
+ ],
28
+ "scripts": {
29
+ "typecheck": "tsc -p tsconfig.json && tsc -p tsconfig.client.json",
30
+ "test": "vitest run",
31
+ "build": "tsdown",
32
+ "check": "pnpm run typecheck && pnpm run test && pnpm run build"
33
+ },
34
+ "dsh": {
35
+ "bundle": {
36
+ "patch": "./cordis.patch.yml"
37
+ },
38
+ "client": {
39
+ "inject": [
40
+ "@deepseek-ai/dsh-client-connection",
41
+ "@deepseek-ai/dsh-api-session-controller",
42
+ "@deepseek-ai/dsh-client-ui-layout",
43
+ "@deepseek-ai/dsh-client-ui-session"
44
+ ],
45
+ "platform": "web"
46
+ }
47
+ },
48
+ "peerDependencies": {
49
+ "@deepseek-ai/cordis": "4.0.2",
50
+ "@deepseek-ai/dsh-client-connection": "0.1.2-rc.1",
51
+ "@deepseek-ai/dsh-client-ui-layout": "0.1.2-rc.1",
52
+ "@deepseek-ai/dsh-client-ui-slots": "0.1.2-rc.1",
53
+ "@deepseek-ai/dsh-home-paths": "0.1.2-rc.1",
54
+ "@deepseek-ai/dsh-host-webserver": "0.1.2-rc.1",
55
+ "@deepseek-ai/dsh-tools": "0.1.2-rc.1",
56
+ "@deepseek-ai/schemastery": "3.18.2",
57
+ "react": "^18.3.1"
58
+ },
59
+ "devDependencies": {
60
+ "@deepseek-ai/cordis": "4.0.2",
61
+ "@deepseek-ai/dsh-agent": "0.1.2-rc.1",
62
+ "@deepseek-ai/dsh-api-gateway": "0.1.2-rc.1",
63
+ "@deepseek-ai/dsh-api-session-controller": "0.1.2-rc.1",
64
+ "@deepseek-ai/dsh-attachment": "0.1.2-rc.1",
65
+ "@deepseek-ai/dsh-client-connection": "0.1.2-rc.1",
66
+ "@deepseek-ai/dsh-client-ui-layout": "0.1.2-rc.1",
67
+ "@deepseek-ai/dsh-client-ui-renderer": "0.1.2-rc.1",
68
+ "@deepseek-ai/dsh-client-ui-slots": "0.1.2-rc.1",
69
+ "@deepseek-ai/dsh-code-runtime": "0.1.2-rc.1",
70
+ "@deepseek-ai/dsh-home-paths": "0.1.2-rc.1",
71
+ "@deepseek-ai/dsh-host-webserver": "0.1.2-rc.1",
72
+ "@deepseek-ai/dsh-invariants": "0.1.2-rc.1",
73
+ "@deepseek-ai/dsh-jobs": "0.1.2-rc.1",
74
+ "@deepseek-ai/dsh-llm": "0.1.2-rc.1",
75
+ "@deepseek-ai/dsh-scope": "0.1.2-rc.1",
76
+ "@deepseek-ai/dsh-session": "0.1.2-rc.1",
77
+ "@deepseek-ai/dsh-settings": "0.1.2-rc.1",
78
+ "@deepseek-ai/dsh-subagent": "0.1.2-rc.1",
79
+ "@deepseek-ai/dsh-system-prompt": "0.1.2-rc.1",
80
+ "@deepseek-ai/dsh-tools": "0.1.2-rc.1",
81
+ "@deepseek-ai/dsh-user-approval": "0.1.2-rc.1",
82
+ "@deepseek-ai/schemastery": "3.18.2",
83
+ "@types/node": "^22.20.0",
84
+ "@types/react": "~18.3.31",
85
+ "tsdown": "^0.22.2",
86
+ "typescript": "^5.9.3",
87
+ "vitest": "^4.1.1",
88
+ "@deepseek-ai/dsh-client-ui-session": "0.1.2-rc.1",
89
+ "react": "^18.3.1"
90
+ },
91
+ "license": "BSD-3-Clause",
92
+ "dependencies": {
93
+ "ajv": "^8.20.0",
94
+ "ajv-formats": "^3.0.1",
95
+ "tar": "7.5.7"
96
+ }
97
+ }
@@ -0,0 +1,139 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://github.com/dsh-external/dsh-dog/schemas/schema-0.9/graph.schema.json",
4
+ "title": "DoG v0.9 graph input (dog_validate / dog_create payload)",
5
+ "description": "Verification graph authored by the planning agent. Machine-readable counterpart of SPEC §4 / §1. Graph-level semantic rules (reference resolution, acyclicity, leaf-requires-verifier) are enforced by the compiler, not expressible here.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": ["schemaVersion", "id", "root", "nodes", "contains", "dependsOn"],
9
+ "properties": {
10
+ "schemaVersion": { "const": "0.9" },
11
+ "id": { "$ref": "#/$defs/asciiId" },
12
+ "root": { "$ref": "#/$defs/goalId" },
13
+ "nodes": {
14
+ "type": "object",
15
+ "minProperties": 1,
16
+ "propertyNames": { "$ref": "#/$defs/goalId" },
17
+ "additionalProperties": { "$ref": "#/$defs/node" }
18
+ },
19
+ "contains": {
20
+ "type": "array",
21
+ "items": { "$ref": "#/$defs/containment" }
22
+ },
23
+ "dependsOn": {
24
+ "type": "array",
25
+ "items": { "$ref": "#/$defs/dependency" }
26
+ }
27
+ },
28
+ "$defs": {
29
+ "asciiId": {
30
+ "type": "string",
31
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
32
+ },
33
+ "goalId": {
34
+ "type": "string",
35
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"
36
+ },
37
+ "node": {
38
+ "type": "object",
39
+ "additionalProperties": false,
40
+ "required": ["kind", "title", "constraint", "target"],
41
+ "properties": {
42
+ "kind": { "enum": ["leaf", "composite"] },
43
+ "title": { "type": "string", "minLength": 1 },
44
+ "constraint": { "enum": ["hard", "soft"] },
45
+ "target": {
46
+ "description": "Single file, or a directory/collection packed into .tar by the engine.",
47
+ "type": "string",
48
+ "minLength": 1
49
+ },
50
+ "verifier": {
51
+ "description": "Leaf: required. Composite: optional whole-object assertion (runs after the subtree settles).",
52
+ "type": "object",
53
+ "additionalProperties": false,
54
+ "required": ["mode"],
55
+ "properties": {
56
+ "mode": { "enum": ["programmatic", "agentic"] },
57
+ "script": { "type": "string", "minLength": 1 },
58
+ "instruction": { "type": "string", "minLength": 1 }
59
+ }
60
+ },
61
+ "completion": {
62
+ "description": "Required when kind=composite; forbidden when kind=leaf.",
63
+ "$ref": "#/$defs/expr"
64
+ }
65
+ },
66
+ "allOf": [
67
+ {
68
+ "if": { "properties": { "kind": { "const": "leaf" } }, "required": ["kind"] },
69
+ "then": {
70
+ "required": ["verifier"],
71
+ "not": { "required": ["completion"] }
72
+ }
73
+ },
74
+ {
75
+ "if": { "properties": { "kind": { "const": "composite" } }, "required": ["kind"] },
76
+ "then": { "required": ["completion"] }
77
+ }
78
+ ]
79
+ },
80
+ "expr": {
81
+ "type": "object",
82
+ "additionalProperties": false,
83
+ "properties": {
84
+ "op": { "enum": ["ref", "all", "any", "not", "atLeast"] },
85
+ "id": { "$ref": "#/$defs/goalId" },
86
+ "count": { "type": "integer", "minimum": 1 },
87
+ "item": { "$ref": "#/$defs/expr" },
88
+ "items": {
89
+ "type": "array",
90
+ "minItems": 1,
91
+ "items": { "$ref": "#/$defs/expr" }
92
+ }
93
+ },
94
+ "allOf": [
95
+ {
96
+ "if": { "properties": { "op": { "const": "ref" } }, "required": ["op"] },
97
+ "then": { "required": ["id"], "not": { "anyOf": [{ "required": ["items"] }, { "required": ["item"] }, { "required": ["count"] }] } }
98
+ },
99
+ {
100
+ "if": { "properties": { "op": { "const": "not" } }, "required": ["op"] },
101
+ "then": { "required": ["item"], "not": { "anyOf": [{ "required": ["items"] }, { "required": ["id"] }, { "required": ["count"] }] } }
102
+ },
103
+ {
104
+ "if": { "properties": { "op": { "const": "atLeast" } }, "required": ["op"] },
105
+ "then": { "required": ["count", "items"], "not": { "anyOf": [{ "required": ["id"] }, { "required": ["item"] }] } }
106
+ },
107
+ {
108
+ "if": { "properties": { "op": { "enum": ["all", "any"] } }, "required": ["op"] },
109
+ "then": { "required": ["items"], "not": { "anyOf": [{ "required": ["id"] }, { "required": ["item"] }, { "required": ["count"] }] } }
110
+ }
111
+ ]
112
+ },
113
+ "containment": {
114
+ "type": "object",
115
+ "additionalProperties": false,
116
+ "required": ["parent", "child", "required", "failure"],
117
+ "properties": {
118
+ "parent": { "$ref": "#/$defs/goalId" },
119
+ "child": { "$ref": "#/$defs/goalId" },
120
+ "required": { "type": "boolean" },
121
+ "failure": { "enum": ["fatal", "tolerable", "degrade"] },
122
+ "degradeTo": { "$ref": "#/$defs/goalId" }
123
+ }
124
+ },
125
+ "dependency": {
126
+ "type": "object",
127
+ "additionalProperties": false,
128
+ "required": ["source", "target"],
129
+ "properties": {
130
+ "source": { "$ref": "#/$defs/goalId" },
131
+ "target": { "$ref": "#/$defs/goalId" },
132
+ "data": {
133
+ "type": "array",
134
+ "items": { "type": "string" }
135
+ }
136
+ }
137
+ }
138
+ }
139
+ }
@@ -0,0 +1,87 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://github.com/dsh-external/dsh-dog/schemas/schema-0.2/report.schema.json",
4
+ "title": "DoG v0.2 CI report (dog_status full response)",
5
+ "description": "Machine-readable report consumed by the development agent and external CI. Machine-readable counterpart of SPEC §10 report stage.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": ["runId", "graphId", "rootState", "goals"],
9
+ "properties": {
10
+ "runId": { "$ref": "#/$defs/uuid" },
11
+ "graphId": { "type": "string", "minLength": 1 },
12
+ "graphDigest": { "$ref": "#/$defs/sha256" },
13
+ "rootState": {
14
+ "enum": ["success", "partial_success", "failure", "infeasible", "needs_replan", "cancelled", "running"]
15
+ },
16
+ "goals": {
17
+ "type": "array",
18
+ "items": { "$ref": "#/$defs/goalReport" }
19
+ },
20
+ "revalidated": {
21
+ "description": "Goal IDs re-run in this run (GM changed or non-programmatic).",
22
+ "type": "array",
23
+ "items": { "type": "string", "minLength": 1 }
24
+ },
25
+ "inherited": {
26
+ "description": "Goal IDs whose prior verification record was reused unchanged.",
27
+ "type": "array",
28
+ "items": {
29
+ "type": "object",
30
+ "additionalProperties": false,
31
+ "required": ["goalId", "fromRunId", "state"],
32
+ "properties": {
33
+ "goalId": { "type": "string", "minLength": 1 },
34
+ "fromRunId": { "$ref": "#/$defs/uuid" },
35
+ "state": { "const": "inherited" }
36
+ }
37
+ }
38
+ },
39
+ "warning": {
40
+ "type": "string",
41
+ "description": "Threshold warning when the submission re-triggered more leaves than revalidateThreshold (SPEC §9.2)."
42
+ },
43
+ "generatedAt": { "type": "string", "format": "date-time" }
44
+ },
45
+ "$defs": {
46
+ "uuid": {
47
+ "type": "string",
48
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
49
+ },
50
+ "sha256": {
51
+ "type": "string",
52
+ "pattern": "^([0-9a-f]{64}|sha256:[0-9a-f]{64})$"
53
+ },
54
+ "goalReport": {
55
+ "type": "object",
56
+ "additionalProperties": false,
57
+ "required": ["goalId", "state"],
58
+ "properties": {
59
+ "goalId": { "type": "string", "minLength": 1 },
60
+ "state": {
61
+ "enum": [
62
+ "pending", "running", "success", "failure", "blocked",
63
+ "needs_human", "cancelled", "invalidated", "partial", "inherited"
64
+ ]
65
+ },
66
+ "verifier": {
67
+ "type": "object",
68
+ "additionalProperties": false,
69
+ "required": ["mode"],
70
+ "properties": {
71
+ "mode": { "enum": ["programmatic", "agentic"] }
72
+ }
73
+ },
74
+ "evidence": {
75
+ "description": "Proof satisfying the contract's evidence schema. References resolve into the sandbox store; never raw artifact bytes.",
76
+ "type": "array",
77
+ "items": { "type": "object" }
78
+ },
79
+ "defect": {
80
+ "description": "Bounded human-readable reason when state=failure or needs_human.",
81
+ "type": "string"
82
+ },
83
+ "settledAt": { "type": "string", "format": "date-time" }
84
+ }
85
+ }
86
+ }
87
+ }
@@ -0,0 +1,259 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://github.com/dsh-external/dsh-dog/schemas/schema-0.2/run.schema.json",
4
+ "title": "DoG v0.2 persisted run record (runs/<run-id>.json)",
5
+ "description": "Execution state and terminal result of one dog_run. Machine-readable counterpart of SPEC §8 + §11.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": [
9
+ "runId",
10
+ "graphId",
11
+ "graphDigest",
12
+ "state",
13
+ "goals",
14
+ "createdAt",
15
+ "updatedAt"
16
+ ],
17
+ "properties": {
18
+ "runId": {
19
+ "$ref": "#/$defs/uuid"
20
+ },
21
+ "graphId": {
22
+ "type": "string",
23
+ "minLength": 1
24
+ },
25
+ "graphDigest": {
26
+ "$ref": "#/$defs/sha256"
27
+ },
28
+ "workspaceBaseDir": {
29
+ "description": "Calling session cwd; verifier workspaces are allocated under it when known.",
30
+ "type": "string",
31
+ "minLength": 1
32
+ },
33
+ "state": {
34
+ "enum": [
35
+ "running",
36
+ "completed",
37
+ "cancelled",
38
+ "failed"
39
+ ]
40
+ },
41
+ "rootState": {
42
+ "description": "Terminal root state when settled (SPEC §8).",
43
+ "enum": [
44
+ "success",
45
+ "partial_success",
46
+ "failure",
47
+ "infeasible",
48
+ "needs_replan",
49
+ "cancelled"
50
+ ]
51
+ },
52
+ "goals": {
53
+ "type": "object",
54
+ "additionalProperties": {
55
+ "$ref": "#/$defs/goalResult"
56
+ }
57
+ },
58
+ "gmDigests": {
59
+ "description": "Per-leaf grounding-material digest recorded at revalidate_select.",
60
+ "type": "object",
61
+ "additionalProperties": {
62
+ "$ref": "#/$defs/sha256"
63
+ }
64
+ },
65
+ "invocation": {
66
+ "type": "object",
67
+ "additionalProperties": false,
68
+ "required": [
69
+ "callId"
70
+ ],
71
+ "properties": {
72
+ "callId": {
73
+ "type": "string",
74
+ "minLength": 1
75
+ },
76
+ "agentSessionId": {
77
+ "type": "string",
78
+ "minLength": 1
79
+ },
80
+ "parentSessionId": {
81
+ "type": "string",
82
+ "minLength": 1
83
+ },
84
+ "invokedAt": {
85
+ "type": "string",
86
+ "format": "date-time"
87
+ }
88
+ }
89
+ },
90
+ "warning": {
91
+ "type": "string",
92
+ "description": "Bounded run warning (e.g. runtime-event persist failure); never alters a verdict."
93
+ },
94
+ "createdAt": {
95
+ "type": "string",
96
+ "format": "date-time"
97
+ },
98
+ "updatedAt": {
99
+ "type": "string",
100
+ "format": "date-time"
101
+ },
102
+ "runtimeWarning": {
103
+ "type": "string"
104
+ }
105
+ },
106
+ "$defs": {
107
+ "uuid": {
108
+ "type": "string",
109
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
110
+ },
111
+ "sha256": {
112
+ "type": "string",
113
+ "pattern": "^([0-9a-f]{64}|sha256:[0-9a-f]{64})$"
114
+ },
115
+ "goalResult": {
116
+ "type": "object",
117
+ "additionalProperties": false,
118
+ "required": [
119
+ "state"
120
+ ],
121
+ "properties": {
122
+ "state": {
123
+ "enum": [
124
+ "pending",
125
+ "running",
126
+ "success",
127
+ "failure",
128
+ "blocked",
129
+ "needs_human",
130
+ "cancelled",
131
+ "invalidated",
132
+ "partial",
133
+ "inherited"
134
+ ]
135
+ },
136
+ "reason": {
137
+ "type": "string"
138
+ },
139
+ "inheritedFrom": {
140
+ "description": "Run ID whose verification record was reused when state=inherited.",
141
+ "$ref": "#/$defs/uuid"
142
+ },
143
+ "verification": {
144
+ "type": "object",
145
+ "additionalProperties": false,
146
+ "required": [
147
+ "schemaVersion",
148
+ "runId",
149
+ "graphId",
150
+ "graphDigest",
151
+ "goalId",
152
+ "judgment",
153
+ "passed",
154
+ "at"
155
+ ],
156
+ "properties": {
157
+ "schemaVersion": {
158
+ "const": "0.1"
159
+ },
160
+ "runId": {
161
+ "$ref": "#/$defs/uuid"
162
+ },
163
+ "graphId": {
164
+ "type": "string",
165
+ "minLength": 1
166
+ },
167
+ "graphDigest": {
168
+ "$ref": "#/$defs/sha256"
169
+ },
170
+ "goalId": {
171
+ "type": "string",
172
+ "minLength": 1
173
+ },
174
+ "judgment": {
175
+ "type": "object",
176
+ "additionalProperties": false,
177
+ "required": [
178
+ "mode"
179
+ ],
180
+ "properties": {
181
+ "mode": {
182
+ "enum": [
183
+ "programmatic",
184
+ "agentic"
185
+ ]
186
+ },
187
+ "script": {
188
+ "type": "string"
189
+ },
190
+ "scriptDigest": {
191
+ "type": "string"
192
+ },
193
+ "instructionHash": {
194
+ "type": "string"
195
+ }
196
+ }
197
+ },
198
+ "gmDigest": {
199
+ "$ref": "#/$defs/sha256"
200
+ },
201
+ "passed": {
202
+ "type": [
203
+ "boolean",
204
+ "null"
205
+ ]
206
+ },
207
+ "evidence": {
208
+ "type": [
209
+ "object",
210
+ "array",
211
+ "string",
212
+ "number",
213
+ "boolean",
214
+ "null"
215
+ ]
216
+ },
217
+ "at": {
218
+ "type": "string",
219
+ "format": "date-time"
220
+ }
221
+ }
222
+ },
223
+ "agentSessions": {
224
+ "type": "array",
225
+ "items": {
226
+ "type": "object",
227
+ "additionalProperties": false,
228
+ "required": [
229
+ "sessionId",
230
+ "role",
231
+ "boundAt"
232
+ ],
233
+ "properties": {
234
+ "sessionId": {
235
+ "type": "string",
236
+ "minLength": 1
237
+ },
238
+ "parentSessionId": {
239
+ "type": "string",
240
+ "minLength": 1
241
+ },
242
+ "role": {
243
+ "enum": [
244
+ "orchestrator",
245
+ "verifier",
246
+ "reviewer"
247
+ ]
248
+ },
249
+ "boundAt": {
250
+ "type": "string",
251
+ "format": "date-time"
252
+ }
253
+ }
254
+ }
255
+ }
256
+ }
257
+ }
258
+ }
259
+ }
@@ -0,0 +1,105 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://github.com/dsh-external/dsh-dog/schemas/schema-0.2/runtime-event.schema.json",
4
+ "title": "DoG v0.2 runtime event (runtime-events/<run-id>-<goal-id>.jsonl)",
5
+ "description": "Append-only bounded diagnostic activity; one JSON object per line. Never verifier evidence. Machine-readable counterpart of SPEC §8 + §11.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": [
9
+ "runId",
10
+ "goalId",
11
+ "phase",
12
+ "state",
13
+ "at"
14
+ ],
15
+ "properties": {
16
+ "runId": {
17
+ "$ref": "#/$defs/uuid"
18
+ },
19
+ "goalId": {
20
+ "type": "string",
21
+ "minLength": 1
22
+ },
23
+ "phase": {
24
+ "description": "Operational stage of the goal in this run.",
25
+ "enum": [
26
+ "goal_started",
27
+ "dependency_blocked",
28
+ "grounding_extracted",
29
+ "workspace_allocated",
30
+ "verifier_started",
31
+ "verifier_passed",
32
+ "verifier_failed",
33
+ "verifier_inconclusive",
34
+ "composite_evaluated",
35
+ "result_inherited",
36
+ "structured_error",
37
+ "goal_settled",
38
+ "run_warning",
39
+ "verifier_released",
40
+ "verifier_bind_failed"
41
+ ]
42
+ },
43
+ "state": {
44
+ "description": "Goal state at the moment of the event.",
45
+ "enum": [
46
+ "pending",
47
+ "running",
48
+ "success",
49
+ "failure",
50
+ "blocked",
51
+ "needs_human",
52
+ "cancelled",
53
+ "invalidated",
54
+ "partial",
55
+ "inherited"
56
+ ]
57
+ },
58
+ "verifier": {
59
+ "type": "object",
60
+ "additionalProperties": false,
61
+ "required": [
62
+ "mode"
63
+ ],
64
+ "properties": {
65
+ "mode": {
66
+ "enum": [
67
+ "programmatic",
68
+ "agentic"
69
+ ]
70
+ }
71
+ }
72
+ },
73
+ "attempt": {
74
+ "type": "integer",
75
+ "minimum": 1
76
+ },
77
+ "durationMs": {
78
+ "type": "integer",
79
+ "minimum": 0
80
+ },
81
+ "reason": {
82
+ "type": "string"
83
+ },
84
+ "errorCategory": {
85
+ "type": "string"
86
+ },
87
+ "gmDigest": {
88
+ "$ref": "#/$defs/sha256"
89
+ },
90
+ "at": {
91
+ "type": "string",
92
+ "format": "date-time"
93
+ }
94
+ },
95
+ "$defs": {
96
+ "uuid": {
97
+ "type": "string",
98
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
99
+ },
100
+ "sha256": {
101
+ "type": "string",
102
+ "pattern": "^([0-9a-f]{64}|sha256:[0-9a-f]{64})$"
103
+ }
104
+ }
105
+ }