wicked-crew 0.18.21 → 0.18.23

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 (297) hide show
  1. package/dist/api/audit-view.d.ts.map +1 -1
  2. package/dist/api/audit-view.js +1 -0
  3. package/dist/api/audit-view.js.map +1 -1
  4. package/dist/api/audit.d.ts +28 -1
  5. package/dist/api/audit.d.ts.map +1 -1
  6. package/dist/api/audit.js +90 -9
  7. package/dist/api/audit.js.map +1 -1
  8. package/dist/api/auth.d.ts +7 -0
  9. package/dist/api/auth.d.ts.map +1 -1
  10. package/dist/api/auth.js +53 -10
  11. package/dist/api/auth.js.map +1 -1
  12. package/dist/api/capture.d.ts +11 -2
  13. package/dist/api/capture.d.ts.map +1 -1
  14. package/dist/api/capture.js +7 -2
  15. package/dist/api/capture.js.map +1 -1
  16. package/dist/api/chat-context.d.ts +6 -1
  17. package/dist/api/chat-context.d.ts.map +1 -1
  18. package/dist/api/chat-context.js +45 -11
  19. package/dist/api/chat-context.js.map +1 -1
  20. package/dist/api/chat-proposals.d.ts +24 -7
  21. package/dist/api/chat-proposals.d.ts.map +1 -1
  22. package/dist/api/chat-proposals.js +98 -18
  23. package/dist/api/chat-proposals.js.map +1 -1
  24. package/dist/api/chat-scope.d.ts +6 -2
  25. package/dist/api/chat-scope.d.ts.map +1 -1
  26. package/dist/api/chat-scope.js +13 -7
  27. package/dist/api/chat-scope.js.map +1 -1
  28. package/dist/api/cluster-status.d.ts +17 -0
  29. package/dist/api/cluster-status.d.ts.map +1 -1
  30. package/dist/api/cluster-status.js +70 -3
  31. package/dist/api/cluster-status.js.map +1 -1
  32. package/dist/api/compose-facts.d.ts +35 -0
  33. package/dist/api/compose-facts.d.ts.map +1 -0
  34. package/dist/api/compose-facts.js +46 -0
  35. package/dist/api/compose-facts.js.map +1 -0
  36. package/dist/api/cut-read.d.ts +62 -0
  37. package/dist/api/cut-read.d.ts.map +1 -0
  38. package/dist/api/cut-read.js +101 -0
  39. package/dist/api/cut-read.js.map +1 -0
  40. package/dist/api/desk-snoozes.d.ts +77 -0
  41. package/dist/api/desk-snoozes.d.ts.map +1 -0
  42. package/dist/api/desk-snoozes.js +220 -0
  43. package/dist/api/desk-snoozes.js.map +1 -0
  44. package/dist/api/diagnostics.d.ts +4 -0
  45. package/dist/api/diagnostics.d.ts.map +1 -1
  46. package/dist/api/diagnostics.js +15 -7
  47. package/dist/api/diagnostics.js.map +1 -1
  48. package/dist/api/disk-stores.d.ts +66 -0
  49. package/dist/api/disk-stores.d.ts.map +1 -0
  50. package/dist/api/disk-stores.js +206 -0
  51. package/dist/api/disk-stores.js.map +1 -0
  52. package/dist/api/domain-model.d.ts +56 -0
  53. package/dist/api/domain-model.d.ts.map +1 -0
  54. package/dist/api/domain-model.js +281 -0
  55. package/dist/api/domain-model.js.map +1 -0
  56. package/dist/api/domain-scope.d.ts +52 -0
  57. package/dist/api/domain-scope.d.ts.map +1 -0
  58. package/dist/api/domain-scope.js +156 -0
  59. package/dist/api/domain-scope.js.map +1 -0
  60. package/dist/api/eval-rule-store.d.ts +32 -0
  61. package/dist/api/eval-rule-store.d.ts.map +1 -0
  62. package/dist/api/eval-rule-store.js +77 -0
  63. package/dist/api/eval-rule-store.js.map +1 -0
  64. package/dist/api/gate-cache.d.ts +8 -0
  65. package/dist/api/gate-cache.d.ts.map +1 -1
  66. package/dist/api/gate-cache.js +8 -1
  67. package/dist/api/gate-cache.js.map +1 -1
  68. package/dist/api/mcp.d.ts +19 -0
  69. package/dist/api/mcp.d.ts.map +1 -1
  70. package/dist/api/mcp.js +166 -3
  71. package/dist/api/mcp.js.map +1 -1
  72. package/dist/api/needs.d.ts +3 -0
  73. package/dist/api/needs.d.ts.map +1 -1
  74. package/dist/api/needs.js +7 -3
  75. package/dist/api/needs.js.map +1 -1
  76. package/dist/api/post-hoc-deliver.d.ts +7 -0
  77. package/dist/api/post-hoc-deliver.d.ts.map +1 -1
  78. package/dist/api/post-hoc-deliver.js +16 -5
  79. package/dist/api/post-hoc-deliver.js.map +1 -1
  80. package/dist/api/product-publish.d.ts +242 -0
  81. package/dist/api/product-publish.d.ts.map +1 -0
  82. package/dist/api/product-publish.js +902 -0
  83. package/dist/api/product-publish.js.map +1 -0
  84. package/dist/api/product.d.ts +5 -6
  85. package/dist/api/product.d.ts.map +1 -1
  86. package/dist/api/product.js +4 -4
  87. package/dist/api/product.js.map +1 -1
  88. package/dist/api/proposal-cut.d.ts +95 -0
  89. package/dist/api/proposal-cut.d.ts.map +1 -0
  90. package/dist/api/proposal-cut.js +231 -0
  91. package/dist/api/proposal-cut.js.map +1 -0
  92. package/dist/api/requirements.d.ts +6 -4
  93. package/dist/api/requirements.d.ts.map +1 -1
  94. package/dist/api/requirements.js +6 -3
  95. package/dist/api/requirements.js.map +1 -1
  96. package/dist/api/routes.d.ts +21 -0
  97. package/dist/api/routes.d.ts.map +1 -1
  98. package/dist/api/routes.js +578 -94
  99. package/dist/api/routes.js.map +1 -1
  100. package/dist/api/run-liveness.d.ts.map +1 -1
  101. package/dist/api/run-liveness.js +3 -1
  102. package/dist/api/run-liveness.js.map +1 -1
  103. package/dist/api/run-timing-index.d.ts +10 -0
  104. package/dist/api/run-timing-index.d.ts.map +1 -1
  105. package/dist/api/run-timing-index.js +29 -9
  106. package/dist/api/run-timing-index.js.map +1 -1
  107. package/dist/api/seat-container-login.d.ts +11 -17
  108. package/dist/api/seat-container-login.d.ts.map +1 -1
  109. package/dist/api/seat-container-login.js +36 -69
  110. package/dist/api/seat-container-login.js.map +1 -1
  111. package/dist/api/server.d.ts.map +1 -1
  112. package/dist/api/server.js +1 -0
  113. package/dist/api/server.js.map +1 -1
  114. package/dist/api/system-snapshot.d.ts +5 -2
  115. package/dist/api/system-snapshot.d.ts.map +1 -1
  116. package/dist/api/system-snapshot.js +18 -6
  117. package/dist/api/system-snapshot.js.map +1 -1
  118. package/dist/api/testing.d.ts.map +1 -1
  119. package/dist/api/testing.js +11 -8
  120. package/dist/api/testing.js.map +1 -1
  121. package/dist/api/ui-text.d.ts.map +1 -1
  122. package/dist/api/ui-text.js +3 -1
  123. package/dist/api/ui-text.js.map +1 -1
  124. package/dist/apps/actions/write-path.d.ts +6 -2
  125. package/dist/apps/actions/write-path.d.ts.map +1 -1
  126. package/dist/apps/actions/write-path.js +7 -3
  127. package/dist/apps/actions/write-path.js.map +1 -1
  128. package/dist/apps/store.d.ts +11 -0
  129. package/dist/apps/store.d.ts.map +1 -1
  130. package/dist/apps/store.js +47 -0
  131. package/dist/apps/store.js.map +1 -1
  132. package/dist/apps-server/server/lib/bundle/server.mjs +19 -5
  133. package/dist/cli/index.d.ts.map +1 -1
  134. package/dist/cli/index.js +38 -52
  135. package/dist/cli/index.js.map +1 -1
  136. package/dist/cli/mcp.d.ts +14 -0
  137. package/dist/cli/mcp.d.ts.map +1 -1
  138. package/dist/cli/mcp.js +27 -10
  139. package/dist/cli/mcp.js.map +1 -1
  140. package/dist/cli/start-stand-ins.d.ts +13 -0
  141. package/dist/cli/start-stand-ins.d.ts.map +1 -0
  142. package/dist/cli/start-stand-ins.js +30 -0
  143. package/dist/cli/start-stand-ins.js.map +1 -0
  144. package/dist/core/adapter.d.ts +57 -6
  145. package/dist/core/adapter.d.ts.map +1 -1
  146. package/dist/core/adapter.js +208 -30
  147. package/dist/core/adapter.js.map +1 -1
  148. package/dist/core/ado-env.d.ts +17 -0
  149. package/dist/core/ado-env.d.ts.map +1 -0
  150. package/dist/core/ado-env.js +34 -0
  151. package/dist/core/ado-env.js.map +1 -0
  152. package/dist/core/deliver-text.d.ts +17 -0
  153. package/dist/core/deliver-text.d.ts.map +1 -1
  154. package/dist/core/deliver-text.js +76 -1
  155. package/dist/core/deliver-text.js.map +1 -1
  156. package/dist/core/deliver.d.ts +6 -0
  157. package/dist/core/deliver.d.ts.map +1 -1
  158. package/dist/core/deliver.js +12 -4
  159. package/dist/core/deliver.js.map +1 -1
  160. package/dist/core/exec.d.ts +1 -10
  161. package/dist/core/exec.d.ts.map +1 -1
  162. package/dist/core/exec.js +4 -17
  163. package/dist/core/exec.js.map +1 -1
  164. package/dist/core/governance-store.d.ts +3 -1
  165. package/dist/core/governance-store.d.ts.map +1 -1
  166. package/dist/core/governance-store.js +7 -2
  167. package/dist/core/governance-store.js.map +1 -1
  168. package/dist/core/launch-posture.d.ts +3 -0
  169. package/dist/core/launch-posture.d.ts.map +1 -1
  170. package/dist/core/launch-posture.js +4 -0
  171. package/dist/core/launch-posture.js.map +1 -1
  172. package/dist/core/repo-clone.d.ts.map +1 -1
  173. package/dist/core/repo-clone.js +2 -1
  174. package/dist/core/repo-clone.js.map +1 -1
  175. package/dist/core/run-log-facts.d.ts +56 -0
  176. package/dist/core/run-log-facts.d.ts.map +1 -0
  177. package/dist/core/run-log-facts.js +230 -0
  178. package/dist/core/run-log-facts.js.map +1 -0
  179. package/dist/core/shutdown.d.ts +27 -0
  180. package/dist/core/shutdown.d.ts.map +1 -1
  181. package/dist/core/shutdown.js +72 -0
  182. package/dist/core/shutdown.js.map +1 -1
  183. package/dist/core/stand-in.d.ts +62 -0
  184. package/dist/core/stand-in.d.ts.map +1 -0
  185. package/dist/core/stand-in.js +153 -0
  186. package/dist/core/stand-in.js.map +1 -0
  187. package/dist/core/types.d.ts +22 -0
  188. package/dist/core/types.d.ts.map +1 -1
  189. package/dist/core/types.js.map +1 -1
  190. package/dist/editors/pack-extras.d.ts +162 -0
  191. package/dist/editors/pack-extras.d.ts.map +1 -0
  192. package/dist/editors/pack-extras.js +596 -0
  193. package/dist/editors/pack-extras.js.map +1 -0
  194. package/dist/editors/pack-install.d.ts +15 -7
  195. package/dist/editors/pack-install.d.ts.map +1 -1
  196. package/dist/editors/pack-install.js +140 -19
  197. package/dist/editors/pack-install.js.map +1 -1
  198. package/dist/editors/registry.d.ts +42 -3
  199. package/dist/editors/registry.d.ts.map +1 -1
  200. package/dist/editors/registry.js +114 -11
  201. package/dist/editors/registry.js.map +1 -1
  202. package/dist/editors/routes.d.ts +10 -5
  203. package/dist/editors/routes.d.ts.map +1 -1
  204. package/dist/editors/routes.js +45 -11
  205. package/dist/editors/routes.js.map +1 -1
  206. package/dist/interactive/bridge-pool.d.ts +5 -2
  207. package/dist/interactive/bridge-pool.d.ts.map +1 -1
  208. package/dist/interactive/bridge-pool.js +4 -1
  209. package/dist/interactive/bridge-pool.js.map +1 -1
  210. package/dist/interactive/landing-guard.d.ts.map +1 -1
  211. package/dist/interactive/landing-guard.js +79 -5
  212. package/dist/interactive/landing-guard.js.map +1 -1
  213. package/dist/knowledge/adapters/toolbox/memory.d.ts.map +1 -1
  214. package/dist/knowledge/adapters/toolbox/memory.js +3 -2
  215. package/dist/knowledge/adapters/toolbox/memory.js.map +1 -1
  216. package/dist/knowledge/trackers/set.d.ts +28 -0
  217. package/dist/knowledge/trackers/set.d.ts.map +1 -1
  218. package/dist/knowledge/trackers/set.js +26 -0
  219. package/dist/knowledge/trackers/set.js.map +1 -1
  220. package/dist/mcp/policies.d.ts +44 -0
  221. package/dist/mcp/policies.d.ts.map +1 -1
  222. package/dist/mcp/policies.js +153 -1
  223. package/dist/mcp/policies.js.map +1 -1
  224. package/dist/mcp/registry-store.d.ts +10 -0
  225. package/dist/mcp/registry-store.d.ts.map +1 -1
  226. package/dist/mcp/registry-store.js.map +1 -1
  227. package/dist/mcp/registry.d.ts +43 -3
  228. package/dist/mcp/registry.d.ts.map +1 -1
  229. package/dist/mcp/registry.js +224 -16
  230. package/dist/mcp/registry.js.map +1 -1
  231. package/dist/mcp/trigger-names.d.ts +32 -0
  232. package/dist/mcp/trigger-names.d.ts.map +1 -0
  233. package/dist/mcp/trigger-names.js +529 -0
  234. package/dist/mcp/trigger-names.js.map +1 -0
  235. package/dist/persona/routes.d.ts +1 -1
  236. package/dist/persona/store.d.ts +1 -1
  237. package/dist/schedules/routes.d.ts.map +1 -1
  238. package/dist/schedules/routes.js +6 -0
  239. package/dist/schedules/routes.js.map +1 -1
  240. package/dist/skills/store.d.ts +11 -1
  241. package/dist/skills/store.d.ts.map +1 -1
  242. package/dist/skills/store.js +37 -3
  243. package/dist/skills/store.js.map +1 -1
  244. package/dist/sources/routes.d.ts +2 -2
  245. package/dist/sources/routes.d.ts.map +1 -1
  246. package/dist/studio/apps-standalone/fixture.js +3 -3
  247. package/dist/studio/assets/{KnowledgeGraph-yP4WsnST.js → KnowledgeGraph-BrHcKpFT.js} +1 -1
  248. package/dist/studio/assets/index-BCVvMebl.css +32 -0
  249. package/dist/studio/assets/{index-DW53FKuT.js → index-BqB2Ydq-.js} +337 -311
  250. package/dist/studio/editors/wicked-apps/editor.json +1 -1
  251. package/dist/studio/editors/wicked-apps/index.html +1 -1
  252. package/dist/studio/editors/wicked-deck/editor.json +1 -1
  253. package/dist/studio/editors/wicked-deck/index.html +1 -1
  254. package/dist/studio/editors/wicked-doc/editor.json +1 -1
  255. package/dist/studio/editors/wicked-doc/index.html +1 -1
  256. package/dist/studio/editors/wicked-insights/editor.json +1 -1
  257. package/dist/studio/editors/wicked-insights/index.html +1 -1
  258. package/dist/studio/editors/wicked-page/editor.json +1 -1
  259. package/dist/studio/editors/wicked-page/index.html +1 -1
  260. package/dist/studio/editors/wicked-video/editor.json +1 -1
  261. package/dist/studio/editors/wicked-video/index.html +1 -1
  262. package/dist/studio/index.html +2 -2
  263. package/dist/studio/testid-inventory.json +953 -107
  264. package/dist/team/routes.d.ts +4 -1
  265. package/dist/team/routes.d.ts.map +1 -1
  266. package/dist/team/routes.js +1 -1
  267. package/dist/team/routes.js.map +1 -1
  268. package/dist/voice/tts.d.ts +6 -0
  269. package/dist/voice/tts.d.ts.map +1 -1
  270. package/dist/voice/tts.js +16 -1
  271. package/dist/voice/tts.js.map +1 -1
  272. package/endpoint-manifest.json +100 -6
  273. package/package.json +4 -4
  274. package/voice-locks/darwin-arm64-cp310.txt +12 -0
  275. package/voice-locks/darwin-arm64-cp311.txt +8 -0
  276. package/voice-locks/darwin-arm64-cp312.txt +8 -0
  277. package/voice-locks/darwin-arm64-cp313.txt +8 -0
  278. package/voice-locks/darwin-arm64-cp314.txt +8 -0
  279. package/voice-locks/darwin-arm64-cp39.txt +12 -0
  280. package/voice-locks/darwin-x64-cp310.txt +12 -0
  281. package/voice-locks/darwin-x64-cp311.txt +12 -0
  282. package/voice-locks/darwin-x64-cp312.txt +12 -0
  283. package/voice-locks/darwin-x64-cp313.txt +12 -0
  284. package/voice-locks/darwin-x64-cp39.txt +12 -0
  285. package/voice-locks/linux-arm64-cp310.txt +12 -0
  286. package/voice-locks/linux-arm64-cp311.txt +8 -0
  287. package/voice-locks/linux-arm64-cp312.txt +8 -0
  288. package/voice-locks/linux-arm64-cp313.txt +8 -0
  289. package/voice-locks/linux-arm64-cp314.txt +8 -0
  290. package/voice-locks/linux-arm64-cp39.txt +12 -0
  291. package/voice-locks/linux-x64-cp310.txt +12 -0
  292. package/voice-locks/linux-x64-cp311.txt +8 -0
  293. package/voice-locks/linux-x64-cp312.txt +8 -0
  294. package/voice-locks/linux-x64-cp313.txt +8 -0
  295. package/voice-locks/linux-x64-cp314.txt +8 -0
  296. package/voice-locks/linux-x64-cp39.txt +12 -0
  297. package/dist/studio/assets/index-DNaLjJ7M.css +0 -32
