diff --git a/.github/workflows/docker-smoke-test.yml b/.github/workflows/docker-smoke-test.yml index 50e6ed521..3f53b97b1 100644 --- a/.github/workflows/docker-smoke-test.yml +++ b/.github/workflows/docker-smoke-test.yml @@ -234,9 +234,9 @@ jobs: [[ "$pin" =~ ^ARG\ NODE[0-9]+_VERSION=[0-9]+\.[0-9]+\.[0-9]+$ ]] || { echo "::error::Dockerfile.unified must pin a full Node.js version (got '$pin')" >&2; exit 1; } grep -Fqx -- "$pin" "$f" || { echo "::error file=$f::$f must declare '$pin' to match Dockerfile.unified" >&2; exit 1; } done <<< "$node_pins" - assert_line 'ARG KIRO_CLI_VERSION=2.25.0' Dockerfile Dockerfile.package Dockerfile.unified - assert_line 'ARG KIRO_SHA256_AMD64=3e924de9697717b99891bb5f7d2a4bd9c768b8bfa1c498b35b3d242948512984' Dockerfile Dockerfile.package Dockerfile.unified - assert_line 'ARG KIRO_SHA256_ARM64=cc8a2df90cd354b569b81ed4653db4796c86a69866568b4eb7fa7906afc95309' Dockerfile Dockerfile.package Dockerfile.unified + assert_line 'ARG KIRO_CLI_VERSION=3.5.0' Dockerfile Dockerfile.package Dockerfile.unified + assert_line 'ARG KIRO_SHA256_AMD64=7f9bb76921f477125629619450d5942e160942aba9dd8cdc4a66f7678a20c56d' Dockerfile Dockerfile.package Dockerfile.unified + assert_line 'ARG KIRO_SHA256_ARM64=ed45f387bca9356d1e767022a7cb504c3fbda20d3881c55c7d771877335ceec0' Dockerfile Dockerfile.package Dockerfile.unified assert_line 'ARG CODEX_ACP_VERSION=2.0.0' Dockerfile.codex Dockerfile.package Dockerfile.unified assert_line 'ARG CODEX_VERSION=0.166.0' Dockerfile.codex Dockerfile.package Dockerfile.unified assert_line 'ARG COPILOT_VERSION=1.0.105' Dockerfile.copilot Dockerfile.package Dockerfile.unified diff --git a/Dockerfile b/Dockerfile index 8cc5900ef..05dae3cdc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -36,9 +36,9 @@ FROM debian:trixie-slim RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl procps ripgrep tini unzip && rm -rf /var/lib/apt/lists/* # Install kiro-cli (auto-detect arch, copy binary directly) -ARG KIRO_CLI_VERSION=2.25.0 -ARG KIRO_SHA256_AMD64=3e924de9697717b99891bb5f7d2a4bd9c768b8bfa1c498b35b3d242948512984 -ARG KIRO_SHA256_ARM64=cc8a2df90cd354b569b81ed4653db4796c86a69866568b4eb7fa7906afc95309 +ARG KIRO_CLI_VERSION=3.5.0 +ARG KIRO_SHA256_AMD64=7f9bb76921f477125629619450d5942e160942aba9dd8cdc4a66f7678a20c56d +ARG KIRO_SHA256_ARM64=ed45f387bca9356d1e767022a7cb504c3fbda20d3881c55c7d771877335ceec0 RUN ARCH=$(dpkg --print-architecture) && \ if [ "$ARCH" = "arm64" ]; then \ URL="https://prod.download.cli.kiro.dev/stable/${KIRO_CLI_VERSION}/kirocli-aarch64-linux.zip"; \ diff --git a/Dockerfile.package b/Dockerfile.package index 06c9a7126..4735a26d7 100644 --- a/Dockerfile.package +++ b/Dockerfile.package @@ -50,13 +50,13 @@ RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg \ # Target: kiro (default) # ============================================================================= FROM base-debian AS kiro -ARG KIRO_CLI_VERSION=2.25.0 +ARG KIRO_CLI_VERSION=3.5.0 # Optional immutable content identifiers for the nightly `latest` path. Release # and pre-beta builds leave these empty and retain their pinned SHA256 checks. ARG KIRO_ETAG_AMD64= ARG KIRO_ETAG_ARM64= -ARG KIRO_SHA256_AMD64=3e924de9697717b99891bb5f7d2a4bd9c768b8bfa1c498b35b3d242948512984 -ARG KIRO_SHA256_ARM64=cc8a2df90cd354b569b81ed4653db4796c86a69866568b4eb7fa7906afc95309 +ARG KIRO_SHA256_AMD64=7f9bb76921f477125629619450d5942e160942aba9dd8cdc4a66f7678a20c56d +ARG KIRO_SHA256_ARM64=ed45f387bca9356d1e767022a7cb504c3fbda20d3881c55c7d771877335ceec0 RUN ARCH=$(dpkg --print-architecture) && \ if [ "$ARCH" = "arm64" ]; then \ URL="https://prod.download.cli.kiro.dev/stable/${KIRO_CLI_VERSION}/kirocli-aarch64-linux.zip"; \ diff --git a/Dockerfile.unified b/Dockerfile.unified index 5265b338c..9c524b41f 100644 --- a/Dockerfile.unified +++ b/Dockerfile.unified @@ -101,9 +101,9 @@ RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg \ # Target: kiro (default) # ============================================================================= FROM base-debian AS kiro -ARG KIRO_CLI_VERSION=2.25.0 -ARG KIRO_SHA256_AMD64=3e924de9697717b99891bb5f7d2a4bd9c768b8bfa1c498b35b3d242948512984 -ARG KIRO_SHA256_ARM64=cc8a2df90cd354b569b81ed4653db4796c86a69866568b4eb7fa7906afc95309 +ARG KIRO_CLI_VERSION=3.5.0 +ARG KIRO_SHA256_AMD64=7f9bb76921f477125629619450d5942e160942aba9dd8cdc4a66f7678a20c56d +ARG KIRO_SHA256_ARM64=ed45f387bca9356d1e767022a7cb504c3fbda20d3881c55c7d771877335ceec0 RUN ARCH=$(dpkg --print-architecture) && \ if [ "$ARCH" = "arm64" ]; then \ URL="https://prod.download.cli.kiro.dev/stable/${KIRO_CLI_VERSION}/kirocli-aarch64-linux.zip"; \ diff --git a/docs/kiro-v3.md b/docs/kiro-v3.md index 820098c9f..3fd8004e7 100644 --- a/docs/kiro-v3.md +++ b/docs/kiro-v3.md @@ -1,8 +1,14 @@ # Kiro CLI v3 engine and Kiro workflows -kiro-cli 3.x ships a second engine, selected with `--agent-engine=v3`. It changes how agents are -selected and adds Kiro workflows over ACP. openab supports both, and every setting below is -opt-in: with none of them set, a kiro-cli v2 bot behaves as before. +kiro-cli 3.x ships a second engine, v3. It changes how agents are selected and adds Kiro +workflows over ACP. `kiro-cli acp` starts v3 by default, but stays on v2 when a v2-only flag such +as `--trust-all-tools` is passed; see [kiro.md](kiro.md) for the full rule. openab supports both +engines, and every openab setting below is opt-in: with none of them set, a bot that runs the v2 +engine behaves as before. + +The official kiro image bundles kiro-cli 3.x (pinned by `KIRO_CLI_VERSION` in the Dockerfile), so +no extra install is needed. Older images bundle 2.x, which has no v3 engine; check with +`kiro-cli --version`. ## What changes with v3 diff --git a/docs/kiro.md b/docs/kiro.md index 40737f716..028b6c6f0 100644 --- a/docs/kiro.md +++ b/docs/kiro.md @@ -10,6 +10,10 @@ The default `Dockerfile` bundles both `openab` and `kiro-cli`: docker build -t openab:latest . ``` +The image bundles kiro-cli 3.x, pinned by `KIRO_CLI_VERSION` in the Dockerfile. `kiro-cli acp` picks the v3 engine by default, but stays on v2 when a v2-only flag such as `--trust-all-tools` is passed. The image default (`kiro-cli acp --trust-all-tools`) therefore keeps running the v2 engine. If you override `[agent] args` without a v2-only flag, add `--agent-engine=v2` to stay on v2, or follow [kiro-v3.md](kiro-v3.md) to move to v3. + +A persisted `acp.agentEngine` setting (from `kiro-cli settings`) takes precedence over the v2-only flag rule. With `acp.agentEngine = "v3"`, the image default fails at startup with `the following arguments are not supported with --agent-engine=v3: --trust-all-tools`. Remove the setting or set it to `v2`. `kiro-cli acp` does not read `chat.agentEngine`. + ## Helm Install ```bash @@ -193,6 +197,8 @@ Follow the device code flow in your browser, then restart the pod: kubectl rollout restart deployment/openab-kiro ``` +If replies fail with `The monthly usage limit has been reached` after upgrading from an image with kiro-cli 2.x, the stored token may still be the one 2.x created. Run the login command above again and restart the pod. See [#1615](https://github.com/openabdev/openab/issues/1615). + ### Persisted Paths (PVC) | Path | Contents |