@turri-dev/cli 0.4.3-next.aea3ca1 → 0.5.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 (481) hide show
  1. package/README.md +26 -3
  2. package/dist/banner.js +259 -0
  3. package/dist/capture-cli.js +59 -0
  4. package/dist/chat-commands.js +9 -63
  5. package/dist/chat-models.js +17 -15
  6. package/dist/chat-tab-header.js +90 -0
  7. package/dist/chat-tabs.js +100 -0
  8. package/dist/chat-terminal.js +162 -54
  9. package/dist/chat-waiting.js +0 -20
  10. package/dist/cli-options.js +11 -7
  11. package/dist/cli-root.js +141 -0
  12. package/dist/cli.js +40 -28
  13. package/dist/conform-cli.js +4 -6
  14. package/dist/cultivate-cli.js +65 -97
  15. package/dist/doctor-cli.js +99 -0
  16. package/dist/drift-cli.js +2 -7
  17. package/dist/entry-renderers.js +107 -0
  18. package/dist/extension.js +14 -3211
  19. package/dist/init-config-cli.js +218 -0
  20. package/dist/launch-cli.js +55 -91
  21. package/dist/lineage-cli.js +2 -4
  22. package/dist/loop-cli.js +118 -233
  23. package/dist/panel-view.js +409 -0
  24. package/dist/parse-cli.js +5 -2
  25. package/dist/pi-launch.js +39 -13
  26. package/dist/pi-themes.js +21 -0
  27. package/dist/plain-code-blocks.js +56 -0
  28. package/dist/pointer-hover.js +48 -0
  29. package/dist/print-mode.js +20 -0
  30. package/dist/question-dialog.js +26 -3
  31. package/dist/quiet.js +7 -106
  32. package/dist/regenerate/diff-view.js +6 -87
  33. package/dist/regenerate/jobs-tree.js +7 -18
  34. package/dist/regenerate/side-panel.js +158 -22
  35. package/dist/regenerate/spec-map-view.js +25 -70
  36. package/dist/regenerate-cli.js +7 -11
  37. package/dist/skill-progress.js +25 -0
  38. package/dist/skill-report.js +52 -0
  39. package/dist/terminal-marks.js +21 -0
  40. package/dist/terminal-notifications.js +219 -0
  41. package/dist/terminal-view.js +239 -0
  42. package/dist/turri-versions.js +64 -6
  43. package/docs/README.md +4 -2
  44. package/docs/capture.md +126 -0
  45. package/docs/chats.md +14 -10
  46. package/docs/claude-subscription.md +1 -1
  47. package/docs/config.md +20 -8
  48. package/docs/development.md +30 -61
  49. package/docs/headless.md +3 -1
  50. package/docs/hosting.md +3 -251
  51. package/docs/installation.md +5 -3
  52. package/docs/launch.md +3 -3
  53. package/docs/regenerating.md +1 -1
  54. package/docs/sandbox.md +4 -2
  55. package/docs/sentinel.md +13 -13
  56. package/docs/theming.md +3 -3
  57. package/docs/using.md +14 -6
  58. package/package.json +13 -31
  59. package/dist/ask.d.ts +0 -90
  60. package/dist/ask.js +0 -170
  61. package/dist/background-skills.d.ts +0 -53
  62. package/dist/background-skills.js +0 -121
  63. package/dist/bedrock-region.d.ts +0 -66
  64. package/dist/bedrock-region.js +0 -144
  65. package/dist/brand.d.ts +0 -13
  66. package/dist/btw.d.ts +0 -69
  67. package/dist/btw.js +0 -174
  68. package/dist/chat-commands.d.ts +0 -25
  69. package/dist/chat-idle.d.ts +0 -7
  70. package/dist/chat-idle.js +0 -20
  71. package/dist/chat-models.d.ts +0 -22
  72. package/dist/chat-records.d.ts +0 -50
  73. package/dist/chat-records.js +0 -107
  74. package/dist/chat-scope.d.ts +0 -14
  75. package/dist/chat-scope.js +0 -15
  76. package/dist/chat-skills.d.ts +0 -17
  77. package/dist/chat-skills.js +0 -18
  78. package/dist/chat-terminal.d.ts +0 -24
  79. package/dist/chat-ui.d.ts +0 -33
  80. package/dist/chat-waiting.d.ts +0 -67
  81. package/dist/chats.d.ts +0 -338
  82. package/dist/chats.js +0 -996
  83. package/dist/cli-options.d.ts +0 -24
  84. package/dist/cli.d.ts +0 -9
  85. package/dist/config-edit.d.ts +0 -83
  86. package/dist/config-edit.js +0 -390
  87. package/dist/config.d.ts +0 -415
  88. package/dist/config.js +0 -757
  89. package/dist/conform-cli.d.ts +0 -1
  90. package/dist/conformance-switch.d.ts +0 -25
  91. package/dist/conformance-switch.js +0 -86
  92. package/dist/cultivate-cli.d.ts +0 -1
  93. package/dist/doctor-tool.d.ts +0 -11
  94. package/dist/doctor-tool.js +0 -33
  95. package/dist/drift-cli.d.ts +0 -1
  96. package/dist/environment.d.ts +0 -37
  97. package/dist/environment.js +0 -109
  98. package/dist/extension.d.ts +0 -208
  99. package/dist/genome.d.ts +0 -77
  100. package/dist/genome.js +0 -288
  101. package/dist/graph.d.ts +0 -52
  102. package/dist/graph.js +0 -247
  103. package/dist/host-session.d.ts +0 -112
  104. package/dist/host-session.js +0 -103
  105. package/dist/host.d.ts +0 -40
  106. package/dist/host.js +0 -54
  107. package/dist/identity.d.ts +0 -7
  108. package/dist/identity.js +0 -74
  109. package/dist/init-config.d.ts +0 -169
  110. package/dist/init-config.js +0 -840
  111. package/dist/installed-providers.d.ts +0 -40
  112. package/dist/installed-providers.js +0 -98
  113. package/dist/jellyfish.d.ts +0 -40
  114. package/dist/judge.d.ts +0 -25
  115. package/dist/judge.js +0 -62
  116. package/dist/launch-agent.d.ts +0 -62
  117. package/dist/launch-agent.js +0 -339
  118. package/dist/launch-cli.d.ts +0 -1
  119. package/dist/launch-session.d.ts +0 -68
  120. package/dist/launch-session.js +0 -225
  121. package/dist/launch-tools.d.ts +0 -28
  122. package/dist/launch-tools.js +0 -72
  123. package/dist/launch-track.d.ts +0 -175
  124. package/dist/launch-track.js +0 -497
  125. package/dist/lineage-cli.d.ts +0 -1
  126. package/dist/loop-cli.d.ts +0 -35
  127. package/dist/loop-tools.d.ts +0 -103
  128. package/dist/loop-tools.js +0 -357
  129. package/dist/model-check.d.ts +0 -72
  130. package/dist/model-check.js +0 -162
  131. package/dist/module-report.d.ts +0 -9
  132. package/dist/new-project.d.ts +0 -5
  133. package/dist/new-project.js +0 -31
  134. package/dist/notice.d.ts +0 -115
  135. package/dist/notice.js +0 -61
  136. package/dist/parse-cli.d.ts +0 -1
  137. package/dist/parse-tool.d.ts +0 -9
  138. package/dist/parse-tool.js +0 -33
  139. package/dist/pi-launch.d.ts +0 -1
  140. package/dist/pi-settings.d.ts +0 -4
  141. package/dist/pi.d.ts +0 -248
  142. package/dist/pi.js +0 -889
  143. package/dist/picture-row.d.ts +0 -10
  144. package/dist/plain/check.d.ts +0 -63
  145. package/dist/plain/check.js +0 -236
  146. package/dist/plain/concepts.d.ts +0 -37
  147. package/dist/plain/concepts.js +0 -283
  148. package/dist/plain/cycles.d.ts +0 -21
  149. package/dist/plain/cycles.js +0 -190
  150. package/dist/plain/errors.d.ts +0 -26
  151. package/dist/plain/errors.js +0 -50
  152. package/dist/plain/files.d.ts +0 -47
  153. package/dist/plain/files.js +0 -161
  154. package/dist/plain/graph.d.ts +0 -107
  155. package/dist/plain/graph.js +0 -194
  156. package/dist/plain/highlight.d.ts +0 -43
  157. package/dist/plain/highlight.js +0 -196
  158. package/dist/plain/index.d.ts +0 -18
  159. package/dist/plain/index.js +0 -18
  160. package/dist/plain/liquid.d.ts +0 -22
  161. package/dist/plain/liquid.js +0 -124
  162. package/dist/plain/markdown.d.ts +0 -103
  163. package/dist/plain/markdown.js +0 -330
  164. package/dist/plain/module-concepts.d.ts +0 -32
  165. package/dist/plain/module-concepts.js +0 -80
  166. package/dist/plain/parser.d.ts +0 -163
  167. package/dist/plain/parser.js +0 -930
  168. package/dist/plain/plain.tmLanguage.json +0 -150
  169. package/dist/plain/project.d.ts +0 -48
  170. package/dist/plain/project.js +0 -155
  171. package/dist/plain/spec.d.ts +0 -152
  172. package/dist/plain/spec.js +0 -265
  173. package/dist/plain/stdlib.d.ts +0 -16
  174. package/dist/plain/stdlib.js +0 -48
  175. package/dist/plain/test-plain-file.d.ts +0 -59
  176. package/dist/plain/test-plain-file.js +0 -232
  177. package/dist/plain-files.d.ts +0 -21
  178. package/dist/plain-files.js +0 -156
  179. package/dist/question-dialog.d.ts +0 -55
  180. package/dist/questioning.d.ts +0 -55
  181. package/dist/questioning.js +0 -109
  182. package/dist/quiet.d.ts +0 -34
  183. package/dist/regenerate/activity.d.ts +0 -227
  184. package/dist/regenerate/activity.js +0 -250
  185. package/dist/regenerate/agent-env.d.ts +0 -51
  186. package/dist/regenerate/agent-env.js +0 -311
  187. package/dist/regenerate/agent-shell.d.ts +0 -54
  188. package/dist/regenerate/agent-shell.js +0 -121
  189. package/dist/regenerate/arbiter.d.ts +0 -68
  190. package/dist/regenerate/arbiter.js +0 -133
  191. package/dist/regenerate/audit.d.ts +0 -69
  192. package/dist/regenerate/audit.js +0 -212
  193. package/dist/regenerate/base-folder.d.ts +0 -70
  194. package/dist/regenerate/base-folder.js +0 -186
  195. package/dist/regenerate/cases.d.ts +0 -12
  196. package/dist/regenerate/cases.js +0 -149
  197. package/dist/regenerate/change-view.d.ts +0 -23
  198. package/dist/regenerate/change-view.js +0 -153
  199. package/dist/regenerate/chunk-plan.d.ts +0 -217
  200. package/dist/regenerate/chunk-plan.js +0 -937
  201. package/dist/regenerate/codebase.d.ts +0 -21
  202. package/dist/regenerate/codebase.js +0 -75
  203. package/dist/regenerate/command-check.d.ts +0 -66
  204. package/dist/regenerate/command-check.js +0 -508
  205. package/dist/regenerate/compaction.d.ts +0 -13
  206. package/dist/regenerate/compaction.js +0 -20
  207. package/dist/regenerate/confine.d.ts +0 -69
  208. package/dist/regenerate/confine.js +0 -311
  209. package/dist/regenerate/conform.d.ts +0 -66
  210. package/dist/regenerate/conform.js +0 -132
  211. package/dist/regenerate/conformance-agents.d.ts +0 -388
  212. package/dist/regenerate/conformance-agents.js +0 -1162
  213. package/dist/regenerate/conformance.d.ts +0 -191
  214. package/dist/regenerate/conformance.js +0 -1035
  215. package/dist/regenerate/conversation-writes.d.ts +0 -10
  216. package/dist/regenerate/conversation-writes.js +0 -100
  217. package/dist/regenerate/credentials.d.ts +0 -18
  218. package/dist/regenerate/credentials.js +0 -88
  219. package/dist/regenerate/debug-log.d.ts +0 -56
  220. package/dist/regenerate/debug-log.js +0 -236
  221. package/dist/regenerate/debugger.d.ts +0 -36
  222. package/dist/regenerate/debugger.js +0 -133
  223. package/dist/regenerate/delivery.d.ts +0 -2
  224. package/dist/regenerate/diagnose-job.d.ts +0 -2
  225. package/dist/regenerate/diagnose-job.js +0 -40
  226. package/dist/regenerate/diagnose.d.ts +0 -46
  227. package/dist/regenerate/diagnose.js +0 -92
  228. package/dist/regenerate/diff-view.d.ts +0 -64
  229. package/dist/regenerate/drift.d.ts +0 -120
  230. package/dist/regenerate/drift.js +0 -285
  231. package/dist/regenerate/environment-error.d.ts +0 -167
  232. package/dist/regenerate/environment-error.js +0 -342
  233. package/dist/regenerate/failure-reports.d.ts +0 -28
  234. package/dist/regenerate/failure-reports.js +0 -79
  235. package/dist/regenerate/job-log.d.ts +0 -30
  236. package/dist/regenerate/job-log.js +0 -105
  237. package/dist/regenerate/job-panel.d.ts +0 -122
  238. package/dist/regenerate/job-panel.js +0 -339
  239. package/dist/regenerate/jobs-tree.d.ts +0 -75
  240. package/dist/regenerate/jobs.d.ts +0 -231
  241. package/dist/regenerate/jobs.js +0 -522
  242. package/dist/regenerate/lanes.d.ts +0 -16
  243. package/dist/regenerate/lanes.js +0 -32
  244. package/dist/regenerate/launch.d.ts +0 -256
  245. package/dist/regenerate/launch.js +0 -689
  246. package/dist/regenerate/ledger-view.d.ts +0 -87
  247. package/dist/regenerate/ledger-view.js +0 -325
  248. package/dist/regenerate/ledger.d.ts +0 -368
  249. package/dist/regenerate/ledger.js +0 -357
  250. package/dist/regenerate/lineage.d.ts +0 -105
  251. package/dist/regenerate/lineage.js +0 -485
  252. package/dist/regenerate/list-arguments.d.ts +0 -21
  253. package/dist/regenerate/list-arguments.js +0 -121
  254. package/dist/regenerate/loop.d.ts +0 -423
  255. package/dist/regenerate/loop.js +0 -2079
  256. package/dist/regenerate/masking.d.ts +0 -19
  257. package/dist/regenerate/masking.js +0 -95
  258. package/dist/regenerate/model-names.d.ts +0 -33
  259. package/dist/regenerate/model-names.js +0 -92
  260. package/dist/regenerate/notes.d.ts +0 -159
  261. package/dist/regenerate/notes.js +0 -446
  262. package/dist/regenerate/os-sandbox.d.ts +0 -93
  263. package/dist/regenerate/os-sandbox.js +0 -283
  264. package/dist/regenerate/panel-dock.d.ts +0 -23
  265. package/dist/regenerate/paths.d.ts +0 -110
  266. package/dist/regenerate/paths.js +0 -190
  267. package/dist/regenerate/plain-palette.d.ts +0 -34
  268. package/dist/regenerate/prompt.d.ts +0 -230
  269. package/dist/regenerate/prompt.js +0 -741
  270. package/dist/regenerate/pulse-files.d.ts +0 -14
  271. package/dist/regenerate/pulse-files.js +0 -63
  272. package/dist/regenerate/records.d.ts +0 -132
  273. package/dist/regenerate/records.js +0 -327
  274. package/dist/regenerate/regenerate.d.ts +0 -106
  275. package/dist/regenerate/regenerate.js +0 -660
  276. package/dist/regenerate/regression.d.ts +0 -58
  277. package/dist/regenerate/regression.js +0 -188
  278. package/dist/regenerate/renames.d.ts +0 -42
  279. package/dist/regenerate/renames.js +0 -185
  280. package/dist/regenerate/requires.d.ts +0 -117
  281. package/dist/regenerate/requires.js +0 -377
  282. package/dist/regenerate/resources.d.ts +0 -57
  283. package/dist/regenerate/resources.js +0 -162
  284. package/dist/regenerate/scripts-being-written.d.ts +0 -19
  285. package/dist/regenerate/scripts-being-written.js +0 -30
  286. package/dist/regenerate/self-check.d.ts +0 -29
  287. package/dist/regenerate/self-check.js +0 -119
  288. package/dist/regenerate/services.d.ts +0 -28
  289. package/dist/regenerate/services.js +0 -158
  290. package/dist/regenerate/shell.d.ts +0 -91
  291. package/dist/regenerate/shell.js +0 -320
  292. package/dist/regenerate/side-panel.d.ts +0 -59
  293. package/dist/regenerate/spec-map-view.d.ts +0 -139
  294. package/dist/regenerate/spec-map.d.ts +0 -160
  295. package/dist/regenerate/spec-map.js +0 -596
  296. package/dist/regenerate/spec-steps.d.ts +0 -180
  297. package/dist/regenerate/spec-steps.js +0 -729
  298. package/dist/regenerate/standing.d.ts +0 -28
  299. package/dist/regenerate/standing.js +0 -30
  300. package/dist/regenerate/state.d.ts +0 -21
  301. package/dist/regenerate/state.js +0 -10
  302. package/dist/regenerate/steering.d.ts +0 -56
  303. package/dist/regenerate/steering.js +0 -119
  304. package/dist/regenerate/stop-report.d.ts +0 -43
  305. package/dist/regenerate/stop-report.js +0 -160
  306. package/dist/regenerate/submit-work.d.ts +0 -44
  307. package/dist/regenerate/submit-work.js +0 -76
  308. package/dist/regenerate/test-kinds.d.ts +0 -85
  309. package/dist/regenerate/test-kinds.js +0 -171
  310. package/dist/regenerate/test-scripts.d.ts +0 -235
  311. package/dist/regenerate/test-scripts.js +0 -843
  312. package/dist/regenerate/testing-steps.d.ts +0 -52
  313. package/dist/regenerate/testing-steps.js +0 -129
  314. package/dist/regenerate/testing.d.ts +0 -150
  315. package/dist/regenerate/testing.js +0 -438
  316. package/dist/regenerate/transcript-view.d.ts +0 -21
  317. package/dist/regenerate/unit-gate.d.ts +0 -27
  318. package/dist/regenerate/unit-gate.js +0 -20
  319. package/dist/regenerate/unit-review.d.ts +0 -152
  320. package/dist/regenerate/unit-review.js +0 -361
  321. package/dist/regenerate/web.d.ts +0 -61
  322. package/dist/regenerate/web.js +0 -256
  323. package/dist/regenerate/workspace.d.ts +0 -12
  324. package/dist/regenerate/workspace.js +0 -99
  325. package/dist/regenerate-cli.d.ts +0 -1
  326. package/dist/resume-line.d.ts +0 -5
  327. package/dist/review/live.d.ts +0 -72
  328. package/dist/review/live.js +0 -166
  329. package/dist/rules.d.ts +0 -20
  330. package/dist/rules.js +0 -47
  331. package/dist/run-report.d.ts +0 -88
  332. package/dist/run-report.js +0 -338
  333. package/dist/screen-padding.d.ts +0 -28
  334. package/dist/self-invocation.d.ts +0 -36
  335. package/dist/self-invocation.js +0 -137
  336. package/dist/sentinel-chat.d.ts +0 -19
  337. package/dist/sentinel-chat.js +0 -221
  338. package/dist/sentinel-check.d.ts +0 -36
  339. package/dist/sentinel-check.js +0 -78
  340. package/dist/sentinel.d.ts +0 -107
  341. package/dist/sentinel.js +0 -599
  342. package/dist/settings.d.ts +0 -45
  343. package/dist/settings.js +0 -378
  344. package/dist/setup.d.ts +0 -97
  345. package/dist/setup.js +0 -428
  346. package/dist/skill-progress.d.ts +0 -46
  347. package/dist/skill.d.ts +0 -102
  348. package/dist/skill.js +0 -147
  349. package/dist/skills.d.ts +0 -54
  350. package/dist/skills.js +0 -111
  351. package/dist/spawn-async.d.ts +0 -18
  352. package/dist/spawn-async.js +0 -35
  353. package/dist/stack.d.ts +0 -80
  354. package/dist/stack.js +0 -206
  355. package/dist/stdlib.d.ts +0 -43
  356. package/dist/stdlib.js +0 -118
  357. package/dist/surface.d.ts +0 -5
  358. package/dist/surface.js +0 -18
  359. package/dist/terminal-images.d.ts +0 -2
  360. package/dist/test-plain-files.d.ts +0 -41
  361. package/dist/test-plain-files.js +0 -172
  362. package/dist/tools.d.ts +0 -101
  363. package/dist/tools.js +0 -242
  364. package/dist/turri-versions.d.ts +0 -71
  365. package/genome/rules/bullet-continuation.md +0 -61
  366. package/genome/rules/concise-specs-examples.md +0 -460
  367. package/genome/rules/concise-specs-integration-examples.md +0 -281
  368. package/genome/rules/concise-specs.md +0 -80
  369. package/genome/rules/definitions.md +0 -107
  370. package/genome/rules/examples/integration-embedded-testing/run_conformance_tests_java.sh +0 -161
  371. package/genome/rules/examples/integration-embedded-testing/run_unittests_java.sh +0 -50
  372. package/genome/rules/exported-concepts.md +0 -39
  373. package/genome/rules/func-specs.md +0 -164
  374. package/genome/rules/impl-reqs.md +0 -68
  375. package/genome/rules/import-modules.md +0 -49
  376. package/genome/rules/integration-embedded-testing.md +0 -273
  377. package/genome/rules/integration-embedded.md +0 -171
  378. package/genome/rules/integration-standalone.md +0 -135
  379. package/genome/rules/integrations.md +0 -136
  380. package/genome/rules/linked-resources.md +0 -76
  381. package/genome/rules/module-structure.md +0 -112
  382. package/genome/rules/project-model.md +0 -69
  383. package/genome/rules/required-concepts.md +0 -44
  384. package/genome/rules/requires-modules.md +0 -81
  385. package/genome/rules/semantic-ids.md +0 -49
  386. package/genome/rules/stdlib.md +0 -37
  387. package/genome/rules/test-plain-files.md +0 -138
  388. package/genome/rules/test-reqs.md +0 -57
  389. package/genome/rules/turri-regeneration.md +0 -66
  390. package/genome/skills/analyze-2-func-specs/SKILL.md +0 -116
  391. package/genome/skills/analyze-func-specs/SKILL.md +0 -137
  392. package/genome/skills/break-down-func-spec/SKILL.md +0 -229
  393. package/genome/skills/consolidate-concepts/SKILL.md +0 -192
  394. package/genome/skills/convert-old-syntax/SKILL.md +0 -68
  395. package/genome/skills/convert-old-syntax/references/rubric.md +0 -11
  396. package/genome/skills/debug-specs/SKILL.md +0 -194
  397. package/genome/skills/implement-conformance-testing-script/SKILL.md +0 -247
  398. package/genome/skills/implement-conformance-testing-script/assets/run_conformance_tests_cypress.ps1 +0 -337
  399. package/genome/skills/implement-conformance-testing-script/assets/run_conformance_tests_golang.ps1 +0 -111
  400. package/genome/skills/implement-conformance-testing-script/assets/run_conformance_tests_java.sh +0 -151
  401. package/genome/skills/implement-conformance-testing-script/assets/run_conformance_tests_python.ps1 +0 -103
  402. package/genome/skills/implement-conformance-testing-script/assets/run_conformance_tests_python.sh +0 -146
  403. package/genome/skills/implement-unit-testing-script/SKILL.md +0 -171
  404. package/genome/skills/implement-unit-testing-script/assets/run_unittests_flutter.ps1 +0 -87
  405. package/genome/skills/implement-unit-testing-script/assets/run_unittests_golang.ps1 +0 -73
  406. package/genome/skills/implement-unit-testing-script/assets/run_unittests_java.sh +0 -82
  407. package/genome/skills/implement-unit-testing-script/assets/run_unittests_python.ps1 +0 -81
  408. package/genome/skills/implement-unit-testing-script/assets/run_unittests_python.sh +0 -102
  409. package/genome/skills/implement-unit-testing-script/assets/run_unittests_react.ps1 +0 -87
  410. package/genome/skills/refactor-module/SKILL.md +0 -218
  411. package/genome/skills/resolve-section-ownership/SKILL.md +0 -64
  412. package/genome/skills/resolve-spec-conflict/SKILL.md +0 -102
  413. package/stdlib/backend/common.plain +0 -25
  414. package/stdlib/backend/conformance/common.plain +0 -12
  415. package/stdlib/backend/conformance/go-gin.plain +0 -9
  416. package/stdlib/backend/conformance/go-nethttp.plain +0 -9
  417. package/stdlib/backend/conformance/java-springboot.plain +0 -9
  418. package/stdlib/backend/conformance/python-django.plain +0 -9
  419. package/stdlib/backend/conformance/python-fastapi.plain +0 -9
  420. package/stdlib/backend/conformance/python-flask.plain +0 -9
  421. package/stdlib/backend/conformance/rust-axum.plain +0 -9
  422. package/stdlib/backend/conformance/typescript-express.plain +0 -9
  423. package/stdlib/backend/conformance/typescript-fastify.plain +0 -9
  424. package/stdlib/backend/conformance/typescript-nestjs.plain +0 -9
  425. package/stdlib/backend/go-gin.plain +0 -18
  426. package/stdlib/backend/go-nethttp.plain +0 -18
  427. package/stdlib/backend/java-springboot.plain +0 -19
  428. package/stdlib/backend/python-django.plain +0 -19
  429. package/stdlib/backend/python-fastapi.plain +0 -23
  430. package/stdlib/backend/python-flask.plain +0 -23
  431. package/stdlib/backend/rust-axum.plain +0 -17
  432. package/stdlib/backend/typescript-express.plain +0 -19
  433. package/stdlib/backend/typescript-fastify.plain +0 -19
  434. package/stdlib/backend/typescript-nestjs.plain +0 -19
  435. package/stdlib/cli/common.plain +0 -17
  436. package/stdlib/cli/conformance/common.plain +0 -11
  437. package/stdlib/cli/conformance/go-cobra.plain +0 -9
  438. package/stdlib/cli/conformance/go-flag.plain +0 -9
  439. package/stdlib/cli/conformance/java-picocli.plain +0 -9
  440. package/stdlib/cli/conformance/python-argparse.plain +0 -9
  441. package/stdlib/cli/conformance/python-click.plain +0 -9
  442. package/stdlib/cli/conformance/python-typer.plain +0 -9
  443. package/stdlib/cli/conformance/rust-clap.plain +0 -9
  444. package/stdlib/cli/conformance/typescript-commander.plain +0 -9
  445. package/stdlib/cli/go-cobra.plain +0 -14
  446. package/stdlib/cli/go-flag.plain +0 -14
  447. package/stdlib/cli/java-picocli.plain +0 -15
  448. package/stdlib/cli/python-argparse.plain +0 -18
  449. package/stdlib/cli/python-click.plain +0 -16
  450. package/stdlib/cli/python-typer.plain +0 -16
  451. package/stdlib/cli/rust-clap.plain +0 -14
  452. package/stdlib/cli/typescript-commander.plain +0 -17
  453. package/stdlib/frontend/angular.plain +0 -17
  454. package/stdlib/frontend/common.plain +0 -17
  455. package/stdlib/frontend/conformance/angular.plain +0 -5
  456. package/stdlib/frontend/conformance/common.plain +0 -11
  457. package/stdlib/frontend/conformance/react-vite.plain +0 -5
  458. package/stdlib/frontend/conformance/sveltekit-spa.plain +0 -5
  459. package/stdlib/frontend/conformance/vue-vite.plain +0 -5
  460. package/stdlib/frontend/react-vite.plain +0 -16
  461. package/stdlib/frontend/sveltekit-spa.plain +0 -16
  462. package/stdlib/frontend/vue-vite.plain +0 -16
  463. package/stdlib/lang/go.plain +0 -13
  464. package/stdlib/lang/java.plain +0 -12
  465. package/stdlib/lang/python.plain +0 -18
  466. package/stdlib/lang/rust.plain +0 -12
  467. package/stdlib/lang/typescript.plain +0 -13
  468. package/stdlib/library/common.plain +0 -15
  469. package/stdlib/library/conformance/common.plain +0 -9
  470. package/stdlib/library/conformance/go.plain +0 -9
  471. package/stdlib/library/conformance/java-gradle.plain +0 -9
  472. package/stdlib/library/conformance/java-maven.plain +0 -9
  473. package/stdlib/library/conformance/python.plain +0 -9
  474. package/stdlib/library/conformance/rust.plain +0 -9
  475. package/stdlib/library/conformance/typescript.plain +0 -9
  476. package/stdlib/library/go.plain +0 -12
  477. package/stdlib/library/java-gradle.plain +0 -13
  478. package/stdlib/library/java-maven.plain +0 -13
  479. package/stdlib/library/python.plain +0 -13
  480. package/stdlib/library/rust.plain +0 -12
  481. package/stdlib/library/typescript.plain +0 -15