@@ -0,0 +1,153 @@
1
+ /** The `standInReview` setting's values (`SystemSettings.standInReview`); absent reads as `'ask'`. */
2
+ export const STAND_IN_REVIEW_VALUES = ['ask', 'always'];
3
+ export function isStandInReview(v) {
4
+ return v === 'ask' || v === 'always';
5
+ }
6
+ /** The gate answer that grants stand-ins at a `stand_in_needed` gate (`GateDecision.action`). */
7
+ export const USE_STAND_INS_ACTION = 'use_stand_ins';
8
+ /** The gate class (`gate_kind`) a run holds on for want of a stand-in consent. */
9
+ export const STAND_IN_NEEDED_GATE = 'stand_in_needed';
10
+ export const STAND_IN_SCOPES = ['job', 'always'];
11
+ /** `by` on a launch under the `always` setting when the setting carries no author (wicked-core#1930 F6): it was saved
12
+ * before crew recorded one, turned on by hand, or its record is out of shape. */
13
+ export const STAND_IN_SETTING_UNRECORDED = 'the standInReview setting (author not recorded)';
14
+ /** The consent the `always` setting stores (`SystemSettings.standInConsent`): the person who saved it, and when. */
15
+ export function settingConsent(who, now = Date.now()) {
16
+ return { scope: 'always', by: who, at: now, via: 'setting' };
17
+ }
18
+ /** Whether a stored `standInConsent` has the shape `settingConsent` writes (a hand edit may not). */
19
+ export function isSettingConsent(v) {
20
+ if (typeof v !== 'object' || v === null)
21
+ return false;
22
+ const c = v;
23
+ // The engine refuses a blank author (Rust's Unicode White_Space), an author that is not valid Unicode (a lone
24
+ // surrogate), and reads `at` as an i64 (ms): a record it would refuse is no record.
25
+ const by = c['by'];
26
+ return c['scope'] === 'always' && c['via'] === 'setting' && typeof by === 'string'
27
+ && !/^\p{White_Space}*$/u.test(by) && !/\p{Cs}/u.test(by)
28
+ && Number.isSafeInteger(c['at']) && c['at'] >= 0;
29
+ }
30
+ /**
31
+ * The consent a launch carries, or `null` (DES §4 `consentFor`). `humanFlag` is the launch body's
32
+ * `standIns: true`, already checked to come from a person (a worker's bearer gets 403 before this).
33
+ * `who` is the server's name for the launcher (`<id> (<kind>)`). Under the `always` setting the consent is the
34
+ * person's who saved it (`saved`, wicked-core#1930 F6), never the launcher's: a workload token only inherits it.
35
+ */
36
+ export function consentFor(humanFlag, setting, who, now = Date.now(), saved) {
37
+ if (humanFlag)
38
+ return { scope: 'job', by: who, at: now, via: 'launch' };
39
+ if (setting === 'always')
40
+ return isSettingConsent(saved) ? { ...saved } : settingConsent(STAND_IN_SETTING_UNRECORDED, now);
41
+ return null;
42
+ }
43
+ /** The preflight's answer, read defensively: `null` when the engine's JSON is not one (the launch then goes
44
+ * on unaware, as before). */
45
+ export function readPreflight(raw) {
46
+ let v;
47
+ try {
48
+ v = JSON.parse(raw);
49
+ }
50
+ catch {
51
+ return null;
52
+ }
53
+ if (typeof v !== 'object' || v === null || Array.isArray(v))
54
+ return null;
55
+ const o = v;
56
+ if (typeof o['short'] !== 'boolean' || !Array.isArray(o['roles']))
57
+ return null;
58
+ for (const r of o['roles']) {
59
+ if (typeof r !== 'object' || r === null)
60
+ return null;
61
+ const role = r;
62
+ if (typeof role['role'] !== 'string' || typeof role['canStandIn'] !== 'boolean' || typeof role['shortBy'] !== 'number')
63
+ return null;
64
+ }
65
+ return v;
66
+ }
67
+ /** The roles a stand-in could fill (split into the ones every run needs and the ones a run needs only if it calls
68
+ * for them, DES §2.2), and the ones every run needs that no helper on the job can fill (DES §2.5). */
69
+ function shortRoles(p) {
70
+ const short = p.roles.filter((r) => r.shortBy > 0);
71
+ const fill = short.filter((r) => r.canStandIn);
72
+ return {
73
+ needed: fill.filter((r) => !r.conditional).map((r) => r.role),
74
+ conditional: fill.filter((r) => r.conditional).map((r) => r.role),
75
+ cannot: short.filter((r) => !r.canStandIn && !r.conditional).map((r) => r.role),
76
+ };
77
+ }
78
+ /** What the job needs, as this launch has it: the roles every run needs, then the ones only a run that calls for
79
+ * them needs. The helpers are "this job's": the person may have picked them, so nothing here says "signed in". */
80
+ function needsSentence(needed, conditional) {
81
+ if (needed.length === 0) {
82
+ return `If the job calls for them, it needs ${words(conditional)} that did not build the work, and this job's helpers can't be those.`;
83
+ }
84
+ const tail = conditional.length > 0 ? `, and, if the job calls for them, ${words(conditional)}` : '';
85
+ return `This job's helpers can't check it independently: it needs ${words(needed)} that did not build the work${tail}.`;
86
+ }
87
+ const ROLE_WORDS = {
88
+ evaluator: 'a reviewer',
89
+ party_excluded: 'a reviewer',
90
+ judge: 'a judge',
91
+ qe_reviewer: 'a QE reviewer',
92
+ rule_judge: 'a rules checker',
93
+ rule_council: 'a rules council',
94
+ council: 'a council',
95
+ monitor: 'a monitor',
96
+ };
97
+ function words(roles) {
98
+ const named = [...new Set(roles.map((r) => ROLE_WORDS[r] ?? 'another check'))];
99
+ if (named.length <= 1)
100
+ return named[0] ?? 'a check';
101
+ return `${named.slice(0, -1).join(', ')} and ${named[named.length - 1]}`;
102
+ }
103
+ /**
104
+ * What the launch answers for this preflight with no consent: `null` = launch, else the `409` body.
105
+ *
106
+ * (crew#1932) The launch asks only for the roles a stand-in can fill, which are the ones every run of its shape seats
107
+ * (the reviewer, the judge, the QE reviewer and the party-excluded review). The preflight also lists the roles a run
108
+ * needs only if an event calls for them (a council on a dispute, the monitors, the rules checks; `conditional`), sized
109
+ * by defaults rather than by the plan the run will score (three monitors where the plan seats one). The engine fills
110
+ * none of those with a stand-in (its one fill site is the review's distribution, plus the judge's and QE reviewer's
111
+ * holds), so a person's answer changes nothing for them: a short one takes the run's own path (the council falls back,
112
+ * the team pauses, a rules check holds as `rules_unchecked`), as before crew#1888, whatever the launch asked. Such a
113
+ * launch goes on stand-in-aware with no consent, as a launch that is not short does.
114
+ * `oneStep`: a launch with no plan and no workflow, which the engine plans as one unit with no review step. The launch
115
+ * asks nothing; a check its work calls for (the default floor's judge) still holds at the run's `stand_in_needed` gate,
116
+ * since the launch is stand-in-aware.
117
+ *
118
+ * A short role every run needs that no helper can stand in for → `no_usable_helper` (§2.5: a stand-in never makes up
119
+ * for a CLI that cannot run); one a stand-in can fill → `stand_in_choice` (§2.1), its words naming the conditional
120
+ * roles too, though no stand-in fills those today (a wording gap noted on crew#1932).
121
+ */
122
+ export function preflightRefusal(p, oneStep = false) {
123
+ if (!p.short || oneStep)
124
+ return null;
125
+ const { needed, conditional, cannot } = shortRoles(p);
126
+ if (needed.length === 0 && cannot.length === 0)
127
+ return null;
128
+ if (cannot.length > 0) {
129
+ return {
130
+ code: 'no_usable_helper',
131
+ error: `No helper on this job can be ${words(cannot)} for it, even as a stand-in, so it can't start. Add another helper to the job, or sign one in, and start it again.`,
132
+ preflight: p,
133
+ };
134
+ }
135
+ // (coord round 2 F4) The words a CLI or MCP reader sees: the needs this launch has, and the ways through in words
136
+ // (the request field is `retryWith`, never the sentence's end).
137
+ return {
138
+ code: 'stand_in_choice',
139
+ error: `${needsSentence(needed, conditional)} `
140
+ + 'wicked can fill those roles with stand-ins (a fresh session that sees the work but none of the builder\'s reasoning), '
141
+ + 'labelled on the job, every gate, the delivery and the pull request. They are not independent reviews. '
142
+ + 'Use stand-ins for this job or for every job, or add another helper to the job.',
143
+ preflight: p,
144
+ choices: [
145
+ { id: 'job', label: 'Use stand-ins for this job' },
146
+ { id: 'always', label: 'Use stand-ins for every job' },
147
+ { id: 'sign_in', label: 'Add or sign in another helper' },
148
+ { id: 'cancel', label: 'Cancel' },
149
+ ],
150
+ retryWith: { standIns: true },
151
+ };
152
+ }
153
+ //# sourceMappingURL=stand-in.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stand-in.js","sourceRoot":"","sources":["../../src/core/stand-in.ts"],"names":[],"mappings":"AAoBA,sGAAsG;AACtG,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,KAAK,EAAE,QAAQ,CAAU,CAAC;AAGjE,MAAM,UAAU,eAAe,CAAC,CAAU;IACxC,OAAO,CAAC,KAAK,KAAK,IAAI,CAAC,KAAK,QAAQ,CAAC;AACvC,CAAC;AAED,iGAAiG;AACjG,MAAM,CAAC,MAAM,oBAAoB,GAAG,eAAwB,CAAC;AAC7D,kFAAkF;AAClF,MAAM,CAAC,MAAM,oBAAoB,GAAG,iBAA0B,CAAC;AAC/D,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,KAAK,EAAE,QAAQ,CAAU,CAAC;AAG1D;kFACkF;AAClF,MAAM,CAAC,MAAM,2BAA2B,GAAG,iDAAiD,CAAC;AAE7F,oHAAoH;AACpH,MAAM,UAAU,cAAc,CAAC,GAAW,EAAE,MAAc,IAAI,CAAC,GAAG,EAAE;IAClE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC;AAC/D,CAAC;AAED,qGAAqG;AACrG,MAAM,UAAU,gBAAgB,CAAC,CAAU;IACzC,IAAI,OAAO,CAAC,KAAK,QAAQ,IAAI,CAAC,KAAK,IAAI;QAAE,OAAO,KAAK,CAAC;IACtD,MAAM,CAAC,GAAG,CAA4B,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,CAAC;AACJ,CAAC"}
@@ -152,6 +152,15 @@ export interface LaunchRunInput {
152
152
  * fails the launch with no session persisted.
153
153
  */
154
154
  extraReadRoots?: string[];
155
+ /**
156
+ * wicked-core#1463: the entries of `extraReadRoots` the run can do without. On the container
157
+ * floor, one that does not fit a unit's copy-in caps (512 MiB) is left out of that unit's copy
158
+ * (its directory holds only a note saying so) instead of refusing the unit. It grants no read:
159
+ * the engine refuses the launch if an entry is not in `extraReadRoots`. A chat over every
160
+ * registered repository ("All repos") sets its repositories here; a repo or project scope keeps
161
+ * them required.
162
+ */
163
+ optionalReadRoots?: string[];
155
164
  /**
156
165
  * The PROJECT's co-located code graph this run's governed workers should query instead of the
157
166
  * run repo's own — resolved by `projects/graph.ts::resolveProjectGraphBinding`, which is the ONE
@@ -223,6 +232,14 @@ export interface LaunchRunInput {
223
232
  * crew never sets it on a caller's behalf (`core/assurance.ts`).
224
233
  */
225
234
  reducedAssurance?: boolean;
235
+ /**
236
+ * (DES-STANDIN-001 §3.8, crew K2a) This launcher asked the stand-in question (`core/stand-in.ts`): the engine may
237
+ * seat a stand-in for an independent role, with `standIn` consent, and holds at a `stand_in_needed` gate without
238
+ * it. Never with `reducedAssurance` (the engine refuses the pair). Needs `CoreAdapter.supportsStandIns`.
239
+ */
240
+ standInAware?: boolean;
241
+ /** (DES-STANDIN-001 §3.8) A person's consent to stand-ins, built by the server (`consentFor`). Only with `standInAware`. */
242
+ standIn?: import('wicked-crew-api-types').StandInConsent;
226
243
  /**
227
244
  * (program DES-POWER-MODE, wicked-core-ts with `Core.supportsPowerMode`) Run in POWER MODE: the PA's
228
245
  * scope step is also the intake QE plan, the `build` step runs as one multi-turn orchestrator session,
@@ -246,6 +263,11 @@ export interface LaunchRunInput {
246
263
  */
247
264
  skipQeAcceptanceReason?: string;
248
265
  forceQeAcceptance?: boolean;
266
+ /**
267
+ * (J6 K1, wicked-core#1922) A `domain-extraction` run's scope as core-ts `scopeJson`:
268
+ * `{"intent", "phrases"?, "scope_hash"?, "description"?}`. Refused on an addon without `supportsDomainScope`.
269
+ */
270
+ domainScopeJson?: string;
249
271
  }
