@lannguyensi/harness 0.64.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (710) hide show
  1. package/CHANGELOG.md +64 -0
  2. package/README.md +46 -42
  3. package/dist/cli/add/index.js +17 -21
  4. package/dist/cli/add/index.js.map +1 -1
  5. package/dist/cli/adopt/derive.d.ts +2 -2
  6. package/dist/cli/adopt/derive.js +2 -19
  7. package/dist/cli/adopt/derive.js.map +1 -1
  8. package/dist/cli/adopt/index.d.ts +1 -1
  9. package/dist/cli/adopt/index.js +1 -12
  10. package/dist/cli/adopt/index.js.map +1 -1
  11. package/dist/cli/apply/apply.d.ts +20 -35
  12. package/dist/cli/apply/apply.js +61 -136
  13. package/dist/cli/apply/apply.js.map +1 -1
  14. package/dist/cli/apply/generate-codex-config.js +10 -58
  15. package/dist/cli/apply/generate-codex-config.js.map +1 -1
  16. package/dist/cli/apply/generate-memory-index.js +1 -2
  17. package/dist/cli/apply/generate-memory-index.js.map +1 -1
  18. package/dist/cli/apply/generate-opencode-config.d.ts +2 -10
  19. package/dist/cli/apply/generate-opencode-config.js +74 -113
  20. package/dist/cli/apply/generate-opencode-config.js.map +1 -1
  21. package/dist/cli/apply/generate-settings.d.ts +11 -64
  22. package/dist/cli/apply/generate-settings.js +27 -132
  23. package/dist/cli/apply/generate-settings.js.map +1 -1
  24. package/dist/cli/apply/index.d.ts +1 -1
  25. package/dist/cli/apply/index.js +1 -1
  26. package/dist/cli/apply/index.js.map +1 -1
  27. package/dist/cli/apply/install-codex-config.d.ts +153 -1
  28. package/dist/cli/apply/install-codex-config.js +445 -70
  29. package/dist/cli/apply/install-codex-config.js.map +1 -1
  30. package/dist/cli/apply/next-steps.d.ts +7 -0
  31. package/dist/cli/apply/next-steps.js +13 -1
  32. package/dist/cli/apply/next-steps.js.map +1 -1
  33. package/dist/cli/bounded-stdin.d.ts +0 -23
  34. package/dist/cli/bounded-stdin.js +2 -49
  35. package/dist/cli/bounded-stdin.js.map +1 -1
  36. package/dist/cli/describe.d.ts +1 -1
  37. package/dist/cli/describe.js +0 -3
  38. package/dist/cli/describe.js.map +1 -1
  39. package/dist/cli/diff/engine.d.ts +0 -11
  40. package/dist/cli/diff/engine.js +1 -17
  41. package/dist/cli/diff/engine.js.map +1 -1
  42. package/dist/cli/diff/index.js +14 -25
  43. package/dist/cli/diff/index.js.map +1 -1
  44. package/dist/cli/doctor/claude-mcp.d.ts +4 -19
  45. package/dist/cli/doctor/claude-mcp.js +11 -22
  46. package/dist/cli/doctor/claude-mcp.js.map +1 -1
  47. package/dist/cli/doctor/codex.d.ts +12 -14
  48. package/dist/cli/doctor/codex.js +31 -144
  49. package/dist/cli/doctor/codex.js.map +1 -1
  50. package/dist/cli/doctor/format.js +23 -345
  51. package/dist/cli/doctor/format.js.map +1 -1
  52. package/dist/cli/doctor/hook-liveness.d.ts +56 -0
  53. package/dist/cli/doctor/hook-liveness.js +455 -0
  54. package/dist/cli/doctor/hook-liveness.js.map +1 -0
  55. package/dist/cli/doctor/index.d.ts +13 -87
  56. package/dist/cli/doctor/index.js +57 -713
  57. package/dist/cli/doctor/index.js.map +1 -1
  58. package/dist/cli/doctor/opencode.d.ts +2 -1
  59. package/dist/cli/doctor/opencode.js.map +1 -1
  60. package/dist/cli/doctor/types.d.ts +21 -387
  61. package/dist/cli/doctor/types.js.map +1 -1
  62. package/dist/cli/drain-stdio.d.ts +31 -0
  63. package/dist/cli/drain-stdio.js +76 -0
  64. package/dist/cli/drain-stdio.js.map +1 -0
  65. package/dist/cli/export.d.ts +3 -1
  66. package/dist/cli/export.js +7 -16
  67. package/dist/cli/export.js.map +1 -1
  68. package/dist/cli/gate/codex-disable.d.ts +29 -0
  69. package/dist/cli/gate/codex-disable.js +195 -0
  70. package/dist/cli/gate/codex-disable.js.map +1 -0
  71. package/dist/cli/gate/codex-enable.d.ts +41 -0
  72. package/dist/cli/gate/codex-enable.js +127 -0
  73. package/dist/cli/gate/codex-enable.js.map +1 -0
  74. package/dist/cli/gate/codex-snapshot.d.ts +208 -0
  75. package/dist/cli/gate/codex-snapshot.js +402 -0
  76. package/dist/cli/gate/codex-snapshot.js.map +1 -0
  77. package/dist/cli/gate/disable.d.ts +9 -0
  78. package/dist/cli/gate/disable.js +263 -28
  79. package/dist/cli/gate/disable.js.map +1 -1
  80. package/dist/cli/gate/enable.d.ts +26 -6
  81. package/dist/cli/gate/enable.js +152 -80
  82. package/dist/cli/gate/enable.js.map +1 -1
  83. package/dist/cli/gate/link-chain.d.ts +53 -0
  84. package/dist/cli/gate/link-chain.js +122 -0
  85. package/dist/cli/gate/link-chain.js.map +1 -0
  86. package/dist/cli/gate/snapshot.d.ts +289 -12
  87. package/dist/cli/gate/snapshot.js +481 -22
  88. package/dist/cli/gate/snapshot.js.map +1 -1
  89. package/dist/cli/index.d.ts +0 -9
  90. package/dist/cli/index.js +9 -2131
  91. package/dist/cli/index.js.map +1 -1
  92. package/dist/cli/init/composer.d.ts +3 -6
  93. package/dist/cli/init/composer.js +6 -370
  94. package/dist/cli/init/composer.js.map +1 -1
  95. package/dist/cli/init/dependencies.d.ts +1 -2
  96. package/dist/cli/init/dependencies.js +4 -80
  97. package/dist/cli/init/dependencies.js.map +1 -1
  98. package/dist/cli/init/detect.js +5 -4
  99. package/dist/cli/init/detect.js.map +1 -1
  100. package/dist/cli/init/interactive.d.ts +1 -23
  101. package/dist/cli/init/interactive.js +33 -247
  102. package/dist/cli/init/interactive.js.map +1 -1
  103. package/dist/cli/init/profiles.d.ts +2 -2
  104. package/dist/cli/init/profiles.js +51 -245
  105. package/dist/cli/init/profiles.js.map +1 -1
  106. package/dist/cli/init/templates.d.ts +2 -37
  107. package/dist/cli/init/templates.js +25 -1237
  108. package/dist/cli/init/templates.js.map +1 -1
  109. package/dist/cli/list.d.ts +1 -1
  110. package/dist/cli/list.js +1 -38
  111. package/dist/cli/list.js.map +1 -1
  112. package/dist/cli/loader.d.ts +15 -1
  113. package/dist/cli/loader.js +56 -39
  114. package/dist/cli/loader.js.map +1 -1
  115. package/dist/cli/main.js +7 -2
  116. package/dist/cli/main.js.map +1 -1
  117. package/dist/cli/migrate-home/index.js +2 -2
  118. package/dist/cli/migrate-home/index.js.map +1 -1
  119. package/dist/cli/pack/add.js +1 -1
  120. package/dist/cli/pack/add.js.map +1 -1
  121. package/dist/cli/pack/hook-bootstrap.d.ts +5 -164
  122. package/dist/cli/pack/hook-bootstrap.js +15 -291
  123. package/dist/cli/pack/hook-bootstrap.js.map +1 -1
  124. package/dist/cli/pack/hook-branch-protection.d.ts +28 -21
  125. package/dist/cli/pack/hook-branch-protection.js +365 -340
  126. package/dist/cli/pack/hook-branch-protection.js.map +1 -1
  127. package/dist/cli/pack/index.d.ts +0 -1
  128. package/dist/cli/pack/index.js +0 -1
  129. package/dist/cli/pack/index.js.map +1 -1
  130. package/dist/cli/pack/list.js +1 -6
  131. package/dist/cli/pack/list.js.map +1 -1
  132. package/dist/cli/pack/mutate.d.ts +7 -9
  133. package/dist/cli/pack/mutate.js +6 -9
  134. package/dist/cli/pack/mutate.js.map +1 -1
  135. package/dist/cli/pack/reseed.d.ts +2 -2
  136. package/dist/cli/pack/reseed.js +16 -22
  137. package/dist/cli/pack/reseed.js.map +1 -1
  138. package/dist/cli/{delegate/register.d.ts → register-gate-group.d.ts} +1 -1
  139. package/dist/cli/register-gate-group.js +348 -0
  140. package/dist/cli/register-gate-group.js.map +1 -0
  141. package/dist/cli/register-inspect-group.d.ts +6 -0
  142. package/dist/cli/register-inspect-group.js +189 -0
  143. package/dist/cli/register-inspect-group.js.map +1 -0
  144. package/dist/cli/register-operator-lifecycle.d.ts +1 -1
  145. package/dist/cli/register-operator-lifecycle.js +3 -100
  146. package/dist/cli/register-operator-lifecycle.js.map +1 -1
  147. package/dist/cli/register-pack-group.d.ts +5 -0
  148. package/dist/cli/register-pack-group.js +134 -0
  149. package/dist/cli/register-pack-group.js.map +1 -0
  150. package/dist/cli/{register-audit-group.d.ts → register-setup-group.d.ts} +1 -1
  151. package/dist/cli/register-setup-group.js +495 -0
  152. package/dist/cli/register-setup-group.js.map +1 -0
  153. package/dist/cli/remove/index.d.ts +0 -14
  154. package/dist/cli/remove/index.js +2 -115
  155. package/dist/cli/remove/index.js.map +1 -1
  156. package/dist/cli/remove/mutate.d.ts +0 -2
  157. package/dist/cli/remove/mutate.js +1 -19
  158. package/dist/cli/remove/mutate.js.map +1 -1
  159. package/dist/cli/remove/register.js +2 -19
  160. package/dist/cli/remove/register.js.map +1 -1
  161. package/dist/cli/shell-quote.d.ts +7 -0
  162. package/dist/cli/shell-quote.js +17 -0
  163. package/dist/cli/shell-quote.js.map +1 -0
  164. package/dist/cli/uninstall/index.d.ts +4 -2
  165. package/dist/cli/uninstall/index.js +15 -7
  166. package/dist/cli/uninstall/index.js.map +1 -1
  167. package/dist/cli/uninstall/register.js +6 -4
  168. package/dist/cli/uninstall/register.js.map +1 -1
  169. package/dist/cli/uninstall/snapshot.d.ts +15 -0
  170. package/dist/cli/uninstall/snapshot.js +38 -0
  171. package/dist/cli/uninstall/snapshot.js.map +1 -1
  172. package/dist/cli/validate/checks.d.ts +0 -77
  173. package/dist/cli/validate/checks.js +3 -1049
  174. package/dist/cli/validate/checks.js.map +1 -1
  175. package/dist/cli/validate/index.js +19 -15
  176. package/dist/cli/validate/index.js.map +1 -1
  177. package/dist/index.d.ts +0 -3
  178. package/dist/index.js +0 -3
  179. package/dist/index.js.map +1 -1
  180. package/dist/io/claude-mcp.d.ts +1 -1
  181. package/dist/io/claude-mcp.js +27 -14
  182. package/dist/io/claude-mcp.js.map +1 -1
  183. package/dist/io/harness-lock.js +2 -2
  184. package/dist/io/harness-lock.js.map +1 -1
  185. package/dist/io/lock.d.ts +0 -26
  186. package/dist/io/lock.js +10 -27
  187. package/dist/io/lock.js.map +1 -1
  188. package/dist/io/merge-settings.js +6 -4
  189. package/dist/io/merge-settings.js.map +1 -1
  190. package/dist/io/project-name.d.ts +22 -39
  191. package/dist/io/project-name.js +25 -42
  192. package/dist/io/project-name.js.map +1 -1
  193. package/dist/io/read-regular-file.d.ts +103 -40
  194. package/dist/io/read-regular-file.js +196 -35
  195. package/dist/io/read-regular-file.js.map +1 -1
  196. package/dist/io/restart-hints.js +3 -6
  197. package/dist/io/restart-hints.js.map +1 -1
  198. package/dist/io/version-compare.d.ts +1 -3
  199. package/dist/io/version-compare.js +1 -3
  200. package/dist/io/version-compare.js.map +1 -1
  201. package/dist/io/write-regular-file.d.ts +30 -0
  202. package/dist/io/write-regular-file.js +85 -0
  203. package/dist/io/write-regular-file.js.map +1 -0
  204. package/dist/overrides/index.d.ts +1 -0
  205. package/dist/overrides/index.js +1 -0
  206. package/dist/overrides/index.js.map +1 -1
  207. package/dist/overrides/merge-layers.d.ts +43 -0
  208. package/dist/overrides/merge-layers.js +76 -0
  209. package/dist/overrides/merge-layers.js.map +1 -0
  210. package/dist/overrides/merge.d.ts +16 -0
  211. package/dist/overrides/merge.js +21 -8
  212. package/dist/overrides/merge.js.map +1 -1
  213. package/dist/policy-packs/builtin/branch-protection-runtime.d.ts +4 -69
  214. package/dist/policy-packs/builtin/branch-protection-runtime.js +12 -84
  215. package/dist/policy-packs/builtin/branch-protection-runtime.js.map +1 -1
  216. package/dist/policy-packs/builtin/branch-protection.d.ts +7 -30
  217. package/dist/policy-packs/builtin/branch-protection.js +56 -89
  218. package/dist/policy-packs/builtin/branch-protection.js.map +1 -1
  219. package/dist/policy-packs/config-check.d.ts +7 -5
  220. package/dist/policy-packs/config-check.js +2 -2
  221. package/dist/policy-packs/config-check.js.map +1 -1
  222. package/dist/policy-packs/expand.d.ts +1 -3
  223. package/dist/policy-packs/expand.js +5 -42
  224. package/dist/policy-packs/expand.js.map +1 -1
  225. package/dist/policy-packs/index.d.ts +3 -3
  226. package/dist/policy-packs/index.js +2 -2
  227. package/dist/policy-packs/index.js.map +1 -1
  228. package/dist/policy-packs/registry.d.ts +9 -38
  229. package/dist/policy-packs/registry.js +5 -65
  230. package/dist/policy-packs/registry.js.map +1 -1
  231. package/dist/policy-packs/runtime.d.ts +0 -4
  232. package/dist/policy-packs/runtime.js +9 -22
  233. package/dist/policy-packs/runtime.js.map +1 -1
  234. package/dist/policy-packs/types.d.ts +0 -19
  235. package/dist/policy-packs/ux-compare.d.ts +1 -11
  236. package/dist/policy-packs/ux-compare.js +6 -42
  237. package/dist/policy-packs/ux-compare.js.map +1 -1
  238. package/dist/policy-packs/ux-drift-check.d.ts +5 -5
  239. package/dist/policy-packs/ux-drift-check.js +17 -22
  240. package/dist/policy-packs/ux-drift-check.js.map +1 -1
  241. package/dist/policy-packs/version-check.d.ts +5 -26
  242. package/dist/policy-packs/version-check.js +19 -74
  243. package/dist/policy-packs/version-check.js.map +1 -1
  244. package/dist/probes/memory.d.ts +1 -1
  245. package/dist/probes/memory.js +1 -1
  246. package/dist/probes/memory.js.map +1 -1
  247. package/dist/runtime/agent-facing.d.ts +9 -0
  248. package/dist/runtime/agent-facing.js +28 -14
  249. package/dist/runtime/agent-facing.js.map +1 -1
  250. package/dist/runtime/bounded-text.d.ts +15 -0
  251. package/dist/runtime/bounded-text.js +27 -0
  252. package/dist/runtime/bounded-text.js.map +1 -0
  253. package/dist/runtime/git-branch.d.ts +125 -0
  254. package/dist/runtime/git-branch.js +381 -0
  255. package/dist/runtime/git-branch.js.map +1 -0
  256. package/dist/runtime/hermetic-spawn-guard.d.ts +2 -2
  257. package/dist/runtime/hermetic-spawn-guard.js +24 -34
  258. package/dist/runtime/hermetic-spawn-guard.js.map +1 -1
  259. package/dist/runtime/home-dir.js +3 -2
  260. package/dist/runtime/home-dir.js.map +1 -1
  261. package/dist/runtime/tool-name-aliases.d.ts +0 -6
  262. package/dist/runtime/tool-name-aliases.js +5 -18
  263. package/dist/runtime/tool-name-aliases.js.map +1 -1
  264. package/dist/schema/grounding.d.ts +7 -54
  265. package/dist/schema/grounding.js +10 -12
  266. package/dist/schema/grounding.js.map +1 -1
  267. package/dist/schema/hooks.d.ts +39 -136
  268. package/dist/schema/hooks.js +3 -6
  269. package/dist/schema/hooks.js.map +1 -1
  270. package/dist/schema/index.d.ts +114 -3828
  271. package/dist/schema/index.js +41 -80
  272. package/dist/schema/index.js.map +1 -1
  273. package/dist/schema/memory.d.ts +54 -131
  274. package/dist/schema/memory.js +2 -2
  275. package/dist/schema/memory.js.map +1 -1
  276. package/dist/schema/policy-packs.d.ts +3 -45
  277. package/dist/schema/policy-packs.js +7 -13
  278. package/dist/schema/policy-packs.js.map +1 -1
  279. package/dist/schema/policy-ux.d.ts +7 -0
  280. package/dist/schema/policy-ux.js +18 -0
  281. package/dist/schema/policy-ux.js.map +1 -0
  282. package/dist/schema/removed-keys.d.ts +185 -0
  283. package/dist/schema/removed-keys.js +531 -0
  284. package/dist/schema/removed-keys.js.map +1 -0
  285. package/dist/schema/tools.d.ts +30 -268
  286. package/dist/schema/tools.js +4 -4
  287. package/dist/schema/tools.js.map +1 -1
  288. package/package.json +5 -16
  289. package/dist/cli/approve/branch-protection.d.ts +0 -69
  290. package/dist/cli/approve/branch-protection.js +0 -144
  291. package/dist/cli/approve/branch-protection.js.map +0 -1
  292. package/dist/cli/approve/risk.d.ts +0 -112
  293. package/dist/cli/approve/risk.js +0 -197
  294. package/dist/cli/approve/risk.js.map +0 -1
  295. package/dist/cli/approve/stdin-report.d.ts +0 -57
  296. package/dist/cli/approve/stdin-report.js +0 -145
  297. package/dist/cli/approve/stdin-report.js.map +0 -1
  298. package/dist/cli/approve/understanding.d.ts +0 -410
  299. package/dist/cli/approve/understanding.js +0 -996
  300. package/dist/cli/approve/understanding.js.map +0 -1
  301. package/dist/cli/audit.d.ts +0 -80
  302. package/dist/cli/audit.js +0 -252
  303. package/dist/cli/audit.js.map +0 -1
  304. package/dist/cli/delegate/index.d.ts +0 -76
  305. package/dist/cli/delegate/index.js +0 -444
  306. package/dist/cli/delegate/index.js.map +0 -1
  307. package/dist/cli/delegate/register.js +0 -90
  308. package/dist/cli/delegate/register.js.map +0 -1
  309. package/dist/cli/doctor/auto-approve-mode.d.ts +0 -37
  310. package/dist/cli/doctor/auto-approve-mode.js +0 -80
  311. package/dist/cli/doctor/auto-approve-mode.js.map +0 -1
  312. package/dist/cli/doctor/bypass-without-auto-approve.d.ts +0 -38
  313. package/dist/cli/doctor/bypass-without-auto-approve.js +0 -95
  314. package/dist/cli/doctor/bypass-without-auto-approve.js.map +0 -1
  315. package/dist/cli/doctor/codex-config-drift.d.ts +0 -28
  316. package/dist/cli/doctor/codex-config-drift.js +0 -240
  317. package/dist/cli/doctor/codex-config-drift.js.map +0 -1
  318. package/dist/cli/doctor/expire-on-tool-match.d.ts +0 -15
  319. package/dist/cli/doctor/expire-on-tool-match.js +0 -58
  320. package/dist/cli/doctor/expire-on-tool-match.js.map +0 -1
  321. package/dist/cli/doctor/rogue-ledger.d.ts +0 -53
  322. package/dist/cli/doctor/rogue-ledger.js +0 -153
  323. package/dist/cli/doctor/rogue-ledger.js.map +0 -1
  324. package/dist/cli/doctor/session-start-preflight-setup-version.d.ts +0 -83
  325. package/dist/cli/doctor/session-start-preflight-setup-version.js +0 -114
  326. package/dist/cli/doctor/session-start-preflight-setup-version.js.map +0 -1
  327. package/dist/cli/doctor/settings-drift.d.ts +0 -25
  328. package/dist/cli/doctor/settings-drift.js +0 -213
  329. package/dist/cli/doctor/settings-drift.js.map +0 -1
  330. package/dist/cli/doctor/toolchain-parity.d.ts +0 -63
  331. package/dist/cli/doctor/toolchain-parity.js +0 -154
  332. package/dist/cli/doctor/toolchain-parity.js.map +0 -1
  333. package/dist/cli/doctor/ug-auto-approvals.d.ts +0 -40
  334. package/dist/cli/doctor/ug-auto-approvals.js +0 -91
  335. package/dist/cli/doctor/ug-auto-approvals.js.map +0 -1
  336. package/dist/cli/doctor/ug-delegations.d.ts +0 -26
  337. package/dist/cli/doctor/ug-delegations.js +0 -121
  338. package/dist/cli/doctor/ug-delegations.js.map +0 -1
  339. package/dist/cli/doctor/ug-inflight.d.ts +0 -35
  340. package/dist/cli/doctor/ug-inflight.js +0 -57
  341. package/dist/cli/doctor/ug-inflight.js.map +0 -1
  342. package/dist/cli/doctor/understanding-mode-env.d.ts +0 -51
  343. package/dist/cli/doctor/understanding-mode-env.js +0 -98
  344. package/dist/cli/doctor/understanding-mode-env.js.map +0 -1
  345. package/dist/cli/dry-run.d.ts +0 -58
  346. package/dist/cli/dry-run.js +0 -283
  347. package/dist/cli/dry-run.js.map +0 -1
  348. package/dist/cli/enriched-event.d.ts +0 -35
  349. package/dist/cli/enriched-event.js +0 -60
  350. package/dist/cli/enriched-event.js.map +0 -1
  351. package/dist/cli/event-input.d.ts +0 -28
  352. package/dist/cli/event-input.js +0 -73
  353. package/dist/cli/event-input.js.map +0 -1
  354. package/dist/cli/explain-action.d.ts +0 -25
  355. package/dist/cli/explain-action.js +0 -57
  356. package/dist/cli/explain-action.js.map +0 -1
  357. package/dist/cli/explain-policy.d.ts +0 -147
  358. package/dist/cli/explain-policy.js +0 -248
  359. package/dist/cli/explain-policy.js.map +0 -1
  360. package/dist/cli/explain.d.ts +0 -31
  361. package/dist/cli/explain.js +0 -159
  362. package/dist/cli/explain.js.map +0 -1
  363. package/dist/cli/gc/index.d.ts +0 -63
  364. package/dist/cli/gc/index.js +0 -566
  365. package/dist/cli/gc/index.js.map +0 -1
  366. package/dist/cli/pack/approve-escape.d.ts +0 -19
  367. package/dist/cli/pack/approve-escape.js +0 -190
  368. package/dist/cli/pack/approve-escape.js.map +0 -1
  369. package/dist/cli/pack/auto-approve-path.d.ts +0 -146
  370. package/dist/cli/pack/auto-approve-path.js +0 -462
  371. package/dist/cli/pack/auto-approve-path.js.map +0 -1
  372. package/dist/cli/pack/hook-codex-post-tool-use.d.ts +0 -25
  373. package/dist/cli/pack/hook-codex-post-tool-use.js +0 -160
  374. package/dist/cli/pack/hook-codex-post-tool-use.js.map +0 -1
  375. package/dist/cli/pack/hook-codex-pre-tool-use.d.ts +0 -48
  376. package/dist/cli/pack/hook-codex-pre-tool-use.js +0 -474
  377. package/dist/cli/pack/hook-codex-pre-tool-use.js.map +0 -1
  378. package/dist/cli/pack/hook-codex-stop.d.ts +0 -35
  379. package/dist/cli/pack/hook-codex-stop.js +0 -329
  380. package/dist/cli/pack/hook-codex-stop.js.map +0 -1
  381. package/dist/cli/pack/hook-codex-user-prompt-submit.d.ts +0 -24
  382. package/dist/cli/pack/hook-codex-user-prompt-submit.js +0 -93
  383. package/dist/cli/pack/hook-codex-user-prompt-submit.js.map +0 -1
  384. package/dist/cli/pack/hook-post-merge-gate-record.d.ts +0 -37
  385. package/dist/cli/pack/hook-post-merge-gate-record.js +0 -190
  386. package/dist/cli/pack/hook-post-merge-gate-record.js.map +0 -1
  387. package/dist/cli/pack/hook-post-merge-gate.d.ts +0 -34
  388. package/dist/cli/pack/hook-post-merge-gate.js +0 -277
  389. package/dist/cli/pack/hook-post-merge-gate.js.map +0 -1
  390. package/dist/cli/pack/hook-post-tool-use.d.ts +0 -45
  391. package/dist/cli/pack/hook-post-tool-use.js +0 -137
  392. package/dist/cli/pack/hook-post-tool-use.js.map +0 -1
  393. package/dist/cli/pack/hook-pre-tool-use.d.ts +0 -92
  394. package/dist/cli/pack/hook-pre-tool-use.js +0 -1328
  395. package/dist/cli/pack/hook-pre-tool-use.js.map +0 -1
  396. package/dist/cli/pack/hook-runtime-reality.d.ts +0 -63
  397. package/dist/cli/pack/hook-runtime-reality.js +0 -210
  398. package/dist/cli/pack/hook-runtime-reality.js.map +0 -1
  399. package/dist/cli/pack/hook-solution-acceptance-writeguard.d.ts +0 -32
  400. package/dist/cli/pack/hook-solution-acceptance-writeguard.js +0 -438
  401. package/dist/cli/pack/hook-solution-acceptance-writeguard.js.map +0 -1
  402. package/dist/cli/pack/hook-solution-acceptance.d.ts +0 -157
  403. package/dist/cli/pack/hook-solution-acceptance.js +0 -530
  404. package/dist/cli/pack/hook-solution-acceptance.js.map +0 -1
  405. package/dist/cli/pack/hook-stay-in-scope.d.ts +0 -37
  406. package/dist/cli/pack/hook-stay-in-scope.js +0 -128
  407. package/dist/cli/pack/hook-stay-in-scope.js.map +0 -1
  408. package/dist/cli/pack/hook-subagent-start.d.ts +0 -23
  409. package/dist/cli/pack/hook-subagent-start.js +0 -88
  410. package/dist/cli/pack/hook-subagent-start.js.map +0 -1
  411. package/dist/cli/pack/hook-subagent-stop.d.ts +0 -19
  412. package/dist/cli/pack/hook-subagent-stop.js +0 -41
  413. package/dist/cli/pack/hook-subagent-stop.js.map +0 -1
  414. package/dist/cli/pack/hook-track-active-claim.d.ts +0 -27
  415. package/dist/cli/pack/hook-track-active-claim.js +0 -275
  416. package/dist/cli/pack/hook-track-active-claim.js.map +0 -1
  417. package/dist/cli/pack/transcript-report-scan.d.ts +0 -71
  418. package/dist/cli/pack/transcript-report-scan.js +0 -359
  419. package/dist/cli/pack/transcript-report-scan.js.map +0 -1
  420. package/dist/cli/pack/understanding-report-schema-hint.d.ts +0 -26
  421. package/dist/cli/pack/understanding-report-schema-hint.js +0 -120
  422. package/dist/cli/pack/understanding-report-schema-hint.js.map +0 -1
  423. package/dist/cli/pack/upgrade.d.ts +0 -32
  424. package/dist/cli/pack/upgrade.js +0 -273
  425. package/dist/cli/pack/upgrade.js.map +0 -1
  426. package/dist/cli/pause/index.d.ts +0 -113
  427. package/dist/cli/pause/index.js +0 -251
  428. package/dist/cli/pause/index.js.map +0 -1
  429. package/dist/cli/pause-check.d.ts +0 -22
  430. package/dist/cli/pause-check.js +0 -54
  431. package/dist/cli/pause-check.js.map +0 -1
  432. package/dist/cli/policy/intercept.d.ts +0 -233
  433. package/dist/cli/policy/intercept.js +0 -1022
  434. package/dist/cli/policy/intercept.js.map +0 -1
  435. package/dist/cli/policy/risk-envelope-enrichment.d.ts +0 -40
  436. package/dist/cli/policy/risk-envelope-enrichment.js +0 -110
  437. package/dist/cli/policy/risk-envelope-enrichment.js.map +0 -1
  438. package/dist/cli/record/index.d.ts +0 -81
  439. package/dist/cli/record/index.js +0 -348
  440. package/dist/cli/record/index.js.map +0 -1
  441. package/dist/cli/register-audit-group.js +0 -91
  442. package/dist/cli/register-audit-group.js.map +0 -1
  443. package/dist/cli/resolve-env.d.ts +0 -32
  444. package/dist/cli/resolve-env.js +0 -46
  445. package/dist/cli/resolve-env.js.map +0 -1
  446. package/dist/cli/session-export/index.d.ts +0 -46
  447. package/dist/cli/session-export/index.js +0 -169
  448. package/dist/cli/session-export/index.js.map +0 -1
  449. package/dist/cli/session-export/redact.d.ts +0 -22
  450. package/dist/cli/session-export/redact.js +0 -47
  451. package/dist/cli/session-export/redact.js.map +0 -1
  452. package/dist/cli/session-export/transcript.d.ts +0 -24
  453. package/dist/cli/session-export/transcript.js +0 -164
  454. package/dist/cli/session-export/transcript.js.map +0 -1
  455. package/dist/cli/session-start/branch-check.d.ts +0 -18
  456. package/dist/cli/session-start/branch-check.js +0 -140
  457. package/dist/cli/session-start/branch-check.js.map +0 -1
  458. package/dist/cli/session-start/index.d.ts +0 -121
  459. package/dist/cli/session-start/index.js +0 -591
  460. package/dist/cli/session-start/index.js.map +0 -1
  461. package/dist/cli/session-start/shared-options.d.ts +0 -103
  462. package/dist/cli/session-start/shared-options.js +0 -107
  463. package/dist/cli/session-start/shared-options.js.map +0 -1
  464. package/dist/cli/session-start/stale-base-check.d.ts +0 -46
  465. package/dist/cli/session-start/stale-base-check.js +0 -352
  466. package/dist/cli/session-start/stale-base-check.js.map +0 -1
  467. package/dist/cli/session-start/toolchain-parity.d.ts +0 -267
  468. package/dist/cli/session-start/toolchain-parity.js +0 -797
  469. package/dist/cli/session-start/toolchain-parity.js.map +0 -1
  470. package/dist/cli/smoke/assertions.d.ts +0 -46
  471. package/dist/cli/smoke/assertions.js +0 -170
  472. package/dist/cli/smoke/assertions.js.map +0 -1
  473. package/dist/cli/smoke/index.d.ts +0 -76
  474. package/dist/cli/smoke/index.js +0 -245
  475. package/dist/cli/smoke/index.js.map +0 -1
  476. package/dist/cli/smoke/runner.d.ts +0 -55
  477. package/dist/cli/smoke/runner.js +0 -134
  478. package/dist/cli/smoke/runner.js.map +0 -1
  479. package/dist/cli/smoke/stream-parser.d.ts +0 -65
  480. package/dist/cli/smoke/stream-parser.js +0 -115
  481. package/dist/cli/smoke/stream-parser.js.map +0 -1
  482. package/dist/cli/test-risk.d.ts +0 -27
  483. package/dist/cli/test-risk.js +0 -38
  484. package/dist/cli/test-risk.js.map +0 -1
  485. package/dist/io/display-path.d.ts +0 -11
  486. package/dist/io/display-path.js +0 -29
  487. package/dist/io/display-path.js.map +0 -1
  488. package/dist/io/duration.d.ts +0 -5
  489. package/dist/io/duration.js +0 -50
  490. package/dist/io/duration.js.map +0 -1
  491. package/dist/io/extract.d.ts +0 -79
  492. package/dist/io/extract.js +0 -226
  493. package/dist/io/extract.js.map +0 -1
  494. package/dist/io/ledger-record.d.ts +0 -83
  495. package/dist/io/ledger-record.js +0 -301
  496. package/dist/io/ledger-record.js.map +0 -1
  497. package/dist/io/read-json-dir-entries.d.ts +0 -36
  498. package/dist/io/read-json-dir-entries.js +0 -48
  499. package/dist/io/read-json-dir-entries.js.map +0 -1
  500. package/dist/io/safe-json-parse.d.ts +0 -5
  501. package/dist/io/safe-json-parse.js +0 -21
  502. package/dist/io/safe-json-parse.js.map +0 -1
  503. package/dist/policies/index.d.ts +0 -5
  504. package/dist/policies/index.js +0 -6
  505. package/dist/policies/index.js.map +0 -1
  506. package/dist/policies/ledger-client.d.ts +0 -113
  507. package/dist/policies/ledger-client.js +0 -500
  508. package/dist/policies/ledger-client.js.map +0 -1
  509. package/dist/policies/producers.d.ts +0 -12
  510. package/dist/policies/producers.js +0 -61
  511. package/dist/policies/producers.js.map +0 -1
  512. package/dist/policies/requires.d.ts +0 -75
  513. package/dist/policies/requires.js +0 -240
  514. package/dist/policies/requires.js.map +0 -1
  515. package/dist/policies/timestamp.d.ts +0 -14
  516. package/dist/policies/timestamp.js +0 -36
  517. package/dist/policies/timestamp.js.map +0 -1
  518. package/dist/policy-packs/builtin/permission-profiles.d.ts +0 -11
  519. package/dist/policy-packs/builtin/permission-profiles.js +0 -74
  520. package/dist/policy-packs/builtin/permission-profiles.js.map +0 -1
  521. package/dist/policy-packs/builtin/post-merge-gate-runtime.d.ts +0 -286
  522. package/dist/policy-packs/builtin/post-merge-gate-runtime.js +0 -397
  523. package/dist/policy-packs/builtin/post-merge-gate-runtime.js.map +0 -1
  524. package/dist/policy-packs/builtin/post-merge-gate.d.ts +0 -56
  525. package/dist/policy-packs/builtin/post-merge-gate.js +0 -347
  526. package/dist/policy-packs/builtin/post-merge-gate.js.map +0 -1
  527. package/dist/policy-packs/builtin/solution-acceptance-reconnect.d.ts +0 -50
  528. package/dist/policy-packs/builtin/solution-acceptance-reconnect.js +0 -151
  529. package/dist/policy-packs/builtin/solution-acceptance-reconnect.js.map +0 -1
  530. package/dist/policy-packs/builtin/solution-acceptance-runtime.d.ts +0 -323
  531. package/dist/policy-packs/builtin/solution-acceptance-runtime.js +0 -672
  532. package/dist/policy-packs/builtin/solution-acceptance-runtime.js.map +0 -1
  533. package/dist/policy-packs/builtin/solution-acceptance.d.ts +0 -45
  534. package/dist/policy-packs/builtin/solution-acceptance.js +0 -226
  535. package/dist/policy-packs/builtin/solution-acceptance.js.map +0 -1
  536. package/dist/policy-packs/builtin/understanding-before-execution/active-claim.d.ts +0 -25
  537. package/dist/policy-packs/builtin/understanding-before-execution/active-claim.js +0 -94
  538. package/dist/policy-packs/builtin/understanding-before-execution/active-claim.js.map +0 -1
  539. package/dist/policy-packs/builtin/understanding-before-execution/auto-approve-default.d.ts +0 -35
  540. package/dist/policy-packs/builtin/understanding-before-execution/auto-approve-default.js +0 -86
  541. package/dist/policy-packs/builtin/understanding-before-execution/auto-approve-default.js.map +0 -1
  542. package/dist/policy-packs/builtin/understanding-before-execution/auto-approve.d.ts +0 -210
  543. package/dist/policy-packs/builtin/understanding-before-execution/auto-approve.js +0 -361
  544. package/dist/policy-packs/builtin/understanding-before-execution/auto-approve.js.map +0 -1
  545. package/dist/policy-packs/builtin/understanding-before-execution/delegation-markers.d.ts +0 -304
  546. package/dist/policy-packs/builtin/understanding-before-execution/delegation-markers.js +0 -734
  547. package/dist/policy-packs/builtin/understanding-before-execution/delegation-markers.js.map +0 -1
  548. package/dist/policy-packs/builtin/understanding-before-execution/expiry-reason.d.ts +0 -36
  549. package/dist/policy-packs/builtin/understanding-before-execution/expiry-reason.js +0 -73
  550. package/dist/policy-packs/builtin/understanding-before-execution/expiry-reason.js.map +0 -1
  551. package/dist/policy-packs/builtin/understanding-before-execution/index.d.ts +0 -19
  552. package/dist/policy-packs/builtin/understanding-before-execution/index.js +0 -83
  553. package/dist/policy-packs/builtin/understanding-before-execution/index.js.map +0 -1
  554. package/dist/policy-packs/builtin/understanding-before-execution/inflight-records.d.ts +0 -135
  555. package/dist/policy-packs/builtin/understanding-before-execution/inflight-records.js +0 -643
  556. package/dist/policy-packs/builtin/understanding-before-execution/inflight-records.js.map +0 -1
  557. package/dist/policy-packs/builtin/understanding-before-execution/ledger.d.ts +0 -25
  558. package/dist/policy-packs/builtin/understanding-before-execution/ledger.js +0 -56
  559. package/dist/policy-packs/builtin/understanding-before-execution/ledger.js.map +0 -1
  560. package/dist/policy-packs/builtin/understanding-before-execution/lifecycle.d.ts +0 -20
  561. package/dist/policy-packs/builtin/understanding-before-execution/lifecycle.js +0 -106
  562. package/dist/policy-packs/builtin/understanding-before-execution/lifecycle.js.map +0 -1
  563. package/dist/policy-packs/builtin/understanding-before-execution/markers.d.ts +0 -126
  564. package/dist/policy-packs/builtin/understanding-before-execution/markers.js +0 -245
  565. package/dist/policy-packs/builtin/understanding-before-execution/markers.js.map +0 -1
  566. package/dist/policy-packs/builtin/understanding-before-execution/measured-permission-modes.d.ts +0 -29
  567. package/dist/policy-packs/builtin/understanding-before-execution/measured-permission-modes.js +0 -82
  568. package/dist/policy-packs/builtin/understanding-before-execution/measured-permission-modes.js.map +0 -1
  569. package/dist/policy-packs/builtin/understanding-before-execution/permission-mode-observations.d.ts +0 -71
  570. package/dist/policy-packs/builtin/understanding-before-execution/permission-mode-observations.js +0 -175
  571. package/dist/policy-packs/builtin/understanding-before-execution/permission-mode-observations.js.map +0 -1
  572. package/dist/policy-packs/builtin/understanding-before-execution/persisted-reports.d.ts +0 -625
  573. package/dist/policy-packs/builtin/understanding-before-execution/persisted-reports.js +0 -1076
  574. package/dist/policy-packs/builtin/understanding-before-execution/persisted-reports.js.map +0 -1
  575. package/dist/policy-packs/builtin/understanding-before-execution/post-tool-use-boundary.d.ts +0 -128
  576. package/dist/policy-packs/builtin/understanding-before-execution/post-tool-use-boundary.js +0 -213
  577. package/dist/policy-packs/builtin/understanding-before-execution/post-tool-use-boundary.js.map +0 -1
  578. package/dist/policy-packs/builtin/understanding-before-execution/stay-in-scope-config.d.ts +0 -129
  579. package/dist/policy-packs/builtin/understanding-before-execution/stay-in-scope-config.js +0 -166
  580. package/dist/policy-packs/builtin/understanding-before-execution/stay-in-scope-config.js.map +0 -1
  581. package/dist/policy-packs/builtin/understanding-before-execution/task-markers.d.ts +0 -164
  582. package/dist/policy-packs/builtin/understanding-before-execution/task-markers.js +0 -275
  583. package/dist/policy-packs/builtin/understanding-before-execution/task-markers.js.map +0 -1
  584. package/dist/policy-packs/builtin/understanding-before-execution-runtime.d.ts +0 -1
  585. package/dist/policy-packs/builtin/understanding-before-execution-runtime.js +0 -10
  586. package/dist/policy-packs/builtin/understanding-before-execution-runtime.js.map +0 -1
  587. package/dist/policy-packs/builtin/understanding-before-execution.d.ts +0 -526
  588. package/dist/policy-packs/builtin/understanding-before-execution.js +0 -1078
  589. package/dist/policy-packs/builtin/understanding-before-execution.js.map +0 -1
  590. package/dist/policy-packs/permission-translator.d.ts +0 -9
  591. package/dist/policy-packs/permission-translator.js +0 -76
  592. package/dist/policy-packs/permission-translator.js.map +0 -1
  593. package/dist/runtime/action-envelope.d.ts +0 -64
  594. package/dist/runtime/action-envelope.js +0 -46
  595. package/dist/runtime/action-envelope.js.map +0 -1
  596. package/dist/runtime/approval-signing.d.ts +0 -111
  597. package/dist/runtime/approval-signing.js +0 -384
  598. package/dist/runtime/approval-signing.js.map +0 -1
  599. package/dist/runtime/bash-match-facts.d.ts +0 -60
  600. package/dist/runtime/bash-match-facts.js +0 -196
  601. package/dist/runtime/bash-match-facts.js.map +0 -1
  602. package/dist/runtime/bash-match-registry.d.ts +0 -112
  603. package/dist/runtime/bash-match-registry.js +0 -406
  604. package/dist/runtime/bash-match-registry.js.map +0 -1
  605. package/dist/runtime/bash-prefix-parse.d.ts +0 -31
  606. package/dist/runtime/bash-prefix-parse.js +0 -576
  607. package/dist/runtime/bash-prefix-parse.js.map +0 -1
  608. package/dist/runtime/command-normalize.d.ts +0 -658
  609. package/dist/runtime/command-normalize.js +0 -2410
  610. package/dist/runtime/command-normalize.js.map +0 -1
  611. package/dist/runtime/deletion-target-resolve.d.ts +0 -28
  612. package/dist/runtime/deletion-target-resolve.js +0 -1078
  613. package/dist/runtime/deletion-target-resolve.js.map +0 -1
  614. package/dist/runtime/destructive-shell-floor.d.ts +0 -19
  615. package/dist/runtime/destructive-shell-floor.js +0 -611
  616. package/dist/runtime/destructive-shell-floor.js.map +0 -1
  617. package/dist/runtime/environment-resolver.d.ts +0 -36
  618. package/dist/runtime/environment-resolver.js +0 -138
  619. package/dist/runtime/environment-resolver.js.map +0 -1
  620. package/dist/runtime/git-context.d.ts +0 -201
  621. package/dist/runtime/git-context.js +0 -422
  622. package/dist/runtime/git-context.js.map +0 -1
  623. package/dist/runtime/index.d.ts +0 -12
  624. package/dist/runtime/index.js +0 -13
  625. package/dist/runtime/index.js.map +0 -1
  626. package/dist/runtime/intercept.d.ts +0 -623
  627. package/dist/runtime/intercept.js +0 -1384
  628. package/dist/runtime/intercept.js.map +0 -1
  629. package/dist/runtime/kube-context.d.ts +0 -16
  630. package/dist/runtime/kube-context.js +0 -63
  631. package/dist/runtime/kube-context.js.map +0 -1
  632. package/dist/runtime/kubectl-target-parse.d.ts +0 -31
  633. package/dist/runtime/kubectl-target-parse.js +0 -249
  634. package/dist/runtime/kubectl-target-parse.js.map +0 -1
  635. package/dist/runtime/ledger-add.d.ts +0 -16
  636. package/dist/runtime/ledger-add.js +0 -150
  637. package/dist/runtime/ledger-add.js.map +0 -1
  638. package/dist/runtime/ledger-writer.d.ts +0 -27
  639. package/dist/runtime/ledger-writer.js +0 -46
  640. package/dist/runtime/ledger-writer.js.map +0 -1
  641. package/dist/runtime/pause-sentinel.d.ts +0 -60
  642. package/dist/runtime/pause-sentinel.js +0 -156
  643. package/dist/runtime/pause-sentinel.js.map +0 -1
  644. package/dist/runtime/pending-approval.d.ts +0 -23
  645. package/dist/runtime/pending-approval.js +0 -67
  646. package/dist/runtime/pending-approval.js.map +0 -1
  647. package/dist/runtime/read-only-bash.d.ts +0 -141
  648. package/dist/runtime/read-only-bash.js +0 -2204
  649. package/dist/runtime/read-only-bash.js.map +0 -1
  650. package/dist/runtime/recovery-git-commit.d.ts +0 -22
  651. package/dist/runtime/recovery-git-commit.js +0 -284
  652. package/dist/runtime/recovery-git-commit.js.map +0 -1
  653. package/dist/runtime/reject-malformed-session-id.d.ts +0 -8
  654. package/dist/runtime/reject-malformed-session-id.js +0 -16
  655. package/dist/runtime/reject-malformed-session-id.js.map +0 -1
  656. package/dist/runtime/risk-classifier.d.ts +0 -38
  657. package/dist/runtime/risk-classifier.js +0 -311
  658. package/dist/runtime/risk-classifier.js.map +0 -1
  659. package/dist/runtime/session-id.d.ts +0 -113
  660. package/dist/runtime/session-id.js +0 -193
  661. package/dist/runtime/session-id.js.map +0 -1
  662. package/dist/runtime/shell-word.d.ts +0 -62
  663. package/dist/runtime/shell-word.js +0 -410
  664. package/dist/runtime/shell-word.js.map +0 -1
  665. package/dist/runtime/task-providers/agent-tasks.d.ts +0 -105
  666. package/dist/runtime/task-providers/agent-tasks.js +0 -247
  667. package/dist/runtime/task-providers/agent-tasks.js.map +0 -1
  668. package/dist/runtime/when-eval.d.ts +0 -62
  669. package/dist/runtime/when-eval.js +0 -212
  670. package/dist/runtime/when-eval.js.map +0 -1
  671. package/dist/runtime/workflow-policies.d.ts +0 -207
  672. package/dist/runtime/workflow-policies.js +0 -596
  673. package/dist/runtime/workflow-policies.js.map +0 -1
  674. package/dist/schema/audit.d.ts +0 -71
  675. package/dist/schema/audit.js +0 -32
  676. package/dist/schema/audit.js.map +0 -1
  677. package/dist/schema/doctor.d.ts +0 -25
  678. package/dist/schema/doctor.js +0 -23
  679. package/dist/schema/doctor.js.map +0 -1
  680. package/dist/schema/environments.d.ts +0 -215
  681. package/dist/schema/environments.js +0 -101
  682. package/dist/schema/environments.js.map +0 -1
  683. package/dist/schema/extract.d.ts +0 -9
  684. package/dist/schema/extract.js +0 -86
  685. package/dist/schema/extract.js.map +0 -1
  686. package/dist/schema/permission-profiles.d.ts +0 -2292
  687. package/dist/schema/permission-profiles.js +0 -60
  688. package/dist/schema/permission-profiles.js.map +0 -1
  689. package/dist/schema/policies.d.ts +0 -974
  690. package/dist/schema/policies.js +0 -298
  691. package/dist/schema/policies.js.map +0 -1
  692. package/dist/schema/requires.d.ts +0 -131
  693. package/dist/schema/requires.js +0 -88
  694. package/dist/schema/requires.js.map +0 -1
  695. package/dist/schema/risk.d.ts +0 -144
  696. package/dist/schema/risk.js +0 -194
  697. package/dist/schema/risk.js.map +0 -1
  698. package/dist/schema/session-start-preflight.d.ts +0 -10
  699. package/dist/schema/session-start-preflight.js +0 -106
  700. package/dist/schema/session-start-preflight.js.map +0 -1
  701. package/dist/schema/stale-base-check.d.ts +0 -18
  702. package/dist/schema/stale-base-check.js +0 -37
  703. package/dist/schema/stale-base-check.js.map +0 -1
  704. package/dist/schema/toolchain-parity.d.ts +0 -21
  705. package/dist/schema/toolchain-parity.js +0 -48
  706. package/dist/schema/toolchain-parity.js.map +0 -1
  707. package/dist/schema/workflows.d.ts +0 -519
  708. package/dist/schema/workflows.js +0 -81
  709. package/dist/schema/workflows.js.map +0 -1
  710. package/scripts/runtime-reality-docker-probe.mjs +0 -71
