@outerlayer/cli 0.36.0-next.20261030225631 → 0.36.0-next.20261031112440
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -14
- package/dist/{agent-setup-RZE6O737.js → agent-setup-UYTS2PHZ.js} +11 -10
- package/dist/{artifact-link-cmd-DLKYKNWF.js → artifact-link-cmd-W7LRR76D.js} +2 -2
- package/dist/{build-GVNOXEDV.js → build-KM6UILOZ.js} +4 -4
- package/dist/{build-disk-H5VDB4G2.js → build-disk-GCEB5EJC.js} +4 -4
- package/dist/build-info.json +1 -1
- package/dist/{builder-QW6N3XBA.js → builder-NRPJGNXU.js} +3 -3
- package/dist/{caller-TUO3VAKG.js → caller-XHNAY4E2.js} +6 -6
- package/dist/{check-LUDLYHUR.js → check-MENIW2MN.js} +35 -34
- package/dist/{chunk-ZFGGCEH2.js → chunk-25GQP6NR.js} +17 -17
- package/dist/{chunk-QLWEXEEA.js → chunk-34YFGWHR.js} +1 -1
- package/dist/{chunk-MJEUD4PD.js → chunk-3GFZSLSP.js} +4 -4
- package/dist/{chunk-YQDXFFOK.js → chunk-3PQTOKML.js} +1 -1
- package/dist/{chunk-HSSECQOA.js → chunk-3QLHEGXK.js} +2 -2
- package/dist/{chunk-OUMMLC45.js → chunk-3SQZ5LIK.js} +2 -2
- package/dist/{chunk-RUML4JVG.js → chunk-3YRJUX6J.js} +1 -1
- package/dist/{chunk-H5XPKNQZ.js → chunk-4AMSCAHT.js} +5 -5
- package/dist/{chunk-OJ2KWQPQ.js → chunk-4SFHEARD.js} +1 -1
- package/dist/{chunk-MVI3J4FN.js → chunk-5AJZGYWC.js} +4 -4
- package/dist/{chunk-D4BIUQPA.js → chunk-5H57X7YC.js} +1 -1
- package/dist/{chunk-OR2NXZ5Y.js → chunk-5UBNSGK3.js} +3 -3
- package/dist/{chunk-7ABJKQAQ.js → chunk-6IJZL7X2.js} +2 -2
- package/dist/{chunk-K6KO7TBK.js → chunk-6T2JWCSZ.js} +12 -12
- package/dist/{chunk-7GX4X25F.js → chunk-7O7LJWQO.js} +1 -1
- package/dist/{chunk-TGVIFTKI.js → chunk-AVJWMOEY.js} +1 -1
- package/dist/{chunk-6HRYB7M6.js → chunk-BFF6AJXM.js} +8 -8
- package/dist/{chunk-A2QQGMQ7.js → chunk-C4YULCXX.js} +7 -7
- package/dist/chunk-F3ZMVUAS.js +40 -0
- package/dist/{chunk-Y6FSSKLW.js → chunk-FRDYAKH3.js} +2 -2
- package/dist/{chunk-5TJQBHKO.js → chunk-GDIVOYDA.js} +4 -4
- package/dist/{chunk-O3OREOCP.js → chunk-GDMAN42R.js} +2 -2
- package/dist/{chunk-JII4O3EZ.js → chunk-GU25RNKD.js} +3 -3
- package/dist/{chunk-6KLNELLP.js → chunk-IVY3PD7P.js} +3 -3
- package/dist/{chunk-AILO7SNG.js → chunk-JFMSFHER.js} +13 -211
- package/dist/{chunk-FCJWPFDS.js → chunk-JPROSTGX.js} +4 -4
- package/dist/{chunk-ZJX3KECE.js → chunk-K2YG2HZN.js} +14 -14
- package/dist/{chunk-4A7GNO4U.js → chunk-LESWXCKZ.js} +1 -1
- package/dist/{chunk-YZXI37NW.js → chunk-LHFG5YUG.js} +2 -2
- package/dist/{chunk-WNM5GXJ3.js → chunk-LRCGXRQI.js} +2 -2
- package/dist/{chunk-KSMN2FUF.js → chunk-LZ7PAU55.js} +6 -2
- package/dist/{chunk-VOURWC2H.js → chunk-MMDGO77D.js} +1 -1
- package/dist/{chunk-BIAXDR3K.js → chunk-MMXPNEEQ.js} +8 -8
- package/dist/{chunk-BR2WJ6BX.js → chunk-MVSC7GCE.js} +2 -2
- package/dist/{chunk-7K7TGHDF.js → chunk-MXWPLGO6.js} +74 -707
- package/dist/{chunk-EA57H6AT.js → chunk-OLENS2DD.js} +1 -1
- package/dist/{chunk-VVUMAXFY.js → chunk-OPF6OJAT.js} +4 -4
- package/dist/{chunk-O6NQYFPH.js → chunk-PDQWXH3F.js} +5 -5
- package/dist/{chunk-QH6RZLDV.js → chunk-PJZKKFQO.js} +1 -1
- package/dist/{chunk-GGNG6CVE.js → chunk-PN6TNCQI.js} +14 -7
- package/dist/{chunk-YTNZ237E.js → chunk-RGH5GYU2.js} +7 -7
- package/dist/{chunk-UCRCIRQQ.js → chunk-S6OD32NC.js} +5 -5
- package/dist/{chunk-D3H37WUD.js → chunk-T3AJOPUR.js} +2 -2
- package/dist/{chunk-UHD5ZR46.js → chunk-U553JKMO.js} +4 -4
- package/dist/{chunk-IZVBCDSH.js → chunk-VG2NIWR4.js} +4 -4
- package/dist/{chunk-ZGFUZPJP.js → chunk-VJYNMGCE.js} +2 -2
- package/dist/{chunk-QZSA5R3L.js → chunk-VUG4IZ7H.js} +1 -1
- package/dist/{chunk-UI2VOW26.js → chunk-XTVVKNRP.js} +5 -8
- package/dist/{claude-launcher-FK5ZQWXC.js → claude-launcher-YV3TDXBU.js} +5 -5
- package/dist/{cli-NPNTAB2B.js → cli-TAFO3WOQ.js} +115 -117
- package/dist/{command-XLXJGPRZ.js → command-TRSFSBT5.js} +31 -30
- package/dist/{config-NVGVPL3L.js → config-YCQV3OQK.js} +5 -5
- package/dist/{connect-cmd-KO2TIY6J.js → connect-cmd-IRJ3MBPY.js} +8 -8
- package/dist/{container-start-ZCG3EHAO.js → container-start-UY2YVY3L.js} +32 -31
- package/dist/{context-cleanup-2MTGLUYS.js → context-cleanup-TPHCVVFV.js} +3 -3
- package/dist/{context-show-cmd-XLER7QAI.js → context-show-cmd-YQEQ5B34.js} +9 -9
- package/dist/{control-plane-launch-RUJOCYEI.js → control-plane-launch-UWFQWMWB.js} +11 -6
- package/dist/{demo-voice-cmd-VIMMLCLO.js → demo-voice-cmd-QAH7KPVO.js} +14 -14
- package/dist/dist-2SPMAD7Z.js +7 -0
- package/dist/{docker-3AZ3ZFLA.js → docker-2247NBIK.js} +3 -3
- package/dist/{doctor-TIBTSPML.js → doctor-VVFPHFS4.js} +32 -31
- package/dist/{emit-artifact-cmd-PLTXEBPU.js → emit-artifact-cmd-3YHOU4TI.js} +13 -13
- package/dist/{emit-cmd-6NZOT5DS.js → emit-cmd-HNXRGC5Z.js} +7 -6
- package/dist/{emit-criteria-cmd-BNXWF46E.js → emit-criteria-cmd-NN52H53B.js} +10 -10
- package/dist/{emit-demo-cmd-C6IQPCW7.js → emit-demo-cmd-V7CP333I.js} +14 -14
- package/dist/{emit-finding-cmd-5HZE7W6C.js → emit-finding-cmd-J5UZGNP4.js} +10 -10
- package/dist/{emit-result-cmd-WCNYSHDK.js → emit-result-cmd-IWMACBFI.js} +12 -12
- package/dist/{emit-step-cmd-HSKB3SNR.js → emit-step-cmd-SRWFWEU7.js} +10 -10
- package/dist/{find-unit-CNYGB5AN.js → find-unit-FEYD4IHC.js} +7 -7
- package/dist/{findings-cmd-2OQMIVHA.js → findings-cmd-BWTLCXDR.js} +10 -10
- package/dist/{fleet-readiness-PCQSCHQ5.js → fleet-readiness-FAKMWCJV.js} +8 -8
- package/dist/{governing-source-7XCL3AYM.js → governing-source-6ANJ4HQI.js} +14 -13
- package/dist/{hook-fast-EMZVAUJ5.js → hook-fast-3HPWMSFB.js} +1 -1
- package/dist/{host-checks-ULFOOLWB.js → host-checks-TX22YEFD.js} +30 -29
- package/dist/index.js +4 -4
- package/dist/{init-ZZJ57EDL.js → init-36AY3ZQZ.js} +30 -29
- package/dist/{init-JQTQWAM7.js → init-IYL3YXEM.js} +30 -29
- package/dist/{init-cmd-UKT7YW5U.js → init-cmd-JK2OGQU5.js} +18 -18
- package/dist/{init-update-2SN2GCTM.js → init-update-4IQPGOA6.js} +24 -31
- package/dist/{layout-YJ2RD5H2.js → layout-TLUOMM6F.js} +4 -4
- package/dist/{login-browser-TWUHD2DS.js → login-browser-ODTJEGDN.js} +2 -2
- package/dist/{loop-M6SSY52X.js → loop-U72FDFQR.js} +34 -33
- package/dist/{machine-7Z2IVG7X.js → machine-S2TYJJPP.js} +30 -29
- package/dist/{machine-skills-FWIZV5HO.js → machine-skills-VRUJVBQV.js} +4 -4
- package/dist/{runner-env-IDGTVTYW.js → runner-env-OPRWKIKI.js} +7 -7
- package/dist/{runner-identity-RJYVFQ5K.js → runner-identity-OY75LG6G.js} +3 -3
- package/dist/{runner-key-ESSC2IKR.js → runner-key-6WN67PRU.js} +30 -29
- package/dist/{session-sender-NCSDRNCM.js → session-sender-EINASB3R.js} +13 -13
- package/dist/{spec-cmd-OYQEUAMI.js → spec-cmd-253AGRFF.js} +11 -11
- package/dist/{starter-pack-6FOYP6DY.js → starter-pack-7QNUT74O.js} +5 -5
- package/dist/{status-ECHO7NRV.js → status-WCQG6SX4.js} +30 -29
- package/dist/{sync-cmd-7LESBUTT.js → sync-cmd-Z6PU33GC.js} +12 -12
- package/dist/{update-steps-JH7PPGPD.js → update-steps-BOKCWGQ6.js} +31 -30
- package/dist/{watch-RSUPBIJS.js → watch-XNBXSIEI.js} +12 -12
- package/dist/{work-claim-cmd-HX7DGFY3.js → work-claim-cmd-2A6D5EYO.js} +15 -15
- package/dist/{work-cmd-IEC6XKC6.js → work-cmd-JZUBXXJN.js} +10 -10
- package/dist/{work-comment-cmd-X65LS27O.js → work-comment-cmd-L4R6ZXLO.js} +12 -12
- package/dist/{work-demo-cmd-D7WGXJOC.js → work-demo-cmd-YNPN2PHQ.js} +10 -10
- package/dist/{work-logs-cmd-FQH2UVMI.js → work-logs-cmd-CSQJB5MD.js} +10 -10
- package/dist/{work-open-pr-cmd-EFAFERSF.js → work-open-pr-cmd-Y7YNI2PF.js} +11 -11
- package/dist/{work-pr-cmd-E55GPZKO.js → work-pr-cmd-QGAOPNLV.js} +10 -10
- package/dist/{work-proofs-cmd-V2O2DTAQ.js → work-proofs-cmd-RPVVD2SC.js} +12 -12
- package/dist/{work-proofs-record-XJFVH7B4.js → work-proofs-record-ULCY5QEP.js} +18 -18
- package/dist/{work-stop-cmd-ANPTSTYS.js → work-stop-cmd-LF4OTNPL.js} +10 -10
- package/package.json +1 -1
- package/dist/dist-4Q4Y6YJL.js +0 -7
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { parseSize, BUILD_LABEL, RUNNER_LABEL, runnerLabelValue } from './chunk-
|
|
3
|
+
import { parseSize, BUILD_LABEL, RUNNER_LABEL, runnerLabelValue } from './chunk-PJZKKFQO.js';
|
|
4
4
|
import { buildsDir, storeScopes, rootfsDir, orgStoreIn, runnerDir, imagesDir, builderCacheDiskPath } from './chunk-WT7J2627.js';
|
|
5
5
|
import { spawnSync } from 'child_process';
|
|
6
6
|
import { statfsSync, statSync, existsSync, readdirSync } from 'fs';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { criteriaOf, loadCitationFinder, hostItemsOf, criterionInputs, NO_CITING_TEST_REASON, NO_TEST_FILES_REASON, NO_VERDICT_REASON, isFoundInReason, uncitedIds, planCriteria, pickSearchable, IdScan, testFileMatcher, foundInReason, MAX_TEST_FILE_BYTES, MAX_TEST_FILES, groupBySize } from './chunk-
|
|
4
|
-
import { WorkCommandError, resolveCredentials, getJson } from './chunk-
|
|
3
|
+
import { criteriaOf, loadCitationFinder, hostItemsOf, criterionInputs, NO_CITING_TEST_REASON, NO_TEST_FILES_REASON, NO_VERDICT_REASON, isFoundInReason, uncitedIds, planCriteria, pickSearchable, IdScan, testFileMatcher, foundInReason, MAX_TEST_FILE_BYTES, MAX_TEST_FILES, groupBySize } from './chunk-GDIVOYDA.js';
|
|
4
|
+
import { WorkCommandError, resolveCredentials, getJson } from './chunk-S6OD32NC.js';
|
|
5
5
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
6
|
-
import { sanitizeTerminal } from './chunk-
|
|
6
|
+
import { sanitizeTerminal } from './chunk-3PQTOKML.js';
|
|
7
7
|
import { defaultFetch } from './chunk-YQHEJ5SV.js';
|
|
8
|
-
import { resolveRepoIdentity } from './chunk-
|
|
8
|
+
import { resolveRepoIdentity } from './chunk-MXWPLGO6.js';
|
|
9
9
|
import { parseWorkItemEnv } from './chunk-5WYT3PPE.js';
|
|
10
10
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
11
11
|
import { readDeliveryRecord } from './chunk-YQR6E6OV.js';
|
|
12
|
-
import { inferArtifactKind, mediaTypeForArtifactPath, WORK_ITEM_COMMENT_MAX_BODY_LENGTH } from './chunk-
|
|
12
|
+
import { inferArtifactKind, mediaTypeForArtifactPath, WORK_ITEM_COMMENT_MAX_BODY_LENGTH } from './chunk-VUG4IZ7H.js';
|
|
13
13
|
import { createHash } from 'crypto';
|
|
14
14
|
import { spawnSync } from 'child_process';
|
|
15
15
|
import { existsSync, statSync, readFileSync } from 'fs';
|
|
@@ -217,14 +217,14 @@ function governingDir(cwd) {
|
|
|
217
217
|
async function testProofMode(cwd) {
|
|
218
218
|
const dir = governingDir(cwd);
|
|
219
219
|
if (dir === void 0) return "any";
|
|
220
|
-
const { testProofIn } = await import('./host-checks-
|
|
220
|
+
const { testProofIn } = await import('./host-checks-TX22YEFD.js');
|
|
221
221
|
return testProofIn(dir);
|
|
222
222
|
}
|
|
223
223
|
async function judgeCheckName(cwd) {
|
|
224
224
|
const dir = governingDir(cwd);
|
|
225
225
|
if (dir === void 0) return {};
|
|
226
226
|
if (!existsSync(dir)) return { note: `the governed context at ${dir} is not readable` };
|
|
227
|
-
const { checksIn, isJudgeCheck } = await import('./host-checks-
|
|
227
|
+
const { checksIn, isJudgeCheck } = await import('./host-checks-TX22YEFD.js');
|
|
228
228
|
const quiet = { line: () => void 0, error: () => void 0 };
|
|
229
229
|
const check = checksIn(dir, quiet, "").checks.find((c) => isJudgeCheck(c) && c.judge.subjects === "criteria");
|
|
230
230
|
return check === void 0 ? {} : { name: check.name };
|
|
@@ -369,7 +369,7 @@ async function runWorkProofs(opts) {
|
|
|
369
369
|
async function runWorkProofsCommand(opts) {
|
|
370
370
|
try {
|
|
371
371
|
if (opts.record) {
|
|
372
|
-
const { runWorkProofsRecord } = await import('./work-proofs-record-
|
|
372
|
+
const { runWorkProofsRecord } = await import('./work-proofs-record-ULCY5QEP.js');
|
|
373
373
|
const result2 = await runWorkProofsRecord(opts);
|
|
374
374
|
process.exitCode = result2.exitCode;
|
|
375
375
|
return;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { sanitizeTerminal } from './chunk-
|
|
4
|
-
import { isAgentsMdLayout } from './chunk-
|
|
3
|
+
import { sanitizeTerminal } from './chunk-3PQTOKML.js';
|
|
4
|
+
import { isAgentsMdLayout } from './chunk-LRCGXRQI.js';
|
|
5
5
|
import { resolveGatewayCredentials, defaultFetch } from './chunk-YQHEJ5SV.js';
|
|
6
6
|
import { versionAtLeast } from './chunk-HCVLP7XA.js';
|
|
7
7
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
8
|
-
import { machineSkillsState, staleClaudeSkills } from './chunk-
|
|
9
|
-
import { AGENTS_SKILLS_BASE, skillDir, namesCore, MACHINE_SKILL_PATH, isMaintainedCopy, loadTemplateFiles } from './chunk-
|
|
8
|
+
import { machineSkillsState, staleClaudeSkills } from './chunk-OLENS2DD.js';
|
|
9
|
+
import { AGENTS_SKILLS_BASE, skillDir, namesCore, MACHINE_SKILL_PATH, isMaintainedCopy, loadTemplateFiles } from './chunk-7O7LJWQO.js';
|
|
10
10
|
import { MAINTAINED_SKILLS } from './chunk-CDDED64E.js';
|
|
11
11
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
12
|
-
import { hasSymlinkComponent } from './chunk-
|
|
13
|
-
import { emitTree, ALL_TARGET_IDS, classifyTree, splitRawFile } from './chunk-
|
|
12
|
+
import { hasSymlinkComponent } from './chunk-4SFHEARD.js';
|
|
13
|
+
import { emitTree, ALL_TARGET_IDS, classifyTree, splitRawFile } from './chunk-JFMSFHER.js';
|
|
14
14
|
import { execFileSync } from 'child_process';
|
|
15
15
|
import { existsSync, readFileSync, writeFileSync, realpathSync, readdirSync } from 'fs';
|
|
16
16
|
import { join, dirname, posix, basename, isAbsolute, relative } from 'path';
|
|
@@ -99,7 +99,7 @@ function skillsFolders() {
|
|
|
99
99
|
assetPaths: [],
|
|
100
100
|
targets: [...ALL_TARGET_IDS]
|
|
101
101
|
});
|
|
102
|
-
return [
|
|
102
|
+
return [.../* @__PURE__ */ new Set([AGENTS_SKILLS_BASE, ...compiled.files.map((file) => dirname(dirname(file.path)))])];
|
|
103
103
|
}
|
|
104
104
|
function shortBuild() {
|
|
105
105
|
const file = loadTemplateFiles().find((f) => f.path === `${skillDir("build")}/SKILL.md`);
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire } from 'node:module';
|
|
3
|
+
import { parseOuterlayerConfig } from './chunk-JFMSFHER.js';
|
|
4
|
+
import { readFileSync } from 'fs';
|
|
5
|
+
import { join } from 'path';
|
|
6
|
+
|
|
7
|
+
createRequire(import.meta.url);
|
|
8
|
+
function invalidConfigMessage(errors) {
|
|
9
|
+
return `invalid .outerlayer/config.json \u2014 ${errors.map((e) => `${e.path}: ${e.message}`).join("; ")}`;
|
|
10
|
+
}
|
|
11
|
+
function removedTargetError(configText) {
|
|
12
|
+
const parsed = parseOuterlayerConfig(configText);
|
|
13
|
+
if (parsed.ok) return void 0;
|
|
14
|
+
const removed = parsed.errors.filter((e) => e.code === "removed_target");
|
|
15
|
+
return removed.length === 0 ? void 0 : invalidConfigMessage(removed);
|
|
16
|
+
}
|
|
17
|
+
function removedTargetErrorIn(root) {
|
|
18
|
+
let text;
|
|
19
|
+
try {
|
|
20
|
+
text = readFileSync(join(root, ".outerlayer", "config.json"), "utf8");
|
|
21
|
+
} catch {
|
|
22
|
+
return void 0;
|
|
23
|
+
}
|
|
24
|
+
return removedTargetError(text);
|
|
25
|
+
}
|
|
26
|
+
function launchRefusal(repository, error) {
|
|
27
|
+
return `outerlayer claude: the control plane ${repository} has an ${error}
|
|
28
|
+
`;
|
|
29
|
+
}
|
|
30
|
+
function buildRefusalReason(repository, error) {
|
|
31
|
+
return `context_unavailable: the control plane ${repository} has an ${error}`;
|
|
32
|
+
}
|
|
33
|
+
var RemovedTargetError = class extends Error {
|
|
34
|
+
constructor(message) {
|
|
35
|
+
super(message);
|
|
36
|
+
this.name = "RemovedTargetError";
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export { RemovedTargetError, buildRefusalReason, invalidConfigMessage, launchRefusal, removedTargetError, removedTargetErrorIn };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { helperSocketPath } from './chunk-
|
|
4
|
-
import { UNIT_MARKER } from './chunk-
|
|
3
|
+
import { helperSocketPath } from './chunk-25GQP6NR.js';
|
|
4
|
+
import { UNIT_MARKER } from './chunk-MVSC7GCE.js';
|
|
5
5
|
import { runnerDir } from './chunk-WT7J2627.js';
|
|
6
6
|
import { createHash } from 'crypto';
|
|
7
7
|
import { join } from 'path';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { sanitizeTerminal } from './chunk-
|
|
4
|
-
import { resolvePackRoot } from './chunk-
|
|
5
|
-
import { parseProofsConfig } from './chunk-
|
|
6
|
-
import { CHECK_ITEM_REASON_MAX_LENGTH, CheckItemsSchema } from './chunk-
|
|
3
|
+
import { sanitizeTerminal } from './chunk-3PQTOKML.js';
|
|
4
|
+
import { resolvePackRoot } from './chunk-7O7LJWQO.js';
|
|
5
|
+
import { parseProofsConfig } from './chunk-JFMSFHER.js';
|
|
6
|
+
import { CHECK_ITEM_REASON_MAX_LENGTH, CheckItemsSchema } from './chunk-VUG4IZ7H.js';
|
|
7
7
|
import { createHash } from 'crypto';
|
|
8
8
|
import { join } from 'path';
|
|
9
9
|
import { pathToFileURL } from 'url';
|
|
@@ -808,11 +808,11 @@ async function missingControlPlane(cwd, sessionId, home, env) {
|
|
|
808
808
|
const dirs = findGitDirs(cwd);
|
|
809
809
|
if (dirs === void 0) return void 0;
|
|
810
810
|
if (existsSync(join(dirs.gitCommonDir, "outerlayer", "materialized.json")) || hasExcludeBlock(dirs.gitCommonDir)) {
|
|
811
|
-
const { cleanupEarlierCopies } = await import('./context-cleanup-
|
|
811
|
+
const { cleanupEarlierCopies } = await import('./context-cleanup-TPHCVVFV.js');
|
|
812
812
|
cleanupEarlierCopies(dirs);
|
|
813
813
|
}
|
|
814
814
|
if (!contextPossiblyGoverned(cwd, home)) return void 0;
|
|
815
|
-
const { governanceOf } = await import('./control-plane-launch-
|
|
815
|
+
const { governanceOf } = await import('./control-plane-launch-UWFQWMWB.js');
|
|
816
816
|
if (await governanceOf({ cwd, env, home }) !== "governed") return void 0;
|
|
817
817
|
recordMissingContext(dirs, sessionId, home);
|
|
818
818
|
const launcher = `${cliInvocation()} claude`;
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { launchRefusalForSession } from './chunk-AAGU5FJF.js';
|
|
4
4
|
import { detectActiveSession, transcriptPathForSession } from './chunk-IP7BIBXJ.js';
|
|
5
|
-
import { autoConnect } from './chunk-
|
|
5
|
+
import { autoConnect } from './chunk-LHFG5YUG.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
7
|
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-YQHEJ5SV.js';
|
|
8
8
|
import { readLatestProvenanceForSession } from './chunk-545P7JY7.js';
|
|
9
|
-
import { resolveRepoIdentity, defaultProjectsDir, findTranscripts, sessionIdFromPath, scrubText } from './chunk-
|
|
9
|
+
import { resolveRepoIdentity, defaultProjectsDir, findTranscripts, sessionIdFromPath, scrubText } from './chunk-MXWPLGO6.js';
|
|
10
10
|
import { launchedItemForSession } from './chunk-5WYT3PPE.js';
|
|
11
11
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
12
12
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
13
|
-
import { FindingBatchSchema, FindingsResponseSchema, SAME_PROBLEM_RULES } from './chunk-
|
|
13
|
+
import { FindingBatchSchema, FindingsResponseSchema, SAME_PROBLEM_RULES } from './chunk-VUG4IZ7H.js';
|
|
14
14
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
15
15
|
import { readFileSync, existsSync } from 'fs';
|
|
16
16
|
import { join, dirname, basename } from 'path';
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { launchRefusalForSession } from './chunk-AAGU5FJF.js';
|
|
4
4
|
import { detectActiveSession } from './chunk-IP7BIBXJ.js';
|
|
5
|
-
import { autoConnect } from './chunk-
|
|
5
|
+
import { autoConnect } from './chunk-LHFG5YUG.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
7
|
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-YQHEJ5SV.js';
|
|
8
|
-
import { resolveRepoIdentity } from './chunk-
|
|
8
|
+
import { resolveRepoIdentity } from './chunk-MXWPLGO6.js';
|
|
9
9
|
import { launchedItemForSession } from './chunk-5WYT3PPE.js';
|
|
10
10
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
11
|
-
import { CriteriaListSchema } from './chunk-
|
|
11
|
+
import { CriteriaListSchema } from './chunk-VUG4IZ7H.js';
|
|
12
12
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
13
13
|
import { readFileSync } from 'fs';
|
|
14
14
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RESERVED_EMIT_NAMES, ARTIFACT_KINDS, ArtifactCriterionIdSchema } from './chunk-
|
|
3
|
+
import { RESERVED_EMIT_NAMES, ARTIFACT_KINDS, ArtifactCriterionIdSchema } from './chunk-VUG4IZ7H.js';
|
|
4
4
|
import { __commonJS, __require, __toESM } from './chunk-Z5GEFMRW.js';
|
|
5
5
|
|
|
6
6
|
createRequire(import.meta.url);
|
|
@@ -7496,29 +7496,6 @@ function splitRawFile(raw) {
|
|
|
7496
7496
|
lineEnding
|
|
7497
7497
|
};
|
|
7498
7498
|
}
|
|
7499
|
-
function parseContextFile(raw) {
|
|
7500
|
-
const { frontmatterInner, body } = splitRawFile(raw);
|
|
7501
|
-
if (frontmatterInner === null) {
|
|
7502
|
-
return { frontmatter: null, body, raw };
|
|
7503
|
-
}
|
|
7504
|
-
const yamlText = frontmatterInner.replace(/\r\n/g, "\n");
|
|
7505
|
-
if (yamlText.trim().length === 0) {
|
|
7506
|
-
return { frontmatter: {}, body, raw };
|
|
7507
|
-
}
|
|
7508
|
-
try {
|
|
7509
|
-
const doc = (0, import_yaml.parseDocument)(yamlText);
|
|
7510
|
-
if (doc.errors.length > 0) {
|
|
7511
|
-
return { frontmatter: null, body, raw };
|
|
7512
|
-
}
|
|
7513
|
-
const value = doc.toJS();
|
|
7514
|
-
if (value !== null && typeof value === "object" && !Array.isArray(value)) {
|
|
7515
|
-
return { frontmatter: value, body, raw };
|
|
7516
|
-
}
|
|
7517
|
-
return { frontmatter: null, body, raw };
|
|
7518
|
-
} catch {
|
|
7519
|
-
return { frontmatter: null, body, raw };
|
|
7520
|
-
}
|
|
7521
|
-
}
|
|
7522
7499
|
var HEADER_OPEN = "<!-- generated by OuterLayer from ";
|
|
7523
7500
|
var HEADER_CLOSE = " \u2014 edit the source, not this file -->\n";
|
|
7524
7501
|
function generatedHeader(sourcePath) {
|
|
@@ -7651,188 +7628,8 @@ function buildClaudeCode(input) {
|
|
|
7651
7628
|
}
|
|
7652
7629
|
return { files, copies, warnings };
|
|
7653
7630
|
}
|
|
7654
|
-
var
|
|
7655
|
-
|
|
7656
|
-
const presentKinds = new Set(input.entries.map((e) => e.kind === "skill-reference" ? "skill" : e.kind));
|
|
7657
|
-
const warnings = [];
|
|
7658
|
-
for (const kind of kinds) {
|
|
7659
|
-
if (!presentKinds.has(kind)) continue;
|
|
7660
|
-
warnings.push({
|
|
7661
|
-
path: `${targetId}:${kind}`,
|
|
7662
|
-
code: "unsupported_on_target",
|
|
7663
|
-
message: `"${kind}" content is not emitted for ${targetId} (${note})`
|
|
7664
|
-
});
|
|
7665
|
-
}
|
|
7666
|
-
return warnings;
|
|
7667
|
-
}
|
|
7668
|
-
function buildAgentsMdTier(targetId, input) {
|
|
7669
|
-
const files = [];
|
|
7670
|
-
const warnings = unsupportedKindWarnings(targetId, input, AGENTS_MD_TIER_KINDS, "AGENTS.md-only tier in v1");
|
|
7671
|
-
return { files, copies: [], warnings };
|
|
7672
|
-
}
|
|
7673
|
-
var AGENTS_SKILLS_DIR = ".agents/skills";
|
|
7674
|
-
function buildAgentsSkills(input) {
|
|
7675
|
-
const files = [];
|
|
7676
|
-
const copies = [];
|
|
7677
|
-
const warnings = [];
|
|
7678
|
-
for (const entry of input.entries) {
|
|
7679
|
-
switch (entry.kind) {
|
|
7680
|
-
case "skill": {
|
|
7681
|
-
const content = contentForEntry(input.contents, entry, warnings);
|
|
7682
|
-
if (content !== void 0) {
|
|
7683
|
-
files.push({
|
|
7684
|
-
path: joinPath(entry.scopePath, AGENTS_SKILLS_DIR, entry.skillName, "SKILL.md"),
|
|
7685
|
-
content: withHeader(entry.path, content)
|
|
7686
|
-
});
|
|
7687
|
-
}
|
|
7688
|
-
break;
|
|
7689
|
-
}
|
|
7690
|
-
case "skill-reference": {
|
|
7691
|
-
const content = contentForEntry(input.contents, entry, warnings);
|
|
7692
|
-
if (content !== void 0) {
|
|
7693
|
-
files.push({
|
|
7694
|
-
path: joinPath(entry.scopePath, AGENTS_SKILLS_DIR, entry.skillName, "references", skillReferenceRelPath(entry)),
|
|
7695
|
-
content: withHeader(entry.path, content)
|
|
7696
|
-
});
|
|
7697
|
-
}
|
|
7698
|
-
break;
|
|
7699
|
-
}
|
|
7700
|
-
}
|
|
7701
|
-
}
|
|
7702
|
-
for (const assetPath of input.assetPaths) {
|
|
7703
|
-
const parsed = parseSkillAssetPath(assetPath);
|
|
7704
|
-
if (!parsed) continue;
|
|
7705
|
-
copies.push({
|
|
7706
|
-
toPath: joinPath(parsed.scopePath, AGENTS_SKILLS_DIR, parsed.skillName, parsed.relPath),
|
|
7707
|
-
fromSourcePath: assetPath
|
|
7708
|
-
});
|
|
7709
|
-
}
|
|
7710
|
-
return { files, copies, warnings };
|
|
7711
|
-
}
|
|
7712
|
-
var TOML_ONLY_KINDS = ["command", "mcp"];
|
|
7713
|
-
function buildCodex(input) {
|
|
7714
|
-
const skills = buildAgentsSkills(input);
|
|
7715
|
-
return {
|
|
7716
|
-
files: skills.files,
|
|
7717
|
-
copies: skills.copies,
|
|
7718
|
-
warnings: [
|
|
7719
|
-
...skills.warnings,
|
|
7720
|
-
...unsupportedKindWarnings("codex", input, TOML_ONLY_KINDS, "lives in Codex TOML config, not implemented")
|
|
7721
|
-
]
|
|
7722
|
-
};
|
|
7723
|
-
}
|
|
7724
|
-
function buildCopilot(input) {
|
|
7725
|
-
return buildAgentsMdTier("copilot", input);
|
|
7726
|
-
}
|
|
7727
|
-
function envRefPattern() {
|
|
7728
|
-
return /\$\{([A-Za-z_][A-Za-z0-9_]*)(:-([^}]*))?\}/g;
|
|
7729
|
-
}
|
|
7730
|
-
function rewriteEnvRefs(value, rewrite) {
|
|
7731
|
-
const pattern = envRefPattern();
|
|
7732
|
-
const warnings = [];
|
|
7733
|
-
const rewritten = value.replace(pattern, (raw, varName, _hasDefault, defaultValue) => {
|
|
7734
|
-
const result = rewrite({ raw, varName, defaultValue: defaultValue != null ? defaultValue : null });
|
|
7735
|
-
if (result.warning) warnings.push(result.warning);
|
|
7736
|
-
return result.text;
|
|
7737
|
-
});
|
|
7738
|
-
return { value: rewritten, warnings };
|
|
7739
|
-
}
|
|
7740
|
-
function cursorEnvRefRewrite(ref) {
|
|
7741
|
-
if (ref.defaultValue !== null) {
|
|
7742
|
-
return {
|
|
7743
|
-
text: `\${env:${ref.varName}}`,
|
|
7744
|
-
warning: `"\${${ref.varName}:-${ref.defaultValue}}" has no Cursor default-value equivalent \u2014 emitted as "\${env:${ref.varName}}", default dropped`
|
|
7745
|
-
};
|
|
7746
|
-
}
|
|
7747
|
-
return { text: `\${env:${ref.varName}}` };
|
|
7748
|
-
}
|
|
7749
|
-
function buildCursor(input) {
|
|
7750
|
-
var _a;
|
|
7751
|
-
const skills = buildAgentsSkills(input);
|
|
7752
|
-
const files = [...skills.files];
|
|
7753
|
-
const copies = [...skills.copies];
|
|
7754
|
-
const warnings = [...skills.warnings];
|
|
7755
|
-
for (const entry of input.entries) {
|
|
7756
|
-
switch (entry.kind) {
|
|
7757
|
-
case "command": {
|
|
7758
|
-
const raw = contentForEntry(input.contents, entry, warnings);
|
|
7759
|
-
if (raw !== void 0) {
|
|
7760
|
-
const parsed = parseContextFile(raw);
|
|
7761
|
-
const description = typeof ((_a = parsed.frontmatter) == null ? void 0 : _a.description) === "string" ? parsed.frontmatter.description : "";
|
|
7762
|
-
files.push({
|
|
7763
|
-
path: joinPath(entry.scopePath, ".cursor/commands", commandRelPath(entry)),
|
|
7764
|
-
content: withHeader(entry.path, `<!-- ${description} -->
|
|
7765
|
-
${parsed.body}`)
|
|
7766
|
-
});
|
|
7767
|
-
}
|
|
7768
|
-
break;
|
|
7769
|
-
}
|
|
7770
|
-
case "mcp": {
|
|
7771
|
-
const raw = contentForEntry(input.contents, entry, warnings);
|
|
7772
|
-
if (raw !== void 0) {
|
|
7773
|
-
const rewritten = rewriteMcpForCursor(raw, entry.path, warnings);
|
|
7774
|
-
if (rewritten !== void 0) {
|
|
7775
|
-
files.push({ path: joinPath(entry.scopePath, ".cursor/mcp.json"), content: rewritten });
|
|
7776
|
-
}
|
|
7777
|
-
}
|
|
7778
|
-
break;
|
|
7779
|
-
}
|
|
7780
|
-
}
|
|
7781
|
-
}
|
|
7782
|
-
return { files, copies, warnings };
|
|
7783
|
-
}
|
|
7784
|
-
function rewriteMcpForCursor(raw, entryPath, warnings) {
|
|
7785
|
-
let parsed;
|
|
7786
|
-
try {
|
|
7787
|
-
parsed = JSON.parse(raw);
|
|
7788
|
-
} catch (err) {
|
|
7789
|
-
warnings.push({
|
|
7790
|
-
path: entryPath,
|
|
7791
|
-
code: "invalid_mcp_json",
|
|
7792
|
-
message: `could not parse mcp.json for Cursor translation: ${err instanceof Error ? err.message : "invalid JSON"}`
|
|
7793
|
-
});
|
|
7794
|
-
return void 0;
|
|
7795
|
-
}
|
|
7796
|
-
if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed)) {
|
|
7797
|
-
warnings.push({ path: entryPath, code: "invalid_mcp_json", message: "mcp.json must be a JSON object" });
|
|
7798
|
-
return void 0;
|
|
7799
|
-
}
|
|
7800
|
-
const mcpServers = parsed.mcpServers;
|
|
7801
|
-
if (typeof mcpServers !== "object" || mcpServers === null || Array.isArray(mcpServers)) {
|
|
7802
|
-
return `${JSON.stringify(parsed, null, 2)}
|
|
7803
|
-
`;
|
|
7804
|
-
}
|
|
7805
|
-
for (const [name, serverRaw] of Object.entries(mcpServers)) {
|
|
7806
|
-
if (typeof serverRaw !== "object" || serverRaw === null || Array.isArray(serverRaw)) continue;
|
|
7807
|
-
const server = serverRaw;
|
|
7808
|
-
for (const field of ["env", "headers"]) {
|
|
7809
|
-
const map = server[field];
|
|
7810
|
-
if (typeof map !== "object" || map === null || Array.isArray(map)) continue;
|
|
7811
|
-
const mapObj = map;
|
|
7812
|
-
for (const [key, value] of Object.entries(mapObj)) {
|
|
7813
|
-
if (typeof value !== "string") continue;
|
|
7814
|
-
const { value: rewritten, warnings: refWarnings } = rewriteEnvRefs(value, cursorEnvRefRewrite);
|
|
7815
|
-
mapObj[key] = rewritten;
|
|
7816
|
-
for (const w of refWarnings) {
|
|
7817
|
-
warnings.push({ path: `mcpServers.${name}.${field}.${key}`, code: "env_ref_no_default", message: w });
|
|
7818
|
-
}
|
|
7819
|
-
}
|
|
7820
|
-
}
|
|
7821
|
-
if (typeof server.url === "string") {
|
|
7822
|
-
const { value: rewritten, warnings: refWarnings } = rewriteEnvRefs(server.url, cursorEnvRefRewrite);
|
|
7823
|
-
server.url = rewritten;
|
|
7824
|
-
for (const w of refWarnings) {
|
|
7825
|
-
warnings.push({ path: `mcpServers.${name}.url`, code: "env_ref_no_default", message: w });
|
|
7826
|
-
}
|
|
7827
|
-
}
|
|
7828
|
-
}
|
|
7829
|
-
return `${JSON.stringify(parsed, null, 2)}
|
|
7830
|
-
`;
|
|
7831
|
-
}
|
|
7832
|
-
function buildFactory(input) {
|
|
7833
|
-
return buildAgentsMdTier("factory", input);
|
|
7834
|
-
}
|
|
7835
|
-
var ALL_TARGET_IDS = ["claude-code", "cursor", "codex", "copilot", "factory"];
|
|
7631
|
+
var ALL_TARGET_IDS = ["claude-code"];
|
|
7632
|
+
var REMOVED_TARGET_IDS = ["cursor", "codex", "copilot", "factory"];
|
|
7836
7633
|
function parseOuterlayerConfig(json) {
|
|
7837
7634
|
let raw;
|
|
7838
7635
|
try {
|
|
@@ -7866,9 +7663,18 @@ function parseOuterlayerConfig(json) {
|
|
|
7866
7663
|
};
|
|
7867
7664
|
}
|
|
7868
7665
|
const validIds = new Set(ALL_TARGET_IDS);
|
|
7666
|
+
const removedIds = new Set(REMOVED_TARGET_IDS);
|
|
7869
7667
|
const errors = [];
|
|
7870
7668
|
const targets = [];
|
|
7871
7669
|
targetsRaw.forEach((t, i) => {
|
|
7670
|
+
if (typeof t === "string" && removedIds.has(t)) {
|
|
7671
|
+
errors.push({
|
|
7672
|
+
path: `targets[${i}]`,
|
|
7673
|
+
code: "removed_target",
|
|
7674
|
+
message: `the "${t}" target is no longer supported; delete it from .outerlayer/config.json`
|
|
7675
|
+
});
|
|
7676
|
+
return;
|
|
7677
|
+
}
|
|
7872
7678
|
if (typeof t !== "string" || !validIds.has(t)) {
|
|
7873
7679
|
errors.push({
|
|
7874
7680
|
path: `targets[${i}]`,
|
|
@@ -7883,11 +7689,7 @@ function parseOuterlayerConfig(json) {
|
|
|
7883
7689
|
return { ok: true, errors: [], warnings: [], config: { targets } };
|
|
7884
7690
|
}
|
|
7885
7691
|
var TARGET_BUILDERS = {
|
|
7886
|
-
"claude-code": buildClaudeCode
|
|
7887
|
-
cursor: buildCursor,
|
|
7888
|
-
codex: buildCodex,
|
|
7889
|
-
copilot: buildCopilot,
|
|
7890
|
-
factory: buildFactory
|
|
7692
|
+
"claude-code": buildClaudeCode
|
|
7891
7693
|
};
|
|
7892
7694
|
function emitTree(input) {
|
|
7893
7695
|
if (input.targets.length === 0) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { DEFAULT_DASHBOARD } from './chunk-
|
|
4
|
-
import { sanitizeTerminal } from './chunk-
|
|
5
|
-
import { isAgentsMdLayout } from './chunk-
|
|
3
|
+
import { DEFAULT_DASHBOARD } from './chunk-5H57X7YC.js';
|
|
4
|
+
import { sanitizeTerminal } from './chunk-3PQTOKML.js';
|
|
5
|
+
import { isAgentsMdLayout } from './chunk-LRCGXRQI.js';
|
|
6
6
|
import { cliFetch, resolveGatewayCredentials } from './chunk-YQHEJ5SV.js';
|
|
7
7
|
import { readCloudConfig } from './chunk-HWVMRETT.js';
|
|
8
8
|
import { findGitDirs, writeRepoConnection, readRepoConnection } from './chunk-BJ3KTMDH.js';
|
|
9
|
-
import { remoteLookupFailed } from './chunk-
|
|
9
|
+
import { remoteLookupFailed } from './chunk-MXWPLGO6.js';
|
|
10
10
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
11
11
|
import { execFileSync } from 'child_process';
|
|
12
12
|
import { lstatSync } from 'fs';
|
|
@@ -3,27 +3,27 @@ import { createRequire } from 'node:module';
|
|
|
3
3
|
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-7Y5VW4JG.js';
|
|
4
4
|
import { decideInstalledSwitch } from './chunk-3JVYMD4G.js';
|
|
5
5
|
import { fetchVersionMeta, npmVersion, npmSupportsProvenance, fetchTarballDigest, fetchProvenance, installVersion, auditSignatures } from './chunk-E7R2GIAW.js';
|
|
6
|
-
import { reportFailedStart, fitImageBuildMemory } from './chunk-
|
|
7
|
-
import { renderUpdateSteps } from './chunk-
|
|
6
|
+
import { reportFailedStart, fitImageBuildMemory } from './chunk-OPF6OJAT.js';
|
|
7
|
+
import { renderUpdateSteps } from './chunk-VJYNMGCE.js';
|
|
8
8
|
import { RUNNER_PROTOCOL } from './chunk-3LCXSD26.js';
|
|
9
9
|
import { writeFleetState } from './chunk-LGV5N5DG.js';
|
|
10
10
|
import { writePendingUpdate } from './chunk-EZRAR5YG.js';
|
|
11
|
-
import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-
|
|
11
|
+
import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-4AMSCAHT.js';
|
|
12
12
|
import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-AF6DQJ5W.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, provisionProcess, 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, savedStatesDir, readRecords, removeOldestUntil, ensureNetworkReady, managedBuildSettingsFor, ADOPTED_FETCH_RETRY_WINDOW_MS, gitRemoteFor, startServicesFor, createLeaseChannel, serveLease, vmAlive, writeGuestGhConfig, shellQuote, deliverJobFiles, inTeardown } from './chunk-
|
|
14
|
-
import { RepoFilter } 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, provisionProcess, 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, savedStatesDir, readRecords, removeOldestUntil, ensureNetworkReady, managedBuildSettingsFor, ADOPTED_FETCH_RETRY_WINDOW_MS, gitRemoteFor, startServicesFor, createLeaseChannel, serveLease, vmAlive, writeGuestGhConfig, shellQuote, deliverJobFiles, inTeardown } from './chunk-25GQP6NR.js';
|
|
14
|
+
import { RepoFilter } from './chunk-XTVVKNRP.js';
|
|
15
15
|
import { JOB_STATE_FORMAT, readsJobState, jobStateFormatOf } from './chunk-ZVB57WI6.js';
|
|
16
16
|
import { imageTag, writeUpdateStatus, pullInstruction, tagToPull } from './chunk-ALEUIS35.js';
|
|
17
17
|
import { isVersion, compareVersions, satisfiesRange } from './chunk-TQMI335S.js';
|
|
18
|
-
import { RUNNER_RESERVE_BYTES } from './chunk-
|
|
18
|
+
import { RUNNER_RESERVE_BYTES } from './chunk-MVSC7GCE.js';
|
|
19
19
|
import { claimPidFile, releasePidFile, writePidFile, readPidFile } from './chunk-WAZJPDR2.js';
|
|
20
|
-
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-
|
|
20
|
+
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-LZ7PAU55.js';
|
|
21
21
|
import { startTimeOf, isSameProcess } from './chunk-JBJTC3UU.js';
|
|
22
|
-
import { claimCalls, claimItem, spoolHomeFor, leftByRunnerKey, runnerCalls } from './chunk-
|
|
23
|
-
import { keyRunnerFactory, isBuiltinContainer, isBuiltinVm, isBuiltinProcess, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_UPDATE_MAX_WAIT_HOURS } from './chunk-
|
|
24
|
-
import { allocatedBytes, freeBytes, formatBytes } from './chunk-
|
|
25
|
-
import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, exceedsDisk, builderName, runnerLabelValue, ensureFailureCount, builderSpec, ensureBuilder, spawnRun } from './chunk-
|
|
26
|
-
import { isSignatureRefusal, WorkCommandError, getJson, postJson } from './chunk-
|
|
22
|
+
import { claimCalls, claimItem, spoolHomeFor, leftByRunnerKey, runnerCalls } from './chunk-3YRJUX6J.js';
|
|
23
|
+
import { keyRunnerFactory, isBuiltinContainer, isBuiltinVm, isBuiltinProcess, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_UPDATE_MAX_WAIT_HOURS } from './chunk-3QLHEGXK.js';
|
|
24
|
+
import { allocatedBytes, freeBytes, formatBytes } from './chunk-AVJWMOEY.js';
|
|
25
|
+
import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, exceedsDisk, builderName, runnerLabelValue, ensureFailureCount, builderSpec, ensureBuilder, spawnRun } from './chunk-PJZKKFQO.js';
|
|
26
|
+
import { isSignatureRefusal, WorkCommandError, getJson, postJson } from './chunk-S6OD32NC.js';
|
|
27
27
|
import { loadHostKey, ensureHostKey, signerFor } from './chunk-4DJZSNVT.js';
|
|
28
28
|
import { resolveVersion } from './chunk-RA3O54FC.js';
|
|
29
29
|
import { RUNNER_DIR_MODE, runnerDir, buildDir, attemptStamp, jobDir, RUNNER_FILE_MODE, jobsDir, pidFilePath, storeScopes, imagesDir } from './chunk-WT7J2627.js';
|
|
@@ -2171,7 +2171,7 @@ var CLAIM_REFUSAL_CODES = new Set(
|
|
|
2171
2171
|
"pull_request_from_fork pull_request_on_default_branch pull_request_ambiguous pull_request_repository_not_connected repository_not_reachable branch_claimed_elsewhere".split(" ")
|
|
2172
2172
|
);
|
|
2173
2173
|
async function tryClaimAndStart(state, item, queue) {
|
|
2174
|
-
const { postJson: postJson2 } = await import('./work-cmd-
|
|
2174
|
+
const { postJson: postJson2 } = await import('./work-cmd-JZUBXXJN.js');
|
|
2175
2175
|
const log = logOf(state);
|
|
2176
2176
|
const hostKey = await loadHostKey(state.config.configPath);
|
|
2177
2177
|
const claim = await retrySend(
|
|
@@ -3542,7 +3542,7 @@ async function startRunner(configPath, deps, startup) {
|
|
|
3542
3542
|
check: update.check ? () => update.check(configPath) : async () => {
|
|
3543
3543
|
const held = heldClaudeCredential();
|
|
3544
3544
|
const env = held === void 0 ? process.env : { ...process.env, [held.variable]: held.value };
|
|
3545
|
-
return (await import('./check-
|
|
3545
|
+
return (await import('./check-MENIW2MN.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
|
|
3546
3546
|
},
|
|
3547
3547
|
now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
|
|
3548
3548
|
log
|
|
@@ -3,7 +3,7 @@ import { createRequire } from 'node:module';
|
|
|
3
3
|
import { toolsDockerfile } from './chunk-H3MLZ4EA.js';
|
|
4
4
|
import { claimPidFile, RunnerAlreadyRunningError, releasePidFile } from './chunk-WAZJPDR2.js';
|
|
5
5
|
import { startTimeOf } from './chunk-JBJTC3UU.js';
|
|
6
|
-
import { runnerLabelValue } from './chunk-
|
|
6
|
+
import { runnerLabelValue } from './chunk-PJZKKFQO.js';
|
|
7
7
|
import { RecipeError, locateRecipe, readRecipe, assertBuildable, writeSanitizedRecipe, classifyProperties, SANITIZED_NAME } from './chunk-TV5ITSVY.js';
|
|
8
8
|
import { UNIVERSAL_IMAGE_DIGEST, UNIVERSAL_IMAGE_REPOSITORY, UNIVERSAL_IMAGE_SOURCE, CLAUDE_CODE_VERSION, NODE_IMAGE, UNIVERSAL_IMAGE, MEDIA_PINS, TINI_VERSION, GH_VERSION } from './chunk-7SO2VHTQ.js';
|
|
9
9
|
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, repoCacheDir, imagesDir, imageBuildLogsDir, attemptStamp, orgStore, rootfsPathFor } from './chunk-WT7J2627.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { fetchFactories, selectFactory, saveFactoryConnection, autoConnectedLine } from './chunk-
|
|
3
|
+
import { fetchFactories, selectFactory, saveFactoryConnection, autoConnectedLine } from './chunk-JPROSTGX.js';
|
|
4
4
|
import { resolveGatewayCredentials } from './chunk-YQHEJ5SV.js';
|
|
5
5
|
import { readCloudConfig } from './chunk-HWVMRETT.js';
|
|
6
6
|
import { findGitDirs, readRepoConnection } from './chunk-BJ3KTMDH.js';
|
|
7
|
-
import { resolveRepoIdentity } from './chunk-
|
|
7
|
+
import { resolveRepoIdentity } from './chunk-MXWPLGO6.js';
|
|
8
8
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
9
9
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
10
10
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE } from './chunk-
|
|
4
|
-
import { normalizePath, CONTEXT_PIN_FILENAME } from './chunk-
|
|
3
|
+
import { AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE } from './chunk-7O7LJWQO.js';
|
|
4
|
+
import { normalizePath, CONTEXT_PIN_FILENAME } from './chunk-JFMSFHER.js';
|
|
5
5
|
import { existsSync, readdirSync, readFileSync, mkdirSync, writeFileSync, lstatSync, readlinkSync, symlinkSync, rmdirSync } from 'fs';
|
|
6
6
|
import { relative, sep, join } from 'path';
|
|
7
7
|
|
|
@@ -1,7 +1,8 @@
|
|
|
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-
|
|
3
|
+
import { WorkCommandError, postJson } from './chunk-S6OD32NC.js';
|
|
4
|
+
import { defaultGitRunner, materializeContext, fetchControlPlaneCommit, lookupGoverningSource } from './chunk-PN6TNCQI.js';
|
|
5
|
+
import { buildRefusalReason } from './chunk-F3ZMVUAS.js';
|
|
5
6
|
import { signingFetchFor } from './chunk-YQHEJ5SV.js';
|
|
6
7
|
import { signerFor } from './chunk-4DJZSNVT.js';
|
|
7
8
|
import { unsupportedLayout, layoutRefusalReason, composeDelivery } from './chunk-FGF52V4V.js';
|
|
@@ -438,6 +439,9 @@ async function stageGovernedContext(input) {
|
|
|
438
439
|
}
|
|
439
440
|
// An unreachable result is a timeout, a network failure, or a failure to write the fetched files. Its message says which.
|
|
440
441
|
default:
|
|
442
|
+
if (result.invalidConfig !== void 0) {
|
|
443
|
+
return finish({ kind: "refused", reason: buildRefusalReason(readDegraded(join(tree, ".git"))?.repository ?? input.repository, result.invalidConfig) });
|
|
444
|
+
}
|
|
441
445
|
return finish(unavailable(result.message ?? `the context of ${input.repository} could not be materialized (${result.status})`));
|
|
442
446
|
}
|
|
443
447
|
} catch (err) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { escapeUnitPath, UNIT_MARKER, DEFAULT_UNIT_NAME } from './chunk-
|
|
3
|
+
import { escapeUnitPath, UNIT_MARKER, DEFAULT_UNIT_NAME } from './chunk-MVSC7GCE.js';
|
|
4
4
|
import { inspectService, realInspectProbes } from './chunk-GANAOCHR.js';
|
|
5
5
|
import { realpathSync, readFileSync, readdirSync } from 'fs';
|
|
6
6
|
import { resolve, dirname, join } from 'path';
|