250
272
  /** Default `workerStallMinutes` (crew#287): silent minutes before the stall watchdog fires. */
251
273
  export declare const DEFAULT_WORKER_STALL_MINUTES = 15;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/core/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,mBAAmB,uBAAuB,CAAC;AAE3C,+EAA+E;AAC/E,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,SAAU,SAAQ,OAAO;IACxC,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oHAAoH;IACpH,KAAK,CAAC,EAAE;QAAE,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACxC;AAED,MAAM,WAAW,UAAU;IACzB,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACzC,OAAO,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;IACjD,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,GAAG,UAAU,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CACxE;AAED,qBAAa,QAAS,SAAQ,KAAK;IACrB,QAAQ,CAAC,IAAI,EAAE,eAAe,GAAG,aAA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,gBAAgB,EAAE,IAAI;IACtB,+FAA+F;IAC/F,8FAA8F;IAC9F,6FAA6F;IAC7F,6FAA6F;IAC7F,wFAAwF;IACxF,YAAY,EAAE,sBAAsB;IACpC,eAAe,EAAE,SAAS;IAC1B,2FAA2F;IAC3F,8FAA8F;IAC9F,6EAA6E;IAC7E,oBAAoB,EAAE,EAAE;IACxB,2EAA2E;IAC3E,oBAAoB,EAAE,KAAK;CAC5B,CAAC"}
