ptbk 0.119.0-7 → 0.119.0-70

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 (1054) hide show
  1. package/LICENSE.md +11 -0
  2. package/README.md +103 -26
  3. package/dist/book/commitments.d.ts +92 -0
  4. package/dist/book/commitments.js +154 -0
  5. package/dist/book/commitments.js.map +1 -0
  6. package/dist/book/convert.d.ts +36 -0
  7. package/dist/book/convert.js +156 -0
  8. package/dist/book/convert.js.map +1 -0
  9. package/dist/book/edit.d.ts +22 -0
  10. package/dist/book/edit.js +89 -0
  11. package/dist/book/edit.js.map +1 -0
  12. package/dist/book/highlight.d.ts +36 -0
  13. package/dist/book/highlight.js +76 -0
  14. package/dist/book/highlight.js.map +1 -0
  15. package/dist/book/model.d.ts +192 -0
  16. package/dist/book/model.js +339 -0
  17. package/dist/book/model.js.map +1 -0
  18. package/dist/book/parse.d.ts +121 -0
  19. package/dist/book/parse.js +229 -0
  20. package/dist/book/parse.js.map +1 -0
  21. package/dist/book/references.d.ts +111 -0
  22. package/dist/book/references.js +238 -0
  23. package/dist/book/references.js.map +1 -0
  24. package/dist/book/write.d.ts +42 -0
  25. package/dist/book/write.js +74 -0
  26. package/dist/book/write.js.map +1 -0
  27. package/dist/browser/agent-tools.d.ts +54 -0
  28. package/dist/browser/agent-tools.js +288 -0
  29. package/dist/browser/agent-tools.js.map +1 -0
  30. package/dist/browser/browser.d.ts +410 -0
  31. package/dist/browser/browser.js +1473 -0
  32. package/dist/browser/browser.js.map +1 -0
  33. package/dist/browser/fleet.d.ts +102 -0
  34. package/dist/browser/fleet.js +239 -0
  35. package/dist/browser/fleet.js.map +1 -0
  36. package/dist/browser/input.d.ts +45 -0
  37. package/dist/browser/input.js +104 -0
  38. package/dist/browser/input.js.map +1 -0
  39. package/dist/browser/page-scripts.d.ts +193 -0
  40. package/dist/browser/page-scripts.js +536 -0
  41. package/dist/browser/page-scripts.js.map +1 -0
  42. package/dist/browser/pool.d.ts +108 -0
  43. package/dist/browser/pool.js +295 -0
  44. package/dist/browser/pool.js.map +1 -0
  45. package/dist/browser/recording.d.ts +140 -0
  46. package/dist/browser/recording.js +371 -0
  47. package/dist/browser/recording.js.map +1 -0
  48. package/dist/browser/temporary-login.d.ts +12 -0
  49. package/dist/browser/temporary-login.js +36 -0
  50. package/dist/browser/temporary-login.js.map +1 -0
  51. package/dist/chats/attention.d.ts +111 -0
  52. package/dist/chats/attention.js +170 -0
  53. package/dist/chats/attention.js.map +1 -0
  54. package/dist/chats/batcher.d.ts +91 -0
  55. package/dist/chats/batcher.js +178 -0
  56. package/dist/chats/batcher.js.map +1 -0
  57. package/dist/chats/chat-book.d.ts +215 -0
  58. package/dist/chats/chat-book.js +340 -0
  59. package/dist/chats/chat-book.js.map +1 -0
  60. package/dist/chats/chat-tasks.d.ts +95 -0
  61. package/dist/chats/chat-tasks.js +66 -0
  62. package/dist/chats/chat-tasks.js.map +1 -0
  63. package/dist/chats/conversation.d.ts +249 -0
  64. package/dist/chats/conversation.js +1029 -0
  65. package/dist/chats/conversation.js.map +1 -0
  66. package/dist/chats/local.d.ts +54 -0
  67. package/dist/chats/local.js +250 -0
  68. package/dist/chats/local.js.map +1 -0
  69. package/dist/chats/message-audio.d.ts +99 -0
  70. package/dist/chats/message-audio.js +194 -0
  71. package/dist/chats/message-audio.js.map +1 -0
  72. package/dist/chats/migration.d.ts +12 -0
  73. package/dist/chats/migration.js +61 -0
  74. package/dist/chats/migration.js.map +1 -0
  75. package/dist/chats/service.d.ts +162 -0
  76. package/dist/chats/service.js +219 -0
  77. package/dist/chats/service.js.map +1 -0
  78. package/dist/chats/store.d.ts +335 -0
  79. package/dist/chats/store.js +567 -0
  80. package/dist/chats/store.js.map +1 -0
  81. package/dist/chats/task-chats.d.ts +55 -0
  82. package/dist/chats/task-chats.js +113 -0
  83. package/dist/chats/task-chats.js.map +1 -0
  84. package/dist/chats/voice-bridge.d.ts +49 -0
  85. package/dist/chats/voice-bridge.js +282 -0
  86. package/dist/chats/voice-bridge.js.map +1 -0
  87. package/dist/chats/voice-call.d.ts +189 -0
  88. package/dist/chats/voice-call.js +510 -0
  89. package/dist/chats/voice-call.js.map +1 -0
  90. package/dist/chats/voice-page.d.ts +14 -0
  91. package/dist/chats/voice-page.js +203 -0
  92. package/dist/chats/voice-page.js.map +1 -0
  93. package/dist/cli/action-picker.d.ts +70 -0
  94. package/dist/cli/action-picker.js +133 -0
  95. package/dist/cli/action-picker.js.map +1 -0
  96. package/dist/cli/chats.d.ts +45 -0
  97. package/dist/cli/chats.js +109 -0
  98. package/dist/cli/chats.js.map +1 -0
  99. package/dist/cli/commands/about.d.ts +9 -0
  100. package/dist/cli/commands/about.js +47 -0
  101. package/dist/cli/commands/about.js.map +1 -0
  102. package/dist/cli/commands/add.d.ts +7 -0
  103. package/dist/cli/commands/add.js +216 -0
  104. package/dist/cli/commands/add.js.map +1 -0
  105. package/dist/cli/commands/answer.d.ts +8 -0
  106. package/dist/cli/commands/answer.js +75 -0
  107. package/dist/cli/commands/answer.js.map +1 -0
  108. package/dist/cli/commands/ask.d.ts +7 -0
  109. package/dist/cli/commands/ask.js +37 -0
  110. package/dist/cli/commands/ask.js.map +1 -0
  111. package/dist/cli/commands/boilerplates.d.ts +7 -0
  112. package/dist/cli/commands/boilerplates.js +72 -0
  113. package/dist/cli/commands/boilerplates.js.map +1 -0
  114. package/dist/cli/commands/chat.d.ts +9 -0
  115. package/dist/cli/commands/chat.js +92 -0
  116. package/dist/cli/commands/chat.js.map +1 -0
  117. package/dist/cli/commands/dashboard.d.ts +9 -0
  118. package/dist/cli/commands/dashboard.js +68 -0
  119. package/dist/cli/commands/dashboard.js.map +1 -0
  120. package/dist/cli/commands/find.d.ts +19 -0
  121. package/dist/cli/commands/find.js +120 -0
  122. package/dist/cli/commands/find.js.map +1 -0
  123. package/dist/cli/commands/fix.d.ts +7 -0
  124. package/dist/cli/commands/fix.js +88 -0
  125. package/dist/cli/commands/fix.js.map +1 -0
  126. package/dist/cli/commands/init.d.ts +63 -0
  127. package/dist/cli/commands/init.js +1776 -0
  128. package/dist/cli/commands/init.js.map +1 -0
  129. package/dist/cli/commands/lint.d.ts +7 -0
  130. package/dist/cli/commands/lint.js +71 -0
  131. package/dist/cli/commands/lint.js.map +1 -0
  132. package/dist/cli/commands/list.d.ts +8 -0
  133. package/dist/cli/commands/list.js +207 -0
  134. package/dist/cli/commands/list.js.map +1 -0
  135. package/dist/cli/commands/migrate.d.ts +8 -0
  136. package/dist/cli/commands/migrate.js +211 -0
  137. package/dist/cli/commands/migrate.js.map +1 -0
  138. package/dist/cli/commands/panic.d.ts +12 -0
  139. package/dist/cli/commands/panic.js +104 -0
  140. package/dist/cli/commands/panic.js.map +1 -0
  141. package/dist/cli/commands/pause.d.ts +8 -0
  142. package/dist/cli/commands/pause.js +40 -0
  143. package/dist/cli/commands/pause.js.map +1 -0
  144. package/dist/cli/commands/ping.d.ts +7 -0
  145. package/dist/cli/commands/ping.js +58 -0
  146. package/dist/cli/commands/ping.js.map +1 -0
  147. package/dist/cli/commands/plan.d.ts +7 -0
  148. package/dist/cli/commands/plan.js +254 -0
  149. package/dist/cli/commands/plan.js.map +1 -0
  150. package/dist/cli/commands/recover.d.ts +7 -0
  151. package/dist/cli/commands/recover.js +91 -0
  152. package/dist/cli/commands/recover.js.map +1 -0
  153. package/dist/cli/commands/restart.d.ts +10 -0
  154. package/dist/cli/commands/restart.js +93 -0
  155. package/dist/cli/commands/restart.js.map +1 -0
  156. package/dist/cli/commands/resume.d.ts +8 -0
  157. package/dist/cli/commands/resume.js +26 -0
  158. package/dist/cli/commands/resume.js.map +1 -0
  159. package/dist/cli/commands/start.d.ts +8 -0
  160. package/dist/cli/commands/start.js +213 -0
  161. package/dist/cli/commands/start.js.map +1 -0
  162. package/dist/cli/commands/status.d.ts +8 -0
  163. package/dist/cli/commands/status.js +36 -0
  164. package/dist/cli/commands/status.js.map +1 -0
  165. package/dist/cli/commands/stop.d.ts +10 -0
  166. package/dist/cli/commands/stop.js +55 -0
  167. package/dist/cli/commands/stop.js.map +1 -0
  168. package/dist/cli/commands/tool.d.ts +19 -0
  169. package/dist/cli/commands/tool.js +377 -0
  170. package/dist/cli/commands/tool.js.map +1 -0
  171. package/dist/cli/commands/verify.d.ts +7 -0
  172. package/dist/cli/commands/verify.js +109 -0
  173. package/dist/cli/commands/verify.js.map +1 -0
  174. package/dist/cli/common.d.ts +65 -0
  175. package/dist/cli/common.js +161 -0
  176. package/dist/cli/common.js.map +1 -0
  177. package/dist/cli/compatibility.d.ts +14 -0
  178. package/dist/cli/compatibility.js +71 -0
  179. package/dist/cli/compatibility.js.map +1 -0
  180. package/dist/cli/context.d.ts +55 -0
  181. package/dist/cli/context.js +42 -0
  182. package/dist/cli/context.js.map +1 -0
  183. package/dist/cli/dashboard-handoff.d.ts +20 -0
  184. package/dist/cli/dashboard-handoff.js +33 -0
  185. package/dist/cli/dashboard-handoff.js.map +1 -0
  186. package/dist/cli/engine-delegation.d.ts +14 -0
  187. package/dist/cli/engine-delegation.js +46 -0
  188. package/dist/cli/engine-delegation.js.map +1 -0
  189. package/dist/cli/help.d.ts +20 -0
  190. package/dist/cli/help.js +161 -0
  191. package/dist/cli/help.js.map +1 -0
  192. package/dist/cli/lifecycle.d.ts +40 -0
  193. package/dist/cli/lifecycle.js +71 -0
  194. package/dist/cli/lifecycle.js.map +1 -0
  195. package/dist/cli/parser.d.ts +56 -0
  196. package/dist/cli/parser.js +292 -0
  197. package/dist/cli/parser.js.map +1 -0
  198. package/dist/cli/registry.d.ts +7 -0
  199. package/dist/cli/registry.js +736 -0
  200. package/dist/cli/registry.js.map +1 -0
  201. package/dist/cli/service-view.d.ts +37 -0
  202. package/dist/cli/service-view.js +106 -0
  203. package/dist/cli/service-view.js.map +1 -0
  204. package/dist/cli/sources.d.ts +15 -0
  205. package/dist/cli/sources.js +46 -0
  206. package/dist/cli/sources.js.map +1 -0
  207. package/dist/cli/spec.d.ts +165 -0
  208. package/dist/cli/spec.js +128 -0
  209. package/dist/cli/spec.js.map +1 -0
  210. package/dist/cli.d.ts +8 -4
  211. package/dist/cli.js +52 -9
  212. package/dist/cli.js.map +1 -1
  213. package/dist/common/app-data.d.ts +9 -0
  214. package/dist/common/app-data.js +20 -0
  215. package/dist/common/app-data.js.map +1 -0
  216. package/dist/common/branding.d.ts +27 -0
  217. package/dist/common/branding.js +33 -0
  218. package/dist/common/branding.js.map +1 -0
  219. package/dist/common/duration.d.ts +32 -0
  220. package/dist/common/duration.js +153 -0
  221. package/dist/common/duration.js.map +1 -0
  222. package/dist/common/errors.d.ts +81 -0
  223. package/dist/common/errors.js +72 -0
  224. package/dist/common/errors.js.map +1 -0
  225. package/dist/common/fs.d.ts +108 -0
  226. package/dist/common/fs.js +259 -0
  227. package/dist/common/fs.js.map +1 -0
  228. package/dist/common/ids.d.ts +24 -0
  229. package/dist/common/ids.js +49 -0
  230. package/dist/common/ids.js.map +1 -0
  231. package/dist/common/ipc.d.ts +48 -0
  232. package/dist/common/ipc.js +156 -0
  233. package/dist/common/ipc.js.map +1 -0
  234. package/dist/common/mutex.d.ts +12 -0
  235. package/dist/common/mutex.js +26 -0
  236. package/dist/common/mutex.js.map +1 -0
  237. package/dist/common/naming.d.ts +53 -0
  238. package/dist/common/naming.js +90 -0
  239. package/dist/common/naming.js.map +1 -0
  240. package/dist/common/open-url.d.ts +7 -0
  241. package/dist/common/open-url.js +25 -0
  242. package/dist/common/open-url.js.map +1 -0
  243. package/dist/common/process.d.ts +161 -0
  244. package/dist/common/process.js +475 -0
  245. package/dist/common/process.js.map +1 -0
  246. package/dist/common/redact.d.ts +24 -0
  247. package/dist/common/redact.js +70 -0
  248. package/dist/common/redact.js.map +1 -0
  249. package/dist/common/semver.d.ts +18 -0
  250. package/dist/common/semver.js +80 -0
  251. package/dist/common/semver.js.map +1 -0
  252. package/dist/common/time.d.ts +65 -0
  253. package/dist/common/time.js +163 -0
  254. package/dist/common/time.js.map +1 -0
  255. package/dist/common/user-home.d.ts +59 -0
  256. package/dist/common/user-home.js +163 -0
  257. package/dist/common/user-home.js.map +1 -0
  258. package/dist/common/version.d.ts +52 -0
  259. package/dist/common/version.js +76 -0
  260. package/dist/common/version.js.map +1 -0
  261. package/dist/engine/action-impact.d.ts +183 -0
  262. package/dist/engine/action-impact.js +291 -0
  263. package/dist/engine/action-impact.js.map +1 -0
  264. package/dist/engine/action-log.d.ts +372 -0
  265. package/dist/engine/action-log.js +926 -0
  266. package/dist/engine/action-log.js.map +1 -0
  267. package/dist/engine/agenda.d.ts +1284 -0
  268. package/dist/engine/agenda.js +5346 -0
  269. package/dist/engine/agenda.js.map +1 -0
  270. package/dist/engine/attention-owner.d.ts +153 -0
  271. package/dist/engine/attention-owner.js +269 -0
  272. package/dist/engine/attention-owner.js.map +1 -0
  273. package/dist/engine/attention.d.ts +9 -0
  274. package/dist/engine/attention.js +113 -0
  275. package/dist/engine/attention.js.map +1 -0
  276. package/dist/engine/bridge.d.ts +57 -0
  277. package/dist/engine/bridge.js +63 -0
  278. package/dist/engine/bridge.js.map +1 -0
  279. package/dist/engine/concurrency.d.ts +100 -0
  280. package/dist/engine/concurrency.js +197 -0
  281. package/dist/engine/concurrency.js.map +1 -0
  282. package/dist/engine/effects.d.ts +80 -0
  283. package/dist/engine/effects.js +147 -0
  284. package/dist/engine/effects.js.map +1 -0
  285. package/dist/engine/engine-update.d.ts +281 -0
  286. package/dist/engine/engine-update.js +666 -0
  287. package/dist/engine/engine-update.js.map +1 -0
  288. package/dist/engine/executor.d.ts +310 -0
  289. package/dist/engine/executor.js +958 -0
  290. package/dist/engine/executor.js.map +1 -0
  291. package/dist/engine/generated.d.ts +262 -0
  292. package/dist/engine/generated.js +412 -0
  293. package/dist/engine/generated.js.map +1 -0
  294. package/dist/engine/harnesses.d.ts +137 -0
  295. package/dist/engine/harnesses.js +343 -0
  296. package/dist/engine/harnesses.js.map +1 -0
  297. package/dist/engine/health.d.ts +228 -0
  298. package/dist/engine/health.js +672 -0
  299. package/dist/engine/health.js.map +1 -0
  300. package/dist/engine/isolation.d.ts +27 -0
  301. package/dist/engine/isolation.js +44 -0
  302. package/dist/engine/isolation.js.map +1 -0
  303. package/dist/engine/knowledge.d.ts +107 -0
  304. package/dist/engine/knowledge.js +228 -0
  305. package/dist/engine/knowledge.js.map +1 -0
  306. package/dist/engine/mcp-server.js +84 -0
  307. package/dist/engine/mcp-server.js.map +1 -0
  308. package/dist/engine/operator-intent.d.ts +82 -0
  309. package/dist/engine/operator-intent.js +85 -0
  310. package/dist/engine/operator-intent.js.map +1 -0
  311. package/dist/engine/preview.d.ts +26 -0
  312. package/dist/engine/preview.js +69 -0
  313. package/dist/engine/preview.js.map +1 -0
  314. package/dist/engine/pricing.d.ts +115 -0
  315. package/dist/engine/pricing.js +217 -0
  316. package/dist/engine/pricing.js.map +1 -0
  317. package/dist/engine/progressive-waiting.d.ts +174 -0
  318. package/dist/engine/progressive-waiting.js +139 -0
  319. package/dist/engine/progressive-waiting.js.map +1 -0
  320. package/dist/engine/prompt.d.ts +87 -0
  321. package/dist/engine/prompt.js +178 -0
  322. package/dist/engine/prompt.js.map +1 -0
  323. package/dist/engine/report.d.ts +87 -0
  324. package/dist/engine/report.js +112 -0
  325. package/dist/engine/report.js.map +1 -0
  326. package/dist/engine/result.d.ts +31 -0
  327. package/dist/engine/result.js +81 -0
  328. package/dist/engine/result.js.map +1 -0
  329. package/dist/engine/routing.d.ts +148 -0
  330. package/dist/engine/routing.js +285 -0
  331. package/dist/engine/routing.js.map +1 -0
  332. package/dist/engine/snapshot.d.ts +798 -0
  333. package/dist/engine/snapshot.js +2 -0
  334. package/dist/engine/snapshot.js.map +1 -0
  335. package/dist/engine/state.d.ts +467 -0
  336. package/dist/engine/state.js +333 -0
  337. package/dist/engine/state.js.map +1 -0
  338. package/dist/engine/sync.d.ts +104 -0
  339. package/dist/engine/sync.js +212 -0
  340. package/dist/engine/sync.js.map +1 -0
  341. package/dist/engine/task-control.d.ts +223 -0
  342. package/dist/engine/task-control.js +136 -0
  343. package/dist/engine/task-control.js.map +1 -0
  344. package/dist/engine/task-trace.d.ts +118 -0
  345. package/dist/engine/task-trace.js +267 -0
  346. package/dist/engine/task-trace.js.map +1 -0
  347. package/dist/engine/team.d.ts +91 -0
  348. package/dist/engine/team.js +208 -0
  349. package/dist/engine/team.js.map +1 -0
  350. package/dist/engine/traces.d.ts +12 -0
  351. package/dist/engine/traces.js +27 -0
  352. package/dist/engine/traces.js.map +1 -0
  353. package/dist/engine/usage.d.ts +312 -0
  354. package/dist/engine/usage.js +385 -0
  355. package/dist/engine/usage.js.map +1 -0
  356. package/dist/engine/voice-calls.d.ts +100 -0
  357. package/dist/engine/voice-calls.js +247 -0
  358. package/dist/engine/voice-calls.js.map +1 -0
  359. package/dist/expert/_main.md +210 -0
  360. package/dist/expert/agents/_index.md +20 -0
  361. package/dist/expert/agents/consistency.md +11 -0
  362. package/dist/expert/agents/core-agents/adam.md +17 -0
  363. package/dist/expert/agents/core-agents/chatter.md +39 -0
  364. package/dist/expert/agents/core-agents/fixer.md +43 -0
  365. package/dist/expert/agents/core-agents/router.md +35 -0
  366. package/dist/expert/agents/core-agents/tasker.md +17 -0
  367. package/dist/expert/agents/core-agents/teacher.md +13 -0
  368. package/dist/expert/agents/core-agents.md +44 -0
  369. package/dist/expert/agents/expert.md +15 -0
  370. package/dist/expert/agents/learning.md +15 -0
  371. package/dist/expert/agents/system-agents.md +19 -0
  372. package/dist/expert/agents/visual-identity.md +31 -0
  373. package/dist/expert/app/integration.md +102 -0
  374. package/dist/expert/book-language/_index.md +20 -0
  375. package/dist/expert/book-language/commitments/_index.md +74 -0
  376. package/dist/expert/book-language/commitments/action.md +7 -0
  377. package/dist/expert/book-language/commitments/agent.md +11 -0
  378. package/dist/expert/book-language/commitments/chat-member.md +15 -0
  379. package/dist/expert/book-language/commitments/chat-message-audio.md +39 -0
  380. package/dist/expert/book-language/commitments/chat-message.md +17 -0
  381. package/dist/expert/book-language/commitments/chat-status.md +11 -0
  382. package/dist/expert/book-language/commitments/chat-title.md +11 -0
  383. package/dist/expert/book-language/commitments/chat.md +13 -0
  384. package/dist/expert/book-language/commitments/closed.md +9 -0
  385. package/dist/expert/book-language/commitments/delete.md +7 -0
  386. package/dist/expert/book-language/commitments/dictionary.md +7 -0
  387. package/dist/expert/book-language/commitments/entity.md +9 -0
  388. package/dist/expert/book-language/commitments/format.md +7 -0
  389. package/dist/expert/book-language/commitments/from.md +7 -0
  390. package/dist/expert/book-language/commitments/goal.md +11 -0
  391. package/dist/expert/book-language/commitments/import.md +7 -0
  392. package/dist/expert/book-language/commitments/knowledge.md +11 -0
  393. package/dist/expert/book-language/commitments/language.md +7 -0
  394. package/dist/expert/book-language/commitments/link.md +9 -0
  395. package/dist/expert/book-language/commitments/model.md +33 -0
  396. package/dist/expert/book-language/commitments/note.md +7 -0
  397. package/dist/expert/book-language/commitments/open.md +9 -0
  398. package/dist/expert/book-language/commitments/persona.md +7 -0
  399. package/dist/expert/book-language/commitments/rule.md +7 -0
  400. package/dist/expert/book-language/commitments/sample.md +7 -0
  401. package/dist/expert/book-language/commitments/style.md +7 -0
  402. package/dist/expert/book-language/commitments/task-after.md +9 -0
  403. package/dist/expert/book-language/commitments/task-agent.md +11 -0
  404. package/dist/expert/book-language/commitments/task-change.md +22 -0
  405. package/dist/expert/book-language/commitments/task-depends-on.md +7 -0
  406. package/dist/expert/book-language/commitments/task-done.md +9 -0
  407. package/dist/expert/book-language/commitments/task-due-date.md +9 -0
  408. package/dist/expert/book-language/commitments/task-note.md +9 -0
  409. package/dist/expert/book-language/commitments/task-origin.md +9 -0
  410. package/dist/expert/book-language/commitments/task-parent.md +7 -0
  411. package/dist/expert/book-language/commitments/task-priority.md +9 -0
  412. package/dist/expert/book-language/commitments/task-purpose.md +19 -0
  413. package/dist/expert/book-language/commitments/task-reopen.md +13 -0
  414. package/dist/expert/book-language/commitments/task-repeat.md +9 -0
  415. package/dist/expert/book-language/commitments/task-runner.md +7 -0
  416. package/dist/expert/book-language/commitments/task-status.md +11 -0
  417. package/dist/expert/book-language/commitments/task.md +11 -0
  418. package/dist/expert/book-language/commitments/team.md +7 -0
  419. package/dist/expert/book-language/commitments/template.md +7 -0
  420. package/dist/expert/book-language/commitments/writing-rules.md +7 -0
  421. package/dist/expert/book-language/commitments/writing-sample.md +7 -0
  422. package/dist/expert/book-language/inheritance.md +15 -0
  423. package/dist/expert/book-language/layering.md +51 -0
  424. package/dist/expert/book-language/references.md +103 -0
  425. package/dist/expert/book-language/syntax.md +75 -0
  426. package/dist/expert/book-language/vscode.md +17 -0
  427. package/dist/expert/cli/acceptance.md +270 -0
  428. package/dist/expert/cli/action-log-ui.md +34 -0
  429. package/dist/expert/cli/action-log.md +55 -0
  430. package/dist/expert/cli/agent-context.md +15 -0
  431. package/dist/expert/cli/api.md +75 -0
  432. package/dist/expert/cli/authoring.md +19 -0
  433. package/dist/expert/cli/autonomous-operation.md +43 -0
  434. package/dist/expert/cli/book-editor.md +23 -0
  435. package/dist/expert/cli/book-viewer.md +19 -0
  436. package/dist/expert/cli/browser.md +57 -0
  437. package/dist/expert/cli/channels.md +13 -0
  438. package/dist/expert/cli/chat-tasks.md +41 -0
  439. package/dist/expert/cli/chat-ui.md +54 -0
  440. package/dist/expert/cli/chats.md +85 -0
  441. package/dist/expert/cli/checks.md +27 -0
  442. package/dist/expert/cli/cli.md +86 -0
  443. package/dist/expert/cli/concurrency.md +39 -0
  444. package/dist/expert/cli/configuration-migrations.md +55 -0
  445. package/dist/expert/cli/configuration.md +62 -0
  446. package/dist/expert/cli/controls.md +51 -0
  447. package/dist/expert/cli/dashboard-details.md +101 -0
  448. package/dist/expert/cli/dashboard-layout.md +108 -0
  449. package/dist/expert/cli/dashboard.md +49 -0
  450. package/dist/expert/cli/desktop.md +54 -0
  451. package/dist/expert/cli/eligibility.md +17 -0
  452. package/dist/expert/cli/environment.md +35 -0
  453. package/dist/expert/cli/errors.md +17 -0
  454. package/dist/expert/cli/execution.md +29 -0
  455. package/dist/expert/cli/files.md +19 -0
  456. package/dist/expert/cli/first-task.md +27 -0
  457. package/dist/expert/cli/generated-names.md +46 -0
  458. package/dist/expert/cli/git-persistence.md +67 -0
  459. package/dist/expert/cli/git-preflight.md +15 -0
  460. package/dist/expert/cli/git-synchronization.md +37 -0
  461. package/dist/expert/cli/global-dashboard.md +73 -0
  462. package/dist/expert/cli/goal-discovery.md +15 -0
  463. package/dist/expert/cli/harness-authentication.md +48 -0
  464. package/dist/expert/cli/harness-plugins.md +49 -0
  465. package/dist/expert/cli/harness-sessions.md +57 -0
  466. package/dist/expert/cli/harness-updates.md +19 -0
  467. package/dist/expert/cli/harness-voice.md +42 -0
  468. package/dist/expert/cli/harnesses.md +49 -0
  469. package/dist/expert/cli/health-sub-engine.md +86 -0
  470. package/dist/expert/cli/help.md +47 -0
  471. package/dist/expert/cli/history.md +15 -0
  472. package/dist/expert/cli/initialization-ui.md +53 -0
  473. package/dist/expert/cli/initialization.md +79 -0
  474. package/dist/expert/cli/installation.md +45 -0
  475. package/dist/expert/cli/interactive-ui.md +49 -0
  476. package/dist/expert/cli/isolation.md +9 -0
  477. package/dist/expert/cli/known-limitations.md +11 -0
  478. package/dist/expert/cli/locking.md +21 -0
  479. package/dist/expert/cli/migration.md +29 -0
  480. package/dist/expert/cli/nested-projects.md +19 -0
  481. package/dist/expert/cli/not-before.md +13 -0
  482. package/dist/expert/cli/notifications.md +140 -0
  483. package/dist/expert/cli/operations.md +15 -0
  484. package/dist/expert/cli/panic.md +35 -0
  485. package/dist/expert/cli/persistence.md +51 -0
  486. package/dist/expert/cli/planning.md +11 -0
  487. package/dist/expert/cli/power-management.md +27 -0
  488. package/dist/expert/cli/process-modes.md +47 -0
  489. package/dist/expert/cli/project-encryption.md +41 -0
  490. package/dist/expert/cli/project-report-ui.md +15 -0
  491. package/dist/expert/cli/project-report.md +42 -0
  492. package/dist/expert/cli/recovery.md +23 -0
  493. package/dist/expert/cli/recurrence.md +21 -0
  494. package/dist/expert/cli/releasing.md +49 -0
  495. package/dist/expert/cli/retries.md +31 -0
  496. package/dist/expert/cli/rich-input.md +23 -0
  497. package/dist/expert/cli/routing-migration.md +13 -0
  498. package/dist/expert/cli/service-lifecycle.md +94 -0
  499. package/dist/expert/cli/start.md +47 -0
  500. package/dist/expert/cli/status-view.md +39 -0
  501. package/dist/expert/cli/storage-and-git.md +29 -0
  502. package/dist/expert/cli/sub-engines.md +38 -0
  503. package/dist/expert/cli/synchronization-setup.md +24 -0
  504. package/dist/expert/cli/system-tasks.md +23 -0
  505. package/dist/expert/cli/task-books.md +35 -0
  506. package/dist/expert/cli/task-control.md +53 -0
  507. package/dist/expert/cli/task-identity.md +19 -0
  508. package/dist/expert/cli/task-markdown.md +11 -0
  509. package/dist/expert/cli/task-origins.md +19 -0
  510. package/dist/expert/cli/task-relationships.md +9 -0
  511. package/dist/expert/cli/task-views.md +30 -0
  512. package/dist/expert/cli/team.md +27 -0
  513. package/dist/expert/cli/terminal-title.md +73 -0
  514. package/dist/expert/cli/terminal.md +53 -0
  515. package/dist/expert/cli/tool-management.md +62 -0
  516. package/dist/expert/cli/tool-runtime.md +35 -0
  517. package/dist/expert/cli/tools-migration.md +48 -0
  518. package/dist/expert/cli/tools.md +83 -0
  519. package/dist/expert/cli/trace-configuration.md +23 -0
  520. package/dist/expert/cli/traces.md +45 -0
  521. package/dist/expert/cli/updates.md +66 -0
  522. package/dist/expert/cli/usage.md +68 -0
  523. package/dist/expert/cli/user-interactions.md +35 -0
  524. package/dist/expert/cli/voice-chat-ui.md +27 -0
  525. package/dist/expert/cli/voice-chats.md +43 -0
  526. package/dist/expert/cli/vps-onboarding.md +52 -0
  527. package/dist/expert/cli/wallet-import.md +31 -0
  528. package/dist/expert/cli/wallet-recovery.md +29 -0
  529. package/dist/expert/cli/wallet-testing.md +25 -0
  530. package/dist/expert/cli/wallet.md +96 -0
  531. package/dist/expert/cli/windows-installer.md +87 -0
  532. package/dist/expert/cli/workspace.md +57 -0
  533. package/dist/expert/coding-standards/_index.md +11 -0
  534. package/dist/expert/coding-standards/naming.md +30 -0
  535. package/dist/expert/coding-standards/shared-logic.md +49 -0
  536. package/dist/expert/concepts/anchoring.md +15 -0
  537. package/dist/expert/concepts/automatic-repair.md +41 -0
  538. package/dist/expert/concepts/common-knowledge.md +62 -0
  539. package/dist/expert/concepts/engine-and-project.md +35 -0
  540. package/dist/expert/concepts/external-action-impact.md +80 -0
  541. package/dist/expert/concepts/minimal-interruption/_index.md +24 -0
  542. package/dist/expert/concepts/minimal-interruption/acceptance.md +12 -0
  543. package/dist/expert/concepts/minimal-interruption/authentication-examples.md +12 -0
  544. package/dist/expert/concepts/minimal-interruption/content-examples.md +24 -0
  545. package/dist/expert/concepts/minimal-interruption/decision-making.md +29 -0
  546. package/dist/expert/concepts/minimal-interruption/technical-examples.md +17 -0
  547. package/dist/expert/concepts/minimal-interruption/work-purpose.md +27 -0
  548. package/dist/expert/concepts/product-presentation.md +23 -0
  549. package/dist/expert/concepts/progressive-waiting.md +51 -0
  550. package/dist/expert/concepts/project-model.md +41 -0
  551. package/dist/expert/dictionary.md +65 -0
  552. package/dist/expert/whitepaper.md +211 -0
  553. package/dist/harness/maintenance.d.ts +137 -0
  554. package/dist/harness/maintenance.js +239 -0
  555. package/dist/harness/maintenance.js.map +1 -0
  556. package/dist/harness/models.d.ts +15 -0
  557. package/dist/harness/models.js +30 -0
  558. package/dist/harness/models.js.map +1 -0
  559. package/dist/harness/plugins/claude-code/index.d.ts +7 -0
  560. package/dist/harness/plugins/claude-code/index.js +119 -0
  561. package/dist/harness/plugins/claude-code/index.js.map +1 -0
  562. package/dist/harness/plugins/gemini/index.d.ts +7 -0
  563. package/dist/harness/plugins/gemini/index.js +57 -0
  564. package/dist/harness/plugins/gemini/index.js.map +1 -0
  565. package/dist/harness/plugins/github-copilot/index.d.ts +7 -0
  566. package/dist/harness/plugins/github-copilot/index.js +77 -0
  567. package/dist/harness/plugins/github-copilot/index.js.map +1 -0
  568. package/dist/harness/plugins/openai-codex/app-server.d.ts +67 -0
  569. package/dist/harness/plugins/openai-codex/app-server.js +153 -0
  570. package/dist/harness/plugins/openai-codex/app-server.js.map +1 -0
  571. package/dist/harness/plugins/openai-codex/index.d.ts +7 -0
  572. package/dist/harness/plugins/openai-codex/index.js +277 -0
  573. package/dist/harness/plugins/openai-codex/index.js.map +1 -0
  574. package/dist/harness/plugins/openai-codex/voice.d.ts +16 -0
  575. package/dist/harness/plugins/openai-codex/voice.js +314 -0
  576. package/dist/harness/plugins/openai-codex/voice.js.map +1 -0
  577. package/dist/harness/plugins/opencode/index.d.ts +7 -0
  578. package/dist/harness/plugins/opencode/index.js +128 -0
  579. package/dist/harness/plugins/opencode/index.js.map +1 -0
  580. package/dist/harness/plugins/qwen-code/index.d.ts +7 -0
  581. package/dist/harness/plugins/qwen-code/index.js +56 -0
  582. package/dist/harness/plugins/qwen-code/index.js.map +1 -0
  583. package/dist/harness/preparation.d.ts +62 -0
  584. package/dist/harness/preparation.js +95 -0
  585. package/dist/harness/preparation.js.map +1 -0
  586. package/dist/harness/quota-reset.d.ts +10 -0
  587. package/dist/harness/quota-reset.js +126 -0
  588. package/dist/harness/quota-reset.js.map +1 -0
  589. package/dist/harness/registry.d.ts +19 -0
  590. package/dist/harness/registry.js +31 -0
  591. package/dist/harness/registry.js.map +1 -0
  592. package/dist/harness/run.d.ts +60 -0
  593. package/dist/harness/run.js +134 -0
  594. package/dist/harness/run.js.map +1 -0
  595. package/dist/harness/sessions.d.ts +326 -0
  596. package/dist/harness/sessions.js +386 -0
  597. package/dist/harness/sessions.js.map +1 -0
  598. package/dist/harness/shared.d.ts +106 -0
  599. package/dist/harness/shared.js +308 -0
  600. package/dist/harness/shared.js.map +1 -0
  601. package/dist/harness/types.d.ts +400 -0
  602. package/dist/harness/types.js +2 -0
  603. package/dist/harness/types.js.map +1 -0
  604. package/dist/harness/voice.d.ts +194 -0
  605. package/dist/harness/voice.js +55 -0
  606. package/dist/harness/voice.js.map +1 -0
  607. package/dist/project/agents.d.ts +172 -0
  608. package/dist/project/agents.js +345 -0
  609. package/dist/project/agents.js.map +1 -0
  610. package/dist/project/book-migrations.d.ts +107 -0
  611. package/dist/project/book-migrations.js +385 -0
  612. package/dist/project/book-migrations.js.map +1 -0
  613. package/dist/project/book-sources.d.ts +42 -0
  614. package/dist/project/book-sources.js +85 -0
  615. package/dist/project/book-sources.js.map +1 -0
  616. package/dist/project/books.d.ts +156 -0
  617. package/dist/project/books.js +265 -0
  618. package/dist/project/books.js.map +1 -0
  619. package/dist/project/checks.d.ts +60 -0
  620. package/dist/project/checks.js +156 -0
  621. package/dist/project/checks.js.map +1 -0
  622. package/dist/project/config.d.ts +310 -0
  623. package/dist/project/config.js +682 -0
  624. package/dist/project/config.js.map +1 -0
  625. package/dist/project/configuration.d.ts +43 -0
  626. package/dist/project/configuration.js +216 -0
  627. package/dist/project/configuration.js.map +1 -0
  628. package/dist/project/core-templates.d.ts +107 -0
  629. package/dist/project/core-templates.js +249 -0
  630. package/dist/project/core-templates.js.map +1 -0
  631. package/dist/project/defaults.d.ts +209 -0
  632. package/dist/project/defaults.js +551 -0
  633. package/dist/project/defaults.js.map +1 -0
  634. package/dist/project/draft.d.ts +29 -0
  635. package/dist/project/draft.js +65 -0
  636. package/dist/project/draft.js.map +1 -0
  637. package/dist/project/expert.d.ts +14 -0
  638. package/dist/project/expert.js +74 -0
  639. package/dist/project/expert.js.map +1 -0
  640. package/dist/project/files.d.ts +85 -0
  641. package/dist/project/files.js +195 -0
  642. package/dist/project/files.js.map +1 -0
  643. package/dist/project/git.d.ts +254 -0
  644. package/dist/project/git.js +446 -0
  645. package/dist/project/git.js.map +1 -0
  646. package/dist/project/history.d.ts +93 -0
  647. package/dist/project/history.js +96 -0
  648. package/dist/project/history.js.map +1 -0
  649. package/dist/project/install.d.ts +52 -0
  650. package/dist/project/install.js +113 -0
  651. package/dist/project/install.js.map +1 -0
  652. package/dist/project/migrations.d.ts +103 -0
  653. package/dist/project/migrations.js +387 -0
  654. package/dist/project/migrations.js.map +1 -0
  655. package/dist/project/publication.d.ts +57 -0
  656. package/dist/project/publication.js +149 -0
  657. package/dist/project/publication.js.map +1 -0
  658. package/dist/project/readiness.d.ts +44 -0
  659. package/dist/project/readiness.js +65 -0
  660. package/dist/project/readiness.js.map +1 -0
  661. package/dist/project/self-update.d.ts +73 -0
  662. package/dist/project/self-update.js +138 -0
  663. package/dist/project/self-update.js.map +1 -0
  664. package/dist/project/setup.d.ts +110 -0
  665. package/dist/project/setup.js +247 -0
  666. package/dist/project/setup.js.map +1 -0
  667. package/dist/project/update-policy.d.ts +97 -0
  668. package/dist/project/update-policy.js +229 -0
  669. package/dist/project/update-policy.js.map +1 -0
  670. package/dist/project/workspace.d.ts +78 -0
  671. package/dist/project/workspace.js +76 -0
  672. package/dist/project/workspace.js.map +1 -0
  673. package/dist/service/actions.d.ts +90 -0
  674. package/dist/service/actions.js +342 -0
  675. package/dist/service/actions.js.map +1 -0
  676. package/dist/service/auth.d.ts +15 -0
  677. package/dist/service/auth.js +45 -0
  678. package/dist/service/auth.js.map +1 -0
  679. package/dist/service/control.d.ts +114 -0
  680. package/dist/service/control.js +162 -0
  681. package/dist/service/control.js.map +1 -0
  682. package/dist/service/discovery.d.ts +134 -0
  683. package/dist/service/discovery.js +138 -0
  684. package/dist/service/discovery.js.map +1 -0
  685. package/dist/service/global-controls.d.ts +83 -0
  686. package/dist/service/global-controls.js +196 -0
  687. package/dist/service/global-controls.js.map +1 -0
  688. package/dist/service/host.d.ts +82 -0
  689. package/dist/service/host.js +382 -0
  690. package/dist/service/host.js.map +1 -0
  691. package/dist/service/http.d.ts +38 -0
  692. package/dist/service/http.js +405 -0
  693. package/dist/service/http.js.map +1 -0
  694. package/dist/service/known-projects.d.ts +108 -0
  695. package/dist/service/known-projects.js +160 -0
  696. package/dist/service/known-projects.js.map +1 -0
  697. package/dist/service/launcher.d.ts +159 -0
  698. package/dist/service/launcher.js +372 -0
  699. package/dist/service/launcher.js.map +1 -0
  700. package/dist/service/owned-processes.d.ts +81 -0
  701. package/dist/service/owned-processes.js +140 -0
  702. package/dist/service/owned-processes.js.map +1 -0
  703. package/dist/service/persistence.d.ts +26 -0
  704. package/dist/service/persistence.js +124 -0
  705. package/dist/service/persistence.js.map +1 -0
  706. package/dist/service/records.d.ts +167 -0
  707. package/dist/service/records.js +247 -0
  708. package/dist/service/records.js.map +1 -0
  709. package/dist/service/spa/app.css +1234 -0
  710. package/dist/service/spa/app.js +2982 -0
  711. package/dist/service/spa/icon.svg +1 -0
  712. package/dist/service/spa/index.html +22 -0
  713. package/dist/service/supervisor.d.ts +1 -0
  714. package/dist/service/supervisor.js +108 -0
  715. package/dist/service/supervisor.js.map +1 -0
  716. package/dist/service/worker.d.ts +1 -0
  717. package/dist/service/worker.js +98 -0
  718. package/dist/service/worker.js.map +1 -0
  719. package/dist/tasks/authoring.d.ts +34 -0
  720. package/dist/tasks/authoring.js +49 -0
  721. package/dist/tasks/authoring.js.map +1 -0
  722. package/dist/tasks/book-task.d.ts +69 -0
  723. package/dist/tasks/book-task.js +248 -0
  724. package/dist/tasks/book-task.js.map +1 -0
  725. package/dist/tasks/eligibility.d.ts +185 -0
  726. package/dist/tasks/eligibility.js +247 -0
  727. package/dist/tasks/eligibility.js.map +1 -0
  728. package/dist/tasks/identity.d.ts +80 -0
  729. package/dist/tasks/identity.js +154 -0
  730. package/dist/tasks/identity.js.map +1 -0
  731. package/dist/tasks/markdown.d.ts +74 -0
  732. package/dist/tasks/markdown.js +236 -0
  733. package/dist/tasks/markdown.js.map +1 -0
  734. package/dist/tasks/model.d.ts +213 -0
  735. package/dist/tasks/model.js +52 -0
  736. package/dist/tasks/model.js.map +1 -0
  737. package/dist/tasks/priority.d.ts +17 -0
  738. package/dist/tasks/priority.js +47 -0
  739. package/dist/tasks/priority.js.map +1 -0
  740. package/dist/tasks/purpose.d.ts +32 -0
  741. package/dist/tasks/purpose.js +64 -0
  742. package/dist/tasks/purpose.js.map +1 -0
  743. package/dist/tasks/recurrence.d.ts +31 -0
  744. package/dist/tasks/recurrence.js +48 -0
  745. package/dist/tasks/recurrence.js.map +1 -0
  746. package/dist/tasks/sources.d.ts +57 -0
  747. package/dist/tasks/sources.js +125 -0
  748. package/dist/tasks/sources.js.map +1 -0
  749. package/dist/tasks/task-direction.d.ts +96 -0
  750. package/dist/tasks/task-direction.js +279 -0
  751. package/dist/tasks/task-direction.js.map +1 -0
  752. package/dist/tasks/views.d.ts +171 -0
  753. package/dist/tasks/views.js +185 -0
  754. package/dist/tasks/views.js.map +1 -0
  755. package/dist/tools/environment.d.ts +123 -0
  756. package/dist/tools/environment.js +201 -0
  757. package/dist/tools/environment.js.map +1 -0
  758. package/dist/tools/model.d.ts +199 -0
  759. package/dist/tools/model.js +137 -0
  760. package/dist/tools/model.js.map +1 -0
  761. package/dist/tools/normalize.d.ts +58 -0
  762. package/dist/tools/normalize.js +357 -0
  763. package/dist/tools/normalize.js.map +1 -0
  764. package/dist/tools/operations.d.ts +196 -0
  765. package/dist/tools/operations.js +370 -0
  766. package/dist/tools/operations.js.map +1 -0
  767. package/dist/tools/readiness.d.ts +87 -0
  768. package/dist/tools/readiness.js +193 -0
  769. package/dist/tools/readiness.js.map +1 -0
  770. package/dist/ui/ansi.d.ts +75 -0
  771. package/dist/ui/ansi.js +213 -0
  772. package/dist/ui/ansi.js.map +1 -0
  773. package/dist/ui/attachments.d.ts +82 -0
  774. package/dist/ui/attachments.js +176 -0
  775. package/dist/ui/attachments.js.map +1 -0
  776. package/dist/ui/badges.d.ts +91 -0
  777. package/dist/ui/badges.js +185 -0
  778. package/dist/ui/badges.js.map +1 -0
  779. package/dist/ui/book-editor.d.ts +50 -0
  780. package/dist/ui/book-editor.js +217 -0
  781. package/dist/ui/book-editor.js.map +1 -0
  782. package/dist/ui/celebration.d.ts +8 -0
  783. package/dist/ui/celebration.js +47 -0
  784. package/dist/ui/celebration.js.map +1 -0
  785. package/dist/ui/chat-client.d.ts +128 -0
  786. package/dist/ui/chat-client.js +579 -0
  787. package/dist/ui/chat-client.js.map +1 -0
  788. package/dist/ui/composer.d.ts +121 -0
  789. package/dist/ui/composer.js +428 -0
  790. package/dist/ui/composer.js.map +1 -0
  791. package/dist/ui/countdown.d.ts +18 -0
  792. package/dist/ui/countdown.js +53 -0
  793. package/dist/ui/countdown.js.map +1 -0
  794. package/dist/ui/dashboard-home.d.ts +182 -0
  795. package/dist/ui/dashboard-home.js +521 -0
  796. package/dist/ui/dashboard-home.js.map +1 -0
  797. package/dist/ui/dashboard-pages.d.ts +414 -0
  798. package/dist/ui/dashboard-pages.js +980 -0
  799. package/dist/ui/dashboard-pages.js.map +1 -0
  800. package/dist/ui/dashboard.d.ts +63 -0
  801. package/dist/ui/dashboard.js +1752 -0
  802. package/dist/ui/dashboard.js.map +1 -0
  803. package/dist/ui/details.d.ts +160 -0
  804. package/dist/ui/details.js +467 -0
  805. package/dist/ui/details.js.map +1 -0
  806. package/dist/ui/error-view.d.ts +18 -0
  807. package/dist/ui/error-view.js +88 -0
  808. package/dist/ui/error-view.js.map +1 -0
  809. package/dist/ui/global-dashboard.d.ts +102 -0
  810. package/dist/ui/global-dashboard.js +662 -0
  811. package/dist/ui/global-dashboard.js.map +1 -0
  812. package/dist/ui/harness-sign-in.d.ts +51 -0
  813. package/dist/ui/harness-sign-in.js +61 -0
  814. package/dist/ui/harness-sign-in.js.map +1 -0
  815. package/dist/ui/keys.d.ts +107 -0
  816. package/dist/ui/keys.js +346 -0
  817. package/dist/ui/keys.js.map +1 -0
  818. package/dist/ui/native-effects.d.ts +50 -0
  819. package/dist/ui/native-effects.js +201 -0
  820. package/dist/ui/native-effects.js.map +1 -0
  821. package/dist/ui/panels.d.ts +48 -0
  822. package/dist/ui/panels.js +78 -0
  823. package/dist/ui/panels.js.map +1 -0
  824. package/dist/ui/project-client.d.ts +55 -0
  825. package/dist/ui/project-client.js +179 -0
  826. package/dist/ui/project-client.js.map +1 -0
  827. package/dist/ui/prompt-transport.d.ts +44 -0
  828. package/dist/ui/prompt-transport.js +73 -0
  829. package/dist/ui/prompt-transport.js.map +1 -0
  830. package/dist/ui/prompts.d.ts +189 -0
  831. package/dist/ui/prompts.js +678 -0
  832. package/dist/ui/prompts.js.map +1 -0
  833. package/dist/ui/render-scheduler.d.ts +8 -0
  834. package/dist/ui/render-scheduler.js +25 -0
  835. package/dist/ui/render-scheduler.js.map +1 -0
  836. package/dist/ui/rich-input.d.ts +108 -0
  837. package/dist/ui/rich-input.js +245 -0
  838. package/dist/ui/rich-input.js.map +1 -0
  839. package/dist/ui/screen.d.ts +94 -0
  840. package/dist/ui/screen.js +237 -0
  841. package/dist/ui/screen.js.map +1 -0
  842. package/dist/ui/secret.d.ts +18 -0
  843. package/dist/ui/secret.js +121 -0
  844. package/dist/ui/secret.js.map +1 -0
  845. package/dist/ui/status-view.d.ts +43 -0
  846. package/dist/ui/status-view.js +397 -0
  847. package/dist/ui/status-view.js.map +1 -0
  848. package/dist/ui/terminal-images.d.ts +56 -0
  849. package/dist/ui/terminal-images.js +95 -0
  850. package/dist/ui/terminal-images.js.map +1 -0
  851. package/dist/ui/terminal-title.d.ts +170 -0
  852. package/dist/ui/terminal-title.js +300 -0
  853. package/dist/ui/terminal-title.js.map +1 -0
  854. package/dist/ui/terminal.d.ts +91 -0
  855. package/dist/ui/terminal.js +61 -0
  856. package/dist/ui/terminal.js.map +1 -0
  857. package/dist/ui/tool-forms.d.ts +24 -0
  858. package/dist/ui/tool-forms.js +155 -0
  859. package/dist/ui/tool-forms.js.map +1 -0
  860. package/dist/ui/wallet-forms.d.ts +98 -0
  861. package/dist/ui/wallet-forms.js +275 -0
  862. package/dist/ui/wallet-forms.js.map +1 -0
  863. package/dist/wallet/crypto.d.ts +79 -0
  864. package/dist/wallet/crypto.js +166 -0
  865. package/dist/wallet/crypto.js.map +1 -0
  866. package/dist/wallet/host-unlock.d.ts +29 -0
  867. package/dist/wallet/host-unlock.js +145 -0
  868. package/dist/wallet/host-unlock.js.map +1 -0
  869. package/dist/wallet/import.d.ts +66 -0
  870. package/dist/wallet/import.js +105 -0
  871. package/dist/wallet/import.js.map +1 -0
  872. package/dist/wallet/wallet.d.ts +889 -0
  873. package/dist/wallet/wallet.js +1924 -0
  874. package/dist/wallet/wallet.js.map +1 -0
  875. package/package.json +23 -17
  876. package/changelog/README.md +0 -8
  877. package/changelog/_current-preversion.md +0 -30
  878. package/dist/coder/add-wizard.d.ts +0 -14
  879. package/dist/coder/add-wizard.js +0 -88
  880. package/dist/coder/add-wizard.js.map +0 -1
  881. package/dist/coder/agent-identity.d.ts +0 -15
  882. package/dist/coder/agent-identity.js +0 -62
  883. package/dist/coder/agent-identity.js.map +0 -1
  884. package/dist/coder/agents.d.ts +0 -58
  885. package/dist/coder/agents.js +0 -502
  886. package/dist/coder/agents.js.map +0 -1
  887. package/dist/coder/attached-dashboard.d.ts +0 -15
  888. package/dist/coder/attached-dashboard.js +0 -217
  889. package/dist/coder/attached-dashboard.js.map +0 -1
  890. package/dist/coder/authoring.d.ts +0 -40
  891. package/dist/coder/authoring.js +0 -316
  892. package/dist/coder/authoring.js.map +0 -1
  893. package/dist/coder/browser.d.ts +0 -93
  894. package/dist/coder/browser.js +0 -432
  895. package/dist/coder/browser.js.map +0 -1
  896. package/dist/coder/check-setup.d.ts +0 -44
  897. package/dist/coder/check-setup.js +0 -174
  898. package/dist/coder/check-setup.js.map +0 -1
  899. package/dist/coder/checks.d.ts +0 -30
  900. package/dist/coder/checks.js +0 -168
  901. package/dist/coder/checks.js.map +0 -1
  902. package/dist/coder/choices.d.ts +0 -36
  903. package/dist/coder/choices.js +0 -409
  904. package/dist/coder/choices.js.map +0 -1
  905. package/dist/coder/cli.d.ts +0 -10
  906. package/dist/coder/cli.js +0 -1102
  907. package/dist/coder/cli.js.map +0 -1
  908. package/dist/coder/configuration.d.ts +0 -21
  909. package/dist/coder/configuration.js +0 -186
  910. package/dist/coder/configuration.js.map +0 -1
  911. package/dist/coder/dashboard-page.d.ts +0 -2
  912. package/dist/coder/dashboard-page.js +0 -98
  913. package/dist/coder/dashboard-page.js.map +0 -1
  914. package/dist/coder/diagnostics.d.ts +0 -13
  915. package/dist/coder/diagnostics.js +0 -44
  916. package/dist/coder/diagnostics.js.map +0 -1
  917. package/dist/coder/domain.d.ts +0 -95
  918. package/dist/coder/domain.js +0 -2
  919. package/dist/coder/domain.js.map +0 -1
  920. package/dist/coder/edit-task-control.d.ts +0 -7
  921. package/dist/coder/edit-task-control.js +0 -43
  922. package/dist/coder/edit-task-control.js.map +0 -1
  923. package/dist/coder/engine.d.ts +0 -111
  924. package/dist/coder/engine.js +0 -1256
  925. package/dist/coder/engine.js.map +0 -1
  926. package/dist/coder/file-replacement.d.ts +0 -13
  927. package/dist/coder/file-replacement.js +0 -25
  928. package/dist/coder/file-replacement.js.map +0 -1
  929. package/dist/coder/finite.d.ts +0 -23
  930. package/dist/coder/finite.js +0 -253
  931. package/dist/coder/finite.js.map +0 -1
  932. package/dist/coder/first-task.d.ts +0 -9
  933. package/dist/coder/first-task.js +0 -39
  934. package/dist/coder/first-task.js.map +0 -1
  935. package/dist/coder/git.d.ts +0 -75
  936. package/dist/coder/git.js +0 -367
  937. package/dist/coder/git.js.map +0 -1
  938. package/dist/coder/harness-plugins/acp.d.ts +0 -8
  939. package/dist/coder/harness-plugins/acp.js +0 -107
  940. package/dist/coder/harness-plugins/acp.js.map +0 -1
  941. package/dist/coder/harness-plugins/claude-code/index.d.ts +0 -2
  942. package/dist/coder/harness-plugins/claude-code/index.js +0 -140
  943. package/dist/coder/harness-plugins/claude-code/index.js.map +0 -1
  944. package/dist/coder/harness-plugins/cline/index.d.ts +0 -2
  945. package/dist/coder/harness-plugins/cline/index.js +0 -111
  946. package/dist/coder/harness-plugins/cline/index.js.map +0 -1
  947. package/dist/coder/harness-plugins/configuration.d.ts +0 -4
  948. package/dist/coder/harness-plugins/configuration.js +0 -22
  949. package/dist/coder/harness-plugins/configuration.js.map +0 -1
  950. package/dist/coder/harness-plugins/contract.d.ts +0 -123
  951. package/dist/coder/harness-plugins/contract.js +0 -2
  952. package/dist/coder/harness-plugins/contract.js.map +0 -1
  953. package/dist/coder/harness-plugins/gemini/index.d.ts +0 -2
  954. package/dist/coder/harness-plugins/gemini/index.js +0 -70
  955. package/dist/coder/harness-plugins/gemini/index.js.map +0 -1
  956. package/dist/coder/harness-plugins/github-copilot/index.d.ts +0 -2
  957. package/dist/coder/harness-plugins/github-copilot/index.js +0 -197
  958. package/dist/coder/harness-plugins/github-copilot/index.js.map +0 -1
  959. package/dist/coder/harness-plugins/index.d.ts +0 -5
  960. package/dist/coder/harness-plugins/index.js +0 -17
  961. package/dist/coder/harness-plugins/index.js.map +0 -1
  962. package/dist/coder/harness-plugins/locks.d.ts +0 -13
  963. package/dist/coder/harness-plugins/locks.js +0 -123
  964. package/dist/coder/harness-plugins/locks.js.map +0 -1
  965. package/dist/coder/harness-plugins/maintenance.d.ts +0 -33
  966. package/dist/coder/harness-plugins/maintenance.js +0 -115
  967. package/dist/coder/harness-plugins/maintenance.js.map +0 -1
  968. package/dist/coder/harness-plugins/openai-codex/index.d.ts +0 -2
  969. package/dist/coder/harness-plugins/openai-codex/index.js +0 -272
  970. package/dist/coder/harness-plugins/openai-codex/index.js.map +0 -1
  971. package/dist/coder/harness-plugins/opencode/index.d.ts +0 -2
  972. package/dist/coder/harness-plugins/opencode/index.js +0 -81
  973. package/dist/coder/harness-plugins/opencode/index.js.map +0 -1
  974. package/dist/coder/harness-plugins/qwen-code/index.d.ts +0 -2
  975. package/dist/coder/harness-plugins/qwen-code/index.js +0 -65
  976. package/dist/coder/harness-plugins/qwen-code/index.js.map +0 -1
  977. package/dist/coder/harness-plugins/shared.d.ts +0 -27
  978. package/dist/coder/harness-plugins/shared.js +0 -277
  979. package/dist/coder/harness-plugins/shared.js.map +0 -1
  980. package/dist/coder/harness-process.d.ts +0 -51
  981. package/dist/coder/harness-process.js +0 -349
  982. package/dist/coder/harness-process.js.map +0 -1
  983. package/dist/coder/harness.d.ts +0 -72
  984. package/dist/coder/harness.js +0 -249
  985. package/dist/coder/harness.js.map +0 -1
  986. package/dist/coder/help.d.ts +0 -39
  987. package/dist/coder/help.js +0 -279
  988. package/dist/coder/help.js.map +0 -1
  989. package/dist/coder/initialization.d.ts +0 -80
  990. package/dist/coder/initialization.js +0 -587
  991. package/dist/coder/initialization.js.map +0 -1
  992. package/dist/coder/interactive.d.ts +0 -45
  993. package/dist/coder/interactive.js +0 -299
  994. package/dist/coder/interactive.js.map +0 -1
  995. package/dist/coder/logging.d.ts +0 -9
  996. package/dist/coder/logging.js +0 -64
  997. package/dist/coder/logging.js.map +0 -1
  998. package/dist/coder/migrate.d.ts +0 -29
  999. package/dist/coder/migrate.js +0 -249
  1000. package/dist/coder/migrate.js.map +0 -1
  1001. package/dist/coder/persistence.d.ts +0 -32
  1002. package/dist/coder/persistence.js +0 -133
  1003. package/dist/coder/persistence.js.map +0 -1
  1004. package/dist/coder/planner.d.ts +0 -32
  1005. package/dist/coder/planner.js +0 -197
  1006. package/dist/coder/planner.js.map +0 -1
  1007. package/dist/coder/presentation.d.ts +0 -34
  1008. package/dist/coder/presentation.js +0 -106
  1009. package/dist/coder/presentation.js.map +0 -1
  1010. package/dist/coder/requests.d.ts +0 -25
  1011. package/dist/coder/requests.js +0 -147
  1012. package/dist/coder/requests.js.map +0 -1
  1013. package/dist/coder/schedule.d.ts +0 -13
  1014. package/dist/coder/schedule.js +0 -165
  1015. package/dist/coder/schedule.js.map +0 -1
  1016. package/dist/coder/server.d.ts +0 -8
  1017. package/dist/coder/server.js +0 -8
  1018. package/dist/coder/server.js.map +0 -1
  1019. package/dist/coder/service-worker.js +0 -44
  1020. package/dist/coder/service-worker.js.map +0 -1
  1021. package/dist/coder/service.d.ts +0 -93
  1022. package/dist/coder/service.js +0 -1298
  1023. package/dist/coder/service.js.map +0 -1
  1024. package/dist/coder/setup.d.ts +0 -39
  1025. package/dist/coder/setup.js +0 -95
  1026. package/dist/coder/setup.js.map +0 -1
  1027. package/dist/coder/sources.d.ts +0 -58
  1028. package/dist/coder/sources.js +0 -746
  1029. package/dist/coder/sources.js.map +0 -1
  1030. package/dist/coder/state.d.ts +0 -159
  1031. package/dist/coder/state.js +0 -300
  1032. package/dist/coder/state.js.map +0 -1
  1033. package/dist/coder/status-view.d.ts +0 -13
  1034. package/dist/coder/status-view.js +0 -70
  1035. package/dist/coder/status-view.js.map +0 -1
  1036. package/dist/coder/team.d.ts +0 -36
  1037. package/dist/coder/team.js +0 -138
  1038. package/dist/coder/team.js.map +0 -1
  1039. package/dist/coder/terminal.d.ts +0 -27
  1040. package/dist/coder/terminal.js +0 -447
  1041. package/dist/coder/terminal.js.map +0 -1
  1042. package/dist/coder/updates.d.ts +0 -34
  1043. package/dist/coder/updates.js +0 -99
  1044. package/dist/coder/updates.js.map +0 -1
  1045. package/dist/coder/version.d.ts +0 -4
  1046. package/dist/coder/version.js +0 -16
  1047. package/dist/coder/version.js.map +0 -1
  1048. package/dist/coder/workspace.d.ts +0 -42
  1049. package/dist/coder/workspace.js +0 -232
  1050. package/dist/coder/workspace.js.map +0 -1
  1051. package/docs/compatibility.md +0 -22
  1052. package/docs/releasing.md +0 -73
  1053. package/docs/runtime.md +0 -120
  1054. /package/dist/{coder/service-worker.d.ts → engine/mcp-server.d.ts} +0 -0
