@spinabot/brigade 1.12.0 → 1.14.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.
- package/README.md +20 -0
- package/convex/logs.d.ts +3 -3
- package/convex/memory.d.ts +21 -21
- package/convex/schema.d.ts +9 -9
- package/convex/skills.d.ts +3 -3
- package/dist/buildstamp.json +1 -1
- package/dist/cli/commands/config-cmd.d.ts +12 -19
- package/dist/cli/commands/config-cmd.d.ts.map +1 -1
- package/dist/cli/commands/config-cmd.js +14 -197
- package/dist/cli/commands/config-cmd.js.map +1 -1
- package/dist/cli/commands/connect.d.ts +6 -0
- package/dist/cli/commands/connect.d.ts.map +1 -1
- package/dist/cli/commands/connect.js +7 -0
- package/dist/cli/commands/connect.js.map +1 -1
- package/dist/cli/commands/doctor.d.ts.map +1 -1
- package/dist/cli/commands/doctor.js +2 -1
- package/dist/cli/commands/doctor.js.map +1 -1
- package/dist/cli/commands/expose.d.ts.map +1 -1
- package/dist/cli/commands/expose.js +22 -3
- package/dist/cli/commands/expose.js.map +1 -1
- package/dist/cli/commands/gateway.d.ts +12 -0
- package/dist/cli/commands/gateway.d.ts.map +1 -1
- package/dist/cli/commands/gateway.js +114 -2
- package/dist/cli/commands/gateway.js.map +1 -1
- package/dist/cli/commands/status.d.ts.map +1 -1
- package/dist/cli/commands/status.js +2 -1
- package/dist/cli/commands/status.js.map +1 -1
- package/dist/cli/program/build-program.d.ts.map +1 -1
- package/dist/cli/program/build-program.js +36 -0
- package/dist/cli/program/build-program.js.map +1 -1
- package/dist/config/io.d.ts +13 -0
- package/dist/config/io.d.ts.map +1 -1
- package/dist/config/io.js.map +1 -1
- package/dist/core/agents-crud-ops.d.ts +15 -0
- package/dist/core/agents-crud-ops.d.ts.map +1 -0
- package/dist/core/agents-crud-ops.js +27 -0
- package/dist/core/agents-crud-ops.js.map +1 -0
- package/dist/core/agents-ops.d.ts +43 -0
- package/dist/core/agents-ops.d.ts.map +1 -0
- package/dist/core/agents-ops.js +117 -0
- package/dist/core/agents-ops.js.map +1 -0
- package/dist/core/channels-ops.d.ts +30 -0
- package/dist/core/channels-ops.d.ts.map +1 -0
- package/dist/core/channels-ops.js +52 -0
- package/dist/core/channels-ops.js.map +1 -0
- package/dist/core/config-ops.d.ts +77 -0
- package/dist/core/config-ops.d.ts.map +1 -0
- package/dist/core/config-ops.js +241 -0
- package/dist/core/config-ops.js.map +1 -0
- package/dist/core/exec-ops.d.ts +48 -0
- package/dist/core/exec-ops.d.ts.map +1 -0
- package/dist/core/exec-ops.js +101 -0
- package/dist/core/exec-ops.js.map +1 -0
- package/dist/core/gateway-auth.d.ts +86 -0
- package/dist/core/gateway-auth.d.ts.map +1 -0
- package/dist/core/gateway-auth.js +156 -0
- package/dist/core/gateway-auth.js.map +1 -0
- package/dist/core/gateway-probe.d.ts +5 -0
- package/dist/core/gateway-probe.d.ts.map +1 -1
- package/dist/core/gateway-probe.js +2 -1
- package/dist/core/gateway-probe.js.map +1 -1
- package/dist/core/gateway-spawn.d.ts.map +1 -1
- package/dist/core/gateway-spawn.js +5 -2
- package/dist/core/gateway-spawn.js.map +1 -1
- package/dist/core/integrations-ops.d.ts +25 -0
- package/dist/core/integrations-ops.d.ts.map +1 -0
- package/dist/core/integrations-ops.js +40 -0
- package/dist/core/integrations-ops.js.map +1 -0
- package/dist/core/memory-ops.d.ts +20 -0
- package/dist/core/memory-ops.d.ts.map +1 -0
- package/dist/core/memory-ops.js +40 -0
- package/dist/core/memory-ops.js.map +1 -0
- package/dist/core/pairing-ops.d.ts +33 -0
- package/dist/core/pairing-ops.d.ts.map +1 -0
- package/dist/core/pairing-ops.js +78 -0
- package/dist/core/pairing-ops.js.map +1 -0
- package/dist/core/provider-ops.d.ts +17 -0
- package/dist/core/provider-ops.d.ts.map +1 -0
- package/dist/core/provider-ops.js +29 -0
- package/dist/core/provider-ops.js.map +1 -0
- package/dist/core/server.d.ts.map +1 -1
- package/dist/core/server.js +112 -1
- package/dist/core/server.js.map +1 -1
- package/dist/core/sessions-ops.d.ts +25 -0
- package/dist/core/sessions-ops.d.ts.map +1 -0
- package/dist/core/sessions-ops.js +77 -0
- package/dist/core/sessions-ops.js.map +1 -0
- package/dist/core/skills-ops.d.ts +14 -0
- package/dist/core/skills-ops.d.ts.map +1 -0
- package/dist/core/skills-ops.js +28 -0
- package/dist/core/skills-ops.js.map +1 -0
- package/dist/core/tunnel/auth-proxy.d.ts +3 -2
- package/dist/core/tunnel/auth-proxy.d.ts.map +1 -1
- package/dist/core/tunnel/auth-proxy.js +8 -34
- package/dist/core/tunnel/auth-proxy.js.map +1 -1
- package/dist/core/tunnel/manager.d.ts +4 -2
- package/dist/core/tunnel/manager.d.ts.map +1 -1
- package/dist/core/tunnel/manager.js +3 -2
- package/dist/core/tunnel/manager.js.map +1 -1
- package/dist/protocol/methods.d.ts +478 -0
- package/dist/protocol/methods.d.ts.map +1 -1
- package/dist/tui/client.d.ts +8 -0
- package/dist/tui/client.d.ts.map +1 -1
- package/dist/tui/client.js +5 -1
- package/dist/tui/client.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -306,6 +306,14 @@ by a per-agent approval allowlist (`brigade exec`). Secrets in config use `${VAR
|
|
|
306
306
|
references that resolve at read time and are never persisted resolved. Optional
|
|
307
307
|
**AES-256-GCM at-rest encryption** in Convex mode (`brigade encrypt`).
|
|
308
308
|
|
|
309
|
+
**Optional gateway tokens.** The gateway is unauthenticated and localhost-only by
|
|
310
|
+
default — ideal for a single machine. Want more? Add one or more access tokens
|
|
311
|
+
(`brigade gateway token new`) and every connection must then present a valid one
|
|
312
|
+
(`Authorization: Bearer`, `x-brigade-token`, or `?token=`). **Multiple tokens** are
|
|
313
|
+
supported, so you can hand a distinct token to each device and revoke one without
|
|
314
|
+
disturbing the rest, and the same tokens secure `brigade expose`. Entirely opt-in:
|
|
315
|
+
with no tokens configured, nothing changes.
|
|
316
|
+
|
|
309
317
|
### 🔀 Carrow — cross-model continuity
|
|
310
318
|
Switch models mid-conversation **without losing context**. Carrow carries the full
|
|
311
319
|
transcript onto the new model (it's the same session), **re-anchors your thinking
|
|
@@ -365,6 +373,7 @@ principle is the same: *independent verification, never the agent judging itself
|
|
|
365
373
|
| `brigade gateway install` · `uninstall` | Install/remove as a system service (launchd / systemd / Task Scheduler) |
|
|
366
374
|
| `brigade gateway supervise` | Out-of-process crash watchdog (respawns a wedged gateway) |
|
|
367
375
|
| `brigade expose` · `expose stop` | Publish the gateway to the public internet via a secure, token-gated tunnel (alias: `bloody benchmark`) |
|
|
376
|
+
| `brigade gateway token new` · `list` · `add` · `revoke` | Manage **optional** access tokens (multiple supported). No tokens → the gateway stays unauthenticated + localhost-only |
|
|
368
377
|
|
|
369
378
|
### Agents
|
|
370
379
|
|
|
@@ -442,6 +451,10 @@ brigade gateway stop
|
|
|
442
451
|
brigade gateway restart
|
|
443
452
|
brigade gateway install # install as a system service (launchd / systemd / Task Scheduler)
|
|
444
453
|
brigade gateway supervise # out-of-process crash watchdog
|
|
454
|
+
|
|
455
|
+
brigade gateway token new # generate + store an access token (printed once)
|
|
456
|
+
brigade gateway token list # show configured tokens (masked) + whether auth is on
|
|
457
|
+
brigade gateway token revoke 1 # remove a token by its number (or its exact value)
|
|
445
458
|
```
|
|
446
459
|
|
|
447
460
|
| Flag | Default | Notes |
|
|
@@ -452,6 +465,13 @@ brigade gateway supervise # out-of-process crash watchdog
|
|
|
452
465
|
| `--quiet` | off | Suppress the live console stream |
|
|
453
466
|
| `--log-level X` | `info` | `debug` / `info` / `warn` / `error` |
|
|
454
467
|
|
|
468
|
+
**Optional authentication.** By default the gateway is unauthenticated and refuses to
|
|
469
|
+
bind anywhere but loopback. To require a token, run `brigade gateway token new` (repeat
|
|
470
|
+
for multiple tokens) and restart the gateway. On the same machine, clients read the
|
|
471
|
+
token from config automatically; elsewhere pass `--token <t>` or set
|
|
472
|
+
`BRIGADE_GATEWAY_TOKEN`. `BRIGADE_GATEWAY_TOKENS` (comma-separated) adds tokens via the
|
|
473
|
+
environment. Remove every token to return to open, localhost-only mode.
|
|
474
|
+
|
|
455
475
|
### `brigade connect`
|
|
456
476
|
|
|
457
477
|
Attaches a TUI to a running gateway. Same chat experience as `brigade`, but the
|
package/convex/logs.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export declare const appendSessionEvent: import("convex/server").RegisteredMutation<"public", {
|
|
2
2
|
toolName?: string | undefined;
|
|
3
|
+
role?: string | undefined;
|
|
3
4
|
content?: ArrayBuffer | undefined;
|
|
4
5
|
args?: ArrayBuffer | undefined;
|
|
5
6
|
aborted?: boolean | undefined;
|
|
6
7
|
inner?: string | undefined;
|
|
7
8
|
delta?: string | undefined;
|
|
8
|
-
role?: string | undefined;
|
|
9
9
|
stopReason?: string | undefined;
|
|
10
10
|
errorMessage?: string | undefined;
|
|
11
11
|
toolCallId?: string | undefined;
|
|
@@ -33,12 +33,12 @@ export declare const readSessionEventTail: import("convex/server").RegisteredQue
|
|
|
33
33
|
_id: import("convex/values").GenericId<"sessionEvents">;
|
|
34
34
|
_creationTime: number;
|
|
35
35
|
toolName?: string | undefined;
|
|
36
|
+
role?: string | undefined;
|
|
36
37
|
content?: ArrayBuffer | undefined;
|
|
37
38
|
args?: ArrayBuffer | undefined;
|
|
38
39
|
aborted?: boolean | undefined;
|
|
39
40
|
inner?: string | undefined;
|
|
40
41
|
delta?: string | undefined;
|
|
41
|
-
role?: string | undefined;
|
|
42
42
|
stopReason?: string | undefined;
|
|
43
43
|
errorMessage?: string | undefined;
|
|
44
44
|
toolCallId?: string | undefined;
|
|
@@ -65,12 +65,12 @@ export declare const findLastError: import("convex/server").RegisteredQuery<"pub
|
|
|
65
65
|
_id: import("convex/values").GenericId<"sessionEvents">;
|
|
66
66
|
_creationTime: number;
|
|
67
67
|
toolName?: string | undefined;
|
|
68
|
+
role?: string | undefined;
|
|
68
69
|
content?: ArrayBuffer | undefined;
|
|
69
70
|
args?: ArrayBuffer | undefined;
|
|
70
71
|
aborted?: boolean | undefined;
|
|
71
72
|
inner?: string | undefined;
|
|
72
73
|
delta?: string | undefined;
|
|
73
|
-
role?: string | undefined;
|
|
74
74
|
stopReason?: string | undefined;
|
|
75
75
|
errorMessage?: string | undefined;
|
|
76
76
|
toolCallId?: string | undefined;
|
package/convex/memory.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare const listFacts: import("convex/server").RegisteredQuery<"public"
|
|
|
7
7
|
_creationTime: number;
|
|
8
8
|
metadata?: any;
|
|
9
9
|
status?: "asserted" | "provisional" | "confirmed" | "disputed" | "retracted" | undefined;
|
|
10
|
-
sourceType?: "user_instruction" | "owner_message" | "channel_message" | "tool_output" | "retrieved_document" | "compaction" | "extraction" |
|
|
10
|
+
sourceType?: "dream" | "user_instruction" | "owner_message" | "channel_message" | "tool_output" | "retrieved_document" | "compaction" | "extraction" | undefined;
|
|
11
11
|
sourceTurn?: string | undefined;
|
|
12
12
|
supersedes?: string[] | undefined;
|
|
13
13
|
links?: {
|
|
@@ -30,11 +30,11 @@ export declare const listFacts: import("convex/server").RegisteredQuery<"public"
|
|
|
30
30
|
createdBySessionKey?: string | undefined;
|
|
31
31
|
createdByAccountId?: string | undefined;
|
|
32
32
|
createdAt: number;
|
|
33
|
-
memoryId: string;
|
|
34
33
|
content: ArrayBuffer;
|
|
34
|
+
memoryId: string;
|
|
35
35
|
segment: "project" | "context" | "identity" | "preference" | "correction" | "relationship" | "knowledge";
|
|
36
|
-
tier: "short" | "long" | "permanent";
|
|
37
36
|
importance: number;
|
|
37
|
+
tier: "short" | "long" | "permanent";
|
|
38
38
|
decayRate: number;
|
|
39
39
|
accessCount: number;
|
|
40
40
|
lastAccessedAt: number;
|
|
@@ -44,7 +44,7 @@ export declare const listFacts: import("convex/server").RegisteredQuery<"public"
|
|
|
44
44
|
export declare const writeFact: import("convex/server").RegisteredMutation<"public", {
|
|
45
45
|
metadata?: any;
|
|
46
46
|
status?: "asserted" | "provisional" | "confirmed" | "disputed" | "retracted" | undefined;
|
|
47
|
-
sourceType?: "user_instruction" | "owner_message" | "channel_message" | "tool_output" | "retrieved_document" | "compaction" | "extraction" |
|
|
47
|
+
sourceType?: "dream" | "user_instruction" | "owner_message" | "channel_message" | "tool_output" | "retrieved_document" | "compaction" | "extraction" | undefined;
|
|
48
48
|
sourceTurn?: string | undefined;
|
|
49
49
|
supersedes?: string[] | undefined;
|
|
50
50
|
links?: {
|
|
@@ -66,11 +66,11 @@ export declare const writeFact: import("convex/server").RegisteredMutation<"publ
|
|
|
66
66
|
createdByConversationId?: string | undefined;
|
|
67
67
|
createdBySessionKey?: string | undefined;
|
|
68
68
|
createdByAccountId?: string | undefined;
|
|
69
|
-
memoryId: string;
|
|
70
69
|
content: ArrayBuffer;
|
|
70
|
+
memoryId: string;
|
|
71
71
|
segment: "project" | "context" | "identity" | "preference" | "correction" | "relationship" | "knowledge";
|
|
72
|
-
tier: "short" | "long" | "permanent";
|
|
73
72
|
importance: number;
|
|
73
|
+
tier: "short" | "long" | "permanent";
|
|
74
74
|
decayRate: number;
|
|
75
75
|
workspaceId: string;
|
|
76
76
|
}, Promise<{
|
|
@@ -78,7 +78,7 @@ export declare const writeFact: import("convex/server").RegisteredMutation<"publ
|
|
|
78
78
|
_creationTime: number;
|
|
79
79
|
metadata?: any;
|
|
80
80
|
status?: "asserted" | "provisional" | "confirmed" | "disputed" | "retracted" | undefined;
|
|
81
|
-
sourceType?: "user_instruction" | "owner_message" | "channel_message" | "tool_output" | "retrieved_document" | "compaction" | "extraction" |
|
|
81
|
+
sourceType?: "dream" | "user_instruction" | "owner_message" | "channel_message" | "tool_output" | "retrieved_document" | "compaction" | "extraction" | undefined;
|
|
82
82
|
sourceTurn?: string | undefined;
|
|
83
83
|
supersedes?: string[] | undefined;
|
|
84
84
|
links?: {
|
|
@@ -101,11 +101,11 @@ export declare const writeFact: import("convex/server").RegisteredMutation<"publ
|
|
|
101
101
|
createdBySessionKey?: string | undefined;
|
|
102
102
|
createdByAccountId?: string | undefined;
|
|
103
103
|
createdAt: number;
|
|
104
|
-
memoryId: string;
|
|
105
104
|
content: ArrayBuffer;
|
|
105
|
+
memoryId: string;
|
|
106
106
|
segment: "project" | "context" | "identity" | "preference" | "correction" | "relationship" | "knowledge";
|
|
107
|
-
tier: "short" | "long" | "permanent";
|
|
108
107
|
importance: number;
|
|
108
|
+
tier: "short" | "long" | "permanent";
|
|
109
109
|
decayRate: number;
|
|
110
110
|
accessCount: number;
|
|
111
111
|
lastAccessedAt: number;
|
|
@@ -123,7 +123,7 @@ export declare const listAllFacts: import("convex/server").RegisteredQuery<"publ
|
|
|
123
123
|
_creationTime: number;
|
|
124
124
|
metadata?: any;
|
|
125
125
|
status?: "asserted" | "provisional" | "confirmed" | "disputed" | "retracted" | undefined;
|
|
126
|
-
sourceType?: "user_instruction" | "owner_message" | "channel_message" | "tool_output" | "retrieved_document" | "compaction" | "extraction" |
|
|
126
|
+
sourceType?: "dream" | "user_instruction" | "owner_message" | "channel_message" | "tool_output" | "retrieved_document" | "compaction" | "extraction" | undefined;
|
|
127
127
|
sourceTurn?: string | undefined;
|
|
128
128
|
supersedes?: string[] | undefined;
|
|
129
129
|
links?: {
|
|
@@ -146,11 +146,11 @@ export declare const listAllFacts: import("convex/server").RegisteredQuery<"publ
|
|
|
146
146
|
createdBySessionKey?: string | undefined;
|
|
147
147
|
createdByAccountId?: string | undefined;
|
|
148
148
|
createdAt: number;
|
|
149
|
-
memoryId: string;
|
|
150
149
|
content: ArrayBuffer;
|
|
150
|
+
memoryId: string;
|
|
151
151
|
segment: "project" | "context" | "identity" | "preference" | "correction" | "relationship" | "knowledge";
|
|
152
|
-
tier: "short" | "long" | "permanent";
|
|
153
152
|
importance: number;
|
|
153
|
+
tier: "short" | "long" | "permanent";
|
|
154
154
|
decayRate: number;
|
|
155
155
|
accessCount: number;
|
|
156
156
|
lastAccessedAt: number;
|
|
@@ -163,7 +163,7 @@ export declare const listAllFacts: import("convex/server").RegisteredQuery<"publ
|
|
|
163
163
|
export declare const upsertFactRecord: import("convex/server").RegisteredMutation<"public", {
|
|
164
164
|
metadata?: any;
|
|
165
165
|
status?: "asserted" | "provisional" | "confirmed" | "disputed" | "retracted" | undefined;
|
|
166
|
-
sourceType?: "user_instruction" | "owner_message" | "channel_message" | "tool_output" | "retrieved_document" | "compaction" | "extraction" |
|
|
166
|
+
sourceType?: "dream" | "user_instruction" | "owner_message" | "channel_message" | "tool_output" | "retrieved_document" | "compaction" | "extraction" | undefined;
|
|
167
167
|
sourceTurn?: string | undefined;
|
|
168
168
|
supersedes?: string[] | undefined;
|
|
169
169
|
links?: {
|
|
@@ -186,11 +186,11 @@ export declare const upsertFactRecord: import("convex/server").RegisteredMutatio
|
|
|
186
186
|
createdBySessionKey?: string | undefined;
|
|
187
187
|
createdByAccountId?: string | undefined;
|
|
188
188
|
createdAt: number;
|
|
189
|
-
memoryId: string;
|
|
190
189
|
content: ArrayBuffer;
|
|
190
|
+
memoryId: string;
|
|
191
191
|
segment: "project" | "context" | "identity" | "preference" | "correction" | "relationship" | "knowledge";
|
|
192
|
-
tier: "short" | "long" | "permanent";
|
|
193
192
|
importance: number;
|
|
193
|
+
tier: "short" | "long" | "permanent";
|
|
194
194
|
decayRate: number;
|
|
195
195
|
accessCount: number;
|
|
196
196
|
lastAccessedAt: number;
|
|
@@ -273,7 +273,7 @@ export declare const searchContent: import("convex/server").RegisteredQuery<"pub
|
|
|
273
273
|
_creationTime: number;
|
|
274
274
|
metadata?: any;
|
|
275
275
|
status?: "asserted" | "provisional" | "confirmed" | "disputed" | "retracted" | undefined;
|
|
276
|
-
sourceType?: "user_instruction" | "owner_message" | "channel_message" | "tool_output" | "retrieved_document" | "compaction" | "extraction" |
|
|
276
|
+
sourceType?: "dream" | "user_instruction" | "owner_message" | "channel_message" | "tool_output" | "retrieved_document" | "compaction" | "extraction" | undefined;
|
|
277
277
|
sourceTurn?: string | undefined;
|
|
278
278
|
supersedes?: string[] | undefined;
|
|
279
279
|
links?: {
|
|
@@ -296,11 +296,11 @@ export declare const searchContent: import("convex/server").RegisteredQuery<"pub
|
|
|
296
296
|
createdBySessionKey?: string | undefined;
|
|
297
297
|
createdByAccountId?: string | undefined;
|
|
298
298
|
createdAt: number;
|
|
299
|
-
memoryId: string;
|
|
300
299
|
content: ArrayBuffer;
|
|
300
|
+
memoryId: string;
|
|
301
301
|
segment: "project" | "context" | "identity" | "preference" | "correction" | "relationship" | "knowledge";
|
|
302
|
-
tier: "short" | "long" | "permanent";
|
|
303
302
|
importance: number;
|
|
303
|
+
tier: "short" | "long" | "permanent";
|
|
304
304
|
decayRate: number;
|
|
305
305
|
accessCount: number;
|
|
306
306
|
lastAccessedAt: number;
|
|
@@ -317,7 +317,7 @@ export declare const findSimilar: import("convex/server").RegisteredQuery<"publi
|
|
|
317
317
|
_creationTime: number;
|
|
318
318
|
metadata?: any;
|
|
319
319
|
status?: "asserted" | "provisional" | "confirmed" | "disputed" | "retracted" | undefined;
|
|
320
|
-
sourceType?: "user_instruction" | "owner_message" | "channel_message" | "tool_output" | "retrieved_document" | "compaction" | "extraction" |
|
|
320
|
+
sourceType?: "dream" | "user_instruction" | "owner_message" | "channel_message" | "tool_output" | "retrieved_document" | "compaction" | "extraction" | undefined;
|
|
321
321
|
sourceTurn?: string | undefined;
|
|
322
322
|
supersedes?: string[] | undefined;
|
|
323
323
|
links?: {
|
|
@@ -340,11 +340,11 @@ export declare const findSimilar: import("convex/server").RegisteredQuery<"publi
|
|
|
340
340
|
createdBySessionKey?: string | undefined;
|
|
341
341
|
createdByAccountId?: string | undefined;
|
|
342
342
|
createdAt: number;
|
|
343
|
-
memoryId: string;
|
|
344
343
|
content: ArrayBuffer;
|
|
344
|
+
memoryId: string;
|
|
345
345
|
segment: "project" | "context" | "identity" | "preference" | "correction" | "relationship" | "knowledge";
|
|
346
|
-
tier: "short" | "long" | "permanent";
|
|
347
346
|
importance: number;
|
|
347
|
+
tier: "short" | "long" | "permanent";
|
|
348
348
|
decayRate: number;
|
|
349
349
|
accessCount: number;
|
|
350
350
|
lastAccessedAt: number;
|
package/convex/schema.d.ts
CHANGED
|
@@ -135,7 +135,7 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
135
135
|
memoryFacts: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
136
136
|
metadata?: any;
|
|
137
137
|
status?: "asserted" | "provisional" | "confirmed" | "disputed" | "retracted" | undefined;
|
|
138
|
-
sourceType?: "user_instruction" | "owner_message" | "channel_message" | "tool_output" | "retrieved_document" | "compaction" | "extraction" |
|
|
138
|
+
sourceType?: "dream" | "user_instruction" | "owner_message" | "channel_message" | "tool_output" | "retrieved_document" | "compaction" | "extraction" | undefined;
|
|
139
139
|
sourceTurn?: string | undefined;
|
|
140
140
|
supersedes?: string[] | undefined;
|
|
141
141
|
links?: {
|
|
@@ -158,11 +158,11 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
158
158
|
createdBySessionKey?: string | undefined;
|
|
159
159
|
createdByAccountId?: string | undefined;
|
|
160
160
|
createdAt: number;
|
|
161
|
-
memoryId: string;
|
|
162
161
|
content: ArrayBuffer;
|
|
162
|
+
memoryId: string;
|
|
163
163
|
segment: "project" | "context" | "identity" | "preference" | "correction" | "relationship" | "knowledge";
|
|
164
|
-
tier: "short" | "long" | "permanent";
|
|
165
164
|
importance: number;
|
|
165
|
+
tier: "short" | "long" | "permanent";
|
|
166
166
|
decayRate: number;
|
|
167
167
|
accessCount: number;
|
|
168
168
|
lastAccessedAt: number;
|
|
@@ -187,7 +187,7 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
187
187
|
createdByConversationId: import("convex/values").VString<string | undefined, "optional">;
|
|
188
188
|
createdBySessionKey: import("convex/values").VString<string | undefined, "optional">;
|
|
189
189
|
createdByAccountId: import("convex/values").VString<string | undefined, "optional">;
|
|
190
|
-
sourceType: import("convex/values").VUnion<"user_instruction" | "owner_message" | "channel_message" | "tool_output" | "retrieved_document" | "compaction" | "extraction" |
|
|
190
|
+
sourceType: import("convex/values").VUnion<"dream" | "user_instruction" | "owner_message" | "channel_message" | "tool_output" | "retrieved_document" | "compaction" | "extraction" | undefined, [import("convex/values").VLiteral<"user_instruction", "required">, import("convex/values").VLiteral<"owner_message", "required">, import("convex/values").VLiteral<"channel_message", "required">, import("convex/values").VLiteral<"tool_output", "required">, import("convex/values").VLiteral<"retrieved_document", "required">, import("convex/values").VLiteral<"compaction", "required">, import("convex/values").VLiteral<"extraction", "required">, import("convex/values").VLiteral<"dream", "required">], "optional", never>;
|
|
191
191
|
links: import("convex/values").VArray<{
|
|
192
192
|
reason?: string | undefined;
|
|
193
193
|
strength?: number | undefined;
|
|
@@ -214,7 +214,7 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
214
214
|
subjectKey: import("convex/values").VString<string | undefined, "optional">;
|
|
215
215
|
metadata: import("convex/values").VAny<any, "optional", string>;
|
|
216
216
|
embedding: import("convex/values").VArray<number[] | undefined, import("convex/values").VFloat64<number, "required">, "optional">;
|
|
217
|
-
}, "required", "metadata" | "createdAt" | "status" | "
|
|
217
|
+
}, "required", "metadata" | "createdAt" | "status" | "content" | "memoryId" | "segment" | "importance" | "sourceType" | "tier" | "decayRate" | "accessCount" | "lastAccessedAt" | "sourceTurn" | "supersedes" | "lifecycle" | "links" | "validFrom" | "validTo" | "confidence" | "sourcePointers" | "embedding" | "modality" | "mediaPointer" | "subjectKey" | "workspaceId" | "createdByKind" | "createdByChannelId" | "createdByConversationId" | "createdBySessionKey" | "createdByAccountId" | `metadata.${string}`>, {
|
|
218
218
|
by_workspace_lifecycle_createdAt: ["workspaceId", "lifecycle", "createdAt", "_creationTime"];
|
|
219
219
|
by_workspace_memoryId: ["workspaceId", "memoryId", "_creationTime"];
|
|
220
220
|
by_workspace_segment_lifecycle: ["workspaceId", "segment", "lifecycle", "_creationTime"];
|
|
@@ -371,12 +371,12 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
371
371
|
}, {}, {}>;
|
|
372
372
|
sessionEvents: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
373
373
|
toolName?: string | undefined;
|
|
374
|
+
role?: string | undefined;
|
|
374
375
|
content?: ArrayBuffer | undefined;
|
|
375
376
|
args?: ArrayBuffer | undefined;
|
|
376
377
|
aborted?: boolean | undefined;
|
|
377
378
|
inner?: string | undefined;
|
|
378
379
|
delta?: string | undefined;
|
|
379
|
-
role?: string | undefined;
|
|
380
380
|
stopReason?: string | undefined;
|
|
381
381
|
errorMessage?: string | undefined;
|
|
382
382
|
toolCallId?: string | undefined;
|
|
@@ -421,7 +421,7 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
421
421
|
messageCount: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
422
422
|
success: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
423
423
|
finalError: import("convex/values").VString<string | undefined, "optional">;
|
|
424
|
-
}, "required", "type" | "agentId" | "sessionKey" | "toolName" | "content" | "ts" | "args" | "aborted" | "inner" | "delta" | "
|
|
424
|
+
}, "required", "type" | "agentId" | "sessionKey" | "toolName" | "role" | "content" | "ts" | "args" | "aborted" | "inner" | "delta" | "stopReason" | "errorMessage" | "toolCallId" | "isError" | "result" | "attempt" | "maxAttempts" | "delayMs" | "success" | "finalError" | "willRetry" | "messageCount" | "day" | "ownerId">, {
|
|
425
425
|
by_owner_day: ["ownerId", "day", "_creationTime"];
|
|
426
426
|
by_owner_session: ["ownerId", "sessionKey", "ts", "_creationTime"];
|
|
427
427
|
by_owner_error: ["ownerId", "isError", "ts", "_creationTime"];
|
|
@@ -859,10 +859,10 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
859
859
|
source: "bundled" | "config" | "managed" | "personal" | "project" | "workspace";
|
|
860
860
|
description: string;
|
|
861
861
|
createdAt: number;
|
|
862
|
+
body: string;
|
|
862
863
|
ownerId: string;
|
|
863
864
|
updatedAt: number;
|
|
864
865
|
frontmatter: string;
|
|
865
|
-
body: string;
|
|
866
866
|
eligibility: {
|
|
867
867
|
os: string[];
|
|
868
868
|
requiresBins: string[];
|
|
@@ -895,7 +895,7 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
895
895
|
disableModelInvocation: import("convex/values").VBoolean<boolean, "required">;
|
|
896
896
|
createdAt: import("convex/values").VFloat64<number, "required">;
|
|
897
897
|
updatedAt: import("convex/values").VFloat64<number, "required">;
|
|
898
|
-
}, "required", "agentId" | "name" | "source" | "description" | "createdAt" | "
|
|
898
|
+
}, "required", "agentId" | "name" | "source" | "description" | "createdAt" | "body" | "ownerId" | "updatedAt" | "frontmatter" | "eligibility" | "disableModelInvocation" | "eligibility.os" | "eligibility.requiresBins" | "eligibility.requiresAnyBins" | "eligibility.requiresEnv" | "eligibility.requiresConfig">, {
|
|
899
899
|
by_owner_name: ["ownerId", "name", "_creationTime"];
|
|
900
900
|
by_owner_scope_name: ["ownerId", "source", "agentId", "name", "_creationTime"];
|
|
901
901
|
by_owner_source: ["ownerId", "source", "_creationTime"];
|
package/convex/skills.d.ts
CHANGED
|
@@ -10,10 +10,10 @@ export declare const list: import("convex/server").RegisteredQuery<"public", {
|
|
|
10
10
|
source: "bundled" | "config" | "managed" | "personal" | "project" | "workspace";
|
|
11
11
|
description: string;
|
|
12
12
|
createdAt: number;
|
|
13
|
+
body: string;
|
|
13
14
|
ownerId: string;
|
|
14
15
|
updatedAt: number;
|
|
15
16
|
frontmatter: string;
|
|
16
|
-
body: string;
|
|
17
17
|
eligibility: {
|
|
18
18
|
os: string[];
|
|
19
19
|
requiresBins: string[];
|
|
@@ -34,10 +34,10 @@ export declare const get: import("convex/server").RegisteredQuery<"public", {
|
|
|
34
34
|
source: "bundled" | "config" | "managed" | "personal" | "project" | "workspace";
|
|
35
35
|
description: string;
|
|
36
36
|
createdAt: number;
|
|
37
|
+
body: string;
|
|
37
38
|
ownerId: string;
|
|
38
39
|
updatedAt: number;
|
|
39
40
|
frontmatter: string;
|
|
40
|
-
body: string;
|
|
41
41
|
eligibility: {
|
|
42
42
|
os: string[];
|
|
43
43
|
requiresBins: string[];
|
|
@@ -52,9 +52,9 @@ export declare const upsert: import("convex/server").RegisteredMutation<"public"
|
|
|
52
52
|
name: string;
|
|
53
53
|
source: "bundled" | "config" | "managed" | "personal" | "project" | "workspace";
|
|
54
54
|
description: string;
|
|
55
|
+
body: string;
|
|
55
56
|
ownerId: string;
|
|
56
57
|
frontmatter: string;
|
|
57
|
-
body: string;
|
|
58
58
|
eligibility: {
|
|
59
59
|
os: string[];
|
|
60
60
|
requiresBins: string[];
|
package/dist/buildstamp.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"builtAt":
|
|
1
|
+
{"builtAt":1782494628001,"head":"0bb31be61f20c7c0a1de17024a71ea185306c42a","version":"1.14.0"}
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `brigade config <list|get|set|unset|file>` — config CRUD
|
|
2
|
+
* `brigade config <list|get|set|unset|file|schema|validate>` — config CRUD
|
|
3
|
+
* over brigade.json.
|
|
3
4
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* -
|
|
10
|
-
*
|
|
11
|
-
* - Atomic write +
|
|
12
|
-
* `writeBrigadeConfig` — no extra wiring needed.
|
|
5
|
+
* The path parsing, nested get/set/delete, value parsing, and secret redaction
|
|
6
|
+
* all live in `core/config-ops.ts` — SHARED with the `config.*` gateway RPCs so
|
|
7
|
+
* the CLI and a remote client mutate config (and redact secrets) identically.
|
|
8
|
+
* This file is the thin CLI shell: arg handling + stdout/exit-code formatting.
|
|
9
|
+
*
|
|
10
|
+
* - Dot-notation paths (+ escaped dots + bracket indices/keys).
|
|
11
|
+
* - JSON5 parsing for `set` values when --strict-json is off, raw-string fallback.
|
|
12
|
+
* - Atomic write + .bak rotation inherited from `saveConfig`.
|
|
13
13
|
* - Secrets redaction in `list`/`get`: any segment matching
|
|
14
|
-
* /^(key|apiKey|token|password|secret)$/i
|
|
15
|
-
* as `__BRIGADE_REDACTED__`.
|
|
14
|
+
* /^(key|apiKey|token|password|secret|...)$/i renders as `__BRIGADE_REDACTED__`.
|
|
16
15
|
*
|
|
17
16
|
* On-disk path: `~/.brigade/brigade.json` (resolved via BRIGADE_DIR).
|
|
18
17
|
*/
|
|
@@ -41,19 +40,13 @@ export declare function runConfigFile(opts?: {
|
|
|
41
40
|
/**
|
|
42
41
|
* Print the brigade.json TypeBox schema as JSON — useful for IDE /
|
|
43
42
|
* external-tool autocompletion against the live shape.
|
|
44
|
-
*
|
|
45
|
-
* The output is the in-memory TypeBox schema descriptor (with `type`,
|
|
46
|
-
* `properties`, `required`, etc.) — JSON-Schema-compatible enough to feed
|
|
47
|
-
* into a JSON-Schema-aware editor.
|
|
48
43
|
*/
|
|
49
44
|
export declare function runConfigSchema(_opts?: {}): Promise<number>;
|
|
50
45
|
/**
|
|
51
46
|
* Validate the on-disk brigade.json against the TypeBox schema. Reports a
|
|
52
47
|
* pass/fail line plus per-issue path + message when invalid.
|
|
53
48
|
*
|
|
54
|
-
* Exit codes:
|
|
55
|
-
* 0 — config is valid (or doesn't exist yet — empty file is benign)
|
|
56
|
-
* 1 — config is invalid; issues listed
|
|
49
|
+
* Exit codes: 0 — valid (or absent); 1 — invalid (issues listed).
|
|
57
50
|
*/
|
|
58
51
|
export declare function runConfigValidate(opts?: {
|
|
59
52
|
json?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-cmd.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/config-cmd.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"config-cmd.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/config-cmd.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAKH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAiBzC,MAAM,WAAW,gBAAgB;IAChC,IAAI,CAAC,EAAE,OAAO,CAAC;CACf;AACD,MAAM,WAAW,gBAAgB;IAChC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,MAAM,CAAC,EAAE,OAAO,CAAC;CACjB;AACD,MAAM,WAAW,iBAAiB;IACjC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB;AAID,wBAAsB,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,GAAE,gBAAqB,GAAG,OAAO,CAAC,MAAM,CAAC,CAoBhG;AAED,wBAAsB,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,GAAE,gBAAqB,GAAG,OAAO,CAAC,MAAM,CAAC,CA8BlH;AAED,wBAAsB,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,GAAE;IAAE,IAAI,CAAC,EAAE,OAAO,CAAA;CAAO,GAAG,OAAO,CAAC,MAAM,CAAC,CAsBpG;AAED,wBAAsB,aAAa,CAAC,IAAI,GAAE,iBAAsB,GAAG,OAAO,CAAC,MAAM,CAAC,CAUjF;AAED,wBAAsB,aAAa,CAAC,IAAI,GAAE;IAAE,IAAI,CAAC,EAAE,OAAO,CAAA;CAAO,GAAG,OAAO,CAAC,MAAM,CAAC,CAQlF;AAED;;;GAGG;AACH,wBAAsB,eAAe,CAAC,KAAK,GAAE,EAAO,GAAG,OAAO,CAAC,MAAM,CAAC,CAGrE;AAED;;;;;GAKG;AACH,wBAAsB,iBAAiB,CAAC,IAAI,GAAE;IAAE,IAAI,CAAC,EAAE,OAAO,CAAA;CAAO,GAAG,OAAO,CAAC,MAAM,CAAC,CAuCtF;AAID,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAsD5D"}
|