@spine-event-engine/ai 0.0.0-stage → 2.0.0-snapshot.24
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/LICENSE +201 -0
- package/README.md +73 -2
- package/REFERENCE.md +238 -0
- package/dist/index.d.ts +31 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +26 -0
- package/dist/index.js.map +1 -0
- package/dist/internal/contracts.d.ts +648 -0
- package/dist/internal/contracts.d.ts.map +1 -0
- package/dist/internal/contracts.js +15 -0
- package/dist/internal/contracts.js.map +1 -0
- package/dist/internal/decision.d.ts +54 -0
- package/dist/internal/decision.d.ts.map +1 -0
- package/dist/internal/decision.js +197 -0
- package/dist/internal/decision.js.map +1 -0
- package/dist/internal/execution.d.ts +309 -0
- package/dist/internal/execution.d.ts.map +1 -0
- package/dist/internal/execution.js +143 -0
- package/dist/internal/execution.js.map +1 -0
- package/dist/internal/mcp-protocol.d.ts +282 -0
- package/dist/internal/mcp-protocol.d.ts.map +1 -0
- package/dist/internal/mcp-protocol.js +32 -0
- package/dist/internal/mcp-protocol.js.map +1 -0
- package/dist/internal/mcp.d.ts +36 -0
- package/dist/internal/mcp.d.ts.map +1 -0
- package/dist/internal/mcp.js +144 -0
- package/dist/internal/mcp.js.map +1 -0
- package/dist/internal/model.d.ts +103 -0
- package/dist/internal/model.d.ts.map +1 -0
- package/dist/internal/model.js +292 -0
- package/dist/internal/model.js.map +1 -0
- package/dist/internal/registration.d.ts +102 -0
- package/dist/internal/registration.d.ts.map +1 -0
- package/dist/internal/registration.js +65 -0
- package/dist/internal/registration.js.map +1 -0
- package/dist/internal/registry.d.ts +102 -0
- package/dist/internal/registry.d.ts.map +1 -0
- package/dist/internal/registry.js +250 -0
- package/dist/internal/registry.js.map +1 -0
- package/dist/internal/schema.d.ts +70 -0
- package/dist/internal/schema.d.ts.map +1 -0
- package/dist/internal/schema.js +329 -0
- package/dist/internal/schema.js.map +1 -0
- package/dist/spi/adapter.d.ts +11 -0
- package/dist/spi/adapter.d.ts.map +1 -0
- package/dist/spi/adapter.js +21 -0
- package/dist/spi/adapter.js.map +1 -0
- package/dist/spi/runtime.d.ts +10 -0
- package/dist/spi/runtime.d.ts.map +1 -0
- package/dist/spi/runtime.js +20 -0
- package/dist/spi/runtime.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +37 -3
|
@@ -0,0 +1,648 @@
|
|
|
1
|
+
import type { MessageShape } from "@bufbuild/protobuf";
|
|
2
|
+
import type { MessageSchema } from "@spine-event-engine/core";
|
|
3
|
+
import type { AiModelKind, AiOperationId, AgentHistoryCursor, ConversationId, ModelRef } from "@spine-event-engine/proto/agent";
|
|
4
|
+
import type { ActorContext, MessageId, TenantId } from "@spine-event-engine/proto";
|
|
5
|
+
import type { AiModel } from "./model.js";
|
|
6
|
+
/**
|
|
7
|
+
* Optional application ceilings for one capability, including corrections and tool continuations.
|
|
8
|
+
* An absent field does not impose that ceiling.
|
|
9
|
+
*/
|
|
10
|
+
export interface AiLimits {
|
|
11
|
+
/**
|
|
12
|
+
* Maximum physical provider requests.
|
|
13
|
+
*/
|
|
14
|
+
readonly modelRequests?: number;
|
|
15
|
+
/**
|
|
16
|
+
* Maximum external tool calls.
|
|
17
|
+
*/
|
|
18
|
+
readonly toolCalls?: number;
|
|
19
|
+
/**
|
|
20
|
+
* Maximum elapsed milliseconds.
|
|
21
|
+
*/
|
|
22
|
+
readonly deadlineMs?: number;
|
|
23
|
+
/**
|
|
24
|
+
* Maximum bytes in one materialized request.
|
|
25
|
+
*/
|
|
26
|
+
readonly maxInputBytes?: number;
|
|
27
|
+
/**
|
|
28
|
+
* Maximum received response bytes.
|
|
29
|
+
*/
|
|
30
|
+
readonly maxOutputBytes?: number;
|
|
31
|
+
/**
|
|
32
|
+
* Optional generation-only ceiling when the selected deployment can enforce it.
|
|
33
|
+
*/
|
|
34
|
+
readonly maxOutputTokens?: number;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Optional application ceilings shared by handlers for one accepted signal.
|
|
38
|
+
* An absent field does not impose that ceiling.
|
|
39
|
+
*/
|
|
40
|
+
export interface AiInvocationLimits {
|
|
41
|
+
/**
|
|
42
|
+
* Maximum model operations for one accepted signal.
|
|
43
|
+
*/
|
|
44
|
+
readonly operations?: number;
|
|
45
|
+
/**
|
|
46
|
+
* Maximum physical provider requests across one accepted signal.
|
|
47
|
+
*/
|
|
48
|
+
readonly modelRequests?: number;
|
|
49
|
+
/**
|
|
50
|
+
* Maximum external tool calls across one accepted signal.
|
|
51
|
+
*/
|
|
52
|
+
readonly toolCalls?: number;
|
|
53
|
+
/**
|
|
54
|
+
* Maximum recorded history reads for one accepted signal.
|
|
55
|
+
*/
|
|
56
|
+
readonly recordedReads?: number;
|
|
57
|
+
/**
|
|
58
|
+
* Maximum elapsed time in milliseconds.
|
|
59
|
+
*/
|
|
60
|
+
readonly deadlineMs?: number;
|
|
61
|
+
/**
|
|
62
|
+
* Maximum cumulative input bytes for one accepted signal.
|
|
63
|
+
*/
|
|
64
|
+
readonly totalInputBytes?: number;
|
|
65
|
+
/**
|
|
66
|
+
* Maximum cumulative output bytes for one accepted signal.
|
|
67
|
+
*/
|
|
68
|
+
readonly totalOutputBytes?: number;
|
|
69
|
+
/**
|
|
70
|
+
* Maximum bytes retained for replay after interruption.
|
|
71
|
+
*/
|
|
72
|
+
readonly maxRecoveryBytes?: number;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* A concrete local defect that may inform a bounded generation correction.
|
|
76
|
+
*/
|
|
77
|
+
export interface AiValidationIssue {
|
|
78
|
+
/**
|
|
79
|
+
* Safe failure or validation category.
|
|
80
|
+
*/
|
|
81
|
+
readonly code: string;
|
|
82
|
+
/**
|
|
83
|
+
* Field path affected by this issue.
|
|
84
|
+
*/
|
|
85
|
+
readonly path: string;
|
|
86
|
+
/**
|
|
87
|
+
* Safe validation message for application handling.
|
|
88
|
+
*/
|
|
89
|
+
readonly message: string;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Reference to one expressly permitted MCP tool.
|
|
93
|
+
*/
|
|
94
|
+
export interface AiToolRef {
|
|
95
|
+
/**
|
|
96
|
+
* MCP server identifier selected by the application.
|
|
97
|
+
*/
|
|
98
|
+
readonly server: string;
|
|
99
|
+
/**
|
|
100
|
+
* Exact permitted MCP tool name.
|
|
101
|
+
*/
|
|
102
|
+
readonly tool: string;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Shared typed capability definition.
|
|
106
|
+
*
|
|
107
|
+
* @typeParam I - Input message descriptor.
|
|
108
|
+
* @typeParam O - Output message descriptor.
|
|
109
|
+
*/
|
|
110
|
+
export interface AiModelBase<I extends MessageSchema, O extends MessageSchema> {
|
|
111
|
+
/**
|
|
112
|
+
* Application capability or deployment name.
|
|
113
|
+
*/
|
|
114
|
+
readonly name: string;
|
|
115
|
+
/**
|
|
116
|
+
* Version of this application capability definition.
|
|
117
|
+
*/
|
|
118
|
+
readonly version: string;
|
|
119
|
+
/**
|
|
120
|
+
* Generated Protobuf descriptor for typed input.
|
|
121
|
+
*/
|
|
122
|
+
readonly input: I;
|
|
123
|
+
/**
|
|
124
|
+
* Generated Protobuf descriptor for typed output.
|
|
125
|
+
*/
|
|
126
|
+
readonly output: O;
|
|
127
|
+
/**
|
|
128
|
+
* Optional application bounds for this capability.
|
|
129
|
+
*/
|
|
130
|
+
readonly limits?: AiLimits;
|
|
131
|
+
/**
|
|
132
|
+
* Versioned pure application validation rule.
|
|
133
|
+
*/
|
|
134
|
+
readonly validation?: {
|
|
135
|
+
/**
|
|
136
|
+
* Version of the application output validation rule.
|
|
137
|
+
*/
|
|
138
|
+
readonly version: string;
|
|
139
|
+
/**
|
|
140
|
+
* Applies a pure application rule to candidate output and invocation facts.
|
|
141
|
+
*
|
|
142
|
+
* @param value Candidate output after Proto validation.
|
|
143
|
+
* @param input Application facts supplied to the invocation.
|
|
144
|
+
* @returns Domain validation issues, or an empty list when valid.
|
|
145
|
+
*/
|
|
146
|
+
check(value: MessageShape<O>, input: MessageShape<I>): readonly AiValidationIssue[];
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Question evaluated by a non-generative backend.
|
|
151
|
+
*/
|
|
152
|
+
export type AiQuestion = {
|
|
153
|
+
/**
|
|
154
|
+
* Boolean proposition kind.
|
|
155
|
+
*/
|
|
156
|
+
readonly type: "boolean";
|
|
157
|
+
/**
|
|
158
|
+
* Proposition the backend evaluates.
|
|
159
|
+
*/
|
|
160
|
+
readonly instructions: string;
|
|
161
|
+
} | {
|
|
162
|
+
/**
|
|
163
|
+
* Choice question kind.
|
|
164
|
+
*/
|
|
165
|
+
readonly type: "choice";
|
|
166
|
+
/**
|
|
167
|
+
* Application instructions supplied to the model.
|
|
168
|
+
*/
|
|
169
|
+
readonly instructions: string;
|
|
170
|
+
/**
|
|
171
|
+
* Named alternatives available to this choice.
|
|
172
|
+
*/
|
|
173
|
+
readonly criteria: Readonly<Record<string, string>>;
|
|
174
|
+
} | {
|
|
175
|
+
/**
|
|
176
|
+
* Score question kind.
|
|
177
|
+
*/
|
|
178
|
+
readonly type: "score";
|
|
179
|
+
/**
|
|
180
|
+
* Application instructions supplied to the model.
|
|
181
|
+
*/
|
|
182
|
+
readonly instructions: string;
|
|
183
|
+
/**
|
|
184
|
+
* Ordered score levels, starting at zero.
|
|
185
|
+
*/
|
|
186
|
+
readonly criteria: readonly string[];
|
|
187
|
+
};
|
|
188
|
+
/**
|
|
189
|
+
* Provider answer after kind and range validation; absence means unknown.
|
|
190
|
+
*/
|
|
191
|
+
export type AiAnswer = {
|
|
192
|
+
/**
|
|
193
|
+
* Boolean answer kind.
|
|
194
|
+
*/
|
|
195
|
+
readonly type: "boolean";
|
|
196
|
+
/**
|
|
197
|
+
* Probability that the proposition is true.
|
|
198
|
+
*/
|
|
199
|
+
readonly probability: number;
|
|
200
|
+
} | {
|
|
201
|
+
/**
|
|
202
|
+
* Choice answer kind.
|
|
203
|
+
*/
|
|
204
|
+
readonly type: "choice";
|
|
205
|
+
/**
|
|
206
|
+
* Selected declared alternative key.
|
|
207
|
+
*/
|
|
208
|
+
readonly choice: string;
|
|
209
|
+
/**
|
|
210
|
+
* Full distribution over declared alternatives when reported.
|
|
211
|
+
*/
|
|
212
|
+
readonly probabilities?: Readonly<Record<string, number>>;
|
|
213
|
+
/**
|
|
214
|
+
* Separate provider confidence when reported.
|
|
215
|
+
*/
|
|
216
|
+
readonly confidence?: number;
|
|
217
|
+
} | {
|
|
218
|
+
/**
|
|
219
|
+
* Score answer kind.
|
|
220
|
+
*/
|
|
221
|
+
readonly type: "score";
|
|
222
|
+
/**
|
|
223
|
+
* Fractional score within the declared rubric.
|
|
224
|
+
*/
|
|
225
|
+
readonly score: number;
|
|
226
|
+
/**
|
|
227
|
+
* Full distribution over declared alternatives when reported.
|
|
228
|
+
*/
|
|
229
|
+
readonly probabilities?: Readonly<Record<string, number>>;
|
|
230
|
+
/**
|
|
231
|
+
* Separate provider confidence when reported.
|
|
232
|
+
*/
|
|
233
|
+
readonly confidence?: number;
|
|
234
|
+
};
|
|
235
|
+
/**
|
|
236
|
+
* Exactly the answers keyed by declared question IDs.
|
|
237
|
+
*/
|
|
238
|
+
export interface AiDecisionResult {
|
|
239
|
+
/**
|
|
240
|
+
* Answers keyed by the original question IDs.
|
|
241
|
+
*/
|
|
242
|
+
readonly answers: Readonly<Record<string, AiAnswer>>;
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* One application-defined generation or decision capability.
|
|
246
|
+
*
|
|
247
|
+
* @typeParam I - Input message descriptor.
|
|
248
|
+
* @typeParam O - Output message descriptor.
|
|
249
|
+
*/
|
|
250
|
+
export type AiModelDefinition<I extends MessageSchema, O extends MessageSchema> = AiModelBase<I, O> & ({
|
|
251
|
+
/**
|
|
252
|
+
* Generative capability kind.
|
|
253
|
+
*/
|
|
254
|
+
readonly kind: "generation";
|
|
255
|
+
/**
|
|
256
|
+
* Application instructions supplied to the model.
|
|
257
|
+
*/
|
|
258
|
+
readonly instructions: string;
|
|
259
|
+
/**
|
|
260
|
+
* Structured generation mode fixed before dispatch.
|
|
261
|
+
*/
|
|
262
|
+
readonly outputMode: "native-schema" | "prompt-and-validate";
|
|
263
|
+
/**
|
|
264
|
+
* Explicitly permitted tool references or policies.
|
|
265
|
+
*/
|
|
266
|
+
readonly tools?: readonly AiToolRef[];
|
|
267
|
+
} | {
|
|
268
|
+
/**
|
|
269
|
+
* Non-generative decision capability kind.
|
|
270
|
+
*/
|
|
271
|
+
readonly kind: "decision";
|
|
272
|
+
/**
|
|
273
|
+
* Questions keyed by application-defined IDs.
|
|
274
|
+
*/
|
|
275
|
+
readonly questions: Readonly<Record<string, AiQuestion>>;
|
|
276
|
+
/**
|
|
277
|
+
* Whether every non-boolean answer must include a full distribution.
|
|
278
|
+
*/
|
|
279
|
+
readonly requireProbabilities?: boolean;
|
|
280
|
+
/**
|
|
281
|
+
* Whether the backend must evaluate questions independently.
|
|
282
|
+
*/
|
|
283
|
+
readonly requireIndependentQuestions?: boolean;
|
|
284
|
+
/**
|
|
285
|
+
* Versioned pure decision-to-Protobuf mapping.
|
|
286
|
+
*/
|
|
287
|
+
readonly mapping: {
|
|
288
|
+
/**
|
|
289
|
+
* Version of the decision-to-output mapping rule.
|
|
290
|
+
*/
|
|
291
|
+
readonly version: string;
|
|
292
|
+
/**
|
|
293
|
+
* Maps validated decision answers to typed application output.
|
|
294
|
+
*
|
|
295
|
+
* @param result Validated provider answers.
|
|
296
|
+
* @param input Application facts supplied to this invocation.
|
|
297
|
+
* @returns Typed application output.
|
|
298
|
+
*/
|
|
299
|
+
readonly toMessage: (result: AiDecisionResult, input: MessageShape<I>) => MessageShape<O>;
|
|
300
|
+
};
|
|
301
|
+
});
|
|
302
|
+
/**
|
|
303
|
+
* Safe operational failure that an Agent may turn into a domain outcome.
|
|
304
|
+
*/
|
|
305
|
+
export interface AiFailure {
|
|
306
|
+
/**
|
|
307
|
+
* Safe failure or validation category.
|
|
308
|
+
*/
|
|
309
|
+
readonly code: "INVALID_INPUT" | "UNSUPPORTED_CAPABILITY" | "AUTHENTICATION_REQUIRED" | "RATE_LIMITED" | "UNAVAILABLE" | "REFUSED" | "INVALID_OUTPUT" | "BUDGET_EXCEEDED" | "TOOL_FAILED" | "TOOL_OUTCOME_UNKNOWN" | "CANCELLED" | "DEADLINE_EXCEEDED";
|
|
310
|
+
/**
|
|
311
|
+
* Whether a later accepted signal may retry this failure.
|
|
312
|
+
*/
|
|
313
|
+
readonly retryableByNewSignal: boolean;
|
|
314
|
+
/**
|
|
315
|
+
* Safe diagnostic reference without provider secrets.
|
|
316
|
+
*/
|
|
317
|
+
readonly diagnosticId: string;
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* Validated output or recorded operational failure.
|
|
321
|
+
*
|
|
322
|
+
* @typeParam T - Validated application output.
|
|
323
|
+
*/
|
|
324
|
+
export type AiResult<T> = {
|
|
325
|
+
/**
|
|
326
|
+
* Indicates a validated result was admitted.
|
|
327
|
+
*/
|
|
328
|
+
readonly ok: true;
|
|
329
|
+
/**
|
|
330
|
+
* Validated typed application output.
|
|
331
|
+
*/
|
|
332
|
+
readonly value: T;
|
|
333
|
+
/**
|
|
334
|
+
* Logical operation covering all physical attempts.
|
|
335
|
+
*/
|
|
336
|
+
readonly operationId: AiOperationId;
|
|
337
|
+
} | {
|
|
338
|
+
/**
|
|
339
|
+
* Indicates no result was admitted.
|
|
340
|
+
*/
|
|
341
|
+
readonly ok: false;
|
|
342
|
+
/**
|
|
343
|
+
* Safe operational failure category and diagnostic reference.
|
|
344
|
+
*/
|
|
345
|
+
readonly failure: AiFailure;
|
|
346
|
+
/**
|
|
347
|
+
* Logical operation covering all physical attempts.
|
|
348
|
+
*/
|
|
349
|
+
readonly operationId: AiOperationId;
|
|
350
|
+
};
|
|
351
|
+
/**
|
|
352
|
+
* Model operations available only inside an Agent signal handler.
|
|
353
|
+
*/
|
|
354
|
+
export interface AgentAi {
|
|
355
|
+
/**
|
|
356
|
+
* Invokes a typed capability for a named Agent call.
|
|
357
|
+
*
|
|
358
|
+
* @typeParam I - Input message descriptor.
|
|
359
|
+
* @typeParam O - Output message descriptor.
|
|
360
|
+
* @param model Capability registered for this repository.
|
|
361
|
+
* @param request Named call, explicit conversation and typed facts.
|
|
362
|
+
* @returns Validated output or bounded operational failure.
|
|
363
|
+
*/
|
|
364
|
+
invoke<I extends MessageSchema, O extends MessageSchema>(model: AiModel<I, O>, request: {
|
|
365
|
+
/**
|
|
366
|
+
* Invocation name used to identify this call.
|
|
367
|
+
*/
|
|
368
|
+
readonly call: string;
|
|
369
|
+
/**
|
|
370
|
+
* Conversation in which this invocation occurs.
|
|
371
|
+
*/
|
|
372
|
+
readonly conversation: ConversationId;
|
|
373
|
+
/**
|
|
374
|
+
* Validated application input facts for this invocation.
|
|
375
|
+
*/
|
|
376
|
+
readonly input: MessageShape<I>;
|
|
377
|
+
}): Promise<AiResult<MessageShape<O>>>;
|
|
378
|
+
/**
|
|
379
|
+
* Sets a deployment preference for later signals.
|
|
380
|
+
*
|
|
381
|
+
* @param kind Generation or decision kind.
|
|
382
|
+
* @param model Explicit deployment or inheritance when absent.
|
|
383
|
+
*/
|
|
384
|
+
select(kind: AiModelKind, model: ModelRef | undefined): void;
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* Cancellation and deadline supplied to each asynchronous callback.
|
|
388
|
+
*/
|
|
389
|
+
export interface AiControl {
|
|
390
|
+
/**
|
|
391
|
+
* Cancellation signal for this callback.
|
|
392
|
+
*/
|
|
393
|
+
readonly signal: AbortSignal;
|
|
394
|
+
/**
|
|
395
|
+
* Absolute deadline in Unix milliseconds.
|
|
396
|
+
*/
|
|
397
|
+
readonly deadlineEpochMs?: number;
|
|
398
|
+
}
|
|
399
|
+
/**
|
|
400
|
+
* Trusted selection and authorization scope from an accepted signal.
|
|
401
|
+
*/
|
|
402
|
+
export interface AiScope {
|
|
403
|
+
/**
|
|
404
|
+
* Authenticated actor from the accepted signal.
|
|
405
|
+
*/
|
|
406
|
+
readonly actor: ActorContext;
|
|
407
|
+
/**
|
|
408
|
+
* Tenant scope established for the accepted signal.
|
|
409
|
+
*/
|
|
410
|
+
readonly tenant: {
|
|
411
|
+
readonly kind: "tenant";
|
|
412
|
+
readonly id: TenantId;
|
|
413
|
+
} | {
|
|
414
|
+
readonly kind: "single-tenant";
|
|
415
|
+
};
|
|
416
|
+
/**
|
|
417
|
+
* Canonical Agent instance identity.
|
|
418
|
+
*/
|
|
419
|
+
readonly agent: MessageId;
|
|
420
|
+
/**
|
|
421
|
+
* Canonical source signal identity.
|
|
422
|
+
*/
|
|
423
|
+
readonly source: MessageId;
|
|
424
|
+
}
|
|
425
|
+
/**
|
|
426
|
+
* Non-secret identity of an authenticated model connection.
|
|
427
|
+
*/
|
|
428
|
+
export interface AiConnectionIdentity {
|
|
429
|
+
/**
|
|
430
|
+
* Authenticated provider or local service name.
|
|
431
|
+
*/
|
|
432
|
+
readonly provider: string;
|
|
433
|
+
/**
|
|
434
|
+
* Verified provider account or local execution identity.
|
|
435
|
+
*/
|
|
436
|
+
readonly account: string;
|
|
437
|
+
/**
|
|
438
|
+
* Credential-free canonical endpoint identity.
|
|
439
|
+
*/
|
|
440
|
+
readonly endpoint: string;
|
|
441
|
+
/**
|
|
442
|
+
* Concrete provider model identity or selected deployment.
|
|
443
|
+
*/
|
|
444
|
+
readonly model: string;
|
|
445
|
+
}
|
|
446
|
+
/**
|
|
447
|
+
* Optional per-kind deployment defaults.
|
|
448
|
+
*/
|
|
449
|
+
export interface AiDefaultModels {
|
|
450
|
+
/**
|
|
451
|
+
* Application generation default, when configured.
|
|
452
|
+
*/
|
|
453
|
+
readonly generation?: ModelRef;
|
|
454
|
+
/**
|
|
455
|
+
* Application decision default, when configured.
|
|
456
|
+
*/
|
|
457
|
+
readonly decision?: ModelRef;
|
|
458
|
+
}
|
|
459
|
+
/**
|
|
460
|
+
* Application-wide registry limits and defaults.
|
|
461
|
+
*/
|
|
462
|
+
export interface AiRegistryOptions {
|
|
463
|
+
/**
|
|
464
|
+
* Application-wide model preferences by capability kind.
|
|
465
|
+
*/
|
|
466
|
+
readonly defaultModels: AiDefaultModels;
|
|
467
|
+
/**
|
|
468
|
+
* Bounds shared by all handlers for one accepted signal.
|
|
469
|
+
*/
|
|
470
|
+
readonly invocationLimits?: AiInvocationLimits;
|
|
471
|
+
/**
|
|
472
|
+
* Maximum concurrent Agent signal executions sharing this registry object.
|
|
473
|
+
* A slot covers the handlers and completion, including saved-output delivery.
|
|
474
|
+
* This limit applies within one process.
|
|
475
|
+
*/
|
|
476
|
+
readonly concurrentOperations?: number;
|
|
477
|
+
/**
|
|
478
|
+
* Maximum additional Agent executions waiting in memory for a slot.
|
|
479
|
+
* Further accepted signals remain in durable storage until capacity is available.
|
|
480
|
+
*/
|
|
481
|
+
readonly queuedOperations?: number;
|
|
482
|
+
/**
|
|
483
|
+
* Maximum duration allowed for an application callback.
|
|
484
|
+
*/
|
|
485
|
+
readonly hookTimeoutMs?: number;
|
|
486
|
+
}
|
|
487
|
+
/**
|
|
488
|
+
* Selects one newest-first page from the current Agent's history.
|
|
489
|
+
*/
|
|
490
|
+
export interface HistoryRead {
|
|
491
|
+
/**
|
|
492
|
+
* Positive safe number of requested items.
|
|
493
|
+
*/
|
|
494
|
+
readonly pageSize: number;
|
|
495
|
+
/**
|
|
496
|
+
* Opaque continuation from the preceding page.
|
|
497
|
+
*/
|
|
498
|
+
readonly cursor?: AgentHistoryCursor;
|
|
499
|
+
}
|
|
500
|
+
/**
|
|
501
|
+
* Selects one conversation within the current Agent.
|
|
502
|
+
*/
|
|
503
|
+
export interface ConversationHistoryRead extends HistoryRead {
|
|
504
|
+
/**
|
|
505
|
+
* Explicitly identified conversation.
|
|
506
|
+
*/
|
|
507
|
+
readonly conversation: ConversationId;
|
|
508
|
+
}
|
|
509
|
+
/**
|
|
510
|
+
* Newest-first page with an optional continuation toward older items.
|
|
511
|
+
*
|
|
512
|
+
* @typeParam T - History item type.
|
|
513
|
+
*/
|
|
514
|
+
export interface HistoryPage<T> {
|
|
515
|
+
/**
|
|
516
|
+
* Entries returned by this read.
|
|
517
|
+
*/
|
|
518
|
+
readonly items: readonly T[];
|
|
519
|
+
/**
|
|
520
|
+
* Opaque continuation when older entries remain.
|
|
521
|
+
*/
|
|
522
|
+
readonly nextCursor?: AgentHistoryCursor;
|
|
523
|
+
}
|
|
524
|
+
/**
|
|
525
|
+
* JSON values admitted for MCP arguments.
|
|
526
|
+
*/
|
|
527
|
+
export type AiJson = null | boolean | number | string | readonly AiJson[] | {
|
|
528
|
+
readonly [name: string]: AiJson;
|
|
529
|
+
};
|
|
530
|
+
/**
|
|
531
|
+
* Validated tool call presented to application authorization.
|
|
532
|
+
*/
|
|
533
|
+
export interface AiToolCall {
|
|
534
|
+
/**
|
|
535
|
+
* Exact permitted MCP tool name.
|
|
536
|
+
*/
|
|
537
|
+
readonly tool: AiToolRef;
|
|
538
|
+
/**
|
|
539
|
+
* Validated JSON arguments supplied to the tool.
|
|
540
|
+
*/
|
|
541
|
+
readonly arguments: Readonly<Record<string, AiJson>>;
|
|
542
|
+
}
|
|
543
|
+
/**
|
|
544
|
+
* Application policy for one permitted tool.
|
|
545
|
+
*/
|
|
546
|
+
export interface McpToolPolicy {
|
|
547
|
+
/**
|
|
548
|
+
* Application-established read or write effect.
|
|
549
|
+
*/
|
|
550
|
+
readonly effect: "read" | "write";
|
|
551
|
+
/**
|
|
552
|
+
* Optional application maximum time for one tool call.
|
|
553
|
+
*/
|
|
554
|
+
readonly timeoutMs?: number;
|
|
555
|
+
/**
|
|
556
|
+
* Optional application maximum encoded tool argument bytes.
|
|
557
|
+
*/
|
|
558
|
+
readonly maxArgumentBytes?: number;
|
|
559
|
+
/**
|
|
560
|
+
* Optional application maximum received tool result bytes.
|
|
561
|
+
*/
|
|
562
|
+
readonly maxResultBytes?: number;
|
|
563
|
+
/**
|
|
564
|
+
* Checks application permission for one tool call.
|
|
565
|
+
*
|
|
566
|
+
* @param scope Authenticated tenant and actor context.
|
|
567
|
+
* @param call Validated MCP tool name and arguments.
|
|
568
|
+
* @param control Cancellation and deadline controls.
|
|
569
|
+
* @returns Whether the application permits this tool call.
|
|
570
|
+
*/
|
|
571
|
+
readonly authorize: (scope: AiScope, call: AiToolCall, control: AiControl) => boolean | Promise<boolean>;
|
|
572
|
+
}
|
|
573
|
+
/**
|
|
574
|
+
* Application-selected remote or local MCP transport.
|
|
575
|
+
*/
|
|
576
|
+
export type McpTransport = {
|
|
577
|
+
/**
|
|
578
|
+
* Streamable HTTP transport kind.
|
|
579
|
+
*/
|
|
580
|
+
readonly kind: "streamable-http";
|
|
581
|
+
/**
|
|
582
|
+
* Absolute streamable HTTP endpoint without credentials.
|
|
583
|
+
*/
|
|
584
|
+
readonly url: string;
|
|
585
|
+
/**
|
|
586
|
+
* Returns scoped HTTP headers for one MCP connection.
|
|
587
|
+
*
|
|
588
|
+
* @param scope Authenticated tenant and actor context.
|
|
589
|
+
* @param control Cancellation and deadline controls.
|
|
590
|
+
* @returns Headers for this scoped connection.
|
|
591
|
+
*/
|
|
592
|
+
readonly headers?: (scope: AiScope, control: AiControl) => Readonly<Record<string, string>> | Promise<Readonly<Record<string, string>>>;
|
|
593
|
+
} | {
|
|
594
|
+
/**
|
|
595
|
+
* Local stdio transport kind.
|
|
596
|
+
*/
|
|
597
|
+
readonly kind: "stdio";
|
|
598
|
+
/**
|
|
599
|
+
* Absolute path to the local MCP executable.
|
|
600
|
+
*/
|
|
601
|
+
readonly executable: string;
|
|
602
|
+
/**
|
|
603
|
+
* Fixed executable arguments.
|
|
604
|
+
*/
|
|
605
|
+
readonly args: readonly string[];
|
|
606
|
+
/**
|
|
607
|
+
* Optional absolute working directory.
|
|
608
|
+
*/
|
|
609
|
+
readonly cwd?: string;
|
|
610
|
+
/**
|
|
611
|
+
* Returns scoped environment variables for one local process.
|
|
612
|
+
*
|
|
613
|
+
* @param scope Authenticated tenant and actor context.
|
|
614
|
+
* @param control Cancellation and deadline controls.
|
|
615
|
+
* @returns Environment variables for this scoped process.
|
|
616
|
+
*/
|
|
617
|
+
readonly environment?: (scope: AiScope, control: AiControl) => Readonly<Record<string, string>> | Promise<Readonly<Record<string, string>>>;
|
|
618
|
+
};
|
|
619
|
+
/**
|
|
620
|
+
* Explicit MCP connection and tool policy.
|
|
621
|
+
*/
|
|
622
|
+
export interface McpServerDefinition {
|
|
623
|
+
/**
|
|
624
|
+
* Validated MCP server identifier.
|
|
625
|
+
*/
|
|
626
|
+
readonly id: string;
|
|
627
|
+
/**
|
|
628
|
+
* Configuration revision pinned to this registration.
|
|
629
|
+
*/
|
|
630
|
+
readonly revision: string;
|
|
631
|
+
/**
|
|
632
|
+
* Validated HTTP or local process connection settings.
|
|
633
|
+
*/
|
|
634
|
+
readonly transport: McpTransport;
|
|
635
|
+
/**
|
|
636
|
+
* Checks application permission to connect to the MCP server.
|
|
637
|
+
*
|
|
638
|
+
* @param scope Authenticated tenant and actor context.
|
|
639
|
+
* @param control Cancellation and deadline controls.
|
|
640
|
+
* @returns Whether this scope may connect to the MCP server.
|
|
641
|
+
*/
|
|
642
|
+
readonly authorizeConnect: (scope: AiScope, control: AiControl) => boolean | Promise<boolean>;
|
|
643
|
+
/**
|
|
644
|
+
* Explicitly permitted tool references or policies.
|
|
645
|
+
*/
|
|
646
|
+
readonly tools: Readonly<Record<string, McpToolPolicy>>;
|
|
647
|
+
}
|
|
648
|
+
//# sourceMappingURL=contracts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contracts.d.ts","sourceRoot":"","sources":["../../src/internal/contracts.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,EACV,WAAW,EACX,aAAa,EACb,kBAAkB,EAClB,cAAc,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EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAE9F;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC;CACzD"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2026, CodeMatters. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
|
|
5
|
+
* in compliance with the License. You may obtain a copy of the License at
|
|
6
|
+
*
|
|
7
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
*
|
|
9
|
+
* Unless required by applicable law or agreed to in writing, software distributed under the License
|
|
10
|
+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
|
11
|
+
* or implied. See the License for the specific language governing permissions and limitations under
|
|
12
|
+
* the License.
|
|
13
|
+
*/
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=contracts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../src/internal/contracts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG"}
|