@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
package/README.md
CHANGED
|
@@ -90,7 +90,11 @@ content:
|
|
|
90
90
|
`release` marks it done. `outerlayer work comment` posts one comment on a
|
|
91
91
|
work item's general thread or a criterion thread — the detected session id
|
|
92
92
|
rides along the same way it does for `emit`, only ever narrowing what the
|
|
93
|
-
comment may do; `outerlayer work threads` reads them back.
|
|
93
|
+
comment may do; `outerlayer work threads` reads them back. In a runner's
|
|
94
|
+
build, the agent's hooks start `outerlayer work comments-read` after they
|
|
95
|
+
hand it a member's comment. It sends the comment ids to
|
|
96
|
+
`POST /v1/work-items/<n>/comments/read` with the build's item key.
|
|
97
|
+
`outerlayer work logs`
|
|
94
98
|
reads the runner's log for a host attempt. `outerlayer work demo` reads an
|
|
95
99
|
item's newest demo record with `GET /v1/work-items/<n>/demo`.
|
|
96
100
|
`outerlayer work proofs` reads the item with `GET /v1/work-items/<n>` and
|
|
@@ -132,6 +136,11 @@ content:
|
|
|
132
136
|
the numbers of the items it waits on. The reply can name a build that
|
|
133
137
|
someone stopped with `outerlayer work stop`; the runner then ends that
|
|
134
138
|
build and releases it as stopped, with the name of whoever stopped it.
|
|
139
|
+
The reply also lists the comments a member handed to the agent of a build
|
|
140
|
+
while it runs: the author's name, the words and the thread. The runner
|
|
141
|
+
writes each one into that build's `/outerlayer/job/inbox` folder, and
|
|
142
|
+
nothing else leaves the runner. `runner.deliverComments: false` turns
|
|
143
|
+
this off.
|
|
135
144
|
Between polls it also holds one signed request open to
|
|
136
145
|
`GET /v1/hosts/wait`, for up to 50 seconds at a time. The answer carries a
|
|
137
146
|
cursor and a flag that says whether something changed in the factory, and
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { keepHandWritten, runAgentSetup } from './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
export { keepHandWritten, runAgentSetup } from './chunk-YTNZ237E.js';
|
|
4
|
+
import './chunk-BIAXDR3K.js';
|
|
5
5
|
import './chunk-OHQMGLJP.js';
|
|
6
|
-
import './chunk-
|
|
6
|
+
import './chunk-OUMMLC45.js';
|
|
7
7
|
import './chunk-2AM6Z5BP.js';
|
|
8
|
-
import './chunk-
|
|
9
|
-
import './chunk-
|
|
10
|
-
import './chunk-
|
|
8
|
+
import './chunk-WNM5GXJ3.js';
|
|
9
|
+
import './chunk-GGNG6CVE.js';
|
|
10
|
+
import './chunk-D3H37WUD.js';
|
|
11
11
|
import './chunk-YQHEJ5SV.js';
|
|
12
12
|
import './chunk-HWVMRETT.js';
|
|
13
13
|
import './chunk-4DJZSNVT.js';
|
|
14
14
|
import './chunk-545P7JY7.js';
|
|
15
15
|
import './chunk-BJ3KTMDH.js';
|
|
16
|
-
import './chunk-
|
|
16
|
+
import './chunk-7GX4X25F.js';
|
|
17
17
|
import './chunk-OLM2TIOW.js';
|
|
18
18
|
import './chunk-CDDED64E.js';
|
|
19
19
|
import './chunk-RA3O54FC.js';
|
|
20
20
|
import './chunk-FZKNTIOJ.js';
|
|
21
|
-
import './chunk-
|
|
21
|
+
import './chunk-OJ2KWQPQ.js';
|
|
22
22
|
import './chunk-YQR6E6OV.js';
|
|
23
23
|
import './chunk-CJPTUU2E.js';
|
|
24
|
-
import './chunk-
|
|
25
|
-
import './chunk-
|
|
24
|
+
import './chunk-AILO7SNG.js';
|
|
25
|
+
import './chunk-QZSA5R3L.js';
|
|
26
26
|
import './chunk-352DHUTP.js';
|
|
27
27
|
import './chunk-WT7J2627.js';
|
|
28
28
|
import './chunk-GANAOCHR.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { sanitizeTerminal, readEffectiveArtifactSpoolState } from './chunk-
|
|
3
|
+
import { sanitizeTerminal, readEffectiveArtifactSpoolState } from './chunk-YQDXFFOK.js';
|
|
4
4
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
5
|
-
import './chunk-
|
|
5
|
+
import './chunk-QZSA5R3L.js';
|
|
6
6
|
import { spoolHomeFromEnv } from './chunk-352DHUTP.js';
|
|
7
7
|
import './chunk-Z5GEFMRW.js';
|
|
8
8
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { KEY_PREFIX, SHARED_NAME, SHARED_OWNER, SHARED_REPOSITORY, TAG_HOST, UNIVERSAL_SOURCE_LABEL, baseLines, buildRepositoryImage, metadataFromLabels, prepareImageBuild, universalBase, writeRecord } from './chunk-
|
|
3
|
+
export { KEY_PREFIX, SHARED_NAME, SHARED_OWNER, SHARED_REPOSITORY, TAG_HOST, UNIVERSAL_SOURCE_LABEL, baseLines, buildRepositoryImage, metadataFromLabels, prepareImageBuild, universalBase, writeRecord } from './chunk-4A7GNO4U.js';
|
|
4
4
|
import './chunk-H3MLZ4EA.js';
|
|
5
5
|
import './chunk-WAZJPDR2.js';
|
|
6
6
|
import './chunk-JBJTC3UU.js';
|
|
7
|
-
import './chunk-
|
|
7
|
+
import './chunk-QH6RZLDV.js';
|
|
8
8
|
export { RecipeError } from './chunk-TV5ITSVY.js';
|
|
9
9
|
import './chunk-7SO2VHTQ.js';
|
|
10
10
|
import './chunk-4DJZSNVT.js';
|
|
11
|
-
import './chunk-
|
|
12
|
-
import './chunk-
|
|
11
|
+
import './chunk-7K7TGHDF.js';
|
|
12
|
+
import './chunk-QZSA5R3L.js';
|
|
13
13
|
import './chunk-WT7J2627.js';
|
|
14
14
|
import './chunk-GANAOCHR.js';
|
|
15
15
|
import './chunk-MESOOLF4.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, DOCKER_CACHE_MS, allocatedBytes, checkDiskFit, realBuildDiskProbe, runDocker, volumeBytes } from './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
export { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, DOCKER_CACHE_MS, allocatedBytes, checkDiskFit, realBuildDiskProbe, runDocker, volumeBytes } from './chunk-TGVIFTKI.js';
|
|
4
|
+
import './chunk-QH6RZLDV.js';
|
|
5
5
|
import './chunk-TV5ITSVY.js';
|
|
6
6
|
import './chunk-7SO2VHTQ.js';
|
|
7
7
|
import './chunk-4DJZSNVT.js';
|
|
8
|
-
import './chunk-
|
|
9
|
-
import './chunk-
|
|
8
|
+
import './chunk-7K7TGHDF.js';
|
|
9
|
+
import './chunk-QZSA5R3L.js';
|
|
10
10
|
import './chunk-WT7J2627.js';
|
|
11
11
|
import './chunk-GANAOCHR.js';
|
|
12
12
|
import './chunk-MESOOLF4.js';
|
package/dist/build-info.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"id":"2026-10-
|
|
1
|
+
{"id":"2026-10-30T19:55:04.650Z+8789f91","root":"/home/runner/work/outerlayer/outerlayer","pkg":"outerlayer"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { MIN_BUILDX_VERSION, builderName, builderSpec, buildxState, ensureBuilder, ensureFailureCount, isOutOfMemory, proxyEnvironment, trackImageBuild } from './chunk-
|
|
3
|
+
export { MIN_BUILDX_VERSION, builderName, builderSpec, buildxState, ensureBuilder, ensureFailureCount, isOutOfMemory, proxyEnvironment, trackImageBuild } from './chunk-QH6RZLDV.js';
|
|
4
4
|
import './chunk-TV5ITSVY.js';
|
|
5
5
|
import './chunk-7SO2VHTQ.js';
|
|
6
6
|
import './chunk-4DJZSNVT.js';
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
7
|
+
import './chunk-7K7TGHDF.js';
|
|
8
|
+
import './chunk-QZSA5R3L.js';
|
|
9
9
|
import './chunk-WT7J2627.js';
|
|
10
10
|
import './chunk-GANAOCHR.js';
|
|
11
11
|
import './chunk-MESOOLF4.js';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { claimCalls, claimItem, itemCalls, leftByRunnerKey, runnerCalls, spoolHomeFor } from './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
3
|
+
export { claimCalls, claimItem, itemCalls, leftByRunnerKey, runnerCalls, spoolHomeFor } from './chunk-RUML4JVG.js';
|
|
4
|
+
import './chunk-HSSECQOA.js';
|
|
5
|
+
import './chunk-TGVIFTKI.js';
|
|
6
|
+
import './chunk-QH6RZLDV.js';
|
|
7
7
|
import './chunk-TV5ITSVY.js';
|
|
8
8
|
import './chunk-7SO2VHTQ.js';
|
|
9
9
|
import './chunk-4DJZSNVT.js';
|
|
10
|
-
import './chunk-
|
|
11
|
-
import './chunk-
|
|
10
|
+
import './chunk-7K7TGHDF.js';
|
|
11
|
+
import './chunk-QZSA5R3L.js';
|
|
12
12
|
import './chunk-352DHUTP.js';
|
|
13
13
|
import './chunk-WT7J2627.js';
|
|
14
14
|
import './chunk-GANAOCHR.js';
|
|
@@ -1,75 +1,75 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { probeCredentials } from './chunk-
|
|
3
|
+
import { probeCredentials } from './chunk-3IQE34I3.js';
|
|
4
4
|
import './chunk-7Y5VW4JG.js';
|
|
5
5
|
import './chunk-3JVYMD4G.js';
|
|
6
6
|
import './chunk-E7R2GIAW.js';
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
9
|
-
import './chunk-
|
|
10
|
-
import './chunk-
|
|
11
|
-
import './chunk-
|
|
7
|
+
import './chunk-WQXEJ43L.js';
|
|
8
|
+
import './chunk-ID57YZP2.js';
|
|
9
|
+
import './chunk-PHFZMU32.js';
|
|
10
|
+
import './chunk-5TJQBHKO.js';
|
|
11
|
+
import './chunk-3LCXSD26.js';
|
|
12
12
|
import './chunk-LGV5N5DG.js';
|
|
13
13
|
import './chunk-EZRAR5YG.js';
|
|
14
14
|
import './chunk-ZVB57WI6.js';
|
|
15
15
|
import './chunk-H2GESWLW.js';
|
|
16
16
|
import './chunk-MKSZHT6S.js';
|
|
17
17
|
import './chunk-I3LTIAOR.js';
|
|
18
|
-
import './chunk-
|
|
19
|
-
import './chunk-
|
|
20
|
-
import './chunk-
|
|
18
|
+
import './chunk-BBUIVGIR.js';
|
|
19
|
+
import './chunk-WXR6AVZ7.js';
|
|
20
|
+
import './chunk-MJEUD4PD.js';
|
|
21
21
|
import './chunk-AAGU5FJF.js';
|
|
22
|
-
import { fleetConfigProblem, managedProblems, managedFactsOf, askFleetMachine } from './chunk-
|
|
22
|
+
import { fleetConfigProblem, managedProblems, managedFactsOf, askFleetMachine } from './chunk-LOI3ESFV.js';
|
|
23
23
|
import './chunk-AF6DQJ5W.js';
|
|
24
24
|
import './chunk-TBT347UY.js';
|
|
25
|
-
import { findServiceUnit } from './chunk-
|
|
26
|
-
import './chunk-
|
|
27
|
-
import { placeholderQueues, placeholderProblem, permissionModeProblems, permissionModeProblem, HELPER_ENV, helperSocketPath, probeHelper, needsClaudeCredential, claudeCredentialCheck, claimPermissionProblem, formerSkillQueues, formerSkillProblem } from './chunk-
|
|
25
|
+
import { findServiceUnit } from './chunk-VOURWC2H.js';
|
|
26
|
+
import './chunk-UHD5ZR46.js';
|
|
27
|
+
import { placeholderQueues, placeholderProblem, permissionModeProblems, permissionModeProblem, HELPER_ENV, helperSocketPath, probeHelper, needsClaudeCredential, claudeCredentialCheck, claimPermissionProblem, formerSkillQueues, formerSkillProblem } from './chunk-OSQEG4HG.js';
|
|
28
28
|
import './chunk-2PGI6RDE.js';
|
|
29
|
-
import './chunk-
|
|
30
|
-
import './chunk-
|
|
29
|
+
import './chunk-QLWEXEEA.js';
|
|
30
|
+
import './chunk-BR2WJ6BX.js';
|
|
31
31
|
import './chunk-NN33FYXG.js';
|
|
32
|
-
import './chunk-
|
|
32
|
+
import './chunk-4A7GNO4U.js';
|
|
33
33
|
import './chunk-H3MLZ4EA.js';
|
|
34
34
|
import './chunk-WAZJPDR2.js';
|
|
35
35
|
import './chunk-JBJTC3UU.js';
|
|
36
36
|
import './chunk-OGFGZQA3.js';
|
|
37
37
|
import './chunk-4PH4DVV4.js';
|
|
38
38
|
import './chunk-UZGQT6OF.js';
|
|
39
|
-
import './chunk-
|
|
39
|
+
import './chunk-KSMN2FUF.js';
|
|
40
40
|
import './chunk-ALEUIS35.js';
|
|
41
41
|
import './chunk-TQMI335S.js';
|
|
42
|
-
import './chunk-
|
|
43
|
-
import { loadRunnerConfig, RunnerConfigError, checkHooks, keyRunnerFactory } from './chunk-
|
|
44
|
-
import './chunk-
|
|
45
|
-
import './chunk-
|
|
42
|
+
import './chunk-RUML4JVG.js';
|
|
43
|
+
import { loadRunnerConfig, RunnerConfigError, checkHooks, keyRunnerFactory } from './chunk-HSSECQOA.js';
|
|
44
|
+
import './chunk-TGVIFTKI.js';
|
|
45
|
+
import './chunk-QH6RZLDV.js';
|
|
46
46
|
import './chunk-TV5ITSVY.js';
|
|
47
47
|
import './chunk-7SO2VHTQ.js';
|
|
48
48
|
import './chunk-OHQMGLJP.js';
|
|
49
|
-
import './chunk-
|
|
50
|
-
import './chunk-
|
|
49
|
+
import './chunk-OUMMLC45.js';
|
|
50
|
+
import './chunk-UCRCIRQQ.js';
|
|
51
51
|
import './chunk-IP7BIBXJ.js';
|
|
52
|
-
import './chunk-
|
|
53
|
-
import './chunk-
|
|
54
|
-
import './chunk-
|
|
52
|
+
import './chunk-YZXI37NW.js';
|
|
53
|
+
import './chunk-FCJWPFDS.js';
|
|
54
|
+
import './chunk-D4BIUQPA.js';
|
|
55
55
|
import './chunk-A2LHHKTT.js';
|
|
56
56
|
import './chunk-2AM6Z5BP.js';
|
|
57
|
-
import './chunk-
|
|
58
|
-
import './chunk-
|
|
59
|
-
import './chunk-
|
|
60
|
-
import './chunk-
|
|
57
|
+
import './chunk-YQDXFFOK.js';
|
|
58
|
+
import './chunk-WNM5GXJ3.js';
|
|
59
|
+
import './chunk-GGNG6CVE.js';
|
|
60
|
+
import './chunk-D3H37WUD.js';
|
|
61
61
|
import './chunk-YQHEJ5SV.js';
|
|
62
62
|
import './chunk-HWVMRETT.js';
|
|
63
63
|
import './chunk-4DJZSNVT.js';
|
|
64
|
-
import './chunk-
|
|
64
|
+
import './chunk-O3OREOCP.js';
|
|
65
65
|
import './chunk-545P7JY7.js';
|
|
66
66
|
import './chunk-FUJUFLDC.js';
|
|
67
67
|
import './chunk-BKO6JEZI.js';
|
|
68
68
|
import './chunk-FGF52V4V.js';
|
|
69
69
|
import './chunk-HCVLP7XA.js';
|
|
70
70
|
import './chunk-BJ3KTMDH.js';
|
|
71
|
-
import './chunk-
|
|
72
|
-
import './chunk-
|
|
71
|
+
import './chunk-7GX4X25F.js';
|
|
72
|
+
import './chunk-7K7TGHDF.js';
|
|
73
73
|
import './chunk-OLM2TIOW.js';
|
|
74
74
|
import './chunk-CDDED64E.js';
|
|
75
75
|
import './chunk-RA3O54FC.js';
|
|
@@ -77,11 +77,11 @@ import './chunk-5WYT3PPE.js';
|
|
|
77
77
|
import './chunk-WZBHBH3J.js';
|
|
78
78
|
import './chunk-FZKNTIOJ.js';
|
|
79
79
|
import './chunk-KYDEBGJG.js';
|
|
80
|
-
import './chunk-
|
|
80
|
+
import './chunk-OJ2KWQPQ.js';
|
|
81
81
|
import './chunk-YQR6E6OV.js';
|
|
82
82
|
import './chunk-CJPTUU2E.js';
|
|
83
|
-
import './chunk-
|
|
84
|
-
import './chunk-
|
|
83
|
+
import './chunk-AILO7SNG.js';
|
|
84
|
+
import './chunk-QZSA5R3L.js';
|
|
85
85
|
import './chunk-352DHUTP.js';
|
|
86
86
|
import './chunk-WT7J2627.js';
|
|
87
87
|
import { claudeEnvPath, parseRunnerEnv } from './chunk-GANAOCHR.js';
|
|
@@ -3,28 +3,28 @@ import { createRequire } from 'node:module';
|
|
|
3
3
|
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-7Y5VW4JG.js';
|
|
4
4
|
import { decideInstalledSwitch } from './chunk-3JVYMD4G.js';
|
|
5
5
|
import { fetchVersionMeta, npmVersion, npmSupportsProvenance, fetchTarballDigest, fetchProvenance, installVersion, auditSignatures } from './chunk-E7R2GIAW.js';
|
|
6
|
-
import { reportFailedStart, fitImageBuildMemory } from './chunk-
|
|
7
|
-
import { renderUpdateSteps } from './chunk-
|
|
8
|
-
import { releaseLease, isUnfinished, restoreSessionIntoMicroVm, setStage, jobEnv, runHook, describeHookEnd, provisionMicroVm, deliverCommitHooks, provisionProcess, readProvisionOut, workdirProblem, MICROVM_COMMAND_DIR, commandLogOffset, startMicroVmCommand, microVmCommandLine, runCommand, startSender, finishJob, sampleGuest, foldSample, isContainerTracked, isMicroVmTracked, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isTimedOut, readCpuUsec, isIdle, stopOrphanedMicroVms, unfinishedJobs, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, hookLimitsFor, AttemptLogBook, microVmOomKills, needsRenew, renewLease, RENEW_INTERVAL_SECONDS, listTrackedJobs, restartSender, serveLease, vmAlive, writeGuestGhConfig, ALREADY_RELEASED, inTeardown } from './chunk-
|
|
9
|
-
import { RUNNER_PROTOCOL } from './chunk-
|
|
6
|
+
import { reportFailedStart, fitImageBuildMemory } from './chunk-WQXEJ43L.js';
|
|
7
|
+
import { renderUpdateSteps } from './chunk-ID57YZP2.js';
|
|
8
|
+
import { releaseLease, isUnfinished, restoreSessionIntoMicroVm, setStage, jobEnv, runHook, describeHookEnd, provisionMicroVm, deliverCommitHooks, provisionProcess, readProvisionOut, workdirProblem, MICROVM_COMMAND_DIR, commandLogOffset, startMicroVmCommand, microVmCommandLine, runCommand, startSender, finishJob, sampleGuest, foldSample, isContainerTracked, isMicroVmTracked, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isTimedOut, readCpuUsec, isIdle, stopOrphanedMicroVms, unfinishedJobs, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, hookLimitsFor, AttemptLogBook, microVmOomKills, needsRenew, renewLease, RENEW_INTERVAL_SECONDS, listTrackedJobs, restartSender, serveLease, vmAlive, writeGuestGhConfig, ALREADY_RELEASED, inTeardown } from './chunk-PHFZMU32.js';
|
|
9
|
+
import { RUNNER_PROTOCOL } from './chunk-3LCXSD26.js';
|
|
10
10
|
import { writeFleetState } from './chunk-LGV5N5DG.js';
|
|
11
11
|
import { writePendingUpdate } from './chunk-EZRAR5YG.js';
|
|
12
12
|
import { JOB_STATE_FORMAT, readsJobState, jobStateFormatOf } from './chunk-ZVB57WI6.js';
|
|
13
|
-
import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, createHousekeepingDocker, housekeepingDockerIfReachable, KIND_LABEL, RECIPE_KEY_LABEL, askFleetMachine } from './chunk-
|
|
13
|
+
import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, createHousekeepingDocker, housekeepingDockerIfReachable, KIND_LABEL, RECIPE_KEY_LABEL, askFleetMachine } from './chunk-LOI3ESFV.js';
|
|
14
14
|
import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-AF6DQJ5W.js';
|
|
15
15
|
import { RepoFilter } from './chunk-TBT347UY.js';
|
|
16
|
-
import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, LEASE_SECONDS, itemTag, prepareResume, restoreSessionIntoContainer, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, needsBuildSkill, provisionContainer, leaseExpiresAtMs, deliverContainerHooks, provisionEnvironment, resolveHostBuild, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, currentSkillCommand, formerSkillProblem, containerCommandExec, execCommandLine, startHostServices, HELPER_ENV, setUpRunnerCgroup, sweepImageBuilders, usableCpus, stoppedHelperReason, measureDisk, parseCpuList, ensureTunnel, keepGhConfigCurrent, filesAreCopied, savedStatesDir, readRecords, removeOldestUntil, ensureNetworkReady, managedBuildSettingsFor, ADOPTED_FETCH_RETRY_WINDOW_MS, gitRemoteFor, startServicesFor, createLeaseChannel, selectStaleIncomplete, selectExpired, selectToFit, removeSavedState } from './chunk-
|
|
17
|
-
import { RUNNER_RESERVE_BYTES } from './chunk-
|
|
16
|
+
import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, LEASE_SECONDS, itemTag, prepareResume, restoreSessionIntoContainer, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, needsBuildSkill, provisionContainer, leaseExpiresAtMs, deliverContainerHooks, provisionEnvironment, resolveHostBuild, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, currentSkillCommand, formerSkillProblem, containerCommandExec, execCommandLine, startHostServices, HELPER_ENV, setUpRunnerCgroup, sweepImageBuilders, usableCpus, stoppedHelperReason, measureDisk, parseCpuList, ensureTunnel, keepGhConfigCurrent, filesAreCopied, savedStatesDir, readRecords, removeOldestUntil, ensureNetworkReady, managedBuildSettingsFor, ADOPTED_FETCH_RETRY_WINDOW_MS, gitRemoteFor, startServicesFor, createLeaseChannel, selectStaleIncomplete, selectExpired, selectToFit, removeSavedState, shellQuote, deliverJobFiles } from './chunk-OSQEG4HG.js';
|
|
17
|
+
import { RUNNER_RESERVE_BYTES } from './chunk-BR2WJ6BX.js';
|
|
18
18
|
import { claimPidFile, releasePidFile, writePidFile, readPidFile } from './chunk-WAZJPDR2.js';
|
|
19
19
|
import { startTimeOf, isSameProcess } from './chunk-JBJTC3UU.js';
|
|
20
|
-
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-
|
|
20
|
+
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-KSMN2FUF.js';
|
|
21
21
|
import { imageTag, writeUpdateStatus, pullInstruction, tagToPull } from './chunk-ALEUIS35.js';
|
|
22
22
|
import { isVersion, compareVersions, satisfiesRange } from './chunk-TQMI335S.js';
|
|
23
|
-
import { claimCalls, claimItem, spoolHomeFor, leftByRunnerKey, runnerCalls } from './chunk-
|
|
24
|
-
import { keyRunnerFactory, isBuiltinContainer, isBuiltinVm, isBuiltinProcess, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_UPDATE_MAX_WAIT_HOURS } from './chunk-
|
|
25
|
-
import { allocatedBytes, freeBytes, formatBytes } from './chunk-
|
|
26
|
-
import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, exceedsDisk, builderName, runnerLabelValue, ensureFailureCount, builderSpec, ensureBuilder, spawnRun, readJobFileChecked } from './chunk-
|
|
27
|
-
import { isSignatureRefusal, WorkCommandError, getJson, postJson } from './chunk-
|
|
23
|
+
import { claimCalls, claimItem, spoolHomeFor, leftByRunnerKey, runnerCalls } from './chunk-RUML4JVG.js';
|
|
24
|
+
import { keyRunnerFactory, isBuiltinContainer, isBuiltinVm, isBuiltinProcess, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_UPDATE_MAX_WAIT_HOURS } from './chunk-HSSECQOA.js';
|
|
25
|
+
import { allocatedBytes, freeBytes, formatBytes } from './chunk-TGVIFTKI.js';
|
|
26
|
+
import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, exceedsDisk, builderName, runnerLabelValue, ensureFailureCount, builderSpec, ensureBuilder, spawnRun, readJobFileChecked } from './chunk-QH6RZLDV.js';
|
|
27
|
+
import { isSignatureRefusal, WorkCommandError, getJson, postJson } from './chunk-UCRCIRQQ.js';
|
|
28
28
|
import { loadHostKey, ensureHostKey, signerFor } from './chunk-4DJZSNVT.js';
|
|
29
29
|
import { resolveVersion } from './chunk-RA3O54FC.js';
|
|
30
30
|
import { RUNNER_DIR_MODE, runnerDir, buildDir, attemptStamp, jobDir, RUNNER_FILE_MODE, jobsDir, pidFilePath, storeScopes, imagesDir, spoolDir, orgStoreIn, builderCacheDiskPath, sessionsDir, rootfsDir } from './chunk-WT7J2627.js';
|
|
@@ -380,6 +380,20 @@ function stopsOf(data) {
|
|
|
380
380
|
}
|
|
381
381
|
return stops;
|
|
382
382
|
}
|
|
383
|
+
function commentsOf(data) {
|
|
384
|
+
const raw = data?.comments;
|
|
385
|
+
if (!Array.isArray(raw)) return [];
|
|
386
|
+
const comments = [];
|
|
387
|
+
for (const entry of raw) {
|
|
388
|
+
const comment = entry;
|
|
389
|
+
if (comment === null || typeof comment !== "object") continue;
|
|
390
|
+
const { claimId, workItemId, commentId, thread, authorName, text, summary, at } = comment;
|
|
391
|
+
if (typeof claimId !== "string" || typeof workItemId !== "string" || typeof commentId !== "string" || commentId === "") continue;
|
|
392
|
+
if (typeof thread !== "string" || typeof authorName !== "string" || typeof text !== "string" || typeof at !== "string") continue;
|
|
393
|
+
comments.push({ claimId, workItemId, commentId, thread, authorName, text, summary: typeof summary === "string" ? summary : null, at });
|
|
394
|
+
}
|
|
395
|
+
return comments;
|
|
396
|
+
}
|
|
383
397
|
function takesBody(takes) {
|
|
384
398
|
let truncated = false;
|
|
385
399
|
const list = (patterns) => {
|
|
@@ -433,11 +447,72 @@ async function sendHeartbeat(args, fetchImpl) {
|
|
|
433
447
|
);
|
|
434
448
|
const runnerVersion = response.data?.runnerVersion;
|
|
435
449
|
const stops = stopsOf(response.data);
|
|
436
|
-
|
|
450
|
+
const comments = commentsOf(response.data);
|
|
451
|
+
return typeof runnerVersion === "string" ? { ok: true, runnerVersion, stops, comments } : { ok: true, stops, comments };
|
|
437
452
|
} catch (err) {
|
|
438
453
|
return { ok: false, reason: describeCallFailure(err) };
|
|
439
454
|
}
|
|
440
455
|
}
|
|
456
|
+
async function deliverInboxFile(runtime, state, file, secrets) {
|
|
457
|
+
const folder = join(state.buildDir, INBOX_FOLDER);
|
|
458
|
+
try {
|
|
459
|
+
mkdirSync(folder, { recursive: true, mode: 493 });
|
|
460
|
+
writeFileSync(join(folder, `${file.id}.json`), JSON.stringify(file), { mode: 420 });
|
|
461
|
+
} catch (err) {
|
|
462
|
+
return { ok: false, reason: `the comments for the agent could not be written on the host: ${err instanceof Error ? err.message : String(err)}` };
|
|
463
|
+
}
|
|
464
|
+
return deliverJobFiles(runtime, state, ["inbox"], secrets);
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
// src/runner/microvm/inbox.ts
|
|
468
|
+
var ROOT_PATH = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin";
|
|
469
|
+
async function writeGuestInboxFile(runtime, state, file) {
|
|
470
|
+
const folder = `${JOB_MOUNT}/${INBOX_FOLDER}`;
|
|
471
|
+
const partial = shellQuote(`${folder}/.${file.id}.partial`);
|
|
472
|
+
const script2 = [
|
|
473
|
+
"set -e",
|
|
474
|
+
"umask 022",
|
|
475
|
+
`mkdir -p ${shellQuote(folder)}`,
|
|
476
|
+
`cat > ${partial}`,
|
|
477
|
+
`chmod 0644 ${partial}`,
|
|
478
|
+
`mv ${partial} ${shellQuote(`${folder}/${file.id}.json`)}`
|
|
479
|
+
].join("\n");
|
|
480
|
+
const result = await runtime.vm.exec(state.vsockPath, { argv: ["/bin/sh", "-c", script2], user: "root", cwd: "/", env: { PATH: ROOT_PATH } }, { stdin: JSON.stringify(file) });
|
|
481
|
+
if (result.status !== 0) {
|
|
482
|
+
const line = result.stderr.trim().split("\n")[0] ?? "";
|
|
483
|
+
throw new Error(`writing a comment into the guest's inbox failed (exit ${result.status})${line === "" ? "" : `: ${line}`}`);
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
// src/runner/inbox.ts
|
|
488
|
+
var INBOX_FOLDER = "inbox";
|
|
489
|
+
var FILE_ID = /^[A-Za-z0-9_-]{1,100}$/;
|
|
490
|
+
function inboxFileOf(comment, job) {
|
|
491
|
+
if (!FILE_ID.test(comment.commentId)) return void 0;
|
|
492
|
+
return {
|
|
493
|
+
id: comment.commentId,
|
|
494
|
+
item: job.item,
|
|
495
|
+
workItemId: comment.workItemId,
|
|
496
|
+
thread: comment.thread,
|
|
497
|
+
authorName: comment.authorName,
|
|
498
|
+
text: comment.text,
|
|
499
|
+
summary: comment.summary,
|
|
500
|
+
at: comment.at
|
|
501
|
+
};
|
|
502
|
+
}
|
|
503
|
+
async function deliverComment(runtime, job, file, secrets) {
|
|
504
|
+
if (job.microvm !== void 0) {
|
|
505
|
+
if (!vmAlive(runtime, job.microvm)) return { ok: false, reason: "the build's microVM is not running" };
|
|
506
|
+
try {
|
|
507
|
+
await writeGuestInboxFile(runtime, job.microvm, file);
|
|
508
|
+
return { ok: true };
|
|
509
|
+
} catch (err) {
|
|
510
|
+
return { ok: false, reason: err instanceof Error ? err.message : String(err) };
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
if (job.container !== void 0 && filesAreCopied(job.container)) return deliverInboxFile(runtime, job.container, file, secrets);
|
|
514
|
+
return { ok: true, skipped: true };
|
|
515
|
+
}
|
|
441
516
|
|
|
442
517
|
// src/runner/host-state.ts
|
|
443
518
|
function hostState(flags) {
|
|
@@ -1595,9 +1670,10 @@ function slotsTotalOf(state) {
|
|
|
1595
1670
|
const slots = state.blocked === void 0 ? state.buildSlots ?? state.config.concurrency : state.config.concurrency;
|
|
1596
1671
|
return Math.max(slots, state.jobs.size, 1);
|
|
1597
1672
|
}
|
|
1598
|
-
async function sendTickHeartbeat(state, workRequest) {
|
|
1673
|
+
async function sendTickHeartbeat(state, workRequest, wake2 = false) {
|
|
1599
1674
|
if (state.heartbeating) {
|
|
1600
1675
|
if (workRequest !== void 0) state.queuedWorkRequest = workRequest;
|
|
1676
|
+
if (wake2) state.heartbeatAgain = true;
|
|
1601
1677
|
reportRepeating(state, "the heartbeat's previous call", "heartbeat held: the previous heartbeat is still in flight", "line");
|
|
1602
1678
|
return;
|
|
1603
1679
|
}
|
|
@@ -1641,10 +1717,13 @@ async function sendTickHeartbeat(state, workRequest) {
|
|
|
1641
1717
|
if (result.ok) {
|
|
1642
1718
|
considerNamedVersion(state, result.runnerVersion);
|
|
1643
1719
|
applyStops(state, result.stops);
|
|
1720
|
+
applyComments(state, result.comments);
|
|
1644
1721
|
}
|
|
1645
1722
|
next = state.queuedWorkRequest;
|
|
1646
1723
|
state.queuedWorkRequest = void 0;
|
|
1647
|
-
|
|
1724
|
+
const again = state.heartbeatAgain === true;
|
|
1725
|
+
state.heartbeatAgain = false;
|
|
1726
|
+
if (next === void 0 && !again) break;
|
|
1648
1727
|
}
|
|
1649
1728
|
} finally {
|
|
1650
1729
|
state.heartbeating = false;
|
|
@@ -1671,6 +1750,29 @@ function applyStops(state, stops) {
|
|
|
1671
1750
|
});
|
|
1672
1751
|
}
|
|
1673
1752
|
}
|
|
1753
|
+
function applyComments(state, comments) {
|
|
1754
|
+
if (state.config.deliverComments === false) return;
|
|
1755
|
+
for (const comment of comments) {
|
|
1756
|
+
const active = [...state.jobs.values()].find((entry) => entry.job.claimId === comment.claimId);
|
|
1757
|
+
if (active === void 0 || active.ending) continue;
|
|
1758
|
+
if (active.job.microvm === void 0 && active.job.container === void 0) continue;
|
|
1759
|
+
const delivered = active.deliveredComments ??= /* @__PURE__ */ new Set();
|
|
1760
|
+
const delivering = active.deliveringComments ??= /* @__PURE__ */ new Set();
|
|
1761
|
+
if (delivered.has(comment.commentId) || delivering.has(comment.commentId)) continue;
|
|
1762
|
+
const file = inboxFileOf(comment, active.job);
|
|
1763
|
+
if (file === void 0) {
|
|
1764
|
+
reportRepeating(state, `comment ${comment.commentId}`, `${itemTag(active.job)} ignoring a comment with an id the inbox cannot hold`, "line");
|
|
1765
|
+
continue;
|
|
1766
|
+
}
|
|
1767
|
+
delivering.add(comment.commentId);
|
|
1768
|
+
const key = `comment ${comment.commentId} for the agent`;
|
|
1769
|
+
const runtime = runtimeOf(state);
|
|
1770
|
+
void deliverComment(runtime, active.job, file, () => runtime.credentials.get(active.dirPath)?.issuedTokens() ?? []).then((result) => {
|
|
1771
|
+
if (result.ok) delivered.add(comment.commentId);
|
|
1772
|
+
reportRepeating(state, key, result.ok ? void 0 : `${itemTag(active.job)} the ${key} could not be written into the build: ${result.reason}`);
|
|
1773
|
+
}).catch((err) => reportRepeating(state, key, `${itemTag(active.job)} the ${key} could not be written into the build: ${describeCallFailure(err)}`)).finally(() => delivering.delete(comment.commentId));
|
|
1774
|
+
}
|
|
1775
|
+
}
|
|
1674
1776
|
function ownVersionOf(deps) {
|
|
1675
1777
|
return (deps.cliVersion ?? resolveVersion()).split(" ")[0] ?? "";
|
|
1676
1778
|
}
|
|
@@ -2140,6 +2242,7 @@ async function tick(state) {
|
|
|
2140
2242
|
}
|
|
2141
2243
|
function wake(state) {
|
|
2142
2244
|
if (state.intakeClosed === true) return;
|
|
2245
|
+
void sendTickHeartbeat(state, void 0, true);
|
|
2143
2246
|
if (state.ticking === true) {
|
|
2144
2247
|
state.wakeAgain = true;
|
|
2145
2248
|
return;
|
|
@@ -2442,7 +2545,7 @@ var CLAIM_REFUSAL_CODES = new Set(
|
|
|
2442
2545
|
"pull_request_from_fork pull_request_on_default_branch pull_request_ambiguous pull_request_repository_not_connected repository_not_reachable branch_claimed_elsewhere".split(" ")
|
|
2443
2546
|
);
|
|
2444
2547
|
async function tryClaimAndStart(state, item, queue) {
|
|
2445
|
-
const { postJson: postJson2 } = await import('./work-cmd-
|
|
2548
|
+
const { postJson: postJson2 } = await import('./work-cmd-IEC6XKC6.js');
|
|
2446
2549
|
const log = logOf(state);
|
|
2447
2550
|
const hostKey = await loadHostKey(state.config.configPath);
|
|
2448
2551
|
const claim = await retrySend(
|
|
@@ -3813,7 +3916,7 @@ async function startRunner(configPath, deps, startup) {
|
|
|
3813
3916
|
check: update.check ? () => update.check(configPath) : async () => {
|
|
3814
3917
|
const held = heldClaudeCredential();
|
|
3815
3918
|
const env = held === void 0 ? process.env : { ...process.env, [held.variable]: held.value };
|
|
3816
|
-
return (await import('./check-
|
|
3919
|
+
return (await import('./check-E2ZTWJPM.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
|
|
3817
3920
|
},
|
|
3818
3921
|
now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
|
|
3819
3922
|
log
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { readNewestDemo } from './chunk-ER6KQCVJ.js';
|
|
4
|
-
import { runEmitArtifact } from './chunk-
|
|
4
|
+
import { runEmitArtifact } from './chunk-XHDJ75TC.js';
|
|
5
5
|
import { VoiceDownloadError, downloadPinned, sha256OfFile } from './chunk-2PGI6RDE.js';
|
|
6
6
|
import { VOICE_PACK_FILES, VOICE_PACK_VERSION } from './chunk-7SO2VHTQ.js';
|
|
7
7
|
import { detectActiveSession } from './chunk-IP7BIBXJ.js';
|
|
8
|
-
import { autoConnect } from './chunk-
|
|
8
|
+
import { autoConnect } from './chunk-YZXI37NW.js';
|
|
9
9
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
10
10
|
import { defaultFetch, resolveGatewayCredentials } from './chunk-YQHEJ5SV.js';
|
|
11
|
-
import { resolveRepoIdentity } from './chunk-
|
|
11
|
+
import { resolveRepoIdentity } from './chunk-7K7TGHDF.js';
|
|
12
12
|
import { launchedItemForSession } from './chunk-5WYT3PPE.js';
|
|
13
|
-
import { ARTIFACT_MAX_BYTES, ARTIFACT_MAX_CAPTION_LENGTH, DEMO_RECORD_MEDIA_TYPE, ARTIFACT_MAX_REPLACES_TARGETS, DEMO_MANIFEST_LATEST_VERSION, DemoManifestSchema, ARTIFACT_KINDS } from './chunk-
|
|
13
|
+
import { ARTIFACT_MAX_BYTES, ARTIFACT_MAX_CAPTION_LENGTH, DEMO_RECORD_MEDIA_TYPE, ARTIFACT_MAX_REPLACES_TARGETS, DEMO_MANIFEST_LATEST_VERSION, DemoManifestSchema, ARTIFACT_KINDS } from './chunk-QZSA5R3L.js';
|
|
14
14
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
15
15
|
import { __commonJS, __require, __toESM } from './chunk-Z5GEFMRW.js';
|
|
16
16
|
import { createHash } from 'crypto';
|
|
@@ -3,7 +3,7 @@ import { createRequire } from 'node:module';
|
|
|
3
3
|
import { toolsDockerfile } from './chunk-H3MLZ4EA.js';
|
|
4
4
|
import { claimPidFile, RunnerAlreadyRunningError, releasePidFile } from './chunk-WAZJPDR2.js';
|
|
5
5
|
import { startTimeOf } from './chunk-JBJTC3UU.js';
|
|
6
|
-
import { runnerLabelValue } from './chunk-
|
|
6
|
+
import { runnerLabelValue } from './chunk-QH6RZLDV.js';
|
|
7
7
|
import { RecipeError, locateRecipe, readRecipe, assertBuildable, writeSanitizedRecipe, classifyProperties, SANITIZED_NAME } from './chunk-TV5ITSVY.js';
|
|
8
8
|
import { UNIVERSAL_IMAGE_DIGEST, UNIVERSAL_IMAGE_REPOSITORY, UNIVERSAL_IMAGE_SOURCE, CLAUDE_CODE_VERSION, NODE_IMAGE, UNIVERSAL_IMAGE, MEDIA_PINS, TINI_VERSION, GH_VERSION } from './chunk-7SO2VHTQ.js';
|
|
9
9
|
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, repoCacheDir, imagesDir, imageBuildLogsDir, attemptStamp, orgStore, rootfsPathFor } from './chunk-WT7J2627.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { sanitizeTerminal } from './chunk-
|
|
4
|
-
import { resolvePackRoot } from './chunk-
|
|
5
|
-
import { parseProofsConfig } from './chunk-
|
|
6
|
-
import { CHECK_ITEM_REASON_MAX_LENGTH, CheckItemsSchema } from './chunk-
|
|
3
|
+
import { sanitizeTerminal } from './chunk-YQDXFFOK.js';
|
|
4
|
+
import { resolvePackRoot } from './chunk-7GX4X25F.js';
|
|
5
|
+
import { parseProofsConfig } from './chunk-AILO7SNG.js';
|
|
6
|
+
import { CHECK_ITEM_REASON_MAX_LENGTH, CheckItemsSchema } from './chunk-QZSA5R3L.js';
|
|
7
7
|
import { createHash } from 'crypto';
|
|
8
8
|
import { join } from 'path';
|
|
9
9
|
import { pathToFileURL } from 'url';
|
|
@@ -2,13 +2,13 @@
|
|
|
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
7
|
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-YQHEJ5SV.js';
|
|
8
|
-
import { resolveRepoIdentity } from './chunk-
|
|
8
|
+
import { resolveRepoIdentity } from './chunk-7K7TGHDF.js';
|
|
9
9
|
import { launchedItemForSession } from './chunk-5WYT3PPE.js';
|
|
10
10
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
11
|
-
import { CriteriaListSchema } from './chunk-
|
|
11
|
+
import { CriteriaListSchema } from './chunk-QZSA5R3L.js';
|
|
12
12
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
13
13
|
import { readFileSync } from 'fs';
|
|
14
14
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { detectActiveSession } from './chunk-IP7BIBXJ.js';
|
|
4
|
-
import { autoConnect } from './chunk-
|
|
4
|
+
import { autoConnect } from './chunk-YZXI37NW.js';
|
|
5
5
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
6
6
|
import { defaultFetch, unauthorizedMessage, resolveGatewayCredentials } from './chunk-YQHEJ5SV.js';
|
|
7
|
-
import { resolveRepoIdentity } from './chunk-
|
|
7
|
+
import { resolveRepoIdentity } from './chunk-7K7TGHDF.js';
|
|
8
8
|
import { parseWorkItemEnv } from './chunk-5WYT3PPE.js';
|
|
9
9
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
10
10
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { MAINTAINED_SKILLS } from './chunk-CDDED64E.js';
|
|
4
4
|
import { resolvePackageVersion } from './chunk-RA3O54FC.js';
|
|
5
|
-
import { splitRawFile } from './chunk-
|
|
5
|
+
import { splitRawFile } from './chunk-AILO7SNG.js';
|
|
6
6
|
import { existsSync, readFileSync, mkdirSync, writeFileSync, readdirSync } from 'fs';
|
|
7
7
|
import { join, dirname } from 'path';
|
|
8
8
|
import { fileURLToPath } from 'url';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { EVENT_TYPES, isHumanUserTurn, INPUT_BAND_BOUNDARIES, parseAgentSession, SCHEMA_VERSION, SPEED_MAX_LENGTH, inputBandOf, BUCKET_MODEL_MAX_LENGTH } from './chunk-
|
|
3
|
+
import { EVENT_TYPES, isHumanUserTurn, INPUT_BAND_BOUNDARIES, parseAgentSession, SCHEMA_VERSION, SPEED_MAX_LENGTH, inputBandOf, BUCKET_MODEL_MAX_LENGTH } from './chunk-QZSA5R3L.js';
|
|
4
4
|
import { createHash } from 'crypto';
|
|
5
5
|
import { readFileSync, readdirSync, statSync, mkdirSync, copyFileSync, renameSync, unlinkSync, writeFileSync, stat as stat$1, unwatchFile, watchFile, watch as watch$1 } from 'fs';
|
|
6
6
|
import { type, homedir } from 'os';
|