@outerlayer/cli 0.35.0 → 0.36.0-next.20261030195242
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -1
- package/dist/{agent-setup-346QMQY6.js → agent-setup-RZE6O737.js} +10 -10
- package/dist/{artifact-link-cmd-H3KVDGP3.js → artifact-link-cmd-DLKYKNWF.js} +2 -2
- package/dist/{build-HHBTSTE4.js → build-GVNOXEDV.js} +4 -4
- package/dist/{build-disk-R6OH6JL5.js → build-disk-H5VDB4G2.js} +4 -4
- package/dist/build-info.json +1 -1
- package/dist/{builder-DL6NSVAU.js → builder-QW6N3XBA.js} +3 -3
- package/dist/{caller-Q44OIVRR.js → caller-TUO3VAKG.js} +6 -6
- package/dist/{check-W4LSRCMV.js → check-E2ZTWJPM.js} +36 -36
- package/dist/{chunk-AZJCSBRV.js → chunk-3IQE34I3.js} +121 -18
- package/dist/{chunk-RS2RFWIK.js → chunk-3LCXSD26.js} +1 -1
- package/dist/{chunk-FW3ZQKPY.js → chunk-3XIAGOPV.js} +4 -4
- package/dist/{chunk-VQCUADLI.js → chunk-4A7GNO4U.js} +1 -1
- package/dist/{chunk-YC5KTX7D.js → chunk-5TJQBHKO.js} +4 -4
- package/dist/{chunk-WYJUQGCB.js → chunk-6KLNELLP.js} +3 -3
- package/dist/{chunk-K3Z4Y6VU.js → chunk-7ABJKQAQ.js} +2 -2
- package/dist/{chunk-MGF4254K.js → chunk-7GX4X25F.js} +1 -1
- package/dist/{chunk-DH6BDQM4.js → chunk-7K7TGHDF.js} +1 -1
- package/dist/{chunk-USR45QSV.js → chunk-A2QQGMQ7.js} +6 -6
- package/dist/{chunk-2PMJ7TQR.js → chunk-AILO7SNG.js} +1 -1
- package/dist/{chunk-SUVWQPOG.js → chunk-BBUIVGIR.js} +3 -3
- package/dist/{chunk-SUVS7A7X.js → chunk-BIAXDR3K.js} +4 -4
- package/dist/{chunk-ODX2XCL3.js → chunk-BR2WJ6BX.js} +2 -2
- package/dist/{chunk-AWNONB6E.js → chunk-D3H37WUD.js} +2 -2
- package/dist/{chunk-6YK3SXCW.js → chunk-D4BIUQPA.js} +1 -1
- package/dist/{chunk-AW4MYEIW.js → chunk-EA57H6AT.js} +1 -1
- package/dist/{chunk-HTQBIXE7.js → chunk-FCJWPFDS.js} +4 -4
- package/dist/{chunk-WYGAQVBU.js → chunk-GGNG6CVE.js} +3 -3
- package/dist/{chunk-RKDOKIIK.js → chunk-HSSECQOA.js} +7 -2
- package/dist/{chunk-RLFVKOEI.js → chunk-ID57YZP2.js} +2 -2
- package/dist/{chunk-7KAWBQ7V.js → chunk-IZVBCDSH.js} +16 -4
- package/dist/{chunk-P4PVRDVY.js → chunk-JII4O3EZ.js} +3 -3
- package/dist/{chunk-OS73XDJ7.js → chunk-KSMN2FUF.js} +2 -2
- package/dist/{chunk-SEY2HTZO.js → chunk-LOI3ESFV.js} +6 -6
- package/dist/{chunk-MCMDEEXB.js → chunk-MJEUD4PD.js} +4 -4
- package/dist/{chunk-3L7OHRDV.js → chunk-O3OREOCP.js} +132 -3
- package/dist/{chunk-VRNAM7WM.js → chunk-O6V6T6HD.js} +12 -12
- package/dist/{chunk-K5EOLRGJ.js → chunk-OFOEDDN6.js} +2 -2
- package/dist/{chunk-GWXHRG2N.js → chunk-OJ2KWQPQ.js} +1 -1
- package/dist/{chunk-4PW2DKHE.js → chunk-OSQEG4HG.js} +15 -14
- package/dist/{chunk-VQCAJUDV.js → chunk-OUMMLC45.js} +2 -2
- package/dist/{chunk-GGI3J7WS.js → chunk-PHFZMU32.js} +40 -21
- package/dist/{chunk-DOYLWBJJ.js → chunk-QH6RZLDV.js} +1 -1
- package/dist/{chunk-G2HRULTO.js → chunk-QLWEXEEA.js} +1 -1
- package/dist/{chunk-N2XW4NYY.js → chunk-QZSA5R3L.js} +3 -1
- package/dist/{chunk-P24VR4H3.js → chunk-RUML4JVG.js} +1 -1
- package/dist/{chunk-EK2FNOCD.js → chunk-TGVIFTKI.js} +1 -1
- package/dist/{chunk-LXAYOMSX.js → chunk-TUN3TYBX.js} +8 -8
- package/dist/{chunk-FKLGX72N.js → chunk-UCRCIRQQ.js} +5 -5
- package/dist/{chunk-Q7ZHL6FY.js → chunk-UHD5ZR46.js} +4 -4
- package/dist/{chunk-UVQ5C3UP.js → chunk-VOURWC2H.js} +1 -1
- package/dist/{chunk-TMFKZBOW.js → chunk-WNM5GXJ3.js} +2 -2
- package/dist/{chunk-BNFFQC3M.js → chunk-WQXEJ43L.js} +4 -4
- package/dist/{chunk-ABGJ67PH.js → chunk-WXR6AVZ7.js} +5 -5
- package/dist/{chunk-CPIYKBQ2.js → chunk-XHDJ75TC.js} +5 -5
- package/dist/{chunk-XSX42Q2H.js → chunk-YQDXFFOK.js} +1 -1
- package/dist/{chunk-7TTYUY2V.js → chunk-YTNZ237E.js} +7 -7
- package/dist/{chunk-P5CXB7ZT.js → chunk-YZXI37NW.js} +2 -2
- package/dist/{claude-launcher-HREPADCN.js → claude-launcher-FK5ZQWXC.js} +5 -5
- package/dist/{cli-KQUVZRRG.js → cli-YMCBXWRM.js} +125 -111
- package/dist/{command-OHJUJ2WX.js → command-AYXNOGIU.js} +22 -22
- package/dist/{config-EYFLM4WT.js → config-NVGVPL3L.js} +5 -5
- package/dist/{connect-cmd-REJ5FEC6.js → connect-cmd-KO2TIY6J.js} +8 -8
- package/dist/{container-start-KG3ZLJWU.js → container-start-KS52ID4M.js} +32 -32
- package/dist/{context-cleanup-KIWINRKM.js → context-cleanup-2MTGLUYS.js} +3 -3
- package/dist/{context-show-cmd-XT3QP5OR.js → context-show-cmd-XLER7QAI.js} +9 -9
- package/dist/{control-plane-launch-PCGH76P5.js → control-plane-launch-RUJOCYEI.js} +6 -6
- package/dist/{demo-voice-cmd-2QE7SQRC.js → demo-voice-cmd-GLN5QZJP.js} +14 -14
- package/dist/{dist-BARPQSHD.js → dist-4Q4Y6YJL.js} +2 -2
- package/dist/{docker-3UKTW4GR.js → docker-3AZ3ZFLA.js} +3 -3
- package/dist/{doctor-5HY3JA5Y.js → doctor-TLIRZM2C.js} +23 -23
- package/dist/{emit-artifact-cmd-26PJDTFU.js → emit-artifact-cmd-CNC5CPKI.js} +13 -13
- package/dist/{emit-cmd-ZHYBT2F6.js → emit-cmd-6NZOT5DS.js} +6 -6
- package/dist/{emit-criteria-cmd-6YTFXO3L.js → emit-criteria-cmd-BNXWF46E.js} +10 -10
- package/dist/{emit-demo-cmd-OQ7UDDRG.js → emit-demo-cmd-UXTH6XBO.js} +14 -14
- package/dist/{emit-finding-cmd-NO3FSRHT.js → emit-finding-cmd-5HZE7W6C.js} +10 -10
- package/dist/{emit-result-cmd-7MSUTXG6.js → emit-result-cmd-KAEWXQIH.js} +12 -12
- package/dist/{emit-step-cmd-7PFO7XVA.js → emit-step-cmd-HSKB3SNR.js} +10 -10
- package/dist/{find-unit-3MED6CPQ.js → find-unit-CNYGB5AN.js} +7 -7
- package/dist/{findings-cmd-SWAPQUFT.js → findings-cmd-2OQMIVHA.js} +10 -10
- package/dist/{fleet-readiness-5RMWZH4V.js → fleet-readiness-PCQSCHQ5.js} +8 -8
- package/dist/{governing-source-INXQEK24.js → governing-source-7XCL3AYM.js} +13 -13
- package/dist/{hook-fast-2KVZZRJN.js → hook-fast-EMZVAUJ5.js} +1 -1
- package/dist/{host-checks-RCWXCCW2.js → host-checks-TRVDAYBL.js} +30 -30
- package/dist/index.js +4 -4
- package/dist/{init-52F2M54W.js → init-HEZDVJPU.js} +21 -21
- package/dist/{init-U5XUDKE7.js → init-OOYCYL2C.js} +21 -21
- package/dist/{init-cmd-WYLANAD5.js → init-cmd-4PVOILZD.js} +18 -18
- package/dist/{init-update-Z2T5J3Z2.js → init-update-QMSQEZQU.js} +17 -17
- package/dist/{layout-2YSKJHPC.js → layout-YJ2RD5H2.js} +4 -4
- package/dist/{login-browser-S6PLZCKK.js → login-browser-TWUHD2DS.js} +2 -2
- package/dist/{loop-WJBFH6XU.js → loop-EIR2YPA2.js} +35 -35
- package/dist/{machine-KUUTBDAT.js → machine-23Y2EHH7.js} +21 -21
- package/dist/{machine-skills-YXN3TMJ5.js → machine-skills-FWIZV5HO.js} +4 -4
- package/dist/{runner-env-2NVOHTRC.js → runner-env-IDGTVTYW.js} +7 -7
- package/dist/{runner-identity-T6YPTHOH.js → runner-identity-RJYVFQ5K.js} +3 -3
- package/dist/{runner-key-WPQGF2L7.js → runner-key-BKMFJ7RA.js} +21 -21
- package/dist/{session-sender-ADHV7WZ6.js → session-sender-QDZWNAY7.js} +13 -13
- package/dist/{spec-cmd-OUEKA6X3.js → spec-cmd-OYQEUAMI.js} +11 -11
- package/dist/{starter-pack-3ERHTBBJ.js → starter-pack-6FOYP6DY.js} +5 -5
- package/dist/{status-2JRATV66.js → status-BZ37VEAJ.js} +30 -30
- package/dist/{sync-cmd-IEPWMYWY.js → sync-cmd-MNXFOIHW.js} +12 -12
- package/dist/{update-steps-3SRL32IV.js → update-steps-VPBGYVW5.js} +31 -31
- package/dist/{watch-3K3IB443.js → watch-E7RGSZF6.js} +12 -12
- package/dist/{work-claim-cmd-5ACB2ZWP.js → work-claim-cmd-HX7DGFY3.js} +16 -16
- package/dist/{work-cmd-B6HZW26B.js → work-cmd-IEC6XKC6.js} +10 -10
- package/dist/work-comment-cmd-X65LS27O.js +36 -0
- package/dist/{work-demo-cmd-RLOS55MP.js → work-demo-cmd-D7WGXJOC.js} +10 -10
- package/dist/{work-logs-cmd-VUICWCEO.js → work-logs-cmd-FQH2UVMI.js} +10 -10
- package/dist/{work-open-pr-cmd-CYXICEJE.js → work-open-pr-cmd-EFAFERSF.js} +11 -11
- package/dist/{work-pr-cmd-3HSFJO65.js → work-pr-cmd-E55GPZKO.js} +10 -10
- package/dist/{work-proofs-cmd-NJ4YYQ2V.js → work-proofs-cmd-B5X3AJQY.js} +12 -12
- package/dist/{work-proofs-record-NN7XB2QC.js → work-proofs-record-DDOAQOPX.js} +18 -18
- package/dist/{work-stop-cmd-QXZSZLEY.js → work-stop-cmd-ANPTSTYS.js} +10 -10
- package/package.json +1 -1
- package/skill-pack/maintained/outerlayer-amend/SKILL.md +5 -4
- package/skill-pack/maintained/outerlayer-amend/references/threads.md +14 -1
- package/skill-pack/maintained/outerlayer-build/SKILL.md +4 -0
- package/dist/work-comment-cmd-MBGBBR7V.js +0 -32
|
@@ -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-
|
|
3
|
+
import { sanitizeTerminal } from './chunk-YQDXFFOK.js';
|
|
4
|
+
import { isAgentsMdLayout } from './chunk-WNM5GXJ3.js';
|
|
5
5
|
import { resolveGatewayCredentials, defaultFetch } from './chunk-YQHEJ5SV.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-EA57H6AT.js';
|
|
9
|
+
import { AGENTS_SKILLS_BASE, skillDir, namesCore, MACHINE_SKILL_PATH, isMaintainedCopy, loadTemplateFiles } from './chunk-7GX4X25F.js';
|
|
10
10
|
import { MAINTAINED_SKILLS } from './chunk-CDDED64E.js';
|
|
11
11
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
12
|
-
import { hasSymlinkComponent } from './chunk-
|
|
13
|
-
import { emitTree, ALL_TARGET_IDS, classifyTree, splitRawFile } from './chunk-
|
|
12
|
+
import { hasSymlinkComponent } from './chunk-OJ2KWQPQ.js';
|
|
13
|
+
import { emitTree, ALL_TARGET_IDS, classifyTree, splitRawFile } from './chunk-AILO7SNG.js';
|
|
14
14
|
import { execFileSync } from 'child_process';
|
|
15
15
|
import { existsSync, readFileSync, writeFileSync, realpathSync, readdirSync } from 'fs';
|
|
16
16
|
import { join, dirname, posix, basename, isAbsolute, relative } from 'path';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RESERVED_EMIT_NAMES, ARTIFACT_KINDS, ArtifactCriterionIdSchema } from './chunk-
|
|
3
|
+
import { RESERVED_EMIT_NAMES, ARTIFACT_KINDS, ArtifactCriterionIdSchema } from './chunk-QZSA5R3L.js';
|
|
4
4
|
import { __commonJS, __require, __toESM } from './chunk-Z5GEFMRW.js';
|
|
5
5
|
|
|
6
6
|
createRequire(import.meta.url);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { LiveUploader } from './chunk-
|
|
4
|
-
import { spoolDir } from './chunk-
|
|
5
|
-
import { CaptureDaemon } from './chunk-
|
|
3
|
+
import { LiveUploader } from './chunk-WXR6AVZ7.js';
|
|
4
|
+
import { spoolDir } from './chunk-O3OREOCP.js';
|
|
5
|
+
import { CaptureDaemon } from './chunk-7K7TGHDF.js';
|
|
6
6
|
import { parseWorkItemEnv } from './chunk-5WYT3PPE.js';
|
|
7
7
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
8
8
|
import { mkdirSync, writeFileSync, rmSync } from 'fs';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
4
|
-
import { isAgentsMdLayout, discoverOuterlayerPaths, isForeignTree, toRepoRelative } from './chunk-
|
|
5
|
-
import { retiredSkillPaths, removeRetiredSkills } from './chunk-
|
|
6
|
-
import { maintainedFilesForExistingSkills, loadMaintainedFiles, writeMaintainedFiles } from './chunk-
|
|
4
|
+
import { isAgentsMdLayout, discoverOuterlayerPaths, isForeignTree, toRepoRelative } from './chunk-WNM5GXJ3.js';
|
|
5
|
+
import { retiredSkillPaths, removeRetiredSkills } from './chunk-D3H37WUD.js';
|
|
6
|
+
import { maintainedFilesForExistingSkills, loadMaintainedFiles, writeMaintainedFiles } from './chunk-7GX4X25F.js';
|
|
7
7
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
8
|
-
import { emitTree, generatedHeaderSource, parseOuterlayerConfig, classifyTree } from './chunk-
|
|
8
|
+
import { emitTree, generatedHeaderSource, parseOuterlayerConfig, classifyTree } from './chunk-AILO7SNG.js';
|
|
9
9
|
import { existsSync, readFileSync, mkdirSync, writeFileSync, copyFileSync, unlinkSync, rmdirSync, readdirSync } from 'fs';
|
|
10
10
|
import { join, dirname } from 'path';
|
|
11
11
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { builtinKind, keepsHostBuilder } from './chunk-
|
|
4
|
-
import { parseSize } from './chunk-
|
|
3
|
+
import { builtinKind, keepsHostBuilder } from './chunk-HSSECQOA.js';
|
|
4
|
+
import { parseSize } from './chunk-QH6RZLDV.js';
|
|
5
5
|
import { runnerDir } from './chunk-WT7J2627.js';
|
|
6
6
|
import { FD_SLOTS_PER_BUILD, FD_STORE_ENV, BUILD_SLICE_MEMORY_ENV, CLAUDE_CREDENTIAL_ID, CLAUDE_ENV_FILE, credentialLineIn, withoutCredentialLines } from './chunk-GANAOCHR.js';
|
|
7
7
|
import { existsSync, readFileSync, writeFileSync, chmodSync, renameSync } from 'fs';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { skillDir, FORMER_MAINTAINED_NAMES, isMaintainedCopy } from './chunk-
|
|
3
|
+
import { skillDir, FORMER_MAINTAINED_NAMES, isMaintainedCopy } from './chunk-7GX4X25F.js';
|
|
4
4
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
5
|
-
import { emitTree, ALL_TARGET_IDS, classifyTree } from './chunk-
|
|
5
|
+
import { emitTree, ALL_TARGET_IDS, classifyTree } from './chunk-AILO7SNG.js';
|
|
6
6
|
import { readFileSync, existsSync, unlinkSync, rmdirSync, readdirSync } from 'fs';
|
|
7
7
|
import { join, dirname, relative, sep } from 'path';
|
|
8
8
|
|
|
@@ -5,7 +5,7 @@ import { C } from './chunk-2AM6Z5BP.js';
|
|
|
5
5
|
import { readCloudConfigStrict, CloudConfigError, readCloudConfig, writeCloudConfig, cloudConfigPath } from './chunk-HWVMRETT.js';
|
|
6
6
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
7
7
|
import { cliInvocation } from './chunk-FZKNTIOJ.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-QZSA5R3L.js';
|
|
9
9
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
10
10
|
import { generateKeyPairSync, privateDecrypt, constants, createPrivateKey } from 'crypto';
|
|
11
11
|
import { spawn } from 'child_process';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { loadMachineSkillFiles, resolvePackRoot } from './chunk-
|
|
3
|
+
import { loadMachineSkillFiles, resolvePackRoot } from './chunk-7GX4X25F.js';
|
|
4
4
|
import { MAINTAINED_SKILLS, maintainedLineVersion } from './chunk-CDDED64E.js';
|
|
5
5
|
import { resolvePackageVersion } from './chunk-RA3O54FC.js';
|
|
6
6
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { DEFAULT_DASHBOARD } from './chunk-
|
|
4
|
-
import { sanitizeTerminal } from './chunk-
|
|
5
|
-
import { isAgentsMdLayout } from './chunk-
|
|
3
|
+
import { DEFAULT_DASHBOARD } from './chunk-D4BIUQPA.js';
|
|
4
|
+
import { sanitizeTerminal } from './chunk-YQDXFFOK.js';
|
|
5
|
+
import { isAgentsMdLayout } from './chunk-WNM5GXJ3.js';
|
|
6
6
|
import { cliFetch, resolveGatewayCredentials } from './chunk-YQHEJ5SV.js';
|
|
7
7
|
import { readCloudConfig } from './chunk-HWVMRETT.js';
|
|
8
8
|
import { findGitDirs, writeRepoConnection, readRepoConnection } from './chunk-BJ3KTMDH.js';
|
|
9
|
-
import { remoteLookupFailed } from './chunk-
|
|
9
|
+
import { remoteLookupFailed } from './chunk-7K7TGHDF.js';
|
|
10
10
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
11
11
|
import { execFileSync } from 'child_process';
|
|
12
12
|
import { lstatSync } from 'fs';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { removeRetiredSkills } from './chunk-
|
|
3
|
+
import { removeRetiredSkills } from './chunk-D3H37WUD.js';
|
|
4
4
|
import { defaultFetch, resolveGatewayCredentials } from './chunk-YQHEJ5SV.js';
|
|
5
5
|
import { appendContextProvenance } from './chunk-545P7JY7.js';
|
|
6
|
-
import { loadMaintainedFiles, writeMaintainedFiles } from './chunk-
|
|
6
|
+
import { loadMaintainedFiles, writeMaintainedFiles } from './chunk-7GX4X25F.js';
|
|
7
7
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
8
8
|
import { writeDegraded, writeSourceCache, SOURCE_CACHE_TTL_RETRY_MS, writeContextManifest, SOURCE_CACHE_TTL_SUCCESS_MS, readSourceCache, isSourceCacheFresh, clearDegraded } from './chunk-YQR6E6OV.js';
|
|
9
|
-
import { normalizeRepoName, parseOuterlayerConfig, classifyTree, emitTree } from './chunk-
|
|
9
|
+
import { normalizeRepoName, parseOuterlayerConfig, classifyTree, emitTree } from './chunk-AILO7SNG.js';
|
|
10
10
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
11
11
|
import { withTokenHeader } from './chunk-GANAOCHR.js';
|
|
12
12
|
import { execFileSync } from 'child_process';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-
|
|
4
|
-
import { parseSize } from './chunk-
|
|
3
|
+
import { DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-TGVIFTKI.js';
|
|
4
|
+
import { parseSize } from './chunk-QH6RZLDV.js';
|
|
5
5
|
import { builderDiskPinned } from './chunk-7SO2VHTQ.js';
|
|
6
6
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
7
7
|
import { isRefusedInConfig, resolveDestinations, isReservedVariable } from './chunk-GANAOCHR.js';
|
|
@@ -211,6 +211,7 @@ var RUNNER_KEYS = [
|
|
|
211
211
|
"checks",
|
|
212
212
|
"autoUpdate",
|
|
213
213
|
"wait",
|
|
214
|
+
"deliverComments",
|
|
214
215
|
"managed",
|
|
215
216
|
"fleet",
|
|
216
217
|
"update"
|
|
@@ -331,6 +332,9 @@ function loadRunnerConfig(configPath) {
|
|
|
331
332
|
if (runner.wait !== void 0 && typeof runner.wait !== "boolean") {
|
|
332
333
|
fail(configPath, "runner.wait", "must be true or false");
|
|
333
334
|
}
|
|
335
|
+
if (runner.deliverComments !== void 0 && typeof runner.deliverComments !== "boolean") {
|
|
336
|
+
fail(configPath, "runner.deliverComments", "must be true or false");
|
|
337
|
+
}
|
|
334
338
|
if (runner.managed !== void 0 && typeof runner.managed !== "boolean") {
|
|
335
339
|
fail(configPath, "runner.managed", "must be true or false");
|
|
336
340
|
}
|
|
@@ -401,6 +405,7 @@ function loadRunnerConfig(configPath) {
|
|
|
401
405
|
// provision alone tells which.
|
|
402
406
|
autoUpdate: runner.autoUpdate ?? builtinKind(runner.hooks.provision) !== "own",
|
|
403
407
|
wait: runner.wait ?? true,
|
|
408
|
+
deliverComments: runner.deliverComments ?? true,
|
|
404
409
|
// A fleet runner is a managed runner: its builds run under the jailer with the managed checks.
|
|
405
410
|
...fleet ? { managed: true } : runner.managed === void 0 ? {} : { managed: runner.managed }
|
|
406
411
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { stripTerminalControls } from './chunk-
|
|
3
|
+
import { stripTerminalControls } from './chunk-PHFZMU32.js';
|
|
4
4
|
import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-ALEUIS35.js';
|
|
5
5
|
import { readFileSync } from 'fs';
|
|
6
6
|
|
|
@@ -55,7 +55,7 @@ function envNamesOf(row, imageEnv) {
|
|
|
55
55
|
return [...new Set(names)].sort();
|
|
56
56
|
}
|
|
57
57
|
async function readOwnContainer(deps = {}) {
|
|
58
|
-
const run = deps.run ?? (await import('./docker-
|
|
58
|
+
const run = deps.run ?? (await import('./docker-3AZ3ZFLA.js')).spawnRun;
|
|
59
59
|
const ids = candidateIds(deps.env ?? process.env, deps.readFile ?? ((path) => readFileSync(path, "utf8")));
|
|
60
60
|
if (ids.length === 0) return { ok: false, reason: "the runner cannot tell which container it runs in: HOSTNAME is empty and /proc/self/mountinfo names none" };
|
|
61
61
|
let problem = "";
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { resolveCredentials, postJson, getJson } from './chunk-
|
|
3
|
+
import { resolveCredentials, postJson, getJson } from './chunk-UCRCIRQQ.js';
|
|
4
4
|
import { detectActiveSession } from './chunk-IP7BIBXJ.js';
|
|
5
5
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
6
|
-
import { sanitizeTerminal } from './chunk-
|
|
6
|
+
import { sanitizeTerminal } from './chunk-YQDXFFOK.js';
|
|
7
7
|
import { defaultFetch } from './chunk-YQHEJ5SV.js';
|
|
8
|
-
import {
|
|
8
|
+
import { logHookError } from './chunk-O3OREOCP.js';
|
|
9
|
+
import { resolveRepoIdentity } from './chunk-7K7TGHDF.js';
|
|
9
10
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
10
11
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
11
12
|
import { randomUUID } from 'crypto';
|
|
@@ -112,5 +113,16 @@ function renderThread(label, thread) {
|
|
|
112
113
|
);
|
|
113
114
|
return [header, ...checks, ...comments].join("\n");
|
|
114
115
|
}
|
|
116
|
+
async function runWorkCommentsRead(opts) {
|
|
117
|
+
const home = opts.home ?? homeFromEnv();
|
|
118
|
+
try {
|
|
119
|
+
const itemNumber = parseTrackerNumber(opts.item);
|
|
120
|
+
if (itemNumber === void 0) throw new WorkCommentCommandError(trackerNumberError("--item", opts.item ?? ""));
|
|
121
|
+
const creds = resolveCredentials({ ...opts, cwd: opts.cwd ?? process.cwd(), home, env: opts.env ?? process.env });
|
|
122
|
+
await postJson(creds.url, `/v1/work-items/${itemNumber}/comments/read`, creds.apiKey, creds.appId, { commentIds: opts.commentIds }, opts.fetchImpl ?? defaultFetch);
|
|
123
|
+
} catch (err) {
|
|
124
|
+
logHookError(home, new Error(`work comments-read for item ${opts.item ?? ""} failed: ${err instanceof Error ? err.message : String(err)}`));
|
|
125
|
+
}
|
|
126
|
+
}
|
|
115
127
|
|
|
116
|
-
export { WorkCommentCommandError, runWorkComment, runWorkThreads };
|
|
128
|
+
export { WorkCommentCommandError, runWorkComment, runWorkCommentsRead, runWorkThreads };
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { launchRefusalForSession } from './chunk-AAGU5FJF.js';
|
|
4
4
|
import { detectActiveSession, transcriptPathForSession } from './chunk-IP7BIBXJ.js';
|
|
5
|
-
import { autoConnect } from './chunk-
|
|
5
|
+
import { autoConnect } from './chunk-YZXI37NW.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
7
|
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-YQHEJ5SV.js';
|
|
8
8
|
import { readLatestProvenanceForSession } from './chunk-545P7JY7.js';
|
|
9
|
-
import { resolveRepoIdentity, defaultProjectsDir, findTranscripts, sessionIdFromPath, scrubText } from './chunk-
|
|
9
|
+
import { resolveRepoIdentity, defaultProjectsDir, findTranscripts, sessionIdFromPath, scrubText } from './chunk-7K7TGHDF.js';
|
|
10
10
|
import { launchedItemForSession } from './chunk-5WYT3PPE.js';
|
|
11
11
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
12
12
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
13
|
-
import { FindingBatchSchema, FindingsResponseSchema, SAME_PROBLEM_RULES } from './chunk-
|
|
13
|
+
import { FindingBatchSchema, FindingsResponseSchema, SAME_PROBLEM_RULES } from './chunk-QZSA5R3L.js';
|
|
14
14
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
15
15
|
import { readFileSync, existsSync } from 'fs';
|
|
16
16
|
import { join, dirname, basename } from 'path';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { WorkCommandError, postJson } from './chunk-
|
|
4
|
-
import { defaultGitRunner, materializeContext, fetchControlPlaneCommit, lookupGoverningSource } from './chunk-
|
|
3
|
+
import { WorkCommandError, postJson } from './chunk-UCRCIRQQ.js';
|
|
4
|
+
import { defaultGitRunner, materializeContext, fetchControlPlaneCommit, lookupGoverningSource } from './chunk-GGNG6CVE.js';
|
|
5
5
|
import { signingFetchFor } from './chunk-YQHEJ5SV.js';
|
|
6
6
|
import { signerFor } from './chunk-4DJZSNVT.js';
|
|
7
7
|
import { unsupportedLayout, layoutRefusalReason, composeDelivery } from './chunk-FGF52V4V.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { placeholderQueues, placeholderProblem } from './chunk-
|
|
4
|
-
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-
|
|
5
|
-
import { isBuiltinVm, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-
|
|
6
|
-
import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK, volumeBytes } from './chunk-
|
|
7
|
-
import { spawnRun, RUNNER_LABEL, BUILD_LABEL } from './chunk-
|
|
3
|
+
import { placeholderQueues, placeholderProblem } from './chunk-OSQEG4HG.js';
|
|
4
|
+
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-BR2WJ6BX.js';
|
|
5
|
+
import { isBuiltinVm, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-HSSECQOA.js';
|
|
6
|
+
import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK, volumeBytes } from './chunk-TGVIFTKI.js';
|
|
7
|
+
import { spawnRun, RUNNER_LABEL, BUILD_LABEL } from './chunk-QH6RZLDV.js';
|
|
8
8
|
import { builderDiskPinned } from './chunk-7SO2VHTQ.js';
|
|
9
|
-
import { getJson, WorkCommandError } from './chunk-
|
|
9
|
+
import { getJson, WorkCommandError } from './chunk-UCRCIRQQ.js';
|
|
10
10
|
import { ensureHostKey } from './chunk-4DJZSNVT.js';
|
|
11
11
|
import { BUILD_SLICE_MEMORY_ENV, FORWARDED_CLAUDE_CREDENTIAL_VARIABLES, claudeCredentialVariablesSet, claudeCredential, claudeEnvPath, parseRunnerEnv } from './chunk-GANAOCHR.js';
|
|
12
12
|
import { closeSync, openSync, constants, readFileSync } from 'fs';
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { launchRefusalForSession } from './chunk-AAGU5FJF.js';
|
|
4
4
|
import { detectActiveSession } from './chunk-IP7BIBXJ.js';
|
|
5
|
-
import { autoConnect } from './chunk-
|
|
5
|
+
import { autoConnect } from './chunk-YZXI37NW.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
|
-
import { acquireSpoolLockAt } from './chunk-
|
|
7
|
+
import { acquireSpoolLockAt } from './chunk-YQDXFFOK.js';
|
|
8
8
|
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-YQHEJ5SV.js';
|
|
9
|
-
import { resolveRepoIdentity } from './chunk-
|
|
9
|
+
import { resolveRepoIdentity } from './chunk-7K7TGHDF.js';
|
|
10
10
|
import { launchedItemForSession } from './chunk-5WYT3PPE.js';
|
|
11
11
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
12
|
-
import { StepNameSchema, StepBodySchema } from './chunk-
|
|
12
|
+
import { StepNameSchema, StepBodySchema } from './chunk-QZSA5R3L.js';
|
|
13
13
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
14
14
|
import { randomUUID } from 'crypto';
|
|
15
15
|
import { readFileSync, existsSync, mkdirSync, writeFileSync, renameSync, appendFileSync } from 'fs';
|
|
@@ -14,6 +14,134 @@ import { createHash } from 'crypto';
|
|
|
14
14
|
import { join, dirname, resolve } from 'path';
|
|
15
15
|
|
|
16
16
|
createRequire(import.meta.url);
|
|
17
|
+
var DELIVERY_CAP = 8e3;
|
|
18
|
+
var MAX_IDS_PER_CALL = 50;
|
|
19
|
+
var INTRO = "A member handed work to you while you build. Read each comment below. Change the work to meet it in this run, then answer on the comment's thread with the command shown, before you finish.";
|
|
20
|
+
function plain(value, max) {
|
|
21
|
+
return value.replace(/[^\p{L}\p{N} _.@'-]/gu, "").slice(0, max);
|
|
22
|
+
}
|
|
23
|
+
function readComment(path) {
|
|
24
|
+
try {
|
|
25
|
+
const raw = JSON.parse(readFileSync(path, "utf8"));
|
|
26
|
+
const { id, item, thread, authorName, text, summary, at } = raw;
|
|
27
|
+
if (typeof id !== "string" || id === "" || typeof text !== "string" || typeof at !== "string") return void 0;
|
|
28
|
+
if (typeof item !== "string" && typeof item !== "number") return void 0;
|
|
29
|
+
return {
|
|
30
|
+
id,
|
|
31
|
+
item: String(item).replace(/[^A-Za-z0-9_.-]/g, ""),
|
|
32
|
+
thread: typeof thread === "string" && thread !== "" ? thread.replace(/[^A-Za-z0-9_.-]/g, "") : "general",
|
|
33
|
+
authorName: typeof authorName === "string" ? plain(authorName, 100) : "",
|
|
34
|
+
text,
|
|
35
|
+
summary: typeof summary === "string" && summary.trim() !== "" ? summary : null,
|
|
36
|
+
at,
|
|
37
|
+
path
|
|
38
|
+
};
|
|
39
|
+
} catch {
|
|
40
|
+
return void 0;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
function listInbox(jobDir) {
|
|
44
|
+
const folder = join(jobDir, "inbox");
|
|
45
|
+
let names;
|
|
46
|
+
try {
|
|
47
|
+
names = readdirSync(folder);
|
|
48
|
+
} catch {
|
|
49
|
+
return [];
|
|
50
|
+
}
|
|
51
|
+
const comments = [];
|
|
52
|
+
for (const name of names) {
|
|
53
|
+
if (name.startsWith(".") || !name.endsWith(".json")) continue;
|
|
54
|
+
const comment = readComment(join(folder, name));
|
|
55
|
+
if (comment !== void 0) comments.push(comment);
|
|
56
|
+
}
|
|
57
|
+
return comments.sort((a, b) => a.at === b.at ? a.id < b.id ? -1 : 1 : a.at < b.at ? -1 : 1);
|
|
58
|
+
}
|
|
59
|
+
var readListPath = (home) => join(home, ".outerlayer", "inbox-read");
|
|
60
|
+
function readDelivered(home) {
|
|
61
|
+
try {
|
|
62
|
+
return new Set(readFileSync(readListPath(home), "utf8").split("\n").filter((line) => line !== ""));
|
|
63
|
+
} catch {
|
|
64
|
+
return /* @__PURE__ */ new Set();
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
function markDelivered(home, ids) {
|
|
68
|
+
mkdirSync(join(home, ".outerlayer"), { recursive: true });
|
|
69
|
+
appendFileSync(readListPath(home), ids.map((id) => `${id}
|
|
70
|
+
`).join(""));
|
|
71
|
+
}
|
|
72
|
+
function answerCommand(comment) {
|
|
73
|
+
const thread = comment.thread === "general" ? "" : ` --thread ${comment.thread}`;
|
|
74
|
+
return `outerlayer work comment --item ${comment.item}${thread} --body "<your answer>"`;
|
|
75
|
+
}
|
|
76
|
+
function formatComment(comment, text, note) {
|
|
77
|
+
const where = comment.thread === "general" ? "the general thread" : `thread ${comment.thread}`;
|
|
78
|
+
return [
|
|
79
|
+
`--- ${comment.authorName === "" ? "A member" : comment.authorName} wrote on ${where} ---`,
|
|
80
|
+
text + note,
|
|
81
|
+
...comment.summary === null ? [] : ["", `Review summary: ${comment.summary}`],
|
|
82
|
+
"",
|
|
83
|
+
`To answer, run: ${answerCommand(comment)}`
|
|
84
|
+
].join("\n");
|
|
85
|
+
}
|
|
86
|
+
function selectForDelivery(comments, cap = DELIVERY_CAP) {
|
|
87
|
+
const room = cap - INTRO.length - 2;
|
|
88
|
+
const blocks = [];
|
|
89
|
+
const ids = [];
|
|
90
|
+
let used = 0;
|
|
91
|
+
for (const comment of comments) {
|
|
92
|
+
if (ids.length >= MAX_IDS_PER_CALL) break;
|
|
93
|
+
const whole = formatComment(comment, comment.text, "");
|
|
94
|
+
const cost = whole.length + (blocks.length === 0 ? 0 : 2);
|
|
95
|
+
if (used + cost <= room) {
|
|
96
|
+
blocks.push(whole);
|
|
97
|
+
ids.push(comment.id);
|
|
98
|
+
used += cost;
|
|
99
|
+
continue;
|
|
100
|
+
}
|
|
101
|
+
if (blocks.length === 0) {
|
|
102
|
+
const note = `
|
|
103
|
+
[The comment is cut. All of it is in ${comment.path}]`;
|
|
104
|
+
const fixed = formatComment(comment, "", note).length;
|
|
105
|
+
const keep = Math.max(0, room - fixed);
|
|
106
|
+
blocks.push(formatComment(comment, comment.text.slice(0, keep), note));
|
|
107
|
+
ids.push(comment.id);
|
|
108
|
+
}
|
|
109
|
+
break;
|
|
110
|
+
}
|
|
111
|
+
if (blocks.length === 0) return void 0;
|
|
112
|
+
return { text: [INTRO, ...blocks].join("\n\n"), ids, item: comments[0].item };
|
|
113
|
+
}
|
|
114
|
+
function logFailure(home, err) {
|
|
115
|
+
try {
|
|
116
|
+
const dir = join(home, ".outerlayer", "spool");
|
|
117
|
+
mkdirSync(dir, { recursive: true });
|
|
118
|
+
appendFileSync(join(dir, "hook-errors.log"), `${(/* @__PURE__ */ new Date()).toISOString()} inbox hand-off failed: ${err instanceof Error ? err.message : String(err)}
|
|
119
|
+
`);
|
|
120
|
+
} catch {
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
function deliverInbox(event, payload, home, env, spawnImpl, write) {
|
|
124
|
+
try {
|
|
125
|
+
if (event !== "PostToolUse" && event !== "Stop") return;
|
|
126
|
+
const jobDir = env.OUTERLAYER_JOB_DIR;
|
|
127
|
+
if (jobDir === void 0 || jobDir === "") return;
|
|
128
|
+
if (event === "PostToolUse" && payload.agent_id !== void 0) return;
|
|
129
|
+
const inbox = listInbox(jobDir);
|
|
130
|
+
if (inbox.length === 0) return;
|
|
131
|
+
const delivered = readDelivered(home);
|
|
132
|
+
const chosen = selectForDelivery(inbox.filter((comment) => !delivered.has(comment.id)));
|
|
133
|
+
if (chosen === void 0) return;
|
|
134
|
+
write(
|
|
135
|
+
JSON.stringify(
|
|
136
|
+
event === "Stop" ? { decision: "block", reason: chosen.text } : { hookSpecificOutput: { hookEventName: "PostToolUse", additionalContext: chosen.text } }
|
|
137
|
+
)
|
|
138
|
+
);
|
|
139
|
+
markDelivered(home, chosen.ids);
|
|
140
|
+
spawnImpl(process.execPath, [process.argv[1], "work", "comments-read", "--item", chosen.item, ...chosen.ids]);
|
|
141
|
+
} catch (err) {
|
|
142
|
+
logFailure(home, err);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
17
145
|
var SYNC_STALE_AFTER_MS = 6 * 60 * 60 * 1e3;
|
|
18
146
|
function syncStatusPath(home = homeFromEnv()) {
|
|
19
147
|
return join(home, ".outerlayer", "last-sync.json");
|
|
@@ -680,11 +808,11 @@ async function missingControlPlane(cwd, sessionId, home, env) {
|
|
|
680
808
|
const dirs = findGitDirs(cwd);
|
|
681
809
|
if (dirs === void 0) return void 0;
|
|
682
810
|
if (existsSync(join(dirs.gitCommonDir, "outerlayer", "materialized.json")) || hasExcludeBlock(dirs.gitCommonDir)) {
|
|
683
|
-
const { cleanupEarlierCopies } = await import('./context-cleanup-
|
|
811
|
+
const { cleanupEarlierCopies } = await import('./context-cleanup-2MTGLUYS.js');
|
|
684
812
|
cleanupEarlierCopies(dirs);
|
|
685
813
|
}
|
|
686
814
|
if (!contextPossiblyGoverned(cwd, home)) return void 0;
|
|
687
|
-
const { governanceOf } = await import('./control-plane-launch-
|
|
815
|
+
const { governanceOf } = await import('./control-plane-launch-RUJOCYEI.js');
|
|
688
816
|
if (await governanceOf({ cwd, env, home }) !== "governed") return void 0;
|
|
689
817
|
recordMissingContext(dirs, sessionId, home);
|
|
690
818
|
const launcher = `${cliInvocation()} claude`;
|
|
@@ -720,7 +848,7 @@ function hasExcludeBlock(gitCommonDir) {
|
|
|
720
848
|
return false;
|
|
721
849
|
}
|
|
722
850
|
}
|
|
723
|
-
async function runHookFast(event, home = homeFromEnv(), read = readStdin, env = process.env, spawnImpl = spawnDetached) {
|
|
851
|
+
async function runHookFast(event, home = homeFromEnv(), read = readStdin, env = process.env, spawnImpl = spawnDetached, write = (out) => void process.stdout.write(out)) {
|
|
724
852
|
try {
|
|
725
853
|
const stdin = read();
|
|
726
854
|
let payload = {};
|
|
@@ -730,6 +858,7 @@ async function runHookFast(event, home = homeFromEnv(), read = readStdin, env =
|
|
|
730
858
|
payload = {};
|
|
731
859
|
}
|
|
732
860
|
const resolvedEvent = String(event ?? payload.hook_event_name ?? "unknown");
|
|
861
|
+
deliverInbox(resolvedEvent, payload, home, env, spawnImpl, write);
|
|
733
862
|
if (resolvedEvent === "PostToolUse" && (env.OUTERLAYER_WORK === void 0 || env.OUTERLAYER_JOB_DIR !== void 0)) {
|
|
734
863
|
return;
|
|
735
864
|
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { checkStarterFiles, contextIsGoverned } from './chunk-
|
|
4
|
-
import { resolveCredentials, getJson, WorkCommandError } from './chunk-
|
|
5
|
-
import { isLinkedRepository } from './chunk-
|
|
3
|
+
import { checkStarterFiles, contextIsGoverned } from './chunk-UHD5ZR46.js';
|
|
4
|
+
import { resolveCredentials, getJson, WorkCommandError } from './chunk-UCRCIRQQ.js';
|
|
5
|
+
import { isLinkedRepository } from './chunk-FCJWPFDS.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
|
-
import { fleetCheck, checkBuildSkill, checkMachineSkills, checkCommittedMaintainedSkills, checkMaintainedReferences, checkIgnoredSkillFolders } from './chunk-
|
|
8
|
-
import { sanitizeTerminal } from './chunk-
|
|
9
|
-
import { checkFormerSkillNames } from './chunk-
|
|
7
|
+
import { fleetCheck, checkBuildSkill, checkMachineSkills, checkCommittedMaintainedSkills, checkMaintainedReferences, checkIgnoredSkillFolders } from './chunk-A2QQGMQ7.js';
|
|
8
|
+
import { sanitizeTerminal } from './chunk-YQDXFFOK.js';
|
|
9
|
+
import { checkFormerSkillNames } from './chunk-D3H37WUD.js';
|
|
10
10
|
import { resolveGatewayCredentials, defaultFetch } from './chunk-YQHEJ5SV.js';
|
|
11
|
-
import { sanitizeForContext, spoolDir, assessSyncHealth, readSyncStatus, SYNC_STALE_AFTER_MS, formatAgo, checkInstalledCliStaleness, workspaceRootOf, hookFiredMarkerPath, refreshCommand } from './chunk-
|
|
11
|
+
import { sanitizeForContext, spoolDir, assessSyncHealth, readSyncStatus, SYNC_STALE_AFTER_MS, formatAgo, checkInstalledCliStaleness, workspaceRootOf, hookFiredMarkerPath, refreshCommand } from './chunk-O3OREOCP.js';
|
|
12
12
|
import { readStatuslineState, STATE_FRESH_MS } from './chunk-YBAVN6WS.js';
|
|
13
13
|
import { hookCommandEscapesControlPlane, CONTROL_PLANE_DIR_VARIABLE } from './chunk-HCVLP7XA.js';
|
|
14
14
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
15
|
-
import { resolveRepoIdentity, compareVersions, SUPPORTED_VERSIONS } from './chunk-
|
|
15
|
+
import { resolveRepoIdentity, compareVersions, SUPPORTED_VERSIONS } from './chunk-7K7TGHDF.js';
|
|
16
16
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
17
17
|
import { readSettings, settingsPath, isOurStatuslineSlot, statuslineWrappedOriginal, REGISTERED_EVENTS, isOurHookCommand, ourCommandBins, cliBinResolvable, ourDirectScriptBins, wrappedOriginalCommand } from './chunk-KYDEBGJG.js';
|
|
18
18
|
import { readDeliveryRecord, readDegraded, readSourceCache } from './chunk-YQR6E6OV.js';
|
|
@@ -1195,8 +1195,8 @@ function doctorExitCode(checks) {
|
|
|
1195
1195
|
|
|
1196
1196
|
// src/doctor-report.ts
|
|
1197
1197
|
async function gatherDoctorChecks() {
|
|
1198
|
-
const { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK } = await import('./build-disk-
|
|
1199
|
-
const { defaultRunnerConfigPath, hasRunnerBlock, keyRunnerFactory, loadRunnerConfig, runnerVmOf } = await import('./config-
|
|
1198
|
+
const { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK } = await import('./build-disk-H5VDB4G2.js');
|
|
1199
|
+
const { defaultRunnerConfigPath, hasRunnerBlock, keyRunnerFactory, loadRunnerConfig, runnerVmOf } = await import('./config-NVGVPL3L.js');
|
|
1200
1200
|
const configPath = defaultRunnerConfigPath();
|
|
1201
1201
|
const runnerHost = hasRunnerBlock(configPath);
|
|
1202
1202
|
const hooks = (() => {
|
|
@@ -1224,7 +1224,7 @@ async function gatherDoctorChecks() {
|
|
|
1224
1224
|
const { runnerVmCheck } = await import('./doctor-53F2PYY7.js');
|
|
1225
1225
|
checks.push(runnerVmCheck(configPath, { lima: realLima(), home: homeFromEnv(), instance: runnerVm.instance }));
|
|
1226
1226
|
} else if (hasRunnerBlock(configPath)) {
|
|
1227
|
-
const { runnerHostChecks } = await import('./doctor-
|
|
1227
|
+
const { runnerHostChecks } = await import('./doctor-TLIRZM2C.js');
|
|
1228
1228
|
const gateway = (() => {
|
|
1229
1229
|
try {
|
|
1230
1230
|
const loaded = loadRunnerConfig(configPath);
|
|
@@ -1252,7 +1252,7 @@ async function gatherDoctorChecks() {
|
|
|
1252
1252
|
const service = await (async () => {
|
|
1253
1253
|
const { existsSync: existsSync3 } = await import('fs');
|
|
1254
1254
|
if (process.platform !== "linux" || !existsSync3("/run/systemd/system")) return void 0;
|
|
1255
|
-
const { inspectRunnerService } = await import('./find-unit-
|
|
1255
|
+
const { inspectRunnerService } = await import('./find-unit-CNYGB5AN.js');
|
|
1256
1256
|
return inspectRunnerService(configPath);
|
|
1257
1257
|
})();
|
|
1258
1258
|
checks.push(...await runnerHostChecks({ configPath, hooks, gateway, repos, runner, service }));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { helperSocketPath } from './chunk-
|
|
4
|
-
import { UNIT_MARKER } from './chunk-
|
|
3
|
+
import { helperSocketPath } from './chunk-OSQEG4HG.js';
|
|
4
|
+
import { UNIT_MARKER } from './chunk-BR2WJ6BX.js';
|
|
5
5
|
import { runnerDir } from './chunk-WT7J2627.js';
|
|
6
6
|
import { createHash } from 'crypto';
|
|
7
7
|
import { join } from 'path';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { readContextManifest, removeContextManifest } from './chunk-YQR6E6OV.js';
|
|
4
4
|
import { removePreCommitGuardHook } from './chunk-CJPTUU2E.js';
|
|
5
|
-
import { CONTEXT_PIN_FILENAME } from './chunk-
|
|
5
|
+
import { CONTEXT_PIN_FILENAME } from './chunk-AILO7SNG.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';
|