@joshuafolkken/kit 1.1229.0 → 1.1240.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.
- package/.claude/skills/workflow-commands/backlogrun-lanes.md +1 -1
- package/.claude/skills/workflow-commands/backlogrun-progress.md +2 -2
- package/.claude/skills/workflow-commands/followup.md +5 -0
- package/.claude/skills/workflow-commands/kickoff.md +1 -0
- package/.claude/skills/workflow-commands/latest-gate.md +1 -1
- package/.github/workflows/publish.yml +2 -0
- package/README.md +30 -31
- package/dist/hooks/batch-guard.js +4 -4
- package/dist/hooks/{chunk-JUDKDCDP.js → chunk-4TZVB44A.js} +8 -8
- package/dist/hooks/{chunk-RNWHN5BP.js → chunk-F3ELQ2AF.js} +3 -3
- package/dist/hooks/{chunk-VC3PZPZO.js → chunk-GPTFMK5E.js} +1 -1
- package/dist/hooks/{chunk-FIVDHQGT.js → chunk-KHGB5S3Y.js} +1 -1
- package/dist/hooks/{chunk-NV2JRZZO.js → chunk-KHX4U3BG.js} +17 -2
- package/dist/hooks/{chunk-F56MFS4B.js → chunk-KRBERBBI.js} +3 -3
- package/dist/hooks/{chunk-TQNPDZNH.js → chunk-QVSWU24O.js} +4 -4
- package/dist/hooks/{chunk-55HHG5PX.js → chunk-WK2XSHSI.js} +284 -63
- package/dist/hooks/{chunk-5VMKCCC4.js → chunk-XZYKEM6J.js} +2 -2
- package/dist/hooks/{chunk-6HJJXRBX.js → chunk-ZQGD4GBY.js} +1 -1
- package/dist/hooks/codex-hook-adapter.js +10 -10
- package/dist/hooks/duplicate-read-guard.js +5 -5
- package/dist/hooks/format-edited.js +2 -2
- package/dist/hooks/inputs.json +172 -170
- package/dist/hooks/investigation-guard.js +5 -5
- package/dist/hooks/pretool-guard.js +9 -9
- package/dist/hooks/stop-guard.js +3 -17
- package/dist/josh.js +279 -63
- package/package.json +1 -1
- package/prompts/collaboration-workflow/issue-template.md +1 -0
- package/scripts/gate/core-admission.ts +162 -0
- package/scripts/gate/core-budget.ts +121 -67
- package/scripts/gate/gate-plan.ts +35 -2
- package/scripts/gate/gate-report.ts +28 -9
- package/scripts/gate/machine-capacity.ts +175 -0
- package/scripts/gate/verification-gate.ts +7 -2
- package/scripts/init/init.ts +5 -1
- package/scripts/init/package-manager-pin.ts +35 -0
- package/scripts/issue/issue-auto-ok.ts +31 -6
- package/scripts/issue/issue-file-cli.ts +31 -8
- package/scripts/issue/issue-file.ts +5 -0
- package/scripts/issue/issue-labels.ts +13 -0
- package/scripts/issue/issue-release-cli.ts +155 -0
- package/scripts/issue/issue-release.ts +58 -0
- package/scripts/josh/josh-command-types.ts +3 -0
- package/scripts/josh/josh-commands-development.ts +8 -0
- package/scripts/josh/josh-commands-issue.ts +8 -1
- package/scripts/josh/josh-commands-lane.ts +2 -1
- package/scripts/josh/josh-commands-maintenance.ts +2 -2
- package/scripts/josh/josh-logic.ts +4 -3
- package/scripts/lane/lane-cli.ts +9 -1
- package/scripts/lane/lane-leftover.ts +43 -29
- package/scripts/lane/lane-open.ts +5 -5
- package/scripts/lane/lane-paths.ts +13 -0
- package/scripts/lane/lane-registry.ts +11 -0
- package/scripts/lane/lane-stray.ts +140 -0
- package/scripts/release/github-release-environment.ts +1 -0
- package/scripts/release/github-release-runs.ts +115 -0
- package/scripts/release/github-release.ts +13 -67
- package/scripts/run/cut/run-cut-cli.ts +16 -3
- package/scripts/run/event/run-event-render.ts +1 -0
- package/scripts/run/event/run-event-stream.ts +4 -0
- package/scripts/run/run-step.ts +5 -2
- package/scripts/run/wake/run-wake-cli.ts +2 -3
- package/scripts/run/wake/run-wake-describe.ts +56 -5
- package/scripts/run/wake/run-wake-loop.ts +5 -13
- package/scripts/run/wake/run-wake.ts +15 -64
- package/scripts/version/latest-corepack.ts +109 -78
- package/templates/workflows/github-release.yml +4 -0
package/dist/hooks/inputs.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"digest": "
|
|
2
|
+
"digest": "a2504bf3e4b2c35f949a20fe90660a8846bc34028d209ff37021928c08ec8f68",
|
|
3
3
|
"inputs": [
|
|
4
4
|
"scripts/hooks/codex-hook-adapter.ts",
|
|
5
5
|
"scripts/hooks/pretool-guard-cli.ts",
|
|
@@ -11,23 +11,16 @@
|
|
|
11
11
|
"scripts/delegation/investigation-guard.ts",
|
|
12
12
|
"scripts/delegation/duplicate-read-guard.ts",
|
|
13
13
|
"scripts/hooks/pretool-guard.ts",
|
|
14
|
-
"scripts/
|
|
14
|
+
"scripts/hooks/format-edited-file.ts",
|
|
15
15
|
"scripts/josh/hook-decision.ts",
|
|
16
16
|
"scripts/lib/bounded-pool.ts",
|
|
17
17
|
"scripts/time-runtime/time-density-hook.ts",
|
|
18
|
-
"scripts/hooks/format-edited-file.ts",
|
|
19
|
-
"scripts/josh/josh-environment-file.ts",
|
|
20
18
|
"scripts/time-runtime/time-hook-transcript.ts",
|
|
21
|
-
"scripts/delegation/investigation-reads.ts",
|
|
22
|
-
"scripts/time-runtime/time-batch-guard.ts",
|
|
23
|
-
"scripts/security/security-audit-provision-logic.ts",
|
|
24
|
-
"scripts/time-runtime/time-density.ts",
|
|
25
|
-
"ports/index.js",
|
|
26
|
-
"scripts/hooks/step-zero-notice.ts",
|
|
27
19
|
"scripts/agent/agent-headless.ts",
|
|
28
20
|
"scripts/backlog/backlog-ready.ts",
|
|
29
21
|
"scripts/backlog/backlog-stalled-detect.ts",
|
|
30
22
|
"scripts/discovery/repo-party.ts",
|
|
23
|
+
"scripts/josh/session-language.ts",
|
|
31
24
|
"scripts/lane/lane-child-marker.ts",
|
|
32
25
|
"scripts/lane/lane-handoff.ts",
|
|
33
26
|
"scripts/rules/filing-cap.ts",
|
|
@@ -41,248 +34,257 @@
|
|
|
41
34
|
"scripts/run/run-halfrun-resume.ts",
|
|
42
35
|
"scripts/run/run-headless.ts",
|
|
43
36
|
"scripts/run/run-stranded-detect.ts",
|
|
37
|
+
"scripts/time-runtime/time-batch-guard.ts",
|
|
44
38
|
"scripts/lane/lane-guard-policy.ts",
|
|
39
|
+
"scripts/delegation/investigation-reads.ts",
|
|
45
40
|
"scripts/lib/json-value.ts",
|
|
46
41
|
"scripts/time-runtime/time-spans.ts",
|
|
42
|
+
"scripts/josh/josh-environment-file.ts",
|
|
47
43
|
"scripts/init/init-paths.ts",
|
|
48
44
|
"scripts/josh/stamp-file.ts",
|
|
49
45
|
"scripts/lib/error-message.ts",
|
|
50
46
|
"scripts/lib/timed-fetch.ts",
|
|
51
47
|
"scripts/security/security-audit.ts",
|
|
52
48
|
"scripts/security/security-audit-logic.ts",
|
|
49
|
+
"scripts/security/security-audit-provision-logic.ts",
|
|
50
|
+
"scripts/time-runtime/time-density.ts",
|
|
51
|
+
"scripts/hooks/step-zero-notice.ts",
|
|
53
52
|
"scripts/rules/delivered-rules.ts",
|
|
54
53
|
"scripts/run/run-parent-cut-hook.ts",
|
|
55
54
|
"scripts/run/run-watcher-hook.ts",
|
|
55
|
+
"scripts/cost-runtime/cost-transcript.ts",
|
|
56
56
|
"scripts/hooks/format-rewrite-notice.ts",
|
|
57
|
-
"scripts/build/local-bin.ts",
|
|
58
|
-
"scripts/josh/josh-command-types.ts",
|
|
59
57
|
"scripts/lib/timeouts.ts",
|
|
60
58
|
"scripts/hooks/edited-cspell.ts",
|
|
61
|
-
"scripts/
|
|
62
|
-
"scripts/
|
|
63
|
-
"scripts/time-runtime/time-round-trips.ts",
|
|
64
|
-
"scripts/time-runtime/time-transcript-line.ts",
|
|
65
|
-
"scripts/time-runtime/time-bundle-call.ts",
|
|
66
|
-
"scripts/time-runtime/time-bundles.ts",
|
|
67
|
-
"scripts/time-runtime/time-call-identity.ts",
|
|
68
|
-
"scripts/run/carry/run-carry-conversation.ts",
|
|
69
|
-
"scripts/rules/shell-segments.ts",
|
|
70
|
-
"scripts/backlog/backlog-budget.ts",
|
|
71
|
-
"scripts/git/git-command.ts",
|
|
72
|
-
"scripts/josh/process-identity.ts",
|
|
73
|
-
"scripts/run/run-invocation.ts",
|
|
74
|
-
"scripts/run/carry/run-carry-change.ts",
|
|
75
|
-
"scripts/rules/run-tail-rule.ts",
|
|
76
|
-
"scripts/issue/issue-labels.ts",
|
|
77
|
-
"scripts/time-runtime/time-shell.ts",
|
|
78
|
-
"scripts/rules/bash-triggers.ts",
|
|
79
|
-
"scripts/lane/lane-paths.ts",
|
|
80
|
-
"scripts/run/run-issue-number.ts",
|
|
81
|
-
"scripts/time-runtime/time-reported-failure.ts",
|
|
82
|
-
"scripts/test/test-declared-logic.ts",
|
|
83
|
-
"scripts/run/cut/run-cut-handoff.ts",
|
|
59
|
+
"scripts/josh/josh-command-types.ts",
|
|
60
|
+
"scripts/build/local-bin.ts",
|
|
84
61
|
"scripts/rules/tail-commands.ts",
|
|
85
|
-
"scripts/agent/agent-role-profile.ts",
|
|
86
|
-
"scripts/cost-runtime/context-cut-threshold.ts",
|
|
87
|
-
"scripts/git/git-common-directory.ts",
|
|
88
|
-
"scripts/lane/lane-child-invocation.ts",
|
|
89
62
|
"scripts/backlog/backlog-stalled.ts",
|
|
63
|
+
"scripts/discovery/repo-origin.ts",
|
|
64
|
+
"scripts/lane/lane-paths.ts",
|
|
65
|
+
"scripts/run/ship/run-ship-detach.ts",
|
|
66
|
+
"scripts/run/run-invocation.ts",
|
|
90
67
|
"scripts/gh/git-gh-command.ts",
|
|
91
68
|
"scripts/issue/issue-cite.ts",
|
|
92
|
-
"scripts/rules/reply-language.ts",
|
|
93
|
-
"scripts/rules/filing-offer.ts",
|
|
94
69
|
"scripts/josh/josh-run.ts",
|
|
95
|
-
"scripts/rules/issue-citation.ts",
|
|
96
70
|
"scripts/lane/lane-capacity.ts",
|
|
97
71
|
"scripts/lane/lane-registry.ts",
|
|
98
|
-
"scripts/run/event/run-event-stream-emit.ts",
|
|
99
|
-
"scripts/notify/telegram-notify.ts",
|
|
100
72
|
"scripts/run/event/run-event-stream.ts",
|
|
101
|
-
"scripts/
|
|
102
|
-
"scripts/
|
|
73
|
+
"scripts/time-runtime/time-transcript-line.ts",
|
|
74
|
+
"scripts/rules/bash-triggers.ts",
|
|
75
|
+
"scripts/notify/telegram-notify.ts",
|
|
76
|
+
"scripts/time-runtime/time-reported-failure.ts",
|
|
77
|
+
"scripts/run/cut/run-cut-handoff.ts",
|
|
78
|
+
"scripts/rules/run-tail-rule.ts",
|
|
79
|
+
"scripts/rules/shell-segments.ts",
|
|
80
|
+
"scripts/cost-runtime/cost-blocks.ts",
|
|
81
|
+
"scripts/issue/issue-labels.ts",
|
|
82
|
+
"scripts/time-runtime/time-shell.ts",
|
|
83
|
+
"scripts/run/event/run-event-stream-emit.ts",
|
|
84
|
+
"scripts/git/git-common-directory.ts",
|
|
103
85
|
"scripts/discovery/repo-discovery.ts",
|
|
104
|
-
"scripts/
|
|
105
|
-
"scripts/
|
|
86
|
+
"scripts/backlog/backlog-budget.ts",
|
|
87
|
+
"scripts/lane/lane-child-invocation.ts",
|
|
88
|
+
"scripts/agent/agent-role-profile.ts",
|
|
89
|
+
"scripts/cost-runtime/context-cut-threshold.ts",
|
|
90
|
+
"scripts/run/run-issue-number.ts",
|
|
106
91
|
"scripts/lane/lane-reap.ts",
|
|
92
|
+
"scripts/run/carry/run-carry-conversation.ts",
|
|
93
|
+
"scripts/josh/process-identity.ts",
|
|
94
|
+
"scripts/run/carry/run-carry-change.ts",
|
|
95
|
+
"scripts/git/git-command.ts",
|
|
107
96
|
"scripts/run/run-stranded.ts",
|
|
108
97
|
"scripts/run/wake/run-wake.ts",
|
|
109
98
|
"scripts/time-runtime/time-tool-call.ts",
|
|
110
|
-
"scripts/josh/platform-temporary.ts",
|
|
111
99
|
"scripts/time-runtime/time-background.ts",
|
|
112
100
|
"scripts/time-runtime/time-followup-stage.ts",
|
|
113
|
-
"scripts/
|
|
114
|
-
"scripts/
|
|
115
|
-
"scripts/
|
|
116
|
-
"scripts/rules/
|
|
101
|
+
"scripts/time-runtime/time-call-identity.ts",
|
|
102
|
+
"scripts/time-runtime/time-bundle-call.ts",
|
|
103
|
+
"scripts/time-runtime/time-bundles.ts",
|
|
104
|
+
"scripts/rules/reply-language.ts",
|
|
105
|
+
"scripts/rules/filing-offer.ts",
|
|
106
|
+
"scripts/rules/issue-citation.ts",
|
|
107
|
+
"scripts/delegation/delegation-policy.ts",
|
|
108
|
+
"scripts/document/capped-print-part.ts",
|
|
109
|
+
"ports/index.js",
|
|
110
|
+
"scripts/josh/platform-temporary.ts",
|
|
111
|
+
"scripts/run/run-watcher-guard.ts",
|
|
112
|
+
"scripts/time-runtime/time-round-trips.ts",
|
|
113
|
+
"scripts/run/progress/run-progress-read.ts",
|
|
114
|
+
"scripts/test/test-declared-logic.ts",
|
|
117
115
|
"scripts/cost-runtime/cost-cli.ts",
|
|
118
116
|
"scripts/cost-runtime/cost-format.ts",
|
|
119
117
|
"scripts/cost-runtime/cost-verdict.ts",
|
|
120
|
-
"scripts/
|
|
121
|
-
"scripts/
|
|
122
|
-
"scripts/
|
|
123
|
-
"scripts/time-runtime/time-instant.ts",
|
|
118
|
+
"scripts/rules/implementation-cut-verdict.ts",
|
|
119
|
+
"scripts/lib/read-file.ts",
|
|
120
|
+
"scripts/lib/schemas.ts",
|
|
124
121
|
"scripts/rules/direct-filing.ts",
|
|
125
|
-
"scripts/rules/
|
|
122
|
+
"scripts/rules/early-heartbeat.ts",
|
|
123
|
+
"scripts/rules/file-body.ts",
|
|
124
|
+
"scripts/rules/git-force.ts",
|
|
126
125
|
"scripts/rules/implementation-cut.ts",
|
|
127
|
-
"scripts/cost-runtime/own-session.ts",
|
|
128
126
|
"scripts/rules/issue-comments.ts",
|
|
129
127
|
"scripts/rules/issue-fold-rule.ts",
|
|
130
128
|
"scripts/rules/josh-git-bare.ts",
|
|
131
129
|
"scripts/rules/lane-carry-conflict.ts",
|
|
132
|
-
"scripts/cost-runtime/cost-usage.ts",
|
|
133
130
|
"scripts/rules/lane-interactive-ask.ts",
|
|
134
|
-
"scripts/rules/early-heartbeat.ts",
|
|
135
131
|
"scripts/rules/lane-split-park.ts",
|
|
136
|
-
"scripts/rules/file-body.ts",
|
|
137
132
|
"scripts/rules/lane-switch-main.ts",
|
|
138
|
-
"scripts/rules/rule-body-guard.ts",
|
|
139
|
-
"scripts/rules/raw-field-body.ts",
|
|
140
133
|
"scripts/rules/oracle-consulted.ts",
|
|
141
|
-
"scripts/rules/shell-body-trigger.ts",
|
|
142
|
-
"scripts/rules/test-declared-commit.ts",
|
|
143
134
|
"scripts/rules/permission-guards.ts",
|
|
144
|
-
"scripts/rules/third-party-write.ts",
|
|
145
135
|
"scripts/rules/piped-verification.ts",
|
|
146
136
|
"scripts/rules/poll-loop.ts",
|
|
147
|
-
"scripts/rules/wip-cap.ts",
|
|
148
137
|
"scripts/rules/pre-gate-cut.ts",
|
|
149
|
-
"scripts/rules/
|
|
150
|
-
"scripts/
|
|
151
|
-
"scripts/
|
|
152
|
-
"scripts/
|
|
153
|
-
"scripts/git/git-diff-reads.ts",
|
|
154
|
-
"scripts/josh/josh-command-map.ts",
|
|
155
|
-
"scripts/time-runtime/time-agent-bundles.ts",
|
|
156
|
-
"scripts/git/git-pre-push-hook.ts",
|
|
157
|
-
"scripts/git/git-execa-error.ts",
|
|
158
|
-
"scripts/git/git-push-transport.ts",
|
|
159
|
-
"scripts/git/git-spawn.ts",
|
|
160
|
-
"scripts/lib/status-icons.ts",
|
|
161
|
-
"scripts/run/carry/run-carry-streak.ts",
|
|
162
|
-
"scripts/josh/josh-verdict.ts",
|
|
138
|
+
"scripts/rules/raw-field-body.ts",
|
|
139
|
+
"scripts/rules/rule-body-guard.ts",
|
|
140
|
+
"scripts/time-runtime/time-instant.ts",
|
|
141
|
+
"scripts/cost-runtime/cost-usage.ts",
|
|
163
142
|
"scripts/run/detached-launch.ts",
|
|
164
|
-
"scripts/
|
|
165
|
-
"scripts/
|
|
166
|
-
"scripts/
|
|
167
|
-
"scripts/
|
|
143
|
+
"scripts/lib/cli-flags.ts",
|
|
144
|
+
"scripts/gh/git-gh-helpers.ts",
|
|
145
|
+
"scripts/gh/gh-spawn.ts",
|
|
146
|
+
"scripts/lib/ancestor-directories.ts",
|
|
147
|
+
"scripts/lane/lane-seed.ts",
|
|
148
|
+
"scripts/lane/lane-environment.ts",
|
|
149
|
+
"scripts/backlog/backlog-budget-cli.ts",
|
|
168
150
|
"scripts/gh/git-gh-issue.ts",
|
|
169
151
|
"scripts/gh/git-gh-pr.ts",
|
|
170
152
|
"scripts/gh/git-gh-pr-auto-merge.ts",
|
|
171
153
|
"scripts/gh/git-gh-repo.ts",
|
|
172
154
|
"scripts/gh/git-pr-checks-watch.ts",
|
|
173
|
-
"scripts/gh/git-gh-helpers.ts",
|
|
174
|
-
"scripts/time-runtime/time-writes.ts",
|
|
175
|
-
"scripts/josh/process-owner.ts",
|
|
176
|
-
"scripts/lane/lane-seed.ts",
|
|
177
|
-
"scripts/time-runtime/time-single-check.ts",
|
|
178
|
-
"scripts/followup/git-followup-stages.ts",
|
|
179
155
|
"scripts/git/git-worktree.ts",
|
|
180
|
-
"scripts/
|
|
156
|
+
"scripts/epic/epic-triage.ts",
|
|
157
|
+
"scripts/rules/third-party-write.ts",
|
|
158
|
+
"scripts/rules/worktree-guard.ts",
|
|
159
|
+
"scripts/rules/shell-body-trigger.ts",
|
|
160
|
+
"scripts/lib/status-icons.ts",
|
|
161
|
+
"scripts/rules/test-declared-commit.ts",
|
|
162
|
+
"scripts/josh/josh-verdict.ts",
|
|
163
|
+
"scripts/rules/wip-cap.ts",
|
|
164
|
+
"scripts/run/carry/run-carry-streak.ts",
|
|
165
|
+
"scripts/run/ship/run-ship-next.ts",
|
|
166
|
+
"scripts/josh/josh-command-map.ts",
|
|
167
|
+
"scripts/run/event/run-event-scope.ts",
|
|
168
|
+
"scripts/git/git-location-environment.ts",
|
|
169
|
+
"scripts/josh/agent-session-environment.ts",
|
|
170
|
+
"scripts/cost-runtime/context-cut-payback.ts",
|
|
171
|
+
"scripts/discovery/repo-map-logic.ts",
|
|
172
|
+
"scripts/git/constants.ts",
|
|
173
|
+
"scripts/cost-runtime/own-session.ts",
|
|
174
|
+
"scripts/followup/git-followup-stages.ts",
|
|
181
175
|
"scripts/time-runtime/time-phase-names.ts",
|
|
182
|
-
"scripts/
|
|
183
|
-
"scripts/
|
|
184
|
-
"scripts/
|
|
185
|
-
"scripts/
|
|
186
|
-
"scripts/
|
|
187
|
-
"scripts/
|
|
188
|
-
"scripts/
|
|
189
|
-
"scripts/
|
|
190
|
-
"scripts/
|
|
176
|
+
"scripts/time-runtime/time-command-key.ts",
|
|
177
|
+
"scripts/git/git-spawn-sync.ts",
|
|
178
|
+
"scripts/git/git-diff-reads.ts",
|
|
179
|
+
"scripts/git/git-execa-error.ts",
|
|
180
|
+
"scripts/git/git-pre-push-hook.ts",
|
|
181
|
+
"scripts/git/git-push-transport.ts",
|
|
182
|
+
"scripts/git/git-spawn.ts",
|
|
183
|
+
"scripts/time-runtime/time-format.ts",
|
|
184
|
+
"scripts/time-runtime/time-agent-bundles.ts",
|
|
185
|
+
"scripts/time-runtime/time-writes.ts",
|
|
191
186
|
"scripts/time-runtime/time-markers.ts",
|
|
192
|
-
"scripts/
|
|
193
|
-
"scripts/
|
|
194
|
-
"scripts/agent/interactive-ask.ts",
|
|
195
|
-
"scripts/git/git-ssh-keepalive.ts",
|
|
187
|
+
"scripts/time-runtime/time-single-check.ts",
|
|
188
|
+
"scripts/josh/process-owner.ts",
|
|
196
189
|
"scripts/run/progress/run-progress-clock.ts",
|
|
197
190
|
"scripts/run/progress/run-progress-config.ts",
|
|
198
|
-
"scripts/run/run-
|
|
199
|
-
"scripts/cost-runtime/transcript-cwd.ts",
|
|
200
|
-
"scripts/epic/epic-busy.ts",
|
|
201
|
-
"scripts/lane/lane-report.ts",
|
|
202
|
-
"scripts/run/run-liveness.ts",
|
|
203
|
-
"scripts/rules/gh-api.ts",
|
|
191
|
+
"scripts/run/progress/run-progress.ts",
|
|
204
192
|
"scripts/rules/prior-comment-read.ts",
|
|
193
|
+
"scripts/cost-runtime/transcript-cwd.ts",
|
|
205
194
|
"scripts/cost-runtime/codex-usage.ts",
|
|
206
195
|
"scripts/cost-runtime/cost-corpus.ts",
|
|
207
196
|
"scripts/rules/git-argv.ts",
|
|
208
|
-
"scripts/
|
|
209
|
-
"scripts/
|
|
210
|
-
"scripts/
|
|
197
|
+
"scripts/rules/gh-api.ts",
|
|
198
|
+
"scripts/gh/git-gh-exec.ts",
|
|
199
|
+
"scripts/agent/interactive-ask.ts",
|
|
200
|
+
"scripts/run/run-preflight.ts",
|
|
201
|
+
"scripts/epic/epic-busy.ts",
|
|
202
|
+
"scripts/lane/lane-report.ts",
|
|
203
|
+
"scripts/agent/agent-launch-environment.ts",
|
|
204
|
+
"scripts/run/run-liveness.ts",
|
|
205
|
+
"scripts/git/parse-json-array.ts",
|
|
206
|
+
"scripts/gh/git-gh-api-path.ts",
|
|
211
207
|
"scripts/rules/protected-files.ts",
|
|
212
|
-
"scripts/lib/spawn-exit.ts",
|
|
213
|
-
"scripts/run/progress/run-progress.ts",
|
|
214
|
-
"scripts/rules/decision-oracle.ts",
|
|
215
208
|
"scripts/rules/destructive-command.ts",
|
|
216
209
|
"scripts/rules/direct-pr-create.ts",
|
|
217
210
|
"scripts/rules/index-guard.ts",
|
|
218
|
-
"scripts/
|
|
211
|
+
"scripts/agent/codex-home-source.ts",
|
|
212
|
+
"scripts/gh/gh-cli-token.ts",
|
|
213
|
+
"scripts/gh/git-pr-checks-eval.ts",
|
|
214
|
+
"scripts/issue/issue-state.ts",
|
|
215
|
+
"scripts/agent/agent-event.ts",
|
|
216
|
+
"scripts/gh/git-gh-issue-read.ts",
|
|
217
|
+
"scripts/test/test-declared-changed.ts",
|
|
218
|
+
"scripts/run/ship/run-ship-stage.ts",
|
|
219
|
+
"scripts/josh/josh-commands-workflow.ts",
|
|
220
|
+
"scripts/lib/spawn-exit.ts",
|
|
221
|
+
"scripts/cost-runtime/cost-pricing.ts",
|
|
222
|
+
"scripts/josh/josh-commands-ai.ts",
|
|
223
|
+
"scripts/josh/josh-commands-clone.ts",
|
|
224
|
+
"scripts/josh/josh-commands-development.ts",
|
|
225
|
+
"scripts/josh/josh-commands-hooks.ts",
|
|
226
|
+
"scripts/josh/josh-commands-lint.ts",
|
|
227
|
+
"scripts/josh/josh-commands-maintenance.ts",
|
|
228
|
+
"scripts/josh/josh-commands-project.ts",
|
|
229
|
+
"scripts/josh/josh-commands-versioning.ts",
|
|
230
|
+
"scripts/git/git-ssh-keepalive.ts",
|
|
231
|
+
"scripts/josh/josh-commands-split.ts",
|
|
232
|
+
"scripts/josh/path-decision.ts",
|
|
233
|
+
"scripts/doctor/doctor-consumer.ts",
|
|
219
234
|
"scripts/gh/git-gh-issue-write.ts",
|
|
220
|
-
"scripts/gh/git-gh-
|
|
221
|
-
"scripts/gh/git-gh-
|
|
235
|
+
"scripts/gh/git-gh-issue-list.ts",
|
|
236
|
+
"scripts/gh/git-gh-issue-rest.ts",
|
|
237
|
+
"scripts/cost-runtime/cost-attribute.ts",
|
|
238
|
+
"scripts/gh/git-gh-pr-snapshot.ts",
|
|
222
239
|
"scripts/ci/pr-classification.ts",
|
|
223
240
|
"scripts/lib/poll.ts",
|
|
224
|
-
"scripts/gh/git-gh-
|
|
225
|
-
"scripts/
|
|
226
|
-
"scripts/gh/git-gh-exec.ts",
|
|
227
|
-
"scripts/gh/git-gh-issue-list.ts",
|
|
228
|
-
"scripts/gh/git-gh-issue-read.ts",
|
|
229
|
-
"scripts/gh/git-pr-checks-eval.ts",
|
|
230
|
-
"scripts/gh/gh-spawn.ts",
|
|
231
|
-
"scripts/gh/git-pr-checks-parse.ts",
|
|
232
|
-
"scripts/cost-runtime/context-cut-payback.ts",
|
|
233
|
-
"scripts/backlog/backlog-budget-cli.ts",
|
|
234
|
-
"scripts/lib/cli-flags.ts",
|
|
241
|
+
"scripts/gh/git-gh-pr-read.ts",
|
|
242
|
+
"scripts/gh/git-gh-pr-rest.ts",
|
|
235
243
|
"scripts/gh/git-pr-checks.ts",
|
|
236
|
-
"scripts/git
|
|
244
|
+
"scripts/gh/git-pr-checks-parse.ts",
|
|
245
|
+
"scripts/rules/decision-oracle.ts",
|
|
246
|
+
"scripts/rules/oracle-firing.ts",
|
|
237
247
|
"scripts/git/git-ls-remote.ts",
|
|
238
|
-
"scripts/
|
|
248
|
+
"scripts/git/repository-lock.ts",
|
|
249
|
+
"scripts/git/changed-paths.ts",
|
|
250
|
+
"scripts/git/git-schemas.ts",
|
|
251
|
+
"scripts/josh/josh-commands-document.ts",
|
|
239
252
|
"scripts/josh/josh-commands-guard.ts",
|
|
240
|
-
"scripts/josh/josh-commands-split.ts",
|
|
241
253
|
"scripts/josh/josh-commands-issue.ts",
|
|
242
|
-
"scripts/josh/josh-commands-backlog.ts",
|
|
243
|
-
"scripts/josh/josh-commands-run.ts",
|
|
244
|
-
"scripts/josh/josh-commands-document.ts",
|
|
245
254
|
"scripts/josh/josh-commands-lane.ts",
|
|
246
|
-
"scripts/
|
|
247
|
-
"scripts/
|
|
248
|
-
"scripts/
|
|
249
|
-
"scripts/cost-runtime/cost-attribute.ts",
|
|
250
|
-
"scripts/gh/gh-cli-token.ts",
|
|
251
|
-
"scripts/issue/issue-state.ts",
|
|
252
|
-
"scripts/gate/gate-plan.ts",
|
|
253
|
-
"scripts/agent/agent-event.ts",
|
|
254
|
-
"scripts/gate/core-budget.ts",
|
|
255
|
-
"scripts/gh/git-gh-rest-state.ts",
|
|
256
|
-
"scripts/gh/git-gh-failure.ts",
|
|
255
|
+
"scripts/josh/josh-commands-run.ts",
|
|
256
|
+
"scripts/josh/josh-commands-backlog.ts",
|
|
257
|
+
"scripts/agent/claude-result-event.ts",
|
|
257
258
|
"scripts/gh/git-gh-reachability.ts",
|
|
259
|
+
"scripts/gh/git-gh-failure.ts",
|
|
260
|
+
"scripts/gate/project-checks.ts",
|
|
261
|
+
"scripts/gh/git-gh-rest-state.ts",
|
|
262
|
+
"scripts/gh/git-gh-pr-rollup.ts",
|
|
258
263
|
"scripts/gh/git-gh-check.ts",
|
|
264
|
+
"scripts/gh/git-gh-pr-review.ts",
|
|
259
265
|
"scripts/rules/decision-oracle-tokens.ts",
|
|
260
|
-
"scripts/doctor/doctor-consumer.ts",
|
|
261
|
-
"scripts/cost-runtime/cost-pricing.ts",
|
|
262
266
|
"scripts/rules/decision-oracle-batch.ts",
|
|
263
267
|
"scripts/rules/decision-oracle-stage.ts",
|
|
264
|
-
"scripts/
|
|
265
|
-
"scripts/
|
|
266
|
-
"scripts/gh/git-gh-pr-rollup.ts",
|
|
267
|
-
"scripts/test/unit-worker-share.ts",
|
|
268
|
-
"scripts/gate/project-checks.ts",
|
|
269
|
-
"scripts/agent/claude-result-event.ts",
|
|
268
|
+
"scripts/init/project-profile.ts",
|
|
269
|
+
"scripts/test/skip-marker.ts",
|
|
270
270
|
"scripts/version/kit-descriptor.ts",
|
|
271
|
+
"scripts/gate/gate-plan.ts",
|
|
272
|
+
"scripts/gate/core-budget.ts",
|
|
271
273
|
"scripts/run/run-stage.ts",
|
|
272
|
-
"scripts/
|
|
273
|
-
"scripts/
|
|
274
|
-
"scripts/
|
|
274
|
+
"scripts/test/unit-worker-share.ts",
|
|
275
|
+
"scripts/gate/machine-capacity.ts",
|
|
276
|
+
"scripts/gate/core-admission.ts"
|
|
275
277
|
],
|
|
276
278
|
"outputs": [
|
|
277
279
|
"duplicate-read-guard.js",
|
|
278
280
|
"codex-hook-adapter.js",
|
|
279
281
|
"pretool-guard.js",
|
|
280
|
-
"chunk-
|
|
281
|
-
"chunk-
|
|
282
|
+
"chunk-4TZVB44A.js",
|
|
283
|
+
"chunk-QVSWU24O.js",
|
|
282
284
|
"stop-guard.js",
|
|
283
|
-
"chunk-
|
|
285
|
+
"chunk-KHX4U3BG.js",
|
|
284
286
|
"format-edited.js",
|
|
285
|
-
"chunk-
|
|
287
|
+
"chunk-KHGB5S3Y.js",
|
|
286
288
|
"chunk-JBBMAPC4.js",
|
|
287
289
|
"session-lang.js",
|
|
288
290
|
"chunk-6V5OPIUU.js",
|
|
@@ -290,13 +292,13 @@
|
|
|
290
292
|
"chunk-5VNDSNG3.js",
|
|
291
293
|
"chunk-CDY4NFQG.js",
|
|
292
294
|
"batch-guard.js",
|
|
293
|
-
"chunk-
|
|
295
|
+
"chunk-F3ELQ2AF.js",
|
|
294
296
|
"investigation-guard.js",
|
|
295
|
-
"chunk-
|
|
296
|
-
"chunk-
|
|
297
|
-
"chunk-
|
|
298
|
-
"chunk-
|
|
299
|
-
"chunk-
|
|
297
|
+
"chunk-KRBERBBI.js",
|
|
298
|
+
"chunk-XZYKEM6J.js",
|
|
299
|
+
"chunk-GPTFMK5E.js",
|
|
300
|
+
"chunk-ZQGD4GBY.js",
|
|
301
|
+
"chunk-WK2XSHSI.js",
|
|
300
302
|
"chunk-WPALEIRX.js",
|
|
301
303
|
"chunk-RKUAD3I6.js",
|
|
302
304
|
"chunk-ELCN5LCH.js"
|
|
@@ -10,11 +10,11 @@ import {
|
|
|
10
10
|
is_enabled,
|
|
11
11
|
load_environment_file,
|
|
12
12
|
refusal_path
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-KRBERBBI.js";
|
|
14
|
+
import "./chunk-XZYKEM6J.js";
|
|
15
|
+
import "./chunk-GPTFMK5E.js";
|
|
16
|
+
import "./chunk-ZQGD4GBY.js";
|
|
17
|
+
import "./chunk-WK2XSHSI.js";
|
|
18
18
|
import "./chunk-WPALEIRX.js";
|
|
19
19
|
import "./chunk-RKUAD3I6.js";
|
|
20
20
|
import "./chunk-ELCN5LCH.js";
|
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
import {
|
|
3
3
|
pretool_guard,
|
|
4
4
|
pretool_outcome_async
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-4TZVB44A.js";
|
|
6
|
+
import "./chunk-QVSWU24O.js";
|
|
7
|
+
import "./chunk-KHX4U3BG.js";
|
|
8
8
|
import "./chunk-JBBMAPC4.js";
|
|
9
9
|
import "./chunk-CDY4NFQG.js";
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-F3ELQ2AF.js";
|
|
11
|
+
import "./chunk-KRBERBBI.js";
|
|
12
|
+
import "./chunk-XZYKEM6J.js";
|
|
13
|
+
import "./chunk-GPTFMK5E.js";
|
|
14
14
|
import {
|
|
15
15
|
hook_decision
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-ZQGD4GBY.js";
|
|
17
|
+
import "./chunk-WK2XSHSI.js";
|
|
18
18
|
import "./chunk-WPALEIRX.js";
|
|
19
19
|
import "./chunk-RKUAD3I6.js";
|
|
20
20
|
import "./chunk-ELCN5LCH.js";
|
package/dist/hooks/stop-guard.js
CHANGED
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
run_headless,
|
|
24
24
|
run_hold,
|
|
25
25
|
run_invocation
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-KHX4U3BG.js";
|
|
27
27
|
import {
|
|
28
28
|
session_language
|
|
29
29
|
} from "./chunk-6V5OPIUU.js";
|
|
@@ -34,7 +34,7 @@ import "./chunk-CDY4NFQG.js";
|
|
|
34
34
|
import {
|
|
35
35
|
hook_decision,
|
|
36
36
|
lane_child_marker
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-ZQGD4GBY.js";
|
|
38
38
|
import {
|
|
39
39
|
json_value,
|
|
40
40
|
process_identity,
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
time_density_hook,
|
|
43
43
|
time_hook_transcript,
|
|
44
44
|
time_reported_failure
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-WK2XSHSI.js";
|
|
46
46
|
import "./chunk-WPALEIRX.js";
|
|
47
47
|
import "./chunk-RKUAD3I6.js";
|
|
48
48
|
import {
|
|
@@ -1039,7 +1039,6 @@ var WAKE_DECISION = { kind: "wake" };
|
|
|
1039
1039
|
var IDLE_DECISION = { kind: "idle" };
|
|
1040
1040
|
var WAIT_DECISION = { kind: "wait" };
|
|
1041
1041
|
var PENDING_DECISION = { kind: "pending" };
|
|
1042
|
-
var HOLD_DECISION = { kind: "hold" };
|
|
1043
1042
|
var FAILED_DECISION = { kind: "failed" };
|
|
1044
1043
|
var STOP_REASONS = {
|
|
1045
1044
|
none: "ended",
|
|
@@ -1056,7 +1055,6 @@ var run_wake_schema = process_owner_schema.extend({
|
|
|
1056
1055
|
// reads as "no attempt has been made yet" and would restart the retry count on every pass.
|
|
1057
1056
|
attempts: z4.number().optional(),
|
|
1058
1057
|
woke_pid: z4.number().optional(),
|
|
1059
|
-
held_at: z4.string().optional(),
|
|
1060
1058
|
spawned: z4.array(z4.string()).optional(),
|
|
1061
1059
|
idle_since: z4.string().optional(),
|
|
1062
1060
|
profile: agent_role_profile.PROFILE_SCHEMA.optional()
|
|
@@ -1080,14 +1078,9 @@ function decide_not_handed_off(input) {
|
|
|
1080
1078
|
if (input.is_owner_live) return WAIT_DECISION;
|
|
1081
1079
|
return decide_launch(input);
|
|
1082
1080
|
}
|
|
1083
|
-
function is_predecessor_exiting(input) {
|
|
1084
|
-
if (input.woke_at !== void 0 || !input.is_owner_live) return false;
|
|
1085
|
-
return input.held_at === void 0 || !is_overdue(input.held_at, input.now);
|
|
1086
|
-
}
|
|
1087
1081
|
function decide(input) {
|
|
1088
1082
|
if (input.read.kind !== "carried") return { kind: "stop", reason: STOP_REASONS[input.read.kind] };
|
|
1089
1083
|
if (input.read.carry.is_handed_off !== true) return decide_not_handed_off(input);
|
|
1090
|
-
if (is_predecessor_exiting(input)) return HOLD_DECISION;
|
|
1091
1084
|
return decide_launch(input);
|
|
1092
1085
|
}
|
|
1093
1086
|
function wake_path(git_directory) {
|
|
@@ -1132,7 +1125,6 @@ function carried_state(existing, invocation) {
|
|
|
1132
1125
|
woke_at: existing.woke_at,
|
|
1133
1126
|
attempts: existing.attempts,
|
|
1134
1127
|
woke_pid: existing.woke_pid,
|
|
1135
|
-
held_at: existing.held_at,
|
|
1136
1128
|
// **`spawned` carries across too, or a restart mid-run would lose the ids of every session it
|
|
1137
1129
|
// already started** (joshuafolkken/kit#2407) — and `josh time --run`, reading the record after
|
|
1138
1130
|
// the restart, would under-count the whiffs and read the loss as a saving.
|
|
@@ -1166,13 +1158,9 @@ function count_wake(wake, now, pid, session_id) {
|
|
|
1166
1158
|
spawned,
|
|
1167
1159
|
woke_at,
|
|
1168
1160
|
woke_pid: pid,
|
|
1169
|
-
held_at: void 0,
|
|
1170
1161
|
idle_since: void 0
|
|
1171
1162
|
};
|
|
1172
1163
|
}
|
|
1173
|
-
function mark_wait(wake, now) {
|
|
1174
|
-
return wake.held_at === void 0 ? { ...wake, held_at: now.toISOString() } : wake;
|
|
1175
|
-
}
|
|
1176
1164
|
function mark_idle(wake, now) {
|
|
1177
1165
|
return wake.idle_since === void 0 ? { ...wake, idle_since: now.toISOString() } : wake;
|
|
1178
1166
|
}
|
|
@@ -1183,7 +1171,6 @@ function count_claim(wake) {
|
|
|
1183
1171
|
woke,
|
|
1184
1172
|
woke_at: void 0,
|
|
1185
1173
|
attempts: void 0,
|
|
1186
|
-
held_at: void 0,
|
|
1187
1174
|
idle_since: void 0
|
|
1188
1175
|
};
|
|
1189
1176
|
}
|
|
@@ -1217,7 +1204,6 @@ var run_wake = {
|
|
|
1217
1204
|
fresh_wake,
|
|
1218
1205
|
is_supervisor_live,
|
|
1219
1206
|
mark_idle,
|
|
1220
|
-
mark_wait,
|
|
1221
1207
|
parse_wake,
|
|
1222
1208
|
read_own_wake,
|
|
1223
1209
|
read_wake,
|