@ory/antigravity 1.2.3 → 1.3.0

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.
package/README.md CHANGED
@@ -135,7 +135,7 @@ npx -y -p @ory/antigravity ory-agy configure \
135
135
 
136
136
  **Ory Network or OEL.** Either works. For an Ory Network project the URL is `https://<slug>.projects.oryapis.com`; for a self-hosted **Ory Enterprise License** deployment, point `--project-url` at that deployment's base URL and use the sign-in client id from its Agent Security configuration. Everything downstream — sign-in, checks, delegation — is identical.
137
137
 
138
- **There is nothing else for you to create.** The sign-in client, permission model, native-tool blocks, MCP grants, and observe/enforce posture are provisioned in the Console by someone with project access. At runtime the plugin only *reads* permissions, so installing it needs no workspace privilege. Each Antigravity session registers its own identity automatically on first use.
138
+ **There is nothing else for you to create.** The sign-in client, permission model, native-tool blocks, MCP grants, and observe/enforce posture are provisioned in the Console by someone with project access. At session start the plugin loads or enrolls Antigravity's Talos runtime credential in the OS credential store; tool paths only read it. Installing needs no workspace privilege.
139
139
 
140
140
  Sign-in runs at the start of every session and never blocks — a declined, skipped, or timed-out login simply leaves that session without a user identity.
141
141
 
@@ -148,7 +148,7 @@ ory-agy install | uninstall Install (add --project-url to also connect
148
148
  ory-agy status Show configuration, identities, native tool access, recent activity
149
149
  ory-agy permissions <cmd> status (read-only; blocks + posture live in the Ory Console)
150
150
  ory-agy configure <flags> Connect a project (--project-url) or --disconnect
151
- ory-agy agent <status|unregister> Manage the agent's own auto-created identity
151
+ ory-agy agent <status|unregister> Inspect runtime status / clear legacy OAuth state
152
152
  ory-agy local <up|down|status|…> Run / manage a local Ory in Docker
153
153
  ory-agy version Print plugin, core, and Node versions (--json for machine-readable)
154
154
  ory-agy-setup Install into .agents/ directly (no agy binary)
@@ -159,7 +159,7 @@ All prefixed with `npx -y -p @ory/antigravity`.
159
159
  ## Troubleshooting
160
160
 
161
161
  - **`/ory:local-up` fails** — make sure Docker is running and ports `4000`, `4455`, and `16686` are free.
162
- - **Browser sign-in loops** (after connecting) — reset with `ory-agy agent unregister` and try again.
162
+ - **Browser sign-in loops** (after connecting) — confirm the reserved login client has all four documented loopback redirect URIs; `agent unregister` only clears legacy agent OAuth state.
163
163
  - **Running an older CLI than expected** — `npx -p @ory/antigravity` (no version pin) reuses a previously-downloaded copy instead of re-resolving to the latest. The install banner prints the running version; confirm it with `npx -y -p @ory/antigravity ory-agy version`. To force the current release, clear the cache and reinstall: `rm -rf ~/.npm/_npx` then `npx -y -p @ory/antigravity ory-agy install`. Pinning an exact version (`@ory/antigravity@<version>`) also bypasses the cached copy.
164
164
  - **A tool was unexpectedly blocked** — because Antigravity blocks by default, first confirm the hook is answering: set `ORY_AGENT_DEBUG=true` and check the logs for hook errors. Then verify the user has `use` on the tool with `permissions`.
165
165
 
package/dist/cli/main.js CHANGED
@@ -81,11 +81,11 @@ function main() {
81
81
  });
82
82
  break;
83
83
  case "uninstall":
84
- uninstall(args);
84
+ const antigravityUninstalled = uninstall(args);
85
85
  (0, argus_1.clearCredentialsForUninstall)({
86
86
  harness: "antigravity",
87
87
  purge: args.includes("--purge"),
88
- }).then(() => process.exit(0), (err) => {
88
+ }).then(() => process.exit(antigravityUninstalled ? 0 : 1), (err) => {
89
89
  console.error(err.message ?? err);
90
90
  process.exit(1);
91
91
  });
