@outerlayer/cli 0.36.1-next.20261104133805 → 0.36.1-next.20261104143325
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/build-info.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"id":"2026-11-
|
|
1
|
+
{"id":"2026-11-04T14:40:41.137Z","root":"/home/runner/work/outerlayer/outerlayer","pkg":"outerlayer"}
|
|
@@ -5377,6 +5377,9 @@ them. It then prints the factory's API keys page, where you create a key with
|
|
|
5377
5377
|
the Runner preset, and asks you to paste it. Nothing is shown as you paste.
|
|
5378
5378
|
With no terminal to ask on, it stops and says what to put in the config file.
|
|
5379
5379
|
|
|
5380
|
+
On a terminal with no --agent, runner init asks which agent builds start, and then
|
|
5381
|
+
asks for its credential with nothing shown. Answer none to keep placeholder commands.
|
|
5382
|
+
|
|
5380
5383
|
With --agent ${words().runnerName}, the queue commands start ${words().agent} instead of the
|
|
5381
5384
|
placeholder, and ${words().possessive} credential is read from stdin: a token from
|
|
5382
5385
|
\`${words().setupCommand}\` (${words().starts[0]}...) or an API key (${words().starts[1]}...). It is
|
|
@@ -5399,21 +5402,34 @@ already in ${words().envFile} is used.
|
|
|
5399
5402
|
fail(`--agent ${opts.agent}: runner init writes commands for ${headlessNames().join(", ")}. For another agent, leave --agent out and edit runner.commands.`);
|
|
5400
5403
|
return;
|
|
5401
5404
|
}
|
|
5402
|
-
|
|
5405
|
+
let agent = opts.agent;
|
|
5403
5406
|
if (agent !== void 0 && opts.configStdin === true) {
|
|
5404
5407
|
fail("the VM-side hand-off names the agent in its config on stdin; pass no --agent with it.");
|
|
5405
5408
|
return;
|
|
5406
5409
|
}
|
|
5407
5410
|
try {
|
|
5411
|
+
const { agentCredentialText, credentialQuestion, initAgent, terminalQuestion } = await import('./init-agent-ZQICLASB.js');
|
|
5412
|
+
agent = await initAgent({
|
|
5413
|
+
flag: agent,
|
|
5414
|
+
handOff: opts.configStdin === true,
|
|
5415
|
+
isTTY: process.stdin.isTTY === true,
|
|
5416
|
+
ask: terminalQuestion(process.stdin, process.stdout)
|
|
5417
|
+
});
|
|
5408
5418
|
let credential;
|
|
5409
5419
|
if (agent !== void 0) {
|
|
5420
|
+
const chosen = agent;
|
|
5410
5421
|
const { readPipedKey } = await import('./login-browser-NUQQYH5J.js');
|
|
5411
|
-
|
|
5412
|
-
|
|
5422
|
+
const { terminalPrompt: terminalPrompt2 } = await import('./hidden-prompt-UXBFMQC5.js');
|
|
5423
|
+
const text = await agentCredentialText({
|
|
5424
|
+
isTTY: process.stdin.isTTY === true,
|
|
5425
|
+
readPiped: () => readPipedKey(process.stdin, {
|
|
5413
5426
|
onWaiting: () => process.stderr.write(`runner init is waiting for ${words().possessive} credential on stdin; close stdin to use the one already in ${words().envFile}
|
|
5414
5427
|
`)
|
|
5415
|
-
})
|
|
5416
|
-
|
|
5428
|
+
}),
|
|
5429
|
+
secretReader: terminalPrompt2,
|
|
5430
|
+
question: () => credentialQuestion(chosen)
|
|
5431
|
+
});
|
|
5432
|
+
credential = credentialFromStdin(text);
|
|
5417
5433
|
}
|
|
5418
5434
|
const machine = detectMachine();
|
|
5419
5435
|
if (opts.configStdin === true) {
|
package/dist/index.js
CHANGED
|
@@ -25,5 +25,5 @@ var { runSubcommand } = await import('./agent-subcommand-ASYEDGY2.js');
|
|
|
25
25
|
var launcherCode = await runSubcommand(argv);
|
|
26
26
|
if (launcherCode !== void 0) process.exit(launcherCode);
|
|
27
27
|
(await import('./hook-fast-J26JZG67.js')).recordLinkExitFailure(argv);
|
|
28
|
-
var { runCli } = await import('./cli-
|
|
28
|
+
var { runCli } = await import('./cli-UPBWBSZK.js');
|
|
29
29
|
await runCli(process.argv);
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire } from 'node:module';
|
|
3
|
+
import { RunnerInitError } from './chunk-GBTHXD74.js';
|
|
4
|
+
import './chunk-ZDFZWQUF.js';
|
|
5
|
+
import './chunk-2PGI6RDE.js';
|
|
6
|
+
import './chunk-I3LTIAOR.js';
|
|
7
|
+
import './chunk-ZEM4IRBH.js';
|
|
8
|
+
import './chunk-PCIWQUBH.js';
|
|
9
|
+
import './chunk-DU2QDWHB.js';
|
|
10
|
+
import './chunk-ULFMR5UJ.js';
|
|
11
|
+
import './chunk-V6VMFAKC.js';
|
|
12
|
+
import './chunk-3TEZYUG6.js';
|
|
13
|
+
import './chunk-R6CQLTRC.js';
|
|
14
|
+
import './chunk-3GHHGCNU.js';
|
|
15
|
+
import './chunk-WGC7UFRM.js';
|
|
16
|
+
import './chunk-ZVB57WI6.js';
|
|
17
|
+
import './chunk-UYCK4L43.js';
|
|
18
|
+
import './chunk-TQMI335S.js';
|
|
19
|
+
import './chunk-PDBYH3V5.js';
|
|
20
|
+
import './chunk-NN33FYXG.js';
|
|
21
|
+
import './chunk-DOSM5H4B.js';
|
|
22
|
+
import './chunk-C47K5UDL.js';
|
|
23
|
+
import './chunk-RTPGEOBA.js';
|
|
24
|
+
import './chunk-JBJTC3UU.js';
|
|
25
|
+
import './chunk-OGFGZQA3.js';
|
|
26
|
+
import './chunk-TYLXRXDY.js';
|
|
27
|
+
import './chunk-GXZTSNVW.js';
|
|
28
|
+
import './chunk-FFJHFOFD.js';
|
|
29
|
+
import './chunk-2BUZUDSH.js';
|
|
30
|
+
import './chunk-MA4ZUS4A.js';
|
|
31
|
+
import './chunk-3Z5KIYBR.js';
|
|
32
|
+
import './chunk-KNGCCNVO.js';
|
|
33
|
+
import './chunk-ALPMGHDV.js';
|
|
34
|
+
import './chunk-HNKGBQFA.js';
|
|
35
|
+
import './chunk-XGGXKR4M.js';
|
|
36
|
+
import './chunk-A72Q4LSP.js';
|
|
37
|
+
import './chunk-MFVANFEJ.js';
|
|
38
|
+
import './chunk-RJTFSUZI.js';
|
|
39
|
+
import './chunk-F3T5QJ24.js';
|
|
40
|
+
import './chunk-R6SOMMDQ.js';
|
|
41
|
+
import './chunk-A6RI6KTI.js';
|
|
42
|
+
import './chunk-A2LHHKTT.js';
|
|
43
|
+
import './chunk-2AM6Z5BP.js';
|
|
44
|
+
import './chunk-ULIDETYK.js';
|
|
45
|
+
import './chunk-2A5LRRGL.js';
|
|
46
|
+
import './chunk-KYFMMW65.js';
|
|
47
|
+
import './chunk-4PGTFUTY.js';
|
|
48
|
+
import './chunk-6C6WH6KL.js';
|
|
49
|
+
import './chunk-HWVMRETT.js';
|
|
50
|
+
import './chunk-UDX4B237.js';
|
|
51
|
+
import './chunk-KWOQTSSZ.js';
|
|
52
|
+
import './chunk-RFNETJEH.js';
|
|
53
|
+
import './chunk-EKPSKSEJ.js';
|
|
54
|
+
import './chunk-JXHN4E4Q.js';
|
|
55
|
+
import './chunk-545P7JY7.js';
|
|
56
|
+
import './chunk-OV4XTV5M.js';
|
|
57
|
+
import './chunk-BJ3KTMDH.js';
|
|
58
|
+
import './chunk-AWY7ORQ2.js';
|
|
59
|
+
import './chunk-BKO6JEZI.js';
|
|
60
|
+
import './chunk-NFZMENCY.js';
|
|
61
|
+
import './chunk-4OD45RBP.js';
|
|
62
|
+
import './chunk-WZBHBH3J.js';
|
|
63
|
+
import './chunk-FZKNTIOJ.js';
|
|
64
|
+
import './chunk-ZHQC43NH.js';
|
|
65
|
+
import './chunk-NKQL3LHK.js';
|
|
66
|
+
import './chunk-YQR6E6OV.js';
|
|
67
|
+
import './chunk-CJPTUU2E.js';
|
|
68
|
+
import { headlessNames, runnerAgentNamed, credentialForms, orList, credentialShapes } from './chunk-UN6X7TYJ.js';
|
|
69
|
+
import { defaultAgents } from './chunk-KQSRABR6.js';
|
|
70
|
+
import './chunk-WWTZLRPH.js';
|
|
71
|
+
import './chunk-QJKW4MKH.js';
|
|
72
|
+
import './chunk-CDDED64E.js';
|
|
73
|
+
import './chunk-RA3O54FC.js';
|
|
74
|
+
import './chunk-352DHUTP.js';
|
|
75
|
+
import './chunk-FGA3EXGJ.js';
|
|
76
|
+
import './chunk-WUKLQWGY.js';
|
|
77
|
+
import './chunk-Z5GEFMRW.js';
|
|
78
|
+
import { createInterface } from 'readline/promises';
|
|
79
|
+
|
|
80
|
+
createRequire(import.meta.url);
|
|
81
|
+
var NO_AGENT = "none";
|
|
82
|
+
var MAX_TRIES = 3;
|
|
83
|
+
async function chooseRunnerAgent(options) {
|
|
84
|
+
const names = headlessNames(options.agents ?? defaultAgents());
|
|
85
|
+
const first = names[0];
|
|
86
|
+
if (!options.isTTY || first === void 0) return void 0;
|
|
87
|
+
const choices = [...names, NO_AGENT].join(", ");
|
|
88
|
+
const question = `Which agent should builds start? ${choices} (${NO_AGENT} writes placeholder commands that you edit) [${first}] `;
|
|
89
|
+
for (let tries = 0; tries < MAX_TRIES; tries++) {
|
|
90
|
+
const answer = (await options.ask(question)).trim().toLowerCase();
|
|
91
|
+
if (answer === "") return first;
|
|
92
|
+
if (answer === NO_AGENT) return void 0;
|
|
93
|
+
if (names.includes(answer)) return answer;
|
|
94
|
+
}
|
|
95
|
+
throw new RunnerInitError(`no agent was chosen. Answer one of: ${choices}. Or pass --agent ${first}.`);
|
|
96
|
+
}
|
|
97
|
+
function credentialQuestion(agent, agents = defaultAgents()) {
|
|
98
|
+
const found = runnerAgentNamed(agent, agents);
|
|
99
|
+
if (found === void 0) throw new RunnerInitError(`${agent} takes no credential, so runner init cannot ask for one.`);
|
|
100
|
+
const forms = credentialForms(found.descriptor);
|
|
101
|
+
const kinds = orList(credentialShapes(found.descriptor).map((shape) => `${shape.phrase} (${shape.starts}...)`));
|
|
102
|
+
return `Paste ${kinds} for ${forms.label}. Nothing is shown. Press Enter to use the one already in ${forms.envFile}: `;
|
|
103
|
+
}
|
|
104
|
+
async function initAgent(options) {
|
|
105
|
+
if (options.flag !== void 0 || options.handOff) return options.flag;
|
|
106
|
+
return chooseRunnerAgent(options);
|
|
107
|
+
}
|
|
108
|
+
function terminalQuestion(input, output) {
|
|
109
|
+
return async (question) => {
|
|
110
|
+
const rl = createInterface({ input, output });
|
|
111
|
+
try {
|
|
112
|
+
return await rl.question(question);
|
|
113
|
+
} finally {
|
|
114
|
+
rl.close();
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
async function agentCredentialText(options) {
|
|
119
|
+
if (!options.isTTY) return options.readPiped();
|
|
120
|
+
const readSecret = options.secretReader();
|
|
121
|
+
return readSecret === void 0 ? null : readSecret(options.question());
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export { agentCredentialText, chooseRunnerAgent, credentialQuestion, initAgent, terminalQuestion };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@outerlayer/cli",
|
|
3
|
-
"version": "0.36.1-next.
|
|
3
|
+
"version": "0.36.1-next.20261104143325",
|
|
4
4
|
"description": "OuterLayer CLI — commands: init, claude, connect, doctor, login, logout, sync, daemon (alias: watch), emit, demo, findings, work, 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.",
|