package/LICENSE.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # 🔑 License
2
2
 
3
+ Licensing information and proposed commercial/continuity terms are published at:
4
+
5
+ - English: https://www.ptbk.io/en/licence
6
+ - Czech: https://www.ptbk.io/cs/licence
7
+
8
+ The 2 November 2026 proposal on that page is a **non-effective discussion draft**, not a new grant or a retrospective restriction. A later edit of a website cannot change rights already validly obtained to a particular distribution. Product subscriptions, hosted services and third-party component licences remain separate.
9
+
10
+ The existing notice below is retained with this distribution so it remains identifiable offline. It is unchanged from the notice at revision `c8718b5aa635b67aabf861e94ee673d23de74644`; retaining it does not supply missing product-specific BUSL parameters or imply unlimited commercial self-hosting rights. Final adoption of a different licence requires an explicit versioned grant and consistent distribution metadata.
11
+
12
+ ## Existing distribution notice
13
+
3
14
  Promptbook Engine is licensed under the Business Source License 1.1 (BUSL-1.1).
4
15
 
5
16
  This license allows non-production use, personal projects, and evaluation without restrictions.
package/README.md CHANGED
@@ -1,40 +1,117 @@
1
- # Promptbook (`ptbk`)
1
+ <p align="center">
2
+ <picture>
3
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/webgptorg/promptbook/reborn/2026-10/design/readme-wordmark-dark.svg" />
4
+ <img src="https://raw.githubusercontent.com/webgptorg/promptbook/reborn/2026-10/design/readme-wordmark.svg" alt="Promptbook" width="570" />
5
+ </picture>
6
+ </p>
2
7
 
