create-principles-disciple 1.146.3 → 1.146.6

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 (311) hide show
  1. package/_release/product-identity.json +1 -1
  2. package/console/dist/web/assets/app.js +26 -26
  3. package/console/package.json +1 -1
  4. package/package.json +3 -3
  5. package/pd-cli/package.json +1 -1
  6. package/release-manager/package.json +3 -3
  7. package/console/dist/ui/App.d.ts +0 -1
  8. package/console/dist/ui/App.js +0 -172
  9. package/console/dist/ui/api.d.ts +0 -611
  10. package/console/dist/ui/api.js +0 -1094
  11. package/console/dist/ui/components/auth/login-form.d.ts +0 -4
  12. package/console/dist/ui/components/auth/login-form.js +0 -142
  13. package/console/dist/ui/components/auth/splash-screen.d.ts +0 -9
  14. package/console/dist/ui/components/auth/splash-screen.js +0 -22
  15. package/console/dist/ui/components/error-boundary.d.ts +0 -15
  16. package/console/dist/ui/components/error-boundary.js +0 -30
  17. package/console/dist/ui/components/focus/daily-thought-card.d.ts +0 -1
  18. package/console/dist/ui/components/focus/daily-thought-card.js +0 -41
  19. package/console/dist/ui/components/language-switcher.d.ts +0 -2
  20. package/console/dist/ui/components/language-switcher.js +0 -17
  21. package/console/dist/ui/components/layout/app-sidebar.d.ts +0 -27
  22. package/console/dist/ui/components/layout/app-sidebar.js +0 -128
  23. package/console/dist/ui/components/layout/page-loading.d.ts +0 -13
  24. package/console/dist/ui/components/layout/page-loading.js +0 -14
  25. package/console/dist/ui/components/layout/page-shell.d.ts +0 -12
  26. package/console/dist/ui/components/layout/page-shell.js +0 -11
  27. package/console/dist/ui/components/layout/section-title.d.ts +0 -10
  28. package/console/dist/ui/components/layout/section-title.js +0 -9
  29. package/console/dist/ui/components/notifications/NotificationProvider.d.ts +0 -14
  30. package/console/dist/ui/components/notifications/NotificationProvider.js +0 -136
  31. package/console/dist/ui/components/notifications/favicon-badge.d.ts +0 -3
  32. package/console/dist/ui/components/notifications/favicon-badge.js +0 -68
  33. package/console/dist/ui/components/notifications/notification-reducer.d.ts +0 -9
  34. package/console/dist/ui/components/notifications/notification-reducer.js +0 -9
  35. package/console/dist/ui/components/notifications/sound-storage.d.ts +0 -3
  36. package/console/dist/ui/components/notifications/sound-storage.js +0 -37
  37. package/console/dist/ui/components/notifications/useNotifications.d.ts +0 -1
  38. package/console/dist/ui/components/notifications/useNotifications.js +0 -9
  39. package/console/dist/ui/components/onboarding/CircuitDiagram.d.ts +0 -8
  40. package/console/dist/ui/components/onboarding/CircuitDiagram.js +0 -18
  41. package/console/dist/ui/components/onboarding/DemoResultView.d.ts +0 -22
  42. package/console/dist/ui/components/onboarding/DemoResultView.js +0 -33
  43. package/console/dist/ui/components/onboarding/SlashCommandsCard.d.ts +0 -16
  44. package/console/dist/ui/components/onboarding/SlashCommandsCard.js +0 -20
  45. package/console/dist/ui/components/onboarding/slashCommands.d.ts +0 -20
  46. package/console/dist/ui/components/onboarding/slashCommands.js +0 -22
  47. package/console/dist/ui/components/receipts/ReceiptCoverageDisclosure.d.ts +0 -6
  48. package/console/dist/ui/components/receipts/ReceiptCoverageDisclosure.js +0 -66
  49. package/console/dist/ui/components/theme-provider.d.ts +0 -14
  50. package/console/dist/ui/components/theme-provider.js +0 -40
  51. package/console/dist/ui/components/theme-toggle.d.ts +0 -2
  52. package/console/dist/ui/components/theme-toggle.js +0 -11
  53. package/console/dist/ui/components/ui/alert-dialog.d.ts +0 -20
  54. package/console/dist/ui/components/ui/alert-dialog.js +0 -26
  55. package/console/dist/ui/components/ui/badge.d.ts +0 -9
  56. package/console/dist/ui/components/ui/badge.js +0 -22
  57. package/console/dist/ui/components/ui/button.d.ts +0 -11
  58. package/console/dist/ui/components/ui/button.js +0 -34
  59. package/console/dist/ui/components/ui/card.d.ts +0 -8
  60. package/console/dist/ui/components/ui/card.js +0 -16
  61. package/console/dist/ui/components/ui/charts.d.ts +0 -51
  62. package/console/dist/ui/components/ui/charts.js +0 -72
  63. package/console/dist/ui/components/ui/dialog.d.ts +0 -19
  64. package/console/dist/ui/components/ui/dialog.js +0 -22
  65. package/console/dist/ui/components/ui/input.d.ts +0 -3
  66. package/console/dist/ui/components/ui/input.js +0 -8
  67. package/console/dist/ui/components/ui/markdown.d.ts +0 -24
  68. package/console/dist/ui/components/ui/markdown.js +0 -119
  69. package/console/dist/ui/components/ui/progress-bar.d.ts +0 -20
  70. package/console/dist/ui/components/ui/progress-bar.js +0 -38
  71. package/console/dist/ui/components/ui/select.d.ts +0 -13
  72. package/console/dist/ui/components/ui/select.js +0 -26
  73. package/console/dist/ui/components/ui/separator.d.ts +0 -3
  74. package/console/dist/ui/components/ui/separator.js +0 -6
  75. package/console/dist/ui/components/ui/sheet.d.ts +0 -25
  76. package/console/dist/ui/components/ui/sheet.js +0 -37
  77. package/console/dist/ui/components/ui/shiny-text.d.ts +0 -28
  78. package/console/dist/ui/components/ui/shiny-text.js +0 -46
  79. package/console/dist/ui/components/ui/skeleton.d.ts +0 -3
  80. package/console/dist/ui/components/ui/skeleton.js +0 -6
  81. package/console/dist/ui/components/ui/sonner.d.ts +0 -3
  82. package/console/dist/ui/components/ui/sonner.js +0 -13
  83. package/console/dist/ui/components/ui/tooltip.d.ts +0 -7
  84. package/console/dist/ui/components/ui/tooltip.js +0 -10
  85. package/console/dist/ui/data/daily-thoughts.d.ts +0 -15
  86. package/console/dist/ui/data/daily-thoughts.js +0 -164
  87. package/console/dist/ui/hooks/useNotificationSound.d.ts +0 -12
  88. package/console/dist/ui/hooks/useNotificationSound.js +0 -74
  89. package/console/dist/ui/i18n/en.json +0 -2399
  90. package/console/dist/ui/i18n/index.d.ts +0 -2
  91. package/console/dist/ui/i18n/index.js +0 -32
  92. package/console/dist/ui/i18n/zh-CN.json +0 -2399
  93. package/console/dist/ui/main.d.ts +0 -1
  94. package/console/dist/ui/main.js +0 -9
  95. package/console/dist/ui/pages/ReportProblemValidators.d.ts +0 -144
  96. package/console/dist/ui/pages/ReportProblemValidators.js +0 -418
  97. package/console/dist/ui/pages/activation/ActivationPage.d.ts +0 -1
  98. package/console/dist/ui/pages/activation/ActivationPage.js +0 -512
  99. package/console/dist/ui/pages/activation/ActivationValidators.d.ts +0 -20
  100. package/console/dist/ui/pages/activation/ActivationValidators.js +0 -160
  101. package/console/dist/ui/pages/control-center/AgentCard.d.ts +0 -31
  102. package/console/dist/ui/pages/control-center/AgentCard.js +0 -212
  103. package/console/dist/ui/pages/control-center/AgentGroup.d.ts +0 -26
  104. package/console/dist/ui/pages/control-center/AgentGroup.js +0 -38
  105. package/console/dist/ui/pages/control-center/ControlCenterPage.d.ts +0 -1
  106. package/console/dist/ui/pages/control-center/ControlCenterPage.js +0 -509
  107. package/console/dist/ui/pages/control-center/DesignGatePanel.d.ts +0 -1
  108. package/console/dist/ui/pages/control-center/DesignGatePanel.js +0 -137
  109. package/console/dist/ui/pages/control-center/RuntimeProfileManager.d.ts +0 -31
  110. package/console/dist/ui/pages/control-center/RuntimeProfileManager.js +0 -199
  111. package/console/dist/ui/pages/control-center/WorkflowDiagram.d.ts +0 -17
  112. package/console/dist/ui/pages/control-center/WorkflowDiagram.js +0 -55
  113. package/console/dist/ui/pages/debt/DebtPage.d.ts +0 -2
  114. package/console/dist/ui/pages/debt/DebtPage.js +0 -222
  115. package/console/dist/ui/pages/design-system/DesignSystemPage.d.ts +0 -2
  116. package/console/dist/ui/pages/design-system/DesignSystemPage.js +0 -30
  117. package/console/dist/ui/pages/examiner/ExaminerPage.d.ts +0 -15
  118. package/console/dist/ui/pages/examiner/ExaminerPage.js +0 -158
  119. package/console/dist/ui/pages/failed-tasks/FailedTasksPage.d.ts +0 -1
  120. package/console/dist/ui/pages/failed-tasks/FailedTasksPage.js +0 -421
  121. package/console/dist/ui/pages/focus/ApprovalSubjectReading.d.ts +0 -24
  122. package/console/dist/ui/pages/focus/ApprovalSubjectReading.js +0 -133
  123. package/console/dist/ui/pages/focus/FocusPage.d.ts +0 -123
  124. package/console/dist/ui/pages/focus/FocusPage.js +0 -567
  125. package/console/dist/ui/pages/focus/OwnerDecisionCard.d.ts +0 -9
  126. package/console/dist/ui/pages/focus/OwnerDecisionCard.js +0 -111
  127. package/console/dist/ui/pages/focus/OwnerWorkbench.d.ts +0 -19
  128. package/console/dist/ui/pages/focus/OwnerWorkbench.js +0 -75
  129. package/console/dist/ui/pages/focus/RuleCandidateBindingPanel.d.ts +0 -34
  130. package/console/dist/ui/pages/focus/RuleCandidateBindingPanel.js +0 -298
  131. package/console/dist/ui/pages/focus/focus-validation.d.ts +0 -40
  132. package/console/dist/ui/pages/focus/focus-validation.js +0 -211
  133. package/console/dist/ui/pages/intent/IntentOnboarding.d.ts +0 -67
  134. package/console/dist/ui/pages/intent/IntentOnboarding.js +0 -289
  135. package/console/dist/ui/pages/intent/IntentPage.d.ts +0 -1
  136. package/console/dist/ui/pages/intent/IntentPage.js +0 -252
  137. package/console/dist/ui/pages/pain/PainEvidenceValidators.d.ts +0 -59
  138. package/console/dist/ui/pages/pain/PainEvidenceValidators.js +0 -125
  139. package/console/dist/ui/pages/pain/PainPage.d.ts +0 -1
  140. package/console/dist/ui/pages/pain/PainPage.js +0 -420
  141. package/console/dist/ui/pages/pain/pain-card-helpers.d.ts +0 -175
  142. package/console/dist/ui/pages/pain/pain-card-helpers.js +0 -181
  143. package/console/dist/ui/pages/principles/CorePrinciplesPage.d.ts +0 -10
  144. package/console/dist/ui/pages/principles/CorePrinciplesPage.js +0 -59
  145. package/console/dist/ui/pages/principles/PrincipleDetailPage.d.ts +0 -60
  146. package/console/dist/ui/pages/principles/PrincipleDetailPage.js +0 -602
  147. package/console/dist/ui/pages/principles/PrinciplesPage.d.ts +0 -1
  148. package/console/dist/ui/pages/principles/PrinciplesPage.js +0 -327
  149. package/console/dist/ui/pages/principles/PrinciplesViewNav.d.ts +0 -8
  150. package/console/dist/ui/pages/principles/PrinciplesViewNav.js +0 -15
  151. package/console/dist/ui/pages/report-problem/ReportProblemPage.d.ts +0 -1
  152. package/console/dist/ui/pages/report-problem/ReportProblemPage.js +0 -467
  153. package/console/dist/ui/pages/settings/SettingsPage.d.ts +0 -4
  154. package/console/dist/ui/pages/settings/SettingsPage.js +0 -457
  155. package/console/dist/ui/pages/settings/UpdatePage.d.ts +0 -1
  156. package/console/dist/ui/pages/settings/UpdatePage.js +0 -215
  157. package/console/dist/ui/pages/welcome/WelcomePage.d.ts +0 -5
  158. package/console/dist/ui/pages/welcome/WelcomePage.js +0 -187
  159. package/console/dist/ui/utils/agent-metadata.d.ts +0 -71
  160. package/console/dist/ui/utils/agent-metadata.js +0 -284
  161. package/console/dist/ui/utils/approval-review.d.ts +0 -30
  162. package/console/dist/ui/utils/approval-review.js +0 -50
  163. package/console/dist/ui/utils/approval-warning-localization.d.ts +0 -34
  164. package/console/dist/ui/utils/approval-warning-localization.js +0 -148
  165. package/console/dist/ui/utils/attention-presentation.d.ts +0 -35
  166. package/console/dist/ui/utils/attention-presentation.js +0 -46
  167. package/console/dist/ui/utils/blocker-localization.d.ts +0 -23
  168. package/console/dist/ui/utils/blocker-localization.js +0 -36
  169. package/console/dist/ui/utils/control-center-helpers.d.ts +0 -79
  170. package/console/dist/ui/utils/control-center-helpers.js +0 -189
  171. package/console/dist/ui/utils/enum-labels.d.ts +0 -50
  172. package/console/dist/ui/utils/enum-labels.js +0 -171
  173. package/console/dist/ui/utils/format-date.d.ts +0 -11
  174. package/console/dist/ui/utils/format-date.js +0 -17
  175. package/console/dist/ui/utils/onboarding-state.d.ts +0 -25
  176. package/console/dist/ui/utils/onboarding-state.js +0 -77
  177. package/console/dist/ui/utils/reading-layout.d.ts +0 -20
  178. package/console/dist/ui/utils/reading-layout.js +0 -46
  179. package/console/dist/ui/utils/rule-binding-validators.d.ts +0 -13
  180. package/console/dist/ui/utils/rule-binding-validators.js +0 -188
  181. package/console/dist/ui/utils/runtime-mode.d.ts +0 -11
  182. package/console/dist/ui/utils/runtime-mode.js +0 -11
  183. package/console/dist/ui/utils/token-storage.d.ts +0 -22
  184. package/console/dist/ui/utils/token-storage.js +0 -47
  185. package/console/dist/ui/utils/validators.d.ts +0 -1178
  186. package/console/dist/ui/utils/validators.js +0 -3297
  187. package/release-manager/dist/bootstrap-entry.d.ts +0 -2
  188. package/release-manager/dist/bootstrap-entry.d.ts.map +0 -1
  189. package/release-manager/dist/bootstrap-entry.js.map +0 -1
  190. package/release-manager/dist/i18n.d.ts +0 -6
  191. package/release-manager/dist/i18n.d.ts.map +0 -1
  192. package/release-manager/dist/i18n.js.map +0 -1
  193. package/release-manager/dist/index.d.ts +0 -7
  194. package/release-manager/dist/index.d.ts.map +0 -1
  195. package/release-manager/dist/index.js +0 -656
  196. package/release-manager/dist/index.js.map +0 -1
  197. package/release-manager/dist/installer.d.ts +0 -629
  198. package/release-manager/dist/installer.d.ts.map +0 -1
  199. package/release-manager/dist/installer.js.map +0 -1
  200. package/release-manager/dist/installers/codex-host-installer.d.ts +0 -39
  201. package/release-manager/dist/installers/codex-host-installer.d.ts.map +0 -1
  202. package/release-manager/dist/installers/codex-host-installer.js.map +0 -1
  203. package/release-manager/dist/installers/index.d.ts +0 -51
  204. package/release-manager/dist/installers/index.d.ts.map +0 -1
  205. package/release-manager/dist/installers/index.js.map +0 -1
  206. package/release-manager/dist/installers/openclaw-host-installer.d.ts +0 -14
  207. package/release-manager/dist/installers/openclaw-host-installer.d.ts.map +0 -1
  208. package/release-manager/dist/installers/openclaw-host-installer.js.map +0 -1
  209. package/release-manager/dist/installers/workbuddy-host-installer.d.ts +0 -335
  210. package/release-manager/dist/installers/workbuddy-host-installer.d.ts.map +0 -1
  211. package/release-manager/dist/installers/workbuddy-host-installer.js.map +0 -1
  212. package/release-manager/dist/mvp-config.d.ts +0 -233
  213. package/release-manager/dist/mvp-config.d.ts.map +0 -1
  214. package/release-manager/dist/mvp-config.js.map +0 -1
  215. package/release-manager/dist/prompts.d.ts +0 -43
  216. package/release-manager/dist/prompts.d.ts.map +0 -1
  217. package/release-manager/dist/prompts.js +0 -268
  218. package/release-manager/dist/prompts.js.map +0 -1
  219. package/release-manager/dist/skill-language.d.ts +0 -32
  220. package/release-manager/dist/skill-language.d.ts.map +0 -1
  221. package/release-manager/dist/skill-language.js.map +0 -1
  222. package/release-manager/dist/uninstaller.d.ts +0 -68
  223. package/release-manager/dist/uninstaller.d.ts.map +0 -1
  224. package/release-manager/dist/uninstaller.js +0 -746
  225. package/release-manager/dist/uninstaller.js.map +0 -1
  226. package/release-manager/dist/update/apply-payload.d.ts +0 -143
  227. package/release-manager/dist/update/apply-payload.d.ts.map +0 -1
  228. package/release-manager/dist/update/apply-payload.js.map +0 -1
  229. package/release-manager/dist/update/atomic-file.d.ts +0 -35
  230. package/release-manager/dist/update/atomic-file.d.ts.map +0 -1
  231. package/release-manager/dist/update/atomic-file.js.map +0 -1
  232. package/release-manager/dist/update/bootstrap-executor.d.ts +0 -21
  233. package/release-manager/dist/update/bootstrap-executor.d.ts.map +0 -1
  234. package/release-manager/dist/update/bootstrap-executor.js.map +0 -1
  235. package/release-manager/dist/update/bootstrap-protocol.d.ts +0 -56
  236. package/release-manager/dist/update/bootstrap-protocol.d.ts.map +0 -1
  237. package/release-manager/dist/update/bootstrap-protocol.js.map +0 -1
  238. package/release-manager/dist/update/channel-metadata.d.ts +0 -28
  239. package/release-manager/dist/update/channel-metadata.d.ts.map +0 -1
  240. package/release-manager/dist/update/channel-metadata.js.map +0 -1
  241. package/release-manager/dist/update/channel-promotion.d.ts +0 -39
  242. package/release-manager/dist/update/channel-promotion.d.ts.map +0 -1
  243. package/release-manager/dist/update/channel-promotion.js +0 -55
  244. package/release-manager/dist/update/channel-promotion.js.map +0 -1
  245. package/release-manager/dist/update/console-surface.d.ts +0 -19
  246. package/release-manager/dist/update/console-surface.d.ts.map +0 -1
  247. package/release-manager/dist/update/console-surface.js.map +0 -1
  248. package/release-manager/dist/update/data-compatibility.d.ts +0 -35
  249. package/release-manager/dist/update/data-compatibility.d.ts.map +0 -1
  250. package/release-manager/dist/update/data-compatibility.js +0 -45
  251. package/release-manager/dist/update/data-compatibility.js.map +0 -1
  252. package/release-manager/dist/update/install-layout.d.ts +0 -105
  253. package/release-manager/dist/update/install-layout.d.ts.map +0 -1
  254. package/release-manager/dist/update/install-layout.js.map +0 -1
  255. package/release-manager/dist/update/product-identity.d.ts +0 -70
  256. package/release-manager/dist/update/product-identity.d.ts.map +0 -1
  257. package/release-manager/dist/update/product-identity.js.map +0 -1
  258. package/release-manager/dist/update/release-asset-manifest.d.ts +0 -31
  259. package/release-manager/dist/update/release-asset-manifest.d.ts.map +0 -1
  260. package/release-manager/dist/update/release-asset-manifest.js.map +0 -1
  261. package/release-manager/dist/update/release-identity.d.ts +0 -33
  262. package/release-manager/dist/update/release-identity.d.ts.map +0 -1
  263. package/release-manager/dist/update/release-identity.js.map +0 -1
  264. package/release-manager/dist/update/release-manager-authority.d.ts +0 -39
  265. package/release-manager/dist/update/release-manager-authority.d.ts.map +0 -1
  266. package/release-manager/dist/update/release-manager-authority.js.map +0 -1
  267. package/release-manager/dist/update/release-manager.d.ts +0 -156
  268. package/release-manager/dist/update/release-manager.d.ts.map +0 -1
  269. package/release-manager/dist/update/release-manager.js.map +0 -1
  270. package/release-manager/dist/update/release-metadata-publisher.d.ts +0 -199
  271. package/release-manager/dist/update/release-metadata-publisher.d.ts.map +0 -1
  272. package/release-manager/dist/update/release-metadata-publisher.js +0 -478
  273. package/release-manager/dist/update/release-metadata-publisher.js.map +0 -1
  274. package/release-manager/dist/update/release-metadata-source.d.ts +0 -85
  275. package/release-manager/dist/update/release-metadata-source.d.ts.map +0 -1
  276. package/release-manager/dist/update/release-metadata-source.js.map +0 -1
  277. package/release-manager/dist/update/release-metadata.d.ts +0 -60
  278. package/release-manager/dist/update/release-metadata.d.ts.map +0 -1
  279. package/release-manager/dist/update/release-metadata.js.map +0 -1
  280. package/release-manager/dist/update/release-policy.d.ts +0 -51
  281. package/release-manager/dist/update/release-policy.d.ts.map +0 -1
  282. package/release-manager/dist/update/release-policy.js.map +0 -1
  283. package/release-manager/dist/update/rollback-policy.d.ts +0 -56
  284. package/release-manager/dist/update/rollback-policy.d.ts.map +0 -1
  285. package/release-manager/dist/update/rollback-policy.js +0 -61
  286. package/release-manager/dist/update/rollback-policy.js.map +0 -1
  287. package/release-manager/dist/update/transaction-journal.d.ts +0 -212
  288. package/release-manager/dist/update/transaction-journal.d.ts.map +0 -1
  289. package/release-manager/dist/update/transaction-journal.js.map +0 -1
  290. package/release-manager/dist/update/trust-metadata.d.ts +0 -55
  291. package/release-manager/dist/update/trust-metadata.d.ts.map +0 -1
  292. package/release-manager/dist/update/trust-metadata.js.map +0 -1
  293. package/release-manager/dist/update/trust-root-provisioning.d.ts +0 -99
  294. package/release-manager/dist/update/trust-root-provisioning.d.ts.map +0 -1
  295. package/release-manager/dist/update/trust-root-provisioning.js.map +0 -1
  296. package/release-manager/dist/update/update-history.d.ts +0 -46
  297. package/release-manager/dist/update/update-history.d.ts.map +0 -1
  298. package/release-manager/dist/update/update-history.js +0 -123
  299. package/release-manager/dist/update/update-history.js.map +0 -1
  300. package/release-manager/dist/utils/config-file-io.d.ts +0 -34
  301. package/release-manager/dist/utils/config-file-io.d.ts.map +0 -1
  302. package/release-manager/dist/utils/config-file-io.js.map +0 -1
  303. package/release-manager/dist/utils/env.d.ts +0 -94
  304. package/release-manager/dist/utils/env.d.ts.map +0 -1
  305. package/release-manager/dist/utils/env.js.map +0 -1
  306. package/release-manager/dist/utils/logger.d.ts +0 -15
  307. package/release-manager/dist/utils/logger.d.ts.map +0 -1
  308. package/release-manager/dist/utils/logger.js.map +0 -1
  309. package/release-manager/dist/utils/workspace-divergence.d.ts +0 -36
  310. package/release-manager/dist/utils/workspace-divergence.d.ts.map +0 -1
  311. package/release-manager/dist/utils/workspace-divergence.js.map +0 -1