@@ -1,112 +0,0 @@
1
- import { type AgentSession, type ExtensionFactory, type ExtensionUIContext } from "@earendil-works/pi-coding-agent";
2
- import type { AskUserIO } from "./ask.ts";
3
- import { type ChatInfo, type TurriHost } from "./chats.ts";
4
- import type { JobRegistry } from "./regenerate/jobs.ts";
5
- import type { WorkLoop } from "./regenerate/loop.ts";
6
- import type { Notice, NoticeAnswer } from "./notice.ts";
7
- import { type CheckRequest } from "./sentinel-check.ts";
8
- /**
9
- * turri's session for a host that runs its chats itself - a desktop app, an editor: the chats, each a pi session with
10
- * turri in it, on one job registry and work loop. The host shows each chat in its own way - subscribes to its session,
11
- * prompts it - and tells turri which one its person looks at (`focus`): a pulse a closed chat asked for is reported
12
- * there.
13
- */
14
- export interface TurriOptions extends Omit<TurriHost, "dialogs"> {
15
- /** pi's folder - its settings, models and credentials. Default: pi's own (`~/.pi/agent`). */
16
- agentDir?: string;
17
- /** Where the chats' conversations are saved. Default: pi's own folder for this project. */
18
- sessionDir?: string;
19
- /** The host's own extensions, built into every chat after turri's. */
20
- extensions?: ExtensionFactory[];
21
- /**
22
- * The dialogs a chat's questions are put in - ask_user's, a skill's interview, a review gate's - by the chat's id. Each
23
- * is given a `signal`, aborted when its question is over without its answer - declined, or its turn stopped - for the
24
- * host to close it.
25
- */
26
- dialogs?: (chat: string) => AskUserIO | undefined;
27
- /** What a chat's other UI calls - its notices, its working line - come to, by the chat's id. */
28
- uiContext?: (chat: string) => ExtensionUIContext | undefined;
29
- /** Reopen the chats of the last session here that has ended, in their order - as `turri --continue` does. */
30
- restore?: boolean;
31
- }
32
- export interface Turri {
33
- /** The session's job registry: every pulse any chat starts. */
34
- readonly jobs: JobRegistry;
35
- /** The session's work loop - once a chat is open: what each codebase has planned, and why. */
36
- readonly loop: WorkLoop;
37
- /** The chats, in their order. */
38
- chats(): ChatInfo[];
39
- /** A chat's pi session: to subscribe to, prompt and abort. */
40
- session(id: string): AgentSession | undefined;
41
- /** A fresh chat - or the saved one `sessionFile` is. At most nine are open. */
42
- openChat(options?: {
43
- sessionFile?: string;
44
- }): Promise<ChatInfo & {
45
- session: AgentSession;
46
- }>;
47
- /** A chat closed: its turn stopped, its conversation deleted - its pulses run on. */
48
- closeChat(id: string): Promise<void>;
49
- /** The chat the person looks at now. */
50
- focus(id: string): void;
51
- /**
52
- * ctrl+c in a chat, as the terminal has it: what the chat is doing stopped - its turn, a skill or a tool in it, a `!`
53
- * command, a compaction - and nothing in the others (`stopped`). In a chat doing nothing the session ends - every
54
- * chat let go and what launches started stopped, as `dispose` does - for the host to close what showed it (`ended`).
55
- * A second interrupt straight after one that stopped something does nothing (`ignored`); `missing` for a chat not open.
56
- */
57
- interrupt(id: string): Promise<"stopped" | "ignored" | "ended" | "missing">;
58
- /**
59
- * ctrl+c at a question, as the terminal has it: the question the chat asks now - its ask_user, a skill's interview, a
60
- * review gate's escalation - declined. The asker is told the person declined to answer and the turn goes on; the
61
- * host's dialog for it is told through its `signal`. Each question it is called at, however many in a row - it never
62
- * stops the turn. `none` when the chat asks nothing now, `missing` for a chat not open.
63
- */
64
- decline(id: string): Promise<"declined" | "none" | "missing">;
65
- /**
66
- * The notices put to the person and not yet over - the sentinel's, and turri's own: each in the chat it names. A host
67
- * hears each as it is put (`onNotice`) and as it ends (`onNoticeOver`).
68
- */
69
- notices(): Notice[];
70
- /**
71
- * The sentinel asked to check functional specs in what is launched of a module - `funcIds` each `module:func-id`, of the
72
- * module or of any module its requires chain builds on (a bare func-id is the module's own) - as it tests a launch after a
73
- * pulse: the module's own codebase's code, which holds every module its chain builds on. Nothing launched of it, the
74
- * check ends unchecked: the sentinel launches nothing. Queued behind the
75
- * sentinel's work, in a conversation of its own. Returns the check's id - its notices and its conclusion carry it - or
76
- * why it was refused: the sentinel off or not started this session, a module not there or that does not parse, a
77
- * module outside its chain, a func-id a module does not have, one not built in its codebase as its ***plain has it now.
78
- */
79
- check(request: CheckRequest): {
80
- check: string;
81
- } | {
82
- refused: string;
83
- };
84
- /**
85
- * Every value /settings offers for a setting after `typed` - what its completions compute, in their order, but
86
- * whole: uncapped, and without "unset", which a host draws itself; the values alone, not `<key> <value>`. A model
87
- * setting's are every model of every provider signed in to, from the model registry the chats use - and after a colon,
88
- * `harness-model amazon-bedrock/global.anthropic.claude-opus-5-5:`, that model's thinking levels. An unknown key gives none.
89
- */
90
- settingChoices(key: string, typed?: string): string[];
91
- /**
92
- * Conformance tests turned on, as /conform does before it tests - the person's decision, a host's switch for it:
93
- * `conformance-tests: true` written where the module's value comes from - its own `config.turri.<module>.yaml`, or a required module's, when
94
- * that sets the key, else `config.turri.yaml` - the chats' conform no longer refused. `plainFile`, absolute or from the
95
- * project, picks the module; omitted,
96
- * the project's. Returns the file written, from the project. Starts no conformance pulse: that is `conform`'s.
97
- */
98
- turnOnConformanceTests(plainFile?: string): string;
99
- /**
100
- * A notice answered: one of its actions (by index or label) - the chat it is in started on it - the person's own words
101
- * about it, dismissed, or - `ignorable: true` - ignored for good: left as the build has it, the sentinel told not to
102
- * raise it again. `refused` for `ignore` on one that is not ignorable, `over` when it was answered or superseded
103
- * already, `missing` for one never put.
104
- */
105
- answer(id: string, answer: NoticeAnswer): Promise<"done" | "dismissed" | "ignored" | "refused" | "missing" | "over">;
106
- /** Told when a chat is opened, closed, renamed, or starts or stops working. */
107
- onChats(listener: (chats: ChatInfo[]) => void): () => void;
108
- /** Every chat let go, and what launches started stopped. */
109
- dispose(): Promise<void>;
110
- }
111
- /** turri's session in a host, in the process's working folder - the project's. */
112
- export declare function createTurri(options?: TurriOptions): Promise<Turri>;
@@ -1,103 +0,0 @@
1
- import { createAgentSession, DefaultResourceLoader, getAgentDir, SessionManager } from "@earendil-works/pi-coding-agent";
2
- import { lastRun } from "./chat-records.js";
3
- import { interruptChat } from "./chats.js";
4
- import { reachable, ruleNames, settingCandidates } from "./settings.js";
5
- import { settingOf } from "./config-edit.js";
6
- import { createTurriCore, sessionLoop, turnOnConformance } from "./extension.js";
7
- import { stopLaunched } from "./regenerate/launch.js";
8
- import { prepareCheck } from "./sentinel-check.js";
9
- /** turri's session in a host, in the process's working folder - the project's. */
10
- export async function createTurri(options = {}) {
11
- const { dialogs, uiContext, extensions = [], agentDir = getAgentDir(), sessionDir, restore, ...host } = options;
12
- const core = createTurriCore(host, { persist: true, ...(dialogs !== undefined ? { dialogs } : {}) });
13
- const cwd = core.cwd;
14
- core.setDriver({
15
- async create(chat, sessionFile) {
16
- const resourceLoader = new DefaultResourceLoader({ cwd, agentDir, extensionFactories: [core.extension, ...extensions] });
17
- await resourceLoader.reload();
18
- const sessionManager = sessionFile !== undefined ? SessionManager.open(sessionFile, sessionDir) : SessionManager.create(cwd, sessionDir);
19
- const { session } = await createAgentSession({ cwd, agentDir, resourceLoader, sessionManager });
20
- chat.session = session;
21
- await session.bindExtensions({ uiContext: uiContext?.(chat.id), mode: "tui" });
22
- },
23
- async dispose(chat) {
24
- const session = chat.session;
25
- if (session === undefined)
26
- return;
27
- try {
28
- await session.abort();
29
- }
30
- finally {
31
- session.dispose();
32
- }
33
- },
34
- });
35
- if (restore === true) {
36
- const saved = lastRun(cwd);
37
- if (saved !== undefined)
38
- await core.restore(saved);
39
- const first = core.chats()[0];
40
- if (first !== undefined)
41
- await core.show(first.id);
42
- }
43
- let lastStop = 0;
44
- const dispose = async () => {
45
- await core.dispose();
46
- await stopLaunched();
47
- };
48
- return {
49
- jobs: core.jobs,
50
- get loop() {
51
- return sessionLoop(core);
52
- },
53
- chats: () => core.chats(),
54
- session: (id) => core.session(id),
55
- async openChat(asked = {}) {
56
- const chat = await core.open(asked);
57
- return { ...chat, session: core.session(chat.id) };
58
- },
59
- closeChat: (id) => core.close(id),
60
- focus: (id) => void core.show(id),
61
- async interrupt(id) {
62
- const session = core.session(id);
63
- if (session === undefined)
64
- return "missing";
65
- const did = interruptChat(session, { lastStop, idle: () => "ended" });
66
- if (did === "stopped")
67
- lastStop = Date.now();
68
- if (did === "ended")
69
- await dispose();
70
- return did;
71
- },
72
- decline: async (id) => core.decline(id),
73
- notices: () => core.notices(),
74
- check: (request) => core.check(() => prepareCheck(cwd, request)),
75
- turnOnConformanceTests: (plainFile) => turnOnConformance(core, plainFile),
76
- settingChoices: (key, typed = "") => {
77
- const setting = settingOf(key, ruleNames());
78
- if (setting === undefined)
79
- return [];
80
- // The models from a chat's own context - the one shown, else any open: the registry the chats use, whether or not one
81
- // has run /settings.
82
- const context = () => {
83
- const shown = core.shownChat();
84
- const states = [shown, ...core.chats().map((chat) => core.session(chat.id)).map((session) => (session !== undefined ? core.chatOfSession(session) : undefined))];
85
- for (const state of states) {
86
- try {
87
- const context = state?.instance?.context();
88
- if (context !== undefined)
89
- return context;
90
- }
91
- catch {
92
- /* a context let go: the next one */
93
- }
94
- }
95
- return undefined;
96
- };
97
- return settingCandidates(setting, typed, { cwd, models: () => reachable(context()) });
98
- },
99
- answer: async (id, answer) => core.answer(id, answer),
100
- onChats: (listener) => core.onChats(() => listener(core.chats())),
101
- dispose,
102
- };
103
- }
package/dist/host.d.ts DELETED
@@ -1,40 +0,0 @@
1
- /**
2
- * turri for a host that runs it itself - a desktop app, an editor - imported as `@turri-dev/cli/host`: the session and
3
- * its chats, with the host told of its jobs and asking its questions (createTurri), and
4
- * what a host shows beside it - a spec parsed, checked and coloured, its concepts and links, the standard library, how
5
- * far each functional spec is built, the work a spec change would plan. It is turri's own code, as the terminal runs it; a 0.x release may change any of it.
6
- */
7
- export { createTurri, type Turri, type TurriOptions } from "./host-session.ts";
8
- export { MAX_CHATS, type ChatInfo, type ChatStatus, type TurriHost } from "./chats.ts";
9
- export { launchText, type Launch, type LaunchCause, type LaunchStatus, type LaunchStopped } from "./launch-track.ts";
10
- export type { ConfigLine, ConfigLineKind } from "./config.ts";
11
- export { SENTINEL, SENTINEL_START, type Conclusion, type Notice, type NoticeAction, type NoticeAnswer, type NoticeSeverity, type NoticeState, type SentinelCheck } from "./notice.ts";
12
- export type { CheckRequest } from "./sentinel-check.ts";
13
- export type { AskUserIO } from "./ask.ts";
14
- /** pi itself, as turri is built against it: a host's own extensions and UI are made with this one, not another copy. */
15
- export * as pi from "@earendil-works/pi-coding-agent";
16
- export { configForSpec, debugMode, DEFAULT_TEST_DIR, hasProjectConfig, modelSpec, projectModels, readProjectConfig, moduleConfigsOf, testDirOf, type ProjectConfig } from "./config.ts";
17
- export { MODULES_DIR, projectDirOf, resolveTemplateDirs } from "./regenerate/paths.ts";
18
- export { configSettings, currentValue, EFFECT_TEXT, overriddenBy, readConfigText, type Effect, type Setting, type SettingKind } from "./config-edit.ts";
19
- export { bedrockRegionFor, type BedrockRegion, type BedrockRegionSource } from "./bedrock-region.ts";
20
- export { BEDROCK_DEFAULT, BEDROCK_GEOGRAPHIES, BEDROCK_IN_REGION, BEDROCK_REGIONS, bedrockAwsRegion, bedrockDefaultModels, bedrockMakers, bedrockModels, bedrockModelsIn, bedrockNeedsAwsRegion, bedrockPlaceOf, initConfig, makerLabel, VENDORS, type BedrockChoice, type BedrockMaker, type BedrockOffer, type InitConfigOptions, type ModelChoice, type ModelSet, type Vendor, } from "./init-config.ts";
21
- export { piModelCatalogue, type CatalogueModel, type ModelCatalogue } from "./model-check.ts";
22
- export { EXTENSION_PROVIDERS, installedModelRuntime } from "./installed-providers.ts";
23
- export { machineChange, machineChangeReason } from "./regenerate/command-check.ts";
24
- export { doctor, type Check, type DoctorOptions, type Level } from "./setup.ts";
25
- export { checkPlainFile, type CheckResult } from "./plain/check.ts";
26
- export { plainFileParser } from "./plain/parser.ts";
27
- export { FUNCTIONAL_REQUIREMENTS, iterateFunctionalSpecs } from "./plain/spec.ts";
28
- export { highlightLines, roleOf, type PlainRole } from "./plain/highlight.ts";
29
- export { conceptsOf, type ModuleConcept } from "./plain/module-concepts.ts";
30
- export { conceptBeingTyped, findConcepts } from "./plain/concepts.ts";
31
- export { plainGraph, type PlainConceptNode, type PlainGraph, type PlainItemNode, type PlainLink, type PlainModuleNode, type PlainScenario, type PlainSection, type PlainTestPlainFileNode } from "./plain/graph.ts";
32
- export { isStack, STDLIB_KINDS, stdlibTemplates, type StdlibKind, type StdlibTemplate } from "./stdlib.ts";
33
- export { createWorkLoop, describeModules, functionalityCompletion, type DriftReport, type ModuleStatus, type PlannedPulse, type WorkLoop } from "./regenerate/loop.ts";
34
- export { projectStanding, type ModuleStanding, type StandingOptions } from "./regenerate/standing.ts";
35
- export { requiresOrder } from "./regenerate/requires.ts";
36
- export { createJobRegistry, defaultParallelJobs, type Job, type JobRegistry, type PulseCases, type PulseSpec } from "./regenerate/jobs.ts";
37
- export { describeTurnIncident, onModelEvent, type TranscriptEntry } from "./regenerate/activity.ts";
38
- export { sweepOrphanedGroups } from "./regenerate/shell.ts";
39
- export { ledgerDir, onLedgerEvent, readLedger, type AgentRef, type LedgerEntry, type LedgerEvent, type LedgerKind, type LedgerQuery } from "./regenerate/ledger.ts";
40
- export { asJob, describePulseView, describeRuns, earlierPulses, ledgerProjects, pulseView, runViews, type PulseView, type RunView } from "./regenerate/ledger-view.ts";
package/dist/host.js DELETED
@@ -1,54 +0,0 @@
1
- /**
2
- * turri for a host that runs it itself - a desktop app, an editor - imported as `@turri-dev/cli/host`: the session and
3
- * its chats, with the host told of its jobs and asking its questions (createTurri), and
4
- * what a host shows beside it - a spec parsed, checked and coloured, its concepts and links, the standard library, how
5
- * far each functional spec is built, the work a spec change would plan. It is turri's own code, as the terminal runs it; a 0.x release may change any of it.
6
- */
7
- // The session and its chats.
8
- export { createTurri } from "./host-session.js";
9
- export { MAX_CHATS } from "./chats.js";
10
- export { launchText } from "./launch-track.js";
11
- // The sentinel's notices: what it puts to the person, and how they answer - and the checks a host asks of it.
12
- export { SENTINEL, SENTINEL_START } from "./notice.js";
13
- /** pi itself, as turri is built against it: a host's own extensions and UI are made with this one, not another copy. */
14
- export * as pi from "@earendil-works/pi-coding-agent";
15
- // The project and its settings.
16
- export { configForSpec, debugMode, DEFAULT_TEST_DIR, hasProjectConfig, modelSpec, projectModels, readProjectConfig, moduleConfigsOf, testDirOf } from "./config.js";
17
- export { MODULES_DIR, projectDirOf, resolveTemplateDirs } from "./regenerate/paths.js";
18
- // Every setting of config.turri.yaml as /settings knows it - what it takes, what it is unset, when a change takes
19
- // effect - and what the file has now: for a host that shows them all, changing each through /settings.
20
- export { configSettings, currentValue, EFFECT_TEXT, overriddenBy, readConfigText } from "./config-edit.js";
21
- // The AWS region a project's Bedrock models are called in, and where it comes from - what turri sets itself, as a host's
22
- // session starts, when the models need one and the person set none.
23
- export { bedrockRegionFor } from "./bedrock-region.js";
24
- // A project's first config.turri.yaml, as `turri init-config` writes it - the vendor, or the two models themselves, chosen by the host.
25
- export { BEDROCK_DEFAULT, BEDROCK_GEOGRAPHIES, BEDROCK_IN_REGION, BEDROCK_REGIONS, bedrockAwsRegion, bedrockDefaultModels, bedrockMakers, bedrockModels, bedrockModelsIn, bedrockNeedsAwsRegion, bedrockPlaceOf, initConfig, makerLabel, VENDORS, } from "./init-config.js";
26
- // pi's model catalogue, read without a request: what initConfig checks the models given against, and what a host offers.
27
- export { piModelCatalogue } from "./model-check.js";
28
- export { EXTENSION_PROVIDERS, installedModelRuntime } from "./installed-providers.js";
29
- export { machineChange, machineChangeReason } from "./regenerate/command-check.js";
30
- // Whether this machine, and a project on it, is ready for turri - as `turri doctor` checks it, printing nothing.
31
- export { doctor } from "./setup.js";
32
- // A spec: parsed, checked, coloured.
33
- export { checkPlainFile } from "./plain/check.js";
34
- export { plainFileParser } from "./plain/parser.js";
35
- export { FUNCTIONAL_REQUIREMENTS, iterateFunctionalSpecs } from "./plain/spec.js";
36
- export { highlightLines, roleOf } from "./plain/highlight.js";
37
- // Its concepts: those a module can name, with what each is and where it is defined, and those written in a piece of text.
38
- export { conceptsOf } from "./plain/module-concepts.js";
39
- export { conceptBeingTyped, findConcepts } from "./plain/concepts.js";
40
- // A project's ***plain as a graph: its modules and their links both ways, each item of their sections, the concepts
41
- // each names and where each is defined.
42
- export { plainGraph } from "./plain/graph.js";
43
- // The standard library: every template, what it is, what it imports, and its conformance template or stack.
44
- export { isStack, STDLIB_KINDS, stdlibTemplates } from "./stdlib.js";
45
- // The work: what is built, what is left, and the jobs that build it.
46
- export { createWorkLoop, describeModules, functionalityCompletion } from "./regenerate/loop.js";
47
- export { projectStanding } from "./regenerate/standing.js";
48
- export { requiresOrder } from "./regenerate/requires.js";
49
- export { createJobRegistry, defaultParallelJobs } from "./regenerate/jobs.js";
50
- export { describeTurnIncident, onModelEvent } from "./regenerate/activity.js";
51
- export { sweepOrphanedGroups } from "./regenerate/shell.js";
52
- // What turri did, as facts: the ledger, heard live and read back - this session's pulses and every earlier one's.
53
- export { ledgerDir, onLedgerEvent, readLedger } from "./regenerate/ledger.js";
54
- export { asJob, describePulseView, describeRuns, earlierPulses, ledgerProjects, pulseView, runViews } from "./regenerate/ledger-view.js";
@@ -1,7 +0,0 @@
1
- /**
2
- * Who the conversation's agent is: turri, and what it does - first, so it speaks as turri, in the first person. Where
3
- * the person watches the work is the terminal's regen; given a host's surface, that is said in its place.
4
- */
5
- export declare function conversationIdentity(surface?: string): string;
6
- /** turri as the terminal runs it. */
7
- export declare const TURRI_IDENTITY: string;
package/dist/identity.js DELETED
@@ -1,74 +0,0 @@
1
- /** In the terminal: regen, where the person watches the work - the side panel, its key, and the pulses behind it. */
2
- const REGEN = [
3
- "- regen is the side panel (ctrl+h): the spec with each functionality and item marked built, regenerating,",
4
- " planned or waiting - and behind it the pulses (/pulses), every pulse regenerating, planned and finished. Say regen,",
5
- " lowercase. It was the regeneration, the job queue, or the job panel.",
6
- ];
7
- /** In a host: where the person watches the work is the host's to say - its surface, below. */
8
- const HOST_SURFACE = [
9
- "- What the person sees of your work - where they watch it, and what they press - is the app's you run in, and",
10
- " <surface> below says it in its own words. Say only what it says, and speak of no key, panel or view it does not",
11
- " name.",
12
- ];
13
- /**
14
- * Who the conversation's agent is: turri, and what it does - first, so it speaks as turri, in the first person. Where
15
- * the person watches the work is the terminal's regen; given a host's surface, that is said in its place.
16
- */
17
- export function conversationIdentity(surface) {
18
- const text = surface?.trim() ?? "";
19
- const hosted = text !== "";
20
- return [
21
- ...IDENTITY_BEFORE,
22
- ...(hosted ? HOST_SURFACE : REGEN),
23
- ...IDENTITY_AFTER,
24
- ...(hosted ? ["", "<surface>", text, "</surface>"] : []),
25
- "</turri>",
26
- ].join("\n");
27
- }
28
- const IDENTITY_BEFORE = [
29
- "<turri>",
30
- "You are turri - always lowercase - the first coding agent with the power of regenerative software. The software is",
31
- "its ***plain; the code is regenerated from it. You write the ***plain with the person - they say what the software",
32
- "should do, and you write it down as ***plain, shaping it with them - and you regenerate the code from it a",
33
- "change at a time - with agents that write the code and tests, while you decide what runs next and when the work is",
34
- "done - record what each piece was regenerated from, and prove it against conformance tests written from the ***plain",
35
- "alone. When the code goes bad, you regenerate it from the ***plain. You are named after Turritopsis dohrnii, the",
36
- "immortal jellyfish: when it is damaged or ages, it turns back into its young self and regenerates its whole body",
37
- "from the same genes. Regenerative software works the same way - the ***plain is the genes, and code that has",
38
- "gone bad is regenerated from it, whole, rather than patched. Say it as that likeness, not as a fact about a",
39
- "jellyfish.",
40
- "",
41
- "Asked who or what you are, say it in those words: you are turri, the first coding agent with the power of",
42
- "regenerative software - you write ***plain with them and regenerate the code from it. Never say they write the",
43
- "***plain and you help: you write it, together. Not an assistant, and not a helper with specifications: ***plain is",
44
- "the language the software is written in, and naming it is the point. Your replies are Markdown, where",
45
- "three asterisks start bold italics: write the name escaped, \\*\\*\\*plain, so it shows as ***plain.",
46
- "",
47
- "Speak as turri, in the first person - I, my pulses, my agents - to the person, in whole sentences. Never speak of",
48
- "turri in the third person, as if it were someone else, and never tell the person to tell or ask turri something:",
49
- "they are talking to turri. What they should ask for, they ask you for, here.",
50
- "",
51
- "The person may have several chats with you open on this project at once, this one among them. What regenerates is",
52
- "the same in every chat: the pulses and their plan, the engine's coding model and what was launched -",
53
- "pulses lists every pulse, whichever chat asked for it. What was said in another chat is not in this one: when the",
54
- "person speaks of it, ask.",
55
- "",
56
- "Pulses regenerate in the background and never hold the conversation: while they run, you and the person go on -",
57
- "shaping the ***plain and writing its next change, answering their questions, trying what has landed or was",
58
- "launched. When a pulse starts, say so in a way that makes it plain they need not wait for it to finish; never tell",
59
- "them to wait for one, and never stop to wait for one yourself. Changing the ***plain while a pulse runs is safe: a",
60
- "change inside what the running pulse regenerates steers it, and the rest is planned again around it - the next",
61
- "change never waits for the last to land.",
62
- "",
63
- "Your words, and the older ones for the same things - a project's AGENTS.md, a skill, notes or the person may use",
64
- "either, and they mean the same:",
65
- "- A pulse is one unit of work regenerating the code - a spec diff regenerated in a codebase, or its conformance",
66
- " tests. It was called a job, and still is in places: the job_id a tool takes is a pulse's id, and parallel-jobs and",
67
- " allow-to-stop-jobs in config.turri.yaml are about pulses. \"Job\" in what you read is a pulse; say pulse.",
68
- ];
69
- const IDENTITY_AFTER = [
70
- "- Regenerate is the word for what you do to the code: never grow, grew or grown - older text, a tool's description",
71
- " or a report may still say it, and means regenerate.",
72
- ];
73
- /** turri as the terminal runs it. */
74
- export const TURRI_IDENTITY = conversationIdentity();
@@ -1,169 +0,0 @@
1
- import { type CatalogueModel, type ModelCatalogue } from "./model-check.ts";
2
- /**
3
- * `turri init-config`: a project's first config.turri.yaml - the two models, a strong one to talk to and a smaller one to
4
- * write the code - so a new project starts with a choice that works rather than an empty file. It asks which vendor's
5
- * models you use and fills in theirs. Every other setting is written out with the value turri uses for it (DEFAULTS),
6
- * so the file says how the project is built; the optional ones, which have no value of their own - the testing
7
- * scripts, `module`, `judge-model`, `models` - are there commented out, with an example. docs/config.md has them all.
8
- *
9
- * Then it says what to do next: where the file is - turri reads it from that folder and the folders below it, nowhere
10
- * else - and how to sign in to the vendor so pi, which turri runs on, can reach the models.
11
- *
12
- * Amazon Bedrock serves many makers' models - Anthropic's, OpenAI's, xAI's, Meta's... - each in a geography, an inference
13
- * profile its id starts with (`global.`, `us.`, `eu.`, ...), or in the AWS region it is called in: it asks whose, where, and
14
- * which two, from pi's catalogue - turri's own pair offered where it has one. The two models can be given instead, any pair
15
- * pi's catalogue has, and are checked against it. A config.turri.yaml already there keeps everything but the two models; a
16
- * new one takes from a config.yaml beside it the keys turri reads too.
17
- */
18
- /** A vendor whose models the quick start config is filled in with. */
19
- export type Vendor = "anthropic" | "openai" | "google" | "amazon-bedrock" | "claude-code" | "other";
20
- /** Whose models Amazon Bedrock serves: the maker a model's id names after its geography - anthropic, openai, xai, meta... */
21
- export type BedrockMaker = string;
22
- /**
23
- * Amazon Bedrock's choice: the geography of the inference profile the models run in, and whose they are - read from the
24
- * models when they are given, Anthropic's when nothing says.
25
- */
26
- export interface BedrockChoice {
27
- maker?: BedrockMaker;
28
- region: string;
29
- }
30
- /** The three models a config names: the one you talk to, the one that codes, and a strong one for the judging examples. */
31
- export interface ModelSet {
32
- harness: string;
33
- coding: string;
34
- strong: string;
35
- }
36
- /** The two models given, full specs without a thinking level - `amazon-bedrock/global.xai.grok-4.7`; strong is harness unless named. */
37
- export type ModelChoice = Omit<ModelSet, "strong"> & {
38
- strong?: string;
39
- };
40
- /** The makers turri has a pair of its own for on Bedrock. */
41
- type PresetMaker = "anthropic" | "openai";
42
- /** The geographies turri's own pair for each maker is served in - the first the default. Every other: bedrockMakers. */
43
- export declare const BEDROCK_REGIONS: Record<PresetMaker, string[]>;
44
- /** The geographies an inference profile's id starts with, in the order they are offered. */
45
- export declare const BEDROCK_GEOGRAPHIES: string[];
46
- /** A Bedrock model whose id names no geography: served in the AWS region it is called in. */
47
- export declare const BEDROCK_IN_REGION = "in-region";
48
- /** The AWS region to call a geography's models in - AWS_REGION's value. */
49
- export declare function bedrockAwsRegion(geography: string): string;
50
- /**
51
- * Whether a geography's models need AWS_REGION set: every one but global, us and in-region, which pi's us-east-1 serves.
52
- * pi calls Bedrock in AWS_REGION, else - with an AWS_PROFILE - the profile's region, else us-east-1. It pins eu's
53
- * endpoint itself only with neither AWS_REGION nor AWS_PROFILE set, so eu needs it too.
54
- */
55
- export declare function bedrockNeedsAwsRegion(geography: string): boolean;
56
- /** Where a Bedrock model is served and whose it is, from its id or spec: `global.xai.grok-4.7` - global, xai; `meta.llama4` - in-region, meta. */
57
- export declare function bedrockPlaceOf(model: string): {
58
- geography: string;
59
- maker: BedrockMaker;
60
- };
61
- /** A maker's - or a provider's - name, as the messages say it: xAI for xai; its id when turri has no name for it. */
62
- export declare function makerLabel(maker: string): string;
63
- /** A maker pi's catalogue serves on Bedrock, and the geographies it serves its chat models in - in the order they are offered. */
64
- export interface BedrockOffer {
65
- maker: BedrockMaker;
66
- label: string;
67
- regions: string[];
68
- }
69
- /** Every maker pi's catalogue serves on Bedrock - Anthropic and OpenAI first, the rest by name - with their geographies. */
70
- export declare function bedrockMakers(catalogue: ModelCatalogue): BedrockOffer[];
71
- /** A maker's chat models in a geography, as pi's catalogue has them on Bedrock. */
72
- export declare function bedrockModelsIn(catalogue: ModelCatalogue, choice: Required<BedrockChoice>): CatalogueModel[];
73
- /** turri's own pair on Bedrock for a maker in a geography: Opus 5.5 and Haiku 5.5, or GPT-6 Astra and Luna. */
74
- export declare function bedrockModels(choice: {
75
- maker?: PresetMaker;
76
- region: string;
77
- }): ModelSet;
78
- /**
79
- * The pair to offer for a maker in a geography: turri's own where it has one; else, from pi's catalogue, the strongest
80
- * that reasons to talk to - price standing in for strength - and the cheapest costing at least a fifth of it to code,
81
- * ties to the newest. Undefined when the catalogue has none of the maker's models there.
82
- */
83
- export declare function bedrockDefaultModels(catalogue: ModelCatalogue, choice: BedrockChoice): ModelSet | undefined;
84
- /** Bedrock's default: Anthropic's models, anywhere. */
85
- export declare const BEDROCK_DEFAULT: Required<BedrockChoice>;
86
- interface VendorPreset {
87
- label: string;
88
- /** The model you talk to: it writes the specs and plans the work. */
89
- harness: string;
90
- /** The smaller, cheaper one that writes the code. */
91
- coding: string;
92
- /** A strong model for the commented-out judge, reviewer and debugger examples. */
93
- strong: string;
94
- /** The environment variables pi reads the vendor's keys from - pi's own names (pi.dev, providers). */
95
- keys: Array<{
96
- vendor: string;
97
- variable: string;
98
- }>;
99
- }
100
- export declare const VENDORS: Record<Vendor, VendorPreset>;
101
- /**
102
- * A config.turri.yaml with its two models set to these lines, and nothing else changed: each key's line - and the lines
103
- * indented under it, when it is written as a block - replaced where it is, or put at the top when it is not there.
104
- */
105
- export declare function withModels(text: string, lines: [string, string]): string;
106
- /**
107
- * What turri does with each setting the config leaves out, written into the quick start config so it says so. They
108
- * must stay what the code falls back to - tests/init-config.test.ts holds them to the constants they mirror.
109
- */
110
- export declare const DEFAULTS: {
111
- readonly review: false;
112
- readonly mutationTesting: true;
113
- readonly allowToStopJobs: true;
114
- readonly launchAfterPulse: true;
115
- readonly sentinel: "ask";
116
- readonly testingScriptsRunOn: "in-place";
117
- readonly turnLimit: 120;
118
- readonly compactAt: 100000;
119
- readonly maxSpecsPerPulse: 3;
120
- readonly maxLinesPerPulse: 120;
121
- readonly ledgerKeep: 100;
122
- readonly debug: false;
123
- readonly cacheKeep: 4096;
124
- };
125
- /** How many pulses run at once without a setting: half this machine's cores, one to four - as regenerate/jobs.ts has it. */
126
- export declare function defaultParallel(cores?: number): number;
127
- /** The quick start config.turri.yaml for a vendor's models - for Bedrock, the maker and geography chosen - or the models given. */
128
- export declare function quickStartConfig(vendor?: Vendor, bedrock?: BedrockChoice, models?: ModelSet): string;
129
- /** The quick start config for the mix of vendors: what turri wrote before it asked. */
130
- export declare const QUICK_START_CONFIG: string;
131
- /** A vendor from what was typed: its number in the list, or its name. */
132
- export declare function vendorOf(answer: string): Vendor | undefined;
133
- /** Bedrock's maker from what was typed: its number in the list - with no catalogue, 1 Anthropic, 2 OpenAI - or its name. */
134
- export declare function bedrockMakerOf(answer: string, catalogue?: ModelCatalogue): BedrockMaker | undefined;
135
- /** A geography the maker's models are served in, from what was typed: its number in the list, or its name - pi's catalogue's, or without it turri's pair's. */
136
- export declare function bedrockRegionOf(maker: BedrockMaker, answer: string, catalogue?: ModelCatalogue): string | undefined;
137
- /**
138
- * What a config.yaml in `folder` says that turri reads too - another tool's testing scripts, say - by turri's names
139
- * (`template_dir` read as `template-dir`), in the file's order; and the keys it leaves, turri reading none of them. The
140
- * two models are the vendor's, so they are not taken.
141
- */
142
- export declare function sharedWithLegacy(folder: string): {
143
- carried: Array<[string, unknown]>;
144
- left: string[];
145
- };
146
- export interface InitConfigOptions {
147
- /** Write the whole file again, not only the two models of one already there. */
148
- force?: boolean;
149
- /** Whose models: read from the models when they are given, other when nothing says. */
150
- vendor?: Vendor;
151
- /** On Amazon Bedrock: the geography, and whose models - read from the models when they are given. */
152
- bedrock?: BedrockChoice;
153
- /** The two models - any pair pi's catalogue has as chat models - in place of the vendor's own. */
154
- models?: ModelChoice;
155
- /** pi's catalogue, to check the models against - read from pi when it is needed and not given. */
156
- catalogue?: ModelCatalogue;
157
- }
158
- /**
159
- * Write the quick start config.turri.yaml in `dir`, with what a config.yaml beside it says that turri reads too. One already
160
- * there keeps everything but its two models, which are set to the vendor's - or the ones given - and `force` writes the
161
- * whole of it again. Says what it did; a model pi's catalogue does not have writes nothing and says so.
162
- */
163
- export declare function initConfig(dir: string, options?: InitConfigOptions): Promise<{
164
- written: boolean;
165
- message: string;
166
- }>;
167
- /** `turri init-config [--vendor <vendor>] [--maker <maker>] [--region <geography>] [--harness-model <spec> --coding-model <spec>] [--force] [folder]`. */
168
- export declare function main(args: string[]): Promise<number>;
169
- export {};