@outerlayer/cli 0.26.3 → 0.27.0

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.
Files changed (129) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +12 -9
  3. package/dist/{agent-setup-PZYQWN4H.js → agent-setup-UW36TAQM.js} +13 -13
  4. package/dist/{bridge-5KZ36YDG.js → bridge-B5VJVECY.js} +2 -2
  5. package/dist/build-TNM7HYCA.js +12 -0
  6. package/dist/build-info.json +1 -1
  7. package/dist/{builder-WEGLC2F2.js → builder-LDJGS2JC.js} +6 -6
  8. package/dist/{check-WJJ325EQ.js → check-JVBAWIN6.js} +44 -43
  9. package/dist/{chunk-7LVF4E5V.js → chunk-24ID7EQ2.js} +7 -4
  10. package/dist/{chunk-HXFRJKMU.js → chunk-2F762IXY.js} +2 -2
  11. package/dist/{chunk-2K3TCQHW.js → chunk-2I3LIRZP.js} +26 -8
  12. package/dist/{chunk-UKCNOAO6.js → chunk-55GNQPO6.js} +17 -6
  13. package/dist/{chunk-XSPA5ODY.js → chunk-6BLXUD56.js} +4 -3
  14. package/dist/{chunk-MWPBF2XG.js → chunk-6KKM7VGZ.js} +32 -4
  15. package/dist/{chunk-VPEGE3QZ.js → chunk-6TRNCUM4.js} +1 -1
  16. package/dist/{chunk-MLD2NA7N.js → chunk-7AQ5AM7U.js} +12 -5
  17. package/dist/{chunk-HBISTTG3.js → chunk-7OUOLGUV.js} +20 -5
  18. package/dist/{chunk-6FAP657M.js → chunk-ABXQBEYK.js} +1 -1
  19. package/dist/{chunk-TSW4DGV2.js → chunk-B6K7R5UY.js} +2 -2
  20. package/dist/chunk-BM7EC3OZ.js +181 -0
  21. package/dist/{chunk-W3NVHOCS.js → chunk-BPKO76QR.js} +4 -4
  22. package/dist/{chunk-QRZLUUNN.js → chunk-BWH36FOC.js} +8 -3
  23. package/dist/{chunk-PYSKSROG.js → chunk-D7ECMB7B.js} +4 -4
  24. package/dist/{chunk-FO7F6QSV.js → chunk-DJHNEGNM.js} +27 -3
  25. package/dist/{chunk-TPAF24PK.js → chunk-E5IJ5533.js} +2 -2
  26. package/dist/{chunk-JWRX5ZTT.js → chunk-EPPIISRD.js} +2 -2
  27. package/dist/{chunk-6M4LNO22.js → chunk-FP23SVDD.js} +6 -6
  28. package/dist/{chunk-GOSFARMS.js → chunk-G2JWZDFA.js} +9 -2
  29. package/dist/{chunk-XFGL53GU.js → chunk-G3EZA6MK.js} +56 -8
  30. package/dist/{chunk-5PMQDQFV.js → chunk-GFUE5TKO.js} +3 -3
  31. package/dist/{chunk-XLC7KEUV.js → chunk-GLUKDQS4.js} +1 -1
  32. package/dist/{chunk-ZLEXMZFW.js → chunk-JH2GQU5T.js} +5 -5
  33. package/dist/{chunk-YVZJ6GKF.js → chunk-KT4CN6OU.js} +1 -1
  34. package/dist/{chunk-JKNYTNYD.js → chunk-LOKSLO25.js} +1 -1
  35. package/dist/{chunk-665QWBNW.js → chunk-M3MHHIUW.js} +1 -1
  36. package/dist/{chunk-4IFKLYMM.js → chunk-MATUHHN4.js} +1 -1
  37. package/dist/{chunk-MQ743JX3.js → chunk-MHX7YX7Y.js} +1 -1
  38. package/dist/{chunk-TEVO3RUV.js → chunk-N4D5TMVU.js} +4 -4
  39. package/dist/{chunk-EORWWFPA.js → chunk-O2IJTY7L.js} +2 -2
  40. package/dist/{chunk-EABW6AJQ.js → chunk-PJDQPF5N.js} +18 -5
  41. package/dist/{chunk-KDDFI5MR.js → chunk-QHH4OSD4.js} +1 -1
  42. package/dist/{chunk-W7LGHNXT.js → chunk-QIVOTQOQ.js} +5 -5
  43. package/dist/{chunk-JF572PM5.js → chunk-QKIQ2R7F.js} +3 -3
  44. package/dist/{chunk-L4CW6LZQ.js → chunk-RHAGBUL5.js} +5 -2
  45. package/dist/{chunk-TKL74NLB.js → chunk-RHGF73IU.js} +1 -1
  46. package/dist/{chunk-SKZG7SAN.js → chunk-RK7FWC6B.js} +206 -42
  47. package/dist/{chunk-6MZSX4M7.js → chunk-STSLH5EJ.js} +3 -1
  48. package/dist/{chunk-K7FCZCLQ.js → chunk-TXHJ7BGR.js} +13 -13
  49. package/dist/{chunk-364XDGOK.js → chunk-UQYBCJ2L.js} +3 -3
  50. package/dist/{chunk-2AKDF6C2.js → chunk-VS27BP3E.js} +5 -5
  51. package/dist/{chunk-J7BXZLSO.js → chunk-WSYXLLA5.js} +29 -8
  52. package/dist/{chunk-WX2WEERU.js → chunk-WUL2OP5A.js} +3 -3
  53. package/dist/{chunk-ZPXI7LMG.js → chunk-WVDP6HVZ.js} +6 -6
  54. package/dist/{chunk-MXTN35XN.js → chunk-XBPUTQ7E.js} +1 -1
  55. package/dist/{chunk-UNF7MWEL.js → chunk-XS3FDWSZ.js} +1 -1
  56. package/dist/{chunk-VJBFQP3H.js → chunk-XZ6Q6ZNR.js} +9 -5
  57. package/dist/{chunk-F6DIHHBS.js → chunk-Y4OKEFAX.js} +1 -1
  58. package/dist/{chunk-XDHYZWEK.js → chunk-Y7ZCHBYB.js} +2 -2
  59. package/dist/chunk-YB3CSYXX.js +95 -0
  60. package/dist/{chunk-VHVFU6QU.js → chunk-YF56R4DV.js} +86 -31
  61. package/dist/chunk-YJLHUKYS.js +38 -0
  62. package/dist/{chunk-XF77SNB4.js → chunk-ZXRWMOJ3.js} +287 -51
  63. package/dist/{claude-launcher-O2U6P6ZD.js → claude-launcher-TKX4WCUN.js} +8 -4
  64. package/dist/{cli-2UUJM3AE.js → cli-XVXQDKZT.js} +141 -135
  65. package/dist/{command-GQBHC53U.js → command-B2T7VR77.js} +33 -32
  66. package/dist/{config-JJ3EO7SB.js → config-TWS5VZEN.js} +3 -3
  67. package/dist/{connect-cmd-2JHSLBXK.js → connect-cmd-HGS7YPA2.js} +10 -10
  68. package/dist/{container-start-AUJHF2BC.js → container-start-JE7HTKZG.js} +32 -31
  69. package/dist/{control-plane-launch-654RV5PO.js → control-plane-launch-DBQA3KLJ.js} +9 -9
  70. package/dist/{docker-NYAIIX2F.js → docker-MJEEHUUA.js} +6 -6
  71. package/dist/{doctor-NV2PUERZ.js → doctor-6ZIF2BRZ.js} +184 -37
  72. package/dist/{emit-artifact-cmd-XXTCHP6V.js → emit-artifact-cmd-ALDK55Y2.js} +14 -14
  73. package/dist/{emit-cmd-WQH2NK7H.js → emit-cmd-VAQHRWJR.js} +4 -4
  74. package/dist/{emit-criteria-cmd-VMZIRJCQ.js → emit-criteria-cmd-Q7SM6VP2.js} +11 -11
  75. package/dist/{emit-finding-cmd-KMJNYQI7.js → emit-finding-cmd-2NBAPDSV.js} +11 -11
  76. package/dist/{emit-result-cmd-HRTXGZLK.js → emit-result-cmd-KUSL56RI.js} +14 -14
  77. package/dist/{emit-step-cmd-AUHA3EXY.js → emit-step-cmd-KD4AKEAT.js} +12 -12
  78. package/dist/{exec-client-J6L5FDRR.js → exec-client-6WVS7DRZ.js} +3 -3
  79. package/dist/{governing-source-PTJ6EAA3.js → governing-source-VVUA5TKB.js} +16 -16
  80. package/dist/{guest-init-CXIHA5VI.js → guest-init-H5K2RW3P.js} +4 -4
  81. package/dist/{hook-fast-SDFXJEAW.js → hook-fast-3SUJM765.js} +1 -1
  82. package/dist/{host-key-5TKBNUZ4.js → host-key-XNKZCWTS.js} +3 -3
  83. package/dist/{image-tag-5SJ6ZKT7.js → image-tag-R34J4O3F.js} +3 -3
  84. package/dist/index.js +4 -4
  85. package/dist/init-ETKGFCXR.js +55 -0
  86. package/dist/{init-UZWRJMPZ.js → init-Q2RPUUVP.js} +33 -32
  87. package/dist/{init-cmd-SQKWPACS.js → init-cmd-M6MQRGOU.js} +19 -18
  88. package/dist/{init-update-FJDKY4SJ.js → init-update-N4HTZGVS.js} +59 -30
  89. package/dist/{inspect-6UYAAXH7.js → inspect-IPFA7AAT.js} +1 -1
  90. package/dist/{install-QSTTBUHX.js → install-6OIY3KHZ.js} +6 -5
  91. package/dist/{install-cmd-3DXJJUAA.js → install-cmd-JMT67P35.js} +5 -5
  92. package/dist/{layout-UOJQGEPW.js → layout-XNFDTOET.js} +2 -2
  93. package/dist/{login-browser-4OMZFP3U.js → login-browser-EWXSGHM7.js} +3 -3
  94. package/dist/{logout-cmd-5V5MMBSY.js → logout-cmd-5WE2N5B5.js} +2 -2
  95. package/dist/{logs-VN2HKDSH.js → logs-XHAS6LMZ.js} +2 -2
  96. package/dist/loop-2Y4CUFNP.js +79 -0
  97. package/dist/machine-Z2S47JW7.js +50 -0
  98. package/dist/machine-skills-RRF4HLAD.js +11 -0
  99. package/dist/{mcp-install-cmd-GGWB3JJ2.js → mcp-install-cmd-LD7KYAOP.js} +2 -2
  100. package/dist/{mcp-serve-cmd-U5N5DK3H.js → mcp-serve-cmd-LY5A3CE7.js} +5 -5
  101. package/dist/{paths-ZC6BMWMT.js → paths-LHSPNORF.js} +2 -2
  102. package/dist/{pending-54HC7MM3.js → pending-3YZCSKON.js} +3 -3
  103. package/dist/{pidfile-BY5Z6YH7.js → pidfile-DKMYYXLH.js} +3 -3
  104. package/dist/{record-K23IN6QN.js → record-3LPTY3G5.js} +3 -3
  105. package/dist/{runner-env-2D7MPOIJ.js → runner-env-YRRNRKF4.js} +8 -7
  106. package/dist/{runner-identity-YYENYKDH.js → runner-identity-EX7HXPUE.js} +6 -6
  107. package/dist/{runner-key-AZVXBQIB.js → runner-key-GO277GW2.js} +32 -31
  108. package/dist/{session-sender-VH2EKAT5.js → session-sender-SC5PSU2G.js} +15 -15
  109. package/dist/{spec-cmd-BOUPLX7X.js → spec-cmd-JGYHHJ4P.js} +12 -12
  110. package/dist/{starter-pack-55EFILC5.js → starter-pack-GPU4X6B7.js} +2 -2
  111. package/dist/{status-3WC2IGVI.js → status-CJCE2FHD.js} +34 -33
  112. package/dist/{sync-cmd-GT2WTQRA.js → sync-cmd-ATXJVS7S.js} +14 -14
  113. package/dist/{watch-JED7SYAA.js → watch-M7NR3DOW.js} +14 -14
  114. package/dist/{work-claim-cmd-MY4N74HA.js → work-claim-cmd-DNUDZKJA.js} +16 -16
  115. package/dist/{work-cmd-UQ45HDM4.js → work-cmd-VECTYST6.js} +12 -12
  116. package/dist/{work-comment-cmd-I7NNSNDP.js → work-comment-cmd-F3NRWKPZ.js} +12 -12
  117. package/dist/{work-logs-cmd-YIQJVENH.js → work-logs-cmd-QF6P32FE.js} +12 -12
  118. package/dist/{work-open-pr-cmd-VP5NNTCW.js → work-open-pr-cmd-XE23JA3R.js} +13 -13
  119. package/dist/{work-pr-cmd-DKTBEFHO.js → work-pr-cmd-BH56GUKN.js} +12 -12
  120. package/dist/{work-stop-cmd-GN2WX73C.js → work-stop-cmd-C3F5HNUO.js} +12 -12
  121. package/package.json +1 -1
  122. package/skill-pack/maintained/outerlayer-cli/SKILL.md +6 -5
  123. package/skill-pack/shipped.json +1 -0
  124. package/skill-pack/template/build/SKILL.md +1 -1
  125. package/dist/build-EBQYXL7Y.js +0 -12
  126. package/dist/chunk-7RQ73DLO.js +0 -23
  127. package/dist/init-KIGYMLDM.js +0 -54
  128. package/dist/loop-OE32U2IZ.js +0 -78
  129. package/dist/machine-L7INJ4JN.js +0 -49
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { RELAY_PORT, GATEWAY_SOCKET, GATEWAY_PORT, CLAUDE_SOCKET, CLAUDE_PORT, DESTINATION_BASE_PORT } from './chunk-2K3TCQHW.js';
3
+ import { RELAY_PORT, GATEWAY_SOCKET, GATEWAY_PORT, CLAUDE_SOCKET, CLAUDE_PORT, DESTINATION_BASE_PORT } from './chunk-2I3LIRZP.js';
4
4
  import { symlinkSync, unlinkSync } from 'fs';
