glasspane-mcp 1.20.0 → 1.20.2

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,7 +26,7 @@ export declare const MCP_PROTOCOL_VERSION: "2025-06-18";
26
26
  export declare const SUPPORTED_PROTOCOL_VERSIONS: readonly string[];
27
27
  export declare const SERVER_INFO: {
28
28
  readonly name: "glasspane-mcp";
29
- readonly version: "1.20.0";
29
+ readonly version: "1.20.2";
30
30
  };
31
31
  export declare const PARSE_ERROR = -32700;
32
32
  export declare const INVALID_REQUEST = -32600;
@@ -1520,9 +1520,12 @@ var KernelSchemaError = class extends Error {
1520
1520
  this.issues = issues;
1521
1521
  }
1522
1522
  };
1523
+ function segmentText(segment) {
1524
+ return typeof segment === "symbol" ? segment.description ?? "<symbol>" : String(segment);
1525
+ }
1523
1526
  function schemaErrorFrom(label, error) {
1524
1527
  return new KernelSchemaError(label, error.issues.map((issue) => ({
1525
- path: issue.path.map((segment) => String(segment)).join("."),
1528
+ path: issue.path.map(segmentText).join("."),
1526
1529
  message: issue.message
1527
1530
  })));
1528
1531
  }
@@ -1466,9 +1466,12 @@ var KernelSchemaError = class extends Error {
1466
1466
  this.issues = issues;
1467
1467
  }
1468
1468
  };
1469
+ function segmentText(segment) {
1470
+ return typeof segment === "symbol" ? segment.description ?? "<symbol>" : String(segment);
1471
+ }
1469
1472
  function schemaErrorFrom(label, error) {
1470
1473
  return new KernelSchemaError(label, error.issues.map((issue) => ({
1471
- path: issue.path.map((segment) => String(segment)).join("."),
1474
+ path: issue.path.map(segmentText).join("."),
1472
1475
  message: issue.message
1473
1476
  })));
1474
1477
  }
package/dist/index.js CHANGED
@@ -209,9 +209,12 @@ var KernelSchemaError = class extends Error {
209
209
  this.issues = issues;
210
210
  }
211
211
  };
212
+ function segmentText(segment) {
213
+ return typeof segment === "symbol" ? segment.description ?? "<symbol>" : String(segment);
214
+ }
212
215
  function schemaErrorFrom(label, error) {
213
216
  return new KernelSchemaError(label, error.issues.map((issue) => ({
214
- path: issue.path.map((segment) => String(segment)).join("."),
217
+ path: issue.path.map(segmentText).join("."),
215
218
  message: issue.message
216
219
  })));
217
220
  }
@@ -4699,7 +4702,7 @@ var SUPPORTED_PROTOCOL_VERSIONS = [
4699
4702
  "2025-03-26",
4700
4703
  MCP_PROTOCOL_VERSION
4701
4704
  ];
4702
- var SERVER_INFO = { name: "glasspane-mcp", version: "1.20.0" };
4705
+ var SERVER_INFO = { name: "glasspane-mcp", version: "1.20.2" };
4703
4706
  var PARSE_ERROR = -32700;
4704
4707
  var INVALID_REQUEST = -32600;
4705
4708
  var METHOD_NOT_FOUND = -32601;
@@ -94,15 +94,11 @@ export interface ProjectSetResult extends ProjectEntry {
94
94
  /** Set only when the escape hatch moved an unreadable registry aside. */
95
95
  discardedUnreadableFile?: string;
96
96
  }
97
- export declare const ProjectListArgs: z.ZodObject<{}, "strict", z.ZodTypeAny, {}, {}>;
97
+ export declare const ProjectListArgs: z.ZodObject<{}, z.core.$strict>;
98
98
  export type ProjectListArgs = z.infer<typeof ProjectListArgs>;
99
99
  export declare const ProjectGetArgs: z.ZodObject<{
100
100
  projectId: z.ZodString;
101
- }, "strict", z.ZodTypeAny, {
102
- projectId: string;
103
- }, {
104
- projectId: string;
105
- }>;
101
+ }, z.core.$strict>;
106
102
  export type ProjectGetArgs = z.infer<typeof ProjectGetArgs>;
