@molecule/api-ai 1.3.2 → 1.3.4

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 CHANGED
@@ -3,20 +3,20 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
3
3
  Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
4
4
  Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
5
5
  To change this document, edit the module-level JSDoc in src/index.ts.
6
- Generated: 2026-10-16T11:11:52.088Z
6
+ Generated: 2026-10-16T23:28:03.622Z
7
7
  -->
8
8
 
9
9
  # @molecule/api-ai
10
10
 
11
- > **Auto-generated, AI-first package reference** for the [molecule.dev](https://molecule.dev) ecosystem.
12
- > It is written to be read by coding agents as much as by people, and is generated from this
13
- > package's source — edit `src/index.ts` JSDoc, not this file.
14
-
15
11
  Model-agnostic AI chat interface for molecule.dev.
16
12
 
17
13
  Defines the `AIProvider` interface that bond packages (Anthropic, OpenAI, etc.)
18
14
  implement, plus types for messages, streaming events, tool use, and token usage.
19
15
 
16
+ > **Auto-generated, AI-first package reference** for the [molecule.dev](https://molecule.dev) ecosystem.
17
+ > It is written to be read by coding agents as much as by people, and is generated from this
18
+ > package's source — edit `src/index.ts` JSDoc, not this file.
19
+
20
20
  ## Quick Start
21
21
 
22
22
  ```typescript
@@ -70,6 +70,42 @@ interface ChatMessage {
70
70
  }
71
71
  ```
72
72
 
73
+ #### `ProviderResponseMeta`
74
+
75
+ What the provider said about the call itself — the ids an investigation needs
76
+ when a reply is wrong.
77
+
78
+ A completion that does not belong to the request that asked for it is not
79
+ hypothetical: on 2026-10-16 a molecule.dev conversation was handed a complete
80
+ foreign answer (a Flutter/.NET ticket review) on a stream whose own token
81
+ usage matched that conversation's context exactly — the request was ours, the
82
+ text was not. Nothing on the platform recorded which upstream response it
83
+ was, so neither we nor the provider could trace it afterwards. Bonds report
84
+ this on `done` so the platform can log our request id next to the provider's
85
+ own ids, and attach them to the message that gets persisted (or dropped).
86
+
87
+ Every field is optional: a provider that exposes none of them simply reports
88
+ nothing, and the platform still has its own side of the correlation.
89
+
90
+ ```typescript
91
+ interface ProviderResponseMeta {
92
+ /** The caller's `ChatParams.requestId`, echoed back (or the bond's own mint). */
93
+ requestId?: string
94
+ /** The provider's id for this completion, e.g. an OpenAI-compatible `chatcmpl`. */
95
+ responseId?: string
96
+ /** A transport-level trace id, when the provider returns one (e.g. `x-ds-trace-id`). */
97
+ traceId?: string
98
+ /**
99
+ * The model id the PROVIDER says answered. A re-host may serve a different
100
+ * snapshot than the id we asked for (dated vs. undated weights), so this is
101
+ * recorded rather than assumed equal to the requested model.
102
+ */
103
+ model?: string
104
+ /** The endpoint the request was sent to — which region/host actually served it. */
105
+ endpoint?: string
106
+ }
107
+ ```
108
+
73
109
  #### `TokenUsage`
74
110
 
75
111
  Token usage from a chat completion.
@@ -293,6 +329,18 @@ interface ChatParams {
293
329
  * conversation history is biased toward it.
294
330
  */
295
331
  toolChoice?: 'auto' | 'required' | { type: 'tool'; name: string }
332
+ /**
333
+ * Sequences the provider stops generating at (`stop` on the OpenAI-compatible
334
+ * wire). The provider drops the matched text from the reply — the sequence
335
+ * itself is never returned — so this ends a reply the caller would discard
336
+ * anyway, at the cost of the tokens written before the match instead of the
337
+ * whole answer.
338
+ *
339
+ * Providers cap the list (DeepSeek and OpenAI accept 16 and 4 respectively);
340
+ * a bond sends as many as its own API takes and ignores the rest. Bonds whose
341
+ * provider has no stop parameter ignore it.
342
+ */
343
+ stop?: string[]
296
344
  /**
297
345
  * Opaque, stable identifier for the END USER on whose behalf this request is
298
346
  * made — forwarded to providers that accept one (Anthropic `metadata.user_id`,
@@ -313,6 +361,21 @@ interface ChatParams {
313
361
  * Bonds whose provider has no equivalent field ignore it.
314
362
  */
315
363
  endUserId?: string
364
+ /**
365
+ * Correlation id for THIS call, minted by the caller and sent to the provider
366
+ * so a reply can be tied back to the request that asked for it.
367
+ *
368
+ * The provider's own response id is not enough on its own: when a reply is
369
+ * wrong (2026-10-16: a molecule.dev conversation received a complete, foreign
370
+ * completion — a Flutter/.NET ticket review — from the provider), the vendor
371
+ * can only trace it if we can name the request. Bonds that have a transport
372
+ * header to carry it send it verbatim (they MUST NOT fold it into
373
+ * `endUserId`, which is a stable per-user abuse-attribution value that every
374
+ * request must share), capture whatever trace id the provider returns, and
375
+ * report both back in the `done` event's `provider` field. Bonds with no such
376
+ * channel still report the response's own id. Absent = the bond mints one.
377
+ */
378
+ requestId?: string
316
379
  /**
317
380
  * Extra provider-native request-body params, shallow-merged into the outgoing
318
381
  * request body as a BASE — the bond's own structural fields (model, messages,
@@ -436,7 +499,7 @@ type ChatEvent =
436
499
  // reports usage at stream end (OpenAI-compatible `include_usage`) cannot emit
437
500
  // mid-stream snapshots; consumers must estimate aborted turns for those.
438
501
  | { type: 'usage'; usage: TokenUsage }
439
- | { type: 'done'; usage: TokenUsage }
502
+ | { type: 'done'; usage: TokenUsage; provider?: ProviderResponseMeta }
440
503
  | { type: 'error'; message: string; errorKey?: string }
441
504
  // Liveness signal. PROVIDER CONTRACT: every streaming provider MUST yield
442
505
  // `keep_alive` whenever it receives data from the upstream API that produces
package/dist/types.d.ts CHANGED
@@ -61,6 +61,38 @@ export type ContentBlock = {
61
61
  tool_use_id: string;
62
62
  content: string | unknown;
63
63
  };
64
+ /**
65
+ * What the provider said about the call itself — the ids an investigation needs
66
+ * when a reply is wrong.
67
+ *
68
+ * A completion that does not belong to the request that asked for it is not
69
+ * hypothetical: on 2026-10-16 a molecule.dev conversation was handed a complete
70
+ * foreign answer (a Flutter/.NET ticket review) on a stream whose own token
71
+ * usage matched that conversation's context exactly — the request was ours, the
72
+ * text was not. Nothing on the platform recorded which upstream response it
73
+ * was, so neither we nor the provider could trace it afterwards. Bonds report
74
+ * this on `done` so the platform can log our request id next to the provider's
75
+ * own ids, and attach them to the message that gets persisted (or dropped).
76
+ *
77
+ * Every field is optional: a provider that exposes none of them simply reports
78
+ * nothing, and the platform still has its own side of the correlation.
79
+ */
80
+ export interface ProviderResponseMeta {
81
+ /** The caller's `ChatParams.requestId`, echoed back (or the bond's own mint). */
82
+ requestId?: string;
83
+ /** The provider's id for this completion, e.g. an OpenAI-compatible `chatcmpl`. */
84
+ responseId?: string;
85
+ /** A transport-level trace id, when the provider returns one (e.g. `x-ds-trace-id`). */
86
+ traceId?: string;
87
+ /**
88
+ * The model id the PROVIDER says answered. A re-host may serve a different
89
+ * snapshot than the id we asked for (dated vs. undated weights), so this is
90
+ * recorded rather than assumed equal to the requested model.
91
+ */
92
+ model?: string;
93
+ /** The endpoint the request was sent to — which region/host actually served it. */
94
+ endpoint?: string;
95
+ }
64
96
  /**
65
97
  * Streaming event from an AI chat call.
66
98
  */
@@ -91,6 +123,7 @@ export type ChatEvent = {
91
123
  } | {
92
124
  type: 'done';
93
125
  usage: TokenUsage;
126
+ provider?: ProviderResponseMeta;
94
127
  } | {
95
128
  type: 'error';
96
129
  message: string;
@@ -314,6 +347,18 @@ export interface ChatParams {
314
347
  type: 'tool';
315
348
  name: string;
316
349
  };
350
+ /**
351
+ * Sequences the provider stops generating at (`stop` on the OpenAI-compatible
352
+ * wire). The provider drops the matched text from the reply — the sequence
353
+ * itself is never returned — so this ends a reply the caller would discard
354
+ * anyway, at the cost of the tokens written before the match instead of the
355
+ * whole answer.
356
+ *
357
+ * Providers cap the list (DeepSeek and OpenAI accept 16 and 4 respectively);
358
+ * a bond sends as many as its own API takes and ignores the rest. Bonds whose
359
+ * provider has no stop parameter ignore it.
360
+ */
361
+ stop?: string[];
317
362
  /**
318
363
  * Opaque, stable identifier for the END USER on whose behalf this request is
319
364
  * made — forwarded to providers that accept one (Anthropic `metadata.user_id`,
@@ -334,6 +379,21 @@ export interface ChatParams {
334
379
  * Bonds whose provider has no equivalent field ignore it.
335
380
  */
336
381
  endUserId?: string;
382
+ /**
383
+ * Correlation id for THIS call, minted by the caller and sent to the provider
384
+ * so a reply can be tied back to the request that asked for it.
385
+ *
386
+ * The provider's own response id is not enough on its own: when a reply is
387
+ * wrong (2026-10-16: a molecule.dev conversation received a complete, foreign
388
+ * completion — a Flutter/.NET ticket review — from the provider), the vendor
389
+ * can only trace it if we can name the request. Bonds that have a transport
390
+ * header to carry it send it verbatim (they MUST NOT fold it into
391
+ * `endUserId`, which is a stable per-user abuse-attribution value that every
392
+ * request must share), capture whatever trace id the provider returns, and
393
+ * report both back in the `done` event's `provider` field. Bonds with no such
394
+ * channel still report the response's own id. Absent = the bond mints one.
395
+ */
396
+ requestId?: string;
337
397
  /**
338
398
  * Extra provider-native request-body params, shallow-merged into the outgoing
339
399
  * request body as a BASE — the bond's own structural fields (model, messages,
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,GAAG,WAAW,GAAG,QAAQ,CAAA;IACrC,OAAO,EAAE,MAAM,GAAG,YAAY,EAAE,CAAA;IAChC;;;;;;;;OAQG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;GAMG;AACH,MAAM,MAAM,YAAY,GACpB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAC9B;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAClD;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,GACxE;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAClD;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,SAAS,EAAE,MAAM,C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AAC,EAAE,WAAW,CAAA;IACpB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAA;IACjE;;;;;;;;;;OAUG;IACH,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IACf;;;;;;;;;;;;;;;;;;OAkBG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;;;;;;;;;;;OAaG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;;;;;;;;;;;OAaG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACpC;AAED;;;;;GAKG;AACH,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IAErB;;;;;;OAMG;IACH,IAAI,CAAC,MAAM,EAAE,UAAU,GAAG,aAAa,CAAC,SAAS,CAAC,CAAA;CACnD;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,6DAA6D;IAC7D,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,sCAAsC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,2BAA2B;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molecule/api-ai",
3
- "version": "1.3.2",
3
+ "version": "1.3.4",
4
4
  "description": "Model-agnostic AI provider interface with streaming chat and tool use",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",