@bizzywork/routing 0.1.0 → 0.2.0
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 +3 -1
- package/dist/bundle/THIRD-PARTY-NOTICES.txt +160 -0
- package/dist/bundle/bizzy-routing.js +12 -21
- package/dist/bundle/chunk-RYVRLJBJ.js +62 -0
- package/dist/bundle/clack-ui-KUXMJI7C.js +1405 -0
- package/dist/bundle/{main-VPXMU5TG.js → main-7NNVOX2S.js} +325 -262
- package/dist/bundle/ui-4PTMUQQ4.js +40 -0
- package/package.json +2 -1
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { createRequire as __bizzyRequire } from "node:module";
|
|
2
|
+
import { fileURLToPath as __bizzyPath } from "node:url";
|
|
3
|
+
const require = __bizzyRequire(import.meta.url);
|
|
4
|
+
const __filename = __bizzyPath(import.meta.url);
|
|
5
|
+
const __dirname = __bizzyPath(new URL(".", import.meta.url));
|
|
6
|
+
import "./chunk-RYVRLJBJ.js";
|
|
7
|
+
|
|
8
|
+
// bizzy-routing/launcher/src/ui.ts
|
|
9
|
+
function plainUi(write) {
|
|
10
|
+
const noTerminal = () => Promise.reject(new Error("this needs a terminal to ask on"));
|
|
11
|
+
const mark = { ok: "ok ", warn: "warn", fail: "FAIL" };
|
|
12
|
+
return {
|
|
13
|
+
intro: () => {
|
|
14
|
+
},
|
|
15
|
+
outro: (message) => write(`${message}
|
|
16
|
+
`),
|
|
17
|
+
note: (body) => write(`
|
|
18
|
+
${body}
|
|
19
|
+
`),
|
|
20
|
+
message: (text) => write(`${text}
|
|
21
|
+
`),
|
|
22
|
+
warn: (message) => write(`${message}
|
|
23
|
+
`),
|
|
24
|
+
step: async (_message, work, done) => {
|
|
25
|
+
const result = await work();
|
|
26
|
+
write(`${done(result)}
|
|
27
|
+
`);
|
|
28
|
+
return result;
|
|
29
|
+
},
|
|
30
|
+
select: noTerminal,
|
|
31
|
+
password: noTerminal,
|
|
32
|
+
confirm: noTerminal,
|
|
33
|
+
checks: (checks) => checks.map(
|
|
34
|
+
(check) => `${mark[check.status]} ${check.name}: ${check.detail}${check.fix ? ` (${check.fix})` : ""}`
|
|
35
|
+
).join("\n")
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export {
|
|
39
|
+
plainUi
|
|
40
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bizzywork/routing",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Bizzy Auto routing for Claude Code, oh-my-pi and Codex: npx @bizzywork/routing install <harness>.",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@33audits/bizzy-api": "*",
|
|
26
|
+
"@clack/prompts": "1.9.0",
|
|
26
27
|
"dotenv": "18.0.7"
|
|
27
28
|
}
|
|
28
29
|
}
|