You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit fec893d
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: structure/transports/inventory.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ surface is listed here so a maintainer can find the owner without grepping:
40
40
| Azure OpenAI Responses |`src/adapters/azure.ts`| Deployment-shaped URLs on top of the Responses contract. |
41
41
| Tool identity digests |`src/adapters/tool-call-id.ts`, `src/adapters/google-wire-compiler.ts`, `src/adapters/kiro-wire.ts`, `src/responses/muse-tool-name-alias.ts`| Rewritten Anthropic call IDs and Google, Kiro and Muse tool names take eight lowercase hexadecimal characters from `Bun.SHA256.hash(..., "hex")` over the original or salted UTF-8 string. Prefix limits and collision policies are adapter-specific. Request-scoped allocators keep distinct identities separate even when UTF-8 encoding produces the same bytes; tool-name maps restore the original names. `tests/adapters/tool-identity-hash.test.ts` pins the wire bytes, numeric and salted collisions, and Google declaration/call/result/selector agreement. |
42
42
| AWS eventstream |`src/lib/eventstream-decoder.ts`| Kiro's prelude and message checksums use `Bun.hash.crc32` over the supplied byte view, with unsigned IEEE CRC-32 results and incremental seed support. Corrupt or truncated frames fail decoding. The streaming decoder rejects advertised sizes above 16 MiB per frame or 128 KiB per header block once the corresponding prelude bytes are available. `tests/responses/eventstream-decoder.test.ts` covers fixed wire bytes, offset views, seeded checksums, corruption, and fragmented input. |
43
-
| Responses custom-tool preview |`src/bridge/sse.ts`, `src/server/responses-custom-tool-repair.ts`, `src/responses/progressive-freeform-input.ts`, `src/responses/freeform-wrapper-scan.ts`| Direct adapter events and routed function restoration share one progressive wrapper decoder over one bounded JSON classification of the prefix, so property order and escaped key spellings preview as the wrapper completion unwraps them. Fence-shaped and decorated-opening `exec`/`apply_patch` prefixes stay held. Routed canonical `apply_patch` publishes only the stable prefix after its exact opening line, withholds a rewritable terminal decoration, and fails before successful completion if the authoritative repaired input no longer extends emitted progress. Each caller retains its own patch-envelope and byte-budget policy. |
43
+
| Responses custom-tool preview |`src/bridge/sse.ts`, `src/server/responses-custom-tool-repair.ts`, `src/responses/progressive-freeform-input.ts`, `src/responses/freeform-wrapper-scan.ts`| Direct adapter events and routed function restoration share one progressive wrapper decoder over one bounded JSON classification of the prefix, so property order and escaped key spellings preview as the wrapper completion unwraps them. Fence-shaped and decorated-opening `exec`/`apply_patch` prefixes stay held. Routed canonical `apply_patch` publishes only the stable prefix after its exact opening line, recognizes a rewritable terminal decoration from a bounded suffix, and fails before successful completion if the authoritative repaired input no longer extends emitted progress. Each caller retains its own patch-envelope and byte-budget policy. |
44
44
| Meta Muse Responses tool names |`src/responses/muse-tool-name-alias.ts`, `src/adapters/openai-responses.ts`|`api.meta.ai` only: function names over 64 characters or containing characters outside `[a-zA-Z0-9_-]` become collision-safe wire aliases and are restored before the client sees them. |
45
45
| Google / Vertex / Antigravity | `src/adapters/google.ts`, `src/adapters/google-http.ts`, `src/adapters/google-wire-compiler.ts`, `src/adapters/google-tool-schema.ts`, `src/adapters/google-truncation.ts`, `src/adapters/google-errors.ts`, `src/adapters/google-antigravity-wire.ts`, `src/adapters/google-antigravity-replay.ts`, `src/adapters/google-wire-shape.ts` | Vertex and Antigravity install a Google-family `fetchResponse` and so own their retry policy, while AI Studio Gemini leaves it undefined and uses the default server fetch path. Its transient ladder uses the shared `TRANSIENT_RETRY_MAX_ATTEMPTS` constant, also used to fund each eligible generic OAuth account in the [request send budget](responses-spend.md#credential-hop-reservations). A `Retry-After` on a retryable 429/503 is the earliest resend: the two-second local maximum bounds only the wrapper's own jittered backoff, and an instruction past the shared `RETRY_AFTER_CEILING_MS` (60 seconds) ends with that upstream response, `Retry-After` intact, instead of an early resend. Antigravity 403/404 normalization reads at most 4096 bytes for at most two seconds and emits a validation marker only for a complete structured `VALIDATION_REQUIRED` reason; an unsafe, incomplete or erroring body falls back to status-only text with the original HTTP status; caller cancellation propagates. Model-404 denial provenance requires an exact model ResourceInfo under the [account refusal contract](responses-failover.md#account-refusal-and-rotation-boundaries). The Google-family wrapper reuses shared abort/deadline helpers, upstream error normalization, and policy-aware wire-body repair: strict initial schema loss sends nothing, while strict repair withholding returns the original 400 without a changed send. The final compiler produces the [content-free tool-schema loss contract](../providers/google.md#google-tool-schema-loss-reporting). `google-wire-shape.ts` remains diagnostic-only. |
46
46
| Mimo Free |`src/adapters/mimo-free.ts`| Client identity and JWT handling are transport-local; the per-install client id lives in the opencodex state root. |
Copy file name to clipboardExpand all lines: structure/transports/responses.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -172,7 +172,7 @@ restoration has held exactly these bodies since #5047 and this is the two paths
172
172
new restriction invented for one of them. Bodies that are not objects, which is what an `exec`
173
173
program or an `apply_patch` envelope actually looks like, are unaffected and still stream.
174
174
175
-
Routed restoration keeps its hold for an unrecognized JSON object and its separate code-mode patch-envelope hold. Duplicate `input` keys and wrappers that become invalid only after a valid prefix was emitted remain bounded exceptions for ordinary freeform tools. Routed `apply_patch` narrows that boundary: after an exact canonical `*** Begin Patch` line resolves, `src/responses/apply-patch-envelope.ts` exposes only bytes that delimiter normalization cannot rewrite.
175
+
Routed restoration keeps its hold for an unrecognized JSON object and its separate code-mode patch-envelope hold. Duplicate `input` keys and wrappers that become invalid only after a valid prefix was emitted remain bounded exceptions for ordinary freeform tools. Routed `apply_patch` narrows that boundary: after an exact canonical `*** Begin Patch` line resolves, `src/responses/apply-patch-envelope.ts` exposes only bytes that delimiter normalization cannot rewrite, identifying a rewritable terminal decoration from a bounded suffix rather than rescanning the accumulated patch.
176
176
A possible decorated terminal marker and the line break behind it remain held until authoritative. If a late-invalid or duplicate-key wrapper makes the completed repaired input disagree with an emitted canonical patch prefix, the routed rewrite fails closed before input-done, item-done, or completed output rather than publishing a rewound executable call.
177
177
178
178
Codex-private tool fields are removed at the same boundary from one table
0 commit comments