antigravity-autopilot 1.4.7 → 1.4.9

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.
@@ -3,7 +3,7 @@ name: Release
3
3
  on:
4
4
  push:
5
5
  tags:
6
- - 'v*'
6
+ - "v*"
7
7
 
8
8
  permissions:
9
9
  contents: write
@@ -18,7 +18,7 @@ jobs:
18
18
  - name: Setup Node.js
19
19
  uses: actions/setup-node@v4
20
20
  with:
21
- node-version: '20'
21
+ node-version: "20"
22
22
 
23
23
  - name: Install vsce
24
24
  run: npm install -g @vscode/vsce
@@ -31,16 +31,22 @@ jobs:
31
31
  - name: Create GitHub Release
32
32
  uses: softprops/action-gh-release@v2
33
33
  with:
34
- files: '*.vsix'
34
+ files: "*.vsix"
35
35
  generate_release_notes: true
36
36
  body: |
37
37
  ## Antigravity AutoPilot ${{ github.ref_name }}
38
38
 
39
39
  ### Install
40
40
 
41
- **CLI (npm):**
41
+ **CLI (recommended — always runs latest version):**
42
+ ```bash
43
+ npx antigravity-autopilot
44
+ ```
45
+
46
+ **CLI (global install):**
42
47
  ```bash
43
48
  npm i -g antigravity-autopilot
49
+ antigravity-autopilot
44
50
  ```
45
51
 
46
52
  **VS Code Extension:**
@@ -48,3 +54,18 @@ jobs:
48
54
  ```bash
49
55
  antigravity --install-extension antigravity-autopilot-*.vsix
50
56
  ```
57
+
58
+ ### Patch Types
59
+ | Type | Description |
60
+ |------|-------------|
61
+ | `terminal` | Auto-execute terminal commands |
62
+ | `browser` | Auto-confirm browser actions |
63
+ | `file` | Auto-allow file permissions |
64
+
65
+ ### Usage
66
+ ```bash
67
+ npx antigravity-autopilot # Apply all patches
68
+ npx antigravity-autopilot --only terminal # Patch terminal only
69
+ npx antigravity-autopilot --check # Check status
70
+ npx antigravity-autopilot --revert # Restore originals
71
+ ```
package/README.md CHANGED
@@ -36,6 +36,25 @@ Antigravity has an **"Always Proceed"** terminal execution policy, but due to mi
36
36
 
37
37
  ---
38
38
 
39
+ ## Installation
40
+
41
+ **Option 1 — `npx` (recommended):** No install needed. Always runs the latest version:
42
+
43
+ ```bash
44
+ npx antigravity-autopilot
45
+ ```
46
+
47
+ **Option 2 — Global install:** Installs permanently, runs offline. Remember to update manually:
48
+
49
+ ```bash
50
+ npm i -g antigravity-autopilot
51
+ antigravity-autopilot
52
+ ```
53
+
54
+ > **Which to choose?** Use `npx` unless you need offline access or run the tool frequently. `npx` always fetches the latest version automatically, while `npm i -g` keeps the installed version until you run `npm update -g`.
55
+
56
+ ---
57
+
39
58
  ## CLI Usage
40
59
 
41
60
  ```bash
@@ -86,7 +105,7 @@ Install the extension directly into Antigravity for a UI-based experience (sideb
86
105
 
87
106
  ```bash
88
107
  # Download .vsix from GitHub Releases, then:
