@outerlayer/cli 0.36.0-next.20261103103134 → 0.36.0-next.20261103191900
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-DZZZH3SE.js → agent-setup-X7AYIYU2.js} +18 -18
- package/dist/{agent-subcommand-WRHH6SRD.js → agent-subcommand-54OWGFVV.js} +3 -3
- package/dist/{bridge-GZSZQGLI.js → bridge-QJNA3KV6.js} +6 -6
- package/dist/{build-UKZ5RPRR.js → build-4R4PUGPT.js} +12 -12
- package/dist/{build-disk-3HOXULLP.js → build-disk-LYHGWH4G.js} +10 -10
- package/dist/build-info.json +1 -1
- package/dist/{builder-QEK4GIRY.js → builder-ER6LUZBQ.js} +9 -9
- package/dist/caller-PCOQRDGJ.js +23 -0
- package/dist/{check-D6NMQ6LP.js → check-27MDV3T5.js} +56 -54
- package/dist/{chunk-6UI4ELNA.js → chunk-2BTDFRRQ.js} +7 -7
- package/dist/{chunk-FLQL6ZIG.js → chunk-2HOSCIV6.js} +1 -1
- package/dist/{chunk-MPVTZLOM.js → chunk-2I654QYW.js} +3 -3
- package/dist/{chunk-PDRWRFB2.js → chunk-45AYMLMT.js} +3 -3
- package/dist/{chunk-K26KMWU4.js → chunk-4HMOBW7H.js} +7 -7
- package/dist/{chunk-R63T46P7.js → chunk-4KYPJE3D.js} +3 -3
- package/dist/{chunk-HR4PJLOO.js → chunk-4YLF777T.js} +1 -1
- package/dist/{chunk-OGG5ELXF.js → chunk-5MN6VZZH.js} +4 -4
- package/dist/{chunk-JMM3L5RG.js → chunk-6HMA3FIE.js} +4 -4
- package/dist/{chunk-NH4EZRBM.js → chunk-6LPBK4XU.js} +6 -6
- package/dist/{chunk-J4NJWTNO.js → chunk-7HDI5CGG.js} +5 -5
- package/dist/{chunk-QVOU2QUR.js → chunk-7HRNYPL3.js} +3 -3
- package/dist/{chunk-2JWLK2TU.js → chunk-7TPLWWFN.js} +1 -1
- package/dist/{chunk-VMPVQE4D.js → chunk-7TZP5JBS.js} +2 -2
- package/dist/{chunk-6J3QWXTA.js → chunk-7V4ZEB2R.js} +4 -4
- package/dist/{chunk-DWYQKLCL.js → chunk-AWY7ORQ2.js} +1 -1
- package/dist/{chunk-WAGHPZP2.js → chunk-AZXFZGHQ.js} +1 -1
- package/dist/{chunk-LDKF6B2R.js → chunk-B5BLIHJZ.js} +3 -3
- package/dist/{chunk-IEVARJ6G.js → chunk-BOUW2CV6.js} +2 -2
- package/dist/{chunk-3XEYA3QF.js → chunk-BQUI64BU.js} +1 -1
- package/dist/{chunk-GWJUEJR4.js → chunk-C4OYAXLQ.js} +7 -7
- package/dist/{chunk-EHS3HEB6.js → chunk-COPXXXNB.js} +3 -3
- package/dist/{chunk-NDCN3R5C.js → chunk-D7TMGSZN.js} +3 -3
- package/dist/{chunk-7UYXSF62.js → chunk-DDOD4YOQ.js} +6 -7
- package/dist/{chunk-KVO4MJWS.js → chunk-DE64NSOH.js} +6 -6
- package/dist/{chunk-ZE2JJQPC.js → chunk-DSZKDLFU.js} +1 -1
- package/dist/{chunk-54ERDQ3O.js → chunk-E6ESLX5E.js} +32 -8
- package/dist/{chunk-KHJPRTOW.js → chunk-EKDQDOSS.js} +1 -1
- package/dist/{chunk-LV4IDDD3.js → chunk-ENWGIREE.js} +5 -5
- package/dist/{chunk-2W5C47AE.js → chunk-FDRQZALU.js} +1 -1
- package/dist/{chunk-K373UCEV.js → chunk-GAPNTRA5.js} +1 -1
- package/dist/{chunk-TWGSXBZM.js → chunk-GNLAORSW.js} +3 -3
- package/dist/{chunk-LISVY7JZ.js → chunk-H5CWIV56.js} +7 -7
- package/dist/{chunk-YEZGNCSK.js → chunk-H6T73OLF.js} +1 -1
- package/dist/{chunk-JD5EVW6Y.js → chunk-I5EZW66W.js} +4 -4
- package/dist/{chunk-U7MLC45I.js → chunk-IADJEW5P.js} +5 -5
- package/dist/{chunk-NQYTUVZR.js → chunk-IM4VUDKW.js} +1 -1
- package/dist/{chunk-BZQ3S24G.js → chunk-INT54Z2T.js} +1 -1
- package/dist/{chunk-GPBTTHK3.js → chunk-JJ63MLE5.js} +1 -1
- package/dist/{chunk-HQBKKYYQ.js → chunk-K3GCT2HL.js} +4 -4
- package/dist/{chunk-4MN4BBKZ.js → chunk-K3GWZRRK.js} +7 -7
- package/dist/{chunk-ZZ4WIQRF.js → chunk-KJ424QKG.js} +12 -9
- package/dist/{chunk-HO4DPX5N.js → chunk-KQDTORGF.js} +1 -1
- package/dist/{chunk-PYK6GCCU.js → chunk-KRTIYEJI.js} +5 -5
- package/dist/{chunk-52Z7AOZ2.js → chunk-LIJMW36Q.js} +43 -27
- package/dist/{chunk-XW2KXLZB.js → chunk-MLO33RMW.js} +18 -18
- package/dist/{chunk-IEDO26G4.js → chunk-NDIV6GDC.js} +12 -3
- package/dist/{chunk-T5I2H7TJ.js → chunk-NE2A2ZIY.js} +1 -1
- package/dist/{chunk-B5UBTIIP.js → chunk-OHOATH4S.js} +4 -4
- package/dist/{chunk-4MLH5MDB.js → chunk-OM3XGJBY.js} +5 -5
- package/dist/{chunk-XAMTNTOH.js → chunk-PCWNDYQO.js} +9 -9
- package/dist/{chunk-SYKEQT63.js → chunk-PJ5GYGC6.js} +17 -5
- package/dist/{chunk-B5VKRKLJ.js → chunk-PUEIXGZ4.js} +1 -1
- package/dist/{chunk-L3SHPR2M.js → chunk-PYPHE6FZ.js} +1 -1
- package/dist/{chunk-CDTBXABP.js → chunk-QBDQ64QF.js} +2 -2
- package/dist/{chunk-VST3BWL4.js → chunk-QGUOCNQA.js} +11 -10
- package/dist/{chunk-NMMGRG5V.js → chunk-R2DEJ5Q6.js} +4 -4
- package/dist/{chunk-U6EACUUG.js → chunk-RYSGOWHG.js} +16 -3
- package/dist/{chunk-54PQNYA7.js → chunk-S7YLAN2P.js} +2 -2
- package/dist/{chunk-LXXP5HRJ.js → chunk-SRNHGJAV.js} +3 -3
- package/dist/{chunk-2SBNZ4EC.js → chunk-T3MVV6LG.js} +1 -1
- package/dist/{chunk-EUWTGCK5.js → chunk-T4J5VR7B.js} +1 -1
- package/dist/{chunk-OPEZVPF7.js → chunk-UYXX33HA.js} +3 -3
- package/dist/{chunk-P4Q6M6PI.js → chunk-W3ZKWZ6G.js} +1 -1
- package/dist/{chunk-DEZSNJSE.js → chunk-W72X24TZ.js} +1 -1
- package/dist/{chunk-BEJJJZXF.js → chunk-WRNDC7H7.js} +3 -3
- package/dist/{chunk-UZSMDU4U.js → chunk-WVZ6EKJ3.js} +2 -2
- package/dist/{chunk-NOLS2G2W.js → chunk-WWTZLRPH.js} +8 -0
- package/dist/{chunk-42X6CTBI.js → chunk-X7PK7QRY.js} +3 -3
- package/dist/{chunk-YCBVYTFI.js → chunk-XLCAYPLV.js} +1 -1
- package/dist/{chunk-S7YU25AF.js → chunk-Z27IIHHE.js} +32 -31
- package/dist/{claude-launcher-CPSCSL6U.js → claude-launcher-WJ5CVLJR.js} +6 -6
- package/dist/{cli-TZW5XJRE.js → cli-RCLYJFIL.js} +159 -143
- package/dist/{command-5VOKN4HI.js → command-XGIJADGX.js} +48 -48
- package/dist/{config-23EBIGW4.js → config-VHJI645L.js} +11 -11
- package/dist/{connect-cmd-GEBIOBQQ.js → connect-cmd-CQNECBHI.js} +10 -10
- package/dist/{container-start-NJGGT4E3.js → container-start-S5EL4HIH.js} +46 -46
- package/dist/{context-cleanup-I7FLIV5A.js → context-cleanup-2SPOGEZR.js} +3 -3
- package/dist/{context-show-cmd-CSPMSRHX.js → context-show-cmd-XODQYX7H.js} +11 -11
- package/dist/{control-plane-launch-KC7NUNYQ.js → control-plane-launch-KIJABWN4.js} +13 -13
- package/dist/{demo-record-cmd-ZW6U2LAV.js → demo-record-cmd-QVK4YUIV.js} +7 -7
- package/dist/{demo-voice-cmd-IDW3QX3E.js → demo-voice-cmd-4BOI7UDQ.js} +18 -18
- package/dist/{docker-2VHMWLNK.js → docker-BP7AD65K.js} +9 -9
- package/dist/{doctor-ZAB6SDWF.js → doctor-TZIHEPIW.js} +48 -48
- package/dist/{emit-artifact-cmd-2ZHPNLPG.js → emit-artifact-cmd-EGFKK4KF.js} +17 -17
- package/dist/{emit-cmd-UN7HGZC5.js → emit-cmd-S64A2LJ2.js} +6 -6
- package/dist/{emit-criteria-cmd-TUXGD7CW.js → emit-criteria-cmd-L2YRIRCQ.js} +13 -13
- package/dist/{emit-demo-cmd-4YMYB556.js → emit-demo-cmd-QHKUH4Y3.js} +18 -18
- package/dist/{emit-finding-cmd-O2NN22XF.js → emit-finding-cmd-DCEGWYY4.js} +13 -13
- package/dist/{emit-result-cmd-VRITADX2.js → emit-result-cmd-WGBZUASN.js} +16 -16
- package/dist/{emit-step-cmd-LGNBZTWJ.js → emit-step-cmd-TFKMQZHD.js} +13 -13
- package/dist/{exec-client-NXTXAVHI.js → exec-client-GW5ZI74B.js} +7 -7
- package/dist/find-unit-L2JIUL4D.js +24 -0
- package/dist/{findings-cmd-RJD7KTSW.js → findings-cmd-QO7OMGM6.js} +13 -13
- package/dist/{fleet-readiness-RIO2SWC7.js → fleet-readiness-ZF4UUANH.js} +12 -12
- package/dist/{governing-source-CZSYE7QE.js → governing-source-JYK3VK23.js} +18 -18
- package/dist/{guest-init-FLSL5RI7.js → guest-init-FPRVOOK5.js} +8 -8
- package/dist/{hook-fast-HYRZAY5K.js → hook-fast-WLRNPF5S.js} +2 -2
- package/dist/{hook-install-CSHKOLWT.js → hook-install-TZZNJB4P.js} +3 -3
- package/dist/{hook-wrap-fast-ITUBSHEF.js → hook-wrap-fast-HNY3OGLN.js} +2 -2
- package/dist/host-checks-FEYDTZKZ.js +79 -0
- package/dist/{host-key-CPAEQSNU.js → host-key-WG4KPVLI.js} +7 -7
- package/dist/{image-tag-MAMFM4SO.js → image-tag-GZW7HJBN.js} +7 -7
- package/dist/index.js +6 -6
- package/dist/init-6FLEEVZY.js +79 -0
- package/dist/{init-G7D7ABKV.js → init-RSKNY7WL.js} +44 -44
- package/dist/{init-cmd-5GHIMFSS.js → init-cmd-UD6QSHH2.js} +26 -26
- package/dist/{init-update-TQH2Q7IZ.js → init-update-N3WBXLGD.js} +21 -21
- package/dist/{install-cmd-PVQ5M5NM.js → install-cmd-GJNKXZN2.js} +9 -9
- package/dist/{layout-2DF7ON2F.js → layout-YSNLYG6U.js} +3 -3
- package/dist/{logs-BM644OOJ.js → logs-IMTZ733E.js} +6 -6
- package/dist/loop-VCH4UOQ4.js +90 -0
- package/dist/machine-ZU7XA2IC.js +79 -0
- package/dist/{machine-skills-O7XAZYLN.js → machine-skills-WOAIOXAQ.js} +3 -3
- package/dist/{mcp-install-cmd-METCXTTR.js → mcp-install-cmd-NFMA6PSL.js} +3 -3
- package/dist/{mcp-serve-cmd-CTKBLSM6.js → mcp-serve-cmd-27QGBQGR.js} +8 -8
- package/dist/{paths-VIBBLJ2W.js → paths-HV5GP5OV.js} +6 -6
- package/dist/pending-4PZIZNR5.js +18 -0
- package/dist/{pidfile-PAX5XHQJ.js → pidfile-P4DJ2C7S.js} +7 -7
- package/dist/{record-QPXOUL6F.js → record-UOVUKWPV.js} +7 -7
- package/dist/{relay-KASDMV3R.js → relay-JMCC6IJ4.js} +4 -4
- package/dist/{relay-protocol-7HSCZC5H.js → relay-protocol-RR5JOWOO.js} +4 -4
- package/dist/{runner-agents-WUMCXVS2.js → runner-agents-RO4TU5N4.js} +3 -3
- package/dist/{runner-env-R2C5LYCX.js → runner-env-XX2NZOEJ.js} +13 -13
- package/dist/{runner-identity-UDPLWT7I.js → runner-identity-HHW4UKYE.js} +9 -9
- package/dist/{runner-key-JGIDJTHH.js → runner-key-FNNAF36Q.js} +44 -44
- package/dist/{session-sender-4QKSVX5Z.js → session-sender-4FS2GKAY.js} +17 -17
- package/dist/{spec-cmd-QAOTQPI6.js → spec-cmd-AAVXNWTV.js} +14 -14
- package/dist/{starter-pack-LAPDUG6E.js → starter-pack-NAR72DKB.js} +4 -4
- package/dist/{state-OTWJW4O7.js → state-IASJSAJV.js} +7 -7
- package/dist/{status-OKZHXEYB.js → status-FQ5AIDWL.js} +44 -44
- package/dist/{statusline-fast-7V7U4SI4.js → statusline-fast-5G2CTPSX.js} +2 -2
- package/dist/{sync-cmd-FLNYVXAE.js → sync-cmd-K3V4D54W.js} +16 -16
- package/dist/update-steps-TR2A4Z6Q.js +80 -0
- package/dist/{watch-4V7FZI5R.js → watch-SAMIKKQC.js} +16 -16
- package/dist/{work-claim-cmd-E2D4YHCS.js → work-claim-cmd-PBW4QDJH.js} +19 -19
- package/dist/{work-cmd-VD362634.js → work-cmd-L23VUS4H.js} +13 -13
- package/dist/{work-comment-cmd-EUI5IOQI.js → work-comment-cmd-DRBGJAUD.js} +15 -15
- package/dist/{work-demo-cmd-MGL3U6ZF.js → work-demo-cmd-HT72ZB6K.js} +13 -13
- package/dist/{work-logs-cmd-QAJG75DG.js → work-logs-cmd-VSWZHEUJ.js} +13 -13
- package/dist/{work-open-pr-cmd-SXVSMG44.js → work-open-pr-cmd-DOMZJJC3.js} +14 -14
- package/dist/{work-pr-cmd-WUIMC7XB.js → work-pr-cmd-FC3AJ67Y.js} +13 -13
- package/dist/{work-proofs-cmd-AAHTMSCF.js → work-proofs-cmd-NINHCBZW.js} +15 -15
- package/dist/{work-proofs-record-LLUEXW7I.js → work-proofs-record-7XH374TO.js} +22 -22
- package/dist/{work-stop-cmd-RZLGWQJ5.js → work-stop-cmd-J5DXU4BV.js} +13 -13
- package/package.json +1 -1
- package/skill-pack/maintained/outerlayer-amend/SKILL.md +1 -1
- package/skill-pack/maintained/outerlayer-build/SKILL.md +2 -1
- package/dist/caller-WSMJJSFL.js +0 -23
- package/dist/find-unit-RYYTX2O5.js +0 -24
- package/dist/host-checks-KLMATCMD.js +0 -79
- package/dist/init-BB2LERCZ.js +0 -79
- package/dist/loop-7MAMONQJ.js +0 -90
- package/dist/machine-HDHSI7WF.js +0 -79
- package/dist/pending-RXJKH4AC.js +0 -18
- package/dist/update-steps-W56ITCKQ.js +0 -80
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { launchRefusalForSession } from './chunk-WGC7UFRM.js';
|
|
4
|
-
import { detectActiveSession } from './chunk-
|
|
5
|
-
import { autoConnect } from './chunk-
|
|
4
|
+
import { detectActiveSession } from './chunk-NE2A2ZIY.js';
|
|
5
|
+
import { autoConnect } from './chunk-WVZ6EKJ3.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
|
-
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
7
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-4YLF777T.js';
|
|
8
8
|
import { launchedItemForSession } from './chunk-4OD45RBP.js';
|
|
9
9
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
10
10
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { fetchFactories, selectFactory, saveFactoryConnection, autoConnectedLine } from './chunk-
|
|
4
|
-
import { resolveGatewayCredentials } from './chunk-
|
|
3
|
+
import { fetchFactories, selectFactory, saveFactoryConnection, autoConnectedLine } from './chunk-45AYMLMT.js';
|
|
4
|
+
import { resolveGatewayCredentials } from './chunk-4YLF777T.js';
|
|
5
5
|
import { readCloudConfig } from './chunk-HWVMRETT.js';
|
|
6
6
|
import { findGitDirs, readRepoConnection } from './chunk-BJ3KTMDH.js';
|
|
7
7
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
@@ -38,6 +38,12 @@ function parsePayload(stdin) {
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
var text = (value) => typeof value === "string" ? value : void 0;
|
|
41
|
+
var MAX_BACKGROUND_LABELS = 10;
|
|
42
|
+
var MAX_BACKGROUND_LABEL = 120;
|
|
43
|
+
function backgroundLabels(value) {
|
|
44
|
+
if (!Array.isArray(value)) return [];
|
|
45
|
+
return value.filter((task) => typeof task === "object" && task !== null).slice(0, MAX_BACKGROUND_LABELS).map((task) => [text(task.type), text(task.description)].filter((part) => part !== void 0 && part !== "").join(": ").slice(0, MAX_BACKGROUND_LABEL)).map((label) => label === "" ? "background task" : label);
|
|
46
|
+
}
|
|
41
47
|
function decode(name, stdin) {
|
|
42
48
|
const payload = parsePayload(stdin);
|
|
43
49
|
const nativeName = String(name ?? payload.hook_event_name ?? "unknown");
|
|
@@ -48,6 +54,7 @@ function decode(name, stdin) {
|
|
|
48
54
|
const toolName = text(payload.tool_name);
|
|
49
55
|
const toolUseId = text(payload.tool_use_id);
|
|
50
56
|
const tool = toolKind(toolName);
|
|
57
|
+
const backgroundWork = backgroundLabels(payload.background_tasks);
|
|
51
58
|
return {
|
|
52
59
|
nativeName,
|
|
53
60
|
...kind === void 0 ? {} : { kind },
|
|
@@ -68,6 +75,7 @@ function decode(name, stdin) {
|
|
|
68
75
|
},
|
|
69
76
|
// A tool call a subagent makes carries the subagent's id.
|
|
70
77
|
fromSubagent: payload.agent_id !== void 0,
|
|
78
|
+
...backgroundWork.length === 0 ? {} : { backgroundWork },
|
|
71
79
|
...toolName === void 0 && toolUseId === void 0 ? {} : { tool: { ...toolUseId === void 0 ? {} : { useId: toolUseId }, ...toolName === void 0 ? {} : { name: toolName } } }
|
|
72
80
|
};
|
|
73
81
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { detectActiveSession } from './chunk-
|
|
4
|
-
import { autoConnect } from './chunk-
|
|
3
|
+
import { detectActiveSession } from './chunk-NE2A2ZIY.js';
|
|
4
|
+
import { autoConnect } from './chunk-WVZ6EKJ3.js';
|
|
5
5
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
6
|
-
import { defaultFetch, unauthorizedMessage, resolveGatewayCredentials } from './chunk-
|
|
6
|
+
import { defaultFetch, unauthorizedMessage, resolveGatewayCredentials } from './chunk-4YLF777T.js';
|
|
7
7
|
import { parseWorkItemEnv } from './chunk-4OD45RBP.js';
|
|
8
8
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
9
9
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
@@ -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-NDIV6GDC.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,34 +1,34 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { writeFleetState } from './chunk-
|
|
4
|
-
import { writePendingUpdate } from './chunk-
|
|
5
|
-
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-
|
|
3
|
+
import { writeFleetState } from './chunk-GAPNTRA5.js';
|
|
4
|
+
import { writePendingUpdate } from './chunk-PUEIXGZ4.js';
|
|
5
|
+
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-FDRQZALU.js';
|
|
6
6
|
import { decideInstalledSwitch } from './chunk-3JVYMD4G.js';
|
|
7
7
|
import { fetchVersionMeta, npmVersion, npmSupportsProvenance, fetchTarballDigest, fetchProvenance, installVersion, auditSignatures } from './chunk-E7R2GIAW.js';
|
|
8
|
-
import { reportFailedStart, fitImageBuildMemory } from './chunk-
|
|
9
|
-
import { renderUpdateSteps } from './chunk-
|
|
8
|
+
import { reportFailedStart, fitImageBuildMemory } from './chunk-C4OYAXLQ.js';
|
|
9
|
+
import { renderUpdateSteps } from './chunk-D7TMGSZN.js';
|
|
10
10
|
import { RUNNER_PROTOCOL } from './chunk-IDYLPN4X.js';
|
|
11
|
-
import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-
|
|
12
|
-
import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-
|
|
13
|
-
import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, releaseLease, LEASE_SECONDS, itemTag, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, setStage, jobEnv, runHook, describeHookEnd, needsBuildSkill, provisionContainer, leaseExpiresAtMs, deliverContainerHooks, provisionMicroVm, deliverCommitHooks, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, currentSkillCommand, formerSkillProblem, MICROVM_COMMAND_DIR, commandLogOffset, startMicroVmCommand, microVmCommandLine, runCommand, containerCommandExec, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isContainerTracked, isMicroVmTracked, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, unfinishedJobs, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, usableCpus, hookLimitsFor, AttemptLogBook, microVmOomKills, needsRenew, renewLease, RENEW_INTERVAL_SECONDS, stoppedHelperReason, measureDisk, listTrackedJobs, parseCpuList, ensureTunnel, keepGhConfigCurrent, filesAreCopied, restartSender, createHousekeepingDocker, housekeepingDockerIfReachable, runHousekeeping, freeItemDisksUntil, savedStatesDir, readRecords, removeOldestUntil, ensureNetworkReady, managedBuildSettingsFor, ADOPTED_FETCH_RETRY_WINDOW_MS, gitRemoteFor, startServicesFor, createLeaseChannel, serveLease, vmAlive, writeGuestGhConfig, shellQuote, deliverJobFiles, inTeardown } from './chunk-
|
|
14
|
-
import { RUNNER_RESERVE_BYTES } from './chunk-
|
|
15
|
-
import { RepoFilter } from './chunk-
|
|
11
|
+
import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-PCWNDYQO.js';
|
|
12
|
+
import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-W3ZKWZ6G.js';
|
|
13
|
+
import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, releaseLease, LEASE_SECONDS, itemTag, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, setStage, jobEnv, runHook, describeHookEnd, needsBuildSkill, provisionContainer, leaseExpiresAtMs, deliverContainerHooks, provisionMicroVm, deliverCommitHooks, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, currentSkillCommand, formerSkillProblem, MICROVM_COMMAND_DIR, commandLogOffset, startMicroVmCommand, microVmCommandLine, runCommand, containerCommandExec, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isContainerTracked, isMicroVmTracked, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, unfinishedJobs, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, usableCpus, hookLimitsFor, AttemptLogBook, microVmOomKills, needsRenew, renewLease, RENEW_INTERVAL_SECONDS, stoppedHelperReason, measureDisk, listTrackedJobs, parseCpuList, ensureTunnel, keepGhConfigCurrent, filesAreCopied, restartSender, createHousekeepingDocker, housekeepingDockerIfReachable, runHousekeeping, freeItemDisksUntil, savedStatesDir, readRecords, removeOldestUntil, ensureNetworkReady, managedBuildSettingsFor, ADOPTED_FETCH_RETRY_WINDOW_MS, gitRemoteFor, startServicesFor, createLeaseChannel, serveLease, vmAlive, writeGuestGhConfig, shellQuote, deliverJobFiles, inTeardown } from './chunk-LIJMW36Q.js';
|
|
14
|
+
import { RUNNER_RESERVE_BYTES } from './chunk-KJ424QKG.js';
|
|
15
|
+
import { RepoFilter } from './chunk-4HMOBW7H.js';
|
|
16
16
|
import { JOB_STATE_FORMAT, readsJobState, jobStateFormatOf } from './chunk-ZVB57WI6.js';
|
|
17
|
-
import { imageTag, writeUpdateStatus, pullInstruction, tagToPull } from './chunk-
|
|
17
|
+
import { imageTag, writeUpdateStatus, pullInstruction, tagToPull } from './chunk-T4J5VR7B.js';
|
|
18
18
|
import { isVersion, compareVersions, satisfiesRange } from './chunk-TQMI335S.js';
|
|
19
|
-
import { claimCalls, claimItem, spoolHomeFor, leftByRunnerKey, runnerCalls } from './chunk-
|
|
20
|
-
import { claimPidFile, releasePidFile, writePidFile, readPidFile } from './chunk-
|
|
19
|
+
import { claimCalls, claimItem, spoolHomeFor, leftByRunnerKey, runnerCalls } from './chunk-7TZP5JBS.js';
|
|
20
|
+
import { claimPidFile, releasePidFile, writePidFile, readPidFile } from './chunk-KQDTORGF.js';
|
|
21
21
|
import { startTimeOf, isSameProcess } from './chunk-JBJTC3UU.js';
|
|
22
|
-
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-
|
|
23
|
-
import { isSignatureRefusal, WorkCommandError, getJson, postJson } from './chunk-
|
|
24
|
-
import { keyRunnerFactory, isBuiltinContainer, isBuiltinVm, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, runnerDeliversComments, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_UPDATE_MAX_WAIT_HOURS } from './chunk-
|
|
25
|
-
import { allocatedBytes, freeBytes, formatBytes } from './chunk-
|
|
26
|
-
import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, exceedsDisk, builderName, runnerLabelValue, ensureFailureCount, builderSpec, ensureBuilder, spawnRun } from './chunk-
|
|
27
|
-
import { loadHostKey, ensureHostKey, signerFor } from './chunk-
|
|
28
|
-
import { RUNNER_DIR_MODE, runnerDir, buildDir, attemptStamp, jobDir, RUNNER_FILE_MODE, jobsDir, pidFilePath, storeScopes, imagesDir } from './chunk-
|
|
29
|
-
import { parseClaimIdentity, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, JOB_MOUNT } from './chunk-
|
|
30
|
-
import { COMMAND_LOST_REASON, takeAgentCredentials, heldAgentCredential, CONTAINER_STOPPED_REASON, currentAgentCredential, fdName } from './chunk-
|
|
31
|
-
import { runnerAgents } from './chunk-
|
|
22
|
+
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-H5CWIV56.js';
|
|
23
|
+
import { isSignatureRefusal, WorkCommandError, getJson, postJson } from './chunk-DE64NSOH.js';
|
|
24
|
+
import { keyRunnerFactory, isBuiltinContainer, isBuiltinVm, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, runnerDeliversComments, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_UPDATE_MAX_WAIT_HOURS } from './chunk-7V4ZEB2R.js';
|
|
25
|
+
import { allocatedBytes, freeBytes, formatBytes } from './chunk-BOUW2CV6.js';
|
|
26
|
+
import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, exceedsDisk, builderName, runnerLabelValue, ensureFailureCount, builderSpec, ensureBuilder, spawnRun } from './chunk-2BTDFRRQ.js';
|
|
27
|
+
import { loadHostKey, ensureHostKey, signerFor } from './chunk-EKDQDOSS.js';
|
|
28
|
+
import { RUNNER_DIR_MODE, runnerDir, buildDir, attemptStamp, jobDir, RUNNER_FILE_MODE, jobsDir, pidFilePath, storeScopes, imagesDir } from './chunk-PYPHE6FZ.js';
|
|
29
|
+
import { parseClaimIdentity, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, JOB_MOUNT } from './chunk-B5BLIHJZ.js';
|
|
30
|
+
import { COMMAND_LOST_REASON, takeAgentCredentials, heldAgentCredential, CONTAINER_STOPPED_REASON, currentAgentCredential, fdName } from './chunk-DDOD4YOQ.js';
|
|
31
|
+
import { jobCommandEnv, runnerAgents } from './chunk-NDIV6GDC.js';
|
|
32
32
|
import { resolveVersion } from './chunk-RA3O54FC.js';
|
|
33
33
|
import { mkdirSync, existsSync, chmodSync, writeFileSync, renameSync, statSync, readdirSync, readFileSync, rmSync, closeSync } from 'fs';
|
|
34
34
|
import { join, dirname } from 'path';
|
|
@@ -2205,7 +2205,7 @@ var CLAIM_REFUSAL_CODES = new Set(
|
|
|
2205
2205
|
"pull_request_from_fork pull_request_on_default_branch pull_request_ambiguous pull_request_repository_not_connected repository_not_reachable branch_claimed_elsewhere".split(" ")
|
|
2206
2206
|
);
|
|
2207
2207
|
async function tryClaimAndStart(state, item, queue) {
|
|
2208
|
-
const { postJson: postJson2 } = await import('./work-cmd-
|
|
2208
|
+
const { postJson: postJson2 } = await import('./work-cmd-L23VUS4H.js');
|
|
2209
2209
|
const log = logOf(state);
|
|
2210
2210
|
const hostKey = await loadHostKey(state.config.configPath);
|
|
2211
2211
|
const claim = await retrySend(
|
|
@@ -2774,7 +2774,7 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2774
2774
|
await endJob(state, active, "failed", { stage: "command" });
|
|
2775
2775
|
return;
|
|
2776
2776
|
}
|
|
2777
|
-
const
|
|
2777
|
+
const commandEnv = jobCommandEnv(await prepareSession(state, active, item, queue, tag), state.deps.agents);
|
|
2778
2778
|
job = active.job;
|
|
2779
2779
|
let running;
|
|
2780
2780
|
try {
|
|
@@ -2785,14 +2785,14 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2785
2785
|
job.microvm.commandDir = MICROVM_COMMAND_DIR;
|
|
2786
2786
|
job.microvm.commandLogBase = commandLogOffset(dirPath, 0);
|
|
2787
2787
|
writeJobFile(jobFilePath, job);
|
|
2788
|
-
await startMicroVmCommand({ job, jobDir: dirPath, cmdline, runtime, config: state.config, extraEnv:
|
|
2788
|
+
await startMicroVmCommand({ job, jobDir: dirPath, cmdline, runtime, config: state.config, extraEnv: commandEnv });
|
|
2789
2789
|
} else {
|
|
2790
|
-
const composed = microVmCommandLine({ job, jobDir: dirPath, cmdline, runtime, config: state.config, cli: join(runtime.cliBuild().distDir, "index.js"), extraEnv:
|
|
2790
|
+
const composed = microVmCommandLine({ job, jobDir: dirPath, cmdline, runtime, config: state.config, cli: join(runtime.cliBuild().distDir, "index.js"), extraEnv: commandEnv });
|
|
2791
2791
|
running = runCommand(composed.line, { ...composed.env, OUTERLAYER_JOB_DIR: dirPath }, dirPath, join(dirPath, "command.log"), state.deps.spawnFn);
|
|
2792
2792
|
}
|
|
2793
2793
|
} else if (job.container !== void 0) {
|
|
2794
2794
|
const runtime = runtimeOf(state);
|
|
2795
|
-
const exec = containerCommandExec({ job, cmdline, runtime, config: state.config, extraEnv:
|
|
2795
|
+
const exec = containerCommandExec({ job, cmdline, runtime, config: state.config, extraEnv: commandEnv });
|
|
2796
2796
|
job.container.tracking = "container";
|
|
2797
2797
|
job.container.commandLogBase = commandLogOffset(dirPath, 0);
|
|
2798
2798
|
writeJobFile(jobFilePath, job);
|
|
@@ -2803,8 +2803,9 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2803
2803
|
}
|
|
2804
2804
|
} else {
|
|
2805
2805
|
const build = job.build;
|
|
2806
|
-
const
|
|
2807
|
-
|
|
2806
|
+
const hostEnv = hostCommandEnvironment(jobEnv(claimCalls(state.config, active.job), item.number, itemKey, dirPath, process.env, branch, identity?.author, spoolHomeFor(state.config, active.job)), build, state.config, identity?.hooksPath, noteOnce);
|
|
2807
|
+
const agentEnv = { ...commandEnv, ...hostEnv };
|
|
2808
|
+
running = build.exec === void 0 ? runCommand(cmdline, agentEnv, workdir, join(dirPath, "command.log"), state.deps.spawnFn) : runCommand(execCommandLine(build.exec, workdir, cmdline), agentEnv, dirPath, join(dirPath, "command.log"), state.deps.spawnFn);
|
|
2808
2809
|
}
|
|
2809
2810
|
} catch (err) {
|
|
2810
2811
|
log.error(`${tag} command could not start: ${describeCallFailure(err)} \xB7 ending job as failed`);
|
|
@@ -3558,7 +3559,7 @@ async function startRunner(configPath, deps, startup) {
|
|
|
3558
3559
|
check: update.check ? () => update.check(configPath) : async () => {
|
|
3559
3560
|
const held = runnerAgents(deps.agents).flatMap((agent) => heldAgentCredential(agent.descriptor.id) ?? []);
|
|
3560
3561
|
const env = { ...process.env, ...Object.fromEntries(held.map((credential) => [credential.variable, credential.value])) };
|
|
3561
|
-
return (await import('./check-
|
|
3562
|
+
return (await import('./check-27MDV3T5.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
|
|
3562
3563
|
},
|
|
3563
3564
|
now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
|
|
3564
3565
|
log
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { withInjectedPrograms } from './chunk-
|
|
4
|
-
import { sharedSkillNames } from './chunk-
|
|
3
|
+
import { withInjectedPrograms } from './chunk-T3MVV6LG.js';
|
|
4
|
+
import { sharedSkillNames } from './chunk-BQUI64BU.js';
|
|
5
5
|
import { GOVERNANCE_VARIABLE, versionAtLeast, CONTROL_PLANE_DIR_VARIABLE } from './chunk-OV4XTV5M.js';
|
|
6
6
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
7
|
-
import { setupMachineSkills } from './chunk-
|
|
8
|
-
import { defaultAgents, agentById, legacyAgent } from './chunk-
|
|
9
|
-
import './chunk-
|
|
7
|
+
import { setupMachineSkills } from './chunk-RYSGOWHG.js';
|
|
8
|
+
import { defaultAgents, agentById, legacyAgent } from './chunk-E6ESLX5E.js';
|
|
9
|
+
import './chunk-WWTZLRPH.js';
|
|
10
10
|
import { LEGACY_AGENT } from './chunk-QJKW4MKH.js';
|
|
11
11
|
import './chunk-CDDED64E.js';
|
|
12
12
|
import './chunk-RA3O54FC.js';
|
|
@@ -325,7 +325,7 @@ async function runAgentLauncher(agentId, args, deps = {}) {
|
|
|
325
325
|
return 1;
|
|
326
326
|
}
|
|
327
327
|
} else {
|
|
328
|
-
const { resolveLaunchPlane } = await import('./control-plane-launch-
|
|
328
|
+
const { resolveLaunchPlane } = await import('./control-plane-launch-KIJABWN4.js');
|
|
329
329
|
const plane = env[GOVERNANCE_VARIABLE] === "self" ? { kind: "none" } : await resolveLaunchPlane({ cwd, env, home, fetchImpl: deps.fetchImpl, stderr });
|
|
330
330
|
if (plane.kind === "none") {
|
|
331
331
|
const own2 = ownSkillsDirFor(prefix, cwd, home, /* @__PURE__ */ new Set(), stderr);
|