@tienne/gestalt 0.77.1 → 0.78.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.
Files changed (40) hide show
  1. package/dist/package.json +1 -1
  2. package/dist/plugin/skills/_shared/proactive-routing.md +39 -2
  3. package/dist/plugin/skills/_shared/rule-sources.md +262 -0
  4. package/dist/plugin/skills/execute/SKILL.md +81 -1
  5. package/dist/plugin/skills/interview/SKILL.md +53 -0
  6. package/dist/plugin/skills/review/SKILL.md +14 -1
  7. package/dist/plugin/skills/solve/SKILL.md +34 -1
  8. package/dist/plugin/skills/spec/SKILL.md +36 -0
  9. package/dist/schemas/gestalt.schema.json +65 -0
  10. package/dist/src/core/config.d.ts +156 -2
  11. package/dist/src/core/config.d.ts.map +1 -1
  12. package/dist/src/core/config.js +454 -10
  13. package/dist/src/core/config.js.map +1 -1
  14. package/dist/src/mcp/input-guard.d.ts +90 -0
  15. package/dist/src/mcp/input-guard.d.ts.map +1 -0
  16. package/dist/src/mcp/input-guard.js +531 -0
  17. package/dist/src/mcp/input-guard.js.map +1 -0
  18. package/dist/src/mcp/schemas.d.ts +70 -70
  19. package/dist/src/mcp/schemas.d.ts.map +1 -1
  20. package/dist/src/mcp/schemas.js +31 -22
  21. package/dist/src/mcp/schemas.js.map +1 -1
  22. package/dist/src/mcp/server.d.ts.map +1 -1
  23. package/dist/src/mcp/server.js +32 -23
  24. package/dist/src/mcp/server.js.map +1 -1
  25. package/dist/src/mcp/tools/status.d.ts +14 -2
  26. package/dist/src/mcp/tools/status.d.ts.map +1 -1
  27. package/dist/src/mcp/tools/status.js +41 -8
  28. package/dist/src/mcp/tools/status.js.map +1 -1
  29. package/package.json +1 -1
  30. package/plugin/.codex-plugin/plugin.json +1 -1
  31. package/plugin/.mcp.json +1 -1
  32. package/plugin/mcp.json +1 -1
  33. package/plugin/skills/_shared/proactive-routing.md +39 -2
  34. package/plugin/skills/_shared/rule-sources.md +262 -0
  35. package/plugin/skills/execute/SKILL.md +81 -1
  36. package/plugin/skills/interview/SKILL.md +53 -0
  37. package/plugin/skills/review/SKILL.md +14 -1
  38. package/plugin/skills/solve/SKILL.md +34 -1
  39. package/plugin/skills/spec/SKILL.md +36 -0
  40. package/schemas/gestalt.schema.json +65 -0
@@ -807,20 +807,20 @@ export declare const executeInputSchema: z.ZodObject<{
807
807
  }>, "many">;
808
808
  }, "strip", z.ZodTypeAny, {
809
809
  consensus: string;
810
+ conflictResolutions: string[];
810
811
  perspectives: {
811
812
  confidence: number;
812
813
  agentName: string;
813
814
  perspective: string;
814
815
  }[];
815
- conflictResolutions: string[];
816
816
  }, {
817
817
  consensus: string;
818
+ conflictResolutions: string[];
818
819
  perspectives: {
819
820
  confidence: number;
820
821
  agentName: string;
821
822
  perspective: string;
822
823
  }[];
823
- conflictResolutions: string[];
824
824
  }>>;
