tenjin-cli 0.1.0-alpha.23 → 0.1.0-alpha.24
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/NOTICE.md +1 -1
- package/README.md +2 -7
- package/dist/{chunk-HTC4VJFT.js → chunk-EP5P2STS.js} +8 -11
- package/dist/chunk-EP5P2STS.js.map +1 -0
- package/dist/{chunk-F4IJQBGP.js → chunk-FFL5M5BC.js} +2 -2
- package/dist/{chunk-DHCOGDJB.js → chunk-GPLSNGKX.js} +4 -4
- package/dist/{chunk-Y3LKUXZA.js → chunk-H5UR3GFJ.js} +98 -14
- package/dist/chunk-H5UR3GFJ.js.map +1 -0
- package/dist/{chunk-K63HPLYT.js → chunk-IIE65SJC.js} +4 -4
- package/dist/{chunk-2RMXTNLT.js → chunk-KC24CYGV.js} +4 -4
- package/dist/{chunk-XBYTP4SP.js → chunk-NSDZESRS.js} +3 -3
- package/dist/{chunk-UGLTSPXQ.js → chunk-O2WN732M.js} +2 -2
- package/dist/{chunk-SAN5PFTL.js → chunk-P22ZWXFX.js} +1 -1
- package/dist/{chunk-SAN5PFTL.js.map → chunk-P22ZWXFX.js.map} +1 -1
- package/dist/{chunk-2QYORQBF.js → chunk-P7LABKCW.js} +36 -1
- package/dist/{chunk-2QYORQBF.js.map → chunk-P7LABKCW.js.map} +1 -1
- package/dist/{chunk-3IOS6YG6.js → chunk-RCJ64OXH.js} +3 -3
- package/dist/{chunk-6O6DFYF3.js → chunk-SQSKVKX6.js} +2 -2
- package/dist/{chunk-UHEMZEGW.js → chunk-TMLCEPCD.js} +2 -2
- package/dist/{chunk-YT7A7DLY.js → chunk-UBOFYC6J.js} +7 -7
- package/dist/{chunk-GONDQ27X.js → chunk-UXSF7IFD.js} +3 -3
- package/dist/{chunk-I2GBBIDI.js → chunk-W2ARIOAZ.js} +43 -27
- package/dist/chunk-W2ARIOAZ.js.map +1 -0
- package/dist/{chunk-N7A5EXJZ.js → chunk-XRW4N23F.js} +4 -4
- package/dist/{chunk-NYJCBQL5.js → chunk-XZUGRTSV.js} +2 -2
- package/dist/{chunk-A2XMQSWI.js → chunk-YXLG7Q6Q.js} +3 -3
- package/dist/{chunk-HJYI52HM.js → chunk-YZTIYDWU.js} +2 -2
- package/dist/{chunk-WXFVJPZD.js → chunk-ZMFDMALH.js} +2 -2
- package/dist/{chunk-RA2J3TWG.js → chunk-ZNZGBUV6.js} +11 -9
- package/dist/chunk-ZNZGBUV6.js.map +1 -0
- package/dist/{cli-MUYFTWWB.js → cli-GGNOQQEB.js} +28 -28
- package/dist/{cli-MUYFTWWB.js.map → cli-GGNOQQEB.js.map} +1 -1
- package/dist/{config-IIRRO3XC.js → config-XUUFICXK.js} +8 -8
- package/dist/{doctor-KGHM2CAC.js → doctor-3LGF6CWI.js} +16 -16
- package/dist/{fund-DOWIT3JT.js → fund-3URFMBMN.js} +9 -9
- package/dist/{hook-command-RDT754KQ.js → hook-command-GMIDXVFK.js} +28 -10
- package/dist/{hook-command-RDT754KQ.js.map → hook-command-GMIDXVFK.js.map} +1 -1
- package/dist/index.js +3 -3
- package/dist/{install-BYQUMYBN.js → install-FRTG4KHF.js} +11 -11
- package/dist/{install-identity-KTQPYVAO.js → install-identity-WNXSYP6N.js} +6 -6
- package/dist/{install-wallet-T737X74E.js → install-wallet-MXLJJP3N.js} +9 -9
- package/dist/{mcp-ZKOTURQN.js → mcp-O2WJ3QBW.js} +23 -33
- package/dist/{mcp-ZKOTURQN.js.map → mcp-O2WJ3QBW.js.map} +1 -1
- package/dist/{pay-LZPU2HUT.js → pay-43WUYTW5.js} +11 -11
- package/dist/{payments-26NVMFR2.js → payments-7UTMMTIO.js} +6 -6
- package/dist/{send-4RUBQQKP.js → send-ALHG2RXT.js} +8 -8
- package/dist/{status-CEHZKHBU.js → status-CFPNHB6R.js} +5 -5
- package/dist/{status-line-QRAO3Y2E.js → status-line-FJ6N7MKJ.js} +4 -4
- package/dist/{status-line-wiring-7D2CSV3K.js → status-line-wiring-GXFNXHPE.js} +4 -4
- package/dist/{uninstall-VR44B4KD.js → uninstall-5P2GFYBY.js} +11 -11
- package/dist/{update-SOYQLDBF.js → update-QJ5YHJ7I.js} +5 -5
- package/dist/{wallet-IB2EFAUP.js → wallet-6OJPGNEV.js} +8 -8
- package/docs/agent-permissions.md +5 -5
- package/docs/safety-model.md +10 -23
- package/package.json +10 -8
- package/dist/chunk-HTC4VJFT.js.map +0 -1
- package/dist/chunk-I2GBBIDI.js.map +0 -1
- package/dist/chunk-RA2J3TWG.js.map +0 -1
- package/dist/chunk-Y3LKUXZA.js.map +0 -1
- package/dist/tenjin-daemon.mjs +0 -20601
- package/dist/tenjin-shim.mjs +0 -251
- package/dist/tenjin-vitest-reporter.mjs +0 -49
- /package/dist/{chunk-F4IJQBGP.js.map → chunk-FFL5M5BC.js.map} +0 -0
- /package/dist/{chunk-DHCOGDJB.js.map → chunk-GPLSNGKX.js.map} +0 -0
- /package/dist/{chunk-K63HPLYT.js.map → chunk-IIE65SJC.js.map} +0 -0
- /package/dist/{chunk-2RMXTNLT.js.map → chunk-KC24CYGV.js.map} +0 -0
- /package/dist/{chunk-XBYTP4SP.js.map → chunk-NSDZESRS.js.map} +0 -0
- /package/dist/{chunk-UGLTSPXQ.js.map → chunk-O2WN732M.js.map} +0 -0
- /package/dist/{chunk-3IOS6YG6.js.map → chunk-RCJ64OXH.js.map} +0 -0
- /package/dist/{chunk-6O6DFYF3.js.map → chunk-SQSKVKX6.js.map} +0 -0
- /package/dist/{chunk-UHEMZEGW.js.map → chunk-TMLCEPCD.js.map} +0 -0
- /package/dist/{chunk-YT7A7DLY.js.map → chunk-UBOFYC6J.js.map} +0 -0
- /package/dist/{chunk-GONDQ27X.js.map → chunk-UXSF7IFD.js.map} +0 -0
- /package/dist/{chunk-N7A5EXJZ.js.map → chunk-XRW4N23F.js.map} +0 -0
- /package/dist/{chunk-NYJCBQL5.js.map → chunk-XZUGRTSV.js.map} +0 -0
- /package/dist/{chunk-A2XMQSWI.js.map → chunk-YXLG7Q6Q.js.map} +0 -0
- /package/dist/{chunk-HJYI52HM.js.map → chunk-YZTIYDWU.js.map} +0 -0
- /package/dist/{chunk-WXFVJPZD.js.map → chunk-ZMFDMALH.js.map} +0 -0
- /package/dist/{config-IIRRO3XC.js.map → config-XUUFICXK.js.map} +0 -0
- /package/dist/{doctor-KGHM2CAC.js.map → doctor-3LGF6CWI.js.map} +0 -0
- /package/dist/{fund-DOWIT3JT.js.map → fund-3URFMBMN.js.map} +0 -0
- /package/dist/{install-BYQUMYBN.js.map → install-FRTG4KHF.js.map} +0 -0
- /package/dist/{install-identity-KTQPYVAO.js.map → install-identity-WNXSYP6N.js.map} +0 -0
- /package/dist/{install-wallet-T737X74E.js.map → install-wallet-MXLJJP3N.js.map} +0 -0
- /package/dist/{pay-LZPU2HUT.js.map → pay-43WUYTW5.js.map} +0 -0
- /package/dist/{payments-26NVMFR2.js.map → payments-7UTMMTIO.js.map} +0 -0
- /package/dist/{send-4RUBQQKP.js.map → send-ALHG2RXT.js.map} +0 -0
- /package/dist/{status-CEHZKHBU.js.map → status-CFPNHB6R.js.map} +0 -0
- /package/dist/{status-line-QRAO3Y2E.js.map → status-line-FJ6N7MKJ.js.map} +0 -0
- /package/dist/{status-line-wiring-7D2CSV3K.js.map → status-line-wiring-GXFNXHPE.js.map} +0 -0
- /package/dist/{uninstall-VR44B4KD.js.map → uninstall-5P2GFYBY.js.map} +0 -0
- /package/dist/{update-SOYQLDBF.js.map → update-QJ5YHJ7I.js.map} +0 -0
- /package/dist/{wallet-IB2EFAUP.js.map → wallet-6OJPGNEV.js.map} +0 -0
|
@@ -34,6 +34,39 @@ function withInputEnd(streams, onEnd, run) {
|
|
|
34
34
|
function resolveStreams(streams) {
|
|
35
35
|
return { input: streams.input ?? process.stdin, output: streams.output ?? process.stderr };
|
|
36
36
|
}
|
|
37
|
+
async function selectOne(opts) {
|
|
38
|
+
const { select, isCancel } = await import("./dist-3LOO6M4U.js");
|
|
39
|
+
const streams = resolveStreams(opts.streams ?? {});
|
|
40
|
+
return withInputEnd(streams, null, async (signal) => {
|
|
41
|
+
const answer = await select({
|
|
42
|
+
message: opts.message,
|
|
43
|
+
options: opts.choices.map((c) => ({
|
|
44
|
+
value: c.value,
|
|
45
|
+
label: c.label,
|
|
46
|
+
...c.hint !== void 0 ? { hint: c.hint } : {}
|
|
47
|
+
})),
|
|
48
|
+
initialValue: opts.initialValue,
|
|
49
|
+
input: streams.input,
|
|
50
|
+
output: streams.output,
|
|
51
|
+
signal
|
|
52
|
+
});
|
|
53
|
+
return isCancel(answer) ? null : answer;
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
async function askText(opts) {
|
|
57
|
+
const { text, isCancel } = await import("./dist-3LOO6M4U.js");
|
|
58
|
+
const streams = resolveStreams(opts.streams ?? {});
|
|
59
|
+
return withInputEnd(streams, null, async (signal) => {
|
|
60
|
+
const answer = await text({
|
|
61
|
+
message: opts.message,
|
|
62
|
+
...opts.placeholder !== void 0 ? { placeholder: opts.placeholder } : {},
|
|
63
|
+
input: streams.input,
|
|
64
|
+
output: streams.output,
|
|
65
|
+
signal
|
|
66
|
+
});
|
|
67
|
+
return isCancel(answer) ? null : answer;
|
|
68
|
+
});
|
|
69
|
+
}
|
|
37
70
|
async function confirmChoice(message, initialValue = true, streams = {}) {
|
|
38
71
|
const { confirm, isCancel } = await import("./dist-3LOO6M4U.js");
|
|
39
72
|
const resolved = resolveStreams(streams);
|
|
@@ -50,6 +83,8 @@ async function confirmChoice(message, initialValue = true, streams = {}) {
|
|
|
50
83
|
}
|
|
51
84
|
|
|
52
85
|
export {
|
|
86
|
+
selectOne,
|
|
87
|
+
askText,
|
|
53
88
|
confirmChoice
|
|
54
89
|
};
|
|
55
|
-
//# sourceMappingURL=chunk-
|
|
90
|
+
//# sourceMappingURL=chunk-P7LABKCW.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/lib/clack.ts"],"sourcesContent":["import type { Readable, Writable } from 'node:stream';\n\n/**\n * The pretty-prompt renderer behind the install walkthrough's seams.\n *\n * @clack/prompts is a devDependency BUNDLED by tsup (published `dependencies`\n * stays `{}`), and every entry point here is behind a dynamic `import()` so it\n * lands in its own split chunk: a `search` or `doctor` run never parses it.\n *\n * Nothing in this module is reachable from a machine run. Commands call it only\n * on the real interactive path (a TTY on both stdout and stdin, no `--json`),\n * and always through an injectable seam, so unit tests supply answers directly\n * and never touch clack or a terminal.\n *\n * Prompts render on STDERR, like every other prompt in this CLI: stdout carries\n * the human walkthrough (or a single JSON envelope) and must not be interleaved\n * with prompt chrome.\n */\n\n/** Cancel (ctrl-C, escape) is not an answer. Callers map `null` to their own default. */\nexport type Cancelled = null;\n\nexport interface SelectChoice<T extends string> {\n value: T;\n label: string;\n /** The one line of consequence shown beside the label. */\n hint?: string;\n}\n\n/** Streams a prompt reads and draws on. Injected by tests; defaults to the real ones. */\ninterface PromptStreams {\n input?: Readable;\n output?: Writable;\n}\n\n/** DECTCUM show-cursor. Written on the EOF path in case the prompt did not get to. */\nconst SHOW_CURSOR = '\\x1b[?25h';\n\n/**\n * Settle a prompt when its input goes away instead of hanging forever.\n *\n * Ctrl-D at a clack prompt leaves its promise unsettled: no resolve, no reject,\n * no cancel symbol. The process then dies on an unsettled top-level await with\n * exit 13, nothing printed, and the cursor still hidden. The readline seam this\n * replaced handled it on purpose (\"ctrl-D mid-prompt reads as the default\"), and\n * that behavior has to survive the renderer swap.\n *\n * \"Input goes away\" is two different events, and only covering one of them was\n * the original bug:\n *\n * - The STREAM ends. A pipe closes, a harness detaches, stdin was already at\n * EOF. Caught via `end` / `close`.\n * - The ctrl-D BYTE (0x04) arrives with the stream still open. This is what a\n * real terminal sends, and it is the common case. A prompt puts stdin in raw\n * mode, where 0x04 is ordinary data rather than EOF, so no stream event ever\n * fires; clack has no binding for it and simply keeps waiting. Caught via the\n * `keypress` decoder readline installs, which is a read-only view of the same\n * bytes: listening there takes nothing away from the prompt, where a `data`\n * listener would risk flipping the stream to flowing before clack reads it.\n *\n * Two mechanisms settle it, because one of them is advisory. The AbortSignal is\n * clack's own teardown: it flips the prompt to `cancel`, which restores the\n * cursor and raw mode and resolves with the cancel symbol. The race is the\n * guarantee, for a prompt that is not yet listening or never settles anyway; on\n * that path we restore the cursor ourselves, since no prompt did.\n */\nfunction withInputEnd<T>(\n streams: Required<PromptStreams>,\n onEnd: T,\n run: (signal: AbortSignal) => Promise<T>,\n): Promise<T> {\n const controller = new AbortController();\n let settleEnd: (() => void) | undefined;\n const ended = new Promise<T>((resolve) => {\n settleEnd = () => {\n streams.output.write(SHOW_CURSOR);\n resolve(onEnd);\n };\n });\n\n const end = (): void => {\n controller.abort();\n settleEnd?.();\n };\n const onKeypress = (_text: string | undefined, key?: { name?: string; ctrl?: boolean }): void => {\n if (key?.ctrl === true && key.name === 'd') end();\n };\n\n streams.input.on('keypress', onKeypress);\n // A stream that finished before we got here never emits `end` again, so ask.\n if (streams.input.readableEnded) {\n queueMicrotask(end);\n } else {\n streams.input.once('end', end);\n streams.input.once('close', end);\n }\n\n return Promise.race([run(controller.signal), ended]).finally(() => {\n streams.input.off('keypress', onKeypress);\n streams.input.off('end', end);\n streams.input.off('close', end);\n });\n}\n\nfunction resolveStreams(streams: PromptStreams): Required<PromptStreams> {\n return { input: streams.input ?? process.stdin, output: streams.output ?? process.stderr };\n}\n\n/**\n * A single-choice list. Returns the chosen value, or `null` when the operator\n * cancelled or the input ended, both of which callers treat as \"leave everything\n * as it was\".\n */\nexport async function selectOne<T extends string>(opts: {\n message: string;\n choices: readonly SelectChoice<T>[];\n initialValue: T;\n streams?: PromptStreams;\n}): Promise<T | Cancelled> {\n const { select, isCancel } = await import('@clack/prompts');\n const streams = resolveStreams(opts.streams ?? {});\n return withInputEnd<T | Cancelled>(streams, null, async (signal) => {\n // Instantiated at `string`, not at `T`: clack's `Option<Value>` is a conditional\n // type that a generic `T extends string` cannot resolve. The values come from\n // this call's own choices, so narrowing the answer back is sound.\n const answer = await select<string>({\n message: opts.message,\n options: opts.choices.map((c) => ({\n value: c.value as string,\n label: c.label,\n ...(c.hint !== undefined ? { hint: c.hint } : {}),\n })),\n initialValue: opts.initialValue,\n input: streams.input,\n output: streams.output,\n signal,\n });\n return isCancel(answer) ? null : (answer as T);\n });\n}\n\n/** A multi-choice list. Returns the selected values, or `null` when cancelled. */\nexport async function selectMany<T extends string>(opts: {\n message: string;\n choices: readonly SelectChoice<T>[];\n initialValues: readonly T[];\n required?: boolean;\n streams?: PromptStreams;\n}): Promise<T[] | Cancelled> {\n const { multiselect, isCancel } = await import('@clack/prompts');\n const streams = resolveStreams(opts.streams ?? {});\n return withInputEnd<T[] | Cancelled>(streams, null, async (signal) => {\n const answer = await multiselect<string>({\n message: opts.message,\n options: opts.choices.map((c) => ({\n value: c.value as string,\n label: c.label,\n ...(c.hint !== undefined ? { hint: c.hint } : {}),\n })),\n initialValues: [...opts.initialValues] as string[],\n required: opts.required ?? true,\n input: streams.input,\n output: streams.output,\n signal,\n });\n return isCancel(answer) ? null : (answer as T[]);\n });\n}\n\n/** A yes/no confirm. Cancelling, or an input that ends, reads as no. */\nexport async function confirmChoice(\n message: string,\n initialValue = true,\n streams: PromptStreams = {},\n): Promise<boolean> {\n const { confirm, isCancel } = await import('@clack/prompts');\n const resolved = resolveStreams(streams);\n return withInputEnd<boolean>(resolved, false, async (signal) => {\n const answer = await confirm({\n message,\n initialValue,\n input: resolved.input,\n output: resolved.output,\n signal,\n });\n return isCancel(answer) ? false : answer;\n });\n}\n\n/** Open the walkthrough's prompt sequence with a title bar. */\nexport async function intro(message: string): Promise<void> {\n const clack = await import('@clack/prompts');\n clack.intro(message, { output: process.stderr });\n}\n\n/** Close it, so the last prompt is not left dangling above plain stdout lines. */\nexport async function outro(message: string): Promise<void> {\n const clack = await import('@clack/prompts');\n clack.outro(message, { output: process.stderr });\n}\n"],"mappings":";;;AAoCA,IAAM,cAAc;AA8BpB,SAAS,aACP,SACA,OACA,KACY;AACZ,QAAM,aAAa,IAAI,gBAAgB;AACvC,MAAI;AACJ,QAAM,QAAQ,IAAI,QAAW,CAAC,YAAY;AACxC,gBAAY,MAAM;AAChB,cAAQ,OAAO,MAAM,WAAW;AAChC,cAAQ,KAAK;AAAA,IACf;AAAA,EACF,CAAC;AAED,QAAM,MAAM,MAAY;AACtB,eAAW,MAAM;AACjB,gBAAY;AAAA,EACd;AACA,QAAM,aAAa,CAAC,OAA2B,QAAkD;AAC/F,QAAI,KAAK,SAAS,QAAQ,IAAI,SAAS,IAAK,KAAI;AAAA,EAClD;AAEA,UAAQ,MAAM,GAAG,YAAY,UAAU;AAEvC,MAAI,QAAQ,MAAM,eAAe;AAC/B,mBAAe,GAAG;AAAA,EACpB,OAAO;AACL,YAAQ,MAAM,KAAK,OAAO,GAAG;AAC7B,YAAQ,MAAM,KAAK,SAAS,GAAG;AAAA,EACjC;AAEA,SAAO,QAAQ,KAAK,CAAC,IAAI,WAAW,MAAM,GAAG,KAAK,CAAC,EAAE,QAAQ,MAAM;AACjE,YAAQ,MAAM,IAAI,YAAY,UAAU;AACxC,YAAQ,MAAM,IAAI,OAAO,GAAG;AAC5B,YAAQ,MAAM,IAAI,SAAS,GAAG;AAAA,EAChC,CAAC;AACH;AAEA,SAAS,eAAe,SAAiD;AACvE,SAAO,EAAE,OAAO,QAAQ,SAAS,QAAQ,OAAO,QAAQ,QAAQ,UAAU,QAAQ,OAAO;AAC3F;AAgEA,eAAsB,cACpB,SACA,eAAe,MACf,UAAyB,CAAC,GACR;AAClB,QAAM,EAAE,SAAS,SAAS,IAAI,MAAM,OAAO,oBAAgB;AAC3D,QAAM,WAAW,eAAe,OAAO;AACvC,SAAO,aAAsB,UAAU,OAAO,OAAO,WAAW;AAC9D,UAAM,SAAS,MAAM,QAAQ;AAAA,MAC3B;AAAA,MACA;AAAA,MACA,OAAO,SAAS;AAAA,MAChB,QAAQ,SAAS;AAAA,MACjB;AAAA,IACF,CAAC;AACD,WAAO,SAAS,MAAM,IAAI,QAAQ;AAAA,EACpC,CAAC;AACH;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/lib/clack.ts"],"sourcesContent":["import type { Readable, Writable } from 'node:stream';\n\n/**\n * The pretty-prompt renderer behind the install walkthrough's seams.\n *\n * @clack/prompts is a devDependency BUNDLED by tsup (published `dependencies`\n * stays `{}`), and every entry point here is behind a dynamic `import()` so it\n * lands in its own split chunk: a `search` or `doctor` run never parses it.\n *\n * Nothing in this module is reachable from a machine run. Commands call it only\n * on the real interactive path (a TTY on both stdout and stdin, no `--json`),\n * and always through an injectable seam, so unit tests supply answers directly\n * and never touch clack or a terminal.\n *\n * Prompts render on STDERR, like every other prompt in this CLI: stdout carries\n * the human walkthrough (or a single JSON envelope) and must not be interleaved\n * with prompt chrome.\n */\n\n/** Cancel (ctrl-C, escape) is not an answer. Callers map `null` to their own default. */\nexport type Cancelled = null;\n\nexport interface SelectChoice<T extends string> {\n value: T;\n label: string;\n /** The one line of consequence shown beside the label. */\n hint?: string;\n}\n\n/** Streams a prompt reads and draws on. Injected by tests; defaults to the real ones. */\ninterface PromptStreams {\n input?: Readable;\n output?: Writable;\n}\n\n/** DECTCUM show-cursor. Written on the EOF path in case the prompt did not get to. */\nconst SHOW_CURSOR = '\\x1b[?25h';\n\n/**\n * Settle a prompt when its input goes away instead of hanging forever.\n *\n * Ctrl-D at a clack prompt leaves its promise unsettled: no resolve, no reject,\n * no cancel symbol. The process then dies on an unsettled top-level await with\n * exit 13, nothing printed, and the cursor still hidden. The readline seam this\n * replaced handled it on purpose (\"ctrl-D mid-prompt reads as the default\"), and\n * that behavior has to survive the renderer swap.\n *\n * \"Input goes away\" is two different events, and only covering one of them was\n * the original bug:\n *\n * - The STREAM ends. A pipe closes, a harness detaches, stdin was already at\n * EOF. Caught via `end` / `close`.\n * - The ctrl-D BYTE (0x04) arrives with the stream still open. This is what a\n * real terminal sends, and it is the common case. A prompt puts stdin in raw\n * mode, where 0x04 is ordinary data rather than EOF, so no stream event ever\n * fires; clack has no binding for it and simply keeps waiting. Caught via the\n * `keypress` decoder readline installs, which is a read-only view of the same\n * bytes: listening there takes nothing away from the prompt, where a `data`\n * listener would risk flipping the stream to flowing before clack reads it.\n *\n * Two mechanisms settle it, because one of them is advisory. The AbortSignal is\n * clack's own teardown: it flips the prompt to `cancel`, which restores the\n * cursor and raw mode and resolves with the cancel symbol. The race is the\n * guarantee, for a prompt that is not yet listening or never settles anyway; on\n * that path we restore the cursor ourselves, since no prompt did.\n */\nfunction withInputEnd<T>(\n streams: Required<PromptStreams>,\n onEnd: T,\n run: (signal: AbortSignal) => Promise<T>,\n): Promise<T> {\n const controller = new AbortController();\n let settleEnd: (() => void) | undefined;\n const ended = new Promise<T>((resolve) => {\n settleEnd = () => {\n streams.output.write(SHOW_CURSOR);\n resolve(onEnd);\n };\n });\n\n const end = (): void => {\n controller.abort();\n settleEnd?.();\n };\n const onKeypress = (_text: string | undefined, key?: { name?: string; ctrl?: boolean }): void => {\n if (key?.ctrl === true && key.name === 'd') end();\n };\n\n streams.input.on('keypress', onKeypress);\n // A stream that finished before we got here never emits `end` again, so ask.\n if (streams.input.readableEnded) {\n queueMicrotask(end);\n } else {\n streams.input.once('end', end);\n streams.input.once('close', end);\n }\n\n return Promise.race([run(controller.signal), ended]).finally(() => {\n streams.input.off('keypress', onKeypress);\n streams.input.off('end', end);\n streams.input.off('close', end);\n });\n}\n\nfunction resolveStreams(streams: PromptStreams): Required<PromptStreams> {\n return { input: streams.input ?? process.stdin, output: streams.output ?? process.stderr };\n}\n\n/**\n * A single-choice list. Returns the chosen value, or `null` when the operator\n * cancelled or the input ended, both of which callers treat as \"leave everything\n * as it was\".\n */\nexport async function selectOne<T extends string>(opts: {\n message: string;\n choices: readonly SelectChoice<T>[];\n initialValue: T;\n streams?: PromptStreams;\n}): Promise<T | Cancelled> {\n const { select, isCancel } = await import('@clack/prompts');\n const streams = resolveStreams(opts.streams ?? {});\n return withInputEnd<T | Cancelled>(streams, null, async (signal) => {\n // Instantiated at `string`, not at `T`: clack's `Option<Value>` is a conditional\n // type that a generic `T extends string` cannot resolve. The values come from\n // this call's own choices, so narrowing the answer back is sound.\n const answer = await select<string>({\n message: opts.message,\n options: opts.choices.map((c) => ({\n value: c.value as string,\n label: c.label,\n ...(c.hint !== undefined ? { hint: c.hint } : {}),\n })),\n initialValue: opts.initialValue,\n input: streams.input,\n output: streams.output,\n signal,\n });\n return isCancel(answer) ? null : (answer as T);\n });\n}\n\n/** A multi-choice list. Returns the selected values, or `null` when cancelled. */\nexport async function selectMany<T extends string>(opts: {\n message: string;\n choices: readonly SelectChoice<T>[];\n initialValues: readonly T[];\n required?: boolean;\n streams?: PromptStreams;\n}): Promise<T[] | Cancelled> {\n const { multiselect, isCancel } = await import('@clack/prompts');\n const streams = resolveStreams(opts.streams ?? {});\n return withInputEnd<T[] | Cancelled>(streams, null, async (signal) => {\n const answer = await multiselect<string>({\n message: opts.message,\n options: opts.choices.map((c) => ({\n value: c.value as string,\n label: c.label,\n ...(c.hint !== undefined ? { hint: c.hint } : {}),\n })),\n initialValues: [...opts.initialValues] as string[],\n required: opts.required ?? true,\n input: streams.input,\n output: streams.output,\n signal,\n });\n return isCancel(answer) ? null : (answer as T[]);\n });\n}\n\n/** A one-line answer. Returns what was typed, or `null` when cancelled or the input ended. */\nexport async function askText(opts: {\n message: string;\n placeholder?: string;\n streams?: PromptStreams;\n}): Promise<string | Cancelled> {\n const { text, isCancel } = await import('@clack/prompts');\n const streams = resolveStreams(opts.streams ?? {});\n return withInputEnd<string | Cancelled>(streams, null, async (signal) => {\n const answer = await text({\n message: opts.message,\n ...(opts.placeholder !== undefined ? { placeholder: opts.placeholder } : {}),\n input: streams.input,\n output: streams.output,\n signal,\n });\n return isCancel(answer) ? null : answer;\n });\n}\n\n/** A yes/no confirm. Cancelling, or an input that ends, reads as no. */\nexport async function confirmChoice(\n message: string,\n initialValue = true,\n streams: PromptStreams = {},\n): Promise<boolean> {\n const { confirm, isCancel } = await import('@clack/prompts');\n const resolved = resolveStreams(streams);\n return withInputEnd<boolean>(resolved, false, async (signal) => {\n const answer = await confirm({\n message,\n initialValue,\n input: resolved.input,\n output: resolved.output,\n signal,\n });\n return isCancel(answer) ? false : answer;\n });\n}\n\n/** Open the walkthrough's prompt sequence with a title bar. */\nexport async function intro(message: string): Promise<void> {\n const clack = await import('@clack/prompts');\n clack.intro(message, { output: process.stderr });\n}\n\n/** Close it, so the last prompt is not left dangling above plain stdout lines. */\nexport async function outro(message: string): Promise<void> {\n const clack = await import('@clack/prompts');\n clack.outro(message, { output: process.stderr });\n}\n"],"mappings":";;;AAoCA,IAAM,cAAc;AA8BpB,SAAS,aACP,SACA,OACA,KACY;AACZ,QAAM,aAAa,IAAI,gBAAgB;AACvC,MAAI;AACJ,QAAM,QAAQ,IAAI,QAAW,CAAC,YAAY;AACxC,gBAAY,MAAM;AAChB,cAAQ,OAAO,MAAM,WAAW;AAChC,cAAQ,KAAK;AAAA,IACf;AAAA,EACF,CAAC;AAED,QAAM,MAAM,MAAY;AACtB,eAAW,MAAM;AACjB,gBAAY;AAAA,EACd;AACA,QAAM,aAAa,CAAC,OAA2B,QAAkD;AAC/F,QAAI,KAAK,SAAS,QAAQ,IAAI,SAAS,IAAK,KAAI;AAAA,EAClD;AAEA,UAAQ,MAAM,GAAG,YAAY,UAAU;AAEvC,MAAI,QAAQ,MAAM,eAAe;AAC/B,mBAAe,GAAG;AAAA,EACpB,OAAO;AACL,YAAQ,MAAM,KAAK,OAAO,GAAG;AAC7B,YAAQ,MAAM,KAAK,SAAS,GAAG;AAAA,EACjC;AAEA,SAAO,QAAQ,KAAK,CAAC,IAAI,WAAW,MAAM,GAAG,KAAK,CAAC,EAAE,QAAQ,MAAM;AACjE,YAAQ,MAAM,IAAI,YAAY,UAAU;AACxC,YAAQ,MAAM,IAAI,OAAO,GAAG;AAC5B,YAAQ,MAAM,IAAI,SAAS,GAAG;AAAA,EAChC,CAAC;AACH;AAEA,SAAS,eAAe,SAAiD;AACvE,SAAO,EAAE,OAAO,QAAQ,SAAS,QAAQ,OAAO,QAAQ,QAAQ,UAAU,QAAQ,OAAO;AAC3F;AAOA,eAAsB,UAA4B,MAKvB;AACzB,QAAM,EAAE,QAAQ,SAAS,IAAI,MAAM,OAAO,oBAAgB;AAC1D,QAAM,UAAU,eAAe,KAAK,WAAW,CAAC,CAAC;AACjD,SAAO,aAA4B,SAAS,MAAM,OAAO,WAAW;AAIlE,UAAM,SAAS,MAAM,OAAe;AAAA,MAClC,SAAS,KAAK;AAAA,MACd,SAAS,KAAK,QAAQ,IAAI,CAAC,OAAO;AAAA,QAChC,OAAO,EAAE;AAAA,QACT,OAAO,EAAE;AAAA,QACT,GAAI,EAAE,SAAS,SAAY,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;AAAA,MACjD,EAAE;AAAA,MACF,cAAc,KAAK;AAAA,MACnB,OAAO,QAAQ;AAAA,MACf,QAAQ,QAAQ;AAAA,MAChB;AAAA,IACF,CAAC;AACD,WAAO,SAAS,MAAM,IAAI,OAAQ;AAAA,EACpC,CAAC;AACH;AA+BA,eAAsB,QAAQ,MAIE;AAC9B,QAAM,EAAE,MAAM,SAAS,IAAI,MAAM,OAAO,oBAAgB;AACxD,QAAM,UAAU,eAAe,KAAK,WAAW,CAAC,CAAC;AACjD,SAAO,aAAiC,SAAS,MAAM,OAAO,WAAW;AACvE,UAAM,SAAS,MAAM,KAAK;AAAA,MACxB,SAAS,KAAK;AAAA,MACd,GAAI,KAAK,gBAAgB,SAAY,EAAE,aAAa,KAAK,YAAY,IAAI,CAAC;AAAA,MAC1E,OAAO,QAAQ;AAAA,MACf,QAAQ,QAAQ;AAAA,MAChB;AAAA,IACF,CAAC;AACD,WAAO,SAAS,MAAM,IAAI,OAAO;AAAA,EACnC,CAAC;AACH;AAGA,eAAsB,cACpB,SACA,eAAe,MACf,UAAyB,CAAC,GACR;AAClB,QAAM,EAAE,SAAS,SAAS,IAAI,MAAM,OAAO,oBAAgB;AAC3D,QAAM,WAAW,eAAe,OAAO;AACvC,SAAO,aAAsB,UAAU,OAAO,OAAO,WAAW;AAC9D,UAAM,SAAS,MAAM,QAAQ;AAAA,MAC3B;AAAA,MACA;AAAA,MACA,OAAO,SAAS;AAAA,MAChB,QAAQ,SAAS;AAAA,MACjB;AAAA,IACF,CAAC;AACD,WAAO,SAAS,MAAM,IAAI,QAAQ;AAAA,EACpC,CAAC;AACH;","names":[]}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createRequire as __tenjinCreateRequire } from 'node:module'; const require = __tenjinCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
PRODUCTION_ORIGIN
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-P22ZWXFX.js";
|
|
5
5
|
import {
|
|
6
6
|
package_default
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZNZGBUV6.js";
|
|
8
8
|
import {
|
|
9
9
|
CliError
|
|
10
10
|
} from "./chunk-JLEF5WHM.js";
|
|
@@ -288,4 +288,4 @@ export {
|
|
|
288
288
|
httpRequest,
|
|
289
289
|
fetchFailureToCliError
|
|
290
290
|
};
|
|
291
|
-
//# sourceMappingURL=chunk-
|
|
291
|
+
//# sourceMappingURL=chunk-RCJ64OXH.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as __tenjinCreateRequire } from 'node:module'; const require = __tenjinCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
package_default
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ZNZGBUV6.js";
|
|
5
5
|
import {
|
|
6
6
|
CliError,
|
|
7
7
|
HARNESSES,
|
|
@@ -1781,4 +1781,4 @@ export {
|
|
|
1781
1781
|
registeredHooks,
|
|
1782
1782
|
writeHooks
|
|
1783
1783
|
};
|
|
1784
|
-
//# sourceMappingURL=chunk-
|
|
1784
|
+
//# sourceMappingURL=chunk-SQSKVKX6.js.map
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
isSameDeployment,
|
|
12
12
|
loadRawConfig,
|
|
13
13
|
resolveSettings
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-P22ZWXFX.js";
|
|
15
15
|
import {
|
|
16
16
|
CliError
|
|
17
17
|
} from "./chunk-JLEF5WHM.js";
|
|
@@ -239,4 +239,4 @@ export {
|
|
|
239
239
|
ownedCandidates,
|
|
240
240
|
projectRoot
|
|
241
241
|
};
|
|
242
|
-
//# sourceMappingURL=chunk-
|
|
242
|
+
//# sourceMappingURL=chunk-TMLCEPCD.js.map
|
|
@@ -30,28 +30,28 @@ import {
|
|
|
30
30
|
} from "./chunk-LHHMV4GU.js";
|
|
31
31
|
import {
|
|
32
32
|
USDC_ADDRESS
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-FFL5M5BC.js";
|
|
34
34
|
import {
|
|
35
35
|
describeWallet,
|
|
36
36
|
resolveSpendAuthorizer,
|
|
37
37
|
resolveWalletProvider
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-GPLSNGKX.js";
|
|
39
39
|
import {
|
|
40
40
|
getAddress
|
|
41
41
|
} from "./chunk-EGELTSPU.js";
|
|
42
42
|
import {
|
|
43
43
|
sanitizeForTerminal
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-O2WN732M.js";
|
|
45
45
|
import {
|
|
46
46
|
mask
|
|
47
47
|
} from "./chunk-7QKHZQKW.js";
|
|
48
48
|
import {
|
|
49
49
|
fetchFailureToCliError,
|
|
50
50
|
httpRequest
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-RCJ64OXH.js";
|
|
52
52
|
import {
|
|
53
53
|
resolveContextSettings
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-TMLCEPCD.js";
|
|
55
55
|
import {
|
|
56
56
|
parseUsdToAtomic,
|
|
57
57
|
toMoney
|
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
external_exports,
|
|
61
61
|
isSameDeployment,
|
|
62
62
|
readUsdcBalanceWithFallback
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-P22ZWXFX.js";
|
|
64
64
|
import {
|
|
65
65
|
CliError
|
|
66
66
|
} from "./chunk-JLEF5WHM.js";
|
|
@@ -10624,4 +10624,4 @@ export {
|
|
|
10624
10624
|
paidLegTimeoutMs,
|
|
10625
10625
|
settlementTx
|
|
10626
10626
|
};
|
|
10627
|
-
//# sourceMappingURL=chunk-
|
|
10627
|
+
//# sourceMappingURL=chunk-UBOFYC6J.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-LAIZ2AQA.js";
|
|
5
5
|
import {
|
|
6
6
|
releaseUnchargedExposure
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-XZUGRTSV.js";
|
|
8
8
|
import {
|
|
9
9
|
mask
|
|
10
10
|
} from "./chunk-7QKHZQKW.js";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk-2I4QTOLB.js";
|
|
17
17
|
import {
|
|
18
18
|
USDC_ADDRESS
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-P22ZWXFX.js";
|
|
20
20
|
import {
|
|
21
21
|
writeFileAtomic
|
|
22
22
|
} from "./chunk-JLEF5WHM.js";
|
|
@@ -334,4 +334,4 @@ export {
|
|
|
334
334
|
writeAll,
|
|
335
335
|
createUniqueFile
|
|
336
336
|
};
|
|
337
|
-
//# sourceMappingURL=chunk-
|
|
337
|
+
//# sourceMappingURL=chunk-UXSF7IFD.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-A36LQPHV.js";
|
|
5
5
|
import {
|
|
6
6
|
confirmChoice
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-P7LABKCW.js";
|
|
8
8
|
import {
|
|
9
9
|
LockTimeoutError,
|
|
10
10
|
withFileLock
|
|
@@ -13,14 +13,14 @@ import {
|
|
|
13
13
|
projectRouterPath,
|
|
14
14
|
readProjectRouterFile,
|
|
15
15
|
routerSettings
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-NSDZESRS.js";
|
|
17
17
|
import {
|
|
18
18
|
hasCode
|
|
19
19
|
} from "./chunk-2I4QTOLB.js";
|
|
20
20
|
import {
|
|
21
21
|
isTeamShelfOrigin,
|
|
22
22
|
loadProjectConfig
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-TMLCEPCD.js";
|
|
24
24
|
import {
|
|
25
25
|
parseUsdToAtomic,
|
|
26
26
|
toMoney
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
parseUpdateModeFlag,
|
|
49
49
|
resolveSettings,
|
|
50
50
|
retiredPaymentKeys
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-P22ZWXFX.js";
|
|
52
52
|
import {
|
|
53
53
|
ADAPTERS,
|
|
54
54
|
MODE_GATED_RULES,
|
|
@@ -56,7 +56,7 @@ import {
|
|
|
56
56
|
registeredHooks,
|
|
57
57
|
retractModeGatedRules,
|
|
58
58
|
wireFreeVerbAllowlist
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-SQSKVKX6.js";
|
|
60
60
|
import {
|
|
61
61
|
CliError,
|
|
62
62
|
writeFileAtomic
|
|
@@ -81,9 +81,19 @@ import { dirname, join } from "node:path";
|
|
|
81
81
|
var SKILL_NAMES = ["tenjin-search", "tenjin-publish", "tenjin"];
|
|
82
82
|
var RETIRED_SKILL_NAMES = ["tenjin-pay"];
|
|
83
83
|
var PACKAGED_SKILL_NAMES = [...SKILL_NAMES];
|
|
84
|
+
var SHIPPED_SKILL_FILES = {
|
|
85
|
+
"tenjin-search": ["SKILL.md", "references/permissions.md"],
|
|
86
|
+
"tenjin-publish": ["SKILL.md", "references/maintain.md"],
|
|
87
|
+
tenjin: ["SKILL.md"],
|
|
88
|
+
"tenjin-pay": ["SKILL.md"]
|
|
89
|
+
};
|
|
84
90
|
var SENTINEL = join("tenjin", "SKILL.md");
|
|
85
91
|
|
|
86
92
|
// src/lib/skill-wiring.ts
|
|
93
|
+
var CLI_SKILL_NAMES = [
|
|
94
|
+
"tenjin-search",
|
|
95
|
+
"tenjin-publish"
|
|
96
|
+
];
|
|
87
97
|
function skillsDirsFor(home) {
|
|
88
98
|
return [join2(home, ".claude", "skills"), join2(home, ".agents", "skills")];
|
|
89
99
|
}
|
|
@@ -187,24 +197,25 @@ async function installedHarnessInPlay(adapter, home, dataDir, options = {}) {
|
|
|
187
197
|
}
|
|
188
198
|
|
|
189
199
|
// src/commands/config.ts
|
|
200
|
+
var SHELF_KEYS = /* @__PURE__ */ new Set([
|
|
201
|
+
"allowlistCreators",
|
|
202
|
+
"publicShelfUrl",
|
|
203
|
+
"shelfBypassSecret",
|
|
204
|
+
"evalCohort",
|
|
205
|
+
...PUBLISH_CONFIG_KEYS,
|
|
206
|
+
...HOOKS_CONFIG_KEYS,
|
|
207
|
+
...LOOP_CONFIG_KEYS,
|
|
208
|
+
...TEAM_CONFIG_KEYS
|
|
209
|
+
]);
|
|
190
210
|
var KEY_WIDTH = Math.max(
|
|
191
|
-
...[
|
|
192
|
-
...CONFIG_KEYS,
|
|
193
|
-
...PUBLISH_CONFIG_KEYS,
|
|
194
|
-
...HOOKS_CONFIG_KEYS,
|
|
195
|
-
...UPDATE_CONFIG_KEYS,
|
|
196
|
-
...LOOP_CONFIG_KEYS,
|
|
197
|
-
...TEAM_CONFIG_KEYS,
|
|
198
|
-
...ROUTER_CONFIG_KEYS,
|
|
199
|
-
...EXPERIMENTAL_CONFIG_KEYS
|
|
200
|
-
].map((key) => key.length)
|
|
211
|
+
...[...CONFIG_KEYS, ...UPDATE_CONFIG_KEYS, ...ROUTER_CONFIG_KEYS, ...EXPERIMENTAL_CONFIG_KEYS].filter((key) => !SHELF_KEYS.has(key)).map((key) => key.length)
|
|
201
212
|
);
|
|
202
213
|
var KEY_DESCRIPTIONS = {
|
|
203
214
|
maxAutoSpend: "automatic router limit per call",
|
|
204
215
|
sessionBudget: "automatic router daily limit: 0 blocks automatic spend, none removes the ceiling",
|
|
205
216
|
sendMaxAmount: "hard cap per tenjin wallet send; unset = send refuses until set, 0 disables send, none = uncapped; never bypassed by --yes",
|
|
206
217
|
allowlistCreators: "only auto-pay these creators (empty = any)",
|
|
207
|
-
baseUrl: "Tenjin API base URL
|
|
218
|
+
baseUrl: "Tenjin API base URL the router asks",
|
|
208
219
|
publicShelfUrl: "the public marketplace, consume-only: the second shelf a team-mode search falls through to",
|
|
209
220
|
shelfBypassSecret: "the team shelf's Vercel protection-bypass secret; setting it is what turns team mode on (printed as set/unset)",
|
|
210
221
|
rpcUrl: "Base RPC endpoint for balance reads",
|
|
@@ -268,20 +279,23 @@ async function runConfigList(ctx) {
|
|
|
268
279
|
const settings = await resolveFromContext(ctx);
|
|
269
280
|
const data = {};
|
|
270
281
|
const humanLines = [];
|
|
282
|
+
const show = (key, line) => {
|
|
283
|
+
if (!SHELF_KEYS.has(key)) humanLines.push(line);
|
|
284
|
+
};
|
|
271
285
|
for (const key of CONFIG_KEYS) {
|
|
272
286
|
const entry = renderSetting(key, settings[key].value, settings[key].source);
|
|
273
287
|
data[key] = entry;
|
|
274
|
-
|
|
288
|
+
show(key, describedLine(key, entry));
|
|
275
289
|
}
|
|
276
290
|
for (const key of PUBLISH_CONFIG_KEYS) {
|
|
277
291
|
const entry = renderPublishSetting(key, settings);
|
|
278
292
|
data[key] = entry;
|
|
279
|
-
|
|
293
|
+
show(key, describedLine(key, entry, downgradeNote(key, settings)));
|
|
280
294
|
}
|
|
281
295
|
for (const key of HOOKS_CONFIG_KEYS) {
|
|
282
296
|
const entry = renderHooksSetting(key, settings);
|
|
283
297
|
data[key] = entry;
|
|
284
|
-
|
|
298
|
+
show(key, describedLine(key, entry));
|
|
285
299
|
}
|
|
286
300
|
for (const key of UPDATE_CONFIG_KEYS) {
|
|
287
301
|
const entry = {
|
|
@@ -289,12 +303,12 @@ async function runConfigList(ctx) {
|
|
|
289
303
|
source: settings.updateMode.source
|
|
290
304
|
};
|
|
291
305
|
data[key] = entry;
|
|
292
|
-
|
|
306
|
+
show(key, describedLine(key, entry));
|
|
293
307
|
}
|
|
294
308
|
for (const key of LOOP_CONFIG_KEYS) {
|
|
295
309
|
const entry = renderLoopSetting(key, settings);
|
|
296
310
|
data[key] = entry;
|
|
297
|
-
|
|
311
|
+
show(key, describedLine(key, entry));
|
|
298
312
|
}
|
|
299
313
|
for (const key of TEAM_CONFIG_KEYS) {
|
|
300
314
|
const entry = {
|
|
@@ -302,13 +316,13 @@ async function runConfigList(ctx) {
|
|
|
302
316
|
source: settings.teamPublicFallback.source
|
|
303
317
|
};
|
|
304
318
|
data[key] = entry;
|
|
305
|
-
|
|
319
|
+
show(key, describedLine(key, entry));
|
|
306
320
|
}
|
|
307
321
|
const router = await resolveRouterFromContext(ctx);
|
|
308
322
|
for (const key of ROUTER_CONFIG_KEYS) {
|
|
309
323
|
const entry = renderRouterSetting(key, router);
|
|
310
324
|
data[key] = entry;
|
|
311
|
-
|
|
325
|
+
show(key, describedLine(key, entry));
|
|
312
326
|
}
|
|
313
327
|
for (const key of EXPERIMENTAL_CONFIG_KEYS) {
|
|
314
328
|
const entry = {
|
|
@@ -316,7 +330,7 @@ async function runConfigList(ctx) {
|
|
|
316
330
|
source: settings.experimentalBazaar.source
|
|
317
331
|
};
|
|
318
332
|
data[key] = entry;
|
|
319
|
-
|
|
333
|
+
show(key, describedLine(key, entry));
|
|
320
334
|
}
|
|
321
335
|
return { data, humanLines };
|
|
322
336
|
}
|
|
@@ -709,7 +723,7 @@ var ROUTER_DEFAULTS = {
|
|
|
709
723
|
maxAutoSpend: "250000",
|
|
710
724
|
sessionBudget: "5000000"
|
|
711
725
|
};
|
|
712
|
-
async function persistRouterDefaults(dir, refresh = false) {
|
|
726
|
+
async function persistRouterDefaults(dir, refresh = false, limits = ROUTER_DEFAULTS) {
|
|
713
727
|
const result = { set: [], kept: [], removed: [] };
|
|
714
728
|
if (refresh && retiredPaymentKeys(await loadRawConfig(dir)).length === 0) return result;
|
|
715
729
|
await persist(dir, (existing) => {
|
|
@@ -717,7 +731,7 @@ async function persistRouterDefaults(dir, refresh = false) {
|
|
|
717
731
|
result.removed = retiredPaymentKeys(existing);
|
|
718
732
|
for (const key of result.removed) delete next[key];
|
|
719
733
|
if (refresh) return next;
|
|
720
|
-
for (const [key, value] of Object.entries(
|
|
734
|
+
for (const [key, value] of Object.entries(limits)) {
|
|
721
735
|
if (existing[key] === void 0) {
|
|
722
736
|
next[key] = value;
|
|
723
737
|
result.set.push(key);
|
|
@@ -907,6 +921,8 @@ function displayValue(entry) {
|
|
|
907
921
|
|
|
908
922
|
export {
|
|
909
923
|
RETIRED_SKILL_NAMES,
|
|
924
|
+
SHIPPED_SKILL_FILES,
|
|
925
|
+
CLI_SKILL_NAMES,
|
|
910
926
|
skillsDirsFor,
|
|
911
927
|
onPath,
|
|
912
928
|
readSkillFile,
|
|
@@ -923,4 +939,4 @@ export {
|
|
|
923
939
|
persistInstallHarness,
|
|
924
940
|
persistGrantDeclined
|
|
925
941
|
};
|
|
926
|
-
//# sourceMappingURL=chunk-
|
|
942
|
+
//# sourceMappingURL=chunk-W2ARIOAZ.js.map
|