@hivefloor/cli 0.1.3 → 0.1.5

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.
Files changed (38) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +2 -1
  3. package/dist/{chunk-HT5KXWXM.js → chunk-3N5JYP5O.js} +7 -3
  4. package/dist/{chunk-TH4ANHSG.js → chunk-4DRHR7LR.js} +365 -129
  5. package/dist/{chunk-DQV6FAJU.js → chunk-6MDJB3BV.js} +97 -26
  6. package/dist/{chunk-NLZXB26Y.js → chunk-6XVIEX75.js} +293 -71
  7. package/dist/{chunk-KHHSRIMU.js → chunk-C627OKTW.js} +2 -2
  8. package/dist/chunk-H6NYMF2D.js +50 -0
  9. package/dist/{chunk-T7TG6WA4.js → chunk-IJRHCDIG.js} +1 -1
  10. package/dist/{chunk-3YOTXIFP.js → chunk-IWIDKNWC.js} +109 -29
  11. package/dist/{chunk-E4V47VEV.js → chunk-J36OIJBM.js} +41 -23
  12. package/dist/{chunk-O6VSA2JT.js → chunk-MZGGJ6ZS.js} +87 -13
  13. package/dist/{chunk-YRNMECUF.js → chunk-RYGL6XU4.js} +5 -3
  14. package/dist/chunk-SOXRITAW.js +139 -0
  15. package/dist/{chunk-VNCQFFQO.js → chunk-TPMFQUAW.js} +102 -1
  16. package/dist/chunk-U6RRUAC2.js +229 -0
  17. package/dist/chunk-VX7SCIF2.js +65 -0
  18. package/dist/{chunk-O2TC3WSS.js → chunk-X6B6R32A.js} +1 -1
  19. package/dist/cli-JCBZICR3.js +243 -0
  20. package/dist/connect-2HLVPEOL.js +23 -0
  21. package/dist/{disconnect-FI76IEZJ.js → disconnect-WQMDCUXT.js} +41 -27
  22. package/dist/{hook-N4ZTQEWM.js → hook-AYJNRGIY.js} +25 -9
  23. package/dist/index.js +2 -2
  24. package/dist/{link-5WSZHKBE.js → link-ORT4LID6.js} +29 -16
  25. package/dist/{machine-connect-GQJ4SB3D.js → machine-connect-N52CKQEW.js} +21 -21
  26. package/dist/{mcp-EUBTVJNX.js → mcp-2SF6Y73M.js} +27 -30
  27. package/dist/{run-BEE2ATEM.js → run-ZAZ45MKQ.js} +22 -10
  28. package/dist/{status-SMAVPW4D.js → status-GOCFNO7K.js} +25 -13
  29. package/dist/{token-AUEAWQDH.js → token-EMM4AJAU.js} +15 -6
  30. package/dist/voice-F5MIS3IZ.js +262 -0
  31. package/dist/{where-7NI7UEEF.js → where-XFXRTP7E.js} +16 -7
  32. package/package.json +2 -2
  33. package/dist/chunk-2IMJECYD.js +0 -71
  34. package/dist/chunk-DWHMBUCA.js +0 -30
  35. package/dist/chunk-NKMVO5BP.js +0 -132
  36. package/dist/chunk-PY74LT2W.js +0 -41
  37. package/dist/cli-MAHYTCYV.js +0 -103
  38. package/dist/connect-QA3QIEGL.js +0 -23
