@outerlayer/cli 0.36.0-next.20261030203048 → 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-E2ZTWJPM.js → check-MENIW2MN.js} +43 -44
- package/dist/{chunk-OSQEG4HG.js → chunk-25GQP6NR.js} +7026 -2552
- 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-LOI3ESFV.js → chunk-4AMSCAHT.js} +6 -151
- package/dist/{chunk-OJ2KWQPQ.js → chunk-4SFHEARD.js} +1 -1
- package/dist/{chunk-3XIAGOPV.js → chunk-5AJZGYWC.js} +4 -4
- package/dist/{chunk-D4BIUQPA.js → chunk-5H57X7YC.js} +1 -1
- package/dist/{chunk-BBUIVGIR.js → chunk-5UBNSGK3.js} +3 -3
- package/dist/{chunk-7ABJKQAQ.js → chunk-6IJZL7X2.js} +2 -2
- package/dist/{chunk-O6V6T6HD.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-TUN3TYBX.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-OFOEDDN6.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-3IQE34I3.js → chunk-K2YG2HZN.js} +19 -393
- 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-WQXEJ43L.js → chunk-OPF6OJAT.js} +4 -4
- package/dist/{chunk-XHDJ75TC.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-ID57YZP2.js → chunk-VJYNMGCE.js} +2 -2
- package/dist/{chunk-QZSA5R3L.js → chunk-VUG4IZ7H.js} +1 -1
- package/dist/{chunk-WXR6AVZ7.js → chunk-XTVVKNRP.js} +41 -10
- package/dist/{claude-launcher-FK5ZQWXC.js → claude-launcher-YV3TDXBU.js} +5 -5
- package/dist/{cli-YMCBXWRM.js → cli-TAFO3WOQ.js} +116 -118
- package/dist/{command-AYXNOGIU.js → command-TRSFSBT5.js} +45 -25
- 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-KS52ID4M.js → container-start-UY2YVY3L.js} +39 -40
- 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-GLN5QZJP.js → demo-voice-cmd-QAH7KPVO.js} +15 -16
- package/dist/dist-2SPMAD7Z.js +7 -0
- package/dist/{docker-3AZ3ZFLA.js → docker-2247NBIK.js} +3 -3
- package/dist/{doctor-TLIRZM2C.js → doctor-VVFPHFS4.js} +46 -27
- package/dist/{emit-artifact-cmd-CNC5CPKI.js → emit-artifact-cmd-3YHOU4TI.js} +13 -14
- 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-UXTH6XBO.js → emit-demo-cmd-V7CP333I.js} +15 -16
- package/dist/{emit-finding-cmd-5HZE7W6C.js → emit-finding-cmd-J5UZGNP4.js} +10 -10
- package/dist/{emit-result-cmd-KAEWXQIH.js → emit-result-cmd-IWMACBFI.js} +12 -13
- 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/{guest-init-2TTQKFFZ.js → guest-init-WPUS45IN.js} +2 -2
- package/dist/{hook-fast-EMZVAUJ5.js → hook-fast-3HPWMSFB.js} +1 -1
- package/dist/{host-checks-TRVDAYBL.js → host-checks-TX22YEFD.js} +37 -38
- package/dist/index.js +4 -4
- package/dist/{init-OOYCYL2C.js → init-36AY3ZQZ.js} +44 -24
- package/dist/init-IYL3YXEM.js +78 -0
- package/dist/{init-cmd-4PVOILZD.js → init-cmd-JK2OGQU5.js} +18 -18
- package/dist/{init-update-QMSQEZQU.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-EIR2YPA2.js → loop-U72FDFQR.js} +42 -43
- package/dist/machine-S2TYJJPP.js +78 -0
- 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-BKMFJ7RA.js → runner-key-6WN67PRU.js} +44 -24
- package/dist/{session-sender-QDZWNAY7.js → session-sender-EINASB3R.js} +13 -14
- 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-BZ37VEAJ.js → status-WCQG6SX4.js} +37 -38
- package/dist/{sync-cmd-MNXFOIHW.js → sync-cmd-Z6PU33GC.js} +12 -13
- package/dist/{update-steps-VPBGYVW5.js → update-steps-BOKCWGQ6.js} +38 -39
- package/dist/{watch-E7RGSZF6.js → watch-XNBXSIEI.js} +12 -13
- 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-B5X3AJQY.js → work-proofs-cmd-RPVVD2SC.js} +12 -12
- package/dist/{work-proofs-record-DDOAQOPX.js → work-proofs-record-ULCY5QEP.js} +19 -20
- package/dist/{work-stop-cmd-ANPTSTYS.js → work-stop-cmd-LF4OTNPL.js} +10 -10
- package/package.json +1 -1
- package/dist/chunk-PHFZMU32.js +0 -3924
- package/dist/chunk-TBT347UY.js +0 -41
- package/dist/dist-4Q4Y6YJL.js +0 -7
- package/dist/init-HEZDVJPU.js +0 -58
- package/dist/machine-23Y2EHH7.js +0 -58
- package/dist/{chunk-H2GESWLW.js → chunk-55PYF6S2.js} +1 -1
|
@@ -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';
|