107
103
  export declare const ProjectSetArgs: z.ZodObject<{
108
104
  projectId: z.ZodOptional<z.ZodString>;
@@ -112,23 +108,7 @@ export declare const ProjectSetArgs: z.ZodObject<{
112
108
  recipeConfigPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
113
109
  calibrationAssetsPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
114
110
  evidenceStoragePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
115
- }, "strict", z.ZodTypeAny, {
116
- displayName: string;
117
- recipeConfigPath?: string | null | undefined;
118
- calibrationAssetsPath?: string | null | undefined;
119
- evidenceStoragePath?: string | null | undefined;
120
- projectId?: string | undefined;
121
- bundleId?: string | null | undefined;
122
- pid?: number | null | undefined;
123
- }, {
124
- displayName: string;
125
- recipeConfigPath?: string | null | undefined;
126
- calibrationAssetsPath?: string | null | undefined;
127
- evidenceStoragePath?: string | null | undefined;
128
- projectId?: string | undefined;
129
- bundleId?: string | null | undefined;
130
- pid?: number | null | undefined;
131
- }>;
111
+ }, z.core.$strict>;
132
112
  export type ProjectSetArgs = z.infer<typeof ProjectSetArgs>;
133
113
  /**
134
114
  * The two readers a damaged registry can be looked at with, named as absolute commands.
@@ -204,9 +204,12 @@ var KernelSchemaError = class extends Error {
204
204
  this.issues = issues;
205
205
  }
206
206
  };
207
+ function segmentText(segment) {
208
+ return typeof segment === "symbol" ? segment.description ?? "<symbol>" : String(segment);
209
+ }
207
210
  function schemaErrorFrom(label, error) {
208
211
  return new KernelSchemaError(label, error.issues.map((issue) => ({
209
- path: issue.path.map((segment) => String(segment)).join("."),
212
+ path: issue.path.map(segmentText).join("."),
210
213
  message: issue.message
211
214
  })));
212
215
  }
@@ -4694,7 +4697,7 @@ var SUPPORTED_PROTOCOL_VERSIONS = [
4694
4697
  "2025-03-26",
4695
4698
  MCP_PROTOCOL_VERSION
4696
4699
  ];
4697
- var SERVER_INFO = { name: "glasspane-mcp", version: "1.20.0" };
4700
+ var SERVER_INFO = { name: "glasspane-mcp", version: "1.20.2" };
4698
4701
  var PARSE_ERROR = -32700;
4699
4702
  var INVALID_REQUEST = -32600;
4700
4703
  var METHOD_NOT_FOUND = -32601;
package/dist/tools.d.ts CHANGED
@@ -12,166 +12,76 @@ import type { EvidencePackReportView } from "./evidence-report.js";
12
12
  * test reads that Swift declaration and fails if the two lists drift.
13
13
  */
14
14
  export declare const RESTORE_MODES: readonly ["compare", "ffwd", "restore_snapshot", "rollback_full"];
15
- export declare const AttachArgs: z.ZodEffects<z.ZodObject<{
15
+ export declare const AttachArgs: z.ZodObject<{
16
16
  bundleId: z.ZodOptional<z.ZodString>;
17
17
  pid: z.ZodOptional<z.ZodNumber>;
18
18
  projectId: z.ZodOptional<z.ZodString>;
19
19
  dimension: z.ZodOptional<z.ZodString>;
20
- }, "strict", z.ZodTypeAny, {
21
- dimension?: string | undefined;
22
- projectId?: string | undefined;
23
- bundleId?: string | undefined;
24
- pid?: number | undefined;
25
- }, {
26
- dimension?: string | undefined;
27
- projectId?: string | undefined;
28
- bundleId?: string | undefined;
29
- pid?: number | undefined;
30
- }>, {
31
- dimension?: string | undefined;
32
- projectId?: string | undefined;
33
- bundleId?: string | undefined;
34
- pid?: number | undefined;
35
- }, {
36
- dimension?: string | undefined;
37
- projectId?: string | undefined;
38
- bundleId?: string | undefined;
39
- pid?: number | undefined;
40
- }>;
20
+ }, z.core.$strict>;
41
21
  export type AttachArgs = z.infer<typeof AttachArgs>;
