@outerlayer/cli 0.38.0-next.20261111182110 → 0.38.0-next.20261111231234
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 +4 -0
- package/dist/agent-setup-3GY4FFSC.js +40 -0
- package/dist/{agent-subcommand-NZFPV3MV.js → agent-subcommand-VDN4AFAJ.js} +5 -5
- package/dist/{artifact-link-cmd-L4BXSQQP.js → artifact-link-cmd-A7SROEQS.js} +2 -2
- package/dist/{bridge-OBIGQXDH.js → bridge-QUQYCBQN.js} +8 -8
- package/dist/{build-4IYEB6OE.js → build-SD44TP2B.js} +14 -14
- package/dist/{build-disk-2MOEPIZF.js → build-disk-4PCVGMAT.js} +12 -12
- package/dist/build-info.json +1 -1
- package/dist/{builder-SVI2D35R.js → builder-JG2DHKSN.js} +11 -11
- package/dist/caller-A2K7SLSL.js +23 -0
- package/dist/{check-XIJ2MOWV.js → check-JNQVYVHI.js} +58 -58
- package/dist/{chunk-QHYCF36K.js → chunk-26BFN6DH.js} +1 -1
- package/dist/{chunk-3YJJ2JDV.js → chunk-2UCTMANO.js} +1 -1
- package/dist/{chunk-MOA4PGYL.js → chunk-2VJVPP5Y.js} +1 -1
- package/dist/{chunk-KA4BMGBR.js → chunk-3C23ZPWR.js} +2 -2
- package/dist/{chunk-TH3K67SR.js → chunk-3T7PXUHN.js} +9 -9
- package/dist/{chunk-ZC2BXXKB.js → chunk-3VWX5BYV.js} +17 -16
- package/dist/{chunk-36XB56GG.js → chunk-43R7JHQI.js} +5 -5
- package/dist/{chunk-SIGBRVEF.js → chunk-4FHDVWKO.js} +18 -5
- package/dist/{chunk-MOFT7QCR.js → chunk-4T2NBVC4.js} +5 -5
- package/dist/{chunk-6FQSV7ZK.js → chunk-5NK2KKG6.js} +3 -3
- package/dist/{chunk-NEXKR5RR.js → chunk-5NVF5TAL.js} +6 -1
- package/dist/{chunk-6GZL5RIV.js → chunk-5OSY3LK3.js} +30 -13
- package/dist/{chunk-OKAAVLLW.js → chunk-5TMM2K23.js} +4 -4
- package/dist/{chunk-PBHAM73F.js → chunk-5UFAWMET.js} +3 -3
- package/dist/{chunk-KR34GXEH.js → chunk-6FB7NTJK.js} +1 -1
- package/dist/{chunk-VNHCN75M.js → chunk-6X2BSMRM.js} +1 -1
- package/dist/{chunk-JDOEEKPN.js → chunk-722KABMV.js} +25 -9
- package/dist/{chunk-IN7QCBO5.js → chunk-7DIYEB3X.js} +6 -6
- package/dist/{chunk-6XORUAR7.js → chunk-7GJEQXOH.js} +1 -1
- package/dist/{chunk-J345NEVJ.js → chunk-A4NWDCWS.js} +5 -5
- package/dist/{chunk-LW5RIKAV.js → chunk-B2SHUO6J.js} +1 -1
- package/dist/{chunk-UWLCJZ45.js → chunk-BBRXFXBB.js} +1 -1
- package/dist/{chunk-3SHX2D37.js → chunk-BJIJYPGC.js} +5 -5
- package/dist/{chunk-N3KGXHV4.js → chunk-BUT777XB.js} +1 -1
- package/dist/{chunk-XAVR7JHO.js → chunk-C4R6LMPQ.js} +10 -10
- package/dist/{chunk-BECC4325.js → chunk-DLUBSTLW.js} +8 -8
- package/dist/{chunk-DKRZZBKI.js → chunk-DZFIRKDZ.js} +3 -3
- package/dist/{chunk-TMROYEP4.js → chunk-ECNWHXIO.js} +4 -4
- package/dist/{chunk-NFPJ2XC2.js → chunk-EJ7ZXBXS.js} +3 -3
- package/dist/{chunk-ATEMEVFF.js → chunk-ELPP5OHC.js} +1 -1
- package/dist/{chunk-6BXJESQF.js → chunk-ERG3WCEC.js} +9 -9
- package/dist/{chunk-QBJ7MMOT.js → chunk-EUHUIIGT.js} +16 -5
- package/dist/{chunk-FQPGZOH3.js → chunk-FUZEOWF4.js} +1 -1
- package/dist/{chunk-ZQII2ZRP.js → chunk-I5U6CFH4.js} +1 -1
- package/dist/{chunk-WV4T6ZOQ.js → chunk-I62FX622.js} +2 -2
- package/dist/{chunk-ORLJK7UT.js → chunk-IGBPPM7F.js} +7 -7
- package/dist/{chunk-36M66QKN.js → chunk-J6KKJGR7.js} +2 -1
- package/dist/{chunk-DULO2L5B.js → chunk-JIANCWJ3.js} +1 -1
- package/dist/{chunk-6XMC6R4W.js → chunk-KVWFAAAQ.js} +1 -1
- package/dist/{chunk-USINHGZI.js → chunk-KZU5WQK5.js} +3 -3
- package/dist/{chunk-I45HTSSA.js → chunk-LVELQ635.js} +1 -1
- package/dist/{chunk-RHPEAVKR.js → chunk-MVERFCX4.js} +1 -1
- package/dist/{chunk-BIMHESZG.js → chunk-N6BNN6ZD.js} +1 -1
- package/dist/{chunk-AJ3YUM23.js → chunk-NDQC2WUJ.js} +1 -1
- package/dist/{chunk-ABRGN5OA.js → chunk-NO4N4D32.js} +4 -4
- package/dist/{chunk-33XLQIV4.js → chunk-NRDFBOKE.js} +3 -3
- package/dist/{chunk-LVNMKOWI.js → chunk-OAPWDSBW.js} +2 -2
- package/dist/{chunk-CT4PKI24.js → chunk-OTWTUHWY.js} +339 -113
- package/dist/{chunk-UPUHL3KC.js → chunk-OYRAQXRQ.js} +7 -7
- package/dist/{chunk-DKTXQ7XQ.js → chunk-PCGU6T7J.js} +2 -2
- package/dist/{chunk-OPCFOIZJ.js → chunk-POBH5YCG.js} +1 -1
- package/dist/{chunk-LKLP5YMH.js → chunk-Q7J4T2VP.js} +7 -7
- package/dist/{chunk-PDPBWX67.js → chunk-QYLBGMTA.js} +17 -6
- package/dist/{chunk-3Z5KBFBB.js → chunk-RCK2MJRG.js} +2 -2
- package/dist/{chunk-F3RBGMHL.js → chunk-RUX4M4AX.js} +1 -1
- package/dist/{chunk-QENFVQ7O.js → chunk-SFSE6YDX.js} +56 -16
- package/dist/{chunk-NJ6IJFKR.js → chunk-SLORYOL4.js} +1 -1
- package/dist/{chunk-QH5NV7EQ.js → chunk-T4FSZ7LA.js} +7 -7
- package/dist/{chunk-4G5SYPK2.js → chunk-UXARYJQ4.js} +1 -1
- package/dist/{chunk-CZDYUKA6.js → chunk-VBSKVGWP.js} +7 -7
- package/dist/{chunk-D5GR3U2O.js → chunk-VRDHLSR2.js} +10 -10
- package/dist/{chunk-AMFCM4H7.js → chunk-VV445Q2R.js} +3 -3
- package/dist/{chunk-UKEJBA5Y.js → chunk-W7BF2RXV.js} +4 -4
- package/dist/{chunk-7GUD2FIF.js → chunk-WFYKTAXZ.js} +1 -1
- package/dist/{chunk-4AEOP5PD.js → chunk-WG5OBUIZ.js} +6 -6
- package/dist/{chunk-IHM7K6RS.js → chunk-Y25ONBS6.js} +4 -4
- package/dist/{chunk-BATSP67Z.js → chunk-Y5S6EUGK.js} +6 -6
- package/dist/{chunk-6YOXYZC2.js → chunk-YZVNZWKD.js} +7 -7
- package/dist/{chunk-CAQSGGPJ.js → chunk-Z42UKOZ6.js} +6 -6
- package/dist/{chunk-SASWFX22.js → chunk-Z7XFVFW2.js} +1 -1
- package/dist/{chunk-3BEMKOFH.js → chunk-ZCX43KZ5.js} +1 -1
- package/dist/{chunk-VQ6ZKSNL.js → chunk-ZH5YLKO6.js} +1 -1
- package/dist/{chunk-QMCWSBQO.js → chunk-ZJHWXRT4.js} +2 -2
- package/dist/{chunk-DE3NQAR7.js → chunk-ZU6LNR3G.js} +3 -3
- package/dist/{chunk-R3S2A7YF.js → chunk-ZUUA6ZGD.js} +97 -49
- package/dist/{claude-launcher-GIT7VNYK.js → claude-launcher-5ALZD5WD.js} +8 -8
- package/dist/{cli-Y5CRBNQQ.js → cli-OUL7NQWX.js} +172 -162
- package/dist/{cli-update-notice-OC4SOSZE.js → cli-update-notice-XZ7I7OWP.js} +2 -2
- package/dist/{command-2RX7FULE.js → command-ASXZLHXU.js} +53 -53
- package/dist/config-5KMNGNK5.js +22 -0
- package/dist/{connect-cmd-DSP6HJRP.js → connect-cmd-XR7XPGQ6.js} +15 -15
- package/dist/{container-start-DFFZVSGX.js → container-start-6FHPPHMU.js} +51 -51
- package/dist/{context-cleanup-FIQMPC6F.js → context-cleanup-HHMQV7KH.js} +5 -5
- package/dist/{context-show-cmd-BPZX3OUE.js → context-show-cmd-4EKSCIF4.js} +16 -16
- package/dist/{control-plane-launch-IIHRG233.js → control-plane-launch-AJPCKLBL.js} +16 -16
- package/dist/{demo-record-cmd-PI7QDFRP.js → demo-record-cmd-LVZOYPR7.js} +9 -9
- package/dist/{demo-voice-cmd-CMCPERTJ.js → demo-voice-cmd-DT6VFD2U.js} +22 -22
- package/dist/{dist-JSSJSW2B.js → dist-7JDEWP5U.js} +2 -2
- package/dist/docker-T7A6GZDD.js +20 -0
- package/dist/{doctor-ZVHGEA3C.js → doctor-FATFZWEA.js} +53 -53
- package/dist/emit-artifact-cmd-B5ZYJKFM.js +44 -0
- package/dist/{emit-cmd-QGVMVSLS.js → emit-cmd-P2XWWVFP.js} +8 -8
- package/dist/emit-criteria-cmd-RHFJYNSU.js +35 -0
- package/dist/{emit-demo-cmd-KLYEKCB3.js → emit-demo-cmd-WELKVLD4.js} +22 -22
- package/dist/{emit-finding-cmd-FZWK3Y4Q.js → emit-finding-cmd-KRNEWZQP.js} +18 -18
- package/dist/{emit-result-cmd-TODAXDFJ.js → emit-result-cmd-NQ6LAE4Z.js} +20 -20
- package/dist/{emit-step-cmd-QI52ZB57.js → emit-step-cmd-HKOYFSYL.js} +18 -18
- package/dist/{exec-client-YQCKCZGW.js → exec-client-2JSXFMEW.js} +9 -9
- package/dist/find-unit-3QYPTK6A.js +24 -0
- package/dist/{findings-cmd-O7I2GKRO.js → findings-cmd-EF4QXYRT.js} +18 -18
- package/dist/{fleet-readiness-BY7PY5FF.js → fleet-readiness-NBYN45IT.js} +16 -16
- package/dist/governing-source-C7MY7KB2.js +41 -0
- package/dist/guest-init-FX2NUAW6.js +20 -0
- package/dist/{hook-fast-3BGU6BF2.js → hook-fast-JZKCKSXB.js} +3 -3
- package/dist/{hook-install-6H6W4UM2.js → hook-install-R66RP7ME.js} +5 -5
- package/dist/host-checks-CZGNR4VC.js +80 -0
- package/dist/host-key-ACYKDZ4X.js +18 -0
- package/dist/{image-tag-IJKYPT6D.js → image-tag-H5CZTC42.js} +9 -9
- package/dist/index.js +4 -4
- package/dist/{init-65RN5X55.js → init-5S6A2SYN.js} +49 -49
- package/dist/init-WDYDTJW2.js +80 -0
- package/dist/{init-agent-R4ZOEFI3.js → init-agent-PJFH7OFD.js} +49 -49
- package/dist/{init-cmd-L4EFMAQ4.js → init-cmd-5SCU7AVL.js} +29 -29
- package/dist/{init-update-ACLVXFS7.js → init-update-NXDPWHK6.js} +26 -26
- package/dist/install-cmd-TMUNQF7U.js +21 -0
- package/dist/{layout-MBCG2IHB.js → layout-LTYJDJ5J.js} +5 -5
- package/dist/{login-browser-COSWHZEC.js → login-browser-LSZKECIB.js} +2 -2
- package/dist/{logs-VX2SXLJH.js → logs-ZEXFSBVF.js} +8 -8
- package/dist/loop-Q76PDO7L.js +90 -0
- package/dist/machine-GI6SZMEK.js +80 -0
- package/dist/{machine-skills-RPKQK52T.js → machine-skills-CYCZGBAM.js} +5 -5
- package/dist/{mcp-install-cmd-GN2K2JM3.js → mcp-install-cmd-TVIOPOIO.js} +5 -5
- package/dist/{mcp-serve-cmd-P34CQIBX.js → mcp-serve-cmd-OCQLRUAK.js} +11 -11
- package/dist/{paths-HV3G2EHE.js → paths-IB5XFML7.js} +8 -8
- package/dist/pending-TX4VIF6P.js +18 -0
- package/dist/{pidfile-4ZG5I7ZR.js → pidfile-VET4I455.js} +9 -9
- package/dist/{record-3XWPD2UP.js → record-3V3HQRGY.js} +9 -9
- package/dist/{relay-ZOWT4YLQ.js → relay-V7LX2WR6.js} +6 -6
- package/dist/{relay-protocol-FDFEVLQT.js → relay-protocol-QGEWESBF.js} +6 -6
- package/dist/{run-cmd-ZVNOKJB3.js → run-cmd-M5THCWDD.js} +18 -18
- package/dist/{runner-agents-3NUGNJD6.js → runner-agents-OTYZ73WU.js} +5 -5
- package/dist/runner-env-3QPJQ2H2.js +24 -0
- package/dist/{runner-identity-F2Z3TXJ7.js → runner-identity-GTWFQEIN.js} +11 -11
- package/dist/{runner-key-AOK7W733.js → runner-key-ZXNXWBSP.js} +49 -49
- package/dist/{session-sender-V3INPB34.js → session-sender-AEUNLU5R.js} +21 -21
- package/dist/{spec-cmd-LYGXRFVY.js → spec-cmd-4EB45ELL.js} +109 -22
- package/dist/{starter-pack-7QA7J5FT.js → starter-pack-HMJWEIVX.js} +6 -6
- package/dist/state-O3A3CIDQ.js +18 -0
- package/dist/{status-SPPT7WU5.js → status-R4JD34DO.js} +49 -49
- package/dist/{sync-cmd-EDSOKOXS.js → sync-cmd-2HOFZYI6.js} +20 -20
- package/dist/update-steps-CGWJJ2IA.js +81 -0
- package/dist/{watch-GBDNXFAK.js → watch-ZY62C5WB.js} +20 -20
- package/dist/{work-claim-cmd-SHKDYS7J.js → work-claim-cmd-4KQYRNRC.js} +27 -27
- package/dist/work-cmd-GNYWSA2O.js +33 -0
- package/dist/work-comment-cmd-7D3DHQ3O.js +39 -0
- package/dist/{work-demo-cmd-YJ654BQP.js → work-demo-cmd-PDILNMRF.js} +18 -18
- package/dist/{work-logs-cmd-RUNYYALP.js → work-logs-cmd-ER3AYV62.js} +18 -18
- package/dist/{work-needs-attention-cmd-NRDFGJPP.js → work-needs-attention-cmd-MAFPEANV.js} +18 -18
- package/dist/{work-no-change-cmd-FDA7PYB7.js → work-no-change-cmd-GDN5EE6N.js} +18 -18
- package/dist/{work-open-pr-cmd-LEWPNTW5.js → work-open-pr-cmd-56TRIE5I.js} +19 -19
- package/dist/work-pr-cmd-W3T6ELML.js +34 -0
- package/dist/{work-proofs-cmd-QKIEJJRF.js → work-proofs-cmd-Y2OMM37N.js} +20 -20
- package/dist/{work-proofs-record-2M4A5OIF.js → work-proofs-record-I2VLOMRD.js} +26 -26
- package/dist/{work-stop-cmd-HH2SSJIO.js → work-stop-cmd-PREZOSNY.js} +18 -18
- package/package.json +3 -3
- package/skill-pack/maintained/outerlayer-amend/references/threads.md +10 -4
- package/skill-pack/maintained/outerlayer-build/SKILL.md +8 -0
- package/skill-pack/maintained/outerlayer-build/references/agent-briefs.md +1 -1
- package/skill-pack/maintained/outerlayer-build/references/code-review-judge.md +15 -5
- package/skill-pack/maintained/outerlayer-revise/SKILL.md +68 -0
- package/skill-pack/maintained/outerlayer-spec/SKILL.md +149 -0
- package/skill-pack/maintained/outerlayer-spec/references/revise-an-issue.md +14 -0
- package/skill-pack/shipped.json +1 -0
- package/skill-pack/template/spec/SKILL.md +5 -120
- package/dist/agent-setup-U4XTZO56.js +0 -40
- package/dist/caller-PW7R46M7.js +0 -23
- package/dist/config-AOOR5BPQ.js +0 -22
- package/dist/docker-6MPPSTR4.js +0 -20
- package/dist/emit-artifact-cmd-VJ3C36RU.js +0 -44
- package/dist/emit-criteria-cmd-UOHOOSVV.js +0 -35
- package/dist/find-unit-YT25OH3F.js +0 -24
- package/dist/governing-source-XRLJFSPE.js +0 -41
- package/dist/guest-init-X2HLNETS.js +0 -20
- package/dist/host-checks-U5JKQQMM.js +0 -80
- package/dist/host-key-KQ6JWRB4.js +0 -18
- package/dist/init-CYTHJSTQ.js +0 -80
- package/dist/install-cmd-DHIVJEBO.js +0 -21
- package/dist/loop-4ATDJGQV.js +0 -90
- package/dist/machine-UIA7MN3U.js +0 -80
- package/dist/pending-I2EJ7TMY.js +0 -18
- package/dist/runner-env-JS2WDB5L.js +0 -24
- package/dist/state-64OMLIN4.js +0 -18
- package/dist/update-steps-XPEATLFQ.js +0 -81
- package/dist/work-cmd-QR62TX6Q.js +0 -33
- package/dist/work-comment-cmd-DUDVMT6U.js +0 -39
- package/dist/work-pr-cmd-Y4O34WDA.js +0 -34
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { builtInEnvironment, managedAgentCredential, agentCredential, builtInNames, TARGET_TUNNEL, TARGET_LEASE, destinationTarget, builtInDestinations, destinationPort } from './chunk-
|
|
4
|
-
import { strippedVariables } from './chunk-
|
|
5
|
-
import { defaultAgents } from './chunk-
|
|
3
|
+
import { builtInEnvironment, managedAgentCredential, agentCredential, builtInNames, TARGET_TUNNEL, TARGET_LEASE, destinationTarget, builtInDestinations, destinationPort } from './chunk-EJ7ZXBXS.js';
|
|
4
|
+
import { strippedVariables } from './chunk-J6KKJGR7.js';
|
|
5
|
+
import { defaultAgents } from './chunk-QYLBGMTA.js';
|
|
6
6
|
import { PROVIDERS } from './chunk-7PZDPISM.js';
|
|
7
|
-
import { MIN_SCRUBBED_LITERAL } from './chunk-
|
|
7
|
+
import { MIN_SCRUBBED_LITERAL } from './chunk-7GJEQXOH.js';
|
|
8
8
|
import { mkdirSync, writeFileSync, existsSync, unlinkSync, chmodSync } from 'fs';
|
|
9
9
|
import { request as request$1, createServer } from 'http';
|
|
10
10
|
import { request } from 'https';
|
|
@@ -489,6 +489,19 @@ function parseClaimedRepositories(value) {
|
|
|
489
489
|
const at = primaryAt === -1 ? 0 : primaryAt;
|
|
490
490
|
return [{ ...parsed[at], primary: true }, ...parsed.filter((_, index) => index !== at).map((entry) => ({ ...entry, primary: false }))];
|
|
491
491
|
}
|
|
492
|
+
function parseBranchlessRepositories(value) {
|
|
493
|
+
if (!Array.isArray(value) || value.length === 0) return void 0;
|
|
494
|
+
const parsed = [];
|
|
495
|
+
for (const entry of value) {
|
|
496
|
+
if (typeof entry !== "object" || entry === null) return null;
|
|
497
|
+
const { repository, primary } = entry;
|
|
498
|
+
if (typeof repository !== "string" || repository === "") return null;
|
|
499
|
+
parsed.push({ repository, primary: primary === true });
|
|
500
|
+
}
|
|
501
|
+
const primaryAt = parsed.findIndex((entry) => entry.primary);
|
|
502
|
+
const at = primaryAt === -1 ? 0 : primaryAt;
|
|
503
|
+
return [{ ...parsed[at], primary: true }, ...parsed.filter((_, index) => index !== at).map((entry) => ({ ...entry, primary: false }))];
|
|
504
|
+
}
|
|
492
505
|
function parseUnreachable(value) {
|
|
493
506
|
if (!Array.isArray(value)) return [];
|
|
494
507
|
const entries = [];
|
|
@@ -1315,4 +1328,4 @@ async function startBuildServices(input) {
|
|
|
1315
1328
|
}
|
|
1316
1329
|
}
|
|
1317
1330
|
|
|
1318
|
-
export { BUILD_HOME, CHECKOUT_DIR, CHECK_ITEMS_FILE, DESTINATION_BASE_PORT, EVAL_INPUT_DIR, IMAGE_BUNDLES, JOB_MOUNT, PROXY_WARNING_FLAG, RELAY_PORT, SANDBOX_VARIABLES, SCRUB_ENV_VARIABLE, STAND_IN, SandboxError, applyTrust, authorEnvironment, buildAuthorityFor, buildEnvironment, carried6to4, checkEnvironment, checkoutPath, classifyAddress, commitIdentityRecord, containerLocalAddress, createSandboxClient, describeSandboxError, destinationEnvironment, dropBuildAuthority, droppedRequestHeaders, hasDotDotSegment, headerVariables, heldBuildAuthority, hostKeyOf, isMiseVariableAllowed, isRefusedInConfig, isReservedVariable, lifecycleWorkdir, parseClaimIdentity, parseClaimedRepositories, parseIsolation, parseProxied, parseUnreachable, primaryOf, proxyEnvironment, readBundleScript, repositoriesOf, repositoryPath, resolveDestinations, routeNameOf, sandboxSettingsFrom, sharedUserEnvironment, startBuildServices, tokenHeader, toolProxyEnvironment, trustEnvironment, variableForPath, variablesFor, withGitConfig, withHooksPath, withMiseVariables, withTokenHeader, withTunnelRecord, writeTrustFiles };
|
|
1331
|
+
export { BUILD_HOME, CHECKOUT_DIR, CHECK_ITEMS_FILE, DESTINATION_BASE_PORT, EVAL_INPUT_DIR, IMAGE_BUNDLES, JOB_MOUNT, PROXY_WARNING_FLAG, RELAY_PORT, SANDBOX_VARIABLES, SCRUB_ENV_VARIABLE, STAND_IN, SandboxError, applyTrust, authorEnvironment, buildAuthorityFor, buildEnvironment, carried6to4, checkEnvironment, checkoutPath, classifyAddress, commitIdentityRecord, containerLocalAddress, createSandboxClient, describeSandboxError, destinationEnvironment, dropBuildAuthority, droppedRequestHeaders, hasDotDotSegment, headerVariables, heldBuildAuthority, hostKeyOf, isMiseVariableAllowed, isRefusedInConfig, isReservedVariable, lifecycleWorkdir, parseBranchlessRepositories, parseClaimIdentity, parseClaimedRepositories, parseIsolation, parseProxied, parseUnreachable, primaryOf, proxyEnvironment, readBundleScript, repositoriesOf, repositoryPath, resolveDestinations, routeNameOf, sandboxSettingsFrom, sharedUserEnvironment, startBuildServices, tokenHeader, toolProxyEnvironment, trustEnvironment, variableForPath, variablesFor, withGitConfig, withHooksPath, withMiseVariables, withTokenHeader, withTunnelRecord, writeTrustFiles };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { mcpTargetPath, INIT_STDIO_ENTRY, INIT_DOCS_ENTRY, DOCS_MCP_SERVER_NAME } from './chunk-
|
|
4
|
-
import { VALIDATOR_FILES, VALIDATORS_DIR, POLICY_PATH, POLICY_CONTENT } from './chunk-
|
|
5
|
-
import { skillsBaseFor } from './chunk-
|
|
3
|
+
import { mcpTargetPath, INIT_STDIO_ENTRY, INIT_DOCS_ENTRY, DOCS_MCP_SERVER_NAME } from './chunk-SLORYOL4.js';
|
|
4
|
+
import { VALIDATOR_FILES, VALIDATORS_DIR, POLICY_PATH, POLICY_CONTENT } from './chunk-KZU5WQK5.js';
|
|
5
|
+
import { skillsBaseFor } from './chunk-ZCX43KZ5.js';
|
|
6
6
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
7
7
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
8
|
-
import { hasSymlinkComponent } from './chunk-
|
|
8
|
+
import { hasSymlinkComponent } from './chunk-B2SHUO6J.js';
|
|
9
9
|
import { cloneIsGoverned } from './chunk-YQR6E6OV.js';
|
|
10
|
-
import { resolvePackRoot, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, restoreSkillPaths, rewriteSkillPaths, skillDir, loadTemplateFiles, TEMPLATE_SKILLS } from './chunk-
|
|
10
|
+
import { resolvePackRoot, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, restoreSkillPaths, rewriteSkillPaths, skillDir, loadTemplateFiles, TEMPLATE_SKILLS } from './chunk-QYLBGMTA.js';
|
|
11
11
|
import { createHash } from 'crypto';
|
|
12
12
|
import { existsSync, readFileSync } from 'fs';
|
|
13
13
|
import { join } from 'path';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { launcherPath, pathNotes, writeLauncher, LauncherWriteError } from './chunk-
|
|
4
|
-
import { currentVersion, currentLink, versionDir, execStartLine, isInLayout, packageRootIn, switchCurrent } from './chunk-
|
|
3
|
+
import { launcherPath, pathNotes, writeLauncher, LauncherWriteError } from './chunk-ZH5YLKO6.js';
|
|
4
|
+
import { currentVersion, currentLink, versionDir, execStartLine, isInLayout, packageRootIn, switchCurrent } from './chunk-POBH5YCG.js';
|
|
5
5
|
import { compareVersions } from './chunk-TQMI335S.js';
|
|
6
|
-
import { runnerDir, RUNNER_DIR_MODE } from './chunk-
|
|
6
|
+
import { runnerDir, RUNNER_DIR_MODE } from './chunk-JIANCWJ3.js';
|
|
7
7
|
import { lchownSync, lstatSync, realpathSync, readFileSync, mkdirSync, rmSync, cpSync, existsSync, readdirSync } from 'fs';
|
|
8
8
|
import { dirname, sep, join } from 'path';
|
|
9
9
|
import { spawnSync } from 'child_process';
|
|
@@ -22391,6 +22391,11 @@ var ArtifactTombstoneRecordSchema = external_exports.looseObject({
|
|
|
22391
22391
|
t: external_exports.string()
|
|
22392
22392
|
});
|
|
22393
22393
|
external_exports.union([ArtifactSpoolRecordSchema, ArtifactTombstoneRecordSchema]);
|
|
22394
|
+
var CODE_REVIEW_PROBLEMS_MAX = 200;
|
|
22395
|
+
var PROBLEM_KINDS = ["bug", "security", "data", "test", "docs", "comment"];
|
|
22396
|
+
function problemKind(raw) {
|
|
22397
|
+
return PROBLEM_KINDS.includes(raw) ? raw : "bug";
|
|
22398
|
+
}
|
|
22394
22399
|
var CHECK_ITEM_RESULTS = ["pass", "fail", "skipped"];
|
|
22395
22400
|
var CHECK_ITEMS_MAX = 500;
|
|
22396
22401
|
var CHECK_ITEM_ID_MAX_LENGTH = 200;
|
|
@@ -23051,4 +23056,4 @@ xmlchars/xmlns/1.0/ed3.js:
|
|
|
23051
23056
|
*)
|
|
23052
23057
|
*/
|
|
23053
23058
|
|
|
23054
|
-
export { ARTIFACT_KINDS, ARTIFACT_MAX_BYTES, ARTIFACT_MAX_CAPTION_LENGTH, ARTIFACT_MAX_FILENAME_LENGTH, ARTIFACT_MAX_REPLACES_TARGETS, ATTACHMENT_CLIENT_ID_HEADER, ATTACHMENT_FILENAME_HEADER, ATTACHMENT_SHA256_HEADER, ArtifactCriterionIdSchema, ArtifactSpoolRecordSchema, ArtifactTombstoneRecordSchema, BUCKET_MODEL_MAX_LENGTH, CAPTURE_TIERS, CHECK_ITEMS_MAX, CHECK_ITEM_HREF_MAX_LENGTH, CHECK_ITEM_ID_MAX_LENGTH, CHECK_ITEM_REASON_MAX_LENGTH, CHECK_ITEM_REFS_MAX, CHECK_ITEM_REF_PATH_MAX_LENGTH, CLI_LOGIN_KIND, CLI_LOGIN_MACHINE_NAME_MAX, CODE_REVIEW_NAME, CheckItemsSchema, CliLoginPollResponseSchema, CliLoginRefusalSchema, CliLoginStartedSchema, CriteriaListSchema, DEMO_MANIFEST_LATEST_VERSION, DEMO_RECORD_MEDIA_TYPE, DemoManifestSchema, EMITTED_RESULTS, EMITTED_RESULT_MAX_BODY_LENGTH, EMITTED_RESULT_MAX_LINK_LENGTH, EVENT_TYPES, EmittedNameSchema, FINDING_CODE_EXCERPT_MAX_LENGTH, FINDING_TRANSCRIPT_EXCERPT_MAX_LENGTH, FindingBatchSchema, FindingsResponseSchema, INPUT_BAND_BOUNDARIES, JUDGE_NOT_RUN_ITEM_ID, RESERVED_EMIT_NAMES, REVIEWED_COMMIT_ITEM_ID, SAME_PROBLEM_RULES, SCHEMA_VERSION, SPEED_MAX_LENGTH, StepBodySchema, StepNameSchema, UNREVIEWED_FILES_ITEM_ID, WORK_ITEM_ATTACHMENTS_MAX_PER_COMMENT, WORK_ITEM_ATTACHMENTS_MAX_TOTAL_BYTES, WORK_ITEM_ATTACHMENT_MAX_BYTES, WORK_ITEM_COMMENT_MAX_BODY_LENGTH, attachmentKind, bannedPathsForTier, bindTests, cleanAttachmentFilename, downconvertSession, findingGaps, inferArtifactKind, inputBandOf, isHumanUserTurn, isTestSourcePath, itemsAllowResult, mediaTypeForArtifactPath, parseAgentSession, parseJunit, parseTestSelector, turnCountBound };
|
|
23059
|
+
export { ARTIFACT_KINDS, ARTIFACT_MAX_BYTES, ARTIFACT_MAX_CAPTION_LENGTH, ARTIFACT_MAX_FILENAME_LENGTH, ARTIFACT_MAX_REPLACES_TARGETS, ATTACHMENT_CLIENT_ID_HEADER, ATTACHMENT_FILENAME_HEADER, ATTACHMENT_SHA256_HEADER, ArtifactCriterionIdSchema, ArtifactSpoolRecordSchema, ArtifactTombstoneRecordSchema, BUCKET_MODEL_MAX_LENGTH, CAPTURE_TIERS, CHECK_ITEMS_MAX, CHECK_ITEM_HREF_MAX_LENGTH, CHECK_ITEM_ID_MAX_LENGTH, CHECK_ITEM_REASON_MAX_LENGTH, CHECK_ITEM_REFS_MAX, CHECK_ITEM_REF_PATH_MAX_LENGTH, CLI_LOGIN_KIND, CLI_LOGIN_MACHINE_NAME_MAX, CODE_REVIEW_NAME, CODE_REVIEW_PROBLEMS_MAX, CheckItemsSchema, CliLoginPollResponseSchema, CliLoginRefusalSchema, CliLoginStartedSchema, CriteriaListSchema, DEMO_MANIFEST_LATEST_VERSION, DEMO_RECORD_MEDIA_TYPE, DemoManifestSchema, EMITTED_RESULTS, EMITTED_RESULT_MAX_BODY_LENGTH, EMITTED_RESULT_MAX_LINK_LENGTH, EVENT_TYPES, EmittedNameSchema, FINDING_CODE_EXCERPT_MAX_LENGTH, FINDING_TRANSCRIPT_EXCERPT_MAX_LENGTH, FindingBatchSchema, FindingsResponseSchema, INPUT_BAND_BOUNDARIES, JUDGE_NOT_RUN_ITEM_ID, RESERVED_EMIT_NAMES, REVIEWED_COMMIT_ITEM_ID, SAME_PROBLEM_RULES, SCHEMA_VERSION, SPEED_MAX_LENGTH, StepBodySchema, StepNameSchema, UNREVIEWED_FILES_ITEM_ID, WORK_ITEM_ATTACHMENTS_MAX_PER_COMMENT, WORK_ITEM_ATTACHMENTS_MAX_TOTAL_BYTES, WORK_ITEM_ATTACHMENT_MAX_BYTES, WORK_ITEM_COMMENT_MAX_BODY_LENGTH, attachmentKind, bannedPathsForTier, bindTests, cleanAttachmentFilename, downconvertSession, findingGaps, inferArtifactKind, inputBandOf, isHumanUserTurn, isTestSourcePath, itemsAllowResult, mediaTypeForArtifactPath, parseAgentSession, parseJunit, parseTestSelector, problemKind, turnCountBound };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { detectActiveSession } from './chunk-
|
|
4
|
-
import { autoConnect } from './chunk-
|
|
5
|
-
import { workPageUrl } from './chunk-
|
|
6
|
-
import { sanitizeTerminal } from './chunk-
|
|
3
|
+
import { detectActiveSession } from './chunk-2VJVPP5Y.js';
|
|
4
|
+
import { autoConnect } from './chunk-5UFAWMET.js';
|
|
5
|
+
import { workPageUrl } from './chunk-Z42UKOZ6.js';
|
|
6
|
+
import { sanitizeTerminal } from './chunk-26BFN6DH.js';
|
|
7
7
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
8
|
-
import { resolveGatewayCredentials, unauthorizedMessage, defaultFetch } from './chunk-
|
|
9
|
-
import { signRunnerRequest } from './chunk-
|
|
8
|
+
import { resolveGatewayCredentials, unauthorizedMessage, defaultFetch } from './chunk-PCGU6T7J.js';
|
|
9
|
+
import { signRunnerRequest } from './chunk-I5U6CFH4.js';
|
|
10
10
|
import { readRepoConnection } from './chunk-BJ3KTMDH.js';
|
|
11
11
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
12
12
|
import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-7PZDPISM.js';
|
|
13
13
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
14
|
-
import { resolveRepoIdentity } from './chunk-
|
|
14
|
+
import { resolveRepoIdentity } from './chunk-7GJEQXOH.js';
|
|
15
15
|
|
|
16
16
|
createRequire(import.meta.url);
|
|
17
17
|
|
|
@@ -184,6 +184,9 @@ async function postJson(url, path, apiKey, appId, body, fetchImpl, timeoutMs, si
|
|
|
184
184
|
function patchJson(url, path, apiKey, appId, body, fetchImpl) {
|
|
185
185
|
return sendJsonBefore("PATCH", url, path, apiKey, appId, body, fetchImpl, void 0, void 0);
|
|
186
186
|
}
|
|
187
|
+
function putJson(url, path, apiKey, appId, body, fetchImpl) {
|
|
188
|
+
return sendJsonBefore("PUT", url, path, apiKey, appId, body, fetchImpl, void 0, void 0);
|
|
189
|
+
}
|
|
187
190
|
function startDeadline(ms) {
|
|
188
191
|
const controller = new AbortController();
|
|
189
192
|
const timer = setTimeout(() => controller.abort(), ms);
|
|
@@ -436,6 +439,12 @@ async function postJsonWithRetry(url, path, apiKey, appId, body, fetchImpl, retr
|
|
|
436
439
|
}
|
|
437
440
|
}
|
|
438
441
|
}
|
|
442
|
+
function continueLine(asked, data) {
|
|
443
|
+
if (!asked) return "";
|
|
444
|
+
return data.continueSession === true ? `
|
|
445
|
+
the build continues the session of the item's previous build, where the runner keeps one` : `
|
|
446
|
+
${C.yellow}!${C.reset} the gateway did not record the request to continue the session, so the build may start a new session`;
|
|
447
|
+
}
|
|
439
448
|
function freshDiskLine(asked, data) {
|
|
440
449
|
if (!asked) return "";
|
|
441
450
|
return data.fresh === true ? `
|
|
@@ -489,6 +498,12 @@ async function runWorkBuild(opts) {
|
|
|
489
498
|
if (opts.local && opts.fresh === true) {
|
|
490
499
|
throw new WorkCommandError("--fresh applies to host builds: with --local you build the item yourself, so no kept disk is restored");
|
|
491
500
|
}
|
|
501
|
+
if (opts.local && opts.continue === true) {
|
|
502
|
+
throw new WorkCommandError("--continue applies to host builds: with --local you build the item yourself, in a session you start");
|
|
503
|
+
}
|
|
504
|
+
if (opts.continue === true && opts.fresh === true) {
|
|
505
|
+
throw new WorkCommandError("--continue and --fresh cannot both be given: a continued session needs the disk it worked on");
|
|
506
|
+
}
|
|
492
507
|
const runner = parseRunnerKind(opts.runner);
|
|
493
508
|
if (opts.local && runner !== void 0) {
|
|
494
509
|
throw new WorkCommandError("--runner applies to host builds: with --local you build the item yourself, so no runner takes it");
|
|
@@ -521,11 +536,13 @@ async function runWorkBuild(opts) {
|
|
|
521
536
|
}
|
|
522
537
|
const instructions = opts.instructions !== void 0 ? { instructions: opts.instructions } : {};
|
|
523
538
|
const fresh = opts.fresh === true ? { fresh: true } : {};
|
|
524
|
-
const
|
|
539
|
+
const continued = opts.continue === true ? { continueSession: true } : {};
|
|
540
|
+
const body = itemNumber !== void 0 ? { workItemId: String(itemNumber), note: opts.note, ...instructions, ...fresh, ...continued, runner, ...facts } : {
|
|
525
541
|
subject: resolveWorkSubject({ issue: opts.issue, tracker: opts.tracker, repo: opts.repo, cwd }),
|
|
526
542
|
note: opts.note,
|
|
527
543
|
...instructions,
|
|
528
544
|
...fresh,
|
|
545
|
+
...continued,
|
|
529
546
|
runner,
|
|
530
547
|
...facts
|
|
531
548
|
};
|
|
@@ -537,7 +554,7 @@ async function runWorkBuild(opts) {
|
|
|
537
554
|
});
|
|
538
555
|
const page = itemPageUrl(home, cwd, appId, data.workItemId, data.number);
|
|
539
556
|
const output = opts.json ? JSON.stringify(data) : `${C.green}\u2713${C.reset} build requested ${C.dim}\xB7${C.reset} ${itemLabel(data)}${"subject" in body ? ` (${issueLabel(body.subject)})` : ""}${runnerLabel(data, runner)} ${C.dim}\xB7${C.reset} by ${data.attestor}` + (page !== void 0 ? `
|
|
540
|
-
${page}` : "") + freshDiskLine(opts.fresh === true, data) + tokenWarning(data);
|
|
557
|
+
${page}` : "") + freshDiskLine(opts.fresh === true, data) + continueLine(opts.continue === true, data) + tokenWarning(data);
|
|
541
558
|
if (!opts.quiet) process.stdout.write(output + "\n");
|
|
542
559
|
return { data, output };
|
|
543
560
|
}
|
|
@@ -546,7 +563,7 @@ async function runWorkLinkSession(opts) {
|
|
|
546
563
|
return await linkSession(opts);
|
|
547
564
|
} catch (err) {
|
|
548
565
|
if (opts.logFailures) {
|
|
549
|
-
const { logHookError } = await import('./hook-fast-
|
|
566
|
+
const { logHookError } = await import('./hook-fast-JZKCKSXB.js');
|
|
550
567
|
const reason = err instanceof Error ? err.message : String(err);
|
|
551
568
|
logHookError(opts.home ?? homeFromEnv(opts.env ?? process.env), new Error(`work link-session #${opts.number} failed: ${reason}`));
|
|
552
569
|
}
|
|
@@ -722,8 +739,8 @@ async function runWorkList(opts) {
|
|
|
722
739
|
const { url, apiKey, appId } = resolveCredentials(opts);
|
|
723
740
|
const fetchImpl = opts.fetchImpl ?? defaultFetch;
|
|
724
741
|
const repository = opts.repo ?? resolveRepoIdentity(cwd).gitRepo;
|
|
725
|
-
if (opts.needs !== void 0 && opts.needs !== "amend") {
|
|
726
|
-
throw new WorkCommandError('--needs only accepts "amend"');
|
|
742
|
+
if (opts.needs !== void 0 && opts.needs !== "amend" && opts.needs !== "revise") {
|
|
743
|
+
throw new WorkCommandError('--needs only accepts "amend" or "revise"');
|
|
727
744
|
}
|
|
728
745
|
const query = new URLSearchParams();
|
|
729
746
|
if (repository) query.set("repository", repository);
|
|
@@ -754,4 +771,4 @@ async function runWorkList(opts) {
|
|
|
754
771
|
return { data, output };
|
|
755
772
|
}
|
|
756
773
|
|
|
757
|
-
export { RateLimitedError, TRACKERS, WorkCommandError, environmentFacts, findLiveItemForIssue, getBytes, getJson, isSignatureRefusal, parsePositiveInt, patchJson, postBytes, postJson, resolveCredentials, runWorkBuild, runWorkLinkSession, runWorkList, runWorkRemove, runWorkStatus, signatureRefusalMessage, verifiedTrackerNames };
|
|
774
|
+
export { RateLimitedError, TRACKERS, WorkCommandError, environmentFacts, findLiveItemForIssue, getBytes, getJson, isSignatureRefusal, parsePositiveInt, patchJson, postBytes, postJson, putJson, resolveCredentials, runWorkBuild, runWorkLinkSession, runWorkList, runWorkRemove, runWorkStatus, signatureRefusalMessage, verifiedTrackerNames };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { isAgentsMdLayout, discoverOuterlayerPaths, isForeignTree, toRepoRelative } from './chunk-
|
|
3
|
+
import { isAgentsMdLayout, discoverOuterlayerPaths, isForeignTree, toRepoRelative } from './chunk-ZCX43KZ5.js';
|
|
4
4
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
5
|
-
import { invalidConfigMessage } from './chunk-
|
|
6
|
-
import { retiredSkillPaths, removeRetiredSkills } from './chunk-
|
|
5
|
+
import { invalidConfigMessage } from './chunk-MVERFCX4.js';
|
|
6
|
+
import { retiredSkillPaths, removeRetiredSkills } from './chunk-Z7XFVFW2.js';
|
|
7
7
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
8
|
-
import { maintainedFilesForExistingSkills, loadMaintainedFiles, emitTree, emitBuilders, defaultAgents, targetIds, generatedHeaderSource, parseOuterlayerConfig, classifyTree, writeMaintainedFiles, agentById } from './chunk-
|
|
8
|
+
import { maintainedFilesForExistingSkills, loadMaintainedFiles, emitTree, emitBuilders, defaultAgents, targetIds, generatedHeaderSource, parseOuterlayerConfig, classifyTree, writeMaintainedFiles, agentById } from './chunk-QYLBGMTA.js';
|
|
9
9
|
import { LEGACY_AGENT } from './chunk-7PZDPISM.js';
|
|
10
10
|
import { existsSync, readFileSync, mkdirSync, writeFileSync, copyFileSync, unlinkSync, rmdirSync, readdirSync } from 'fs';
|
|
11
11
|
import { join, dirname } from 'path';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { fetchFactories, selectFactory, saveFactoryConnection, autoConnectedLine } from './chunk-
|
|
4
|
-
import { resolveGatewayCredentials } from './chunk-
|
|
3
|
+
import { fetchFactories, selectFactory, saveFactoryConnection, autoConnectedLine } from './chunk-Z42UKOZ6.js';
|
|
4
|
+
import { resolveGatewayCredentials } from './chunk-PCGU6T7J.js';
|
|
5
5
|
import { readCloudConfig } from './chunk-HWVMRETT.js';
|
|
6
6
|
import { findGitDirs, readRepoConnection } from './chunk-BJ3KTMDH.js';
|
|
7
7
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
8
8
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
9
|
-
import { resolveRepoIdentity } from './chunk-
|
|
9
|
+
import { resolveRepoIdentity } from './chunk-7GJEQXOH.js';
|
|
10
10
|
|
|
11
11
|
createRequire(import.meta.url);
|
|
12
12
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { readSettingsText, SettingsParseError, cliForInstall } from './chunk-ZHQC43NH.js';
|
|
4
|
-
import { legacyAgent, defaultAgents, HookTextError } from './chunk-
|
|
4
|
+
import { legacyAgent, defaultAgents, HookTextError } from './chunk-QYLBGMTA.js';
|
|
5
5
|
|
|
6
6
|
createRequire(import.meta.url);
|
|
7
7
|
|
|
@@ -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, runnerDir } from './chunk-
|
|
3
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir } from './chunk-JIANCWJ3.js';
|
|
4
4
|
import { mkdirSync, writeFileSync, renameSync, existsSync, readFileSync } from 'fs';
|
|
5
5
|
import { dirname, join } from 'path';
|
|
6
6
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { sanitizeTerminal } from './chunk-
|
|
4
|
-
import { resolvePackRoot, parseProofsConfig } from './chunk-
|
|
5
|
-
import { CHECK_ITEM_REASON_MAX_LENGTH, CHECK_ITEMS_MAX, CheckItemsSchema, CHECK_ITEM_REFS_MAX, CHECK_ITEM_ID_MAX_LENGTH, CHECK_ITEM_REF_PATH_MAX_LENGTH, JUDGE_NOT_RUN_ITEM_ID, REVIEWED_COMMIT_ITEM_ID } from './chunk-
|
|
3
|
+
import { sanitizeTerminal } from './chunk-26BFN6DH.js';
|
|
4
|
+
import { resolvePackRoot, parseProofsConfig } from './chunk-QYLBGMTA.js';
|
|
5
|
+
import { CHECK_ITEM_REASON_MAX_LENGTH, CHECK_ITEMS_MAX, CheckItemsSchema, problemKind, CHECK_ITEM_REFS_MAX, CHECK_ITEM_ID_MAX_LENGTH, CHECK_ITEM_REF_PATH_MAX_LENGTH, JUDGE_NOT_RUN_ITEM_ID, REVIEWED_COMMIT_ITEM_ID } from './chunk-5NVF5TAL.js';
|
|
6
6
|
import { createHash } from 'crypto';
|
|
7
7
|
import { join } from 'path';
|
|
8
8
|
import { pathToFileURL } from 'url';
|
|
@@ -2487,23 +2487,36 @@ function readPlaces(raw) {
|
|
|
2487
2487
|
}
|
|
2488
2488
|
function readAnswer(raw) {
|
|
2489
2489
|
if (typeof raw !== "object" || raw === null || Array.isArray(raw)) return { ok: false, problem: "expected an object" };
|
|
2490
|
-
const { result, items, reviewed } = raw;
|
|
2490
|
+
const { result, items, reviewed, previous } = raw;
|
|
2491
2491
|
if (result !== void 0 && result !== "pass" && result !== "fail") return { ok: false, problem: 'result: must be "pass" or "fail"' };
|
|
2492
2492
|
const read = Array.isArray(reviewed) ? reviewed.filter((path2) => typeof path2 === "string" && path2 !== "" && path2.length <= 500).slice(0, MAX_ANSWER_ENTRIES) : void 0;
|
|
2493
|
+
const verdicts = Array.isArray(previous) ? previous.slice(0, MAX_ANSWER_ENTRIES).flatMap((entry) => {
|
|
2494
|
+
const { id, verdict } = typeof entry === "object" && entry !== null ? entry : {};
|
|
2495
|
+
return typeof id === "string" && id !== "" && id.length <= 200 && (verdict === "fixed" || verdict === "open") ? [{ id, verdict }] : [];
|
|
2496
|
+
}) : void 0;
|
|
2493
2497
|
if (items !== void 0 && !Array.isArray(items)) return { ok: false, problem: "items: must be an array" };
|
|
2494
2498
|
const entries = items ?? [];
|
|
2495
2499
|
if (entries.length > MAX_ANSWER_ENTRIES) return { ok: false, problem: `items: at most ${MAX_ANSWER_ENTRIES} entries` };
|
|
2496
2500
|
const answered = [];
|
|
2497
2501
|
for (const [index, entry] of entries.entries()) {
|
|
2498
|
-
const { id, result: itemResult, reason, tests, refs } = typeof entry === "object" && entry !== null ? entry : {};
|
|
2502
|
+
const { id, result: itemResult, reason, tests, refs, kind, title } = typeof entry === "object" && entry !== null ? entry : {};
|
|
2499
2503
|
if (typeof id !== "string" || id === "" || id.length > 200) return { ok: false, problem: `items.${index}.id: must be text of 1 to 200 characters` };
|
|
2500
2504
|
if (itemResult !== "pass" && itemResult !== "fail") return { ok: false, problem: `items.${index}.result: must be "pass" or "fail"` };
|
|
2501
2505
|
if (reason !== void 0 && typeof reason !== "string") return { ok: false, problem: `items.${index}.reason: must be text` };
|
|
2502
2506
|
const named = readPlaces(tests);
|
|
2503
2507
|
const places = readPlaces(refs);
|
|
2504
|
-
|
|
2508
|
+
const name = typeof title === "string" && title.trim() !== "" ? title : void 0;
|
|
2509
|
+
answered.push({
|
|
2510
|
+
id,
|
|
2511
|
+
result: itemResult,
|
|
2512
|
+
kind: problemKind(kind),
|
|
2513
|
+
...name === void 0 ? {} : { title: name },
|
|
2514
|
+
...reason === void 0 ? {} : { reason },
|
|
2515
|
+
...named === void 0 ? {} : { tests: named },
|
|
2516
|
+
...places === void 0 ? {} : { refs: places }
|
|
2517
|
+
});
|
|
2505
2518
|
}
|
|
2506
|
-
return { ok: true, answer: { ...result === void 0 ? {} : { result }, items: answered, ...read === void 0 ? {} : { reviewed: read } } };
|
|
2519
|
+
return { ok: true, answer: { ...result === void 0 ? {} : { result }, items: answered, ...read === void 0 ? {} : { reviewed: read }, ...verdicts === void 0 ? {} : { previous: verdicts } } };
|
|
2507
2520
|
}
|
|
2508
2521
|
function parseJudgeAnswer(text) {
|
|
2509
2522
|
if (text === void 0 || text.trim() === "") return void 0;
|
|
@@ -2568,9 +2581,12 @@ function itemIds(ids, clean) {
|
|
|
2568
2581
|
return unique;
|
|
2569
2582
|
});
|
|
2570
2583
|
}
|
|
2584
|
+
function wholeEntries(answer) {
|
|
2585
|
+
return [...answer.items.filter((entry) => entry.result === "fail"), ...answer.items.filter((entry) => entry.result !== "fail")].slice(0, CHECK_ITEMS_MAX - 1);
|
|
2586
|
+
}
|
|
2571
2587
|
function wholeItems(input) {
|
|
2572
2588
|
const lines = diffLines(input.patch);
|
|
2573
|
-
const entries =
|
|
2589
|
+
const entries = wholeEntries(input.answer);
|
|
2574
2590
|
const ids = itemIds(entries.map((entry) => entry.id), input.clean);
|
|
2575
2591
|
return entries.map((entry, index) => {
|
|
2576
2592
|
const reason = oneLineReason(entry.reason === void 0 ? void 0 : input.clean(entry.reason));
|
|
@@ -2639,4 +2655,4 @@ function hostItemsOf(workItem, name) {
|
|
|
2639
2655
|
return parsed.success ? parsed.data : [];
|
|
2640
2656
|
}
|
|
2641
2657
|
|
|
2642
|
-
export { MAX_TEST_FILE_BYTES, NO_VERDICT_REASON, criteriaOf, criterionInputs, failedItems, hostItemsOf, inCriteriaOrder, itemsSentence, judgeGroups, judgedItems, loadCitationFinder, oneLineReason, openPullRequests, parseJudgeAnswer, planCriteria, runnerMatcher, testFileMatcher, testsByCriterion, wholeItems };
|
|
2658
|
+
export { MAX_TEST_FILE_BYTES, NO_VERDICT_REASON, criteriaOf, criterionInputs, failedItems, hostItemsOf, inCriteriaOrder, itemsSentence, judgeGroups, judgedItems, loadCitationFinder, oneLineReason, openPullRequests, parseJudgeAnswer, planCriteria, runnerMatcher, testFileMatcher, testsByCriterion, wholeEntries, wholeItems };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { launchRefusalForSession } from './chunk-C2PZOLN7.js';
|
|
4
|
-
import { detectActiveSession, transcriptPathForSession } from './chunk-
|
|
5
|
-
import { autoConnect } from './chunk-
|
|
4
|
+
import { detectActiveSession, transcriptPathForSession } from './chunk-2VJVPP5Y.js';
|
|
5
|
+
import { autoConnect } from './chunk-5UFAWMET.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
|
-
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
7
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-PCGU6T7J.js';
|
|
8
8
|
import { readLatestProvenanceForSession } from './chunk-545P7JY7.js';
|
|
9
9
|
import { launchedItemForSession } from './chunk-LGJ56FCM.js';
|
|
10
10
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
11
11
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
12
|
-
import { legacyAgent, captureAgents, sessionFolderIn } from './chunk-
|
|
12
|
+
import { legacyAgent, captureAgents, sessionFolderIn } from './chunk-QYLBGMTA.js';
|
|
13
13
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
14
|
-
import { resolveRepoIdentity, scrubText } from './chunk-
|
|
15
|
-
import { FindingBatchSchema, findingGaps, FindingsResponseSchema, FINDING_CODE_EXCERPT_MAX_LENGTH, SAME_PROBLEM_RULES, FINDING_TRANSCRIPT_EXCERPT_MAX_LENGTH } from './chunk-
|
|
14
|
+
import { resolveRepoIdentity, scrubText } from './chunk-7GJEQXOH.js';
|
|
15
|
+
import { FindingBatchSchema, findingGaps, FindingsResponseSchema, FINDING_CODE_EXCERPT_MAX_LENGTH, SAME_PROBLEM_RULES, FINDING_TRANSCRIPT_EXCERPT_MAX_LENGTH } from './chunk-5NVF5TAL.js';
|
|
16
16
|
import { readFileSync, existsSync } from 'fs';
|
|
17
17
|
import { homedir } from 'os';
|
|
18
18
|
import { resolve, relative, isAbsolute, join, dirname } from 'path';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { inputBandOf, BUCKET_MODEL_MAX_LENGTH } from './chunk-
|
|
3
|
+
import { inputBandOf, BUCKET_MODEL_MAX_LENGTH } from './chunk-5NVF5TAL.js';
|
|
4
4
|
import { readFileSync, mkdirSync, statSync, copyFileSync, renameSync, unlinkSync, writeFileSync, readdirSync, realpathSync, watch as watch$1 } from 'fs';
|
|
5
5
|
import * as sp5 from 'path';
|
|
6
6
|
import { join, relative, dirname, resolve, sep } from 'path';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { DEFAULT_UNIT_NAME } from './chunk-
|
|
4
|
-
import { RUNNER_FILE_MODE } from './chunk-
|
|
5
|
-
import { parseRunnerEnv, withoutCredentialLines } from './chunk-
|
|
6
|
-
import { headlessNames, runnerAgentNamed, credentialAgent, orList, credentialShapes, runnerAgents, credentialForms, credentialEnvPath, forwardedVariables } from './chunk-
|
|
7
|
-
import { defaultAgents } from './chunk-
|
|
3
|
+
import { DEFAULT_UNIT_NAME } from './chunk-WG5OBUIZ.js';
|
|
4
|
+
import { RUNNER_FILE_MODE } from './chunk-JIANCWJ3.js';
|
|
5
|
+
import { parseRunnerEnv, withoutCredentialLines } from './chunk-EJ7ZXBXS.js';
|
|
6
|
+
import { headlessNames, runnerAgentNamed, credentialAgent, orList, credentialShapes, runnerAgents, credentialForms, credentialEnvPath, forwardedVariables } from './chunk-J6KKJGR7.js';
|
|
7
|
+
import { defaultAgents } from './chunk-QYLBGMTA.js';
|
|
8
8
|
import { existsSync, readFileSync, writeFileSync, renameSync, rmSync } from 'fs';
|
|
9
9
|
import { join, dirname } from 'path';
|
|
10
10
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { readContextManifest, removeContextManifest } from './chunk-YQR6E6OV.js';
|
|
4
4
|
import { removePreCommitGuardHook } from './chunk-CJPTUU2E.js';
|
|
5
|
-
import { CONTEXT_PIN_FILENAME, agentRootFolders } from './chunk-
|
|
5
|
+
import { CONTEXT_PIN_FILENAME, agentRootFolders } from './chunk-QYLBGMTA.js';
|
|
6
6
|
import { execFileSync } from 'child_process';
|
|
7
7
|
import { lstatSync, existsSync, unlinkSync, readdirSync, rmdirSync, readFileSync, mkdirSync, writeFileSync } from 'fs';
|
|
8
8
|
import { join, dirname, isAbsolute } from 'path';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { launchRefusalForSession } from './chunk-C2PZOLN7.js';
|
|
4
|
-
import { detectActiveSession } from './chunk-
|
|
5
|
-
import { autoConnect } from './chunk-
|
|
4
|
+
import { detectActiveSession } from './chunk-2VJVPP5Y.js';
|
|
5
|
+
import { autoConnect } from './chunk-5UFAWMET.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
|
-
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
7
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-PCGU6T7J.js';
|
|
8
8
|
import { launchedItemForSession } from './chunk-LGJ56FCM.js';
|
|
9
9
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
10
10
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
11
|
-
import { resolveRepoIdentity } from './chunk-
|
|
12
|
-
import { CriteriaListSchema } from './chunk-
|
|
11
|
+
import { resolveRepoIdentity } from './chunk-7GJEQXOH.js';
|
|
12
|
+
import { CriteriaListSchema } from './chunk-5NVF5TAL.js';
|
|
13
13
|
import { readFileSync } from 'fs';
|
|
14
14
|
|
|
15
15
|
createRequire(import.meta.url);
|
|
@@ -6,7 +6,7 @@ import { readCloudConfigStrict, CloudConfigError, readCloudConfig, writeCloudCon
|
|
|
6
6
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
7
7
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
8
8
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
9
|
-
import { CLI_LOGIN_MACHINE_NAME_MAX, CliLoginPollResponseSchema, CLI_LOGIN_KIND, CliLoginRefusalSchema, CliLoginStartedSchema } from './chunk-
|
|
9
|
+
import { CLI_LOGIN_MACHINE_NAME_MAX, CliLoginPollResponseSchema, CLI_LOGIN_KIND, CliLoginRefusalSchema, CliLoginStartedSchema } from './chunk-5NVF5TAL.js';
|
|
10
10
|
import { generateKeyPairSync, privateDecrypt, constants, createPrivateKey } from 'crypto';
|
|
11
11
|
import { spawn } from 'child_process';
|
|
12
12
|
import { fstatSync, existsSync, readdirSync, readFileSync, rmSync, mkdirSync, chmodSync, writeFileSync } from 'fs';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { placeholderQueues, placeholderProblem } from './chunk-
|
|
4
|
-
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-
|
|
5
|
-
import { getJson, WorkCommandError } from './chunk-
|
|
6
|
-
import { isBuiltinVm, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-
|
|
7
|
-
import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-
|
|
8
|
-
import { ensureHostKey } from './chunk-
|
|
9
|
-
import { sandboxSettingsFrom } from './chunk-
|
|
10
|
-
import { BUILD_SLICE_MEMORY_ENV, agentCredentialVariablesSet, agentCredential, parseRunnerEnv } from './chunk-
|
|
11
|
-
import { forwardedVariables, credentialAgent, credentialForms, managedKeyName, builderDiskPinned, storeVariables, credentialEnvPath } from './chunk-
|
|
12
|
-
import { defaultAgents } from './chunk-
|
|
3
|
+
import { placeholderQueues, placeholderProblem } from './chunk-OTWTUHWY.js';
|
|
4
|
+
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-WG5OBUIZ.js';
|
|
5
|
+
import { getJson, WorkCommandError } from './chunk-5OSY3LK3.js';
|
|
6
|
+
import { isBuiltinVm, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-EUHUIIGT.js';
|
|
7
|
+
import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-3C23ZPWR.js';
|
|
8
|
+
import { ensureHostKey } from './chunk-I5U6CFH4.js';
|
|
9
|
+
import { sandboxSettingsFrom } from './chunk-4FHDVWKO.js';
|
|
10
|
+
import { BUILD_SLICE_MEMORY_ENV, agentCredentialVariablesSet, agentCredential, parseRunnerEnv } from './chunk-EJ7ZXBXS.js';
|
|
11
|
+
import { forwardedVariables, credentialAgent, credentialForms, managedKeyName, builderDiskPinned, storeVariables, credentialEnvPath } from './chunk-J6KKJGR7.js';
|
|
12
|
+
import { defaultAgents } from './chunk-QYLBGMTA.js';
|
|
13
13
|
import { closeSync, openSync, constants, readFileSync } from 'fs';
|
|
14
14
|
import { join, dirname } from 'path';
|
|
15
15
|
import { totalmem } from 'os';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { runEmit } from './chunk-
|
|
4
|
-
import { addStdioMcpEntryIfAbsent, addDocsMcpEntryIfAbsent, DOCS_MCP_SERVER_NAME } from './chunk-
|
|
5
|
-
import { installStarterPack } from './chunk-
|
|
6
|
-
import { listWithAnd } from './chunk-
|
|
7
|
-
import { AGENTS_MD_LAYOUT, mcpFiles, declareAgentsMdLayout, linkAgentSkills, describeSkillsLink, isAgentsMdLayout, holdsTodaysLayoutSources, discoverOuterlayerPaths } from './chunk-
|
|
3
|
+
import { runEmit } from './chunk-5TMM2K23.js';
|
|
4
|
+
import { addStdioMcpEntryIfAbsent, addDocsMcpEntryIfAbsent, DOCS_MCP_SERVER_NAME } from './chunk-SLORYOL4.js';
|
|
5
|
+
import { installStarterPack } from './chunk-KZU5WQK5.js';
|
|
6
|
+
import { listWithAnd } from './chunk-Z42UKOZ6.js';
|
|
7
|
+
import { AGENTS_MD_LAYOUT, mcpFiles, declareAgentsMdLayout, linkAgentSkills, describeSkillsLink, isAgentsMdLayout, holdsTodaysLayoutSources, discoverOuterlayerPaths } from './chunk-ZCX43KZ5.js';
|
|
8
8
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
9
|
-
import { resolveGitCommonDir, defaultGitRunner } from './chunk-
|
|
9
|
+
import { resolveGitCommonDir, defaultGitRunner } from './chunk-43R7JHQI.js';
|
|
10
10
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
11
|
-
import { linkedAgentsPath } from './chunk-
|
|
11
|
+
import { linkedAgentsPath } from './chunk-B2SHUO6J.js';
|
|
12
12
|
import { cloneIsGoverned } from './chunk-YQR6E6OV.js';
|
|
13
|
-
import { generatedHeaderSource, defaultAgents, loadTemplateFiles, loadMaintainedFiles, skillDir, AGENTS_SKILLS_BASE, legacyAgent, laptopAgents } from './chunk-
|
|
13
|
+
import { generatedHeaderSource, defaultAgents, loadTemplateFiles, loadMaintainedFiles, skillDir, AGENTS_SKILLS_BASE, legacyAgent, laptopAgents } from './chunk-QYLBGMTA.js';
|
|
14
14
|
import { LEGACY_AGENT } from './chunk-7PZDPISM.js';
|
|
15
15
|
import { execFileSync } from 'child_process';
|
|
16
16
|
import { existsSync, mkdirSync, writeFileSync } from 'fs';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { TUNNEL_PORT, BRIDGE_ADDRESS, BRIDGE_CIDR } from './chunk-
|
|
3
|
+
import { TUNNEL_PORT, BRIDGE_ADDRESS, BRIDGE_CIDR } from './chunk-N6BNN6ZD.js';
|
|
4
4
|
import { startTimeOf } from './chunk-JBJTC3UU.js';
|
|
5
|
-
import { EXEC_PORT } from './chunk-
|
|
6
|
-
import { RELAY_PORT } from './chunk-
|
|
5
|
+
import { EXEC_PORT } from './chunk-NRDFBOKE.js';
|
|
6
|
+
import { RELAY_PORT } from './chunk-4FHDVWKO.js';
|
|
7
7
|
import { spawn, spawnSync } from 'child_process';
|
|
8
8
|
import { symlinkSync, lstatSync, writeFileSync, chmodSync, mkdirSync, existsSync } from 'fs';
|
|
9
9
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { LiveUploader } from './chunk-
|
|
4
|
-
import { spoolDir } from './chunk-
|
|
3
|
+
import { LiveUploader } from './chunk-3T7PXUHN.js';
|
|
4
|
+
import { spoolDir } from './chunk-W7BF2RXV.js';
|
|
5
5
|
import { parseRunEnv, parseWorkItemEnv } from './chunk-LGJ56FCM.js';
|
|
6
|
-
import { sessionFolderIn, legacyAgent } from './chunk-
|
|
6
|
+
import { sessionFolderIn, legacyAgent } from './chunk-QYLBGMTA.js';
|
|
7
7
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
8
|
-
import { CaptureDaemon } from './chunk-
|
|
8
|
+
import { CaptureDaemon } from './chunk-7GJEQXOH.js';
|
|
9
9
|
import { mkdirSync, writeFileSync, rmSync } from 'fs';
|
|
10
10
|
import { join } from 'path';
|
|
11
11
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { providersOf, credentialEnvPath, credentialNames, credentialForms, runnerAgents, credentialAgent, orList, credentialShapes, strippedVariables, jobAgent, forwardedVariables, MANAGED_KIND } from './chunk-
|
|
4
|
-
import { defaultAgents } from './chunk-
|
|
3
|
+
import { providersOf, credentialEnvPath, credentialNames, credentialForms, runnerAgents, credentialAgent, orList, credentialShapes, strippedVariables, jobAgent, forwardedVariables, MANAGED_KIND } from './chunk-J6KKJGR7.js';
|
|
4
|
+
import { defaultAgents } from './chunk-QYLBGMTA.js';
|
|
5
5
|
import { PROVIDERS } from './chunk-7PZDPISM.js';
|
|
6
6
|
import { statSync, readFileSync } from 'fs';
|
|
7
7
|
import { join } from 'path';
|
|
@@ -263,7 +263,7 @@ function holdAgentCredentials(env = process.env, agents = defaultAgents()) {
|
|
|
263
263
|
return first === void 0 ? void 0 : heldCopies.get(first.descriptor.id);
|
|
264
264
|
}
|
|
265
265
|
function takeAgentCredentials(env, hooks, agents = defaultAgents()) {
|
|
266
|
-
return /^builtin:(container|vm)$/.test(hooks.provision) ? holdAgentCredentials(env, agents) : void 0;
|
|
266
|
+
return /^builtin:(container|vm|sandbox)$/.test(hooks.provision) ? holdAgentCredentials(env, agents) : void 0;
|
|
267
267
|
}
|
|
268
268
|
function removedAgentCredentialValues() {
|
|
269
269
|
return [...removedValues];
|
|
@@ -4,7 +4,7 @@ import { createRequire } from 'node:module';
|
|
|
4
4
|
createRequire(import.meta.url);
|
|
5
5
|
|
|
6
6
|
// src/maintained-line.ts
|
|
7
|
-
var MAINTAINED_SKILLS = ["outerlayer-evidence", "outerlayer-amend", "outerlayer-findings", "outerlayer-cli", "outerlayer-build", "outerlayer-run"];
|
|
7
|
+
var MAINTAINED_SKILLS = ["outerlayer-evidence", "outerlayer-amend", "outerlayer-findings", "outerlayer-cli", "outerlayer-build", "outerlayer-run", "outerlayer-revise", "outerlayer-spec"];
|
|
8
8
|
var MAINTAINED_LINE_VERSION = /^<!-- maintained by OuterLayer (\S+?)\. /m;
|
|
9
9
|
function maintainedLineVersion(text) {
|
|
10
10
|
return MAINTAINED_LINE_VERSION.exec(text)?.[1];
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { resolveDevcontainerCli, devcontainerBuildInvocation, universalImagePending, RecipeError } from './chunk-
|
|
4
|
-
import { ensureHostKey } from './chunk-
|
|
5
|
-
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, jobsDir } from './chunk-
|
|
6
|
-
import { BUILD_HOME, JOB_MOUNT, RELAY_PORT, DESTINATION_BASE_PORT } from './chunk-
|
|
7
|
-
import { primaryDestination, JOIN_DIR, RELAY_ID, JOIN_SOCKET, GATEWAY_PORT, TARGET_GATEWAY, GATEWAY_SOCKET, destinationTarget, providerDestinations, RELAY_USER } from './chunk-
|
|
8
|
-
import { judgeAgent, universalImagePinned, UNIVERSAL_IMAGE, BUILDKIT_IMAGE } from './chunk-
|
|
9
|
-
import { defaultAgents } from './chunk-
|
|
3
|
+
import { resolveDevcontainerCli, devcontainerBuildInvocation, universalImagePending, RecipeError } from './chunk-FUZEOWF4.js';
|
|
4
|
+
import { ensureHostKey } from './chunk-I5U6CFH4.js';
|
|
5
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, jobsDir } from './chunk-JIANCWJ3.js';
|
|
6
|
+
import { BUILD_HOME, JOB_MOUNT, RELAY_PORT, DESTINATION_BASE_PORT } from './chunk-4FHDVWKO.js';
|
|
7
|
+
import { primaryDestination, JOIN_DIR, RELAY_ID, JOIN_SOCKET, GATEWAY_PORT, TARGET_GATEWAY, GATEWAY_SOCKET, destinationTarget, providerDestinations, RELAY_USER } from './chunk-EJ7ZXBXS.js';
|
|
8
|
+
import { judgeAgent, universalImagePinned, UNIVERSAL_IMAGE, BUILDKIT_IMAGE } from './chunk-J6KKJGR7.js';
|
|
9
|
+
import { defaultAgents } from './chunk-QYLBGMTA.js';
|
|
10
10
|
import { PROVIDERS } from './chunk-7PZDPISM.js';
|
|
11
|
-
import { compareVersions } from './chunk-
|
|
11
|
+
import { compareVersions } from './chunk-7GJEQXOH.js';
|
|
12
12
|
import { createHash } from 'crypto';
|
|
13
13
|
import { mkdirSync, createWriteStream, rmSync, existsSync, readFileSync, chmodSync, writeFileSync, realpathSync, readdirSync, renameSync } from 'fs';
|
|
14
14
|
import { dirname, join, posix, resolve } from 'path';
|
|
@@ -452,7 +452,7 @@ function judgeCommand(input, agents = defaultAgents()) {
|
|
|
452
452
|
}
|
|
453
453
|
function withAnswerProtocol(brief, subjects, options = {}) {
|
|
454
454
|
const inputs = subjects === "criteria" ? `\`${JUDGE_DIR}/criteria.json\` lists the criteria to judge, \`${JUDGE_DIR}/diff.patch\` the change and \`${JUDGE_TREE}/\` the files of the pushed commit. Nothing tells you which tests prove a criterion: find them in \`${JUDGE_TREE}/\` yourself. No list of citing tests exists, so where the brief above reads one, or fails a criterion that no test cites, search for the criterion's tests instead.` : `\`${JUDGE_DIR}/diff.patch\` holds the change and \`${JUDGE_TREE}/\` the files of the pushed commit.`;
|
|
455
|
-
const items = subjects === "criteria" ? `one entry per criterion in criteria.json, with its id and the tests your result rests on: \`{"items":[{"id":"<criterion id>","result":"pass"|"fail","reason":"<one to three sentences>","tests":[{"path":"<path relative to ${JUDGE_TREE}/>","line":<the line the test starts on>}]}]}\`. A criterion you do not list fails. A pass must name at least one test file of the tree that proves it, or it fails.` : `your overall result and, when you judged separate parts, one entry per part with an id you choose (a file path or a short name), unique in the answer: \`{"result":"pass"|"fail",${options.reviewed === true ? '"reviewed":["<changed file path>"],' : ""}"items":[{"id":"<part>","result":"pass"|"fail","reason":"<one to three sentences>","refs":[{"path":"<path relative to ${JUDGE_TREE}/>","line":<the line in the pushed commit>}]}]}\`. A failing part fails the whole. A failing part names in \`refs\` the file and line it is about.${options.reviewed === true ? " `reviewed` lists each changed file you read in full, by its path in the repository." : ""}`;
|
|
455
|
+
const items = subjects === "criteria" ? `one entry per criterion in criteria.json, with its id and the tests your result rests on: \`{"items":[{"id":"<criterion id>","result":"pass"|"fail","reason":"<one to three sentences>","tests":[{"path":"<path relative to ${JUDGE_TREE}/>","line":<the line the test starts on>}]}]}\`. A criterion you do not list fails. A pass must name at least one test file of the tree that proves it, or it fails.` : `your overall result and, when you judged separate parts, one entry per part with an id you choose (a file path or a short name), unique in the answer: \`{"result":"pass"|"fail",${options.reviewed === true ? '"reviewed":["<changed file path>"],"previous":[{"id":"<id in previous.json>","verdict":"fixed"|"open"}],' : ""}"items":[{"id":"<part>",${options.reviewed === true ? '"kind":"bug"|"security"|"data"|"test"|"docs"|"comment","title":"<a short name>",' : ""}"result":"pass"|"fail","reason":"<one to three sentences>","refs":[{"path":"<path relative to ${JUDGE_TREE}/>","line":<the line in the pushed commit>}]}]}\`. A failing part fails the whole. A failing part names in \`refs\` the file and line it is about.${options.reviewed === true ? " `reviewed` lists each changed file you read in full, by its path in the repository. `previous` gives a verdict on each defect in `previous.json`, when the file exists. `kind` is what the problem is about, and `bug` when none fits." : ""}`;
|
|
456
456
|
return `${brief.trimEnd()}
|
|
457
457
|
|
|
458
458
|
## How to answer
|