@outerlayer/cli 0.36.0-next.20261030225631 → 0.36.0-next.20261031161320

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 (122) hide show
  1. package/README.md +7 -14
  2. package/dist/{agent-setup-RZE6O737.js → agent-setup-UYTS2PHZ.js} +11 -10
  3. package/dist/{artifact-link-cmd-DLKYKNWF.js → artifact-link-cmd-W7LRR76D.js} +2 -2
  4. package/dist/{build-GVNOXEDV.js → build-XZGB4JPQ.js} +7 -7
  5. package/dist/{build-disk-H5VDB4G2.js → build-disk-YLQT3UHL.js} +6 -6
  6. package/dist/build-info.json +1 -1
  7. package/dist/{builder-QW6N3XBA.js → builder-TS3QFXN4.js} +5 -5
  8. package/dist/{caller-TUO3VAKG.js → caller-VHISEQAD.js} +8 -8
  9. package/dist/{check-LUDLYHUR.js → check-ARDGJYVM.js} +39 -38
  10. package/dist/{chunk-VVUMAXFY.js → chunk-27DQ3DDF.js} +4 -4
  11. package/dist/{chunk-MJEUD4PD.js → chunk-3GFZSLSP.js} +4 -4
  12. package/dist/{chunk-YQDXFFOK.js → chunk-3PQTOKML.js} +1 -1
  13. package/dist/{chunk-OUMMLC45.js → chunk-3SQZ5LIK.js} +2 -2
  14. package/dist/{chunk-4PH4DVV4.js → chunk-46OBCATR.js} +4 -0
  15. package/dist/{chunk-VOURWC2H.js → chunk-4NMAJYYE.js} +1 -1
  16. package/dist/{chunk-Y6FSSKLW.js → chunk-4RSTPRMH.js} +2 -2
  17. package/dist/{chunk-OJ2KWQPQ.js → chunk-4SFHEARD.js} +1 -1
  18. package/dist/{chunk-D4BIUQPA.js → chunk-5H57X7YC.js} +1 -1
  19. package/dist/{chunk-OR2NXZ5Y.js → chunk-5UBNSGK3.js} +3 -3
  20. package/dist/{chunk-7ABJKQAQ.js → chunk-6IJZL7X2.js} +2 -2
  21. package/dist/{chunk-QH6RZLDV.js → chunk-6O33JZ3X.js} +3 -3
  22. package/dist/{chunk-7GX4X25F.js → chunk-7O7LJWQO.js} +1 -1
  23. package/dist/{chunk-ZJX3KECE.js → chunk-7SDVHXP7.js} +14 -14
  24. package/dist/{chunk-A2QQGMQ7.js → chunk-C4YULCXX.js} +7 -7
  25. package/dist/{chunk-TV5ITSVY.js → chunk-CIUD3436.js} +1 -1
  26. package/dist/chunk-F3ZMVUAS.js +40 -0
  27. package/dist/{chunk-5TJQBHKO.js → chunk-GDIVOYDA.js} +4 -4
  28. package/dist/{chunk-O3OREOCP.js → chunk-GDMAN42R.js} +2 -2
  29. package/dist/{chunk-JII4O3EZ.js → chunk-GU25RNKD.js} +3 -3
  30. package/dist/{chunk-HSSECQOA.js → chunk-H3S5LJI2.js} +3 -3
  31. package/dist/{chunk-TGVIFTKI.js → chunk-IGHAPIKZ.js} +1 -1
  32. package/dist/{chunk-BR2WJ6BX.js → chunk-IP7F4CQH.js} +2 -2
  33. package/dist/{chunk-6KLNELLP.js → chunk-IVY3PD7P.js} +3 -3
  34. package/dist/{chunk-AILO7SNG.js → chunk-JFMSFHER.js} +13 -211
  35. package/dist/{chunk-FCJWPFDS.js → chunk-JPROSTGX.js} +4 -4
  36. package/dist/{chunk-ZFGGCEH2.js → chunk-JVQYYVDS.js} +293 -119
  37. package/dist/{chunk-H3MLZ4EA.js → chunk-KB5B6ZT5.js} +1 -1
  38. package/dist/{chunk-YZXI37NW.js → chunk-LHFG5YUG.js} +2 -2
  39. package/dist/{chunk-WNM5GXJ3.js → chunk-LRCGXRQI.js} +2 -2
  40. package/dist/{chunk-RUML4JVG.js → chunk-LXYWSGEW.js} +1 -1
  41. package/dist/{chunk-KSMN2FUF.js → chunk-LZ7PAU55.js} +6 -2
  42. package/dist/{chunk-BIAXDR3K.js → chunk-MMXPNEEQ.js} +8 -8
  43. package/dist/{chunk-ZGFUZPJP.js → chunk-MR5MAX77.js} +2 -2
  44. package/dist/{chunk-7K7TGHDF.js → chunk-MXWPLGO6.js} +74 -707
  45. package/dist/{chunk-QLWEXEEA.js → chunk-NRTRPGCW.js} +1 -1
  46. package/dist/{chunk-EA57H6AT.js → chunk-OLENS2DD.js} +1 -1
  47. package/dist/{chunk-7SO2VHTQ.js → chunk-OUPQTA7N.js} +2 -2
  48. package/dist/{chunk-O6NQYFPH.js → chunk-PDQWXH3F.js} +5 -5
  49. package/dist/{chunk-H5XPKNQZ.js → chunk-PGWK2FH5.js} +6 -6
  50. package/dist/{chunk-GGNG6CVE.js → chunk-PN6TNCQI.js} +14 -7
  51. package/dist/{chunk-YTNZ237E.js → chunk-RGH5GYU2.js} +7 -7
  52. package/dist/{chunk-4A7GNO4U.js → chunk-RUK7QHSH.js} +4 -4
  53. package/dist/{chunk-UCRCIRQQ.js → chunk-S6OD32NC.js} +5 -5
  54. package/dist/{chunk-MVI3J4FN.js → chunk-SK7ZXQIV.js} +5 -5
  55. package/dist/{chunk-D3H37WUD.js → chunk-T3AJOPUR.js} +2 -2
  56. package/dist/{chunk-K6KO7TBK.js → chunk-TXJMHMPO.js} +12 -12
  57. package/dist/{chunk-UHD5ZR46.js → chunk-U553JKMO.js} +4 -4
  58. package/dist/{chunk-IZVBCDSH.js → chunk-VG2NIWR4.js} +4 -4
  59. package/dist/{chunk-6HRYB7M6.js → chunk-VHR3WQTP.js} +8 -8
  60. package/dist/{chunk-QZSA5R3L.js → chunk-VUG4IZ7H.js} +1 -1
  61. package/dist/{chunk-UI2VOW26.js → chunk-XTVVKNRP.js} +5 -8
  62. package/dist/{claude-launcher-FK5ZQWXC.js → claude-launcher-YV3TDXBU.js} +5 -5
  63. package/dist/{cli-NPNTAB2B.js → cli-YLO3M2X4.js} +117 -119
  64. package/dist/{command-XLXJGPRZ.js → command-IANIXN6N.js} +35 -34
  65. package/dist/{config-NVGVPL3L.js → config-FF3E73ZE.js} +7 -7
  66. package/dist/{connect-cmd-KO2TIY6J.js → connect-cmd-IRJ3MBPY.js} +8 -8
  67. package/dist/{container-start-ZCG3EHAO.js → container-start-EUTOX4EU.js} +36 -35
  68. package/dist/{context-cleanup-2MTGLUYS.js → context-cleanup-TPHCVVFV.js} +3 -3
  69. package/dist/{context-show-cmd-XLER7QAI.js → context-show-cmd-YQEQ5B34.js} +9 -9
  70. package/dist/{control-plane-launch-RUJOCYEI.js → control-plane-launch-UWFQWMWB.js} +11 -6
  71. package/dist/{demo-record-cmd-NUGDPXWS.js → demo-record-cmd-Y57UWBCX.js} +3 -3
  72. package/dist/{demo-voice-cmd-VIMMLCLO.js → demo-voice-cmd-QFVATHAQ.js} +15 -15
  73. package/dist/dist-2SPMAD7Z.js +7 -0
  74. package/dist/{docker-3AZ3ZFLA.js → docker-6QIZVYF3.js} +5 -5
  75. package/dist/{doctor-TIBTSPML.js → doctor-VSPDIR6T.js} +36 -35
  76. package/dist/{emit-artifact-cmd-PLTXEBPU.js → emit-artifact-cmd-3YHOU4TI.js} +13 -13
  77. package/dist/{emit-cmd-6NZOT5DS.js → emit-cmd-HNXRGC5Z.js} +7 -6
  78. package/dist/{emit-criteria-cmd-BNXWF46E.js → emit-criteria-cmd-NN52H53B.js} +10 -10
  79. package/dist/{emit-demo-cmd-C6IQPCW7.js → emit-demo-cmd-ZYMLB5R5.js} +15 -15
  80. package/dist/{emit-finding-cmd-5HZE7W6C.js → emit-finding-cmd-J5UZGNP4.js} +10 -10
  81. package/dist/{emit-result-cmd-WCNYSHDK.js → emit-result-cmd-IWMACBFI.js} +12 -12
  82. package/dist/{emit-step-cmd-HSKB3SNR.js → emit-step-cmd-SRWFWEU7.js} +10 -10
  83. package/dist/{exec-client-UHL7WPDO.js → exec-client-FGGPQSYQ.js} +1 -1
  84. package/dist/find-unit-EX5ETHGL.js +19 -0
  85. package/dist/{findings-cmd-2OQMIVHA.js → findings-cmd-BWTLCXDR.js} +10 -10
  86. package/dist/{fleet-readiness-PCQSCHQ5.js → fleet-readiness-FAKMWCJV.js} +8 -8
  87. package/dist/{governing-source-7XCL3AYM.js → governing-source-6ANJ4HQI.js} +14 -13
  88. package/dist/{hook-fast-EMZVAUJ5.js → hook-fast-3HPWMSFB.js} +1 -1
  89. package/dist/{host-checks-ULFOOLWB.js → host-checks-3QBPJLSG.js} +34 -33
  90. package/dist/index.js +4 -4
  91. package/dist/{init-JQTQWAM7.js → init-5QYRPZ63.js} +34 -33
  92. package/dist/{init-ZZJ57EDL.js → init-JLOGNKPC.js} +34 -33
  93. package/dist/{init-cmd-UKT7YW5U.js → init-cmd-NDXN2XPU.js} +18 -18
  94. package/dist/{init-update-2SN2GCTM.js → init-update-4IQPGOA6.js} +24 -31
  95. package/dist/{layout-YJ2RD5H2.js → layout-TLUOMM6F.js} +4 -4
  96. package/dist/{login-browser-TWUHD2DS.js → login-browser-ODTJEGDN.js} +2 -2
  97. package/dist/{loop-M6SSY52X.js → loop-I7ZM4CEZ.js} +38 -37
  98. package/dist/{machine-7Z2IVG7X.js → machine-7NYF2WBI.js} +34 -33
  99. package/dist/{machine-skills-FWIZV5HO.js → machine-skills-VRUJVBQV.js} +4 -4
  100. package/dist/{runner-env-IDGTVTYW.js → runner-env-LWKAYARL.js} +9 -9
  101. package/dist/{runner-identity-RJYVFQ5K.js → runner-identity-WUAQLGRY.js} +5 -5
  102. package/dist/{runner-key-ESSC2IKR.js → runner-key-VVLYZFP6.js} +34 -33
  103. package/dist/{session-sender-NCSDRNCM.js → session-sender-EINASB3R.js} +13 -13
  104. package/dist/{spec-cmd-OYQEUAMI.js → spec-cmd-253AGRFF.js} +11 -11
  105. package/dist/{starter-pack-6FOYP6DY.js → starter-pack-7QNUT74O.js} +5 -5
  106. package/dist/{status-ECHO7NRV.js → status-I3TV7ZZV.js} +34 -33
  107. package/dist/{sync-cmd-7LESBUTT.js → sync-cmd-Z6PU33GC.js} +12 -12
  108. package/dist/{update-steps-JH7PPGPD.js → update-steps-VOSUXXMS.js} +35 -34
  109. package/dist/{watch-RSUPBIJS.js → watch-XNBXSIEI.js} +12 -12
  110. package/dist/{work-claim-cmd-HX7DGFY3.js → work-claim-cmd-KG3VBBZ2.js} +17 -17
  111. package/dist/{work-cmd-IEC6XKC6.js → work-cmd-JZUBXXJN.js} +10 -10
  112. package/dist/{work-comment-cmd-X65LS27O.js → work-comment-cmd-L4R6ZXLO.js} +12 -12
  113. package/dist/{work-demo-cmd-D7WGXJOC.js → work-demo-cmd-YNPN2PHQ.js} +10 -10
  114. package/dist/{work-logs-cmd-FQH2UVMI.js → work-logs-cmd-CSQJB5MD.js} +10 -10
  115. package/dist/{work-open-pr-cmd-EFAFERSF.js → work-open-pr-cmd-Y7YNI2PF.js} +11 -11
  116. package/dist/{work-pr-cmd-E55GPZKO.js → work-pr-cmd-QGAOPNLV.js} +10 -10
  117. package/dist/{work-proofs-cmd-V2O2DTAQ.js → work-proofs-cmd-74Z72ZG6.js} +12 -12
  118. package/dist/{work-proofs-record-XJFVH7B4.js → work-proofs-record-LT7UXHNZ.js} +19 -19
  119. package/dist/{work-stop-cmd-ANPTSTYS.js → work-stop-cmd-LF4OTNPL.js} +10 -10
  120. package/package.json +1 -1
  121. package/dist/dist-4Q4Y6YJL.js +0 -7
  122. package/dist/find-unit-CNYGB5AN.js +0 -19
