@united-workforce/cli 0.1.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 (310) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +221 -0
  3. package/dist/__tests__/adapter-json-roundtrip.test.d.ts +2 -0
  4. package/dist/__tests__/adapter-json-roundtrip.test.d.ts.map +1 -0
  5. package/dist/__tests__/adapter-json-roundtrip.test.js +147 -0
  6. package/dist/__tests__/adapter-json-roundtrip.test.js.map +1 -0
  7. package/dist/__tests__/config.test.d.ts +2 -0
  8. package/dist/__tests__/config.test.d.ts.map +1 -0
  9. package/dist/__tests__/config.test.js +685 -0
  10. package/dist/__tests__/config.test.js.map +1 -0
  11. package/dist/__tests__/current-role.test.d.ts +2 -0
  12. package/dist/__tests__/current-role.test.d.ts.map +1 -0
  13. package/dist/__tests__/current-role.test.js +401 -0
  14. package/dist/__tests__/current-role.test.js.map +1 -0
  15. package/dist/__tests__/e2e-mock-agent.test.d.ts +2 -0
  16. package/dist/__tests__/e2e-mock-agent.test.d.ts.map +1 -0
  17. package/dist/__tests__/e2e-mock-agent.test.js +401 -0
  18. package/dist/__tests__/e2e-mock-agent.test.js.map +1 -0
  19. package/dist/__tests__/include-tag.test.d.ts +2 -0
  20. package/dist/__tests__/include-tag.test.d.ts.map +1 -0
  21. package/dist/__tests__/include-tag.test.js +69 -0
  22. package/dist/__tests__/include-tag.test.js.map +1 -0
  23. package/dist/__tests__/log.test.d.ts +2 -0
  24. package/dist/__tests__/log.test.d.ts.map +1 -0
  25. package/dist/__tests__/log.test.js +161 -0
  26. package/dist/__tests__/log.test.js.map +1 -0
  27. package/dist/__tests__/moderator-evaluate.test.d.ts +2 -0
  28. package/dist/__tests__/moderator-evaluate.test.d.ts.map +1 -0
  29. package/dist/__tests__/moderator-evaluate.test.js +170 -0
  30. package/dist/__tests__/moderator-evaluate.test.js.map +1 -0
  31. package/dist/__tests__/preload.d.ts +3 -0
  32. package/dist/__tests__/preload.d.ts.map +1 -0
  33. package/dist/__tests__/preload.js +6 -0
  34. package/dist/__tests__/preload.js.map +1 -0
  35. package/dist/__tests__/prompt.test.d.ts +2 -0
  36. package/dist/__tests__/prompt.test.d.ts.map +1 -0
  37. package/dist/__tests__/prompt.test.js +111 -0
  38. package/dist/__tests__/prompt.test.js.map +1 -0
  39. package/dist/__tests__/resolve-head-hash.test.d.ts +2 -0
  40. package/dist/__tests__/resolve-head-hash.test.d.ts.map +1 -0
  41. package/dist/__tests__/resolve-head-hash.test.js +66 -0
  42. package/dist/__tests__/resolve-head-hash.test.js.map +1 -0
  43. package/dist/__tests__/setup-agent-discovery.test.d.ts +2 -0
  44. package/dist/__tests__/setup-agent-discovery.test.d.ts.map +1 -0
  45. package/dist/__tests__/setup-agent-discovery.test.js +119 -0
  46. package/dist/__tests__/setup-agent-discovery.test.js.map +1 -0
  47. package/dist/__tests__/setup-complexity.test.d.ts +2 -0
  48. package/dist/__tests__/setup-complexity.test.d.ts.map +1 -0
  49. package/dist/__tests__/setup-complexity.test.js +314 -0
  50. package/dist/__tests__/setup-complexity.test.js.map +1 -0
  51. package/dist/__tests__/setup-validate.test.d.ts +2 -0
  52. package/dist/__tests__/setup-validate.test.d.ts.map +1 -0
  53. package/dist/__tests__/setup-validate.test.js +108 -0
  54. package/dist/__tests__/setup-validate.test.js.map +1 -0
  55. package/dist/__tests__/solve-issue-tea-worktree.test.d.ts +2 -0
  56. package/dist/__tests__/solve-issue-tea-worktree.test.d.ts.map +1 -0
  57. package/dist/__tests__/solve-issue-tea-worktree.test.js +107 -0
  58. package/dist/__tests__/solve-issue-tea-worktree.test.js.map +1 -0
  59. package/dist/__tests__/spawn-agent-json.test.d.ts +2 -0
  60. package/dist/__tests__/spawn-agent-json.test.d.ts.map +1 -0
  61. package/dist/__tests__/spawn-agent-json.test.js +79 -0
  62. package/dist/__tests__/spawn-agent-json.test.js.map +1 -0
  63. package/dist/__tests__/step-read.test.d.ts +2 -0
  64. package/dist/__tests__/step-read.test.d.ts.map +1 -0
  65. package/dist/__tests__/step-read.test.js +561 -0
  66. package/dist/__tests__/step-read.test.js.map +1 -0
  67. package/dist/__tests__/step-show-json.test.d.ts +2 -0
  68. package/dist/__tests__/step-show-json.test.d.ts.map +1 -0
  69. package/dist/__tests__/step-show-json.test.js +311 -0
  70. package/dist/__tests__/step-show-json.test.js.map +1 -0
  71. package/dist/__tests__/step-timing.test.d.ts +2 -0
  72. package/dist/__tests__/step-timing.test.d.ts.map +1 -0
  73. package/dist/__tests__/step-timing.test.js +345 -0
  74. package/dist/__tests__/step-timing.test.js.map +1 -0
  75. package/dist/__tests__/store-global-cas.test.d.ts +2 -0
  76. package/dist/__tests__/store-global-cas.test.d.ts.map +1 -0
  77. package/dist/__tests__/store-global-cas.test.js +235 -0
  78. package/dist/__tests__/store-global-cas.test.js.map +1 -0
  79. package/dist/__tests__/store-storage-root.test.d.ts +2 -0
  80. package/dist/__tests__/store-storage-root.test.d.ts.map +1 -0
  81. package/dist/__tests__/store-storage-root.test.js +43 -0
  82. package/dist/__tests__/store-storage-root.test.js.map +1 -0
  83. package/dist/__tests__/store-unified-threads.test.d.ts +2 -0
  84. package/dist/__tests__/store-unified-threads.test.d.ts.map +1 -0
  85. package/dist/__tests__/store-unified-threads.test.js +189 -0
  86. package/dist/__tests__/store-unified-threads.test.js.map +1 -0
  87. package/dist/__tests__/thread-cancel-status.test.d.ts +2 -0
  88. package/dist/__tests__/thread-cancel-status.test.d.ts.map +1 -0
  89. package/dist/__tests__/thread-cancel-status.test.js +111 -0
  90. package/dist/__tests__/thread-cancel-status.test.js.map +1 -0
  91. package/dist/__tests__/thread-list-filters.test.d.ts +2 -0
  92. package/dist/__tests__/thread-list-filters.test.d.ts.map +1 -0
  93. package/dist/__tests__/thread-list-filters.test.js +442 -0
  94. package/dist/__tests__/thread-list-filters.test.js.map +1 -0
  95. package/dist/__tests__/thread-location.test.d.ts +2 -0
  96. package/dist/__tests__/thread-location.test.d.ts.map +1 -0
  97. package/dist/__tests__/thread-location.test.js +159 -0
  98. package/dist/__tests__/thread-location.test.js.map +1 -0
  99. package/dist/__tests__/thread-read-quota.test.d.ts +2 -0
  100. package/dist/__tests__/thread-read-quota.test.d.ts.map +1 -0
  101. package/dist/__tests__/thread-read-quota.test.js +546 -0
  102. package/dist/__tests__/thread-read-quota.test.js.map +1 -0
  103. package/dist/__tests__/thread-read-xml-tags.test.d.ts +2 -0
  104. package/dist/__tests__/thread-read-xml-tags.test.d.ts.map +1 -0
  105. package/dist/__tests__/thread-read-xml-tags.test.js +610 -0
  106. package/dist/__tests__/thread-read-xml-tags.test.js.map +1 -0
  107. package/dist/__tests__/thread-resume.test.d.ts +2 -0
  108. package/dist/__tests__/thread-resume.test.d.ts.map +1 -0
  109. package/dist/__tests__/thread-resume.test.js +592 -0
  110. package/dist/__tests__/thread-resume.test.js.map +1 -0
  111. package/dist/__tests__/thread-show-status.test.d.ts +2 -0
  112. package/dist/__tests__/thread-show-status.test.d.ts.map +1 -0
  113. package/dist/__tests__/thread-show-status.test.js +267 -0
  114. package/dist/__tests__/thread-show-status.test.js.map +1 -0
  115. package/dist/__tests__/thread-start-cwd-cli.test.d.ts +2 -0
  116. package/dist/__tests__/thread-start-cwd-cli.test.d.ts.map +1 -0
  117. package/dist/__tests__/thread-start-cwd-cli.test.js +130 -0
  118. package/dist/__tests__/thread-start-cwd-cli.test.js.map +1 -0
  119. package/dist/__tests__/thread-step-count.test.d.ts +2 -0
  120. package/dist/__tests__/thread-step-count.test.d.ts.map +1 -0
  121. package/dist/__tests__/thread-step-count.test.js +55 -0
  122. package/dist/__tests__/thread-step-count.test.js.map +1 -0
  123. package/dist/__tests__/thread-suspend-step.test.d.ts +2 -0
  124. package/dist/__tests__/thread-suspend-step.test.d.ts.map +1 -0
  125. package/dist/__tests__/thread-suspend-step.test.js +155 -0
  126. package/dist/__tests__/thread-suspend-step.test.js.map +1 -0
  127. package/dist/__tests__/thread-suspended-display.test.d.ts +2 -0
  128. package/dist/__tests__/thread-suspended-display.test.d.ts.map +1 -0
  129. package/dist/__tests__/thread-suspended-display.test.js +247 -0
  130. package/dist/__tests__/thread-suspended-display.test.js.map +1 -0
  131. package/dist/__tests__/thread-test-helpers.d.ts +4 -0
  132. package/dist/__tests__/thread-test-helpers.d.ts.map +1 -0
  133. package/dist/__tests__/thread-test-helpers.js +23 -0
  134. package/dist/__tests__/thread-test-helpers.js.map +1 -0
  135. package/dist/__tests__/thread.test.d.ts +2 -0
  136. package/dist/__tests__/thread.test.d.ts.map +1 -0
  137. package/dist/__tests__/thread.test.js +883 -0
  138. package/dist/__tests__/thread.test.js.map +1 -0
  139. package/dist/__tests__/validate-semantic.test.d.ts +2 -0
  140. package/dist/__tests__/validate-semantic.test.d.ts.map +1 -0
  141. package/dist/__tests__/validate-semantic.test.js +408 -0
  142. package/dist/__tests__/validate-semantic.test.js.map +1 -0
  143. package/dist/__tests__/workflow-resolution.test.d.ts +2 -0
  144. package/dist/__tests__/workflow-resolution.test.d.ts.map +1 -0
  145. package/dist/__tests__/workflow-resolution.test.js +308 -0
  146. package/dist/__tests__/workflow-resolution.test.js.map +1 -0
  147. package/dist/background/background.d.ts +38 -0
  148. package/dist/background/background.d.ts.map +1 -0
  149. package/dist/background/background.js +123 -0
  150. package/dist/background/background.js.map +1 -0
  151. package/dist/background/index.d.ts +3 -0
  152. package/dist/background/index.d.ts.map +1 -0
  153. package/dist/background/index.js +2 -0
  154. package/dist/background/index.js.map +1 -0
  155. package/dist/background/types.d.ts +9 -0
  156. package/dist/background/types.d.ts.map +1 -0
  157. package/dist/background/types.js +2 -0
  158. package/dist/background/types.js.map +1 -0
  159. package/dist/cli.d.ts +3 -0
  160. package/dist/cli.d.ts.map +1 -0
  161. package/dist/cli.js +535 -0
  162. package/dist/cli.js.map +1 -0
  163. package/dist/commands/config.d.ts +41 -0
  164. package/dist/commands/config.d.ts.map +1 -0
  165. package/dist/commands/config.js +252 -0
  166. package/dist/commands/config.js.map +1 -0
  167. package/dist/commands/log.d.ts +26 -0
  168. package/dist/commands/log.d.ts.map +1 -0
  169. package/dist/commands/log.js +79 -0
  170. package/dist/commands/log.js.map +1 -0
  171. package/dist/commands/prompt.d.ts +6 -0
  172. package/dist/commands/prompt.d.ts.map +1 -0
  173. package/dist/commands/prompt.js +67 -0
  174. package/dist/commands/prompt.js.map +1 -0
  175. package/dist/commands/setup.d.ts +73 -0
  176. package/dist/commands/setup.d.ts.map +1 -0
  177. package/dist/commands/setup.js +522 -0
  178. package/dist/commands/setup.js.map +1 -0
  179. package/dist/commands/shared.d.ts +31 -0
  180. package/dist/commands/shared.d.ts.map +1 -0
  181. package/dist/commands/shared.js +154 -0
  182. package/dist/commands/shared.js.map +1 -0
  183. package/dist/commands/step.d.ts +18 -0
  184. package/dist/commands/step.d.ts.map +1 -0
  185. package/dist/commands/step.js +257 -0
  186. package/dist/commands/step.js.map +1 -0
  187. package/dist/commands/thread-time-parser.d.ts +6 -0
  188. package/dist/commands/thread-time-parser.d.ts.map +1 -0
  189. package/dist/commands/thread-time-parser.js +22 -0
  190. package/dist/commands/thread-time-parser.js.map +1 -0
  191. package/dist/commands/thread.d.ts +38 -0
  192. package/dist/commands/thread.d.ts.map +1 -0
  193. package/dist/commands/thread.js +1087 -0
  194. package/dist/commands/thread.js.map +1 -0
  195. package/dist/commands/workflow.d.ts +24 -0
  196. package/dist/commands/workflow.d.ts.map +1 -0
  197. package/dist/commands/workflow.js +138 -0
  198. package/dist/commands/workflow.js.map +1 -0
  199. package/dist/format.d.ts +3 -0
  200. package/dist/format.d.ts.map +1 -0
  201. package/dist/format.js +10 -0
  202. package/dist/format.js.map +1 -0
  203. package/dist/include.d.ts +12 -0
  204. package/dist/include.d.ts.map +1 -0
  205. package/dist/include.js +35 -0
  206. package/dist/include.js.map +1 -0
  207. package/dist/moderator/__tests__/evaluate.test.d.ts +2 -0
  208. package/dist/moderator/__tests__/evaluate.test.d.ts.map +1 -0
  209. package/dist/moderator/__tests__/evaluate.test.js +167 -0
  210. package/dist/moderator/__tests__/evaluate.test.js.map +1 -0
  211. package/dist/moderator/evaluate.d.ts +6 -0
  212. package/dist/moderator/evaluate.d.ts.map +1 -0
  213. package/dist/moderator/evaluate.js +65 -0
  214. package/dist/moderator/evaluate.js.map +1 -0
  215. package/dist/moderator/index.d.ts +4 -0
  216. package/dist/moderator/index.d.ts.map +1 -0
  217. package/dist/moderator/index.js +3 -0
  218. package/dist/moderator/index.js.map +1 -0
  219. package/dist/moderator/types.d.ts +25 -0
  220. package/dist/moderator/types.d.ts.map +1 -0
  221. package/dist/moderator/types.js +4 -0
  222. package/dist/moderator/types.js.map +1 -0
  223. package/dist/schemas.d.ts +16 -0
  224. package/dist/schemas.d.ts.map +1 -0
  225. package/dist/schemas.js +17 -0
  226. package/dist/schemas.js.map +1 -0
  227. package/dist/store.d.ts +77 -0
  228. package/dist/store.d.ts.map +1 -0
  229. package/dist/store.js +392 -0
  230. package/dist/store.js.map +1 -0
  231. package/dist/validate-semantic.d.ts +7 -0
  232. package/dist/validate-semantic.d.ts.map +1 -0
  233. package/dist/validate-semantic.js +263 -0
  234. package/dist/validate-semantic.js.map +1 -0
  235. package/dist/validate.d.ts +16 -0
  236. package/dist/validate.d.ts.map +1 -0
  237. package/dist/validate.js +115 -0
  238. package/dist/validate.js.map +1 -0
  239. package/package.json +44 -0
  240. package/src/__tests__/adapter-json-roundtrip.test.ts +181 -0
  241. package/src/__tests__/config.test.ts +740 -0
  242. package/src/__tests__/current-role.test.ts +438 -0
  243. package/src/__tests__/e2e-mock-agent.test.ts +498 -0
  244. package/src/__tests__/fixtures/e2e-completed-resume.mock.yaml +15 -0
  245. package/src/__tests__/fixtures/e2e-count.mock.yaml +19 -0
  246. package/src/__tests__/fixtures/e2e-count.workflow.yaml +45 -0
  247. package/src/__tests__/fixtures/e2e-linear.mock.yaml +13 -0
  248. package/src/__tests__/fixtures/e2e-linear.workflow.yaml +32 -0
  249. package/src/__tests__/fixtures/e2e-loop.mock.yaml +25 -0
  250. package/src/__tests__/fixtures/e2e-loop.workflow.yaml +36 -0
  251. package/src/__tests__/fixtures/e2e-mismatch.mock.yaml +16 -0
  252. package/src/__tests__/fixtures/e2e-mustache.mock.yaml +15 -0
  253. package/src/__tests__/fixtures/e2e-mustache.workflow.yaml +34 -0
  254. package/src/__tests__/fixtures/e2e-suspend.mock.yaml +14 -0
  255. package/src/__tests__/fixtures/e2e-suspend.workflow.yaml +24 -0
  256. package/src/__tests__/include-tag.test.ts +84 -0
  257. package/src/__tests__/log.test.ts +181 -0
  258. package/src/__tests__/moderator-evaluate.test.ts +186 -0
  259. package/src/__tests__/preload.ts +7 -0
  260. package/src/__tests__/prompt.test.ts +129 -0
  261. package/src/__tests__/resolve-head-hash.test.ts +86 -0
  262. package/src/__tests__/setup-agent-discovery.test.ts +167 -0
  263. package/src/__tests__/setup-complexity.test.ts +381 -0
  264. package/src/__tests__/setup-validate.test.ts +148 -0
  265. package/src/__tests__/solve-issue-tea-worktree.test.ts +144 -0
  266. package/src/__tests__/spawn-agent-json.test.ts +100 -0
  267. package/src/__tests__/step-read.test.ts +632 -0
  268. package/src/__tests__/step-show-json.test.ts +373 -0
  269. package/src/__tests__/step-timing.test.ts +392 -0
  270. package/src/__tests__/store-global-cas.test.ts +308 -0
  271. package/src/__tests__/store-storage-root.test.ts +49 -0
  272. package/src/__tests__/store-unified-threads.test.ts +235 -0
  273. package/src/__tests__/thread-cancel-status.test.ts +138 -0
  274. package/src/__tests__/thread-list-filters.test.ts +572 -0
  275. package/src/__tests__/thread-location.test.ts +186 -0
  276. package/src/__tests__/thread-read-quota.test.ts +613 -0
  277. package/src/__tests__/thread-read-xml-tags.test.ts +717 -0
  278. package/src/__tests__/thread-resume.test.ts +710 -0
  279. package/src/__tests__/thread-show-status.test.ts +317 -0
  280. package/src/__tests__/thread-start-cwd-cli.test.ts +164 -0
  281. package/src/__tests__/thread-step-count.test.ts +70 -0
  282. package/src/__tests__/thread-suspend-step.test.ts +181 -0
  283. package/src/__tests__/thread-suspended-display.test.ts +287 -0
  284. package/src/__tests__/thread-test-helpers.ts +37 -0
  285. package/src/__tests__/thread.test.ts +1025 -0
  286. package/src/__tests__/validate-semantic.test.ts +474 -0
  287. package/src/__tests__/workflow-resolution.test.ts +421 -0
  288. package/src/background/background.ts +147 -0
  289. package/src/background/index.ts +11 -0
  290. package/src/background/types.ts +9 -0
  291. package/src/cli.ts +692 -0
  292. package/src/commands/config.ts +304 -0
  293. package/src/commands/log.ts +116 -0
  294. package/src/commands/prompt.ts +81 -0
  295. package/src/commands/setup.ts +603 -0
  296. package/src/commands/shared.ts +227 -0
  297. package/src/commands/step.ts +343 -0
  298. package/src/commands/thread-time-parser.ts +23 -0
  299. package/src/commands/thread.ts +1575 -0
  300. package/src/commands/workflow.ts +213 -0
  301. package/src/format.ts +12 -0
  302. package/src/include.ts +37 -0
  303. package/src/moderator/__tests__/evaluate.test.ts +199 -0
  304. package/src/moderator/evaluate.ts +80 -0
  305. package/src/moderator/index.ts +7 -0
  306. package/src/moderator/types.ts +24 -0
  307. package/src/schemas.ts +26 -0
  308. package/src/store.ts +479 -0
  309. package/src/validate-semantic.ts +304 -0
  310. package/src/validate.ts +137 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 United Workforce
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,221 @@
1
+ # @united-workforce/cli
2
+
3
+ `uwf` CLI — thread lifecycle, workflow registry, CAS inspection, and setup.
4
+
5
+ ## Overview
6
+
7
+ Layer 4 entry point for the workflow engine. The `uwf` binary orchestrates one step per invocation: load thread head from `threads.yaml`, run the moderator, spawn the configured agent CLI, run extract, append a CAS step node, and update the head pointer (or archive when `$END`).
8
+
9
+ ### Four-Layer Architecture
10
+
11
+ ```
12
+ workflow → thread → step → turn
13
+ 模板定义 执行实例 单步结果 agent内部交互
14
+ ```
15
+
16
+ - **Workflow** (layer 1): YAML template with roles and routing graph
17
+ - **Thread** (layer 2): Single workflow execution instance
18
+ - **Step** (layer 3): One moderator→agent→extract cycle
19
+ - **Turn** (layer 4): Agent-internal interactions (use `step show` or CAS to inspect)
20
+
21
+ This package has no library `src/index.ts` — it is consumed as a CLI binary only.
22
+
23
+ **Dependencies:** `@ocas/core`, `@ocas/fs`, `@united-workforce/util-agent`, `@united-workforce/protocol`, `@united-workforce/util`, `commander`, `dotenv`, `mustache`, `yaml`
24
+
25
+ ## Installation
26
+
27
+ Included as the `uwf` binary when you install `@united-workforce/cli`:
28
+
29
+ ```bash
30
+ bun add -g @united-workforce/cli
31
+ # or from the monorepo:
32
+ bun link packages/cli
33
+ ```
34
+
35
+ ## CLI Usage
36
+
37
+ ### Global options
38
+
39
+ ```
40
+ -V, --version Show version
41
+ --format <json|yaml> Output format (default: json)
42
+ -h, --help Show help
43
+ ```
44
+
45
+ ### Thread (Layer 2: Execution Instances)
46
+
47
+ | Command | Description |
48
+ |---------|-------------|
49
+ | `uwf thread start <workflow> -p <prompt>` | Create a thread without executing |
50
+ | `uwf thread exec <thread-id> [--agent <cmd>] [-c <count>] [--background]` | Execute one or more moderator→agent→extract cycles |
51
+ | `uwf thread show <thread-id>` | Show thread head pointer |
52
+ | `uwf thread list [--status <status>] [--after <date>] [--before <date>] [--skip <n>] [--take <n>]` | List threads filtered by status (idle, running, completed, active, or comma-separated), time range (ISO or relative like '7d'), with pagination |
53
+ | `uwf thread read <thread-id> [--quota N] [--before <hash>] [--start]` | Render thread as readable markdown |
54
+
55
+ `thread read`, `step list`, and `step show` work on both active and completed threads.
56
+ | `uwf thread stop <thread-id>` | Stop background execution (keep thread active) |
57
+ | `uwf thread cancel <thread-id>` | Cancel thread (stop + archive to history) |
58
+
59
+ Examples:
60
+
61
+ ```bash
62
+ uwf thread start solve-issue -p "Fix the login redirect bug"
63
+ uwf thread exec 01ARZ3NDEKTSV4RRFFQ69G5FAV
64
+ uwf thread exec 01ARZ3NDEKTSV4RRFFQ69G5FAV -c 3 --agent uwf-builtin
65
+ uwf thread exec 01ARZ3NDEKTSV4RRFFQ69G5FAV --background
66
+ uwf thread list --status running
67
+ uwf thread list --status active
68
+ uwf thread list --status idle,completed
69
+ uwf thread list --after 7d --take 10
70
+ uwf thread read 01ARZ3NDEKTSV4RRFFQ69G5FAV --quota 8000
71
+ uwf thread stop 01ARZ3NDEKTSV4RRFFQ69G5FAV
72
+ ```
73
+
74
+ ### Step (Layer 3: Single Cycle Results)
75
+
76
+ | Command | Description |
77
+ |---------|-------------|
78
+ | `uwf step list <thread-id>` | List all steps in a thread chronologically |
79
+ | `uwf step show <step-hash>` | Show step metadata and frontmatter |
80
+ | `uwf step read <step-hash> [--quota <chars>]` | Read a step's turns as human-readable markdown |
81
+ | `uwf step fork <step-hash>` | Fork a thread from a specific step |
82
+
83
+ Examples:
84
+
85
+ ```bash
86
+ uwf step list 01ARZ3NDEKTSV4RRFFQ69G5FAV
87
+ uwf step show 32GCDE899RRQ3
88
+ uwf step read 32GCDE899RRQ3 --quota 2000
89
+ uwf step fork 32GCDE899RRQ3
90
+ ```
91
+
92
+ ### Workflow (Layer 1: Templates)
93
+
94
+ | Command | Description |
95
+ |---------|-------------|
96
+ | `uwf workflow add <file.yaml>` | Register a workflow from YAML |
97
+ | `uwf workflow show <name-or-hash>` | Show workflow definition |
98
+ | `uwf workflow list` | List registered workflows |
99
+
100
+ ### CAS
101
+
102
+ Use the [`ocas`](https://www.npmjs.com/package/@ocas/cli) CLI for direct CAS operations (`~/.ocas/` store, shared with `uwf`):
103
+
104
+ | Command | Description |
105
+ |---------|-------------|
106
+ | `ocas get <hash> [--timestamp]` | Read a CAS node |
107
+ | `ocas put <type-hash> <data>` | Store a node, print hash |
108
+ | `ocas has <hash>` | Check existence |
109
+ | `ocas refs <hash>` | List direct references |
110
+ | `ocas walk <hash>` | Recursive traversal |
111
+ | `ocas reindex` | Rebuild type index |
112
+ | `ocas schema list` | List registered schemas |
113
+ | `ocas schema get <hash>` | Show a schema |
114
+
115
+ ### Setup
116
+
117
+ ```bash
118
+ uwf setup
119
+ uwf setup --provider openai --base-url https://api.openai.com/v1 \
120
+ --api-key sk-... --model gpt-4o --agent hermes
121
+ ```
122
+
123
+ Config: `~/.uwf/config.yaml` (includes API keys).
124
+
125
+ ### Skill
126
+
127
+ | Command | Description |
128
+ |---------|-------------|
129
+ | `uwf skill cli` | Print markdown reference of all uwf commands (for agent skills) |
130
+
131
+ ### Log
132
+
133
+ | Command | Description |
134
+ |---------|-------------|
135
+ | `uwf log list` | List log files with sizes |
136
+ | `uwf log show [--thread <id>] [--process <pid>] [--date YYYY-MM-DD]` | Show filtered log entries |
137
+ | `uwf log clean [--before YYYY-MM-DD]` | Delete old log files |
138
+
139
+ ## Migration Guide
140
+
141
+ ### Breaking Changes (v0.x → v1.x)
142
+
143
+ The CLI was reorganized to clarify the four-layer architecture. **No backward compatibility** — old commands have been removed.
144
+
145
+ #### Renamed Commands
146
+
147
+ | Old Command | New Command | Notes |
148
+ |------------|-------------|-------|
149
+ | `workflow put` | `workflow add` | More intuitive verb |
150
+ | `thread step` | `thread exec` | Eliminates ambiguity with "step" noun |
151
+ | `thread list --all` | `thread list --status completed` | Unified status filtering |
152
+
153
+ #### Removed Commands (Merged)
154
+
155
+ | Old Command | New Command | Notes |
156
+ |------------|-------------|-------|
157
+ | `thread running` | `thread list --status running` | Merged into unified list |
158
+
159
+ #### Removed Commands (Split)
160
+
161
+ | Old Command | New Commands | Notes |
162
+ |------------|-------------|-------|
163
+ | `thread kill` | `thread stop` or `thread cancel` | `stop` keeps thread active, `cancel` archives it |
164
+
165
+ #### Moved Commands
166
+
167
+ | Old Command | New Command | Notes |
168
+ |------------|-------------|-------|
169
+ | `thread steps` | `step list` | Moved to step layer |
170
+ | `thread step-details` | `step show` | Moved to step layer |
171
+ | `thread fork` | `step fork` | Moved to step layer (forks are step-based) |
172
+
173
+ #### Deprecation Errors
174
+
175
+ Old commands now show helpful error messages:
176
+
177
+ ```bash
178
+ $ uwf thread step 01ARZ3NDEKTSV4RRFFQ69G5FAV
179
+ Error: Command 'thread step' has been removed.
180
+ Use 'thread exec' instead.
181
+
182
+ For more information, see: uwf help thread exec
183
+ ```
184
+
185
+ ## Internal Structure
186
+
187
+ ```
188
+ src/
189
+ ├── cli.ts Commander entrypoint, command registration
190
+ ├── format.ts JSON/YAML output formatting
191
+ ├── store.ts CAS store + registry initialization
192
+ ├── validate.ts Workflow YAML validation
193
+ ├── schemas.ts CLI-local schema registration
194
+ ├── moderator/ Status-based graph evaluator (next role or $END)
195
+ └── commands/
196
+ ├── thread.ts Thread lifecycle and exec
197
+ ├── step.ts Step operations (list/show/read/fork)
198
+ ├── workflow.ts Workflow registry (add/show/list)
199
+ ├── cas.ts CAS inspection and schema ops
200
+ ├── setup.ts Interactive/non-interactive setup
201
+ ├── skill.ts Built-in skill references
202
+ └── log.ts Process debug log management
203
+ ```
204
+
205
+ ## Configuration
206
+
207
+ | File | Purpose |
208
+ |------|---------|
209
+ | `~/.uwf/config.yaml` | Providers, models, default agent |
210
+ | `~/.uwf/.env` | API keys (referenced by `apiKeyEnv` in config) |
211
+ | `~/.uwf/registry.yaml` | Workflow name → CAS hash |
212
+ | `~/.uwf/threads.yaml` | Active thread head pointers |
213
+ | `~/.ocas/` | Content-addressed node storage (unified CAS store, shared with `ocas` CLI) |
214
+
215
+ ### Environment Variables
216
+
217
+ | Variable | Purpose | Default |
218
+ |----------|---------|---------|
219
+ | `OCAS_HOME` | Override the global CAS directory location | `~/.ocas` |
220
+ | `UWF_HOME` | Override the workflow metadata storage root | `~/.uwf` |
221
+
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=adapter-json-roundtrip.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"adapter-json-roundtrip.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/adapter-json-roundtrip.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,147 @@
1
+ import { execFileSync } from "node:child_process";
2
+ import { mkdir, mkdtemp, rm, writeFile } from "node:fs/promises";
3
+ import { tmpdir } from "node:os";
4
+ import { dirname, join } from "node:path";
5
+ import { fileURLToPath } from "node:url";
6
+ import { putSchema } from "@ocas/core";
7
+ import { openStore } from "@ocas/fs";
8
+ import { afterEach, beforeEach, describe, expect, test } from "vitest";
9
+ import { registerUwfSchemas } from "../schemas.js";
10
+ import { seedThreads } from "./thread-test-helpers.js";
11
+ // ── schemas ──────────────────────────────────────────────────────────────────
12
+ const OUTPUT_SCHEMA = {
13
+ type: "object",
14
+ properties: {
15
+ $status: { type: "string", enum: ["done", "failed"] },
16
+ result: { type: "string" },
17
+ },
18
+ required: ["$status"],
19
+ additionalProperties: false,
20
+ };
21
+ // ── fixture ──────────────────────────────────────────────────────────────────
22
+ let tmpDir;
23
+ beforeEach(async () => {
24
+ tmpDir = await mkdtemp(join(tmpdir(), "cli-uwf-roundtrip-test-"));
25
+ });
26
+ afterEach(async () => {
27
+ await rm(tmpDir, { recursive: true, force: true });
28
+ });
29
+ describe("C1: adapter JSON round-trip integration", () => {
30
+ test("mock agent outputs JSON, CLI parses it and updates thread head in CAS", async () => {
31
+ // 1. Set up CAS store with workflow, start node, and output schema
32
+ const casDir = join(tmpDir, "cas");
33
+ await mkdir(casDir, { recursive: true });
34
+ const store = await openStore(casDir);
35
+ const schemas = await registerUwfSchemas(store);
36
+ const outputSchemaHash = await putSchema(store, OUTPUT_SCHEMA);
37
+ const workflowHash = await store.cas.put(schemas.workflow, {
38
+ name: "test-roundtrip",
39
+ description: "roundtrip integration test",
40
+ roles: {
41
+ worker: {
42
+ description: "Worker role",
43
+ goal: "Do work",
44
+ capabilities: [],
45
+ procedure: "work",
46
+ output: "result",
47
+ frontmatter: outputSchemaHash,
48
+ },
49
+ },
50
+ graph: {
51
+ $START: { _: { role: "worker", prompt: "Do the work", location: null } },
52
+ worker: { done: { role: "$END", prompt: "completed", location: null } },
53
+ },
54
+ });
55
+ const startHash = await store.cas.put(schemas.startNode, {
56
+ workflow: workflowHash,
57
+ prompt: "Test round-trip task",
58
+ });
59
+ process.env.OCAS_HOME = casDir;
60
+ const threadId = "01ROUNDTRIPTEST0000000000";
61
+ await seedThreads(tmpDir, { [threadId]: startHash });
62
+ // 2. Pre-create CAS nodes that the mock agent would produce
63
+ const outputHash = await store.cas.put(outputSchemaHash, {
64
+ $status: "done",
65
+ result: "test-ok",
66
+ });
67
+ // Use text schema for detail (simple placeholder)
68
+ const detailHash = await store.cas.put(schemas.text, "mock detail");
69
+ const startedAtMs = 1716600000000;
70
+ const completedAtMs = 1716600001500;
71
+ const stepHash = await store.cas.put(schemas.stepNode, {
72
+ start: startHash,
73
+ prev: null,
74
+ role: "worker",
75
+ output: outputHash,
76
+ detail: detailHash,
77
+ agent: "uwf-mock",
78
+ edgePrompt: "Do the work",
79
+ startedAtMs,
80
+ completedAtMs,
81
+ cwd: tmpDir,
82
+ });
83
+ // 3. Create a minimal mock agent shell script that just outputs JSON
84
+ // The step node is already in CAS — the agent just needs to print the JSON line
85
+ const mockAgentPath = join(tmpDir, "mock-agent.sh");
86
+ const adapterJson = JSON.stringify({
87
+ stepHash,
88
+ detailHash,
89
+ role: "worker",
90
+ frontmatter: { $status: "done", result: "test-ok" },
91
+ body: "",
92
+ startedAtMs,
93
+ completedAtMs,
94
+ });
95
+ await writeFile(mockAgentPath, `#!/bin/sh\necho '${adapterJson}'\n`, { mode: 0o755 });
96
+ // 4. Write config.yaml
97
+ const configPath = join(tmpDir, "config.yaml");
98
+ await writeFile(configPath, `defaultAgent: uwf-hermes\ndefaultModel: test-model\nagentOverrides: null\nagents: {}\nproviders: {}\nmodels: {}\n`);
99
+ // 5. Run CLI with agent override pointing to our mock
100
+ const cliPath = join(dirname(fileURLToPath(import.meta.url)), "..", "..", "dist", "cli.js");
101
+ let stdout;
102
+ let stderr;
103
+ let exitCode;
104
+ try {
105
+ stdout = execFileSync(process.execPath, [cliPath, "thread", "exec", threadId, "--agent", mockAgentPath], {
106
+ encoding: "utf8",
107
+ stdio: ["ignore", "pipe", "pipe"],
108
+ env: {
109
+ ...process.env,
110
+ UWF_HOME: tmpDir,
111
+ OCAS_HOME: casDir,
112
+ },
113
+ cwd: tmpDir,
114
+ timeout: 30000,
115
+ });
116
+ stderr = "";
117
+ exitCode = 0;
118
+ }
119
+ catch (e) {
120
+ const err = e;
121
+ stdout = err.stdout ?? "";
122
+ stderr = err.stderr ?? "";
123
+ exitCode = err.status ?? 1;
124
+ }
125
+ // 6. Verify
126
+ if (exitCode !== 0) {
127
+ throw new Error(`CLI exited with code ${exitCode}\nstdout: ${stdout}\nstderr: ${stderr}`);
128
+ }
129
+ // Parse CLI output
130
+ const cliOutput = JSON.parse(stdout.trim());
131
+ expect(cliOutput).toHaveProperty("thread", threadId);
132
+ expect(cliOutput).toHaveProperty("head", stepHash);
133
+ expect(cliOutput.head).toMatch(/^[0-9A-HJ-NP-TV-Z]{13}$/);
134
+ // Verify the CAS step node exists and has correct metadata
135
+ const storeAfter = await openStore(casDir);
136
+ const stepNode = storeAfter.cas.get(cliOutput.head);
137
+ expect(stepNode).not.toBeNull();
138
+ const payload = stepNode.payload;
139
+ expect(payload.role).toBe("worker");
140
+ expect(payload.agent).toBe("uwf-mock");
141
+ expect(payload.startedAtMs).toBe(1716600000000);
142
+ expect(payload.completedAtMs).toBe(1716600001500);
143
+ expect(payload.output).toBe(outputHash);
144
+ expect(payload.detail).toBe(detailHash);
145
+ });
146
+ });
147
+ //# sourceMappingURL=adapter-json-roundtrip.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"adapter-json-roundtrip.test.js","sourceRoot":"","sources":["../../src/__tests__/adapter-json-roundtrip.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AACvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEvD,gFAAgF;AAEhF,MAAM,aAAa,GAAG;IACpB,IAAI,EAAE,QAAiB;IACvB,UAAU,EAAE;QACV,OAAO,EAAE,EAAE,IAAI,EAAE,QAAiB,EAAE,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC,EAAE;QAC9D,MAAM,EAAE,EAAE,IAAI,EAAE,QAAiB,EAA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