5
5
  import { join } from 'path';
6
6
 
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { RecipeError, BUILDKIT_IMAGE } from './chunk-TSW4DGV2.js';
4
- import { parseSize } from './chunk-7RQ73DLO.js';
3
+ import { RecipeError, BUILDKIT_IMAGE } from './chunk-B6K7R5UY.js';
4
+ import { parseSize } from './chunk-YJLHUKYS.js';
5
5
  import { compareVersions } from './chunk-QE3UQAHK.js';
6
- import { ensureHostKey } from './chunk-F6DIHHBS.js';
7
- import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, jobsDir } from './chunk-L4CW6LZQ.js';
8
- import { CLAUDE_PORT, JOB_MOUNT, GATEWAY_PORT, GATEWAY_SOCKET, CLAUDE_SOCKET, RELAY_PORT, DESTINATION_BASE_PORT } from './chunk-2K3TCQHW.js';
6
+ import { ensureHostKey } from './chunk-Y4OKEFAX.js';
7
+ import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, jobsDir } from './chunk-RHAGBUL5.js';
8
+ import { CLAUDE_PORT, JOB_MOUNT, GATEWAY_PORT, GATEWAY_SOCKET, CLAUDE_SOCKET, RELAY_PORT, DESTINATION_BASE_PORT } from './chunk-2I3LIRZP.js';
9
9
  import { JOIN_DIR, RELAY_ID, JOIN_SOCKET, TARGET_GATEWAY, TARGET_CLAUDE, destinationTarget, RELAY_USER } from './chunk-JGD5TWQ2.js';