42
22
  export declare const ObserveArgs: z.ZodObject<{
43
23
  maxDepth: z.ZodOptional<z.ZodNumber>;
44
24
  role: z.ZodOptional<z.ZodString>;
45
25
  dimension: z.ZodOptional<z.ZodString>;
46
- }, "strict", z.ZodTypeAny, {
47
- dimension?: string | undefined;
48
- role?: string | undefined;
49
- maxDepth?: number | undefined;
50
- }, {
51
- dimension?: string | undefined;
52
- role?: string | undefined;
53
- maxDepth?: number | undefined;
54
- }>;
26
+ }, z.core.$strict>;
55
27
  export type ObserveArgs = z.infer<typeof ObserveArgs>;
56
28
  export declare const CaptureViewArgs: z.ZodObject<{
57
29
  scale: z.ZodOptional<z.ZodNumber>;
58
- }, "strict", z.ZodTypeAny, {
59
- scale?: number | undefined;
60
- }, {
61
- scale?: number | undefined;
62
- }>;
30
+ }, z.core.$strict>;
63
31
  export type CaptureViewArgs = z.infer<typeof CaptureViewArgs>;
64
32
  export declare const AuditUiArgs: z.ZodObject<{
65
33
  maxDepth: z.ZodOptional<z.ZodNumber>;
66
34
  minHitTargetPt: z.ZodOptional<z.ZodNumber>;
67
- }, "strict", z.ZodTypeAny, {
68
- maxDepth?: number | undefined;
69
- minHitTargetPt?: number | undefined;
70
- }, {
71
- maxDepth?: number | undefined;
72
- minHitTargetPt?: number | undefined;
73
- }>;
35
+ }, z.core.$strict>;
74
36
  export type AuditUiArgs = z.infer<typeof AuditUiArgs>;
75
37
  export declare const ActArgs: z.ZodObject<{
76
38
  selector: z.ZodObject<{
77
39
  role: z.ZodString;
78
40
  title: z.ZodOptional<z.ZodString>;
79
41
  identifier: z.ZodOptional<z.ZodString>;
80
- }, "strict", z.ZodTypeAny, {
81
- role: string;
82
- title?: string | undefined;
83
- identifier?: string | undefined;
84
- }, {
85
- role: string;
86
- title?: string | undefined;
87
- identifier?: string | undefined;
42
+ }, z.core.$strict>;
43
+ action: z.ZodEnum<{
44
+ press: "press";
45
+ increment: "increment";
46
+ decrement: "decrement";
47
+ showMenu: "showMenu";
48
+ confirm: "confirm";
49
+ cancel: "cancel";
50
+ pick: "pick";
88
51
  }>;
89
- action: z.ZodEnum<["press", "increment", "decrement", "showMenu", "confirm", "cancel", "pick"]>;
90
52
  degrade: z.ZodOptional<z.ZodBoolean>;
91
53
  dimension: z.ZodOptional<z.ZodString>;
92
- }, "strict", z.ZodTypeAny, {
93
- selector: {
94
- role: string;
95
- title?: string | undefined;
96
- identifier?: string | undefined;
97
- };
98
- action: "pick" | "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel";
99
- dimension?: string | undefined;
100
- degrade?: boolean | undefined;
101
- }, {
102
- selector: {
103
- role: string;
104
- title?: string | undefined;
105
- identifier?: string | undefined;
106
- };
107
- action: "pick" | "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel";
108
- dimension?: string | undefined;
109
- degrade?: boolean | undefined;
110
- }>;
54
+ }, z.core.$strict>;
111
55
  export type ActArgs = z.infer<typeof ActArgs>;