3
- Promptbook operates readable agent and task Books over a Git project. This repository publishes one npm package, `ptbk`, which installs the `ptbk` command. Runtime state, requests, traces and the shared browser profile live in ignored `.ptbk/` files.
8
+ <h1 align="center">You used to give AI tasks<br />Now it works for you</h1>
4
9
 
5
- Requires Node.js 22.13+ in the Node 22 line, or Node 24+, and npm 10+.
10
+ <p align="center">
11
+ <a href="#quickstart"><strong>Quickstart</strong></a> ·
12
+ <a href="#deploy-to-your-own-server"><strong>Deploy</strong></a> ·
13
+ <a href="https://www.ptbk.io/en"><strong>Website</strong></a> ·
14
+ <a href="specs/_main.md"><strong>Specifications</strong></a> ·
15
+ <a href="https://www.ptbk.io/en/partnership"><strong>For partners</strong></a>
16
+ </p>
6
17
 
7
- ```bash
8
- # Global installation
18
+ Give Promptbook an ongoing responsibility, a goal and your rules. Its agents find useful work, carry it through and ask when a decision needs you. **Your engine runs on your computer or server, with your files and your choice of models.**
19
+
20
+ ![The dashboard controls an independent engine. The engine coordinates agents and tasks, records file changes in Git, and uses your selected models and tools.](https://raw.githubusercontent.com/webgptorg/promptbook/reborn/2026-10/design/readme-engine.svg)
21
+
22
+ | Readable files | Traceable work | Your choice of AI |
23
+ | --- | --- | --- |
24
+ | Agents, tasks and conversations live in your project folder. | Review changes in Git and execution evidence in task traces. | Use supported harnesses such as Codex or Claude Code; local models depend on the adapter. |
25
+
26
+ **What could you hand over?** Promote each new podcast episode. Follow up with customers using their CRM history. Investigate and repair an overnight bug. These are illustrative agendas; actual work follows your configured tools, checks and permissions.
27
+
28
+ ## Quickstart
29
+
30
+ If Node.js and npm are already installed, use the npm path below. On a clean Ubuntu VPS, use the [complete shell installation](#clean-ubuntu-vps).
31
+
32
+ Requires **Node.js 22.13+ in the 22.x line, or 24+**, **npm 10+**, Git and Chrome, Chromium or Edge. Setup guides you through selecting a supported harness and signing in.
33
+
34
+ ```sh
9
35
  npm install --global ptbk
