@kb-labs/host-agent-entry 2.104.0 → 2.106.0

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/manifest.json +196 -0
  2. package/package.json +21 -21
@@ -0,0 +1,196 @@
1
+ {
2
+ "schema": "kb.plugin/3",
3
+ "id": "@kb-labs/host-agent",
4
+ "version": "0.2.0",
5
+ "display": {
6
+ "name": "Workspace Agent",
7
+ "description": "Connect machine to platform for remote execution",
8
+ "tags": [
9
+ "workspace-agent",
10
+ "gateway",
11
+ "cloud",
12
+ "execution"
13
+ ]
14
+ },
15
+ "platform": {
16
+ "requires": [],
17
+ "optional": [
18
+ "logger"
19
+ ]
20
+ },
21
+ "cli": {
22
+ "groupMeta": [
23
+ {
24
+ "path": "workspace",
25
+ "describe": "Workspace management"
26
+ },
27
+ {
28
+ "path": "agent",
29
+ "describe": "Agent management"
30
+ }
31
+ ],
32
+ "commands": [
33
+ {
34
+ "path": "workspace register",
35
+ "describe": "Register this machine with a Platform Gateway.",
36
+ "operationType": "mutate",
37
+ "longDescription": "Calls POST /auth/register on the given Gateway URL, receives credentials, and writes ~/.kb/agent.json. Must be run once before starting the Workspace Agent daemon.",
38
+ "handler": "./commands/register.js#default",
39
+ "flags": [
40
+ {
41
+ "name": "gateway",
42
+ "type": "string",
43
+ "required": true
44
+ },
45
+ {
46
+ "name": "name",
47
+ "type": "string"
48
+ },
49
+ {
50
+ "name": "workspace",
51
+ "type": "array"
52
+ },
53
+ {
54
+ "name": "namespace",
55
+ "type": "string",
56
+ "default": "default"
57
+ },
58
+ {
59
+ "name": "json",
60
+ "type": "boolean",
61
+ "default": false
62
+ }
63
+ ],
64
+ "examples": [
65
+ "kb workspace:register --gateway http://localhost:4000",
66
+ "kb workspace:register --gateway https://gateway.kblabs.dev --name my-laptop --workspace ~/projects/my-app"
67
+ ]
68
+ },
69
+ {
70
+ "path": "workspace status",
71
+ "describe": "Show Workspace Agent connection status.",
72
+ "operationType": "read",
73
+ "longDescription": "Connects to the daemon via IPC socket and queries its status (connected, hostId, gatewayUrl, capabilities). Start the daemon with `kb workspace:start` or `kb-dev start host-agent`.",
74
+ "handler": "./commands/status.js#default",
75
+ "flags": [
76
+ {
77
+ "name": "json",
78
+ "type": "boolean",
79
+ "default": false
80
+ }
81
+ ],
82
+ "examples": [
83
+ "kb workspace:status",
84
+ "kb workspace:status --json"
85
+ ]
86
+ },
87
+ {
88
+ "path": "workspace list",
89
+ "describe": "List all connected Workspace Agents.",
90
+ "operationType": "read",
91
+ "longDescription": "Queries the Gateway REST API for all registered hosts and shows their status, capabilities, and last seen time.",
92
+ "handler": "./commands/list.js#default",
93
+ "flags": [
94
+ {
95
+ "name": "json",
96
+ "type": "boolean",
97
+ "default": false
98
+ },
99
+ {
100
+ "name": "gateway",
101
+ "type": "string"
102
+ }
103
+ ],
104
+ "examples": [
105
+ "kb workspace:list",
106
+ "kb workspace:list --json",
107
+ "kb workspace:list --gateway https://gateway.kblabs.dev"
108
+ ]
109
+ },
110
+ {
111
+ "path": "agent register",
112
+ "describe": "[Alias for workspace:register] Register this machine with a Platform Gateway.",
113
+ "handler": "./commands/register.js#default",
114
+ "flags": [
115
+ {
116
+ "name": "gateway",
117
+ "type": "string",
118
+ "required": true
119
+ },
120
+ {
121
+ "name": "name",
122
+ "type": "string"
123
+ },
124
+ {
125
+ "name": "workspace",
126
+ "type": "array"
127
+ },
128
+ {
129
+ "name": "namespace",
130
+ "type": "string",
131
+ "default": "default"
132
+ },
133
+ {
134
+ "name": "json",
135
+ "type": "boolean",
136
+ "default": false
137
+ }
138
+ ],
139
+ "examples": [
140
+ "kb agent:register --gateway http://localhost:4000"
141
+ ]
142
+ },
143
+ {
144
+ "path": "agent status",
145
+ "describe": "[Alias for workspace:status] Show Workspace Agent connection status.",
146
+ "handler": "./commands/status.js#default",
147
+ "flags": [
148
+ {
149
+ "name": "json",
150
+ "type": "boolean",
151
+ "default": false
152
+ }
153
+ ],
154
+ "examples": [
155
+ "kb agent:status",
156
+ "kb agent:status --json"
157
+ ]
158
+ }
159
+ ]
160
+ },
161
+ "capabilities": [],
162
+ "permissions": {
163
+ "fs": {
164
+ "read": [
165
+ ".kb/**",
166
+ "~/.kb/**"
167
+ ],
168
+ "write": [
169
+ ".kb/**",
170
+ "~/.kb/**"
171
+ ]
172
+ },
173
+ "env": {
174
+ "read": [
175
+ "HOME",
176
+ "USER",
177
+ "PATH",
178
+ "TMPDIR",
179
+ "NODE_ENV",
180
+ "KB_*",
181
+ "KB_GATEWAY_URL"
182
+ ]
183
+ },
184
+ "quotas": {
185
+ "timeoutMs": 30000,
186
+ "memoryMb": 128
187
+ }
188
+ },
189
+ "artifacts": [
190
+ {
191
+ "id": "workspace-agent.config",
192
+ "pathTemplate": "~/.kb/agent.json",
193
+ "description": "Workspace Agent credentials and configuration."
194
+ }
195
+ ]
196
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kb-labs/host-agent-entry",
3
3
  "description": "CLI commands for Host Agent — register and status.",
4
- "version": "2.104.0",
4
+ "version": "2.106.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
@@ -20,21 +20,32 @@
20
20
  "dist",
21
21
  "README.md"
22
22
  ],
