Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/bharatcode-catalog-recovery.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"bharatcode-agent": patch
"@kilocode/cli": patch
---

Recover the BharatCode model catalog after temporary failures without restarting sessions. Keep the last working model list, explain catalog errors, and provide a catalog-only retry action. Isolate BharatCode Agent commands and views from other Kilo-derived extensions while preserving chats, sign-ins and existing settings.
5 changes: 5 additions & 0 deletions .changeset/bharatcode-vscode-publisher.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"bharatcode-agent": patch
---

Use the verified BharatCode publisher for the website sign-in extension, with matching runtime identity and package checks.
12 changes: 10 additions & 2 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,14 @@ jobs:
check-kilo-generated-artifacts \
check-test-ci \
check-opencode-promise-facades \
check-model-tool-network \
check-opencode-annotations; do
check-model-tool-network; do
echo "::group::$g"
bun "script/$g.ts"
echo "::endgroup::"
done
# This organization fork imports Navya's bc/main, not upstream's main branch.
# Keep checking every change since that immutable import; do not silently skip the guard.
bun script/check-opencode-annotations.ts --base 1e97696076bafea5ff4010627108ca50a162d9eb
echo "::group::extract-source-links"
bun script/extract-source-links.ts --check
echo "::endgroup::"
Expand Down Expand Up @@ -90,6 +92,12 @@ jobs:
# without it: "No usable Bubblewrap executable is available")
- uses: ./.github/actions/setup-linux-sandbox

- name: OAuth identity and package regressions (blocking)
working-directory: packages/kilo-vscode
run: |
python3 -B -m unittest discover -s tests -p test_identity.py
bun --config=/dev/null test --preload ./tests/setup/vscode-mock.ts ./tests/unit/bharatcode-website-signin.test.ts ./tests/unit/extension-arch.test.ts ./tests/unit/extension-identity.test.ts ../opencode/test/plugin/bharatcode.test.ts

# 37 pre-existing failures = rebrand drift (tests assert upstream
# strings like "Add to Kilo Code"; nothing ran these in this fork
# before CI existed). Non-blocking so they stay visible without
Expand Down
113 changes: 113 additions & 0 deletions .github/workflows/oauth-candidate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
# kilocode_change - new file
name: Website sign-in candidate

on:
workflow_dispatch:
inputs:
reuse_verified_backends:
description: "Reuse only verified run 44186017306 backends; rebuild extension packages"
type: boolean
default: false

permissions:
contents: read
actions: read

concurrency:
group: oauth-candidate-${{ github.ref }}
cancel-in-progress: false

