@knpkv/herdr-usage 0.1.0 → 0.1.1

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 (2) hide show
  1. package/dist/bin.js +2 -2
  2. package/package.json +13 -5
package/dist/bin.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
- * `herdr-usage [serve] [--port n] [--no-open]` runs the Usage app on its own; `herdr-usage --socket <path>` attaches
4
- * it to the hub. `HERDR_USAGE_LIMITS_COMMAND` overrides the agent-usage command a standalone run reads with
3
+ * `herdr-usage [serve] [--port n] [--no-open]` runs the Usage app on its own; the hub runs `herdr-usage --attach`
4
+ * itself. `HERDR_USAGE_LIMITS_COMMAND` overrides the agent-usage command a standalone run reads with
5
5
  * (see `./options.ts`).
6
6
  */
7
7
  import { NodeRuntime, NodeServices } from "@effect/platform-node";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knpkv/herdr-usage",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Claude and Codex usage and limits across the fleet, as a Relay hub app that also runs on its own",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -46,11 +46,11 @@
46
46
  "dependencies": {
47
47
  "@effect/platform-node": "4.0.0",
48
48
  "@effect/platform-node-shared": "4.0.0",
49
- "@knpkv/agent-usage": "^0.11.3",
49
+ "@knpkv/herdr-fleet": "^0.20.0",
50
50
  "@knpkv/bounded-io": "^0.3.0",
51
- "@knpkv/herdr-connect": "^0.31.0",
52
- "@knpkv/herdr-fleet": "^0.19.0",
53
- "@knpkv/hub-app": "^0.3.0"
51
+ "@knpkv/herdr-connect": "^0.31.1",
52
+ "@knpkv/hub-app": "^0.4.0",
53
+ "@knpkv/agent-usage": "^0.11.3"
54
54
  },
55
55
  "peerDependencies": {
56
56
  "effect": "4.0.0",
@@ -76,6 +76,14 @@
76
76
  "bin": {
77
77
  "herdr-usage": "./dist/bin.js"
78
78
  },
79
+ "hubApp": {
80
+ "bin": "dist/bin.js",
81
+ "contract": 1,
82
+ "services": [
83
+ "fleet.read",
84
+ "host"
85
+ ]
86
+ },
79
87
  "scripts": {
80
88
  "build": "tsc -b tsconfig.build.json --force && node scripts/build-client.mjs",
81
89
  "check": "tsc -b tsconfig.json && tsc -p tsconfig.test.json --noEmit",