@outerlayer/cli 0.22.0 → 0.22.2
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 +17 -0
- package/README.md +4 -1
- package/dist/{agent-setup-XAJH6MPW.js → agent-setup-KXPDPTAJ.js} +6 -7
- package/dist/bridge-QFN3KJP6.js +8 -0
- package/dist/{build-GTMEADQD.js → build-6WRNZPVR.js} +4 -4
- package/dist/build-info.json +1 -1
- package/dist/{builder-OAUSTZHL.js → builder-G3MLDMTI.js} +4 -4
- package/dist/{check-3YHMJQ3P.js → check-N6WLZCER.js} +34 -34
- package/dist/{chunk-4NM3I3VV.js → chunk-276D7BJ7.js} +1 -1
- package/dist/{chunk-22DYXLU7.js → chunk-2CPOAPU4.js} +17 -17
- package/dist/{chunk-BLW6GPBZ.js → chunk-2Q3PZ42G.js} +1 -1
- package/dist/{chunk-IRBNIRQJ.js → chunk-3AZYLAJC.js} +4 -4
- package/dist/{chunk-ATRIVTRE.js → chunk-4542B3RR.js} +2 -2
- package/dist/{chunk-7V7KG3YM.js → chunk-4AVDD7VX.js} +2 -2
- package/dist/{chunk-JVB63NIB.js → chunk-4OYKJJ2V.js} +1 -1
- package/dist/{chunk-QOALB6ZD.js → chunk-B42BIYC6.js} +2 -2
- package/dist/{chunk-G6DZCKA6.js → chunk-BVR6MQLS.js} +2 -3
- package/dist/{chunk-KPBQYEND.js → chunk-CQAEV3Z5.js} +1 -1
- package/dist/{chunk-IZSVXRDR.js → chunk-DXDF43YG.js} +1 -1
- package/dist/{chunk-F7CU5ABH.js → chunk-DYEFPYME.js} +1 -1
- package/dist/{chunk-LOB2SUM3.js → chunk-EFB3FGLC.js} +1 -1
- package/dist/{chunk-JRCSET55.js → chunk-EMUNEAQK.js} +3 -3
- package/dist/{chunk-2HT2XGJX.js → chunk-FQE5RDHI.js} +5 -6
- package/dist/{chunk-EXV37PKS.js → chunk-FVDVC2GF.js} +1 -1
- package/dist/{chunk-5QRP3MVS.js → chunk-GNPTU4BM.js} +9 -4
- package/dist/{chunk-6IO62VJS.js → chunk-HWZCE745.js} +2 -2
- package/dist/{chunk-KIGSGZBB.js → chunk-IHNQWF6F.js} +1 -1
- package/dist/{chunk-C3OVGKVJ.js → chunk-IMCVQF5F.js} +5 -5
- package/dist/{chunk-WMHYIBJW.js → chunk-IPS2JCHK.js} +6 -6
- package/dist/{chunk-G2WME4RG.js → chunk-JD6GWYY7.js} +2 -3
- package/dist/{chunk-C3HKR67W.js → chunk-JV4YGAAW.js} +3 -3
- package/dist/{chunk-FGW2774C.js → chunk-KOIMUHIS.js} +16 -15
- package/dist/{chunk-PHHBYAL6.js → chunk-NYTZ7HVN.js} +1 -1
- package/dist/{chunk-I66MQDXH.js → chunk-OBCFK4QD.js} +2 -2
- package/dist/{chunk-KDHYLBRR.js → chunk-OW52QLK3.js} +1 -1
- package/dist/chunk-QS43O4DR.js +113 -0
- package/dist/{chunk-4JHVPFH6.js → chunk-QZX6DAAW.js} +9 -10
- package/dist/{chunk-UD3EXMKB.js → chunk-SFHR45FA.js} +21 -4
- package/dist/{chunk-KOQELWQ6.js → chunk-SNVXHNU7.js} +2 -3
- package/dist/{chunk-34XORKFD.js → chunk-U6RKHNC7.js} +6 -7
- package/dist/{chunk-2J5JGLW5.js → chunk-UF5L4BAI.js} +1 -1
- package/dist/{chunk-V7MQKOZY.js → chunk-URWYRAIC.js} +1 -1
- package/dist/{chunk-2CMJLYV6.js → chunk-V5CG75NX.js} +1 -1
- package/dist/{chunk-VX74ND77.js → chunk-WKSBSEWT.js} +8 -8
- package/dist/chunk-WXJXHZVB.js +73 -0
- package/dist/{chunk-ZFLOGMUC.js → chunk-XACXXKQ5.js} +1 -1
- package/dist/{chunk-WERZMIKA.js → chunk-XR56WEA5.js} +3 -3
- package/dist/{chunk-4QKLMNI3.js → chunk-ZCXP35T3.js} +5 -5
- package/dist/{claude-launcher-4BQNXYAF.js → claude-launcher-QD3C427Y.js} +1 -1
- package/dist/{cli-NMGVZQPB.js → cli-A2Y67WAB.js} +98 -91
- package/dist/{command-GE62AJZY.js → command-Q5Q2EIO4.js} +21 -22
- package/dist/{config-7Q52COZ3.js → config-H4QS332G.js} +2 -2
- package/dist/{connect-cmd-ZFOK6HEL.js → connect-cmd-TNGEIWCA.js} +7 -2
- package/dist/{control-plane-launch-SZTE4TUS.js → control-plane-launch-HE6OSWKO.js} +5 -6
- package/dist/{docker-2OVBKVRK.js → docker-JU422JL7.js} +4 -4
- package/dist/{doctor-3SQGZVYP.js → doctor-BRN4BGMA.js} +23 -24
- package/dist/{emit-artifact-cmd-R42BE6ID.js → emit-artifact-cmd-GPAJCCUC.js} +12 -12
- package/dist/{emit-criteria-cmd-MQZE7W4Y.js → emit-criteria-cmd-R3FKHSQG.js} +7 -7
- package/dist/{emit-finding-cmd-ZS5JEGGM.js → emit-finding-cmd-IK7RAVP5.js} +7 -7
- package/dist/{emit-result-cmd-FUE3DXBW.js → emit-result-cmd-5FJTF7YD.js} +12 -12
- package/dist/{emit-step-cmd-T7PRA44X.js → emit-step-cmd-VRTD5YPP.js} +8 -8
- package/dist/{exec-client-YIDTWXMZ.js → exec-client-ATPF2DDB.js} +3 -3
- package/dist/{governing-source-TORXL4I4.js → governing-source-WM736XR4.js} +9 -10
- package/dist/{guest-init-TO6HAWIT.js → guest-init-2OZ4YC7R.js} +4 -3
- package/dist/{hook-fast-WFB2ZMRB.js → hook-fast-QUGEI2IT.js} +1 -1
- package/dist/{hook-wrap-fast-NPLHJXFK.js → hook-wrap-fast-NOOGDNSW.js} +2 -2
- package/dist/{host-key-2LXQDSBO.js → host-key-ATB23GI3.js} +3 -3
- package/dist/index.js +6 -6
- package/dist/{init-2CRAVIUU.js → init-U3I43XCP.js} +20 -21
- package/dist/{init-AHDZCMDC.js → init-X7FCQDFX.js} +20 -21
- package/dist/{init-cmd-IXDL2ZSL.js → init-cmd-VCKH2DUQ.js} +13 -14
- package/dist/{init-update-YB3PODDH.js → init-update-TCMH7M3Q.js} +7 -8
- package/dist/{install-CZUIW2AF.js → install-SFACZU7E.js} +4 -4
- package/dist/{install-cmd-Q7RJGFUO.js → install-cmd-6HTP7I43.js} +5 -5
- package/dist/{logs-RJPYTVQE.js → logs-N3ZX7HFV.js} +2 -2
- package/dist/{loop-ZDW6TRAA.js → loop-P3QDQOE5.js} +34 -34
- package/dist/{machine-JCOHLASP.js → machine-EEFOW32K.js} +16 -17
- package/dist/{mcp-serve-cmd-IULQPVHL.js → mcp-serve-cmd-TQSPFRC7.js} +5 -5
- package/dist/{paths-N3LU4O2Z.js → paths-AKX2OOLF.js} +2 -2
- package/dist/{pending-GRCV3ZR4.js → pending-7SGWZCEH.js} +3 -3
- package/dist/{pidfile-IF3TCL5A.js → pidfile-G2J5WBQS.js} +3 -3
- package/dist/{record-73PQE77B.js → record-Q4IEYIVV.js} +3 -3
- package/dist/{runner-env-LDOBJESN.js → runner-env-GZHXM27A.js} +5 -5
- package/dist/{runner-identity-RWCBTY2A.js → runner-identity-FTHZFMGY.js} +4 -4
- package/dist/{runner-key-HMYLP6WN.js → runner-key-O42EUXQU.js} +20 -21
- package/dist/{session-sender-2G25JYHI.js → session-sender-HF6DXFA2.js} +13 -13
- package/dist/{settings-J2652U5N.js → settings-AKYEOCC2.js} +1 -1
- package/dist/{spec-cmd-LBVXM6XS.js → spec-cmd-ADPH236D.js} +8 -8
- package/dist/{status-QZB2GWXJ.js → status-LXFIVGP3.js} +25 -25
- package/dist/{statusline-fast-2OK3DVAA.js → statusline-fast-GVRSBHAF.js} +2 -2
- package/dist/{sync-cmd-TQQIR4PN.js → sync-cmd-5XS3CUV5.js} +12 -12
- package/dist/{watch-4JES4PCS.js → watch-FBZHZV56.js} +12 -12
- package/dist/{work-claim-cmd-XG6O7B63.js → work-claim-cmd-LIIINECF.js} +11 -11
- package/dist/{work-cmd-L6WMPAA2.js → work-cmd-SM6DY2WK.js} +8 -8
- package/dist/{work-comment-cmd-SNTDCPGH.js → work-comment-cmd-VYVXGT4W.js} +8 -8
- package/dist/{work-logs-cmd-3S7IAVII.js → work-logs-cmd-XZSCWWMW.js} +8 -8
- package/dist/{work-open-pr-cmd-E3WMO5XT.js → work-open-pr-cmd-YZNC3P3R.js} +9 -9
- package/dist/{work-pr-cmd-22T6FG4T.js → work-pr-cmd-AMN23KFJ.js} +8 -8
- package/dist/{work-stop-cmd-WR7ESS4Z.js → work-stop-cmd-HSR2GOJJ.js} +8 -8
- package/package.json +1 -1
- package/skill-pack/maintained/outerlayer-amend/SKILL.md +90 -78
- package/skill-pack/maintained/outerlayer-build/SKILL.md +4 -2
- package/skill-pack/maintained/outerlayer-build/references/agent-briefs.md +10 -3
- package/skill-pack/maintained/outerlayer-build/references/release.md +7 -4
- package/skill-pack/maintained/outerlayer-build/references/review-briefs.md +6 -3
- package/skill-pack/maintained/outerlayer-cli/SKILL.md +8 -1
- package/skill-pack/maintained/outerlayer-cli/references/merge-base-branch.md +54 -0
- package/dist/chunk-NTRCK4NH.js +0 -38
- package/dist/chunk-VWLOQ6FI.js +0 -56
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @outerlayer/cli
|
|
2
2
|
|
|
3
|
+
## 0.22.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 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.
|
|
8
|
+
- 2d1bbb2: The CLI names itself and its version in the `User-Agent` of every request it sends to OuterLayer, as `outerlayer-cli/<version>`.
|
|
9
|
+
- 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.
|
|
10
|
+
- 750d20b: The amend and build skills merge the base branch into a pull request that has a merge conflict. They no longer rebase it.
|
|
11
|
+
- 641eb3c: In a microVM build, containers and `docker build` steps reach public hosts through the runner's tunnel, under the same `allowHosts` list.
|
|
12
|
+
|
|
13
|
+
## 0.22.1
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- 53b61f7: The `outerlayer-amend` skill watches the pull request's checks after it pushes. It fixes a failed check its own change caused, at most twice, and names any check still red in its report.
|
|
18
|
+
- 75f786b: The runner's image build downloads tini and gh through the proxy your Docker client is set up to use. Before, those two downloads ignored the proxy. The image build then failed on a host that reaches the internet only through one.
|
|
19
|
+
|
|
3
20
|
## 0.22.0
|
|
4
21
|
|
|
5
22
|
### Minor 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,11 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { keepHandWritten, runAgentSetup } from './chunk-
|
|
3
|
+
export { keepHandWritten, runAgentSetup } from './chunk-4OYKJJ2V.js';
|
|
4
4
|
import './chunk-XCRZTXRL.js';
|
|
5
|
-
import './chunk-
|
|
5
|
+
import './chunk-SNVXHNU7.js';
|
|
6
6
|
import './chunk-USWVXQIH.js';
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-NTRCK4NH.js';
|
|
7
|
+
import './chunk-QS43O4DR.js';
|
|
9
8
|
import './chunk-ZJSNLVCE.js';
|
|
10
9
|
import './chunk-BJ3KTMDH.js';
|
|
11
10
|
import './chunk-DIB2WLBL.js';
|
|
@@ -19,9 +18,9 @@ import './chunk-WFSUUUAN.js';
|
|
|
19
18
|
import './chunk-7VUK5RFS.js';
|
|
20
19
|
import './chunk-VNVZDWO3.js';
|
|
21
20
|
import './chunk-RA3O54FC.js';
|
|
22
|
-
import './chunk-
|
|
23
|
-
import './chunk-
|
|
24
|
-
import './chunk-
|
|
21
|
+
import './chunk-OW52QLK3.js';
|
|
22
|
+
import './chunk-IHNQWF6F.js';
|
|
23
|
+
import './chunk-URWYRAIC.js';
|
|
25
24
|
import './chunk-GISNHSYL.js';
|
|
26
25
|
import './chunk-Z5GEFMRW.js';
|
|
27
26
|
|
|
@@ -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,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { buildRepositoryImage } from './chunk-
|
|
3
|
+
export { buildRepositoryImage } from './chunk-3AZYLAJC.js';
|
|
4
4
|
export { RecipeError } from './chunk-3W333NFO.js';
|
|
5
|
-
import './chunk-
|
|
5
|
+
import './chunk-XACXXKQ5.js';
|
|
6
6
|
import './chunk-JBJTC3UU.js';
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
7
|
+
import './chunk-IHNQWF6F.js';
|
|
8
|
+
import './chunk-URWYRAIC.js';
|
|
9
9
|
import './chunk-GISNHSYL.js';
|
|
10
10
|
import './chunk-Z5GEFMRW.js';
|
|
11
11
|
|
package/dist/build-info.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"id":"2026-10-
|
|
1
|
+
{"id":"2026-10-15T01:34:44.161Z+28a91ce","root":"/home/runner/_work/outerlayer/outerlayer","pkg":"outerlayer"}
|
|
@@ -1,13 +1,13 @@
|
|
|
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-XR56WEA5.js';
|
|
4
4
|
import './chunk-3W333NFO.js';
|
|
5
5
|
import './chunk-7RQ73DLO.js';
|
|
6
6
|
import './chunk-AEKSX4EY.js';
|
|
7
7
|
import './chunk-7VUK5RFS.js';
|
|
8
|
-
import './chunk-
|
|
9
|
-
import './chunk-
|
|
10
|
-
import './chunk-
|
|
8
|
+
import './chunk-OW52QLK3.js';
|
|
9
|
+
import './chunk-IHNQWF6F.js';
|
|
10
|
+
import './chunk-URWYRAIC.js';
|
|
11
11
|
import './chunk-GISNHSYL.js';
|
|
12
12
|
import './chunk-Z5GEFMRW.js';
|
|
13
13
|
|
|
@@ -1,53 +1,53 @@
|
|
|
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-2CPOAPU4.js';
|
|
4
|
+
import './chunk-KOIMUHIS.js';
|
|
5
|
+
import './chunk-UF5L4BAI.js';
|
|
5
6
|
import './chunk-3JVYMD4G.js';
|
|
6
7
|
import './chunk-I2UOAV7X.js';
|
|
7
8
|
import './chunk-YETTWTAY.js';
|
|
8
9
|
import './chunk-TPKYTORP.js';
|
|
9
|
-
import './chunk-
|
|
10
|
-
import './chunk-
|
|
11
|
-
import './chunk-
|
|
12
|
-
import './chunk-
|
|
13
|
-
import './chunk-
|
|
14
|
-
import './chunk-
|
|
10
|
+
import './chunk-CQAEV3Z5.js';
|
|
11
|
+
import './chunk-4542B3RR.js';
|
|
12
|
+
import './chunk-SFHR45FA.js';
|
|
13
|
+
import './chunk-WXJXHZVB.js';
|
|
14
|
+
import './chunk-U6RKHNC7.js';
|
|
15
|
+
import './chunk-JD6GWYY7.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-IPS2JCHK.js';
|
|
17
18
|
import './chunk-YYYRBYWG.js';
|
|
18
|
-
import './chunk-
|
|
19
|
+
import './chunk-276D7BJ7.js';
|
|
19
20
|
import './chunk-TBT347UY.js';
|
|
20
|
-
import './chunk-
|
|
21
|
-
import './chunk-
|
|
22
|
-
import './chunk-
|
|
21
|
+
import './chunk-ZCXP35T3.js';
|
|
22
|
+
import './chunk-4AVDD7VX.js';
|
|
23
|
+
import './chunk-OBCFK4QD.js';
|
|
23
24
|
import { parseRunnerEnv } from './chunk-6MZSX4M7.js';
|
|
24
|
-
import './chunk-
|
|
25
|
-
import './chunk-
|
|
26
|
-
import './chunk-
|
|
25
|
+
import './chunk-FVDVC2GF.js';
|
|
26
|
+
import './chunk-WKSBSEWT.js';
|
|
27
|
+
import './chunk-3AZYLAJC.js';
|
|
27
28
|
import './chunk-OGFGZQA3.js';
|
|
28
|
-
import './chunk-
|
|
29
|
+
import './chunk-XR56WEA5.js';
|
|
29
30
|
import './chunk-3W333NFO.js';
|
|
30
|
-
import './chunk-
|
|
31
|
-
import './chunk-
|
|
32
|
-
import './chunk-
|
|
33
|
-
import './chunk-
|
|
34
|
-
import './chunk-
|
|
35
|
-
import './chunk-
|
|
31
|
+
import './chunk-NYTZ7HVN.js';
|
|
32
|
+
import './chunk-2Q3PZ42G.js';
|
|
33
|
+
import './chunk-IMCVQF5F.js';
|
|
34
|
+
import './chunk-FQE5RDHI.js';
|
|
35
|
+
import './chunk-B42BIYC6.js';
|
|
36
|
+
import './chunk-EMUNEAQK.js';
|
|
36
37
|
import './chunk-G3IJ3N6F.js';
|
|
37
38
|
import './chunk-EAQSOE62.js';
|
|
38
39
|
import './chunk-F35VMF5M.js';
|
|
39
|
-
import { loadRunnerConfig, RunnerConfigError, checkHooks } from './chunk-
|
|
40
|
+
import { loadRunnerConfig, RunnerConfigError, checkHooks } from './chunk-V5CG75NX.js';
|
|
40
41
|
import './chunk-UXYLWVTQ.js';
|
|
41
42
|
import './chunk-7RQ73DLO.js';
|
|
42
|
-
import './chunk-
|
|
43
|
+
import './chunk-XACXXKQ5.js';
|
|
43
44
|
import './chunk-JBJTC3UU.js';
|
|
44
|
-
import './chunk-
|
|
45
|
+
import './chunk-SNVXHNU7.js';
|
|
45
46
|
import './chunk-USWVXQIH.js';
|
|
46
|
-
import './chunk-
|
|
47
|
-
import './chunk-
|
|
48
|
-
import './chunk-6IO62VJS.js';
|
|
47
|
+
import './chunk-QS43O4DR.js';
|
|
48
|
+
import './chunk-HWZCE745.js';
|
|
49
49
|
import './chunk-ZJSNLVCE.js';
|
|
50
|
-
import './chunk-
|
|
50
|
+
import './chunk-DYEFPYME.js';
|
|
51
51
|
import './chunk-BKO6JEZI.js';
|
|
52
52
|
import './chunk-ZNPE7FW5.js';
|
|
53
53
|
import './chunk-HCVLP7XA.js';
|
|
@@ -59,16 +59,16 @@ import './chunk-ANPNT6PM.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
65
|
import './chunk-WFSUUUAN.js';
|
|
66
66
|
import './chunk-7VUK5RFS.js';
|
|
67
67
|
import './chunk-VNVZDWO3.js';
|
|
68
68
|
import './chunk-RA3O54FC.js';
|
|
69
|
-
import './chunk-
|
|
70
|
-
import './chunk-
|
|
71
|
-
import './chunk-
|
|
69
|
+
import './chunk-OW52QLK3.js';
|
|
70
|
+
import './chunk-IHNQWF6F.js';
|
|
71
|
+
import './chunk-URWYRAIC.js';
|
|
72
72
|
import './chunk-GISNHSYL.js';
|
|
73
73
|
import './chunk-Z5GEFMRW.js';
|
|
74
74
|
import { readFileSync } from 'fs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-
|
|
3
|
+
import { runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-IHNQWF6F.js';
|
|
4
4
|
import { readlinkSync, realpathSync, mkdirSync, unlinkSync, symlinkSync, renameSync, readFileSync, writeFileSync, rmSync, existsSync, readdirSync } from 'fs';
|
|
5
5
|
import { join, basename, sep, resolve } from 'path';
|
|
6
6
|
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { releaseLease, isUnfinished, setStage, jobEnv, runHook, describeHookEnd, provisionMicroVm, deliverCommitHooks, provisionProcess, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, hostCommandEnvironment, execArgv, microVmCommandLine, runCommand, commandLogOffset, execCommandLine, startSender, startHostServices, finishJob, isContainerTracked, probeCommand, appendCommandLog, judgeProbe, EXIT_CODE_FILE, isGroupAlive, outcomeFromExitCode, isTimedOut, readCpuUsec, isIdle, stopOrphanedMicroVms, unfinishedJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, hookLimitsFor, AttemptLogBook, needsRenew, renewLease, RENEW_INTERVAL_SECONDS, listTrackedJobs, restartSender, ALREADY_RELEASED } from './chunk-
|
|
3
|
+
import { releaseLease, isUnfinished, setStage, jobEnv, runHook, describeHookEnd, provisionMicroVm, deliverCommitHooks, provisionProcess, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, hostCommandEnvironment, execArgv, microVmCommandLine, runCommand, commandLogOffset, execCommandLine, startSender, startHostServices, finishJob, isContainerTracked, probeCommand, appendCommandLog, judgeProbe, EXIT_CODE_FILE, isGroupAlive, outcomeFromExitCode, isTimedOut, readCpuUsec, isIdle, stopOrphanedMicroVms, unfinishedJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, hookLimitsFor, AttemptLogBook, needsRenew, renewLease, RENEW_INTERVAL_SECONDS, listTrackedJobs, restartSender, ALREADY_RELEASED } from './chunk-KOIMUHIS.js';
|
|
4
|
+
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-UF5L4BAI.js';
|
|
4
5
|
import { decideInstalledSwitch } from './chunk-3JVYMD4G.js';
|
|
5
6
|
import { compareVersions, satisfiesRange } from './chunk-I2UOAV7X.js';
|
|
6
7
|
import { fetchVersionMeta, npmVersion, npmSupportsProvenance, fetchTarballDigest, fetchProvenance, installVersion, auditSignatures } from './chunk-YETTWTAY.js';
|
|
7
8
|
import { RUNNER_PROTOCOL } from './chunk-TPKYTORP.js';
|
|
8
|
-
import { writePendingUpdate } from './chunk-
|
|
9
|
-
import {
|
|
10
|
-
import { currentSkillCommand, formerSkillProblem, placeholderQueues, placeholderProblem } from './chunk-WMHYIBJW.js';
|
|
9
|
+
import { writePendingUpdate } from './chunk-CQAEV3Z5.js';
|
|
10
|
+
import { currentSkillCommand, formerSkillProblem, placeholderQueues, placeholderProblem } from './chunk-IPS2JCHK.js';
|
|
11
11
|
import { freeBytes, formatBytes } from './chunk-YYYRBYWG.js';
|
|
12
|
-
import { writeMarker, readMarker, currentVersion, removeMarker, entryIn, versionDir, startedThroughCurrent, switchCurrent, cleanVersions, isInLayout, stagingDir } from './chunk-
|
|
12
|
+
import { writeMarker, readMarker, currentVersion, removeMarker, entryIn, versionDir, startedThroughCurrent, switchCurrent, cleanVersions, isInLayout, stagingDir } from './chunk-276D7BJ7.js';
|
|
13
13
|
import { RepoFilter } from './chunk-TBT347UY.js';
|
|
14
|
-
import { checkFit } from './chunk-
|
|
15
|
-
import { LEASE_SECONDS, provisionContainer, leaseExpiresAtMs, deliverContainerHooks, lifecycleSteps, lifecycleFailureReason, prepareBranch, containerCommandExec, measureDisk, setUpRunnerCgroup, createContainerRuntime, parseCpuList, ensureTunnel, keepGhConfigCurrent, filesAreCopied } from './chunk-
|
|
16
|
-
import { writeJobFile, ensureRunnerIdentity, readJobFile, builderName, runnerLabelValue, ensureFailureCount, builderSpec, ensureBuilder, spawnRun, BUILD_LABEL, RUNNER_LABEL, readJobFileChecked } from './chunk-
|
|
17
|
-
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-
|
|
18
|
-
import { isSignatureRefusal, WorkCommandError, getJson, postJson } from './chunk-
|
|
19
|
-
import { isBuiltinContainer, isBuiltinVm, isBuiltinProcess, loadRunnerConfig, checkHooks, builtinKind, DEFAULT_UPDATE_MAX_WAIT_HOURS } from './chunk-
|
|
14
|
+
import { checkFit } from './chunk-OBCFK4QD.js';
|
|
15
|
+
import { LEASE_SECONDS, provisionContainer, leaseExpiresAtMs, deliverContainerHooks, lifecycleSteps, lifecycleFailureReason, prepareBranch, containerCommandExec, measureDisk, setUpRunnerCgroup, createContainerRuntime, parseCpuList, ensureTunnel, keepGhConfigCurrent, filesAreCopied } from './chunk-WKSBSEWT.js';
|
|
16
|
+
import { writeJobFile, ensureRunnerIdentity, readJobFile, builderName, runnerLabelValue, ensureFailureCount, builderSpec, ensureBuilder, spawnRun, BUILD_LABEL, RUNNER_LABEL, readJobFileChecked } from './chunk-XR56WEA5.js';
|
|
17
|
+
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-IMCVQF5F.js';
|
|
18
|
+
import { isSignatureRefusal, WorkCommandError, getJson, postJson } from './chunk-FQE5RDHI.js';
|
|
19
|
+
import { isBuiltinContainer, isBuiltinVm, isBuiltinProcess, loadRunnerConfig, checkHooks, builtinKind, DEFAULT_UPDATE_MAX_WAIT_HOURS } from './chunk-V5CG75NX.js';
|
|
20
20
|
import { exceedsDisk } from './chunk-7RQ73DLO.js';
|
|
21
|
-
import { claimPidFile, readPidFile, releasePidFile } from './chunk-
|
|
21
|
+
import { claimPidFile, readPidFile, releasePidFile } from './chunk-XACXXKQ5.js';
|
|
22
22
|
import { startTimeOf, isSameProcess } from './chunk-JBJTC3UU.js';
|
|
23
23
|
import { resolveVersion } from './chunk-RA3O54FC.js';
|
|
24
|
-
import { loadHostKey, ensureHostKey, signerFor } from './chunk-
|
|
25
|
-
import { RUNNER_DIR_MODE, runnerDir, buildDir, attemptStamp, jobDir, RUNNER_FILE_MODE, jobsDir, pidFilePath, spoolDir, rootfsDir } from './chunk-
|
|
26
|
-
import { parseClaimIdentity, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, sharedUserEnvironment, JOB_MOUNT, claudeCredential } from './chunk-
|
|
24
|
+
import { loadHostKey, ensureHostKey, signerFor } from './chunk-OW52QLK3.js';
|
|
25
|
+
import { RUNNER_DIR_MODE, runnerDir, buildDir, attemptStamp, jobDir, RUNNER_FILE_MODE, jobsDir, pidFilePath, spoolDir, rootfsDir } from './chunk-IHNQWF6F.js';
|
|
26
|
+
import { parseClaimIdentity, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, sharedUserEnvironment, JOB_MOUNT, claudeCredential } from './chunk-URWYRAIC.js';
|
|
27
27
|
import { COMMAND_LOST_REASON, CONTAINER_STOPPED_REASON } from './chunk-GISNHSYL.js';
|
|
28
28
|
import { randomBytes } from 'crypto';
|
|
29
29
|
import { mkdirSync, existsSync, chmodSync, writeFileSync, renameSync, statSync, readdirSync, readFileSync, rmSync, closeSync, openSync, constants, lstatSync } from 'fs';
|
|
@@ -1552,7 +1552,7 @@ var CLAIM_REFUSAL_CODES = new Set(
|
|
|
1552
1552
|
"pull_request_from_fork pull_request_on_default_branch pull_request_ambiguous pull_request_repository_not_connected repository_not_reachable branch_claimed_elsewhere".split(" ")
|
|
1553
1553
|
);
|
|
1554
1554
|
async function tryClaimAndStart(state, item, queue) {
|
|
1555
|
-
const { postJson: postJson2 } = await import('./work-cmd-
|
|
1555
|
+
const { postJson: postJson2 } = await import('./work-cmd-SM6DY2WK.js');
|
|
1556
1556
|
const log = logOf(state);
|
|
1557
1557
|
const hostKey = await loadHostKey(state.config.configPath);
|
|
1558
1558
|
const claim = await retrySend(
|
|
@@ -2521,7 +2521,7 @@ async function start(configPath, deps = { fetchImpl: fetch }) {
|
|
|
2521
2521
|
const outcome = await onStartUnderMarker({
|
|
2522
2522
|
configPath,
|
|
2523
2523
|
own: ownVersionOf(deps),
|
|
2524
|
-
check: update.check ? () => update.check(configPath) : async () => (await import('./check-
|
|
2524
|
+
check: update.check ? () => update.check(configPath) : async () => (await import('./check-N6WLZCER.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl }),
|
|
2525
2525
|
now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
|
|
2526
2526
|
log
|
|
2527
2527
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RELAY_PORT, GATEWAY_SOCKET, GATEWAY_PORT, CLAUDE_SOCKET, CLAUDE_PORT, DESTINATION_BASE_PORT } from './chunk-
|
|
3
|
+
import { RELAY_PORT, GATEWAY_SOCKET, GATEWAY_PORT, CLAUDE_SOCKET, CLAUDE_PORT, DESTINATION_BASE_PORT } from './chunk-URWYRAIC.js';
|
|
4
4
|
import { symlinkSync, unlinkSync } from 'fs';
|
|
5
5
|
import { join } from 'path';
|
|
6
6
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { CLAUDE_CODE_VERSION, NODE_IMAGE, DEFAULT_BASE_IMAGE, RecipeError, locateRecipe, readRecipe, assertBuildable, TINI_VERSION, GH_VERSION, writeSanitizedRecipe, classifyProperties, GH_SHA256, TINI_SHA256, SANITIZED_NAME } from './chunk-3W333NFO.js';
|
|
4
|
-
import { claimPidFile, RunnerAlreadyRunningError, releasePidFile } from './chunk-
|
|
4
|
+
import { claimPidFile, RunnerAlreadyRunningError, releasePidFile } from './chunk-XACXXKQ5.js';
|
|
5
5
|
import { startTimeOf } from './chunk-JBJTC3UU.js';
|
|
6
|
-
import { RUNNER_DIR_MODE, repoCacheDir, imagesDir, attemptStamp, runnerDir, rootfsPathFor, RUNNER_FILE_MODE } from './chunk-
|
|
7
|
-
import { withGitConfig, tokenHeader } from './chunk-
|
|
6
|
+
import { RUNNER_DIR_MODE, repoCacheDir, imagesDir, attemptStamp, runnerDir, rootfsPathFor, RUNNER_FILE_MODE } from './chunk-IHNQWF6F.js';
|
|
7
|
+
import { withGitConfig, tokenHeader, PROXY_WARNING_FLAG } from './chunk-URWYRAIC.js';
|
|
8
8
|
import { RELAY_ID, RELAY_USER } from './chunk-GISNHSYL.js';
|
|
9
9
|
import { mkdirSync, rmSync, existsSync, mkdtempSync, cpSync, readFileSync, writeFileSync, readdirSync, lstatSync, readlinkSync } from 'fs';
|
|
10
10
|
import { tmpdir } from 'os';
|
|
@@ -176,7 +176,7 @@ function toolsDockerfile(parts) {
|
|
|
176
176
|
["SessionStart", "SessionEnd", "Stop", "PostToolUse"].map((event) => [event, [{ hooks: [{ type: "command", command: `outerlayer hook ${event}` }] }]])
|
|
177
177
|
)
|
|
178
178
|
});
|
|
179
|
-
const download = `node -e 'fetch(process.argv[1]).then((r)=>{if(!r.ok)throw new Error(process.argv[1]+" "+r.status);return r.arrayBuffer()}).then((b)=>require("fs").writeFileSync(process.argv[2],Buffer.from(b)))'`;
|
|
179
|
+
const download = `NODE_USE_ENV_PROXY=1 node ${PROXY_WARNING_FLAG} -e 'fetch(process.argv[1]).then((r)=>{if(!r.ok)throw new Error(process.argv[1]+" "+r.status);return r.arrayBuffer()}).then((b)=>require("fs").writeFileSync(process.argv[2],Buffer.from(b)))'`;
|
|
180
180
|
return [
|
|
181
181
|
`FROM ${recipeImage} AS recipe`,
|
|
182
182
|
`FROM ${nodeImage} AS stage`,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { LiveUploader } from './chunk-
|
|
4
|
-
import { spoolDir } from './chunk-
|
|
3
|
+
import { LiveUploader } from './chunk-U6RKHNC7.js';
|
|
4
|
+
import { spoolDir } from './chunk-HWZCE745.js';
|
|
5
5
|
import { CaptureDaemon } from './chunk-AEKSX4EY.js';
|
|
6
6
|
import { parseWorkItemEnv } from './chunk-T2Q7ISPE.js';
|
|
7
7
|
import { homeFromEnv } from './chunk-VNVZDWO3.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { DEFAULT_UNIT_NAME } from './chunk-
|
|
3
|
+
import { DEFAULT_UNIT_NAME } from './chunk-OBCFK4QD.js';
|
|
4
4
|
import { parseRunnerEnv } from './chunk-6MZSX4M7.js';
|
|
5
|
-
import { RUNNER_FILE_MODE } from './chunk-
|
|
5
|
+
import { RUNNER_FILE_MODE } from './chunk-IHNQWF6F.js';
|
|
6
6
|
import { existsSync, readFileSync, writeFileSync, renameSync, rmSync } from 'fs';
|
|
7
7
|
import { join, dirname } from 'path';
|
|
8
8
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { runEmit } from './chunk-XCRZTXRL.js';
|
|
4
|
-
import { resolveGitCommonDir, defaultGitRunner } from './chunk-
|
|
4
|
+
import { resolveGitCommonDir, defaultGitRunner } from './chunk-SNVXHNU7.js';
|
|
5
5
|
import { addStdioMcpEntryIfAbsent, addDocsMcpEntryIfAbsent, DOCS_MCP_SERVER_NAME } from './chunk-DIB2WLBL.js';
|
|
6
6
|
import { installStarterPack } from './chunk-V7SAQ645.js';
|
|
7
7
|
import { loadTemplateFiles, loadMaintainedFiles, skillDir } from './chunk-5OCIHFGE.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { fetchFactories, selectFactory, saveFactoryConnection, autoConnectedLine } from './chunk-
|
|
4
|
-
import { resolveGatewayCredentials } from './chunk-
|
|
3
|
+
import { fetchFactories, selectFactory, saveFactoryConnection, autoConnectedLine } from './chunk-EMUNEAQK.js';
|
|
4
|
+
import { resolveGatewayCredentials } from './chunk-QS43O4DR.js';
|
|
5
5
|
import { findGitDirs, readRepoConnection } from './chunk-BJ3KTMDH.js';
|
|
6
6
|
import { resolveRepoIdentity } from './chunk-AEKSX4EY.js';
|
|
7
7
|
import { cliInvocation } from './chunk-CRB3POP4.js';
|
|
@@ -1,8 +1,7 @@
|
|
|
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 { unauthorizedMessage, resolveGatewayCredentials } from './chunk-NTRCK4NH.js';
|
|
3
|
+
import { autoConnect, detectActiveSession } from './chunk-B42BIYC6.js';
|
|
4
|
+
import { defaultFetch, unauthorizedMessage, resolveGatewayCredentials } from './chunk-QS43O4DR.js';
|
|
6
5
|
import { resolveRepoIdentity } from './chunk-AEKSX4EY.js';
|
|
7
6
|
import { C } from './chunk-ANPNT6PM.js';
|
|
8
7
|
import { parseWorkItemEnv } from './chunk-T2Q7ISPE.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-
|
|
3
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-IHNQWF6F.js';
|
|
4
4
|
import { readFileSync, existsSync, rmSync, mkdirSync, writeFileSync, renameSync } from 'fs';
|
|
5
5
|
import { join } from 'path';
|
|
6
6
|
|
|
@@ -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,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { currentLink } from './chunk-
|
|
3
|
+
import { currentLink } from './chunk-276D7BJ7.js';
|
|
4
4
|
import { readFileSync, statSync, chmodSync, mkdirSync, writeFileSync, renameSync, rmSync, existsSync, lstatSync, accessSync, constants, realpathSync } from 'fs';
|
|
5
5
|
import { randomBytes } from 'crypto';
|
|
6
6
|
import { join, dirname, delimiter, resolve } from 'path';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { sanitizeTerminal } from './chunk-G3IJ3N6F.js';
|
|
4
4
|
import { DEFAULT_DASHBOARD } from './chunk-EAQSOE62.js';
|
|
5
|
-
import { resolveGatewayCredentials } from './chunk-
|
|
5
|
+
import { cliFetch, resolveGatewayCredentials } from './chunk-QS43O4DR.js';
|
|
6
6
|
import { writeRepoConnection, findGitDirs, readRepoConnection } from './chunk-BJ3KTMDH.js';
|
|
7
7
|
import { remoteLookupFailed } from './chunk-AEKSX4EY.js';
|
|
8
8
|
import { readCloudConfig } from './chunk-EABW6AJQ.js';
|
|
@@ -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 };
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { detectActiveSession, autoConnect } from './chunk-
|
|
4
|
-
import { workPageUrl } from './chunk-
|
|
3
|
+
import { detectActiveSession, autoConnect } from './chunk-B42BIYC6.js';
|
|
4
|
+
import { workPageUrl } from './chunk-EMUNEAQK.js';
|
|
5
5
|
import { sanitizeTerminal } from './chunk-G3IJ3N6F.js';
|
|
6
|
-
import { defaultFetch } from './chunk-
|
|
7
|
-
import { resolveGatewayCredentials, unauthorizedMessage } from './chunk-NTRCK4NH.js';
|
|
6
|
+
import { resolveGatewayCredentials, unauthorizedMessage, defaultFetch } from './chunk-QS43O4DR.js';
|
|
8
7
|
import { readRepoConnection } from './chunk-BJ3KTMDH.js';
|
|
9
8
|
import { resolveRepoIdentity } from './chunk-AEKSX4EY.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';
|
|
13
|
-
import { signRunnerRequest } from './chunk-
|
|
12
|
+
import { signRunnerRequest } from './chunk-OW52QLK3.js';
|
|
14
13
|
|
|
15
14
|
createRequire(import.meta.url);
|
|
16
15
|
|
|
@@ -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-QUGEI2IT.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 { MIN_ENGINE_MAJOR } from './chunk-
|
|
3
|
+
import { MIN_ENGINE_MAJOR } from './chunk-WKSBSEWT.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';
|
|
@@ -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,
|
|
@@ -429,7 +429,7 @@ async function handleWorkLaunch(sessionId, home, env, spawnImpl = spawnDetached,
|
|
|
429
429
|
}
|
|
430
430
|
async function missingRenewalHookContext(home, cwd) {
|
|
431
431
|
try {
|
|
432
|
-
const { settingsPath, readSettings, isOurHookCommand } = await import('./settings-
|
|
432
|
+
const { settingsPath, readSettings, isOurHookCommand } = await import('./settings-AKYEOCC2.js');
|
|
433
433
|
const userSettings = readSettings(settingsPath("user", { home }));
|
|
434
434
|
const projectSettings = readSettings(settingsPath("project", { cwd }));
|
|
435
435
|
if (userSettings === null && projectSettings === null) return void 0;
|
|
@@ -628,7 +628,7 @@ async function missingControlPlane(cwd, sessionId, home, env) {
|
|
|
628
628
|
cleanupEarlierCopies(dirs);
|
|
629
629
|
}
|
|
630
630
|
if (!contextPossiblyGoverned(cwd, home)) return void 0;
|
|
631
|
-
const { governanceOf } = await import('./control-plane-launch-
|
|
631
|
+
const { governanceOf } = await import('./control-plane-launch-HE6OSWKO.js');
|
|
632
632
|
if (await governanceOf({ cwd, env, home }) !== "governed") return void 0;
|
|
633
633
|
recordMissingContext(dirs, sessionId, home);
|
|
634
634
|
const launcher = `${cliInvocation()} claude`;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { WorkCommandError, postJson } from './chunk-
|
|
4
|
-
import { defaultGitRunner, materializeContext, isStagingWriteFault, lookupGoverningSource } from './chunk-
|
|
5
|
-
import { signingFetchFor } from './chunk-
|
|
3
|
+
import { WorkCommandError, postJson } from './chunk-FQE5RDHI.js';
|
|
4
|
+
import { defaultGitRunner, materializeContext, isStagingWriteFault, lookupGoverningSource } from './chunk-SNVXHNU7.js';
|
|
5
|
+
import { signingFetchFor } from './chunk-QS43O4DR.js';
|
|
6
6
|
import { unsupportedLayout, layoutRefusalReason, composeDelivery } from './chunk-ZNPE7FW5.js';
|
|
7
7
|
import { SHIM_SCRIPT, GOVERNANCE_VARIABLE } from './chunk-HCVLP7XA.js';
|
|
8
8
|
import { readDegraded, readContextManifest, readSourceCache } from './chunk-YQR6E6OV.js';
|
|
9
|
-
import { signerFor } from './chunk-
|
|
10
|
-
import { SHIM_DIR, stagedContextDir, contextHomeDir, deliveryDir } from './chunk-
|
|
9
|
+
import { signerFor } from './chunk-OW52QLK3.js';
|
|
10
|
+
import { SHIM_DIR, stagedContextDir, contextHomeDir, deliveryDir } from './chunk-IHNQWF6F.js';
|
|
11
11
|
import { fstatSync, mkdirSync, writeFileSync, chmodSync, rmSync, lstatSync } from 'fs';
|
|
12
12
|
import { relative, join, dirname } from 'path';
|
|
13
13
|
|
|
@@ -1,12 +1,12 @@
|
|
|
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-
|
|
3
|
+
import { isPlaceholderCommand } from './chunk-ZCXP35T3.js';
|
|
4
|
+
import { describeCallFailure } from './chunk-IMCVQF5F.js';
|
|
5
|
+
import { WorkCommandError, getJson } from './chunk-FQE5RDHI.js';
|
|
6
6
|
import { sanitizeTerminal } from './chunk-G3IJ3N6F.js';
|
|
7
|
-
import { builtinKind } from './chunk-
|
|
8
|
-
import { signerFor } from './chunk-
|
|
9
|
-
import { CLAUDE_CREDENTIAL_VARIABLES, claudeCredential } from './chunk-
|
|
7
|
+
import { builtinKind } from './chunk-V5CG75NX.js';
|
|
8
|
+
import { signerFor } from './chunk-OW52QLK3.js';
|
|
9
|
+
import { CLAUDE_CREDENTIAL_VARIABLES, claudeCredential } from './chunk-URWYRAIC.js';
|
|
10
10
|
|
|
11
11
|
createRequire(import.meta.url);
|
|
12
12
|
|