@@ -1,629 +0,0 @@
1
- import { type ChildProcess } from 'child_process';
2
- import type { InstallOptions } from './prompts.js';
3
- import { type ComponentStatus, type VerificationResult } from './mvp-config.js';
4
- import { type HostTarget } from './installers/index.js';
5
- import type { HostInstallResult } from '@principles/core/host';
6
- import { type SkillLanguage } from './skill-language.js';
7
- import { type ReleaseMetadataDigestSource, type TransactionState } from './update/transaction-journal.js';
8
- /** PRI-343: Keep in sync with @principles/core CONVERSATION_ACCESS_CONFIG_KEY */
9
- export declare const CONVERSATION_ACCESS_CONFIG_KEY: 'allowConversationAccess';
10
- /** PRI-853: the maintained official signed-release metadata repository.
11
- * Served from the repo's GitHub Pages (gh-pages branch, enabled 2026-09-19). */
12
- export declare const DEFAULT_RELEASE_METADATA_URL = "https://csuzngjh.github.io/principles";
13
- /**
14
- * PRI-343: Pure function — deep-merges allowConversationAccess: true into
15
- * the openclaw.json config without mutating the input.
16
- *
17
- * Ensures plugins.entries['principles-disciple'].hooks.allowConversationAccess
18
- * is set to true, creating intermediate objects if missing.
19
- * Preserves all other fields.
20
- */
21
- export declare function ensureConversationAccess(config: Record<string, unknown>): Record<string, unknown>;
22
- export declare function resolveConsolePortBase(): number;
23
- export declare function mergeInstallManifestHosts(current: unknown, host: HostTarget): string[];
24
- /**
25
- * PRI-709 P0-2 — active record commit point (ADR-0024 D-2).
26
- *
27
- * `~/.pd/active.json` is the deployment identity source: it records WHAT is
28
- * actually deployed, keyed to the transaction that deployed it. Before PRI-709
29
- * the installer never wrote it (the only writer was legacy-migration.ts), so
30
- * every real install and every ReleaseManager apply left active.json absent or
31
- * stale — the PRI-698 audit finding F-2.
32
- *
33
- * Identity is taken from the transaction, never recomputed here: the journal
34
- * was opened with the payload's own identity (`_release/manifest.json` digest
35
- * when the self-contained asset ships one), and active.json must agree with
36
- * the journal of the transaction that produced it. A divergent second
37
- * computation would break the audit trail.
38
- *
39
- * Ordering: journal-first. The caller appends `confirmed` and only then calls
40
- * this, so a crash between the two is recoverable from the journal (the
41
- * reverse order would leave an unjournaled active.json).
42
- *
43
- * Failure policy — Tier 2: this runs AFTER the backup was discarded, so the
44
- * install is already committed and must not be failed here. A write failure is
45
- * reported loud (rc-9) and returned to the caller; it never bricks the
46
- * installation.
47
- */
48
- export interface ActiveRecordCommitResult {
49
- readonly written: boolean;
50
- readonly activeRecordPath: string;
51
- readonly generation: number;
52
- readonly previousReleaseId: string | null;
53
- /** Set when the record could not be written or the previous one was unreadable. */
54
- readonly reason?: string;
55
- }
56
- export declare function commitInstallerActiveRecord(journal: InstallerJournal): ActiveRecordCommitResult;
57
- /**
58
- * PRI-709 P0-1 — installer supply path for the release metadata source.
59
- *
60
- * The installer is the only component that legitimately knows the metadata
61
- * repository at install time, so it persists `PD_RELEASE_METADATA_URL` into
62
- * `~/.pd/install.json` (the durable `install_config` tier). Without this the
63
- * variable had to be exported in every shell that wanted a governed update
64
- * check (PRI-698 audit F-4).
65
- *
66
- * Absent env is a no-op — an install with no metadata source stays
67
- * unconfigured rather than persisting a guessed URL. A malformed env value is
68
- * reported and skipped: it must never be written into install.json, where the
69
- * strict reader would then fail loud and mark the install corrupt.
70
- */
71
- export declare function persistReleaseMetadataSource(): void;
72
- /**
73
- * PRI-850 (SPEC v0.3 §6.1, ADR-0024 §6): stage, probe, and register the
74
- * bootstrap update executor under `~/.pd/bootstrap/`.
75
- *
76
- * The executor is the installer's own compiled package (dist + package.json) —
77
- * self-contained ESM, no runtime dependency resolution on the Owner machine.
78
- * Delivery order: stage → probe the staged bytes through the strict JSON
79
- * protocol → activate by rename-swap → register in bootstrap.json with a
80
- * digest of the deployed tree. The previous executor is kept until the new
81
- * registration is written, then removed.
82
- */
83
- export interface BootstrapDeliveryResult {
84
- readonly bootstrapVersion: string;
85
- readonly executorDigest: string;
86
- readonly executorDir: string;
87
- }
88
- /**
89
- * Resolve which installer bytes the bootstrap executor should be deployed
90
- * from. The deployed executor is what RUNS an update, so delivering it from
91
- * "whichever installer is executing" pins that old code forever: the executor
92
- * re-delivers itself, its same-version fast path matches, and every later
93
- * update keeps running retired behavior. That is how the PRI-1021 legacy
94
- * `~/.openclaw/plugins/installs.json` writer came back on 2026-10-28 — a
95
- * 1.145.1 executor deployed 2026-10-15 applied release 2.4.0 using its own
96
- * pre-PRI-1021 host installer while the release shipped the fixed one.
97
- *
98
- * The payload's `release-manager` component is the installer this transaction
99
- * deploys, so it is the authority for the NEXT executor. Fall back to the
100
- * executing package only when the payload carries no installer component
101
- * (npm-distributed legacy shape).
102
- */
103
- export declare function resolveBootstrapExecutorSourceDir(payloadRoot: string): string;
104
- export declare function deliverBootstrapExecutor(input: {
105
- pdHome: string;
106
- /** The installer package's own root (contains dist/ and package.json). */
107
- sourcePackageDir: string;
108
- }): Promise<BootstrapDeliveryResult>;
109
- /**
110
- * PRI-850: the official repair path for installations whose update chain is
111
- * broken or pre-bootstrap (ADR-0024 §6.5). It NEVER deploys a product release
112
- * and NEVER touches active.json — the installed product version is not this
113
- * command's authority. It repairs the update capability itself: bootstrap
114
- * delivery + update-source registration + install-state report.
115
- */
116
- export interface RepairUpdateChainResult {
117
- readonly success: boolean;
118
- readonly installedProductVersion: string | null;
119
- readonly bootstrap: BootstrapDeliveryResult | null;
120
- readonly metadataSourceRegistered: boolean;
121
- readonly needsFullInstall: boolean;
122
- readonly notes: readonly string[];
123
- readonly error?: string;
124
- }
125
- export declare function repairUpdateChain(input: {
126
- sourcePackageDir: string;
127
- }): Promise<RepairUpdateChainResult>;
128
- /**
129
- * 验证原生模块:better-sqlite3 随发布资产携带 prebuilt 二进制
130
- * (prebuilds/*.node),node-gyp-build 在 require 时解析——无需(也没有)
131
- * npm rebuild 步骤。本函数的 require 探针就是唯一验证(历史上存在一个
132
- * 名为 rebuildNativeModules 的空壳函数,已删除以避免误导维护者)。
133
- */
134
- export declare function verifyNativeModules(cwd: string, componentName: string): void;
135
- export declare class SelfContainedDependencyError extends Error {
136
- readonly reason: string;
137
- readonly nextAction: string;
138
- readonly component: string;
139
- readonly dependency?: string;
140
- constructor(options: {
141
- reason: string;
142
- nextAction: string;
143
- message: string;
144
- component: string;
145
- dependency?: string;
146
- cause?: unknown;
147
- });
148
- }
149
- /**
150
- * Installer payload shape, decided once per install run (see
151
- * `decideInstallPayloadMode` below):
152
- * - `self-contained` — the package ships the immutable release asset
153
- * (`_release/asset.json` + per-component node_modules); the default
154
- * for the release-asset publication channel.
155
- * - `npm-distributed` — the npm registry package ships the bundled
156
- * component trees WITHOUT node_modules/_release (the registry package
157
- * is ~8MB vs ~792MB for the self-contained payload); dependencies
158
- * resolve from the npm registry at install time (the
159
- * PD_ALLOW_LEGACY_NPM_INSTALL recovery path).
160
- */
161
- type InstallerPayloadMode = 'self-contained' | 'npm-distributed';
162
- /**
163
- * Decide which payload shape this package instance carries and whether
164
- * registry dependency resolution (npm install) is required. Env override
165
- * first (explicit operator intent), then the physical shape: a present
166
- * `_release/asset.json` always takes the self-contained path (a present
167
- * but CORRUPT asset still fails hard inside the preflight — never
168
- * silently falling back to registry resolution); a package without the
169
- * release asset but with complete component trees is the npm-distributed
170
- * shape and resolves dependencies from the registry.
171
- */
172
- export declare function decideInstallPayloadMode(pluginDir: string): InstallerPayloadMode;
173
- /**
174
- * Whether registry dependency resolution (npm install / global root
175
- * discovery) may run: true for the npm-distributed payload shape and the
176
- * PD_ALLOW_LEGACY_NPM_INSTALL recovery path. Host installers consume this
177
- * gate instead of re-reading the env (their concern is payload shape, not
178
- * the specific env var).
179
- */
180
- export declare function isNpmDependencyResolutionEnabled(): boolean;
181
- /**
182
- * Supported release assets are self-contained: installation validates the
183
- * copied component and never resolves dependencies or runs lifecycle scripts.
184
- * The old npm path remains opt-in for development/legacy recovery only.
185
- */
186
- export declare function prepareBundledComponentDependencies(cwd: string, componentName: string): Promise<void>;
187
- export declare function preflightSelfContainedReleaseAsset(assetDir: string): Promise<void>;
188
- /**
189
- * 验证路径是否在工作区目录内,防止路径遍历攻击
190
- */
191
- export declare function validateWorkspacePath(targetPath: string, workspaceDir: string): void;
192
- interface BackupResult {
193
- type: 'no_existing' | 'backed_up';
194
- backupDir: string | null;
195
- runtimeBackupDir?: string | null;
196
- }
197
- /**
198
- * Move legacy PD backup directories out of the extensions dir into the PD
199
- * backups root. Older versions created backups as siblings of the plugin
200
- * inside ~/.openclaw/extensions — OpenClaw plugin discovery scans every
201
- * extensions/ child directory, so those backups get discovered as duplicate
202
- * principles-disciple plugins ("duplicate plugin id detected" on every
203
- * gateway startup). Best-effort: failures are logged, never fatal (rc-9).
204
- *
205
- * Exported for real-filesystem tests (tests/backup-location.test.ts).
206
- */
207
- export declare function migrateLegacyPdBackups(): void;
208
- /**
209
- * P0-3 (SPEC v1.2 §17 / PRI-1070 comment §2): backup step failed midway and
210
- * the compensation (undo of the already-moved extension tree) ALSO failed —
211
- * the installer is holding the moved backup paths so the failure handler can
212
- * still restore them. Never silently dropped.
213
- */
214
- export declare class BackupIntegrityError extends Error {
215
- readonly extensionBackupDir: string | null;
216
- readonly runtimeBackupDir: string | null;
217
- constructor(message: string, extensionBackupDir: string | null, runtimeBackupDir: string | null);
218
- }
219
- /**
220
- * Exported for real-filesystem tests (tests/backup-location.test.ts).
221
- */
222
- export declare function backupExistingInstall(host?: HostTarget): BackupResult;
223
- /** P0-3 (SPEC v1.2 §17): per-tree restore outcome — never one fuzzy boolean. */
224
- export interface TreeRestoreResult {
225
- readonly tree: 'extension' | 'runtime';
226
- readonly status: 'restored' | 'no_backup' | 'failed';
227
- readonly detail?: string;
228
- /** Directories that MUST be preserved for a later manual/automatic retry. */
229
- readonly preservedDirs: readonly string[];
230
- }
231
- export interface RestoreBackupResult {
232
- readonly restored: boolean;
233
- readonly partial: boolean;
234
- readonly extension?: TreeRestoreResult;
235
- readonly runtime?: TreeRestoreResult;
236
- readonly error?: string;
237
- }
238
- /**
239
- * P0-3/P0-4: restore both trees with per-tree outcomes. `restored: true` only
240
- * when every tree is genuinely back (or had no backup to apply). A partial
241
- * restore is reported as such — never as success, never as rolled_back.
242
- */
243
- export declare function restoreBackup(backupDir: string | null, runtimeBackupDir: string | null): RestoreBackupResult;
244
- /**
245
- * Legacy rule contract preflight (2026-08-19).
246
- *
247
- * Before replacing the current installation, run the NEW pd-cli's
248
- * `runtime compatibility-scan` against the target workspace: if any ACTIVE
249
- * owner-approved RuleCode still references a RuleHost contract symbol this
250
- * version removed (recentThinking, planStatus, hasPlanFile, ...), upgrading
251
- * would silently change that rule's behavior. Refusing here keeps the old
252
- * installation untouched (cli-5) and tells the owner exactly which rules
253
- * block the upgrade.
254
- */
255
- /**
256
- * Compatibility preflight status taxonomy (P1-3, 2026-08-20).
257
- *
258
- * The scanner's status is preserved end-to-end so a refusal names the real
259
- * cause instead of smearing every failure into "legacy RuleCode":
260
- *
261
- * clean → allow upgrade
262
- * no_state_db → allow (nothing persisted to be incompatible)
263
- * legacy_dependency → refuse → migrate/deactivate the listed rules
264
- * scan_failed → refuse → repair DB / permissions
265
- * scan_unavailable → refuse → repair/re-download the installer
266
- *
267
- * Any unrecognized status is treated as a refusal (fail closed).
268
- */
269
- export type CompatibilityStatus = 'clean' | 'no_state_db' | 'legacy_dependency' | 'scan_failed' | 'scan_unavailable';
270
- export interface LegacyRulePreflightOutcome {
271
- ok: boolean;
272
- status?: CompatibilityStatus;
273
- /** rc-9: structured reason + remediation whenever ok=false. */
274
- reason?: string;
275
- remediation?: string;
276
- }
277
- /** Injected runner so tests can exercise refusal without a built pd-cli. */
278
- export type LegacyRulePreflightRunner = (pdCliEntry: string, workspaceDir: string) => Promise<LegacyRulePreflightOutcome>;
279
- /**
280
- * Strict (ok, status) protocol parse (P2, 2026-08-20).
281
- *
282
- * Boolean `ok` alone is NOT authoritative — the (ok, status) pair is the
283
- * contract. Only ok=true + (clean|no_state_db) is a successful scan. Every
284
- * other combination fails closed:
285
- * - ok=true + refusal/success-impossible status → protocol invalid
286
- * - ok=false + clean|no_state_db/unknown → protocol invalid
287
- * - ok=false + legacy_dependency|scan_failed|scan_unavailable → refusal
288
- * - non-boolean / missing ok → protocol invalid
289
- * The payload is never trusted to self-describe a pass.
290
- */
291
- export declare function parseCompatibilityScanStdout(stdout: unknown): LegacyRulePreflightOutcome;
292
- /**
293
- * PRI-693 / PRI-1060: materialize node_modules links for the BUNDLED (not yet
294
- * deployed) components so the pre-deployment compatibility scan can execute
295
- * the bundled pd-cli. Mirrors the links syncPdCli creates for the deployed
296
- * copy — targets are the sibling component directories of the npm package
297
- * (files whitelist: core/, host-runtime/, codex-adapter/, workbuddy-adapter/,
298
- * install-layout/, plugin/). Idempotent.
299
- *
300
- * Links are materialized at BOTH levels:
301
- *
302
- * 1. <root>/pd-cli/node_modules/* — pd-cli's OWN first-hop imports.
303
- * 2. <root>/node_modules/* — every OTHER bundled component's `file:../`
304
- * sibling dependencies. Node resolves a component reached through a
305
- * junction by its REAL path, so host-runtime/dist/index.js importing
306
- * '@principles/core' never sees pd-cli's node_modules — it only resolves
307
- * via the package root's node_modules (PRI-1060: this exact gap crashed
308
- * the scan with ERR_MODULE_NOT_FOUND on every registry install). The
309
- * third-party dependencies of the bundled graph (@sinclair/typebox,
310
- * better-sqlite3, …) are declared as top-level installer dependencies so
311
- * the surrounding npx/npm install places them one node_modules above the
312
- * package, reachable by the same upward resolution.
313
- */
314
- export declare function ensureBundledPdCliResolution(pdCliRoot: string): void;
315
- export declare function runLegacyRuleContractPreflight(pluginDir: string, workspaceDir: string, runScan?: LegacyRulePreflightRunner): Promise<LegacyRulePreflightOutcome>;
316
- export declare function checkBuiltPlugin(pluginDir: string): Promise<void>;
317
- export declare function installPluginToStaging(pluginDir: string, language: SkillLanguage): Promise<void>;
318
- /** Outcome of one global-shim discovery/install attempt (PRI-697 review P1). */
319
- export interface GlobalPdShimResult {
320
- /** true when PD-owned shim files are in place in the npm global bin dir. */
321
- installed: boolean;
322
- /** Shim files this run CREATED (absent before) — the rollback set. */
323
- createdPaths: string[];
324
- /** PD-owned shim files that already existed and were overwritten in place. */
325
- replacedPaths: string[];
326
- /** Foreign-owned `pd` entries found — never written, never rolled back. */
327
- skippedForeignPaths: string[];
328
- }
329
- /**
330
- * Render the POSIX-sh forwarding script that exposes a global `pd`.
331
- *
332
- * The target goes in SINGLE quotes. Inside `"…"` the shell still expands `$`
333
- * and backticks and treats `\` as an escape character — and a Windows path is
334
- * nothing but backslashes — so no complete escape set exists there short of
335
- * quoting per-character. Single quotes are literal except for `'` itself,
336
- * which is emitted as the close-escape-reopen idiom. Exported because the
337
- * win32 write branch is platform-gated while this escaping contract has to be
338
- * assertable on every runner.
339
- */
340
- export declare function renderShForwardingShim(targetPath: string): string;
341
- export declare function installGlobalPdShim(): GlobalPdShimResult | boolean;
342
- export declare function tryUpgradePdCliFromNpm(installedPdCliDir: string): void;
343
- /**
344
- * PRI-711: materialize node_modules links for the INSTALLED codex-adapter so
345
- * its declared `file:../<component>` dependencies resolve under ESM realpath
346
- * rules. The adapter's dist imports @principles/host-runtime and
347
- * @principles/core, and pd-cli's eager import graph (health-codex) statically
348
- * imports the adapter — without these links every pd command dies with
349
- * ERR_MODULE_NOT_FOUND at startup (observed 2026-09-09: the 1.231.2 full
350
- * update swapped in Slice-D pd-cli while the deployed adapter, laid down by
351
- * older installers, had no node_modules at all).
352
- */
353
- export declare function ensureCodexAdapterResolution(): void;
354
- /**
355
- * SPEC workbuddy-host-adapter §4.1/§5: the bundled @principles/workbuddy-adapter
356
- * payload installs as a runtime sibling exactly like codex-adapter, and its
357
- * `file:../<component>` dependency links are materialized the same way so the
358
- * plugin wrapper resolves core/host-runtime/install-layout under ESM realpath
359
- * rules.
360
- *
361
- * Unlike codex-adapter, the payload's ABSENCE is an observable skip, not a
362
- * failure: installer builds published before the adapter component landed (or
363
- * cut from a tree where it is not yet bundled) still deploy OpenClaw/Codex
364
- * untouched; the WorkBuddy host installer then reports
365
- * workbuddy_adapter_payload_missing for --host workbuddy (rc-9).
366
- */
367
- export declare function installBundledWorkbuddyAdapter(pluginDir: string): boolean;
368
- /**
369
- * Materialize the resolution links for the INSTALLED workbuddy-adapter.
370
- * Mirrors ensureCodexAdapterResolution; tolerates the component's absence
371
- * (observable skip — see installBundledWorkbuddyAdapter).
372
- */
373
- export declare function ensureWorkbuddyAdapterResolution(): {
374
- installed: boolean;
375
- skipReason?: string;
376
- };
377
- /**
378
- * PRI-912 (SPEC-P1′-A): canonical junction reconciliation for the plugin's
379
- * bundled @principles/core copy. The self-contained release asset must ship
380
- * node_modules materialized (the asset builder refuses symlinks), so every
381
- * deployed plugin carries a full physical duplicate of the runtime root core
382
- * (~119MB / 17k files on a real install). This pass runs once ALL components
383
- * are deployed and BEFORE the journal 'staged' transition — a conversion that
384
- * breaks runtime resolution must surface through the EXISTING console-probe →
385
- * rollback channel, not a new one.
386
- *
387
- * The ONLY candidate is <pluginDir>/node_modules/@principles/core with the
388
- * runtime root core (<runtime>/core) as canonical source. A materialized copy
389
- * is converted to a junction (Windows) / relative symlink (Unix) only when
390
- * ALL three gates hold:
391
- * 1. package identity — the copy's and the source's package.json `name`
392
- * agree (evidence-based; never name-matching alone),
393
- * 2. declared relationship — the plugin manifest declares
394
- * `@principles/core` as a `file:` dependency whose declared path stays
395
- * inside the plugin dir (rc-1) and RESOLVES to the canonical runtime
396
- * core (the <plugin>/core slot installPluginToStaging creates),
397
- * 3. content digest — digestDirectory(copy) === digestDirectory(source).
398
- * Any gate failure (or an unreadable/partial state) SKIPS the copy with a
399
- * structured reason (rc-9) and never mutates it — dedup must never make an
400
- * install worse. Conversion is rename-swap with verification and restore:
401
- * a failed link creation/verification puts the materialized copy back; only
402
- * a restore failure (which WOULD break resolution) fails the install loud
403
- * into the existing fail → rollback channel. Idempotent: an existing link
404
- * that already resolves to the canonical core is a no-op. The canonical
405
- * target itself is never deleted: removing a converted tree unlinks the
406
- * junction, it does not follow it (rmSync/fse.remove symlink semantics).
407
- */
408
- export interface CoreJunctionReconciliation {
409
- /** Materialized copies replaced by a verified canonical junction. */
410
- readonly converted: readonly string[];
411
- /** Existing links already resolving to the canonical core (idempotent no-op). */
412
- readonly alreadyCanonical: readonly string[];
413
- /** Structured skip records — every non-conversion carries a reason (rc-9). */
414
- readonly skipped: readonly {
415
- dir: string;
416
- reason: string;
417
- }[];
418
- }
419
- export declare function reconcilePluginCoreCanonicalJunction(): CoreJunctionReconciliation;
420
- export interface ChildJoinResult {
421
- readonly exited: boolean;
422
- readonly exitCode: number | null;
423
- readonly signal: string | null;
424
- readonly timedOut: boolean;
425
- readonly escalation: 'already_exited' | 'sigterm' | 'sigkill';
426
- }
427
- /**
428
- * P0-2 (SPEC v1.2 §5 step 6 / invariant I-4): terminate a child and WAIT for
429
- * its real exit event before anyone touches the directories it may hold.
430
- *
431
- * Discipline proven by the R8 Windows experiment (2026-11-02, real
432
- * better-sqlite3 .node): subscribing to 'exit' AFTER the kill signal loses
433
- * the event — the listener must be attached BEFORE the signal is sent.
434
- * Graceful SIGTERM first, bounded wait, then SIGKILL, then a second bounded
435
- * wait. If even that does not confirm exit, `exited: false` is returned and
436
- * the caller MUST NOT perform destructive directory operations (defer to a
437
- * recovery state instead).
438
- */
439
- export declare function terminateAndJoinChild(child: ChildProcess, options?: {
440
- gracefulTimeoutMs?: number;
441
- killTimeoutMs?: number;
442
- }): Promise<ChildJoinResult>;
443
- /** One probe attempt's diagnostics (SPEC v1.2 §14: attempt-level records;
444
- * the nonce VALUE itself is never recorded — only the match outcome). */
445
- export interface ConsoleVerifyAttempt {
446
- readonly port: number;
447
- readonly pid: number | null;
448
- readonly outcome: 'verified' | 'identity_mismatch' | 'http_error_status' | 'bad_body' | 'request_error' | 'child_exited_early' | 'join_failed';
449
- readonly httpStatus?: number;
450
- readonly exitCode?: number | null;
451
- readonly signal?: string | null;
452
- readonly stderrTail?: string;
453
- readonly detail?: string;
454
- }
455
- export declare class ConsoleVerifyError extends Error {
456
- readonly attempts: readonly ConsoleVerifyAttempt[];
457
- readonly hadJoinFailure: boolean;
458
- constructor(message: string, attempts: readonly ConsoleVerifyAttempt[]);
459
- }
460
- /** Exported for real-subprocess tests (tests/console-verify-identity.test.ts). */
461
- export declare function verifyConsole(workspaceDir: string): Promise<{
462
- ok: boolean;
463
- url: string;
464
- process: ChildProcess | null;
465
- attempts: readonly ConsoleVerifyAttempt[];
466
- unconfirmedChildren: readonly ChildProcess[];
467
- }>;
468
- /**
469
- * Task 8: Auto-launch the PD Console at the end of a successful install by
470
- * reusing `pd console open` (handleConsoleOpen). Spawns it detached so the
471
- * console survives installer exit, then opens the browser to /welcome.
472
- *
473
- * EP-03: on failure, returns consoleUrl=undefined + fallbackAction so the user
474
- * is never left without a way to reach the console.
475
- * EP-04: detached + unref keeps the console running after the installer exits.
476
- * EP-06: reuses pd-cli's handleConsoleOpen via the CLI entry — no new launcher.
477
- */
478
- /**
479
- * WorkBuddy remediation (review 2026-10-13 §4 P1): the auto-launched Console,
480
- * canary and manual-open instructions must manage the directory the host's
481
- * hook/worker actually read. For the WorkBuddy host that is the dedicated
482
- * governance workspace (SPEC §4.1) — NOT the project directory, which is only
483
- * the task project path. Other hosts keep the project workspace.
484
- */
485
- export declare function resolveConsoleWorkspaceDir(host: HostTarget | undefined, projectWorkspaceDir: string, homeDir: string): string;
486
- export interface InstallResult {
487
- success: boolean;
488
- workspaceDir: string;
489
- configYamlPath: string;
490
- templatesCount: number;
491
- components: ComponentStatus;
492
- verification: VerificationResult;
493
- enabledChannels: string[];
494
- nextAction: string;
495
- reason?: string;
496
- component?: string;
497
- dependency?: string;
498
- error?: string;
499
- /** Task 8: URL the browser was opened to when the installer auto-launched the
500
- * console via `pd console open`. Undefined when auto-launch was skipped or failed. */
501
- consoleUrl?: string;
502
- /** ADR-0020 §2.3: Host-side install results (one per HostInstaller). */
503
- hostResults?: HostInstallResult[];
504
- /** ADR-0024 D-2 (PRI-664): transaction journal record for this install.
505
- * Undefined when the mutation never began (pre-mutation refusal/throw). */
506
- journal?: InstallJournalRecord;
507
- /** PRI-726: degraded-success notice — the payload committed but the OpenClaw
508
- * gateway did not come back up. Present ONLY on success results (a failed
509
- * install reports its own error/nextAction); ReleaseManager.apply propagates
510
- * it verbatim to the Console `gatewayNotice` contract (PRI-723 legacy path
511
- * parity). */
512
- gatewayNotice?: string;
513
- }
514
- /** Observability record for one installer transaction (ADR-0024 D-2). */
515
- export interface InstallJournalRecord {
516
- readonly transactionId: string;
517
- /** Journal file: `~/.pd/transactions/<transactionId>.jsonl` (D-6, runtime scope). */
518
- readonly journalPath: string;
519
- /** True when a mid-flight journal append failed (Tier-2 degradation) and
520
- * later transitions were skipped — the backup/restore safety net remained
521
- * authoritative for this transaction. */
522
- readonly degraded: boolean;
523
- }
524
- export interface InstallRunMode {
525
- /** Suppress human output (spinner / progress). True under --json. */
526
- quiet?: boolean;
527
- /** No interactive prompts. True under --yes / --non-interactive / --json. */
528
- nonInteractive?: boolean;
529
- }
530
- export interface InstallerJournal {
531
- readonly transactionId: string;
532
- readonly journalPath: string;
533
- readonly releaseId: string;
534
- readonly productVersion: string;
535
- /**
536
- * PRI-926: the version the update started FROM. ReleaseManager apply only —
537
- * the active record's productVersion at plan time, journaled once on the
538
- * planned transition. Absent for installer-initiated (install-*)
539
- * transactions, which are not Owner-facing update history.
540
- */
541
- readonly preUpdateProductVersion?: string;
542
- /**
543
- * Embedded product identity (SPEC §12): the payload's stamped source commit.
544
- * Null = the payload carries no embedded identity (legacy shape) — provenance
545
- * is then visibly unavailable in journal/active.json, never faked.
546
- */
547
- readonly sourceCommit: string | null;
548
- /**
549
- * Provenance of `productVersion`: `embedded` (installer read the payload's
550
- * stamp) or `signed_channel` (ReleaseManager adopted a signed release).
551
- * These are the only two producible values — see `InstallerProductVersionSource`.
552
- */
553
- readonly productVersionSource: InstallerProductVersionSource;
554
- readonly releaseMetadataDigest: string;
555
- /** PRI-664 review: provenance of releaseMetadataDigest ('manifest' | 'package_manifest' | 'fallback' | 'signed_channel'). */
556
- readonly releaseMetadataDigestSource: ReleaseMetadataDigestSource;
557
- /**
558
- * PRI-698 Phase 1: dual-slot generation continuity. Standalone installs keep
559
- * the historical `1`; an externally adopted transaction (ReleaseManager
560
- * apply orchestration) supplies activeRecord.generation + 1.
561
- */
562
- readonly generation: number;
563
- degraded: boolean;
564
- /** Last successfully journaled state — the `from` for failure-path transitions. */
565
- lastState: TransactionState | null;
566
- }
567
- /**
568
- * Identity of the payload being installed (SPEC §12). The PRODUCT VERSION comes
569
- * only from the EMBEDDED identity stamp (`_release/product-identity.json`,
570
- * written by the asset build BEFORE the artifact bytes were hashed) — there is
571
- * no manifest fallback for it any more, and a payload without a stamp is
572
- * refused rather than guessed (contract below).
573
- *
574
- * `releaseMetadataDigest` keeps its own, unrelated provenance ladder
575
- * (`manifest` → `package_manifest` → `fallback`): that digest is an integrity
576
- * marker whose source is a REAL fact, so the journal never stores a placeholder
577
- * where a verifiable value is available (same discipline as
578
- * legacy-migration.ts), and the last-resort `fallback` hashes the literal
579
- * reason string only to satisfy the journal's 64-hex format requirement.
580
- * Nothing in that ladder may be promoted to the product version.
581
- *
582
- * PRI-709 P0-2 (PRI-698 audit F-1): without an embedded stamp the installer
583
- * once derived `productVersion` from a component package manifest — the
584
- * exact promotion of a diagnostic to product authority that stamped every
585
- * legacy-installer machine with `bundled-1.74.1-*` (PRI-874).
586
- *
587
- * Embedded-stamp contract (fail-closed, rc-2/rc-3): the payload MUST carry
588
- * `_release/product-identity.json`. A PRESENT but malformed stamp throws
589
- * BEFORE any install mutation (the caller journals `planned` before the
590
- * first filesystem mutation, so a throw here leaves the runtime untouched).
591
- * A MISSING stamp now throws too — component manifest versions are
592
- * diagnostics and are never promoted to the product version. Only
593
- * train/asset builds stamp their payloads (PRI-874 publish guards); a tree
594
- * without a stamp is not an installable release.
595
- */
596
- /**
597
- * The ONLY producible product-version provenances:
598
- * - `embedded` — the installer read the payload's `_release/product-identity.json`;
599
- * - `signed_channel` — ReleaseManager adopted a signed release document.
600
- *
601
- * PRI-874 review: `package_manifest` and `unavailable` were dropped. Once the
602
- * component-manifest fallback was deleted, no production seam could return
603
- * either value, so advertising them described a branch no seam can reach (the
604
- * ERR-099 class this repository's error index forbids). This is a compile-time
605
- * narrowing only: the value lives in the in-memory installer transaction and is
606
- * NOT part of the persisted journal/active.json schema, so no stored row is
607
- * reinterpreted.
608
- */
609
- export type InstallerProductVersionSource = 'embedded' | 'signed_channel';
610
- export interface InstallerPayloadIdentity {
611
- readonly productVersion: string;
612
- readonly sourceCommit: string | null;
613
- readonly productVersionSource: InstallerProductVersionSource;
614
- readonly releaseMetadataDigest: string;
615
- readonly releaseMetadataDigestSource: ReleaseMetadataDigestSource;
616
- }
617
- /** Opens one installer transaction: `~/.pd/transactions/<transactionId>.jsonl`. */
618
- export declare function beginInstallerJournal(pluginDir: string, preResolvedIdentity?: InstallerPayloadIdentity): InstallerJournal;
619
- /**
620
- * Append one transition durably (append + fsync) BEFORE the side effect it
621
- * describes. Throws on failure — the caller decides Tier-1 (refuse before
622
- * mutation) vs Tier-2 (degrade and continue).
623
- */
624
- export declare function journalInstallerTransition(journal: InstallerJournal, from: TransactionState | null, to: TransactionState, detail: string): void;
625
- /** Tier-2 wrapper: on append failure, degrade (mark + warn) instead of throwing. */
626
- export declare function journalInstallerTransitionDegrading(journal: InstallerJournal, from: TransactionState | null, to: TransactionState, detail: string): void;
627
- export declare function install(options: InstallOptions, pluginDir: string, mode?: InstallRunMode, transaction?: InstallerJournal): Promise<InstallResult>;
628
- export {};
629
- //# sourceMappingURL=installer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"installer.d.ts","sourceRoot":"","sources":["../src/installer.ts"],"names":[],"mappings":"AAOA,OAAO,EAAuB,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAMvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAoBL,KAAK,eAAe,EACpB,KAAK,kBAAkB,EAExB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAqB,KAAK,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAE3E,OAAO,KAAK,EAAsB,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAGnF,OAAO,EAA+B,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAoBtF,OAAO,EAOL,KAAK,2BAA2B,EAChC,KAAK,gBAAgB,EACtB,MAAM,iCAAiC,CAAC;AAEzC,iFAAiF;AACjF,eAAO,MAAM,8BAA8B,EAAG,yBAAkC,CAAC;A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