@outerlayer/cli 0.29.0 → 0.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/README.md +9 -1
- package/dist/{agent-setup-S3KI7TER.js → agent-setup-ZNYAXAWI.js} +14 -14
- package/dist/{artifact-link-cmd-LIJEXVN5.js → artifact-link-cmd-VY6OM7S5.js} +2 -2
- package/dist/{bridge-CP25XV3W.js → bridge-FI7OF2H3.js} +2 -2
- package/dist/{build-ZS4Y5MJU.js → build-PXRDWSN4.js} +4 -4
- package/dist/build-info.json +1 -1
- package/dist/{builder-FDUOMHY3.js → builder-UNVHUZL7.js} +6 -6
- package/dist/{check-5XB22HKS.js → check-BKONE55O.js} +41 -41
- package/dist/{chunk-NAHTO4XM.js → chunk-2ZMJFGOZ.js} +1 -1
- package/dist/{chunk-GG3WS4C5.js → chunk-3F7RC3UA.js} +3 -3
- package/dist/{chunk-SN3C57RV.js → chunk-3IDNLZPR.js} +5 -5
- package/dist/{chunk-HRWL7NSJ.js → chunk-3YLHIXLR.js} +7 -7
- package/dist/{chunk-3KMYWLMK.js → chunk-44CGGHJF.js} +1 -1
- package/dist/{chunk-IGEJUPDE.js → chunk-5HZDPOJI.js} +3 -3
- package/dist/{chunk-OD6WUNKZ.js → chunk-6CNNRO53.js} +3 -3
- package/dist/{chunk-BFA2LNJG.js → chunk-7YSR636F.js} +4 -4
- package/dist/{chunk-NX2G6PH6.js → chunk-AKKVPUGK.js} +1 -1
- package/dist/{chunk-F72ABZRD.js → chunk-AM3GMWQK.js} +1 -1
- package/dist/{emit-finding-cmd-XEX5XVVI.js → chunk-B5CQJBZ2.js} +5 -23
- package/dist/{chunk-D3D2CERC.js → chunk-B6OYEP3K.js} +5 -5
- package/dist/{chunk-MZJAIRXM.js → chunk-BCWVTWS7.js} +4 -4
- package/dist/{chunk-GI73HOI2.js → chunk-D3LS7E7U.js} +1 -1
- package/dist/{chunk-GJJDPZS2.js → chunk-DBELICD6.js} +7 -7
- package/dist/{chunk-A2E7MU2H.js → chunk-DBENBGVF.js} +18 -18
- package/dist/{chunk-6AG2XW5S.js → chunk-DBRB26R7.js} +7 -7
- package/dist/{chunk-H6DGJBXG.js → chunk-DLY22KHX.js} +5 -5
- package/dist/{chunk-LKN4J37L.js → chunk-FTGJ3DPV.js} +52 -2
- package/dist/{chunk-VY4YVFL5.js → chunk-G2RRBBOX.js} +1 -1
- package/dist/{chunk-42TFWHFF.js → chunk-HJUGOAM7.js} +1 -1
- package/dist/{chunk-6XQPCQBW.js → chunk-HSUUTD4E.js} +1 -1
- package/dist/{chunk-FA6XWYRH.js → chunk-I3WLYIIW.js} +7 -7
- package/dist/{chunk-SHVE5JZO.js → chunk-IRF2FKB5.js} +1 -1
- package/dist/{chunk-CU7TJL6S.js → chunk-IRTZYDZO.js} +1 -1
- package/dist/{chunk-M4QY7YZ5.js → chunk-ISKWFUEQ.js} +20 -20
- package/dist/{chunk-JL6VZHAJ.js → chunk-IWFYKNAO.js} +50 -1
- package/dist/{chunk-WEMNLTWB.js → chunk-JGOMMFNX.js} +7 -7
- package/dist/{chunk-23PFIW35.js → chunk-LJIFCG4G.js} +1 -1
- package/dist/{chunk-77YT7YC4.js → chunk-MBVSVQVH.js} +1 -1
- package/dist/{chunk-TZGQQY7Y.js → chunk-MBZTX4V2.js} +7 -7
- package/dist/{chunk-UPKFSNSU.js → chunk-PS3AHE6C.js} +5 -5
- package/dist/{chunk-427AVP6J.js → chunk-QDDPVBIS.js} +2 -2
- package/dist/{chunk-MO2NI6W6.js → chunk-QQJGL7LG.js} +12 -12
- package/dist/{chunk-MX3PPJNS.js → chunk-QWJBTFAF.js} +1 -1
- package/dist/{chunk-IG45QISA.js → chunk-RJDJFRRY.js} +2 -2
- package/dist/{chunk-PGA5BVHQ.js → chunk-SJ4DX2AD.js} +3 -3
- package/dist/{chunk-PAHZQQB3.js → chunk-SOWXLIDN.js} +1 -1
- package/dist/{chunk-VT3BKV5D.js → chunk-TGUWHA27.js} +3 -3
- package/dist/{chunk-YSH4KCUJ.js → chunk-TKJISBV6.js} +1 -1
- package/dist/{chunk-2KOXAMMB.js → chunk-TKX23NFV.js} +12 -12
- package/dist/{chunk-KBIJZAH4.js → chunk-TN2XMMD7.js} +1 -1
- package/dist/{chunk-V47KJGNE.js → chunk-U5DC57AF.js} +3 -3
- package/dist/{chunk-S2Q65ZOT.js → chunk-UAFMC3PL.js} +1 -1
- package/dist/{chunk-FUGRIAG7.js → chunk-V6IYYQU3.js} +2 -2
- package/dist/{chunk-OKAJSYZ2.js → chunk-VL3CF4DZ.js} +1 -1
- package/dist/{chunk-C7F6U2YZ.js → chunk-WHCDULC4.js} +5 -2
- package/dist/{chunk-GJOF6357.js → chunk-XB7TRWI2.js} +4 -4
- package/dist/{chunk-2YLKMVFV.js → chunk-XRRSFHKV.js} +2 -2
- package/dist/{chunk-25Z6SBMQ.js → chunk-XTKH5VAC.js} +2 -2
- package/dist/{chunk-7H7RUQCZ.js → chunk-YVY3IVYV.js} +3 -3
- package/dist/{chunk-PP7C7JQO.js → chunk-ZNMVBHGJ.js} +3 -3
- package/dist/{chunk-DXI6A6JN.js → chunk-ZUOPFE22.js} +1 -1
- package/dist/{claude-launcher-SHIQTBS6.js → claude-launcher-ZDZQXW76.js} +5 -5
- package/dist/{cli-EN2WGVM6.js → cli-6NI7WJFP.js} +182 -120
- package/dist/{command-2VFWA2RF.js → command-EFYTEHPF.js} +30 -30
- package/dist/{config-HJQ4YE57.js → config-VM6GKCCE.js} +2 -2
- package/dist/{connect-cmd-T6IAT5FT.js → connect-cmd-U2DY4OZU.js} +12 -12
- package/dist/{container-start-C5ZCXXMF.js → container-start-C3CGPEXA.js} +32 -31
- package/dist/{context-cleanup-MV3X6NSF.js → context-cleanup-D5EGQHQV.js} +3 -3
- package/dist/{control-plane-launch-5FZ6LJOC.js → control-plane-launch-2AC4BTWL.js} +10 -10
- package/dist/{dist-H5IYGH3T.js → dist-IDP7Q53A.js} +2 -2
- package/dist/{docker-RFN6UWTT.js → docker-K442NGCS.js} +6 -6
- package/dist/{doctor-VXDBXKSL.js → doctor-RGTHY56D.js} +32 -32
- package/dist/{emit-artifact-cmd-M52RLUBU.js → emit-artifact-cmd-IK7GAS7V.js} +16 -16
- package/dist/{emit-cmd-HTNETHAE.js → emit-cmd-PSD7AAKJ.js} +6 -6
- package/dist/{emit-criteria-cmd-APDCA6FK.js → emit-criteria-cmd-TGBRMX3P.js} +13 -13
- package/dist/emit-finding-cmd-KXCNLJLK.js +34 -0
- package/dist/{emit-result-cmd-HFC3WDWB.js → emit-result-cmd-WJBLCVDL.js} +16 -16
- package/dist/{emit-step-cmd-LTRPF2YX.js → emit-step-cmd-OYX5X65A.js} +14 -14
- package/dist/{exec-client-GHFNXOY6.js → exec-client-RMGGSTGR.js} +3 -3
- package/dist/findings-cmd-HFDOB6AC.js +135 -0
- package/dist/{fleet-readiness-SJA7NFR2.js → fleet-readiness-5S2GCWZE.js} +12 -12
- package/dist/{governing-source-PBYOKKAJ.js → governing-source-LVTBDQIM.js} +17 -17
- package/dist/{guest-init-MQRIALWR.js → guest-init-O7INUZWE.js} +4 -4
- package/dist/{hook-fast-JKYCVO4R.js → hook-fast-A2N3PSXI.js} +1 -1
- package/dist/{host-key-DBYH3RTZ.js → host-key-HJ66C6MD.js} +3 -3
- package/dist/{image-tag-XNODAHAW.js → image-tag-LLXOFXKP.js} +3 -3
- package/dist/index.js +4 -4
- package/dist/{init-ZUMSDYMW.js → init-NO5PJEPZ.js} +29 -29
- package/dist/{init-JJPJ2XLL.js → init-VY6J7MAY.js} +29 -29
- package/dist/{init-cmd-342RW7DZ.js → init-cmd-FW67JGI7.js} +22 -22
- package/dist/{init-update-4MCW5W72.js → init-update-RN2PZ3MT.js} +21 -21
- package/dist/{install-GODA5G7U.js → install-GZ27NW6U.js} +4 -4
- package/dist/{install-cmd-YNQ5DCZP.js → install-cmd-26OY23ZZ.js} +5 -5
- package/dist/{layout-DBAL2HTQ.js → layout-3ISIED6A.js} +4 -4
- package/dist/{login-browser-B6E4GNIF.js → login-browser-NTVVDJF7.js} +2 -2
- package/dist/{logs-KAG3MAUO.js → logs-7O3ELY35.js} +2 -2
- package/dist/{loop-ZXJFOVCS.js → loop-SY636F7D.js} +41 -41
- package/dist/{machine-F3TVUBZY.js → machine-IJ2QP3FO.js} +25 -25
- package/dist/{machine-skills-6MLTVBCF.js → machine-skills-I4DB2CP3.js} +4 -4
- package/dist/{mcp-serve-cmd-SGISNCB3.js → mcp-serve-cmd-AT7G6J5V.js} +4 -4
- package/dist/{paths-PG4JNLZG.js → paths-32THAYBB.js} +2 -2
- package/dist/{pending-GG252ERT.js → pending-6CMYQHFL.js} +3 -3
- package/dist/{pidfile-7SYDMT2O.js → pidfile-3BH6WPOA.js} +3 -3
- package/dist/{record-ZGUOOYJH.js → record-WHPJCC6Y.js} +3 -3
- package/dist/{runner-env-WI6LKWIU.js → runner-env-6Q45P3IE.js} +5 -5
- package/dist/{runner-identity-JIC54L5Q.js → runner-identity-KH7HADNF.js} +6 -6
- package/dist/{runner-key-RXCKMQRL.js → runner-key-L6B5CNDG.js} +29 -29
- package/dist/{session-sender-JAAMA5E6.js → session-sender-N4DOGRTN.js} +17 -17
- package/dist/{spec-cmd-BUFLEQ6L.js → spec-cmd-7KOT4IQO.js} +14 -14
- package/dist/{starter-pack-I5W5JAYT.js → starter-pack-2WFNRGFA.js} +5 -5
- package/dist/{status-E7V365CD.js → status-LOQ2RHWX.js} +32 -32
- package/dist/{sync-cmd-U5FUBXJY.js → sync-cmd-E5VRZ5DK.js} +16 -16
- package/dist/{watch-AOPZJOUM.js → watch-P6XAYDM2.js} +16 -16
- package/dist/{work-claim-cmd-Z2UZD37I.js → work-claim-cmd-7YQ5CJ3R.js} +17 -17
- package/dist/{work-cmd-XLVQDNTC.js → work-cmd-RRHDQDOX.js} +14 -14
- package/dist/{work-comment-cmd-THLQUSMH.js → work-comment-cmd-XYAPMQYC.js} +14 -14
- package/dist/{work-logs-cmd-2NFG6ZY6.js → work-logs-cmd-TTLUEWVX.js} +14 -14
- package/dist/{work-open-pr-cmd-J22A2YCD.js → work-open-pr-cmd-A63YGIBW.js} +15 -15
- package/dist/{work-pr-cmd-SYAENEH4.js → work-pr-cmd-HOS5ZHJI.js} +14 -14
- package/dist/{work-stop-cmd-FP453YCB.js → work-stop-cmd-7KIKIZPO.js} +14 -14
- package/package.json +3 -3
- package/skill-pack/maintained/outerlayer-build/SKILL.md +4 -1
- package/skill-pack/maintained/outerlayer-findings/SKILL.md +14 -10
- package/skill-pack/shipped.json +1 -0
- package/skill-pack/template/build/SKILL.md +3 -1
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { releaseLease, isUnfinished, setStage, jobEnv, runHook, describeHookEnd, provisionMicroVm, deliverCommitHooks, provisionProcess, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, hostCommandEnvironment, execArgv, MICROVM_COMMAND_DIR, commandLogOffset, startMicroVmCommand, microVmCommandLine, runCommand, execCommandLine, startSender, startHostServices, finishJob, isContainerTracked, isMicroVmTracked, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isTimedOut, readCpuUsec, isIdle, stopOrphanedMicroVms, unfinishedJobs, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, hookLimitsFor, AttemptLogBook, microVmOomKills, needsRenew, renewLease, RENEW_INTERVAL_SECONDS, listTrackedJobs, restartSender, serveLease, vmAlive, writeGuestGhConfig, ALREADY_RELEASED, inTeardown } from './chunk-
|
|
3
|
+
import { releaseLease, isUnfinished, setStage, jobEnv, runHook, describeHookEnd, provisionMicroVm, deliverCommitHooks, provisionProcess, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, hostCommandEnvironment, execArgv, MICROVM_COMMAND_DIR, commandLogOffset, startMicroVmCommand, microVmCommandLine, runCommand, execCommandLine, startSender, startHostServices, finishJob, isContainerTracked, isMicroVmTracked, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isTimedOut, readCpuUsec, isIdle, stopOrphanedMicroVms, unfinishedJobs, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, hookLimitsFor, AttemptLogBook, microVmOomKills, needsRenew, renewLease, RENEW_INTERVAL_SECONDS, listTrackedJobs, restartSender, serveLease, vmAlive, writeGuestGhConfig, ALREADY_RELEASED, inTeardown } from './chunk-ISKWFUEQ.js';
|
|
4
4
|
import { decideInstalledSwitch } from './chunk-3JVYMD4G.js';
|
|
5
5
|
import { fetchVersionMeta, npmVersion, npmSupportsProvenance, fetchTarballDigest, fetchProvenance, installVersion, auditSignatures } from './chunk-E7R2GIAW.js';
|
|
6
6
|
import { RUNNER_PROTOCOL } from './chunk-TPKYTORP.js';
|
|
7
|
-
import { writePendingUpdate } from './chunk-
|
|
7
|
+
import { writePendingUpdate } from './chunk-QWJBTFAF.js';
|
|
8
8
|
import { JOB_STATE_FORMAT, readsJobState, jobStateFormatOf } from './chunk-ZVB57WI6.js';
|
|
9
|
-
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-
|
|
10
|
-
import { currentSkillCommand, formerSkillProblem, placeholderQueues, placeholderProblem } from './chunk-
|
|
9
|
+
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-44CGGHJF.js';
|
|
10
|
+
import { currentSkillCommand, formerSkillProblem, placeholderQueues, placeholderProblem } from './chunk-JGOMMFNX.js';
|
|
11
11
|
import { freeBytes, formatBytes } from './chunk-YYYRBYWG.js';
|
|
12
|
-
import { writeMarker, readMarker, currentVersion, removeMarker, entryIn, versionDir, startedThroughCurrent, switchCurrent, isInLayout, cleanVersions, stagingDir } from './chunk-
|
|
12
|
+
import { writeMarker, readMarker, currentVersion, removeMarker, entryIn, versionDir, startedThroughCurrent, switchCurrent, isInLayout, cleanVersions, stagingDir } from './chunk-LJIFCG4G.js';
|
|
13
13
|
import { RepoFilter } from './chunk-TBT347UY.js';
|
|
14
|
-
import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, LEASE_SECONDS, provisionContainer, leaseExpiresAtMs, deliverContainerHooks, lifecycleSteps, lifecycleFailureReason, prepareBranch, containerCommandExec, setUpRunnerCgroup, measureDisk, parseCpuList, ensureTunnel, keepGhConfigCurrent, filesAreCopied, gitRemoteFor, startServicesFor, createLeaseChannel } from './chunk-
|
|
15
|
-
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-
|
|
16
|
-
import { tagToPull, pullInstruction, imageTag, writeUpdateStatus } from './chunk-
|
|
14
|
+
import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, LEASE_SECONDS, provisionContainer, leaseExpiresAtMs, deliverContainerHooks, lifecycleSteps, lifecycleFailureReason, prepareBranch, containerCommandExec, setUpRunnerCgroup, measureDisk, parseCpuList, ensureTunnel, keepGhConfigCurrent, filesAreCopied, gitRemoteFor, startServicesFor, createLeaseChannel } from './chunk-QQJGL7LG.js';
|
|
15
|
+
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-3IDNLZPR.js';
|
|
16
|
+
import { tagToPull, pullInstruction, imageTag, writeUpdateStatus } from './chunk-D3LS7E7U.js';
|
|
17
17
|
import { isVersion, compareVersions, satisfiesRange } from './chunk-TQMI335S.js';
|
|
18
|
-
import { checkFit } from './chunk-
|
|
19
|
-
import { isBuiltinContainer, isBuiltinVm, isBuiltinProcess, loadRunnerConfig, checkHooks, builtinKind, DEFAULT_UPDATE_MAX_WAIT_HOURS } from './chunk-
|
|
20
|
-
import { claimPidFile, writePidFile, readPidFile, releasePidFile } from './chunk-
|
|
18
|
+
import { checkFit } from './chunk-3F7RC3UA.js';
|
|
19
|
+
import { isBuiltinContainer, isBuiltinVm, isBuiltinProcess, loadRunnerConfig, checkHooks, builtinKind, DEFAULT_UPDATE_MAX_WAIT_HOURS } from './chunk-2ZMJFGOZ.js';
|
|
20
|
+
import { claimPidFile, writePidFile, readPidFile, releasePidFile } from './chunk-IRTZYDZO.js';
|
|
21
21
|
import { startTimeOf, isSameProcess } from './chunk-JBJTC3UU.js';
|
|
22
|
-
import { writeJobFile, ensureRunnerIdentity, readJobFile, builderName, runnerLabelValue, ensureFailureCount, builderSpec, ensureBuilder, spawnRun, BUILD_LABEL, RUNNER_LABEL, readJobFileChecked } from './chunk-
|
|
22
|
+
import { writeJobFile, ensureRunnerIdentity, readJobFile, builderName, runnerLabelValue, ensureFailureCount, builderSpec, ensureBuilder, spawnRun, BUILD_LABEL, RUNNER_LABEL, readJobFileChecked } from './chunk-7YSR636F.js';
|
|
23
23
|
import { exceedsDisk } from './chunk-YJLHUKYS.js';
|
|
24
|
-
import { isSignatureRefusal, WorkCommandError, getJson, postJson } from './chunk-
|
|
25
|
-
import { loadHostKey, ensureHostKey, signerFor } from './chunk-
|
|
26
|
-
import { RUNNER_DIR_MODE, runnerDir, buildDir, attemptStamp, jobDir, RUNNER_FILE_MODE, jobsDir, pidFilePath, spoolDir, rootfsDir } from './chunk-
|
|
27
|
-
import { parseClaimIdentity, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, sharedUserEnvironment, JOB_MOUNT, takeClaudeCredential, heldClaudeCredential, claudeCredential, currentClaudeCredential } from './chunk-
|
|
24
|
+
import { isSignatureRefusal, WorkCommandError, getJson, postJson } from './chunk-DBRB26R7.js';
|
|
25
|
+
import { loadHostKey, ensureHostKey, signerFor } from './chunk-IRF2FKB5.js';
|
|
26
|
+
import { RUNNER_DIR_MODE, runnerDir, buildDir, attemptStamp, jobDir, RUNNER_FILE_MODE, jobsDir, pidFilePath, spoolDir, rootfsDir } from './chunk-SOWXLIDN.js';
|
|
27
|
+
import { parseClaimIdentity, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, sharedUserEnvironment, JOB_MOUNT, takeClaudeCredential, heldClaudeCredential, claudeCredential, currentClaudeCredential } from './chunk-WHCDULC4.js';
|
|
28
28
|
import { resolveVersion } from './chunk-RA3O54FC.js';
|
|
29
29
|
import { fdName } from './chunk-XD4ZCMA4.js';
|
|
30
30
|
import { COMMAND_LOST_REASON, CONTAINER_STOPPED_REASON } from './chunk-MESOOLF4.js';
|
|
@@ -1787,7 +1787,7 @@ var CLAIM_REFUSAL_CODES = new Set(
|
|
|
1787
1787
|
"pull_request_from_fork pull_request_on_default_branch pull_request_ambiguous pull_request_repository_not_connected repository_not_reachable branch_claimed_elsewhere".split(" ")
|
|
1788
1788
|
);
|
|
1789
1789
|
async function tryClaimAndStart(state, item, queue) {
|
|
1790
|
-
const { postJson: postJson2 } = await import('./work-cmd-
|
|
1790
|
+
const { postJson: postJson2 } = await import('./work-cmd-RRHDQDOX.js');
|
|
1791
1791
|
const log = logOf(state);
|
|
1792
1792
|
const hostKey = await loadHostKey(state.config.configPath);
|
|
1793
1793
|
const claim = await retrySend(
|
|
@@ -2963,7 +2963,7 @@ async function start(configPath, deps = { fetchImpl: fetch }) {
|
|
|
2963
2963
|
check: update.check ? () => update.check(configPath) : async () => {
|
|
2964
2964
|
const held = heldClaudeCredential();
|
|
2965
2965
|
const env = held === void 0 ? process.env : { ...process.env, [held.variable]: held.value };
|
|
2966
|
-
return (await import('./check-
|
|
2966
|
+
return (await import('./check-BKONE55O.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
|
|
2967
2967
|
},
|
|
2968
2968
|
now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
|
|
2969
2969
|
log
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { detectActiveSession, autoConnect } from './chunk-
|
|
4
|
-
import { workPageUrl } from './chunk-
|
|
5
|
-
import { sanitizeTerminal } from './chunk-
|
|
6
|
-
import { resolveRepoIdentity } from './chunk-
|
|
3
|
+
import { detectActiveSession, autoConnect } from './chunk-SJ4DX2AD.js';
|
|
4
|
+
import { workPageUrl } from './chunk-3YLHIXLR.js';
|
|
5
|
+
import { sanitizeTerminal } from './chunk-HSUUTD4E.js';
|
|
6
|
+
import { resolveRepoIdentity } from './chunk-FTGJ3DPV.js';
|
|
7
7
|
import { C } from './chunk-ANPNT6PM.js';
|
|
8
|
-
import { resolveGatewayCredentials, unauthorizedMessage, defaultFetch } from './chunk-
|
|
9
|
-
import { signRunnerRequest } from './chunk-
|
|
8
|
+
import { resolveGatewayCredentials, unauthorizedMessage, defaultFetch } from './chunk-AM3GMWQK.js';
|
|
9
|
+
import { signRunnerRequest } from './chunk-IRF2FKB5.js';
|
|
10
10
|
import { readRepoConnection } from './chunk-BJ3KTMDH.js';
|
|
11
11
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
12
12
|
import { homeFromEnv } from './chunk-VNVZDWO3.js';
|
|
@@ -428,7 +428,7 @@ async function runWorkLinkSession(opts) {
|
|
|
428
428
|
return await linkSession(opts);
|
|
429
429
|
} catch (err) {
|
|
430
430
|
if (opts.logFailures) {
|
|
431
|
-
const { logHookError } = await import('./hook-fast-
|
|
431
|
+
const { logHookError } = await import('./hook-fast-A2N3PSXI.js');
|
|
432
432
|
const reason = err instanceof Error ? err.message : String(err);
|
|
433
433
|
logHookError(opts.home ?? homeFromEnv(opts.env ?? process.env), new Error(`work link-session #${opts.number} failed: ${reason}`));
|
|
434
434
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { removeRetiredSkills } from './chunk-
|
|
4
|
-
import { defaultFetch, resolveGatewayCredentials } from './chunk-
|
|
5
|
-
import { withTokenHeader } from './chunk-
|
|
3
|
+
import { removeRetiredSkills } from './chunk-V6IYYQU3.js';
|
|
4
|
+
import { defaultFetch, resolveGatewayCredentials } from './chunk-AM3GMWQK.js';
|
|
5
|
+
import { withTokenHeader } from './chunk-WHCDULC4.js';
|
|
6
6
|
import { appendContextProvenance } from './chunk-ZJSNLVCE.js';
|
|
7
|
-
import { loadMaintainedFiles, writeMaintainedFiles } from './chunk-
|
|
7
|
+
import { loadMaintainedFiles, writeMaintainedFiles } from './chunk-AKKVPUGK.js';
|
|
8
8
|
import { cliInvocation } from './chunk-CRB3POP4.js';
|
|
9
9
|
import { writeDegraded, writeSourceCache, SOURCE_CACHE_TTL_RETRY_MS, writeContextManifest, SOURCE_CACHE_TTL_SUCCESS_MS, readSourceCache, isSourceCacheFresh, clearDegraded } from './chunk-YQR6E6OV.js';
|
|
10
|
-
import { normalizeRepoName, parseOuterlayerConfig, classifyTree, emitTree } from './chunk-
|
|
10
|
+
import { normalizeRepoName, parseOuterlayerConfig, classifyTree, emitTree } from './chunk-ZUOPFE22.js';
|
|
11
11
|
import { homeFromEnv } from './chunk-VNVZDWO3.js';
|
|
12
12
|
import { execFileSync } from 'child_process';
|
|
13
13
|
import { existsSync, mkdirSync, writeFileSync, chmodSync, lstatSync, readFileSync, copyFileSync } from 'fs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { EVENT_TYPES, isHumanUserTurn, INPUT_BAND_BOUNDARIES, parseAgentSession, SCHEMA_VERSION, SPEED_MAX_LENGTH, inputBandOf, BUCKET_MODEL_MAX_LENGTH } from './chunk-
|
|
3
|
+
import { EVENT_TYPES, isHumanUserTurn, INPUT_BAND_BOUNDARIES, parseAgentSession, SCHEMA_VERSION, SPEED_MAX_LENGTH, inputBandOf, BUCKET_MODEL_MAX_LENGTH } from './chunk-IWFYKNAO.js';
|
|
4
4
|
import { createHash } from 'crypto';
|
|
5
5
|
import { readFileSync, readdirSync, statSync, mkdirSync, copyFileSync, renameSync, unlinkSync, writeFileSync, stat as stat$1, unwatchFile, watchFile, watch as watch$1 } from 'fs';
|
|
6
6
|
import { type, homedir } from 'os';
|
|
@@ -2377,6 +2377,7 @@ __export(util_exports, {
|
|
|
2377
2377
|
required: () => required,
|
|
2378
2378
|
safeExtend: () => safeExtend,
|
|
2379
2379
|
shallowClone: () => shallowClone,
|
|
2380
|
+
sizeCaps: () => sizeCaps,
|
|
2380
2381
|
slugify: () => slugify,
|
|
2381
2382
|
stringifyPrimitive: () => stringifyPrimitive,
|
|
2382
2383
|
toZod: () => toZod,
|
|
@@ -2903,6 +2904,19 @@ function prefixIssues(path, issues) {
|
|
|
2903
2904
|
function unwrapMessage(message) {
|
|
2904
2905
|
return typeof message === "string" ? message : message == null ? void 0 : message.message;
|
|
2905
2906
|
}
|
|
2907
|
+
function sizeCaps(defChecks) {
|
|
2908
|
+
var _a5, _b;
|
|
2909
|
+
const caps = [];
|
|
2910
|
+
for (const ch of defChecks != null ? defChecks : []) {
|
|
2911
|
+
const d = ch._zod.def;
|
|
2912
|
+
if (!/_(length|size)$|_equals$/.test(d.check))
|
|
2913
|
+
break;
|
|
2914
|
+
const max = (_b = (_a5 = d.maximum) != null ? _a5 : d.length) != null ? _b : d.size;
|
|
2915
|
+
if (max >= 0)
|
|
2916
|
+
caps.push([max, ch]);
|
|
2917
|
+
}
|
|
2918
|
+
return caps;
|
|
2919
|
+
}
|
|
2906
2920
|
function attachSchema(issues, start, inst) {
|
|
2907
2921
|
var _a6;
|
|
2908
2922
|
var _a5;
|
|
@@ -4341,7 +4355,7 @@ ${content.join("\n")}
|
|
|
4341
4355
|
var version = {
|
|
4342
4356
|
major: 4,
|
|
4343
4357
|
minor: 6,
|
|
4344
|
-
patch:
|
|
4358
|
+
patch: 7
|
|
4345
4359
|
};
|
|
4346
4360
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
4347
4361
|
var _a6, _b;
|
|
@@ -5122,6 +5136,31 @@ var $ZodDate = /* @__PURE__ */ $constructor("$ZodDate", (inst, def) => {
|
|
|
5122
5136
|
return payload;
|
|
5123
5137
|
};
|
|
5124
5138
|
});
|
|
5139
|
+
function capSize(inst, size) {
|
|
5140
|
+
const caps = sizeCaps(inst._zod.def.checks);
|
|
5141
|
+
if (!caps.length)
|
|
5142
|
+
return;
|
|
5143
|
+
const cap = Math.min(...caps.map((c) => c[0]));
|
|
5144
|
+
const parse3 = inst._zod.parse;
|
|
5145
|
+
inst._zod.parse = (payload, ctx) => {
|
|
5146
|
+
const n = size(payload.value);
|
|
5147
|
+
if (n > cap && !(ctx == null ? void 0 : ctx.skipChecks) && (ctx == null ? void 0 : ctx.direction) !== "backward") {
|
|
5148
|
+
for (const [max, ch] of sizeCaps(inst._zod.def.checks)) {
|
|
5149
|
+
if (n > max && ch._zod.def.when(payload)) {
|
|
5150
|
+
const start = payload.issues.length;
|
|
5151
|
+
ch._zod.check(payload);
|
|
5152
|
+
payload.issues[start].continue = false;
|
|
5153
|
+
attachSchema(payload.issues, start, inst);
|
|
5154
|
+
return payload;
|
|
5155
|
+
}
|
|
5156
|
+
}
|
|
5157
|
+
}
|
|
5158
|
+
return parse3(payload, ctx);
|
|
5159
|
+
};
|
|
5160
|
+
}
|
|
5161
|
+
var arraySize = (input2) => Array.isArray(input2) ? input2.length : -1;
|
|
5162
|
+
var mapSize = (input2) => input2 instanceof Map ? input2.size : -1;
|
|
5163
|
+
var setSize = (input2) => input2 instanceof Set ? input2.size : -1;
|
|
5125
5164
|
function handleArrayResult(result, final, index) {
|
|
5126
5165
|
if (result.issues.length) {
|
|
5127
5166
|
final.issues.push(...prefixIssues(index, result.issues));
|
|
@@ -5165,6 +5204,7 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
|
|
|
5165
5204
|
}
|
|
5166
5205
|
return payload;
|
|
5167
5206
|
};
|
|
5207
|
+
capSize(inst, arraySize);
|
|
5168
5208
|
});
|
|
5169
5209
|
function handlePropertyResult(result, final, key, input2, optin, optout) {
|
|
5170
5210
|
const isPresent = key in input2;
|
|
@@ -6127,6 +6167,7 @@ var $ZodMap = /* @__PURE__ */ $constructor("$ZodMap", (inst, def) => {
|
|
|
6127
6167
|
return Promise.all(proms).then(() => payload);
|
|
6128
6168
|
return payload;
|
|
6129
6169
|
};
|
|
6170
|
+
capSize(inst, mapSize);
|
|
6130
6171
|
});
|
|
6131
6172
|
function handleMapResult(keyResult, valueResult, final, key, input2, inst, ctx) {
|
|
6132
6173
|
if (keyResult.issues.length) {
|
|
@@ -6193,6 +6234,7 @@ var $ZodSet = /* @__PURE__ */ $constructor("$ZodSet", (inst, def) => {
|
|
|
6193
6234
|
return Promise.all(proms).then(() => payload);
|
|
6194
6235
|
return payload;
|
|
6195
6236
|
};
|
|
6237
|
+
capSize(inst, setSize);
|
|
6196
6238
|
});
|
|
6197
6239
|
function handleSetResult(result, final) {
|
|
6198
6240
|
if (result.issues.length) {
|
|
@@ -15747,9 +15789,15 @@ function generateNullableCheck(doc, ctx, schema, accessor, buildsValue = true) {
|
|
|
15747
15789
|
doc.write(`}`);
|
|
15748
15790
|
return outputVar;
|
|
15749
15791
|
}
|
|
15792
|
+
function generateSizeGate(doc, schema, size) {
|
|
15793
|
+
for (const [max, check2] of sizeCaps(schema._zod.def.checks)) {
|
|
15794
|
+
doc.write(`if (${size} > ${numericOperand(max, check2._zod.def.check)}) return INVALID;`);
|
|
15795
|
+
}
|
|
15796
|
+
}
|
|
15750
15797
|
function generateArrayCheck(doc, ctx, schema, accessor, buildsValue = true) {
|
|
15751
15798
|
const def = schema._zod.def;
|
|
15752
15799
|
doc.write(`if (!Array.isArray(${accessor})) return INVALID;`);
|
|
15800
|
+
generateSizeGate(doc, schema, `${accessor}.length`);
|
|
15753
15801
|
const outputVar = buildsValue ? newVar(ctx) : null;
|
|
15754
15802
|
const iVar = newVar(ctx);
|
|
15755
15803
|
const elemVar = newVar(ctx);
|
|
@@ -16154,6 +16202,7 @@ function literalPropertyKey(ctx, key) {
|
|
|
16154
16202
|
function generateMapCheck(doc, ctx, schema, accessor) {
|
|
16155
16203
|
const def = schema._zod.def;
|
|
16156
16204
|
doc.write(`if (!(${accessor} instanceof Map)) return INVALID;`);
|
|
16205
|
+
generateSizeGate(doc, schema, `${accessor}.size`);
|
|
16157
16206
|
const outputVar = newVar(ctx);
|
|
16158
16207
|
const kVar = newVar(ctx);
|
|
16159
16208
|
const valVar = newVar(ctx);
|
|
@@ -16170,6 +16219,7 @@ function generateMapCheck(doc, ctx, schema, accessor) {
|
|
|
16170
16219
|
function generateSetCheck(doc, ctx, schema, accessor) {
|
|
16171
16220
|
const def = schema._zod.def;
|
|
16172
16221
|
doc.write(`if (!(${accessor} instanceof Set)) return INVALID;`);
|
|
16222
|
+
generateSizeGate(doc, schema, `${accessor}.size`);
|
|
16173
16223
|
const outputVar = newVar(ctx);
|
|
16174
16224
|
const valVar = newVar(ctx);
|
|
16175
16225
|
doc.write(`const ${outputVar} = new Set();`);
|
|
@@ -5,7 +5,7 @@ import { C } from './chunk-ANPNT6PM.js';
|
|
|
5
5
|
import { readCloudConfigStrict, CloudConfigError, readCloudConfig, writeCloudConfig, cloudConfigPath } from './chunk-PJDQPF5N.js';
|
|
6
6
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
7
7
|
import { cliInvocation } from './chunk-CRB3POP4.js';
|
|
8
|
-
import { CLI_LOGIN_MACHINE_NAME_MAX, CliLoginPollResponseSchema, CLI_LOGIN_KIND, CliLoginRefusalSchema, CliLoginStartedSchema } from './chunk-
|
|
8
|
+
import { CLI_LOGIN_MACHINE_NAME_MAX, CliLoginPollResponseSchema, CLI_LOGIN_KIND, CliLoginRefusalSchema, CliLoginStartedSchema } from './chunk-IWFYKNAO.js';
|
|
9
9
|
import { homeFromEnv } from './chunk-VNVZDWO3.js';
|
|
10
10
|
import { generateKeyPairSync, privateDecrypt, constants, createPrivateKey } from 'crypto';
|
|
11
11
|
import { spawn } from 'child_process';
|
|
@@ -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-TUSYOL2O.js';
|
|
5
|
-
import { CONTEXT_PIN_FILENAME } from './chunk-
|
|
5
|
+
import { CONTEXT_PIN_FILENAME } from './chunk-ZUOPFE22.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,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { ArtifactTombstoneRecordSchema, ArtifactSpoolRecordSchema } from './chunk-
|
|
3
|
+
import { ArtifactTombstoneRecordSchema, ArtifactSpoolRecordSchema } from './chunk-IWFYKNAO.js';
|
|
4
4
|
import { homeFromEnv } from './chunk-VNVZDWO3.js';
|
|
5
5
|
import { mkdirSync, appendFileSync, writeFileSync, renameSync, unlinkSync, existsSync, readdirSync, readFileSync, statSync } from 'fs';
|
|
6
6
|
import { join, dirname } from 'path';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { runEmit } from './chunk-
|
|
3
|
+
import { runEmit } from './chunk-XB7TRWI2.js';
|
|
4
4
|
import { addStdioMcpEntryIfAbsent, addDocsMcpEntryIfAbsent, DOCS_MCP_SERVER_NAME } from './chunk-KT4CN6OU.js';
|
|
5
|
-
import { installStarterPack } from './chunk-
|
|
6
|
-
import { AGENTS_MD_LAYOUT, declareAgentsMdLayout, linkClaudeSkills, SKILLS_LINK_PATH, describeSkillsLink, isAgentsMdLayout, holdsTodaysLayoutSources, discoverOuterlayerPaths } from './chunk-
|
|
5
|
+
import { installStarterPack } from './chunk-XTKH5VAC.js';
|
|
6
|
+
import { AGENTS_MD_LAYOUT, declareAgentsMdLayout, linkClaudeSkills, SKILLS_LINK_PATH, describeSkillsLink, isAgentsMdLayout, holdsTodaysLayoutSources, discoverOuterlayerPaths } from './chunk-QDDPVBIS.js';
|
|
7
7
|
import { C } from './chunk-ANPNT6PM.js';
|
|
8
|
-
import { resolveGitCommonDir, defaultGitRunner } from './chunk-
|
|
9
|
-
import { loadTemplateFiles, loadMaintainedFiles, skillDir, AGENTS_SKILLS_BASE } from './chunk-
|
|
8
|
+
import { resolveGitCommonDir, defaultGitRunner } from './chunk-DLY22KHX.js';
|
|
9
|
+
import { loadTemplateFiles, loadMaintainedFiles, skillDir, AGENTS_SKILLS_BASE } from './chunk-AKKVPUGK.js';
|
|
10
10
|
import { cliInvocation } from './chunk-CRB3POP4.js';
|
|
11
|
-
import { linkedAgentsPath } from './chunk-
|
|
11
|
+
import { linkedAgentsPath } from './chunk-HJUGOAM7.js';
|
|
12
12
|
import { cloneIsGoverned } from './chunk-YQR6E6OV.js';
|
|
13
|
-
import { generatedHeaderSource } from './chunk-
|
|
13
|
+
import { generatedHeaderSource } from './chunk-ZUOPFE22.js';
|
|
14
14
|
import { execFileSync } from 'child_process';
|
|
15
15
|
import { existsSync, mkdirSync, writeFileSync } from 'fs';
|
|
16
16
|
import { join, dirname } from 'path';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { hostKeyPath, runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-
|
|
3
|
+
import { hostKeyPath, runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-SOWXLIDN.js';
|
|
4
4
|
import { generateKeyPairSync, createPrivateKey, createPublicKey, sign } from 'crypto';
|
|
5
5
|
import { existsSync, mkdirSync, writeFileSync, readFileSync } from 'fs';
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { isSameProcess } from './chunk-JBJTC3UU.js';
|
|
4
|
-
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-
|
|
4
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-SOWXLIDN.js';
|
|
5
5
|
import { existsSync, readFileSync, mkdirSync, writeFileSync, rmSync } from 'fs';
|
|
6
6
|
import { dirname } from 'path';
|
|
7
7
|
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { readsJobState, READ_JOB_STATE_FORMATS, jobStateFormatOf } from './chunk-ZVB57WI6.js';
|
|
4
|
-
import { DOCKERD_LOG, HELPER_PATH, HELPER_RECORD } from './chunk-
|
|
4
|
+
import { DOCKERD_LOG, HELPER_PATH, HELPER_RECORD } from './chunk-6CNNRO53.js';
|
|
5
5
|
import { zodProblem } from './chunk-I3LTIAOR.js';
|
|
6
|
-
import { senderPidfile } from './chunk-
|
|
7
|
-
import { installScrubContext } from './chunk-
|
|
8
|
-
import { writeDockerClientConfig } from './chunk-
|
|
9
|
-
import { ADDED_USER, shellQuote, GH_CONFIG_YML, ghHostsYml, AssetError, obtainImage, ensureRootfs, gitRemoteFor, startServicesFor, createLeaseChannel, createBuildDisk, machineConfig, resolveAgentUser, AgentUserError, runBuildSteps, LEASE_SECONDS, createContainerRuntime, stopContainer, cleanupContainer, outOfMemoryReason, containerSenderCommand, signalInContainer, syncInContainer, copyTranscriptsFromContainer, senderAliveScript, helperFirecrackerNote, HelperRefusal, isLiteralAddress, deleteBuildDisk, startCheckContainer, lifecycleSteps, lifecycleFailureReason, writeEvalInput, DeliveryFailure, EVAL_INPUT_NAME, copyTranscripts, senderSignalScript, containerJudgeEnvironment, copyJudgeTree } from './chunk-
|
|
10
|
-
import { waitForAgent, vmExecArgs } from './chunk-
|
|
11
|
-
import { socketPathProblem, vsockLinks, LEASE_LINK, linkVsockSockets } from './chunk-
|
|
12
|
-
import { describeCallFailure, resolveGoverningSource, refusalCode, removeStagedContext, stageGovernedContext, pinnedSourceOf, commandWithShim, logStamp, createRunnerLog, removeKeptContext, formatDuration, retrySend, formatClock, keptContextTree } from './chunk-
|
|
13
|
-
import { isBuiltinContainer, isBuiltinProcess, isBuiltinVm, DEFAULT_CHECK_TIME_LIMIT_MINUTES } from './chunk-
|
|
14
|
-
import { readBranchHead, fetchCommit, diffBetween } from './chunk-
|
|
6
|
+
import { senderPidfile } from './chunk-ZNMVBHGJ.js';
|
|
7
|
+
import { installScrubContext } from './chunk-DBELICD6.js';
|
|
8
|
+
import { writeDockerClientConfig } from './chunk-TN2XMMD7.js';
|
|
9
|
+
import { ADDED_USER, shellQuote, GH_CONFIG_YML, ghHostsYml, AssetError, obtainImage, ensureRootfs, gitRemoteFor, startServicesFor, createLeaseChannel, createBuildDisk, machineConfig, resolveAgentUser, AgentUserError, runBuildSteps, LEASE_SECONDS, createContainerRuntime, stopContainer, cleanupContainer, outOfMemoryReason, containerSenderCommand, signalInContainer, syncInContainer, copyTranscriptsFromContainer, senderAliveScript, helperFirecrackerNote, HelperRefusal, isLiteralAddress, deleteBuildDisk, startCheckContainer, lifecycleSteps, lifecycleFailureReason, writeEvalInput, DeliveryFailure, EVAL_INPUT_NAME, copyTranscripts, senderSignalScript, containerJudgeEnvironment, copyJudgeTree } from './chunk-QQJGL7LG.js';
|
|
10
|
+
import { waitForAgent, vmExecArgs } from './chunk-MBVSVQVH.js';
|
|
11
|
+
import { socketPathProblem, vsockLinks, LEASE_LINK, linkVsockSockets } from './chunk-TKJISBV6.js';
|
|
12
|
+
import { describeCallFailure, resolveGoverningSource, refusalCode, removeStagedContext, stageGovernedContext, pinnedSourceOf, commandWithShim, logStamp, createRunnerLog, removeKeptContext, formatDuration, retrySend, formatClock, keptContextTree } from './chunk-3IDNLZPR.js';
|
|
13
|
+
import { isBuiltinContainer, isBuiltinProcess, isBuiltinVm, DEFAULT_CHECK_TIME_LIMIT_MINUTES } from './chunk-2ZMJFGOZ.js';
|
|
14
|
+
import { readBranchHead, fetchCommit, diffBetween } from './chunk-U5DC57AF.js';
|
|
15
15
|
import { isSameProcess, startTimeOf } from './chunk-JBJTC3UU.js';
|
|
16
|
-
import { HASH_ARGV, parseProgramHash, JUDGE_PROGRAM, writeJobFile, readJobFile, childEnvironment, withAnswerProtocol, judgeCommand, MAX_REPORT_BYTES, JUDGE_MAX_TURNS, JUDGE_DIR, COMMAND_DIR, MAX_ITEMS_BYTES } from './chunk-
|
|
16
|
+
import { HASH_ARGV, parseProgramHash, JUDGE_PROGRAM, writeJobFile, readJobFile, childEnvironment, withAnswerProtocol, judgeCommand, MAX_REPORT_BYTES, JUDGE_MAX_TURNS, JUDGE_DIR, COMMAND_DIR, MAX_ITEMS_BYTES } from './chunk-7YSR636F.js';
|
|
17
17
|
import { parseSize } from './chunk-YJLHUKYS.js';
|
|
18
18
|
import { CLAUDE_CODE_VERSION, FIRECRACKER_VERSION } from './chunk-SJZL5F3F.js';
|
|
19
|
-
import { WorkCommandError, postJson, isSignatureRefusal, getJson } from './chunk-
|
|
20
|
-
import { planArtifactUpload } from './chunk-
|
|
21
|
-
import { scrubText } from './chunk-
|
|
19
|
+
import { WorkCommandError, postJson, isSignatureRefusal, getJson } from './chunk-DBRB26R7.js';
|
|
20
|
+
import { planArtifactUpload } from './chunk-HSUUTD4E.js';
|
|
21
|
+
import { scrubText } from './chunk-FTGJ3DPV.js';
|
|
22
22
|
import { readCloudConfig } from './chunk-PJDQPF5N.js';
|
|
23
|
-
import { signerFor } from './chunk-
|
|
24
|
-
import { RUNNER_FILE_MODE, runnerDir, buildDir, vsockPath } from './chunk-
|
|
25
|
-
import { JOB_MOUNT, claudeCredential, repositoriesOf, primaryOf, buildEnvironment, CHECKOUT_DIR, parseIsolation, proxyEnvironment, withProxyWarningHidden, containerLocalAddress, destinationEnvironment, CLAUDE_CREDENTIAL_VARIABLES, builtInEnvironment, withHooksPath, startBuildServices, BUILT_IN_NAMES, AGENT_CREDENTIAL_MISSING, sharedUserEnvironment, headerVariables, authorEnvironment, withTunnelRecord, commitIdentityRecord, RELAY_PORT, repositoryPath, lifecycleWorkdir, CHECK_ITEMS_FILE, currentClaudeCredential, removedClaudeCredentialValues, checkEnvironment, EVAL_INPUT_DIR } from './chunk-
|
|
26
|
-
import { resolvePackRoot } from './chunk-
|
|
23
|
+
import { signerFor } from './chunk-IRF2FKB5.js';
|
|
24
|
+
import { RUNNER_FILE_MODE, runnerDir, buildDir, vsockPath } from './chunk-SOWXLIDN.js';
|
|
25
|
+
import { JOB_MOUNT, claudeCredential, repositoriesOf, primaryOf, buildEnvironment, CHECKOUT_DIR, parseIsolation, proxyEnvironment, withProxyWarningHidden, containerLocalAddress, destinationEnvironment, CLAUDE_CREDENTIAL_VARIABLES, builtInEnvironment, withHooksPath, startBuildServices, BUILT_IN_NAMES, AGENT_CREDENTIAL_MISSING, sharedUserEnvironment, headerVariables, authorEnvironment, withTunnelRecord, commitIdentityRecord, RELAY_PORT, repositoryPath, lifecycleWorkdir, CHECK_ITEMS_FILE, currentClaudeCredential, removedClaudeCredentialValues, checkEnvironment, EVAL_INPUT_DIR } from './chunk-WHCDULC4.js';
|
|
26
|
+
import { resolvePackRoot } from './chunk-AKKVPUGK.js';
|
|
27
27
|
import { MAINTAINED_SKILLS } from './chunk-CDDED64E.js';
|
|
28
28
|
import { resolveVersion } from './chunk-RA3O54FC.js';
|
|
29
|
-
import { parsePolicy } from './chunk-
|
|
30
|
-
import { CheckItemsSchema, CHECK_ITEM_REASON_MAX_LENGTH } from './chunk-
|
|
29
|
+
import { parsePolicy } from './chunk-ZUOPFE22.js';
|
|
30
|
+
import { CheckItemsSchema, CHECK_ITEM_REASON_MAX_LENGTH } from './chunk-IWFYKNAO.js';
|
|
31
31
|
import { homeFromEnv } from './chunk-VNVZDWO3.js';
|
|
32
32
|
import { fdName } from './chunk-XD4ZCMA4.js';
|
|
33
33
|
import { RUNNER_WORDED_REASONS, UNKNOWN_TRACKING_REASON } from './chunk-MESOOLF4.js';
|
|
@@ -2553,6 +2553,7 @@ __export(util_exports, {
|
|
|
2553
2553
|
required: () => required,
|
|
2554
2554
|
safeExtend: () => safeExtend,
|
|
2555
2555
|
shallowClone: () => shallowClone,
|
|
2556
|
+
sizeCaps: () => sizeCaps,
|
|
2556
2557
|
slugify: () => slugify,
|
|
2557
2558
|
stringifyPrimitive: () => stringifyPrimitive,
|
|
2558
2559
|
toZod: () => toZod,
|
|
@@ -3072,6 +3073,18 @@ function prefixIssues(path, issues) {
|
|
|
3072
3073
|
function unwrapMessage(message) {
|
|
3073
3074
|
return typeof message === "string" ? message : message?.message;
|
|
3074
3075
|
}
|
|
3076
|
+
function sizeCaps(defChecks) {
|
|
3077
|
+
const caps = [];
|
|
3078
|
+
for (const ch of defChecks ?? []) {
|
|
3079
|
+
const d = ch._zod.def;
|
|
3080
|
+
if (!/_(length|size)$|_equals$/.test(d.check))
|
|
3081
|
+
break;
|
|
3082
|
+
const max = d.maximum ?? d.length ?? d.size;
|
|
3083
|
+
if (max >= 0)
|
|
3084
|
+
caps.push([max, ch]);
|
|
3085
|
+
}
|
|
3086
|
+
return caps;
|
|
3087
|
+
}
|
|
3075
3088
|
function attachSchema(issues, start, inst) {
|
|
3076
3089
|
var _a3;
|
|
3077
3090
|
for (let i = start; i < issues.length; i++) {
|
|
@@ -4492,7 +4505,7 @@ ${content.join("\n")}
|
|
|
4492
4505
|
var version = {
|
|
4493
4506
|
major: 4,
|
|
4494
4507
|
minor: 6,
|
|
4495
|
-
patch:
|
|
4508
|
+
patch: 7
|
|
4496
4509
|
};
|
|
4497
4510
|
|
|
4498
4511
|
// ../../node_modules/zod/v4/core/schemas.js
|
|
@@ -5248,6 +5261,31 @@ var $ZodDate = /* @__PURE__ */ $constructor("$ZodDate", (inst, def) => {
|
|
|
5248
5261
|
return payload;
|
|
5249
5262
|
};
|
|
5250
5263
|
});
|
|
5264
|
+
function capSize(inst, size) {
|
|
5265
|
+
const caps = sizeCaps(inst._zod.def.checks);
|
|
5266
|
+
if (!caps.length)
|
|
5267
|
+
return;
|
|
5268
|
+
const cap = Math.min(...caps.map((c) => c[0]));
|
|
5269
|
+
const parse3 = inst._zod.parse;
|
|
5270
|
+
inst._zod.parse = (payload, ctx) => {
|
|
5271
|
+
const n = size(payload.value);
|
|
5272
|
+
if (n > cap && !ctx?.skipChecks && ctx?.direction !== "backward") {
|
|
5273
|
+
for (const [max, ch] of sizeCaps(inst._zod.def.checks)) {
|
|
5274
|
+
if (n > max && ch._zod.def.when(payload)) {
|
|
5275
|
+
const start = payload.issues.length;
|
|
5276
|
+
ch._zod.check(payload);
|
|
5277
|
+
payload.issues[start].continue = false;
|
|
5278
|
+
attachSchema(payload.issues, start, inst);
|
|
5279
|
+
return payload;
|
|
5280
|
+
}
|
|
5281
|
+
}
|
|
5282
|
+
}
|
|
5283
|
+
return parse3(payload, ctx);
|
|
5284
|
+
};
|
|
5285
|
+
}
|
|
5286
|
+
var arraySize = (input2) => Array.isArray(input2) ? input2.length : -1;
|
|
5287
|
+
var mapSize = (input2) => input2 instanceof Map ? input2.size : -1;
|
|
5288
|
+
var setSize = (input2) => input2 instanceof Set ? input2.size : -1;
|
|
5251
5289
|
function handleArrayResult(result, final, index) {
|
|
5252
5290
|
if (result.issues.length) {
|
|
5253
5291
|
final.issues.push(...prefixIssues(index, result.issues));
|
|
@@ -5291,6 +5329,7 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
|
|
|
5291
5329
|
}
|
|
5292
5330
|
return payload;
|
|
5293
5331
|
};
|
|
5332
|
+
capSize(inst, arraySize);
|
|
5294
5333
|
});
|
|
5295
5334
|
function handlePropertyResult(result, final, key, input2, optin, optout) {
|
|
5296
5335
|
const isPresent = key in input2;
|
|
@@ -6247,6 +6286,7 @@ var $ZodMap = /* @__PURE__ */ $constructor("$ZodMap", (inst, def) => {
|
|
|
6247
6286
|
return Promise.all(proms).then(() => payload);
|
|
6248
6287
|
return payload;
|
|
6249
6288
|
};
|
|
6289
|
+
capSize(inst, mapSize);
|
|
6250
6290
|
});
|
|
6251
6291
|
function handleMapResult(keyResult, valueResult, final, key, input2, inst, ctx) {
|
|
6252
6292
|
if (keyResult.issues.length) {
|
|
@@ -6313,6 +6353,7 @@ var $ZodSet = /* @__PURE__ */ $constructor("$ZodSet", (inst, def) => {
|
|
|
6313
6353
|
return Promise.all(proms).then(() => payload);
|
|
6314
6354
|
return payload;
|
|
6315
6355
|
};
|
|
6356
|
+
capSize(inst, setSize);
|
|
6316
6357
|
});
|
|
6317
6358
|
function handleSetResult(result, final) {
|
|
6318
6359
|
if (result.issues.length) {
|
|
@@ -15837,9 +15878,15 @@ function generateNullableCheck(doc, ctx, schema, accessor, buildsValue = true) {
|
|
|
15837
15878
|
doc.write(`}`);
|
|
15838
15879
|
return outputVar;
|
|
15839
15880
|
}
|
|
15881
|
+
function generateSizeGate(doc, schema, size) {
|
|
15882
|
+
for (const [max, check2] of sizeCaps(schema._zod.def.checks)) {
|
|
15883
|
+
doc.write(`if (${size} > ${numericOperand(max, check2._zod.def.check)}) return INVALID;`);
|
|
15884
|
+
}
|
|
15885
|
+
}
|
|
15840
15886
|
function generateArrayCheck(doc, ctx, schema, accessor, buildsValue = true) {
|
|
15841
15887
|
const def = schema._zod.def;
|
|
15842
15888
|
doc.write(`if (!Array.isArray(${accessor})) return INVALID;`);
|
|
15889
|
+
generateSizeGate(doc, schema, `${accessor}.length`);
|
|
15843
15890
|
const outputVar = buildsValue ? newVar(ctx) : null;
|
|
15844
15891
|
const iVar = newVar(ctx);
|
|
15845
15892
|
const elemVar = newVar(ctx);
|
|
@@ -16239,6 +16286,7 @@ function literalPropertyKey(ctx, key) {
|
|
|
16239
16286
|
function generateMapCheck(doc, ctx, schema, accessor) {
|
|
16240
16287
|
const def = schema._zod.def;
|
|
16241
16288
|
doc.write(`if (!(${accessor} instanceof Map)) return INVALID;`);
|
|
16289
|
+
generateSizeGate(doc, schema, `${accessor}.size`);
|
|
16242
16290
|
const outputVar = newVar(ctx);
|
|
16243
16291
|
const kVar = newVar(ctx);
|
|
16244
16292
|
const valVar = newVar(ctx);
|
|
@@ -16255,6 +16303,7 @@ function generateMapCheck(doc, ctx, schema, accessor) {
|
|
|
16255
16303
|
function generateSetCheck(doc, ctx, schema, accessor) {
|
|
16256
16304
|
const def = schema._zod.def;
|
|
16257
16305
|
doc.write(`if (!(${accessor} instanceof Set)) return INVALID;`);
|
|
16306
|
+
generateSizeGate(doc, schema, `${accessor}.size`);
|
|
16258
16307
|
const outputVar = newVar(ctx);
|
|
16259
16308
|
const valVar = newVar(ctx);
|
|
16260
16309
|
doc.write(`const ${outputVar} = new Set();`);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { isPlaceholderCommand } from './chunk-
|
|
4
|
-
import { describeCallFailure } from './chunk-
|
|
5
|
-
import { builtinKind } from './chunk-
|
|
6
|
-
import { WorkCommandError, getJson } from './chunk-
|
|
7
|
-
import { sanitizeTerminal } from './chunk-
|
|
8
|
-
import { signerFor } from './chunk-
|
|
9
|
-
import { CLAUDE_CREDENTIAL_VARIABLES, claudeCredential } from './chunk-
|
|
3
|
+
import { isPlaceholderCommand } from './chunk-B6OYEP3K.js';
|
|
4
|
+
import { describeCallFailure } from './chunk-3IDNLZPR.js';
|
|
5
|
+
import { builtinKind } from './chunk-2ZMJFGOZ.js';
|
|
6
|
+
import { WorkCommandError, getJson } from './chunk-DBRB26R7.js';
|
|
7
|
+
import { sanitizeTerminal } from './chunk-HSUUTD4E.js';
|
|
8
|
+
import { signerFor } from './chunk-IRF2FKB5.js';
|
|
9
|
+
import { CLAUDE_CREDENTIAL_VARIABLES, claudeCredential } from './chunk-WHCDULC4.js';
|
|
10
10
|
|
|
11
11
|
createRequire(import.meta.url);
|
|
12
12
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-
|
|
3
|
+
import { runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-SOWXLIDN.js';
|
|
4
4
|
import { readlinkSync, realpathSync, mkdirSync, unlinkSync, symlinkSync, renameSync, readFileSync, writeFileSync, rmSync, existsSync, readdirSync } from 'fs';
|
|
5
5
|
import { join, basename, sep, resolve } from 'path';
|
|
6
6
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { sanitizeTerminal } from './chunk-
|
|
4
|
-
import { isAgentsMdLayout } from './chunk-
|
|
5
|
-
import { resolveGatewayCredentials, defaultFetch } from './chunk-
|
|
3
|
+
import { sanitizeTerminal } from './chunk-HSUUTD4E.js';
|
|
4
|
+
import { isAgentsMdLayout } from './chunk-QDDPVBIS.js';
|
|
5
|
+
import { resolveGatewayCredentials, defaultFetch } from './chunk-AM3GMWQK.js';
|
|
6
6
|
import { versionAtLeast } from './chunk-HCVLP7XA.js';
|
|
7
7
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
8
|
-
import { machineSkillsState, staleClaudeSkills } from './chunk-
|
|
9
|
-
import { AGENTS_SKILLS_BASE, skillDir, namesCore, MACHINE_SKILL_PATH, isMaintainedCopy, loadTemplateFiles } from './chunk-
|
|
8
|
+
import { machineSkillsState, staleClaudeSkills } from './chunk-UAFMC3PL.js';
|
|
9
|
+
import { AGENTS_SKILLS_BASE, skillDir, namesCore, MACHINE_SKILL_PATH, isMaintainedCopy, loadTemplateFiles } from './chunk-AKKVPUGK.js';
|
|
10
10
|
import { MAINTAINED_SKILLS } from './chunk-CDDED64E.js';
|
|
11
11
|
import { cliInvocation } from './chunk-CRB3POP4.js';
|
|
12
|
-
import { hasSymlinkComponent } from './chunk-
|
|
13
|
-
import { emitTree, ALL_TARGET_IDS, classifyTree, splitRawFile } from './chunk-
|
|
12
|
+
import { hasSymlinkComponent } from './chunk-HJUGOAM7.js';
|
|
13
|
+
import { emitTree, ALL_TARGET_IDS, classifyTree, splitRawFile } from './chunk-ZUOPFE22.js';
|
|
14
14
|
import { existsSync, readFileSync, writeFileSync, realpathSync, readdirSync } from 'fs';
|
|
15
15
|
import { join, dirname, posix } from 'path';
|
|
16
16
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { launchRefusalForSession } from './chunk-ESVW4MJY.js';
|
|
4
|
-
import { autoConnect, detectActiveSession } from './chunk-
|
|
5
|
-
import { acquireSpoolLockAt } from './chunk-
|
|
6
|
-
import { resolveRepoIdentity } from './chunk-
|
|
4
|
+
import { autoConnect, detectActiveSession } from './chunk-SJ4DX2AD.js';
|
|
5
|
+
import { acquireSpoolLockAt } from './chunk-HSUUTD4E.js';
|
|
6
|
+
import { resolveRepoIdentity } from './chunk-FTGJ3DPV.js';
|
|
7
7
|
import { C } from './chunk-ANPNT6PM.js';
|
|
8
|
-
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
8
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-AM3GMWQK.js';
|
|
9
9
|
import { launchedItemForSession } from './chunk-T2Q7ISPE.js';
|
|
10
10
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
11
|
-
import { StepNameSchema, StepBodySchema } from './chunk-
|
|
11
|
+
import { StepNameSchema, StepBodySchema } from './chunk-IWFYKNAO.js';
|
|
12
12
|
import { homeFromEnv } from './chunk-VNVZDWO3.js';
|
|
13
13
|
import { randomUUID } from 'crypto';
|
|
14
14
|
import { readFileSync, existsSync, mkdirSync, writeFileSync, renameSync, appendFileSync } from 'fs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE } from './chunk-
|
|
4
|
-
import { normalizePath, CONTEXT_PIN_FILENAME } from './chunk-
|
|
3
|
+
import { AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE } from './chunk-AKKVPUGK.js';
|
|
4
|
+
import { normalizePath, CONTEXT_PIN_FILENAME } from './chunk-ZUOPFE22.js';
|
|
5
5
|
import { existsSync, readdirSync, readFileSync, mkdirSync, writeFileSync, lstatSync, readlinkSync, symlinkSync, rmdirSync } from 'fs';
|
|
6
6
|
import { relative, sep, join } from 'path';
|
|
7
7
|
|