@outerlayer/cli 0.22.1 → 0.23.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/CHANGELOG.md +20 -0
- package/README.md +4 -1
- package/dist/{agent-setup-LTSLXPS3.js → agent-setup-SNDCEHG2.js} +14 -12
- package/dist/{artifact-link-cmd-OWRI5AJX.js → artifact-link-cmd-LEI6EOZE.js} +2 -2
- package/dist/bridge-QFN3KJP6.js +8 -0
- package/dist/{build-6WRNZPVR.js → build-WHHFA7KM.js} +2 -2
- package/dist/build-info.json +1 -1
- package/dist/{builder-G3MLDMTI.js → builder-7FBQAWQZ.js} +3 -3
- package/dist/{check-UYKEMQNR.js → check-3CGLWMHM.js} +37 -37
- package/dist/{chunk-ZPSLJFGL.js → chunk-2TT7DEMZ.js} +2 -2
- package/dist/{chunk-3V5C64Y5.js → chunk-6AOZD3LY.js} +3 -4
- package/dist/{chunk-5NJIWKD4.js → chunk-BOG4ENP7.js} +9 -9
- package/dist/{chunk-G3IJ3N6F.js → chunk-BUP5N3X6.js} +1 -1
- package/dist/{chunk-FRNYCJ4W.js → chunk-C2XZBNHY.js} +1 -1
- package/dist/{chunk-BET347JZ.js → chunk-C64D7HR3.js} +6 -7
- package/dist/{chunk-AEKSX4EY.js → chunk-CBCKD6DO.js} +1 -1
- package/dist/{chunk-56X5TOJY.js → chunk-D64E222W.js} +5 -6
- package/dist/{chunk-URAKVDSI.js → chunk-DJYOCD65.js} +9 -10
- package/dist/{chunk-IZSVXRDR.js → chunk-DXDF43YG.js} +1 -1
- package/dist/{chunk-F7CU5ABH.js → chunk-DYEFPYME.js} +1 -1
- package/dist/{chunk-ORNJJ7XN.js → chunk-FX6IHR5C.js} +11 -12
- package/dist/{chunk-ENTHEUKT.js → chunk-G3LHWUBK.js} +4 -4
- package/dist/{chunk-5QRP3MVS.js → chunk-GNPTU4BM.js} +9 -4
- package/dist/{chunk-JRCSET55.js → chunk-GXV73IIS.js} +6 -6
- package/dist/{chunk-5OCIHFGE.js → chunk-HBISTTG3.js} +32 -23
- package/dist/chunk-JKNYTNYD.js +151 -0
- package/dist/{chunk-CUFFDEF3.js → chunk-KGKFEONR.js} +4 -4
- package/dist/{chunk-USWVXQIH.js → chunk-MQ743JX3.js} +3 -3
- package/dist/{chunk-XR56WEA5.js → chunk-OGMZJWWD.js} +1 -1
- package/dist/chunk-QS43O4DR.js +113 -0
- package/dist/{chunk-FOCML5FI.js → chunk-QSEPKZXR.js} +15 -14
- package/dist/{chunk-7VUK5RFS.js → chunk-QZBXLLTV.js} +36 -1
- package/dist/{chunk-WFSUUUAN.js → chunk-RKOTJQVG.js} +1 -1
- package/dist/{chunk-7FEY33MY.js → chunk-TFGXOHF6.js} +13 -13
- package/dist/{chunk-V7SAQ645.js → chunk-VJBFQP3H.js} +21 -12
- package/dist/{chunk-ZNPE7FW5.js → chunk-VPEGE3QZ.js} +1 -1
- package/dist/{chunk-W3SWJ2TD.js → chunk-VWFOKRYS.js} +5 -2
- package/dist/{chunk-XCRZTXRL.js → chunk-WX2WEERU.js} +63 -43
- package/dist/chunk-WXJXHZVB.js +73 -0
- package/dist/{chunk-BOMRFYTZ.js → chunk-WY7HFY62.js} +3 -3
- package/dist/{chunk-VSUXCMMH.js → chunk-XFGL53GU.js} +51 -33
- package/dist/{chunk-6YBLN4TR.js → chunk-XGPC3IOR.js} +4 -5
- package/dist/{chunk-QC72I5GQ.js → chunk-XOEV4FVK.js} +3 -3
- package/dist/{chunk-EAQSOE62.js → chunk-XSPA5ODY.js} +21 -19
- package/dist/{chunk-JZGFDTNC.js → chunk-Z42JY3LQ.js} +20 -3
- package/dist/{chunk-O6RJ3QMU.js → chunk-ZKWKQIJU.js} +86 -6
- package/dist/{chunk-QOALB6ZD.js → chunk-ZLZ3XVPI.js} +3 -3
- package/dist/{claude-launcher-TBWV3YL3.js → claude-launcher-KEESTJHO.js} +5 -5
- package/dist/{cli-U253V422.js → cli-44WGGICQ.js} +126 -112
- package/dist/{command-IQTPFSXY.js → command-4FAP2D3P.js} +22 -23
- package/dist/connect-cmd-6DUTUK63.js +22 -0
- package/dist/{context-cleanup-DSA3HGQU.js → context-cleanup-LTH77FC3.js} +3 -3
- package/dist/{control-plane-launch-OWSNH6YA.js → control-plane-launch-SEYCOZFH.js} +8 -9
- package/dist/{dist-7IH56ELA.js → dist-SOH3O24Y.js} +2 -2
- package/dist/{docker-JU422JL7.js → docker-KMK4LOET.js} +3 -3
- package/dist/{doctor-FZTS57ZO.js → doctor-4H77CEB7.js} +24 -25
- package/dist/{emit-artifact-cmd-YLZ5WLSF.js → emit-artifact-cmd-XCZ3ALLV.js} +15 -15
- package/dist/emit-cmd-WQH2NK7H.js +15 -0
- package/dist/{emit-criteria-cmd-MF6TVE7C.js → emit-criteria-cmd-JE72JHKJ.js} +10 -10
- package/dist/{emit-finding-cmd-S3YMFTZT.js → emit-finding-cmd-ILIDRMYN.js} +10 -10
- package/dist/{emit-result-cmd-JHEUFTPX.js → emit-result-cmd-WPKG5YAS.js} +15 -15
- package/dist/{emit-step-cmd-TUI2T3DS.js → emit-step-cmd-OVMLQSL6.js} +11 -11
- package/dist/{governing-source-XSEIRSBE.js → governing-source-EQBKPME7.js} +16 -17
- package/dist/{guest-init-DF7V5D2R.js → guest-init-HWSE7W6L.js} +3 -2
- package/dist/{hook-fast-O3UUN6SO.js → hook-fast-27SHD72I.js} +1 -1
- package/dist/{hook-wrap-fast-NPLHJXFK.js → hook-wrap-fast-NOOGDNSW.js} +2 -2
- package/dist/{import-capture-cmd-Q56DDZVO.js → import-capture-cmd-TCOKNVBM.js} +12 -7
- package/dist/{import-ruler-cmd-T6LLO6Q7.js → import-ruler-cmd-VJOHOJQ7.js} +2 -2
- package/dist/index.js +6 -6
- package/dist/{init-ZZZPYGUH.js → init-HAAHIQFN.js} +23 -24
- package/dist/{init-VZE72CR4.js → init-WQ62BXDN.js} +23 -24
- package/dist/{init-cmd-W5VV62ZN.js → init-cmd-VPFIDY64.js} +24 -24
- package/dist/init-update-UZIJ2FMU.js +529 -0
- package/dist/layout-UOJQGEPW.js +10 -0
- package/dist/{login-browser-BN5UKPHS.js → login-browser-4OMZFP3U.js} +4 -3
- package/dist/{logout-cmd-RZFWTNYD.js → logout-cmd-5V5MMBSY.js} +2 -2
- package/dist/{loop-6WENRS5S.js → loop-JPW2QJ64.js} +37 -37
- package/dist/{machine-M4MQBV5A.js → machine-PGDRWPI2.js} +22 -23
- package/dist/{mcp-install-cmd-GD4QUP7Z.js → mcp-install-cmd-GGWB3JJ2.js} +2 -2
- package/dist/{mcp-serve-cmd-SBW7HYKD.js → mcp-serve-cmd-CNRC5AL5.js} +3 -3
- package/dist/{runner-identity-FTHZFMGY.js → runner-identity-IIZ3RK7M.js} +3 -3
- package/dist/{runner-key-QT7GKGEE.js → runner-key-BPP5XRYR.js} +23 -24
- package/dist/{session-sender-BK6TGNVO.js → session-sender-EKKZ5DEU.js} +16 -16
- package/dist/{settings-J2652U5N.js → settings-AKYEOCC2.js} +1 -1
- package/dist/{spec-cmd-ZNJ3GXWC.js → spec-cmd-JDHGNFVJ.js} +11 -11
- package/dist/{starter-pack-5EQYGSJF.js → starter-pack-55EFILC5.js} +7 -4
- package/dist/{status-JOO7MGIC.js → status-UCQDEMFX.js} +30 -30
- package/dist/{statusline-fast-2OK3DVAA.js → statusline-fast-GVRSBHAF.js} +2 -2
- package/dist/{sync-cmd-W2FPY3T5.js → sync-cmd-NSVXOYFJ.js} +15 -15
- package/dist/{watch-WLH5ZUZU.js → watch-NQVZWPBJ.js} +15 -15
- package/dist/{work-claim-cmd-4PLDTEZR.js → work-claim-cmd-FPJXQAXP.js} +13 -13
- package/dist/{work-cmd-KWHAYUYB.js → work-cmd-FMPDXPU6.js} +11 -11
- package/dist/{work-comment-cmd-4CUI7ZDE.js → work-comment-cmd-ZVUE2IUN.js} +11 -11
- package/dist/{work-logs-cmd-AF253WLM.js → work-logs-cmd-CQH2SYT4.js} +11 -11
- package/dist/{work-open-pr-cmd-JETE6HRL.js → work-open-pr-cmd-YY2OGJOI.js} +12 -12
- package/dist/{work-pr-cmd-V5G4CPMG.js → work-pr-cmd-EHFTEVJO.js} +11 -11
- package/dist/{work-stop-cmd-FIEKUDGE.js → work-stop-cmd-LGWSBSBT.js} +11 -11
- package/package.json +1 -1
- package/skill-pack/maintained/outerlayer-amend/SKILL.md +83 -82
- package/skill-pack/maintained/outerlayer-build/SKILL.md +4 -2
- package/skill-pack/maintained/outerlayer-build/references/agent-briefs.md +17 -4
- package/skill-pack/maintained/outerlayer-build/references/criteria-judge.md +10 -0
- package/skill-pack/maintained/outerlayer-build/references/release.md +7 -4
- package/skill-pack/maintained/outerlayer-build/references/review-briefs.md +10 -3
- package/skill-pack/maintained/outerlayer-cli/SKILL.md +13 -4
- package/skill-pack/maintained/outerlayer-cli/references/merge-base-branch.md +54 -0
- package/dist/chunk-NTRCK4NH.js +0 -38
- package/dist/chunk-QF7WZUU6.js +0 -56
- package/dist/connect-cmd-ZFOK6HEL.js +0 -17
- package/dist/emit-cmd-3W5IO5ET.js +0 -14
- package/dist/init-update-YFPIQS5G.js +0 -211
- package/dist/{chunk-F35VMF5M.js → chunk-GOSFARMS.js} +1 -1
- package/dist/{chunk-3AZYLAJC.js → chunk-QILR6TZP.js} +1 -1
- package/dist/{chunk-DIB2WLBL.js → chunk-YVZJ6GKF.js} +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @outerlayer/cli
|
|
2
2
|
|
|
3
|
+
## 0.23.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 9e49a10: `outerlayer init` keeps instructions in `AGENTS.md` and skills in `.agents/skills/`, with a `.claude/skills` link to `../.agents/skills`. Nothing generated is committed. `outerlayer init --update` moves an existing repository to this layout and removes the generated copies. It never deletes a file you edited. In a repository that uses only Claude Code or Codex, `outerlayer context emit` prints a notice that names `init --update`.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 9810558: The build skill's criteria judge marks a criterion not satisfied when its test checks a stand-in for the outcome, such as the arguments a program starts with, or when the judge's own reason says part of the outcome is not asserted. The implementer and test-strength reviewer briefs say the same: a test proves a criterion only when it runs the code that produces the outcome.
|
|
12
|
+
|
|
13
|
+
## 0.22.2
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- c523c60: The `outerlayer-build` skill tells its agents to wait for a command that runs past the shell's timeout. A build no longer reports a mutation run as over budget while that run is still going.
|
|
18
|
+
- 2d1bbb2: The CLI names itself and its version in the `User-Agent` of every request it sends to OuterLayer, as `outerlayer-cli/<version>`.
|
|
19
|
+
- 3eae44d: `outerlayer init` keeps every other key of a hook it wraps, such as `timeout`. `outerlayer hooks unwrap` gives the hook back as you wrote it. A hook that runs no command, such as a `prompt` hook, stays as you wrote it. Before, such a hook stopped `init` before the agent setup and doctor steps. A second `init` says again to commit and push `.outerlayer/` while its files are not committed.
|
|
20
|
+
- 750d20b: The amend and build skills merge the base branch into a pull request that has a merge conflict. They no longer rebase it.
|
|
21
|
+
- 641eb3c: In a microVM build, containers and `docker build` steps reach public hosts through the runner's tunnel, under the same `allowHosts` list.
|
|
22
|
+
|
|
3
23
|
## 0.22.1
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -221,7 +221,10 @@ content:
|
|
|
221
221
|
helper from github.com, and checks each against a sha256 pinned in the CLI;
|
|
222
222
|
the requests send nothing about the host. The build reaches the network only
|
|
223
223
|
through the same tunnel a container build uses, which the runner serves on
|
|
224
|
-
Unix sockets and the guest reaches over vsock.
|
|
224
|
+
Unix sockets and the guest reaches over vsock. In a build with Docker, the
|
|
225
|
+
guest forwards the proxy connections of containers and `docker build` steps
|
|
226
|
+
from `172.17.0.1:3128` to that tunnel, so the same refusals apply to them.
|
|
227
|
+
The guest's exec agent accepts
|
|
225
228
|
connections from the host only, and the runner runs every step of the build
|
|
226
229
|
through it, including the build's command (`outerlayer vm-exec` on the host).
|
|
227
230
|
- **`outerlayer runner start` with `builtin:container` hooks** runs each
|
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { keepHandWritten, runAgentSetup } from './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
3
|
+
export { keepHandWritten, runAgentSetup } from './chunk-ZKWKQIJU.js';
|
|
4
|
+
import './chunk-WX2WEERU.js';
|
|
5
|
+
import './chunk-VJBFQP3H.js';
|
|
6
|
+
import './chunk-XGPC3IOR.js';
|
|
7
|
+
import './chunk-MQ743JX3.js';
|
|
8
|
+
import './chunk-QS43O4DR.js';
|
|
9
9
|
import './chunk-ZJSNLVCE.js';
|
|
10
10
|
import './chunk-BJ3KTMDH.js';
|
|
11
|
-
import './chunk-
|
|
12
|
-
import './chunk-EABW6AJQ.js';
|
|
13
|
-
import './chunk-V7SAQ645.js';
|
|
14
|
-
import './chunk-5OCIHFGE.js';
|
|
11
|
+
import './chunk-YVZJ6GKF.js';
|
|
15
12
|
import './chunk-ANPNT6PM.js';
|
|
13
|
+
import './chunk-EABW6AJQ.js';
|
|
14
|
+
import './chunk-JKNYTNYD.js';
|
|
15
|
+
import './chunk-HBISTTG3.js';
|
|
16
16
|
import './chunk-CRB3POP4.js';
|
|
17
|
+
import './chunk-VWFOKRYS.js';
|
|
17
18
|
import './chunk-YQR6E6OV.js';
|
|
18
|
-
import './chunk-
|
|
19
|
-
import './chunk-
|
|
19
|
+
import './chunk-TUSYOL2O.js';
|
|
20
|
+
import './chunk-RKOTJQVG.js';
|
|
21
|
+
import './chunk-QZBXLLTV.js';
|
|
20
22
|
import './chunk-VNVZDWO3.js';
|
|
21
23
|
import './chunk-RA3O54FC.js';
|
|
22
24
|
import './chunk-OW52QLK3.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { sanitizeTerminal, readEffectiveArtifactSpoolState } from './chunk-
|
|
3
|
+
import { sanitizeTerminal, readEffectiveArtifactSpoolState } from './chunk-BUP5N3X6.js';
|
|
4
4
|
import { cliInvocation } from './chunk-CRB3POP4.js';
|
|
5
|
-
import './chunk-
|
|
5
|
+
import './chunk-QZBXLLTV.js';
|
|
6
6
|
import { homeFromEnv } from './chunk-VNVZDWO3.js';
|
|
7
7
|
import './chunk-Z5GEFMRW.js';
|
|
8
8
|
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire } from 'node:module';
|
|
3
|
+
export { BRIDGE_ADDRESS, BRIDGE_CIDR, CONTAINER_NO_PROXY, CONTAINER_PROXY, TUNNEL_PORT, dockerClientConfig, startBridgeForward, writeDockerClientConfig } from './chunk-WXJXHZVB.js';
|
|
4
|
+
import './chunk-URWYRAIC.js';
|
|
5
|
+
import './chunk-GISNHSYL.js';
|
|
6
|
+
import './chunk-Z5GEFMRW.js';
|
|
7
|
+
|
|
8
|
+
createRequire(import.meta.url);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { buildRepositoryImage } from './chunk-
|
|
4
|
-
export { RecipeError } from './chunk-3W333NFO.js';
|
|
3
|
+
export { buildRepositoryImage } from './chunk-QILR6TZP.js';
|
|
5
4
|
import './chunk-XACXXKQ5.js';
|
|
6
5
|
import './chunk-JBJTC3UU.js';
|
|
6
|
+
export { RecipeError } from './chunk-3W333NFO.js';
|
|
7
7
|
import './chunk-IHNQWF6F.js';
|
|
8
8
|
import './chunk-URWYRAIC.js';
|
|
9
9
|
import './chunk-GISNHSYL.js';
|
package/dist/build-info.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"id":"2026-10-
|
|
1
|
+
{"id":"2026-10-15T02:32:03.730Z+264fcdb","root":"/home/runner/_work/outerlayer/outerlayer","pkg":"outerlayer"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { MIN_BUILDX_VERSION, builderName, builderSpec, buildxState, ensureBuilder, ensureFailureCount, isOutOfMemory, proxyEnvironment, trackImageBuild } from './chunk-
|
|
3
|
+
export { MIN_BUILDX_VERSION, builderName, builderSpec, buildxState, ensureBuilder, ensureFailureCount, isOutOfMemory, proxyEnvironment, trackImageBuild } from './chunk-OGMZJWWD.js';
|
|
4
4
|
import './chunk-3W333NFO.js';
|
|
5
5
|
import './chunk-7RQ73DLO.js';
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
6
|
+
import './chunk-CBCKD6DO.js';
|
|
7
|
+
import './chunk-QZBXLLTV.js';
|
|
8
8
|
import './chunk-OW52QLK3.js';
|
|
9
9
|
import './chunk-IHNQWF6F.js';
|
|
10
10
|
import './chunk-URWYRAIC.js';
|
|
@@ -1,69 +1,69 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { probeCredentials } from './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import { probeCredentials } from './chunk-TFGXOHF6.js';
|
|
4
|
+
import './chunk-QSEPKZXR.js';
|
|
5
|
+
import './chunk-CQAEV3Z5.js';
|
|
6
|
+
import './chunk-UF5L4BAI.js';
|
|
5
7
|
import './chunk-3JVYMD4G.js';
|
|
6
|
-
import './chunk-I2UOAV7X.js';
|
|
7
8
|
import './chunk-YETTWTAY.js';
|
|
9
|
+
import './chunk-I2UOAV7X.js';
|
|
8
10
|
import './chunk-TPKYTORP.js';
|
|
9
|
-
import './chunk-
|
|
10
|
-
import './chunk-
|
|
11
|
-
import './chunk-
|
|
12
|
-
import './chunk-
|
|
13
|
-
import './chunk-
|
|
14
|
-
import './chunk-56X5TOJY.js';
|
|
11
|
+
import './chunk-WY7HFY62.js';
|
|
12
|
+
import './chunk-Z42JY3LQ.js';
|
|
13
|
+
import './chunk-WXJXHZVB.js';
|
|
14
|
+
import './chunk-DJYOCD65.js';
|
|
15
|
+
import './chunk-D64E222W.js';
|
|
15
16
|
import './chunk-ESVW4MJY.js';
|
|
16
|
-
import { placeholderQueues, placeholderProblem, permissionModeProblems, permissionModeProblem, needsClaudeCredential, claudeCredentialCheck, claimPermissionProblem, formerSkillQueues, formerSkillProblem } from './chunk-
|
|
17
|
+
import { placeholderQueues, placeholderProblem, permissionModeProblems, permissionModeProblem, needsClaudeCredential, claudeCredentialCheck, claimPermissionProblem, formerSkillQueues, formerSkillProblem } from './chunk-G3LHWUBK.js';
|
|
17
18
|
import './chunk-YYYRBYWG.js';
|
|
18
19
|
import './chunk-276D7BJ7.js';
|
|
19
20
|
import './chunk-TBT347UY.js';
|
|
20
|
-
import './chunk-
|
|
21
|
+
import './chunk-2TT7DEMZ.js';
|
|
22
|
+
import './chunk-C2XZBNHY.js';
|
|
23
|
+
import './chunk-BOG4ENP7.js';
|
|
21
24
|
import './chunk-4AVDD7VX.js';
|
|
22
25
|
import './chunk-OBCFK4QD.js';
|
|
23
26
|
import { parseRunnerEnv } from './chunk-6MZSX4M7.js';
|
|
24
|
-
import './chunk-
|
|
25
|
-
import './chunk-
|
|
26
|
-
import './chunk-
|
|
27
|
+
import './chunk-QILR6TZP.js';
|
|
28
|
+
import './chunk-XACXXKQ5.js';
|
|
29
|
+
import './chunk-JBJTC3UU.js';
|
|
27
30
|
import './chunk-OGFGZQA3.js';
|
|
28
|
-
import './chunk-
|
|
31
|
+
import './chunk-OGMZJWWD.js';
|
|
29
32
|
import './chunk-3W333NFO.js';
|
|
30
33
|
import './chunk-NYTZ7HVN.js';
|
|
31
34
|
import './chunk-2Q3PZ42G.js';
|
|
32
|
-
import './chunk-
|
|
33
|
-
import './chunk-
|
|
34
|
-
import './chunk-
|
|
35
|
-
import './chunk-
|
|
36
|
-
import './chunk-
|
|
37
|
-
import './chunk-
|
|
38
|
-
import './chunk-
|
|
35
|
+
import './chunk-KGKFEONR.js';
|
|
36
|
+
import './chunk-C64D7HR3.js';
|
|
37
|
+
import './chunk-ZLZ3XVPI.js';
|
|
38
|
+
import './chunk-GXV73IIS.js';
|
|
39
|
+
import './chunk-BUP5N3X6.js';
|
|
40
|
+
import './chunk-XSPA5ODY.js';
|
|
41
|
+
import './chunk-GOSFARMS.js';
|
|
39
42
|
import { loadRunnerConfig, RunnerConfigError, checkHooks } from './chunk-V5CG75NX.js';
|
|
40
43
|
import './chunk-UXYLWVTQ.js';
|
|
41
44
|
import './chunk-7RQ73DLO.js';
|
|
42
|
-
import './chunk-
|
|
43
|
-
import './chunk-
|
|
44
|
-
import './chunk-
|
|
45
|
-
import './chunk-
|
|
46
|
-
import './chunk-QF7WZUU6.js';
|
|
47
|
-
import './chunk-NTRCK4NH.js';
|
|
48
|
-
import './chunk-QC72I5GQ.js';
|
|
45
|
+
import './chunk-XGPC3IOR.js';
|
|
46
|
+
import './chunk-MQ743JX3.js';
|
|
47
|
+
import './chunk-QS43O4DR.js';
|
|
48
|
+
import './chunk-XOEV4FVK.js';
|
|
49
49
|
import './chunk-ZJSNLVCE.js';
|
|
50
|
-
import './chunk-
|
|
50
|
+
import './chunk-DYEFPYME.js';
|
|
51
51
|
import './chunk-BKO6JEZI.js';
|
|
52
|
-
import './chunk-
|
|
52
|
+
import './chunk-VPEGE3QZ.js';
|
|
53
53
|
import './chunk-HCVLP7XA.js';
|
|
54
54
|
import './chunk-BJ3KTMDH.js';
|
|
55
|
-
import './chunk-
|
|
56
|
-
import './chunk-EABW6AJQ.js';
|
|
57
|
-
import './chunk-5OCIHFGE.js';
|
|
55
|
+
import './chunk-CBCKD6DO.js';
|
|
58
56
|
import './chunk-ANPNT6PM.js';
|
|
57
|
+
import './chunk-EABW6AJQ.js';
|
|
58
|
+
import './chunk-HBISTTG3.js';
|
|
59
59
|
import './chunk-T2Q7ISPE.js';
|
|
60
60
|
import './chunk-WZBHBH3J.js';
|
|
61
61
|
import './chunk-CRB3POP4.js';
|
|
62
|
-
import './chunk-
|
|
62
|
+
import './chunk-GNPTU4BM.js';
|
|
63
63
|
import './chunk-YQR6E6OV.js';
|
|
64
64
|
import './chunk-TUSYOL2O.js';
|
|
65
|
-
import './chunk-
|
|
66
|
-
import './chunk-
|
|
65
|
+
import './chunk-RKOTJQVG.js';
|
|
66
|
+
import './chunk-QZBXLLTV.js';
|
|
67
67
|
import './chunk-VNVZDWO3.js';
|
|
68
68
|
import './chunk-RA3O54FC.js';
|
|
69
69
|
import './chunk-OW52QLK3.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
+
import { detectMachine, supportsContainerBuilds, reachDockerStep, describeMachineDocker, supportsMicroVmBuilds } from './chunk-C2XZBNHY.js';
|
|
4
|
+
import { MIN_ENGINE_MAJOR } from './chunk-BOG4ENP7.js';
|
|
3
5
|
import { hasStoredCredential, AGENT_COMMANDS, storeClaudeCredential, credentialFromStdin, isAgentName } from './chunk-4AVDD7VX.js';
|
|
4
|
-
import { detectMachine, supportsContainerBuilds, reachDockerStep, describeMachineDocker, supportsMicroVmBuilds } from './chunk-FRNYCJ4W.js';
|
|
5
|
-
import { MIN_ENGINE_MAJOR } from './chunk-5NJIWKD4.js';
|
|
6
6
|
import { runnerCredentialProblem } from './chunk-V5CG75NX.js';
|
|
7
7
|
import { runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-IHNQWF6F.js';
|
|
8
8
|
import { existsSync, readFileSync, mkdirSync, writeFileSync } from 'fs';
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { autoConnect, detectActiveSession } from './chunk-
|
|
4
|
-
import { defaultFetch } from './chunk-
|
|
5
|
-
import {
|
|
6
|
-
import { resolveRepoIdentity } from './chunk-AEKSX4EY.js';
|
|
3
|
+
import { autoConnect, detectActiveSession } from './chunk-ZLZ3XVPI.js';
|
|
4
|
+
import { defaultFetch, unauthorizedMessage, resolveGatewayCredentials } from './chunk-QS43O4DR.js';
|
|
5
|
+
import { resolveRepoIdentity } from './chunk-CBCKD6DO.js';
|
|
7
6
|
import { C } from './chunk-ANPNT6PM.js';
|
|
8
7
|
import { parseWorkItemEnv } from './chunk-T2Q7ISPE.js';
|
|
9
8
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { readDefaultBranchHead, cloneRepository, buildRepositoryImage } from './chunk-
|
|
3
|
+
import { readDefaultBranchHead, cloneRepository, buildRepositoryImage } from './chunk-QILR6TZP.js';
|
|
4
|
+
import { startTimeOf, isSameProcess } from './chunk-JBJTC3UU.js';
|
|
4
5
|
import { currentCliBuild } from './chunk-OGFGZQA3.js';
|
|
5
|
-
import { createDockerHost, builderSpec, runnerLabelValue, RUNNER_LABEL, BUILD_LABEL, prepareRunArgs, containerRunArgs, HASH_ARGV, parseProgramHash, JUDGE_PROGRAM, containerExecArgs, childEnvironment, JUDGE_DIR, JUDGE_REPORT, MAX_REPORT_BYTES, spawnRun } from './chunk-
|
|
6
|
+
import { createDockerHost, builderSpec, runnerLabelValue, RUNNER_LABEL, BUILD_LABEL, prepareRunArgs, containerRunArgs, HASH_ARGV, parseProgramHash, JUDGE_PROGRAM, containerExecArgs, childEnvironment, JUDGE_DIR, JUDGE_REPORT, MAX_REPORT_BYTES, spawnRun } from './chunk-OGMZJWWD.js';
|
|
6
7
|
import { RecipeError, CLAUDE_CODE_VERSION, firecrackerArch, MICROVM_ARCHES, DEFAULT_BASE_IMAGE, GUEST_HELPER_SHA256, GUEST_ASSETS_BASE_URL, GUEST_KERNEL_SHA256, FIRECRACKER_BINARY_SHA256, FIRECRACKER_SHA256, FIRECRACKER_VERSION, GUEST_ASSETS_VERSION } from './chunk-3W333NFO.js';
|
|
7
8
|
import { execCapture } from './chunk-NYTZ7HVN.js';
|
|
8
9
|
import { GUEST_CID } from './chunk-2Q3PZ42G.js';
|
|
9
|
-
import { describeCallFailure, controlPlaneTokenFailure, refusalCode, resolveGoverningSource, removeStagedContext, stageGovernedContext, pinnedSourceOf, commandWithShim, shimScript } from './chunk-
|
|
10
|
-
import { WorkCommandError } from './chunk-
|
|
10
|
+
import { describeCallFailure, controlPlaneTokenFailure, refusalCode, resolveGoverningSource, removeStagedContext, stageGovernedContext, pinnedSourceOf, commandWithShim, shimScript } from './chunk-KGKFEONR.js';
|
|
11
|
+
import { WorkCommandError } from './chunk-C64D7HR3.js';
|
|
11
12
|
import { hostAllowed } from './chunk-UXYLWVTQ.js';
|
|
12
13
|
import { parseDuKilobytes } from './chunk-7RQ73DLO.js';
|
|
13
|
-
import {
|
|
14
|
-
import { sharedSkillNames, skillConflictMessage } from './chunk-ZNPE7FW5.js';
|
|
14
|
+
import { sharedSkillNames, skillConflictMessage } from './chunk-VPEGE3QZ.js';
|
|
15
15
|
import { versionAtLeast, MINIMUM_CLAUDE_VERSION } from './chunk-HCVLP7XA.js';
|
|
16
|
-
import { setCustomScrubbers, setLocalIdentity, setRepoRoot, parseTranscript, scrubDeep, scrubText } from './chunk-
|
|
17
|
-
import { orderSessions, extractFacts, sessionsToTimeline } from './chunk-
|
|
18
|
-
import { downconvertSession } from './chunk-
|
|
16
|
+
import { setCustomScrubbers, setLocalIdentity, setRepoRoot, parseTranscript, scrubDeep, scrubText } from './chunk-CBCKD6DO.js';
|
|
17
|
+
import { orderSessions, extractFacts, sessionsToTimeline } from './chunk-RKOTJQVG.js';
|
|
18
|
+
import { downconvertSession } from './chunk-QZBXLLTV.js';
|
|
19
19
|
import { rootfsPathFor, diskTemplatesDir, RUNNER_FILE_MODE, deliveryDir, ghConfigDir, runnerDirOfBuild, spoolDir, mirrorDir, buildDir, RUNNER_DIR_MODE, SHIM_DIR, vmAssetsDir } from './chunk-IHNQWF6F.js';
|
|
20
20
|
import { repositoriesOf, primaryOf, RELAY_PORT, repositoryPath, CHECKOUT_DIR, lifecycleWorkdir, claudeCredential, buildEnvironment, startBuildServices, checkEnvironment, AGENT_CREDENTIAL_MISSING, checkoutPath, JOB_MOUNT } from './chunk-URWYRAIC.js';
|
|
21
21
|
import { RELAY_USER, RELAY_ID, UNKNOWN_TRANSPORT_REASON, MAX_MALFORMED_SESSIONS, MALFORMED_REASON, MAX_OPEN_STREAMS, STREAM_WINDOW, SESSION_WINDOW, targetOfPath } from './chunk-GISNHSYL.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { ArtifactTombstoneRecordSchema, ArtifactSpoolRecordSchema } from './chunk-
|
|
3
|
+
import { ArtifactTombstoneRecordSchema, ArtifactSpoolRecordSchema } from './chunk-QZBXLLTV.js';
|
|
4
4
|
import { homeFromEnv } from './chunk-VNVZDWO3.js';
|
|
5
5
|
import { mkdirSync, appendFileSync, writeFileSync, renameSync, unlinkSync, existsSync, readdirSync, readFileSync, statSync } from 'fs';
|
|
6
6
|
import { join, dirname } from 'path';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { MIN_ENGINE_MAJOR } from './chunk-
|
|
3
|
+
import { MIN_ENGINE_MAJOR } from './chunk-BOG4ENP7.js';
|
|
4
4
|
import { firecrackerArch, MICROVM_ARCHES, guestAssetsPinned } from './chunk-3W333NFO.js';
|
|
5
5
|
import { spawnSync } from 'child_process';
|
|
6
6
|
import { existsSync, accessSync, constants, statSync, readFileSync } from 'fs';
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { detectActiveSession, autoConnect } from './chunk-
|
|
4
|
-
import { workPageUrl } from './chunk-
|
|
5
|
-
import { sanitizeTerminal } from './chunk-
|
|
6
|
-
import { defaultFetch } from './chunk-
|
|
7
|
-
import { resolveGatewayCredentials, unauthorizedMessage } from './chunk-NTRCK4NH.js';
|
|
3
|
+
import { detectActiveSession, autoConnect } from './chunk-ZLZ3XVPI.js';
|
|
4
|
+
import { workPageUrl } from './chunk-GXV73IIS.js';
|
|
5
|
+
import { sanitizeTerminal } from './chunk-BUP5N3X6.js';
|
|
6
|
+
import { resolveGatewayCredentials, unauthorizedMessage, defaultFetch } from './chunk-QS43O4DR.js';
|
|
8
7
|
import { readRepoConnection } from './chunk-BJ3KTMDH.js';
|
|
9
|
-
import { resolveRepoIdentity } from './chunk-
|
|
8
|
+
import { resolveRepoIdentity } from './chunk-CBCKD6DO.js';
|
|
10
9
|
import { C } from './chunk-ANPNT6PM.js';
|
|
11
10
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
12
11
|
import { homeFromEnv } from './chunk-VNVZDWO3.js';
|
|
@@ -428,7 +427,7 @@ async function runWorkLinkSession(opts) {
|
|
|
428
427
|
return await linkSession(opts);
|
|
429
428
|
} catch (err) {
|
|
430
429
|
if (opts.logFailures) {
|
|
431
|
-
const { logHookError } = await import('./hook-fast-
|
|
430
|
+
const { logHookError } = await import('./hook-fast-27SHD72I.js');
|
|
432
431
|
const reason = err instanceof Error ? err.message : String(err);
|
|
433
432
|
logHookError(opts.home ?? homeFromEnv(opts.env ?? process.env), new Error(`work link-session #${opts.number} failed: ${reason}`));
|
|
434
433
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { EVENT_TYPES, isHumanUserTurn, INPUT_BAND_BOUNDARIES, parseAgentSession, SCHEMA_VERSION, SPEED_MAX_LENGTH, inputBandOf, BUCKET_MODEL_MAX_LENGTH } from './chunk-
|
|
3
|
+
import { EVENT_TYPES, isHumanUserTurn, INPUT_BAND_BOUNDARIES, parseAgentSession, SCHEMA_VERSION, SPEED_MAX_LENGTH, inputBandOf, BUCKET_MODEL_MAX_LENGTH } from './chunk-QZBXLLTV.js';
|
|
4
4
|
import { createHash } from 'crypto';
|
|
5
5
|
import { readFileSync, readdirSync, statSync, mkdirSync, copyFileSync, renameSync, unlinkSync, writeFileSync, stat as stat$1, unwatchFile, watchFile, watch as watch$1 } from 'fs';
|
|
6
6
|
import { type, homedir } from 'os';
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { launchRefusalForSession } from './chunk-ESVW4MJY.js';
|
|
4
|
-
import { autoConnect, detectActiveSession } from './chunk-
|
|
5
|
-
import { acquireSpoolLockAt } from './chunk-
|
|
6
|
-
import { defaultFetch } from './chunk-
|
|
7
|
-
import {
|
|
8
|
-
import { resolveRepoIdentity } from './chunk-AEKSX4EY.js';
|
|
4
|
+
import { autoConnect, detectActiveSession } from './chunk-ZLZ3XVPI.js';
|
|
5
|
+
import { acquireSpoolLockAt } from './chunk-BUP5N3X6.js';
|
|
6
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-QS43O4DR.js';
|
|
7
|
+
import { resolveRepoIdentity } from './chunk-CBCKD6DO.js';
|
|
9
8
|
import { C } from './chunk-ANPNT6PM.js';
|
|
10
9
|
import { launchedItemForSession } from './chunk-T2Q7ISPE.js';
|
|
11
10
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
12
|
-
import { StepNameSchema, StepBodySchema } from './chunk-
|
|
11
|
+
import { StepNameSchema, StepBodySchema } from './chunk-QZBXLLTV.js';
|
|
13
12
|
import { homeFromEnv } from './chunk-VNVZDWO3.js';
|
|
14
13
|
import { randomUUID } from 'crypto';
|
|
15
14
|
import { readFileSync, existsSync, mkdirSync, writeFileSync, renameSync, appendFileSync } from 'fs';
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { uploadSpooledSteps } from './chunk-
|
|
3
|
+
import { uploadSpooledSteps } from './chunk-D64E222W.js';
|
|
4
4
|
import { LaunchFilter } from './chunk-ESVW4MJY.js';
|
|
5
5
|
import { RepoFilter } from './chunk-TBT347UY.js';
|
|
6
|
-
import { migrateLegacyArtifactSidecars, planArtifactUpload, artifactsStatePath, sanitizeTerminal, acquireArtifactSpoolLock, artifactBlobsDir, resolveArtifactTurnIndex, isArtifactTombstoned, ARTIFACT_RETRY_MAX_AGE_MS, writeArtifactSpoolState, reclaimUnneededArtifactBlobs, neededArtifactShas } from './chunk-
|
|
7
|
-
import { defaultFetch } from './chunk-
|
|
8
|
-
import {
|
|
9
|
-
import { writeSyncStatus, spoolDir } from './chunk-QC72I5GQ.js';
|
|
6
|
+
import { migrateLegacyArtifactSidecars, planArtifactUpload, artifactsStatePath, sanitizeTerminal, acquireArtifactSpoolLock, artifactBlobsDir, resolveArtifactTurnIndex, isArtifactTombstoned, ARTIFACT_RETRY_MAX_AGE_MS, writeArtifactSpoolState, reclaimUnneededArtifactBlobs, neededArtifactShas } from './chunk-BUP5N3X6.js';
|
|
7
|
+
import { cliFetch, resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-QS43O4DR.js';
|
|
8
|
+
import { writeSyncStatus, spoolDir } from './chunk-XOEV4FVK.js';
|
|
10
9
|
import { readLatestProvenanceForSession, readContextProvenance } from './chunk-ZJSNLVCE.js';
|
|
11
|
-
import { hookExecSpoolPath } from './chunk-
|
|
10
|
+
import { hookExecSpoolPath } from './chunk-DYEFPYME.js';
|
|
12
11
|
import { applyReportedCost } from './chunk-BKO6JEZI.js';
|
|
13
12
|
import { readRepoConnection, findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
14
|
-
import { setCustomScrubbers, setLocalIdentity, tailTranscript, enrichSessionRepo, scanAll, setRepoRoot, resolveRepoIdentity, sessionIdFromPath, scrubDeep, SOURCE_ADAPTERS } from './chunk-
|
|
15
|
-
import { readCloudConfig, cloudConfigPath, writeCloudConfig } from './chunk-EABW6AJQ.js';
|
|
13
|
+
import { setCustomScrubbers, setLocalIdentity, tailTranscript, enrichSessionRepo, scanAll, setRepoRoot, resolveRepoIdentity, sessionIdFromPath, scrubDeep, SOURCE_ADAPTERS } from './chunk-CBCKD6DO.js';
|
|
16
14
|
import { C } from './chunk-ANPNT6PM.js';
|
|
15
|
+
import { readCloudConfig, cloudConfigPath, writeCloudConfig } from './chunk-EABW6AJQ.js';
|
|
17
16
|
import { readLaunchSpoolState, launchStatusIsDecisive, launchedItemsBySession, launchesPath } from './chunk-T2Q7ISPE.js';
|
|
18
17
|
import { cliInvocation } from './chunk-CRB3POP4.js';
|
|
19
18
|
import { removeJournalHooks } from './chunk-TUSYOL2O.js';
|
|
20
|
-
import { CAPTURE_TIERS, inferArtifactKind, bannedPathsForTier, downconvertSession, isHumanUserTurn, turnCountBound, EVENT_TYPES } from './chunk-
|
|
19
|
+
import { CAPTURE_TIERS, inferArtifactKind, bannedPathsForTier, downconvertSession, isHumanUserTurn, turnCountBound, EVENT_TYPES } from './chunk-QZBXLLTV.js';
|
|
21
20
|
import { homeFromEnv } from './chunk-VNVZDWO3.js';
|
|
22
21
|
import { signerFor, signRunnerRequest } from './chunk-OW52QLK3.js';
|
|
23
22
|
import { dirname, basename, join } from 'path';
|
|
@@ -573,7 +572,7 @@ var LiveUploader = class {
|
|
|
573
572
|
this.stopped = false;
|
|
574
573
|
this.warned = /* @__PURE__ */ new Set();
|
|
575
574
|
this.home = opts.home;
|
|
576
|
-
this.fetchImpl = opts.fetchImpl ??
|
|
575
|
+
this.fetchImpl = opts.fetchImpl ?? cliFetch;
|
|
577
576
|
this.sleepImpl = opts.sleepImpl ?? ((ms) => new Promise((r) => setTimeout(r, ms)));
|
|
578
577
|
this.debounceMs = opts.debounceMs ?? DEFAULT_DEBOUNCE_MS;
|
|
579
578
|
this.env = opts.env ?? process.env;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { recordReportedCost } from './chunk-BKO6JEZI.js';
|
|
4
4
|
import { cliInvocation } from './chunk-CRB3POP4.js';
|
|
5
|
-
import { decodeWrappedCommand } from './chunk-
|
|
5
|
+
import { decodeWrappedCommand } from './chunk-GNPTU4BM.js';
|
|
6
6
|
import { homeFromEnv } from './chunk-VNVZDWO3.js';
|
|
7
7
|
import { readFileSync } from 'fs';
|
|
8
8
|
import { spawn } from 'child_process';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { decodeWrappedCommand } from './chunk-
|
|
3
|
+
import { decodeWrappedCommand } from './chunk-GNPTU4BM.js';
|
|
4
4
|
import { homeFromEnv } from './chunk-VNVZDWO3.js';
|
|
5
5
|
import { readFileSync, mkdirSync, appendFileSync, writeFileSync } from 'fs';
|
|
6
6
|
import { spawn } from 'child_process';
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { checkStarterFiles, contextIsGoverned, checkBuildSkill } from './chunk-
|
|
4
|
-
import { resolveCredentials, getJson, WorkCommandError } from './chunk-
|
|
5
|
-
import { isLinkedRepository } from './chunk-
|
|
6
|
-
import { sanitizeTerminal } from './chunk-
|
|
7
|
-
import { checkFormerSkillNames } from './chunk-
|
|
8
|
-
import { defaultFetch } from './chunk-
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { readStatuslineState, STATE_FRESH_MS } from './chunk-IZSVXRDR.js';
|
|
3
|
+
import { checkStarterFiles, contextIsGoverned, checkBuildSkill } from './chunk-XFGL53GU.js';
|
|
4
|
+
import { resolveCredentials, getJson, WorkCommandError } from './chunk-C64D7HR3.js';
|
|
5
|
+
import { isLinkedRepository } from './chunk-GXV73IIS.js';
|
|
6
|
+
import { sanitizeTerminal } from './chunk-BUP5N3X6.js';
|
|
7
|
+
import { checkFormerSkillNames } from './chunk-MQ743JX3.js';
|
|
8
|
+
import { resolveGatewayCredentials, defaultFetch } from './chunk-QS43O4DR.js';
|
|
9
|
+
import { sanitizeForContext, spoolDir, assessSyncHealth, readSyncStatus, SYNC_STALE_AFTER_MS, formatAgo, checkInstalledCliStaleness, workspaceRootOf, hookFiredMarkerPath, refreshCommand } from './chunk-XOEV4FVK.js';
|
|
10
|
+
import { readStatuslineState, STATE_FRESH_MS } from './chunk-DXDF43YG.js';
|
|
12
11
|
import { hookCommandEscapesControlPlane, CONTROL_PLANE_DIR_VARIABLE } from './chunk-HCVLP7XA.js';
|
|
13
12
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
14
|
-
import { resolveRepoIdentity, compareVersions, SUPPORTED_VERSIONS } from './chunk-
|
|
13
|
+
import { resolveRepoIdentity, compareVersions, SUPPORTED_VERSIONS } from './chunk-CBCKD6DO.js';
|
|
15
14
|
import { C } from './chunk-ANPNT6PM.js';
|
|
16
15
|
import { cliInvocation } from './chunk-CRB3POP4.js';
|
|
17
|
-
import { readSettings, settingsPath, isOurStatuslineSlot, statuslineWrappedOriginal, REGISTERED_EVENTS, isOurHookCommand, ourCommandBins, cliBinResolvable, ourDirectScriptBins, wrappedOriginalCommand } from './chunk-
|
|
16
|
+
import { readSettings, settingsPath, isOurStatuslineSlot, statuslineWrappedOriginal, REGISTERED_EVENTS, isOurHookCommand, ourCommandBins, cliBinResolvable, ourDirectScriptBins, wrappedOriginalCommand } from './chunk-GNPTU4BM.js';
|
|
18
17
|
import { readDeliveryRecord, readDegraded, readSourceCache } from './chunk-YQR6E6OV.js';
|
|
19
18
|
import { deadHooksState, preparePackageManagerCommand } from './chunk-TUSYOL2O.js';
|
|
20
19
|
import { homeFromEnv } from './chunk-VNVZDWO3.js';
|
|
@@ -1187,7 +1186,7 @@ async function gatherDoctorChecks() {
|
|
|
1187
1186
|
const { runnerVmCheck } = await import('./doctor-53F2PYY7.js');
|
|
1188
1187
|
checks.push(runnerVmCheck(configPath, { lima: realLima(), home: homeFromEnv(), instance: runnerVm.instance }));
|
|
1189
1188
|
} else if (hasRunnerBlock(configPath)) {
|
|
1190
|
-
const { runnerHostChecks } = await import('./doctor-
|
|
1189
|
+
const { runnerHostChecks } = await import('./doctor-4H77CEB7.js');
|
|
1191
1190
|
const hooks = (() => {
|
|
1192
1191
|
try {
|
|
1193
1192
|
return loadRunnerConfig(configPath).hooks;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { isPlaceholderCommand } from './chunk-
|
|
4
|
-
import { describeCallFailure } from './chunk-
|
|
5
|
-
import { WorkCommandError, getJson } from './chunk-
|
|
6
|
-
import { sanitizeTerminal } from './chunk-
|
|
3
|
+
import { isPlaceholderCommand } from './chunk-2TT7DEMZ.js';
|
|
4
|
+
import { describeCallFailure } from './chunk-KGKFEONR.js';
|
|
5
|
+
import { WorkCommandError, getJson } from './chunk-C64D7HR3.js';
|
|
6
|
+
import { sanitizeTerminal } from './chunk-BUP5N3X6.js';
|
|
7
7
|
import { builtinKind } from './chunk-V5CG75NX.js';
|
|
8
8
|
import { signerFor } from './chunk-OW52QLK3.js';
|
|
9
9
|
import { CLAUDE_CREDENTIAL_VARIABLES, claudeCredential } from './chunk-URWYRAIC.js';
|
|
@@ -220,13 +220,16 @@ function encodeWrappedCommand(command) {
|
|
|
220
220
|
function decodeWrappedCommand(id) {
|
|
221
221
|
return Buffer.from(id, "base64").toString("utf8");
|
|
222
222
|
}
|
|
223
|
+
function runsCommand(h) {
|
|
224
|
+
return typeof h.command === "string";
|
|
225
|
+
}
|
|
223
226
|
function listHookCandidates(settings, cliBin) {
|
|
224
227
|
const out = [];
|
|
225
228
|
const hooks = settings?.hooks ?? {};
|
|
226
229
|
for (const event of Object.keys(hooks)) {
|
|
227
230
|
(hooks[event] ?? []).forEach((matcher, matcherIndex) => {
|
|
228
231
|
matcher.hooks.forEach((h, hookIndex) => {
|
|
229
|
-
if (isOurHookCommandFor(h, cliBin)) return;
|
|
232
|
+
if (!runsCommand(h) || isOurHookCommandFor(h, cliBin)) return;
|
|
230
233
|
const original = wrappedOriginalCommand(h, cliBin);
|
|
231
234
|
out.push({
|
|
232
235
|
event,
|
|
@@ -245,12 +248,14 @@ function wrapHookCommand(cliBin, h, opts = {}) {
|
|
|
245
248
|
if (isWrapped(h, cliBin)) return h;
|
|
246
249
|
const id = encodeWrappedCommand(h.command);
|
|
247
250
|
const flag = opts.captureOutput ? " --capture-output" : "";
|
|
248
|
-
return {
|
|
251
|
+
return { ...h, command: `${cliCommand(cliBin)} hook-wrap --id ${id}${flag}`, [WRAP_MARKER]: h.command };
|
|
249
252
|
}
|
|
250
253
|
function unwrapHookCommand(h, cliBin) {
|
|
251
254
|
const original = wrappedOriginalCommand(h, cliBin);
|
|
252
255
|
if (original === null) return h;
|
|
253
|
-
|
|
256
|
+
const restored = { ...h, command: original };
|
|
257
|
+
delete restored[WRAP_MARKER];
|
|
258
|
+
return restored;
|
|
254
259
|
}
|
|
255
260
|
var AUTO_WRAP_EVENTS = ["PreToolUse", "PostToolUse"];
|
|
256
261
|
function wrapHooks(settings, cliBin, opts = {}) {
|
|
@@ -268,7 +273,7 @@ function wrapHooks(settings, cliBin, opts = {}) {
|
|
|
268
273
|
const matcher = matchers[mi];
|
|
269
274
|
for (let hi = 0; hi < matcher.hooks.length; hi++) {
|
|
270
275
|
const h = matcher.hooks[hi];
|
|
271
|
-
if (isOurHookCommandFor(h, cliBin) || isWrapped(h, cliBin)) continue;
|
|
276
|
+
if (!runsCommand(h) || isOurHookCommandFor(h, cliBin) || isWrapped(h, cliBin)) continue;
|
|
272
277
|
const candidate = {
|
|
273
278
|
event,
|
|
274
279
|
matcherIndex: mi,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { sanitizeTerminal } from './chunk-
|
|
4
|
-
import { DEFAULT_DASHBOARD } from './chunk-
|
|
5
|
-
import { resolveGatewayCredentials } from './chunk-
|
|
3
|
+
import { sanitizeTerminal } from './chunk-BUP5N3X6.js';
|
|
4
|
+
import { DEFAULT_DASHBOARD } from './chunk-XSPA5ODY.js';
|
|
5
|
+
import { cliFetch, resolveGatewayCredentials } from './chunk-QS43O4DR.js';
|
|
6
6
|
import { writeRepoConnection, findGitDirs, readRepoConnection } from './chunk-BJ3KTMDH.js';
|
|
7
|
-
import { remoteLookupFailed } from './chunk-
|
|
7
|
+
import { remoteLookupFailed } from './chunk-CBCKD6DO.js';
|
|
8
8
|
import { readCloudConfig } from './chunk-EABW6AJQ.js';
|
|
9
9
|
import { cliInvocation } from './chunk-CRB3POP4.js';
|
|
10
10
|
import { execFileSync } from 'child_process';
|
|
@@ -89,7 +89,7 @@ function result(code, outcome, reason, text) {
|
|
|
89
89
|
` };
|
|
90
90
|
}
|
|
91
91
|
function realConnectDeps() {
|
|
92
|
-
return { fetchImpl:
|
|
92
|
+
return { fetchImpl: cliFetch, env: process.env, prompt: promptOnTerminal, now: () => /* @__PURE__ */ new Date() };
|
|
93
93
|
}
|
|
94
94
|
async function promptOnTerminal(question, io = { input: process.stdin, output: process.stderr }) {
|
|
95
95
|
const rl = createInterface(io);
|
|
@@ -315,4 +315,4 @@ ${COMMIT_LINE}
|
|
|
315
315
|
return r.code;
|
|
316
316
|
}
|
|
317
317
|
|
|
318
|
-
export { COMMIT_LINE, autoConnectedLine, dashboardBase, fetchFactories, isLinkedRepository, listText, promptOnTerminal, realConnectDeps, runConnect, runConnectCommand, saveFactoryConnection, selectFactory, slug, workPageUrl };
|
|
318
|
+
export { COMMIT_LINE, autoConnectedLine, dashboardBase, fetchFactories, hasUncommittedPolicy, isLinkedRepository, listText, promptOnTerminal, realConnectDeps, runConnect, runConnectCommand, saveFactoryConnection, selectFactory, slug, workPageUrl };
|