10
10
  import { StringDecoder } from 'string_decoder';
11
11
  import { spawn } from 'child_process';
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { C } from './chunk-ANPNT6PM.js';
4
- import { readCloudConfig } from './chunk-EABW6AJQ.js';
4
+ import { readCloudConfig } from './chunk-PJDQPF5N.js';
5
5
  import { cliInvocation } from './chunk-CRB3POP4.js';
6
6
  import { existsSync, writeFileSync, readFileSync, mkdirSync } from 'fs';
7
7
  import { join, dirname } from 'path';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE } from './chunk-HBISTTG3.js';
3
+ import { AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE } from './chunk-7OUOLGUV.js';
4
4
  import { normalizePath, CONTEXT_PIN_FILENAME } from './chunk-RKOTJQVG.js';
5
5
  import { existsSync, readdirSync, readFileSync, mkdirSync, writeFileSync, lstatSync, readlinkSync, symlinkSync, rmdirSync } from 'fs';
6
6
  import { relative, sep, join } from 'path';
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { isVersion, compareVersions } from './chunk-TQMI335S.js';
4
- import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-L4CW6LZQ.js';
4
+ import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-RHAGBUL5.js';
5
5
  import { readFileSync, mkdirSync, writeFileSync, renameSync } from 'fs';
