@outerlayer/cli 0.8.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/{agent-setup-C7PLRXZO.js → agent-setup-K6RD2Z4P.js} +3 -3
- package/dist/build-info.json +1 -1
- package/dist/{builder-G52A6GW2.js → builder-IG6FNA54.js} +1 -1
- package/dist/{check-FOF3PUKI.js → check-GX5ND6RO.js} +16 -15
- package/dist/{chunk-5TNS3PL7.js → chunk-2BRSMBBB.js} +2 -1
- package/dist/{chunk-3S4P55NE.js → chunk-4FPWKV7L.js} +2 -2
- package/dist/{chunk-IJBVPLZZ.js → chunk-5ODHQP6O.js} +24 -139
- package/dist/{chunk-AIL2R4SI.js → chunk-BF4KKEFY.js} +3 -3
- package/dist/{chunk-5FWNEQNZ.js → chunk-BQFNZOMQ.js} +1 -1
- package/dist/{chunk-4A5E2G4E.js → chunk-HSN5QNS5.js} +4 -4
- package/dist/chunk-I2UOAV7X.js +133 -0
- package/dist/{chunk-OEK4JEB3.js → chunk-I7CJIRMM.js} +13 -3
- package/dist/{chunk-JPR2WHHF.js → chunk-KSLNQOOS.js} +1 -1
- package/dist/{chunk-5QLNZGAQ.js → chunk-KV47VQJZ.js} +3 -3
- package/dist/{chunk-CM5QTKM4.js → chunk-M4ERCYDB.js} +84 -19
- package/dist/{chunk-K35RW5HP.js → chunk-PXFEYBDE.js} +1 -1
- package/dist/{chunk-IRCBTGWF.js → chunk-Q4432IZT.js} +4 -4
- package/dist/{chunk-7VNURP6M.js → chunk-QB5JQH5V.js} +15 -12
- package/dist/{chunk-TUUMW4TC.js → chunk-QNRSFEGY.js} +1 -1
- package/dist/{chunk-U3GOI2B4.js → chunk-TEKZRTM3.js} +1 -1
- package/dist/{chunk-M5POMKKW.js → chunk-V7NIVOFD.js} +5 -5
- package/dist/{chunk-BCLJSQCV.js → chunk-YO4PSLVB.js} +1 -1
- package/dist/{chunk-NALVDFIS.js → chunk-Z2THOHPP.js} +2 -2
- package/dist/{cli-AOJPAVFX.js → cli-X5ONGYNY.js} +80 -56
- package/dist/{command-SY3SVLAI.js → command-7NFU3IPO.js} +14 -11
- package/dist/{context-adopt-CE4KDXS3.js → context-adopt-D2Z7F7PB.js} +3 -3
- package/dist/{context-materialize-QL33HDJN.js → context-materialize-4PMTDS6K.js} +3 -3
- package/dist/{docker-676FD3CQ.js → docker-PRHRSJM5.js} +2 -2
- package/dist/{doctor-WR6TRPSU.js → doctor-KALLPCRB.js} +10 -10
- package/dist/{emit-artifact-cmd-AVM4YXMQ.js → emit-artifact-cmd-D5GMVWNC.js} +4 -4
- package/dist/{emit-criteria-cmd-LDBE4YDS.js → emit-criteria-cmd-IE7VIM64.js} +2 -2
- package/dist/{emit-finding-cmd-6R5WBPCH.js → emit-finding-cmd-46PTPN3A.js} +2 -2
- package/dist/{emit-result-cmd-2DMN6O6U.js → emit-result-cmd-KXHHP6HX.js} +4 -4
- package/dist/{hook-fast-XBOZ3N6L.js → hook-fast-5H5QBJKT.js} +1 -1
- package/dist/{host-key-KDYZ5ECC.js → host-key-YMLXY6QB.js} +1 -1
- package/dist/index.js +3 -3
- package/dist/{init-R2FJ5KNS.js → init-B4CECVOX.js} +9 -9
- package/dist/{init-KDK5QLQZ.js → init-S4DH6PWW.js} +9 -9
- package/dist/{init-cmd-BYZYAJ5P.js → init-cmd-P4MVCBCZ.js} +5 -5
- package/dist/{install-cmd-DCF7TVXD.js → install-cmd-BEC7XTNG.js} +2 -1
- package/dist/{loop-AG3PLXPO.js → loop-ODMRE3CW.js} +16 -15
- package/dist/{machine-LV6WBRRK.js → machine-J4SAB3Z2.js} +8 -8
- package/dist/{mcp-serve-cmd-N6UD2KBX.js → mcp-serve-cmd-CT47P4YQ.js} +2 -2
- package/dist/{session-sender-Q5HAMOL2.js → session-sender-V46VPWQ5.js} +5 -5
- package/dist/{status-HH4OSOHR.js → status-QBKSH3QE.js} +11 -11
- package/dist/{sync-cmd-CAEPJR7B.js → sync-cmd-RJR77V4O.js} +4 -4
- package/dist/{watch-LAAZFBHH.js → watch-YNZTFLEY.js} +4 -4
- package/dist/{work-claim-cmd-ARIYZARE.js → work-claim-cmd-KAD3ZAH7.js} +4 -4
- package/dist/{work-cmd-B3FOXZAL.js → work-cmd-CNWPTH7W.js} +3 -3
- package/dist/{work-comment-cmd-O5WGRI6K.js → work-comment-cmd-HH45S6UE.js} +3 -3
- package/dist/{work-open-pr-cmd-M6CQW7KW.js → work-open-pr-cmd-5KR3KFCN.js} +4 -4
- package/dist/{work-pr-cmd-C4YEGKD6.js → work-pr-cmd-TTEGCP76.js} +3 -3
- package/package.json +2 -2
- package/skill-pack/maintained/amend/SKILL.md +22 -6
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { gatherDoctorChecks, doctorExitCode, summarizeChecks, renderDoctorText, recordWrapped, recordUnwrapped, recordRemoval, readManifest, recordInstall, recordStatusline } from './chunk-
|
|
3
|
+
import { gatherDoctorChecks, doctorExitCode, summarizeChecks, renderDoctorText, recordWrapped, recordUnwrapped, recordRemoval, readManifest, recordInstall, recordStatusline } from './chunk-HSN5QNS5.js';
|
|
4
4
|
import './chunk-F47JBIAW.js';
|
|
5
5
|
import './chunk-BKO6JEZI.js';
|
|
6
|
-
import './chunk-
|
|
6
|
+
import './chunk-KV47VQJZ.js';
|
|
7
7
|
import './chunk-4ACZCY4I.js';
|
|
8
8
|
import './chunk-BFESLKPP.js';
|
|
9
9
|
import './chunk-ILEA3YHM.js';
|
|
@@ -16,14 +16,14 @@ import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
|
16
16
|
import { settingsPath, readSettings, SettingsParseError, listHookCandidates, wrapHooks, writeSettings, unwrapHooks, REGISTERED_EVENTS, cliCommand, removeHooks, removeStatusline, cliBinResolvable, mergeHooks, repointWrappedHooks, AUTO_WRAP_EVENTS, mergeStatusline } from './chunk-5QRP3MVS.js';
|
|
17
17
|
import { pinExists } from './chunk-ZZXLM64C.js';
|
|
18
18
|
import './chunk-7ZR5UPMB.js';
|
|
19
|
-
import './chunk-
|
|
19
|
+
import './chunk-YO4PSLVB.js';
|
|
20
20
|
import './chunk-BOLTI6LR.js';
|
|
21
21
|
import './chunk-YNJEOGDL.js';
|
|
22
22
|
import './chunk-EABW6AJQ.js';
|
|
23
23
|
import { resolveVersion } from './chunk-RA3O54FC.js';
|
|
24
|
-
import './chunk-
|
|
24
|
+
import './chunk-V7NIVOFD.js';
|
|
25
25
|
import './chunk-ZM2IMMYN.js';
|
|
26
|
-
import { hookFiredMarkerPath, installedCliDistDir } from './chunk-
|
|
26
|
+
import { hookFiredMarkerPath, installedCliDistDir } from './chunk-KSLNQOOS.js';
|
|
27
27
|
import { managedHookScripts, removeJournalHooks, installPreCommitGuardHook, removePreCommitGuardHook } from './chunk-XCCLFVXM.js';
|
|
28
28
|
import './chunk-BJ3KTMDH.js';
|
|
29
29
|
import { homeFromEnv } from './chunk-VNVZDWO3.js';
|
|
@@ -3855,7 +3855,7 @@ function buildProgram(argv = process.argv) {
|
|
|
3855
3855
|
else process.stdout.write(outcome.text);
|
|
3856
3856
|
return;
|
|
3857
3857
|
}
|
|
3858
|
-
const { runInitCommand } = await import('./init-cmd-
|
|
3858
|
+
const { runInitCommand } = await import('./init-cmd-P4MVCBCZ.js');
|
|
3859
3859
|
const code = await runInitCommand(
|
|
3860
3860
|
{ json: opts.json, factory: opts.factory },
|
|
3861
3861
|
{
|
|
@@ -3867,7 +3867,7 @@ function buildProgram(argv = process.argv) {
|
|
|
3867
3867
|
return { ok, text, detail };
|
|
3868
3868
|
},
|
|
3869
3869
|
runAgentSetup: async () => {
|
|
3870
|
-
const { runAgentSetup } = await import('./agent-setup-
|
|
3870
|
+
const { runAgentSetup } = await import('./agent-setup-K6RD2Z4P.js');
|
|
3871
3871
|
return runAgentSetup({ cwd: process.cwd() });
|
|
3872
3872
|
},
|
|
3873
3873
|
runDoctorChecks: gatherDoctorChecks
|
|
@@ -3927,7 +3927,7 @@ function buildProgram(argv = process.argv) {
|
|
|
3927
3927
|
"\nIncremental: only sessions newer than the last checkpoint ship. The tier\nis applied on this machine before anything leaves it; `--dry-run` prints\nexactly what would. The hook-triggered background sync runs `--quiet`.\nExit 2 means the server rejected at least one session.\n"
|
|
3928
3928
|
).action(async (opts) => {
|
|
3929
3929
|
warnIfApiKeyFlag(opts);
|
|
3930
|
-
const { runSync, SyncConfigError, SyncTransportError } = await import('./sync-cmd-
|
|
3930
|
+
const { runSync, SyncConfigError, SyncTransportError } = await import('./sync-cmd-RJR77V4O.js');
|
|
3931
3931
|
try {
|
|
3932
3932
|
const result = await runSync({
|
|
3933
3933
|
url: opts.url,
|
|
@@ -3956,7 +3956,7 @@ function buildProgram(argv = process.argv) {
|
|
|
3956
3956
|
if (invokedCommandToken(argv) === "watch") {
|
|
3957
3957
|
warnDeprecated("`outerlayer watch` is now `outerlayer daemon`; the old name will be removed in a future release.");
|
|
3958
3958
|
}
|
|
3959
|
-
const { runWatch } = await import('./watch-
|
|
3959
|
+
const { runWatch } = await import('./watch-YNZTFLEY.js');
|
|
3960
3960
|
await runWatch({ once: opts.once });
|
|
3961
3961
|
});
|
|
3962
3962
|
program2.command("hook <event>", { hidden: true }).description("capture-hook fast path, installed by `init`").action(() => {
|
|
@@ -4010,7 +4010,7 @@ function buildProgram(argv = process.argv) {
|
|
|
4010
4010
|
}
|
|
4011
4011
|
});
|
|
4012
4012
|
program2.command("session-sender", { hidden: true }).description("stream a runner build's sessions to its work item while the build runs").action(async () => {
|
|
4013
|
-
const { runSessionSender } = await import('./session-sender-
|
|
4013
|
+
const { runSessionSender } = await import('./session-sender-V46VPWQ5.js');
|
|
4014
4014
|
try {
|
|
4015
4015
|
await runSessionSender();
|
|
4016
4016
|
} catch (err) {
|
|
@@ -4068,7 +4068,7 @@ function registerEmitCommands(program2) {
|
|
|
4068
4068
|
return;
|
|
4069
4069
|
}
|
|
4070
4070
|
warnIfApiKeyFlag(opts);
|
|
4071
|
-
const { runEmitResult, EmitResultError } = await import('./emit-result-cmd-
|
|
4071
|
+
const { runEmitResult, EmitResultError } = await import('./emit-result-cmd-KXHHP6HX.js');
|
|
4072
4072
|
try {
|
|
4073
4073
|
const result = await runEmitResult({
|
|
4074
4074
|
name,
|
|
@@ -4119,7 +4119,7 @@ locally so it never uploads. One correction can retire several duplicates.
|
|
|
4119
4119
|
`
|
|
4120
4120
|
).action(async (file, opts) => {
|
|
4121
4121
|
warnIfApiKeyFlag(opts);
|
|
4122
|
-
const { runEmitArtifact, EmitArtifactError } = await import('./emit-artifact-cmd-
|
|
4122
|
+
const { runEmitArtifact, EmitArtifactError } = await import('./emit-artifact-cmd-D5GMVWNC.js');
|
|
4123
4123
|
let pr;
|
|
4124
4124
|
if (opts.pr !== void 0) {
|
|
4125
4125
|
pr = parseTrackerNumber(opts.pr);
|
|
@@ -4154,7 +4154,7 @@ locally so it never uploads. One correction can retire several duplicates.
|
|
|
4154
4154
|
'\n outerlayer emit finding --id gate-skip --category tooling \\\n --title "The pre-push gate prints green when a step was skipped" \\\n --file scripts/git/pre-push-checks.mjs --where "build session"\n\nRecords one problem you hit in the factory: an instruction that is wrong or\nmissing (context), a flaky test, a misbehaving script (tooling), a local\nsetup trap (environment), a bug outside your own change (defect), or\nanything else. A problem in your own change is fixed, not recorded.\nA context finding needs --rule-path and --rule-relation, and --rule-quote\nunless the relation is missing.\n--item names the work item; without it, inside a recorded session, the\nitem that session was launched for is used automatically.\n'
|
|
4155
4155
|
).action(async (opts) => {
|
|
4156
4156
|
warnIfApiKeyFlag(opts);
|
|
4157
|
-
const { runEmitFinding, refuseRemovedFindingFlags, EmitFindingError } = await import('./emit-finding-cmd-
|
|
4157
|
+
const { runEmitFinding, refuseRemovedFindingFlags, EmitFindingError } = await import('./emit-finding-cmd-46PTPN3A.js');
|
|
4158
4158
|
try {
|
|
4159
4159
|
refuseRemovedFindingFlags(opts);
|
|
4160
4160
|
const result = await runEmitFinding({
|
|
@@ -4193,7 +4193,7 @@ locally so it never uploads. One correction can retire several duplicates.
|
|
|
4193
4193
|
"\n outerlayer emit findings review.json --item 412\n\nRecords a whole batch at once \u2014 a FindingBatch JSON file (schemaVersion,\noptional headSha / contextSourceSha, and 1-500 findings), validated against\nthe same contract `emit finding` uses before anything is sent. Re-emitting\nan id already on the item replaces that row rather than adding a second one.\n--item names the work item; without it, inside a recorded session, the item\nthat session was launched for is used automatically.\n"
|
|
4194
4194
|
).action(async (file, opts) => {
|
|
4195
4195
|
warnIfApiKeyFlag(opts);
|
|
4196
|
-
const { runEmitFindings, EmitFindingError } = await import('./emit-finding-cmd-
|
|
4196
|
+
const { runEmitFindings, EmitFindingError } = await import('./emit-finding-cmd-46PTPN3A.js');
|
|
4197
4197
|
try {
|
|
4198
4198
|
const result = await runEmitFindings({
|
|
4199
4199
|
file,
|
|
@@ -4217,7 +4217,7 @@ locally so it never uploads. One correction can retire several duplicates.
|
|
|
4217
4217
|
'\n outerlayer emit criteria criteria.json --item 412\n\nRecords the item\'s acceptance criteria as one list. The file is JSON:\n { "criteria": [ { "id": "AC-1", "text": "Given ...", "proof": null },\n { "id": "login.redirect", "text": "...", "proof": "screenshot" } ] }\nAn id is 1-64 characters of A-Z a-z 0-9 . _ : - and is the id evidence is bound to with\n`emit artifact --for`. proof is video, screenshot, report, log, test, file or null (any bound\nartifact proves it). The list holds 1 to 200 criteria, each text at most 2,000\ncharacters, and no id twice. The list is validated before anything is sent.\nOnce an item has a list, only a person can replace it: run the command outside an\nagent session, with your own login. A key bound to no member cannot replace it either.\n--item names the work item; without it, inside a recorded session, the item that\nsession was launched for is used automatically.\n'
|
|
4218
4218
|
).action(async (file, opts) => {
|
|
4219
4219
|
warnIfApiKeyFlag(opts);
|
|
4220
|
-
const { runEmitCriteria, EmitCriteriaError } = await import('./emit-criteria-cmd-
|
|
4220
|
+
const { runEmitCriteria, EmitCriteriaError } = await import('./emit-criteria-cmd-IE7VIM64.js');
|
|
4221
4221
|
try {
|
|
4222
4222
|
const result = await runEmitCriteria({
|
|
4223
4223
|
file,
|
|
@@ -4244,7 +4244,7 @@ function registerWorkCommands(program2) {
|
|
|
4244
4244
|
"\n outerlayer work build --issue 42 # a host builds it\n outerlayer work build --item 7 # retry an item already on Work\n outerlayer work build --issue 42 --local # you build it\n outerlayer work build --issue ENG-123 --tracker linear # a Linear issue\n\nWithout --local, records a build request: a host takes the item when it\nhas a free slot. It never links the calling session and never takes a\nlease, even run from inside one.\n\nWith --local, puts the item on Work with no build request, so no host\ntakes it, and prints the line that starts your session on it. That\nsession links itself and holds the item's lease while it works.\n"
|
|
4245
4245
|
).action(async (opts) => {
|
|
4246
4246
|
warnIfApiKeyFlag(opts);
|
|
4247
|
-
const { runWorkBuild, WorkCommandError } = await import('./work-cmd-
|
|
4247
|
+
const { runWorkBuild, WorkCommandError } = await import('./work-cmd-CNWPTH7W.js');
|
|
4248
4248
|
try {
|
|
4249
4249
|
await runWorkBuild(opts);
|
|
4250
4250
|
} catch (err) {
|
|
@@ -4260,7 +4260,7 @@ function registerWorkCommands(program2) {
|
|
|
4260
4260
|
"\n outerlayer work link-session 42\n\nNames an item that already exists on the calling session \u2014 it never\ncreates one. Create one with `outerlayer work build --local`. Linking\nthe same session to the same item twice is a no-op. Also takes or\nrenews that session's own 20-minute lease, unless --no-lease or\n--ended is given, or another worker already holds a live one.\n"
|
|
4261
4261
|
).action(async (number, opts) => {
|
|
4262
4262
|
warnIfApiKeyFlag(opts);
|
|
4263
|
-
const { runWorkLinkSession, WorkCommandError } = await import('./work-cmd-
|
|
4263
|
+
const { runWorkLinkSession, WorkCommandError } = await import('./work-cmd-CNWPTH7W.js');
|
|
4264
4264
|
try {
|
|
4265
4265
|
await runWorkLinkSession({ ...opts, number, noLease: opts.lease === false, logFailures: opts.logFailures === true });
|
|
4266
4266
|
} catch (err) {
|
|
@@ -4285,8 +4285,8 @@ most one action flag may be given.
|
|
|
4285
4285
|
`
|
|
4286
4286
|
).action(async (opts) => {
|
|
4287
4287
|
warnIfApiKeyFlag(opts);
|
|
4288
|
-
const { runWorkComment, WorkCommentCommandError } = await import('./work-comment-cmd-
|
|
4289
|
-
const { WorkCommandError } = await import('./work-cmd-
|
|
4288
|
+
const { runWorkComment, WorkCommentCommandError } = await import('./work-comment-cmd-HH45S6UE.js');
|
|
4289
|
+
const { WorkCommandError } = await import('./work-cmd-CNWPTH7W.js');
|
|
4290
4290
|
try {
|
|
4291
4291
|
await runWorkComment(opts);
|
|
4292
4292
|
} catch (err) {
|
|
@@ -4302,8 +4302,8 @@ most one action flag may be given.
|
|
|
4302
4302
|
"\n outerlayer work threads --item 7\n\nPrints the item's general thread, then one thread per acceptance\ncriterion that carries proof or a comment, each with who is waiting\non whom next.\n"
|
|
4303
4303
|
).action(async (opts) => {
|
|
4304
4304
|
warnIfApiKeyFlag(opts);
|
|
4305
|
-
const { runWorkThreads, WorkCommentCommandError } = await import('./work-comment-cmd-
|
|
4306
|
-
const { WorkCommandError } = await import('./work-cmd-
|
|
4305
|
+
const { runWorkThreads, WorkCommentCommandError } = await import('./work-comment-cmd-HH45S6UE.js');
|
|
4306
|
+
const { WorkCommandError } = await import('./work-cmd-CNWPTH7W.js');
|
|
4307
4307
|
try {
|
|
4308
4308
|
await runWorkThreads(opts);
|
|
4309
4309
|
} catch (err) {
|
|
@@ -4325,7 +4325,7 @@ live addition remains on it.
|
|
|
4325
4325
|
`
|
|
4326
4326
|
).action(async (opts) => {
|
|
4327
4327
|
warnIfApiKeyFlag(opts);
|
|
4328
|
-
const { runWorkRemove, WorkCommandError } = await import('./work-cmd-
|
|
4328
|
+
const { runWorkRemove, WorkCommandError } = await import('./work-cmd-CNWPTH7W.js');
|
|
4329
4329
|
try {
|
|
4330
4330
|
await runWorkRemove(opts);
|
|
4331
4331
|
} catch (err) {
|
|
@@ -4338,7 +4338,7 @@ live addition remains on it.
|
|
|
4338
4338
|
});
|
|
4339
4339
|
workCmd.command("status").description("Show one item's stage, gate ledger, and additions").option("--item <number>", "the item's number inside this factory").option("--issue <number>", "issue number").option("--repo <owner/name>", "repository (default: the current checkout's remote)").option("--json", "machine-readable JSON output").option("--url <url>", "cloud base URL (or OUTERLAYER_URL / config)").addOption(apiKeyOption()).option("--app-id <id>", "factory id the key is bound to (or OUTERLAYER_APP_ID / config)").action(async (opts) => {
|
|
4340
4340
|
warnIfApiKeyFlag(opts);
|
|
4341
|
-
const { runWorkStatus, WorkCommandError } = await import('./work-cmd-
|
|
4341
|
+
const { runWorkStatus, WorkCommandError } = await import('./work-cmd-CNWPTH7W.js');
|
|
4342
4342
|
try {
|
|
4343
4343
|
await runWorkStatus(opts);
|
|
4344
4344
|
} catch (err) {
|
|
@@ -4351,7 +4351,7 @@ live addition remains on it.
|
|
|
4351
4351
|
});
|
|
4352
4352
|
workCmd.command("list").description("List live work items for this factory").option("--stage <spec|build|review>", "filter by stage").option("--section <attention|waiting|flowing>", "filter by Queue section").option("--repo <owner/name>", "repository (default: the current checkout's remote)").option("--unclaimed", "only items with no live lease").option("--claimed", "only items with a live lease, held by a host or a local session").option("--startable", "only items with an unused build request and no live lease").option("--needs <amend>", "only items with a thread waiting on an agent").option("--json", "machine-readable JSON output").option("--url <url>", "cloud base URL (or OUTERLAYER_URL / config)").addOption(apiKeyOption()).option("--app-id <id>", "factory id the key is bound to (or OUTERLAYER_APP_ID / config)").action(async (opts) => {
|
|
4353
4353
|
warnIfApiKeyFlag(opts);
|
|
4354
|
-
const { runWorkList, WorkCommandError } = await import('./work-cmd-
|
|
4354
|
+
const { runWorkList, WorkCommandError } = await import('./work-cmd-CNWPTH7W.js');
|
|
4355
4355
|
try {
|
|
4356
4356
|
await runWorkList(opts);
|
|
4357
4357
|
} catch (err) {
|
|
@@ -4367,7 +4367,7 @@ live addition remains on it.
|
|
|
4367
4367
|
"\n outerlayer work claim --item 42 --kind implement\n\nRecords a lease for this host. A live lease already held by a\ndifferent host is refused; claiming again under the same host extends\nit.\n"
|
|
4368
4368
|
).action(async (opts) => {
|
|
4369
4369
|
warnIfApiKeyFlag(opts);
|
|
4370
|
-
const { runWorkClaim, WorkCommandError } = await import('./work-claim-cmd-
|
|
4370
|
+
const { runWorkClaim, WorkCommandError } = await import('./work-claim-cmd-KAD3ZAH7.js');
|
|
4371
4371
|
try {
|
|
4372
4372
|
await runWorkClaim(opts);
|
|
4373
4373
|
} catch (err) {
|
|
@@ -4383,7 +4383,7 @@ live addition remains on it.
|
|
|
4383
4383
|
"\n outerlayer work renew --item 42\n\nExtends this host's own live lease. Refused with a 410 if the lease\nhas expired, or a 403 if a different host holds it.\n"
|
|
4384
4384
|
).action(async (opts) => {
|
|
4385
4385
|
warnIfApiKeyFlag(opts);
|
|
4386
|
-
const { runWorkRenew, WorkCommandError } = await import('./work-claim-cmd-
|
|
4386
|
+
const { runWorkRenew, WorkCommandError } = await import('./work-claim-cmd-KAD3ZAH7.js');
|
|
4387
4387
|
try {
|
|
4388
4388
|
await runWorkRenew(opts);
|
|
4389
4389
|
} catch (err) {
|
|
@@ -4402,7 +4402,7 @@ live addition remains on it.
|
|
|
4402
4402
|
"\n outerlayer work release --item 42 --outcome ok\n\nMarks this host's lease released, optionally with an outcome.\nReleasing an already-released lease is a no-op that returns the\nrecorded release time and outcome.\n"
|
|
4403
4403
|
).action(async (opts) => {
|
|
4404
4404
|
warnIfApiKeyFlag(opts);
|
|
4405
|
-
const { runWorkRelease, WorkCommandError } = await import('./work-claim-cmd-
|
|
4405
|
+
const { runWorkRelease, WorkCommandError } = await import('./work-claim-cmd-KAD3ZAH7.js');
|
|
4406
4406
|
try {
|
|
4407
4407
|
await runWorkRelease(opts);
|
|
4408
4408
|
} catch (err) {
|
|
@@ -4418,7 +4418,7 @@ live addition remains on it.
|
|
|
4418
4418
|
"\n outerlayer work pr 481\n\nRun inside a session already on a work item. Records that pull\nrequest 481 in the checkout's repository belongs to that item \u2014 the\nsame fact a `pr-link` in the session's own transcript records on\nsync. Idempotent: declaring the same pull request twice is a no-op.\n"
|
|
4419
4419
|
).action(async (number, opts) => {
|
|
4420
4420
|
warnIfApiKeyFlag(opts);
|
|
4421
|
-
const { runWorkPr, WorkPrCommandError } = await import('./work-pr-cmd-
|
|
4421
|
+
const { runWorkPr, WorkPrCommandError } = await import('./work-pr-cmd-TTEGCP76.js');
|
|
4422
4422
|
try {
|
|
4423
4423
|
await runWorkPr({ ...opts, number });
|
|
4424
4424
|
} catch (err) {
|
|
@@ -4434,8 +4434,8 @@ live addition remains on it.
|
|
|
4434
4434
|
'\n outerlayer work open-pr --title "Add the thing" --body-file pr.md\n\nIn a host build, which holds an item key, the gateway opens the pull\nrequest as the factory\'s GitHub App, from the branch the claim named,\nor edits the one already open on that branch. No gh command runs.\nIn your own session it runs `gh pr create` (or `gh pr edit`) under your\nlogin, then declares the pull request on the item, as `work pr` does.\nRun it again after a change to the title or description.\n'
|
|
4435
4435
|
).action(async (opts) => {
|
|
4436
4436
|
warnIfApiKeyFlag(opts);
|
|
4437
|
-
const { runWorkOpenPr, WorkOpenPrCommandError } = await import('./work-open-pr-cmd-
|
|
4438
|
-
const { WorkCommandError } = await import('./work-cmd-
|
|
4437
|
+
const { runWorkOpenPr, WorkOpenPrCommandError } = await import('./work-open-pr-cmd-5KR3KFCN.js');
|
|
4438
|
+
const { WorkCommandError } = await import('./work-cmd-CNWPTH7W.js');
|
|
4439
4439
|
try {
|
|
4440
4440
|
await runWorkOpenPr(opts);
|
|
4441
4441
|
} catch (err) {
|
|
@@ -4452,7 +4452,7 @@ function registerRunnerCommands(program2) {
|
|
|
4452
4452
|
const configOption = "the cloud config file to run against (default: ~/.outerlayer/config.json)";
|
|
4453
4453
|
runnerCmd.command("start").description("Run the loop: claim work, run it, report, clean up, repeat").option("--config <path>", configOption).action(async (opts) => {
|
|
4454
4454
|
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-Z3USDBLU.js');
|
|
4455
|
-
const { start, RunnerStartError } = await import('./loop-
|
|
4455
|
+
const { start, RunnerStartError } = await import('./loop-ODMRE3CW.js');
|
|
4456
4456
|
const { RunnerAlreadyRunningError } = await import('./pidfile-UZRH774M.js');
|
|
4457
4457
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
4458
4458
|
try {
|
|
@@ -4468,7 +4468,7 @@ function registerRunnerCommands(program2) {
|
|
|
4468
4468
|
});
|
|
4469
4469
|
runnerCmd.command("check").description("Validate the config, the hooks and the key, and print the effective settings").option("--config <path>", configOption).action(async (opts) => {
|
|
4470
4470
|
const { defaultRunnerConfigPath } = await import('./config-Z3USDBLU.js');
|
|
4471
|
-
const { runRunnerCheck } = await import('./check-
|
|
4471
|
+
const { runRunnerCheck } = await import('./check-GX5ND6RO.js');
|
|
4472
4472
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
4473
4473
|
const result = await runRunnerCheck(configPath);
|
|
4474
4474
|
if (!result.ok) {
|
|
@@ -4483,9 +4483,9 @@ function registerRunnerCommands(program2) {
|
|
|
4483
4483
|
process.stdout.write(`${result.lines.join("\n")}
|
|
4484
4484
|
`);
|
|
4485
4485
|
});
|
|
4486
|
-
runnerCmd.command("install").description("Put this CLI in the runner's install layout; --service adds its service").option("--config <path>", configOption).option("--service", "set up the service that keeps the runner running").option("--print", "with --service, print the unit and set up nothing").option("--user <account>", "with --service, the account the service runs as").option("--replace", "replace a unit or launcher file this command did not write").addOption(new Option("--unit-name <name>", "with --service, the unit's name").hideHelp()).action(async (opts) => {
|
|
4486
|
+
runnerCmd.command("install").description("Put this CLI in the runner's install layout; --service adds its service").option("--config <path>", configOption).option("--service", "set up the service that keeps the runner running").option("--print", "with --service, print the unit and set up nothing").option("--user <account>", "with --service, the account the service runs as").option("--replace", "replace a unit or launcher file this command did not write").option("--allow-downgrade", "install this CLI even when it is older than the version the runner runs").addOption(new Option("--unit-name <name>", "with --service, the unit's name").hideHelp()).action(async (opts) => {
|
|
4487
4487
|
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-Z3USDBLU.js');
|
|
4488
|
-
const { runRunnerInstall, RunnerInstallError, launcherSummary } = await import('./install-cmd-
|
|
4488
|
+
const { runRunnerInstall, RunnerInstallError, launcherSummary } = await import('./install-cmd-BEC7XTNG.js');
|
|
4489
4489
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
4490
4490
|
if (opts.service !== true) {
|
|
4491
4491
|
for (const flag of ["print", "user", "unitName"]) {
|
|
@@ -4497,12 +4497,13 @@ function registerRunnerCommands(program2) {
|
|
|
4497
4497
|
}
|
|
4498
4498
|
try {
|
|
4499
4499
|
if (opts.service === true) {
|
|
4500
|
-
const { installServiceCommand } = await import('./command-
|
|
4500
|
+
const { installServiceCommand } = await import('./command-7NFU3IPO.js');
|
|
4501
4501
|
const result2 = await installServiceCommand({
|
|
4502
4502
|
configPath,
|
|
4503
4503
|
print: opts.print,
|
|
4504
4504
|
user: opts.user,
|
|
4505
4505
|
replace: opts.replace,
|
|
4506
|
+
allowDowngrade: opts.allowDowngrade,
|
|
4506
4507
|
unitName: opts.unitName,
|
|
4507
4508
|
entryPath: process.argv[1] ?? "",
|
|
4508
4509
|
nodePath: process.execPath,
|
|
@@ -4517,7 +4518,15 @@ function registerRunnerCommands(program2) {
|
|
|
4517
4518
|
} else fail(result2.lines.length > 0 ? result2.lines.join("\n ") : "the service was not set up");
|
|
4518
4519
|
return;
|
|
4519
4520
|
}
|
|
4520
|
-
const result = runRunnerInstall({
|
|
4521
|
+
const result = runRunnerInstall({
|
|
4522
|
+
configPath,
|
|
4523
|
+
entryPath: process.argv[1] ?? "",
|
|
4524
|
+
nodePath: process.execPath,
|
|
4525
|
+
home: homeFromEnv(),
|
|
4526
|
+
PATH: process.env.PATH,
|
|
4527
|
+
replace: opts.replace,
|
|
4528
|
+
allowDowngrade: opts.allowDowngrade
|
|
4529
|
+
});
|
|
4521
4530
|
process.stdout.write(`${C.green}\u2713${C.reset} installed ${result.version} for the runner; \`current\` names it
|
|
4522
4531
|
`);
|
|
4523
4532
|
printLauncher(result, launcherSummary);
|
|
@@ -4541,7 +4550,7 @@ To keep it running, run ${C.yellow}outerlayer runner install --service${C.reset}
|
|
|
4541
4550
|
return;
|
|
4542
4551
|
}
|
|
4543
4552
|
const { defaultRunnerConfigPath } = await import('./config-Z3USDBLU.js');
|
|
4544
|
-
const { uninstallServiceCommand } = await import('./command-
|
|
4553
|
+
const { uninstallServiceCommand } = await import('./command-7NFU3IPO.js');
|
|
4545
4554
|
const result = await uninstallServiceCommand({ configPath: opts.config ?? defaultRunnerConfigPath(), unitName: opts.unitName, home: homeFromEnv() });
|
|
4546
4555
|
if (result.ok) for (const line of result.lines) process.stdout.write(`${C.green}\u2713${C.reset} ${line}
|
|
4547
4556
|
`);
|
|
@@ -4549,9 +4558,9 @@ To keep it running, run ${C.yellow}outerlayer runner install --service${C.reset}
|
|
|
4549
4558
|
});
|
|
4550
4559
|
runnerCmd.command("init").description("Write a runner block that fits this machine; on macOS, offers a Linux VM").option("--config <path>", configOption).option("--vm", "on macOS, run the runner in a Linux VM (Lima), with container builds").option("--no-vm", "on macOS, skip the VM and run builds as unisolated processes").option("--allow-process-builds", "where builds cannot be isolated, run them as processes anyway").addOption(new Option("--config-stdin", "the VM-side hand-off: read the whole config as JSON on stdin").hideHelp()).addOption(new Option("--vm-cli-package <path>", "install this packed CLI tarball in the VM instead of the published version").hideHelp()).addOption(new Option("--unit-name <name>", "the service unit's name").hideHelp()).action(async (opts) => {
|
|
4551
4560
|
const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-Z3USDBLU.js');
|
|
4552
|
-
const { runRunnerInit, RunnerInitError } = await import('./init-
|
|
4553
|
-
const { detectMachine } = await import('./machine-
|
|
4554
|
-
const { chooseVm, runVmInit, VmInitError } = await import('./init-
|
|
4561
|
+
const { runRunnerInit, RunnerInitError } = await import('./init-S4DH6PWW.js');
|
|
4562
|
+
const { detectMachine } = await import('./machine-J4SAB3Z2.js');
|
|
4563
|
+
const { chooseVm, runVmInit, VmInitError } = await import('./init-B4CECVOX.js');
|
|
4555
4564
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
4556
4565
|
try {
|
|
4557
4566
|
const machine = detectMachine();
|
|
@@ -4559,7 +4568,7 @@ To keep it running, run ${C.yellow}outerlayer runner install --service${C.reset}
|
|
|
4559
4568
|
const chunks = [];
|
|
4560
4569
|
for await (const chunk of process.stdin) chunks.push(Buffer.from(chunk));
|
|
4561
4570
|
const result2 = runRunnerInit(configPath, { machine, configFromStdin: Buffer.concat(chunks).toString("utf8"), requireContainer: true });
|
|
4562
|
-
const { ensureHostKey: ensureHostKey2 } = await import('./host-key-
|
|
4571
|
+
const { ensureHostKey: ensureHostKey2 } = await import('./host-key-YMLXY6QB.js');
|
|
4563
4572
|
const hostKey2 = await ensureHostKey2(configPath);
|
|
4564
4573
|
process.stdout.write(`host key ${hostKey2.fingerprint}
|
|
4565
4574
|
hooks: ${result2.hooks}
|
|
@@ -4602,7 +4611,7 @@ hooks: ${result2.hooks}
|
|
|
4602
4611
|
}
|
|
4603
4612
|
const allowProcess = opts.allowProcessBuilds === true || machine.platform === "darwin" && declinedVm;
|
|
4604
4613
|
const result = runRunnerInit(configPath, { machine, allowProcess });
|
|
4605
|
-
const { ensureHostKey } = await import('./host-key-
|
|
4614
|
+
const { ensureHostKey } = await import('./host-key-YMLXY6QB.js');
|
|
4606
4615
|
const hostKey = await ensureHostKey(configPath);
|
|
4607
4616
|
process.stdout.write(`${C.green}\u2713${C.reset} wrote a runner block into ${result.configPath}
|
|
4608
4617
|
`);
|
|
@@ -4620,23 +4629,38 @@ ${C.yellow}${result.note}${C.reset}
|
|
|
4620
4629
|
To isolate builds in containers instead, run ${C.yellow}outerlayer runner init --vm${C.reset}.
|
|
4621
4630
|
`);
|
|
4622
4631
|
}
|
|
4623
|
-
const { runRunnerInstall, RunnerInstallError, launcherSummary } = await import('./install-cmd-
|
|
4632
|
+
const { runRunnerInstall, RunnerInstallError, RunnerDowngradeError, launcherSummary } = await import('./install-cmd-BEC7XTNG.js');
|
|
4624
4633
|
let installedLayout = false;
|
|
4634
|
+
let noService = "it starts the runner from the install layout, which needs a CLI installed with npm";
|
|
4625
4635
|
try {
|
|
4626
|
-
const installed = runRunnerInstall({
|
|
4636
|
+
const installed = runRunnerInstall({
|
|
4637
|
+
configPath,
|
|
4638
|
+
entryPath: process.argv[1] ?? "",
|
|
4639
|
+
nodePath: process.execPath,
|
|
4640
|
+
home: homeFromEnv(),
|
|
4641
|
+
PATH: process.env.PATH,
|
|
4642
|
+
command: "runner install --service"
|
|
4643
|
+
});
|
|
4627
4644
|
installedLayout = true;
|
|
4628
4645
|
process.stdout.write(`${C.green}\u2713${C.reset} installed ${installed.version} for the runner, so it can update itself
|
|
4629
4646
|
`);
|
|
4630
4647
|
printLauncher(installed, launcherSummary);
|
|
4631
4648
|
} catch (installErr) {
|
|
4632
4649
|
if (!(installErr instanceof RunnerInstallError)) throw installErr;
|
|
4633
|
-
|
|
4650
|
+
if (installErr instanceof RunnerDowngradeError) {
|
|
4651
|
+
noService = "the install layout was left as it is";
|
|
4652
|
+
process.stdout.write(`
|
|
4653
|
+
${C.yellow}The install layout was left alone: ${installErr.message}${C.reset}
|
|
4654
|
+
`);
|
|
4655
|
+
} else {
|
|
4656
|
+
process.stdout.write(`
|
|
4634
4657
|
${C.yellow}The runner will not update itself: ${installErr.message}${C.reset}
|
|
4635
4658
|
`);
|
|
4659
|
+
}
|
|
4636
4660
|
}
|
|
4637
4661
|
let serviceUp = false;
|
|
4638
4662
|
if (installedLayout) {
|
|
4639
|
-
const { installServiceCommand } = await import('./command-
|
|
4663
|
+
const { installServiceCommand } = await import('./command-7NFU3IPO.js');
|
|
4640
4664
|
const service = await installServiceCommand({
|
|
4641
4665
|
configPath,
|
|
4642
4666
|
entryPath: process.argv[1] ?? "",
|
|
@@ -4650,7 +4674,7 @@ ${C.yellow}The runner will not update itself: ${installErr.message}${C.reset}
|
|
|
4650
4674
|
` : `${C.yellow}${line}${C.reset}
|
|
4651
4675
|
`);
|
|
4652
4676
|
} else {
|
|
4653
|
-
process.stdout.write(`${C.yellow}No service was set up:
|
|
4677
|
+
process.stdout.write(`${C.yellow}No service was set up: ${noService}.${C.reset}
|
|
4654
4678
|
`);
|
|
4655
4679
|
}
|
|
4656
4680
|
process.stdout.write(
|
|
@@ -4677,8 +4701,8 @@ Next:
|
|
|
4677
4701
|
const { defaultRunnerConfigPath } = await import('./config-Z3USDBLU.js');
|
|
4678
4702
|
const { buildRepositoryImage, RecipeError } = await import('./build-MS34XEGN.js');
|
|
4679
4703
|
const { currentCliBuild } = await import('./cli-build-K56DK4DS.js');
|
|
4680
|
-
const { createDockerHost } = await import('./docker-
|
|
4681
|
-
const { builderSpec } = await import('./builder-
|
|
4704
|
+
const { createDockerHost } = await import('./docker-PRHRSJM5.js');
|
|
4705
|
+
const { builderSpec } = await import('./builder-IG6FNA54.js');
|
|
4682
4706
|
const { loadRunnerConfig } = await import('./config-Z3USDBLU.js');
|
|
4683
4707
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
4684
4708
|
const memory = (() => {
|
|
@@ -4741,15 +4765,15 @@ Next:
|
|
|
4741
4765
|
});
|
|
4742
4766
|
runnerCmd.command("stop").description("Take no more work; wait for running jobs to finish, then exit").option("--config <path>", "the cloud config file naming the runner to stop").option("--now", "end running jobs immediately, with outcome stopped").action(async (opts) => {
|
|
4743
4767
|
const { defaultRunnerConfigPath } = await import('./config-Z3USDBLU.js');
|
|
4744
|
-
const { requestStop } = await import('./loop-
|
|
4768
|
+
const { requestStop } = await import('./loop-ODMRE3CW.js');
|
|
4745
4769
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
4746
4770
|
await requestStop(configPath, Boolean(opts.now));
|
|
4747
4771
|
});
|
|
4748
4772
|
runnerCmd.command("status").description("List running jobs; with --recent, finished ones too").option("--config <path>", "the cloud config file naming the runner to inspect").option("--recent", "also list finished jobs, newest first, capped at 20").option("--json", "machine-readable JSON output").action(async (opts) => {
|
|
4749
4773
|
const { defaultRunnerConfigPath, loadRunnerConfig } = await import('./config-Z3USDBLU.js');
|
|
4750
4774
|
const { jobsDir, runnerDir } = await import('./paths-OYKMVYJP.js');
|
|
4751
|
-
const { listJobFiles, runnerProcessState } = await import('./loop-
|
|
4752
|
-
const { renderStatus } = await import('./status-
|
|
4775
|
+
const { listJobFiles, runnerProcessState } = await import('./loop-ODMRE3CW.js');
|
|
4776
|
+
const { renderStatus } = await import('./status-QBKSH3QE.js');
|
|
4753
4777
|
const { readHousekeepingRecord } = await import('./record-C43U4PKS.js');
|
|
4754
4778
|
const path2 = await import('path');
|
|
4755
4779
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
@@ -4801,7 +4825,7 @@ Next:
|
|
|
4801
4825
|
});
|
|
4802
4826
|
runnerCmd.command("logs").argument("<item>", "the work item's number in the factory").description("Print the newest attempt's log for one item").option("--config <path>", "the cloud config file naming the runner to inspect").option("-f, --follow", "keep printing as the log grows").action(async (itemArg, opts) => {
|
|
4803
4827
|
const { defaultRunnerConfigPath } = await import('./config-Z3USDBLU.js');
|
|
4804
|
-
const { listJobFiles } = await import('./loop-
|
|
4828
|
+
const { listJobFiles } = await import('./loop-ODMRE3CW.js');
|
|
4805
4829
|
const { newestAttempt, logPathFor, tail, RunnerLogsError } = await import('./logs-H55NWW4H.js');
|
|
4806
4830
|
const configPath = opts.config ?? defaultRunnerConfigPath();
|
|
4807
4831
|
const item = parseTrackerNumber(itemArg);
|
|
@@ -5047,7 +5071,7 @@ function registerMcpCommands(program2) {
|
|
|
5047
5071
|
"after",
|
|
5048
5072
|
"\nWhat the stdio .mcp.json entry spawns. Reads newline-delimited JSON-RPC 2.0 on\nstdin and writes responses on stdout. The API key comes from OUTERLAYER_API_KEY\nor ~/.outerlayer/config.json at start-up; with neither the command exits 1 and\nprints why, which the MCP client shows as the connect error.\n"
|
|
5049
5073
|
).action(async (opts) => {
|
|
5050
|
-
const { runMcpServe, handleMcpServeError } = await import('./mcp-serve-cmd-
|
|
5074
|
+
const { runMcpServe, handleMcpServeError } = await import('./mcp-serve-cmd-CT47P4YQ.js');
|
|
5051
5075
|
try {
|
|
5052
5076
|
await runMcpServe({ url: opts.url, appId: opts.appId });
|
|
5053
5077
|
} catch (err) {
|
|
@@ -5117,7 +5141,7 @@ function registerContextCommands(program2) {
|
|
|
5117
5141
|
await compileContext({ dir: opts.dir, check: opts.check, json: opts.json });
|
|
5118
5142
|
});
|
|
5119
5143
|
contextCmd.command("adopt <stagedDir>", { hidden: true }).description("Copy context the runner staged into this checkout (container builds)").option("--json", "machine-readable JSON output").action(async (stagedDir) => {
|
|
5120
|
-
const { runContextAdopt } = await import('./context-adopt-
|
|
5144
|
+
const { runContextAdopt } = await import('./context-adopt-D2Z7F7PB.js');
|
|
5121
5145
|
const { exitCode, stdout } = runContextAdopt(stagedDir, process.cwd());
|
|
5122
5146
|
process.stdout.write(stdout);
|
|
5123
5147
|
process.exitCode = exitCode;
|
|
@@ -5126,7 +5150,7 @@ function registerContextCommands(program2) {
|
|
|
5126
5150
|
"after",
|
|
5127
5151
|
"\nThe same flow SessionStart runs automatically, exposed for a manual retry or a\nfirst check outside a session. Writes AGENTS.md, .claude/**, and .outerlayer/**.\n"
|
|
5128
5152
|
).action(async (opts) => {
|
|
5129
|
-
const { materializeContext } = await import('./context-materialize-
|
|
5153
|
+
const { materializeContext } = await import('./context-materialize-4PMTDS6K.js');
|
|
5130
5154
|
const result = await materializeContext({ cwd: process.cwd(), sessionId: `manual-${Date.now()}` });
|
|
5131
5155
|
const output = formatContextMaterializeOutput(result);
|
|
5132
5156
|
if (output.exitCode !== void 0) process.exitCode = output.exitCode;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { runRunnerInstall, launcherSummary } from './chunk-
|
|
3
|
+
import { runRunnerInstall, launcherSummary } from './chunk-I7CJIRMM.js';
|
|
4
|
+
import './chunk-I2UOAV7X.js';
|
|
4
5
|
import { readJobFile } from './chunk-T6OIJQRT.js';
|
|
5
6
|
import './chunk-PTW6W5NR.js';
|
|
6
7
|
import { currentLink, execStartCommand } from './chunk-TI7B7UEO.js';
|
|
7
|
-
import { detectMachine } from './chunk-
|
|
8
|
-
import './chunk-
|
|
8
|
+
import { detectMachine } from './chunk-QNRSFEGY.js';
|
|
9
|
+
import './chunk-M4ERCYDB.js';
|
|
9
10
|
import { installService, uninstallService, realTaskScheduler } from './chunk-AX23QKHS.js';
|
|
10
11
|
import './chunk-FBTE2A2X.js';
|
|
11
12
|
import './chunk-JKIWMRFH.js';
|
|
@@ -14,13 +15,13 @@ import { writeLaunchAgent, launchAgentPath } from './chunk-LF6MLJCY.js';
|
|
|
14
15
|
import './chunk-TTNFGMHO.js';
|
|
15
16
|
import './chunk-N5FOE5PS.js';
|
|
16
17
|
import './chunk-OGFGZQA3.js';
|
|
17
|
-
import './chunk-
|
|
18
|
+
import './chunk-TEKZRTM3.js';
|
|
18
19
|
import './chunk-QOZKPLVJ.js';
|
|
19
|
-
import './chunk-
|
|
20
|
+
import './chunk-2BRSMBBB.js';
|
|
20
21
|
import './chunk-CX22S5BA.js';
|
|
21
22
|
import './chunk-ZOAEPWGL.js';
|
|
22
23
|
import './chunk-R7STSBLC.js';
|
|
23
|
-
import './chunk-
|
|
24
|
+
import './chunk-KV47VQJZ.js';
|
|
24
25
|
import './chunk-4ACZCY4I.js';
|
|
25
26
|
import './chunk-BFESLKPP.js';
|
|
26
27
|
import './chunk-ILEA3YHM.js';
|
|
@@ -35,17 +36,17 @@ import './chunk-7RQ73DLO.js';
|
|
|
35
36
|
import './chunk-OD2VTIHN.js';
|
|
36
37
|
import './chunk-HKMPVPO7.js';
|
|
37
38
|
import './chunk-WZBHBH3J.js';
|
|
38
|
-
import './chunk-
|
|
39
|
+
import './chunk-BQFNZOMQ.js';
|
|
39
40
|
import './chunk-ZJSNLVCE.js';
|
|
40
41
|
import './chunk-ZZXLM64C.js';
|
|
41
42
|
import './chunk-VXLJORHL.js';
|
|
42
43
|
import './chunk-7ZR5UPMB.js';
|
|
43
|
-
import './chunk-
|
|
44
|
+
import './chunk-YO4PSLVB.js';
|
|
44
45
|
import './chunk-BOLTI6LR.js';
|
|
45
46
|
import './chunk-YNJEOGDL.js';
|
|
46
47
|
import './chunk-EABW6AJQ.js';
|
|
47
48
|
import './chunk-RA3O54FC.js';
|
|
48
|
-
import './chunk-
|
|
49
|
+
import './chunk-V7NIVOFD.js';
|
|
49
50
|
import './chunk-ZM2IMMYN.js';
|
|
50
51
|
import './chunk-XCCLFVXM.js';
|
|
51
52
|
import './chunk-BJ3KTMDH.js';
|
|
@@ -142,7 +143,7 @@ function accountCannotStart(account, nodePath, entry, can) {
|
|
|
142
143
|
return void 0;
|
|
143
144
|
}
|
|
144
145
|
function vmArgs(input) {
|
|
145
|
-
return [...input.print === true ? ["--print"] : [], ...input.replace === true ? ["--replace"] : [], ...input.user === void 0 ? [] : ["--user", input.user], ...input.unitName === void 0 ? [] : ["--unit-name", input.unitName]];
|
|
146
|
+
return [...input.print === true ? ["--print"] : [], ...input.replace === true ? ["--replace"] : [], ...input.allowDowngrade === true ? ["--allow-downgrade"] : [], ...input.user === void 0 ? [] : ["--user", input.user], ...input.unitName === void 0 ? [] : ["--unit-name", input.unitName]];
|
|
146
147
|
}
|
|
147
148
|
async function installServiceCommand(input, deps = {}) {
|
|
148
149
|
const vm = runnerVmOf(input.configPath);
|
|
@@ -160,7 +161,9 @@ async function installServiceCommand(input, deps = {}) {
|
|
|
160
161
|
nodePath: input.nodePath,
|
|
161
162
|
home: input.home,
|
|
162
163
|
PATH: process.env.PATH,
|
|
163
|
-
replace: input.replace
|
|
164
|
+
replace: input.replace,
|
|
165
|
+
allowDowngrade: input.allowDowngrade,
|
|
166
|
+
command: "runner install --service"
|
|
164
167
|
});
|
|
165
168
|
launcherLines = [launcherSummary(installed.launcher)].filter((line) => line !== void 0);
|
|
166
169
|
launcherNotes = installed.launcher.notes;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { defaultGitRunner, hasSymlinkComponent } from './chunk-
|
|
3
|
+
import { defaultGitRunner, hasSymlinkComponent } from './chunk-BQFNZOMQ.js';
|
|
4
4
|
import './chunk-ZJSNLVCE.js';
|
|
5
5
|
import { writeContextManifest, writePinIfChanged, touchLastCheck, clearDegraded, writeSourceCache, SOURCE_CACHE_TTL_SUCCESS_MS, writeBuildHold } from './chunk-ZZXLM64C.js';
|
|
6
6
|
import './chunk-VXLJORHL.js';
|
|
7
7
|
import './chunk-7ZR5UPMB.js';
|
|
8
|
-
import './chunk-
|
|
8
|
+
import './chunk-YO4PSLVB.js';
|
|
9
9
|
import './chunk-BOLTI6LR.js';
|
|
10
10
|
import './chunk-YNJEOGDL.js';
|
|
11
11
|
import './chunk-EABW6AJQ.js';
|
|
12
12
|
import './chunk-RA3O54FC.js';
|
|
13
|
-
import './chunk-
|
|
13
|
+
import './chunk-V7NIVOFD.js';
|
|
14
14
|
import './chunk-ZM2IMMYN.js';
|
|
15
15
|
import { ensureContextExcludes, installPreCommitGuardInGitDir } from './chunk-XCCLFVXM.js';
|
|
16
16
|
import './chunk-BJ3KTMDH.js';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { defaultGitRunner, hasSymlinkComponent, materializeContext, parseOwnerRepo, parseRemoteHost, resolveGitCommonDir } from './chunk-
|
|
3
|
+
export { defaultGitRunner, hasSymlinkComponent, materializeContext, parseOwnerRepo, parseRemoteHost, resolveGitCommonDir } from './chunk-BQFNZOMQ.js';
|
|
4
4
|
import './chunk-ZJSNLVCE.js';
|
|
5
5
|
import './chunk-ZZXLM64C.js';
|
|
6
6
|
import './chunk-VXLJORHL.js';
|
|
7
7
|
import './chunk-7ZR5UPMB.js';
|
|
8
|
-
import './chunk-
|
|
8
|
+
import './chunk-YO4PSLVB.js';
|
|
9
9
|
import './chunk-BOLTI6LR.js';
|
|
10
10
|
import './chunk-YNJEOGDL.js';
|
|
11
11
|
import './chunk-EABW6AJQ.js';
|
|
12
12
|
import './chunk-RA3O54FC.js';
|
|
13
|
-
import './chunk-
|
|
13
|
+
import './chunk-V7NIVOFD.js';
|
|
14
14
|
import './chunk-ZM2IMMYN.js';
|
|
15
15
|
import './chunk-XCCLFVXM.js';
|
|
16
16
|
import './chunk-BJ3KTMDH.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { childEnvironment, createDockerHost, spawnRun } from './chunk-
|
|
3
|
+
export { childEnvironment, createDockerHost, spawnRun } from './chunk-TEKZRTM3.js';
|
|
4
4
|
import './chunk-QOZKPLVJ.js';
|
|
5
|
-
import './chunk-
|
|
5
|
+
import './chunk-2BRSMBBB.js';
|
|
6
6
|
import './chunk-CX22S5BA.js';
|
|
7
7
|
import './chunk-GAYWY4GI.js';
|
|
8
8
|
import './chunk-7RQ73DLO.js';
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { needsClaudeCredential, claudeCredentialCheck, missingPermissionOf, missingPermissionFix } from './chunk-
|
|
3
|
+
import { needsClaudeCredential, claudeCredentialCheck, missingPermissionOf, missingPermissionFix } from './chunk-Q4432IZT.js';
|
|
4
4
|
import { launcherCheck } from './chunk-PTW6W5NR.js';
|
|
5
5
|
import './chunk-TI7B7UEO.js';
|
|
6
6
|
import { freeBytes, formatBytes } from './chunk-YYYRBYWG.js';
|
|
7
7
|
import { RepoFilter } from './chunk-TBT347UY.js';
|
|
8
|
-
import './chunk-
|
|
9
|
-
import { detectMachine, supportsContainerBuilds, describeMachineDocker, reachDockerStep, supportsMicroVmBuilds, microVmArchSupported, microVmAssetsPinned } from './chunk-
|
|
10
|
-
import { MIN_ENGINE_MAJOR } from './chunk-
|
|
8
|
+
import './chunk-Z2THOHPP.js';
|
|
9
|
+
import { detectMachine, supportsContainerBuilds, describeMachineDocker, reachDockerStep, supportsMicroVmBuilds, microVmArchSupported, microVmAssetsPinned } from './chunk-QNRSFEGY.js';
|
|
10
|
+
import { MIN_ENGINE_MAJOR } from './chunk-M4ERCYDB.js';
|
|
11
11
|
import './chunk-TTNFGMHO.js';
|
|
12
12
|
import './chunk-N5FOE5PS.js';
|
|
13
13
|
import './chunk-OGFGZQA3.js';
|
|
14
|
-
import { resolveDevcontainerCli, spawnRun } from './chunk-
|
|
14
|
+
import { resolveDevcontainerCli, spawnRun } from './chunk-TEKZRTM3.js';
|
|
15
15
|
import { locateRecipe, assertBuildable, readRecipe, RecipeError } from './chunk-QOZKPLVJ.js';
|
|
16
|
-
import { buildxState } from './chunk-
|
|
16
|
+
import { buildxState } from './chunk-2BRSMBBB.js';
|
|
17
17
|
import { CLAUDE_CODE_VERSION } from './chunk-CX22S5BA.js';
|
|
18
18
|
import './chunk-ZOAEPWGL.js';
|
|
19
19
|
import './chunk-R7STSBLC.js';
|
|
20
|
-
import { getJson, WorkCommandError, signatureRefusalMessage } from './chunk-
|
|
20
|
+
import { getJson, WorkCommandError, signatureRefusalMessage } from './chunk-KV47VQJZ.js';
|
|
21
21
|
import './chunk-4ACZCY4I.js';
|
|
22
22
|
import './chunk-BFESLKPP.js';
|
|
23
23
|
import './chunk-ILEA3YHM.js';
|
|
@@ -32,17 +32,17 @@ import { parseSize } from './chunk-7RQ73DLO.js';
|
|
|
32
32
|
import './chunk-OD2VTIHN.js';
|
|
33
33
|
import './chunk-HKMPVPO7.js';
|
|
34
34
|
import './chunk-WZBHBH3J.js';
|
|
35
|
-
import { defaultGitRunner } from './chunk-
|
|
35
|
+
import { defaultGitRunner } from './chunk-BQFNZOMQ.js';
|
|
36
36
|
import './chunk-ZJSNLVCE.js';
|
|
37
37
|
import './chunk-ZZXLM64C.js';
|
|
38
38
|
import './chunk-VXLJORHL.js';
|
|
39
39
|
import './chunk-7ZR5UPMB.js';
|
|
40
|
-
import { defaultFetch } from './chunk-
|
|
40
|
+
import { defaultFetch } from './chunk-YO4PSLVB.js';
|
|
41
41
|
import './chunk-BOLTI6LR.js';
|
|
42
42
|
import './chunk-YNJEOGDL.js';
|
|
43
43
|
import './chunk-EABW6AJQ.js';
|
|
44
44
|
import './chunk-RA3O54FC.js';
|
|
45
|
-
import { loadHostKey } from './chunk-
|
|
45
|
+
import { loadHostKey } from './chunk-V7NIVOFD.js';
|
|
46
46
|
import { runnerDir, hostKeyPath } from './chunk-ZM2IMMYN.js';
|
|
47
47
|
import './chunk-XCCLFVXM.js';
|
|
48
48
|
import './chunk-BJ3KTMDH.js';
|