@outerlayer/cli 0.39.1-next.20261114132104 → 0.40.0-next.20261114141332
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/dist/{agent-setup-KYIQBYDP.js → agent-setup-RAPMR5E7.js} +18 -18
- package/dist/{agent-subcommand-HXVMNMZZ.js → agent-subcommand-FFRNWF6T.js} +3 -3
- package/dist/{bridge-5GUFPTZD.js → bridge-2LB6UHW7.js} +6 -6
- package/dist/{build-AJ2FBKNY.js → build-N6WNVWOP.js} +12 -12
- package/dist/{build-disk-XHE2TZ2M.js → build-disk-RIQDTOML.js} +10 -10
- package/dist/build-info.json +1 -1
- package/dist/{builder-6VJYHW2L.js → builder-C2BEDG75.js} +9 -9
- package/dist/caller-P3HA4LAX.js +23 -0
- package/dist/{check-YW2DEL4Z.js → check-WZBT5JLI.js} +56 -55
- package/dist/{chunk-X52QSY5J.js → chunk-2EON52MM.js} +1 -1
- package/dist/{chunk-EFGCYUT7.js → chunk-34IH7AVH.js} +2 -2
- package/dist/{chunk-W54GD6MO.js → chunk-3GBUF5VG.js} +1 -1
- package/dist/{chunk-UUPXJP2E.js → chunk-3LORQC4Z.js} +1 -1
- package/dist/{chunk-KAHM53WJ.js → chunk-3ZUW6SKU.js} +5 -5
- package/dist/{chunk-E6PHUS7E.js → chunk-4J5KDIHZ.js} +5 -5
- package/dist/{chunk-IZTXH5ZH.js → chunk-4PH73UWD.js} +8 -8
- package/dist/{chunk-X546T6NT.js → chunk-4XM6NRKW.js} +1 -1
- package/dist/{chunk-H36JABGI.js → chunk-6AFTYWAB.js} +8 -8
- package/dist/{chunk-6DS3O66K.js → chunk-6G6FOCJW.js} +3 -3
- package/dist/{chunk-KWR72UJ2.js → chunk-7LZYS7BO.js} +1 -1
- package/dist/{chunk-JPVK3EZ4.js → chunk-7QDAAW2N.js} +1 -1
- package/dist/{chunk-4M7N6DKZ.js → chunk-7RDHN455.js} +1 -1
- package/dist/{chunk-QCLROM67.js → chunk-A3SSJ7WS.js} +1 -1
- package/dist/{chunk-RFWX5IAJ.js → chunk-ADXJXXGU.js} +5 -5
- package/dist/{chunk-ZVB57WI6.js → chunk-B4XB5QFD.js} +1 -1
- package/dist/{chunk-IEPKZPTP.js → chunk-BY4SXNUL.js} +1 -1
- package/dist/{chunk-5IONLWL3.js → chunk-CG44IGEF.js} +3 -3
- package/dist/{chunk-KYQMP53T.js → chunk-CYZQDC6N.js} +1 -1
- package/dist/{chunk-LOAWSJCG.js → chunk-DF2ATCBQ.js} +1 -1
- package/dist/{chunk-6K7LGQQ2.js → chunk-DZCELAHC.js} +5 -5
- package/dist/{chunk-Y7MCKLAQ.js → chunk-E74YOVYI.js} +9 -5
- package/dist/{chunk-CPBS6UXI.js → chunk-EANGK4AM.js} +7 -7
- package/dist/{chunk-VY6ZI6D4.js → chunk-EXRBPNSJ.js} +4 -4
- package/dist/{chunk-6XUFQCIH.js → chunk-FTV63SCQ.js} +2 -2
- package/dist/{chunk-UYUBKWBN.js → chunk-G4DY6M4N.js} +10 -10
- package/dist/{chunk-DIK6S4JP.js → chunk-GD2LIK6W.js} +5 -5
- package/dist/{chunk-W4JOSQC2.js → chunk-HIQ3NVBX.js} +8 -8
- package/dist/{chunk-CIRTX52G.js → chunk-I2BO2QBH.js} +2 -2
- package/dist/{chunk-3TDS4OUB.js → chunk-I6MLYOGL.js} +1 -1
- package/dist/{chunk-NC7QARDO.js → chunk-IE75TT5E.js} +1 -1
- package/dist/{chunk-5OBR5QTK.js → chunk-IRWP4HF7.js} +5 -5
- package/dist/{chunk-F5KJEHQZ.js → chunk-JEW6WDGJ.js} +1 -1
- package/dist/{chunk-HHD2ACSE.js → chunk-K4N6Z4A2.js} +11 -10
- package/dist/{chunk-TQLUAA7I.js → chunk-LGF6NNBQ.js} +59 -31
- package/dist/{chunk-ZACT45QD.js → chunk-LJRO53R4.js} +4 -4
- package/dist/{chunk-P4OE5G2Z.js → chunk-LTQOGRYT.js} +3 -3
- package/dist/{chunk-5JQT6YBA.js → chunk-MOPFZXA7.js} +68 -43
- package/dist/{chunk-SNPBJKBB.js → chunk-NRSMXWUG.js} +15 -15
- package/dist/{chunk-F5R4EFSS.js → chunk-OEOIKUUY.js} +3 -3
- package/dist/{chunk-5JV7GPX4.js → chunk-OHJUCEPI.js} +1 -1
- package/dist/{chunk-PUWASVZT.js → chunk-OVV6F6TV.js} +2 -2
- package/dist/{chunk-QJPR3ZHI.js → chunk-OZG4BNC6.js} +1 -1
- package/dist/{chunk-3SQM7IV7.js → chunk-PEFV5YIJ.js} +3 -3
- package/dist/{chunk-XZ2ZBYP6.js → chunk-PQOIDBWE.js} +3 -3
- package/dist/{chunk-SHV7VKPN.js → chunk-PZNWC2RV.js} +4 -4
- package/dist/{chunk-ANR2TJTR.js → chunk-Q2SX6RZJ.js} +4 -4
- package/dist/{chunk-4HKR27ND.js → chunk-QNHHD75P.js} +6 -6
- package/dist/{chunk-JBNHEMOD.js → chunk-QWTN72TN.js} +1 -1
- package/dist/{chunk-WVEZO2QF.js → chunk-R2XWZSLR.js} +1 -1
- package/dist/{chunk-QJIRCYAI.js → chunk-RC5ENCHK.js} +5 -5
- package/dist/{chunk-ID26SYRA.js → chunk-RIZCV7GX.js} +7 -7
- package/dist/{chunk-5N7PMJBI.js → chunk-RLNTFA2C.js} +1 -1
- package/dist/{chunk-TB7NJH27.js → chunk-RM6UGUWJ.js} +2 -2
- package/dist/{chunk-7DOBQZEQ.js → chunk-SHCD5V7G.js} +1 -1
- package/dist/{chunk-EPZW5SNT.js → chunk-SWKFTYZI.js} +7 -7
- package/dist/{chunk-Y4A7CJOK.js → chunk-SWYBUMUL.js} +1 -1
- package/dist/{chunk-F4W3VWMT.js → chunk-SXF7NWK3.js} +1 -1
- package/dist/{chunk-P7YUPG7W.js → chunk-T7HMGQH2.js} +4 -4
- package/dist/{chunk-YXT3MVNP.js → chunk-TQZHYLX5.js} +1 -1
- package/dist/{chunk-665GCHXE.js → chunk-U65ALAP5.js} +4 -4
- package/dist/{chunk-RZDUVWOE.js → chunk-ULDQ7IM5.js} +1 -1
- package/dist/{chunk-HAIRGRQ7.js → chunk-V6QH7AIR.js} +4 -4
- package/dist/{chunk-VWDALYGN.js → chunk-VLI43TVN.js} +4 -4
- package/dist/{chunk-B2QA7GQS.js → chunk-WEAYLRPJ.js} +7 -7
- package/dist/{chunk-UN4LJ7IJ.js → chunk-X26S7Y2N.js} +3 -3
- package/dist/{chunk-LS2OOIEJ.js → chunk-ZI5MT4TT.js} +1 -1
- package/dist/{chunk-GZYTJS44.js → chunk-ZKZD4CGD.js} +6 -6
- package/dist/{chunk-WGGUOPM4.js → chunk-ZM7AL7UV.js} +1 -1
- package/dist/{chunk-WDSMYCA3.js → chunk-ZV3YJFOG.js} +104 -57
- package/dist/{claude-launcher-7MHGPOT4.js → claude-launcher-DQQX7ZEE.js} +6 -6
- package/dist/{cli-2JU2HGLY.js → cli-SHFL3UG3.js} +202 -161
- package/dist/{command-TIYDTC2W.js → command-EOPDBE5V.js} +48 -48
- package/dist/{config-LEIZOHEQ.js → config-334GXURH.js} +11 -11
- package/dist/{connect-cmd-JYBNVPLZ.js → connect-cmd-XPSZXYXO.js} +10 -10
- package/dist/{container-start-ZUHNEZS2.js → container-start-SLO564RB.js} +46 -46
- package/dist/{context-cleanup-ESTO55LK.js → context-cleanup-U7MHU55P.js} +3 -3
- package/dist/{context-show-cmd-UZMABB6S.js → context-show-cmd-SZMHOFFV.js} +11 -11
- package/dist/{control-plane-launch-65Z75XW7.js → control-plane-launch-YQOT2EQL.js} +13 -13
- package/dist/{demo-record-cmd-K32VPNFW.js → demo-record-cmd-JB5VCPRW.js} +7 -7
- package/dist/{demo-voice-cmd-X3GOBOCX.js → demo-voice-cmd-BFNOUEP3.js} +17 -17
- package/dist/{dist-KQVXG33W.js → dist-VQBROFST.js} +1 -1
- package/dist/{docker-4JDUPFNV.js → docker-UZYTRFEQ.js} +9 -9
- package/dist/{doctor-HHY2VFOL.js → doctor-M4LYRU72.js} +48 -48
- package/dist/{emit-artifact-cmd-7MQHRFCG.js → emit-artifact-cmd-XSPHZU4L.js} +16 -16
- package/dist/{emit-cmd-4AM54GW2.js → emit-cmd-6KU5H7YA.js} +6 -6
- package/dist/{emit-criteria-cmd-CCU7GIEK.js → emit-criteria-cmd-TE4WI4NC.js} +13 -13
- package/dist/{emit-demo-cmd-IGMQM4Z7.js → emit-demo-cmd-D6Q4CHLY.js} +17 -17
- package/dist/{emit-finding-cmd-X2OAAYQS.js → emit-finding-cmd-OR6SJPFW.js} +13 -13
- package/dist/{emit-result-cmd-BJMSVTCS.js → emit-result-cmd-AXFTHFH5.js} +15 -15
- package/dist/{emit-step-cmd-7MKXTAPH.js → emit-step-cmd-DXXTCZON.js} +13 -13
- package/dist/{exec-client-FEQENEUW.js → exec-client-XQCKLD5N.js} +7 -7
- package/dist/find-unit-5G5DI5KK.js +24 -0
- package/dist/{findings-cmd-K4XMQOZ3.js → findings-cmd-Q47Z5SOI.js} +13 -13
- package/dist/{fleet-readiness-BQE77U76.js → fleet-readiness-E7GE6OEY.js} +12 -12
- package/dist/{governing-source-E2HSACI2.js → governing-source-PZHH5KQO.js} +18 -18
- package/dist/{guest-init-KMD7S5HD.js → guest-init-4E2JSHZI.js} +8 -8
- package/dist/{hook-fast-QN2SY24M.js → hook-fast-CKQWLT6W.js} +1 -1
- package/dist/{hook-install-AESDT7DL.js → hook-install-J426ZN4P.js} +3 -3
- package/dist/host-checks-LEGAWS4P.js +82 -0
- package/dist/{host-key-UDPLWDPC.js → host-key-Q3OKQTJF.js} +7 -7
- package/dist/{image-tag-YEKFPWEQ.js → image-tag-CPEVAJDD.js} +7 -7
- package/dist/index.js +4 -4
- package/dist/init-7VJMGE5J.js +82 -0
- package/dist/{init-RCNKULZN.js → init-LTZDJHZN.js} +44 -44
- package/dist/{init-agent-3XNIUZZN.js → init-agent-ROLUCLOH.js} +44 -44
- package/dist/{init-cmd-7A5LUSDS.js → init-cmd-JNY333QI.js} +24 -24
- package/dist/{init-update-ES657RFT.js → init-update-X4W5KWHZ.js} +21 -21
- package/dist/{install-cmd-3DH6YIDJ.js → install-cmd-AKZE7R2E.js} +9 -9
- package/dist/{job-state-format-WJQGQB6F.js → job-state-format-6PFB5UNG.js} +1 -1
- package/dist/{layout-NAQ3YKFK.js → layout-7XSGJVYR.js} +3 -3
- package/dist/{logs-AQGSSKF5.js → logs-BQC5UDSI.js} +6 -6
- package/dist/loop-EA5HISX2.js +92 -0
- package/dist/machine-MUSRMWLN.js +82 -0
- package/dist/{machine-skills-P4ATYHUI.js → machine-skills-K2RCLA6K.js} +3 -3
- package/dist/{mcp-install-cmd-EXQFIYEH.js → mcp-install-cmd-DWD6O27B.js} +3 -3
- package/dist/{mcp-serve-cmd-IOIV6CMG.js → mcp-serve-cmd-4DDHV5LT.js} +8 -8
- package/dist/{paths-KMGPIRVG.js → paths-B5GNVTVC.js} +6 -6
- package/dist/pending-35UMAGND.js +18 -0
- package/dist/{pidfile-SLFI7T4A.js → pidfile-ERHOAFUE.js} +7 -7
- package/dist/{record-XQU6LBZK.js → record-GI6LXXNB.js} +7 -7
- package/dist/{relay-TTK63EOR.js → relay-4XYITTBN.js} +4 -4
- package/dist/{relay-protocol-LJ7KD4SR.js → relay-protocol-6Y7GDQVE.js} +4 -4
- package/dist/{run-cmd-B5KA75WC.js → run-cmd-WEZLK3FS.js} +13 -13
- package/dist/{runner-agents-4FE5CFVN.js → runner-agents-FCJR2SGQ.js} +3 -3
- package/dist/{runner-env-Y346HR2C.js → runner-env-4PF5MNVO.js} +13 -13
- package/dist/{runner-identity-CKHIN2L2.js → runner-identity-EM4EP5QK.js} +9 -9
- package/dist/{runner-key-2XX4ECM7.js → runner-key-2HJWN4IF.js} +44 -44
- package/dist/{session-sender-KLA3F4GE.js → session-sender-KAZJBZMV.js} +16 -16
- package/dist/{spec-cmd-SIIW5RRH.js → spec-cmd-OIIYOA66.js} +14 -14
- package/dist/{starter-pack-H2U3L3LJ.js → starter-pack-Y4NOXPWC.js} +4 -4
- package/dist/{state-RNPWUKWR.js → state-Z3LM7LLU.js} +7 -7
- package/dist/{status-LVDYSTT3.js → status-TWBBVHZ5.js} +44 -44
- package/dist/{sync-cmd-MISWWB2B.js → sync-cmd-MPVBCSMA.js} +15 -15
- package/dist/update-steps-5YPJTFYY.js +83 -0
- package/dist/{watch-3I5RMI52.js → watch-PNFCUWXE.js} +15 -15
- package/dist/{work-claim-cmd-MJJ4CAKU.js → work-claim-cmd-HCCEBBZC.js} +19 -19
- package/dist/{work-cmd-WWUFBOUX.js → work-cmd-KTDBSYL6.js} +13 -13
- package/dist/{work-comment-cmd-T6GFDZCU.js → work-comment-cmd-AXS7R6JB.js} +15 -15
- package/dist/{work-demo-cmd-NWOVWOJB.js → work-demo-cmd-L57K47U2.js} +13 -13
- package/dist/{work-logs-cmd-35U5LCT3.js → work-logs-cmd-K5EEZ5XP.js} +13 -13
- package/dist/{work-mock-cmd-FBHOKNGD.js → work-mock-cmd-KQWXIC72.js} +13 -13
- package/dist/{work-needs-attention-cmd-B5W4UQGR.js → work-needs-attention-cmd-2ISFSCF3.js} +13 -13
- package/dist/{work-no-change-cmd-X6HJ3KL3.js → work-no-change-cmd-PBVT7YPY.js} +13 -13
- package/dist/{work-open-pr-cmd-IXMYVIAN.js → work-open-pr-cmd-Q4JLBNFW.js} +14 -14
- package/dist/{work-pr-cmd-NBR4EYV3.js → work-pr-cmd-MSZGMFKN.js} +13 -13
- package/dist/{work-proofs-cmd-EDPUXBGS.js → work-proofs-cmd-AT4Q2SZM.js} +15 -15
- package/dist/{work-proofs-record-2EE6SKGM.js → work-proofs-record-VQYVY5G5.js} +21 -21
- package/dist/{work-stop-cmd-KJGFNP3Z.js → work-stop-cmd-NGRBDCJF.js} +13 -13
- package/package.json +1 -1
- package/dist/caller-AMYW4GBV.js +0 -23
- package/dist/find-unit-6J43BBFF.js +0 -24
- package/dist/host-checks-LAZYTGS6.js +0 -82
- package/dist/init-C6RKGGRI.js +0 -82
- package/dist/loop-M6LVNF4F.js +0 -92
- package/dist/machine-UI3W5FHH.js +0 -82
- package/dist/pending-37RC5PVR.js +0 -18
- package/dist/update-steps-QM7FVAYZ.js +0 -83
|
@@ -13,7 +13,7 @@ function readsJobState(job, formats) {
|
|
|
13
13
|
return formats.includes(jobStateFormatOf(job));
|
|
14
14
|
}
|
|
15
15
|
function jobStateFormatsAnswer() {
|
|
16
|
-
return { reads: [...READ_JOB_STATE_FORMATS], writes: JOB_STATE_FORMAT };
|
|
16
|
+
return { reads: [...READ_JOB_STATE_FORMATS], writes: JOB_STATE_FORMAT, adoptsSandboxBuilds: true };
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
export { JOB_STATE_FORMAT, READ_JOB_STATE_FORMATS, jobStateFormatOf, jobStateFormatsAnswer, readsJobState };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { sanitizeTerminal } from './chunk-TDTWNGCO.js';
|
|
4
|
-
import { resolvePackRoot, parseProofsConfig } from './chunk-
|
|
4
|
+
import { resolvePackRoot, parseProofsConfig } from './chunk-OZG4BNC6.js';
|
|
5
5
|
import { CHECK_ITEM_REASON_MAX_LENGTH, CHECK_ITEMS_MAX, CheckItemsSchema, problemKind, CHECK_ITEM_REFS_MAX, CHECK_ITEM_ID_MAX_LENGTH, CHECK_ITEM_REF_PATH_MAX_LENGTH, JUDGE_NOT_RUN_ITEM_ID, REVIEWED_COMMIT_ITEM_ID } from './chunk-ZIBM6BTL.js';
|
|
6
6
|
import { createHash } from 'crypto';
|
|
7
7
|
import { join } from 'path';
|
|
@@ -678,7 +678,7 @@ async function missingRenewalHookContext(home, cwd, codec) {
|
|
|
678
678
|
try {
|
|
679
679
|
const event = codec.events.find((name) => kindOf(codec, name) === "tool-used");
|
|
680
680
|
if (event === void 0) return void 0;
|
|
681
|
-
const { hookRegistered } = await import('./hook-install-
|
|
681
|
+
const { hookRegistered } = await import('./hook-install-J426ZN4P.js');
|
|
682
682
|
const registered = hookRegistered(event, { home, cwd });
|
|
683
683
|
if (registered !== false) return void 0;
|
|
684
684
|
return `This install has no ${event} hook, so this session's work-item lease will never be renewed while it works and may be lost to another worker mid-session. Run \`${cliInvocation()} init\` to register it.`;
|
|
@@ -878,11 +878,11 @@ async function missingControlPlane(cwd, sessionId, home, env) {
|
|
|
878
878
|
const dirs = findGitDirs(cwd);
|
|
879
879
|
if (dirs === void 0) return void 0;
|
|
880
880
|
if (existsSync(join(dirs.gitCommonDir, "outerlayer", "materialized.json")) || hasExcludeBlock(dirs.gitCommonDir)) {
|
|
881
|
-
const { cleanupEarlierCopies } = await import('./context-cleanup-
|
|
881
|
+
const { cleanupEarlierCopies } = await import('./context-cleanup-U7MHU55P.js');
|
|
882
882
|
cleanupEarlierCopies(dirs);
|
|
883
883
|
}
|
|
884
884
|
if (!contextPossiblyGoverned(cwd, home)) return void 0;
|
|
885
|
-
const { governanceOf } = await import('./control-plane-launch-
|
|
885
|
+
const { governanceOf } = await import('./control-plane-launch-YQOT2EQL.js');
|
|
886
886
|
if (await governanceOf({ cwd, env, home }) !== "governed") return void 0;
|
|
887
887
|
recordMissingContext(dirs, sessionId, home);
|
|
888
888
|
const launcher = `${cliInvocation()} ${LEGACY.legacy.subcommand}`;
|
|
@@ -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-I6MLYOGL.js';
|
|
4
4
|
import { readFileSync, mkdirSync, writeFileSync, renameSync } from 'fs';
|
|
5
5
|
import { join } from 'path';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { UNIVERSAL_IMAGE_REPOSITORY, UNIVERSAL_IMAGE_DIGEST } from './chunk-
|
|
3
|
+
import { UNIVERSAL_IMAGE_REPOSITORY, UNIVERSAL_IMAGE_DIGEST } from './chunk-R2XWZSLR.js';
|
|
4
4
|
import { existsSync, readdirSync, readFileSync, lstatSync, realpathSync, writeFileSync } from 'fs';
|
|
5
5
|
import { join, resolve, relative, dirname, sep, basename } from 'path';
|
|
6
6
|
import { createRequire as createRequire$1 } from 'module';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RemovedTargetError, removedTargetError } from './chunk-
|
|
4
|
-
import { removeRetiredSkills } from './chunk-
|
|
3
|
+
import { RemovedTargetError, removedTargetError } from './chunk-OHJUCEPI.js';
|
|
4
|
+
import { removeRetiredSkills } from './chunk-2EON52MM.js';
|
|
5
5
|
import { removeLeftoverGitLocks } from './chunk-A2WPWZJA.js';
|
|
6
|
-
import { defaultFetch, resolveGatewayCredentials } from './chunk-
|
|
7
|
-
import { withTokenHeader } from './chunk-
|
|
6
|
+
import { defaultFetch, resolveGatewayCredentials } from './chunk-3GBUF5VG.js';
|
|
7
|
+
import { withTokenHeader } from './chunk-E74YOVYI.js';
|
|
8
8
|
import { appendContextProvenance } from './chunk-545P7JY7.js';
|
|
9
9
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
10
10
|
import { writeDegraded, writeSourceCache, SOURCE_CACHE_TTL_RETRY_MS, writeContextManifest, SOURCE_CACHE_TTL_SUCCESS_MS, readSourceCache, isSourceCacheFresh, clearDegraded } from './chunk-YQR6E6OV.js';
|
|
11
|
-
import { normalizeRepoName, loadMaintainedFiles, writeMaintainedFiles, parseOuterlayerConfig, targetIds, classifyTree, emitTree, emitBuilders, defaultAgents, agentRootFolders } from './chunk-
|
|
11
|
+
import { normalizeRepoName, loadMaintainedFiles, writeMaintainedFiles, parseOuterlayerConfig, targetIds, classifyTree, emitTree, emitBuilders, defaultAgents, agentRootFolders } from './chunk-OZG4BNC6.js';
|
|
12
12
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
13
13
|
import { execFileSync } from 'child_process';
|
|
14
14
|
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 { builtInEnvironment, managedAgentCredential, agentCredential, builtInNames, TARGET_TUNNEL, TARGET_LEASE, destinationTarget, builtInDestinations, destinationPort } from './chunk-
|
|
4
|
-
import { strippedVariables } from './chunk-
|
|
5
|
-
import { defaultAgents } from './chunk-
|
|
3
|
+
import { builtInEnvironment, managedAgentCredential, agentCredential, builtInNames, TARGET_TUNNEL, TARGET_LEASE, destinationTarget, builtInDestinations, destinationPort } from './chunk-FTV63SCQ.js';
|
|
4
|
+
import { strippedVariables } from './chunk-R2XWZSLR.js';
|
|
5
|
+
import { defaultAgents } from './chunk-OZG4BNC6.js';
|
|
6
6
|
import { PROVIDERS } from './chunk-7PZDPISM.js';
|
|
7
|
-
import { MIN_SCRUBBED_LITERAL } from './chunk-
|
|
7
|
+
import { MIN_SCRUBBED_LITERAL } from './chunk-LGF6NNBQ.js';
|
|
8
8
|
import { mkdirSync, writeFileSync, existsSync, unlinkSync, chmodSync } from 'fs';
|
|
9
9
|
import { request as request$1, createServer } from 'http';
|
|
10
10
|
import { request } from 'https';
|
|
@@ -39,6 +39,10 @@ function describeSandboxError(err) {
|
|
|
39
39
|
const detail = err.message === "" ? "" : `: ${err.message}`;
|
|
40
40
|
return err.code === void 0 ? `The provider answered HTTP ${err.status}${detail}` : `${err.code}${detail}`;
|
|
41
41
|
}
|
|
42
|
+
function providerMayAnswerLater(err) {
|
|
43
|
+
if (err.code === "sandbox_provider_refused") return false;
|
|
44
|
+
return err.status === 0 || err.status === 429 || err.status >= 500;
|
|
45
|
+
}
|
|
42
46
|
var PAUSE_TIMEOUT_MS = 5 * 6e4;
|
|
43
47
|
function sandboxOf(raw) {
|
|
44
48
|
if (typeof raw.id !== "string" || typeof raw.dataPlaneUrl !== "string") throw new SandboxError("the answer names no sandbox id or data plane", 0);
|
|
@@ -1344,4 +1348,4 @@ async function startBuildServices(input) {
|
|
|
1344
1348
|
}
|
|
1345
1349
|
}
|
|
1346
1350
|
|
|
1347
|
-
export { BUILD_HOME, CHECKOUT_DIR, CHECK_ITEMS_FILE, DESTINATION_BASE_PORT, EVAL_INPUT_DIR, IMAGE_BUNDLES, JOB_MOUNT, PROXY_WARNING_FLAG, RELAY_PORT, SANDBOX_VARIABLES, SCRUB_ENV_VARIABLE, STAND_IN, SandboxError, WORK_DIR, applyTrust, authorEnvironment, buildAuthorityFor, buildEnvironment, carried6to4, checkEnvironment, checkoutPath, classifyAddress, commitIdentityRecord, containerLocalAddress, createSandboxClient, dataPlaneOf, describeSandboxError, destinationEnvironment, dropBuildAuthority, droppedRequestHeaders, hasDotDotSegment, headerVariables, heldBuildAuthority, hostKeyOf, isMiseVariableAllowed, isRefusedInConfig, isReservedVariable, lifecycleWorkdir, parseBranchlessRepositories, parseClaimIdentity, parseClaimedRepositories, parseIsolation, parseProxied, parseUnreachable, primaryOf, proxyEnvironment, readBundleScript, repositoriesOf, repositoryPath, resolveDestinations, routeNameOf, sandboxCallOf, sandboxSettingsFrom, sharedUserEnvironment, startBuildServices, tokenHeader, toolProxyEnvironment, trustEnvironment, variableForPath, variablesFor, withGitConfig, withHooksPath, withMiseVariables, withTokenHeader, withTunnelRecord, writeTrustFiles };
|
|
1351
|
+
export { BUILD_HOME, CHECKOUT_DIR, CHECK_ITEMS_FILE, DESTINATION_BASE_PORT, EVAL_INPUT_DIR, IMAGE_BUNDLES, JOB_MOUNT, PROXY_WARNING_FLAG, RELAY_PORT, SANDBOX_VARIABLES, SCRUB_ENV_VARIABLE, STAND_IN, SandboxError, WORK_DIR, applyTrust, authorEnvironment, buildAuthorityFor, buildEnvironment, carried6to4, checkEnvironment, checkoutPath, classifyAddress, commitIdentityRecord, containerLocalAddress, createSandboxClient, dataPlaneOf, describeSandboxError, destinationEnvironment, dropBuildAuthority, droppedRequestHeaders, hasDotDotSegment, headerVariables, heldBuildAuthority, hostKeyOf, isMiseVariableAllowed, isRefusedInConfig, isReservedVariable, lifecycleWorkdir, parseBranchlessRepositories, parseClaimIdentity, parseClaimedRepositories, parseIsolation, parseProxied, parseUnreachable, primaryOf, providerMayAnswerLater, proxyEnvironment, readBundleScript, repositoriesOf, repositoryPath, resolveDestinations, routeNameOf, sandboxCallOf, sandboxSettingsFrom, sharedUserEnvironment, startBuildServices, tokenHeader, toolProxyEnvironment, trustEnvironment, variableForPath, variablesFor, withGitConfig, withHooksPath, withMiseVariables, withTokenHeader, withTunnelRecord, writeTrustFiles };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { uploadSpooledSteps } from './chunk-
|
|
3
|
+
import { uploadSpooledSteps } from './chunk-VLI43TVN.js';
|
|
4
4
|
import { LaunchFilter } from './chunk-C2PZOLN7.js';
|
|
5
5
|
import { migrateLegacyArtifactSidecars, planArtifactUpload, artifactsStatePath, sanitizeTerminal, acquireArtifactSpoolLock, artifactBlobsDir, resolveArtifactTurnIndex, isArtifactTombstoned, ARTIFACT_RETRY_MAX_AGE_MS, writeArtifactSpoolState, reclaimUnneededArtifactBlobs, neededArtifactShas } from './chunk-TDTWNGCO.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
|
-
import { cliFetch, resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
7
|
+
import { cliFetch, resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-3GBUF5VG.js';
|
|
8
8
|
import { readCloudConfig, cloudConfigPath, writeCloudConfig } from './chunk-HWVMRETT.js';
|
|
9
|
-
import { signerFor, signRunnerRequest } from './chunk-
|
|
10
|
-
import { SCRUB_ENV_VARIABLE } from './chunk-
|
|
11
|
-
import { writeSyncStatus, logHookError, spoolDir } from './chunk-
|
|
9
|
+
import { signerFor, signRunnerRequest } from './chunk-SHCD5V7G.js';
|
|
10
|
+
import { SCRUB_ENV_VARIABLE } from './chunk-E74YOVYI.js';
|
|
11
|
+
import { writeSyncStatus, logHookError, spoolDir } from './chunk-CG44IGEF.js';
|
|
12
12
|
import { readLatestProvenanceForSession, readContextProvenance } from './chunk-545P7JY7.js';
|
|
13
13
|
import { readRepoConnection, findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
14
14
|
import { hookExecSpoolPath } from './chunk-RNCCRUT5.js';
|
|
@@ -16,10 +16,10 @@ import { applyReportedCost } from './chunk-BKO6JEZI.js';
|
|
|
16
16
|
import { readLaunchSpoolState, launchStatusIsDecisive, parseRunEnv, launchedItemsBySession, launchesPath } from './chunk-LGJ56FCM.js';
|
|
17
17
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
18
18
|
import { removeJournalHooks } from './chunk-CJPTUU2E.js';
|
|
19
|
-
import { legacyAgent, captureAgents, captureAdapters } from './chunk-
|
|
19
|
+
import { legacyAgent, captureAgents, captureAdapters } from './chunk-OZG4BNC6.js';
|
|
20
20
|
import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-7PZDPISM.js';
|
|
21
21
|
import { homeFromEnv, spoolHomeFromEnv } from './chunk-352DHUTP.js';
|
|
22
|
-
import { setCustomScrubbers, setLocalIdentity, forkFor, readForkRecord, tailTranscript, enrichSessionRepo, scanAll, setRepoRoot, resolveRepoIdentity, scrubDeep } from './chunk-
|
|
22
|
+
import { setCustomScrubbers, setLocalIdentity, forkFor, readForkRecord, tailTranscript, enrichSessionRepo, scanAll, setRepoRoot, resolveRepoIdentity, scrubDeep } from './chunk-LGF6NNBQ.js';
|
|
23
23
|
import { CAPTURE_TIERS, inferArtifactKind, bannedPathsForTier, downconvertSession, isHumanUserTurn, turnCountBound, EVENT_TYPES } from './chunk-ZIBM6BTL.js';
|
|
24
24
|
import { dirname, basename, join, sep } from 'path';
|
|
25
25
|
import { statSync, readFileSync, readdirSync, mkdirSync, writeFileSync, renameSync, existsSync, rmSync } from 'fs';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { isAgentsMdLayout, discoverOuterlayerPaths, isForeignTree, toRepoRelative } from './chunk-
|
|
3
|
+
import { isAgentsMdLayout, discoverOuterlayerPaths, isForeignTree, toRepoRelative } from './chunk-TQZHYLX5.js';
|
|
4
4
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
5
|
-
import { invalidConfigMessage } from './chunk-
|
|
6
|
-
import { retiredSkillPaths, removeRetiredSkills } from './chunk-
|
|
5
|
+
import { invalidConfigMessage } from './chunk-OHJUCEPI.js';
|
|
6
|
+
import { retiredSkillPaths, removeRetiredSkills } from './chunk-2EON52MM.js';
|
|
7
7
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
8
|
-
import { maintainedFilesForExistingSkills, loadMaintainedFiles, emitTree, emitBuilders, defaultAgents, targetIds, generatedHeaderSource, parseOuterlayerConfig, classifyTree, writeMaintainedFiles, agentById } from './chunk-
|
|
8
|
+
import { maintainedFilesForExistingSkills, loadMaintainedFiles, emitTree, emitBuilders, defaultAgents, targetIds, generatedHeaderSource, parseOuterlayerConfig, classifyTree, writeMaintainedFiles, agentById } from './chunk-OZG4BNC6.js';
|
|
9
9
|
import { LEGACY_AGENT } from './chunk-7PZDPISM.js';
|
|
10
10
|
import { existsSync, readFileSync, mkdirSync, writeFileSync, copyFileSync, unlinkSync, rmdirSync, readdirSync } from 'fs';
|
|
11
11
|
import { join, dirname } from 'path';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { providersOf, credentialEnvPath, credentialNames, credentialForms, runnerAgents, credentialAgent, orList, credentialShapes, strippedVariables, jobAgent, forwardedVariables, MANAGED_KIND } from './chunk-
|
|
4
|
-
import { defaultAgents } from './chunk-
|
|
3
|
+
import { providersOf, credentialEnvPath, credentialNames, credentialForms, runnerAgents, credentialAgent, orList, credentialShapes, strippedVariables, jobAgent, forwardedVariables, MANAGED_KIND } from './chunk-R2XWZSLR.js';
|
|
4
|
+
import { defaultAgents } from './chunk-OZG4BNC6.js';
|
|
5
5
|
import { PROVIDERS } from './chunk-7PZDPISM.js';
|
|
6
6
|
import { statSync, readFileSync } from 'fs';
|
|
7
7
|
import { join } from 'path';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { placeholderQueues, placeholderProblem } from './chunk-
|
|
4
|
-
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-
|
|
5
|
-
import { getJson, WorkCommandError } from './chunk-
|
|
6
|
-
import { isBuiltinVm, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-
|
|
7
|
-
import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-
|
|
8
|
-
import { ensureHostKey } from './chunk-
|
|
9
|
-
import { sandboxSettingsFrom } from './chunk-
|
|
10
|
-
import { BUILD_SLICE_MEMORY_ENV, agentCredentialVariablesSet, agentCredential, parseRunnerEnv } from './chunk-
|
|
11
|
-
import { forwardedVariables, credentialAgent, credentialForms, managedKeyName, builderDiskPinned, storeVariables, credentialEnvPath } from './chunk-
|
|
12
|
-
import { defaultAgents } from './chunk-
|
|
3
|
+
import { placeholderQueues, placeholderProblem } from './chunk-MOPFZXA7.js';
|
|
4
|
+
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-ZKZD4CGD.js';
|
|
5
|
+
import { getJson, WorkCommandError } from './chunk-RIZCV7GX.js';
|
|
6
|
+
import { isBuiltinVm, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-T7HMGQH2.js';
|
|
7
|
+
import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-34IH7AVH.js';
|
|
8
|
+
import { ensureHostKey } from './chunk-SHCD5V7G.js';
|
|
9
|
+
import { sandboxSettingsFrom } from './chunk-E74YOVYI.js';
|
|
10
|
+
import { BUILD_SLICE_MEMORY_ENV, agentCredentialVariablesSet, agentCredential, parseRunnerEnv } from './chunk-FTV63SCQ.js';
|
|
11
|
+
import { forwardedVariables, credentialAgent, credentialForms, managedKeyName, builderDiskPinned, storeVariables, credentialEnvPath } from './chunk-R2XWZSLR.js';
|
|
12
|
+
import { defaultAgents } from './chunk-OZG4BNC6.js';
|
|
13
13
|
import { closeSync, openSync, constants, readFileSync } from 'fs';
|
|
14
14
|
import { join, dirname } from 'path';
|
|
15
15
|
import { totalmem } from 'os';
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { staleBuildRefusal, staleBuildWarning, detectCi } from './chunk-
|
|
3
|
+
import { staleBuildRefusal, staleBuildWarning, detectCi } from './chunk-EANGK4AM.js';
|
|
4
4
|
import { launchRefusalForSession } from './chunk-C2PZOLN7.js';
|
|
5
|
-
import { detectActiveSession } from './chunk-
|
|
6
|
-
import { autoConnect } from './chunk-
|
|
5
|
+
import { detectActiveSession } from './chunk-7RDHN455.js';
|
|
6
|
+
import { autoConnect } from './chunk-X26S7Y2N.js';
|
|
7
7
|
import { readEffectiveArtifactSpoolState, localArtifactIds, isArtifactTombstoned, artifactBlobsDir, appendArtifactRecord, artifactsSpoolPath, findPendingArtifactRecord, sanitizeTerminal, appendArtifactTombstone } from './chunk-TDTWNGCO.js';
|
|
8
8
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
9
|
-
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
9
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-3GBUF5VG.js';
|
|
10
10
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
11
11
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
12
12
|
import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-7PZDPISM.js';
|
|
13
13
|
import { homeFromEnv, spoolHomeFromEnv } from './chunk-352DHUTP.js';
|
|
14
|
-
import { resolveRepoIdentity } from './chunk-
|
|
14
|
+
import { resolveRepoIdentity } from './chunk-LGF6NNBQ.js';
|
|
15
15
|
import { ARTIFACT_MAX_CAPTION_LENGTH, ArtifactCriterionIdSchema, ARTIFACT_MAX_BYTES, ARTIFACT_MAX_FILENAME_LENGTH, mediaTypeForArtifactPath, inferArtifactKind, ARTIFACT_MAX_REPLACES_TARGETS, parseTestSelector, parseJunit, bindTests } from './chunk-ZIBM6BTL.js';
|
|
16
16
|
import { createHash, randomUUID } from 'crypto';
|
|
17
17
|
import { statSync, readFileSync, mkdirSync, existsSync, writeFileSync, renameSync, unlinkSync } from 'fs';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { criteriaOf, loadCitationFinder, testFileMatcher, hostItemsOf, runnerMatcher, NO_VERDICT_REASON } from './chunk-
|
|
4
|
-
import { WorkCommandError, resolveCredentials, getJson } from './chunk-
|
|
3
|
+
import { criteriaOf, loadCitationFinder, testFileMatcher, hostItemsOf, runnerMatcher, NO_VERDICT_REASON } from './chunk-BY4SXNUL.js';
|
|
4
|
+
import { WorkCommandError, resolveCredentials, getJson } from './chunk-RIZCV7GX.js';
|
|
5
5
|
import { sanitizeTerminal } from './chunk-TDTWNGCO.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
|
-
import { defaultFetch } from './chunk-
|
|
7
|
+
import { defaultFetch } from './chunk-3GBUF5VG.js';
|
|
8
8
|
import { parseWorkItemEnv } from './chunk-LGJ56FCM.js';
|
|
9
9
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
10
10
|
import { readDeliveryRecord } from './chunk-YQR6E6OV.js';
|
|
11
|
-
import { parseProofsConfig } from './chunk-
|
|
12
|
-
import { resolveRepoIdentity } from './chunk-
|
|
11
|
+
import { parseProofsConfig } from './chunk-OZG4BNC6.js';
|
|
12
|
+
import { resolveRepoIdentity } from './chunk-LGF6NNBQ.js';
|
|
13
13
|
import { inferArtifactKind, mediaTypeForArtifactPath, WORK_ITEM_COMMENT_MAX_BODY_LENGTH, parseJunit, isTestSourcePath } from './chunk-ZIBM6BTL.js';
|
|
14
14
|
import { spawnSync } from 'child_process';
|
|
15
15
|
import { createHash } from 'crypto';
|
|
@@ -129,14 +129,14 @@ function governingDir(cwd) {
|
|
|
129
129
|
async function testProofMode(cwd) {
|
|
130
130
|
const dir = governingDir(cwd);
|
|
131
131
|
if (dir === void 0) return "any";
|
|
132
|
-
const { testProofIn } = await import('./host-checks-
|
|
132
|
+
const { testProofIn } = await import('./host-checks-LEGAWS4P.js');
|
|
133
133
|
return testProofIn(dir);
|
|
134
134
|
}
|
|
135
135
|
async function judgeCheckName(cwd) {
|
|
136
136
|
const dir = governingDir(cwd);
|
|
137
137
|
if (dir === void 0) return {};
|
|
138
138
|
if (!existsSync(dir)) return { note: `the governed context at ${dir} is not readable` };
|
|
139
|
-
const { checksIn, isJudgeCheck } = await import('./host-checks-
|
|
139
|
+
const { checksIn, isJudgeCheck } = await import('./host-checks-LEGAWS4P.js');
|
|
140
140
|
const quiet = { line: () => void 0, error: () => void 0 };
|
|
141
141
|
const check = checksIn(dir, quiet, "").checks.find((c) => isJudgeCheck(c) && c.judge.subjects === "criteria");
|
|
142
142
|
return check === void 0 ? {} : { name: check.name };
|
|
@@ -372,7 +372,7 @@ async function runWorkProofs(opts) {
|
|
|
372
372
|
async function runWorkProofsCommand(opts) {
|
|
373
373
|
try {
|
|
374
374
|
if (opts.record || opts.check) {
|
|
375
|
-
const { runWorkProofsRecord } = await import('./work-proofs-record-
|
|
375
|
+
const { runWorkProofsRecord } = await import('./work-proofs-record-VQYVY5G5.js');
|
|
376
376
|
const result2 = await runWorkProofsRecord(opts);
|
|
377
377
|
process.exitCode = result2.exitCode;
|
|
378
378
|
return;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { escapeUnitPath, UNIT_MARKER, DEFAULT_UNIT_NAME } from './chunk-
|
|
4
|
-
import { inspectService, realInspectProbes } from './chunk-
|
|
3
|
+
import { escapeUnitPath, UNIT_MARKER, DEFAULT_UNIT_NAME } from './chunk-ZKZD4CGD.js';
|
|
4
|
+
import { inspectService, realInspectProbes } from './chunk-FTV63SCQ.js';
|
|
5
5
|
import { realpathSync, readFileSync, readdirSync } from 'fs';
|
|
6
6
|
import { resolve, dirname, join } from 'path';
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RELAY_PORT, BUILD_HOME } from './chunk-
|
|
3
|
+
import { RELAY_PORT, BUILD_HOME } from './chunk-E74YOVYI.js';
|
|
4
4
|
import { createServer, connect } from 'net';
|
|
5
5
|
|
|
6
6
|
createRequire(import.meta.url);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { sanitizeTerminal } from './chunk-TDTWNGCO.js';
|
|
4
|
-
import { isAgentsMdLayout } from './chunk-
|
|
5
|
-
import { resolveGatewayCredentials, defaultFetch } from './chunk-
|
|
4
|
+
import { isAgentsMdLayout } from './chunk-TQZHYLX5.js';
|
|
5
|
+
import { resolveGatewayCredentials, defaultFetch } from './chunk-3GBUF5VG.js';
|
|
6
6
|
import { versionAtLeast } from './chunk-SF2TBJBP.js';
|
|
7
7
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
8
|
-
import { machineSkillsState, staleAgentSkills } from './chunk-
|
|
8
|
+
import { machineSkillsState, staleAgentSkills } from './chunk-ULDQ7IM5.js';
|
|
9
9
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
10
|
-
import { hasSymlinkComponent } from './chunk-
|
|
11
|
-
import { skillDir, emitTree, targetIds, classifyTree, emitBuilders, AGENTS_SKILLS_BASE, defaultAgents, namesCore, MACHINE_SKILL_PATH, skillBases, isMaintainedCopy, contextAgents, loadTemplateFiles, splitRawFile } from './chunk-
|
|
10
|
+
import { hasSymlinkComponent } from './chunk-SXF7NWK3.js';
|
|
11
|
+
import { skillDir, emitTree, targetIds, classifyTree, emitBuilders, AGENTS_SKILLS_BASE, defaultAgents, namesCore, MACHINE_SKILL_PATH, skillBases, isMaintainedCopy, contextAgents, loadTemplateFiles, splitRawFile } from './chunk-OZG4BNC6.js';
|
|
12
12
|
import { MAINTAINED_SKILLS } from './chunk-TGVNEQSQ.js';
|
|
13
13
|
import { execFileSync } from 'child_process';
|
|
14
14
|
import { existsSync, readFileSync, writeFileSync, realpathSync, readdirSync } from 'fs';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { newTokenRetry } from './chunk-FJGYU2EK.js';
|
|
4
|
-
import { WorkCommandError, postJson } from './chunk-
|
|
5
|
-
import { defaultGitRunner, materializeContext, fetchControlPlaneCommit, lookupGoverningSource } from './chunk-
|
|
6
|
-
import { buildRefusalReason } from './chunk-
|
|
7
|
-
import { unsupportedLayout, layoutRefusalReason, composeDelivery } from './chunk-
|
|
8
|
-
import { signingFetchFor } from './chunk-
|
|
9
|
-
import { signerFor } from './chunk-
|
|
10
|
-
import { SHIM_DIR, stagedContextDir, contextHomeDir, deliveryDir, keptContextDir } from './chunk-
|
|
4
|
+
import { WorkCommandError, postJson } from './chunk-RIZCV7GX.js';
|
|
5
|
+
import { defaultGitRunner, materializeContext, fetchControlPlaneCommit, lookupGoverningSource } from './chunk-DZCELAHC.js';
|
|
6
|
+
import { buildRefusalReason } from './chunk-OHJUCEPI.js';
|
|
7
|
+
import { unsupportedLayout, layoutRefusalReason, composeDelivery } from './chunk-A3SSJ7WS.js';
|
|
8
|
+
import { signingFetchFor } from './chunk-3GBUF5VG.js';
|
|
9
|
+
import { signerFor } from './chunk-SHCD5V7G.js';
|
|
10
|
+
import { SHIM_DIR, stagedContextDir, contextHomeDir, deliveryDir, keptContextDir } from './chunk-I6MLYOGL.js';
|
|
11
11
|
import { SHIM_SCRIPT, shimScriptFor, GOVERNANCE_VARIABLE } from './chunk-SF2TBJBP.js';
|
|
12
12
|
import { readDegraded, readContextManifest, readSourceCache } from './chunk-YQR6E6OV.js';
|
|
13
13
|
import { fstatSync, mkdirSync, writeFileSync, chmodSync, rmSync, cpSync, readFileSync, existsSync, lstatSync } from 'fs';
|
|
@@ -492,11 +492,12 @@ async function prefetchGovernedContext(input) {
|
|
|
492
492
|
policy: buildFetch(false)
|
|
493
493
|
});
|
|
494
494
|
if (fetched.ok) return void 0;
|
|
495
|
-
|
|
495
|
+
const transient = fetched.kind === "unreachable" || tokenRepository !== void 0;
|
|
496
|
+
return { reason: fetchFailureReason(fetched, credentialName(tokenRepository), source.repository, source.sha, repository), transient };
|
|
496
497
|
} catch (err) {
|
|
497
498
|
if (err instanceof NoControlPlane || err instanceof GatewayConflict) return void 0;
|
|
498
|
-
if (err instanceof TokenRefused) return tokenRefusedReason(err, repository);
|
|
499
|
-
return `context_unavailable: the control plane named for ${repository} could not be fetched: ${err instanceof Error ? err.message : String(err)}
|
|
499
|
+
if (err instanceof TokenRefused) return { reason: tokenRefusedReason(err, repository), transient: err.detail !== void 0 };
|
|
500
|
+
return { reason: `context_unavailable: the control plane named for ${repository} could not be fetched: ${err instanceof Error ? err.message : String(err)}`, transient: false };
|
|
500
501
|
}
|
|
501
502
|
}
|
|
502
503
|
function removeStagedContext(buildDir) {
|