@robota-sdk/agent-provider-openai 3.0.0-beta.100
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/CHANGELOG.md +417 -0
- package/LICENSE +661 -0
- package/README.md +198 -0
- package/dist/node/index.cjs +3 -0
- package/dist/node/index.d.cts +332 -0
- package/dist/node/index.d.cts.map +1 -0
- package/dist/node/index.d.ts +332 -0
- package/dist/node/index.d.ts.map +1 -0
- package/dist/node/index.js +4 -0
- package/dist/node/index.js.map +1 -0
- package/dist/node/loggers/index.cjs +1 -0
- package/dist/node/loggers/index.d.cts +94 -0
- package/dist/node/loggers/index.d.cts.map +1 -0
- package/dist/node/loggers/index.d.ts +94 -0
- package/dist/node/loggers/index.d.ts.map +1 -0
- package/dist/node/loggers/index.js +2 -0
- package/dist/node/loggers/index.js.map +1 -0
- package/dist/node/payload-logger-n89AQdUn.d.cts +63 -0
- package/dist/node/payload-logger-n89AQdUn.d.cts.map +1 -0
- package/dist/node/payload-logger-n89AQdUn.d.ts +63 -0
- package/dist/node/payload-logger-n89AQdUn.d.ts.map +1 -0
- package/dist/node/rolldown-runtime-CMqjfN_6.cjs +1 -0
- package/package.json +104 -0
- package/src/index.ts +1 -0
- package/src/openai/__tests__/abort-signal-wire.test.ts +210 -0
- package/src/openai/__tests__/durable-operation-wire.test.ts +38 -0
- package/src/openai/__tests__/endpoint-provenance.test.ts +44 -0
- package/src/openai/__tests__/extra-body.test.ts +507 -0
- package/src/openai/__tests__/mixed-tool-content.test.ts +103 -0
- package/src/openai/__tests__/parallel-tool-policy.test.ts +398 -0
- package/src/openai/__tests__/provider-errors.test.ts +143 -0
- package/src/openai/__tests__/request-format.test.ts +59 -0
- package/src/openai/__tests__/strict-tools-closure.test.ts +183 -0
- package/src/openai/__tests__/tool-schema-projection.test.ts +316 -0
- package/src/openai/__tests__/trace-context-wire.test.ts +114 -0
- package/src/openai/adapter.test.ts +494 -0
- package/src/openai/adapter.ts +145 -0
- package/src/openai/chat-completions-chat.ts +232 -0
- package/src/openai/executor-integration.test.ts +213 -0
- package/src/openai/extra-body.ts +120 -0
- package/src/openai/index.ts +19 -0
- package/src/openai/interfaces/payload-logger.ts +50 -0
- package/src/openai/loggers/console-payload-logger.test.ts +173 -0
- package/src/openai/loggers/console-payload-logger.ts +96 -0
- package/src/openai/loggers/console.ts +9 -0
- package/src/openai/loggers/file-payload-logger.test.ts +243 -0
- package/src/openai/loggers/file-payload-logger.ts +125 -0
- package/src/openai/loggers/file.ts +9 -0
- package/src/openai/loggers/index.ts +12 -0
- package/src/openai/loggers/sanitize-openai-log-data.test.ts +89 -0
- package/src/openai/loggers/sanitize-openai-log-data.ts +14 -0
- package/src/openai/message-converter.ts +27 -0
- package/src/openai/model-effort-table.ts +19 -0
- package/src/openai/model-effort-verification-config.test.ts +45 -0
- package/src/openai/model-effort-verification-config.ts +35 -0
- package/src/openai/openai-request-format.ts +116 -0
- package/src/openai/parallel-tool-policy.ts +25 -0
- package/src/openai/parsers/response-parser.test.ts +407 -0
- package/src/openai/parsers/response-parser.ts +48 -0
- package/src/openai/provider-definition.test.ts +74 -0
- package/src/openai/provider-definition.ts +149 -0
- package/src/openai/provider.test.ts +1717 -0
- package/src/openai/provider.ts +417 -0
- package/src/openai/reasoning-effort.test.ts +272 -0
- package/src/openai/reasoning-effort.ts +49 -0
- package/src/openai/request-id.ts +39 -0
- package/src/openai/request-options.ts +14 -0
- package/src/openai/responses-chat.ts +292 -0
- package/src/openai/responses-converter.ts +132 -0
- package/src/openai/responses-parser.test.ts +219 -0
- package/src/openai/responses-parser.ts +361 -0
- package/src/openai/responses-stream-utils.ts +45 -0
- package/src/openai/responses-types.ts +219 -0
- package/src/openai/streaming/stream-assembler.ts +3 -0
- package/src/openai/types/api-types.ts +113 -0
- package/src/openai/types.ts +263 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,417 @@
|
|
|
1
|
+
# @robota-sdk/agent-provider-openai
|
|
2
|
+
|
|
3
|
+
## 3.0.0-beta.100
|
|
4
|
+
### Patch Changes
|
|
5
|
+
|
|
6
|
+
- f5ea8b6: Add the `extraBody` provider option (and `options.extraBody` in provider profiles): JSON fields
|
|
7
|
+
merged as top-level fields into every Chat Completions and Responses request body, for
|
|
8
|
+
endpoint-specific options such as a gateway's upstream settings. It is copied at construction,
|
|
9
|
+
rejects fields the provider manages and non-JSON values before any request, and cannot be used
|
|
10
|
+
with an executor. Omitting it leaves requests unchanged.
|
|
11
|
+
- @robota-sdk/agent-core@3.0.0-beta.100
|
|
12
|
+
- @robota-sdk/agent-provider-openai-compatible@3.0.0-beta.100
|
|
13
|
+
|
|
14
|
+
## 3.0.0-beta.99
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- b185f55: Send the configured `parallelToolCalls` policy on Chat Completions only for requests that include
|
|
18
|
+
tools, so a provider with an explicit policy no longer sends the field on tool-less calls, where it
|
|
19
|
+
constrains nothing and a Chat Completions endpoint may reject it. The Responses surface still sends an explicit policy on every request.
|
|
20
|
+
- @robota-sdk/agent-core@3.0.0-beta.99
|
|
21
|
+
- @robota-sdk/agent-provider-openai-compatible@3.0.0-beta.99
|
|
22
|
+
|
|
23
|
+
## 3.0.0-beta.98
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- 261bfc5: Add a constructor and profile `parallelToolCalls` boolean that forwards the native generation
|
|
27
|
+
policy on Chat Completions and Responses, preserving explicit false across streaming and
|
|
28
|
+
non-streaming calls. Omission preserves existing behavior. Reject malformed or unsupported
|
|
29
|
+
configurations before dispatch, retain the policy despite caller option mutation, and preserve
|
|
30
|
+
all returned calls and usage without claiming a call-count or execution-order guarantee.
|
|
31
|
+
- @robota-sdk/agent-core@3.0.0-beta.98
|
|
32
|
+
- @robota-sdk/agent-provider-openai-compatible@3.0.0-beta.98
|
|
33
|
+
|
|
34
|
+
## 3.0.0-beta.97
|
|
35
|
+
### Patch Changes
|
|
36
|
+
|
|
37
|
+
- Updated dependencies [c207a31]
|
|
38
|
+
- Updated dependencies [9b4f63b]
|
|
39
|
+
- Updated dependencies [23a30cd]
|
|
40
|
+
- @robota-sdk/agent-core@3.0.0-beta.97
|
|
41
|
+
- @robota-sdk/agent-provider-openai-compatible@3.0.0-beta.97
|
|
42
|
+
|
|
43
|
+
## 3.0.0-beta.96
|
|
44
|
+
### Patch Changes
|
|
45
|
+
|
|
46
|
+
- @robota-sdk/agent-core@3.0.0-beta.96
|
|
47
|
+
- @robota-sdk/agent-provider-openai-compatible@3.0.0-beta.96
|
|
48
|
+
|
|
49
|
+
## 3.0.0-beta.95
|
|
50
|
+
### Minor Changes
|
|
51
|
+
|
|
52
|
+
- 04a6de4: **Reasoning text a provider streams now reaches the editor as an ACP `agent_thought_chunk`, through a new `thinking_delta` session event.**
|
|
53
|
+
|
|
54
|
+
`IChatOptions.onThinkingDelta`, `IRunOptions.onThinkingDelta` and `IResumeExecutionOptions.onThinkingDelta`
|
|
55
|
+
(typed `TThinkingDeltaCallback`) carry reasoning text from a provider through the run, and the session
|
|
56
|
+
options (`ISessionOptions.onThinkingDelta`, `ICreateSessionOptions.onThinkingDelta`) hand it to the
|
|
57
|
+
session's owner. `InteractiveSession` emits it as `thinking_delta(delta)`, beside `text_delta`. The
|
|
58
|
+
text is never part of the reply: it is not appended to the conversation, not streamed through
|
|
59
|
+
`onTextDelta`, and the core adds no record of its own for it (no text-delta log entry, no
|
|
60
|
+
`provider_stream_raw_delta`); a provider's own native payload capture and response metadata keep
|
|
61
|
+
what the provider sent, as before. A reasoning delta counts as provider activity for the idle
|
|
62
|
+
timeout whether or not anyone listens to it, so a model that is only thinking is not cut off. The
|
|
63
|
+
existing `thinking(isThinking)` event is unchanged and remains the busy indicator. Where a provider
|
|
64
|
+
sends no reasoning text, nothing is emitted and nothing new is switched on.
|
|
65
|
+
|
|
66
|
+
`@robota-sdk/agent-interface-session` is a major change because a new session event name makes an
|
|
67
|
+
exhaustive map over the event names stop compiling until it classifies the event.
|
|
68
|
+
|
|
69
|
+
`@robota-sdk/agent-transport-acp` sends each non-empty `thinking_delta` to the editor as an
|
|
70
|
+
`agent_thought_chunk`, in order with the message chunks, so `robota acp` shows the model's reasoning
|
|
71
|
+
in the editor. A turn that streamed only thoughts still shows its result text, because only reply
|
|
72
|
+
text marks a turn as streamed. The WebSocket wire, the HTTP stream, headless stream-json, `query()`
|
|
73
|
+
and the terminal UI do not carry the new event in this change (`@robota-sdk/agent-transport` and
|
|
74
|
+
`@robota-sdk/agent-ui-terminal` classify it as non-surface). A forked skill and an in-process subagent
|
|
75
|
+
pass their reply text up but not their reasoning.
|
|
76
|
+
|
|
77
|
+
Two providers already receive reasoning text and now report it. `@robota-sdk/agent-provider-openai`
|
|
78
|
+
passes `response.reasoning_summary_text.delta` events of a streamed Responses call to
|
|
79
|
+
`onThinkingDelta`; the API sends them only when the provider profile asks for a reasoning summary, and
|
|
80
|
+
no request option changed; a summary streamed in several parts, and the summary of a later reasoning
|
|
81
|
+
item, each start on a new paragraph (`\n\n`) so the parts do not run together.
|
|
82
|
+
`@robota-sdk/agent-provider-openai-compatible` reports the text of Gemma's thought channel, which the
|
|
83
|
+
provider already removed from the reply, as it streams across chunk boundaries, with each later
|
|
84
|
+
channel of one reply on a new paragraph; the reply text is unchanged. No other provider reports
|
|
85
|
+
reasoning, and Anthropic thinking is not enabled. A model fallback chain still moves to the next model when only reasoning had streamed.
|
|
86
|
+
|
|
87
|
+
The scripted test provider (`@robota-sdk/agent-core/testing`) accepts an optional `thinking` string on
|
|
88
|
+
a turn and delivers it through `onThinkingDelta` before the turn's text; the scripted session harness
|
|
89
|
+
collects `thinking_delta` and now keeps a scripted tool-call turn's `usage`, which it used to drop.
|
|
90
|
+
|
|
91
|
+
### Patch Changes
|
|
92
|
+
|
|
93
|
+
- Updated dependencies [04a6de4]
|
|
94
|
+
- Updated dependencies [0ba247b]
|
|
95
|
+
- Updated dependencies [02053ec]
|
|
96
|
+
- @robota-sdk/agent-core@3.0.0-beta.95
|
|
97
|
+
- @robota-sdk/agent-provider-openai-compatible@3.0.0-beta.95
|
|
98
|
+
|
|
99
|
+
## 3.0.0-beta.94
|
|
100
|
+
### Patch Changes
|
|
101
|
+
|
|
102
|
+
- @robota-sdk/agent-core@3.0.0-beta.94
|
|
103
|
+
- @robota-sdk/agent-provider-openai-compatible@3.0.0-beta.94
|
|
104
|
+
|
|
105
|
+
## 3.0.0-beta.93
|
|
106
|
+
### Patch Changes
|
|
107
|
+
|
|
108
|
+
- Updated dependencies
|
|
109
|
+
- @robota-sdk/agent-core@3.0.0-beta.93
|
|
110
|
+
- @robota-sdk/agent-provider-openai-compatible@3.0.0-beta.93
|
|
111
|
+
|
|
112
|
+
## 3.0.0-beta.92
|
|
113
|
+
### Patch Changes
|
|
114
|
+
|
|
115
|
+
- Updated dependencies
|
|
116
|
+
- @robota-sdk/agent-core@3.0.0-beta.92
|
|
117
|
+
- @robota-sdk/agent-provider-openai-compatible@3.0.0-beta.92
|
|
118
|
+
|
|
119
|
+
## 3.0.0-beta.91
|
|
120
|
+
### Patch Changes
|
|
121
|
+
|
|
122
|
+
- @robota-sdk/agent-core@3.0.0-beta.91
|
|
123
|
+
- @robota-sdk/agent-provider-openai-compatible@3.0.0-beta.91
|
|
124
|
+
|
|
125
|
+
## 3.0.0-beta.90
|
|
126
|
+
### Patch Changes
|
|
127
|
+
|
|
128
|
+
- @robota-sdk/agent-core@3.0.0-beta.90
|
|
129
|
+
- @robota-sdk/agent-provider-openai-compatible@3.0.0-beta.90
|
|
130
|
+
|
|
131
|
+
## 3.0.0-beta.89
|
|
132
|
+
### Patch Changes
|
|
133
|
+
|
|
134
|
+
- @robota-sdk/agent-core@3.0.0-beta.89
|
|
135
|
+
- @robota-sdk/agent-provider-openai-compatible@3.0.0-beta.89
|
|
136
|
+
|
|
137
|
+
## 3.0.0-beta.88
|
|
138
|
+
|
|
139
|
+
### Patch Changes
|
|
140
|
+
|
|
141
|
+
- @robota-sdk/agent-core@3.0.0-beta.88
|
|
142
|
+
- @robota-sdk/agent-provider-openai-compatible@3.0.0-beta.88
|
|
143
|
+
|
|
144
|
+
## 3.0.0-beta.87
|
|
145
|
+
|
|
146
|
+
### Patch Changes
|
|
147
|
+
|
|
148
|
+
- Release the migrated Robota product with its public SDK namespace, robota command, compatible SDK exports, internal product configuration, and verified CLI startup and delivery corrections.
|
|
149
|
+
- 7d9cc66: Add owner-hosted organization control and OpenAI-wire gateway composition with anchored authority, mandatory verified audit, durable effect reservations, provider inventory cleanup and private content receipts. OpenAI profiles can opt into operation identities preserved across SDK retries.
|
|
150
|
+
- 7d9cc66: Retain typed text and image observations alongside structured tool data through runtime settlement, history, and recovery. Deliver tool images as native content in OpenAI Responses and Anthropic requests, retain structured error receipts, include media in bounded result admission, and reject malformed MCP image observations with reconciliation state intact.
|
|
151
|
+
- 7d9cc66: Preserve admitted tool text and source attribution on Chat Completions requests and transmit tool images as call-linked native vision observations.
|
|
152
|
+
- 7d9cc66: Retain typed resource and audio observations alongside structured tool results through history, durable receipts, recovery, size admission, and session persistence. Preserve opaque resource references without fetching them, project embedded text and explicit unsupported binary/audio diagnostics into provider requests and compaction transcripts, and validate persisted observation shapes on reload.
|
|
153
|
+
- Updated dependencies
|
|
154
|
+
- Updated dependencies [66af868]
|
|
155
|
+
- Updated dependencies [7d9cc66]
|
|
156
|
+
- Updated dependencies [7d9cc66]
|
|
157
|
+
- Updated dependencies [7d9cc66]
|
|
158
|
+
- Updated dependencies [7d9cc66]
|
|
159
|
+
- Updated dependencies [7d9cc66]
|
|
160
|
+
- Updated dependencies [7d9cc66]
|
|
161
|
+
- Updated dependencies [7d9cc66]
|
|
162
|
+
- Updated dependencies [7d9cc66]
|
|
163
|
+
- @robota-sdk/agent-core@3.0.0-beta.87
|
|
164
|
+
- @robota-sdk/agent-provider-openai-compatible@3.0.0-beta.87
|
|
165
|
+
|
|
166
|
+
## 3.0.0-beta.86
|
|
167
|
+
|
|
168
|
+
### Patch Changes
|
|
169
|
+
|
|
170
|
+
- @robota-sdk/agent-core@3.0.0-beta.86
|
|
171
|
+
- @robota-sdk/agent-provider-openai-compatible@3.0.0-beta.86
|
|
172
|
+
|
|
173
|
+
## 3.0.0-beta.85
|
|
174
|
+
|
|
175
|
+
### Patch Changes
|
|
176
|
+
|
|
177
|
+
- 3ab2eca: - External presets accept every permission mode a session does, `auto` included; `auto` used to fail validation.
|
|
178
|
+
- `createDagFramework({ ports: { costMeta } })` wires cost-metadata management; without it cost operations still report that they are unsupported.
|
|
179
|
+
- `startCli()` runs the subagent worker when a subagent starts the embedder's entry script again, as the `robota` executable already did; an embedded CLI used to start a second CLI there.
|
|
180
|
+
- The provider `executor` option docs no longer import a `RemoteExecutor` that does not exist, and `IRemoteExecutorConfig` is marked deprecated: nothing implements a remote executor.
|
|
181
|
+
- Updated dependencies [41cca13]
|
|
182
|
+
- Updated dependencies [ada3841]
|
|
183
|
+
- Updated dependencies [5093a30]
|
|
184
|
+
- Updated dependencies [94b2c87]
|
|
185
|
+
- Updated dependencies [3ab2eca]
|
|
186
|
+
- @robota-sdk/agent-core@3.0.0-beta.85
|
|
187
|
+
- @robota-sdk/agent-provider-openai-compatible@3.0.0-beta.85
|
|
188
|
+
|
|
189
|
+
## 3.0.0-beta.84
|
|
190
|
+
|
|
191
|
+
### Patch Changes
|
|
192
|
+
|
|
193
|
+
- 9c6a8db: Provider adapters now throw the specific typed failure a vendor response describes, instead of a
|
|
194
|
+
generic `ProviderError` carrying only its status. A 401/403 (or a vendor-specific authentication type)
|
|
195
|
+
becomes an `AuthenticationError`; a response naming an unavailable model — by code or, when the vendor
|
|
196
|
+
gives neither (Anthropic's and Gemini's real bodies carry no distinguishing code), by its message —
|
|
197
|
+
becomes a `ModelNotAvailableError`, whose `model` is now optional since a bare HTTP status does not
|
|
198
|
+
always name one; a transport failure becomes a `NetworkError`, which now also carries the provider
|
|
199
|
+
name. A 429's `retry-after` header (a delta or an HTTP-date) is read into `RateLimitError.retryAfter`
|
|
200
|
+
when the vendor sends one.
|
|
201
|
+
|
|
202
|
+
Vendor error text is scrubbed of anything that reads like a credential — an `Authorization`/`Bearer`
|
|
203
|
+
value, an API key in a header, query string or JSON body, a bare `sk-`/`AIza…` token — before it is
|
|
204
|
+
kept on any of these typed errors, so a misconfigured self-hosted gateway that echoes a request back
|
|
205
|
+
can no longer leak one into a message or a "Details" disclosure. The new `scrubSecrets` export applies
|
|
206
|
+
the same scrubbing to arbitrary text.
|
|
207
|
+
|
|
208
|
+
- Updated dependencies [9f46375]
|
|
209
|
+
- Updated dependencies [9c6a8db]
|
|
210
|
+
- @robota-sdk/agent-core@3.0.0-beta.84
|
|
211
|
+
- @robota-sdk/agent-provider-openai-compatible@3.0.0-beta.84
|
|
212
|
+
|
|
213
|
+
## 3.0.0-beta.83
|
|
214
|
+
|
|
215
|
+
### Patch Changes
|
|
216
|
+
|
|
217
|
+
- 8bd5fac: Cached input tokens are no longer dropped (#3209 R3). The OpenAI and OpenAI-compatible adapters read
|
|
218
|
+
`prompt_tokens_details.cached_tokens` (Chat Completions, including the final streamed usage chunk) and
|
|
219
|
+
`input_tokens_details.cached_tokens` (Responses, OpenAI and Qwen) into `cacheReadTokens` on the message
|
|
220
|
+
usage: the part of the prompt served from the provider's prompt cache, present only when reported.
|
|
221
|
+
It reaches the committed assistant message, `readTokenUsageFromMessage()`, and the
|
|
222
|
+
`provider_call_completed` execution event, so a consumer can apply the cache discount.
|
|
223
|
+
|
|
224
|
+
New `sumMessagesUsage(messages)` sums the usage on assistant messages (with `cacheReadTokens` when any
|
|
225
|
+
reported it), so one run's usage is `sumMessagesUsage(agent.getHistory().slice(before))` without
|
|
226
|
+
converting through `messageToHistoryEntry` (#3209 S1). `sumHistoryUsage` returns the same triple as before.
|
|
227
|
+
|
|
228
|
+
A forced-summary reply now keeps the usage its provider reported the same way a tool round's reply
|
|
229
|
+
does: an endpoint that omits `total_tokens` no longer loses exactly the summary call's usage (#3209 N3). Counts
|
|
230
|
+
the adapter could not attest as a consistent total are recorded with `usageProvenance: 'partial'`.
|
|
231
|
+
|
|
232
|
+
- 274328f: `OpenAIProvider({ strictTools: true })` now requests strict function calling on the Chat Completions
|
|
233
|
+
surface too (each tool is sent with `function.strict: true`), not only on the Responses surface. This
|
|
234
|
+
matters for every provider created with a `baseURL`, which defaults to Chat Completions. With
|
|
235
|
+
`strictTools` off the request is unchanged. `convertToOpenAICompatibleTools` accepts an optional
|
|
236
|
+
`{ strict }` argument.
|
|
237
|
+
- 57280bf: Every published package now declares `"engines": { "node": ">=22.12.0" }`. Before, 27 of the 38
|
|
238
|
+
packages declared no floor (`agent-core`, `agent-tools` and every provider among them),
|
|
239
|
+
`agent-session` and `agent-file-authority` declared `>=20.19.0`, and the other nine declared
|
|
240
|
+
`>=22.0.0`, so a consumer on Node 20 saw at most a warning from a transitive dependency.
|
|
241
|
+
|
|
242
|
+
Why 22.12: `agent-cli` and `agent-ui-terminal` need Node 22 through `ink` 7, and the CommonJS entries
|
|
243
|
+
of `agent-tools` and its dependents, `agent-transport`/`node` and its dependents, and
|
|
244
|
+
`agent-ui-terminal` `require()` ESM-only dependencies (`p-limit`, `jose`, `chalk`), which Node 22
|
|
245
|
+
supports unflagged only from 22.12. `engines` is advisory unless the consumer enables `engine-strict`.
|
|
246
|
+
|
|
247
|
+
No code changes: `tsdown` now reads `node22.12.0` as its build target from the field.
|
|
248
|
+
|
|
249
|
+
- 643effb: Aborting a run now cancels the provider's HTTP request on every call path. The non-streaming
|
|
250
|
+
`chat()` request — the one a forced end-of-round summary makes — sent no `AbortSignal` on OpenAI
|
|
251
|
+
Chat Completions, DeepSeek, Qwen (Chat Completions) and Gemma, so an aborted run left that request
|
|
252
|
+
running to completion; the same held for `chatStream()` on DeepSeek, Qwen (Chat Completions), Gemma
|
|
253
|
+
and Anthropic. Each now hands the call's `signal` to the SDK request.
|
|
254
|
+
- 18c0d5c: Every published package now exports `./package.json`, so `require('<package>/package.json')` and
|
|
255
|
+
`import('<package>/package.json', { with: { type: 'json' } })` work instead of failing with
|
|
256
|
+
`ERR_PACKAGE_PATH_NOT_EXPORTED`, and each tarball now ships the package's `CHANGELOG.md`.
|
|
257
|
+
- Updated dependencies [e689c8e]
|
|
258
|
+
- Updated dependencies [be0e53c]
|
|
259
|
+
- Updated dependencies [8bd5fac]
|
|
260
|
+
- Updated dependencies [274328f]
|
|
261
|
+
- Updated dependencies [57280bf]
|
|
262
|
+
- Updated dependencies [5033dd9]
|
|
263
|
+
- Updated dependencies [643effb]
|
|
264
|
+
- Updated dependencies [18c0d5c]
|
|
265
|
+
- Updated dependencies [dbd888d]
|
|
266
|
+
- Updated dependencies [1887e54]
|
|
267
|
+
- @robota-sdk/agent-core@3.0.0-beta.83
|
|
268
|
+
- @robota-sdk/agent-provider-openai-compatible@3.0.0-beta.83
|
|
269
|
+
|
|
270
|
+
## 3.0.0-beta.82
|
|
271
|
+
|
|
272
|
+
### Patch Changes
|
|
273
|
+
|
|
274
|
+
- Updated dependencies [c7f9203]
|
|
275
|
+
- @robota-sdk/agent-core@3.0.0-beta.82
|
|
276
|
+
- @robota-sdk/agent-provider-openai-compatible@3.0.0-beta.82
|
|
277
|
+
|
|
278
|
+
## 3.0.0-beta.81
|
|
279
|
+
|
|
280
|
+
### Patch Changes
|
|
281
|
+
|
|
282
|
+
- Updated dependencies [3038eb7]
|
|
283
|
+
- Updated dependencies [02b7452]
|
|
284
|
+
- Updated dependencies [ec5e477]
|
|
285
|
+
- @robota-sdk/agent-core@3.0.0-beta.81
|
|
286
|
+
- @robota-sdk/agent-provider-openai-compatible@3.0.0-beta.81
|
|
287
|
+
|
|
288
|
+
## 3.0.0-beta.80
|
|
289
|
+
|
|
290
|
+
### Minor Changes
|
|
291
|
+
|
|
292
|
+
- 1698be4: A child-process subagent can no longer send the parent's provider credential to a different
|
|
293
|
+
endpoint.
|
|
294
|
+
|
|
295
|
+
- **Before spawning a child**, the parent compares every environment variable that decides where
|
|
296
|
+
the provider connects or which credential it sends. If the child's environment differs, the job
|
|
297
|
+
is refused before the credential leaves the parent. The error names the variable, never its
|
|
298
|
+
value. The variables compared are:
|
|
299
|
+
- the proxy and TLS variables;
|
|
300
|
+
- the variables the provider's SDK reads, such as `OPENAI_BASE_URL`, `ANTHROPIC_AUTH_TOKEN` and
|
|
301
|
+
the Vertex settings;
|
|
302
|
+
- the credential's own variable.
|
|
303
|
+
- **The child** repeats the check before it builds its provider. It builds that provider from the
|
|
304
|
+
parent's effective connection exactly: it no longer fills in a base URL, options or a default
|
|
305
|
+
credential from its own registry, and a credential reference that resolves to nothing is refused.
|
|
306
|
+
- **Where the effective connection comes from:** the parent applies its own definition defaults
|
|
307
|
+
(base URL, options). `profileName` is sent only when it names the connection actually sent.
|
|
308
|
+
- **New contracts:**
|
|
309
|
+
- `IProviderDefinition.destinationEnvironment`, declared by every built-in provider.
|
|
310
|
+
- `createProviderFromExactProfile`, `connectionEnvironmentNames`,
|
|
311
|
+
`findConnectionEnvironmentDivergence`, `sealConnectionEnvironment`,
|
|
312
|
+
`verifyConnectionEnvironment` and `TRANSPORT_ENVIRONMENT`.
|
|
313
|
+
- The start payload's `connectionCheck`.
|
|
314
|
+
- The child-process runner's `providerDefinitions` option, now required: a provider with no
|
|
315
|
+
definition there is refused, because its connection cannot be checked.
|
|
316
|
+
|
|
317
|
+
- 4c73a0b: Provider failures keep the vendor's HTTP status and error type. `ProviderError` gains `status` and `type`, adapters throw `ProviderError` (or `RateLimitError` for a rate limit) instead of a bare `Error`, an Anthropic mid-stream `overloaded_error` event surfaces as a `ProviderError` with that type, and media errors carry `status`. New `classifyProviderFailure` says whether a failure is worth retrying on another model, and `toProviderError` is the shared adapter mapping.
|
|
318
|
+
- 7937c19: Split the `@robota-sdk/agent-provider` monolith into SDK-aligned leaf packages (ARCH-PROVIDER-002 Stage A). The single package that hard-bundled all three vendor SDKs (`@anthropic-ai/sdk`, `openai`, `@google/genai`) is **removed** and replaced by per-vendor leaves, each depending only on `@robota-sdk/agent-core` + its one SDK: `@robota-sdk/agent-provider-anthropic`, `@robota-sdk/agent-provider-openai`, `@robota-sdk/agent-provider-openai-compatible` (DeepSeek/Qwen/Gemma over the shared OpenAI-compatible base), `@robota-sdk/agent-provider-gemini` (+ a `./google` entry), and `@robota-sdk/agent-provider-bytedance` (media/video `IVideoGenerationProvider`). The aggregated `createDefaultProviderDefinitions()` now lives in the new `@robota-sdk/agent-builtin-providers` leaf.
|
|
319
|
+
|
|
320
|
+
Migration: replace `@robota-sdk/agent-provider/<vendor>` imports with the corresponding `@robota-sdk/agent-provider-<vendor>` package (`/deepseek`, `/qwen`, `/gemma` → `@robota-sdk/agent-provider-openai-compatible`; `/google` → `@robota-sdk/agent-provider-gemini/google`), and import `createDefaultProviderDefinitions` from `@robota-sdk/agent-builtin-providers`. Consumers now pull only the vendor SDK(s) they actually use.
|
|
321
|
+
|
|
322
|
+
### Patch Changes
|
|
323
|
+
|
|
324
|
+
- 9fbab1b: Provider DIP Stage B (ARCH-PROVIDER-003), part 1: collapse infrastructure. Adds the
|
|
325
|
+
provider-registry-driven `@robota-sdk/dag-node-llm-text` node that supersedes the
|
|
326
|
+
per-vendor LLM nodes + router, relocates the provider config resolver into
|
|
327
|
+
`agent-core`, adds SSOT cost/allowedModels fields, inverts the `llm-text` validator
|
|
328
|
+
tombstone, and wires `createDagFramework({ providers })`. Additive — the per-vendor
|
|
329
|
+
nodes still exist; consumer migration + their removal follow in part 2.
|
|
330
|
+
- 4f3c075: Assemble complete, verified package generations before switching build output; preserve the previous generation on build failure and pack only verified regular-file images. Include copied CLI web assets in affected-build ordering and artifact transfer. Preserve the CLI version in managed build paths. Public runtime contracts remain compatible (patch).
|
|
331
|
+
- b6d14ce: Make the universal JSON-schema subset able to express an object, so a nested `z.object()` keeps its
|
|
332
|
+
properties and required fields instead of reaching the model as `{ "type": "object" }`. Tools and
|
|
333
|
+
structured-output schemas with one level of nesting are now advertised in full and enforced on the
|
|
334
|
+
tool-input path; `z.union` / `z.discriminatedUnion` / `z.literal` are supported and map to `anyOf`
|
|
335
|
+
and single-value enums; `.nullable()` keeps its null branch; and Zod's `strip`, `strict` and
|
|
336
|
+
`passthrough` modes stop collapsing into two `additionalProperties` emissions. Fixes the shipped
|
|
337
|
+
`Computer` and `AskUserQuestion` built-ins, whose action and question fields were being dropped
|
|
338
|
+
entirely.
|
|
339
|
+
|
|
340
|
+
`agent-core` is **minor**, not patch: `IObjectParameterSchema` is a new export, and
|
|
341
|
+
`IParameterSchema.type` became optional (a union node carries `anyOf` instead of a type), which is a
|
|
342
|
+
consumer-visible type change — two call sites in this repo needed editing to keep compiling.
|
|
343
|
+
`additionalProperties` also widened to `boolean | IParameterSchema`, and `required` and `anyOf` are
|
|
344
|
+
new members. The provider packages are **patch**: each adapts to the widened subset without changing
|
|
345
|
+
its own public surface.
|
|
346
|
+
|
|
347
|
+
- 93d061d: CORE-043: structured output now knows which transport can carry the schema before the first call
|
|
348
|
+
|
|
349
|
+
`run(input, { output })` asked every provider for `responseFormat: { type: 'json_schema' }`. A
|
|
350
|
+
provider whose surface cannot express that accepted the option and dropped it — and the schema was
|
|
351
|
+
stated in words only by the RETRY feedback turn, which runs on attempt two. So against such a
|
|
352
|
+
provider, attempt one carried nothing describing the required shape and could only succeed by luck:
|
|
353
|
+
the advertised three attempts were really two, and the first was spent discovering something the
|
|
354
|
+
capability table already knew.
|
|
355
|
+
|
|
356
|
+
A `(provider, model)` pair now resolves to a mechanism (`response_schema` / `json_object` / `none`)
|
|
357
|
+
and a provenance (`catalog` / `vendor-default` / `undeclared` / `unverified-endpoint`), and the
|
|
358
|
+
request is shaped to match at the one seam that holds both the resolved provider and the outgoing
|
|
359
|
+
messages. When the wire cannot carry the shape, the schema is stated in the prompt on the FIRST
|
|
360
|
+
attempt. Each structured request emits a `structured_output_transport` event reporting what the
|
|
361
|
+
request actually did.
|
|
362
|
+
|
|
363
|
+
- `IAIProvider.endpointIsVendorDefault?()` — a provider configured with a custom `baseURL` reports
|
|
364
|
+
it, so the runtime stops claiming enforcement a gateway may not provide. Separate from
|
|
365
|
+
`capabilityTable?()` on purpose: `@robota-sdk/agent-provider-openai` declares no table (nobody has
|
|
366
|
+
verified one) and must still be able to answer.
|
|
367
|
+
- DeepSeek's capability table declared `json_schema`; DeepSeek guarantees the response PARSES but
|
|
368
|
+
takes no schema parameter. Corrected to `json_object`.
|
|
369
|
+
- A provider that declares nothing is still sent the request unchanged — silence is not a denial.
|
|
370
|
+
|
|
371
|
+
- ebd40a0: Harden on-disk log permissions against CWE-377 (SEC-003, CodeQL `js/insecure-temporary-file`).
|
|
372
|
+
|
|
373
|
+
Session logs, externalized session payloads, and OpenAI request/response payload logs all carry
|
|
374
|
+
conversation and prompt content, but were created with the process umask (typically `0644`) inside a
|
|
375
|
+
caller-supplied directory that may be shared or world-writable. They are now created owner-only
|
|
376
|
+
(`0600`), and the directories that hold them are created `0700`.
|
|
377
|
+
|
|
378
|
+
This is a permissions change only — file locations, names, formats, and APIs are unchanged. Anything
|
|
379
|
+
that read these logs as a _different_ OS user will no longer be able to; the owning user is
|
|
380
|
+
unaffected.
|
|
381
|
+
|
|
382
|
+
- Updated dependencies [7b6234c]
|
|
383
|
+
- Updated dependencies [4eea54b]
|
|
384
|
+
- Updated dependencies [1698be4]
|
|
385
|
+
- Updated dependencies [d4189b9]
|
|
386
|
+
- Updated dependencies [9edae52]
|
|
387
|
+
- Updated dependencies [4078a72]
|
|
388
|
+
- Updated dependencies [4c73a0b]
|
|
389
|
+
- Updated dependencies [196a900]
|
|
390
|
+
- Updated dependencies [f336838]
|
|
391
|
+
- Updated dependencies [34e50f0]
|
|
392
|
+
- Updated dependencies [722e88a]
|
|
393
|
+
- Updated dependencies [d23c848]
|
|
394
|
+
- Updated dependencies [fec722f]
|
|
395
|
+
- Updated dependencies [2d3b2c0]
|
|
396
|
+
- Updated dependencies [4772067]
|
|
397
|
+
- Updated dependencies [7937c19]
|
|
398
|
+
- Updated dependencies [9fbab1b]
|
|
399
|
+
- Updated dependencies [a009f5b]
|
|
400
|
+
- Updated dependencies [4f3c075]
|
|
401
|
+
- Updated dependencies [475e085]
|
|
402
|
+
- Updated dependencies [e477440]
|
|
403
|
+
- Updated dependencies [9dcb5da]
|
|
404
|
+
- Updated dependencies [a95ca85]
|
|
405
|
+
- Updated dependencies [b6d14ce]
|
|
406
|
+
- Updated dependencies [0382a51]
|
|
407
|
+
- Updated dependencies [93d061d]
|
|
408
|
+
- Updated dependencies [39554a1]
|
|
409
|
+
- Updated dependencies [d28430a]
|
|
410
|
+
- Updated dependencies [07b627f]
|
|
411
|
+
- Updated dependencies [d0de5b2]
|
|
412
|
+
- Updated dependencies [2916d00]
|
|
413
|
+
- Updated dependencies [7669851]
|
|
414
|
+
- Updated dependencies [d6b9404]
|
|
415
|
+
- Updated dependencies [9814afc]
|
|
416
|
+
- @robota-sdk/agent-core@3.0.0-beta.80
|
|
417
|
+
- @robota-sdk/agent-provider-openai-compatible@3.0.0-beta.80
|