Commit Graph
497 Commits
Author SHA1 Message Date
Igor Šćekić 0224022889 ci: check the proposed version in a release-draft job and split the publish hand-over
The version job keeps read access and only proposes the version; release-draft checks it and creates the draft. release-undraft checks the stage evidence before any upload, publish-build hands over the tarballs as a separate artifact, and the release commit check also checks changelog link texts, commit ancestry and dependency package names.
2026-11-27 19:03:10 +01:00
Igor Šćekić 2cc0b19dff ci: tighten the release commit check and split the publish job
The release commit check limits changelog edits to one prepended block of changesets output and accepts any old version value. release-push writes the release commit from the checked tree, accepts an existing tag only at that commit, fsck-checks the bundle and retries a failed push before merging again. The draft release writes move to install-free jobs around a publish-build job, so publish keeps read access only. The JetBrains pin step only warns on failure.
2026-11-27 18:19:50 +01:00
Igor Šćekić df335e4bf6 ci: update AUR and Homebrew from a release-keys job with STS credentials
The publish job no longer reads the AUR key. A package-managers job in the release-keys environment reads the AUR key and the maintainer app key from the ci-kilocode-release STS bundle and runs only script/kilocode/package-managers.ts. The maintainer app id comes from the repository variable.
2026-11-27 16:17:05 +01:00
Igor Šćekić 1d9562b66f ci: block publication on enforced distribution evidence failures, harden re-run checks
With SBOM_ENFORCE the distribution evidence check stops before the release is published. The re-run comparison skips npm entries without a digest. The release commit check reuses a commit it already has, and fails when main carries the version without a tag or a release commit in the window.
2026-11-27 01:19:58 +01:00
Igor Šćekić 7c5ea6c3cb ci: bind published evidence reads to API digests, refuse already released versions
The published-release check hashes the manifests it downloads against the API digest and returns the accepted distribution manifest, which the re-run comparison reuses. Uploads stop before any delete once the release is no longer a draft. The version job stops when the tag or a release for the version exists, except for a re-run of the same workflow run.

Every npm tarball and image in the distribution evidence must carry its digest before the release is published; failed npm descriptions keep the tarball digest. A missing tag on an existing release commit on main is recreated instead of committing again. Sidecars without a recorded digest fail the check.
2026-11-27 00:56:10 +01:00
Igor Šćekić d76c72032a ci: address the release by id, publish npm after the release, make the publish job re-runnable
Every release request uses the draft id the version job got from the create call. The CLI publish packs and describes the npm tarballs, pushes the images, uploads the distribution evidence, checks the complete draft and publishes it, then publishes the packed tarballs, AUR and Homebrew.

A re-run skips the release commit and tag when they are on main, removes distribution evidence a failed run left on the draft, and after the release was published uploads nothing, checks the published assets and requires each npm tarball to match the published evidence. upload-cli enforces a sidecar and an attestation subject per archive under SBOM_ENFORCE.
2026-11-27 00:28:50 +01:00
Igor Šćekić 84d660e9b3 ci: describe and attest the signed Windows zips, upload every release asset before publishing
sign-cli-windows packages the signed Windows zips and records their digests; sbom-cli-windows writes new SBOM sidecars, manifest entries and checksum lines for them; upload-cli uploads the CLI set once and emits the attestation subjects, with the signed digests for the Windows zips.

