@sunerpy/kiro-provider 0.6.0 → 0.8.0

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 +18 -4
  2. package/dist/cli.js +95 -182
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -23,6 +23,7 @@
23
23
  - [Use with Zuno](#use-with-zuno)
24
24
  - [Use with Codex CLI](#use-with-codex-cli)
25
25
  - [Use with Claude Code](#use-with-claude-code)
26
+ - [Troubleshooting](#troubleshooting)
26
27
  - [Development](#development)
27
28
  - [License](#license)
28
29
 
@@ -41,7 +42,7 @@
41
42
  separate canonical completion/event IR before protocol-specific encoding.
42
43
  - 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.
43
44
  - 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.
44
- - `kiro-provider login` and `accounts import` write directly to the provider-owned local authentication store. `auth_source: "opencode-shared"` remains an explicit compatibility option, but it is not the production default and is not required after import.
45
+ - `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`).
45
46
  - 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.
46
47
  - Ships as a self-contained compiled binary via `bun build --compile` — no runtime install required on the target machine.
47
48
 
@@ -338,8 +339,7 @@ systemctl --user enable --now kiro-provider.service
338
339
 
339
340
  If the binary or config is elsewhere, replace `ExecStart` with those absolute
340
341
  paths. For a custom `XDG_CONFIG_HOME`, also add an explicit
341
- `Environment=XDG_CONFIG_HOME=/absolute/path` line or configure
342
- `opencode_auth_db_path`.
342
+ `Environment=XDG_CONFIG_HOME=/absolute/path` line.
343
343
 
344
344
  Operate and inspect the service:
345
345
 
@@ -506,7 +506,7 @@ Config is loaded from `~/.config/kiro-provider/config.json` (or `$XDG_CONFIG_HOM
506
506
  | `protocol_projection_mode` | `safe` | `KIRO_PROVIDER_PROTOCOL_PROJECTION_MODE` |
507
507
  | `session_affinity_mode` | `explicit-only` | `KIRO_PROVIDER_SESSION_AFFINITY_MODE` |
508
508
  | `auth_source` | `local` | `KIRO_PROVIDER_AUTH_SOURCE` |
509
- | `opencode_auth_db_path` | `null` (uses the OpenCode default) | `KIRO_PROVIDER_OPENCODE_AUTH_DB_PATH` |
509
+ | `opencode_auth_db_path` | `null` (deprecated since 0.7.0, ignored) | `KIRO_PROVIDER_OPENCODE_AUTH_DB_PATH` |
510
510
  | `proxy_url` | `null` | `KIRO_PROVIDER_PROXY_URL` |
511
511
  | `default_region` | `us-east-1` | `KIRO_PROVIDER_DEFAULT_REGION` |
512
512
  | `sdk_http_keep_alive` | `false` | `KIRO_PROVIDER_SDK_HTTP_KEEP_ALIVE` |
@@ -735,6 +735,20 @@ The preceding protocol/client matrix is retained in
735
735
  The older [`docs/E2E_VALIDATION_2026-08-22.md`](docs/E2E_VALIDATION_2026-08-22.md)
736
736
  is retained as historical v0.4 evidence only.
737
737
 
738
+ ## Troubleshooting
739
+
740
+ [`docs/TROUBLESHOOTING.md`](docs/TROUBLESHOOTING.md) is the symptom-first
741
+ runbook: for each symptom it names the audit event, the
742
+ `accounts list --details` availability value, or the HTTP status and
743
+ `error.code` to look at, then the cause and the remedy. It covers
744
+ `needs-relogin` and token-refresh failures, `quota-exhausted` versus
745
+ `overage-blocked` (`stop_on_overage`), `503 no_healthy_accounts`, the
746
+ `502 upstream_stream_*` codes with the pre-publication retry events, how to
747
+ read `sdk_stream_terminal` when "the assistant announced a next step and
748
+ stopped", reasoning-replay `400`s, the single-instance lock, configuration
749
+ warnings, `413` variants, and proxy failures. It also lists `journalctl` grep
750
+ recipes for the systemd service and the opt-in `request_shape` debug event.
751
+
738
752
  ## Development
739
753
 
740
754
  ```bash