@@ -1,103 +0,0 @@
1
- #!/usr/bin/env node
2
- import {
3
- parseArgs
4
- } from "./chunk-TKMIV7BG.js";
5
- import {
6
- VERSION
7
- } from "./chunk-KHHSRIMU.js";
8
- import {
9
- ApiError
10
- } from "./chunk-PY74LT2W.js";
11
- import {
12
- CLI_BIN_NAME,
13
- CLI_INSTALL_COMMAND,
14
- cliNpxCommand,
15
- defaultCtx
16
- } from "./chunk-TH4ANHSG.js";
17
- import "./chunk-K3NQKI34.js";
18
-
19
- // src/cli.ts
20
- var HELP = `hivefloor ${VERSION}
21
-
22
- Usage: ${CLI_BIN_NAME} <command> [options]
23
- ${cliNpxCommand("<command> [options]")} (no install)
24
-
25
- Commands:
26
- connect Connect this computer once: every agent on it shows up (Claude profiles, Codex, ...)
27
- --host URL --name NAME --no-open --no-service --yes
28
- --agent | --tool claude|codex|cursor|gemini|grok|other connect one agent for one repo (MCP and tasks) instead
29
- disconnect Remove everything connect added, the machine on the server included (--tool <name> for one agent tool)
30
- status This machine and its service; the per-repo agent, its projects and live sessions
31
- where [tool] Which account to run next on (read only; --json for the raw answer)
32
- service run: the background service (started by your OS; you rarely run it by hand)
33
- link Link this repo to another project (--project ID | --new NAME [--path PREFIX])
34
- token Print the stored token for shell use (--reveal to print to a terminal)
35
- mcp Stdio MCP server that proxies to Hivefloor (for tools without HTTP header support)
36
- hook <tool> <event>: the hook runner the tools call (reads JSON on stdin)
37
- help Show this help
38
- --version Print the version
39
-
40
- Install once: ${CLI_INSTALL_COMMAND}
41
- Host: https://hivefloor.worldofz.info, or set HIVEFLOOR_URL.
42
- `;
43
- async function run(argv, ctx = defaultCtx()) {
44
- const [cmd, ...rest] = argv;
45
- if (cmd === "--version" || cmd === "-v" || cmd === "version") {
46
- ctx.out(`${VERSION}
47
- `);
48
- return 0;
49
- }
50
- if (cmd === void 0 || cmd === "help" || cmd === "--help" || cmd === "-h") {
51
- ctx.out(HELP);
52
- return 0;
53
- }
54
- const p = parseArgs(rest);
55
- if (p.flags.help) {
56
- ctx.out(HELP);
57
- return 0;
58
- }
59
- try {
60
- switch (cmd) {
61
- case "connect":
62
- return await (await import("./connect-QA3QIEGL.js")).connect(ctx, p);
63
- case "disconnect":
64
- return await (await import("./disconnect-FI76IEZJ.js")).disconnect(ctx, p);
65
- case "status":
66
- return await (await import("./status-SMAVPW4D.js")).status(ctx, p);
67
- case "where":
68
- return await (await import("./where-7NI7UEEF.js")).where(ctx, p);
69
- case "service":
70
- if (p.positionals[0] !== "run") {
71
- ctx.err("hivefloor: usage: hivefloor service run\n");
72
- return 2;
73
- }
74
- return await (await import("./run-BEE2ATEM.js")).runService({ ctx });
75
- case "link":
76
- return await (await import("./link-5WSZHKBE.js")).link(ctx, p);
77
- case "token":
78
- return await (await import("./token-AUEAWQDH.js")).token(ctx, p);
79
- case "mcp":
80
- return await (await import("./mcp-EUBTVJNX.js")).runMcpProxy(ctx, p);
81
- case "hook": {
82
- const { runHook, readStdin } = await import("./hook-N4ZTQEWM.js");
83
- await runHook(rest, { env: ctx.env, cwd: ctx.cwd, fetch: ctx.fetch, now: ctx.now, readStdin });
84
- return 0;
85
- }
86
- default:
87
- ctx.err(`hivefloor: unknown command "${cmd}". Run "hivefloor help".
88
- `);
89
- return 2;
90
- }
91
- } catch (e) {
92
- if (e instanceof ApiError) ctx.err(`hivefloor: ${e.message}
93
- `);
94
- else ctx.err(`hivefloor: ${e.message}
95
- `);
96
- return 1;
97
- }
98
- }
99
- export {
100
- HELP,
101
- VERSION,
102
- run
103
- };
@@ -1,23 +0,0 @@
1
- #!/usr/bin/env node
2
- import {
3
- connect,
4
- connectAgent,
5
- resolveHost
6
- } from "./chunk-3YOTXIFP.js";
7
- import "./chunk-HT5KXWXM.js";
8
- import "./chunk-NLZXB26Y.js";
9
- import "./chunk-YRNMECUF.js";
10
- import "./chunk-2IMJECYD.js";
11
- import "./chunk-TKMIV7BG.js";
12
- import "./chunk-DQV6FAJU.js";
13
- import "./chunk-KHHSRIMU.js";
14
- import "./chunk-T7TG6WA4.js";
15
- import "./chunk-PY74LT2W.js";
16
- import "./chunk-VNCQFFQO.js";
17
- import "./chunk-TH4ANHSG.js";
18
- import "./chunk-K3NQKI34.js";
19
- export {
20
- connect,
21
- connectAgent,
22
- resolveHost
23
- };