antigravity-autopilot 1.4.8 → 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.
Files changed (3) hide show
  1. package/cli.js +2 -2
  2. package/package.json +1 -1
  3. package/patcher.js +2 -2
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.8",
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
  };