@sunerpy/kiro-provider 3.0.1 → 3.1.1

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 (3) hide show
  1. package/README.md +22 -8
  2. package/dist/cli.js +136 -112
  3. package/package.json +4 -1
package/README.md CHANGED
@@ -41,9 +41,10 @@
41
41
  - Live per-account model discovery and account-aware routing through Kiro management, with bounded stale/static fallback. Production calls use the live-probe-confirmed `runtime.<region>.kiro.dev` dialect. Token-usage metadata is an immediate completion witness; the current runtime's valid terminal metering event is accepted only when followed by clean EOF.
42
42
  - Default `v3-auto` transport selection: ordinary requests use KiroRuntime's
43
43
  native OpenAI Responses operation and request shapes requiring `store:false`,
44
- max effort, encrypted reasoning replay, custom grammar, namespace tools, or
45
- Codex collaboration use the canonical stateless fallback.
46
- - Encrypted reasoning replay for complete native Kiro envelopes: opaque `kr1_...` tokens, AES-256-GCM storage, tenant/model/account/conversation/output binding, TTL/LRU cleanup, and account-locked replay.
44
+ max effort, provider `kr1_` replay, custom grammar, or Codex collaboration
45
+ use the canonical stateless fallback. Verified namespace/free-form tools can
46
+ stay on native Responses through a persistent tool bridge.
47
+ - Complete signed Kiro envelopes use provider `kr1_...` replay tokens, AES-256-GCM storage, tenant/model/account/conversation/output binding, TTL/LRU cleanup, and account-locked replay. Native opaque tokens stay on CreateResponse and recover their owner from durable response records.
47
48
  - Multi-account rotation with automatic token refresh and failover. Exhausted accounts are hard-excluded from model attempts, then automatically rejoin only after a bounded, deduplicated Kiro usage probe confirms a new quota window. A provider-owned maintenance loop also refreshes near-expiry tokens and stale usage while the service is idle.
48
49
  - `kiro-provider login` and `accounts import` write directly to the provider-owned local authentication store. The former `auth_source: "opencode-shared"` compatibility mode was removed in 0.7.0; a configuration that still selects it fails at startup with migration instructions (import once, then use `local`).
49
50
  - A single global `proxy_url` that, when set, routes all upstream egress (model requests, token refresh, quota probes, device-code login) through one HTTP(S) proxy.
@@ -55,9 +56,9 @@ V3 implements the core OpenAI Responses resource and makes every upstream
55
56
  difference explicit:
56
57
 
57
58
  - native JSON/SSE creation, instructions, function tools, supported effort and
58
- token controls, and native `previous_response_id`;
59
- - automatic stateless fallback for `store:false`, max effort, encrypted
60
- reasoning, custom grammar, namespace tools, and Codex multi-agent items;
59
+ token controls, and `previous_response_id` (exact native replay for affected Claude and Sol reasoning histories);
60
+ - automatic stateless fallback for `store:false`, max effort, provider-token
61
+ replay, custom grammar, unverified tool-bridge combinations, and Codex multi-agent items;
61
62
  - tenant-isolated local response mirrors for retrieve, delete, input-items
62
63
  pagination, and continuation;
63
64
  - field-level OpenAI error envelopes for capabilities Kiro cannot preserve,
@@ -71,6 +72,16 @@ account does not advertise the private `systemPrompt` feature. The default
71
72
  `v3-auto` path instead uses KiroRuntime CreateResponse's native
72
73
  `instructions` field.
73
74
 
75
+ `responses_fidelity_mode` defaults to `compatible` and reports known losses in
76
+ `X-Kiro-Compatibility`; `strict` rejects those semantics before generation.
77
+ `X-Kiro-Transport` distinguishes native, native-adapted, and stateless calls.
78
+ Native tool bridges are enabled only for verified model/region cells. Instruction
79
+ lifting stays experimental until its complete continuation gate passes. See the
80
+ [Responses fidelity validation](docs/audits/kiro-provider-responses-fidelity-2026-09-10.zh.md)
81
+ for history, reasoning, instruction-priority boundaries, and storage migration.
82
+ The [before/after report](docs/audits/kiro-provider-responses-before-after-2026-09-10.zh.md)
83
+ includes real OpenAI SDK, Codex, and Zuno results.
84
+
74
85
  For the transport decision table, stored-response contract, data-retention
75
86
  boundary, verified model controls, and current client evidence, see
76
87
  [`docs/PROTOCOL_COMPATIBILITY.md`](docs/PROTOCOL_COMPATIBILITY.md) and the
@@ -706,7 +717,7 @@ an explicit estimate. See
706
717
 
707
718
  The current account-management and live-usage validation record is in
708
719
  [`docs/audits/kiro-provider-v0.5.0-rc.5-account-management-validation-2026-08-29.md`](docs/audits/kiro-provider-v0.5.0-rc.5-account-management-validation-2026-08-29.md).
709
- The v0.5.0 typed stream-error contract and downstream Zuno handoff are in
720
+ The current typed stream-error contract and downstream Zuno handoff are in
710
721
  [`docs/STREAM_ERROR_CONTRACT.md`](docs/STREAM_ERROR_CONTRACT.md) and
711
722
  [`docs/ZUNO_STREAM_ERROR_HANDOFF.zh.md`](docs/ZUNO_STREAM_ERROR_HANDOFF.zh.md).
712
723
  The preceding local-auth lifecycle record is retained in
@@ -716,6 +727,9 @@ The preceding protocol/client matrix is retained in
716
727
  The older [`docs/E2E_VALIDATION_2026-08-22.md`](docs/E2E_VALIDATION_2026-08-22.md)
717
728
  is retained as historical v0.4 evidence only.
718
729
 
730
+ The v3.1.1 stream delivery, RPC decoding and real SDK/Zuno before/after report is in
731
+ [`docs/audits/stream-delivery-recovery-2026-09-13.md`](docs/audits/stream-delivery-recovery-2026-09-13.md).
732
+
719
733
  ## Troubleshooting
720
734
 
721
735
  [`docs/TROUBLESHOOTING.md`](docs/TROUBLESHOOTING.md) is the symptom-first
@@ -724,7 +738,7 @@ runbook: for each symptom it names the audit event, the
724
738
  `error.code` to look at, then the cause and the remedy. It covers
725
739
  `needs-relogin` and token-refresh failures, `quota-exhausted` versus
726
740
  `overage-blocked` (`stop_on_overage`), `503 no_healthy_accounts`, the
727
- `502 upstream_stream_*` codes with the pre-publication retry events, how to
741
+ `502 upstream_stream_*` codes, accepted-stream failures and non-stream retry events, how to
728
742
  read `sdk_stream_terminal` when "the assistant announced a next step and
729
743
  stopped", reasoning-replay `400`s, the single-instance lock, configuration
730
744
  warnings, `413` variants, and proxy failures. It also lists `journalctl` grep