112
56
  export declare const AssertElementArgs: z.ZodObject<{
113
57
  selector: z.ZodObject<{
114
58
  role: z.ZodString;
115
59
  title: z.ZodOptional<z.ZodString>;
116
60
  identifier: z.ZodOptional<z.ZodString>;
117
- }, "strict", z.ZodTypeAny, {
118
- role: string;
119
- title?: string | undefined;
120
- identifier?: string | undefined;
121
- }, {
122
- role: string;
123
- title?: string | undefined;
124
- identifier?: string | undefined;
61
+ }, z.core.$strict>;
62
+ property: z.ZodEnum<{
63
+ value: "value";
64
+ role: "role";
65
+ title: "title";
66
+ enabled: "enabled";
67
+ focused: "focused";
125
68
  }>;
126
- property: z.ZodEnum<["title", "value", "role", "enabled", "focused"]>;
127
- expected: z.ZodUnion<[z.ZodString, z.ZodBoolean]>;
128
- }, "strict", z.ZodTypeAny, {
129
- expected: string | boolean;
130
- selector: {
131
- role: string;
132
- title?: string | undefined;
133
- identifier?: string | undefined;
134
- };
135
- property: "value" | "role" | "title" | "enabled" | "focused";
136
- }, {
137
- expected: string | boolean;
138
- selector: {
139
- role: string;
140
- title?: string | undefined;
141
- identifier?: string | undefined;
142
- };
143
- property: "value" | "role" | "title" | "enabled" | "focused";
144
- }>;
69
+ expected: z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>;
70
+ }, z.core.$strict>;
145
71
  export type AssertElementArgs = z.infer<typeof AssertElementArgs>;
146
72
  export declare const DiagnoseArgs: z.ZodObject<{
147
73
  operationId: z.ZodOptional<z.ZodString>;
148
74
  dimension: z.ZodOptional<z.ZodString>;
149
- }, "strict", z.ZodTypeAny, {
150
- operationId?: string | undefined;
151
- dimension?: string | undefined;
152
- }, {
153
- operationId?: string | undefined;
154
- dimension?: string | undefined;
155
- }>;
75
+ }, z.core.$strict>;
156
76
  export type DiagnoseArgs = z.infer<typeof DiagnoseArgs>;
157
77
  export declare const LastEvidenceArgs: z.ZodObject<{
158
78
  operationId: z.ZodOptional<z.ZodString>;
159
79
  dimension: z.ZodOptional<z.ZodString>;
160
- }, "strict", z.ZodTypeAny, {
161
- operationId?: string | undefined;
162
- dimension?: string | undefined;
163
- }, {
164
- operationId?: string | undefined;
165
- dimension?: string | undefined;
166
- }>;
80
+ }, z.core.$strict>;
167
81
  export type LastEvidenceArgs = z.infer<typeof LastEvidenceArgs>;
168
82
  export declare const SnapshotArgs: z.ZodObject<{
169
83
  maxDepth: z.ZodOptional<z.ZodNumber>;
170
- }, "strict", z.ZodTypeAny, {
171
- maxDepth?: number | undefined;
172
- }, {
173
- maxDepth?: number | undefined;
174
- }>;
84
+ }, z.core.$strict>;
175
85
  export type SnapshotArgs = z.infer<typeof SnapshotArgs>;