89
- antigravity --install-extension antigravity-autopilot-1.4.7.vsix
108
+ antigravity --install-extension antigravity-autopilot-1.4.8.vsix
90
109
  ```
91
110
 
92
111
  **Extension features:**
package/RELEASE.md CHANGED
@@ -1,69 +1,87 @@
1
1
  # Release Checklist — Antigravity AutoPilot
2
2
 
3
- Follow these steps in order for every release.
3
+ Follow these steps **in order** for every release.
4
+ All platforms (npm, VSIX, GitHub Release) must have the **same version**.
4
5
 
5
6
  ## Pre-Release
6
7
 
7
8
  1. **Update code** — implement features/fixes
8
- 2. **Bump `version`** in `package.json`
9
+ 2. **Bump `version`** in `package.json` ← single source of truth for all platforms
9
10
  3. **Update `README.md`** — document new features, commands, flags
10
11
  4. **Update `--help` screen** in `cli.js` if CLI changed
11
12
  5. **Update extension VSIX version reference** in `README.md` install command
13
+ 6. **Update `cli.js` banner version** if it has inline version strings
12
14
 
13
15
  ## Build & Test
14
16
 
15
- 6. **Build VSIX:**
17
+ 7. **Build VSIX:**
16
18
  ```bash
17
19
  npx -y @vscode/vsce package --no-dependencies
18
20
  ```
19
- 7. **Install VSIX locally:**
21
+ 8. **Install VSIX locally:**
20
22
  ```bash
21
23
  cursor --install-extension antigravity-autopilot-X.Y.Z.vsix --force
22
24
  ```
23
- 8. **Test CLI commands:**
25
+ 9. **Test CLI commands:**
24
26
  ```bash
25
- node cli.js --check # verify per-patch status display
26
- node cli.js # apply patches, check graceful skip
27
- node cli.js # double-apply: all should show "Already patched"
28
- node cli.js --revert # revert, then re-apply
29
- node cli.js --only terminal # selective patch
30
- node cli.js --help # verify help screen
27
+ node cli.js --check # verify per-patch status display
28
+ node cli.js # apply patches, check graceful skip
29
+ node cli.js # double-apply: all should show "Already patched"
30
+ node cli.js --revert # revert
31
+ node cli.js --only terminal # selective patch
32
+ node cli.js --help # verify help screen
31
33
  ```
32
34
 
33
- ## Publish
35
+ ## Publish (order matters!)
34
36
 
35
- 9. **Commit all changes:**
36
- ```bash
37
- git add -A && git commit -m "feat: description (vX.Y.Z)"
38
- ```
39
- 10. **Push to GitHub:**
37
+ 10. **Commit all changes (including README, RELEASE.md, etc.):**
38
+ ```bash
39
+ git add -A && git commit -m "feat: description (vX.Y.Z)"
40
+ ```
41
+ 11. **Push to GitHub:**
40
42
  ```bash
41
43
  git push origin master
42
44
  ```
43
- 11. **Publish to npm:**
45
+ 12. **Publish to npm** (README is frozen at this point!):
44
46
  ```bash
45
47
  npm publish
46
48
  ```
47
- 12. **Create annotated tag (triggers GitHub Release via CI):**
49
+ 13. **Create annotated tag** (triggers GitHub Release workflow):
48
50
  ```bash
49
51
  git tag -a vX.Y.Z -m "vX.Y.Z - changelog summary"
50
52
  git push origin vX.Y.Z
51
53
  ```
52
- 13. **Verify GitHub Release** — check that the workflow ran and VSIX is attached
53
- 14. **Verify npm** — `npm info antigravity-autopilot version` shows new version
54
54
 
55
- ## Post-Release
55
+ ## Post-Release Verification
56
56
 
57
- 15. **(Optional) Publish to VS Code Marketplace:**
57
+ 14. **Verify npm:**
58
+ ```bash
59
+ npm info antigravity-autopilot version # should show X.Y.Z
60
+ ```
61
+ 15. **Verify npm README** — visit https://www.npmjs.com/package/antigravity-autopilot
62
+ 16. **Verify GitHub Release** — check that the workflow ran and VSIX is attached
63
+ 17. **(Optional) Publish to VS Code Marketplace:**
58
64
  ```bash
59
65
  npx -y @vscode/vsce publish
