@hivefloor/cli 0.1.4 → 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.
- package/LICENSE +1 -1
- package/README.md +2 -1
- package/dist/{chunk-R5KDI4WI.js → chunk-3N5JYP5O.js} +7 -3
- package/dist/{chunk-ZC2DAKB5.js → chunk-4DRHR7LR.js} +349 -127
- package/dist/{chunk-PDXYOREI.js → chunk-6MDJB3BV.js} +97 -26
- package/dist/{chunk-QHYZBHXO.js → chunk-6XVIEX75.js} +293 -71
- package/dist/{chunk-DNG5CRT3.js → chunk-C627OKTW.js} +2 -2
- package/dist/chunk-H6NYMF2D.js +50 -0
- package/dist/{chunk-T7TG6WA4.js → chunk-IJRHCDIG.js} +1 -1
- package/dist/{chunk-SD65CIIY.js → chunk-IWIDKNWC.js} +109 -29
- package/dist/{chunk-UJ4BQFWV.js → chunk-J36OIJBM.js} +41 -23
- package/dist/{chunk-W7DROKC7.js → chunk-MZGGJ6ZS.js} +87 -13
- package/dist/{chunk-2BSA7LFD.js → chunk-RYGL6XU4.js} +5 -3
- package/dist/chunk-SOXRITAW.js +139 -0
- package/dist/{chunk-VNCQFFQO.js → chunk-TPMFQUAW.js} +102 -1
- package/dist/chunk-U6RRUAC2.js +229 -0
- package/dist/chunk-VX7SCIF2.js +65 -0
- package/dist/{chunk-O2TC3WSS.js → chunk-X6B6R32A.js} +1 -1
- package/dist/cli-JCBZICR3.js +243 -0
- package/dist/connect-2HLVPEOL.js +23 -0
- package/dist/{disconnect-MKRHK4CX.js → disconnect-WQMDCUXT.js} +41 -27
- package/dist/{hook-KR2HGVAR.js → hook-AYJNRGIY.js} +22 -8
- package/dist/index.js +2 -2
- package/dist/{link-HXBMMSG3.js → link-ORT4LID6.js} +29 -16
- package/dist/{machine-connect-BYHZRRRB.js → machine-connect-N52CKQEW.js} +21 -21
- package/dist/{mcp-N2TMD4GR.js → mcp-2SF6Y73M.js} +27 -30
- package/dist/{run-336BSU72.js → run-ZAZ45MKQ.js} +22 -10
- package/dist/{status-KBBSAADD.js → status-GOCFNO7K.js} +25 -13
- package/dist/{token-JDRLEV5D.js → token-EMM4AJAU.js} +15 -6
- package/dist/voice-F5MIS3IZ.js +262 -0
- package/dist/{where-KR7VWSEC.js → where-XFXRTP7E.js} +16 -7
- package/package.json +2 -2
- package/dist/chunk-2IMJECYD.js +0 -71
- package/dist/chunk-7KF7IQJN.js +0 -30
- package/dist/chunk-GT3HFFT4.js +0 -132
- package/dist/chunk-PY74LT2W.js +0 -41
- package/dist/cli-P3DYE5IR.js +0 -103
- package/dist/connect-ACNM5DQG.js +0 -23
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -32,6 +32,7 @@ npx @hivefloor/cli <command> [options] (no install)
|
|
|
32
32
|
--agent | --tool claude|codex|cursor|gemini|grok|other connect one agent for one repo (MCP and tasks) instead
|
|
33
33
|
disconnect Remove everything connect added, the machine on the server included (--tool <name> for one agent tool)
|
|
34
34
|
status This machine and its service; the per-repo agent, its projects and live sessions
|
|
35
|
+
where [tool] Which account to run next on (read only; --json for the raw answer)
|
|
35
36
|
service run: the background service (started by your OS; you rarely run it by hand)
|
|
36
37
|
link Link this repo to another project (--project ID | --new NAME [--path PREFIX])
|
|
37
38
|
token Print the stored token for shell use (--reveal to print to a terminal)
|
|
@@ -67,7 +68,7 @@ The machine token stays on your computer (the file above, or the OS keychain in
|
|
|
67
68
|
|
|
68
69
|
- `hivefloor status` shows the machine, whether the service is alive and the last heartbeat.
|
|
69
70
|
- The service log is in the config directory above (`service.log`).
|
|
70
|
-
-
|
|
71
|
+
- A context hook prints one `hookSpecificOutput` JSON line when a nudge is waiting, and nothing otherwise. The hook process always exits 0, and it exits by 4 seconds, so it cannot break your agent.
|
|
71
72
|
|
|
72
73
|
## Links
|
|
73
74
|
|
|
@@ -3,16 +3,20 @@ import {
|
|
|
3
3
|
ApiError,
|
|
4
4
|
apiRequest,
|
|
5
5
|
errorOf
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-VX7SCIF2.js";
|
|
7
|
+
import {
|
|
8
|
+
assertTokenTransport
|
|
9
|
+
} from "./chunk-SOXRITAW.js";
|
|
7
10
|
import {
|
|
8
11
|
deviceCodeResponseSchema,
|
|
9
12
|
deviceTokenErrorSchema,
|
|
10
13
|
deviceTokenSuccessSchema
|
|
11
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-4DRHR7LR.js";
|
|
12
15
|
|
|
13
16
|
// src/device.ts
|
|
14
17
|
var printable = (s) => [...s].filter((c) => c.charCodeAt(0) >= 32 && c.charCodeAt(0) !== 127).join("");
|
|
15
18
|
async function deviceLogin(ctx, opts) {
|
|
19
|
+
assertTokenTransport(opts.host);
|
|
16
20
|
const started = await apiRequest(ctx, opts.host, "/api/v1/device/code", { method: "POST", body: opts.request });
|
|
17
21
|
if (started.status !== 200) throw errorOf(started);
|
|
18
22
|
const code = deviceCodeResponseSchema.parse(started.json);
|
|
@@ -40,7 +44,7 @@ Confirm it at ${url}
|
|
|
40
44
|
res = await apiRequest(ctx, opts.host, "/api/v1/device/token", { method: "POST", body: { device_code: code.device_code } });
|
|
41
45
|
} catch (e) {
|
|
42
46
|
failures += 1;
|
|
43
|
-
if (failures >= 5) throw
|
|
47
|
+
if (failures >= 5) throw e;
|
|
44
48
|
continue;
|
|
45
49
|
}
|
|
46
50
|
if (res.status === 200) return opts.parse ? opts.parse(res.json) : deviceTokenSuccessSchema.parse(res.json);
|