@outerlayer/cli 0.41.1 → 0.42.0-next.20261119011332
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 +1 -1
- package/dist/{agent-setup-BJRTAU3H.js → agent-setup-RWS247BZ.js} +1 -1
- package/dist/build-info.json +1 -1
- package/dist/{caller-ZUQVRQMY.js → caller-WLYRCJKR.js} +1 -1
- package/dist/{check-YN3NMNHB.js → check-HABHY27Y.js} +7 -7
- package/dist/{chunk-7TDLQUJ5.js → chunk-BWDUZJ4K.js} +1 -1
- package/dist/chunk-CBSURJ2P.js +88 -0
- package/dist/{chunk-B2TOGQHU.js → chunk-CUPEP5D2.js} +3 -2
- package/dist/{chunk-F2FZG6FG.js → chunk-H7L6XTQQ.js} +1 -1
- package/dist/{chunk-ND6R4UHO.js → chunk-HNWNJ6QK.js} +1 -1
- package/dist/{chunk-QLHEU44A.js → chunk-HT6HMUC3.js} +1 -1
- package/dist/chunk-IMGBXZUX.js +41 -0
- package/dist/{chunk-UE6OJBU6.js → chunk-IOWXXJUM.js} +1 -1
- package/dist/{chunk-6XSVJ7O7.js → chunk-K476DEC7.js} +2 -2
- package/dist/{chunk-MI3YC7JL.js → chunk-M4V46N7A.js} +66 -9
- package/dist/{chunk-7CMRGY4Z.js → chunk-QHZZUINX.js} +1 -1
- package/dist/{chunk-SVALMZJU.js → chunk-UE6ZEQAL.js} +14 -10
- package/dist/{chunk-S3VUP7LF.js → chunk-V3T36H4O.js} +2 -2
- package/dist/{chunk-U74IJMMN.js → chunk-WXGEDDUO.js} +114 -30
- package/dist/{chunk-4JVYALPL.js → chunk-YPS6YOYK.js} +12 -8
- package/dist/{chunk-4GXROH35.js → chunk-ZN3RUNOZ.js} +5 -87
- package/dist/{cli-B7VPNSJB.js → cli-KDLYNUNH.js} +55 -38
- package/dist/{command-23WALNEO.js → command-GZJHU5QD.js} +4 -4
- package/dist/{container-start-ZWE4BSMK.js → container-start-R2C2UNL6.js} +5 -5
- package/dist/{doctor-N4USOXZL.js → doctor-D7B4Z7Y7.js} +5 -5
- package/dist/{fleet-readiness-6WFZ6DSU.js → fleet-readiness-452TASWD.js} +2 -1
- package/dist/{host-checks-QYSWXJHF.js → host-checks-SMVSA55L.js} +3 -3
- package/dist/index.js +1 -1
- package/dist/{init-OFLW5CQN.js → init-RWDQWHCW.js} +3 -3
- package/dist/{init-5XO6SUSS.js → init-ZCNI5SFB.js} +3 -3
- package/dist/{init-agent-K7GN7NAJ.js → init-agent-YGLQSRVI.js} +3 -3
- package/dist/{init-cmd-OEPA6SZX.js → init-cmd-N35UZUCM.js} +4 -3
- package/dist/{init-update-ZBCOQJEX.js → init-update-TKH2L4VO.js} +3 -2
- package/dist/{loop-6CVDHR4M.js → loop-YMGQKGIS.js} +7 -7
- package/dist/{machine-7SELY76I.js → machine-AFXMDA56.js} +3 -3
- package/dist/{runner-key-ZT6HBAUY.js → runner-key-H3CKD4UB.js} +3 -3
- package/dist/{setup-cmd-VFKTGD52.js → setup-cmd-IBGMGFMJ.js} +97 -13
- package/dist/{setup-wiring-MF3FYG4U.js → setup-wiring-O5SJZBTP.js} +19 -12
- package/dist/{status-XSXYRYU6.js → status-GC2RXFMJ.js} +3 -3
- package/dist/{update-steps-U6LUOXPF.js → update-steps-U7JDUYLU.js} +4 -4
- package/dist/{work-claim-cmd-BZ5RFKVN.js → work-claim-cmd-2WWN4XB7.js} +1 -1
- package/dist/{work-proofs-cmd-UXBOOBIG.js → work-proofs-cmd-EJPH5GY3.js} +1 -1
- package/dist/{work-proofs-record-BQOPO3NI.js → work-proofs-record-B25ZFR2P.js} +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,53 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { SETUP_BRANCH } from './chunk-
|
|
3
|
+
import { SETUP_BRANCH } from './chunk-M4V46N7A.js';
|
|
4
|
+
import { chooseSetupAgent, setupAgentProviders, setupAgentLabel, setupAgentLine } from './chunk-IMGBXZUX.js';
|
|
5
|
+
import './chunk-UE6ZEQAL.js';
|
|
6
|
+
import './chunk-BWDUZJ4K.js';
|
|
7
|
+
import './chunk-2QK7L3WV.js';
|
|
8
|
+
import './chunk-2PGI6RDE.js';
|
|
9
|
+
import './chunk-57MLWALQ.js';
|
|
10
|
+
import './chunk-ETBEMXPC.js';
|
|
11
|
+
import './chunk-OA6KYILO.js';
|
|
12
|
+
import './chunk-PIIVGKE6.js';
|
|
13
|
+
import './chunk-QZFQ6EWP.js';
|
|
14
|
+
import './chunk-AFU6UF34.js';
|
|
15
|
+
import './chunk-56KI5URJ.js';
|
|
16
|
+
import './chunk-C2PZOLN7.js';
|
|
17
|
+
import './chunk-B4XB5QFD.js';
|
|
18
|
+
import './chunk-NXYTICCS.js';
|
|
19
|
+
import './chunk-TQMI335S.js';
|
|
20
|
+
import './chunk-V3T36H4O.js';
|
|
21
|
+
import './chunk-NN33FYXG.js';
|
|
22
|
+
import './chunk-XETFYRKD.js';
|
|
23
|
+
import './chunk-CQKCNDPP.js';
|
|
24
|
+
import './chunk-NRR4YLHI.js';
|
|
25
|
+
import './chunk-JBJTC3UU.js';
|
|
26
|
+
import './chunk-OGFGZQA3.js';
|
|
27
|
+
import './chunk-GZRW2GPQ.js';
|
|
28
|
+
import './chunk-POI3MX4Q.js';
|
|
29
|
+
import './chunk-K2AHZ5CL.js';
|
|
30
|
+
import './chunk-FJGYU2EK.js';
|
|
31
|
+
import './chunk-ASAIS67T.js';
|
|
32
|
+
import './chunk-XGXGS54U.js';
|
|
33
|
+
import './chunk-EKJ37Z6K.js';
|
|
34
|
+
import './chunk-ZN3RUNOZ.js';
|
|
35
|
+
import './chunk-TRZOAT7E.js';
|
|
36
|
+
import './chunk-MYDYQUJD.js';
|
|
37
|
+
import './chunk-EYN62KZW.js';
|
|
38
|
+
import './chunk-7BBQ5ZIN.js';
|
|
39
|
+
import './chunk-B5ENFQHF.js';
|
|
4
40
|
import './chunk-7O37CF6M.js';
|
|
5
41
|
import { sanitizeTerminal } from './chunk-V3NMSDOC.js';
|
|
6
42
|
import './chunk-IEVG36GC.js';
|
|
7
43
|
import './chunk-GQADCHPA.js';
|
|
8
44
|
import './chunk-A2LHHKTT.js';
|
|
9
45
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
46
|
+
import './chunk-25SFFAJ5.js';
|
|
47
|
+
import './chunk-U5JYTRVM.js';
|
|
48
|
+
import './chunk-3ZE7ECW4.js';
|
|
49
|
+
import './chunk-A2WPWZJA.js';
|
|
50
|
+
import './chunk-67Z7CK3N.js';
|
|
10
51
|
import './chunk-E7HPIXAM.js';
|
|
11
52
|
import './chunk-HWVMRETT.js';
|
|
12
53
|
import './chunk-7A7IAQPB.js';
|
|
@@ -14,9 +55,20 @@ import './chunk-5PRVTL54.js';
|
|
|
14
55
|
import './chunk-GQZWTW3J.js';
|
|
15
56
|
import './chunk-B3VQVVSS.js';
|
|
16
57
|
import './chunk-KWGH7KQW.js';
|
|
58
|
+
import './chunk-A6EGNLXH.js';
|
|
59
|
+
import './chunk-545P7JY7.js';
|
|
60
|
+
import './chunk-LIPSGE6C.js';
|
|
17
61
|
import './chunk-BJ3KTMDH.js';
|
|
62
|
+
import './chunk-6ARIDREF.js';
|
|
63
|
+
import './chunk-BKO6JEZI.js';
|
|
18
64
|
import './chunk-Z7J7JWGF.js';
|
|
65
|
+
import './chunk-LGJ56FCM.js';
|
|
66
|
+
import './chunk-WZBHBH3J.js';
|
|
19
67
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
68
|
+
import './chunk-ZHQC43NH.js';
|
|
69
|
+
import './chunk-DZOOVU5A.js';
|
|
70
|
+
import './chunk-YQR6E6OV.js';
|
|
71
|
+
import './chunk-CJPTUU2E.js';
|
|
20
72
|
import './chunk-FMANPQZW.js';
|
|
21
73
|
import './chunk-MQ6SKVLA.js';
|
|
22
74
|
import './chunk-V3ZIIURQ.js';
|
|
@@ -44,8 +96,8 @@ var MARK = {
|
|
|
44
96
|
function again(flags) {
|
|
45
97
|
return `When the person says it is done, run \`${setupCommand(flags)}\` again.`;
|
|
46
98
|
}
|
|
47
|
-
function setupCommand(flags) {
|
|
48
|
-
return [
|
|
99
|
+
function setupCommand(flags, program = `${cliInvocation()} setup`) {
|
|
100
|
+
return [program, flags.factory ? `--factory ${flags.factory}` : "", flags.dashboard ? `--dashboard ${flags.dashboard}` : "", flags.agent ? `--agent ${flags.agent}` : ""].filter((part) => part !== "").join(" ");
|
|
49
101
|
}
|
|
50
102
|
function setupStepPage(workPage, step) {
|
|
51
103
|
return `${workPage}?step=${step}`;
|
|
@@ -77,7 +129,8 @@ function runnerSteps(machine, factory, workPage, agent) {
|
|
|
77
129
|
return steps;
|
|
78
130
|
}
|
|
79
131
|
async function runSetupCommand(flags, deps) {
|
|
80
|
-
const
|
|
132
|
+
const agent = chooseSetupAgent({ flag: flags.agent, configAgent: deps.configAgent(), sessionAgents: deps.sessionAgents() });
|
|
133
|
+
const report = { agent, steps: [], next: [], closing: "" };
|
|
81
134
|
const step = (id, state, line) => report.steps.push({ id, state, line });
|
|
82
135
|
const finish = (code) => {
|
|
83
136
|
print(flags, deps, report, code);
|
|
@@ -86,7 +139,7 @@ async function runSetupCommand(flags, deps) {
|
|
|
86
139
|
if (!deps.cliOnPath()) {
|
|
87
140
|
step("cli", "waiting", "The outerlayer command is not on the PATH");
|
|
88
141
|
report.next.push("Run `npm install -g @outerlayer/cli`. The hooks and skills that setup installs run the `outerlayer` command by name.");
|
|
89
|
-
report.closing = `Then run
|
|
142
|
+
report.closing = `Then run \`${setupCommand(flags, "outerlayer setup")}\`.`;
|
|
90
143
|
return finish(EXIT_WAITING);
|
|
91
144
|
}
|
|
92
145
|
const signedIn = await deps.signIn({ dashboard: flags.dashboard ?? deps.savedDashboard(), waitMs: SIGN_IN_WAIT_MS, openBrowser: flags.browser !== false });
|
|
@@ -105,7 +158,7 @@ async function runSetupCommand(flags, deps) {
|
|
|
105
158
|
}
|
|
106
159
|
step("sign-in", "done", signedIn.email === void 0 ? "Signed in" : `Signed in as ${sanitizeTerminal(signedIn.email)}`);
|
|
107
160
|
if (!deps.installed()) {
|
|
108
|
-
const init = await deps.init(flags.factory);
|
|
161
|
+
const init = await deps.init(flags.factory, agent.id);
|
|
109
162
|
if (!init.ok) {
|
|
110
163
|
if (init.connect.outcome !== "done") step("connect", "failed", `Could not connect the repository: ${sanitizeTerminal(init.connect.reason)}`);
|
|
111
164
|
else step("install", "failed", `Could not install OuterLayer: ${init.failures.map(sanitizeTerminal).join("; ")}`);
|
|
@@ -146,6 +199,11 @@ async function runSetupCommand(flags, deps) {
|
|
|
146
199
|
if (deps.git.currentBranch() === SETUP_BRANCH) {
|
|
147
200
|
report.next.push(`The setup is merged. Switch this checkout back to ${base}: git switch ${base} && git pull`);
|
|
148
201
|
}
|
|
202
|
+
} else if (merged !== null && merged !== false) {
|
|
203
|
+
step("merge", "failed", `${base} has the setup config but not the build skill, which every build needs`);
|
|
204
|
+
report.next.push(missingBuildSkillStep(merged, base));
|
|
205
|
+
report.closing = `Then run \`${setupCommand(flags)}\` again.`;
|
|
206
|
+
return finish(1);
|
|
149
207
|
} else if (flags.openPr) {
|
|
150
208
|
const opened = deps.git.openPullRequest(base, repository);
|
|
151
209
|
if (!opened.ok) {
|
|
@@ -155,7 +213,8 @@ async function runSetupCommand(flags, deps) {
|
|
|
155
213
|
return finish(1);
|
|
156
214
|
}
|
|
157
215
|
step("merge", "waiting", `Setup pushed to the ${SETUP_BRANCH} branch`);
|
|
158
|
-
report.next.push(
|
|
216
|
+
if (opened.forced !== void 0 && opened.forced.length > 0) report.next.push(forcedStep(opened.forced));
|
|
217
|
+
report.next.push(pullRequestStep(opened.url, opened.opened, base, opened.reason));
|
|
159
218
|
mergeWaiting = true;
|
|
160
219
|
} else if (deps.git.setupBranchPushed()) {
|
|
161
220
|
step("merge", "waiting", `Setup pull request waiting to merge into ${base}`);
|
|
@@ -173,11 +232,16 @@ async function runSetupCommand(flags, deps) {
|
|
|
173
232
|
const runner = await deps.runner();
|
|
174
233
|
let ready = runner.kind === "live";
|
|
175
234
|
if (runner.kind === "managed") {
|
|
176
|
-
|
|
235
|
+
const providers = setupAgentProviders(agent.id);
|
|
236
|
+
const keys = runner.keys.map((key) => ({ ...key, needed: providers.includes(key.provider) }));
|
|
237
|
+
const listed = keys.some((key) => key.needed);
|
|
238
|
+
ready = listed && modelKeysReady(keys);
|
|
177
239
|
if (ready) {
|
|
178
240
|
step("runner", "done", "The model key is set, so builds run on OuterLayer's managed runners");
|
|
241
|
+
} else if (!listed) {
|
|
242
|
+
step("runner", "waiting", `Could not ask whether the model key is set: the gateway listed no key for ${setupAgentLabel(agent.id)}`);
|
|
179
243
|
} else {
|
|
180
|
-
const missing = missingModelKeys(
|
|
244
|
+
const missing = missingModelKeys(keys);
|
|
181
245
|
for (const key of missing) step("runner", "waiting", `The ${sanitizeTerminal(key.label)} API key is not set (${sanitizeTerminal(key.variable)})`);
|
|
182
246
|
report.next.push(modelKeyStep(missing, deps.workPage(factory)));
|
|
183
247
|
}
|
|
@@ -206,22 +270,42 @@ function modelKeyStep(missing, workPage) {
|
|
|
206
270
|
Builds run on OuterLayer's managed runners, so there is no runner to start. Missing: ${names}.
|
|
207
271
|
The person types the key in step 3 of the panel. Do not ask for the key, and do not print or store it.`;
|
|
208
272
|
}
|
|
209
|
-
function pullRequestStep(url, opened, base) {
|
|
273
|
+
function pullRequestStep(url, opened, base, reason) {
|
|
210
274
|
if (url === void 0) return `Tell the person to open a pull request from the ${SETUP_BRANCH} branch into ${base} and merge it. Judges run only once the setup is on ${base}.`;
|
|
211
275
|
if (opened) return `Give the person the setup pull request to merge. Judges run only once the setup is on ${base}:
|
|
212
276
|
${url}`;
|
|
213
|
-
|
|
277
|
+
const why = reason === void 0 ? "" : `Setup could not open the pull request with gh. ${reason}
|
|
278
|
+
`;
|
|
279
|
+
return `${why}Give the person this link. They open the pull request there and merge it. Judges run only once the setup is on ${base}:
|
|
214
280
|
${url}`;
|
|
215
281
|
}
|
|
282
|
+
function forcedStep(forced) {
|
|
283
|
+
return "Tell the person that the setup commit holds these files although a .gitignore rule matches them. Builds need them, and once git tracks a file the rule no longer applies to it:\n" + forced.map((file) => ` ${sanitizeTerminal(file.path)} (${sanitizeTerminal(file.rule)})`).join("\n");
|
|
284
|
+
}
|
|
285
|
+
function missingBuildSkillStep(missing, base) {
|
|
286
|
+
return `${sanitizeTerminal(missing.path)} is not on ${base}: ${sanitizeTerminal(missing.reason)}. Every build loads it, so no build can start. Tell the person to run these commands, and to merge the commit into ${base}:
|
|
287
|
+
` + missing.commands.map((command) => ` ${sanitizeTerminal(command)}`).join("\n");
|
|
288
|
+
}
|
|
216
289
|
function print(flags, deps, report, code) {
|
|
217
290
|
if (flags.json) {
|
|
218
291
|
const status = code === 0 ? "done" : code === EXIT_WAITING ? "waiting" : "failed";
|
|
219
292
|
deps.stdout.write(
|
|
220
|
-
JSON.stringify(
|
|
293
|
+
JSON.stringify(
|
|
294
|
+
{
|
|
295
|
+
status,
|
|
296
|
+
...report.factory === void 0 ? {} : { factory: report.factory },
|
|
297
|
+
agent: report.agent,
|
|
298
|
+
steps: report.steps.map(({ id, state, line }) => ({ id, state, detail: line })),
|
|
299
|
+
next: report.next
|
|
300
|
+
},
|
|
301
|
+
null,
|
|
302
|
+
2
|
|
303
|
+
) + "\n"
|
|
221
304
|
);
|
|
222
305
|
return;
|
|
223
306
|
}
|
|
224
|
-
const lines = [`OuterLayer setup${report.factory === void 0 ? "" : ` \xB7 ${report.factory}`}
|
|
307
|
+
const lines = [`OuterLayer setup${report.factory === void 0 ? "" : ` \xB7 ${report.factory}`}`];
|
|
308
|
+
lines.push(setupAgentLine(report.agent, (agent) => setupCommand({ ...flags, agent })), "");
|
|
225
309
|
for (const s of report.steps) lines.push(`${MARK[s.state]} ${s.line}`);
|
|
226
310
|
if (report.next.length > 0) {
|
|
227
311
|
lines.push("", "Next");
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { runInitCommand } from './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import { runInitCommand } from './chunk-H7L6XTQQ.js';
|
|
4
|
+
import './chunk-CUPEP5D2.js';
|
|
5
5
|
import './chunk-CNEOUUPF.js';
|
|
6
6
|
import './chunk-UWRXRSCE.js';
|
|
7
|
-
import { currentBranch, openSetupPullRequest, setupPullRequestUrl, setupBranchPushed, setupMerged, setupBaseBranch, markSetupInstalled, setupInstalled } from './chunk-
|
|
8
|
-
import {
|
|
9
|
-
import './chunk-
|
|
7
|
+
import { currentBranch, openSetupPullRequest, setupPullRequestUrl, setupBranchPushed, setupMerged, setupBaseBranch, markSetupInstalled, setupInstalled } from './chunk-M4V46N7A.js';
|
|
8
|
+
import { sessionAgentsIn } from './chunk-IMGBXZUX.js';
|
|
9
|
+
import { detectMachine, supportsMicroVmBuilds, supportsContainerBuilds, reachDockerStep, describeMachineDocker } from './chunk-UE6ZEQAL.js';
|
|
10
|
+
import './chunk-BWDUZJ4K.js';
|
|
10
11
|
import './chunk-2QK7L3WV.js';
|
|
11
12
|
import './chunk-2PGI6RDE.js';
|
|
12
13
|
import './chunk-57MLWALQ.js';
|
|
@@ -20,7 +21,7 @@ import './chunk-C2PZOLN7.js';
|
|
|
20
21
|
import './chunk-B4XB5QFD.js';
|
|
21
22
|
import './chunk-NXYTICCS.js';
|
|
22
23
|
import './chunk-TQMI335S.js';
|
|
23
|
-
import './chunk-
|
|
24
|
+
import './chunk-V3T36H4O.js';
|
|
24
25
|
import './chunk-NN33FYXG.js';
|
|
25
26
|
import './chunk-XETFYRKD.js';
|
|
26
27
|
import './chunk-CQKCNDPP.js';
|
|
@@ -34,7 +35,8 @@ import './chunk-FJGYU2EK.js';
|
|
|
34
35
|
import './chunk-ASAIS67T.js';
|
|
35
36
|
import './chunk-XGXGS54U.js';
|
|
36
37
|
import './chunk-EKJ37Z6K.js';
|
|
37
|
-
import './chunk-
|
|
38
|
+
import './chunk-CBSURJ2P.js';
|
|
39
|
+
import './chunk-ZN3RUNOZ.js';
|
|
38
40
|
import { defaultRunnerConfigPath } from './chunk-TRZOAT7E.js';
|
|
39
41
|
import './chunk-MYDYQUJD.js';
|
|
40
42
|
import './chunk-EYN62KZW.js';
|
|
@@ -44,7 +46,7 @@ import './chunk-B5ENFQHF.js';
|
|
|
44
46
|
import './chunk-WHXF2MLU.js';
|
|
45
47
|
import { workPageUrl, runConnect, dashboardBase } from './chunk-7O37CF6M.js';
|
|
46
48
|
import { sanitizeTerminal } from './chunk-V3NMSDOC.js';
|
|
47
|
-
import './chunk-IEVG36GC.js';
|
|
49
|
+
import { readConfigObject } from './chunk-IEVG36GC.js';
|
|
48
50
|
import { setupSignIn, realLoginDeps } from './chunk-GQADCHPA.js';
|
|
49
51
|
import './chunk-A2LHHKTT.js';
|
|
50
52
|
import './chunk-2AM6Z5BP.js';
|
|
@@ -63,7 +65,7 @@ import './chunk-KWGH7KQW.js';
|
|
|
63
65
|
import './chunk-A6EGNLXH.js';
|
|
64
66
|
import './chunk-545P7JY7.js';
|
|
65
67
|
import './chunk-LIPSGE6C.js';
|
|
66
|
-
import './chunk-BJ3KTMDH.js';
|
|
68
|
+
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
67
69
|
import './chunk-6ARIDREF.js';
|
|
68
70
|
import './chunk-YWLRN4XV.js';
|
|
69
71
|
import './chunk-BKO6JEZI.js';
|
|
@@ -78,7 +80,7 @@ import './chunk-YQR6E6OV.js';
|
|
|
78
80
|
import './chunk-CJPTUU2E.js';
|
|
79
81
|
import './chunk-FMANPQZW.js';
|
|
80
82
|
import './chunk-MQ6SKVLA.js';
|
|
81
|
-
import './chunk-V3ZIIURQ.js';
|
|
83
|
+
import { defaultAgents } from './chunk-V3ZIIURQ.js';
|
|
82
84
|
import './chunk-DYKRQC4O.js';
|
|
83
85
|
import './chunk-7FAKHR6W.js';
|
|
84
86
|
import './chunk-VSBG7MMU.js';
|
|
@@ -197,7 +199,7 @@ function realSetupDeps(w) {
|
|
|
197
199
|
cliOnPath: () => commandOnPath("outerlayer"),
|
|
198
200
|
savedDashboard: () => dashboardBase(home),
|
|
199
201
|
signIn: (opts) => setupSignIn({ ...realLoginDeps(), home }, opts),
|
|
200
|
-
init: async (factory) => {
|
|
202
|
+
init: async (factory, agent) => {
|
|
201
203
|
await w.installMachineSkills();
|
|
202
204
|
let document = "";
|
|
203
205
|
await runInitCommand(
|
|
@@ -207,12 +209,17 @@ function realSetupDeps(w) {
|
|
|
207
209
|
stdout: { write: (chunk) => (document += chunk, true) },
|
|
208
210
|
stderr: { write: () => true },
|
|
209
211
|
runHooks: (hooksOpts) => w.installHooks(hooksOpts?.connected),
|
|
210
|
-
runAgentSetup: w.runAgentSetup,
|
|
212
|
+
runAgentSetup: () => w.runAgentSetup(agent),
|
|
211
213
|
runDoctorChecks: w.runDoctorChecks
|
|
212
214
|
}
|
|
213
215
|
);
|
|
214
216
|
return readInitOutcome(document);
|
|
215
217
|
},
|
|
218
|
+
configAgent: () => {
|
|
219
|
+
const dirs = findGitDirs(cwd);
|
|
220
|
+
return dirs === void 0 ? void 0 : readConfigObject(dirs.repoRoot)?.agent;
|
|
221
|
+
},
|
|
222
|
+
sessionAgents: () => sessionAgentsIn(w.env, defaultAgents()),
|
|
216
223
|
connect: async (factory) => runConnect({ factory }, await w.connectDeps()),
|
|
217
224
|
installed: () => setupInstalled(cwd),
|
|
218
225
|
markInstalled: () => markSetupInstalled(cwd, /* @__PURE__ */ new Date()),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { isReadable, LEASE_SECONDS, ALREADY_RELEASED, RENEW_INTERVAL_SECONDS } from './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import { isReadable, LEASE_SECONDS, ALREADY_RELEASED, RENEW_INTERVAL_SECONDS } from './chunk-UE6ZEQAL.js';
|
|
4
|
+
import './chunk-BWDUZJ4K.js';
|
|
5
5
|
import './chunk-2QK7L3WV.js';
|
|
6
6
|
import './chunk-2PGI6RDE.js';
|
|
7
7
|
import './chunk-57MLWALQ.js';
|
|
@@ -15,7 +15,7 @@ import './chunk-C2PZOLN7.js';
|
|
|
15
15
|
import { jobStateFormatOf } from './chunk-B4XB5QFD.js';
|
|
16
16
|
import { pullInstruction } from './chunk-NXYTICCS.js';
|
|
17
17
|
import './chunk-TQMI335S.js';
|
|
18
|
-
import './chunk-
|
|
18
|
+
import './chunk-V3T36H4O.js';
|
|
19
19
|
import './chunk-NN33FYXG.js';
|
|
20
20
|
import './chunk-XETFYRKD.js';
|
|
21
21
|
import './chunk-CQKCNDPP.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { readOwnContainer, renderUpdateSteps, runUpdateSteps } from './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
3
|
+
export { readOwnContainer, renderUpdateSteps, runUpdateSteps } from './chunk-IOWXXJUM.js';
|
|
4
|
+
import './chunk-UE6ZEQAL.js';
|
|
5
|
+
import './chunk-BWDUZJ4K.js';
|
|
6
6
|
import './chunk-2QK7L3WV.js';
|
|
7
7
|
import './chunk-2PGI6RDE.js';
|
|
8
8
|
import './chunk-57MLWALQ.js';
|
|
@@ -16,7 +16,7 @@ import './chunk-C2PZOLN7.js';
|
|
|
16
16
|
import './chunk-B4XB5QFD.js';
|
|
17
17
|
import './chunk-NXYTICCS.js';
|
|
18
18
|
import './chunk-TQMI335S.js';
|
|
19
|
-
import './chunk-
|
|
19
|
+
import './chunk-V3T36H4O.js';
|
|
20
20
|
import './chunk-NN33FYXG.js';
|
|
21
21
|
import './chunk-XETFYRKD.js';
|
|
22
22
|
import './chunk-CQKCNDPP.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RUNNER_PROTOCOL } from './chunk-
|
|
3
|
+
import { RUNNER_PROTOCOL } from './chunk-BWDUZJ4K.js';
|
|
4
4
|
import { resolveCredentials, WorkCommandError, parsePositiveInt, postJson, environmentFacts, findLiveItemForIssue } from './chunk-ASAIS67T.js';
|
|
5
5
|
export { WorkCommandError } from './chunk-ASAIS67T.js';
|
|
6
6
|
import './chunk-XGXGS54U.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { classifyProofs, classifyProofsAt, otherPullRequestHeads, renderProofRow, resolveProofsItem, runWorkProofs, runWorkProofsCommand } from './chunk-
|
|
3
|
+
export { classifyProofs, classifyProofsAt, otherPullRequestHeads, renderProofRow, resolveProofsItem, runWorkProofs, runWorkProofsCommand } from './chunk-K476DEC7.js';
|
|
4
4
|
import './chunk-2QK7L3WV.js';
|
|
5
5
|
import './chunk-ASAIS67T.js';
|
|
6
6
|
import './chunk-XGXGS54U.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { resolveProofsItem, ownPullRequest, otherPullRequestHeads, classifyProofsAt, runWorkProofs, proofsCommentId, testFilesOf, freshXmlFiles, joinResults, testSelectors, kindProblem, renderProofRow, proofsCommentBody } from './chunk-
|
|
3
|
+
import { resolveProofsItem, ownPullRequest, otherPullRequestHeads, classifyProofsAt, runWorkProofs, proofsCommentId, testFilesOf, freshXmlFiles, joinResults, testSelectors, kindProblem, renderProofRow, proofsCommentBody } from './chunk-K476DEC7.js';
|
|
4
4
|
import { runWorkComment } from './chunk-OTZ6WU4G.js';
|
|
5
5
|
import { runEmitDemo, planScreenshots, chapterPassed, readStill } from './chunk-IBWK2WBX.js';
|
|
6
6
|
import { readNewestDemo } from './chunk-ER6KQCVJ.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@outerlayer/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.42.0-next.20261119011332",
|
|
4
4
|
"description": "OuterLayer CLI — commands: setup, init, claude, opencode, codex, connect, doctor, login, logout, sync, daemon (alias: watch), emit, demo, findings, work, run, spec, runner, hooks, mcp, context. Capture and sync coding-agent sessions, and record proof of factory work.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Magu Studios, Inc.",
|