@cogitator-ai/bridge 0.4.0 → 0.5.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 +72 -23
- package/dist/adapter.d.ts +2 -1
- package/dist/adapter.d.ts.map +1 -1
- package/dist/adapters/hosted.d.ts +36 -4
- package/dist/adapters/hosted.d.ts.map +1 -1
- package/dist/adapters/hosted.js +188 -9
- package/dist/adapters/hosted.js.map +1 -1
- package/dist/client.d.ts +16 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +24 -1
- package/dist/client.js.map +1 -1
- package/dist/dispatcher.d.ts +113 -3
- package/dist/dispatcher.d.ts.map +1 -1
- package/dist/dispatcher.js +493 -23
- package/dist/dispatcher.js.map +1 -1
- package/dist/errors.d.ts +1 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js.map +1 -1
- package/dist/guards.d.ts +3 -2
- package/dist/guards.d.ts.map +1 -1
- package/dist/guards.js +4 -3
- package/dist/guards.js.map +1 -1
- package/dist/host.d.ts +9 -0
- package/dist/host.d.ts.map +1 -1
- package/dist/host.js +2 -0
- package/dist/host.js.map +1 -1
- package/dist/index.d.ts +11 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/dist/inputs.d.ts +76 -1
- package/dist/inputs.d.ts.map +1 -1
- package/dist/inputs.js +31 -1
- package/dist/inputs.js.map +1 -1
- package/dist/job-record.d.ts +1 -0
- package/dist/job-record.d.ts.map +1 -1
- package/dist/job-record.js +1 -0
- package/dist/job-record.js.map +1 -1
- package/dist/letters.d.ts.map +1 -1
- package/dist/letters.js +23 -1
- package/dist/letters.js.map +1 -1
- package/dist/person-channel.d.ts +45 -0
- package/dist/person-channel.d.ts.map +1 -0
- package/dist/person-channel.js +154 -0
- package/dist/person-channel.js.map +1 -0
- package/dist/person-inbox.d.ts +30 -0
- package/dist/person-inbox.d.ts.map +1 -0
- package/dist/person-inbox.js +60 -0
- package/dist/person-inbox.js.map +1 -0
- package/dist/person.d.ts +52 -0
- package/dist/person.d.ts.map +1 -0
- package/dist/person.js +30 -0
- package/dist/person.js.map +1 -0
- package/dist/protocol.d.ts +6 -1
- package/dist/protocol.d.ts.map +1 -1
- package/dist/protocol.js +5 -1
- package/dist/protocol.js.map +1 -1
- package/dist/rights/index.d.ts +36 -0
- package/dist/rights/index.d.ts.map +1 -0
- package/dist/rights/index.js +186 -0
- package/dist/rights/index.js.map +1 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +9 -0
- package/dist/server.js.map +1 -1
- package/dist/store/sqlite.d.ts +6 -1
- package/dist/store/sqlite.d.ts.map +1 -1
- package/dist/store/sqlite.js +74 -18
- package/dist/store/sqlite.js.map +1 -1
- package/dist/store/store.d.ts +6 -2
- package/dist/store/store.d.ts.map +1 -1
- package/dist/tools/guidance.d.ts.map +1 -1
- package/dist/tools/guidance.js +1 -0
- package/dist/tools/guidance.js.map +1 -1
- package/dist/tools/tools.d.ts.map +1 -1
- package/dist/tools/tools.js +27 -4
- package/dist/tools/tools.js.map +1 -1
- package/dist/types.d.ts +81 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +29 -0
- package/dist/types.js.map +1 -1
- package/package.json +6 -1
package/dist/types.d.ts
CHANGED
|
@@ -3,6 +3,11 @@ import { z } from 'zod';
|
|
|
3
3
|
export declare const BRIDGE_JOB_KEY = "cogitator:bridge";
|
|
4
4
|
/** The sender of letters the bridge writes itself: reminders, and news of a job that ended. */
|
|
5
5
|
export declare const BRIDGE_SENDER = "bridge";
|
|
6
|
+
/**
|
|
7
|
+
* The person at the machine, as the sender of an answer they gave. No agent carries this name:
|
|
8
|
+
* a session cannot sign a letter with it
|
|
9
|
+
*/
|
|
10
|
+
export declare const PERSON = "person";
|
|
6
11
|
/** Harnesses the bridge knows by name. Any other string names a harness an adapter brings. */
|
|
7
12
|
export declare const HARNESSES: {
|
|
8
13
|
readonly claudeCode: "claude-code";
|
|
@@ -59,6 +64,12 @@ export interface AgentRecord {
|
|
|
59
64
|
registeredAt: string;
|
|
60
65
|
/** ISO 8601 time of the last call it made as an agent: a job, a letter, its inbox */
|
|
61
66
|
lastSeenAt: string;
|
|
67
|
+
/**
|
|
68
|
+
* The permission mode the session said it runs in the last time it told: `default`,
|
|
69
|
+
* `acceptEdits`, `plan` and so on, in the words of its harness. Absent for a harness that does
|
|
70
|
+
* not tell
|
|
71
|
+
*/
|
|
72
|
+
permissionMode?: string;
|
|
62
73
|
}
|
|
63
74
|
/** Who calls the bridge, as read from the caller's environment. */
|
|
64
75
|
export interface CallerIdentity {
|
|
@@ -72,6 +83,8 @@ export interface CallerIdentity {
|
|
|
72
83
|
sessionName?: string;
|
|
73
84
|
/** The name the bridge gave a session it started, handed to that session in its environment */
|
|
74
85
|
agentName?: string;
|
|
86
|
+
/** The permission mode the session runs in right now, when its harness tells */
|
|
87
|
+
permissionMode?: string;
|
|
75
88
|
}
|
|
76
89
|
/**
|
|
77
90
|
* The name of a harness: letters, digits, `.`, `_` and `-`, compared without regard to case and
|
|
@@ -85,6 +98,7 @@ export declare const CallerIdentitySchema: z.ZodObject<{
|
|
|
85
98
|
project: z.ZodOptional<z.ZodString>;
|
|
86
99
|
sessionName: z.ZodOptional<z.ZodString>;
|
|
87
100
|
agentName: z.ZodOptional<z.ZodString>;
|
|
101
|
+
permissionMode: z.ZodOptional<z.ZodString>;
|
|
88
102
|
}, z.core.$strict>;
|
|
89
103
|
/**
|
|
90
104
|
* The lifecycle of a job, the states of the A2A task under it: `submitted` (handed over, not
|
|
@@ -151,6 +165,11 @@ export interface BridgeJobRecord {
|
|
|
151
165
|
createdAt: string;
|
|
152
166
|
/** ISO 8601 time the job fails at when it is still running */
|
|
153
167
|
deadlineAt: string;
|
|
168
|
+
/**
|
|
169
|
+
* ISO 8601 time since which the job waits for the person, or a job handed over from inside
|
|
170
|
+
* it does. While it is set the deadline does not fail the job
|
|
171
|
+
*/
|
|
172
|
+
personWaitSince?: string;
|
|
154
173
|
/** Why the job failed or was canceled */
|
|
155
174
|
reason?: string;
|
|
156
175
|
verification?: JobVerification;
|
|
@@ -162,6 +181,52 @@ export interface BridgeJob extends BridgeJobRecord {
|
|
|
162
181
|
/** ISO 8601 time of its last change of state */
|
|
163
182
|
updatedAt: string;
|
|
164
183
|
}
|
|
184
|
+
/** What a call needs leave for, in the terms permission rules are written in. */
|
|
185
|
+
export type PermissionAccess = 'command' | 'read' | 'edit' | 'fetch' | 'other';
|
|
186
|
+
export declare const PERMISSION_ACCESSES: readonly PermissionAccess[];
|
|
187
|
+
/**
|
|
188
|
+
* A call an agent asks leave for, in a form the rules of any harness can judge. What a reader
|
|
189
|
+
* sees is the body of the letter that carries it
|
|
190
|
+
*/
|
|
191
|
+
export interface PermissionAsk {
|
|
192
|
+
/** The tool as the agent's harness names it: `Bash`, `Edit`, `mcp__github__create_issue` */
|
|
193
|
+
tool: string;
|
|
194
|
+
access: PermissionAccess;
|
|
195
|
+
/** Of a `command`: the command line */
|
|
196
|
+
command?: string;
|
|
197
|
+
/** Of a `command`: the folder it runs in */
|
|
198
|
+
cwd?: string;
|
|
199
|
+
/** Of a `command`: the environment variables it sets for itself */
|
|
200
|
+
env?: Record<string, string>;
|
|
201
|
+
/** Of a `read` or an `edit`: the files, absolute */
|
|
202
|
+
paths?: string[];
|
|
203
|
+
/** Of a `fetch`: the address */
|
|
204
|
+
url?: string;
|
|
205
|
+
}
|
|
206
|
+
export declare const PermissionAskSchema: z.ZodObject<{
|
|
207
|
+
tool: z.ZodString;
|
|
208
|
+
access: z.ZodEnum<{
|
|
209
|
+
command: "command";
|
|
210
|
+
read: "read";
|
|
211
|
+
edit: "edit";
|
|
212
|
+
fetch: "fetch";
|
|
213
|
+
other: "other";
|
|
214
|
+
}>;
|
|
215
|
+
command: z.ZodOptional<z.ZodString>;
|
|
216
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
217
|
+
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
218
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
219
|
+
url: z.ZodOptional<z.ZodString>;
|
|
220
|
+
}, z.core.$strict>;
|
|
221
|
+
/** The answer to a permission request. */
|
|
222
|
+
export type Verdict = 'allow' | 'deny';
|
|
223
|
+
export declare const VERDICTS: readonly Verdict[];
|
|
224
|
+
/**
|
|
225
|
+
* What the rules of the agent that handed a job over say of a call the one carrying it out asks
|
|
226
|
+
* leave for: `allow`, it may do this itself, so the answer is its own to give, `deny`, its rules
|
|
227
|
+
* forbid it, `ask`, it would have to ask the person, so only the person can allow it
|
|
228
|
+
*/
|
|
229
|
+
export type Rights = 'allow' | 'ask' | 'deny';
|
|
165
230
|
/**
|
|
166
231
|
* `task`: the job itself, `question` and `permission`: need an `answer`, `report`: the result
|
|
167
232
|
* that ends the job, `note`: something to know that needs no answer
|
|
@@ -191,6 +256,14 @@ export interface Letter {
|
|
|
191
256
|
inReplyTo?: string;
|
|
192
257
|
/** Of a `report`: how it ends the job */
|
|
193
258
|
outcome?: ReportOutcome;
|
|
259
|
+
/** Of a `permission`: the call leave is asked for, when the request names one */
|
|
260
|
+
ask?: PermissionAsk;
|
|
261
|
+
/** Of an `answer` to a `permission` that names its call: whether it may go ahead */
|
|
262
|
+
verdict?: Verdict;
|
|
263
|
+
/** The answer is the person's to give, not the recipient's */
|
|
264
|
+
needsPerson?: boolean;
|
|
265
|
+
/** ISO 8601 time the letter began to wait for the person */
|
|
266
|
+
personAskedAt?: string;
|
|
194
267
|
state: DeliveryState;
|
|
195
268
|
/** ISO 8601 */
|
|
196
269
|
createdAt: string;
|
|
@@ -212,7 +285,7 @@ export interface Letter {
|
|
|
212
285
|
export interface RenderedLetter extends Letter {
|
|
213
286
|
text: string;
|
|
214
287
|
}
|
|
215
|
-
export type JournalEntryType = 'agent.registered' | 'agent.gone' | 'job.created' | 'job.state' | 'job.verified' | 'letter.queued' | 'letter.delivered' | 'letter.read' | 'letter.handled' | 'letter.rejected' | 'letter.undelivered' | 'letter.reminded';
|
|
288
|
+
export type JournalEntryType = 'agent.registered' | 'agent.gone' | 'job.created' | 'job.state' | 'job.verified' | 'letter.queued' | 'letter.delivered' | 'letter.read' | 'letter.handled' | 'letter.rejected' | 'letter.undelivered' | 'letter.reminded' | 'letter.escalated';
|
|
216
289
|
/** One line of the bridge's append-only journal. */
|
|
217
290
|
export interface JournalEntry {
|
|
218
291
|
seq: number;
|
|
@@ -257,6 +330,12 @@ export interface BridgeLimits {
|
|
|
257
330
|
maxStartingSessions: number;
|
|
258
331
|
/** How often adapters that can list their sessions are asked which of them still run */
|
|
259
332
|
presenceCheckMs: number;
|
|
333
|
+
/**
|
|
334
|
+
* How long a letter waits for the person before they are reminded, and after that before the
|
|
335
|
+
* job fails, in ms. A person is slower than an agent, so it is longer than the job's own
|
|
336
|
+
* `replyTimeoutMs`
|
|
337
|
+
*/
|
|
338
|
+
personReplyTimeoutMs: number;
|
|
260
339
|
}
|
|
261
340
|
export declare const BridgeLimitsSchema: z.ZodObject<{
|
|
262
341
|
maxDepth: z.ZodNumber;
|
|
@@ -281,6 +360,7 @@ export declare const BridgeLimitsSchema: z.ZodObject<{
|
|
|
281
360
|
jobsPerHour: z.ZodNumber;
|
|
282
361
|
maxStartingSessions: z.ZodNumber;
|
|
283
362
|
presenceCheckMs: z.ZodNumber;
|
|
363
|
+
personReplyTimeoutMs: z.ZodNumber;
|
|
284
364
|
}, z.core.$strict>;
|
|
285
365
|
export declare const DEFAULT_LIMITS: BridgeLimits;
|
|
286
366
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,0EAA0E;AAC1E,eAAO,MAAM,cAAc,qBAAqB,CAAC;AAEjD,+FAA+F;AAC/F,eAAO,MAAM,a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AAW,YAAY;IAC3B,0EAA0E;IAC1E,QAAQ,EAAE,MAAM,CAAC;IACjB,0CAA0C;IAC1C,MAAM,EAAE,SAAS,CAAC;IAClB,iCAAiC;IACjC,SAAS,EAAE,SAAS,CAAC;IACrB,yFAAyF;IACzF,gBAAgB,EAAE,MAAM,CAAC;IACzB,4EAA4E;IAC5E,iBAAiB,EAAE,MAAM,CAAC;IAC1B,+CAA+C;IAC/C,oBAAoB,EAAE,MAAM,CAAC;IAC7B,sGAAsG;IACtG,iBAAiB,EAAE,MAAM,CAAC;IAC1B,6DAA6D;IAC7D,qBAAqB,EAAE,MAAM,CAAC;IAC9B,6CAA6C;IAC7C,aAAa,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB,6EAA6E;IAC7E,WAAW,EAAE,MAAM,CAAC;IACpB,sDAAsD;IACtD,WAAW,EAAE,MAAM,CAAC;IACpB,yDAAyD;IACzD,mBAAmB,EAAE,MAAM,CAAC;IAC5B,wFAAwF;IACxF,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,oBAAoB,EAAE,MAAM,CAAC;CAC9B;AAED,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;kBAwB7B,CAAC;AAEH,eAAO,MAAM,cAAc,EAAE,YAgB5B,CAAC"}
|
package/dist/types.js
CHANGED
|
@@ -4,6 +4,11 @@ import { z } from 'zod';
|
|
|
4
4
|
export const BRIDGE_JOB_KEY = 'cogitator:bridge';
|
|
5
5
|
/** The sender of letters the bridge writes itself: reminders, and news of a job that ended. */
|
|
6
6
|
export const BRIDGE_SENDER = 'bridge';
|
|
7
|
+
/**
|
|
8
|
+
* The person at the machine, as the sender of an answer they gave. No agent carries this name:
|
|
9
|
+
* a session cannot sign a letter with it
|
|
10
|
+
*/
|
|
11
|
+
export const PERSON = 'person';
|
|
7
12
|
/** Harnesses the bridge knows by name. Any other string names a harness an adapter brings. */
|
|
8
13
|
export const HARNESSES = {
|
|
9
14
|
claudeCode: 'claude-code',
|
|
@@ -56,6 +61,7 @@ export const CallerIdentitySchema = z.strictObject({
|
|
|
56
61
|
project: AbsolutePathSchema.optional(),
|
|
57
62
|
sessionName: OneLineSchema.optional(),
|
|
58
63
|
agentName: OneLineSchema.optional(),
|
|
64
|
+
permissionMode: OneLineSchema.optional(),
|
|
59
65
|
});
|
|
60
66
|
export const JOB_STATES = [
|
|
61
67
|
'submitted',
|
|
@@ -84,6 +90,23 @@ export const JobBudgetSchema = z.object({
|
|
|
84
90
|
.positive()
|
|
85
91
|
.max(7 * 86_400_000),
|
|
86
92
|
});
|
|
93
|
+
export const PERMISSION_ACCESSES = [
|
|
94
|
+
'command',
|
|
95
|
+
'read',
|
|
96
|
+
'edit',
|
|
97
|
+
'fetch',
|
|
98
|
+
'other',
|
|
99
|
+
];
|
|
100
|
+
export const PermissionAskSchema = z.strictObject({
|
|
101
|
+
tool: OneLineSchema,
|
|
102
|
+
access: z.enum(['command', 'read', 'edit', 'fetch', 'other']),
|
|
103
|
+
command: z.string().min(1).max(100_000).optional(),
|
|
104
|
+
cwd: AbsolutePathSchema.optional(),
|
|
105
|
+
env: z.record(z.string().min(1).max(256), z.string().max(100_000)).optional(),
|
|
106
|
+
paths: z.array(AbsolutePathSchema).max(1000).optional(),
|
|
107
|
+
url: z.string().min(1).max(8192).optional(),
|
|
108
|
+
});
|
|
109
|
+
export const VERDICTS = ['allow', 'deny'];
|
|
87
110
|
export const LETTER_KINDS = [
|
|
88
111
|
'task',
|
|
89
112
|
'question',
|
|
@@ -112,6 +135,11 @@ export const BridgeLimitsSchema = z.strictObject({
|
|
|
112
135
|
jobsPerHour: z.number().int().positive().max(100_000),
|
|
113
136
|
maxStartingSessions: z.number().int().positive().max(100),
|
|
114
137
|
presenceCheckMs: z.number().int().positive().max(86_400_000),
|
|
138
|
+
personReplyTimeoutMs: z
|
|
139
|
+
.number()
|
|
140
|
+
.int()
|
|
141
|
+
.positive()
|
|
142
|
+
.max(7 * 86_400_000),
|
|
115
143
|
});
|
|
116
144
|
export const DEFAULT_LIMITS = {
|
|
117
145
|
maxDepth: 3,
|
|
@@ -128,5 +156,6 @@ export const DEFAULT_LIMITS = {
|
|
|
128
156
|
jobsPerHour: 60,
|
|
129
157
|
maxStartingSessions: 2,
|
|
130
158
|
presenceCheckMs: 60_000,
|
|
159
|
+
personReplyTimeoutMs: 4 * 3_600_000,
|
|
131
160
|
};
|
|
132
161
|
//# sourceMappingURL=types.js.map
|
package/dist/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,0EAA0E;AAC1E,MAAM,CAAC,MAAM,cAAc,GAAG,kBAAkB,CAAC;AAEjD,+FAA+F;AAC/F,MAAM,CAAC,MAAM,aAAa,GAAG,QAAQ,CAAC;AAEtC,8FAA8F;AAC9F,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,UAAU,EAAE,aAAa;IACzB,KAAK,EAAE,OAAO;IACd,GAAG,EAAE,KAAK;IACV,SAAS,EAAE,WAAW;CACd,CAAC;AAcX,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,aAAa,EAAE,CAAC,CAAC,OAAO,EAAE;IAC1B,IAAI,EAAE,CAAC,CAAC,OAAO,EAAE;IACjB,KAAK,EAAE,CAAC,CAAC,OAAO,EAAE;IAClB,YAAY,EAAE,CAAC,CAAC,OAAO,EAAE;CAC1B,CAAC,CAAC;AAEH,uFAAuF;AACvF,MAAM,CAAC,MAAM,eAAe,GAAwB;IAClD,aAAa,EAAE,KAAK;IACpB,IAAI,EAAE,KAAK;IACX,KAAK,EAAE,KAAK;IACZ,YAAY,EAAE,KAAK;CACpB,CAAC;AAEF,4FAA4F;AAC5F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E,UAAU,EAAE,CAAC,GAAG,SAAS,EAAE,cAAc,EAAE,EAAE,GAAG,MAAM,EAAE;IAC/E,SAAS,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,UAAU,EAAE,EAAE,GAAG,SAAS,EAAE,cAAc,EAAE,CAAC,GAAG,SAAS,EAAE;IACtF,gBAAgB,EAAE,CAAC;IACnB,iBAAiB,EAAE,KAAK;IACxB,oBAAoB,EAAE,MAAM;IAC5B,iBAAiB,EAAE,MAAM;IACzB,qBAAqB,EAAE,OAAO;IAC9B,aAAa,EAAE,OAAO;IACtB,WAAW,EAAE,EAAE,GAAG,SAAS;IAC3B,WAAW,EAAE,EAAE;IACf,WAAW,EAAE,EAAE;IACf,mBAAmB,EAAE,CAAC;IACtB,eAAe,EAAE,MAAM;IACvB,oBAAoB,EAAE,CAAC,GAAG,SAAS;CACpC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cogitator-ai/bridge",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Agent bridge for Cogitator: Claude Code, Codex and other agents hand each other jobs, ask questions and report back, each in its own window (experimental)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cogitator",
|
|
@@ -28,6 +28,11 @@
|
|
|
28
28
|
"import": "./dist/tools/index.js",
|
|
29
29
|
"default": "./dist/tools/index.js"
|
|
30
30
|
},
|
|
31
|
+
"./rights": {
|
|
32
|
+
"types": "./dist/rights/index.d.ts",
|
|
33
|
+
"import": "./dist/rights/index.js",
|
|
34
|
+
"default": "./dist/rights/index.js"
|
|
35
|
+
},
|
|
31
36
|
"./testing": {
|
|
32
37
|
"types": "./dist/testing/index.d.ts",
|
|
33
38
|
"import": "./dist/testing/index.js",
|