@@ -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,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { sanitizeTerminal } from './chunk-YQDXFFOK.js';
4
- import { resolvePackRoot } from './chunk-7GX4X25F.js';
5
- import { parseProofsConfig } from './chunk-AILO7SNG.js';
6
- import { CHECK_ITEM_REASON_MAX_LENGTH, CheckItemsSchema } from './chunk-QZSA5R3L.js';
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-2MTGLUYS.js');
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-RUJOCYEI.js');
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-YZXI37NW.js';
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-7K7TGHDF.js';
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-QZSA5R3L.js';
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';
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-TGVIFTKI.js';
4
- import { parseSize } from './chunk-QH6RZLDV.js';
5
- import { builderDiskPinned } from './chunk-7SO2VHTQ.js';
3
+ import { DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-IGHAPIKZ.js';
4
+ import { parseSize } from './chunk-6O33JZ3X.js';
5
+ import { builderDiskPinned } from './chunk-OUPQTA7N.js';
6
6
  import { homeFromEnv } from './chunk-352DHUTP.js';
7
7
  import { isRefusedInConfig, resolveDestinations, isReservedVariable } from './chunk-GANAOCHR.js';
8
8
  import { existsSync, statSync, accessSync, constants, readFileSync } from 'fs';
@@ -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-QH6RZLDV.js';
3
+ import { parseSize, BUILD_LABEL, RUNNER_LABEL, runnerLabelValue } from './chunk-6O33JZ3X.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,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { builtinKind, keepsHostBuilder } from './chunk-HSSECQOA.js';
4
- import { parseSize } from './chunk-QH6RZLDV.js';
3
+ import { builtinKind, keepsHostBuilder } from './chunk-H3S5LJI2.js';
4
+ import { parseSize } from './chunk-6O33JZ3X.js';
5
5
  import { runnerDir } from './chunk-WT7J2627.js';
6
6
  import { FD_SLOTS_PER_BUILD, FD_STORE_ENV, BUILD_SLICE_MEMORY_ENV, CLAUDE_CREDENTIAL_ID, CLAUDE_ENV_FILE, credentialLineIn, withoutCredentialLines } from './chunk-GANAOCHR.js';
7
7
  import { existsSync, readFileSync, writeFileSync, chmodSync, renameSync } from 'fs';
@@ -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-YZXI37NW.js';
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-7K7TGHDF.js';
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-QZSA5R3L.js';
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-QZSA5R3L.js';
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 AGENTS_MD_TIER_KINDS = ["skill", "command", "mcp"];
7655
- function unsupportedKindWarnings(targetId, input, kinds, note) {
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-D4BIUQPA.js';
4
- import { sanitizeTerminal } from './chunk-YQDXFFOK.js';
5
- import { isAgentsMdLayout } from './chunk-WNM5GXJ3.js';
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-7K7TGHDF.js';
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';