@turri-dev/cli 0.4.3-next.7ada234 → 0.4.3-next.8c1b0fa

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 (538) hide show
  1. package/README.md +22 -2
  2. package/dist/banner.js +248 -0
  3. package/dist/capture-cli.js +1 -1
  4. package/dist/capture-view.js +99 -0
  5. package/dist/chat-commands.js +6 -6
  6. package/dist/chat-models.js +17 -15
  7. package/dist/chat-tab-header.js +0 -1
  8. package/dist/chat-tabs.js +1 -1
  9. package/dist/chat-terminal.js +115 -73
  10. package/dist/chat-waiting.js +0 -20
  11. package/dist/cli-options.js +11 -7
  12. package/dist/cli-root.js +101 -0
  13. package/dist/cli.js +20 -26
  14. package/dist/conform-cli.js +4 -6
  15. package/dist/cultivate-cli.js +65 -97
  16. package/dist/doctor-cli.js +99 -0
  17. package/dist/drift-cli.js +2 -7
  18. package/dist/entry-renderers.js +107 -0
  19. package/dist/extension.js +14 -3379
  20. package/dist/init-config-cli.js +209 -0
  21. package/dist/launch-cli.js +55 -91
  22. package/dist/lineage-cli.js +2 -4
  23. package/dist/loop-cli.js +118 -237
  24. package/dist/panel-view.js +409 -0
  25. package/dist/parse-cli.js +5 -2
  26. package/dist/pi-launch.js +41 -13
  27. package/dist/pi-themes.js +2 -2
  28. package/dist/plain-code-blocks.js +1 -1
  29. package/dist/print-mode.js +20 -0
  30. package/dist/quiet.js +7 -106
  31. package/dist/regenerate/diff-view.js +6 -87
  32. package/dist/regenerate/jobs-tree.js +2 -17
  33. package/dist/regenerate/spec-map-view.js +3 -68
  34. package/dist/regenerate-cli.js +7 -11
  35. package/dist/reopen.js +40 -7
  36. package/dist/skill-progress.js +25 -0
  37. package/dist/skill-report.js +52 -0
  38. package/dist/terminal-marks.js +21 -0
  39. package/dist/terminal-notifications.js +74 -19
  40. package/dist/terminal-view.js +275 -0
  41. package/dist/turri-versions.js +64 -6
  42. package/docs/README.md +2 -2
  43. package/docs/chats.md +4 -4
  44. package/docs/claude-subscription.md +1 -1
  45. package/docs/config.md +5 -4
  46. package/docs/development.md +30 -64
  47. package/docs/headless.md +3 -1
  48. package/docs/hosting.md +3 -251
  49. package/docs/installation.md +4 -2
  50. package/docs/launch.md +1 -1
  51. package/docs/sentinel.md +3 -3
  52. package/docs/using.md +3 -3
  53. package/package.json +10 -28
  54. package/dist/ask.d.ts +0 -90
  55. package/dist/ask.js +0 -170
  56. package/dist/background-skills.d.ts +0 -56
  57. package/dist/background-skills.js +0 -129
  58. package/dist/bedrock-region.d.ts +0 -66
  59. package/dist/bedrock-region.js +0 -144
  60. package/dist/brand.d.ts +0 -13
  61. package/dist/btw.d.ts +0 -69
  62. package/dist/btw.js +0 -174
  63. package/dist/capture/agents.d.ts +0 -406
  64. package/dist/capture/agents.js +0 -379
  65. package/dist/capture/area.d.ts +0 -58
  66. package/dist/capture/area.js +0 -197
  67. package/dist/capture/assemble.d.ts +0 -112
  68. package/dist/capture/assemble.js +0 -453
  69. package/dist/capture/capture.d.ts +0 -116
  70. package/dist/capture/capture.js +0 -1315
  71. package/dist/capture/chat.d.ts +0 -29
  72. package/dist/capture/chat.js +0 -94
  73. package/dist/capture/checks.d.ts +0 -142
  74. package/dist/capture/checks.js +0 -649
  75. package/dist/capture/config.d.ts +0 -13
  76. package/dist/capture/config.js +0 -66
  77. package/dist/capture/interface.d.ts +0 -71
  78. package/dist/capture/interface.js +0 -199
  79. package/dist/capture/map.d.ts +0 -56
  80. package/dist/capture/map.js +0 -530
  81. package/dist/capture/models.d.ts +0 -4
  82. package/dist/capture/models.js +0 -16
  83. package/dist/capture/plan.d.ts +0 -7
  84. package/dist/capture/plan.js +0 -13
  85. package/dist/capture/progress.d.ts +0 -111
  86. package/dist/capture/progress.js +0 -266
  87. package/dist/capture/python-interface.d.ts +0 -3
  88. package/dist/capture/python-interface.js +0 -17
  89. package/dist/capture/report.d.ts +0 -75
  90. package/dist/capture/report.js +0 -268
  91. package/dist/capture/runners.d.ts +0 -6
  92. package/dist/capture/runners.js +0 -59
  93. package/dist/capture/scripts.d.ts +0 -26
  94. package/dist/capture/scripts.js +0 -38
  95. package/dist/capture/state.d.ts +0 -310
  96. package/dist/capture/state.js +0 -43
  97. package/dist/capture/trial.d.ts +0 -34
  98. package/dist/capture/trial.js +0 -89
  99. package/dist/capture-cli.d.ts +0 -1
  100. package/dist/chat-commands.d.ts +0 -17
  101. package/dist/chat-idle.d.ts +0 -7
  102. package/dist/chat-idle.js +0 -20
  103. package/dist/chat-models.d.ts +0 -22
  104. package/dist/chat-records.d.ts +0 -50
  105. package/dist/chat-records.js +0 -107
  106. package/dist/chat-scope.d.ts +0 -14
  107. package/dist/chat-scope.js +0 -15
  108. package/dist/chat-skills.d.ts +0 -17
  109. package/dist/chat-skills.js +0 -18
  110. package/dist/chat-tab-header.d.ts +0 -16
  111. package/dist/chat-tabs.d.ts +0 -26
  112. package/dist/chat-terminal.d.ts +0 -24
  113. package/dist/chat-ui.d.ts +0 -33
  114. package/dist/chat-waiting.d.ts +0 -67
  115. package/dist/chats.d.ts +0 -346
  116. package/dist/chats.js +0 -1022
  117. package/dist/cli-options.d.ts +0 -24
  118. package/dist/cli.d.ts +0 -9
  119. package/dist/config-edit.d.ts +0 -83
  120. package/dist/config-edit.js +0 -393
  121. package/dist/config.d.ts +0 -428
  122. package/dist/config.js +0 -816
  123. package/dist/conform-cli.d.ts +0 -1
  124. package/dist/conformance-switch.d.ts +0 -25
  125. package/dist/conformance-switch.js +0 -86
  126. package/dist/cultivate-cli.d.ts +0 -1
  127. package/dist/doctor-tool.d.ts +0 -11
  128. package/dist/doctor-tool.js +0 -33
  129. package/dist/drift-cli.d.ts +0 -1
  130. package/dist/environment.d.ts +0 -37
  131. package/dist/environment.js +0 -109
  132. package/dist/extension.d.ts +0 -209
  133. package/dist/genome.d.ts +0 -77
  134. package/dist/genome.js +0 -288
  135. package/dist/graph.d.ts +0 -52
  136. package/dist/graph.js +0 -247
  137. package/dist/host-session.d.ts +0 -112
  138. package/dist/host-session.js +0 -103
  139. package/dist/host.d.ts +0 -40
  140. package/dist/host.js +0 -54
  141. package/dist/identity.d.ts +0 -7
  142. package/dist/identity.js +0 -75
  143. package/dist/init-config.d.ts +0 -172
  144. package/dist/init-config.js +0 -867
  145. package/dist/installed-providers.d.ts +0 -40
  146. package/dist/installed-providers.js +0 -98
  147. package/dist/jellyfish.d.ts +0 -40
  148. package/dist/judge.d.ts +0 -25
  149. package/dist/judge.js +0 -62
  150. package/dist/launch-agent.d.ts +0 -62
  151. package/dist/launch-agent.js +0 -339
  152. package/dist/launch-cli.d.ts +0 -1
  153. package/dist/launch-session.d.ts +0 -68
  154. package/dist/launch-session.js +0 -225
  155. package/dist/launch-tools.d.ts +0 -28
  156. package/dist/launch-tools.js +0 -72
  157. package/dist/launch-track.d.ts +0 -175
  158. package/dist/launch-track.js +0 -497
  159. package/dist/lineage-cli.d.ts +0 -1
  160. package/dist/loop-cli.d.ts +0 -35
  161. package/dist/loop-tools.d.ts +0 -103
  162. package/dist/loop-tools.js +0 -361
  163. package/dist/model-check.d.ts +0 -72
  164. package/dist/model-check.js +0 -162
  165. package/dist/module-report.d.ts +0 -9
  166. package/dist/new-project.d.ts +0 -10
  167. package/dist/new-project.js +0 -42
  168. package/dist/notice.d.ts +0 -115
  169. package/dist/notice.js +0 -61
  170. package/dist/parse-cli.d.ts +0 -1
  171. package/dist/parse-tool.d.ts +0 -9
  172. package/dist/parse-tool.js +0 -33
  173. package/dist/pi-launch.d.ts +0 -1
  174. package/dist/pi-settings.d.ts +0 -4
  175. package/dist/pi-themes.d.ts +0 -3
  176. package/dist/pi.d.ts +0 -248
  177. package/dist/pi.js +0 -889
  178. package/dist/picture-row.d.ts +0 -10
  179. package/dist/plain/check.d.ts +0 -63
  180. package/dist/plain/check.js +0 -236
  181. package/dist/plain/concepts.d.ts +0 -37
  182. package/dist/plain/concepts.js +0 -283
  183. package/dist/plain/cycles.d.ts +0 -21
  184. package/dist/plain/cycles.js +0 -190
  185. package/dist/plain/errors.d.ts +0 -26
  186. package/dist/plain/errors.js +0 -50
  187. package/dist/plain/files.d.ts +0 -47
  188. package/dist/plain/files.js +0 -161
  189. package/dist/plain/graph.d.ts +0 -107
  190. package/dist/plain/graph.js +0 -194
  191. package/dist/plain/highlight.d.ts +0 -43
  192. package/dist/plain/highlight.js +0 -196
  193. package/dist/plain/index.d.ts +0 -18
  194. package/dist/plain/index.js +0 -18
  195. package/dist/plain/liquid.d.ts +0 -22
  196. package/dist/plain/liquid.js +0 -124
  197. package/dist/plain/markdown.d.ts +0 -103
  198. package/dist/plain/markdown.js +0 -330
  199. package/dist/plain/module-concepts.d.ts +0 -32
  200. package/dist/plain/module-concepts.js +0 -80
  201. package/dist/plain/parser.d.ts +0 -163
  202. package/dist/plain/parser.js +0 -930
  203. package/dist/plain/plain.tmLanguage.json +0 -150
  204. package/dist/plain/project.d.ts +0 -48
  205. package/dist/plain/project.js +0 -155
  206. package/dist/plain/spec.d.ts +0 -152
  207. package/dist/plain/spec.js +0 -265
  208. package/dist/plain/stdlib.d.ts +0 -16
  209. package/dist/plain/stdlib.js +0 -48
  210. package/dist/plain/test-plain-file.d.ts +0 -59
  211. package/dist/plain/test-plain-file.js +0 -232
  212. package/dist/plain-code-blocks.d.ts +0 -14
  213. package/dist/plain-files.d.ts +0 -21
  214. package/dist/plain-files.js +0 -156
  215. package/dist/pointer-hover.d.ts +0 -12
  216. package/dist/question-dialog.d.ts +0 -60
  217. package/dist/questioning.d.ts +0 -55
  218. package/dist/questioning.js +0 -109
  219. package/dist/quiet.d.ts +0 -34
  220. package/dist/regenerate/activity.d.ts +0 -227
  221. package/dist/regenerate/activity.js +0 -250
  222. package/dist/regenerate/agent-env.d.ts +0 -51
  223. package/dist/regenerate/agent-env.js +0 -315
  224. package/dist/regenerate/agent-shell.d.ts +0 -54
  225. package/dist/regenerate/agent-shell.js +0 -121
  226. package/dist/regenerate/arbiter.d.ts +0 -68
  227. package/dist/regenerate/arbiter.js +0 -133
  228. package/dist/regenerate/audit.d.ts +0 -69
  229. package/dist/regenerate/audit.js +0 -212
  230. package/dist/regenerate/base-folder.d.ts +0 -70
  231. package/dist/regenerate/base-folder.js +0 -186
  232. package/dist/regenerate/cases.d.ts +0 -12
  233. package/dist/regenerate/cases.js +0 -149
  234. package/dist/regenerate/change-view.d.ts +0 -23
  235. package/dist/regenerate/change-view.js +0 -153
  236. package/dist/regenerate/chunk-plan.d.ts +0 -217
  237. package/dist/regenerate/chunk-plan.js +0 -937
  238. package/dist/regenerate/codebase.d.ts +0 -21
  239. package/dist/regenerate/codebase.js +0 -75
  240. package/dist/regenerate/command-check.d.ts +0 -66
  241. package/dist/regenerate/command-check.js +0 -577
  242. package/dist/regenerate/compaction.d.ts +0 -13
  243. package/dist/regenerate/compaction.js +0 -20
  244. package/dist/regenerate/confine.d.ts +0 -69
  245. package/dist/regenerate/confine.js +0 -311
  246. package/dist/regenerate/conform.d.ts +0 -66
  247. package/dist/regenerate/conform.js +0 -132
  248. package/dist/regenerate/conformance-agents.d.ts +0 -388
  249. package/dist/regenerate/conformance-agents.js +0 -1162
  250. package/dist/regenerate/conformance.d.ts +0 -191
  251. package/dist/regenerate/conformance.js +0 -1035
  252. package/dist/regenerate/conversation-writes.d.ts +0 -10
  253. package/dist/regenerate/conversation-writes.js +0 -100
  254. package/dist/regenerate/credentials.d.ts +0 -18
  255. package/dist/regenerate/credentials.js +0 -88
  256. package/dist/regenerate/debug-log.d.ts +0 -56
  257. package/dist/regenerate/debug-log.js +0 -236
  258. package/dist/regenerate/debugger.d.ts +0 -36
  259. package/dist/regenerate/debugger.js +0 -133
  260. package/dist/regenerate/delivery.d.ts +0 -2
  261. package/dist/regenerate/diagnose-job.d.ts +0 -2
  262. package/dist/regenerate/diagnose-job.js +0 -40
  263. package/dist/regenerate/diagnose.d.ts +0 -46
  264. package/dist/regenerate/diagnose.js +0 -92
  265. package/dist/regenerate/diff-view.d.ts +0 -64
  266. package/dist/regenerate/drift.d.ts +0 -120
  267. package/dist/regenerate/drift.js +0 -285
  268. package/dist/regenerate/environment-error.d.ts +0 -167
  269. package/dist/regenerate/environment-error.js +0 -342
  270. package/dist/regenerate/failure-reports.d.ts +0 -28
  271. package/dist/regenerate/failure-reports.js +0 -79
  272. package/dist/regenerate/job-log.d.ts +0 -30
  273. package/dist/regenerate/job-log.js +0 -105
  274. package/dist/regenerate/job-panel.d.ts +0 -20
  275. package/dist/regenerate/job-panel.js +0 -54
  276. package/dist/regenerate/jobs-tree.d.ts +0 -76
  277. package/dist/regenerate/jobs.d.ts +0 -231
  278. package/dist/regenerate/jobs.js +0 -522
  279. package/dist/regenerate/lanes.d.ts +0 -16
  280. package/dist/regenerate/lanes.js +0 -32
  281. package/dist/regenerate/launch.d.ts +0 -256
  282. package/dist/regenerate/launch.js +0 -689
  283. package/dist/regenerate/ledger-view.d.ts +0 -87
  284. package/dist/regenerate/ledger-view.js +0 -325
  285. package/dist/regenerate/ledger.d.ts +0 -368
  286. package/dist/regenerate/ledger.js +0 -357
  287. package/dist/regenerate/lineage.d.ts +0 -105
  288. package/dist/regenerate/lineage.js +0 -485
  289. package/dist/regenerate/list-arguments.d.ts +0 -21
  290. package/dist/regenerate/list-arguments.js +0 -121
  291. package/dist/regenerate/loop.d.ts +0 -423
  292. package/dist/regenerate/loop.js +0 -2087
  293. package/dist/regenerate/masking.d.ts +0 -19
  294. package/dist/regenerate/masking.js +0 -95
  295. package/dist/regenerate/model-names.d.ts +0 -33
  296. package/dist/regenerate/model-names.js +0 -92
  297. package/dist/regenerate/notes.d.ts +0 -159
  298. package/dist/regenerate/notes.js +0 -446
  299. package/dist/regenerate/os-sandbox.d.ts +0 -93
  300. package/dist/regenerate/os-sandbox.js +0 -283
  301. package/dist/regenerate/panel-dock.d.ts +0 -23
  302. package/dist/regenerate/paths.d.ts +0 -110
  303. package/dist/regenerate/paths.js +0 -190
  304. package/dist/regenerate/plain-palette.d.ts +0 -34
  305. package/dist/regenerate/prompt.d.ts +0 -230
  306. package/dist/regenerate/prompt.js +0 -741
  307. package/dist/regenerate/pulse-files.d.ts +0 -14
  308. package/dist/regenerate/pulse-files.js +0 -63
  309. package/dist/regenerate/records.d.ts +0 -132
  310. package/dist/regenerate/records.js +0 -327
  311. package/dist/regenerate/regenerate.d.ts +0 -106
  312. package/dist/regenerate/regenerate.js +0 -660
  313. package/dist/regenerate/regression.d.ts +0 -58
  314. package/dist/regenerate/regression.js +0 -188
  315. package/dist/regenerate/renames.d.ts +0 -42
  316. package/dist/regenerate/renames.js +0 -185
  317. package/dist/regenerate/requires.d.ts +0 -117
  318. package/dist/regenerate/requires.js +0 -377
  319. package/dist/regenerate/resources.d.ts +0 -57
  320. package/dist/regenerate/resources.js +0 -162
  321. package/dist/regenerate/scripts-being-written.d.ts +0 -19
  322. package/dist/regenerate/scripts-being-written.js +0 -30
  323. package/dist/regenerate/self-check.d.ts +0 -29
  324. package/dist/regenerate/self-check.js +0 -119
  325. package/dist/regenerate/services.d.ts +0 -28
  326. package/dist/regenerate/services.js +0 -158
  327. package/dist/regenerate/shell.d.ts +0 -91
  328. package/dist/regenerate/shell.js +0 -320
  329. package/dist/regenerate/side-panel.d.ts +0 -64
  330. package/dist/regenerate/spec-map-view.d.ts +0 -147
  331. package/dist/regenerate/spec-map.d.ts +0 -160
  332. package/dist/regenerate/spec-map.js +0 -596
  333. package/dist/regenerate/spec-steps.d.ts +0 -180
  334. package/dist/regenerate/spec-steps.js +0 -729
  335. package/dist/regenerate/standing.d.ts +0 -28
  336. package/dist/regenerate/standing.js +0 -30
  337. package/dist/regenerate/state.d.ts +0 -21
  338. package/dist/regenerate/state.js +0 -10
  339. package/dist/regenerate/steering.d.ts +0 -56
  340. package/dist/regenerate/steering.js +0 -119
  341. package/dist/regenerate/stop-report.d.ts +0 -43
  342. package/dist/regenerate/stop-report.js +0 -160
  343. package/dist/regenerate/submit-work.d.ts +0 -44
  344. package/dist/regenerate/submit-work.js +0 -76
  345. package/dist/regenerate/test-kinds.d.ts +0 -85
  346. package/dist/regenerate/test-kinds.js +0 -171
  347. package/dist/regenerate/test-scripts.d.ts +0 -240
  348. package/dist/regenerate/test-scripts.js +0 -847
  349. package/dist/regenerate/testing-steps.d.ts +0 -52
  350. package/dist/regenerate/testing-steps.js +0 -129
  351. package/dist/regenerate/testing.d.ts +0 -150
  352. package/dist/regenerate/testing.js +0 -438
  353. package/dist/regenerate/transcript-view.d.ts +0 -21
  354. package/dist/regenerate/unit-gate.d.ts +0 -27
  355. package/dist/regenerate/unit-gate.js +0 -20
  356. package/dist/regenerate/unit-review.d.ts +0 -152
  357. package/dist/regenerate/unit-review.js +0 -361
  358. package/dist/regenerate/web.d.ts +0 -61
  359. package/dist/regenerate/web.js +0 -256
  360. package/dist/regenerate/workspace.d.ts +0 -12
  361. package/dist/regenerate/workspace.js +0 -99
  362. package/dist/regenerate-cli.d.ts +0 -1
  363. package/dist/reopen.d.ts +0 -29
  364. package/dist/resume-line.d.ts +0 -5
  365. package/dist/review/live.d.ts +0 -72
  366. package/dist/review/live.js +0 -166
  367. package/dist/rules.d.ts +0 -20
  368. package/dist/rules.js +0 -47
  369. package/dist/run-report.d.ts +0 -88
  370. package/dist/run-report.js +0 -338
  371. package/dist/screen-padding.d.ts +0 -28
  372. package/dist/self-invocation.d.ts +0 -36
  373. package/dist/self-invocation.js +0 -137
  374. package/dist/sentinel-chat.d.ts +0 -19
  375. package/dist/sentinel-chat.js +0 -226
  376. package/dist/sentinel-check.d.ts +0 -36
  377. package/dist/sentinel-check.js +0 -78
  378. package/dist/sentinel.d.ts +0 -107
  379. package/dist/sentinel.js +0 -601
  380. package/dist/settings.d.ts +0 -45
  381. package/dist/settings.js +0 -378
  382. package/dist/setup.d.ts +0 -97
  383. package/dist/setup.js +0 -436
  384. package/dist/skill-progress.d.ts +0 -46
  385. package/dist/skill.d.ts +0 -102
  386. package/dist/skill.js +0 -147
  387. package/dist/skills.d.ts +0 -54
  388. package/dist/skills.js +0 -111
  389. package/dist/spawn-async.d.ts +0 -18
  390. package/dist/spawn-async.js +0 -35
  391. package/dist/stack.d.ts +0 -80
  392. package/dist/stack.js +0 -206
  393. package/dist/stdlib.d.ts +0 -43
  394. package/dist/stdlib.js +0 -118
  395. package/dist/surface.d.ts +0 -5
  396. package/dist/surface.js +0 -18
  397. package/dist/terminal-images.d.ts +0 -2
  398. package/dist/terminal-notifications.d.ts +0 -37
  399. package/dist/test-plain-files.d.ts +0 -41
  400. package/dist/test-plain-files.js +0 -172
  401. package/dist/tools.d.ts +0 -101
  402. package/dist/tools.js +0 -242
  403. package/dist/turri-versions.d.ts +0 -71
  404. package/genome/capture/capture.md +0 -26
  405. package/genome/capture/check-conventions.md +0 -5
  406. package/genome/capture/check-reference.md +0 -12
  407. package/genome/capture/compact.md +0 -7
  408. package/genome/capture/concepts.md +0 -3
  409. package/genome/capture/divide.md +0 -9
  410. package/genome/capture/feature.md +0 -45
  411. package/genome/capture/interface.md +0 -9
  412. package/genome/capture/modules.md +0 -25
  413. package/genome/capture/outline.md +0 -11
  414. package/genome/capture/python-interface.py +0 -111
  415. package/genome/capture/readability.md +0 -12
  416. package/genome/capture/reference.md +0 -10
  417. package/genome/capture/runners/python-requirements.sh +0 -67
  418. package/genome/capture/split.md +0 -9
  419. package/genome/capture/survey.md +0 -39
  420. package/genome/capture/trial.md +0 -18
  421. package/genome/capture/verify.md +0 -7
  422. package/genome/rules/bullet-continuation.md +0 -61
  423. package/genome/rules/concise-specs-examples.md +0 -460
  424. package/genome/rules/concise-specs-integration-examples.md +0 -281
  425. package/genome/rules/concise-specs.md +0 -80
  426. package/genome/rules/definitions.md +0 -107
  427. package/genome/rules/examples/integration-embedded-testing/run_conformance_tests_java.sh +0 -161
  428. package/genome/rules/examples/integration-embedded-testing/run_unittests_java.sh +0 -50
  429. package/genome/rules/exported-concepts.md +0 -39
  430. package/genome/rules/func-specs.md +0 -164
  431. package/genome/rules/impl-reqs.md +0 -68
  432. package/genome/rules/import-modules.md +0 -49
  433. package/genome/rules/integration-embedded-testing.md +0 -273
  434. package/genome/rules/integration-embedded.md +0 -171
  435. package/genome/rules/integration-standalone.md +0 -135
  436. package/genome/rules/integrations.md +0 -136
  437. package/genome/rules/linked-resources.md +0 -76
  438. package/genome/rules/module-structure.md +0 -112
  439. package/genome/rules/project-model.md +0 -69
  440. package/genome/rules/required-concepts.md +0 -44
  441. package/genome/rules/requires-modules.md +0 -81
  442. package/genome/rules/semantic-ids.md +0 -49
  443. package/genome/rules/stdlib.md +0 -37
  444. package/genome/rules/test-plain-files.md +0 -138
  445. package/genome/rules/test-reqs.md +0 -57
  446. package/genome/rules/turri-regeneration.md +0 -66
  447. package/genome/skills/analyze-2-func-specs/SKILL.md +0 -116
  448. package/genome/skills/analyze-func-specs/SKILL.md +0 -137
  449. package/genome/skills/break-down-func-spec/SKILL.md +0 -229
  450. package/genome/skills/consolidate-concepts/SKILL.md +0 -192
  451. package/genome/skills/convert-old-syntax/SKILL.md +0 -68
  452. package/genome/skills/convert-old-syntax/references/rubric.md +0 -11
  453. package/genome/skills/debug-specs/SKILL.md +0 -194
  454. package/genome/skills/implement-conformance-testing-script/SKILL.md +0 -247
  455. package/genome/skills/implement-conformance-testing-script/assets/run_conformance_tests_cypress.ps1 +0 -337
  456. package/genome/skills/implement-conformance-testing-script/assets/run_conformance_tests_golang.ps1 +0 -111
  457. package/genome/skills/implement-conformance-testing-script/assets/run_conformance_tests_java.sh +0 -151
  458. package/genome/skills/implement-conformance-testing-script/assets/run_conformance_tests_python.ps1 +0 -103
  459. package/genome/skills/implement-conformance-testing-script/assets/run_conformance_tests_python.sh +0 -146
  460. package/genome/skills/implement-unit-testing-script/SKILL.md +0 -171
  461. package/genome/skills/implement-unit-testing-script/assets/run_unittests_flutter.ps1 +0 -87
  462. package/genome/skills/implement-unit-testing-script/assets/run_unittests_golang.ps1 +0 -73
  463. package/genome/skills/implement-unit-testing-script/assets/run_unittests_java.sh +0 -82
  464. package/genome/skills/implement-unit-testing-script/assets/run_unittests_python.ps1 +0 -81
  465. package/genome/skills/implement-unit-testing-script/assets/run_unittests_python.sh +0 -102
  466. package/genome/skills/implement-unit-testing-script/assets/run_unittests_react.ps1 +0 -87
  467. package/genome/skills/refactor-module/SKILL.md +0 -218
  468. package/genome/skills/resolve-section-ownership/SKILL.md +0 -64
  469. package/genome/skills/resolve-spec-conflict/SKILL.md +0 -102
  470. package/stdlib/backend/common.plain +0 -25
  471. package/stdlib/backend/conformance/common.plain +0 -12
  472. package/stdlib/backend/conformance/go-gin.plain +0 -9
  473. package/stdlib/backend/conformance/go-nethttp.plain +0 -9
  474. package/stdlib/backend/conformance/java-springboot.plain +0 -9
  475. package/stdlib/backend/conformance/python-django.plain +0 -9
  476. package/stdlib/backend/conformance/python-fastapi.plain +0 -9
  477. package/stdlib/backend/conformance/python-flask.plain +0 -9
  478. package/stdlib/backend/conformance/rust-axum.plain +0 -9
  479. package/stdlib/backend/conformance/typescript-express.plain +0 -9
  480. package/stdlib/backend/conformance/typescript-fastify.plain +0 -9
  481. package/stdlib/backend/conformance/typescript-nestjs.plain +0 -9
  482. package/stdlib/backend/go-gin.plain +0 -18
  483. package/stdlib/backend/go-nethttp.plain +0 -18
  484. package/stdlib/backend/java-springboot.plain +0 -19
  485. package/stdlib/backend/python-django.plain +0 -19
  486. package/stdlib/backend/python-fastapi.plain +0 -23
  487. package/stdlib/backend/python-flask.plain +0 -23
  488. package/stdlib/backend/rust-axum.plain +0 -17
  489. package/stdlib/backend/typescript-express.plain +0 -19
  490. package/stdlib/backend/typescript-fastify.plain +0 -19
  491. package/stdlib/backend/typescript-nestjs.plain +0 -19
  492. package/stdlib/cli/common.plain +0 -17
  493. package/stdlib/cli/conformance/common.plain +0 -11
  494. package/stdlib/cli/conformance/go-cobra.plain +0 -9
  495. package/stdlib/cli/conformance/go-flag.plain +0 -9
  496. package/stdlib/cli/conformance/java-picocli.plain +0 -9
  497. package/stdlib/cli/conformance/python-argparse.plain +0 -9
  498. package/stdlib/cli/conformance/python-click.plain +0 -9
  499. package/stdlib/cli/conformance/python-typer.plain +0 -9
  500. package/stdlib/cli/conformance/rust-clap.plain +0 -9
  501. package/stdlib/cli/conformance/typescript-commander.plain +0 -9
  502. package/stdlib/cli/go-cobra.plain +0 -14
  503. package/stdlib/cli/go-flag.plain +0 -14
  504. package/stdlib/cli/java-picocli.plain +0 -15
  505. package/stdlib/cli/python-argparse.plain +0 -18
  506. package/stdlib/cli/python-click.plain +0 -16
  507. package/stdlib/cli/python-typer.plain +0 -16
  508. package/stdlib/cli/rust-clap.plain +0 -14
  509. package/stdlib/cli/typescript-commander.plain +0 -17
  510. package/stdlib/frontend/angular.plain +0 -17
  511. package/stdlib/frontend/common.plain +0 -17
  512. package/stdlib/frontend/conformance/angular.plain +0 -5
  513. package/stdlib/frontend/conformance/common.plain +0 -11
  514. package/stdlib/frontend/conformance/react-vite.plain +0 -5
  515. package/stdlib/frontend/conformance/sveltekit-spa.plain +0 -5
  516. package/stdlib/frontend/conformance/vue-vite.plain +0 -5
  517. package/stdlib/frontend/react-vite.plain +0 -16
  518. package/stdlib/frontend/sveltekit-spa.plain +0 -16
  519. package/stdlib/frontend/vue-vite.plain +0 -16
  520. package/stdlib/lang/go.plain +0 -13
  521. package/stdlib/lang/java.plain +0 -12
  522. package/stdlib/lang/python.plain +0 -18
  523. package/stdlib/lang/rust.plain +0 -12
  524. package/stdlib/lang/typescript.plain +0 -13
  525. package/stdlib/library/common.plain +0 -15
  526. package/stdlib/library/conformance/common.plain +0 -9
  527. package/stdlib/library/conformance/go.plain +0 -9
  528. package/stdlib/library/conformance/java-gradle.plain +0 -9
  529. package/stdlib/library/conformance/java-maven.plain +0 -9
  530. package/stdlib/library/conformance/python.plain +0 -9
  531. package/stdlib/library/conformance/rust.plain +0 -9
  532. package/stdlib/library/conformance/typescript.plain +0 -9
  533. package/stdlib/library/go.plain +0 -12
  534. package/stdlib/library/java-gradle.plain +0 -13
  535. package/stdlib/library/java-maven.plain +0 -13
  536. package/stdlib/library/python.plain +0 -13
  537. package/stdlib/library/rust.plain +0 -12
  538. 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,75 +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. ***plain you",
