Skip to content
Merged
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
11 changes: 3 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,12 @@ jobs:
set -o pipefail
npm test 2>&1 | tee /tmp/tests.log

- name: Build and check dist/ sync
- name: Build
id: build
continue-on-error: true
run: |
set -e
set -o pipefail
npm run build 2>&1 | tee /tmp/build.log
git add -f dist
if ! git diff --cached --exit-code -- dist; then
echo "::error::committed dist/ is out of sync with src/ - run 'npm run build' and commit the result."
exit 1
fi

# Reports branch hygiene so an automated contributor (MCP client) knows whether to
# update the branch instead of guessing.
Expand Down Expand Up @@ -106,7 +101,7 @@ jobs:
echo '|---|---|'
echo "| typecheck | ${{ steps.typecheck.outcome }} |"
echo "| tests | ${{ steps.tests.outcome }} |"
echo "| build + dist | ${{ steps.build.outcome }} |"
echo "| build | ${{ steps.build.outcome }} |"
echo "| branch | ${HYGIENE:-n/a} |"
echo ''
case "$HYGIENE" in
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ bun.lockb

# output
out
dist/
*.tgz

# code coverage
Expand Down
9 changes: 5 additions & 4 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,13 @@
- Auth, entitlement and rate-limit logic is sensitive. Never weaken error handling or silently
swallow failures to make something pass.

## Committed artifacts
- `dist/` is committed and CI verifies it is in sync with `src/`. After any `src/` change run
`npm run build` and commit the regenerated `dist/` in the same PR.
## Build artifacts
- `dist/` is generated build output and is not committed. `npm install` runs the `prepare`
script (`npm run build`) so package installs from git or the release tarball contain a fresh
build; run `npm run build` yourself after changing `src/`.

## Gotchas
- Tests mock `./token` (refresh-queue). Do not rely on real network access in tests.
- `antigravity-accounts.json` and any credentials/tokens must never be committed.
- CI (`.github/workflows/ci.yml`) runs typecheck, tests, build and a `dist/` sync check, and posts
- CI (`.github/workflows/ci.yml`) runs typecheck, tests and a build, and posts
an `Automated verification` comment on each PR.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Changelog

## [2.8.0] - 2026-11-08

### Changed

- **`dist/` is no longer tracked in git.** The compiled output of `src/` was committed, and CI failed any pull request whose committed `dist/` differed from a fresh build. That forced every source change to carry generated files and made reviews noisy without protecting anyone: the build is reproducible from the sources. `dist/` is now in `.gitignore`, and CI builds it but no longer compares it against the index. `npm run build` still produces it locally.
- **Installs are unchanged for users.** The build happens where the package is consumed, via the existing `prepare` script (`npm run build`):
- the `github:JoshRob297/opencode-antigravity-auth` (or pinned `#vX.Y.Z`) spec in `~/.config/opencode/opencode.json` still clones and builds the plugin on install;
- the `.tgz` attached to each release is packed after `npm run build` in the release workflow, so it already contains `dist/`;
- `npm install github:JoshRob297/opencode-antigravity-auth` builds `dist/` through `prepare` as part of the npm install.
Sources checkouts follow the same path: `npm install` runs `prepare`, and `npm run build` rebuilds on demand. No manual step was added.

## [2.7.0] - 2026-11-08

### Added
Expand Down
17 changes: 0 additions & 17 deletions dist/index.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion dist/index.d.ts.map

This file was deleted.

19 changes: 0 additions & 19 deletions dist/index.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/index.js.map

This file was deleted.

31 changes: 0 additions & 31 deletions dist/src/antigravity/oauth.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion dist/src/antigravity/oauth.d.ts.map

This file was deleted.

171 changes: 0 additions & 171 deletions dist/src/antigravity/oauth.js

This file was deleted.

Loading
Loading