10
- ptbk init --path ./project
36
+ mkdir my-agenda
37
+ cd my-agenda
38
+ ptbk init
39
+ ```
40
+
41
+ ### Clean Ubuntu VPS
11
42
 
12
- # Project-local installation
13
- npm install --save-dev ptbk
14
- npx ptbk init
43
+ On **Ubuntu 24.04 x86-64 with systemd**, run this in an interactive SSH terminal as root or an administrator with sudo:
44
+
45
+ ```sh
46
+ curl -fsSL https://www.ptbk.io/install.sh | bash
47
+ ```
48
+
49
+ You do not need Node.js, npm or Git installed first. The script uses the [shared server installer](deploy/ubuntu/install.sh), adds the prerequisites and published engine, then opens ordinary `ptbk init` as the `promptbook` user. [Inspect the entry script](https://github.com/webgptorg/ptbk-landing-page-aldaron/blob/main/public/install.sh) · [VPS guide](deploy/README.md#an-existing-vps-including-digitalocean-or-hetzner).
50
+
51
+ Describe the work in the initializer. It prepares the project and starts the engine in the background.
52
+
53
+ ```sh
54
+ ptbk dashboard # open the controls; closing them leaves the engine running
55
+ ptbk chat # talk to your agents, in a separate terminal
56
+ ptbk stop # finish the current task, then stop
57
+ ptbk start # resume the agenda
15
58
  ```
16
59
 
17
- Initialization creates missing core agents, task templates, `ptbk.json` and project conventions, preserving customized files. Its wizard offers destination-local installation of the exact running version and selected global harness setup, reusing native login. Unattended setup requires `--installation local|global` or `--no-install`; `--non-interactive` disables prompts. Setup commits only safe generated artifacts; `--no-commit` defers persistence, and edits overlapping user work remain pending review. Configure meaningful project checks before starting work.
18
-
19
- ```bash
20
- ptbk add "Implement the new behavior and its acceptance checks" --commit
21
- ptbk list
22
- ptbk run --dry-run
23
- ptbk start # background agenda, localhost dashboard, reboot persistence
24
- ptbk dashboard # attach terminal controls to the existing service
25
- ptbk show # inspect the same process and pending requests
26
- ptbk answer REQUEST_ID "Reply"
27
- ptbk stop # intentional stop also disables automatic restart
60
+ The engine machine must stay available. By default, persistent project services return at OS startup: an agenda that was running can continue after checks; one you paused or stopped returns paused until you resume it. Its browser dashboard and API are available only on that computer through a loopback address, with no pairing step. [Local API access](specs/cli/api.md) · [Startup behavior](specs/cli/persistence.md)
61
+
62
+ Agents explicitly call you with `+@User` when they need a response. Viewing that message clears its shared attention indicator while the question keeps waiting. In a project terminal dashboard or `ptbk chat`, **Ctrl+N** toggles **Sounds & notifications (experimental)** for the project's open clients. Effects start Off, follow your last-used client and suppress attention alerts during the ten seconds after input. Native delivery depends on OS permissions; exact terminal activation is available through a verified Kitty notification connection. [Attention and notifications](specs/cli/notifications.md)
63
+
64
+ A background engine [updates itself](specs/cli/updates.md) when it has no other work: stable minor and patch releases of its major version, or a running prerelease to its stable release. It never installs a version your `ptbk.json` `updates` pin or range excludes, or one that needs a newer Node.js than your host runs, and you can switch it off on the dashboard's System page. Release signing and rollout delays are still being agreed with the platform, so your host access and backups still matter.
65
+
66
+ **Windows:** download the EXE from [GitHub Releases](https://github.com/webgptorg/promptbook/releases), or follow the [installation guide](https://www.ptbk.io/en/open-source). The installer offers the local desktop client (selected by default), Codex and Claude Code. The desktop uses the same engine and initializer as the CLI, with an embedded CLI terminal; closing a window leaves your engines running. CLI-only installation remains available.
67
+
68
+ **macOS:** download the matching DMG from [GitHub Releases](https://github.com/webgptorg/promptbook/releases). Choose `arm64` for Apple Silicon or `x64` for Intel, then drag Promptbook into Applications. Node.js, npm and the matching engine are included. Project setup uses Git from your Mac, such as Git from the Xcode Command Line Tools. See the [desktop installation guide](apps/desktop/README.md#macos-installation) for signing and login details.
69
+
70
+ ## Deploy to your own server
71
+
72
+ **A clean Ubuntu 24.04 LTS x86-64 server** with systemd, outbound HTTPS and root or sudo access over SSH needs no preinstalled Node.js, npm, Git, Chrome or AI harness: use the [one-command installation](#clean-ubuntu-vps). It prepares the server through the [shared installer](deploy/ubuntu/install.sh) and opens `ptbk init` as a dedicated non-sudo `promptbook` user. Sign-in to Codex or Claude Code is finished on your phone or computer; see the [server guide](deploy/README.md#finish-setup-over-ssh).
73
+
74
+ [![Set up a DigitalOcean Droplet](deploy/digitalocean/button.svg)](deploy/README.md#digitalocean)
75
+
76
+ **DigitalOcean:** create an Ubuntu Droplet with your SSH key and paste the prepared startup script. It prepares the server with persistent project storage and private dashboard access; then the same command over SSH continues into setup. [Open the DigitalOcean setup guide](deploy/README.md#digitalocean). The guide includes the required script-copy step; this is not a published Marketplace one-click image.
77
+
78
+ [![Deploy to Azure](https://aka.ms/deploytoazurebutton)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fwebgptorg%2Fpromptbook%2Freborn%2F2026-10%2Fdeploy%2Fazure%2Fazuredeploy.json)
79
+
80
+ Create a **paid Ubuntu VPS in your own Azure account**, with a persistent disk, SSH restricted to your client IP, Node.js, Git, Chrome and the published engine. Review the provider's costs before confirming. Then connect over SSH and run the same command to continue into `ptbk init` and sign in to your chosen AI harness; the button prepares the server, while your agenda still needs setup.
81
+
82
+ On every path the engine runs as a dedicated user, keeps its dashboard private and can resume at boot after initialization. [All installation options](https://www.ptbk.io/en/open-source).
83
+
84
+ **[AWS EC2 setup](deploy/README.md#aws):** upload the prepared CloudFormation template to create a persistent Ubuntu server with the same installer. All providers require paid resources; after server preparation, the same command over SSH continues into attended `ptbk init` and AI sign-in.
85
+
86
+ ## Built around your project
87
+
88
+ **Agent → Project → Task.** Agents keep the goals and rules; the project holds context; tasks record concrete work. This is the [APT Framework](specs/whitepaper.md).
89
+
90
+ Agent definitions are ordinary editable text:
91
+
92
+ ```book
93
+ AGENT Product caretaker
94
+
95
+ GOAL Keep the product reliable and easy to maintain.
96
+ RULE Run the project's checks before reporting a fix.
97
+ RULE Ask before publishing outside the agreed release policy.
98
+ OPEN Learn better methods; the GOAL and both RULEs stay as written.
28
99
  ```
29
100
 
30
- `start` discovers available authenticated harnesses, uses Manager for missing assignments, and executes one task at a time. It requires reported outcome evidence and passing project checks before committing implementation, dated task completion and learning follow-ups together. It watches future work and materializes goal enquiries when no unfinished backlog remains. Failures retain work and expose recovery diagnostics.
101
+ Edit these files with [Book language support for VS Code](https://marketplace.visualstudio.com/items?itemName=promptbook.book-extension), [built and released with the engine](extensions/vscode/README.md).
102
+
103
+ `OPEN` with its limits, or `CLOSED`, is an [anchor](specs/concepts/anchoring.md): a user-fixed rule whose meaning the agents cannot change themselves, even while their methods evolve. You can still change it. Anchors limit what agents may rewrite; they do not make every AI output correct.
104
+
105
+ Set real project checks in `ptbk.json`; the initializer's placeholder is informational. Git tracks file changes, not every external action. External models and services receive the inputs you authorize.
106
+
107
+ ## App, engine and support
31
108
 
32
- Lifecycle commands report once and return; `start --raw` still launches a daemon. Use `dashboard` to attach terminal controls, or `start --foreground` to own execution in the current terminal (`--raw` gives plain foreground events). Q/Ctrl+C leaves an attached dashboard while its service continues. `--no-persist`, `--no-server`, `--no-qr` and `--port` customize startup. `run` executes a finite queue with one configuration; for example `ptbk run --harness openai-codex --check "npm run check" --limit 1`. Harness availability, account policy and capability checks happen before inference; unsupported installed provider features produce an actionable diagnostic.
109
+ This repository is the **self-hosted engine**. The upcoming **Promptbook app** adds convenient remote control through an end-to-end encrypted relay connection, separate from the engine's local dashboard. [Register interest](https://www.ptbk.io/en) or [deploy Promptbook for your clients](https://www.ptbk.io/en/partnership).
33
110
 
34
- Suitable terminals default to rich presentation; `--raw` or redirected output gives plain results without prompts or QR codes. `ptbk add` guides and confirms task creation. Use `ptbk init --help`, `ptbk init help` or `ptbk help init` for the same command-specific offline reference.
111
+ The [first-App specification](specs/app/integration.md) focuses on App-started VPS setup, project chat and native start/pause/stop controls. It also defines later extensions without claiming they are shipped.
35
112
 
36
- Global installation, local `npx ptbk`, or a project script such as `"ptbk": "ptbk"` work outside this repository. Each process loads its own installed runtime/version and pins that installation for restart. See [runtime usage](docs/runtime.md), [compatibility and verification](docs/compatibility.md), and [the specification](https://github.com/webgptorg/promptbook/blob/main/specs/_main.md).
113
+ [Command reference](specs/cli/cli.md) · [Book language](specs/book-language/_index.md) · [Changelog](CHANGELOG.md) · [Contributing](CONTRIBUTING.md) · [Security](SECURITY.md)
37
114
 
38
- For development, use `npm ci` and `npm run check`. Checks validate types, deterministic integration fixtures and real tarball installations in disposable external projects. CI runs on Linux, macOS and Windows with Node 22 and 24.
115
+ A star, a reproducible issue or a contribution helps us build Promptbook. See the **[engine licence and proposed commercial terms](https://www.ptbk.io/en/licence)** ([česky](https://www.ptbk.io/cs/licence)). The proposed terms are not yet effective; the [notice accompanying this distribution](LICENSE.md) and any agreement actually accepted govern your rights.
39
116
 
40
- For releases, run `npm version patch`, `npm version minor`, or `npm version prerelease` on a clean named branch after committing your work. Basic `preversion` checks run locally; `postversion` atomically pushes the version commit and exact `vVERSION` tag. GitHub Actions checks and publishes only `ptbk` with npm provenance, then verifies the public registry and installed CLI. Configure npm trusted publishing once as described in [releasing](docs/releasing.md).
117
+ Pre-Reborn: [legacy version 0.114.0-51](https://github.com/webgptorg/promptbook/tree/7ab4af6862d81a7e8b2a1ce8522f79bb2cd37231).
@@ -0,0 +1,92 @@
1
+ /**
2
+ * Which document kinds a commitment belongs to (`both` = agents and tasks, `chat` = chats, `any` = every kind).
3
+ *
4
+ * @private Book language
5
+ */
6
+ export type CommitmentScope = 'agent' | 'task' | 'both' | 'chat' | 'any';
7
+ /**
8
+ * How a commitment's content is interpreted.
9
+ *
10
+ * - `declaration`: the opening type-and-name commitment (`AGENT`, `TASK`, `CHAT`); its content is the name
11
+ * - `instruction`: repeatable multi-line natural-language content
12
+ * - `control`: single-value control field (its value is the first line)
13
+ * - `repeatable-control`: control field that may appear several times (e.g. `TASK DONE`, `TASK DEPENDS ON`)
14
+ * - `flag`: marker without required content (e.g. `CLOSED`)
15
+ * - `historical`: former syntax kept only to diagnose and convert old sources (`ENTITY`)
16
+ *
17
+ * @private Book language
18
+ */
19
+ export type CommitmentKind = 'declaration' | 'instruction' | 'control' | 'repeatable-control' | 'flag' | 'historical';
20
+ /**
21
+ * Definition of one canonical commitment with its aliases.
22
+ *
23
+ * @private Book language
24
+ */
25
+ export type CommitmentDefinition = {
26
+ /** Canonical uppercase keyword (may contain spaces). */
27
+ readonly keyword: string;
28
+ /** Alias keywords sharing the semantics. */
29
+ readonly aliases: readonly string[];
30
+ /** Document kinds accepting the commitment. */
31
+ readonly scope: CommitmentScope;
32
+ /** Content interpretation. */
33
+ readonly kind: CommitmentKind;
34
+ /** Short description used by help, Expert and diagnostics. */
35
+ readonly description: string;
36
+ /** Not a documented commitment: an unknown complete keyword preserved for round-tripping and diagnosed. */
37
+ readonly unknown?: boolean;
38
+ };
39
+ /**
40
+ * Values of `TASK PURPOSE` (written uppercase, so each value is part of the complete keyword).
41
+ *
42
+ * @private Book language
43
+ */
44
+ export declare const TASK_PURPOSE_VALUES: readonly ["CONTENT", "SYSTEM", "UNDEFINED"];
45
+ /**
46
+ * Every recognized commitment.
47
+ *
48
+ * @private Book language
49
+ */
50
+ export declare const COMMITMENTS: readonly CommitmentDefinition[];
51
+ /**
52
+ * Every accepted spelling, including aliases and compound withdrawals, for editors using the shared vocabulary.
53
+ *
54
+ * @private Book language
55
+ */
56
+ export declare function commitmentKeywords(): string[];
57
+ /**
58
+ * The commitment kind a compound withdrawal names (`DELETE RULE` → `RULE`), if any.
59
+ *
60
+ * @private Book language
61
+ */
62
+ export declare function withdrawnKeyword(written: string): string | undefined;
63
+ /**
64
+ * A commitment keyword found at the beginning of a line.
65
+ *
66
+ * @private Book language
67
+ */
68
+ export type KeywordMatch = {
69
+ /** Definition of the complete keyword (a synthetic `unknown` definition for undocumented keywords). */
70
+ readonly definition: CommitmentDefinition;
71
+ /** Keyword as written (complete uppercase word sequence). */
72
+ readonly written: string;
73
+ /** Content after the keyword on the same line (trimmed). */
74
+ readonly content: string;
75
+ };
76
+ /**
77
+ * Recognizes a commitment at the beginning of a line by the common boundary rule.
78
+ *
79
+ * The keyword is the maximal sequence of all-uppercase words at column zero, separated by spaces, with at least three
80
+ * letters in total. A word containing lowercase letters, digits, punctuation or a reference begins the content; once
81
+ * content begins, later uppercase words belong to it. The complete keyword is looked up as a whole: an unknown keyword
82
+ * is never shortened to a known prefix (`TASK SOMETHING` is not `TASK`).
83
+ *
84
+ * @private Book language
85
+ */
86
+ export declare function matchCommitmentKeyword(line: string): KeywordMatch | undefined;
87
+ /**
88
+ * Whether a line would start a commitment (writers escape such lines in literal content).
89
+ *
90
+ * @private Book language
91
+ */
92
+ export declare function startsCommitment(line: string): boolean;
@@ -0,0 +1,154 @@
1
+ /**
2
+ * Values of `TASK PURPOSE` (written uppercase, so each value is part of the complete keyword).
3
+ *
4
+ * @private Book language
5
+ */
6
+ export const TASK_PURPOSE_VALUES = ['CONTENT', 'SYSTEM', 'UNDEFINED'];
7
+ /**
8
+ * Every recognized commitment.
9
+ *
10
+ * @private Book language
11
+ */
12
+ export const COMMITMENTS = [
13
+ { keyword: 'AGENT', aliases: [], scope: 'agent', kind: 'declaration', description: 'Opening declaration of an agent: `AGENT <name>`.' },
14
+ { keyword: 'TASK', aliases: [], scope: 'task', kind: 'declaration', description: 'Opening declaration of a task: `TASK <name>`.' },
15
+ { keyword: 'CHAT', aliases: [], scope: 'chat', kind: 'declaration', description: 'Opening declaration of a chat: `CHAT <name>`.' },
16
+ { keyword: 'ENTITY', aliases: ['ENTITY AGENT', 'ENTITY TASK', 'ENTITY CHAT'], scope: 'any', kind: 'historical', description: 'Former kind declaration after a plain name line; convert with `ptbk migrate`.' },
17
+ { keyword: 'LINK', aliases: ['LINKS'], scope: 'any', kind: 'repeatable-control', description: 'Directed reference to another agent, task or chat (no scheduling or authority).' },
18
+ { keyword: 'CHAT MEMBER', aliases: [], scope: 'chat', kind: 'repeatable-control', description: 'Participant of a chat (`@User` and one or more agents, the first being the main agent; or the two agents of a consultation). A joining agent is appended before its first message.' },
19
+ { keyword: 'CHAT MESSAGE', aliases: [], scope: 'chat', kind: 'instruction', description: 'One durable message: `CHAT MESSAGE <sender> <timestamp> [progress|final]` followed by its text.' },
20
+ {
21
+ keyword: 'CHAT MESSAGE AUDIO',
22
+ aliases: [],
23
+ scope: 'chat',
24
+ kind: 'repeatable-control',
25
+ description: 'Recorded speech of the CHAT MESSAGE right before it, as one JSON object `{"path":"…","status":"complete|interrupted|incomplete","call":"…","startMs":0,"endMs":0}`: another representation of the same utterance, never another message or request.',
26
+ },
27
+ { keyword: 'CHAT TITLE', aliases: [], scope: 'chat', kind: 'repeatable-control', description: 'Evolving human-facing topic title (the latest wins); never renames the chat, whose `CHAT` name stays its identity.' },
28
+ { keyword: 'CHAT STATUS', aliases: [], scope: 'chat', kind: 'repeatable-control', description: '`open`, `waiting-for-user` or `resolved`, appended at each actual transition (the last valid one wins; without one a chat is open).' },
29
+ { keyword: 'PERSONA', aliases: ['PERSONAE'], scope: 'agent', kind: 'instruction', description: 'Role and identity of the agent.' },
30
+ { keyword: 'GOAL', aliases: ['GOALS'], scope: 'both', kind: 'instruction', description: "An agent's lasting objective (also used for goal discovery), or a task's bounded work and intended result." },
31
+ { keyword: 'RULE', aliases: ['RULES'], scope: 'both', kind: 'instruction', description: 'Behavioral constraint (task rules apply only to that task).' },
32
+ { keyword: 'KNOWLEDGE', aliases: [], scope: 'agent', kind: 'instruction', description: 'Inline knowledge or a reference to relevant material.' },
33
+ { keyword: 'STYLE', aliases: ['STYLES'], scope: 'agent', kind: 'instruction', description: 'Style of communication or output.' },
34
+ { keyword: 'LANGUAGE', aliases: ['LANGUAGES'], scope: 'agent', kind: 'instruction', description: 'Language(s) of responses.' },
35
+ { keyword: 'WRITING SAMPLE', aliases: [], scope: 'agent', kind: 'instruction', description: 'Example of the desired writing style.' },
36
+ { keyword: 'WRITING RULES', aliases: ['WRITING RULE'], scope: 'agent', kind: 'instruction', description: 'Specific writing conventions.' },
37
+ { keyword: 'SAMPLE', aliases: ['EXAMPLE'], scope: 'agent', kind: 'instruction', description: 'Representative interaction or output.' },
38
+ { keyword: 'FORMAT', aliases: ['FORMATS'], scope: 'agent', kind: 'instruction', description: 'Requested output format.' },
39
+ { keyword: 'TEMPLATE', aliases: ['TEMPLATES'], scope: 'agent', kind: 'instruction', description: 'Reusable response/output pattern.' },
40
+ { keyword: 'FROM', aliases: [], scope: 'agent', kind: 'control', description: 'Single inheritance parent (default Adam).' },
41
+ { keyword: 'IMPORT', aliases: ['IMPORTS'], scope: 'agent', kind: 'repeatable-control', description: 'In-place inclusion of another agent\'s instructions.' },
42
+ {
43
+ keyword: 'MODEL',
44
+ aliases: ['MODELS'],
45
+ scope: 'any',
46
+ kind: 'instruction',
47
+ description: 'Allowed execution combinations (`harness=… model=… thinking=… provider=… origin=… runtime=…`; fields on one line apply together, lines are alternatives) of an agent, task or chat, independent of the tool/account.',
48
+ },
49
+ { keyword: 'ACTION', aliases: ['ACTIONS'], scope: 'agent', kind: 'instruction', description: 'Actions/tools the role intends to use.' },
50
+ { keyword: 'TEAM', aliases: [], scope: 'agent', kind: 'instruction', description: 'Whom the agent may consult and when.' },
51
+ { keyword: 'OPEN', aliases: [], scope: 'agent', kind: 'instruction', description: 'Permits learning, optionally with natural-language limits.' },
52
+ { keyword: 'CLOSED', aliases: [], scope: 'agent', kind: 'flag', description: 'Prohibits automatic learning changes.' },
53
+ { keyword: 'NOTE', aliases: ['NOTES', 'COMMENT', 'NONCE', 'TODO'], scope: 'any', kind: 'instruction', description: 'Non-executable commentary.' },
54
+ { keyword: 'DELETE', aliases: ['CANCEL', 'DISCARD', 'REMOVE'], scope: 'agent', kind: 'instruction', description: 'Withdraws an identified earlier commitment.' },
55
+ { keyword: 'DICTIONARY', aliases: [], scope: 'agent', kind: 'instruction', description: 'Terminology for the role\'s work.' },
56
+ { keyword: 'TASK ID', aliases: [], scope: 'task', kind: 'control', description: 'Legacy historical metadata; never identity (the task name is).' },
57
+ { keyword: 'TASK AGENT', aliases: [], scope: 'task', kind: 'control', description: 'Responsible agent.' },
58
+ { keyword: 'TASK HARNESS', aliases: [], scope: 'task', kind: 'control', description: 'Former harness requirement, replaced by `MODEL harness=…` (honored and diagnosed until converted).' },
59
+ { keyword: 'TASK MODEL', aliases: [], scope: 'task', kind: 'control', description: 'Former model requirement, replaced by `MODEL model=…` (honored and diagnosed until converted).' },
60
+ { keyword: 'TASK THINKING LEVEL', aliases: [], scope: 'task', kind: 'control', description: 'Former thinking requirement, replaced by `MODEL thinking=…` (honored and diagnosed until converted).' },
61
+ { keyword: 'TASK PRIORITY', aliases: [], scope: 'task', kind: 'control', description: 'Nonnegative number or textual importance; higher first.' },
62
+ { keyword: 'TASK AFTER', aliases: [], scope: 'task', kind: 'control', description: 'Inclusive earliest permitted start.' },
63
+ { keyword: 'TASK DUE DATE', aliases: [], scope: 'task', kind: 'control', description: 'Desired completion deadline (not a start condition).' },
64
+ { keyword: 'TASK DONE', aliases: [], scope: 'task', kind: 'repeatable-control', description: 'Completion stamp with explicit timezone (historical after a later `TASK REOPEN`).' },
65
+ { keyword: 'TASK STATUS', aliases: [], scope: 'task', kind: 'control', description: 'Appended transition: `todo`, `not-ready`, `failed`, `cancelled` or `retired`; the last valid one is effective.' },
66
+ { keyword: 'TASK CHANGE', aliases: [], scope: 'task', kind: 'instruction', description: 'Chronological amendment `TASK CHANGE <timestamp> <task|occurrence|future> [<chat reference>]`; the lines below state the requested change, and later typed controls belong to it.' },
67
+ { keyword: 'TASK REOPEN', aliases: [], scope: 'task', kind: 'repeatable-control', description: 'Reopens the same work `TASK REOPEN <timestamp> [<chat reference>]`, keeping earlier completions as history.' },
68
+ { keyword: 'TASK REPEAT', aliases: [], scope: 'task', kind: 'control', description: 'Positive fixed recurrence interval.' },
69
+ { keyword: 'TASK DEPENDS ON', aliases: [], scope: 'task', kind: 'repeatable-control', description: 'Prerequisite task references.' },
70
+ { keyword: 'TASK PARENT', aliases: [], scope: 'task', kind: 'control', description: 'Parent task reference (no implied ordering).' },
71
+ { keyword: 'TASK RUNNER', aliases: [], scope: 'task', kind: 'repeatable-control', description: 'Opaque any-of routing selectors from Markdown.' },
72
+ { keyword: 'TASK NOTE', aliases: [], scope: 'task', kind: 'instruction', description: 'Explanatory task metadata.' },
73
+ { keyword: 'TASK ORIGIN', aliases: [], scope: 'task', kind: 'control', description: 'Provenance of the task.' },
74
+ {
75
+ keyword: 'TASK PURPOSE',
76
+ // The uppercase values join the keyword under the boundary rule, so each complete spelling is an alias.
77
+ aliases: TASK_PURPOSE_VALUES.map((value) => `TASK PURPOSE ${value}`),
78
+ scope: 'task',
79
+ kind: 'repeatable-control',
80
+ description: 'Project-relative purpose `TASK PURPOSE CONTENT|SYSTEM|UNDEFINED`, appended at each actual change (earlier values stay in the Book; the last valid one is effective). Presentation only: no priority, permission or executor.',
81
+ },
82
+ ];
83
+ /**
84
+ * Lookup from every accepted keyword spelling to its definition.
85
+ */
86
+ const KEYWORD_LOOKUP = new Map([
87
+ ...COMMITMENTS.flatMap((definition) => [definition.keyword, ...definition.aliases].map((keyword) => [keyword, definition])),
88
+ // `DELETE RULE …` is one complete keyword: the withdrawal names the kind of the commitment it withdraws.
89
+ ...COMMITMENTS.filter((definition) => definition.kind === 'instruction' && definition.keyword !== 'DELETE').flatMap((target) => ['DELETE', 'CANCEL', 'DISCARD', 'REMOVE'].flatMap((withdraw) => [target.keyword, ...target.aliases].map((keyword) => [`${withdraw} ${keyword}`, COMMITMENTS.find((definition) => definition.keyword === 'DELETE')]))),
90
+ ]);
91
+ /**
92
+ * Every accepted spelling, including aliases and compound withdrawals, for editors using the shared vocabulary.
93
+ *
94
+ * @private Book language
95
+ */
96
+ export function commitmentKeywords() {
97
+ return [...KEYWORD_LOOKUP.keys()];
98
+ }
99
+ /**
100
+ * The commitment kind a compound withdrawal names (`DELETE RULE` → `RULE`), if any.
101
+ *
102
+ * @private Book language
103
+ */
104
+ export function withdrawnKeyword(written) {
105
+ const [, ...rest] = written.trim().split(/\s+/);
106
+ if (!rest.length)
107
+ return undefined;
108
+ const target = KEYWORD_LOOKUP.get(rest.join(' '));
109
+ return target && target.keyword !== 'DELETE' ? target.keyword : undefined;
110
+ }
111
+ /**
112
+ * One all-uppercase word of a commitment keyword (letters only; digits, punctuation or lowercase begin content).
113
+ */
114
+ const KEYWORD_WORD = /^\p{Lu}[\p{Lu}\p{M}]*$/u;
115
+ /**
116
+ * Fewest letters a complete keyword needs (so `A`, `I` or `AI` starting prose never begin a commitment).
117
+ */
118
+ const MIN_KEYWORD_LETTERS = 3;
119
+ /**
120
+ * Recognizes a commitment at the beginning of a line by the common boundary rule.
121
+ *
122
+ * The keyword is the maximal sequence of all-uppercase words at column zero, separated by spaces, with at least three
123
+ * letters in total. A word containing lowercase letters, digits, punctuation or a reference begins the content; once
124
+ * content begins, later uppercase words belong to it. The complete keyword is looked up as a whole: an unknown keyword
125
+ * is never shortened to a known prefix (`TASK SOMETHING` is not `TASK`).
126
+ *
127
+ * @private Book language
128
+ */
129
+ export function matchCommitmentKeyword(line) {
130
+ if (!/^\p{Lu}/u.test(line))
131
+ return undefined;
132
+ const words = [];
133
+ let offset = 0;
134
+ for (const word of line.matchAll(/\S+/g)) {
135
+ if (!KEYWORD_WORD.test(word[0]))
136
+ break;
137
+ words.push(word[0]);
138
+ offset = word.index + word[0].length;
139
+ }
140
+ const keyword = words.join(' ');
141
+ if (keyword.replace(/\s/g, '').length < MIN_KEYWORD_LETTERS)
142
+ return undefined;
143
+ const definition = KEYWORD_LOOKUP.get(keyword) ?? { keyword, aliases: [], scope: 'any', kind: 'instruction', description: 'Unknown commitment (preserved without effect).', unknown: true };
144
+ return { definition, written: line.slice(0, offset), content: line.slice(offset).trim() };
145
+ }
146
+ /**
147
+ * Whether a line would start a commitment (writers escape such lines in literal content).
148
+ *
149
+ * @private Book language
150
+ */
151
+ export function startsCommitment(line) {
152
+ return matchCommitmentKeyword(line) !== undefined;
153
+ }
154
+ //# sourceMappingURL=commitments.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commitments.js","sourceRoot":"","sources":["../../src/book/commitments.ts"],"names":[],"mappings":"AAyCA;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,SAAS,EAAE,QAAQ,EAAE,WAAW,CAAU,CAAC;AAE/E;;;;GAIG;AACH,MAAM,CAAC,MAAM,WAAW,GAAoC;IACxD,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE,WAAW,EAAE,kDAAkD,EAAE;IACvI,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,WAAW,EAAE,+CAA+C,EAAE;IAClI,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,WAAW,EAAE,+CAA+C,EAAE;IAClI,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,cAAc,EAAE,aAAa,EAAE,aAAa,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,YAAY,EAAE,WAAW,EAAE,+EAA+E,EAAE;IAC9M,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,oBAAoB,EAAE,WAAW,EAAE,iFAAiF,EAAE;IACjL,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,EAAE,WAAW,EAAE,oLAAoL,EAAE;IACrR,EAAE,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,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E,KAAK,EAAE,IAAI,EAAE,aAAa,EAAE,WAAW,EAAE,gDAAgD,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IAC5L,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC;AAC9F,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,gBAAgB,CAAC,IAAY;IACzC,OAAO,sBAAsB,CAAC,IAAI,CAAC,KAAK,SAAS,CAAC;AACtD,CAAC"}
@@ -0,0 +1,36 @@
1
+ import { type EntityKind } from './parse.js';
2
+ /**
3
+ * Conventional folder of a source, the documented context former syntax relied on for its kind.
4
+ *
5
+ * @private Book conversion
6
+ */
7
+ export type LegacyLocation = 'agents' | 'tasks' | 'chats' | undefined;
8
+ /**
9
+ * Outcome of converting one source.
10
+ *
11
+ * @private Book conversion
12
+ */
13
+ export type BookConversion = {
14
+ readonly kind: 'unchanged';
15
+ } | {
16
+ readonly kind: 'converted';
17
+ readonly entity: EntityKind;
18
+ readonly name: string;
19
+ readonly content: string;
20
+ readonly notes: readonly string[];
21
+ } | {
22
+ readonly kind: 'blocked';
23
+ readonly reason: string;
24
+ };
25
+ /**
26
+ * Converts a Book in former syntax into the canonical form, preserving its name, content, links and history.
27
+ *
28
+ * Former syntax: a plain name line (kind from `ENTITY` or, as documented then, the conventional folder), `ENTITY`
29
+ * lines, a `TASK <name>` header followed by an introduction, and text after one-line controls. Descriptive text without
30
+ * an owner moves under GOAL (tasks), PERSONA (agents, where it was part of the role) or NOTE (chats); lines the new
31
+ * boundary rule would read as commitments are escaped literally. The name is kept exactly (no new date); an ambiguous
32
+ * kind or a name that cannot follow a keyword blocks the conversion instead of guessing.
33
+ *
34
+ * @private Book conversion
35
+ */
36
+ export declare function convertLegacyBook(source: string, location: LegacyLocation): BookConversion;