60
66
  ```
61
67
 
68
+ ## Version Sync Matrix
69
+
70
+ All of these must show the **same version**:
71
+
72
+ | Location | File | What to update |
73
+ |----------|------|---------------|
74
+ | npm | `package.json` → `version` | Primary source of truth |
75
+ | CLI banner | `cli.js` → `VERSION` constant | Reads from `package.json` automatically |
76
+ | VSIX | Built from `package.json` version | Rebuild after version bump |
77
+ | README | VSIX install command filename | Update `antigravity-autopilot-X.Y.Z.vsix` |
78
+ | GitHub Release | Tag name `vX.Y.Z` | Must match `package.json` version |
79
+
62
80
  ## Common Mistakes to Avoid
63
81
 
64
- - ❌ Forgetting to update README with new features
65
- - ❌ Forgetting to bump version in `package.json`
66
- - ❌ Publishing to npm before pushing to GitHub
67
- - ❌ Not testing double-apply idempotency
82
+ - ❌ Publishing to npm **before** updating README (npm freezes README at publish time)
83
+ - ❌ Forgetting to rebuild VSIX after version bump
84
+ - ❌ Forgetting to update VSIX filename in README
85
+ - ❌ Different versions across npm / VSIX / GitHub tag
68
86
  - ❌ Using wrong branch name (`master` vs `main`)
69
87
  - ❌ Wrong publisher ID in `package.json` for Marketplace
package/cli.js CHANGED
@@ -283,7 +283,7 @@ function analyzeBrowser(content) {
283
283
  const patchCode = `_abp=${useEffectAlias}(()=>{${confirmVar}()},[${confirmVar}]),`;
284
284
  return {
285
285
  target: fullMatch,
286
- replacement: patchCode + fullMatch,
286
+ replacement: fullMatch + ',' + patchCode,
287
287
  patchMarker: `_abp=${useEffectAlias}(()=>{${confirmVar}()}`,
288
288
  };
289
289
  }
@@ -332,7 +332,7 @@ function analyzeFile_(content) {
332
332
  const patchCode = `_afp=${useEffectAlias}(()=>{${senderVar}(!0,${scopeEnum}.CONVERSATION)},[${senderVar}]),`;
333
333
  return {
334
334
  target: fullMatch,
335
- replacement: patchCode + fullMatch,
335
+ replacement: fullMatch + ',' + patchCode,
336
336
  patchMarker: `_afp=${useEffectAlias}(()=>{${senderVar}(!0,${scopeEnum}.CONVERSATION)`,
337
337
  };
338
338
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "antigravity-autopilot",
3
3
  "displayName": "Antigravity AutoPilot",
4
4
  "description": "Enables autopilot mode for Antigravity: automatically executes all tool calls and terminal commands without manual confirmation. Patches the runtime JS bundle to inject auto-accept logic whenever the 'Always Proceed' policy is active — regex-based and version-agnostic.",
5
- "version": "1.4.7",
5
+ "version": "1.4.9",
6
6
  "license": "MIT",
7
7
  "publisher": "nguyenhx2",
8
8
  "bin": {
package/patcher.js CHANGED
@@ -254,7 +254,7 @@ function analyzeBrowserAction(content, label) {
254
254
 
255
255
  return {
256
256
  target: fullMatch,
257
- replacement: patchCode + fullMatch,
257
+ replacement: fullMatch + ',' + patchCode,
258
258
  patchMarker: `_abp=${useEffectAlias}(()=>{${confirmVar}()}`,
259
259
  label
260
260
  };
@@ -337,7 +337,7 @@ function analyzeFilePermission(content, label) {
337
337
 
338
338
  return {
339
339
  target: fullMatch,
340
- replacement: patchCode + fullMatch,
340
+ replacement: fullMatch + ',' + patchCode,
341
341
  patchMarker: `_afp=${useEffectAlias}(()=>{${senderVar}(!0,${scopeEnum}.CONVERSATION)`,
342
342
  label
343
343
  };