The publish job uploads the VS Code packages before its draft check, and the CLI publish script uploads the distribution evidence, checks the complete draft and only then publishes the release, before AUR and Homebrew.
2026-11-26 23:48:29 +01:00
Igor Šćekić 614adc23d5 Merge pull request #16604 from Kilo-Org/igor/kc-ci-app-token-scope
ci: scope CI credentials per job and build release jobs from a clean state
2026-11-26 20:42:37 +01:00
Marius fad35d7296 fix(ci): isolate v1 CLI builds from draft release uploads (#16609)
* fix(ci): isolate v1 CLI builds from draft release uploads

* fix(ci): verify the release manifest before package publishing
2026-11-26 18:14:14 +00:00
Igor Šćekić e44659ac2d chore(publish): check GITHUB_TOKEN inline before updating the Homebrew tap 2026-11-26 17:28:35 +01:00
Igor Šćekić a808a9c2a8 ci: register the committer credential helper only for the token's repositories
- Add helper entries for the bare and .git URL of each listed repository; an unscoped token gets an owner-wide entry.
- Clone the Homebrew tap from its plain URL so the token stays out of the command line and the clone's config.
2026-11-26 17:16:01 +01:00
Denis Dupeyron 3b2da761b9 feat(cli): publish an OpenShell variant of the Docker image 2026-10-30 17:49:17 -06:00
zfralish 104d3a69d3 fix(cli): disable binary relocation in conda recipe 2026-10-28 10:23:24 +01:00
Evgeny Shurakov 307ff45f27 feat(cli): add hosted workspaces and cloud system feeds (#15509) 2026-10-27 23:26:39 +01:00
zfralish adb3318927 Merge remote-tracking branch 'origin/main' into feat/conda-package
# Conflicts:
#	.github/workflows/publish.yml
2026-10-27 10:56:46 +01:00
Kirill Kalishev 8af43eb449 Merge pull request #15358 from Kilo-Org/eager-dune
feat(cli): route hosted sessions through opaque local attachments
2026-10-23 15:03:56 +02:00
Igor Šćekić a4fa222cd3 fix(nix): include CLI build inputs and preserve the native loader 2026-10-22 20:43:11 +02:00
marius-kilocode bac469be39 fix(cli): harden pinned runtime cache and validation 2026-10-22 12:34:40 +02:00
marius-kilocode c7b9c36961 fix(cli): block compromised eMudhra certificates 2026-10-22 09:53:02 +02:00
kirillk f96361fe14 feat(cli): route hosted sessions through opaque local attachments
Expose the merged Session Host seam through the local Kilo API so editors can
discover, read, start, and interact with a hosted cloud session without ever
handling a provider origin, credential, or Cloud control identity.

The provider now owns native request mapping: the local routing layer reduces
the inbound request to an allowlisted method/path/body, strips local
credentials, cookies, and selectors, and hands it to the provider, which maps
it onto the Cloud facade and injects its own auth. Attachments are opaque
wrk_att_ ids that stay valid under the existing workspace selector parser, take
precedence over Workspace lookup and local classification, and fail explicitly
when unknown, expired, disposed, or unavailable instead of running locally.
2026-10-21 19:33:07 -04:00
Andrea Giammarchi 0150a35e93 Merge branch 'main' into fix-14769-win-arm64-error 2026-10-09 15:23:04 +02:00
kirillk 16d0408da4 fix(cli): upload release assets one at a time with retries
The v7.8.6 publish dispatch failed in build-cli after the full build with
"HTTP 422: ReleaseAsset.name already exists" on kilo-linux-x64-musl.tar.gz,
leaving 8 of 26 assets on the draft release.

gh release upload --clobber uploads the whole set concurrently through one
errgroup and retries an individual upload when the transport fails. A dropped
connection does not mean GitHub rejected the asset: the upload commits
server-side and gh's own retry then collides with the asset it just created.
422 is not retryable, so gh fails the command and the shared errgroup context
cancels every upload still in flight.

Upload one asset per invocation instead. Each attempt is then independently
retryable, and --clobber clears the ghost asset from the previous attempt, so
"already exists" resolves itself. A file that exhausts its attempts is reported
alongside every other failure rather than discarding assets that succeeded, and
the published asset set is confirmed afterwards so an upload left in `starter`
state is not mistaken for a complete release.
2026-10-06 16:13:25 -04:00
Niraj Jhapate 357d3023b6 Merge branch 'main' into fix-14769-win-arm64-error 2026-10-06 17:27:52 +05:30
jhapate0704 a1fbca0875 fix(cli): improve missing binary error message for Windows ARM64 2026-10-06 16:33:05 +05:30
Emmanuel Borja 58469a002b chore(cli): reference models.dev for subagent_model and memory_model in the config schema
The schema script restored the models.dev model reference only for model
and small_model, so the dedicated model settings were generated as plain
strings without model validation or completion.
2026-10-05 07:47:48 -06:00
Igor Šćekić e55ec65771 Merge remote-tracking branch 'origin/main' into kwf/goal-timing-tools-synergy-99ac 2026-09-28 13:06:42 +02:00
Igor Šćekić 1dec5d3fb8 feat(cli): make goals and the timing tools one system
https://github.com/Kilo-Org/kilocode/pull/14504
2026-09-24 01:00:27 +02:00
kirillk a1a8172af6 fix(sbom): restore ociImage doc comment and unpin LanceDB edge test
The ociName helper was inserted between ociImage and its doc comment,
leaving ociName with two blocks and ociImage with none.

The reclassified-component edge test matched LanceDB by a hardcoded
purl version, so the next version bump would fail it for the wrong
reason. It now locates the component by name and asserts both the
runtime reclassification and the preserved edge.
2026-09-23 15:01:53 -04:00
kirillk c64cca8170 fix(sbom): address review findings on graph integrity and evidence coverage
Keep delivery out of component refs. Folding it into the bom-ref made
every reclassified component unreachable from dependency edges built on
plain purls, so compose() dropped them and flattened the graph: the
JetBrains lean plugin attached all 1109 components to the root, and the
CLI's reclassified LanceDB lost its edges. Conflicting delivery claims
now resolve to the strongest one in dedupe().

Make coverage gates meaningful. The distribution manifest derived its
expected count from the recorded entries, so a missing npm package or
image could never register as a shortfall. Expected coverage now comes
from what the release had to produce, failed OCI descriptions record an
explicit error entry, and an image SBOM with no components is reported
as a failure rather than verifying as valid.

Keep npm evidence tied to published bytes. Re-runs now describe the
tarball the registry serves instead of silently producing no entry, and
stale tarballs are removed before packing so the SBOM subject is
provably the file just written.

Install Syft and pass SBOM_ENFORCE to the VSIX build and publish jobs;
both ran the generators without either. The JetBrains bundled workflow
now fails when published lean evidence exists but cannot be restored,
instead of uploading a bundled-only manifest over it, and restores the
lean sidecars next to the manifest so verification can resolve them.

Also normalize archive product identity to the real npm package name,
fix the VS Code --dir default, skip digest-less entries in SHA256SUMS,
and tighten two tests that could pass without asserting anything.
2026-09-23 14:48:49 -04:00
kirillk 03b5606345 feat(cli,vscode,jetbrains): generate CycloneDX SBOMs for release artifacts
Adds CRA (Cyber Resilience Act) SBOM evidence generation, validation,
and publication for every shipped Kilo artifact: 12 CLI archives, npm
packages, OCI images, 8 VSIX files, and the JetBrains lean/bundled
plugin ZIPs.

- Shared composer/validator/manifest tooling in script/kilocode/sbom/
  produces CycloneDX 1.6 JSON with a deterministic serial number bound
  to the artifact's SHA-256, and models delivery as contained/provided/
  runtime so host-supplied and runtime-downloaded code is never claimed
  as shipped.
- Component graphs combine a bun.lock dependency closure (for code
  compiled into Bun/esbuild bundles) with a pinned Syft scan of the
  final artifact (for staged files a lockfile can't see), so neither
  generator has to cover what the other misses.
- CLI, VS Code, and JetBrains sidecars are generated from the same
  per-target CLI component graph, so one shipped binary cannot be
  described two different ways across products.
- Evidence is published as public *.cdx.json sidecars on GitHub
  Releases plus signed actions/attest SBOM attestations bound to each
  artifact's digest.
- Rollout is advisory: SBOM_ENFORCE gates whether missing/invalid
  evidence blocks a release (defaults to warn-only until stable
  releases prove complete coverage).
2026-09-23 14:02:15 -04:00
Zeke Fralish e09d36309a feat: run conda packaging on pre-releases (rc label) 2026-09-22 14:15:08 -05:00
Zeke Fralish 3ac0983c7d feat: publish CLI as conda package via rattler-build 2026-09-22 13:37:09 -05:00
marius-kilocode 9a74f1ad33 Merge remote-tracking branch 'origin/main' into johnnyeric/kilo-opencode-v1.18.15
# Conflicts:
#	package.json
2026-09-21 13:52:24 +02:00
marius-kilocode d5a919f11b Merge origin/main into remove-unwanted-feature 2026-09-08 10:35:37 +02:00
marius-kilocode 4af512d113 test(cli): retain a startup speed check on each platform 2026-09-07 10:54:25 +02:00
marius-kilocode 8ae61973bf fix(cli): cache Windows CPU checks and benchmark startup 2026-09-07 10:28:56 +02:00
marius-kilocode b5cf426158 fix(cli): remove nonfunctional interactive terminal tool 2026-09-04 15:10:46 +02:00
Igor Šćekić 86c1928c4a fix(cli): bound the piped-stdin wait in kilo run (#13763)
* Repro script: headless boot-hang loop with hung-run debug log (kwf fix-a-bug-in-the-kilocode-cl-3db9/s1)

* Bound the piped-stdin read when the prompt comes from argv; regression tests; live proof (kwf fix-a-bug-in-the-kilocode-cl-3db9/s2)

* Repair delivery gaps: annotation markers, changeset, live-proof evidence (kwf fix-a-bug-in-the-kilocode-cl-3db9/c1)

* fix: address-the-automated-review-f271 patch delivery

* fix: address-the-automated-review-7807 patch delivery

* fix: address-the-automated-review-82a7 patch delivery
2026-09-04 13:21:52 +02:00
Johnny Eric Amancio 3d3a722733 Merge remote-tracking branch 'origin/main' into johnnyeric/kilo-opencode-v1.18.15 2026-08-28 17:25:05 +02:00
marius-kilocode cb4abf4327 chore(cli): restore Bun 1.3 build rationale 2026-08-26 17:07:26 +02:00
marius-kilocode 42a63663bf fix(cli): roll back Bun 1.4 2026-08-26 16:49:04 +02:00
Johnny Eric Amancio 3dad775136 Merge remote-tracking branch 'origin/main' into johnnyeric/kilo-opencode-v1.18.15
# Conflicts:
#	bun.lock
2026-08-26 16:04:55 +02:00
marius-kilocode 7b9a84f63a fix(cli): restore terminal startup 2026-08-26 15:39:23 +02:00
marius-kilocode eba00e6aff chore(cli): update Bun to 1.4.0 2026-08-25 12:12:25 +02:00
Johnny Eric Amancio c50f6be6af Merge remote-tracking branch 'origin/main' into johnnyeric/kilo-opencode-v1.18.15
# Conflicts:
#	packages/opencode/src/tool/truncate.ts
#	packages/opencode/test/tool/truncation.test.ts
2026-08-19 14:25:26 +02:00
Yury Zialionka 8aff7ade1b Merge origin/main: reconcile with independently landed #13091 and #13113
Main landed the same httpapi design (git-opt-in fixtures, --shard flag)
and the same permission.create readiness wait. Resolution adopts main's
implementations and keeps this branch's unique work on top: the
--shards child-process orchestrator (adapted to main's zero-based
shard indexing), scenario retry with backoff gated on state-reset,
project.update isolation, and exerciser env stripping. Removed the
superseded agentsReady/probe machinery and this branch's duplicate
round-robin filter (double-sharding silently dropped scenarios).

Validated: coverage, auth, and 4-shard effect passes all green
(315 checks, 0 failures).
2026-08-13 21:42:43 -06:00
Yury Zialionka b7bf24815c Merge branch 'perf/in-process-fast-tier' into integration/test-pipeline-speedup 2026-08-13 21:24:45 -06:00
Yury Zialionka 031ae4a7a3 fix(test): second review round — measurement integrity and hang budget
--update-durations now disables batching so every file is measured
per-file (batched members' entries otherwise rot), and only passing
runs record durations (a timed-out file would write the kill deadline
and permanently skew LPT).

Timed-out work items are no longer retried: the deadline already
proves a hang, and a second 600s attempt could push a shard past the
45-minute job budget.

A flaky batch now annotates the member files that failed the first
attempt instead of the pseudo-file. Defender exclusions apply per
path instead of aborting on the first policy-locked one.
2026-08-13 21:24:42 -06:00
Yury Zialionka 5aed6f5f18 refactor(test): flatten tier entries; bound the demotion scan; fix a stale comment
FAST_TIERS drops the single-field wrapper left from the hand-weight era.
The unsafe-marker scan reads files in chunks of 64 so a low soft fd
limit cannot fail startup. The durations comment points at
--update-durations instead of a workflow that no longer exists.
2026-08-13 21:07:44 -06:00
Yury Zialionka 32a883c690 Merge branch 'perf/in-process-fast-tier' into integration/test-pipeline-speedup 2026-08-13 18:53:28 -06:00