@@ -176,18 +176,21 @@ function install(args) {
176
176
  manualSetup(args);
177
177
  }
178
178
  function uninstall(args) {
179
+ let nativeUninstalled = true;
179
180
  if (agyAvailable()) {
180
181
  console.log("Uninstalling Ory plugin from Antigravity...");
181
182
  const result = (0, node_child_process_1.spawnSync)(AGY, ["plugin", "uninstall", "ory"], {
182
183
  stdio: "inherit",
183
184
  shell: SPAWN_VIA_SHELL,
184
185
  });
185
- if (result.status === 0)
186
- return;
187
- console.error("`agy plugin uninstall` failed. Falling back to manual removal...");
186
+ if (result.status !== 0) {
187
+ nativeUninstalled = false;
188
+ console.error("`agy plugin uninstall` failed. Continuing with manual cleanup...");
189
+ }
188
190
  }
189
191
  process.argv = ["node", "setup.js", "--uninstall", ...args];
190
192
  require("./setup.js");
193
+ return nativeUninstalled;
191
194
  }
192
195
  function manualSetup(args) {
193
196
  process.argv = ["node", "setup.js", ...args];
@@ -223,7 +226,7 @@ Commands:
223
226
  install Install the Ory plugin into Antigravity (agy plugin install)
224
227
  uninstall Remove the Ory plugin from Antigravity
225
228
  configure Set or view Ory project URL and credentials
226
- agent <cmd> Manage the agent's OAuth2 (DCR) identity (status, unregister)
229
+ agent <cmd> Inspect runtime status or clear legacy OAuth state
227
230
  permissions Show live mode and native allowed/blocked state
228
231
  setup [--project-dir] Write the plugin bundle into .agents directly (fallback)
229
232
  status Show plugin status and configuration
package/dist/cli/setup.js CHANGED
@@ -68,12 +68,13 @@ function main() {
68
68
  return;
69
69
  }
70
70
  if (args.uninstall) {
71
- if (!fs.existsSync(agentsDir)) {
72
- console.log("No .agents directory found. Nothing to uninstall.");
73
- return;
71
+ if (fs.existsSync(agentsDir)) {
72
+ (0, assets_js_1.uninstallAntigravityOryAssets)(agentsDir);
73
+ console.log(`Removed Ory plugin bundle from ${agentsDir}`);
74
+ }
75
+ else {
76
+ console.log("No .agents directory found. Skipping manual bundle cleanup.");
74
77
  }
75
- (0, assets_js_1.uninstallAntigravityOryAssets)(agentsDir);
76
- console.log(`Removed Ory plugin bundle from ${agentsDir}`);
77
78
  (0, argus_1.removeRuntimeWiring)("antigravity");
78
79
  for (const pruned of (0, argus_1.pruneRuntimeStores)()) {
79
80
  console.log(` Removed runtime: ${pruned}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ory/antigravity",
3
- "version": "1.2.3",
3
+ "version": "1.3.0",
4
4
  "description": "Ory plugin for Google Antigravity: scaffolding skills, a local Ory instance, and authentication, authorization, and audit for every tool call",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://github.com/ory/ory-agent-plugins/tree/main/packages/antigravity",
@@ -75,11 +75,10 @@
75
75
  ],
76
76
  "dependencies": {
77
77
  "reova": "^0.7.0",
78
- "@ory/argus": "1.2.3"
78
+ "@ory/argus": "1.3.0"
79
79
  },
80
80
  "devDependencies": {
81
- "typescript": "^6.0.2",
82
- "vitest": "4.1.4"
81
+ "typescript": "^6.0.2"
83
82
  },
84
83
  "engines": {
85
84
  "node": ">=22"