@outerlayer/cli 0.38.0-next.20261109143949 → 0.38.0-next.20261110130701
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 +20 -3
- package/dist/agent-setup-GZBGCV3K.js +40 -0
- package/dist/{agent-subcommand-DCOPM2NX.js → agent-subcommand-5PNHUNZZ.js} +5 -5
- package/dist/{artifact-link-cmd-RUGAK5EX.js → artifact-link-cmd-XOFZP7U5.js} +2 -2
- package/dist/{bridge-HZRJYECQ.js → bridge-RNM7OWRW.js} +8 -8
- package/dist/{build-3LXKCCJF.js → build-VKO7IVOQ.js} +14 -14
- package/dist/{build-disk-TYX6DU5R.js → build-disk-M2JYJF6R.js} +12 -12
- package/dist/build-info.json +1 -1
- package/dist/{builder-VYKWHAUQ.js → builder-HMHJ6U7C.js} +11 -11
- package/dist/caller-U26SATTV.js +23 -0
- package/dist/{check-YUKNUSAS.js → check-SJCTNS7N.js} +60 -60
- package/dist/{chunk-5OBQBINA.js → chunk-2TXYQANG.js} +1 -1
- package/dist/{chunk-6EN72I2O.js → chunk-2WNJ2MHD.js} +1 -1
- package/dist/{chunk-F3MEL6B6.js → chunk-3DY4DQOC.js} +5 -5
- package/dist/{chunk-LYWLBZ37.js → chunk-3GTAPQBG.js} +2 -2
- package/dist/{chunk-U463IFDK.js → chunk-3HJK7WTM.js} +8 -8
- package/dist/{chunk-O4Q7GPKU.js → chunk-3W5JLANR.js} +3 -3
- package/dist/{chunk-22QIA7SH.js → chunk-47JRSV6Y.js} +1 -1
- package/dist/{chunk-RVDXHF2M.js → chunk-4EJHQYVI.js} +255 -50
- package/dist/{chunk-KX4JKW4Z.js → chunk-5QDHJT73.js} +7 -4
- package/dist/{chunk-X45WDWSV.js → chunk-5QFFQCSY.js} +1 -1
- package/dist/{chunk-HGWDBTQ3.js → chunk-6RQP5GP5.js} +3 -3
- package/dist/{chunk-5TZCV6JB.js → chunk-6XMC6R4W.js} +1 -1
- package/dist/{chunk-T63WTVGY.js → chunk-6XROZIV6.js} +8 -8
- package/dist/{chunk-GECHL3NC.js → chunk-72LXVD4O.js} +4 -4
- package/dist/{chunk-C3K54KRU.js → chunk-735C5J6Q.js} +7 -7
- package/dist/{chunk-JMWCPEKP.js → chunk-7E55P2NR.js} +2 -2
- package/dist/{chunk-LO3PSFNT.js → chunk-AC6DM3S3.js} +1 -1
- package/dist/{chunk-JAURZKSE.js → chunk-ALCZ2SEW.js} +5 -5
- package/dist/{chunk-HUP2CGX4.js → chunk-AS4NMHJM.js} +3 -3
- package/dist/{chunk-CDDED64E.js → chunk-ATEMEVFF.js} +1 -1
- package/dist/{chunk-RMXRQ3OC.js → chunk-ATQHPT3B.js} +1 -1
- package/dist/{chunk-7TM2E4RI.js → chunk-B4U5XI4F.js} +69 -9
- package/dist/{chunk-2DVQHK37.js → chunk-B5Z4VA4Q.js} +1 -1
- package/dist/{chunk-LIH6CIVB.js → chunk-BCQFMAGM.js} +3 -3
- package/dist/{chunk-LIMJRKIU.js → chunk-BTH6HTE5.js} +5 -5
- package/dist/{chunk-WGC7UFRM.js → chunk-C2PZOLN7.js} +3 -2
- package/dist/{chunk-IG5ZZG7R.js → chunk-C574RHGN.js} +3 -3
- package/dist/{chunk-4LUHKCDO.js → chunk-CXXQQST7.js} +26 -15
- package/dist/{chunk-4K2EMRJP.js → chunk-DKDBMMX7.js} +6 -6
- package/dist/{chunk-DX27B42J.js → chunk-EHPKACA7.js} +1 -1
- package/dist/{chunk-RVYMYTXX.js → chunk-ENHD5PNW.js} +1 -1
- package/dist/{chunk-EGKYININ.js → chunk-F2ADK2KB.js} +5 -5
- package/dist/{chunk-GVK7AKFX.js → chunk-FGBBGUM4.js} +10 -8
- package/dist/{chunk-HE53NIRE.js → chunk-FXVHF6RX.js} +54 -4
- package/dist/{chunk-H3YHAO7L.js → chunk-GJMLLXZJ.js} +1 -1
- package/dist/{chunk-4EQQS3VJ.js → chunk-HDEYRLWK.js} +1 -1
- package/dist/{chunk-G7HNRAXN.js → chunk-HJK2KI3Q.js} +16 -16
- package/dist/{chunk-2J3X2Z4F.js → chunk-I2N427GS.js} +8 -8
- package/dist/{chunk-NFZMENCY.js → chunk-I45HTSSA.js} +1 -1
- package/dist/{chunk-2XEQCSCQ.js → chunk-IGO766M6.js} +4 -4
- package/dist/{chunk-TNAUQADA.js → chunk-ITOIM3WV.js} +1 -1
- package/dist/{chunk-CCEP5WBI.js → chunk-IVB6A3I7.js} +13 -11
- package/dist/{chunk-SLR6QAOE.js → chunk-L32O52SH.js} +1 -1
- package/dist/{chunk-TTG6Y7G7.js → chunk-L6CZTRNW.js} +2 -2
- package/dist/{chunk-4OD45RBP.js → chunk-LGJ56FCM.js} +11 -2
- package/dist/{chunk-N2QYP3NQ.js → chunk-MBPBYMHU.js} +565 -16
- package/dist/{chunk-X56UUEHE.js → chunk-MSARYPFD.js} +12 -3
- package/dist/{chunk-OKELGJNN.js → chunk-MT4XF5OL.js} +3 -3
- package/dist/{chunk-QP6SPQU5.js → chunk-NE7EG3SN.js} +6 -6
- package/dist/{chunk-JKRVSEK7.js → chunk-OEWSICWM.js} +8 -8
- package/dist/{chunk-DEWD22FA.js → chunk-OI4ZV7MJ.js} +1 -1
- package/dist/{chunk-IJ4DF5QS.js → chunk-OK4RSIB2.js} +1 -1
- package/dist/{chunk-PM4YDVAX.js → chunk-OWEJP5HJ.js} +1 -1
- package/dist/{chunk-Z4R73UUH.js → chunk-PA6FKP5B.js} +7 -7
- package/dist/{chunk-KFHF3GBH.js → chunk-QFQ2UNZU.js} +6 -6
- package/dist/{chunk-D7KYG37D.js → chunk-QGUCHNSQ.js} +82 -16
- package/dist/{chunk-OYBBYENC.js → chunk-QNHBJU74.js} +8 -8
- package/dist/{chunk-LOG4LBUY.js → chunk-RBLXGO5K.js} +2 -2
- package/dist/{chunk-KIYP5TML.js → chunk-SBPMDO47.js} +1 -1
- package/dist/{chunk-6JW2L7UV.js → chunk-SKGUS2CB.js} +11 -11
- package/dist/{chunk-NHT7RHAI.js → chunk-TD6DN5LU.js} +3 -3
- package/dist/{chunk-TFR6S7ZB.js → chunk-TUEEGFAQ.js} +10 -10
- package/dist/{chunk-ZWWU7COR.js → chunk-TUSIYONR.js} +1 -1
- package/dist/{chunk-UCDCPQXU.js → chunk-TW2V2IQ4.js} +1 -1
- package/dist/{chunk-GTKR2YEZ.js → chunk-UCUBQWJC.js} +1 -1
- package/dist/{chunk-EI6JYZ42.js → chunk-UUSSRXUJ.js} +3 -3
- package/dist/{chunk-OPGF3FUY.js → chunk-VRWZNI6U.js} +2 -2
- package/dist/{chunk-B3ILHK4Q.js → chunk-VU5PPWIQ.js} +8 -8
- package/dist/{chunk-LA5UO6LI.js → chunk-WH2QUYXH.js} +5 -4
- package/dist/{chunk-HW7QPCOP.js → chunk-WVMKXDOW.js} +148 -53
- package/dist/{chunk-LLVBDIQJ.js → chunk-XAR2CJFV.js} +7 -7
- package/dist/{chunk-BFWZGLUU.js → chunk-XCTE5S2C.js} +1 -1
- package/dist/{chunk-NR3FDUWS.js → chunk-XFODM3V7.js} +7 -7
- package/dist/{chunk-BDTFO5S7.js → chunk-XFU37HIM.js} +3 -3
- package/dist/{chunk-Q6ANHBJK.js → chunk-YO2NPS66.js} +1 -1
- package/dist/chunk-YOAJLD2D.js +270 -0
- package/dist/{chunk-MMSFADKC.js → chunk-YZQYTOCR.js} +1 -1
- package/dist/{claude-launcher-YDSG5XIN.js → claude-launcher-WMIUTAXY.js} +8 -8
- package/dist/{cli-7VKJRQWW.js → cli-R5SJT3YL.js} +233 -156
- package/dist/{cli-update-notice-AWYJ4A7R.js → cli-update-notice-OC4SOSZE.js} +2 -2
- package/dist/{command-3WAJBJWX.js → command-LWMX6I7W.js} +55 -54
- package/dist/{config-O2LJAZJZ.js → config-ZRGYLVDX.js} +13 -13
- package/dist/{connect-cmd-3DBWVCUL.js → connect-cmd-MZXTWM4R.js} +15 -15
- package/dist/{container-start-T4GH4WLX.js → container-start-VQR5ERZE.js} +53 -52
- package/dist/{context-cleanup-Z23RX7JT.js → context-cleanup-Z3HZZZXW.js} +5 -5
- package/dist/{context-show-cmd-OGRCR5OT.js → context-show-cmd-SCOVPVDM.js} +16 -16
- package/dist/{control-plane-launch-JZPULKCL.js → control-plane-launch-MWZHJ4G5.js} +16 -16
- package/dist/{demo-record-cmd-YPWPHDAN.js → demo-record-cmd-4RVSWVMK.js} +9 -9
- package/dist/{demo-voice-cmd-TNZ2G5CJ.js → demo-voice-cmd-PGM5JPCQ.js} +24 -24
- package/dist/{dist-OMJJT636.js → dist-XEPPXF4M.js} +2 -2
- package/dist/docker-25F2KOBJ.js +20 -0
- package/dist/{doctor-KHAB6YWH.js → doctor-3QJLCHQY.js} +55 -54
- package/dist/emit-artifact-cmd-Z4SHPKFT.js +44 -0
- package/dist/{emit-cmd-3YOUQCID.js → emit-cmd-NHMZ4M5S.js} +8 -8
- package/dist/emit-criteria-cmd-HCN3DOJM.js +35 -0
- package/dist/{emit-demo-cmd-3UBPYRAM.js → emit-demo-cmd-NOSQTOES.js} +24 -24
- package/dist/emit-finding-cmd-YXR3ZVCJ.js +36 -0
- package/dist/{emit-result-cmd-KRUV7V74.js → emit-result-cmd-Z7MBE37R.js} +22 -22
- package/dist/emit-step-cmd-JOSYDSEO.js +35 -0
- package/dist/{exec-client-WJLO2KWS.js → exec-client-SZRXXKJ5.js} +9 -9
- package/dist/find-unit-3RHC4375.js +24 -0
- package/dist/{findings-cmd-3JP4GYD3.js → findings-cmd-NGFY25WZ.js} +20 -20
- package/dist/{fleet-readiness-U4IZZV52.js → fleet-readiness-NWIVQQ4P.js} +16 -16
- package/dist/governing-source-DNWVPRXP.js +41 -0
- package/dist/guest-init-T7QJW2AJ.js +20 -0
- package/dist/{hook-fast-2ENS5AKU.js → hook-fast-ECQBMESE.js} +3 -3
- package/dist/{hook-install-JTYPE5ZQ.js → hook-install-MBMG3G6B.js} +5 -5
- package/dist/host-checks-EHSA6FLE.js +80 -0
- package/dist/host-key-6SMJUTJ2.js +18 -0
- package/dist/{image-tag-EX2R462S.js → image-tag-OCVY4W5D.js} +9 -9
- package/dist/index.js +4 -4
- package/dist/{init-7F2KP6XU.js → init-ETG7XYFQ.js} +51 -50
- package/dist/init-F7NB7GBW.js +80 -0
- package/dist/{init-agent-RJSMNEWD.js → init-agent-WEYGBAII.js} +51 -50
- package/dist/{init-cmd-F72BWVFC.js → init-cmd-KGM7TN6Z.js} +29 -29
- package/dist/{init-update-ZWSICDTJ.js → init-update-EUJ4264S.js} +26 -26
- package/dist/install-cmd-HWG6LJX5.js +21 -0
- package/dist/{layout-4FLIBRPO.js → layout-CGE4KWGO.js} +5 -5
- package/dist/{login-browser-ZEOXKIQ2.js → login-browser-G7WNR74C.js} +2 -2
- package/dist/{logs-BWGJ2BVT.js → logs-TKWJ4S4W.js} +8 -8
- package/dist/loop-K3QREUHK.js +90 -0
- package/dist/machine-5GTYN2LP.js +80 -0
- package/dist/{machine-skills-UEQA3AUX.js → machine-skills-CXA57QHE.js} +5 -5
- package/dist/{mcp-install-cmd-DBKKGLHW.js → mcp-install-cmd-6IGK65DV.js} +5 -5
- package/dist/{mcp-serve-cmd-LFXU5UGJ.js → mcp-serve-cmd-DVE5XP2U.js} +11 -11
- package/dist/{paths-CSZZQK3X.js → paths-VOWYUJLZ.js} +8 -8
- package/dist/pending-35ML3JE5.js +18 -0
- package/dist/{pidfile-TTIUEDXW.js → pidfile-MFP6B2KV.js} +9 -9
- package/dist/{record-U7DU6IVT.js → record-AWCJ3LTG.js} +9 -9
- package/dist/{relay-KZTGUSFJ.js → relay-YVZM5M6B.js} +6 -6
- package/dist/{relay-protocol-LG4J5K63.js → relay-protocol-MNWITORT.js} +6 -6
- package/dist/run-cmd-MBH5Z2UL.js +114 -0
- package/dist/{runner-agents-32J743FJ.js → runner-agents-L3PLYFWJ.js} +5 -5
- package/dist/runner-env-IHWYZ3B6.js +24 -0
- package/dist/{runner-identity-VQCIKNBK.js → runner-identity-E2XKIJNB.js} +11 -11
- package/dist/{runner-key-TFFPQCGE.js → runner-key-3AHJX75Z.js} +51 -50
- package/dist/session-sender-IS6S7PBC.js +44 -0
- package/dist/{spec-cmd-RQFIJ75J.js → spec-cmd-ZLDYL4N5.js} +21 -21
- package/dist/{starter-pack-LO3D6CPP.js → starter-pack-XINCCMDN.js} +6 -6
- package/dist/state-NIA6XT7D.js +18 -0
- package/dist/{status-KGZWBU26.js → status-GZ7KAIMH.js} +51 -50
- package/dist/{sync-cmd-4RSCWFAF.js → sync-cmd-3YZ4IB3T.js} +22 -22
- package/dist/update-steps-XY46I7FV.js +81 -0
- package/dist/{watch-NH5QZJLE.js → watch-LIIODJ5U.js} +22 -22
- package/dist/{work-claim-cmd-FNE2ZMVG.js → work-claim-cmd-GWBWIZ43.js} +25 -25
- package/dist/work-cmd-CJWTGOU5.js +33 -0
- package/dist/work-comment-cmd-RFVCNEET.js +39 -0
- package/dist/{work-demo-cmd-56C6JQD3.js → work-demo-cmd-Q2GKJCVL.js} +18 -18
- package/dist/{work-launch-LWDQXLGI.js → work-launch-ODTGCNJC.js} +1 -1
- package/dist/{work-logs-cmd-XKVZ2UY6.js → work-logs-cmd-KZQBPU2J.js} +18 -18
- package/dist/{work-needs-attention-cmd-DYD3AIRU.js → work-needs-attention-cmd-L3DOYAMK.js} +18 -18
- package/dist/{work-no-change-cmd-QVD67UG5.js → work-no-change-cmd-SHP25CJB.js} +18 -18
- package/dist/{work-open-pr-cmd-3SSJPKHW.js → work-open-pr-cmd-VATPLVSL.js} +20 -20
- package/dist/work-pr-cmd-XBLNONT3.js +34 -0
- package/dist/work-proofs-cmd-T5WZG3CX.js +37 -0
- package/dist/{work-proofs-record-KEZ6Z4QH.js → work-proofs-record-6YF4BS3K.js} +28 -28
- package/dist/{work-stop-cmd-4KNMURDC.js → work-stop-cmd-BLOSL24H.js} +18 -18
- package/package.json +2 -2
- package/skill-pack/maintained/outerlayer-amend/SKILL.md +1 -0
- package/skill-pack/maintained/outerlayer-amend/references/attachments.md +23 -0
- package/skill-pack/maintained/outerlayer-build/SKILL.md +5 -0
- package/skill-pack/maintained/outerlayer-cli/SKILL.md +9 -0
- package/skill-pack/maintained/outerlayer-run/SKILL.md +49 -0
- package/skill-pack/shipped.json +2 -0
- package/skill-pack/template/spec/SKILL.md +10 -11
- package/skill-pack/template/writing-specs/SKILL.md +18 -22
- package/dist/agent-setup-MLSWF7RF.js +0 -40
- package/dist/caller-VU7QBFHQ.js +0 -23
- package/dist/chunk-UNA4YIHE.js +0 -128
- package/dist/docker-MOESJVCB.js +0 -20
- package/dist/emit-artifact-cmd-W7YBXLA7.js +0 -44
- package/dist/emit-criteria-cmd-KZW275Q2.js +0 -35
- package/dist/emit-finding-cmd-NL6H2PBJ.js +0 -36
- package/dist/emit-step-cmd-SHBIO2JI.js +0 -35
- package/dist/find-unit-YNIILXQK.js +0 -24
- package/dist/governing-source-VZFU65KP.js +0 -41
- package/dist/guest-init-HIKD3MHJ.js +0 -20
- package/dist/host-checks-HZLHQ6WH.js +0 -79
- package/dist/host-key-V2VVCBGR.js +0 -18
- package/dist/init-XTTWPX6J.js +0 -79
- package/dist/install-cmd-LX76Y7NB.js +0 -21
- package/dist/loop-O5JBFZXP.js +0 -90
- package/dist/machine-LGJSYGQS.js +0 -79
- package/dist/pending-BHRSEFXV.js +0 -18
- package/dist/runner-env-RGYTHURZ.js +0 -24
- package/dist/session-sender-3VFTMIM3.js +0 -44
- package/dist/state-IH6JOEJZ.js +0 -18
- package/dist/update-steps-3LU3NZQL.js +0 -80
- package/dist/work-cmd-32J5UQJO.js +0 -33
- package/dist/work-comment-cmd-ZUZEAIIH.js +0 -38
- package/dist/work-pr-cmd-DF6Q5XHU.js +0 -34
- package/dist/work-proofs-cmd-2XWS5N2R.js +0 -37
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { resolveDevcontainerCli, devcontainerBuildInvocation, universalImagePending, RecipeError } from './chunk-
|
|
4
|
-
import { ensureHostKey } from './chunk-
|
|
5
|
-
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, jobsDir } from './chunk-
|
|
6
|
-
import { BUILD_HOME, JOB_MOUNT, RELAY_PORT, DESTINATION_BASE_PORT } from './chunk-
|
|
7
|
-
import { primaryDestination, JOIN_DIR, RELAY_ID, JOIN_SOCKET, GATEWAY_PORT, TARGET_GATEWAY, GATEWAY_SOCKET, destinationTarget, providerDestinations, RELAY_USER } from './chunk-
|
|
8
|
-
import { judgeAgent, universalImagePinned, UNIVERSAL_IMAGE, BUILDKIT_IMAGE } from './chunk-
|
|
9
|
-
import { defaultAgents } from './chunk-
|
|
3
|
+
import { resolveDevcontainerCli, devcontainerBuildInvocation, universalImagePending, RecipeError } from './chunk-2TXYQANG.js';
|
|
4
|
+
import { ensureHostKey } from './chunk-ENHD5PNW.js';
|
|
5
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, jobsDir } from './chunk-AC6DM3S3.js';
|
|
6
|
+
import { BUILD_HOME, JOB_MOUNT, RELAY_PORT, DESTINATION_BASE_PORT } from './chunk-NE7EG3SN.js';
|
|
7
|
+
import { primaryDestination, JOIN_DIR, RELAY_ID, JOIN_SOCKET, GATEWAY_PORT, TARGET_GATEWAY, GATEWAY_SOCKET, destinationTarget, providerDestinations, RELAY_USER } from './chunk-WH2QUYXH.js';
|
|
8
|
+
import { judgeAgent, universalImagePinned, UNIVERSAL_IMAGE, BUILDKIT_IMAGE } from './chunk-UCUBQWJC.js';
|
|
9
|
+
import { defaultAgents } from './chunk-MT4XF5OL.js';
|
|
10
10
|
import { PROVIDERS } from './chunk-7PZDPISM.js';
|
|
11
|
-
import { compareVersions } from './chunk-
|
|
11
|
+
import { compareVersions } from './chunk-MBPBYMHU.js';
|
|
12
12
|
import { createHash } from 'crypto';
|
|
13
13
|
import { mkdirSync, createWriteStream, rmSync, existsSync, readFileSync, chmodSync, writeFileSync, realpathSync, readdirSync, renameSync } from 'fs';
|
|
14
14
|
import { dirname, join, posix, resolve } from 'path';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
4
|
-
import { MAINTAINED_SKILLS, maintainedLineVersion } from './chunk-
|
|
4
|
+
import { MAINTAINED_SKILLS, maintainedLineVersion } from './chunk-ATEMEVFF.js';
|
|
5
5
|
import { mkdirSync, writeFileSync, renameSync, rmSync, readFileSync } from 'fs';
|
|
6
6
|
import { dirname, join } from 'path';
|
|
7
7
|
|
|
@@ -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-YO2NPS66.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-OWEJP5HJ.js';
|
|
6
|
+
import { retiredSkillPaths, removeRetiredSkills } from './chunk-TW2V2IQ4.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-MT4XF5OL.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';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { readContextManifest, removeContextManifest } from './chunk-YQR6E6OV.js';
|
|
4
4
|
import { removePreCommitGuardHook } from './chunk-CJPTUU2E.js';
|
|
5
|
-
import { CONTEXT_PIN_FILENAME, agentRootFolders } from './chunk-
|
|
5
|
+
import { CONTEXT_PIN_FILENAME, agentRootFolders } from './chunk-MT4XF5OL.js';
|
|
6
6
|
import { execFileSync } from 'child_process';
|
|
7
7
|
import { lstatSync, existsSync, unlinkSync, readdirSync, rmdirSync, readFileSync, mkdirSync, writeFileSync } from 'fs';
|
|
8
8
|
import { join, dirname, isAbsolute } from 'path';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { WorkCommandError, postJson } from './chunk-
|
|
4
|
-
import { defaultGitRunner, materializeContext, fetchControlPlaneCommit, lookupGoverningSource } from './chunk-
|
|
5
|
-
import { buildRefusalReason } from './chunk-
|
|
6
|
-
import { unsupportedLayout, layoutRefusalReason, composeDelivery } from './chunk-
|
|
7
|
-
import { signingFetchFor } from './chunk-
|
|
8
|
-
import { signerFor } from './chunk-
|
|
9
|
-
import { SHIM_DIR, stagedContextDir, contextHomeDir, deliveryDir, keptContextDir } from './chunk-
|
|
3
|
+
import { WorkCommandError, postJson } from './chunk-B4U5XI4F.js';
|
|
4
|
+
import { defaultGitRunner, materializeContext, fetchControlPlaneCommit, lookupGoverningSource } from './chunk-ALCZ2SEW.js';
|
|
5
|
+
import { buildRefusalReason } from './chunk-OWEJP5HJ.js';
|
|
6
|
+
import { unsupportedLayout, layoutRefusalReason, composeDelivery } from './chunk-L6CZTRNW.js';
|
|
7
|
+
import { signingFetchFor } from './chunk-VRWZNI6U.js';
|
|
8
|
+
import { signerFor } from './chunk-ENHD5PNW.js';
|
|
9
|
+
import { SHIM_DIR, stagedContextDir, contextHomeDir, deliveryDir, keptContextDir } from './chunk-AC6DM3S3.js';
|
|
10
10
|
import { SHIM_SCRIPT, shimScriptFor, GOVERNANCE_VARIABLE } from './chunk-SF2TBJBP.js';
|
|
11
11
|
import { readDegraded, readContextManifest, readSourceCache } from './chunk-YQR6E6OV.js';
|
|
12
12
|
import { fstatSync, mkdirSync, writeFileSync, chmodSync, rmSync, cpSync, readFileSync, existsSync, lstatSync } from 'fs';
|
|
@@ -173,16 +173,17 @@ var BuildTokens = class {
|
|
|
173
173
|
}
|
|
174
174
|
/** Asks the gateway for a token with `body`, retrying a failure about the moment. */
|
|
175
175
|
ask(body) {
|
|
176
|
-
const { config, item, fetchImpl } = this.options;
|
|
176
|
+
const { config, item, fetchImpl, run } = this.options;
|
|
177
|
+
const path = run === true ? `/v1/schedule-runs/${item}/token` : `/v1/work-items/${item}/claim/tokens`;
|
|
177
178
|
return retrySend(
|
|
178
179
|
async () => {
|
|
179
180
|
try {
|
|
180
181
|
return await postJson(
|
|
181
182
|
config.url,
|
|
182
|
-
|
|
183
|
+
path,
|
|
183
184
|
config.apiKey,
|
|
184
185
|
config.appId,
|
|
185
|
-
body,
|
|
186
|
+
run === true ? {} : body,
|
|
186
187
|
fetchImpl,
|
|
187
188
|
void 0,
|
|
188
189
|
await signerFor(config.configPath)
|
|
@@ -523,6 +524,7 @@ function removeKeptContext(jobDir) {
|
|
|
523
524
|
}
|
|
524
525
|
|
|
525
526
|
// src/runner/governing-source.ts
|
|
527
|
+
var SELF_GOVERNED = { ok: true, source: { kind: "self" } };
|
|
526
528
|
var unavailable2 = (why) => ({ ok: false, reason: `context_unavailable: ${why}` });
|
|
527
529
|
function pinnedSourceOf(source) {
|
|
528
530
|
return source.kind === "self" ? null : { repository: source.repository, ref: source.ref, sha: source.sha };
|
|
@@ -551,4 +553,4 @@ async function imageTargetFor(input) {
|
|
|
551
553
|
return { ok: true, repository: resolved.source.repository, pinned: { commit: resolved.source.sha, ref: resolved.source.ref } };
|
|
552
554
|
}
|
|
553
555
|
|
|
554
|
-
export { BuildTokens, WORKFLOW_PERMISSION_REASON, classifyRefusal, commandWithShim, controlPlaneTokenFailure, createRunnerLog, describeCallFailure, formatClock, formatDuration, imageTargetFor, keepStagedContext, keptContextTree, logStamp, pinnedSourceOf, prefetchGovernedContext, refusalCode, relativeToRunner, removeKeptContext, removeStagedContext, resolveGoverningSource, retrySend, shimScript, shortClaim, stageGovernedContext };
|
|
556
|
+
export { BuildTokens, SELF_GOVERNED, WORKFLOW_PERMISSION_REASON, classifyRefusal, commandWithShim, controlPlaneTokenFailure, createRunnerLog, describeCallFailure, formatClock, formatDuration, imageTargetFor, keepStagedContext, keptContextTree, logStamp, pinnedSourceOf, prefetchGovernedContext, refusalCode, relativeToRunner, removeKeptContext, removeStagedContext, resolveGoverningSource, retrySend, shimScript, shortClaim, stageGovernedContext };
|
|
@@ -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-NE7EG3SN.js';
|
|
4
4
|
import { createServer, connect } from 'net';
|
|
5
5
|
|
|
6
6
|
createRequire(import.meta.url);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { CONTROL_PLANE_DIR_VARIABLE, SUPPORTED_CONTROL_PLANE_LAYOUT } from './chunk-SF2TBJBP.js';
|
|
4
|
-
import { legacyAgent, agentById, defaultAgents, legacySubcommand } from './chunk-
|
|
4
|
+
import { legacyAgent, agentById, defaultAgents, legacySubcommand } from './chunk-MT4XF5OL.js';
|
|
5
5
|
import { LEGACY_AGENT } from './chunk-7PZDPISM.js';
|
|
6
|
-
import { MAINTAINED_SKILLS } from './chunk-
|
|
6
|
+
import { MAINTAINED_SKILLS } from './chunk-ATEMEVFF.js';
|
|
7
7
|
import { lstatSync, readFileSync } from 'fs';
|
|
8
8
|
import { join } from 'path';
|
|
9
9
|
|
|
@@ -9,6 +9,13 @@ createRequire(import.meta.url);
|
|
|
9
9
|
function linkSessionArgs(item, sessionId, flags) {
|
|
10
10
|
return ["work", "link-session", String(item), "--session-id", sessionId, ...flags];
|
|
11
11
|
}
|
|
12
|
+
var RUN_ID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
13
|
+
function parseRunEnv(raw) {
|
|
14
|
+
if (raw === void 0) return { reason: "OUTERLAYER_RUN is not set" };
|
|
15
|
+
const value = raw.trim();
|
|
16
|
+
if (!RUN_ID.test(value)) return { reason: `OUTERLAYER_RUN="${value}" does not name a run \u2014 it must be the run's id, which the runner sets` };
|
|
17
|
+
return { run: value.toLowerCase() };
|
|
18
|
+
}
|
|
12
19
|
var HOW_TO_CREATE_AN_ITEM = `${cliInvocation()} work build --local`;
|
|
13
20
|
function parseWorkItemEnv(raw) {
|
|
14
21
|
if (raw === void 0) return { reason: "OUTERLAYER_WORK is not set" };
|
|
@@ -33,7 +40,8 @@ function appendLaunchRecord(input, home) {
|
|
|
33
40
|
mkdirSync(join(home, ".outerlayer", "spool"), { recursive: true });
|
|
34
41
|
const record = {
|
|
35
42
|
sessionId: input.sessionId,
|
|
36
|
-
item: input.item,
|
|
43
|
+
...input.item === void 0 ? {} : { item: input.item },
|
|
44
|
+
...input.run === void 0 ? {} : { run: input.run },
|
|
37
45
|
...input.job === void 0 ? {} : { job: input.job },
|
|
38
46
|
t: input.t ?? (/* @__PURE__ */ new Date()).toISOString()
|
|
39
47
|
};
|
|
@@ -98,6 +106,7 @@ function readLaunchSpoolState(home, readImpl = readLaunchSpool) {
|
|
|
98
106
|
ids.add(record.sessionId);
|
|
99
107
|
records.set(record.sessionId, {
|
|
100
108
|
...typeof record.item === "number" ? { item: record.item } : {},
|
|
109
|
+
...typeof record.run === "string" ? { run: record.run } : {},
|
|
101
110
|
...typeof record.job === "string" ? { job: record.job } : {}
|
|
102
111
|
});
|
|
103
112
|
} else malformedLines += 1;
|
|
@@ -108,4 +117,4 @@ function readLaunchSpoolState(home, readImpl = readLaunchSpool) {
|
|
|
108
117
|
return { ids, records, ...malformedLines > 0 ? { malformedLines } : {} };
|
|
109
118
|
}
|
|
110
119
|
|
|
111
|
-
export { appendLaunchRecord, launchStatusIsDecisive, launchedItemForSession, launchedItemsBySession, launchesPath, linkSessionArgs, parseWorkItemEnv, readLaunchSpoolState };
|
|
120
|
+
export { appendLaunchRecord, launchStatusIsDecisive, launchedItemForSession, launchedItemsBySession, launchesPath, linkSessionArgs, parseRunEnv, parseWorkItemEnv, readLaunchSpoolState };
|