@silverprotocol/vercel-ai 1.0.0-rc.6 → 1.0.0-rc.7

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.
Files changed (2) hide show
  1. package/README.md +2 -0
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -33,6 +33,8 @@ facet's per-field dispositions, including its disclosed `silently-dropped` gaps)
33
33
 
34
34
  | `ai` | verified | with | evidence |
35
35
  | --- | --- | --- | --- |
36
+ | `7.0.166` | 2026-11-09 | 1.0.0-rc.6 | ai 7.0.157 -> 7.0.166 with @ai-sdk/openai 4.0.105 -> 4.0.111, @ai-sdk/mcp 2.0.87 -> 2.0.93, gateway 4.0.130 -> 4.0.139, provider-utils 5.0.71 -> 5.0.76 and provider 4.0.34 -> 4.0.37 (one copy of each in the tree). The TextStreamPart union gains two members, ping (ai 7.0.163; only the Anthropic provider emits it, and only with includePings) and the experimental steering-message part; both ride the facet's tolerant ext.vercel.frame carry. LanguageModelRequestMetadata gains url, a sanitized request origin that only the Chat Completions provider sets; the facet reads only warnings from start-step. The other member declarations, the finish and finish-step parts, LanguageModelUsage, FinishReason and ProviderMetadata are unchanged. Runtime: @ai-sdk/openai 4.0.110 handles Responses refusal deltas, so a refusal now streams as text and the finish maps to content-filter with no rawFinishReason; the facet closes such a turn safety_blocked with the refusal text and no finishReasonRaw (4.0.109 dropped the refusal and finished stop). A fixture leg pins the new shape; the corpus holds no live refusal. ai 7.0.165 sanitizes request URLs before telemetry, and 7.0.166 differs from 7.0.165 only in its gateway dependency. @ai-sdk/mcp adds an input_required retry loop in the 2026-07-28 protocol mode only; the tool-result shape is unchanged. Live: echo-gpt61terra (gpt-6.1-terra), echo-gpt61sol and web-search-gpt61sol (gpt-6.1-sol) captured green at 7.0.166; echo-gpt61terra and echo-gpt61sol keep the event-type sequences of their 7.0.157 cassettes, and web-search-gpt61sol keeps two provider-executed web_search calls and two url citations (of three live runs, the one that kept both calls), with no reasoning block this run. Census: no drops and no new fields. |
37
+ | `7.0.157` | 2026-11-03 | 1.0.0-rc.6 | ai 7.0.153 -> 7.0.157 with @ai-sdk/openai 4.0.102 -> 4.0.105, @ai-sdk/mcp 2.0.84 -> 2.0.87, gateway 4.0.126 -> 4.0.130 and provider-utils 5.0.68 -> 5.0.71 (provider stays 4.0.34). The TextStreamPart union and its declarations are unchanged. The d.ts additions are experimental steering (experimental_createSteering, StepResult.experimental_steeringMessages), onStepError on generateText, streamText and ToolLoopAgent, onError and onAbort on ToolLoopAgent, aiVersion on telemetry events, and filterActiveTools graduated from experimental; provider-utils changes only its reasoning-mapping helpers and sandbox types. Runtime: ai 7.0.155 stops validating input messages against the ModelMessage schema, which is on the input side; the step loop is rewritten for steering and, without a steering object, continues and stops on the same conditions as 7.0.153, so the fullStream path is unchanged. @ai-sdk/openai 4.0.104 adds gpt-6.1-terra to the models that accept reasoning effort none and reports an unfinished web search as a tool error; 4.0.105 maps a top-level reasoning option to the closest effort the model supports and sends a providerOptions effort unchanged (the captures set neither). Live: echo-gpt61terra (gpt-6.1-terra), echo-gpt61sol and web-search-gpt61sol (gpt-6.1-sol) captured green at 7.0.157, each with the same event-type sequence as its 7.0.153 cassette; web-search-gpt61sol keeps two provider-executed web_search calls and two url citations on its text block. Census: no drops and no new fields after one transform, finish.totalUsage.raw.input_tokens_details.cache_write_tokens onto usage.cacheWriteTokens (the raw echo of the carried typed counter, which drops when its value is 0); the fresh cassettes are committed. |
36
38
  | `7.0.153` | 2026-10-26 | 1.0.0-rc.4 | ai 7.0.146 -> 7.0.153 with @ai-sdk/openai 4.0.98 -> 4.0.102, @ai-sdk/mcp 2.0.80 -> 2.0.84, gateway 4.0.119 -> 4.0.126, provider 4.0.31 -> 4.0.34 and provider-utils 5.0.64 -> 5.0.68. The TextStreamPart union is unchanged; FinishReason gains 'interrupted' (the provider stream ended without a completion signal), and the other additions are the experimental streamSpeech API, which the fullStream path does not touch. One runtime change needs facet code: @ai-sdk/openai from 4.0.100 starts every stream (Responses, Chat Completions and Completions) at 'interrupted' until its completion signal lands (4.0.99 and earlier started at 'other'), and ai from 7.0.149 stops its step loop on it, so a stream cut off mid-answer ends finish-step{interrupted}, finish{interrupted}. The facet used to close that as a success turn.done (finishReason unknown, finishReasonRaw interrupted); it now closes turn.abort {reason: interrupted}, as SPEC §8.0 item 17 requires for a native interruption, with each step's usage still on its message.end. The trigger is the provider, not ai: ai 7.0.146 passes 4.0.102's 'interrupted' through as well, and under @ai-sdk/openai 4.0.99 or earlier the same cut-off stream closes turn.done {other}, because the provider gives no interruption signal. The interruption close is pinned by parts captured from 7.0.153 with a stubbed fetch, since a live cut-off cannot be produced on demand. The text-end citations and tool-input-start inputEncoding the facet reads since the 2026-10-25 row arrived in ai 7.0.138 and 7.0.142. Live: echo-gpt61sol and web-search-gpt61sol (gpt-6.1-sol) captured green at 7.0.153 with no drops and no new fields; web-search-gpt61sol keeps two provider-executed web_search calls and two url citations on its text block. |