23
+ "scripts": {
24
+ "build": "tsup --config tsup.config.ts && node -e \"const fs=require('fs'),p=require('path');const f=p.join(process.cwd(),'../../../.kb/cache/cli-manifests.json');try{fs.unlinkSync(f);console.log('[host-agent-cli] plugin cache cleared')}catch{}\"",
25
+ "clean": "rimraf dist",
26
+ "dev": "tsup --config tsup.config.ts --watch",
27
+ "lint": "eslint .",
28
+ "lint:fix": "eslint . --fix",
29
+ "test": "vitest run --passWithNoTests",
30
+ "test:cli": "vitest run --config vitest.cli.config.ts --passWithNoTests",
31
+ "test:watch": "vitest",
32
+ "type-check": "tsc --noEmit"
33
+ },
23
34
  "dependencies": {
24
- "@kb-labs/host-agent-client": "2.104.0",
25
- "@kb-labs/host-agent-transport": "2.104.0",
26
- "@kb-labs/host-agent-contracts": "2.104.0",
27
- "@kb-labs/sdk": "2.22.0"
35
+ "@kb-labs/host-agent-client": "^2.106.0",
36
+ "@kb-labs/host-agent-contracts": "^2.106.0",
37
+ "@kb-labs/host-agent-transport": "^2.106.0",
38
+ "@kb-labs/sdk": "workspace:*"
28
39
  },
29
40
  "devDependencies": {
41
+ "@kb-labs/devkit": "workspace:*",
42
+ "@kb-labs/shared-testing-e2e": "workspace:*",
30
43
  "@types/node": "^24.3.3",
31
44
  "eslint": "^9",
32
45
  "rimraf": "^6.0.1",
33
46
  "tsup": "^8.5.0",
34
47
  "typescript": "^5.6.3",
35
- "vitest": "^3.2.6",
36
- "@kb-labs/shared-testing-e2e": "2.104.0",
37
- "@kb-labs/devkit": "2.104.0"
48
+ "vitest": "^3.2.6"
38
49
  },
39
50
  "engines": {
40
51
  "node": ">=20.0.0",
@@ -43,16 +54,5 @@
43
54
  "kb": {
44
55
  "manifest": "./dist/manifest.js"
45
56
  },
46
- "sideEffects": false,
47
- "scripts": {
48
- "build": "tsup --config tsup.config.ts && node -e \"const fs=require('fs'),p=require('path');const f=p.join(process.cwd(),'../../../.kb/cache/cli-manifests.json');try{fs.unlinkSync(f);console.log('[host-agent-cli] plugin cache cleared')}catch{}\"",
49
- "clean": "rimraf dist",
50
- "dev": "tsup --config tsup.config.ts --watch",
51
- "lint": "eslint .",
52
- "lint:fix": "eslint . --fix",
53
- "test": "vitest run --passWithNoTests",
54
- "test:cli": "vitest run --config vitest.cli.config.ts --passWithNoTests",
55
- "test:watch": "vitest",
56
- "type-check": "tsc --noEmit"
57
- }
58
- }
57
+ "sideEffects": false
58
+ }