@moltzap/client 2026.1001.1 → 2026.1002.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 +9 -4
- package/dist/contract.d.ts +41 -41
- package/dist/contract.d.ts.map +1 -1
- package/dist/contract.js +48 -58
- package/dist/contract.js.map +1 -1
- package/dist/contract.types-check.d.ts +14 -15
- package/dist/contract.types-check.d.ts.map +1 -1
- package/dist/contract.types-check.js +3 -1
- package/dist/contract.types-check.js.map +1 -1
- package/dist/daemon/runtime/controller.d.ts.map +1 -1
- package/dist/daemon/runtime/controller.js +1 -3
- package/dist/daemon/runtime/controller.js.map +1 -1
- package/dist/endpoint/collective/operation.d.ts +13 -10
- package/dist/endpoint/collective/operation.d.ts.map +1 -1
- package/dist/endpoint/collective/operation.js +121 -101
- package/dist/endpoint/collective/operation.js.map +1 -1
- package/dist/endpoint/collective/received-request.d.ts +40 -0
- package/dist/endpoint/collective/received-request.d.ts.map +1 -0
- package/dist/endpoint/collective/received-request.js +56 -0
- package/dist/endpoint/collective/received-request.js.map +1 -0
- package/dist/endpoint/collective/request-sends.d.ts +41 -0
- package/dist/endpoint/collective/request-sends.d.ts.map +1 -0
- package/dist/endpoint/collective/request-sends.js +46 -0
- package/dist/endpoint/collective/request-sends.js.map +1 -0
- package/dist/endpoint/collective/validation.d.ts.map +1 -1
- package/dist/endpoint/collective/validation.js +0 -2
- package/dist/endpoint/collective/validation.js.map +1 -1
- package/dist/endpoint/collective/wire.d.ts +4 -4
- package/dist/endpoint/collective/wire.d.ts.map +1 -1
- package/dist/endpoint/collective/wire.js +74 -5
- package/dist/endpoint/collective/wire.js.map +1 -1
- package/dist/harness-mcp-contract.d.ts +3 -6
- package/dist/harness-mcp-contract.d.ts.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/message-text.d.ts +51 -0
- package/dist/message-text.d.ts.map +1 -0
- package/dist/message-text.js +120 -0
- package/dist/message-text.js.map +1 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -21,10 +21,15 @@ it was built with.
|
|
|
21
21
|
multicast by default. A multicast creates one post with a fresh Client-minted
|
|
22
22
|
`PostId`; the host owns whether to invoke send again. A gather asks each
|
|
23
23
|
member the text as a question, one request post in each member's direct
|
|
24
|
-
conversation, and returns its `operationId`;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
conversation, and returns its `operationId`; a member whose post cannot be
|
|
25
|
+
delivered ends as `no-answer`. It fails with a `CollectiveError` before any
|
|
26
|
+
post when a member is malformed or unknown, and when every post was
|
|
27
|
+
refused. A member
|
|
28
|
+
answers with a `collectiveResponse` sent to the conversation the request
|
|
29
|
+
arrived in; the endpoint matches it to the one request open there, validates
|
|
30
|
+
it against that request's form, and refuses it when none or several are open.
|
|
31
|
+
`parseMessageText` reads any of these from a message's whole text, so every
|
|
32
|
+
adapter accepts the same text. An
|
|
28
33
|
all_gather asks a `group:` address one question in the group conversation;
|
|
29
34
|
each member endpoint keeps peer answers from its model until the requester's
|
|
30
35
|
close, which lists the answers counted, and every member receives the same
|
package/dist/contract.d.ts
CHANGED
|
@@ -56,8 +56,9 @@ export declare const Content: Schema.refine<readonly [{
|
|
|
56
56
|
export type Content = typeof Content.Type;
|
|
57
57
|
/**
|
|
58
58
|
* Identity of one gather or all_gather, minted by the requesting endpoint.
|
|
59
|
-
* The request, each member's answer, an all_gather's close, the result
|
|
60
|
-
* any failure carry it.
|
|
59
|
+
* The request, each member's answer post, an all_gather's close, the result
|
|
60
|
+
* and any failure carry it. An answer that matches no single open request is
|
|
61
|
+
* refused under an id minted for the refusal, so its failure is named too.
|
|
61
62
|
*/
|
|
62
63
|
export declare const CollectiveId: Schema.brand<Schema.filter<typeof Schema.String>, "CollectiveId">;
|
|
63
64
|
/** A validated collective operation id. */
|
|
@@ -88,18 +89,16 @@ export declare const AnswerContent: Schema.Record$<typeof Schema.String, Schema.
|
|
|
88
89
|
export type AnswerContent = typeof AnswerContent.Type;
|
|
89
90
|
/** The longest deadline a collecting operation may state: 30 days, in seconds. */
|
|
90
91
|
export declare const MAXIMUM_DEADLINE_SECONDS = 2592000;
|
|
91
|
-
/**
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
*/
|
|
96
|
-
export declare const CollectiveOperation: Schema.Union<[Schema.Struct<{
|
|
92
|
+
/** A collecting operation's relative deadline: whole seconds, up to 30 days. */
|
|
93
|
+
export declare const DeadlineSeconds: Schema.filter<Schema.filter<typeof Schema.Number>>;
|
|
94
|
+
/** The collective operation one send performs, discriminated by `op`. */
|
|
95
|
+
declare const CollectiveOperation: Schema.Union<[Schema.Struct<{
|
|
97
96
|
op: Schema.optionalWith<Schema.Literal<["multicast"]>, {
|
|
98
97
|
exact: true;
|
|
99
98
|
}>;
|
|
100
99
|
}>, Schema.Struct<{
|
|
101
100
|
op: Schema.Literal<["gather", "all_gather"]>;
|
|
102
|
-
deadline: Schema.
|
|
101
|
+
deadline: Schema.filter<Schema.filter<typeof Schema.Number>>;
|
|
103
102
|
requestedSchema: Schema.Struct<{
|
|
104
103
|
$schema: Schema.optionalWith<typeof Schema.String, {
|
|
105
104
|
exact: true;
|
|
@@ -114,25 +113,24 @@ export declare const CollectiveOperation: Schema.Union<[Schema.Struct<{
|
|
|
114
113
|
/** A validated collective operation. */
|
|
115
114
|
export type CollectiveOperation = typeof CollectiveOperation.Type;
|
|
116
115
|
/**
|
|
117
|
-
* A member's
|
|
118
|
-
*
|
|
119
|
-
*
|
|
116
|
+
* A member's answer to the one request open in the conversation it is sent
|
|
117
|
+
* to: the requester's direct conversation for a gather, the group for an
|
|
118
|
+
* all_gather. It is MCP's `ElicitResult`; only `accept` carries content,
|
|
119
|
+
* valid against the request's schema.
|
|
120
120
|
*/
|
|
121
|
-
|
|
122
|
-
id: Schema.brand<Schema.filter<typeof Schema.String>, "CollectiveId">;
|
|
121
|
+
declare const CollectiveResponse: Schema.Union<[Schema.Struct<{
|
|
123
122
|
action: Schema.Literal<["accept"]>;
|
|
124
123
|
content: Schema.Record$<typeof Schema.String, Schema.Union<[typeof Schema.String, Schema.filter<typeof Schema.Number>, typeof Schema.Boolean, Schema.Array$<typeof Schema.String>]>>;
|
|
125
124
|
}>, Schema.Struct<{
|
|
126
|
-
|
|
127
|
-
action: Schema.Literal<["decline", "cancel"]>;
|
|
125
|
+
action: Schema.Literal<["decline"]>;
|
|
128
126
|
}>]>;
|
|
129
127
|
/** A validated collective response. */
|
|
130
128
|
export type CollectiveResponse = typeof CollectiveResponse.Type;
|
|
131
129
|
/**
|
|
132
|
-
* One send:
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
*
|
|
130
|
+
* One send to one address: text with its collective operation, multicast
|
|
131
|
+
* when `collective` is omitted, or an answer to the request open in that
|
|
132
|
+
* address's conversation. `parseMessageText` reads both from a message's
|
|
133
|
+
* text.
|
|
136
134
|
*/
|
|
137
135
|
export declare const SendInput: Schema.Union<[Schema.Struct<{
|
|
138
136
|
to: Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">;
|
|
@@ -143,7 +141,7 @@ export declare const SendInput: Schema.Union<[Schema.Struct<{
|
|
|
143
141
|
}>;
|
|
144
142
|
}>, Schema.Struct<{
|
|
145
143
|
op: Schema.Literal<["gather", "all_gather"]>;
|
|
146
|
-
deadline: Schema.
|
|
144
|
+
deadline: Schema.filter<Schema.filter<typeof Schema.Number>>;
|
|
147
145
|
requestedSchema: Schema.Struct<{
|
|
148
146
|
$schema: Schema.optionalWith<typeof Schema.String, {
|
|
149
147
|
exact: true;
|
|
@@ -158,13 +156,12 @@ export declare const SendInput: Schema.Union<[Schema.Struct<{
|
|
|
158
156
|
exact: true;
|
|
159
157
|
}>;
|
|
160
158
|
}>, Schema.Struct<{
|
|
159
|
+
to: Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">;
|
|
161
160
|
collectiveResponse: Schema.Union<[Schema.Struct<{
|
|
162
|
-
id: Schema.brand<Schema.filter<typeof Schema.String>, "CollectiveId">;
|
|
163
161
|
action: Schema.Literal<["accept"]>;
|
|
164
162
|
content: Schema.Record$<typeof Schema.String, Schema.Union<[typeof Schema.String, Schema.filter<typeof Schema.Number>, typeof Schema.Boolean, Schema.Array$<typeof Schema.String>]>>;
|
|
165
163
|
}>, Schema.Struct<{
|
|
166
|
-
|
|
167
|
-
action: Schema.Literal<["decline", "cancel"]>;
|
|
164
|
+
action: Schema.Literal<["decline"]>;
|
|
168
165
|
}>]>;
|
|
169
166
|
}>]>;
|
|
170
167
|
/** Validated input for one send. */
|
|
@@ -175,6 +172,8 @@ export type SendInput = typeof SendInput.Type;
|
|
|
175
172
|
* send completes.
|
|
176
173
|
*/
|
|
177
174
|
export type FailureDelivery = "result" | "inbound";
|
|
175
|
+
declare const sendFailure: Schema.Literal<["invalid-address", "unknown-agent", "membership-invalid", "content-invalid", "not-registered", "version-mismatch", "certification-unavailable", "persistence-failed", "network-unavailable"]>;
|
|
176
|
+
type SendFailure = typeof sendFailure.Type;
|
|
178
177
|
/** What a completed send returns: a collecting operation names its id. */
|
|
179
178
|
export interface SendResult {
|
|
180
179
|
readonly operationId?: CollectiveId;
|
|
@@ -287,14 +286,17 @@ export declare const InboundMessage: Schema.Union<[Schema.filter<Schema.Struct<{
|
|
|
287
286
|
}>>]>;
|
|
288
287
|
/** A validated direct or group post. */
|
|
289
288
|
export type InboundMessage = typeof InboundMessage.Type;
|
|
290
|
-
/**
|
|
289
|
+
/**
|
|
290
|
+
* One member's outcome in a completed gather or all_gather, discriminated by
|
|
291
|
+
* `kind`. `no-answer` covers every member that did not answer: one whose
|
|
292
|
+
* request post was refused or not certified in time, and one silent at the
|
|
293
|
+
* deadline.
|
|
294
|
+
*/
|
|
291
295
|
declare const memberOutcome: Schema.Union<[Schema.Struct<{
|
|
292
296
|
kind: Schema.Literal<["answered"]>;
|
|
293
297
|
content: Schema.Record$<typeof Schema.String, Schema.Union<[typeof Schema.String, Schema.filter<typeof Schema.Number>, typeof Schema.Boolean, Schema.Array$<typeof Schema.String>]>>;
|
|
294
298
|
}>, Schema.Struct<{
|
|
295
299
|
kind: Schema.Literal<["declined"]>;
|
|
296
|
-
}>, Schema.Struct<{
|
|
297
|
-
kind: Schema.Literal<["cancelled"]>;
|
|
298
300
|
}>, Schema.Struct<{
|
|
299
301
|
kind: Schema.Literal<["invalid"]>;
|
|
300
302
|
reason: typeof Schema.String;
|
|
@@ -392,8 +394,6 @@ export declare const InboundItem: Schema.Union<[Schema.Struct<{
|
|
|
392
394
|
content: Schema.Record$<typeof Schema.String, Schema.Union<[typeof Schema.String, Schema.filter<typeof Schema.Number>, typeof Schema.Boolean, Schema.Array$<typeof Schema.String>]>>;
|
|
393
395
|
}>, Schema.Struct<{
|
|
394
396
|
kind: Schema.Literal<["declined"]>;
|
|
395
|
-
}>, Schema.Struct<{
|
|
396
|
-
kind: Schema.Literal<["cancelled"]>;
|
|
397
397
|
}>, Schema.Struct<{
|
|
398
398
|
kind: Schema.Literal<["invalid"]>;
|
|
399
399
|
reason: typeof Schema.String;
|
|
@@ -412,8 +412,6 @@ export declare const InboundItem: Schema.Union<[Schema.Struct<{
|
|
|
412
412
|
}>]>;
|
|
413
413
|
/** A validated inbound item. */
|
|
414
414
|
export type InboundItem = typeof InboundItem.Type;
|
|
415
|
-
declare const sendFailure: Schema.Literal<["invalid-address", "unknown-agent", "membership-invalid", "content-invalid", "not-registered", "version-mismatch", "certification-unavailable", "persistence-failed", "network-unavailable"]>;
|
|
416
|
-
type SendFailure = typeof sendFailure.Type;
|
|
417
415
|
/**
|
|
418
416
|
* One line of the daemon's optional history export: an item as the daemon
|
|
419
417
|
* published it, a completed `send` invocation with its input and outcome, or
|
|
@@ -504,8 +502,6 @@ export declare const HistoryExportRecord: Schema.Union<[Schema.Struct<{
|
|
|
504
502
|
content: Schema.Record$<typeof Schema.String, Schema.Union<[typeof Schema.String, Schema.filter<typeof Schema.Number>, typeof Schema.Boolean, Schema.Array$<typeof Schema.String>]>>;
|
|
505
503
|
}>, Schema.Struct<{
|
|
506
504
|
kind: Schema.Literal<["declined"]>;
|
|
507
|
-
}>, Schema.Struct<{
|
|
508
|
-
kind: Schema.Literal<["cancelled"]>;
|
|
509
505
|
}>, Schema.Struct<{
|
|
510
506
|
kind: Schema.Literal<["invalid"]>;
|
|
511
507
|
reason: typeof Schema.String;
|
|
@@ -534,7 +530,7 @@ export declare const HistoryExportRecord: Schema.Union<[Schema.Struct<{
|
|
|
534
530
|
}>;
|
|
535
531
|
}>, Schema.Struct<{
|
|
536
532
|
op: Schema.Literal<["gather", "all_gather"]>;
|
|
537
|
-
deadline: Schema.
|
|
533
|
+
deadline: Schema.filter<Schema.filter<typeof Schema.Number>>;
|
|
538
534
|
requestedSchema: Schema.Struct<{
|
|
539
535
|
$schema: Schema.optionalWith<typeof Schema.String, {
|
|
540
536
|
exact: true;
|
|
@@ -549,13 +545,12 @@ export declare const HistoryExportRecord: Schema.Union<[Schema.Struct<{
|
|
|
549
545
|
exact: true;
|
|
550
546
|
}>;
|
|
551
547
|
}>, Schema.Struct<{
|
|
548
|
+
to: Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">;
|
|
552
549
|
collectiveResponse: Schema.Union<[Schema.Struct<{
|
|
553
|
-
id: Schema.brand<Schema.filter<typeof Schema.String>, "CollectiveId">;
|
|
554
550
|
action: Schema.Literal<["accept"]>;
|
|
555
551
|
content: Schema.Record$<typeof Schema.String, Schema.Union<[typeof Schema.String, Schema.filter<typeof Schema.Number>, typeof Schema.Boolean, Schema.Array$<typeof Schema.String>]>>;
|
|
556
552
|
}>, Schema.Struct<{
|
|
557
|
-
|
|
558
|
-
action: Schema.Literal<["decline", "cancel"]>;
|
|
553
|
+
action: Schema.Literal<["decline"]>;
|
|
559
554
|
}>]>;
|
|
560
555
|
}>]>;
|
|
561
556
|
outcome: Schema.Union<[Schema.Struct<{
|
|
@@ -610,7 +605,9 @@ declare const collectiveFailure: Schema.Union<[Schema.Struct<{
|
|
|
610
605
|
}>;
|
|
611
606
|
}>>;
|
|
612
607
|
}>, Schema.Struct<{
|
|
613
|
-
kind: Schema.Literal<["request-
|
|
608
|
+
kind: Schema.Literal<["request-none"]>;
|
|
609
|
+
}>, Schema.Struct<{
|
|
610
|
+
kind: Schema.Literal<["request-ambiguous"]>;
|
|
614
611
|
}>, Schema.Struct<{
|
|
615
612
|
kind: Schema.Literal<["request-answered"]>;
|
|
616
613
|
}>, Schema.Struct<{
|
|
@@ -647,7 +644,9 @@ export declare const decodeCollectiveFailure: (u: unknown, overrideOptions?: imp
|
|
|
647
644
|
readonly detail?: string | undefined;
|
|
648
645
|
}[]];
|
|
649
646
|
} | {
|
|
650
|
-
readonly kind: "request-
|
|
647
|
+
readonly kind: "request-none";
|
|
648
|
+
} | {
|
|
649
|
+
readonly kind: "request-ambiguous";
|
|
651
650
|
} | {
|
|
652
651
|
readonly kind: "request-answered";
|
|
653
652
|
} | {
|
|
@@ -657,8 +656,9 @@ declare const CollectiveError_base: new <A extends Record<string, any> = {}>(arg
|
|
|
657
656
|
readonly _tag: "CollectiveError";
|
|
658
657
|
} & Readonly<A>;
|
|
659
658
|
/**
|
|
660
|
-
* A
|
|
661
|
-
* failing field, so a host can hand it to its model as
|
|
659
|
+
* A gather, all_gather or answer was refused. The message names each
|
|
660
|
+
* unreachable member or failing field, so a host can hand it to its model as
|
|
661
|
+
* the tool error.
|
|
662
662
|
*/
|
|
663
663
|
export declare class CollectiveError extends CollectiveError_base<{
|
|
664
664
|
readonly id: CollectiveId;
|
package/dist/contract.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAI3E,OAAO,EAEL,KAAK,MAAM,EAGX,MAAM,EACN,KAAK,MAAM,EACZ,MAAM,QAAQ,CAAC;AAiHhB,wEAAwE;AACxE,eAAO,MAAM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;;;;;;;GASG;AACH,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,IAAI,EAAE,CACb,KAAK,EAAE,SAAS,EAChB,OAAO,CAAC,EAAE,QAAQ,CAAC;QAAE,eAAe,CAAC,EAAE,eAAe,CAAA;KAAE,CAAC,KACtD,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,SAAS,GAAG,eAAe,CAAC,CAAC;IAC5D,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,eAAe,EAAE,WAAW,CAAC,CAAC;CAChE"}
|
package/dist/contract.js
CHANGED
|
@@ -128,26 +128,15 @@ const contentStructure = Schema.NonEmptyArray(ContentPart);
|
|
|
128
128
|
export const Content = contentStructure.pipe(Schema.filter(contentFits), Schema.annotations({ identifier: "Content" }));
|
|
129
129
|
/**
|
|
130
130
|
* Identity of one gather or all_gather, minted by the requesting endpoint.
|
|
131
|
-
* The request, each member's answer, an all_gather's close, the result
|
|
132
|
-
* any failure carry it.
|
|
131
|
+
* The request, each member's answer post, an all_gather's close, the result
|
|
132
|
+
* and any failure carry it. An answer that matches no single open request is
|
|
133
|
+
* refused under an id minted for the refusal, so its failure is named too.
|
|
133
134
|
*/
|
|
134
135
|
export const CollectiveId = Schema.String.pipe(Schema.filter((value) => isCanonicalIdentifier("col_", value), {
|
|
135
136
|
description: "A collective operation id: col_ followed by 43 base64url characters",
|
|
136
137
|
}), Schema.brand("CollectiveId"));
|
|
137
|
-
/**
|
|
138
|
-
|
|
139
|
-
* override keeps the recursive JSON value out of host tool schemas, which
|
|
140
|
-
* cannot follow a `$ref` into definitions they do not carry.
|
|
141
|
-
*/
|
|
142
|
-
const formProperty = Schema.Record({
|
|
143
|
-
key: Schema.String,
|
|
144
|
-
value: JsonValue,
|
|
145
|
-
}).annotations({
|
|
146
|
-
jsonSchema: {
|
|
147
|
-
type: "object",
|
|
148
|
-
description: 'One MCP form-mode primitive schema: {"type":"string"} with optional enum, minLength, maxLength or format; {"type":"number"} or {"type":"integer"} with optional minimum and maximum; {"type":"boolean"}; or {"type":"array","items":{"enum":[...]}} for a multi-select. Each may carry title, description and default.',
|
|
149
|
-
},
|
|
150
|
-
});
|
|
138
|
+
/** One property of a form-mode schema as a caller states it. */
|
|
139
|
+
const formProperty = Schema.Record({ key: Schema.String, value: JsonValue });
|
|
151
140
|
/**
|
|
152
141
|
* The MCP form-mode `requestedSchema` of a collecting operation: a flat object
|
|
153
142
|
* of primitive properties. This schema fixes its outline; the sending endpoint
|
|
@@ -158,8 +147,6 @@ export const RequestedSchema = exactStruct({
|
|
|
158
147
|
type: Schema.Literal("object"),
|
|
159
148
|
properties: Schema.Record({ key: Schema.String, value: formProperty }),
|
|
160
149
|
required: Schema.optionalWith(Schema.Array(Schema.String), { exact: true }),
|
|
161
|
-
}).annotations({
|
|
162
|
-
description: "The answer form: an MCP form-mode requestedSchema, a flat object of primitive properties. For a free-form answer use one string property.",
|
|
163
150
|
});
|
|
164
151
|
/**
|
|
165
152
|
* One answer to a collecting operation, field by field. Its value space is MCP
|
|
@@ -173,6 +160,8 @@ export const AnswerContent = Schema.Record({
|
|
|
173
160
|
});
|
|
174
161
|
/** The longest deadline a collecting operation may state: 30 days, in seconds. */
|
|
175
162
|
export const MAXIMUM_DEADLINE_SECONDS = 2_592_000;
|
|
163
|
+
/** A collecting operation's relative deadline: whole seconds, up to 30 days. */
|
|
164
|
+
export const DeadlineSeconds = Schema.Number.pipe(Schema.int(), Schema.between(1, MAXIMUM_DEADLINE_SECONDS));
|
|
176
165
|
/**
|
|
177
166
|
* Multicast: one post to the `to` address, complete when certified. `op`
|
|
178
167
|
* defaults to multicast, so an omitted `op` and an omitted `collective` mean
|
|
@@ -193,45 +182,40 @@ const multicastOperation = exactStruct({
|
|
|
193
182
|
*/
|
|
194
183
|
const collectingOperation = exactStruct({
|
|
195
184
|
op: Schema.Literal("gather", "all_gather"),
|
|
196
|
-
deadline:
|
|
197
|
-
description: "Seconds from now until the operation closes, a whole number from 1 to 2592000 (30 days). Members who have not answered by then are reported as no-answer.",
|
|
198
|
-
}),
|
|
185
|
+
deadline: DeadlineSeconds,
|
|
199
186
|
requestedSchema: RequestedSchema,
|
|
200
187
|
});
|
|
188
|
+
/** The collective operation one send performs, discriminated by `op`. */
|
|
189
|
+
const CollectiveOperation = Schema.Union(multicastOperation, collectingOperation);
|
|
201
190
|
/**
|
|
202
|
-
*
|
|
203
|
-
*
|
|
204
|
-
*
|
|
191
|
+
* A member's answer to the one request open in the conversation it is sent
|
|
192
|
+
* to: the requester's direct conversation for a gather, the group for an
|
|
193
|
+
* all_gather. It is MCP's `ElicitResult`; only `accept` carries content,
|
|
194
|
+
* valid against the request's schema.
|
|
205
195
|
*/
|
|
206
|
-
|
|
207
|
-
description: 'The collective operation. Omit it, or its op, for multicast: one post to the to address. {"op":"gather","deadline":<seconds>,"requestedSchema":<form>} asks each member of to the message text as a question, privately, and returns one result with each member\'s answer, decline, or no-answer once all have replied or the deadline passes. {"op":"all_gather","deadline":<seconds>,"requestedSchema":<form>} asks one question to a group: to must be a group: address, no member sees another\'s answer before the close, and everyone, the asker included, receives the same result at the close.',
|
|
208
|
-
});
|
|
209
|
-
/**
|
|
210
|
-
* A member's reply to one collective request. Only `accept` carries content,
|
|
211
|
-
* valid against the request's schema; the member's endpoint addresses the
|
|
212
|
-
* reply to the conversation the request arrived in.
|
|
213
|
-
*/
|
|
214
|
-
export const CollectiveResponse = Schema.Union(exactStruct({
|
|
215
|
-
id: CollectiveId,
|
|
196
|
+
const CollectiveResponse = Schema.Union(exactStruct({
|
|
216
197
|
action: Schema.Literal("accept"),
|
|
217
198
|
content: AnswerContent,
|
|
218
199
|
}), exactStruct({
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
})).annotations({
|
|
222
|
-
description: 'Answer a collective request: {"id":<request id>,"action":"accept","content":{...}} with content valid against the request\'s schema, or {"id":<request id>,"action":"decline"} or "cancel" without content. The reply goes to the conversation the request arrived in, the requester for a gather and the group for an all_gather, whatever to says, and each request takes one answer.',
|
|
223
|
-
});
|
|
200
|
+
action: Schema.Literal("decline"),
|
|
201
|
+
}));
|
|
224
202
|
/**
|
|
225
|
-
* One send:
|
|
226
|
-
*
|
|
227
|
-
*
|
|
228
|
-
*
|
|
203
|
+
* One send to one address: text with its collective operation, multicast
|
|
204
|
+
* when `collective` is omitted, or an answer to the request open in that
|
|
205
|
+
* address's conversation. `parseMessageText` reads both from a message's
|
|
206
|
+
* text.
|
|
229
207
|
*/
|
|
230
208
|
export const SendInput = Schema.Union(exactStruct({
|
|
231
209
|
to: MessageAddressInput,
|
|
232
210
|
text: wellFormedString,
|
|
233
211
|
collective: Schema.optionalWith(CollectiveOperation, { exact: true }),
|
|
234
|
-
}), exactStruct({
|
|
212
|
+
}), exactStruct({
|
|
213
|
+
to: MessageAddressInput,
|
|
214
|
+
collectiveResponse: CollectiveResponse,
|
|
215
|
+
})).annotations({ identifier: "SendInput" });
|
|
216
|
+
const sendFailure = Schema.Literal("invalid-address", "unknown-agent", "membership-invalid", "content-invalid", "not-registered", "version-mismatch", "certification-unavailable", "persistence-failed", "network-unavailable");
|
|
217
|
+
/** Members a send could not reach, each with its send failure's reason. */
|
|
218
|
+
const unreachableMembers = Schema.NonEmptyArray(exactStruct({ member: AgentAddress, reason: sendFailure }));
|
|
235
219
|
const directMessageStructure = exactStruct({
|
|
236
220
|
kind: Schema.Literal("direct"),
|
|
237
221
|
postId: PostId,
|
|
@@ -278,8 +262,7 @@ const epochMillis = Schema.Number.pipe(Schema.int(), Schema.positive());
|
|
|
278
262
|
* A question another agent asked this one. `postId` is the certified request
|
|
279
263
|
* post's and `to` the conversation it arrived in: the requester's `agent:`
|
|
280
264
|
* address for a gather, the group's `group:` address for an all_gather. The
|
|
281
|
-
* member answers once with a `collectiveResponse`
|
|
282
|
-
* goes to `to`.
|
|
265
|
+
* member answers once with a `collectiveResponse` sent to `to`.
|
|
283
266
|
*/
|
|
284
267
|
const collectiveRequestItem = exactStruct({
|
|
285
268
|
kind: Schema.Literal("collectiveRequest"),
|
|
@@ -291,8 +274,13 @@ const collectiveRequestItem = exactStruct({
|
|
|
291
274
|
requestedSchema: RequestedSchema,
|
|
292
275
|
deadlineAt: epochMillis,
|
|
293
276
|
});
|
|
294
|
-
/**
|
|
295
|
-
|
|
277
|
+
/**
|
|
278
|
+
* One member's outcome in a completed gather or all_gather, discriminated by
|
|
279
|
+
* `kind`. `no-answer` covers every member that did not answer: one whose
|
|
280
|
+
* request post was refused or not certified in time, and one silent at the
|
|
281
|
+
* deadline.
|
|
282
|
+
*/
|
|
283
|
+
const memberOutcome = Schema.Union(exactStruct({ kind: Schema.Literal("answered"), content: AnswerContent }), exactStruct({ kind: Schema.Literal("declined") }), exactStruct({ kind: Schema.Literal("invalid"), reason: Schema.String }), exactStruct({ kind: Schema.Literal("no-answer") }));
|
|
296
284
|
/**
|
|
297
285
|
* The result of a gather this endpoint started, or of an all_gather this
|
|
298
286
|
* endpoint started or was asked: exactly one outcome per member, in member
|
|
@@ -331,7 +319,6 @@ const operationFailedItem = exactStruct({
|
|
|
331
319
|
export const InboundItem = Schema.Union(multicastItem, collectiveRequestItem, collectiveResultItem, operationFailedItem).annotations({
|
|
332
320
|
identifier: "InboundItem",
|
|
333
321
|
});
|
|
334
|
-
const sendFailure = Schema.Literal("invalid-address", "unknown-agent", "membership-invalid", "content-invalid", "not-registered", "version-mismatch", "certification-unavailable", "persistence-failed", "network-unavailable");
|
|
335
322
|
/**
|
|
336
323
|
* How one send ended in the history export: the posts certified by the time
|
|
337
324
|
* it returned, with the operation id of a gather or all_gather, or the
|
|
@@ -376,7 +363,7 @@ export class SendError extends Data.TaggedError("SendError") {
|
|
|
376
363
|
*/
|
|
377
364
|
const collectiveFailure = Schema.Union(exactStruct({
|
|
378
365
|
kind: Schema.Literal("members-unreachable"),
|
|
379
|
-
members:
|
|
366
|
+
members: unreachableMembers,
|
|
380
367
|
}), exactStruct({
|
|
381
368
|
kind: Schema.Literal("schema-invalid"),
|
|
382
369
|
detail: Schema.String,
|
|
@@ -387,7 +374,7 @@ const collectiveFailure = Schema.Union(exactStruct({
|
|
|
387
374
|
reason: Schema.Literal("missing", "unexpected", "invalid"),
|
|
388
375
|
detail: Schema.optionalWith(Schema.String, { exact: true }),
|
|
389
376
|
})),
|
|
390
|
-
}), exactStruct({ kind: Schema.Literal("request-
|
|
377
|
+
}), exactStruct({ kind: Schema.Literal("request-none") }), exactStruct({ kind: Schema.Literal("request-ambiguous") }), exactStruct({ kind: Schema.Literal("request-answered") }), exactStruct({ kind: Schema.Literal("request-expired") }));
|
|
391
378
|
/**
|
|
392
379
|
* Decode a collective failure carried across the loopback MCP boundary.
|
|
393
380
|
* @param value Untrusted failure detail from a refused send's error data.
|
|
@@ -408,12 +395,14 @@ function describeCollectiveFailure(failure) {
|
|
|
408
395
|
? `${field}: ${reason}`
|
|
409
396
|
: `${field}: ${reason} (${detail})`)
|
|
410
397
|
.join("; ")}`;
|
|
411
|
-
case "request-
|
|
412
|
-
return "no
|
|
398
|
+
case "request-none":
|
|
399
|
+
return "no gather or all_gather request is open in this conversation";
|
|
400
|
+
case "request-ambiguous":
|
|
401
|
+
return "more than one gather or all_gather request is open in this conversation, and answering one of several is not supported; nothing was sent";
|
|
413
402
|
case "request-answered":
|
|
414
|
-
return "
|
|
403
|
+
return "the request in this conversation was already answered";
|
|
415
404
|
case "request-expired":
|
|
416
|
-
return "
|
|
405
|
+
return "the request in this conversation has passed its deadline";
|
|
417
406
|
default: {
|
|
418
407
|
const exhaustive = failure;
|
|
419
408
|
return exhaustive;
|
|
@@ -421,12 +410,13 @@ function describeCollectiveFailure(failure) {
|
|
|
421
410
|
}
|
|
422
411
|
}
|
|
423
412
|
/**
|
|
424
|
-
* A
|
|
425
|
-
* failing field, so a host can hand it to its model as
|
|
413
|
+
* A gather, all_gather or answer was refused. The message names each
|
|
414
|
+
* unreachable member or failing field, so a host can hand it to its model as
|
|
415
|
+
* the tool error.
|
|
426
416
|
*/
|
|
427
417
|
export class CollectiveError extends Data.TaggedError("CollectiveError") {
|
|
428
418
|
get message() {
|
|
429
|
-
return `
|
|
419
|
+
return `operation ${this.id} failed: ${describeCollectiveFailure(this.failure)}`;
|
|
430
420
|
}
|
|
431
421
|
}
|
|
432
422
|
/** The endpoint's sole inbound subscription failed. */
|
package/dist/contract.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.js","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAE3E,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,YAAY,MAAM,cAAc,CAAC;AACxC,OAAO,EACL,IAAI,EAEJ,MAAM,EACN,QAAQ,EACR,MAAM,GAEP,MAAM,QAAQ,CAAC;AAEhB,uRAAuR;AAEvR,0KAA0K;AAE1K,MAAM,qBAAqB,GAAG,MAAM,CAAC;AACrC,MAAM,qBAAqB,GAAG,EAAE,CAAC;AACjC,MAAM,gBAAgB,GAAG,EAAE,CAAC;AAC5B,MAAM,oBAAoB,GAAG,QAAQ,CAAC;AACtC,MAAM,oBAAoB,GAAG,QAAQ,CAAC;AACtC,MAAM,WAAW,GAAG,IAAI,WAAW,EAAE,CAAC;AAEtC,MAAM,YAAY,GAAG;IACnB,KAAK,EAAE,IAAI;IACX,gBAAgB,EAAE,OAAgB;CACnC,CAAC;AAEF,MAAM,WAAW,GAAG,CAAsC,MAAc,EAAE,EAAE,CAC1E,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,EAAE,YAAY,EAAE,YAAY,EAAE,CAAC,CAAC;AAEpE,MAAM,WAAW,GAAG,MAAM,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC;AAEzC,SAAS,oBAAoB,CAAC,KAAa;IACzC,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,KAAK,IAAI,CAAC,EAAE,CAAC;QACrD,MAAM,QAAQ,GAAG,KAAK,CAAC,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AAC;YACR,MAAM,UAAU,GAAU,OAAO,CAAC;YAClC,OAAO,UAAU,CAAC;QACpB,CAAC;IACH,CAAC;AACH,CAAC;AAED;;;;GAIG;AACH,MAAM,OAAO,eAAgB,SAAQ,IAAI,CAAC,WAAW,CAAC,iBAAiB,CAGrE;IACA,IAAa,OAAO;QAClB,OAAO,aAAa,IAAI,CAAC,EAAE,YAAY,yBAAyB,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;IACnF,CAAC;CACF;AAQD,uDAAuD;AACvD,MAAM,OAAO,WAAY,SAAQ,IAAI,CAAC,WAAW,CAAC,aAAa,CAE7D;IACA,IAAa,OAAO;QAClB,OAAO,kBAAkB,IAAI,CAAC,MAAM,EAAE,CAAC;IACzC,CAAC;CACF;AAQD,oEAAoE;AACpE,MAAM,OAAO,wBAAyB,SAAQ,IAAI,CAAC,WAAW,CAC5D,0BAA0B,CAG1B;IACA,IAAa,OAAO;QAClB,OAAO,mCAAmC,IAAI,CAAC,MAAM,EAAE,CAAC;IAC1D,CAAC;CACF;AAOD,gDAAgD;AAChD,MAAM,OAAO,YAAa,SAAQ,IAAI,CAAC,WAAW,CAAC,cAAc,CAE/D;IACA,IAAa,OAAO;QAClB,OAAO,mBAAmB,IAAI,CAAC,MAAM,EAAE,CAAC;IAC1C,CAAC;CACF;AA0BD,0JAA0J"}
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
* operations or collective responses and whose inbound deliveries are tagged
|
|
4
4
|
* items. An operation carries an address, text and an optional collective
|
|
5
5
|
* operation, multicast by default or a gather or all_gather with its deadline
|
|
6
|
-
* and schema; a response names
|
|
6
|
+
* and schema; a response names the conversation whose open request it
|
|
7
|
+
* answers and no request id. One parser reads either from a message's text,
|
|
8
|
+
* so every adapter accepts the same text. Each inbound
|
|
7
9
|
* delivery carries one item plus transport-only acknowledgment: a multicast
|
|
8
10
|
* with the certified direct or complete-group message, a collective request
|
|
9
11
|
* naming the conversation it arrived in, a collective result that names an
|
|
@@ -11,8 +13,8 @@
|
|
|
11
13
|
* collecting operation's id and fails with a closed send reason or a
|
|
12
14
|
* collective failure.
|
|
13
15
|
*/
|
|
14
|
-
import type { DateTime, Effect, Scope, Stream } from "effect";
|
|
15
|
-
import type { acquireHarnessEndpoint, AgentAddress, CollectiveError,
|
|
16
|
+
import type { DateTime, Effect, Either, Scope, Stream } from "effect";
|
|
17
|
+
import type { acquireHarnessEndpoint, AgentAddress, CollectiveError, ConnectError, Content, ContentPart, DeliveryAcknowledgeError, DirectMessage, GroupAddress, GroupMessage, HarnessEndpoint, HistoryExportRecord, InboundDelivery, InboundItem, InboundMessage, JsonValue, ListenError, MessageAddressInput, MessageTextError, parseMessageText, PostId, SendError, SendInput, SendResult } from "./index.js";
|
|
16
18
|
type Equal<Left, Right> = [Left, Right] extends [Right, Left] ? true : false;
|
|
17
19
|
type Expect<Value extends true> = Value;
|
|
18
20
|
type CollectiveId = CollectiveError["id"];
|
|
@@ -31,19 +33,18 @@ type ExpectedCollectiveOperation = Readonly<{
|
|
|
31
33
|
requestedSchema: ExpectedRequestedSchema;
|
|
32
34
|
}>;
|
|
33
35
|
type ExpectedCollectiveResponse = Readonly<{
|
|
34
|
-
id: CollectiveId;
|
|
35
36
|
action: "accept";
|
|
36
37
|
content: ExpectedAnswerContent;
|
|
37
38
|
}> | Readonly<{
|
|
38
|
-
|
|
39
|
-
action: "decline" | "cancel";
|
|
39
|
+
action: "decline";
|
|
40
40
|
}>;
|
|
41
41
|
type ExpectedSendInput = Readonly<{
|
|
42
42
|
to: MessageAddressInput;
|
|
43
43
|
text: string;
|
|
44
|
-
collective?:
|
|
44
|
+
collective?: ExpectedCollectiveOperation;
|
|
45
45
|
}> | Readonly<{
|
|
46
|
-
|
|
46
|
+
to: MessageAddressInput;
|
|
47
|
+
collectiveResponse: ExpectedCollectiveResponse;
|
|
47
48
|
}>;
|
|
48
49
|
type ExpectedSendResult = Readonly<{
|
|
49
50
|
operationId?: CollectiveId;
|
|
@@ -73,8 +74,6 @@ type ExpectedMemberOutcome = Readonly<{
|
|
|
73
74
|
content: ExpectedAnswerContent;
|
|
74
75
|
}> | Readonly<{
|
|
75
76
|
kind: "declined";
|
|
76
|
-
}> | Readonly<{
|
|
77
|
-
kind: "cancelled";
|
|
78
77
|
}> | Readonly<{
|
|
79
78
|
kind: "invalid";
|
|
80
79
|
reason: string;
|
|
@@ -125,10 +124,10 @@ type ExpectedEndpoint = Readonly<{
|
|
|
125
124
|
}>) => Effect.Effect<SendResult, SendError | CollectiveError>;
|
|
126
125
|
messages: Stream.Stream<InboundDelivery, ListenError>;
|
|
127
126
|
}>;
|
|
128
|
-
type CollectiveOperationIsExact = Expect<Equal<CollectiveOperation, ExpectedCollectiveOperation>>;
|
|
129
|
-
type CollectiveResponseIsExact = Expect<Equal<CollectiveResponse, ExpectedCollectiveResponse>>;
|
|
130
127
|
type SendInputIsExact = Expect<Equal<SendInput, ExpectedSendInput>>;
|
|
128
|
+
type MessageTextParserIsExact = Expect<Equal<typeof parseMessageText, (to: MessageAddressInput, text: string) => Either.Either<SendInput, MessageTextError>>>;
|
|
131
129
|
type SendResultIsExact = Expect<Equal<SendResult, ExpectedSendResult>>;
|
|
130
|
+
type SendResultKeysAreExact = Expect<Equal<keyof SendResult, keyof ExpectedSendResult>>;
|
|
132
131
|
type InboundItemIsExact = Expect<Equal<InboundItem, ExpectedInboundItem>>;
|
|
133
132
|
type DirectMessageIsExact = Expect<Equal<DirectMessage, ExpectedDirectMessage>>;
|
|
134
133
|
type GroupMessageIsExact = Expect<Equal<GroupMessage, ExpectedGroupMessage>>;
|
|
@@ -161,7 +160,7 @@ type ContentIsNonempty = Expect<Content extends readonly [ContentPart, ...Conten
|
|
|
161
160
|
type AgentAddressIsInput = Expect<AgentAddress extends MessageAddressInput ? true : false>;
|
|
162
161
|
type GroupAddressIsInput = Expect<GroupAddress extends MessageAddressInput ? true : false>;
|
|
163
162
|
type SendReasonsAreExact = Expect<Equal<SendError["reason"], "invalid-address" | "unknown-agent" | "membership-invalid" | "content-invalid" | "not-registered" | "version-mismatch" | "certification-unavailable" | "persistence-failed" | "network-unavailable">>;
|
|
164
|
-
type CollectiveFailureKindsAreExact = Expect<Equal<CollectiveError["failure"]["kind"], "members-unreachable" | "schema-invalid" | "answer-invalid" | "request-
|
|
163
|
+
type CollectiveFailureKindsAreExact = Expect<Equal<CollectiveError["failure"]["kind"], "members-unreachable" | "schema-invalid" | "answer-invalid" | "request-none" | "request-ambiguous" | "request-answered" | "request-expired">>;
|
|
165
164
|
type ListenReasonsAreExact = Expect<Equal<ListenError["reason"], "already-listening" | "incompatible-daemon" | "transport-failed" | "decode-failed">>;
|
|
166
165
|
type AcknowledgeReasonsAreExact = Expect<Equal<DeliveryAcknowledgeError["reason"], "unknown-delivery" | "delivery-conflict" | "persistence-failed" | "transport-failed">>;
|
|
167
166
|
type ConnectReasonsAreExact = Expect<Equal<ConnectError["reason"], "transport-failed" | "decode-failed" | "incompatible-daemon">>;
|
|
@@ -169,10 +168,10 @@ type AcquisitionIsScoped = Expect<Equal<Parameters<typeof acquireHarnessEndpoint
|
|
|
169
168
|
type AcquisitionResultIsExact = Expect<Equal<ReturnType<typeof acquireHarnessEndpoint>, Effect.Effect<HarnessEndpoint, ConnectError, Scope.Scope>>>;
|
|
170
169
|
/** Compile-time witnesses for the accepted public Client boundary. */
|
|
171
170
|
export type HarnessEndpointCanaries = [
|
|
172
|
-
CollectiveOperationIsExact,
|
|
173
|
-
CollectiveResponseIsExact,
|
|
174
171
|
SendInputIsExact,
|
|
172
|
+
MessageTextParserIsExact,
|
|
175
173
|
SendResultIsExact,
|
|
174
|
+
SendResultKeysAreExact,
|
|
176
175
|
InboundItemIsExact,
|
|
177
176
|
DirectMessageIsExact,
|
|
178
177
|
GroupMessageIsExact,
|