@byokit/herdr 0.5.0 → 0.7.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.
@@ -0,0 +1,503 @@
1
+ [
2
+ {
3
+ "kind": "agy",
4
+ "aliases": [
5
+ "antigravity",
6
+ "antigravity-cli"
7
+ ],
8
+ "folderVar": "ANTIGRAVITY_CLI_CONFIG_DIR",
9
+ "resume": true,
10
+ "sessionKinds": [
11
+ "id"
12
+ ],
13
+ "resumeArgs": [
14
+ "--conversation",
15
+ "{session}"
16
+ ],
17
+ "loginLabel": "Sign in to this account on this computer",
18
+ "billing": "unknown",
19
+ "offer": "explicit",
20
+ "upstream": {
21
+ "version": "0.9.1",
22
+ "revision": "065ef9d6a531c49fb8bee7e818ef837065b21ee9",
23
+ "source": "src/detect/mod.rs; src/integration/env.rs; src/agent_resume.rs"
24
+ }
25
+ },
26
+ {
27
+ "kind": "amp",
28
+ "aliases": [
29
+ "amp-local"
30
+ ],
31
+ "resume": false,
32
+ "sessionKinds": [],
33
+ "loginLabel": "One sign-in per computer user",
34
+ "billing": "unknown",
35
+ "offer": "explicit",
36
+ "upstream": {
37
+ "version": "0.9.1",
38
+ "revision": "065ef9d6a531c49fb8bee7e818ef837065b21ee9",
39
+ "source": "src/detect/mod.rs; src/integration/env.rs; src/agent_resume.rs"
40
+ }
41
+ },
42
+ {
43
+ "kind": "claude",
44
+ "aliases": [
45
+ "claude-code"
46
+ ],
47
+ "folderVar": "CLAUDE_CONFIG_DIR",
48
+ "resume": true,
49
+ "sessionKinds": [
50
+ "id"
51
+ ],
52
+ "resumeArgs": [
53
+ "--resume",
54
+ "{session}"
55
+ ],
56
+ "loginLabel": "Sign in to this account on this computer",
57
+ "billing": "unknown",
58
+ "offer": "explicit",
59
+ "upstream": {
60
+ "version": "0.9.1",
61
+ "revision": "065ef9d6a531c49fb8bee7e818ef837065b21ee9",
62
+ "source": "src/detect/mod.rs; src/integration/env.rs; src/agent_resume.rs"
63
+ }
64
+ },
65
+ {
66
+ "kind": "cline",
67
+ "aliases": [
68
+ ".cline"
69
+ ],
70
+ "resume": false,
71
+ "sessionKinds": [],
72
+ "loginLabel": "One sign-in per computer user",
73
+ "billing": "unknown",
74
+ "offer": "explicit",
75
+ "upstream": {
76
+ "version": "0.9.1",
77
+ "revision": "065ef9d6a531c49fb8bee7e818ef837065b21ee9",
78
+ "source": "src/detect/mod.rs; src/integration/env.rs; src/agent_resume.rs"
79
+ }
80
+ },
81
+ {
82
+ "kind": "codex",
83
+ "aliases": [],
84
+ "folderVar": "CODEX_HOME",
85
+ "resume": true,
86
+ "sessionKinds": [
87
+ "id"
88
+ ],
89
+ "resumeArgs": [
90
+ "resume",
91
+ "{session}"
92
+ ],
93
+ "loginLabel": "Sign in to this account on this computer",
94
+ "billing": "unknown",
95
+ "offer": "explicit",
96
+ "upstream": {
97
+ "version": "0.9.1",
98
+ "revision": "065ef9d6a531c49fb8bee7e818ef837065b21ee9",
99
+ "source": "src/detect/mod.rs; src/integration/env.rs; src/agent_resume.rs"
100
+ }
101
+ },
102
+ {
103
+ "kind": "copilot",
104
+ "aliases": [
105
+ "github-copilot",
106
+ "ghcs"
107
+ ],
108
+ "folderVar": "COPILOT_HOME",
109
+ "resume": true,
110
+ "sessionKinds": [
111
+ "id"
112
+ ],
113
+ "resumeArgs": [
114
+ "--resume={session}"
115
+ ],
116
+ "loginLabel": "Sign in to this account on this computer",
117
+ "billing": "unknown",
118
+ "offer": "explicit",
119
+ "upstream": {
120
+ "version": "0.9.1",
121
+ "revision": "065ef9d6a531c49fb8bee7e818ef837065b21ee9",
122
+ "source": "src/detect/mod.rs; src/integration/env.rs; src/agent_resume.rs"
123
+ }
124
+ },
125
+ {
126
+ "kind": "cursor",
127
+ "aliases": [
128
+ "cursor-agent"
129
+ ],
130
+ "folderVar": "CURSOR_CONFIG_DIR",
131
+ "resume": true,
132
+ "sessionKinds": [
133
+ "id"
134
+ ],
135
+ "resumeArgs": [
136
+ "--resume",
137
+ "{session}"
138
+ ],
139
+ "loginLabel": "Sign in to this account on this computer",
140
+ "billing": "unknown",
141
+ "offer": "explicit",
142
+ "upstream": {
143
+ "version": "0.9.1",
144
+ "revision": "065ef9d6a531c49fb8bee7e818ef837065b21ee9",
145
+ "source": "src/detect/mod.rs; src/integration/env.rs; src/agent_resume.rs"
146
+ }
147
+ },
148
+ {
149
+ "kind": "devin",
150
+ "aliases": [
151
+ "devin-cli",
152
+ "devin cli"
153
+ ],
154
+ "resume": true,
155
+ "sessionKinds": [
156
+ "id"
157
+ ],
158
+ "resumeArgs": [
159
+ "--resume",
160
+ "{session}"
161
+ ],
162
+ "loginLabel": "One sign-in per computer user",
163
+ "billing": "unknown",
164
+ "offer": "explicit",
165
+ "upstream": {
166
+ "version": "0.9.1",
167
+ "revision": "065ef9d6a531c49fb8bee7e818ef837065b21ee9",
168
+ "source": "src/detect/mod.rs; src/integration/env.rs; src/agent_resume.rs"
169
+ }
170
+ },
171
+ {
172
+ "kind": "droid",
173
+ "aliases": [],
174
+ "resume": true,
175
+ "sessionKinds": [
176
+ "id"
177
+ ],
178
+ "resumeArgs": [
179
+ "--resume",
180
+ "{session}"
181
+ ],
182
+ "loginLabel": "One sign-in per computer user",
183
+ "billing": "unknown",
184
+ "offer": "explicit",
185
+ "upstream": {
186
+ "version": "0.9.1",
187
+ "revision": "065ef9d6a531c49fb8bee7e818ef837065b21ee9",
188
+ "source": "src/detect/mod.rs; src/integration/env.rs; src/agent_resume.rs"
189
+ }
190
+ },
191
+ {
192
+ "kind": "gemini",
193
+ "aliases": [],
194
+ "resume": false,
195
+ "sessionKinds": [],
196
+ "loginLabel": "One sign-in per computer user",
197
+ "billing": "unknown",
198
+ "offer": "explicit",
199
+ "upstream": {
200
+ "version": "0.9.1",
201
+ "revision": "065ef9d6a531c49fb8bee7e818ef837065b21ee9",
202
+ "source": "src/detect/mod.rs; src/integration/env.rs; src/agent_resume.rs"
203
+ }
204
+ },
205
+ {
206
+ "kind": "grok",
207
+ "aliases": [
208
+ "grok-build"
209
+ ],
210
+ "folderVar": "GROK_HOME",
211
+ "resume": true,
212
+ "sessionKinds": [
213
+ "id"
214
+ ],
215
+ "resumeArgs": [
216
+ "--resume",
217
+ "{session}"
218
+ ],
219
+ "loginLabel": "Sign in to this account on this computer",
220
+ "billing": "unknown",
221
+ "offer": "explicit",
222
+ "upstream": {
223
+ "version": "0.9.1",
224
+ "revision": "065ef9d6a531c49fb8bee7e818ef837065b21ee9",
225
+ "source": "src/detect/mod.rs; src/integration/env.rs; src/agent_resume.rs"
226
+ }
227
+ },
228
+ {
229
+ "kind": "hermes",
230
+ "aliases": [
231
+ "hermes-agent"
232
+ ],
233
+ "folderVar": "HERMES_HOME",
234
+ "resume": true,
235
+ "sessionKinds": [
236
+ "id"
237
+ ],
238
+ "resumeArgs": [
239
+ "--resume",
240
+ "{session}"
241
+ ],
242
+ "loginLabel": "Sign in to this account on this computer",
243
+ "billing": "unknown",
244
+ "offer": "explicit",
245
+ "upstream": {
246
+ "version": "0.9.1",
247
+ "revision": "065ef9d6a531c49fb8bee7e818ef837065b21ee9",
248
+ "source": "src/detect/mod.rs; src/integration/env.rs; src/agent_resume.rs"
249
+ }
250
+ },
251
+ {
252
+ "kind": "kilo",
253
+ "aliases": [
254
+ "kilo-code",
255
+ "kilo code"
256
+ ],
257
+ "resume": true,
258
+ "sessionKinds": [
259
+ "id"
260
+ ],
261
+ "resumeArgs": [
262
+ "--session",
263
+ "{session}"
264
+ ],
265
+ "loginLabel": "One sign-in per computer user",
266
+ "billing": "unknown",
267
+ "offer": "explicit",
268
+ "upstream": {
269
+ "version": "0.9.1",
270
+ "revision": "065ef9d6a531c49fb8bee7e818ef837065b21ee9",
271
+ "source": "src/detect/mod.rs; src/integration/env.rs; src/agent_resume.rs"
272
+ }
273
+ },
274
+ {
275
+ "kind": "kimi",
276
+ "aliases": [
277
+ "kimi-code",
278
+ "kimi code"
279
+ ],
280
+ "folderVar": "KIMI_CODE_HOME",
281
+ "resume": true,
282
+ "sessionKinds": [
283
+ "id"
284
+ ],
285
+ "resumeArgs": [
286
+ "--session",
287
+ "{session}"
288
+ ],
289
+ "loginLabel": "Sign in to this account on this computer",
290
+ "billing": "unknown",
291
+ "offer": "explicit",
292
+ "upstream": {
293
+ "version": "0.9.1",
294
+ "revision": "065ef9d6a531c49fb8bee7e818ef837065b21ee9",
295
+ "source": "src/detect/mod.rs; src/integration/env.rs; src/agent_resume.rs"
296
+ }
297
+ },
298
+ {
299
+ "kind": "kiro",
300
+ "aliases": [
301
+ "kiro-cli"
302
+ ],
303
+ "resume": false,
304
+ "sessionKinds": [],
305
+ "loginLabel": "One sign-in per computer user",
306
+ "billing": "unknown",
307
+ "offer": "explicit",
308
+ "upstream": {
309
+ "version": "0.9.1",
310
+ "revision": "065ef9d6a531c49fb8bee7e818ef837065b21ee9",
311
+ "source": "src/detect/mod.rs; src/integration/env.rs; src/agent_resume.rs"
312
+ }
313
+ },
314
+ {
315
+ "kind": "letta",
316
+ "aliases": [
317
+ "letta-code",
318
+ "letta code"
319
+ ],
320
+ "resume": true,
321
+ "sessionKinds": [
322
+ "id"
323
+ ],
324
+ "loginLabel": "One sign-in per computer user",
325
+ "billing": "unknown",
326
+ "offer": "explicit",
327
+ "upstream": {
328
+ "version": "0.9.1",
329
+ "revision": "065ef9d6a531c49fb8bee7e818ef837065b21ee9",
330
+ "source": "src/detect/mod.rs; src/integration/env.rs; src/agent_resume.rs"
331
+ }
332
+ },
333
+ {
334
+ "kind": "maki",
335
+ "aliases": [],
336
+ "resume": false,
337
+ "sessionKinds": [],
338
+ "loginLabel": "One sign-in per computer user",
339
+ "billing": "unknown",
340
+ "offer": "explicit",
341
+ "upstream": {
342
+ "version": "0.9.1",
343
+ "revision": "065ef9d6a531c49fb8bee7e818ef837065b21ee9",
344
+ "source": "src/detect/mod.rs; src/integration/env.rs; src/agent_resume.rs"
345
+ }
346
+ },
347
+ {
348
+ "kind": "mastracode",
349
+ "aliases": [
350
+ "mastra-code",
351
+ "mastra code"
352
+ ],
353
+ "resume": true,
354
+ "sessionKinds": [
355
+ "id"
356
+ ],
357
+ "resumeArgs": [
358
+ "--thread",
359
+ "{session}"
360
+ ],
361
+ "loginLabel": "One sign-in per computer user",
362
+ "billing": "unknown",
363
+ "offer": "explicit",
364
+ "upstream": {
365
+ "version": "0.9.1",
366
+ "revision": "065ef9d6a531c49fb8bee7e818ef837065b21ee9",
367
+ "source": "src/detect/mod.rs; src/integration/env.rs; src/agent_resume.rs"
368
+ }
369
+ },
370
+ {
371
+ "kind": "muse",
372
+ "aliases": [
373
+ "muse-code",
374
+ "muse-cli"
375
+ ],
376
+ "aliasPattern": "^muse-bin-[0-9]",
377
+ "resume": false,
378
+ "sessionKinds": [],
379
+ "loginLabel": "One sign-in per computer user",
380
+ "billing": "unknown",
381
+ "offer": "explicit",
382
+ "upstream": {
383
+ "version": "0.9.1",
384
+ "revision": "065ef9d6a531c49fb8bee7e818ef837065b21ee9",
385
+ "source": "src/detect/mod.rs; src/integration/env.rs; src/agent_resume.rs"
386
+ }
387
+ },
388
+ {
389
+ "kind": "omp",
390
+ "aliases": [],
391
+ "folderVar": "PI_CODING_AGENT_DIR",
392
+ "resume": true,
393
+ "sessionKinds": [
394
+ "id",
395
+ "path"
396
+ ],
397
+ "resumeArgs": [
398
+ "--resume={session}"
399
+ ],
400
+ "loginLabel": "Sign in to this account on this computer",
401
+ "billing": "unknown",
402
+ "offer": "explicit",
403
+ "upstream": {
404
+ "version": "0.9.1",
405
+ "revision": "065ef9d6a531c49fb8bee7e818ef837065b21ee9",
406
+ "source": "src/detect/mod.rs; src/integration/env.rs; src/agent_resume.rs"
407
+ }
408
+ },
409
+ {
410
+ "kind": "opencode",
411
+ "aliases": [
412
+ "opencode2",
413
+ "open-code"
414
+ ],
415
+ "resume": true,
416
+ "sessionKinds": [
417
+ "id"
418
+ ],
419
+ "resumeArgs": [
420
+ "--session",
421
+ "{session}"
422
+ ],
423
+ "loginLabel": "One sign-in per computer user",
424
+ "billing": "unknown",
425
+ "offer": "explicit",
426
+ "upstream": {
427
+ "version": "0.9.1",
428
+ "revision": "065ef9d6a531c49fb8bee7e818ef837065b21ee9",
429
+ "source": "src/detect/mod.rs; src/integration/env.rs; src/agent_resume.rs"
430
+ }
431
+ },
432
+ {
433
+ "kind": "pi",
434
+ "aliases": [],
435
+ "folderVar": "PI_CODING_AGENT_DIR",
436
+ "resume": true,
437
+ "sessionKinds": [
438
+ "id",
439
+ "path"
440
+ ],
441
+ "resumeArgs": [
442
+ "--session",
443
+ "{session}"
444
+ ],
445
+ "loginLabel": "Sign in to this account on this computer",
446
+ "billing": "unknown",
447
+ "offer": "explicit",
448
+ "upstream": {
449
+ "version": "0.9.1",
450
+ "revision": "065ef9d6a531c49fb8bee7e818ef837065b21ee9",
451
+ "source": "src/detect/mod.rs; src/integration/env.rs; src/agent_resume.rs"
452
+ }
453
+ },
454
+ {
455
+ "kind": "qodercli",
456
+ "aliases": [
457
+ "qoderclicn",
458
+ "qoder",
459
+ "qodercn"
460
+ ],
461
+ "folderVar": "QODER_CONFIG_DIR",
462
+ "resume": true,
463
+ "sessionKinds": [
464
+ "id"
465
+ ],
466
+ "resumeArgs": [
467
+ "--resume",
468
+ "{session}"
469
+ ],
470
+ "loginLabel": "Sign in to this account on this computer",
471
+ "billing": "unknown",
472
+ "offer": "explicit",
473
+ "upstream": {
474
+ "version": "0.9.1",
475
+ "revision": "065ef9d6a531c49fb8bee7e818ef837065b21ee9",
476
+ "source": "src/detect/mod.rs; src/integration/env.rs; src/agent_resume.rs"
477
+ }
478
+ },
479
+ {
480
+ "kind": "qwen",
481
+ "aliases": [
482
+ "qwen-code",
483
+ "qwen code"
484
+ ],
485
+ "folderVar": "QWEN_HOME",
486
+ "resume": true,
487
+ "sessionKinds": [
488
+ "id"
489
+ ],
490
+ "resumeArgs": [
491
+ "--resume",
492
+ "{session}"
493
+ ],
494
+ "loginLabel": "Sign in to this account on this computer",
495
+ "billing": "unknown",
496
+ "offer": "explicit",
497
+ "upstream": {
498
+ "version": "0.9.1",
499
+ "revision": "065ef9d6a531c49fb8bee7e818ef837065b21ee9",
500
+ "source": "src/detect/mod.rs; src/integration/env.rs; src/agent_resume.rs"
501
+ }
502
+ }
503
+ ]
package/dist/kit.js CHANGED
@@ -139,6 +139,7 @@ export class HerdrKit {
139
139
  this.accountPanes = createAccountPanes({ call: this.callAny, startAgent: (o) => this.startAgent(o) });
140
140
  this.agents = createAgents({ call: this.callAny, snapshot: () => this.snapshot(),
141
141
  reread: (paneId) => this.reread(paneId),
142
+ launchEnv: () => o.mode === 'own' ? this.supervisor.env() : undefined,
142
143
  emitStart: (e) => { for (const fn of [...this.startListeners])
143
144
  try {
144
145
  fn(e);
package/dist/link.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { type IncomingMessage, type ServerResponse } from 'node:http';
2
2
  import { type Grant, type Host, type HostOptions } from '@byokit/link';
3
- import { type ServeIngress, type Via } from '@byokit/reach';
3
+ import { type ServeIngress, type Via } from '@byokit/discover';
4
4
  import type { RelayClient } from '@byokit/relay';
5
5
  import type { HerdrKit } from './kit.ts';
6
6
  export type HerdrScope = {
@@ -9,7 +9,7 @@ export type HerdrScope = {
9
9
  export declare function herdrLink(kit: HerdrKit, o: {
10
10
  scopeOf: (grant: Grant) => HerdrScope;
11
11
  passThrough?: (method: string, grant: Grant) => boolean;
12
- relay?: RelayClient;
12
+ relay?: Pick<RelayClient, 'notify'>;
13
13
  }): Pick<HostOptions, 'handle' | 'stream' | 'allow'>;
14
14
  export declare function serve(o: {
15
15
  host: Host;
package/dist/link.js CHANGED
@@ -7,7 +7,7 @@
7
7
  import { createServer } from 'node:http';
8
8
  import { WebSocketServer } from 'ws';
9
9
  import { PublicLinkError, } from '@byokit/link';
10
- import { reach } from '@byokit/reach';
10
+ import { reach } from '@byokit/discover';
11
11
  import { stateWords, words } from "./words.js";
12
12
  import { decodeB64Url, sealNotice } from "./notices.js";
13
13
  // Ops a view-role grant may open; every other op needs the control role (7.1, *view* marks).
package/dist/muse.d.ts ADDED
@@ -0,0 +1,47 @@
1
+ export declare const MUSE_INSTALL_URL = "https://dev.meta.ai/install.sh";
2
+ /** A launcher alone cannot run without its selected native release. Never executes Muse. */
3
+ export declare function museNative(launcher: string): {
4
+ native: string;
5
+ version: string;
6
+ } | undefined;
7
+ export type MuseReadiness = {
8
+ state: 'unknown' | 'missing' | 'launcher-only' | 'installed';
9
+ signedIn: 'unknown';
10
+ bin?: string;
11
+ version?: string;
12
+ };
13
+ /** Only the supplied effective pane PATH is probed, never the controller's personal directories. */
14
+ export declare function museReadiness(env?: Record<string, string>): MuseReadiness;
15
+ export type InstallMuseOptions = {
16
+ /** Caller-owned absolute private home. Never the person's default home or a system location. */
17
+ home: string;
18
+ /** Explicit clean tool PATH; also returned for launch with the installed bin directory prepended. */
19
+ path: string[];
20
+ /** Must be inside home; defaults to home/.local/bin. */
21
+ installDir?: string;
22
+ signal?: AbortSignal;
23
+ /** Total download/process deadline, capped at five minutes. */
24
+ timeoutMs?: number;
25
+ };
26
+ export type MuseInstallReceipt = {
27
+ bin: string;
28
+ native: string;
29
+ version: string;
30
+ launcherSha256: string;
31
+ nativeSha256: string;
32
+ installerSha256?: string;
33
+ source: typeof MUSE_INSTALL_URL;
34
+ path: string[];
35
+ env: Record<string, string>;
36
+ };
37
+ export type MuseInstallResult = {
38
+ ok: true;
39
+ receipt: MuseInstallReceipt;
40
+ } | {
41
+ ok: false;
42
+ code: 'unsupported_platform' | 'unsafe_path' | 'tools_missing' | 'cancelled' | 'timeout' | 'download_failed' | 'protected_download' | 'install_failed' | 'incomplete_install';
43
+ message: string;
44
+ installerSha256?: string;
45
+ };
46
+ /** Calling this authorizes the official download/install only. A protected artifact needs separate qualification. */
47
+ export declare function installMuse(o: InstallMuseOptions): Promise<MuseInstallResult>;