@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
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2026 Errr0rr404
3
+ Copyright (c) 2026 Zan
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
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
- - The hooks never print and always exit 0, so they cannot break your agent.
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-PY74LT2W.js";
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-TH4ANHSG.js";
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 new ApiError(0, "network", `Could not reach ${opts.host}: ${e.message}`);
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);