46
- "show is fenced as ```plain, which highlights it.",
47
- "",
48
- "Speak as turri, in the first person - I, my pulses, my agents - to the person, in whole sentences. Never speak of",
49
- "turri in the third person, as if it were someone else, and never tell the person to tell or ask turri something:",
50
- "they are talking to turri. What they should ask for, they ask you for, here.",
51
- "",
52
- "The person may have several chats with you open on this project at once, this one among them. What regenerates is",
53
- "the same in every chat: the pulses and their plan, the engine's coding model and what was launched -",
54
- "pulses lists every pulse, whichever chat asked for it. What was said in another chat is not in this one: when the",
55
- "person speaks of it, ask.",
56
- "",
57
- "Pulses regenerate in the background and never hold the conversation: while they run, you and the person go on -",
58
- "shaping the ***plain and writing its next change, answering their questions, trying what has landed or was",
59
- "launched. When a pulse starts, say so in a way that makes it plain they need not wait for it to finish; never tell",
60
- "them to wait for one, and never stop to wait for one yourself. Changing the ***plain while a pulse runs is safe: a",
61
- "change inside what the running pulse regenerates steers it, and the rest is planned again around it - the next",
62
- "change never waits for the last to land.",
63
- "",
64
- "Your words, and the older ones for the same things - a project's AGENTS.md, a skill, notes or the person may use",
65
- "either, and they mean the same:",
66
- "- A pulse is one unit of work regenerating the code - a spec diff regenerated in a codebase, or its conformance",
67
- " 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",
68
- " allow-to-stop-jobs in config.turri.yaml are about pulses. \"Job\" in what you read is a pulse; say pulse.",
69
- ];
70
- const IDENTITY_AFTER = [
71
- "- Regenerate is the word for what you do to the code: never grow, grew or grown - older text, a tool's description",
72
- " or a report may still say it, and means regenerate.",
73
- ];
74
- /** turri as the terminal runs it. */
75
- export const TURRI_IDENTITY = conversationIdentity();
@@ -1,172 +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` - are there commented out, with an example. The three capture models are active.
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 capture without a config starts with init-config's settings. Resolve an omitted model from the vendor's pair,
132
- * including the maker and geography on Bedrock, just as the wizard does. */
133
- export declare function quickStartForCapture(harness?: string, coding?: string): Promise<string>;
134
- /** A vendor from what was typed: its number in the list, or its name. */
135
- export declare function vendorOf(answer: string): Vendor | undefined;
136
- /** Bedrock's maker from what was typed: its number in the list - with no catalogue, 1 Anthropic, 2 OpenAI - or its name. */
137
- export declare function bedrockMakerOf(answer: string, catalogue?: ModelCatalogue): BedrockMaker | undefined;
138
- /** 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. */
139
- export declare function bedrockRegionOf(maker: BedrockMaker, answer: string, catalogue?: ModelCatalogue): string | undefined;
140
- /**
141
- * What a config.yaml in `folder` says that turri reads too - another tool's testing scripts, say - by turri's names
142
- * (`template_dir` read as `template-dir`), in the file's order; and the keys it leaves, turri reading none of them. The
143
- * two models are the vendor's, so they are not taken.
144
- */
145
- export declare function sharedWithLegacy(folder: string): {
146
- carried: Array<[string, unknown]>;
147
- left: string[];
148
- };
149
- export interface InitConfigOptions {
150
- /** Write the whole file again, not only the two models of one already there. */
151
- force?: boolean;
152
- /** Whose models: read from the models when they are given, other when nothing says. */
153
- vendor?: Vendor;
154
- /** On Amazon Bedrock: the geography, and whose models - read from the models when they are given. */
155
- bedrock?: BedrockChoice;
156
- /** The two models - any pair pi's catalogue has as chat models - in place of the vendor's own. */
157
- models?: ModelChoice;
158
- /** pi's catalogue, to check the models against - read from pi when it is needed and not given. */
159
- catalogue?: ModelCatalogue;
160
- }
161
- /**
162
- * Write the quick start config.turri.yaml in `dir`, with what a config.yaml beside it says that turri reads too. One already
163
- * there keeps everything but its two models, which are set to the vendor's - or the ones given - and `force` writes the
164
- * whole of it again. Says what it did; a model pi's catalogue does not have writes nothing and says so.
165
- */
166
- export declare function initConfig(dir: string, options?: InitConfigOptions): Promise<{
167
- written: boolean;
168
- message: string;
169
- }>;
170
- /** `turri init-config [--vendor <vendor>] [--maker <maker>] [--region <geography>] [--harness-model <spec> --coding-model <spec>] [--force] [folder]`. */
171
- export declare function main(args: string[]): Promise<number>;
172
- export {};