@hivefloor/cli 0.1.5 → 0.1.8
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 +6 -20
- package/README.md +29 -8
- package/dist/chunk-2ERPDCOT.js +38 -0
- package/dist/chunk-4G362W6G.js +19 -0
- package/dist/chunk-5OJUJCE3.js +817 -0
- package/dist/{chunk-U6RRUAC2.js → chunk-5XXYQQG6.js} +53 -8
- package/dist/chunk-AGIYVFDQ.js +10984 -0
- package/dist/{chunk-RYGL6XU4.js → chunk-BLLPDPTL.js} +4 -2
- package/dist/{chunk-3N5JYP5O.js → chunk-FPJNGKT5.js} +5 -3
- package/dist/chunk-HW3KRNCO.js +201 -0
- package/dist/{chunk-4DRHR7LR.js → chunk-HWBUESB4.js} +1158 -196
- package/dist/{chunk-C627OKTW.js → chunk-K2IRTZH5.js} +7 -6
- package/dist/chunk-KQMPCV57.js +122 -0
- package/dist/{chunk-J36OIJBM.js → chunk-L6EFW2SJ.js} +14 -10
- package/dist/{chunk-IJRHCDIG.js → chunk-LX5A25O6.js} +4 -2
- package/dist/{chunk-MZGGJ6ZS.js → chunk-MYJCU5JL.js} +4 -2
- package/dist/{chunk-H6NYMF2D.js → chunk-NMUH5NXN.js} +6 -4
- package/dist/{chunk-VX7SCIF2.js → chunk-NRJONTFT.js} +3 -1
- package/dist/chunk-QBBKGORP.js +327 -0
- package/dist/{chunk-SOXRITAW.js → chunk-QGULSOQ2.js} +3 -0
- package/dist/{chunk-6MDJB3BV.js → chunk-QLMLB7RB.js} +17 -9
- package/dist/{chunk-TKMIV7BG.js → chunk-QPAFN47B.js} +3 -1
- package/dist/chunk-SBOEAOHD.js +48 -0
- package/dist/{chunk-IWIDKNWC.js → chunk-TIR4CV3P.js} +21 -17
- package/dist/{chunk-6XVIEX75.js → chunk-X2KH6AR4.js} +25 -303
- package/dist/chunk-XAXKZ572.js +106 -0
- package/dist/{chunk-TPMFQUAW.js → chunk-XPGL7VYE.js} +12 -0
- package/dist/{cli-JCBZICR3.js → cli-BFOJWJNG.js} +56 -20
- package/dist/connect-ZJ4JXBAJ.js +27 -0
- package/dist/control-6GHTZQJV.js +25 -0
- package/dist/{disconnect-WQMDCUXT.js → disconnect-3T25NTKX.js} +24 -17
- package/dist/{hook-AYJNRGIY.js → hook-TPSHBCWU.js} +277 -17
- package/dist/index.js +9 -6
- package/dist/{link-ORT4LID6.js → link-EAS5F5PC.js} +14 -11
- package/dist/{machine-connect-N52CKQEW.js → machine-connect-KEI4BRWF.js} +23 -17
- package/dist/mcp-LVIYR3EN.js +1882 -0
- package/dist/orch-KVRL2YA2.js +137 -0
- package/dist/{run-ZAZ45MKQ.js → run-JL2OZWK3.js} +1920 -28
- package/dist/{status-GOCFNO7K.js → status-QXOOJGGN.js} +14 -11
- package/dist/{token-EMM4AJAU.js → token-BFWWQIDA.js} +10 -7
- package/dist/{voice-F5MIS3IZ.js → voice-QXHFXRWG.js} +5 -3
- package/dist/{where-XFXRTP7E.js → where-CMUORQIO.js} +11 -8
- package/package.json +5 -6
- package/dist/chunk-JCLWCMEM.js +0 -8
- package/dist/chunk-K3NQKI34.js +0 -10
- package/dist/chunk-X6B6R32A.js +0 -303
- package/dist/connect-2HLVPEOL.js +0 -23
- package/dist/mcp-2SF6Y73M.js +0 -118
package/LICENSE
CHANGED
|
@@ -1,21 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
Copyright (c) 2026 Zan. All rights reserved.
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
of this software
|
|
7
|
-
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
3
|
+
This software is proprietary and confidential. It is licensed only for use with
|
|
4
|
+
HiveFloor (https://hivefloor.worldofz.info) under the HiveFloor terms of service.
|
|
5
|
+
No permission is granted to copy, modify, merge, publish, distribute, sublicense
|
|
6
|
+
or sell copies of this software, except as needed to install and run it to
|
|
7
|
+
connect your own machines to HiveFloor.
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @hivefloor/cli
|
|
2
2
|
|
|
3
|
-
Connect your coding agents to [
|
|
3
|
+
Connect your coding agents to [HiveFloor](https://hivefloor.worldofz.info): one floor that shows every agent on your machines (Claude Code, Codex, Cursor, Gemini CLI, Grok CLI), what each is working on, who is waiting for you, and what they cost in tokens. Agents also get task tools (claim, update, complete) over MCP.
|
|
4
4
|
|
|
5
5
|
The package installs one command, `hivefloor`. Node.js 22 or later.
|
|
6
6
|
|
|
@@ -10,7 +10,7 @@ The package installs one command, `hivefloor`. Node.js 22 or later.
|
|
|
10
10
|
npx @hivefloor/cli connect
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
It prints a short code and opens your browser to approve this computer on
|
|
13
|
+
It prints a short code and opens your browser to approve this computer on HiveFloor (sign in there; the CLI never sees your password). Then it sets up the hooks and the background service. Your running agents show up on the Floor within a minute.
|
|
14
14
|
|
|
15
15
|
Install once instead of using `npx`:
|
|
16
16
|
|
|
@@ -36,7 +36,7 @@ npx @hivefloor/cli <command> [options] (no install)
|
|
|
36
36
|
service run: the background service (started by your OS; you rarely run it by hand)
|
|
37
37
|
link Link this repo to another project (--project ID | --new NAME [--path PREFIX])
|
|
38
38
|
token Print the stored token for shell use (--reveal to print to a terminal)
|
|
39
|
-
mcp Stdio MCP server that proxies to
|
|
39
|
+
mcp Stdio MCP server that proxies to HiveFloor (for tools without HTTP header support)
|
|
40
40
|
hook <tool> <event>: the hook runner the tools call (reads JSON on stdin)
|
|
41
41
|
help Show this help
|
|
42
42
|
--version Print the version
|
|
@@ -44,17 +44,27 @@ npx @hivefloor/cli <command> [options] (no install)
|
|
|
44
44
|
|
|
45
45
|
The default server is `https://hivefloor.worldofz.info`; use `--host` or the `HIVEFLOOR_URL` environment variable for another one.
|
|
46
46
|
|
|
47
|
+
## Run the connector
|
|
48
|
+
|
|
49
|
+
`connect` starts the background service for you. To run the connector in the foreground instead (a container, a headless box, or to see what it does), connect with `--no-service` and then run:
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
hivefloor service run
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
It sends the heartbeat and the hook events described below, and stops when you press Ctrl-C. `hivefloor status` shows whether it is alive.
|
|
56
|
+
|
|
47
57
|
## What `connect` changes on your computer
|
|
48
58
|
|
|
49
59
|
- `~/.config/hivefloor/` (`%APPDATA%\hivefloor\` on Windows): `machine.json` with the machine token (mode 0600, user-only ACL on Windows), a copy of this CLI that the hooks and the service run, and a small event spool and service log.
|
|
50
|
-
- Hooks in each Claude Code profile's `settings.json` and, if Codex is present, in its `hooks.json` and `config.toml`. Every entry is marked as
|
|
60
|
+
- Hooks in each Claude Code profile's `settings.json` and, if Codex is present, in its `hooks.json` and `config.toml`. Every entry is marked as HiveFloor's.
|
|
51
61
|
- A user-level background service: a launchd agent on macOS, a systemd user unit on Linux, a Scheduled Task on Windows. Skip it with `--no-service`.
|
|
52
62
|
|
|
53
63
|
`hivefloor disconnect` removes all of it and tells the server to delete the machine. Nothing is installed with administrator rights.
|
|
54
64
|
|
|
55
65
|
## Privacy: what is sent to the server
|
|
56
66
|
|
|
57
|
-
Only to the
|
|
67
|
+
Only to the HiveFloor server you connect to (the default host or `--host`), over HTTPS, with the machine token. There is no telemetry and no third-party service.
|
|
58
68
|
|
|
59
69
|
- **Connecting:** the machine name (your hostname unless you pass `--name`), OS and CLI version.
|
|
60
70
|
- **Hook events** (when an agent starts or ends a session, you submit a prompt, the agent stops, waits for you, or starts or stops a subagent): the tool, the event name, the session id, the model name, the git remote, branch and subfolder of the working directory, and for a stop or subagent event the first line of the agent's last message, with secrets masked and cut to 140 characters. A subagent's type and its short description (140 characters) are sent too. Your prompt text, file contents, tool inputs and outputs, and full transcripts are not sent.
|
|
@@ -72,7 +82,18 @@ The machine token stays on your computer (the file above, or the OS keychain in
|
|
|
72
82
|
|
|
73
83
|
## Links
|
|
74
84
|
|
|
75
|
-
- Source and issues: https://github.com/Errr0rr404/hivefloor
|
|
76
|
-
-
|
|
85
|
+
- Source and issues: https://github.com/Errr0rr404/hivefloor-cli
|
|
86
|
+
- HiveFloor: https://hivefloor.worldofz.info
|
|
87
|
+
|
|
88
|
+
## Building from source
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
git clone https://github.com/Errr0rr404/hivefloor-cli
|
|
92
|
+
cd hivefloor-cli
|
|
93
|
+
npm install
|
|
94
|
+
npm run build && npm test
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
This is the CLI connector of HiveFloor. HiveFloor, including this CLI, is closed source.
|
|
77
98
|
|
|
78
|
-
|
|
99
|
+
Proprietary. Copyright (c) 2026 Zan. See LICENSE: for use with HiveFloor only.
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire as __hfCreateRequire } from 'node:module';
|
|
3
|
+
const require = __hfCreateRequire(import.meta.url);
|
|
4
|
+
var __create = Object.create;
|
|
5
|
+
var __defProp = Object.defineProperty;
|
|
6
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
9
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
11
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
12
|
+
};
|
|
13
|
+
var __export = (target, all) => {
|
|
14
|
+
for (var name in all)
|
|
15
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
16
|
+
};
|
|
17
|
+
var __copyProps = (to, from, except, desc) => {
|
|
18
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
19
|
+
for (let key of __getOwnPropNames(from))
|
|
20
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
21
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
22
|
+
}
|
|
23
|
+
return to;
|
|
24
|
+
};
|
|
25
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
26
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
27
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
28
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
29
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
30
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
31
|
+
mod
|
|
32
|
+
));
|
|
33
|
+
|
|
34
|
+
export {
|
|
35
|
+
__commonJS,
|
|
36
|
+
__export,
|
|
37
|
+
__toESM
|
|
38
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire as __hfCreateRequire } from 'node:module';
|
|
3
|
+
const require = __hfCreateRequire(import.meta.url);
|
|
4
|
+
|
|
5
|
+
// src/hookclock.ts
|
|
6
|
+
var HARD_EXIT_MS = 4e3;
|
|
7
|
+
var PERMISSION_WAIT_MS = 25e3;
|
|
8
|
+
var PERMISSION_HARD_STOP_MS = 27e3;
|
|
9
|
+
var PERMISSION_HARD_EXIT_MS = 27500;
|
|
10
|
+
var PERMISSION_TIMEOUT_SEC = 30;
|
|
11
|
+
var hardExitFor = (native) => native?.toLowerCase() === "permissionrequest" ? PERMISSION_HARD_EXIT_MS : HARD_EXIT_MS;
|
|
12
|
+
|
|
13
|
+
export {
|
|
14
|
+
HARD_EXIT_MS,
|
|
15
|
+
PERMISSION_WAIT_MS,
|
|
16
|
+
PERMISSION_HARD_STOP_MS,
|
|
17
|
+
PERMISSION_TIMEOUT_SEC,
|
|
18
|
+
hardExitFor
|
|
19
|
+
};
|