@vgai/sdk 0.5.10 → 0.5.12

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@vgai/sdk",
3
3
  "author": "Volter AI, Inc.",
4
4
  "license": "Apache-2.0",
5
- "version": "0.5.10",
5
+ "version": "0.5.12",
6
6
  "type": "module",
7
7
  "repository": {
8
8
  "type": "git",
@@ -30,7 +30,7 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@modelcontextprotocol/sdk": "^1.30.0",
33
- "@vgai/engine": "0.5.10",
33
+ "@vgai/engine": "0.5.12",
34
34
  "playwright": "^1.58.2",
35
35
  "zod": "^4.3.6"
36
36
  }
@@ -105,6 +105,13 @@ const InspectedSubjectSchema = z.object({
105
105
  id: z.string(),
106
106
  title: z.string(),
107
107
  kindLabel: z.string().optional(),
108
+ note: z
109
+ .string()
110
+ .optional()
111
+ .describe(
112
+ 'The identity row’s own line — for an ingest mount, where the object was CONSTRUCTED ' +
113
+ '(`Source · game.js:271`), or the reason it has no such line.',
114
+ ),
108
115
  hint: z.string().optional().describe('The quiet line a subject with nothing to edit carries.'),
109
116
  presentation: z.object({
110
117
  preferred: z.string().describe('The surface’s presentation affinity: card|column.'),
@@ -123,6 +130,9 @@ const InspectedSubjectSchema = z.object({
123
130
  disabled: z.boolean().optional(),
124
131
  }),
125
132
  ),
133
+ related: z
134
+ .array(z.object({ id: z.string(), title: z.string() }))
135
+ .describe('Agent-visible counterparts of the inspector’s related-document buttons.'),
126
136
  sections: z.array(InspectedSectionSchema),
127
137
  });
128
138
 
@@ -256,9 +256,13 @@ export interface InspectedSubjectInfo {
256
256
  id: string;
257
257
  title: string;
258
258
  kindLabel?: string;
259
+ /** The identity row's own line — for an ingest mount, where the object was
260
+ * CONSTRUCTED (`Source · game.js:271`), or the reason it has no such line. */
261
+ note?: string;
259
262
  hint?: string;
260
263
  presentation: { preferred: string; resolved?: string; surface?: string };
261
264
  quickActions: InspectedActionInfo[];
265
+ related: { id: string; title: string }[];
262
266
  sections: InspectedSectionInfo[];
263
267
  }
264
268
 
@@ -403,9 +407,7 @@ function readRegisteredSessions(): RegistrySessionEntry[] {
403
407
  try {
404
408
  const raw: unknown = JSON.parse(readFileSync(registryFile, 'utf8'));
405
409
  return Array.isArray(raw)
406
- ? raw
407
- .filter(isRegistrySessionEntry)
408
- .filter((s) => pidAlive(s.pid))
410
+ ? raw.filter(isRegistrySessionEntry).filter((s) => pidAlive(s.pid))
409
411
  : [];
410
412
  } catch {
411
413
  return [];
@@ -273,7 +273,7 @@ export function createIngestManifest(
273
273
  roots: [
274
274
  {
275
275
  id: 'game',
276
- adapter: { surface, ingest: { strategy: 'deduped' } },
276
+ adapter: { surface, ingest: {} },
277
277
  entry,
278
278
  },
279
279
  ],
@@ -223,6 +223,8 @@ export type SessionJournalEvent =
223
223
  readonly census: {
224
224
  readonly heapUsedMB: number | null;
225
225
  readonly heapLimitMB: number | null;
226
+ /** Absent on journal lines written before the mount census existed. */
227
+ readonly mountEpochs?: number;
226
228
  readonly canvases: number;
227
229
  readonly canvasMB: number;
228
230
  readonly textures?: number;
@@ -476,6 +478,7 @@ export function formatTabCensus(
476
478
  : `heap ${census.heapUsedMB}MB${census.heapLimitMB === null ? '' : `/${census.heapLimitMB}MB`}`,
477
479
  `canvas ${census.canvasMB}MB in ${census.canvases}`,
478
480
  ];
481
+ if (census.mountEpochs !== undefined) parts.splice(1, 0, `mount epochs ${census.mountEpochs}`);
479
482
  if (census.textures !== undefined) parts.push(`tex ${census.textures}`);
480
483
  if (census.geometries !== undefined) parts.push(`geo ${census.geometries}`);
481
484
  if (census.programs !== undefined) parts.push(`prog ${census.programs}`);