@@ -1 +0,0 @@
1
- {"version":3,"file":"persisted-reports.js","sourceRoot":"","sources":["../../../../src/policy-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CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC5C,CAAC;IACD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,GAAG,CAAC,CAAC,WAAW,CAAC,CAAC;IACtD,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,eAAe,EAAE,EAAE,EAAE,CAAC;AACrE,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,2BAA2B,CAAC,GAAW;IACrD,OAAO,oCAAoC,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC;AAC3D,CAAC"}
@@ -1,128 +0,0 @@
1
- import { type ApprovalLifecycle } from "./lifecycle.js";
2
- import { expirePersistedReport } from "./persisted-reports.js";
3
- /**
4
- * Tool names treated as "the Bash tool" for `expire_on_bash_match`
5
- * command-regex matching. Claude Code has exactly one Bash tool name;
6
- * a runtime with shell-tool aliases (e.g. Codex's `shell` /
7
- * `exec_command` / `functions.exec_command`) passes its own set.
8
- */
9
- export declare const DEFAULT_BASH_TOOL_NAMES: ReadonlySet<string>;
10
- /**
11
- * Tool-name membership test against `expire_on_tool_match`. No GLOB
12
- * wildcard expansion by design (agent-tasks/d8ee60ca): operators write
13
- * the exact tool name they mean.
14
- *
15
- * It IS alias-aware, though: a tool name is compared against `patterns`
16
- * after expanding it through `expandToolNameAliases` (shell-tool
17
- * aliases `Bash`/`shell`/`exec_command`/`functions.exec_command`, and
18
- * MCP tool-name variants — server hyphen/underscore swap, the
19
- * `mcp__server__.tool` dotted form). This mirrors the normalization
20
- * `harness policy intercept`'s `policyMatchesEvent` already applies to
21
- * the incoming `event.tool_name` (`src/runtime/intercept.ts`, commit
22
- * 9aacbcd "Fix Codex hook tool matching") — that fix exists precisely
23
- * because Codex can emit an MCP tool name in one of these variant
24
- * forms for the identical tool. Before this, a Codex session sending
25
- * `mcp__agent-tasks__.task_finish` (dotted) or an underscore-server
26
- * variant would silently never expire the marker: the Codex generator
27
- * alias-expands the EMITTED TOML `matcher` (`expandCodexHookMatchPattern`
28
- * in `generate-codex-config.ts`) so Codex's own dispatcher still
29
- * invokes the hook command, but this function's comparison against the
30
- * canonical `expire_on_tool_match` config list would reject the
31
- * variant `tool_name` once inside the hook body — the boundary would
32
- * silently never fire even though the hook ran (review finding on task
33
- * a1348c89).
34
- */
35
- export declare function toolNameMatchesAny(toolName: string, patterns: readonly string[]): boolean;
36
- /** First `expire_on_bash_match` regex the command satisfies, or
37
- * undefined. Patterns are pre-compiled by `parseApprovalLifecycle`
38
- * (invalid ones already dropped with a warning). Empty command
39
- * short-circuits to undefined. */
40
- export declare function bashCommandMatchesAny(command: string, patterns: readonly RegExp[]): RegExp | undefined;
41
- /** Pull the Bash command out of a tool_input payload, `""` when absent
42
- * or malformed. */
43
- export declare function extractBashCommandFromToolInput(toolInput: unknown): string;
44
- /** Pull `taskId` out of an MCP tool_input payload (`""` when absent /
45
- * malformed). Task-boundary agent-tasks verbs carry this as a
46
- * top-level string field. */
47
- export declare function extractTaskIdFromToolInput(toolInput: unknown): string;
48
- /** Pull the legacy v1 `tasks_transition` `status` field out of a
49
- * tool_input payload (`""` when absent / malformed). Only `"done"`
50
- * releases the work claim; the caller treats any other value as
51
- * keep-claim. */
52
- export declare function extractTasksTransitionStatusFromToolInput(toolInput: unknown): string;
53
- export interface PostToolUseBoundaryMatch {
54
- /** Final match decision: `toolNameMatched || bashRegex !== undefined`. */
55
- matched: boolean;
56
- /** Tool-name match, refined by the active-claim decider (a claim
57
- * lifecycle verb the decider says keeps the work claim does not
58
- * count, see `claimKeptByDecider`). */
59
- toolNameMatched: boolean;
60
- /** Tool-name match BEFORE the active-claim decider filter: lets the
61
- * caller distinguish "not in the list" from "in the list, but the
62
- * work claim is kept" for its diagnostic. */
63
- rawToolNameMatched: boolean;
64
- /** True when the tool is an agent-tasks claim lifecycle verb and
65
- * `claimEffectForAgentTasksTool` returned `"none"` for it (a
66
- * `task_finish` whose result landed in `review`, a legacy
67
- * `tasks_transition` to a status other than `done`). */
68
- claimKeptByDecider: boolean;
69
- /** The `expire_on_bash_match` regex the command satisfied, if any. */
70
- bashRegex: RegExp | undefined;
71
- }
72
- /**
73
- * Decide whether `toolName` (+ its `tool_input` and `tool_response`)
74
- * crosses one of the configured `approval_lifecycle` boundaries. Pure,
75
- * no filesystem access. Callers branch on `.matched` before touching
76
- * marker/report state (see `applyPostToolUseExpiry`).
77
- *
78
- * The approval marker expires on the same boundary as the active-claim
79
- * marker (task 5018c0c4): for an agent-tasks claim lifecycle verb
80
- * (`ACTIVE_CLAIM_TOOL_NAMES`) the one decider,
81
- * `claimEffectForAgentTasksTool`, is asked with the tool RESULT, and a
82
- * `"none"` (claim kept) answer means "not a boundary". So a
83
- * `task_finish` that lands the task in `review` keeps the approval,
84
- * while `done`, `task_abandon`, `task_merge` and a `tasks_transition`
85
- * to `done` expire it. There is no second local classification here.
86
- * The decider's own fail-safe direction is `"release"` for an absent or
87
- * unreadable `task_finish` result, which here means EXPIRE: the safe
88
- * side of a gate. An `"acquire"` answer (`task_start`, only reachable
89
- * when an operator lists it explicitly) and a tool the decider does not
90
- * track (`pull_requests_merge`, `task_submit_pr`, any non-agent-tasks
91
- * tool) keep the plain list-membership behaviour.
92
- */
93
- export declare function matchPostToolUseBoundary(toolName: string, toolInput: unknown, lifecycle: Pick<ApprovalLifecycle, "expireOnToolMatch" | "expireOnBashMatch">, bashToolNames?: ReadonlySet<string>, toolResponse?: unknown): PostToolUseBoundaryMatch;
94
- export interface ApplyPostToolUseExpiryResult {
95
- /** Did the session marker exist before this call cleared it? */
96
- wasMarkerPresent: boolean;
97
- /** Was a task-scoped marker also cleared? Only possible when
98
- * `toolNameMatched` (Bash regex boundaries never carry a taskId). */
99
- taskMarkerCleared: boolean;
100
- /** The task id whose marker was cleared, `""` when none. */
101
- clearedTaskId: string;
102
- /** Did the persisted-report expiry succeed? */
103
- persistedReportExpired: boolean;
104
- /** Full expiry result (success detail or skip reason) for diagnostics. */
105
- reportExpiry: ReturnType<typeof expirePersistedReport>;
106
- }
107
- /**
108
- * Side-effecting: clear the session marker, the task-scoped marker
109
- * (when `toolNameMatched` and `tool_input.taskId` names an existing
110
- * marker), and expire the persisted report. Call ONLY after
111
- * `matchPostToolUseBoundary(...).matched` is true — this function does
112
- * not re-check the match itself. Mirrors the Claude hook's original
113
- * side effects exactly so both runtimes share one clearing
114
- * implementation (task a1348c89).
115
- */
116
- export declare function applyPostToolUseExpiry(generatedDir: string, sessionId: string, toolInput: unknown, toolNameMatched: boolean, reportsDir: string, now?: Date, trigger?: string): ApplyPostToolUseExpiryResult;
117
- /**
118
- * Compose the stderr diagnostic line for a matched-and-applied PostToolUse
119
- * expiry. Shared by `harness pack hook post-tool-use` (Claude) and
120
- * `harness pack hook codex-post-tool-use` (Codex) — before this extraction
121
- * the two hooks each built this line by hand from the same four pieces
122
- * (`matchSource`/`taskNote`/`reportNote`/the present-vs-absent branch),
123
- * which `check:duplication` flagged as new clones the moment the Codex
124
- * sibling landed (task a1348c89). `hookLabel` is the caller's own
125
- * `harness pack hook ...` command string so the message still names the
126
- * right verb.
127
- */
128
- export declare function describePostToolUseExpiry(hookLabel: string, sessionId: string, toolName: string, bashRegex: RegExp | undefined, expiry: ApplyPostToolUseExpiryResult): string;
@@ -1,213 +0,0 @@
1
- // PostToolUse boundary matching + expiry (task a1348c89, Codex parity),
2
- // split out of the former monolithic understanding-before-execution-runtime.ts
3
- // (structural concentration slice 2, agent-tasks 348a4d42). Pure move: see
4
- // src/policy-packs/builtin/understanding-before-execution/index.ts for
5
- // the re-exported public surface.
6
- import * as fs from "node:fs";
7
- import { expandToolNameAliases } from "../../../runtime/tool-name-aliases.js";
8
- import { ACTIVE_CLAIM_TOOL_NAMES, claimEffectForAgentTasksTool, taskIdFromInput, tasksTransitionStatusFromInput, } from "../../../runtime/task-providers/agent-tasks.js";
9
- import { approvalMarkerPathFor, clearApprovalMarker } from "./markers.js";
10
- import { expirePersistedReport } from "./persisted-reports.js";
11
- import { clearTaskApprovalMarker, taskApprovalMarkerPathFor } from "./task-markers.js";
12
- // ---------------------------------------------------------------------
13
- // PostToolUse boundary matching + expiry (task a1348c89, Codex parity).
14
- // Shared between `harness pack hook post-tool-use` (Claude) and
15
- // `harness pack hook codex-post-tool-use` (Codex): both clear the SAME
16
- // marker/task-marker/persisted-report state on the SAME configured
17
- // task-boundary tools. Before this extraction the matching logic lived
18
- // only inline in the Claude hook file; a Codex sibling copying it by
19
- // hand would have re-implemented (and eventually drifted from) it —
20
- // the exact drift class task e7c2ec3c fixed on the PreToolUse side via
21
- // `checkOperatorApprovalMarkers` above. One implementation, two thin
22
- // runtime-specific callers.
23
- // ---------------------------------------------------------------------
24
- /**
25
- * Tool names treated as "the Bash tool" for `expire_on_bash_match`
26
- * command-regex matching. Claude Code has exactly one Bash tool name;
27
- * a runtime with shell-tool aliases (e.g. Codex's `shell` /
28
- * `exec_command` / `functions.exec_command`) passes its own set.
29
- */
30
- export const DEFAULT_BASH_TOOL_NAMES = new Set(["Bash"]);
31
- /**
32
- * Tool-name membership test against `expire_on_tool_match`. No GLOB
33
- * wildcard expansion by design (agent-tasks/d8ee60ca): operators write
34
- * the exact tool name they mean.
35
- *
36
- * It IS alias-aware, though: a tool name is compared against `patterns`
37
- * after expanding it through `expandToolNameAliases` (shell-tool
38
- * aliases `Bash`/`shell`/`exec_command`/`functions.exec_command`, and
39
- * MCP tool-name variants — server hyphen/underscore swap, the
40
- * `mcp__server__.tool` dotted form). This mirrors the normalization
41
- * `harness policy intercept`'s `policyMatchesEvent` already applies to
42
- * the incoming `event.tool_name` (`src/runtime/intercept.ts`, commit
43
- * 9aacbcd "Fix Codex hook tool matching") — that fix exists precisely
44
- * because Codex can emit an MCP tool name in one of these variant
45
- * forms for the identical tool. Before this, a Codex session sending
46
- * `mcp__agent-tasks__.task_finish` (dotted) or an underscore-server
47
- * variant would silently never expire the marker: the Codex generator
48
- * alias-expands the EMITTED TOML `matcher` (`expandCodexHookMatchPattern`
49
- * in `generate-codex-config.ts`) so Codex's own dispatcher still
50
- * invokes the hook command, but this function's comparison against the
51
- * canonical `expire_on_tool_match` config list would reject the
52
- * variant `tool_name` once inside the hook body — the boundary would
53
- * silently never fire even though the hook ran (review finding on task
54
- * a1348c89).
55
- */
56
- export function toolNameMatchesAny(toolName, patterns) {
57
- const patternSet = new Set(patterns);
58
- return expandToolNameAliases(toolName).some((alias) => patternSet.has(alias));
59
- }
60
- /** First `expire_on_bash_match` regex the command satisfies, or
61
- * undefined. Patterns are pre-compiled by `parseApprovalLifecycle`
62
- * (invalid ones already dropped with a warning). Empty command
63
- * short-circuits to undefined. */
64
- export function bashCommandMatchesAny(command, patterns) {
65
- if (command === "")
66
- return undefined;
67
- for (const re of patterns) {
68
- if (re.test(command))
69
- return re;
70
- }
71
- return undefined;
72
- }
73
- function toolInputRecord(toolInput) {
74
- if (typeof toolInput !== "object" || toolInput === null || Array.isArray(toolInput)) {
75
- return null;
76
- }
77
- return toolInput;
78
- }
79
- /** Pull the Bash command out of a tool_input payload, `""` when absent
80
- * or malformed. */
81
- export function extractBashCommandFromToolInput(toolInput) {
82
- const command = toolInputRecord(toolInput)?.["command"];
83
- return typeof command === "string" ? command : "";
84
- }
85
- /** Pull `taskId` out of an MCP tool_input payload (`""` when absent /
86
- * malformed). Task-boundary agent-tasks verbs carry this as a
87
- * top-level string field. */
88
- export function extractTaskIdFromToolInput(toolInput) {
89
- return taskIdFromInput(toolInput);
90
- }
91
- /** Pull the legacy v1 `tasks_transition` `status` field out of a
92
- * tool_input payload (`""` when absent / malformed). Only `"done"`
93
- * releases the work claim; the caller treats any other value as
94
- * keep-claim. */
95
- export function extractTasksTransitionStatusFromToolInput(toolInput) {
96
- return tasksTransitionStatusFromInput(toolInput);
97
- }
98
- /**
99
- * Decide whether `toolName` (+ its `tool_input` and `tool_response`)
100
- * crosses one of the configured `approval_lifecycle` boundaries. Pure,
101
- * no filesystem access. Callers branch on `.matched` before touching
102
- * marker/report state (see `applyPostToolUseExpiry`).
103
- *
104
- * The approval marker expires on the same boundary as the active-claim
105
- * marker (task 5018c0c4): for an agent-tasks claim lifecycle verb
106
- * (`ACTIVE_CLAIM_TOOL_NAMES`) the one decider,
107
- * `claimEffectForAgentTasksTool`, is asked with the tool RESULT, and a
108
- * `"none"` (claim kept) answer means "not a boundary". So a
109
- * `task_finish` that lands the task in `review` keeps the approval,
110
- * while `done`, `task_abandon`, `task_merge` and a `tasks_transition`
111
- * to `done` expire it. There is no second local classification here.
112
- * The decider's own fail-safe direction is `"release"` for an absent or
113
- * unreadable `task_finish` result, which here means EXPIRE: the safe
114
- * side of a gate. An `"acquire"` answer (`task_start`, only reachable
115
- * when an operator lists it explicitly) and a tool the decider does not
116
- * track (`pull_requests_merge`, `task_submit_pr`, any non-agent-tasks
117
- * tool) keep the plain list-membership behaviour.
118
- */
119
- export function matchPostToolUseBoundary(toolName, toolInput, lifecycle, bashToolNames = DEFAULT_BASH_TOOL_NAMES, toolResponse) {
120
- const rawToolNameMatched = toolNameMatchesAny(toolName, lifecycle.expireOnToolMatch);
121
- // Alias-aware membership (a Codex dotted/server-variant tool_name is
122
- // still a claim verb), so a variant `tasks_transition` cannot fall
123
- // through to plain membership and clear the marker on ANY status
124
- // (review finding on task a1348c89).
125
- const claimKeptByDecider = rawToolNameMatched &&
126
- toolNameMatchesAny(toolName, ACTIVE_CLAIM_TOOL_NAMES) &&
127
- claimEffectForAgentTasksTool(toolName, toolInput, toolResponse) === "none";
128
- const toolNameMatched = rawToolNameMatched && !claimKeptByDecider;
129
- // Bash check only runs when the event is actually a Bash(-alias) call;
130
- // an MCP tool whose name happens to match a regex is not a Bash
131
- // boundary.
132
- const bashRegex = bashToolNames.has(toolName)
133
- ? bashCommandMatchesAny(extractBashCommandFromToolInput(toolInput), lifecycle.expireOnBashMatch)
134
- : undefined;
135
- return {
136
- matched: toolNameMatched || bashRegex !== undefined,
137
- toolNameMatched,
138
- rawToolNameMatched,
139
- claimKeptByDecider,
140
- bashRegex,
141
- };
142
- }
143
- /**
144
- * Side-effecting: clear the session marker, the task-scoped marker
145
- * (when `toolNameMatched` and `tool_input.taskId` names an existing
146
- * marker), and expire the persisted report. Call ONLY after
147
- * `matchPostToolUseBoundary(...).matched` is true — this function does
148
- * not re-check the match itself. Mirrors the Claude hook's original
149
- * side effects exactly so both runtimes share one clearing
150
- * implementation (task a1348c89).
151
- */
152
- export function applyPostToolUseExpiry(generatedDir, sessionId, toolInput, toolNameMatched, reportsDir, now, trigger) {
153
- const markerPath = approvalMarkerPathFor(generatedDir, sessionId);
154
- const wasMarkerPresent = fs.existsSync(markerPath);
155
- clearApprovalMarker(generatedDir, sessionId);
156
- // Task-scoped marker cleanup (harness/1ee26e77). Only when the
157
- // matched tool is an MCP task-transition verb whose tool_input.taskId
158
- // names a specific task; Bash regex boundaries don't carry a taskId
159
- // by design.
160
- let taskMarkerCleared = false;
161
- let clearedTaskId = "";
162
- if (toolNameMatched) {
163
- const taskId = extractTaskIdFromToolInput(toolInput);
164
- if (taskId !== "") {
165
- const taskMarkerPath = taskApprovalMarkerPathFor(generatedDir, taskId);
166
- if (fs.existsSync(taskMarkerPath)) {
167
- clearTaskApprovalMarker(generatedDir, taskId);
168
- taskMarkerCleared = true;
169
- clearedTaskId = taskId;
170
- }
171
- }
172
- }
173
- // Persisted-report expiry (harness/1ee26e77 follow-up). Originally
174
- // closed a silent bypass that existed since PR #172: marker-deletion
175
- // alone did not invalidate the persisted-report fallback. Since task
176
- // 7402301d the report can no longer satisfy the gate on its own, so
177
- // this now exists so the audit record agrees with the cleared marker.
178
- // Best-effort.
179
- const reportExpiry = expirePersistedReport(reportsDir, sessionId, now, trigger);
180
- return {
181
- wasMarkerPresent,
182
- taskMarkerCleared,
183
- clearedTaskId,
184
- persistedReportExpired: reportExpiry.ok,
185
- reportExpiry,
186
- };
187
- }
188
- /**
189
- * Compose the stderr diagnostic line for a matched-and-applied PostToolUse
190
- * expiry. Shared by `harness pack hook post-tool-use` (Claude) and
191
- * `harness pack hook codex-post-tool-use` (Codex) — before this extraction
192
- * the two hooks each built this line by hand from the same four pieces
193
- * (`matchSource`/`taskNote`/`reportNote`/the present-vs-absent branch),
194
- * which `check:duplication` flagged as new clones the moment the Codex
195
- * sibling landed (task a1348c89). `hookLabel` is the caller's own
196
- * `harness pack hook ...` command string so the message still names the
197
- * right verb.
198
- */
199
- export function describePostToolUseExpiry(hookLabel, sessionId, toolName, bashRegex, expiry) {
200
- const matchSource = bashRegex !== undefined
201
- ? `bash regex /${bashRegex.source}/`
202
- : `tool name`;
203
- const taskNote = expiry.taskMarkerCleared
204
- ? `; also cleared task marker for task ${expiry.clearedTaskId}`
205
- : "";
206
- const reportNote = expiry.reportExpiry.ok
207
- ? `; expired persisted report ${expiry.reportExpiry.filePath}`
208
- : `; persisted-report expiry skipped (${expiry.reportExpiry.reason})`;
209
- return expiry.wasMarkerPresent
210
- ? `${hookLabel}: expired approval marker for session ${sessionId} after ${toolName} (${matchSource})${taskNote}${reportNote}`
211
- : `${hookLabel}: ${toolName} matched ${matchSource} but no marker present for session ${sessionId}${taskNote}${reportNote}`;
212
- }
213
- //# sourceMappingURL=post-tool-use-boundary.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"post-tool-use-boundary.js","sourceRoot":"","sources":["../../../../src/policy-packs/builtin/understanding-before-execution/post-tool-use-boundary.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,+EAA+E;AAC/E,2EAA2E;AAC3E,uEAAuE;AACvE,kCAAkC;AAElC,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAC9E,OAAO,EACL,uBAAuB,EACvB,4BAA4B,EAC5B,eAAe,EACf,8BAA8B,GAC/B,MAAM,gDAAgD,CAAC;AAExD,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAC1E,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,C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AyB,CACvC,SAAiB,EACjB,SAAiB,EACjB,QAAgB,EAChB,SAA6B,EAC7B,MAAoC;IAEpC,MAAM,WAAW,GAAG,SAAS,KAAK,SAAS;QACzC,CAAC,CAAC,eAAe,SAAS,CAAC,MAAM,GAAG;QACpC,CAAC,CAAC,WAAW,CAAC;IAChB,MAAM,QAAQ,GAAG,MAAM,CAAC,iBAAiB;QACvC,CAAC,CAAC,uCAAuC,MAAM,CAAC,aAAa,EAAE;QAC/D,CAAC,CAAC,EAAE,CAAC;IACP,MAAM,UAAU,GAAG,MAAM,CAAC,YAAY,CAAC,EAAE;QACvC,CAAC,CAAC,8BAA8B,MAAM,CAAC,YAAY,CAAC,QAAQ,EAAE;QAC9D,CAAC,CAAC,sCAAsC,MAAM,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC;IACxE,OAAO,MAAM,CAAC,gBAAgB;QAC5B,CAAC,CAAC,GAAG,SAAS,yCAAyC,SAAS,UAAU,QAAQ,KAAK,WAAW,IAAI,QAAQ,GAAG,UAAU,EAAE;QAC7H,CAAC,CAAC,GAAG,SAAS,KAAK,QAAQ,YAAY,WAAW,sCAAsC,SAAS,GAAG,QAAQ,GAAG,UAAU,EAAE,CAAC;AAChI,CAAC"}
@@ -1,129 +0,0 @@
1
- import { z } from "zod";
2
- /**
3
- * The optional reminder integration's one shared strict input schema.
4
- * Runtime consumers deliberately parse this schema again: a previously
5
- * generated hook must turn into a no-op when an operator disables or breaks
6
- * the current manifest after apply.
7
- */
8
- export declare const StayInScopeConfigSchema: z.ZodEffects<z.ZodObject<{
9
- enabled: z.ZodBoolean;
10
- tools: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
11
- label_markers: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
12
- description_markers: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
13
- description_window: z.ZodOptional<z.ZodNullable<z.ZodObject<{
14
- marker: z.ZodEffects<z.ZodString, string, string>;
15
- contains: z.ZodEffects<z.ZodString, string, string>;
16
- max_chars: z.ZodNumber;
17
- }, "strict", z.ZodTypeAny, {
18
- marker: string;
19
- contains: string;
20
- max_chars: number;
21
- }, {
22
- marker: string;
23
- contains: string;
24
- max_chars: number;
25
- }>>>;
26
- parent_reference_pattern: z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>>;
27
- parent_url_pattern: z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>>;
28
- messages: z.ZodOptional<z.ZodObject<{
29
- reminder: z.ZodEffects<z.ZodString, string, string>;
30
- second_order: z.ZodEffects<z.ZodString, string, string>;
31
- }, "strict", z.ZodTypeAny, {
32
- reminder: string;
33
- second_order: string;
34
- }, {
35
- reminder: string;
36
- second_order: string;
37
- }>>;
38
- }, "strict", z.ZodTypeAny, {
39
- enabled: boolean;
40
- tools?: string[] | undefined;
41
- label_markers?: string[] | undefined;
42
- description_markers?: string[] | undefined;
43
- description_window?: {
44
- marker: string;
45
- contains: string;
46
- max_chars: number;
47
- } | null | undefined;
48
- parent_reference_pattern?: string | null | undefined;
49
- parent_url_pattern?: string | null | undefined;
50
- messages?: {
51
- reminder: string;
52
- second_order: string;
53
- } | undefined;
54
- }, {
55
- enabled: boolean;
56
- tools?: string[] | undefined;
57
- label_markers?: string[] | undefined;
58
- description_markers?: string[] | undefined;
59
- description_window?: {
60
- marker: string;
61
- contains: string;
62
- max_chars: number;
63
- } | null | undefined;
64
- parent_reference_pattern?: string | null | undefined;
65
- parent_url_pattern?: string | null | undefined;
66
- messages?: {
67
- reminder: string;
68
- second_order: string;
69
- } | undefined;
70
- }>, {
71
- enabled: boolean;
72
- tools?: string[] | undefined;
73
- label_markers?: string[] | undefined;
74
- description_markers?: string[] | undefined;
75
- description_window?: {
76
- marker: string;
77
- contains: string;
78
- max_chars: number;
79
- } | null | undefined;
80
- parent_reference_pattern?: string | null | undefined;
81
- parent_url_pattern?: string | null | undefined;
82
- messages?: {
83
- reminder: string;
84
- second_order: string;
85
- } | undefined;
86
- }, {
87
- enabled: boolean;
88
- tools?: string[] | undefined;
89
- label_markers?: string[] | undefined;
90
- description_markers?: string[] | undefined;
91
- description_window?: {
92
- marker: string;
93
- contains: string;
94
- max_chars: number;
95
- } | null | undefined;
96
- parent_reference_pattern?: string | null | undefined;
97
- parent_url_pattern?: string | null | undefined;
98
- messages?: {
99
- reminder: string;
100
- second_order: string;
101
- } | undefined;
102
- }>;
103
- export interface StayInScopeConfig {
104
- tools: readonly string[];
105
- labelMarkers: readonly string[];
106
- descriptionMarkers: readonly string[];
107
- descriptionWindow: {
108
- marker: string;
109
- contains: string;
110
- maxChars: number;
111
- } | null;
112
- parentReferencePattern: string | null;
113
- parentUrlPattern: string | null;
114
- messages: {
115
- reminder: string;
116
- secondOrder: string;
117
- };
118
- }
119
- /** Returns null for absent, disabled, or invalid configuration. */
120
- export declare function resolveStayInScopeConfig(raw: unknown): StayInScopeConfig | null;
121
- export type StayInScopeMatchedRule = "label" | "hintergrund-marker" | "explicit-marker" | "none";
122
- export interface StayInScopeMatchEvaluation {
123
- matched: boolean;
124
- matchedRule: StayInScopeMatchedRule;
125
- secondOrder: boolean;
126
- parentReference: string | null;
127
- }
128
- export declare function evaluateStayInScopeMatch(config: StayInScopeConfig, labels: readonly string[], description: string): StayInScopeMatchEvaluation;
129
- export declare function extractConfiguredParentUrl(config: StayInScopeConfig, description: string, parentReference: string | null): string | null;