@@ -0,0 +1,162 @@
1
+ /**
2
+ * crew#1703 (DES-artifact-editor-plugins §3.2 "Add these"): the skills and blocks a pack ships with its editors.
3
+ *
4
+ * One consent: the person approves the pack's skill directories and block ids exactly as the refusal listed them,
5
+ * together with its editors' permissions and its run plugins' topics, and the approval carries the refusal's
6
+ * `digest`, which covers the manifest, every skill file and every block's steps, so a pack that changed after the
7
+ * person looked is refused. Everything is read and checked before the conformance run and before any write:
8
+ * - each skill goes to the daemon skills root (the one every worker is handed, as a published snapshot) under the
9
+ * key `wicked-garden-<skill dir>`, its frontmatter `name:` line rewritten to that key and nothing else (coord ruling
10
+ * (a), 2026-11-24): a worker invokes it as `wicked-garden:<skill dir>`. The store's own add/replace guards run on
11
+ * it first (`SkillsStore.previewWrite`);
12
+ * - each block's preset (`{id, label, phases}`) becomes a preset named by the block id with one step per phase, and
13
+ * every phase must be a catalog phase (ruling (b)): otherwise the block is refused naming the phase and the catalog
14
+ * phases it could use;
15
+ * - a skill key or preset name that is not this pack's own is a 409. A pack is known by its name, as the editor
16
+ * registry knows it (`EditorRegistry.installPack`): installing a pack of the same name again replaces its own
17
+ * skills and presets, and the consent lists them (`replaces`) so the person sees what is replaced.
18
+ * Reads stay inside the pack: no link in any path component, leaves opened no-follow, bounded files, entries and bytes.
19
+ */
20
+ import type { InstalledPackSkill, Preset, PresetStep, SkillPublishResult } from '../core/types.js';
21
+ import type { SkillsRuntime } from '../skills/runtime.js';
22
+ import { type SkillsStore } from '../skills/store.js';
23
+ /** What the person approved: the pack's skill directories and block ids, and the digest the refusal showed. */
24
+ export interface PackApproval {
25
+ skills: string[];
26
+ blocks: string[];
27
+ digest?: string | undefined;
28
+ }
29
+ /** The daemon skills root, and how to publish it so workers get what was added. */
30
+ export interface PackSkillsPort {
31
+ store: Pick<SkillsStore, 'manifest' | 'revision' | 'add' | 'replace' | 'enable' | 'disable' | 'previewWrite' | 'isPublishing' | 'listFiles' | 'resolveSkillFile' | 'currentSnapshotPaced' | 'snapshotSkillsOf'>;
32
+ publish(): Promise<Pick<SkillPublishResult, 'verdict' | 'findings' | 'snapshot'>>;
33
+ /** Settles once the daemon's skills boot (seed, first publish) has landed; every skills write waits for it. */
34
+ ready?(): Promise<void>;
35
+ }
36
+ /** The daemon's skills runtime as a port: publish exactly as `POST /skills/publish` does (the export runs inside the
37
+ * store's in-flight window), and wait for the boot ladder first, as every `/skills` request does. */
38
+ export declare function packSkillsPort(runtime: SkillsRuntime): PackSkillsPort;
39
+ /** The engine's preset store and phase catalog (the adapter). */
40
+ export interface PackPresetsPort {
41
+ catalogIds(): Promise<ReadonlySet<string> | null>;
42
+ listPresets(): Promise<Preset[]>;
43
+ putPreset(name: string, steps: PresetStep[], projectId?: string, createdBy?: string): Promise<Preset>;
44
+ deletePreset(name: string): Promise<boolean>;
45
+ /** The registered workflow definitions (built-in and system): a block may not take one's name. */
46
+ listWorkflows?(): ReadonlyArray<{
47
+ id: string;
48
+ }>;
49
+ }
50
+ /** A refusal: the HTTP status, the code, and the plain reason. */
51
+ export declare class PackExtrasRefusal extends Error {
52
+ readonly status: 409 | 422;
53
+ readonly code: string;
54
+ constructor(status: 409 | 422, code: string, message: string);
55
+ }
56
+ export interface SkillPlan extends InstalledPackSkill {
57
+ files: Record<string, string>;
58
+ /** This pack installed it before: an update replaces it in place. */
59
+ own: boolean;
60
+ }
61
+ export interface BlockPlan {
62
+ id: string;
63
+ steps: PresetStep[];
64
+ /** The preset this pack wrote before, now replaced (restored if the install fails after the write). */
65
+ previous: Preset | null;
66
+ }
67
+ export interface ExtrasPlan {
68
+ skills: SkillPlan[];
69
+ blocks: BlockPlan[];
70
+ /** The skill keys and preset names this install replaces (this pack's own, from an earlier install). */
71
+ replaces: string[];
72
+ /** sha256 over the manifest, every skill file and every block's steps: what the person approves. */
73
+ digest: string;
74
+ }
75
+ /** Bounds on what a pack may bring. */
76
+ export declare const PACK_EXTRAS_MAX = 200;
77
+ export declare const PACK_SKILL_MAX_FILES = 200;
78
+ export declare const PACK_SKILL_MAX_ENTRIES = 1000;
79
+ export declare const PACK_SKILL_MAX_DEPTH = 16;
80
+ export declare const PACK_SKILL_MAX_BYTES: number;
81
+ export declare const PACK_PRESET_MAX_BYTES: number;
82
+ /** The key a pack skill directory is installed under. */
83
+ export declare function installedKey(dir: string): string;
84
+ /**
85
+ * The skills the root holds stamped as the pack's (`origin: pack:<name>`), named by the install record or not: only this
86
+ * pack's install writes that stamp (`store.add` checks it), so a skill written before a failed record write or a restart
87
+ * is still the pack's (crew#1915). `[]` when there is no skills root or it is not seeded; `null` when it does not read.
88
+ */
89
+ export declare function packStampedSkills(port: PackSkillsPort | null, packName: string): Promise<InstalledPackSkill[] | null>;
90
+ /** The pack's skills with their installed keys, in the pack's order. */
91
+ export declare function installedSkillsOf(skills: readonly string[]): InstalledPackSkill[];
92
+ /** Does `approve` name exactly these skills and blocks? Returns what differs, empty when it does. */
93
+ export declare function approvalDiff(approve: PackApproval, skills: readonly string[], blocks: readonly string[]): string[];
94
+ /**
95
+ * Rewrite the frontmatter's top-level `name` key to `key`; nothing else changes. The key may carry spaces before its
96
+ * colon (`name : x` is the same YAML key). A frontmatter without one gets it added as its first line.
97
+ */
98
+ export declare function withInstalledName(text: string, key: string): string;
99
+ /** The preset owner stamp a pack's block presets carry (`created_by`). */
100
+ /** The origin a pack's skills carry in the skills root (`SkillEntry.origin`): they are the pack's, not an operator
101
+ * change, so the daemon's garden auto-refresh keeps running. */
102
+ export declare function packSkillOrigin(packName: string): string;
103
+ export declare function packPresetOwner(packName: string): string;
104
+ /**
105
+ * Read and check everything the pack's skills and blocks need, before anything runs or is written.
106
+ * `owned` = the skill keys and preset names an earlier install of this same pack recorded.
107
+ */
108
+ export declare function planExtras(input: {
109
+ root: string;
110
+ manifestText: string;
111
+ manifest: Record<string, unknown>;
112
+ packName: string;
113
+ skills: readonly string[];
114
+ blocks: ReadonlyArray<Record<string, unknown>>;
115
+ skillsPort: PackSkillsPort | null;
116
+ presetsPort: PackPresetsPort | null;
117
+ owned: {
118
+ skills: ReadonlySet<string>;
119
+ presets: ReadonlySet<string>;
120
+ };
121
+ }): Promise<ExtrasPlan>;
122
+ /** Write the block presets (before the registry commits). Returns how to put back what was there: `undo` answers
123
+ * what it could not put back (empty when everything was). */
124
+ export declare function writePresets(plan: ExtrasPlan, presets: PackPresetsPort | null, packName: string): Promise<{
125
+ undo(): Promise<string[]>;
126
+ }>;
127
+ /**
128
+ * Write the pack's skills into the skills root (after the registry committed), then publish so workers get them.
129
+ * The writes run in one synchronous pass once no publish is in flight, so no publish can capture half of them. The
130
+ * person approved the pack's skills, so each one is switched on. If a write fails (the store changed since the plan)
131
+ * or the publish is blocked, the pass is put back: each replaced skill gets its earlier files and switch, and each
132
+ * added one is switched off. Answers `null`, or the reason workers do not have the skills yet (the install stands).
133
+ */
134
+ export declare function writeSkills(plan: ExtrasPlan, port: PackSkillsPort | null, opts?: {
135
+ waitMs?: number;
136
+ origin?: string;
137
+ }): Promise<string | null>;
138
+ /** What a withdrawal switched off and deleted, and what it could not do. */
139
+ export interface PackWithdrawal {
140
+ /** Pack skills switched off (they stay in the skills root, out of every published generation). */
141
+ skills: string[];
142
+ /** Presets deleted (only those still carrying the pack's stamp). */
143
+ presets: string[];
144
+ error?: string;
145
+ }
146
+ /**
147
+ * Withdraw what a pack added (crew#1703, coord round 2 F1): when its last editor is removed, or an update no longer
148
+ * ships a skill or block. The skills root has no removal, so each skill is switched off and the root published, so
149
+ * workers stop getting it; a preset is deleted while it still carries the pack's stamp (one someone else saved
150
+ * since is theirs). The pack keeps them as its own, so installing it again brings them back.
151
+ */
152
+ export declare function withdrawPackExtras(input: {
153
+ packName: string;
154
+ skills: readonly string[];
155
+ presets: readonly string[];
156
+ skillsPort: PackSkillsPort | null;
157
+ presetsPort: PackPresetsPort | null;
158
+ waitMs?: number;
159
+ /** The pack's last editor is going: every skill stamped as the pack's leaves too, named by the record or not. */
160
+ wholePack?: boolean;
161
+ }): Promise<PackWithdrawal>;
162
+ //# sourceMappingURL=pack-extras.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pack-extras.d.ts","sourceRoot":"","sources":["../../src/editors/pack-extras.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAMH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,EAAE,UAAU,EAAwB,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAKzH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAuB,KAAK,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAE3E,+GAA+G;AAC/G,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B;AAED,mFAAmF;AACnF,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,UAAU,GAAG,UAAU,GAAG,KAAK,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,cAAc,GAAG,cAAc,GAAG,WAAW,GAAG,kBAAkB,GAAG,sBAAsB,GAAG,kBAAkB,CAAC,CAAC;IAChN,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,SAAS,GAAG,UAAU,GAAG,UAAU,CAAC,CAAC,CAAC;IAClF,+GAA+G;IAC/G,KAAK,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACzB;AA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