jobs:
candidate:
runs-on: ubuntu-24.04
timeout-minutes: 60
env:
KILO_VERSION: 7.8.115
KILO_CLI_TARGETS: win32-x64,win32-arm64,linux-x64,linux-arm64,linux-x64-musl,linux-arm64-musl,darwin-x64,darwin-arm64
KILO_SKIP_BUNDLED_BWRAP: "1"
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
fetch-depth: 0
- name: Download and verify fixed parent backends
if: inputs.reuse_verified_backends
env:
GH_TOKEN: ${{ github.token }}
run: |
gh api repos/BharatCode-ai/bharatcode-vscode/actions/artifacts/14373729058 > "$RUNNER_TEMP/parent-metadata.json"
gh api repos/BharatCode-ai/bharatcode-vscode/actions/artifacts/14373729058/zip > "$RUNNER_TEMP/parent.zip"
python3 -B packages/kilo-vscode/script/reuse-candidate.py prepare \
--metadata "$RUNNER_TEMP/parent-metadata.json" --archive "$RUNNER_TEMP/parent.zip" \
--root "$RUNNER_TEMP/verified-parent"
echo "CLI_DIST_DIR=$RUNNER_TEMP/verified-parent/dist" >> "$GITHUB_ENV"
- uses: ./.github/actions/setup-bun
with:
install-flags: ${{ inputs.reuse_verified_backends && '--os=linux --cpu=x64' || '--os=* --cpu=*' }}
- name: Verify source and release guards
run: |
bun script/check-workflows.ts
bun script/check-md-table-padding.ts
bun script/check-opencode-annotations.ts --base 1e97696076bafea5ff4010627108ca50a162d9eb
bun script/extract-source-links.ts --check
python3 -B -m unittest discover -s packages/kilo-vscode/tests -p 'test_*.py'
bunx prettier --check .github/workflows/oauth-candidate.yml .github/workflows/release.yml .github/workflows/checks.yml packages/kilo-vscode/package.json packages/kilo-vscode/src/constants.ts packages/kilo-vscode/src/extension.ts packages/kilo-vscode/tests/unit/extension-identity.test.ts packages/kilo-vscode/tests/unit/reuse-candidate-resources.test.ts packages/kilo-vscode/script/build.ts packages/kilo-vscode/script/publish.ts packages/kilo-vscode/webview-ui/src/components/chat/FeedbackDialog.tsx packages/kilo-vscode/webview-ui/src/components/marketplace/MarketplaceContribute.tsx packages/kilo-vscode/webview-ui/src/components/settings/AboutKiloCodeTab.tsx
- name: Verify website sign-in and command wiring
working-directory: packages/kilo-vscode
run: >-
bun --config=/dev/null test --preload ./tests/setup/vscode-mock.ts
./tests/unit/bharatcode-website-signin.test.ts
./tests/unit/extension-arch.test.ts
./tests/unit/extension-identity.test.ts
./tests/unit/namespace-migration.test.ts
./tests/unit/configuration-lifecycle.test.ts
./tests/unit/bharatcode-catalog-ui.test.ts
./tests/unit/model-selector-lifecycle.test.ts
./tests/unit/kilo-provider-provider-refresh.test.ts
./tests/unit/kilo-provider-catalog.test.ts
./tests/unit/provider-actions-save.test.ts
./tests/unit/provider-context-catalog.test.ts
./tests/unit/reuse-candidate-resources.test.ts
../opencode/test/plugin/bharatcode.test.ts
- name: Verify catalog recovery without session disposal
working-directory: packages/opencode
run: >-
bun test
test/kilocode/provider/bharatcode-catalog.test.ts
test/kilocode/provider/bharatcode-catalog-cache.test.ts
test/kilocode/provider/catalog-refresh-route.test.ts
test/kilocode/catalog-recovery.test.ts
test/kilocode/model-cache-effect.test.ts
test/kilocode/model-cache-org.test.ts
--timeout 30000
- name: Build bundled backends
if: ${{ !inputs.reuse_verified_backends }}
working-directory: packages/opencode
run: bun script/build.ts --skip-install
- name: Build and check extension packages
working-directory: packages/kilo-vscode
run: |
export PATH="$PWD/node_modules/.bin:$PATH"
bun run check-kilocode-change
bun run check-types:webview
bun script/build.ts
- name: Audit exact candidate packages
if: ${{ !inputs.reuse_verified_backends }}
run: >-
python3 packages/kilo-vscode/script/audit-vsix.py
--version "$KILO_VERSION" --receipt
- name: Audit derived packages and unchanged backend resources
if: inputs.reuse_verified_backends
run: >-
python3 -B packages/kilo-vscode/script/reuse-candidate.py verify
--root "$RUNNER_TEMP/verified-parent"
--out packages/kilo-vscode/out
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: vscode-oauth-${{ github.sha }}
path: |
packages/kilo-vscode/out/*.vsix
packages/kilo-vscode/out/candidate.json
packages/kilo-vscode/out/SHA256SUMS
if-no-files-found: error
retention-days: 3
44 changes: 3 additions & 41 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
name: Release

on:
push:
branches: [bc/main]
workflow_dispatch:

permissions:
Expand Down Expand Up @@ -145,45 +143,9 @@ jobs:
- name: Audit vsixes + SHA256SUMS
env:
V: ${{ needs.cut.outputs.version }}
run: |
set -euo pipefail
python3 - <<'PY'
import json, os, zipfile, glob
V = os.environ["V"]
expected_binary = {
"win32-x64": "extension/bin/bharatcode.exe",
"win32-arm64": "extension/bin/bharatcode.exe",
}
files = sorted(glob.glob("packages/kilo-vscode/out/*.vsix"))
assert len(files) == 8, f"expected 8 vsixes, got {len(files)}"
for f in files:
base = os.path.basename(f)
prefix, suffix = "bharatcode-vscode-", f"-{V}.vsix"
assert base.startswith(prefix) and base.endswith(suffix), f"unexpected name {base}"
plat = base[len(prefix):-len(suffix)]
z = zipfile.ZipFile(f)
names = z.namelist()
maps = [n for n in names if n.endswith(".map")]
assert not maps, f"{plat}: {len(maps)} sourcemaps in zip"
want = expected_binary.get(plat, "extension/bin/bharatcode")
other = "extension/bin/bharatcode" if want.endswith(".exe") else "extension/bin/bharatcode.exe"
bins = [
n for n in names
if n.startswith("extension/bin/") and n.count("/") == 2
and not n.endswith((".wasm", ".js"))
and not any(t in n for t in ("tree-sitter", "console", "ffmpeg", "sandbox"))
]
assert want in bins, f"{plat}: missing {want}, have {bins}"
assert other not in bins, f"{plat}: wrong-platform binary {other}"
lic = z.read("extension/LICENSE.txt").decode()
assert "BharatCode modifications" in lic and "Kilo Code" in lic, f"{plat}: license lines missing"
man = json.loads(z.read("extension/package.json"))
assert man["version"] == V, f"{plat}: version {man['version']} != {V}"
assert man["name"] == "bharatcode-vscode" and man["publisher"] == "thenabbu", f"{plat}: manifest identity"
print(f"{plat}: OK v{man['version']}")
PY
(cd packages/kilo-vscode/out && sha256sum *.vsix > SHA256SUMS)
cat packages/kilo-vscode/out/SHA256SUMS
run: >-
python3 packages/kilo-vscode/script/audit-vsix.py
--version "$V" --versioned --checksums

- uses: actions/upload-artifact@v4
with:
Expand Down
4 changes: 2 additions & 2 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ representative at an online or offline event.

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement by opening an
issue at https://github.com/thenabbu/BharatCode-VSCode-Extension/issues
issue at https://github.com/BharatCode-ai/bharatcode-vscode/issues
(confidential reports may instead be filed as a private security advisory at
https://github.com/thenabbu/BharatCode-VSCode-Extension/security/advisories/new).
https://github.com/BharatCode-ai/bharatcode-vscode/security/advisories/new).
All complaints will be reviewed and investigated promptly and fairly.

All community leaders are obligated to respect the privacy and security of the
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ There are lots of ways to contribute to the project:
- **Feature Requests:** Suggest new features or improvements
- **Community Support:** Help other users in the community

Questions and discussion belong in [GitHub Issues](https://github.com/thenabbu/BharatCode-VSCode-Extension/issues).
Questions and discussion belong in [GitHub Issues](https://github.com/BharatCode-ai/bharatcode-vscode/issues).


## Prerequisites
Expand Down
2 changes: 1 addition & 1 deletion PRIVACY.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ No system is 100% secure. We take reasonable measures to protect what we do hand

## Contact

Questions about privacy: open an issue on [GitHub](https://github.com/thenabbu/BharatCode-VSCode-Extension/issues).
Questions about privacy: open an issue on [GitHub](https://github.com/BharatCode-ai/bharatcode-vscode/issues).

---

Expand Down
Loading
Loading