@juanbenjumea/pi-agy 0.7.14 → 0.7.15

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.
@@ -26,6 +26,8 @@ export interface AgyStepUpdate {
26
26
  step_type?: string;
27
27
  tool_name?: string;
28
28
  text_delta?: string;
29
+ thinking_delta?: string;
30
+ thought_delta?: string;
29
31
  duration_seconds?: number;
30
32
  usage?: AgyUsage;
31
33
  tool_info?: {
@@ -9,6 +9,7 @@ import {
9
9
  findAgyQuotaEntries,
10
10
  formatAgyUsage,
11
11
  inspectAgyAgents,
12
+ inspectAgyModels,
12
13
  isAgyQuotaExhausted,
13
14
  normalizeAgyAgentName,
14
15
  resolveAgyModelAlias,
@@ -510,6 +511,11 @@ export function registerAgyTools(pi: ExtensionAPI): void {
510
511
  async execute(_toolCallId, params, signal, _onUpdate, ctx) {
511
512
  const cwd = await resolveToolDir(ctx.cwd, params.dir);
512
513
  const quota = await checkAgyUsage(cwd, signal);
514
+ if (params.model) {
515
+ // Alias resolution reads the live catalog only. Discovery failure is not
516
+ // fatal here: the report degrades to "unknown" instead of naming a model.
517
+ await inspectAgyModels(cwd, signal).catch(() => undefined);
518
+ }
513
519
  const selectedModel = params.model ? resolveAgyModelId(params.model) : undefined;
514
520
  const selectedEntries = selectedModel ? findAgyQuotaEntries(quota, selectedModel) : [];
515
521
  const quotaStatus = selectedModel
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juanbenjumea/pi-agy",
3
- "version": "0.7.14",
3
+ "version": "0.7.15",
4
4
  "description": "Antigravity (agy) provider and delegation for Pi — /model picker, background tasks, loopback MCP tool bridge, quota awareness, and repo verification.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -30,8 +30,10 @@
30
30
  "scripts": {
31
31
  "test": "node --import ./tests/resolve-hook.mjs --test tests/*.test.ts",
32
32
  "test:live": "node --import ./tests/resolve-hook.mjs tests/live-smoke.ts",
33
+ "test:provider": "node --import ./tests/resolve-hook.mjs tests/live-provider.ts",
33
34
  "typecheck": "tsc --noEmit --pretty false",
34
- "pack:check": "npm pack --dry-run --json"
35
+ "pack:check": "npm pack --dry-run --json",
36
+ "test:bridge": "node --import ./tests/resolve-hook.mjs tests/live-bridge.ts"
35
37
  },
36
38
  "files": [
37
39
  "LICENSE",