@outerlayer/cli 0.40.0-next.20261117012955 → 0.40.0-next.20261117022943
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/dist/{agent-setup-BP6CVC2M.js → agent-setup-5UMGRTAY.js} +18 -18
- package/dist/{agent-subcommand-VD5C5ZWX.js → agent-subcommand-JGANAEB4.js} +3 -3
- package/dist/{bridge-XVA4KQLV.js → bridge-YHCQBKZC.js} +6 -6
- package/dist/{build-VLHNIM7K.js → build-SSIBPHPA.js} +12 -12
- package/dist/{build-disk-C3YS565A.js → build-disk-KI2JOKAK.js} +10 -10
- package/dist/build-info.json +1 -1
- package/dist/{builder-6JUYA6GH.js → builder-I562HT2D.js} +9 -9
- package/dist/caller-VTVQPOGC.js +23 -0
- package/dist/{check-BYA3QKH6.js → check-YDBHBTOS.js} +53 -53
- package/dist/{chunk-SWPJWQTW.js → chunk-2EJED3QQ.js} +4 -4
- package/dist/{chunk-WT7VZYAO.js → chunk-3WMULGB4.js} +8 -8
- package/dist/{chunk-YPN4PW2D.js → chunk-3YMOSZRN.js} +1 -1
- package/dist/{chunk-WOSDWWBI.js → chunk-45JV3EMA.js} +4 -4
- package/dist/{chunk-RME4AALZ.js → chunk-4FUTEM37.js} +3 -3
- package/dist/{chunk-OUFKMKDB.js → chunk-6367NG5G.js} +7 -7
- package/dist/{chunk-3KFHI5V2.js → chunk-6DO34552.js} +4 -4
- package/dist/{chunk-SCY7U54A.js → chunk-6P23FS2Z.js} +2 -2
- package/dist/{chunk-3DILWPBX.js → chunk-6RJBLCPV.js} +1 -1
- package/dist/{chunk-SO4WL3NE.js → chunk-6TF4QU7M.js} +2 -2
- package/dist/{chunk-PJWGLJFB.js → chunk-732WJDYG.js} +12 -7
- package/dist/{chunk-TKHQAEE4.js → chunk-77JLN6GC.js} +4 -4
- package/dist/{chunk-OCYDGALH.js → chunk-7H5JQFWQ.js} +5 -5
- package/dist/{chunk-5L6KJDL7.js → chunk-AL6CJD2X.js} +8 -8
- package/dist/{chunk-LO2INNG7.js → chunk-BB73O6OW.js} +3 -3
- package/dist/{chunk-2THRR6Z2.js → chunk-BBJC4R6E.js} +4 -4
- package/dist/{chunk-URDI2R7Z.js → chunk-BCBZHDMW.js} +1 -1
- package/dist/{chunk-6C7WHPGM.js → chunk-C6EPHJIV.js} +1 -1
- package/dist/{chunk-MB6OS6TU.js → chunk-CEHT2FCU.js} +69 -20
- package/dist/{chunk-FRUYDEET.js → chunk-CFIYOLCT.js} +6 -6
- package/dist/{chunk-A7M4QXVX.js → chunk-CWJ26A6W.js} +1 -1
- package/dist/{chunk-EBCHAHAR.js → chunk-D5JM2VPO.js} +2 -2
- package/dist/{chunk-VGR27BYJ.js → chunk-DG7525WL.js} +1 -1
- package/dist/{chunk-3MIYTEPW.js → chunk-DLYCHCKQ.js} +1 -1
- package/dist/{chunk-XSXSLUQL.js → chunk-DMWGWD26.js} +3 -3
- package/dist/{chunk-VVZYAQN7.js → chunk-DQV2XTBD.js} +41 -37
- package/dist/{chunk-UT33272A.js → chunk-DSUD4K5N.js} +28 -28
- package/dist/{chunk-5MRB5ZGK.js → chunk-DUQIP32K.js} +4 -4
- package/dist/{chunk-UO5ZXQCS.js → chunk-FKC5D6CA.js} +1 -1
- package/dist/{chunk-WNLDTV2M.js → chunk-G3HBBHIK.js} +1 -1
- package/dist/{chunk-ROJMYI5S.js → chunk-GOJ2SPKB.js} +1 -1
- package/dist/{chunk-IPS7A2BK.js → chunk-H7EBNQGW.js} +1 -1
- package/dist/{chunk-ZWMV7KVB.js → chunk-HQPB4ZMS.js} +1 -1
- package/dist/{chunk-35NMSK4D.js → chunk-IEDCYMPH.js} +2 -2
- package/dist/{chunk-4OLIJCT2.js → chunk-IOUBTUS2.js} +7 -7
- package/dist/{chunk-EHYSQJM5.js → chunk-J4F4V3G2.js} +5 -5
- package/dist/{chunk-PJ6AY5TZ.js → chunk-JBGASRRE.js} +5 -5
- package/dist/{chunk-WO3RLQ7Z.js → chunk-JE23PLDE.js} +1 -1
- package/dist/{chunk-QM4R745Y.js → chunk-JSN2DMPB.js} +1 -1
- package/dist/{chunk-DYL4R2GO.js → chunk-MCJRTOAL.js} +1 -1
- package/dist/{chunk-46D7LPS3.js → chunk-MJGBRYDH.js} +1 -1
- package/dist/{chunk-5JP5KQZ3.js → chunk-NB2BDENG.js} +3 -3
- package/dist/{chunk-PN7SCZEN.js → chunk-NE5PE3Q7.js} +6 -6
- package/dist/{chunk-CLVWA4DI.js → chunk-O2324X34.js} +1 -1
- package/dist/{chunk-MHXUQI67.js → chunk-OF6XMZHO.js} +1 -1
- package/dist/{chunk-47NQTKLX.js → chunk-ONDONSBT.js} +1 -1
- package/dist/{chunk-UPWQO73K.js → chunk-OY4EJVUH.js} +1 -1
- package/dist/{chunk-OXSQAKIY.js → chunk-P2I6YVJV.js} +4 -4
- package/dist/{chunk-S33WRZ4U.js → chunk-PC2FA62W.js} +5 -5
- package/dist/{chunk-D3Y5MZ3H.js → chunk-PEN7Y4PB.js} +3 -3
- package/dist/{chunk-FRIFMX7Q.js → chunk-PWHKJ24U.js} +7 -7
- package/dist/{chunk-YB32CFWZ.js → chunk-Q6MCI3BQ.js} +8 -8
- package/dist/{chunk-F2N6LZL5.js → chunk-QI6YUQWR.js} +3 -3
- package/dist/{chunk-5XEO7FJW.js → chunk-QVTGSGQ5.js} +2 -2
- package/dist/{chunk-ETP7IGQI.js → chunk-RO5YUUN2.js} +1 -1
- package/dist/{chunk-44UZZVEQ.js → chunk-SBSH253O.js} +1 -1
- package/dist/{chunk-AQSXWRPI.js → chunk-SCI6U7CV.js} +17 -16
- package/dist/{chunk-VMYTDPCJ.js → chunk-TL5HRSMD.js} +10 -10
- package/dist/{chunk-QHYRNIBB.js → chunk-TWUEZPWP.js} +2 -2
- package/dist/{chunk-WE2JKEK7.js → chunk-UAOLY4EP.js} +1 -1
- package/dist/{chunk-GMGMEXXK.js → chunk-UELSHBQH.js} +4 -4
- package/dist/{chunk-QSN67PAP.js → chunk-UMFSHU72.js} +2 -2
- package/dist/{chunk-TD7CTDKT.js → chunk-UNGZ25QF.js} +2 -2
- package/dist/{chunk-5RJDLVQJ.js → chunk-UQWBHNTZ.js} +3 -3
- package/dist/{chunk-XAS7GSSM.js → chunk-UXAB2OEM.js} +5 -5
- package/dist/{chunk-N2ACTZT6.js → chunk-VJCILU3C.js} +1 -1
- package/dist/{chunk-SXSJKTXN.js → chunk-XAOZFBXK.js} +1 -1
- package/dist/{chunk-QTTZ455D.js → chunk-XDWJOYC4.js} +5 -5
- package/dist/{chunk-PNX74XDV.js → chunk-XLU5ZOTK.js} +4 -4
- package/dist/{chunk-2MRD6DR3.js → chunk-YI2HDVUL.js} +4 -4
- package/dist/{chunk-ZQZHAHJ4.js → chunk-YNNTU5IZ.js} +5 -2
- package/dist/{chunk-YGLTXCI5.js → chunk-YSHMGQRD.js} +8 -8
- package/dist/{chunk-UU3A53VB.js → chunk-YUR7GV5L.js} +5 -5
- package/dist/{claude-launcher-GZUZCS2W.js → claude-launcher-TWKHBR6F.js} +6 -6
- package/dist/{cli-YL7GCAES.js → cli-SSHQSIPV.js} +162 -162
- package/dist/{command-LDCYT2CM.js → command-W6BEIPAJ.js} +49 -49
- package/dist/{config-EYUZTNWS.js → config-HYSU7MD3.js} +11 -11
- package/dist/{connect-cmd-WFACE4NX.js → connect-cmd-O4ATJTQV.js} +10 -10
- package/dist/{container-start-U34LMPGS.js → container-start-4KRTW3QU.js} +46 -46
- package/dist/{context-cleanup-PTFQF5A7.js → context-cleanup-SK445SLA.js} +3 -3
- package/dist/{context-show-cmd-GXUPNW3Z.js → context-show-cmd-D3GXL65K.js} +11 -11
- package/dist/{control-plane-launch-ZRJA7W24.js → control-plane-launch-KVROM6BY.js} +13 -13
- package/dist/{demo-record-cmd-6T2P2Z64.js → demo-record-cmd-UMHWHDZ4.js} +7 -7
- package/dist/{demo-voice-cmd-BYSMAY3R.js → demo-voice-cmd-GBI52Y73.js} +17 -17
- package/dist/dist-775TDFCK.js +7 -0
- package/dist/{docker-7EH4LDVU.js → docker-B76MDGCW.js} +9 -9
- package/dist/{doctor-3GXWZU6D.js → doctor-QV3BJKRZ.js} +48 -48
- package/dist/{emit-artifact-cmd-4X3J35G3.js → emit-artifact-cmd-X4AKVBS2.js} +16 -16
- package/dist/{emit-cmd-3YXG5Y56.js → emit-cmd-A6ZGOPLZ.js} +6 -6
- package/dist/{emit-criteria-cmd-DS3W7WKU.js → emit-criteria-cmd-UKZBMIK6.js} +13 -13
- package/dist/{emit-demo-cmd-ZJIVFPHW.js → emit-demo-cmd-QC56Y6P2.js} +17 -17
- package/dist/{emit-finding-cmd-QVXW6AOG.js → emit-finding-cmd-DL2Y7BEV.js} +13 -13
- package/dist/{emit-result-cmd-LK6WL5EX.js → emit-result-cmd-VPWAJBN6.js} +15 -15
- package/dist/{emit-step-cmd-FFN6RK5U.js → emit-step-cmd-REP4IS3F.js} +13 -13
- package/dist/{exec-client-6BJIQ5LO.js → exec-client-KBOKVUU5.js} +7 -7
- package/dist/find-unit-5PUEPP5J.js +24 -0
- package/dist/{findings-cmd-3QJ3ZWQI.js → findings-cmd-BXAXOQB6.js} +13 -13
- package/dist/{fleet-readiness-YNJ6OSDF.js → fleet-readiness-EDJDDAEB.js} +12 -12
- package/dist/{governing-source-QR62MSH2.js → governing-source-AG7KDIIG.js} +18 -18
- package/dist/{guest-init-XQPD7GMT.js → guest-init-DUOJUQFY.js} +8 -8
- package/dist/{hook-fast-O46AILAO.js → hook-fast-ZVZWP7OQ.js} +1 -1
- package/dist/{hook-install-5ICKPUMZ.js → hook-install-VF3X2ZXN.js} +3 -3
- package/dist/host-checks-AS2C5HR2.js +82 -0
- package/dist/{host-key-QSSOG7YP.js → host-key-MNYYPKBU.js} +7 -7
- package/dist/{image-tag-4OF2ALEL.js → image-tag-BTK5342G.js} +7 -7
- package/dist/index.js +4 -4
- package/dist/init-H2GOMKCC.js +82 -0
- package/dist/{init-LORSDQXS.js → init-OZ4JNNOI.js} +44 -44
- package/dist/{init-agent-CKCHJGYK.js → init-agent-GNX5OIZX.js} +44 -44
- package/dist/{init-cmd-KGA5CYKE.js → init-cmd-CM7UKGRG.js} +25 -25
- package/dist/{init-update-YWDYID5W.js → init-update-ZJSTM46T.js} +21 -21
- package/dist/install-cmd-U4PP4YQE.js +26 -0
- package/dist/launch-agent-BIAPDAVB.js +26 -0
- package/dist/{layout-GIJHRWYO.js → layout-BG6MFUS3.js} +3 -3
- package/dist/{logs-F7A7A3WS.js → logs-L5GX5BWF.js} +6 -6
- package/dist/loop-3F3PNYOH.js +92 -0
- package/dist/machine-CCB2PQIM.js +82 -0
- package/dist/{machine-skills-YPZLCYK5.js → machine-skills-B7KO47CH.js} +3 -3
- package/dist/{mcp-install-cmd-BIF6Q2HX.js → mcp-install-cmd-JXD6Q7NN.js} +3 -3
- package/dist/{mcp-serve-cmd-T5LKPDNV.js → mcp-serve-cmd-3B3KWYHN.js} +8 -8
- package/dist/{paths-HPZ3ETKQ.js → paths-26SZBIOA.js} +6 -6
- package/dist/pending-Y62PXWTU.js +18 -0
- package/dist/{pidfile-W57IVEOM.js → pidfile-22HCQHLJ.js} +7 -7
- package/dist/{record-ALYV6NMK.js → record-HFUJLNOV.js} +7 -7
- package/dist/{relay-OOCAHL5K.js → relay-V5GHEWT3.js} +4 -4
- package/dist/{relay-protocol-6L72CQYQ.js → relay-protocol-2S2EAHYH.js} +4 -4
- package/dist/{run-cmd-QDTPPHEH.js → run-cmd-G4LA2YZR.js} +13 -13
- package/dist/{runner-agents-6LXWGCI5.js → runner-agents-CLDURIBZ.js} +3 -3
- package/dist/{runner-env-QVZNYUSN.js → runner-env-RQ3SKLKL.js} +13 -13
- package/dist/{runner-identity-GOC6IDFS.js → runner-identity-V4IUTSCJ.js} +9 -9
- package/dist/{runner-key-U7CZ6QEN.js → runner-key-FQDBMYII.js} +44 -44
- package/dist/{session-sender-P3MGBUS3.js → session-sender-AAQXJLNE.js} +16 -16
- package/dist/{setup-cmd-IL2IXNEA.js → setup-cmd-4CKPSEJD.js} +11 -11
- package/dist/{setup-wiring-TTDT6N7U.js → setup-wiring-INA66DBJ.js} +51 -51
- package/dist/{spec-cmd-TOAB7QLG.js → spec-cmd-V2FPAZJ7.js} +14 -14
- package/dist/{starter-pack-Q5EA2XJI.js → starter-pack-WOD4WMUX.js} +4 -4
- package/dist/{state-7REXJETC.js → state-PSFO26DS.js} +7 -7
- package/dist/{status-COW7ZGIA.js → status-MC2SJQ57.js} +44 -44
- package/dist/{sync-cmd-SZMQ62CY.js → sync-cmd-2TLRGEXR.js} +15 -15
- package/dist/update-steps-JZE3OGKB.js +83 -0
- package/dist/{watch-2NFUY7FB.js → watch-GQAIYCFW.js} +15 -15
- package/dist/{work-claim-cmd-VURHVZOC.js → work-claim-cmd-SI3UTDLB.js} +20 -20
- package/dist/{work-cmd-TBN3PSPX.js → work-cmd-LA5ZBMBQ.js} +13 -13
- package/dist/{work-comment-cmd-STKRIVHG.js → work-comment-cmd-NP6USSKX.js} +15 -15
- package/dist/{work-demo-cmd-VT43BELH.js → work-demo-cmd-KZDTXCYM.js} +13 -13
- package/dist/{work-logs-cmd-NSPSFB3I.js → work-logs-cmd-3BX5MK2E.js} +13 -13
- package/dist/{work-mock-cmd-J6UYSYN5.js → work-mock-cmd-IT3IKALB.js} +22 -16
- package/dist/{work-needs-attention-cmd-XIEY4UUW.js → work-needs-attention-cmd-BDIFC7I4.js} +13 -13
- package/dist/{work-no-change-cmd-7EEGZLWP.js → work-no-change-cmd-A65QOBQ2.js} +13 -13
- package/dist/{work-open-pr-cmd-LZFPKU7L.js → work-open-pr-cmd-CGSCDYHI.js} +14 -14
- package/dist/{work-pr-cmd-6RBAVTRU.js → work-pr-cmd-DZKJLYLF.js} +13 -13
- package/dist/{work-proofs-cmd-DDEIBUAH.js → work-proofs-cmd-OJXWHUMP.js} +15 -15
- package/dist/{work-proofs-record-YIXDV7MP.js → work-proofs-record-J6WOOW3R.js} +21 -21
- package/dist/{work-stop-cmd-DRFPP3EH.js → work-stop-cmd-RJESQDZN.js} +13 -13
- package/package.json +2 -2
- package/dist/caller-DH4RYBWQ.js +0 -23
- package/dist/dist-WAAZSUPE.js +0 -7
- package/dist/find-unit-LUVD3FM2.js +0 -24
- package/dist/host-checks-VQTUQUHE.js +0 -82
- package/dist/init-E5XXKJFL.js +0 -82
- package/dist/install-cmd-3QQBTWJA.js +0 -26
- package/dist/launch-agent-NJ3S22WS.js +0 -26
- package/dist/loop-TBPHJREN.js +0 -92
- package/dist/machine-7GAB22S4.js +0 -82
- package/dist/pending-7BSPROGA.js +0 -18
- package/dist/update-steps-AXQAJXCE.js +0 -83
|
@@ -1,17 +1,17 @@
|
|
|
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-CWJ26A6W.js';
|
|
5
|
+
import { autoConnect } from './chunk-UQWBHNTZ.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
|
-
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
7
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-DG7525WL.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-CEHT2FCU.js';
|
|
13
13
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
14
|
-
import { resolveRepoIdentity, scrubText } from './chunk-
|
|
14
|
+
import { resolveRepoIdentity, scrubText } from './chunk-YNNTU5IZ.js';
|
|
15
15
|
import { FindingBatchSchema, findingGaps, FindingsResponseSchema, FINDING_CODE_EXCERPT_MAX_LENGTH, SAME_PROBLEM_RULES, FINDING_TRANSCRIPT_EXCERPT_MAX_LENGTH } from './chunk-MCUI6RHU.js';
|
|
16
16
|
import { readFileSync, existsSync } from 'fs';
|
|
17
17
|
import { homedir } from 'os';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { newTokenRetry } from './chunk-FJGYU2EK.js';
|
|
4
|
-
import { WorkCommandError, postJson } from './chunk-
|
|
5
|
-
import { defaultGitRunner, materializeContext, fetchControlPlaneCommit, lookupGoverningSource } from './chunk-
|
|
6
|
-
import { buildRefusalReason } from './chunk-
|
|
7
|
-
import { unsupportedLayout, layoutRefusalReason, composeDelivery } from './chunk-
|
|
8
|
-
import { signingFetchFor } from './chunk-
|
|
9
|
-
import { signerFor } from './chunk-
|
|
10
|
-
import { SHIM_DIR, stagedContextDir, contextHomeDir, deliveryDir, keptContextDir } from './chunk-
|
|
11
|
-
import { SandboxError, describeSandboxError } from './chunk-
|
|
4
|
+
import { WorkCommandError, postJson } from './chunk-IOUBTUS2.js';
|
|
5
|
+
import { defaultGitRunner, materializeContext, fetchControlPlaneCommit, lookupGoverningSource } from './chunk-UXAB2OEM.js';
|
|
6
|
+
import { buildRefusalReason } from './chunk-6RJBLCPV.js';
|
|
7
|
+
import { unsupportedLayout, layoutRefusalReason, composeDelivery } from './chunk-RO5YUUN2.js';
|
|
8
|
+
import { signingFetchFor } from './chunk-DG7525WL.js';
|
|
9
|
+
import { signerFor } from './chunk-MCJRTOAL.js';
|
|
10
|
+
import { SHIM_DIR, stagedContextDir, contextHomeDir, deliveryDir, keptContextDir } from './chunk-JE23PLDE.js';
|
|
11
|
+
import { SandboxError, describeSandboxError } from './chunk-77JLN6GC.js';
|
|
12
12
|
import { SHIM_SCRIPT, shimScriptFor, GOVERNANCE_VARIABLE } from './chunk-F3J4UKBF.js';
|
|
13
13
|
import { readDegraded, readContextManifest, readSourceCache } from './chunk-YQR6E6OV.js';
|
|
14
14
|
import { fstatSync, mkdirSync, writeFileSync, chmodSync, rmSync, cpSync, readFileSync, existsSync, lstatSync } from 'fs';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { helperSocketPath } from './chunk-
|
|
4
|
-
import { UNIT_MARKER } from './chunk-
|
|
5
|
-
import { runnerDir } from './chunk-
|
|
3
|
+
import { helperSocketPath } from './chunk-DSUD4K5N.js';
|
|
4
|
+
import { UNIT_MARKER } from './chunk-CFIYOLCT.js';
|
|
5
|
+
import { runnerDir } from './chunk-JE23PLDE.js';
|
|
6
6
|
import { createHash } from 'crypto';
|
|
7
7
|
import { join } from 'path';
|
|
8
8
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { PROXY_WARNING_FLAG } from './chunk-
|
|
4
|
-
import { RELAY_ID, RELAY_USER } from './chunk-
|
|
5
|
-
import { imageInstalls, GH_VERSION, VOICE_PACK_FILES, VOICE_PACK_VERSION, FFMPEG_STATIC, FFMPEG_BUILD_TAG, GH_SHA256, TINI_SHA256, TINI_VERSION, HEADLESS_SHELL_REVISION, HEADLESS_SHELL_BASE_URL, PLAYWRIGHT_FFMPEG_BASE_URL, PLAYWRIGHT_FFMPEG_REVISION, HEADLESS_SHELL, PLAYWRIGHT_FFMPEG, PLAYWRIGHT_VERSION } from './chunk-
|
|
6
|
-
import { defaultAgents } from './chunk-
|
|
3
|
+
import { PROXY_WARNING_FLAG } from './chunk-77JLN6GC.js';
|
|
4
|
+
import { RELAY_ID, RELAY_USER } from './chunk-QVTGSGQ5.js';
|
|
5
|
+
import { imageInstalls, GH_VERSION, VOICE_PACK_FILES, VOICE_PACK_VERSION, FFMPEG_STATIC, FFMPEG_BUILD_TAG, GH_SHA256, TINI_SHA256, TINI_VERSION, HEADLESS_SHELL_REVISION, HEADLESS_SHELL_BASE_URL, PLAYWRIGHT_FFMPEG_BASE_URL, PLAYWRIGHT_FFMPEG_REVISION, HEADLESS_SHELL, PLAYWRIGHT_FFMPEG, PLAYWRIGHT_VERSION } from './chunk-OF6XMZHO.js';
|
|
6
|
+
import { defaultAgents } from './chunk-CEHT2FCU.js';
|
|
7
7
|
|
|
8
8
|
createRequire(import.meta.url);
|
|
9
9
|
|
|
@@ -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-JE23PLDE.js';
|
|
4
4
|
import { mkdirSync, writeFileSync, renameSync, existsSync, readFileSync } from 'fs';
|
|
5
5
|
import { dirname, join } from 'path';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { currentLink } from './chunk-
|
|
3
|
+
import { currentLink } from './chunk-UAOLY4EP.js';
|
|
4
4
|
import { readFileSync, statSync, chmodSync, mkdirSync, writeFileSync, renameSync, rmSync, existsSync, lstatSync, accessSync, constants, realpathSync } from 'fs';
|
|
5
5
|
import { randomBytes } from 'crypto';
|
|
6
6
|
import { join, dirname, delimiter, resolve } from 'path';
|
|
@@ -5,7 +5,7 @@ import { CLAUDE_CODE, CODEX, OPENCODE, NATIVE_AGENTS, LEGACY_AGENT, homeRelative
|
|
|
5
5
|
import { MAINTAINED_SKILLS } from './chunk-VSBG7MMU.js';
|
|
6
6
|
import { resolvePackageVersion } from './chunk-RA3O54FC.js';
|
|
7
7
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
8
|
-
import { forkFor, RAW_MIRROR_SEGMENTS, compareVersions, WarningCollector,
|
|
8
|
+
import { WARNING_CODES, forkFor, RAW_MIRROR_SEGMENTS, compareVersions, WarningCollector, isNewerThanSupported, bucketsFromTurns, costOfUsage, ZSTD_UNSUPPORTED_MESSAGE } from './chunk-YNNTU5IZ.js';
|
|
9
9
|
import { CODE_REVIEW_NAME, CRITERIA_JUDGE_NAME, RESERVED_EMIT_NAMES, EVENT_TYPES, isHumanUserTurn, INPUT_BAND_BOUNDARIES, parseAgentSession, SCHEMA_VERSION, ARTIFACT_KINDS, ArtifactCriterionIdSchema, SPEED_MAX_LENGTH } from './chunk-MCUI6RHU.js';
|
|
10
10
|
import { __commonJS, __require, __toESM } from './chunk-Z5GEFMRW.js';
|
|
11
11
|
import { existsSync, readFileSync, mkdirSync, writeFileSync, readdirSync, rmSync, renameSync, realpathSync, readlinkSync, symlinkSync, copyFileSync, statSync, accessSync, constants, lstatSync } from 'fs';
|
|
@@ -10950,6 +10950,7 @@ function createCodexCapture(io) {
|
|
|
10950
10950
|
};
|
|
10951
10951
|
const parseFile = (file) => {
|
|
10952
10952
|
const text = file.endsWith(".zst") ? io.fs.readCompressedText(file) : io.fs.readRawText(file);
|
|
10953
|
+
if (text === void 0 && file.endsWith(".zst") && io.fs.stat(file).kind === "file") return void 0;
|
|
10953
10954
|
if (text === void 0) throw new Error(`cannot read the rollout ${file}`);
|
|
10954
10955
|
return text;
|
|
10955
10956
|
};
|
|
@@ -10962,7 +10963,9 @@ function createCodexCapture(io) {
|
|
|
10962
10963
|
}).filter((entry) => entry.bytes > 0).sort((a, b) => b.mtimeMs - a.mtimeMs);
|
|
10963
10964
|
},
|
|
10964
10965
|
parse(entry, options) {
|
|
10965
|
-
|
|
10966
|
+
const text = parseFile(entry.file);
|
|
10967
|
+
if (text === void 0) return { ...emptyResult(0, ZSTD_UNSUPPORTED_MESSAGE), warnings: { [WARNING_CODES.zstdUnsupported]: 1 } };
|
|
10968
|
+
return parseText(text, { fallbackId: idOf(entry.file), ...options.captureTier === void 0 ? {} : { captureTier: options.captureTier } });
|
|
10966
10969
|
},
|
|
10967
10970
|
parseText,
|
|
10968
10971
|
tail(file, completeText, options) {
|
|
@@ -11182,6 +11185,18 @@ function keyPath(text) {
|
|
|
11182
11185
|
}
|
|
11183
11186
|
return parts.length === 0 ? void 0 : parts;
|
|
11184
11187
|
}
|
|
11188
|
+
function equalsOf(line) {
|
|
11189
|
+
let quote;
|
|
11190
|
+
for (let index = 0; index < line.length; index += 1) {
|
|
11191
|
+
const char = line[index];
|
|
11192
|
+
if (quote !== void 0) {
|
|
11193
|
+
if (char === "\\" && quote === '"') index += 1;
|
|
11194
|
+
else if (char === quote) quote = void 0;
|
|
11195
|
+
} else if (char === '"' || char === "'") quote = char;
|
|
11196
|
+
else if (char === "=") return index;
|
|
11197
|
+
}
|
|
11198
|
+
return -1;
|
|
11199
|
+
}
|
|
11185
11200
|
function keyText(name) {
|
|
11186
11201
|
return BARE_KEY.test(name) ? name : JSON.stringify(name);
|
|
11187
11202
|
}
|
|
@@ -11209,7 +11224,7 @@ function tablesOf(lines) {
|
|
|
11209
11224
|
tables.push({ path: header[1] === "[[" ? [...path, "[]"] : path, start: index, end: lines.length });
|
|
11210
11225
|
return;
|
|
11211
11226
|
}
|
|
11212
|
-
const equals = line
|
|
11227
|
+
const equals = equalsOf(line);
|
|
11213
11228
|
if (equals < 1 || keyPath(line.slice(0, equals)) === void 0) throw new TomlTextError(`line ${index + 1} is not a key and a value`);
|
|
11214
11229
|
const value = line.slice(equals + 1).trim();
|
|
11215
11230
|
const triple = /^("""|''')/.exec(value);
|
|
@@ -11233,7 +11248,7 @@ function pairsIn(lines, from, to) {
|
|
|
11233
11248
|
while (index < to) {
|
|
11234
11249
|
const line = lines[index];
|
|
11235
11250
|
index += 1;
|
|
11236
|
-
const equals = line
|
|
11251
|
+
const equals = equalsOf(line);
|
|
11237
11252
|
if (line.trim() === "" || line.trim().startsWith("#") || equals < 1) continue;
|
|
11238
11253
|
const key = keyPath(line.slice(0, equals));
|
|
11239
11254
|
let value = line.slice(equals + 1);
|
|
@@ -11275,16 +11290,27 @@ var literal = (value) => Array.isArray(value) ? `[${value.map((item) => JSON.str
|
|
|
11275
11290
|
var table = (header, pairs) => `[${header}]
|
|
11276
11291
|
${pairs.map(([key, value]) => `${keyText(key)} = ${literal(value)}
|
|
11277
11292
|
`).join("")}`;
|
|
11293
|
+
var VARIABLE = /^\$\{([A-Za-z_][A-Za-z0-9_]*)\}$/;
|
|
11294
|
+
var BEARER_VARIABLE = /^Bearer \$\{([A-Za-z_][A-Za-z0-9_]*)\}$/;
|
|
11278
11295
|
function serverBlock(name, entry) {
|
|
11279
11296
|
const header = `mcp_servers.${keyText(name)}`;
|
|
11280
11297
|
const isUrl = (entry.type === "http" || entry.type === "sse" || entry.command === void 0) && typeof entry.url === "string";
|
|
11281
11298
|
const main = isUrl ? [["url", entry.url]] : [["command", entry.command], ...strings(entry.args).length > 0 ? [["args", strings(entry.args)]] : []];
|
|
11282
|
-
const
|
|
11299
|
+
const pairsOf = (field) => {
|
|
11283
11300
|
const value = entry[field];
|
|
11284
|
-
|
|
11285
|
-
return pairs.length === 0 ? [] : [table(`${header}.${tableName}`, pairs)];
|
|
11301
|
+
return isObject4(value) ? Object.entries(value).filter((pair) => typeof pair[1] === "string") : [];
|
|
11286
11302
|
};
|
|
11287
|
-
|
|
11303
|
+
const sub = (tableName, pairs) => pairs.length === 0 ? [] : [table(`${header}.${tableName}`, pairs)];
|
|
11304
|
+
const headers = [];
|
|
11305
|
+
const fromEnv = [];
|
|
11306
|
+
for (const [key, value] of pairsOf("headers")) {
|
|
11307
|
+
const bearer = BEARER_VARIABLE.exec(value)?.[1];
|
|
11308
|
+
const variable = VARIABLE.exec(value)?.[1];
|
|
11309
|
+
if (bearer !== void 0 && key.toLowerCase() === "authorization") main.push(["bearer_token_env_var", bearer]);
|
|
11310
|
+
else if (variable !== void 0) fromEnv.push([key, variable]);
|
|
11311
|
+
else headers.push([key, value]);
|
|
11312
|
+
}
|
|
11313
|
+
return [table(header, main), ...sub("env", pairsOf("env")), ...sub("http_headers", headers), ...sub("env_http_headers", fromEnv)].join("\n").replace(/\n+$/, "");
|
|
11288
11314
|
}
|
|
11289
11315
|
function serverTables(tables, name) {
|
|
11290
11316
|
return tables.filter((candidate) => candidate.path[0] === "mcp_servers" && candidate.path[1] === name);
|
|
@@ -11347,6 +11373,7 @@ var SHIM_MAX_BYTES = 256;
|
|
|
11347
11373
|
var SHIM = /^#!\/bin\/sh\nexec outerlayer [^\n]*"\$@"\n$/;
|
|
11348
11374
|
var DEFAULT_DOC_BYTES = 32 * 1024;
|
|
11349
11375
|
var STALE_MS = 24 * 60 * 60 * 1e3;
|
|
11376
|
+
var LAUNCHER_PID = "launcher.pid";
|
|
11350
11377
|
var SHARED_FOLDERS = ["sessions", "plugins", ".tmp"];
|
|
11351
11378
|
var BYPASS_HOOK_TRUST = "--dangerously-bypass-hook-trust";
|
|
11352
11379
|
var VALUE_OPTIONS = /* @__PURE__ */ new Set(["-c", "--config", "-m", "--model", "-p", "--profile", "-s", "--sandbox", "-C", "--cd", "-i", "--image", "--enable", "--disable", "-a", "--ask-for-approval", "--add-dir", "--color", "--output-schema", "-o", "--output-last-message", "--local-provider", "--remote"]);
|
|
@@ -11373,13 +11400,19 @@ function createLaunch2(io) {
|
|
|
11373
11400
|
const { fs } = io;
|
|
11374
11401
|
const launches = /* @__PURE__ */ new Map();
|
|
11375
11402
|
const foldersBase = (home) => join2(home, ".outerlayer", "codex-home");
|
|
11403
|
+
const isFile = (path) => fs.stat(path).kind === "file";
|
|
11404
|
+
function launcherRuns(folder) {
|
|
11405
|
+
const text = fs.kind(join2(folder, LAUNCHER_PID)) === "file" ? fs.readText(join2(folder, LAUNCHER_PID)) : void 0;
|
|
11406
|
+
const pid = Number((text ?? "").trim());
|
|
11407
|
+
return Number.isInteger(pid) && pid > 0 && io.alive(pid);
|
|
11408
|
+
}
|
|
11376
11409
|
function removeStale(home) {
|
|
11377
11410
|
const base = foldersBase(home);
|
|
11378
11411
|
if (fs.kind(base) !== "directory") return;
|
|
11379
11412
|
for (const name of fs.list(base)) {
|
|
11380
11413
|
const folder = join2(base, name);
|
|
11381
11414
|
const { mtimeMs } = fs.stat(folder);
|
|
11382
|
-
if (mtimeMs > 0 && io.now().getTime() - mtimeMs > STALE_MS) removeFolder(folder);
|
|
11415
|
+
if (mtimeMs > 0 && io.now().getTime() - mtimeMs > STALE_MS && !launcherRuns(folder)) removeFolder(folder);
|
|
11383
11416
|
}
|
|
11384
11417
|
}
|
|
11385
11418
|
function removeFolder(folder) {
|
|
@@ -11387,7 +11420,7 @@ function createLaunch2(io) {
|
|
|
11387
11420
|
fs.remove(folder);
|
|
11388
11421
|
}
|
|
11389
11422
|
function instructionsOf(folder, userHome) {
|
|
11390
|
-
const own =
|
|
11423
|
+
const own = isFile(join2(userHome, "AGENTS.md")) ? fs.readText(join2(userHome, "AGENTS.md")) : void 0;
|
|
11391
11424
|
if (own === void 0 || own.trim() === "") return;
|
|
11392
11425
|
const delivered = fs.kind(join2(folder, "AGENTS.md")) === "file" ? fs.readText(join2(folder, "AGENTS.md")) : void 0;
|
|
11393
11426
|
fs.write(join2(folder, "AGENTS.md"), delivered === void 0 ? own : `${delivered.endsWith("\n") ? delivered : `${delivered}
|
|
@@ -11404,7 +11437,7 @@ ${own}`);
|
|
|
11404
11437
|
}
|
|
11405
11438
|
}
|
|
11406
11439
|
function configOf(folder, userHome) {
|
|
11407
|
-
const own =
|
|
11440
|
+
const own = isFile(join2(userHome, "config.toml")) ? fs.readText(join2(userHome, "config.toml")) ?? "" : "";
|
|
11408
11441
|
try {
|
|
11409
11442
|
let text = CODEX_MCP.setServer(own, "outerlayer", MCP_ENTRY, "if-absent").text;
|
|
11410
11443
|
const agents = fs.kind(join2(folder, "AGENTS.md")) === "file" ? fs.readText(join2(folder, "AGENTS.md")) ?? "" : "";
|
|
@@ -11432,14 +11465,16 @@ ${own}`);
|
|
|
11432
11465
|
const userHome = input.env.CODEX_HOME !== void 0 && input.env.CODEX_HOME !== "" ? input.env.CODEX_HOME : join2(home, ".codex");
|
|
11433
11466
|
const folder = join2(foldersBase(home), `${io.now().getTime().toString(36)}-${Math.random().toString(36).slice(2, 10)}`);
|
|
11434
11467
|
fs.makeDir(folder);
|
|
11435
|
-
|
|
11468
|
+
fs.write(join2(folder, LAUNCHER_PID), `${io.pid()}
|
|
11469
|
+
`);
|
|
11470
|
+
const ownHooks = isFile(join2(userHome, "hooks.json")) ? fs.readText(join2(userHome, "hooks.json")) : void 0;
|
|
11436
11471
|
if (input.controlPlane === void 0) fs.write(join2(folder, "hooks.json"), hooksText(ownHooks));
|
|
11437
11472
|
else composeInto(io, input.controlPlane, folder, input.controlPlane, ownHooks);
|
|
11438
11473
|
instructionsOf(folder, userHome);
|
|
11439
11474
|
linkOwnSkills(folder, userHome);
|
|
11440
11475
|
fs.write(join2(folder, "config.toml"), configOf(folder, userHome));
|
|
11441
11476
|
const login = join2(userHome, "auth.json");
|
|
11442
|
-
const authText =
|
|
11477
|
+
const authText = isFile(login) ? fs.readText(login) : void 0;
|
|
11443
11478
|
if (authText !== void 0) fs.copy(login, join2(folder, "auth.json"));
|
|
11444
11479
|
for (const name of SHARED_FOLDERS) {
|
|
11445
11480
|
fs.makeDir(join2(userHome, name));
|
|
@@ -11454,17 +11489,22 @@ ${own}`);
|
|
|
11454
11489
|
const launched = folder === void 0 ? void 0 : launches.get(folder);
|
|
11455
11490
|
if (folder === void 0 || launched === void 0) return;
|
|
11456
11491
|
launches.delete(folder);
|
|
11457
|
-
|
|
11458
|
-
|
|
11459
|
-
|
|
11460
|
-
|
|
11492
|
+
const refreshed = fs.kind(join2(folder, "auth.json")) === "file" ? fs.readText(join2(folder, "auth.json")) : void 0;
|
|
11493
|
+
if (refreshed !== void 0 && refreshed !== launched.authText) {
|
|
11494
|
+
const login = join2(launched.userHome, "auth.json");
|
|
11495
|
+
try {
|
|
11496
|
+
const target = fs.kind(login) === "link" ? fs.realPath(login) : login;
|
|
11461
11497
|
fs.makeDir(launched.userHome);
|
|
11462
11498
|
fs.write(`${target}.outerlayer-new`, refreshed);
|
|
11463
11499
|
fs.rename(`${target}.outerlayer-new`, target);
|
|
11500
|
+
} catch (err) {
|
|
11501
|
+
throw new Error(
|
|
11502
|
+
`the refreshed Codex login was not copied to ${login} (${err instanceof Error ? err.message : String(err)}). Copy ${join2(folder, "auth.json")} there before the next launch removes it a day from now.`,
|
|
11503
|
+
{ cause: err }
|
|
11504
|
+
);
|
|
11464
11505
|
}
|
|
11465
|
-
} finally {
|
|
11466
|
-
removeFolder(folder);
|
|
11467
11506
|
}
|
|
11507
|
+
removeFolder(folder);
|
|
11468
11508
|
}
|
|
11469
11509
|
return {
|
|
11470
11510
|
findProgram: (path, delimiter2 = ":") => findProgram2(io, path, delimiter2),
|
|
@@ -12659,7 +12699,16 @@ function createNodeAgentIO() {
|
|
|
12659
12699
|
},
|
|
12660
12700
|
home: () => homeFromEnv() || homedir(),
|
|
12661
12701
|
env: () => ({ ...process.env }),
|
|
12662
|
-
now: () => /* @__PURE__ */ new Date()
|
|
12702
|
+
now: () => /* @__PURE__ */ new Date(),
|
|
12703
|
+
pid: () => process.pid,
|
|
12704
|
+
alive(pid) {
|
|
12705
|
+
try {
|
|
12706
|
+
process.kill(pid, 0);
|
|
12707
|
+
return true;
|
|
12708
|
+
} catch (err) {
|
|
12709
|
+
return err.code === "EPERM";
|
|
12710
|
+
}
|
|
12711
|
+
}
|
|
12663
12712
|
};
|
|
12664
12713
|
}
|
|
12665
12714
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { builtinKind, keepsHostBuilder } from './chunk-
|
|
4
|
-
import { parseSize } from './chunk-
|
|
5
|
-
import { runnerDir } from './chunk-
|
|
6
|
-
import { FD_SLOTS_PER_BUILD, FD_STORE_ENV, BUILD_SLICE_MEMORY_ENV, credentialLineIn, withoutCredentialLines } from './chunk-
|
|
7
|
-
import { credentialAgent, credentialNames, credentialForms } from './chunk-
|
|
8
|
-
import { defaultAgents } from './chunk-
|
|
3
|
+
import { builtinKind, keepsHostBuilder } from './chunk-45JV3EMA.js';
|
|
4
|
+
import { parseSize } from './chunk-YSHMGQRD.js';
|
|
5
|
+
import { runnerDir } from './chunk-JE23PLDE.js';
|
|
6
|
+
import { FD_SLOTS_PER_BUILD, FD_STORE_ENV, BUILD_SLICE_MEMORY_ENV, credentialLineIn, withoutCredentialLines } from './chunk-QVTGSGQ5.js';
|
|
7
|
+
import { credentialAgent, credentialNames, credentialForms } from './chunk-OF6XMZHO.js';
|
|
8
|
+
import { defaultAgents } from './chunk-CEHT2FCU.js';
|
|
9
9
|
import { existsSync, readFileSync, writeFileSync, chmodSync, renameSync } from 'fs';
|
|
10
10
|
import { dirname, join } from 'path';
|
|
11
11
|
import { spawnSync } from 'child_process';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { defaultAgents } from './chunk-
|
|
3
|
+
import { defaultAgents } from './chunk-CEHT2FCU.js';
|
|
4
4
|
import { openSync, fstatSync, readSync, closeSync } from 'fs';
|
|
5
5
|
import { join } from 'path';
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { linkedBranches, setupCommitPaths, commitCommandsFor, ownerAndName } from './chunk-
|
|
4
|
-
import { resolveGatewayCredentials } from './chunk-
|
|
3
|
+
import { linkedBranches, setupCommitPaths, commitCommandsFor, ownerAndName } from './chunk-6DO34552.js';
|
|
4
|
+
import { resolveGatewayCredentials } from './chunk-DG7525WL.js';
|
|
5
5
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
6
6
|
import { execFileSync } from 'child_process';
|
|
7
7
|
import { existsSync, mkdirSync, writeFileSync } from 'fs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { readCloudConfigStrict, readCloudConfig, cloudConfigPath } from './chunk-HWVMRETT.js';
|
|
4
|
-
import { signRunnerRequest, signerFor } from './chunk-
|
|
4
|
+
import { signRunnerRequest, signerFor } from './chunk-MCJRTOAL.js';
|
|
5
5
|
import { readRepoConnection, findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
6
6
|
import { PLAIN_VERSION, recordCliVersion, removeRecordedVersion } from './chunk-Z7J7JWGF.js';
|
|
7
7
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { isVersion, compareVersions } from './chunk-TQMI335S.js';
|
|
4
|
-
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-
|
|
4
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-JE23PLDE.js';
|
|
5
5
|
import { readFileSync, mkdirSync, writeFileSync, renameSync } from 'fs';
|
|
6
6
|
import { join } from 'path';
|
|
7
7
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { LAUNCH_AGENT_ENV } from './chunk-TXKHD4Q6.js';
|
|
4
|
-
import { execStartArgv } from './chunk-
|
|
5
|
-
import { DEFAULT_UNIT_NAME } from './chunk-
|
|
6
|
-
import { runnerDir } from './chunk-
|
|
4
|
+
import { execStartArgv } from './chunk-UAOLY4EP.js';
|
|
5
|
+
import { DEFAULT_UNIT_NAME } from './chunk-CFIYOLCT.js';
|
|
6
|
+
import { runnerDir } from './chunk-JE23PLDE.js';
|
|
7
7
|
import { join, dirname } from 'path';
|
|
8
8
|
|
|
9
9
|
createRequire(import.meta.url);
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-
|
|
3
|
+
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-FKC5D6CA.js';
|
|
4
4
|
import { fetchVersionMeta, npmVersion, npmSupportsProvenance, fetchTarballDigest, fetchProvenance, installVersion, auditSignatures } from './chunk-E7R2GIAW.js';
|
|
5
|
-
import { reportFailedStart, fitImageBuildMemory } from './chunk-
|
|
6
|
-
import { renderUpdateSteps } from './chunk-
|
|
5
|
+
import { reportFailedStart, fitImageBuildMemory } from './chunk-PWHKJ24U.js';
|
|
6
|
+
import { renderUpdateSteps } from './chunk-NB2BDENG.js';
|
|
7
7
|
import { decideInstalledSwitch } from './chunk-TXKHD4Q6.js';
|
|
8
|
-
import { writeFleetState } from './chunk-
|
|
9
|
-
import { writePendingUpdate } from './chunk-
|
|
10
|
-
import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-
|
|
11
|
-
import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-
|
|
12
|
-
import { leaseTimeLeftMs, createContainerRuntime, heldSandboxClaimsOf, unfinishedJobs, withTunnelLog, itemTag, releaseLease, runDecision, claimRun, LEASE_SECONDS, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, restoreSessionIntoSandbox, restoreWork, keptSessionDir, workRestoredEnv, sessionGuestOfMicroVm, sessionGuestOfContainer, sessionGuestOfSandbox, recordsProofsOnly, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, setStage, jobEnv, runHook, describeHookEnd, needsBuildSkill, provisionContainer, leaseExpiresAtMs, withJobTimeLimit, deliverContainerHooks, provisionSandbox, deliverSandboxHooks, provisionMicroVm, deliverCommitHooks, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, keptCommitsLine, currentSkillCommand, formerSkillProblem, commandLogOffset, startSandboxCommand, MICROVM_COMMAND_DIR, startMicroVmCommand, microVmCommandLine, runCommand, containerCommandExec, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isSandboxTracked, isContainerTracked, isMicroVmTracked, probeSandboxCommand, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, SandboxGoneError, SandboxContainerStoppedError, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isIsolatedJob, jobTimeLimitMinutes, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, vmAlive, filesAreCopied, inSandbox, listItemDisks, usableCpus, hookLimitsFor, runCommandOf, AttemptLogBook, environmentFor, builtOf, judgeCredential, readWorkItem, makeRecorder, microVmOomKills, needsRenew, renewRun, renewLease, RENEW_INTERVAL_SECONDS, stoppedHelperReason, measureDisk, listTrackedJobs, sweepSandboxes, keptSandboxIds, parseCpuList, ensureTunnel, keepGhConfigCurrent, restartSender, rejoinSandboxBuild, createHousekeepingDocker, housekeepingDockerIfReachable, runHousekeeping, shellQuote, jobRecordsClaim, freeItemDisksUntil, savedStatesDir, readRecords, removeOldestUntil, treeFileText, timeoutAfter, scrubReason, ensureNetworkReady, ADOPTED_FETCH_RETRY_WINDOW_MS, managedBuildSettingsFor, gitRemoteFor, startServicesFor, installTrust, createLeaseChannel, serveLease, writeGuestGhConfig, deliverJobFiles, inTeardown } from './chunk-
|
|
13
|
-
import { RUNNER_PROTOCOL } from './chunk-
|
|
14
|
-
import { criteriaOf, loadCitationFinder, wholeItems, itemsSentence, oneLineReason, wholeEntries, parseJudgeAnswer } from './chunk-
|
|
15
|
-
import { RUNNER_RESERVE_BYTES } from './chunk-
|
|
16
|
-
import { RepoFilter } from './chunk-
|
|
8
|
+
import { writeFleetState } from './chunk-BCBZHDMW.js';
|
|
9
|
+
import { writePendingUpdate } from './chunk-XAOZFBXK.js';
|
|
10
|
+
import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-TL5HRSMD.js';
|
|
11
|
+
import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-UAOLY4EP.js';
|
|
12
|
+
import { leaseTimeLeftMs, createContainerRuntime, heldSandboxClaimsOf, unfinishedJobs, withTunnelLog, itemTag, releaseLease, runDecision, claimRun, LEASE_SECONDS, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, restoreSessionIntoSandbox, restoreWork, keptSessionDir, workRestoredEnv, sessionGuestOfMicroVm, sessionGuestOfContainer, sessionGuestOfSandbox, recordsProofsOnly, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, setStage, jobEnv, runHook, describeHookEnd, needsBuildSkill, provisionContainer, leaseExpiresAtMs, withJobTimeLimit, deliverContainerHooks, provisionSandbox, deliverSandboxHooks, provisionMicroVm, deliverCommitHooks, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, keptCommitsLine, currentSkillCommand, formerSkillProblem, commandLogOffset, startSandboxCommand, MICROVM_COMMAND_DIR, startMicroVmCommand, microVmCommandLine, runCommand, containerCommandExec, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isSandboxTracked, isContainerTracked, isMicroVmTracked, probeSandboxCommand, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, SandboxGoneError, SandboxContainerStoppedError, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isIsolatedJob, jobTimeLimitMinutes, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, vmAlive, filesAreCopied, inSandbox, listItemDisks, usableCpus, hookLimitsFor, runCommandOf, AttemptLogBook, environmentFor, builtOf, judgeCredential, readWorkItem, makeRecorder, microVmOomKills, needsRenew, renewRun, renewLease, RENEW_INTERVAL_SECONDS, stoppedHelperReason, measureDisk, listTrackedJobs, sweepSandboxes, keptSandboxIds, parseCpuList, ensureTunnel, keepGhConfigCurrent, restartSender, rejoinSandboxBuild, createHousekeepingDocker, housekeepingDockerIfReachable, runHousekeeping, shellQuote, jobRecordsClaim, freeItemDisksUntil, savedStatesDir, readRecords, removeOldestUntil, treeFileText, timeoutAfter, scrubReason, ensureNetworkReady, ADOPTED_FETCH_RETRY_WINDOW_MS, managedBuildSettingsFor, gitRemoteFor, startServicesFor, installTrust, createLeaseChannel, serveLease, writeGuestGhConfig, deliverJobFiles, inTeardown } from './chunk-DSUD4K5N.js';
|
|
13
|
+
import { RUNNER_PROTOCOL } from './chunk-HQPB4ZMS.js';
|
|
14
|
+
import { criteriaOf, loadCitationFinder, wholeItems, itemsSentence, oneLineReason, wholeEntries, parseJudgeAnswer } from './chunk-MJGBRYDH.js';
|
|
15
|
+
import { RUNNER_RESERVE_BYTES } from './chunk-CFIYOLCT.js';
|
|
16
|
+
import { RepoFilter } from './chunk-732WJDYG.js';
|
|
17
17
|
import { JOB_STATE_FORMAT, readsJobState, jobStateFormatOf } from './chunk-B4XB5QFD.js';
|
|
18
|
-
import { imageTag, writeUpdateStatus, pullInstruction, tagToPull } from './chunk-
|
|
18
|
+
import { imageTag, writeUpdateStatus, pullInstruction, tagToPull } from './chunk-DLYCHCKQ.js';
|
|
19
19
|
import { isVersion, compareVersions, satisfiesRange } from './chunk-TQMI335S.js';
|
|
20
|
-
import { claimCalls, claimItem, spoolHomeFor, leftByRunnerKey, runnerCalls, itemCalls, configForJob } from './chunk-
|
|
21
|
-
import { fetchCommit, readBranchHead, diffBetween } from './chunk-
|
|
22
|
-
import { claimPidFile, releasePidFile, writePidFile, readPidFile } from './chunk-
|
|
20
|
+
import { claimCalls, claimItem, spoolHomeFor, leftByRunnerKey, runnerCalls, itemCalls, configForJob } from './chunk-TWUEZPWP.js';
|
|
21
|
+
import { fetchCommit, readBranchHead, diffBetween } from './chunk-6367NG5G.js';
|
|
22
|
+
import { claimPidFile, releasePidFile, writePidFile, readPidFile } from './chunk-VJCILU3C.js';
|
|
23
23
|
import { startTimeOf, isSameProcess } from './chunk-JBJTC3UU.js';
|
|
24
|
-
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-
|
|
25
|
-
import { WorkCommandError, isSignatureRefusal, getJson, postJson, getBytes } from './chunk-
|
|
26
|
-
import { keyRunnerFactory, readsOnly, isBuiltinSandbox, isBuiltinContainer, isBuiltinVm, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, runnerDeliversComments, DEFAULT_CHECK_TIME_LIMIT_MINUTES, readOnlyRemoteOf, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_UPDATE_MAX_WAIT_HOURS, readOnlyOption } from './chunk-
|
|
27
|
-
import { allocatedBytes, freeBytes, formatBytes } from './chunk-
|
|
28
|
-
import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, JUDGE_TREE, exceedsDisk, runnerLabelValue, builderName, ensureFailureCount, builderSpec, ensureBuilder, spawnRun, judgeCommand, JUDGE_DIR, JUDGE_MAX_TURNS } from './chunk-
|
|
29
|
-
import { loadHostKey, ensureHostKey, signerFor } from './chunk-
|
|
30
|
-
import { jobsDir, RUNNER_DIR_MODE, runnerDir, RUNNER_FILE_MODE, buildDir, attemptStamp, jobDir, pidFilePath, storeScopes, imagesDir } from './chunk-
|
|
31
|
-
import { parseClaimIdentity, parseBranchlessRepositories, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, JOB_MOUNT, WORK_DIR } from './chunk-
|
|
32
|
-
import { jobCredentialProblem, COMMAND_LOST_REASON, takeAgentCredentials, heldAgentCredential, CONTAINER_STOPPED_REASON, currentAgentCredential, fdName } from './chunk-
|
|
33
|
-
import { cleanAttachmentName } from './chunk-
|
|
34
|
-
import { jobAgent, jobCommandEnv, runnerAgents, judgeAgent } from './chunk-
|
|
35
|
-
import { defaultAgents, resolvePackRoot } from './chunk-
|
|
24
|
+
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-AL6CJD2X.js';
|
|
25
|
+
import { WorkCommandError, isSignatureRefusal, getJson, postJson, getBytes } from './chunk-IOUBTUS2.js';
|
|
26
|
+
import { keyRunnerFactory, readsOnly, isBuiltinSandbox, isBuiltinContainer, isBuiltinVm, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, runnerDeliversComments, DEFAULT_CHECK_TIME_LIMIT_MINUTES, readOnlyRemoteOf, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_UPDATE_MAX_WAIT_HOURS, readOnlyOption } from './chunk-45JV3EMA.js';
|
|
27
|
+
import { allocatedBytes, freeBytes, formatBytes } from './chunk-UMFSHU72.js';
|
|
28
|
+
import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, JUDGE_TREE, exceedsDisk, runnerLabelValue, builderName, ensureFailureCount, builderSpec, ensureBuilder, spawnRun, judgeCommand, JUDGE_DIR, JUDGE_MAX_TURNS } from './chunk-YSHMGQRD.js';
|
|
29
|
+
import { loadHostKey, ensureHostKey, signerFor } from './chunk-MCJRTOAL.js';
|
|
30
|
+
import { jobsDir, RUNNER_DIR_MODE, runnerDir, RUNNER_FILE_MODE, buildDir, attemptStamp, jobDir, pidFilePath, storeScopes, imagesDir } from './chunk-JE23PLDE.js';
|
|
31
|
+
import { parseClaimIdentity, parseBranchlessRepositories, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, JOB_MOUNT, WORK_DIR } from './chunk-77JLN6GC.js';
|
|
32
|
+
import { jobCredentialProblem, COMMAND_LOST_REASON, takeAgentCredentials, heldAgentCredential, CONTAINER_STOPPED_REASON, currentAgentCredential, fdName } from './chunk-QVTGSGQ5.js';
|
|
33
|
+
import { cleanAttachmentName } from './chunk-QI6YUQWR.js';
|
|
34
|
+
import { jobAgent, jobCommandEnv, runnerAgents, judgeAgent } from './chunk-OF6XMZHO.js';
|
|
35
|
+
import { defaultAgents, resolvePackRoot } from './chunk-CEHT2FCU.js';
|
|
36
36
|
import { resolveVersion } from './chunk-RA3O54FC.js';
|
|
37
37
|
import { CheckItemsSchema, CODE_REVIEW_NAME, CHECK_ITEM_HREF_MAX_LENGTH, CHECK_ITEM_REASON_MAX_LENGTH, UNREVIEWED_FILES_ITEM_ID, problemKind, CODE_REVIEW_PROBLEMS_MAX, REVIEWED_COMMIT_ITEM_ID } from './chunk-MCUI6RHU.js';
|
|
38
38
|
import { mkdirSync, existsSync, writeFileSync, chmodSync, renameSync, statSync, readdirSync, rmSync, readFileSync, lstatSync, closeSync } from 'fs';
|
|
@@ -1489,19 +1489,22 @@ var EXCERPT_LINE_MAX = 300;
|
|
|
1489
1489
|
var PROBLEMS_MAX = CODE_REVIEW_PROBLEMS_MAX;
|
|
1490
1490
|
var FILES_MAX = 2e3;
|
|
1491
1491
|
var TITLE_MAX = 300;
|
|
1492
|
+
function storable(text) {
|
|
1493
|
+
return text.replace(/\u0000/g, "").replace(/\p{Cs}/gu, "");
|
|
1494
|
+
}
|
|
1492
1495
|
function problemExcerpt(text, line) {
|
|
1493
1496
|
if (text === void 0 || line === void 0 || !Number.isInteger(line) || line < 1) return null;
|
|
1494
|
-
const lines = text
|
|
1497
|
+
const lines = storable(text).split(/\r\n|\r|\n/);
|
|
1495
1498
|
if (lines.at(-1) === "") lines.pop();
|
|
1496
1499
|
if (line > lines.length) return null;
|
|
1497
1500
|
const startLine = Math.max(1, line - EXCERPT_CONTEXT_LINES);
|
|
1498
1501
|
const endLine = Math.min(lines.length, line + EXCERPT_CONTEXT_LINES);
|
|
1499
|
-
const kept = lines.slice(startLine - 1, endLine).map((raw) => raw.length > EXCERPT_LINE_MAX ? `${raw.slice(0, EXCERPT_LINE_MAX - 1)}\u2026` : raw);
|
|
1502
|
+
const kept = lines.slice(startLine - 1, endLine).map((raw) => raw.length > EXCERPT_LINE_MAX ? `${storable(raw.slice(0, EXCERPT_LINE_MAX - 1))}\u2026` : raw);
|
|
1500
1503
|
return { startLine, text: kept.join("\n") };
|
|
1501
1504
|
}
|
|
1502
|
-
function titleOf(title, fallback) {
|
|
1503
|
-
const line = (title ?? "").replace(/\s+/g, " ").trim();
|
|
1504
|
-
return (line === "" ? fallback : line).slice(0, TITLE_MAX);
|
|
1505
|
+
function titleOf(title, fallback, clean) {
|
|
1506
|
+
const line = clean(storable(title ?? "")).replace(/\s+/g, " ").trim();
|
|
1507
|
+
return storable((line === "" ? fallback : line).slice(0, TITLE_MAX));
|
|
1505
1508
|
}
|
|
1506
1509
|
function reviewRecord(input) {
|
|
1507
1510
|
const entries = wholeEntries(input.merged);
|
|
@@ -1514,7 +1517,7 @@ function reviewRecord(input) {
|
|
|
1514
1517
|
problems.push({
|
|
1515
1518
|
id: item.id,
|
|
1516
1519
|
kind: problemKind(entry.kind),
|
|
1517
|
-
title: titleOf(entry.title, item.id),
|
|
1520
|
+
title: titleOf(entry.title, item.id, input.clean ?? ((text) => text)),
|
|
1518
1521
|
reason: item.reason ?? "",
|
|
1519
1522
|
path: place?.path ?? "",
|
|
1520
1523
|
line: place?.line ?? null,
|
|
@@ -1771,7 +1774,8 @@ async function runReviewJob(input) {
|
|
|
1771
1774
|
// A reviewer that stopped early or wrote no answer proves nothing about a problem that it did not report.
|
|
1772
1775
|
answered: run.answer?.ok === true && run.end.finished
|
|
1773
1776
|
})),
|
|
1774
|
-
excerptOf: (path, line) => problemExcerpt(treeFileText(treeDir, path), line)
|
|
1777
|
+
excerptOf: (path, line) => problemExcerpt(treeFileText(treeDir, path), line),
|
|
1778
|
+
clean: cleanReason
|
|
1775
1779
|
}),
|
|
1776
1780
|
instructions: { cliVersion: deps.cliVersion, sha256: instructions.sha256 }
|
|
1777
1781
|
};
|
|
@@ -3234,7 +3238,7 @@ var CLAIM_REFUSAL_CODES = new Set(
|
|
|
3234
3238
|
"pull_request_from_fork pull_request_on_default_branch pull_request_ambiguous pull_request_repository_not_connected repository_not_reachable branch_claimed_elsewhere".split(" ")
|
|
3235
3239
|
);
|
|
3236
3240
|
async function tryClaimAndStart(state, item, queue) {
|
|
3237
|
-
const { postJson: postJson2 } = await import('./work-cmd-
|
|
3241
|
+
const { postJson: postJson2 } = await import('./work-cmd-LA5ZBMBQ.js');
|
|
3238
3242
|
const log = logOf(state);
|
|
3239
3243
|
const hostKey = await loadHostKey(state.config.configPath);
|
|
3240
3244
|
const claim = await retrySend(
|
|
@@ -4865,7 +4869,7 @@ async function startRunner(configPath, deps, startup) {
|
|
|
4865
4869
|
check: update.check ? () => update.check(configPath) : async () => {
|
|
4866
4870
|
const held = runnerAgents(deps.agents).flatMap((agent) => heldAgentCredential(agent.descriptor.id) ?? []);
|
|
4867
4871
|
const env = { ...process.env, ...Object.fromEntries(held.map((credential) => [credential.variable, credential.value])) };
|
|
4868
|
-
return (await import('./check-
|
|
4872
|
+
return (await import('./check-YDBHBTOS.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
|
|
4869
4873
|
},
|
|
4870
4874
|
now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
|
|
4871
4875
|
log
|