176
86
  export declare const RestoreArgs: z.ZodObject<{
177
87
  snapshotId: z.ZodString;
@@ -180,80 +90,43 @@ export declare const RestoreArgs: z.ZodObject<{
180
90
  role: z.ZodString;
181
91
  title: z.ZodOptional<z.ZodString>;
182
92
  identifier: z.ZodOptional<z.ZodString>;
183
- }, "strict", z.ZodTypeAny, {
184
- role: string;
185
- title?: string | undefined;
186
- identifier?: string | undefined;
187
- }, {
188
- role: string;
189
- title?: string | undefined;
190
- identifier?: string | undefined;
93
+ }, z.core.$strict>;
94
+ action: z.ZodEnum<{
95
+ press: "press";
96
+ increment: "increment";
97
+ decrement: "decrement";
98
+ showMenu: "showMenu";
99
+ confirm: "confirm";
100
+ cancel: "cancel";
101
+ pick: "pick";
191
102
  }>;
192
- action: z.ZodEnum<["press", "increment", "decrement", "showMenu", "confirm", "cancel", "pick"]>;
193
- }, "strict", z.ZodTypeAny, {
194
- selector: {
195
- role: string;
196
- title?: string | undefined;
197
- identifier?: string | undefined;
198
- };
199
- action: "pick" | "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel";
200
- }, {
201
- selector: {
202
- role: string;
203
- title?: string | undefined;
204
- identifier?: string | undefined;
205
- };
206
- action: "pick" | "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel";
207
- }>, "many">>;
208
- mode: z.ZodOptional<z.ZodEnum<["compare", "ffwd", "restore_snapshot", "rollback_full"]>>;
209
- }, "strict", z.ZodTypeAny, {
210
- snapshotId: string;
211
- steps?: {
212
- selector: {
213
- role: string;
214
- title?: string | undefined;
215
- identifier?: string | undefined;
216
- };
217
- action: "pick" | "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel";
218
- }[] | undefined;
219
- mode?: "compare" | "ffwd" | "restore_snapshot" | "rollback_full" | undefined;
220
- }, {
221
- snapshotId: string;
222
- steps?: {
223
- selector: {
224
- role: string;
225
- title?: string | undefined;
226
- identifier?: string | undefined;
227
- };
228
- action: "pick" | "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel";
229
- }[] | undefined;
230
- mode?: "compare" | "ffwd" | "restore_snapshot" | "rollback_full" | undefined;
231
- }>;
103
+ }, z.core.$strict>>>;
104
+ mode: z.ZodOptional<z.ZodEnum<{
105
+ compare: "compare";
106
+ ffwd: "ffwd";
107
+ restore_snapshot: "restore_snapshot";
108
+ rollback_full: "rollback_full";
109
+ }>>;
110
+ }, z.core.$strict>;
232
111
  export type RestoreArgs = z.infer<typeof RestoreArgs>;
233
112
  /** P6 §5.4: probe connectivity query takes no arguments. */
234
- export declare const ProbeStatusArgs: z.ZodObject<{}, "strict", z.ZodTypeAny, {}, {}>;
113
+ export declare const ProbeStatusArgs: z.ZodObject<{}, z.core.$strict>;
235
114
  export type ProbeStatusArgs = z.infer<typeof ProbeStatusArgs>;
236
115
  export declare const ExportEvidenceArgs: z.ZodObject<{
237
116
  operationId: z.ZodString;
238
- format: z.ZodDefault<z.ZodEnum<["html", "markdown"]>>;
239
- }, "strict", z.ZodTypeAny, {
240
- operationId: string;
241
- format: "html" | "markdown";
242
- }, {
243
- operationId: string;
244
- format?: "html" | "markdown" | undefined;
245
- }>;
117
+ format: z.ZodDefault<z.ZodEnum<{
118
+ html: "html";
119
+ markdown: "markdown";
120
+ }>>;
121
+ }, z.core.$strict>;
246
122
  export type ExportEvidenceArgs = z.infer<typeof ExportEvidenceArgs>;
247
123
  export declare const RecentReportsArgs: z.ZodObject<{
248
124
  limit: z.ZodDefault<z.ZodNumber>;
249
- format: z.ZodDefault<z.ZodEnum<["html", "markdown"]>>;
250
- }, "strict", z.ZodTypeAny, {
251
- format: "html" | "markdown";
252
- limit: number;
253
- }, {
254
- format?: "html" | "markdown" | undefined;
255
- limit?: number | undefined;
256
- }>;
125
+ format: z.ZodDefault<z.ZodEnum<{
126
+ html: "html";
127
+ markdown: "markdown";
128
+ }>>;
129
+ }, z.core.$strict>;
257
130
  export type RecentReportsArgs = z.infer<typeof RecentReportsArgs>;
258
131
  export interface ToolSpec {
259
132
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glasspane-mcp",
3
- "version": "1.20.0",
3
+ "version": "1.20.2",
4
4
  "description": "GlassPane MCP stdio shell: JSON-RPC 2.0 over stdio bridging an AI agent to the glasspane engine daemon",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -58,12 +58,12 @@
58
58
  "ai-agents"
59
59
  ],
60
60
  "dependencies": {
61
- "zod": "3.25.76"
61
+ "zod": "4.6.7"
62
62
  },
63
63
  "devDependencies": {
64
64
  "@types/node": "26.5.1",
65
65
  "esbuild": "^0.28.2",
66
- "iterate-kernel": "0.1.9",
66
+ "iterate-kernel": "0.1.10",
67
67
  "typescript": "5.9.3"
68
68
  }
69
69
  }