37
39
  | `7.0.146` | 2026-10-25 | 1.0.0-rc.3 | The facet now reads ai's text-end `citations` and tool-input-start `inputEncoding` (at ai 7.0.146 / @ai-sdk/openai 4.0.98, the versions of the 2026-10-20 row). A citation whose source is a URL source maps to an AgCitation of kind "url" on text.end.citations (indexFrame "response"; citedText the provider's own, else the block text between its offsets, else ""), which the fold attaches to the text block; every other citation (a document source, a malformed entry) rides ext.vercel.citations {textId, citations} verbatim, and inputEncoding rides ext.vercel.input-encoding {toolCallId, inputEncoding}. A non-streamed provider-executed tool-call now keeps providerExecuted on its synthesized tool.start. Correction to the 2026-10-20 row: on @ai-sdk/openai the raw url_citation/file_citation annotations already rode text-end providerMetadata.openai.annotations verbatim in 4.0.91 and 4.0.98, so OpenAI's citation data was carried; what the facet did not read was the normalized `citations` member. Live: web-search-gpt61sol (gpt-6.1-sol, the new vercelWebSearch capture knob with OpenAI's provider-executed web search) captured green at 7.0.146: two web_search calls, 36 source parts on the frame carry, and one text-end with two url citations that fold onto the text block; enrolled, with no drops and no new fields after registering 27 paths and two drops (providerExecuted repeated on a provider tool's later parts; a raw usage leaf). inputEncoding is unit-tested only: no capture configures a custom tool. |
38
40
  | `7.0.146` | 2026-10-20 | 1.0.0-rc.3 | ai 7.0.137 -> 7.0.146 with @ai-sdk/openai 4.0.91 -> 4.0.98, @ai-sdk/mcp 2.0.73 -> 2.0.80 and gateway 4.0.110 -> 4.0.119, moving as ONE group (all pin @ai-sdk/provider 4.0.31 / provider-utils 5.0.64). The TextStreamPart union keeps its 26 arms with identical text; its closure grows from 53 to 54 declarations (Citation) and six change: StaticToolCall, StaticToolError, StaticToolResult and StaticToolOutputDenied only gain `-?` on their mapped key (an optional tool no longer adds an undefined member); TextStreamTextEndPart gains `citations?: Array<Citation>` and TextStreamToolInputStartPart gains `inputEncoding?: 'json' \| 'text'`. Runtime changes on the fullStream path: (1) @ai-sdk/openai 4.0.92 sends citations on text-end, turns web-search and file-search results into `source` parts, and moves url_citation/file_citation sources from the annotation's arrival to the flush before finish (skipped when a search already supplied sources); `source` parts keep riding the facet's frame carry, but the facet's text-end and tool-input-start arms do not read the new `citations` and `inputEncoding` members, so a provider that sends them loses them on the wire today (no committed seed exercises either; recorded in the capture backlog); (2) @ai-sdk/openai 4.0.95 marks a custom tool's streamed input with inputEncoding "text" (the delta text is raw in both versions); (3) @ai-sdk/openai 4.0.98 adds timeoutMs/maxOutputLength to the shell tool's input and result; (4) ai re-sorts approved tool calls into the model's call order before executing them (no changelog entry; collect-tool-approvals), which changes only the order in which several approved calls start. The MCP tool result shape is unchanged; the gpt-6 model ids are unchanged. Live: echo-gpt61sol (gpt-6.1-sol) captured green at 7.0.146 with the same event-type sequence as the 7.0.137 golden; the fresh cassette is committed and, regenerated against the real guards, has no drops and no new fields. |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silverprotocol/vercel-ai",
3
- "version": "1.0.0-rc.6",
3
+ "version": "1.0.0-rc.7",
4
4
  "description": "AgJSON normalizer for the Vercel AI SDK (fullStream TextStreamPart → AgEvent[]).",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -34,7 +34,7 @@
34
34
  "!dist/**/*.test.*"
35
35
  ],
36
36
  "dependencies": {
37
- "@silverprotocol/core": "1.0.0-rc.6"
37
+ "@silverprotocol/core": "1.0.0-rc.7"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "ai": ">=6.0.0 <8"