@outerlayer/cli 0.38.0-next.20261105155912 → 0.38.0-next.20261106003041
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-CBEPGNFY.js +40 -0
- package/dist/{agent-subcommand-KPQGEOPQ.js → agent-subcommand-UNSXJUHA.js} +6 -6
- package/dist/{artifact-link-cmd-72FQTBGO.js → artifact-link-cmd-QP6VO7AJ.js} +2 -2
- package/dist/{bridge-F4BNXRM2.js → bridge-JI4IO7JN.js} +9 -9
- package/dist/build-2L3L2OJO.js +24 -0
- package/dist/build-disk-CKBEEF4N.js +21 -0
- package/dist/build-info.json +1 -1
- package/dist/builder-PKDA7X2H.js +20 -0
- package/dist/caller-XETCC46J.js +23 -0
- package/dist/{check-CZM3LZ7Y.js → check-FG32SYJF.js} +59 -59
- package/dist/{chunk-K7BI4TLM.js → chunk-256R6O56.js} +20 -7
- package/dist/{chunk-HU3POMM4.js → chunk-2MQQASWB.js} +6 -6
- package/dist/{chunk-H6H5GCM6.js → chunk-3DVCPRKE.js} +22 -11
- package/dist/{chunk-PMBG7IYE.js → chunk-3FAJMXBA.js} +11 -11
- package/dist/{chunk-QDM23DTW.js → chunk-3XWZKL2P.js} +10 -10
- package/dist/{chunk-3PR7BPMG.js → chunk-45TFVWNT.js} +6 -6
- package/dist/{chunk-6XYKZH3K.js → chunk-4MSEUIMK.js} +14 -8
- package/dist/{chunk-QAFR65VC.js → chunk-5R5FEPLH.js} +1 -1
- package/dist/{chunk-2C3XLYO5.js → chunk-5VAXNAOD.js} +1 -1
- package/dist/{chunk-QJKW4MKH.js → chunk-7PZDPISM.js} +54 -2
- package/dist/{chunk-YU6XPJ5I.js → chunk-ABN4UBR5.js} +3 -3
- package/dist/{chunk-XN4A275V.js → chunk-AJC5Q2NY.js} +23 -13
- package/dist/{chunk-HVUS5WRU.js → chunk-AMG5ICDO.js} +4 -4
- package/dist/{chunk-IYUJFAQD.js → chunk-AVEF3T6Y.js} +919 -36
- package/dist/{chunk-EKRLMOWS.js → chunk-BL6CCU26.js} +7 -7
- package/dist/{chunk-3B5H5MGB.js → chunk-BO3NOGKE.js} +3 -3
- package/dist/{chunk-BMYIPXBG.js → chunk-CCMKLF7K.js} +6 -6
- package/dist/{chunk-DP6ZOSCR.js → chunk-CGXYPLK3.js} +24 -10
- package/dist/{chunk-K7KQCOSM.js → chunk-DK5YFDYI.js} +9 -9
- package/dist/{chunk-IJN3GP4M.js → chunk-DL5N6V3D.js} +1 -1
- package/dist/{chunk-VG524OUD.js → chunk-DVFGCVTV.js} +5 -5
- package/dist/{chunk-EVFZUFCO.js → chunk-DXBYNJRM.js} +6 -6
- package/dist/{chunk-45UZPTDQ.js → chunk-EERD7VI3.js} +1 -1
- package/dist/{chunk-U63SE2NJ.js → chunk-EFAOERZH.js} +1 -1
- package/dist/{chunk-64D2YZK5.js → chunk-EHJYXABQ.js} +1 -1
- package/dist/{chunk-2FDWTE6F.js → chunk-ERQLHUWU.js} +5 -5
- package/dist/{chunk-MPGTKJOM.js → chunk-EXIZ3G6I.js} +6 -6
- package/dist/{chunk-KXKVMSHC.js → chunk-FER7JJ3S.js} +1 -1
- package/dist/{chunk-OVRLLZPJ.js → chunk-FGVVBYCT.js} +1 -1
- package/dist/{chunk-J56SR6X4.js → chunk-FOUG2R4Q.js} +1 -1
- package/dist/{chunk-35RIDLSD.js → chunk-GMRVWRHD.js} +2 -2
- package/dist/{chunk-LMT72G74.js → chunk-HG2ZG6ZU.js} +1 -1
- package/dist/{chunk-2QIK3JRV.js → chunk-IRFN2ZHJ.js} +1 -1
- package/dist/{chunk-VVZIFOAN.js → chunk-IXB2IIEW.js} +1 -1
- package/dist/{chunk-GMRIR2MF.js → chunk-JTDMSQMI.js} +9 -9
- package/dist/{chunk-TOH7FJH3.js → chunk-K6JOU4CT.js} +42 -31
- package/dist/{chunk-RVIZRXBK.js → chunk-KLQLQQGG.js} +3 -3
- package/dist/{chunk-L25GQH45.js → chunk-L4ACBB5R.js} +1 -1
- package/dist/{chunk-7TPLWWFN.js → chunk-M53UNEO6.js} +1 -1
- package/dist/{chunk-IG7SBYJY.js → chunk-MDKLSY43.js} +1 -1
- package/dist/{chunk-3J7F3VGZ.js → chunk-MPE4NOKD.js} +2 -2
- package/dist/{chunk-ZBPUHNUZ.js → chunk-NEEMG462.js} +1 -1
- package/dist/{chunk-CUAV3727.js → chunk-O4Z2YVC3.js} +5 -5
- package/dist/{chunk-SSSPZ3TB.js → chunk-OFWNBTLU.js} +1 -1
- package/dist/{chunk-5YWOGS66.js → chunk-OGQW7A4G.js} +16 -12
- package/dist/{chunk-MY6T3N3A.js → chunk-ONOINHY4.js} +1 -1
- package/dist/{chunk-XUXDUOJI.js → chunk-OUHM6U6Z.js} +6 -6
- package/dist/{chunk-JCEJARDB.js → chunk-PARDL7HH.js} +1 -1
- package/dist/{chunk-WWTZLRPH.js → chunk-PLVHIQJN.js} +43 -3
- package/dist/{chunk-EOVVSXRH.js → chunk-PMJ6IEUM.js} +7 -7
- package/dist/{chunk-OCDG3ZWH.js → chunk-QONY6C2B.js} +9 -9
- package/dist/{chunk-FRQPX2QR.js → chunk-QWDGHEQL.js} +3 -3
- package/dist/{chunk-AWY7ORQ2.js → chunk-RNCCRUT5.js} +1 -1
- package/dist/{chunk-J7MMYBBV.js → chunk-RSRNZB4T.js} +7 -7
- package/dist/{chunk-MB7IX6DO.js → chunk-RUJR3SDB.js} +1 -1
- package/dist/{chunk-RM3K57Q7.js → chunk-RZ6WJTUP.js} +39 -16
- package/dist/{chunk-XQSTN7NG.js → chunk-S7CE7QCF.js} +3 -3
- package/dist/{chunk-OV4XTV5M.js → chunk-SF2TBJBP.js} +7 -4
- package/dist/{chunk-WHPMCF7R.js → chunk-SMFWLPXC.js} +18 -18
- package/dist/{chunk-Y2HVISUN.js → chunk-T524XQKI.js} +1 -1
- package/dist/{chunk-2RKPEUGK.js → chunk-TAEDH2SU.js} +1 -1
- package/dist/{chunk-W7LJQ2GU.js → chunk-U5EE7PGC.js} +4 -4
- package/dist/{chunk-SUMRSD2Q.js → chunk-U7L4GBGS.js} +1 -1
- package/dist/{chunk-SKV6FO37.js → chunk-VNT2IRLM.js} +4 -4
- package/dist/{chunk-M4WTELYI.js → chunk-VWNQRD4I.js} +4 -4
- package/dist/{chunk-D5JJQRW7.js → chunk-WF2NXBOM.js} +9 -9
- package/dist/{chunk-5M3KXOPY.js → chunk-X2DX3A7H.js} +2 -2
- package/dist/{chunk-VUSYGNNN.js → chunk-XDRZ3BNA.js} +1 -1
- package/dist/{chunk-DOKFFSOZ.js → chunk-XE2PXGZT.js} +3 -3
- package/dist/{chunk-Y5ZKDLNX.js → chunk-YKWOVYVN.js} +15 -15
- package/dist/{chunk-HI5RBFL3.js → chunk-YWWW47OY.js} +14 -9
- package/dist/{chunk-2JIGPSVF.js → chunk-YXXJBHHF.js} +20 -4
- package/dist/{chunk-KXCTWOPU.js → chunk-YZRDJOOR.js} +3 -3
- package/dist/{chunk-GLJX2CZY.js → chunk-Z4R36YDJ.js} +353 -303
- package/dist/{chunk-GZETHU2Z.js → chunk-ZCEM4GJ5.js} +3 -3
- package/dist/{chunk-VV2VLQWG.js → chunk-ZLJXMXZP.js} +2 -2
- package/dist/{chunk-ZEEQB7VM.js → chunk-ZO3RUMUR.js} +5 -5
- package/dist/{chunk-HOCVTWV2.js → chunk-ZTJTAKVW.js} +1 -1
- package/dist/{claude-launcher-3O5W5ENW.js → claude-launcher-FHQTSQOM.js} +10 -10
- package/dist/{cli-YMSYVF7O.js → cli-GNC4MFMP.js} +173 -159
- package/dist/{command-ZOWMTOWA.js → command-47EYM2FJ.js} +54 -54
- package/dist/{config-J4NNZ2XO.js → config-EA6WVKAS.js} +14 -14
- package/dist/{connect-cmd-GVIUKK3R.js → connect-cmd-4JO2LBUT.js} +15 -15
- package/dist/{container-start-RZSGWDZG.js → container-start-XR7KANS6.js} +58 -53
- package/dist/{context-cleanup-7V2ARBSC.js → context-cleanup-6CTKLEUT.js} +6 -6
- package/dist/{context-show-cmd-73E36KAV.js → context-show-cmd-Z7NQAKNE.js} +16 -16
- package/dist/{control-plane-launch-L744RJ4A.js → control-plane-launch-4PLBJKBS.js} +17 -17
- package/dist/{demo-record-cmd-KGH3WGLY.js → demo-record-cmd-3B2ME2ZI.js} +10 -10
- package/dist/{demo-voice-cmd-CHCS7TQF.js → demo-voice-cmd-LIXAA3OS.js} +24 -24
- package/dist/{dist-U6EGOQD5.js → dist-3TV6G4YF.js} +2 -2
- package/dist/docker-FPEQS6HK.js +20 -0
- package/dist/{doctor-NILQ2RUT.js → doctor-AFH6UUX6.js} +59 -59
- package/dist/emit-artifact-cmd-5XIEUWFX.js +44 -0
- package/dist/{emit-cmd-AG7HL3YI.js → emit-cmd-IKYF27IK.js} +9 -9
- package/dist/emit-criteria-cmd-YS5ZSLCN.js +35 -0
- package/dist/{emit-demo-cmd-GHDL7ZGH.js → emit-demo-cmd-IDC2JC46.js} +24 -24
- package/dist/{emit-finding-cmd-KPHWY6ZU.js → emit-finding-cmd-C4NRTIZO.js} +18 -18
- package/dist/{emit-result-cmd-WOJEHOXH.js → emit-result-cmd-GC2I7JQU.js} +22 -22
- package/dist/{emit-step-cmd-QTNJBTZN.js → emit-step-cmd-TTH4FYFW.js} +18 -18
- package/dist/{exec-client-IPPD3NF4.js → exec-client-DT5EWVQL.js} +10 -10
- package/dist/find-unit-337Y4QAC.js +24 -0
- package/dist/{findings-cmd-LVYAXHQG.js → findings-cmd-MSV52ODM.js} +18 -18
- package/dist/fleet-readiness-O76CSI7M.js +31 -0
- package/dist/governing-source-QEFYVBQF.js +41 -0
- package/dist/guest-init-X7M5AIOI.js +20 -0
- package/dist/{hook-fast-RNST4WJH.js → hook-fast-T6FOTZHA.js} +4 -4
- package/dist/{hook-install-G3FUCXBE.js → hook-install-OUSUHQ6C.js} +6 -6
- package/dist/{hook-wrap-fast-HNY3OGLN.js → hook-wrap-fast-GVS5HF5C.js} +3 -3
- package/dist/host-checks-OXB5J3KR.js +79 -0
- package/dist/host-key-UFUIBFBF.js +18 -0
- package/dist/{image-tag-5Z2NKCHC.js → image-tag-AE6EKDPV.js} +10 -10
- package/dist/index.js +7 -7
- package/dist/{init-7OHFUQBV.js → init-PUN3PKOT.js} +50 -50
- package/dist/init-V7X3KA7B.js +79 -0
- package/dist/{init-agent-B5ADPZIB.js → init-agent-D3KK24QX.js} +51 -51
- package/dist/{init-cmd-ZT2PXGPD.js → init-cmd-LGRN3U7K.js} +32 -32
- package/dist/{init-update-WYM5WSM7.js → init-update-ZL2J7EQI.js} +27 -27
- package/dist/install-cmd-4ID4VBH2.js +21 -0
- package/dist/{layout-RPYMSWCY.js → layout-G6K72TXK.js} +6 -6
- package/dist/{login-browser-AMCRDS5C.js → login-browser-I6CWBA7K.js} +2 -2
- package/dist/{logs-XKEW5EOB.js → logs-DIA3NWC2.js} +9 -9
- package/dist/loop-AWBFKDV7.js +90 -0
- package/dist/machine-BZPKYURG.js +79 -0
- package/dist/{machine-skills-RP2Y5F32.js → machine-skills-JLJJDXBS.js} +6 -6
- package/dist/{mcp-install-cmd-IZYHXHXG.js → mcp-install-cmd-OTAX7QP2.js} +6 -6
- package/dist/{mcp-serve-cmd-HAIJVRR7.js → mcp-serve-cmd-63KQEQYS.js} +11 -11
- package/dist/{paths-6AMRSXZK.js → paths-KVMMJQ7T.js} +9 -9
- package/dist/pending-2IE3VBAN.js +18 -0
- package/dist/pidfile-NCBBWZNH.js +19 -0
- package/dist/record-PQDJVKYV.js +18 -0
- package/dist/{relay-CO5I2WOV.js → relay-QDB526DJ.js} +7 -7
- package/dist/{relay-protocol-S2JGOYZZ.js → relay-protocol-PJ2HOP6B.js} +7 -7
- package/dist/runner-agents-CEW4Z3FR.js +14 -0
- package/dist/runner-env-23OLQBQZ.js +24 -0
- package/dist/runner-identity-IJKE4SRJ.js +20 -0
- package/dist/{runner-key-VCWF2EN7.js → runner-key-4J4MHN3S.js} +50 -50
- package/dist/session-sender-HKNACIH5.js +44 -0
- package/dist/{shell-function-FTY7SSAJ.js → shell-function-RBJR373S.js} +2 -2
- package/dist/{spec-cmd-2WKI4V2T.js → spec-cmd-4R7AYTBU.js} +19 -19
- package/dist/{starter-pack-W6S3L76K.js → starter-pack-6C7HPT4O.js} +7 -7
- package/dist/state-DPEWDXQN.js +18 -0
- package/dist/{status-HHM6TH6J.js → status-GMVC666R.js} +50 -50
- package/dist/{statusline-fast-5G2CTPSX.js → statusline-fast-WUXKRABL.js} +3 -3
- package/dist/{sync-cmd-TIDWKW4E.js → sync-cmd-UMAENSGZ.js} +22 -22
- package/dist/update-steps-GTXNCG3Z.js +80 -0
- package/dist/{watch-IA6UDVSF.js → watch-RAUF223H.js} +22 -22
- package/dist/{work-claim-cmd-7TLC4DKU.js → work-claim-cmd-A3ISXUFA.js} +24 -24
- package/dist/{work-cmd-2LXE27RX.js → work-cmd-U7YLMDZ7.js} +18 -18
- package/dist/work-comment-cmd-CMWMOWVG.js +38 -0
- package/dist/{work-demo-cmd-CSXUA7KH.js → work-demo-cmd-EKTJHIVM.js} +18 -18
- package/dist/{work-logs-cmd-ECF7ZLHO.js → work-logs-cmd-Z3QOFYTJ.js} +18 -18
- package/dist/{work-open-pr-cmd-SUJEYZ6C.js → work-open-pr-cmd-NJXIX3QZ.js} +19 -19
- package/dist/work-pr-cmd-JUV3SN7I.js +34 -0
- package/dist/{work-proofs-cmd-UQU6SSFD.js → work-proofs-cmd-MIDPIFTH.js} +20 -20
- package/dist/{work-proofs-record-MKCYQLS2.js → work-proofs-record-6FTMJDQG.js} +29 -29
- package/dist/{work-stop-cmd-PBC7SJ7M.js → work-stop-cmd-Z7MYNR7R.js} +18 -18
- package/package.json +2 -2
- package/skill-pack/maintained/outerlayer-build/references/evidence.md +5 -2
- package/dist/agent-setup-RXMEQ7PA.js +0 -40
- package/dist/build-ZH5MAZNM.js +0 -24
- package/dist/build-disk-GPCMOIZV.js +0 -21
- package/dist/builder-ZMVXHOEJ.js +0 -20
- package/dist/caller-J7FR4VBJ.js +0 -23
- package/dist/docker-CAMJXBAJ.js +0 -20
- package/dist/emit-artifact-cmd-CGY656UZ.js +0 -44
- package/dist/emit-criteria-cmd-3HYUUSDK.js +0 -35
- package/dist/find-unit-N3OJBFS5.js +0 -24
- package/dist/fleet-readiness-F46LOKJ6.js +0 -31
- package/dist/governing-source-4XYZYZCD.js +0 -41
- package/dist/guest-init-CFJM25V5.js +0 -20
- package/dist/host-checks-PPTMNHRA.js +0 -79
- package/dist/host-key-QUBI74MS.js +0 -18
- package/dist/init-5ERGXSUD.js +0 -79
- package/dist/install-cmd-3NOHEA6E.js +0 -21
- package/dist/loop-HTKTSGBA.js +0 -90
- package/dist/machine-RBYGRRSM.js +0 -79
- package/dist/pending-C4XQUKWA.js +0 -18
- package/dist/pidfile-3BILBCEO.js +0 -19
- package/dist/record-MV6WJGZT.js +0 -18
- package/dist/runner-agents-FQ4FODZN.js +0 -14
- package/dist/runner-env-72OTIZV2.js +0 -24
- package/dist/runner-identity-IVP2GW33.js +0 -20
- package/dist/session-sender-PWYFVWN6.js +0 -44
- package/dist/state-C3FRODOO.js +0 -18
- package/dist/update-steps-WD25IX2R.js +0 -80
- package/dist/work-comment-cmd-ER53OPLH.js +0 -38
- package/dist/work-pr-cmd-FCNFYWUR.js +0 -34
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { staleBuildRefusal, staleBuildWarning, detectCi } from './chunk-
|
|
3
|
+
import { staleBuildRefusal, staleBuildWarning, detectCi } from './chunk-3DVCPRKE.js';
|
|
4
4
|
import { launchRefusalForSession } from './chunk-WGC7UFRM.js';
|
|
5
|
-
import { detectActiveSession } from './chunk-
|
|
6
|
-
import { autoConnect } from './chunk-
|
|
7
|
-
import { readEffectiveArtifactSpoolState, localArtifactIds, isArtifactTombstoned, artifactBlobsDir, appendArtifactRecord, artifactsSpoolPath, findPendingArtifactRecord, sanitizeTerminal, appendArtifactTombstone } from './chunk-
|
|
5
|
+
import { detectActiveSession } from './chunk-DL5N6V3D.js';
|
|
6
|
+
import { autoConnect } from './chunk-XE2PXGZT.js';
|
|
7
|
+
import { readEffectiveArtifactSpoolState, localArtifactIds, isArtifactTombstoned, artifactBlobsDir, appendArtifactRecord, artifactsSpoolPath, findPendingArtifactRecord, sanitizeTerminal, appendArtifactTombstone } from './chunk-IXB2IIEW.js';
|
|
8
8
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
9
|
-
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
9
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-XDRZ3BNA.js';
|
|
10
10
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
11
11
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
12
|
-
import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-
|
|
12
|
+
import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-7PZDPISM.js';
|
|
13
13
|
import { homeFromEnv, spoolHomeFromEnv } from './chunk-352DHUTP.js';
|
|
14
|
-
import { resolveRepoIdentity } from './chunk-
|
|
15
|
-
import { ARTIFACT_MAX_CAPTION_LENGTH, ArtifactCriterionIdSchema, ARTIFACT_MAX_BYTES, ARTIFACT_MAX_FILENAME_LENGTH, mediaTypeForArtifactPath, inferArtifactKind, ARTIFACT_MAX_REPLACES_TARGETS, parseTestSelector, parseJunit, bindTests } from './chunk-
|
|
14
|
+
import { resolveRepoIdentity } from './chunk-5R5FEPLH.js';
|
|
15
|
+
import { ARTIFACT_MAX_CAPTION_LENGTH, ArtifactCriterionIdSchema, ARTIFACT_MAX_BYTES, ARTIFACT_MAX_FILENAME_LENGTH, mediaTypeForArtifactPath, inferArtifactKind, ARTIFACT_MAX_REPLACES_TARGETS, parseTestSelector, parseJunit, bindTests } from './chunk-YXXJBHHF.js';
|
|
16
16
|
import { createHash, randomUUID } from 'crypto';
|
|
17
17
|
import { statSync, readFileSync, mkdirSync, existsSync, writeFileSync, renameSync, unlinkSync } from 'fs';
|
|
18
18
|
import { resolve, basename, join } from 'path';
|
|
@@ -117,6 +117,12 @@ function checkTestResults(params) {
|
|
|
117
117
|
for (const name of bound.duplicates) {
|
|
118
118
|
warn(`${file} has more than one test named "${name}"; all of them are bound, so each must pass`);
|
|
119
119
|
}
|
|
120
|
+
const boundTests = bound.results.selected ? bound.results.tests.filter((test) => test.named) : bound.results.tests;
|
|
121
|
+
if (boundTests.length > 0 && boundTests.every((test) => test.file === null)) {
|
|
122
|
+
warn(
|
|
123
|
+
`${file} names no test file, so \`outerlayer work proofs --record\` cannot run these tests again. Turn on the reporter's file attribute (Vitest and jest-junit: addFileAttribute), or give each test's file with --test "<name>=<path>"`
|
|
124
|
+
);
|
|
125
|
+
}
|
|
120
126
|
return selection.length > 0 ? selection : void 0;
|
|
121
127
|
}
|
|
122
128
|
async function refusalCode(response) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { inputBandOf, BUCKET_MODEL_MAX_LENGTH } from './chunk-
|
|
3
|
+
import { inputBandOf, BUCKET_MODEL_MAX_LENGTH } from './chunk-YXXJBHHF.js';
|
|
4
4
|
import { readFileSync, mkdirSync, statSync, copyFileSync, renameSync, unlinkSync, writeFileSync, readdirSync, realpathSync, watch as watch$1 } from 'fs';
|
|
5
5
|
import * as sp5 from 'path';
|
|
6
6
|
import { join, relative, dirname, resolve, sep } from 'path';
|
|
@@ -63,9 +63,61 @@ var CLAUDE_CODE = {
|
|
|
63
63
|
}
|
|
64
64
|
};
|
|
65
65
|
|
|
66
|
+
// ../agents/src/opencode/descriptor.ts
|
|
67
|
+
var OPENCODE = {
|
|
68
|
+
id: "opencode",
|
|
69
|
+
label: "OpenCode",
|
|
70
|
+
color: "#211E1E",
|
|
71
|
+
program: "opencode",
|
|
72
|
+
versions: { minimum: "2.2.5", tested: { from: "2.2.5", to: "2.2.5" } },
|
|
73
|
+
providers: ["anthropic"],
|
|
74
|
+
credentials: {
|
|
75
|
+
label: "OpenCode",
|
|
76
|
+
setupCommand: "",
|
|
77
|
+
forwarded: ["ANTHROPIC_API_KEY"],
|
|
78
|
+
stripped: ["ANTHROPIC_API_KEY"],
|
|
79
|
+
placeholders: {
|
|
80
|
+
ANTHROPIC_API_KEY: "sk-ant-api03-placeholder-not-a-real-key"
|
|
81
|
+
},
|
|
82
|
+
kinds: {
|
|
83
|
+
ANTHROPIC_API_KEY: { pattern: "^sk-ant-api[0-9]*-[A-Za-z0-9_-]+$", provider: "anthropic", providerKind: "api-key", starts: "sk-ant-api" }
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
// OpenCode keeps sessions in a database, so the capture part's `collect` writes each one as a JSON export in this folder.
|
|
87
|
+
capture: { sessionFolder: "~/.outerlayer/agent-sessions/opencode" },
|
|
88
|
+
context: {
|
|
89
|
+
// OpenCode reads `AGENTS.md`, which the control plane shares with other agents.
|
|
90
|
+
instructionFiles: [],
|
|
91
|
+
repoSkillFolders: [".claude/skills"],
|
|
92
|
+
userSkillFolder: "~/.config/opencode/skills",
|
|
93
|
+
attach: "replaces-user-config",
|
|
94
|
+
native: []
|
|
95
|
+
},
|
|
96
|
+
capabilities: {
|
|
97
|
+
sessionId: "generated",
|
|
98
|
+
resume: false,
|
|
99
|
+
fork: false,
|
|
100
|
+
subagents: { spawnTools: [], transcript: "inline" },
|
|
101
|
+
cost: "events",
|
|
102
|
+
longCommands: "blocking",
|
|
103
|
+
// `--auto` takes the place of permission modes.
|
|
104
|
+
permission: {},
|
|
105
|
+
structuredOutput: false,
|
|
106
|
+
mcp: true,
|
|
107
|
+
judge: false
|
|
108
|
+
},
|
|
109
|
+
hooks: {
|
|
110
|
+
contextCap: 0,
|
|
111
|
+
timeoutCeilingMs: 1e4,
|
|
112
|
+
// OpenCode has no event before a tool runs, so no event maps to `pre_tool_use`.
|
|
113
|
+
spans: { "session.tool.success": "post_tool_use", "session.execution.succeeded": "stop" }
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
|
|
66
117
|
// ../agents/src/native/agents.ts
|
|
67
118
|
var NATIVE_AGENTS = {
|
|
68
|
-
"claude-code": CLAUDE_CODE
|
|
119
|
+
"claude-code": CLAUDE_CODE,
|
|
120
|
+
opencode: OPENCODE
|
|
69
121
|
};
|
|
70
122
|
var LEGACY_AGENT = "claude-code";
|
|
71
123
|
|
|
@@ -89,4 +141,4 @@ function homeRelative(folder) {
|
|
|
89
141
|
return folder.replace(/^~\//, "");
|
|
90
142
|
}
|
|
91
143
|
|
|
92
|
-
export { CLAUDE_CODE, LEGACY_AGENT, NATIVE_AGENTS, PROVIDERS, homeRelative };
|
|
144
|
+
export { CLAUDE_CODE, LEGACY_AGENT, NATIVE_AGENTS, OPENCODE, PROVIDERS, homeRelative };
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
4
4
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
5
|
-
import { linkedAgentsPath } from './chunk-
|
|
6
|
-
import { resolvePackRoot, OUTERLAYER_SKILLS_BASE, loadTemplateFiles, AGENTS_SKILLS_BASE, loadMaintainedFiles, rewriteSkillPaths, TEMPLATE_SKILLS, skillDir, writeMaintainedFiles, MACHINE_SKILL_PATH } from './chunk-
|
|
7
|
-
import { LEGACY_AGENT } from './chunk-
|
|
5
|
+
import { linkedAgentsPath } from './chunk-FOUG2R4Q.js';
|
|
6
|
+
import { resolvePackRoot, OUTERLAYER_SKILLS_BASE, loadTemplateFiles, AGENTS_SKILLS_BASE, loadMaintainedFiles, rewriteSkillPaths, TEMPLATE_SKILLS, skillDir, writeMaintainedFiles, MACHINE_SKILL_PATH } from './chunk-AVEF3T6Y.js';
|
|
7
|
+
import { LEGACY_AGENT } from './chunk-7PZDPISM.js';
|
|
8
8
|
import { MAINTAINED_SKILLS } from './chunk-CDDED64E.js';
|
|
9
9
|
import { resolvePackageVersion } from './chunk-RA3O54FC.js';
|
|
10
10
|
import { readFileSync, existsSync, mkdirSync, writeFileSync } from 'fs';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { DEFAULT_UNIT_NAME } from './chunk-
|
|
4
|
-
import { RUNNER_FILE_MODE } from './chunk-
|
|
5
|
-
import {
|
|
6
|
-
import { headlessNames,
|
|
7
|
-
import { defaultAgents } from './chunk-
|
|
3
|
+
import { DEFAULT_UNIT_NAME } from './chunk-2MQQASWB.js';
|
|
4
|
+
import { RUNNER_FILE_MODE } from './chunk-5VAXNAOD.js';
|
|
5
|
+
import { parseRunnerEnv, withoutCredentialLines } from './chunk-CGXYPLK3.js';
|
|
6
|
+
import { headlessNames, runnerAgentNamed, credentialAgent, orList, credentialShapes, runnerAgents, credentialForms, credentialEnvPath, forwardedVariables } from './chunk-RZ6WJTUP.js';
|
|
7
|
+
import { defaultAgents } from './chunk-AVEF3T6Y.js';
|
|
8
8
|
import { existsSync, readFileSync, writeFileSync, renameSync, rmSync } from 'fs';
|
|
9
9
|
import { join, dirname } from 'path';
|
|
10
10
|
|
|
@@ -17,9 +17,15 @@ var RunnerEnvError = class extends Error {
|
|
|
17
17
|
function runnerEnvPath(configPath) {
|
|
18
18
|
return join(dirname(configPath), "runner.env");
|
|
19
19
|
}
|
|
20
|
-
function credentialFromStdin(text, agents = defaultAgents()) {
|
|
20
|
+
function credentialFromStdin(text, agents = defaultAgents(), named) {
|
|
21
21
|
const value = (text ?? "").trim();
|
|
22
22
|
if (value === "") return void 0;
|
|
23
|
+
const owner = named === void 0 ? void 0 : runnerAgentNamed(named, agents);
|
|
24
|
+
if (owner !== void 0 && owner.descriptor.id !== credentialAgent(agents)?.descriptor.id) {
|
|
25
|
+
const variable = owner.credentials.identify(value);
|
|
26
|
+
if (variable !== void 0) return { variable, value };
|
|
27
|
+
throw new RunnerEnvError(`the value on stdin is not a credential ${owner.descriptor.label} takes, so nothing was written. ${owner.descriptor.label} needs ${orList(credentialShapes(owner.descriptor).map((shape) => `${shape.phrase}, which starts ${shape.starts}`))}. Pipe one value.`);
|
|
28
|
+
}
|
|
23
29
|
for (const agent2 of runnerAgents(agents)) {
|
|
24
30
|
const variable = agent2.credentials.identify(value);
|
|
25
31
|
if (variable !== void 0) return { variable, value };
|
|
@@ -28,14 +34,18 @@ function credentialFromStdin(text, agents = defaultAgents()) {
|
|
|
28
34
|
if (agent === void 0) throw new RunnerEnvError("no agent takes a credential on stdin, so nothing was written.");
|
|
29
35
|
throw new RunnerEnvError(`the value on stdin is not a ${credentialForms(agent.descriptor).label} credential, so nothing was written. Pipe one value: ${orList(credentialShapes(agent.descriptor).map((shape) => `${shape.phrase}, which starts ${shape.starts}`))}.`);
|
|
30
36
|
}
|
|
31
|
-
function setsCredential(path, agents) {
|
|
32
|
-
if (!existsSync(path)) return false;
|
|
33
|
-
const env = parseRunnerEnv(readFileSync(path, "utf8"));
|
|
34
|
-
return forwardedVariables(agents).some((name) => env[name]);
|
|
35
|
-
}
|
|
36
37
|
function hasStoredCredential(configPath, agents = defaultAgents()) {
|
|
38
|
+
return storedCredentialVariables(configPath, agents).length > 0;
|
|
39
|
+
}
|
|
40
|
+
function storedCredentialVariables(configPath, agents = defaultAgents()) {
|
|
37
41
|
const own = credentialEnvPath(configPath, agents);
|
|
38
|
-
|
|
42
|
+
const found = /* @__PURE__ */ new Set();
|
|
43
|
+
for (const path of [own, runnerEnvPath(configPath)]) {
|
|
44
|
+
if (path === void 0 || !existsSync(path)) continue;
|
|
45
|
+
const env = parseRunnerEnv(readFileSync(path, "utf8"));
|
|
46
|
+
for (const name of forwardedVariables(agents)) if (env[name]) found.add(name);
|
|
47
|
+
}
|
|
48
|
+
return [...found];
|
|
39
49
|
}
|
|
40
50
|
function replaceFile(path, text) {
|
|
41
51
|
const temporary = `${path}.${process.pid}.tmp`;
|
|
@@ -70,4 +80,4 @@ function restartForCredential(state, unitName = DEFAULT_UNIT_NAME, agents = defa
|
|
|
70
80
|
return `The service ${unitName} loads ${file} only when it starts. Restart it so it uses the stored credential: sudo systemctl restart ${unitName}`;
|
|
71
81
|
}
|
|
72
82
|
|
|
73
|
-
export { RunnerEnvError, credentialFromStdin, hasStoredCredential, isAgentName, restartForCredential, storeAgentCredential };
|
|
83
|
+
export { RunnerEnvError, credentialFromStdin, hasStoredCredential, isAgentName, restartForCredential, storeAgentCredential, storedCredentialVariables };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { detectActiveSession } from './chunk-
|
|
4
|
-
import { autoConnect } from './chunk-
|
|
3
|
+
import { detectActiveSession } from './chunk-DL5N6V3D.js';
|
|
4
|
+
import { autoConnect } from './chunk-XE2PXGZT.js';
|
|
5
5
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
6
|
-
import { defaultFetch, unauthorizedMessage, resolveGatewayCredentials } from './chunk-
|
|
6
|
+
import { defaultFetch, unauthorizedMessage, resolveGatewayCredentials } from './chunk-XDRZ3BNA.js';
|
|
7
7
|
import { parseWorkItemEnv } from './chunk-4OD45RBP.js';
|
|
8
8
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
9
9
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
10
|
-
import { resolveRepoIdentity } from './chunk-
|
|
10
|
+
import { resolveRepoIdentity } from './chunk-5R5FEPLH.js';
|
|
11
11
|
|
|
12
12
|
createRequire(import.meta.url);
|
|
13
13
|
|