825
825
  lateralResult: z.ZodOptional<z.ZodObject<{
826
826
  persona: z.ZodEnum<["multistability", "simplicity", "reification", "invariance"]>;
@@ -993,17 +993,17 @@ export declare const executeInputSchema: z.ZodObject<{
993
993
  }, "strip", z.ZodTypeAny, {
994
994
  message: string;
995
995
  id: string;
996
+ file: string;
996
997
  severity: "critical" | "high" | "warning";
997
998
  category: string;
998
- file: string;
999
999
  suggestion: string;
1000
1000
  line?: number | undefined;
1001
1001
  }, {
1002
1002
  message: string;
1003
1003
  id: string;
1004
+ file: string;
1004
1005
  severity: "critical" | "high" | "warning";
1005
1006
  category: string;
1006
- file: string;
1007
1007
  suggestion: string;
1008
1008
  line?: number | undefined;
1009
1009
  }>, "many">;
@@ -1013,9 +1013,9 @@ export declare const executeInputSchema: z.ZodObject<{
1013
1013
  issues: {
1014
1014
  message: string;
1015
1015
  id: string;
1016
+ file: string;
1016
1017
  severity: "critical" | "high" | "warning";
1017
1018
  category: string;
1018
- file: string;
1019
1019
  suggestion: string;
1020
1020
  line?: number | undefined;
1021
1021
  }[];
@@ -1025,9 +1025,9 @@ export declare const executeInputSchema: z.ZodObject<{
1025
1025
  issues: {
1026
1026
  message: string;
1027
1027
  id: string;
1028
+ file: string;
1028
1029
  severity: "critical" | "high" | "warning";
1029
1030
  category: string;
1030
- file: string;
1031
1031
  suggestion: string;
1032
1032
  line?: number | undefined;
1033
1033
  }[];
@@ -1047,18 +1047,18 @@ export declare const executeInputSchema: z.ZodObject<{
1047
1047
  }, "strip", z.ZodTypeAny, {
1048
1048
  message: string;
1049
1049
  id: string;
1050
+ file: string;
1050
1051
  severity: "critical" | "high" | "warning";
1051
1052
  category: string;
1052
- file: string;
1053
1053
  suggestion: string;
1054
1054
  reportedBy: string;
1055
1055
  line?: number | undefined;
1056
1056
  }, {
1057
1057
  message: string;
1058
1058
  id: string;
1059
+ file: string;
1059
1060
  severity: "critical" | "high" | "warning";
1060
1061
  category: string;
1061
- file: string;
1062
1062
  suggestion: string;
1063
1063
  reportedBy: string;
1064
1064
  line?: number | undefined;
@@ -1072,9 +1072,9 @@ export declare const executeInputSchema: z.ZodObject<{
1072
1072
  mergedIssues: {
1073
1073
  message: string;
1074
1074
  id: string;
1075
+ file: string;
1075
1076
  severity: "critical" | "high" | "warning";
1076
1077
  category: string;
1077
- file: string;
1078
1078
  suggestion: string;
1079
1079
  reportedBy: string;
1080
1080
  line?: number | undefined;
@@ -1087,9 +1087,9 @@ export declare const executeInputSchema: z.ZodObject<{
1087
1087
  mergedIssues: {
1088
1088
  message: string;
1089
1089
  id: string;
1090
+ file: string;
1090
1091
  severity: "critical" | "high" | "warning";
1091
1092
  category: string;
1092
- file: string;
1093
1093
  suggestion: string;
1094
1094
  reportedBy: string;
1095
1095
  line?: number | undefined;
@@ -1171,16 +1171,37 @@ export declare const executeInputSchema: z.ZodObject<{
1171
1171
  } | undefined;
1172
1172
  consensus?: {
1173
1173
  consensus: string;
1174
+ conflictResolutions: string[];
1174
1175
  perspectives: {
1175
1176
  confidence: number;
1176
1177
  agentName: string;
1177
1178
  perspective: string;
1178
1179
  }[];
1179
- conflictResolutions: string[];
1180
1180
  } | undefined;
1181
1181
  client?: "claude-code" | "codex" | "both" | "grok" | undefined;
1182
1182
  sessionId?: string | undefined;
1183
1183
  cwd?: string | undefined;
1184
+ perspectives?: {
1185
+ confidence: number;
1186
+ agentName: string;
1187
+ perspective: string;
1188
+ }[] | undefined;
1189
+ specPatch?: {
1190
+ constraints?: string[] | undefined;
1191
+ acceptanceCriteria?: string[] | undefined;
1192
+ ontologySchema?: {
1193
+ entities?: {
1194
+ name: string;
1195
+ description: string;
1196
+ attributes: string[];
1197
+ }[] | undefined;
1198
+ relations?: {
1199
+ type: string;
1200
+ from: string;
1201
+ to: string;
1202
+ }[] | undefined;
1203
+ } | undefined;
1204
+ } | undefined;
1184
1205
  changedFiles?: string[] | undefined;
1185
1206
  repoRoot?: string | undefined;
1186
1207
  codeGraphRepoRoot?: string | undefined;
@@ -1253,22 +1274,6 @@ export declare const executeInputSchema: z.ZodObject<{
1253
1274
  errorOutput: string;
1254
1275
  fixDescription: string;
1255
1276
  }[] | undefined;
1256
- specPatch?: {
1257
- constraints?: string[] | undefined;
1258
- acceptanceCriteria?: string[] | undefined;
1259
- ontologySchema?: {
1260
- entities?: {
1261
- name: string;
1262
- description: string;
1263
- attributes: string[];
1264
- }[] | undefined;
1265
- relations?: {
1266
- type: string;
1267
- from: string;
1268
- to: string;
1269
- }[] | undefined;
1270
- } | undefined;
1271
- } | undefined;
1272
1277
  reExecuteTaskResult?: {
1273
1278
  status: "in_progress" | "completed" | "failed" | "pending" | "skipped";
1274
1279
  taskId: string;
@@ -1282,11 +1287,6 @@ export declare const executeInputSchema: z.ZodObject<{
1282
1287
  agentName: string;
1283
1288
  relevanceScore: number;
1284
1289
  }[] | undefined;
1285
- perspectives?: {
1286
- confidence: number;
1287
- agentName: string;
1288
- perspective: string;
1289
- }[] | undefined;
1290
1290
  lateralResult?: {
1291
1291
  persona: "multistability" | "simplicity" | "reification" | "invariance";
1292
1292
  description: string;
@@ -1325,9 +1325,9 @@ export declare const executeInputSchema: z.ZodObject<{
1325
1325
  issues: {
1326
1326
  message: string;
1327
1327
  id: string;
1328
+ file: string;
1328
1329
  severity: "critical" | "high" | "warning";
1329
1330
  category: string;
1330
- file: string;
1331
1331
  suggestion: string;
1332
1332
  line?: number | undefined;
1333
1333
  }[];
@@ -1339,9 +1339,9 @@ export declare const executeInputSchema: z.ZodObject<{
1339
1339
  mergedIssues: {
1340
1340
  message: string;
1341
1341
  id: string;
1342
+ file: string;
1342
1343
  severity: "critical" | "high" | "warning";
1343
1344
  category: string;
1344
- file: string;
1345
1345
  suggestion: string;
1346
1346
  reportedBy: string;
1347
1347
  line?: number | undefined;
@@ -1396,17 +1396,38 @@ export declare const executeInputSchema: z.ZodObject<{
1396
1396
  } | undefined;
1397
1397
  consensus?: {
1398
1398
  consensus: string;
1399
+ conflictResolutions: string[];
1399
1400
  perspectives: {
1400
1401
  confidence: number;
1401
1402
  agentName: string;
1402
1403
  perspective: string;
1403
1404
  }[];
1404
- conflictResolutions: string[];
1405
1405
  } | undefined;
1406
1406
  client?: "claude-code" | "codex" | "both" | "grok" | undefined;
1407
1407
  sessionId?: string | undefined;
1408
1408
  cwd?: string | undefined;
1409
1409
  verbose?: boolean | undefined;
1410
+ perspectives?: {
1411
+ confidence: number;
1412
+ agentName: string;
1413
+ perspective: string;
1414
+ }[] | undefined;
1415
+ specPatch?: {
1416
+ constraints?: string[] | undefined;
1417
+ acceptanceCriteria?: string[] | undefined;
1418
+ ontologySchema?: {
1419
+ entities?: {
1420
+ name: string;
1421
+ description: string;
1422
+ attributes: string[];
1423
+ }[] | undefined;
1424
+ relations?: {
1425
+ type: string;
1426
+ from: string;
1427
+ to: string;
1428
+ }[] | undefined;
1429
+ } | undefined;
1430
+ } | undefined;
1410
1431
  changedFiles?: string[] | undefined;
1411
1432
  repoRoot?: string | undefined;
1412
1433
  codeGraphRepoRoot?: string | undefined;
@@ -1479,22 +1500,6 @@ export declare const executeInputSchema: z.ZodObject<{
1479
1500
  errorOutput: string;
1480
1501
  fixDescription: string;
1481
1502
  }[] | undefined;
1482
- specPatch?: {
1483
- constraints?: string[] | undefined;
1484
- acceptanceCriteria?: string[] | undefined;
1485
- ontologySchema?: {
1486
- entities?: {
1487
- name: string;
1488
- description: string;
1489
- attributes: string[];
1490
- }[] | undefined;
1491
- relations?: {
1492
- type: string;
1493
- from: string;
1494
- to: string;
1495
- }[] | undefined;
1496
- } | undefined;
1497
- } | undefined;
1498
1503
  reExecuteTaskResult?: {
1499
1504
  status: "in_progress" | "completed" | "failed" | "pending" | "skipped";
1500
1505
  taskId: string;
@@ -1508,11 +1513,6 @@ export declare const executeInputSchema: z.ZodObject<{
1508
1513
  agentName: string;
1509
1514
  relevanceScore: number;
1510
1515
  }[] | undefined;
1511
- perspectives?: {
1512
- confidence: number;
1513
- agentName: string;
1514
- perspective: string;
1515
- }[] | undefined;
1516
1516
  lateralResult?: {
1517
1517
  persona: "multistability" | "simplicity" | "reification" | "invariance";
1518
1518
  description: string;
@@ -1551,9 +1551,9 @@ export declare const executeInputSchema: z.ZodObject<{
1551
1551
  issues: {
1552
1552
  message: string;
1553
1553
  id: string;
1554
+ file: string;
1554
1555
  severity: "critical" | "high" | "warning";
1555
1556
  category: string;
1556
- file: string;
1557
1557
  suggestion: string;
1558
1558
  line?: number | undefined;
1559
1559
  }[];
@@ -1565,9 +1565,9 @@ export declare const executeInputSchema: z.ZodObject<{
1565
1565
  mergedIssues: {
1566
1566
  message: string;
1567
1567
  id: string;
1568
+ file: string;
1568
1569
  severity: "critical" | "high" | "warning";
1569
1570
  category: string;
1570
- file: string;
1571
1571
  suggestion: string;
1572
1572
  reportedBy: string;
1573
1573
  line?: number | undefined;
@@ -2161,20 +2161,20 @@ export declare const executeToolSchema: {
2161
2161
  }>, "many">;
2162
2162
  }, "strip", z.ZodTypeAny, {
2163
2163
  consensus: string;
2164
+ conflictResolutions: string[];
2164
2165
  perspectives: {
2165
2166
  confidence: number;
2166
2167
  agentName: string;
2167
2168
  perspective: string;
2168
2169
  }[];
2169
- conflictResolutions: string[];
2170
2170
  }, {
2171
2171
  consensus: string;
2172
+ conflictResolutions: string[];
2172
2173
  perspectives: {
2173
2174
  confidence: number;
2174
2175
  agentName: string;
2175
2176
  perspective: string;
2176
2177
  }[];
2177
- conflictResolutions: string[];
2178
2178
  }>>;
2179
2179
  lateralResult: z.ZodOptional<z.ZodObject<{
2180
2180
  persona: z.ZodEnum<["multistability", "simplicity", "reification", "invariance"]>;
@@ -2347,17 +2347,17 @@ export declare const executeToolSchema: {
2347
2347
  }, "strip", z.ZodTypeAny, {
2348
2348
  message: string;
2349
2349
  id: string;
2350
+ file: string;
2350
2351
  severity: "critical" | "high" | "warning";
2351
2352
  category: string;
2352
- file: string;
2353
2353
  suggestion: string;
2354
2354
  line?: number | undefined;
2355
2355
  }, {
2356
2356
  message: string;
2357
2357
  id: string;
2358
+ file: string;
2358
2359
  severity: "critical" | "high" | "warning";
2359
2360
  category: string;
2360
- file: string;
2361
2361
  suggestion: string;
2362
2362
  line?: number | undefined;
2363
2363
  }>, "many">;
@@ -2367,9 +2367,9 @@ export declare const executeToolSchema: {
2367
2367
  issues: {
2368
2368
  message: string;
2369
2369
  id: string;
2370
+ file: string;
2370
2371
  severity: "critical" | "high" | "warning";
2371
2372
  category: string;
2372
- file: string;
2373
2373
  suggestion: string;
2374
2374
  line?: number | undefined;
2375
2375
  }[];
@@ -2379,9 +2379,9 @@ export declare const executeToolSchema: {
2379
2379
  issues: {
2380
2380
  message: string;
2381
2381
  id: string;
2382
+ file: string;
2382
2383
  severity: "critical" | "high" | "warning";
2383
2384
  category: string;
2384
- file: string;
2385
2385
  suggestion: string;
2386
2386
  line?: number | undefined;
2387
2387
  }[];
@@ -2401,18 +2401,18 @@ export declare const executeToolSchema: {
2401
2401
  }, "strip", z.ZodTypeAny, {
2402
2402
  message: string;
2403
2403
  id: string;
2404
+ file: string;
2404
2405
  severity: "critical" | "high" | "warning";
2405
2406
  category: string;
2406
- file: string;
2407
2407
  suggestion: string;
2408
2408
  reportedBy: string;
2409
2409
  line?: number | undefined;
2410
2410
  }, {
2411
2411
  message: string;
2412
2412
  id: string;
2413
+ file: string;
2413
2414
  severity: "critical" | "high" | "warning";
2414
2415
  category: string;
2415
- file: string;
2416
2416
  suggestion: string;
2417
2417
  reportedBy: string;
2418
2418
  line?: number | undefined;
@@ -2426,9 +2426,9 @@ export declare const executeToolSchema: {
2426
2426
  mergedIssues: {
2427
2427
  message: string;
2428
2428
  id: string;
2429
+ file: string;
2429
2430
  severity: "critical" | "high" | "warning";
2430
2431
  category: string;
2431
- file: string;
2432
2432
  suggestion: string;
2433
2433
  reportedBy: string;
2434
2434
  line?: number | undefined;
@@ -2441,9 +2441,9 @@ export declare const executeToolSchema: {
2441
2441
  mergedIssues: {
2442
2442
  message: string;
2443
2443
  id: string;
2444
+ file: string;
2444
2445
  severity: "critical" | "high" | "warning";
2445
2446
  category: string;
2446
- file: string;
2447
2447
  suggestion: string;
2448
2448
  reportedBy: string;
2449
2449
  line?: number | undefined;
@@ -2646,10 +2646,10 @@ export declare const prInputSchema: z.ZodObject<{
2646
2646
  path?: string | undefined;
2647
2647
  id?: string | undefined;
2648
2648
  force?: boolean | undefined;
2649
- repoRoot?: string | undefined;
2650
2649
  title?: string | undefined;
2651
2650
  line?: number | undefined;
2652
2651
  summary?: string | undefined;
2652
+ repoRoot?: string | undefined;
2653
2653
  base?: string | undefined;
2654
2654
  head?: string | undefined;
2655
2655
  author?: string | undefined;
@@ -2665,10 +2665,10 @@ export declare const prInputSchema: z.ZodObject<{
2665
2665
  path?: string | undefined;
2666
2666
  id?: string | undefined;
2667
2667
  force?: boolean | undefined;
2668
- repoRoot?: string | undefined;
2669
2668
  title?: string | undefined;
2670
2669
  line?: number | undefined;
2671
2670
  summary?: string | undefined;
2671
+ repoRoot?: string | undefined;
2672
2672
  base?: string | undefined;
2673
2673
  head?: string | undefined;
2674
2674
  author?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/mcp/sch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F,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAG5E;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,+IAcb,CAAC;AAEX,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiDzB,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import { guardObject } from './input-guard.js';
2
3
  // ─── Shared Spec Sub-schemas ────────────────────────────────────
3
4
  // Spec의 ontology/gestaltAnalysis 필드를 구체화한 로컬 스키마.
4
5
  // src/core/types.ts의 OntologyEntity, OntologyRelation, GestaltAnalysis와 정합.
@@ -18,7 +19,7 @@ const gestaltAnalysisItemSchema = z.object({
18
19
  confidence: z.number().min(0).max(1).optional(),
19
20
  });
20
21
  // ─── Interview Tool ─────────────────────────────────────────────
21
- export const interviewInputSchema = z.object({
22
+ export const interviewInputSchema = guardObject(z.object({
22
23
  action: z.enum(['start', 'respond', 'score', 'complete', 'compress']),
23
24
  topic: z.string().optional(),
24
25
  sessionId: z
@@ -46,9 +47,9 @@ export const interviewInputSchema = z.object({
46
47
  .string()
47
48
  .optional()
48
49
  .describe('Compressed summary generated by caller LLM (required for compress action)'),
49
- });
50
+ }));
50
51
  // ─── Spec Tool ──────────────────────────────────────────────────
51
- export const specInputSchema = z.object({
52
+ export const specInputSchema = guardObject(z.object({
52
53
  sessionId: z
53
54
  .string()
54
55
  .optional()
@@ -80,9 +81,9 @@ export const specInputSchema = z.object({
80
81
  })
81
82
  .optional()
82
83
  .describe('Externally generated spec (passthrough mode)'),
83
- });
84
+ }));
84
85
  // ─── Execute Tool ───────────────────────────────────────────────
85
- export const executeInputSchema = z.object({
86
+ export const executeInputSchema = guardObject(z.object({
86
87
  action: z.enum([
87
88
  'start',
88
89
  'plan_step',
@@ -371,7 +372,10 @@ export const executeInputSchema = z.object({
371
372
  .default(true)
372
373
  .describe('When false, omit large prompt fields (systemPrompt, planningPrompt, taskPrompt, etc.) from responses to reduce token usage'),
373
374
  // Code Review
374
- reviewAgentName: z.string().optional().describe('Review agent name (required for review_submit)'),
375
+ reviewAgentName: z
376
+ .string()
377
+ .optional()
378
+ .describe('Review agent name (required for review_submit)'),
375
379
  reviewResult: z
376
380
  .object({
377
381
  issues: z.array(z.object({
@@ -398,7 +402,9 @@ export const executeInputSchema = z.object({
398
402
  line: z.number().optional(),
399
403
  message: z.string(),
400
404
  suggestion: z.string(),
401
- reportedBy: z.string(),
405
+ reportedBy: z
406
+ .string()
407
+ .describe('이 의견을 낸 에이전트 이름 하나. 배열이 아니다 — 여러 에이전트가 같은 걸 짚었으면 대표 하나만 적는다.'),
402
408
  })),
403
409
  approvedBy: z.array(z.string()),
404
410
  blockedBy: z.array(z.string()),
@@ -406,7 +412,7 @@ export const executeInputSchema = z.object({
406
412
  overallApproved: z.boolean(),
407
413
  })
408
414
  .optional()
409
- .describe('Merged review consensus (required for review_consensus)'),
415
+ .describe('Merged review consensus (required for review_consensus). mergedIssues[]의 각 항목은 id, severity, category, file, message, suggestion, reportedBy가 모두 필요하다 (line만 선택). reportedBy는 에이전트 이름 문자열 하나다.'),
410
416
  continuityVerdict: z
411
417
  .object({
412
418
  coherent: z.boolean(),
@@ -432,10 +438,10 @@ export const executeInputSchema = z.object({
432
438
  .string()
433
439
  .optional()
434
440
  .describe('review_publish가 남길 판정의 리뷰어 이름. 생략하면 GESTALT_ACTOR 환경변수, 그것도 없으면 gestalt:review를 쓴다. 개별 코멘트 작성자는 이 값이 아니라 각 의견의 reportedBy다.'),
435
- });
441
+ }));
436
442
  export const executeToolSchema = executeInputSchema.shape;
437
443
  // ─── Create Agent Tool ──────────────────────────────────────────
438
- export const agentCreateInputSchema = z.object({
444
+ export const agentCreateInputSchema = guardObject(z.object({
439
445
  action: z.enum(['start', 'submit']),
440
446
  sessionId: z.string().describe("The interview session ID. 'latest'(가장 최근 갱신)도 가능."),
441
447
  agentContent: z
@@ -446,9 +452,9 @@ export const agentCreateInputSchema = z.object({
446
452
  .string()
447
453
  .optional()
448
454
  .describe('Working directory where agents/ will be created (defaults to process.cwd())'),
449
- });
455
+ }));
450
456
  // ─── Benchmark Tool ─────────────────────────────────────────────
451
- export const benchmarkInputSchema = z.object({
457
+ export const benchmarkInputSchema = guardObject(z.object({
452
458
  action: z.enum(['start', 'respond', 'status']),
453
459
  scenario: z
454
460
  .string()
@@ -469,9 +475,9 @@ export const benchmarkInputSchema = z.object({
469
475
  })
470
476
  .optional()
471
477
  .describe('Token usage from the caller LLM call (optional, for metrics)'),
472
- });
478
+ }));
473
479
  // ─── Code Graph Tool ────────────────────────────────────────────
474
- export const codeGraphInputSchema = z.object({
480
+ export const codeGraphInputSchema = guardObject(z.object({
475
481
  action: z
476
482
  .enum(['build', 'blast_radius', 'diff_radius', 'query', 'stats', 'db_exists', 'co_change'])
477
483
  .describe('build: index codebase, blast_radius: committed changes, diff_radius: uncommitted changes, query: graph query, stats: show stats, db_exists: check DB, co_change: files that changed together in git history'),
@@ -521,23 +527,23 @@ export const codeGraphInputSchema = z.object({
521
527
  .max(1)
522
528
  .optional()
523
529
  .describe('Drop pairs below this confidence (default: 0.3)'),
524
- });
530
+ }));
525
531
  // ─── Status Tool ────────────────────────────────────────────────
526
- export const statusInputSchema = z.object({
532
+ export const statusInputSchema = guardObject(z.object({
527
533
  sessionId: z
528
534
  .string()
529
535
  .optional()
530
536
  .describe("Session ID. 'latest'(가장 최근 갱신)도 가능하고, sessionType='execute'/'all'이면 'active'(현재 활성 실행 세션)도 가능."),
531
537
  sessionType: z.enum(['interview', 'execute', 'all']).optional().default('all'),
532
- });
538
+ }));
533
539
  // ─── Graph Visualize Tool ────────────────────────────────────────
534
- export const graphVisualizeInputSchema = z.object({
540
+ export const graphVisualizeInputSchema = guardObject(z.object({
535
541
  repoRoot: z.string().describe('Absolute path to the repository root'),
536
542
  port: z
537
543
  .number()
538
544
  .optional()
539
545
  .describe('Preferred port (default: 7891, auto-increments on conflict)'),
540
- });
546
+ }));
541
547
  // ─── Local PR Tool ────────────────────────────────────────────────
542
548
  /**
543
549
  * `ges_pr`이 받는 액션.
@@ -561,7 +567,7 @@ export const PR_ACTIONS = [
561
567
  'checkout',
562
568
  'checkout_remove',
563
569
  ];
564
- export const prInputSchema = z.object({
570
+ export const prInputSchema = guardObject(z.object({
565
571
  action: z
566
572
  .enum(PR_ACTIONS)
567
573
  .describe('create: 새 PR, list: 목록, get: 단건 조회, diff: 변경 내용, comment: 코멘트 추가, resolve: 코멘트 스레드 해결, review: 판정 기록, update: head 갱신, edit: 제목·본문 수정, merge: 머지, close: 종료, checkout: head를 임시 워크트리로 떼어냄, checkout_remove: 그 워크트리 정리'),
@@ -570,7 +576,10 @@ export const prInputSchema = z.object({
570
576
  // create 전용
571
577
  title: z.string().optional().describe('create에 필요. edit에서는 새 제목'),
572
578
  base: z.string().optional().describe('create 전용: 기준 브랜치(기본 main)'),
573
- head: z.string().optional().describe('create: 리뷰 대상 브랜치(기본 HEAD), update: 옮겨갈 커밋'),
579
+ head: z
580
+ .string()
581
+ .optional()
582
+ .describe('create: 리뷰 대상 브랜치(기본 HEAD), update: 옮겨갈 커밋'),
574
583
  // create, comment, resolve, review, merge, close 공통
575
584
  author: z
576
585
  .string()
@@ -603,5 +612,5 @@ export const prInputSchema = z.object({
603
612
  .boolean()
604
613
  .optional()
605
614
  .describe('checkout_remove: 커밋 안 된 변경이 있어도 지운다. 기본은 안 지우고 알린다'),
606
- });
615
+ }));
607
616
  //# sourceMappingURL=schemas.js.map