6
6
  import { join } from 'path';
7
7
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-L4CW6LZQ.js';
3
+ import { runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-RHAGBUL5.js';
4
4
  import { readlinkSync, realpathSync, mkdirSync, unlinkSync, symlinkSync, renameSync, readFileSync, writeFileSync, rmSync, existsSync, readdirSync } from 'fs';
5
5
  import { join, basename, sep, resolve } from 'path';
6
6
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { skillDir, FORMER_MAINTAINED_NAMES, isMaintainedCopy } from './chunk-HBISTTG3.js';
3
+ import { skillDir, FORMER_MAINTAINED_NAMES, isMaintainedCopy } from './chunk-7OUOLGUV.js';
4
4
  import { cliInvocation } from './chunk-CRB3POP4.js';
5
5
  import { emitTree, ALL_TARGET_IDS, classifyTree } from './chunk-RKOTJQVG.js';
6
6
  import { readFileSync, existsSync, unlinkSync, rmdirSync, readdirSync } from 'fs';
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { sanitizeTerminal } from './chunk-BUP5N3X6.js';
4
- import { DEFAULT_DASHBOARD } from './chunk-XSPA5ODY.js';
5
- import { cliFetch, resolveGatewayCredentials } from './chunk-QRZLUUNN.js';
4
+ import { isAgentsMdLayout } from './chunk-LOKSLO25.js';
5
+ import { DEFAULT_DASHBOARD } from './chunk-6BLXUD56.js';
6
+ import { cliFetch, resolveGatewayCredentials } from './chunk-BWH36FOC.js';
6
7
  import { writeRepoConnection, findGitDirs, readRepoConnection } from './chunk-BJ3KTMDH.js';
7
8
  import { remoteLookupFailed } from './chunk-QE3UQAHK.js';
8
- import { readCloudConfig } from './chunk-EABW6AJQ.js';
9
- import { isAgentsMdLayout } from './chunk-JKNYTNYD.js';
9
+ import { readCloudConfig } from './chunk-PJDQPF5N.js';
10
10
  import { cliInvocation } from './chunk-CRB3POP4.js';
11
11
  import { execFileSync } from 'child_process';
12
12
  import { createInterface } from 'readline/promises';
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { launchRefusalForSession } from './chunk-ESVW4MJY.js';
4
- import { autoConnect, detectActiveSession } from './chunk-HXFRJKMU.js';
4
+ import { autoConnect, detectActiveSession } from './chunk-2F762IXY.js';
5
5
  import { acquireSpoolLockAt } from './chunk-BUP5N3X6.js';
6
- import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-QRZLUUNN.js';
6
+ import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-BWH36FOC.js';
7
7
  import { resolveRepoIdentity } from './chunk-QE3UQAHK.js';
8
8
  import { C } from './chunk-ANPNT6PM.js';
9
9
  import { launchedItemForSession } from './chunk-T2Q7ISPE.js';
@@ -8,18 +8,31 @@ createRequire(import.meta.url);
8
8
  function cloudConfigPath(home = homeFromEnv()) {
9
9
  return join(home, ".outerlayer", "config.json");
10
10
  }
11
- function readCloudConfig(home = homeFromEnv()) {
11
+ var CloudConfigError = class extends Error {
12
+ };
13
+ function unparseableConfigMessage(path, parserMessage) {
14
+ return `${path} is not valid JSON (${parserMessage}). Fix it or move it aside.`;
15
+ }
16
+ function readCloudConfigStrict(home = homeFromEnv()) {
12
17
  const path = cloudConfigPath(home);
13
18
  if (!existsSync(path)) return {};
19
+ const text = readFileSync(path, "utf8");
20
+ try {
21
+ return JSON.parse(text);
22
+ } catch (err) {
23
+ throw new CloudConfigError(unparseableConfigMessage(path, err.message));
24
+ }
25
+ }
26
+ function readCloudConfig(home = homeFromEnv()) {
14
27
  try {
15
- return JSON.parse(readFileSync(path, "utf8"));
28
+ return readCloudConfigStrict(home);
16
29
  } catch {
17
30
  return {};
18
31
  }
19
32
  }
20
33
  function writeCloudConfig(config, home = homeFromEnv()) {
21
34
  const path = cloudConfigPath(home);
22
- const merged = { ...readCloudConfig(home) };
35
+ const merged = { ...readCloudConfigStrict(home) };
23
36
  for (const [key, value] of Object.entries(config)) {
24
37
  if (value !== void 0) merged[key] = value;
25
38
  }
@@ -33,7 +46,7 @@ function writeCloudConfig(config, home = homeFromEnv()) {
33
46
  function removeCloudConfigKeys(keys, home = homeFromEnv()) {
34
47
  const path = cloudConfigPath(home);
35
48
  if (!existsSync(path)) return;
36
- const stored = { ...readCloudConfig(home) };
49
+ const stored = { ...readCloudConfigStrict(home) };
37
50
  for (const key of keys) delete stored[key];
38
51
  writeFileSync(path, JSON.stringify(stored, null, 2) + "\n", { mode: 384 });
39
52
  try {
@@ -42,4 +55,4 @@ function removeCloudConfigKeys(keys, home = homeFromEnv()) {
42
55
  }
43
56
  }
44
57
 
45
- export { cloudConfigPath, readCloudConfig, removeCloudConfigKeys, writeCloudConfig };
58
+ export { CloudConfigError, cloudConfigPath, readCloudConfig, readCloudConfigStrict, removeCloudConfigKeys, writeCloudConfig };
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { currentLink } from './chunk-4IFKLYMM.js';
3
+ import { currentLink } from './chunk-MATUHHN4.js';
4
4
  import { readFileSync, statSync, chmodSync, mkdirSync, writeFileSync, renameSync, rmSync, existsSync, lstatSync, accessSync, constants, realpathSync } from 'fs';
5
5
  import { randomBytes } from 'crypto';
6
6
  import { join, dirname, delimiter, resolve } from 'path';
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { detectMachine, supportsContainerBuilds, reachDockerStep, describeMachineDocker, supportsMicroVmBuilds } from './chunk-364XDGOK.js';
4
- import { MIN_ENGINE_MAJOR } from './chunk-VHVFU6QU.js';
5
- import { hasStoredCredential, AGENT_COMMANDS, storeClaudeCredential, credentialFromStdin, isAgentName } from './chunk-5PMQDQFV.js';
6
- import { runnerCredentialProblem } from './chunk-JWRX5ZTT.js';
7
- import { runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-L4CW6LZQ.js';
3
+ import { detectMachine, supportsContainerBuilds, reachDockerStep, describeMachineDocker, supportsMicroVmBuilds } from './chunk-UQYBCJ2L.js';
4
+ import { MIN_ENGINE_MAJOR } from './chunk-YF56R4DV.js';
5
+ import { hasStoredCredential, AGENT_COMMANDS, storeClaudeCredential, credentialFromStdin, isAgentName } from './chunk-GFUE5TKO.js';
6
+ import { runnerCredentialProblem } from './chunk-EPPIISRD.js';
7
+ import { runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-RHAGBUL5.js';
8
8
  import { existsSync, readFileSync, mkdirSync, writeFileSync } from 'fs';
9
9
  import { dirname } from 'path';
10
10
 
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { launcherPath, writeLauncher, LauncherWriteError, pathNotes } from './chunk-KDDFI5MR.js';
4
- import { currentVersion, currentLink, isInLayout, packageRootIn, versionDir, switchCurrent, execStartLine } from './chunk-4IFKLYMM.js';
3
+ import { launcherPath, writeLauncher, LauncherWriteError, pathNotes } from './chunk-QHH4OSD4.js';
4
+ import { currentVersion, currentLink, isInLayout, packageRootIn, versionDir, switchCurrent, execStartLine } from './chunk-MATUHHN4.js';
5
5
  import { compareVersions } from './chunk-TQMI335S.js';
6
- import { RUNNER_DIR_MODE } from './chunk-L4CW6LZQ.js';
6
+ import { RUNNER_DIR_MODE } from './chunk-RHAGBUL5.js';
7
7
  import { realpathSync, readFileSync, mkdirSync, rmSync, cpSync, existsSync } from 'fs';
8
8
  import { dirname, sep, join } from 'path';
9
9
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { BUILD_HOME } from './chunk-2K3TCQHW.js';
3
+ import { BUILD_HOME } from './chunk-2I3LIRZP.js';
4
4
  import { join, dirname } from 'path';
5
5
 
6
6
  createRequire(import.meta.url);
@@ -52,6 +52,9 @@ function contextHomeDir(configPath) {
52
52
  function stagedContextDir(buildDirPath) {
53
53
  return join(buildDirPath, "context");
54
54
  }
55
+ function keptContextDir(jobDirPath) {
56
+ return join(jobDirPath, "governed-context");
57
+ }
55
58
  function runnerDirOfBuild(buildDirPath) {
56
59
  return dirname(dirname(buildDirPath));
57
60
  }
@@ -81,4 +84,4 @@ function deliveryDir(repository, sha) {
81
84
  return `${BUILD_HOME}/.outerlayer/context/${repository}/${sha}`;
82
85
  }
83
86
 
84
- export { RUNNER_DIR_MODE, RUNNER_FILE_MODE, SHIM_DIR, attemptStamp, buildDir, buildsDir, contextHomeDir, deliveryDir, diskTemplatesDir, ghConfigDir, hostKeyPath, imagesDir, jobDir, jobsDir, mirrorDir, pidFilePath, repoCacheDir, rootfsDir, rootfsPathFor, runnerDir, runnerDirOfBuild, spoolDir, stagedContextDir, vmAssetsDir, vsockPath };
87
+ export { RUNNER_DIR_MODE, RUNNER_FILE_MODE, SHIM_DIR, attemptStamp, buildDir, buildsDir, contextHomeDir, deliveryDir, diskTemplatesDir, ghConfigDir, hostKeyPath, imagesDir, jobDir, jobsDir, keptContextDir, mirrorDir, pidFilePath, repoCacheDir, rootfsDir, rootfsPathFor, runnerDir, runnerDirOfBuild, spoolDir, stagedContextDir, vmAssetsDir, vsockPath };
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-L4CW6LZQ.js';
3
+ import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-RHAGBUL5.js';
4
4
  import { readFileSync, existsSync, rmSync, mkdirSync, writeFileSync, renameSync } from 'fs';
5
5
  import { join } from 'path';
6
6