@outerlayer/cli 0.34.0-next.20261028183303 → 0.34.0-next.20261029014930
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/README.md +7 -0
- package/dist/agent-setup-J2WZHYN5.js +32 -0
- package/dist/{artifact-link-cmd-CSVFEM5O.js → artifact-link-cmd-6LFCTDBD.js} +5 -5
- package/dist/{build-SEJJWGTO.js → build-2JBISOVR.js} +8 -8
- package/dist/{build-disk-EYRR3PBT.js → build-disk-ECEVCK35.js} +6 -6
- package/dist/build-info.json +1 -1
- package/dist/{builder-T7B46P7T.js → builder-OMDEUDO3.js} +5 -5
- package/dist/caller-P5ZHKVD5.js +18 -0
- package/dist/{check-VKSOYRNI.js → check-6ZGMF7VF.js} +84 -66
- package/dist/{chunk-ANPNT6PM.js → chunk-2AM6Z5BP.js} +1 -1
- package/dist/{chunk-3UIXIGYT.js → chunk-2B6EKUBD.js} +4 -4
- package/dist/{chunk-GG5OE6MY.js → chunk-2RTGZ6AE.js} +1 -1
- package/dist/{chunk-QGEGLZSY.js → chunk-32QKEHC7.js} +46 -6
- package/dist/{chunk-VNVZDWO3.js → chunk-352DHUTP.js} +4 -1
- package/dist/{chunk-VX7WZK7J.js → chunk-3MKCUCG7.js} +187 -119
- package/dist/{chunk-ZJSNLVCE.js → chunk-545P7JY7.js} +1 -1
- package/dist/{chunk-2EEW6FJN.js → chunk-5FWBAM6O.js} +1 -1
- package/dist/{chunk-MCPCOKHN.js → chunk-5VGVYEFT.js} +9 -9
- package/dist/{chunk-T2Q7ISPE.js → chunk-5WYT3PPE.js} +1 -1
- package/dist/{chunk-ARL6X6Y4.js → chunk-62TMOXQN.js} +2 -2
- package/dist/{chunk-RRXS4CWE.js → chunk-6JDEP42Z.js} +9 -7
- package/dist/{chunk-AF4E4I4T.js → chunk-6OAOOAJO.js} +11 -11
- package/dist/{chunk-64O2NUVA.js → chunk-76VJKVM5.js} +8 -7
- package/dist/{chunk-4YD7N6V3.js → chunk-7B6CKPNZ.js} +3 -3
- package/dist/{chunk-I2MFIT6X.js → chunk-7T5MUKW6.js} +28 -27
- package/dist/{chunk-2EHDLYSL.js → chunk-7TIFAOUG.js} +30 -22
- package/dist/{chunk-G2JWZDFA.js → chunk-A2LHHKTT.js} +3 -3
- package/dist/{chunk-ESVW4MJY.js → chunk-AAGU5FJF.js} +1 -1
- package/dist/{chunk-NXUZFHMX.js → chunk-B7ZC2HKE.js} +3 -3
- package/dist/{chunk-YF7W7B7Y.js → chunk-BWJRNMZZ.js} +37 -10
- package/dist/{chunk-TUSYOL2O.js → chunk-CJPTUU2E.js} +1 -1
- package/dist/{chunk-MEIDQLXQ.js → chunk-D7BEGG7T.js} +1 -1
- package/dist/{chunk-V2S2WRGD.js → chunk-DG25T7AY.js} +11 -11
- package/dist/chunk-DUV33KMD.js +31 -0
- package/dist/{chunk-NCOL5RYI.js → chunk-E4R3M6XJ.js} +1 -1
- package/dist/{chunk-DCBFUUDL.js → chunk-EFZM7UOP.js} +7 -7
- package/dist/{chunk-KH4774QT.js → chunk-F57NE5AO.js} +1 -1
- package/dist/{chunk-MH6QLXUO.js → chunk-FJ7KTNMD.js} +1 -1
- package/dist/{chunk-3KGXXTMN.js → chunk-FNS2RJ5T.js} +5 -5
- package/dist/{chunk-2O5KA67H.js → chunk-FUJUFLDC.js} +2 -2
- package/dist/{chunk-CRB3POP4.js → chunk-FZKNTIOJ.js} +1 -1
- package/dist/{chunk-KPEMNHVF.js → chunk-G7OVITGQ.js} +2 -2
- package/dist/{chunk-7JSWRF5O.js → chunk-GD4AXYK3.js} +10 -10
- package/dist/{chunk-SAAVZ2BX.js → chunk-GOSOKVBF.js} +1 -1
- package/dist/{chunk-ZTOJIRJH.js → chunk-HFHRTVXN.js} +8 -8
- package/dist/{chunk-S6UM3N4R.js → chunk-HSE2LOWO.js} +36 -11
- package/dist/{chunk-XDAMLX2L.js → chunk-HUS3GYCX.js} +9 -9
- package/dist/{chunk-PJDQPF5N.js → chunk-HWVMRETT.js} +1 -1
- package/dist/{chunk-WH3FPBPO.js → chunk-I35CNSPC.js} +60 -29
- package/dist/{chunk-ZCA34T7R.js → chunk-JEOBBOZY.js} +8 -8
- package/dist/{chunk-RQ3GCCHH.js → chunk-JXXMOAJG.js} +2 -2
- package/dist/{chunk-EA2PQRCU.js → chunk-K6LLZONM.js} +6 -6
- package/dist/{chunk-LJEZGHCH.js → chunk-KWFJF4CX.js} +646 -210
- package/dist/{chunk-URIZRCRY.js → chunk-KYDEBGJG.js} +1 -1
- package/dist/{chunk-P2PNBDUT.js → chunk-LLQGVGFO.js} +3 -3
- package/dist/{chunk-HFOZTCTN.js → chunk-N2OG4RN6.js} +7 -7
- package/dist/{chunk-KT4CN6OU.js → chunk-OHQMGLJP.js} +3 -3
- package/dist/{chunk-5BHIBJDA.js → chunk-OLM2TIOW.js} +1 -1
- package/dist/{chunk-VEVNGDTP.js → chunk-PDK35AR4.js} +2 -2
- package/dist/{chunk-UZEIBWTP.js → chunk-PGJY7XTY.js} +7 -7
- package/dist/{chunk-TDCHUEKY.js → chunk-PNAVR5OD.js} +5 -5
- package/dist/{chunk-RPST2GNG.js → chunk-PQ5YDDDE.js} +3 -3
- package/dist/{chunk-OKJXZXYH.js → chunk-PUSCE544.js} +6 -6
- package/dist/{chunk-ZEFNJCN3.js → chunk-QM3HMXMU.js} +2 -2
- package/dist/{chunk-CUAB7FAZ.js → chunk-QNISFH47.js} +8 -8
- package/dist/{chunk-5TXQFZHY.js → chunk-QOVUDIUI.js} +1 -1
- package/dist/{chunk-OYQVLQP3.js → chunk-QTNWAV23.js} +14 -12
- package/dist/{chunk-ZCZY3Q55.js → chunk-RZ22SWMA.js} +1 -1
- package/dist/{chunk-KQDK4Q6A.js → chunk-SMYOFJHK.js} +10 -10
- package/dist/{chunk-GH2HEEOH.js → chunk-TV2OQUWE.js} +1 -1
- package/dist/{chunk-HH3BQG65.js → chunk-UPRZREBO.js} +1 -1
- package/dist/{chunk-W7E6IMEW.js → chunk-UTIRCHI5.js} +22 -21
- package/dist/{chunk-H7MGR2GN.js → chunk-UZDWCSLS.js} +6 -6
- package/dist/{chunk-IAVT7R6O.js → chunk-WJTIU2A5.js} +6 -6
- package/dist/{chunk-QGDGGLSD.js → chunk-X4PYXWBY.js} +3 -3
- package/dist/{chunk-54LIUIZL.js → chunk-XGSJNXH2.js} +4 -4
- package/dist/chunk-XKV6HXKD.js +39 -0
- package/dist/{chunk-I7RZHMXW.js → chunk-YBAVN6WS.js} +3 -3
- package/dist/{chunk-IXRUVR25.js → chunk-YTTESG7K.js} +46 -7
- package/dist/{chunk-MRLJK4GZ.js → chunk-YZSE7EYM.js} +6 -6
- package/dist/{chunk-CKDSPW35.js → chunk-ZI2E4YMY.js} +6 -6
- package/dist/{chunk-UXC3RQLF.js → chunk-ZQQNWDPE.js} +1 -1
- package/dist/{claude-launcher-7IC6QWR5.js → claude-launcher-GACOES7Z.js} +6 -6
- package/dist/{cli-HBS2PXSS.js → cli-A3IUMZHY.js} +162 -152
- package/dist/{cli-update-notice-4DLZ3655.js → cli-update-notice-T3CXRWNB.js} +3 -3
- package/dist/{command-XA6DOFL4.js → command-XPDD3473.js} +39 -38
- package/dist/{config-RSOCVUKC.js → config-7DT7UVUI.js} +8 -8
- package/dist/connect-cmd-TWSO7YKC.js +27 -0
- package/dist/{container-start-PYW7W2N2.js → container-start-2AQWC275.js} +53 -52
- package/dist/{context-cleanup-CEZSKNVL.js → context-cleanup-PASDUBGW.js} +5 -5
- package/dist/{context-show-cmd-XWLTP6R4.js → context-show-cmd-6MEUB3HU.js} +18 -18
- package/dist/{control-plane-launch-3MBWPYWZ.js → control-plane-launch-6NN5ZSP3.js} +15 -15
- package/dist/{demo-record-cmd-SIKNTSGI.js → demo-record-cmd-2FY7VCIL.js} +3 -3
- package/dist/{demo-voice-cmd-SAB3QU4F.js → demo-voice-cmd-GJNJNEAI.js} +29 -29
- package/dist/{dist-VPXROEZO.js → dist-Z6WP743R.js} +2 -2
- package/dist/{docker-YMRPMDOW.js → docker-DLJTPUC5.js} +5 -5
- package/dist/{doctor-NVHAE4LS.js → doctor-HYDAFWR2.js} +49 -38
- package/dist/emit-artifact-cmd-TTLDSPP3.js +43 -0
- package/dist/emit-cmd-UOPHEUW5.js +16 -0
- package/dist/emit-criteria-cmd-MZSFNXTL.js +33 -0
- package/dist/emit-demo-cmd-CPC6OR6A.js +47 -0
- package/dist/emit-finding-cmd-6ABNXD5P.js +34 -0
- package/dist/{emit-result-cmd-VCKNZ4RZ.js → emit-result-cmd-7STD6BH3.js} +27 -27
- package/dist/emit-step-cmd-A35LWNWB.js +33 -0
- package/dist/find-unit-ZMUTRE46.js +19 -0
- package/dist/{findings-cmd-PLHBAQW4.js → findings-cmd-JNLW5T2Q.js} +22 -22
- package/dist/fleet-readiness-7WASGVPR.js +28 -0
- package/dist/governing-source-SQE47DKU.js +38 -0
- package/dist/{guest-init-MI4SEME4.js → guest-init-73ZCYECM.js} +2 -2
- package/dist/{hook-fast-GOH4T6SN.js → hook-fast-AELCXUNA.js} +6 -6
- package/dist/{hook-wrap-fast-7VYYAAH4.js → hook-wrap-fast-545QJSBJ.js} +3 -3
- package/dist/host-checks-EM7CVCO6.js +78 -0
- package/dist/{host-key-OMLDWLNG.js → host-key-ZRXO2BXZ.js} +2 -2
- package/dist/{image-tag-YJJONB64.js → image-tag-6KN2SKDZ.js} +2 -2
- package/dist/index.js +6 -6
- package/dist/init-4U2IAN5U.js +57 -0
- package/dist/{init-W3ATJYLX.js → init-NEOWYRSR.js} +35 -34
- package/dist/{init-cmd-XJOEU2PB.js → init-cmd-WRNXDUM7.js} +32 -32
- package/dist/{init-update-KX3FFQ5H.js → init-update-ATXYAAAD.js} +29 -29
- package/dist/{install-cmd-QTIIMO6B.js → install-cmd-WF2N2SKL.js} +4 -4
- package/dist/{layout-7UOBWNYO.js → layout-ZE6F2Z7W.js} +4 -4
- package/dist/login-browser-YB7AMKHR.js +13 -0
- package/dist/{logout-cmd-5WE2N5B5.js → logout-cmd-Z2PYV5LF.js} +5 -5
- package/dist/{logs-YVXVAYTD.js → logs-WEJHWBLM.js} +22 -2
- package/dist/loop-IHQ4UMRY.js +89 -0
- package/dist/machine-VNDSSHQA.js +57 -0
- package/dist/{machine-skills-KYN7XJEJ.js → machine-skills-DMHU7OLO.js} +5 -5
- package/dist/{mcp-install-cmd-LD7KYAOP.js → mcp-install-cmd-23ZY4IBK.js} +5 -5
- package/dist/{mcp-serve-cmd-ECTAPDB3.js → mcp-serve-cmd-YT63QC7W.js} +8 -8
- package/dist/{paths-M66LPPUF.js → paths-IGFAJFPN.js} +1 -1
- package/dist/{pending-7LC6XDRO.js → pending-GBIXDPY7.js} +2 -2
- package/dist/{pidfile-DSQOOAZV.js → pidfile-BDQMJPLA.js} +2 -2
- package/dist/{record-3KKIJ3XL.js → record-KLNLIQVR.js} +2 -2
- package/dist/{runner-env-EX7YUIUH.js → runner-env-PBTT2CNL.js} +10 -10
- package/dist/{runner-identity-LJWBXNM5.js → runner-identity-JVG53E73.js} +5 -5
- package/dist/{runner-key-CAUO4RKG.js → runner-key-YKHIRBO4.js} +34 -33
- package/dist/session-sender-SNBEWETV.js +43 -0
- package/dist/{settings-3DBYKYQD.js → settings-XB2HYBKO.js} +2 -2
- package/dist/{spec-cmd-SAWQYHKM.js → spec-cmd-VPP66GMQ.js} +22 -22
- package/dist/{starter-pack-KB3YH4KX.js → starter-pack-WUNNS6G7.js} +9 -9
- package/dist/state-VIWYAWVB.js +9 -0
- package/dist/{status-VMFS7N6A.js → status-HY5FJPJV.js} +74 -52
- package/dist/{statusline-fast-YVHG6ZLX.js → statusline-fast-E7RWVREA.js} +4 -4
- package/dist/sync-cmd-7BG47GNA.js +42 -0
- package/dist/update-steps-NI25AAQM.js +79 -0
- package/dist/{watch-6NRBX6VE.js → watch-QMKKCF2B.js} +27 -27
- package/dist/{work-claim-cmd-SLVX2N4L.js → work-claim-cmd-UUMDPIZG.js} +25 -25
- package/dist/work-cmd-5QGKKDFY.js +31 -0
- package/dist/work-comment-cmd-YJ3JTQ5B.js +32 -0
- package/dist/{work-demo-cmd-SZJIKB5J.js → work-demo-cmd-AQ4JVDCK.js} +19 -19
- package/dist/{work-launch-LEQ2MPM3.js → work-launch-TTGSHLY4.js} +3 -3
- package/dist/{work-logs-cmd-MRFSBMJM.js → work-logs-cmd-TQTA7KQK.js} +19 -19
- package/dist/{work-open-pr-cmd-N7GK7FUQ.js → work-open-pr-cmd-2NFF3RYJ.js} +21 -21
- package/dist/work-pr-cmd-R5VRWQJD.js +32 -0
- package/dist/work-proofs-cmd-UYGYDIYY.js +35 -0
- package/dist/{work-proofs-record-JD4DNZUW.js → work-proofs-record-U3KQOM5Z.js} +33 -33
- package/dist/{work-stop-cmd-M6RIGF7S.js → work-stop-cmd-SIAX4XAA.js} +19 -19
- package/package.json +1 -1
- package/dist/agent-setup-IVXRBFVV.js +0 -32
- package/dist/connect-cmd-JFGDHFLA.js +0 -27
- package/dist/emit-artifact-cmd-TZTVQCFT.js +0 -43
- package/dist/emit-cmd-4G3443OJ.js +0 -16
- package/dist/emit-criteria-cmd-WH7JB4RQ.js +0 -33
- package/dist/emit-demo-cmd-DNUVG5N7.js +0 -47
- package/dist/emit-finding-cmd-X5CBH4ZA.js +0 -34
- package/dist/emit-step-cmd-IUXZZYKO.js +0 -33
- package/dist/find-unit-QYD2FMCP.js +0 -19
- package/dist/fleet-readiness-F65CKZY5.js +0 -28
- package/dist/governing-source-JFCTQXYK.js +0 -38
- package/dist/host-checks-HC4XXGAD.js +0 -77
- package/dist/init-JVKJTJNM.js +0 -56
- package/dist/login-browser-Q25ZNSQ3.js +0 -13
- package/dist/loop-GBTANKUW.js +0 -87
- package/dist/machine-OQOHEMJB.js +0 -56
- package/dist/session-sender-U2CTD7EX.js +0 -43
- package/dist/sync-cmd-EBJQ5LMH.js +0 -42
- package/dist/update-steps-HMSVBDKH.js +0 -78
- package/dist/work-cmd-VSHZCXHQ.js +0 -31
- package/dist/work-comment-cmd-3DCL7VHN.js +0 -32
- package/dist/work-pr-cmd-HD5OIHUU.js +0 -32
- package/dist/work-proofs-cmd-GFGENBGN.js +0 -35
- package/dist/{chunk-POND2SMT.js → chunk-RC2WZQK6.js} +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { homeFromEnv } from './chunk-
|
|
3
|
+
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
4
4
|
import { existsSync, readFileSync, mkdirSync, copyFileSync, writeFileSync } from 'fs';
|
|
5
5
|
import { join, dirname, isAbsolute } from 'path';
|
|
6
6
|
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { resolveDevcontainerCli, devcontainerBuildInvocation, universalImagePending, RecipeError } from './chunk-CM4J53WZ.js';
|
|
4
4
|
import { universalImagePinned, UNIVERSAL_IMAGE, BUILDKIT_IMAGE } from './chunk-D3CT6XQ4.js';
|
|
5
|
-
import { ensureHostKey } from './chunk-
|
|
6
|
-
import { compareVersions } from './chunk-
|
|
7
|
-
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, jobsDir } from './chunk-
|
|
5
|
+
import { ensureHostKey } from './chunk-QOVUDIUI.js';
|
|
6
|
+
import { compareVersions } from './chunk-TV2OQUWE.js';
|
|
7
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, jobsDir } from './chunk-HSE2LOWO.js';
|
|
8
8
|
import { CLAUDE_PORT, BUILD_HOME, JOB_MOUNT, GATEWAY_PORT, GATEWAY_SOCKET, CLAUDE_SOCKET, RELAY_PORT, DESTINATION_BASE_PORT } from './chunk-YLPJOUVF.js';
|
|
9
9
|
import { JOIN_DIR, RELAY_ID, JOIN_SOCKET, TARGET_GATEWAY, TARGET_CLAUDE, destinationTarget, RELAY_USER } from './chunk-MESOOLF4.js';
|
|
10
10
|
import { createHash } from 'crypto';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { DEFAULT_DASHBOARD } from './chunk-
|
|
4
|
-
import { sanitizeTerminal } from './chunk-
|
|
5
|
-
import { isAgentsMdLayout } from './chunk-
|
|
6
|
-
import { cliFetch, resolveGatewayCredentials } from './chunk-
|
|
7
|
-
import { readCloudConfig } from './chunk-
|
|
3
|
+
import { DEFAULT_DASHBOARD } from './chunk-ZI2E4YMY.js';
|
|
4
|
+
import { sanitizeTerminal } from './chunk-PDK35AR4.js';
|
|
5
|
+
import { isAgentsMdLayout } from './chunk-62TMOXQN.js';
|
|
6
|
+
import { cliFetch, resolveGatewayCredentials } from './chunk-FNS2RJ5T.js';
|
|
7
|
+
import { readCloudConfig } from './chunk-HWVMRETT.js';
|
|
8
8
|
import { findGitDirs, writeRepoConnection, readRepoConnection } from './chunk-BJ3KTMDH.js';
|
|
9
|
-
import { remoteLookupFailed } from './chunk-
|
|
10
|
-
import { cliInvocation } from './chunk-
|
|
9
|
+
import { remoteLookupFailed } from './chunk-TV2OQUWE.js';
|
|
10
|
+
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
11
11
|
import { execFileSync } from 'child_process';
|
|
12
12
|
import { lstatSync } from 'fs';
|
|
13
13
|
import { join, relative } from 'path';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { C } from './chunk-
|
|
4
|
-
import { readCloudConfig } from './chunk-
|
|
5
|
-
import { cliInvocation } from './chunk-
|
|
3
|
+
import { C } from './chunk-2AM6Z5BP.js';
|
|
4
|
+
import { readCloudConfig } from './chunk-HWVMRETT.js';
|
|
5
|
+
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
6
6
|
import { existsSync, writeFileSync, readFileSync, mkdirSync } 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 { MAINTAINED_SKILLS, maintainedLineVersion } from './chunk-CDDED64E.js';
|
|
4
|
-
import { cliInvocation } from './chunk-
|
|
4
|
+
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
5
5
|
import { mkdirSync, writeFileSync, renameSync, rmSync, readFileSync } from 'fs';
|
|
6
6
|
import { dirname, join } from 'path';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { ArtifactTombstoneRecordSchema, ArtifactSpoolRecordSchema } from './chunk-
|
|
4
|
-
import { homeFromEnv } from './chunk-
|
|
3
|
+
import { ArtifactTombstoneRecordSchema, ArtifactSpoolRecordSchema } from './chunk-YTTESG7K.js';
|
|
4
|
+
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
5
5
|
import { mkdirSync, appendFileSync, writeFileSync, renameSync, unlinkSync, existsSync, readdirSync, readFileSync, statSync } from 'fs';
|
|
6
6
|
import { join, dirname } from 'path';
|
|
7
7
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { removeRetiredSkills } from './chunk-
|
|
4
|
-
import { defaultFetch, resolveGatewayCredentials } from './chunk-
|
|
5
|
-
import { appendContextProvenance } from './chunk-
|
|
6
|
-
import { loadMaintainedFiles, writeMaintainedFiles } from './chunk-
|
|
7
|
-
import { cliInvocation } from './chunk-
|
|
3
|
+
import { removeRetiredSkills } from './chunk-PQ5YDDDE.js';
|
|
4
|
+
import { defaultFetch, resolveGatewayCredentials } from './chunk-FNS2RJ5T.js';
|
|
5
|
+
import { appendContextProvenance } from './chunk-545P7JY7.js';
|
|
6
|
+
import { loadMaintainedFiles, writeMaintainedFiles } from './chunk-UPRZREBO.js';
|
|
7
|
+
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
8
8
|
import { writeDegraded, writeSourceCache, SOURCE_CACHE_TTL_RETRY_MS, writeContextManifest, SOURCE_CACHE_TTL_SUCCESS_MS, readSourceCache, isSourceCacheFresh, clearDegraded } from './chunk-YQR6E6OV.js';
|
|
9
|
-
import { normalizeRepoName, parseOuterlayerConfig, classifyTree, emitTree } from './chunk-
|
|
10
|
-
import { homeFromEnv } from './chunk-
|
|
9
|
+
import { normalizeRepoName, parseOuterlayerConfig, classifyTree, emitTree } from './chunk-5FWBAM6O.js';
|
|
10
|
+
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
11
11
|
import { withTokenHeader } from './chunk-YLPJOUVF.js';
|
|
12
12
|
import { execFileSync } from 'child_process';
|
|
13
13
|
import { existsSync, mkdirSync, writeFileSync, chmodSync, lstatSync, readFileSync, copyFileSync } from 'fs';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { LiveUploader } from './chunk-
|
|
4
|
-
import { spoolDir } from './chunk-
|
|
5
|
-
import { CaptureDaemon } from './chunk-
|
|
6
|
-
import { parseWorkItemEnv } from './chunk-
|
|
7
|
-
import { homeFromEnv } from './chunk-
|
|
3
|
+
import { LiveUploader } from './chunk-7T5MUKW6.js';
|
|
4
|
+
import { spoolDir } from './chunk-DG25T7AY.js';
|
|
5
|
+
import { CaptureDaemon } from './chunk-TV2OQUWE.js';
|
|
6
|
+
import { parseWorkItemEnv } from './chunk-5WYT3PPE.js';
|
|
7
|
+
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
8
8
|
import { mkdirSync, writeFileSync, rmSync } from 'fs';
|
|
9
9
|
import { join } from 'path';
|
|
10
10
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { skillDir, FORMER_MAINTAINED_NAMES, isMaintainedCopy } from './chunk-
|
|
4
|
-
import { cliInvocation } from './chunk-
|
|
5
|
-
import { emitTree, ALL_TARGET_IDS, classifyTree } from './chunk-
|
|
3
|
+
import { skillDir, FORMER_MAINTAINED_NAMES, isMaintainedCopy } from './chunk-UPRZREBO.js';
|
|
4
|
+
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
5
|
+
import { emitTree, ALL_TARGET_IDS, classifyTree } from './chunk-5FWBAM6O.js';
|
|
6
6
|
import { readFileSync, existsSync, unlinkSync, rmdirSync, readdirSync } from 'fs';
|
|
7
7
|
import { join, dirname, relative, sep } from 'path';
|
|
8
8
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { C } from './chunk-
|
|
4
|
-
import { isAgentsMdLayout, discoverOuterlayerPaths, isForeignTree, toRepoRelative } from './chunk-
|
|
5
|
-
import { retiredSkillPaths, removeRetiredSkills } from './chunk-
|
|
6
|
-
import { maintainedFilesForExistingSkills, loadMaintainedFiles, writeMaintainedFiles } from './chunk-
|
|
7
|
-
import { cliInvocation } from './chunk-
|
|
8
|
-
import { emitTree, generatedHeaderSource, parseOuterlayerConfig, classifyTree } from './chunk-
|
|
3
|
+
import { C } from './chunk-2AM6Z5BP.js';
|
|
4
|
+
import { isAgentsMdLayout, discoverOuterlayerPaths, isForeignTree, toRepoRelative } from './chunk-62TMOXQN.js';
|
|
5
|
+
import { retiredSkillPaths, removeRetiredSkills } from './chunk-PQ5YDDDE.js';
|
|
6
|
+
import { maintainedFilesForExistingSkills, loadMaintainedFiles, writeMaintainedFiles } from './chunk-UPRZREBO.js';
|
|
7
|
+
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
8
|
+
import { emitTree, generatedHeaderSource, parseOuterlayerConfig, classifyTree } from './chunk-5FWBAM6O.js';
|
|
9
9
|
import { existsSync, readFileSync, mkdirSync, writeFileSync, copyFileSync, unlinkSync, rmdirSync, readdirSync } from 'fs';
|
|
10
10
|
import { join, dirname } from 'path';
|
|
11
11
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { loadMachineSkillFiles, resolvePackRoot } from './chunk-
|
|
3
|
+
import { loadMachineSkillFiles, resolvePackRoot } from './chunk-UPRZREBO.js';
|
|
4
4
|
import { MAINTAINED_SKILLS, maintainedLineVersion } from './chunk-CDDED64E.js';
|
|
5
5
|
import { resolvePackageVersion } from './chunk-RA3O54FC.js';
|
|
6
|
-
import { homeFromEnv } from './chunk-
|
|
6
|
+
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
7
7
|
import { randomBytes } from 'crypto';
|
|
8
8
|
import { existsSync, symlinkSync, realpathSync, lstatSync, readFileSync, mkdirSync, rmSync, renameSync, writeFileSync, cpSync } from 'fs';
|
|
9
9
|
import { join, resolve, dirname, relative } from 'path';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { sanitizeTerminal } from './chunk-
|
|
4
|
-
import { isAgentsMdLayout } from './chunk-
|
|
5
|
-
import { resolveGatewayCredentials, defaultFetch } from './chunk-
|
|
3
|
+
import { sanitizeTerminal } from './chunk-PDK35AR4.js';
|
|
4
|
+
import { isAgentsMdLayout } from './chunk-62TMOXQN.js';
|
|
5
|
+
import { resolveGatewayCredentials, defaultFetch } from './chunk-FNS2RJ5T.js';
|
|
6
6
|
import { versionAtLeast } from './chunk-HCVLP7XA.js';
|
|
7
7
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
8
|
-
import { machineSkillsState, staleClaudeSkills } from './chunk-
|
|
9
|
-
import { AGENTS_SKILLS_BASE, skillDir, namesCore, MACHINE_SKILL_PATH, isMaintainedCopy, loadTemplateFiles } from './chunk-
|
|
8
|
+
import { machineSkillsState, staleClaudeSkills } from './chunk-QM3HMXMU.js';
|
|
9
|
+
import { AGENTS_SKILLS_BASE, skillDir, namesCore, MACHINE_SKILL_PATH, isMaintainedCopy, loadTemplateFiles } from './chunk-UPRZREBO.js';
|
|
10
10
|
import { MAINTAINED_SKILLS } from './chunk-CDDED64E.js';
|
|
11
|
-
import { cliInvocation } from './chunk-
|
|
12
|
-
import { hasSymlinkComponent } from './chunk-
|
|
13
|
-
import { emitTree, ALL_TARGET_IDS, classifyTree, splitRawFile } from './chunk-
|
|
11
|
+
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
12
|
+
import { hasSymlinkComponent } from './chunk-JXXMOAJG.js';
|
|
13
|
+
import { emitTree, ALL_TARGET_IDS, classifyTree, splitRawFile } from './chunk-5FWBAM6O.js';
|
|
14
14
|
import { execFileSync } from 'child_process';
|
|
15
15
|
import { existsSync, readFileSync, writeFileSync, realpathSync, readdirSync } from 'fs';
|
|
16
16
|
import { join, dirname, posix, basename, isAbsolute, relative } from 'path';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { hostKeyPath, runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-
|
|
3
|
+
import { hostKeyPath, runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-HSE2LOWO.js';
|
|
4
4
|
import { generateKeyPairSync, createPrivateKey, createPublicKey, sign } from 'crypto';
|
|
5
5
|
import { existsSync, mkdirSync, writeFileSync, readFileSync } from 'fs';
|
|
6
6
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { toolsDockerfile } from './chunk-T3XPLCJG.js';
|
|
4
|
-
import {
|
|
4
|
+
import { claimPidFile, RunnerAlreadyRunningError, releasePidFile } from './chunk-GOSOKVBF.js';
|
|
5
|
+
import { startTimeOf } from './chunk-JBJTC3UU.js';
|
|
6
|
+
import { runnerLabelValue } from './chunk-LLQGVGFO.js';
|
|
5
7
|
import { RecipeError, locateRecipe, readRecipe, assertBuildable, writeSanitizedRecipe, classifyProperties, SANITIZED_NAME } from './chunk-CM4J53WZ.js';
|
|
6
8
|
import { UNIVERSAL_IMAGE_DIGEST, UNIVERSAL_IMAGE_REPOSITORY, UNIVERSAL_IMAGE_SOURCE, CLAUDE_CODE_VERSION, NODE_IMAGE, UNIVERSAL_IMAGE, MEDIA_PINS, TINI_VERSION, GH_VERSION } from './chunk-D3CT6XQ4.js';
|
|
7
|
-
import {
|
|
8
|
-
import { startTimeOf } from './chunk-JBJTC3UU.js';
|
|
9
|
-
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, repoCacheDir, imagesDir, imageBuildLogsDir, attemptStamp, runnerDir, rootfsPathFor } from './chunk-S6UM3N4R.js';
|
|
9
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, repoCacheDir, imagesDir, imageBuildLogsDir, attemptStamp, orgStore, rootfsPathFor } from './chunk-HSE2LOWO.js';
|
|
10
10
|
import { withGitConfig, tokenHeader } from './chunk-YLPJOUVF.js';
|
|
11
11
|
import { mkdirSync, rmSync, writeFileSync, existsSync, mkdtempSync, cpSync, readFileSync, readdirSync, lstatSync, readlinkSync } from 'fs';
|
|
12
12
|
import { tmpdir } from 'os';
|
|
@@ -310,9 +310,10 @@ async function prepareImageBuild(opts) {
|
|
|
310
310
|
const now = opts.now ?? (() => /* @__PURE__ */ new Date());
|
|
311
311
|
const claudeCodeVersion = opts.claudeCodeVersion ?? CLAUDE_CODE_VERSION;
|
|
312
312
|
const nodeImage = opts.nodeImage ?? NODE_IMAGE;
|
|
313
|
-
const
|
|
314
|
-
const
|
|
315
|
-
const
|
|
313
|
+
const organizationId = opts.organizationId;
|
|
314
|
+
const cacheDir = repoCacheDir(opts.configPath, owner, name, organizationId);
|
|
315
|
+
const repoRecords = join(imagesDir(opts.configPath, organizationId), owner, name);
|
|
316
|
+
const logPath = join(imageBuildLogsDir(opts.configPath, owner, name, organizationId), `${attemptStamp(now())}.log`);
|
|
316
317
|
const lockPath = join(repoRecords, LOCK_NAME);
|
|
317
318
|
const self = { pid: process.pid, start: startTimeOf(process.pid) ?? "" };
|
|
318
319
|
mkdirSync(repoRecords, { recursive: true, mode: RUNNER_DIR_MODE });
|
|
@@ -336,8 +337,9 @@ async function prepareImageBuild(opts) {
|
|
|
336
337
|
const recipe = readRecipe(checkout.dir, location);
|
|
337
338
|
assertBuildable(checkout.dir, location, recipe);
|
|
338
339
|
const shared = location.kind === "default";
|
|
339
|
-
const
|
|
340
|
-
const
|
|
340
|
+
const scope = organizationId === void 0 ? "" : `${organizationId}/`;
|
|
341
|
+
const imageRepository = `${scope}${shared ? SHARED_REPOSITORY : repository}`;
|
|
342
|
+
const records = shared ? join(imagesDir(opts.configPath, organizationId), SHARED_OWNER, SHARED_NAME) : repoRecords;
|
|
341
343
|
if (shared) {
|
|
342
344
|
mkdirSync(records, { recursive: true, mode: RUNNER_DIR_MODE });
|
|
343
345
|
const sharedLock = join(records, LOCK_NAME);
|
|
@@ -360,7 +362,7 @@ async function prepareImageBuild(opts) {
|
|
|
360
362
|
name,
|
|
361
363
|
repoRecords: records,
|
|
362
364
|
imageRepository,
|
|
363
|
-
tagName: shared ? SHARED_TAG_NAME : repository
|
|
365
|
+
tagName: `${scope}${shared ? SHARED_TAG_NAME : repository}`,
|
|
364
366
|
recordDir,
|
|
365
367
|
checkout,
|
|
366
368
|
location,
|
|
@@ -494,8 +496,8 @@ async function buildRepositoryImage(opts, ports) {
|
|
|
494
496
|
report = { ...report, base };
|
|
495
497
|
}
|
|
496
498
|
const removed = [];
|
|
497
|
-
if (toolsBuilt) removed.push(...await prune(host, imageRepository, repoRecords, opts.keep ?? KEEP_BUILD_IMAGES,
|
|
498
|
-
if (universal) removed.push(...await prune(host, repository
|
|
499
|
+
if (toolsBuilt) removed.push(...await prune(host, imageRepository, repoRecords, opts.keep ?? KEEP_BUILD_IMAGES, orgStore(opts.configPath, opts.organizationId), runnerLabel));
|
|
500
|
+
if (universal) removed.push(...await prune(host, `${opts.organizationId === void 0 ? "" : `${opts.organizationId}/`}${repository}`, join(imagesDir(opts.configPath, opts.organizationId), prepared.owner, prepared.name), 0, orgStore(opts.configPath, opts.organizationId), runnerLabel));
|
|
499
501
|
return {
|
|
500
502
|
reused: !recipeBuilt && !toolsBuilt,
|
|
501
503
|
recipeBuilt,
|
|
@@ -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-HSE2LOWO.js';
|
|
4
4
|
import { readFileSync, existsSync, rmSync, mkdirSync, writeFileSync, renameSync } from 'fs';
|
|
5
5
|
import { join } from 'path';
|
|
6
6
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { runEmit } from './chunk-
|
|
4
|
-
import { addStdioMcpEntryIfAbsent, addDocsMcpEntryIfAbsent, DOCS_MCP_SERVER_NAME } from './chunk-
|
|
5
|
-
import { installStarterPack } from './chunk-
|
|
6
|
-
import { C } from './chunk-
|
|
7
|
-
import { AGENTS_MD_LAYOUT, declareAgentsMdLayout, linkClaudeSkills, SKILLS_LINK_PATH, describeSkillsLink, isAgentsMdLayout, holdsTodaysLayoutSources, discoverOuterlayerPaths } from './chunk-
|
|
8
|
-
import { resolveGitCommonDir, defaultGitRunner } from './chunk-
|
|
9
|
-
import { loadTemplateFiles, loadMaintainedFiles, skillDir, AGENTS_SKILLS_BASE } from './chunk-
|
|
10
|
-
import { cliInvocation } from './chunk-
|
|
11
|
-
import { linkedAgentsPath } from './chunk-
|
|
3
|
+
import { runEmit } from './chunk-PUSCE544.js';
|
|
4
|
+
import { addStdioMcpEntryIfAbsent, addDocsMcpEntryIfAbsent, DOCS_MCP_SERVER_NAME } from './chunk-OHQMGLJP.js';
|
|
5
|
+
import { installStarterPack } from './chunk-XGSJNXH2.js';
|
|
6
|
+
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
|
+
import { AGENTS_MD_LAYOUT, declareAgentsMdLayout, linkClaudeSkills, SKILLS_LINK_PATH, describeSkillsLink, isAgentsMdLayout, holdsTodaysLayoutSources, discoverOuterlayerPaths } from './chunk-62TMOXQN.js';
|
|
8
|
+
import { resolveGitCommonDir, defaultGitRunner } from './chunk-PGJY7XTY.js';
|
|
9
|
+
import { loadTemplateFiles, loadMaintainedFiles, skillDir, AGENTS_SKILLS_BASE } from './chunk-UPRZREBO.js';
|
|
10
|
+
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
11
|
+
import { linkedAgentsPath } from './chunk-JXXMOAJG.js';
|
|
12
12
|
import { cloneIsGoverned } from './chunk-YQR6E6OV.js';
|
|
13
|
-
import { generatedHeaderSource } from './chunk-
|
|
13
|
+
import { generatedHeaderSource } from './chunk-5FWBAM6O.js';
|
|
14
14
|
import { execFileSync } from 'child_process';
|
|
15
15
|
import { existsSync, mkdirSync, writeFileSync } from 'fs';
|
|
16
16
|
import { join, dirname } from 'path';
|
|
@@ -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-YTTESG7K.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';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { MAINTAINED_SKILLS } from './chunk-CDDED64E.js';
|
|
4
4
|
import { resolvePackageVersion } from './chunk-RA3O54FC.js';
|
|
5
|
-
import { splitRawFile } from './chunk-
|
|
5
|
+
import { splitRawFile } from './chunk-5FWBAM6O.js';
|
|
6
6
|
import { existsSync, readFileSync, mkdirSync, writeFileSync, readdirSync } from 'fs';
|
|
7
7
|
import { join, dirname } from 'path';
|
|
8
8
|
import { fileURLToPath } from 'url';
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { staleBuildRefusal, staleBuildWarning, detectCi } from './chunk-
|
|
4
|
-
import { launchRefusalForSession } from './chunk-
|
|
3
|
+
import { staleBuildRefusal, staleBuildWarning, detectCi } from './chunk-7T5MUKW6.js';
|
|
4
|
+
import { launchRefusalForSession } from './chunk-AAGU5FJF.js';
|
|
5
5
|
import { detectActiveSession } from './chunk-IP7BIBXJ.js';
|
|
6
|
-
import { autoConnect } from './chunk-
|
|
7
|
-
import { C } from './chunk-
|
|
8
|
-
import { readEffectiveArtifactSpoolState, localArtifactIds, isArtifactTombstoned, artifactBlobsDir, appendArtifactRecord, artifactsSpoolPath, findPendingArtifactRecord, sanitizeTerminal, appendArtifactTombstone } from './chunk-
|
|
9
|
-
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
10
|
-
import { resolveRepoIdentity } from './chunk-
|
|
6
|
+
import { autoConnect } from './chunk-YZSE7EYM.js';
|
|
7
|
+
import { C } from './chunk-2AM6Z5BP.js';
|
|
8
|
+
import { readEffectiveArtifactSpoolState, localArtifactIds, isArtifactTombstoned, artifactBlobsDir, appendArtifactRecord, artifactsSpoolPath, findPendingArtifactRecord, sanitizeTerminal, appendArtifactTombstone } from './chunk-PDK35AR4.js';
|
|
9
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-FNS2RJ5T.js';
|
|
10
|
+
import { resolveRepoIdentity } from './chunk-TV2OQUWE.js';
|
|
11
11
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
12
|
-
import { cliInvocation } from './chunk-
|
|
13
|
-
import { ARTIFACT_MAX_CAPTION_LENGTH, ArtifactCriterionIdSchema, ARTIFACT_MAX_BYTES, ARTIFACT_MAX_FILENAME_LENGTH, mediaTypeForArtifactPath, inferArtifactKind, ARTIFACT_MAX_REPLACES_TARGETS, parseTestSelector, parseJunit, bindTests } from './chunk-
|
|
14
|
-
import { homeFromEnv } from './chunk-
|
|
12
|
+
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
13
|
+
import { ARTIFACT_MAX_CAPTION_LENGTH, ArtifactCriterionIdSchema, ARTIFACT_MAX_BYTES, ARTIFACT_MAX_FILENAME_LENGTH, mediaTypeForArtifactPath, inferArtifactKind, ARTIFACT_MAX_REPLACES_TARGETS, parseTestSelector, parseJunit, bindTests } from './chunk-YTTESG7K.js';
|
|
14
|
+
import { homeFromEnv, spoolHomeFromEnv } from './chunk-352DHUTP.js';
|
|
15
15
|
import { createHash, randomUUID } from 'crypto';
|
|
16
16
|
import { statSync, readFileSync, mkdirSync, existsSync, writeFileSync, renameSync, unlinkSync } from 'fs';
|
|
17
17
|
import { resolve, basename, join } from 'path';
|
|
@@ -134,6 +134,7 @@ async function runEmitArtifact(opts) {
|
|
|
134
134
|
`);
|
|
135
135
|
const cwd = opts.cwd ?? process.cwd();
|
|
136
136
|
const home = opts.home ?? homeFromEnv(env);
|
|
137
|
+
const spoolHome = opts.home ?? spoolHomeFromEnv(env, home);
|
|
137
138
|
const now = opts.now ?? (() => /* @__PURE__ */ new Date());
|
|
138
139
|
const caption = opts.caption;
|
|
139
140
|
if (caption === void 0 || caption === "") {
|
|
@@ -162,7 +163,7 @@ async function runEmitArtifact(opts) {
|
|
|
162
163
|
const replacesTargets = opts.replaces !== void 0 ? parseReplacesTargets(opts.replaces) : void 0;
|
|
163
164
|
const cancelReplacedTargetLocally = (targetId, correctionCarriesReplaces) => {
|
|
164
165
|
try {
|
|
165
|
-
appendArtifactTombstone(targetId,
|
|
166
|
+
appendArtifactTombstone(targetId, spoolHome, now);
|
|
166
167
|
} catch (err) {
|
|
167
168
|
if (!opts.quiet) {
|
|
168
169
|
const consequence = correctionCarriesReplaces ? "the correction still names it, so the server supersedes it once both upload" : `it is still queued locally and will upload on the next ${cliInvocation()} sync \u2014 nothing on the wire links it to this correction`;
|
|
@@ -194,8 +195,8 @@ async function runEmitArtifact(opts) {
|
|
|
194
195
|
);
|
|
195
196
|
}
|
|
196
197
|
if (replacesTargets !== void 0 && replacesTargets.length > 1) {
|
|
197
|
-
const { state } = readEffectiveArtifactSpoolState(
|
|
198
|
-
const localIds = localArtifactIds(
|
|
198
|
+
const { state } = readEffectiveArtifactSpoolState(spoolHome);
|
|
199
|
+
const localIds = localArtifactIds(spoolHome);
|
|
199
200
|
for (const target of replacesTargets) {
|
|
200
201
|
const entry = state.get(target);
|
|
201
202
|
if (entry === void 0) {
|
|
@@ -212,7 +213,7 @@ async function runEmitArtifact(opts) {
|
|
|
212
213
|
);
|
|
213
214
|
}
|
|
214
215
|
if (entry.state === "dropped" && !entry.reachedServer) {
|
|
215
|
-
if (isArtifactTombstoned(target,
|
|
216
|
+
if (isArtifactTombstoned(target, spoolHome)) {
|
|
216
217
|
throw new EmitArtifactError(
|
|
217
218
|
`--replaces "${target}" has already been dropped locally, or its upload was never confirmed \u2014 run \`${cliInvocation()} sync\` first, then retry the correction.`
|
|
218
219
|
);
|
|
@@ -250,11 +251,11 @@ async function runEmitArtifact(opts) {
|
|
|
250
251
|
if (sessionId !== void 0) {
|
|
251
252
|
const refusal2 = launchRefusalForSession(sessionId, home);
|
|
252
253
|
if (refusal2 !== void 0) throw new EmitArtifactError(refusal2);
|
|
253
|
-
mkdirSync(artifactBlobsDir(
|
|
254
|
-
const blobPath = join(artifactBlobsDir(
|
|
254
|
+
mkdirSync(artifactBlobsDir(spoolHome), { recursive: true });
|
|
255
|
+
const blobPath = join(artifactBlobsDir(spoolHome), sha256);
|
|
255
256
|
const blobExisted = existsSync(blobPath);
|
|
256
257
|
if (!blobExisted) {
|
|
257
|
-
const tmpPath = join(artifactBlobsDir(
|
|
258
|
+
const tmpPath = join(artifactBlobsDir(spoolHome), `.tmp-${randomUUID()}`);
|
|
258
259
|
writeFileSync(tmpPath, bytes);
|
|
259
260
|
renameSync(tmpPath, blobPath);
|
|
260
261
|
}
|
|
@@ -281,7 +282,7 @@ async function runEmitArtifact(opts) {
|
|
|
281
282
|
...opts.blobOptional === true ? { blobOptional: true } : {}
|
|
282
283
|
};
|
|
283
284
|
try {
|
|
284
|
-
appendArtifactRecord(record,
|
|
285
|
+
appendArtifactRecord(record, spoolHome);
|
|
285
286
|
} catch (err) {
|
|
286
287
|
if (!blobExisted) {
|
|
287
288
|
try {
|
|
@@ -290,12 +291,12 @@ async function runEmitArtifact(opts) {
|
|
|
290
291
|
}
|
|
291
292
|
}
|
|
292
293
|
throw new EmitArtifactError(
|
|
293
|
-
`failed to record the artifact in the spool (${artifactsSpoolPath(
|
|
294
|
+
`failed to record the artifact in the spool (${artifactsSpoolPath(spoolHome)}): ${String(err)} \u2014 the artifact was NOT captured; fix the spool path and re-run`
|
|
294
295
|
);
|
|
295
296
|
}
|
|
296
297
|
if (replacesTargets !== void 0 && replacesTargets.length === 1) {
|
|
297
298
|
const target = replacesTargets[0];
|
|
298
|
-
if (findPendingArtifactRecord(target,
|
|
299
|
+
if (findPendingArtifactRecord(target, spoolHome) !== void 0) {
|
|
299
300
|
cancelReplacedTargetLocally(target, true);
|
|
300
301
|
}
|
|
301
302
|
}
|
|
@@ -324,7 +325,7 @@ async function runEmitArtifact(opts) {
|
|
|
324
325
|
const clientArtifactId = opts.artifactId ?? randomUUID();
|
|
325
326
|
const commitSha = prHeadShaFromCiEnv(env) ?? identity.commitSha;
|
|
326
327
|
const singleTarget = replacesTargets !== void 0 && replacesTargets.length === 1 ? replacesTargets[0] : void 0;
|
|
327
|
-
const targetPendingLocally = singleTarget !== void 0 && findPendingArtifactRecord(singleTarget,
|
|
328
|
+
const targetPendingLocally = singleTarget !== void 0 && findPendingArtifactRecord(singleTarget, spoolHome) !== void 0;
|
|
328
329
|
const directTargets = targetPendingLocally ? void 0 : replacesTargets;
|
|
329
330
|
const request = {
|
|
330
331
|
schemaVersion: 1,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { resolveCredentials, postJson, getJson } from './chunk-
|
|
3
|
+
import { resolveCredentials, postJson, getJson } from './chunk-HUS3GYCX.js';
|
|
4
4
|
import { detectActiveSession } from './chunk-IP7BIBXJ.js';
|
|
5
|
-
import { C } from './chunk-
|
|
6
|
-
import { sanitizeTerminal } from './chunk-
|
|
7
|
-
import { defaultFetch } from './chunk-
|
|
8
|
-
import { resolveRepoIdentity } from './chunk-
|
|
5
|
+
import { C } from './chunk-2AM6Z5BP.js';
|
|
6
|
+
import { sanitizeTerminal } from './chunk-PDK35AR4.js';
|
|
7
|
+
import { defaultFetch } from './chunk-FNS2RJ5T.js';
|
|
8
|
+
import { resolveRepoIdentity } from './chunk-TV2OQUWE.js';
|
|
9
9
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
10
|
-
import { homeFromEnv } from './chunk-
|
|
10
|
+
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
11
11
|
import { randomUUID } from 'crypto';
|
|
12
12
|
|
|
13
13
|
createRequire(import.meta.url);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { mcpTargetPath, INIT_STDIO_ENTRY, INIT_DOCS_ENTRY, DOCS_MCP_SERVER_NAME } from './chunk-
|
|
4
|
-
import { VALIDATOR_FILES, VALIDATORS_DIR, POLICY_PATH, POLICY_CONTENT } from './chunk-
|
|
5
|
-
import { skillsBaseFor } from './chunk-
|
|
3
|
+
import { mcpTargetPath, INIT_STDIO_ENTRY, INIT_DOCS_ENTRY, DOCS_MCP_SERVER_NAME } from './chunk-OHQMGLJP.js';
|
|
4
|
+
import { VALIDATOR_FILES, VALIDATORS_DIR, POLICY_PATH, POLICY_CONTENT } from './chunk-XGSJNXH2.js';
|
|
5
|
+
import { skillsBaseFor } from './chunk-62TMOXQN.js';
|
|
6
6
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
7
|
-
import { resolvePackRoot, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, restoreSkillPaths, rewriteSkillPaths, skillDir, loadTemplateFiles, TEMPLATE_SKILLS } from './chunk-
|
|
8
|
-
import { cliInvocation } from './chunk-
|
|
9
|
-
import { hasSymlinkComponent } from './chunk-
|
|
7
|
+
import { resolvePackRoot, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, restoreSkillPaths, rewriteSkillPaths, skillDir, loadTemplateFiles, TEMPLATE_SKILLS } from './chunk-UPRZREBO.js';
|
|
8
|
+
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
9
|
+
import { hasSymlinkComponent } from './chunk-JXXMOAJG.js';
|
|
10
10
|
import { cloneIsGoverned } from './chunk-YQR6E6OV.js';
|
|
11
11
|
import { createHash } from 'crypto';
|
|
12
12
|
import { existsSync, readFileSync } from 'fs';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { launcherPath, pathNotes, writeLauncher, LauncherWriteError } from './chunk-
|
|
4
|
-
import { currentVersion, currentLink, versionDir, execStartLine, isInLayout, packageRootIn, switchCurrent } from './chunk-
|
|
3
|
+
import { launcherPath, pathNotes, writeLauncher, LauncherWriteError } from './chunk-E4R3M6XJ.js';
|
|
4
|
+
import { currentVersion, currentLink, versionDir, execStartLine, isInLayout, packageRootIn, switchCurrent } from './chunk-F57NE5AO.js';
|
|
5
5
|
import { compareVersions } from './chunk-TQMI335S.js';
|
|
6
|
-
import { runnerDir, RUNNER_DIR_MODE } from './chunk-
|
|
6
|
+
import { runnerDir, RUNNER_DIR_MODE } from './chunk-HSE2LOWO.js';
|
|
7
7
|
import { lchownSync, lstatSync, realpathSync, readFileSync, mkdirSync, rmSync, cpSync, existsSync, readdirSync } from 'fs';
|
|
8
8
|
import { dirname, sep, join } from 'path';
|
|
9
9
|
import { spawnSync } from 'child_process';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { C } from './chunk-
|
|
4
|
-
import { resolvePackRoot, OUTERLAYER_SKILLS_BASE, loadTemplateFiles, AGENTS_SKILLS_BASE, loadMaintainedFiles, rewriteSkillPaths, TEMPLATE_SKILLS, skillDir, writeMaintainedFiles, MACHINE_SKILL_PATH } from './chunk-
|
|
3
|
+
import { C } from './chunk-2AM6Z5BP.js';
|
|
4
|
+
import { resolvePackRoot, OUTERLAYER_SKILLS_BASE, loadTemplateFiles, AGENTS_SKILLS_BASE, loadMaintainedFiles, rewriteSkillPaths, TEMPLATE_SKILLS, skillDir, writeMaintainedFiles, MACHINE_SKILL_PATH } from './chunk-UPRZREBO.js';
|
|
5
5
|
import { MAINTAINED_SKILLS } from './chunk-CDDED64E.js';
|
|
6
6
|
import { resolvePackageVersion } from './chunk-RA3O54FC.js';
|
|
7
|
-
import { cliInvocation } from './chunk-
|
|
8
|
-
import { linkedAgentsPath } from './chunk-
|
|
7
|
+
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
8
|
+
import { linkedAgentsPath } from './chunk-JXXMOAJG.js';
|
|
9
9
|
import { readFileSync, existsSync, mkdirSync, writeFileSync } from 'fs';
|
|
10
10
|
import { join, dirname } from 'path';
|
|
11
11
|
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire } from 'node:module';
|
|
3
|
+
import { keyRunnerFactory, RunnerConfigError } from './chunk-BWJRNMZZ.js';
|
|
4
|
+
import { orgHomeDir } from './chunk-HSE2LOWO.js';
|
|
5
|
+
|
|
6
|
+
createRequire(import.meta.url);
|
|
7
|
+
|
|
8
|
+
// src/runner/fleet/caller.ts
|
|
9
|
+
function factoryOf(job) {
|
|
10
|
+
if (job.appId === void 0 || job.appId === "") throw new RunnerConfigError("a fleet build's job file names no factory; the claim carries it");
|
|
11
|
+
return job.appId;
|
|
12
|
+
}
|
|
13
|
+
function leftByRunnerKey(config, job) {
|
|
14
|
+
return config.fleet === true && (job.appId === void 0 || job.appId === "" || job.workItemId === void 0 || job.workItemId === "");
|
|
15
|
+
}
|
|
16
|
+
function runnerCalls(config) {
|
|
17
|
+
keyRunnerFactory(config);
|
|
18
|
+
return config;
|
|
19
|
+
}
|
|
20
|
+
function claimCalls(config, job) {
|
|
21
|
+
if (config.fleet !== true) return runnerCalls(config);
|
|
22
|
+
return { ...config, appId: factoryOf(job) };
|
|
23
|
+
}
|
|
24
|
+
function itemCalls(config, job) {
|
|
25
|
+
if (config.fleet !== true) return runnerCalls(config);
|
|
26
|
+
if (job.itemKey === void 0 || job.itemKey === "") throw new RunnerConfigError("a fleet build's job holds no item key");
|
|
27
|
+
return { ...config, apiKey: job.itemKey, appId: factoryOf(job) };
|
|
28
|
+
}
|
|
29
|
+
function claimItem(config, job) {
|
|
30
|
+
if (config.fleet !== true) return job.item;
|
|
31
|
+
if (job.workItemId === void 0 || job.workItemId === "") throw new RunnerConfigError("a fleet build's job file names no work item id; the claim carries it");
|
|
32
|
+
return job.workItemId;
|
|
33
|
+
}
|
|
34
|
+
function spoolHomeFor(config, job) {
|
|
35
|
+
if (config.fleet !== true || job.organizationId === void 0) return void 0;
|
|
36
|
+
return orgHomeDir(config.configPath, job.organizationId);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export { claimCalls, claimItem, itemCalls, leftByRunnerKey, runnerCalls, spoolHomeFor };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { recordReportedCost } from './chunk-BKO6JEZI.js';
|
|
4
|
-
import { cliInvocation } from './chunk-
|
|
5
|
-
import { decodeWrappedCommand } from './chunk-
|
|
6
|
-
import { homeFromEnv } from './chunk-
|
|
4
|
+
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
5
|
+
import { decodeWrappedCommand } from './chunk-KYDEBGJG.js';
|
|
6
|
+
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
7
7
|
import { readFileSync } from 'fs';
|
|
8
8
|
import { spawn } from 'child_process';
|
|
9
9
|
import { join } from 'path';
|