@happyvertical/smrt-dev-mcp 0.47.2 → 0.49.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/AGENTS.md +7 -9
- package/README.md +88 -66
- package/dist/dev-plane.d.ts +48 -0
- package/dist/dev-plane.d.ts.map +1 -0
- package/dist/dev-plane.js +211 -0
- package/dist/dev-plane.js.map +1 -0
- package/dist/http-TeoaK9Xr.js +168 -0
- package/dist/http-TeoaK9Xr.js.map +1 -0
- package/dist/http.d.ts +1 -0
- package/dist/http.d.ts.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +31 -850
- package/dist/index.js.map +1 -1
- package/dist/knowledge/index.d.ts +27 -1
- package/dist/knowledge/index.d.ts.map +1 -1
- package/dist/{knowledge-CY6sQzpj.js → knowledge-BOsSAdPo.js} +81 -713
- package/dist/knowledge-BOsSAdPo.js.map +1 -0
- package/dist/knowledge.js +2 -2
- package/dist/observation-VJgHaPps.js +802 -0
- package/dist/observation-VJgHaPps.js.map +1 -0
- package/dist/runtime.d.ts +21 -0
- package/dist/runtime.d.ts.map +1 -0
- package/dist/runtime.js +18 -0
- package/dist/runtime.js.map +1 -0
- package/dist/tool-catalog-Zl-bcimC.js +643 -0
- package/dist/tool-catalog-Zl-bcimC.js.map +1 -0
- package/dist/tool-catalog.d.ts.map +1 -1
- package/dist/tools/introspect-project.d.ts +8 -0
- package/dist/tools/introspect-project.d.ts.map +1 -1
- package/dist/tools/runtime/boot.d.ts +10 -0
- package/dist/tools/runtime/boot.d.ts.map +1 -1
- package/dist/tools/runtime/connection.d.ts +19 -0
- package/dist/tools/runtime/connection.d.ts.map +1 -1
- package/dist/tools/runtime/observation.d.ts +12 -0
- package/dist/tools/runtime/observation.d.ts.map +1 -1
- package/dist/tools/runtime/tools.d.ts.map +1 -1
- package/package.json +13 -5
- package/skills/smrt-code-review/SKILL.md +1 -1
- package/dist/knowledge-CY6sQzpj.js.map +0 -1
|
@@ -0,0 +1,643 @@
|
|
|
1
|
+
//#region src/tool-catalog.ts
|
|
2
|
+
var REVIEW_SKILL_NAME = "smrt-code-review";
|
|
3
|
+
var JSON_SCHEMA_2020_12 = "https://json-schema.org/draft/2020-12/schema";
|
|
4
|
+
function compareToolNames(left, right) {
|
|
5
|
+
return left < right ? -1 : left > right ? 1 : 0;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Stable success/error envelope for development tools. `data` preserves each
|
|
9
|
+
* tool's existing payload exactly; coverage/diagnostics are promoted only when
|
|
10
|
+
* the underlying result actually reports them.
|
|
11
|
+
*/
|
|
12
|
+
var DEV_MCP_OUTPUT_SCHEMA = {
|
|
13
|
+
$schema: JSON_SCHEMA_2020_12,
|
|
14
|
+
type: "object",
|
|
15
|
+
additionalProperties: false,
|
|
16
|
+
required: [
|
|
17
|
+
"ok",
|
|
18
|
+
"coverage",
|
|
19
|
+
"diagnostics",
|
|
20
|
+
"data"
|
|
21
|
+
],
|
|
22
|
+
properties: {
|
|
23
|
+
ok: { type: "boolean" },
|
|
24
|
+
coverage: {
|
|
25
|
+
type: ["object", "null"],
|
|
26
|
+
additionalProperties: true
|
|
27
|
+
},
|
|
28
|
+
diagnostics: {
|
|
29
|
+
type: "array",
|
|
30
|
+
items: {
|
|
31
|
+
type: "object",
|
|
32
|
+
additionalProperties: true
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
data: {}
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
var KNOWLEDGE_DETAIL_DESCRIPTION = "summary: authored package docs are listed by path to stay inside tool-result budgets. full: embed package docs and matching modules with structural object facts. complete: embed all modules and return full package records.";
|
|
39
|
+
var DATABASE_URL_PROPERTY = {
|
|
40
|
+
type: "string",
|
|
41
|
+
description: "Optional dev database URL override (read-only diagnostics); prefer SMRT_DEV_DB_URL or cli.database config"
|
|
42
|
+
};
|
|
43
|
+
var DATABASE_TYPE_PROPERTY = {
|
|
44
|
+
type: "string",
|
|
45
|
+
enum: [
|
|
46
|
+
"sqlite",
|
|
47
|
+
"postgres",
|
|
48
|
+
"duckdb"
|
|
49
|
+
],
|
|
50
|
+
description: "Optional engine hint for dbUrl or the environment connection (sqlite, postgres, duckdb); inferred from the URL scheme when omitted"
|
|
51
|
+
};
|
|
52
|
+
var PROJECT_PATH_PROPERTY = {
|
|
53
|
+
type: "string",
|
|
54
|
+
description: "Project root to boot manifests from (default: the server working directory; ignored by the HTTP host, which boots once)"
|
|
55
|
+
};
|
|
56
|
+
var LIMIT_PROPERTY = {
|
|
57
|
+
type: "number",
|
|
58
|
+
description: "Row budget for result lists (default 50, capped at 500)"
|
|
59
|
+
};
|
|
60
|
+
var TOOLS = [
|
|
61
|
+
{
|
|
62
|
+
name: "generate-smrt-class",
|
|
63
|
+
description: "Generate a complete SMRT class with @smrt() decorator",
|
|
64
|
+
inputSchema: {
|
|
65
|
+
type: "object",
|
|
66
|
+
properties: {
|
|
67
|
+
className: {
|
|
68
|
+
type: "string",
|
|
69
|
+
description: "Name of the class (PascalCase)"
|
|
70
|
+
},
|
|
71
|
+
properties: {
|
|
72
|
+
type: "array",
|
|
73
|
+
description: "Array of property definitions",
|
|
74
|
+
items: {
|
|
75
|
+
type: "object",
|
|
76
|
+
properties: {
|
|
77
|
+
name: { type: "string" },
|
|
78
|
+
type: {
|
|
79
|
+
type: "string",
|
|
80
|
+
enum: [
|
|
81
|
+
"text",
|
|
82
|
+
"integer",
|
|
83
|
+
"decimal",
|
|
84
|
+
"boolean",
|
|
85
|
+
"datetime",
|
|
86
|
+
"json"
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
required: { type: "boolean" },
|
|
90
|
+
nullable: { type: "boolean" },
|
|
91
|
+
description: { type: "string" },
|
|
92
|
+
defaultValue: { oneOf: [
|
|
93
|
+
{ type: "string" },
|
|
94
|
+
{ type: "number" },
|
|
95
|
+
{ type: "boolean" },
|
|
96
|
+
{ type: "object" },
|
|
97
|
+
{ type: "null" }
|
|
98
|
+
] }
|
|
99
|
+
},
|
|
100
|
+
required: ["name", "type"]
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
baseClass: {
|
|
104
|
+
type: "string",
|
|
105
|
+
enum: ["SmrtObject", "SmrtCollection"],
|
|
106
|
+
default: "SmrtObject"
|
|
107
|
+
},
|
|
108
|
+
template: {
|
|
109
|
+
type: "string",
|
|
110
|
+
enum: [
|
|
111
|
+
"basic",
|
|
112
|
+
"global-catalog",
|
|
113
|
+
"optional-catalog",
|
|
114
|
+
"tenant-project-object",
|
|
115
|
+
"tenant-event-log-object",
|
|
116
|
+
"cross-package-reference"
|
|
117
|
+
],
|
|
118
|
+
default: "basic"
|
|
119
|
+
},
|
|
120
|
+
tableName: { type: "string" },
|
|
121
|
+
conflictColumns: {
|
|
122
|
+
type: "array",
|
|
123
|
+
items: { type: "string" }
|
|
124
|
+
},
|
|
125
|
+
tenantScoped: { oneOf: [{ type: "boolean" }, {
|
|
126
|
+
type: "object",
|
|
127
|
+
properties: {
|
|
128
|
+
mode: {
|
|
129
|
+
type: "string",
|
|
130
|
+
enum: ["required", "optional"]
|
|
131
|
+
},
|
|
132
|
+
field: { type: "string" },
|
|
133
|
+
autoFilter: { type: "boolean" },
|
|
134
|
+
autoPopulate: { type: "boolean" },
|
|
135
|
+
allowSuperAdminBypass: { type: "boolean" }
|
|
136
|
+
}
|
|
137
|
+
}] },
|
|
138
|
+
includeTenantIdField: { type: "boolean" },
|
|
139
|
+
relationships: {
|
|
140
|
+
type: "array",
|
|
141
|
+
items: {
|
|
142
|
+
type: "object",
|
|
143
|
+
properties: {
|
|
144
|
+
name: { type: "string" },
|
|
145
|
+
type: {
|
|
146
|
+
type: "string",
|
|
147
|
+
enum: [
|
|
148
|
+
"foreignKey",
|
|
149
|
+
"crossPackageRef",
|
|
150
|
+
"oneToMany",
|
|
151
|
+
"manyToMany"
|
|
152
|
+
]
|
|
153
|
+
},
|
|
154
|
+
related: { type: "string" },
|
|
155
|
+
required: { type: "boolean" },
|
|
156
|
+
nullable: { type: "boolean" },
|
|
157
|
+
description: { type: "string" },
|
|
158
|
+
validate: { type: "boolean" },
|
|
159
|
+
foreignKey: { type: "string" },
|
|
160
|
+
through: { type: "string" },
|
|
161
|
+
sourceKey: { type: "string" },
|
|
162
|
+
targetKey: { type: "string" }
|
|
163
|
+
},
|
|
164
|
+
required: [
|
|
165
|
+
"name",
|
|
166
|
+
"type",
|
|
167
|
+
"related"
|
|
168
|
+
]
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
includeCompanionSnippets: {
|
|
172
|
+
type: "boolean",
|
|
173
|
+
default: false
|
|
174
|
+
},
|
|
175
|
+
includeApiConfig: {
|
|
176
|
+
type: "boolean",
|
|
177
|
+
default: true
|
|
178
|
+
},
|
|
179
|
+
includeMcpConfig: {
|
|
180
|
+
type: "boolean",
|
|
181
|
+
default: true
|
|
182
|
+
},
|
|
183
|
+
includeCliConfig: {
|
|
184
|
+
type: "boolean",
|
|
185
|
+
default: true
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
required: ["className", "properties"]
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
name: "introspect-project",
|
|
193
|
+
description: "Scan a directory for SMRT objects. Returns a compact summary by default; pass detail: \"full\" for field, schema, and method details.",
|
|
194
|
+
inputSchema: {
|
|
195
|
+
type: "object",
|
|
196
|
+
properties: {
|
|
197
|
+
directory: {
|
|
198
|
+
type: "string",
|
|
199
|
+
description: "Project directory (default: cwd)"
|
|
200
|
+
},
|
|
201
|
+
manifestPath: {
|
|
202
|
+
type: "string",
|
|
203
|
+
description: "Optional manifest path. Defaults to .smrt/manifest.json, dist/manifest.json, then source scanning."
|
|
204
|
+
},
|
|
205
|
+
detail: {
|
|
206
|
+
type: "string",
|
|
207
|
+
enum: ["summary", "full"],
|
|
208
|
+
default: "summary",
|
|
209
|
+
description: "summary: one compact record per object. full: complete field/schema/method detail (large)."
|
|
210
|
+
},
|
|
211
|
+
maxChars: {
|
|
212
|
+
type: "number",
|
|
213
|
+
description: "Character budget for the `objects` payload. Objects past the budget are omitted and reported under `truncated`. Project metadata and diagnostics are always returned in full, so the serialized response is somewhat larger than this budget."
|
|
214
|
+
},
|
|
215
|
+
cursor: {
|
|
216
|
+
type: "string",
|
|
217
|
+
description: "Resume after this className (objects are sorted alphabetically). Pass a previous response's `nextCursor` to read the next page instead of raising maxChars."
|
|
218
|
+
},
|
|
219
|
+
limit: {
|
|
220
|
+
type: "number",
|
|
221
|
+
description: "Maximum objects per page, applied before the character budget"
|
|
222
|
+
},
|
|
223
|
+
includeFields: {
|
|
224
|
+
type: "boolean",
|
|
225
|
+
description: "Include field details (detail: \"full\" only)"
|
|
226
|
+
},
|
|
227
|
+
includeRelationships: {
|
|
228
|
+
type: "boolean",
|
|
229
|
+
description: "Analyze relationships (detail: \"full\" only)"
|
|
230
|
+
},
|
|
231
|
+
includeMethods: {
|
|
232
|
+
type: "boolean",
|
|
233
|
+
description: "Include public method details (detail: \"full\" only)"
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
name: "review-smrt-project",
|
|
240
|
+
description: "Advisory ecosystem alignment review for downstream SMRT projects",
|
|
241
|
+
inputSchema: {
|
|
242
|
+
type: "object",
|
|
243
|
+
properties: {
|
|
244
|
+
directory: {
|
|
245
|
+
type: "string",
|
|
246
|
+
description: "Project directory (default: cwd)"
|
|
247
|
+
},
|
|
248
|
+
rootDir: {
|
|
249
|
+
type: "string",
|
|
250
|
+
description: "Compatibility alias for directory"
|
|
251
|
+
},
|
|
252
|
+
includeSourceEvidence: {
|
|
253
|
+
type: "boolean",
|
|
254
|
+
description: "Include file and line evidence in findings",
|
|
255
|
+
default: true
|
|
256
|
+
},
|
|
257
|
+
maxFindings: {
|
|
258
|
+
type: "number",
|
|
259
|
+
description: "Optional maximum number of findings to return"
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
name: "reflect-knowledge",
|
|
266
|
+
description: "Report deterministic SMRT + HappyVertical SDK knowledge coverage and freshness",
|
|
267
|
+
inputSchema: {
|
|
268
|
+
type: "object",
|
|
269
|
+
properties: { rootDir: {
|
|
270
|
+
type: "string",
|
|
271
|
+
description: "Project root directory (default: cwd)"
|
|
272
|
+
} }
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
name: "reflect-domain-knowledge",
|
|
277
|
+
description: "Report domain-scoped SMRT knowledge artifacts, SDK packages, and freshness",
|
|
278
|
+
inputSchema: {
|
|
279
|
+
type: "object",
|
|
280
|
+
properties: {
|
|
281
|
+
rootDir: { type: "string" },
|
|
282
|
+
scope: {
|
|
283
|
+
type: "string",
|
|
284
|
+
enum: [
|
|
285
|
+
"project",
|
|
286
|
+
"local",
|
|
287
|
+
"package",
|
|
288
|
+
"sdk",
|
|
289
|
+
"installed"
|
|
290
|
+
],
|
|
291
|
+
default: "project"
|
|
292
|
+
},
|
|
293
|
+
package: { type: "string" }
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
name: "check-knowledge-freshness",
|
|
299
|
+
description: "Run deterministic freshness checks for SMRT agent knowledge",
|
|
300
|
+
inputSchema: {
|
|
301
|
+
type: "object",
|
|
302
|
+
properties: {
|
|
303
|
+
rootDir: { type: "string" },
|
|
304
|
+
changed: {
|
|
305
|
+
type: "boolean",
|
|
306
|
+
description: "Limit stale-pattern checks to changed files"
|
|
307
|
+
},
|
|
308
|
+
strict: {
|
|
309
|
+
type: "boolean",
|
|
310
|
+
description: "Treat stale-pattern findings as errors"
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
name: "build-context",
|
|
317
|
+
description: "Build model-ready SMRT context. task: \"review\" routes changedFiles/focus to package experts and returns file-anchored findings, package hints, and a prompt bundle; task: \"architecture\" ranks packages by the idea text and returns the bundle plus recommendations. Replaces build-review-context, build-domain-review-context, build-architecture-context, and build-domain-architecture-context.",
|
|
318
|
+
inputSchema: {
|
|
319
|
+
type: "object",
|
|
320
|
+
properties: {
|
|
321
|
+
task: {
|
|
322
|
+
type: "string",
|
|
323
|
+
enum: ["review", "architecture"],
|
|
324
|
+
description: "review: changed files and focus. architecture: an idea or documentation."
|
|
325
|
+
},
|
|
326
|
+
rootDir: { type: "string" },
|
|
327
|
+
changedFiles: {
|
|
328
|
+
type: "array",
|
|
329
|
+
items: { type: "string" },
|
|
330
|
+
description: "Files to route to package experts (task: review)"
|
|
331
|
+
},
|
|
332
|
+
focus: {
|
|
333
|
+
type: "string",
|
|
334
|
+
description: "Concern to prioritise"
|
|
335
|
+
},
|
|
336
|
+
documentation: {
|
|
337
|
+
type: "string",
|
|
338
|
+
description: "Existing docs, notes, or requirements"
|
|
339
|
+
},
|
|
340
|
+
idea: {
|
|
341
|
+
type: "string",
|
|
342
|
+
description: "Product or implementation idea (task: architecture)"
|
|
343
|
+
},
|
|
344
|
+
scope: {
|
|
345
|
+
type: "string",
|
|
346
|
+
enum: [
|
|
347
|
+
"project",
|
|
348
|
+
"local",
|
|
349
|
+
"package",
|
|
350
|
+
"sdk",
|
|
351
|
+
"installed"
|
|
352
|
+
],
|
|
353
|
+
default: "project"
|
|
354
|
+
},
|
|
355
|
+
package: {
|
|
356
|
+
type: "string",
|
|
357
|
+
description: "Package name or short name to focus"
|
|
358
|
+
},
|
|
359
|
+
mode: {
|
|
360
|
+
type: "string",
|
|
361
|
+
enum: [
|
|
362
|
+
"findings",
|
|
363
|
+
"prompt-bundle",
|
|
364
|
+
"both"
|
|
365
|
+
],
|
|
366
|
+
default: "both",
|
|
367
|
+
description: "task: review only"
|
|
368
|
+
},
|
|
369
|
+
detail: {
|
|
370
|
+
type: "string",
|
|
371
|
+
enum: [
|
|
372
|
+
"summary",
|
|
373
|
+
"full",
|
|
374
|
+
"complete"
|
|
375
|
+
],
|
|
376
|
+
default: "summary",
|
|
377
|
+
description: KNOWLEDGE_DETAIL_DESCRIPTION
|
|
378
|
+
}
|
|
379
|
+
},
|
|
380
|
+
required: ["task"]
|
|
381
|
+
}
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
name: "smrt-review",
|
|
385
|
+
description: "Deprecated compatibility name for build-context with task: \"review\"; removed in the next minor release. For a formal downstream review, first call get-agent-skill with { \"name\": \"smrt-code-review\" }.",
|
|
386
|
+
inputSchema: {
|
|
387
|
+
type: "object",
|
|
388
|
+
properties: {
|
|
389
|
+
rootDir: { type: "string" },
|
|
390
|
+
changedFiles: {
|
|
391
|
+
type: "array",
|
|
392
|
+
items: { type: "string" }
|
|
393
|
+
},
|
|
394
|
+
focus: { type: "string" },
|
|
395
|
+
documentation: { type: "string" },
|
|
396
|
+
mode: {
|
|
397
|
+
type: "string",
|
|
398
|
+
enum: [
|
|
399
|
+
"findings",
|
|
400
|
+
"prompt-bundle",
|
|
401
|
+
"both"
|
|
402
|
+
],
|
|
403
|
+
default: "both"
|
|
404
|
+
},
|
|
405
|
+
detail: {
|
|
406
|
+
type: "string",
|
|
407
|
+
enum: [
|
|
408
|
+
"summary",
|
|
409
|
+
"full",
|
|
410
|
+
"complete"
|
|
411
|
+
],
|
|
412
|
+
default: "summary",
|
|
413
|
+
description: KNOWLEDGE_DETAIL_DESCRIPTION
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
name: "build-package-specialist-context",
|
|
420
|
+
description: "Build deterministic package specialist context for the SMRT workbench",
|
|
421
|
+
inputSchema: {
|
|
422
|
+
type: "object",
|
|
423
|
+
properties: {
|
|
424
|
+
rootDir: { type: "string" },
|
|
425
|
+
package: {
|
|
426
|
+
type: "string",
|
|
427
|
+
description: "Package name or short package query, e.g. @happyvertical/smrt-content or content"
|
|
428
|
+
},
|
|
429
|
+
focus: { type: "string" }
|
|
430
|
+
},
|
|
431
|
+
required: ["package"]
|
|
432
|
+
}
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
name: "smrt-architecture",
|
|
436
|
+
description: "Deprecated compatibility name for build-context with task: \"architecture\"; removed in the next minor release.",
|
|
437
|
+
inputSchema: {
|
|
438
|
+
type: "object",
|
|
439
|
+
properties: {
|
|
440
|
+
rootDir: { type: "string" },
|
|
441
|
+
idea: { type: "string" },
|
|
442
|
+
documentation: { type: "string" },
|
|
443
|
+
focus: { type: "string" },
|
|
444
|
+
detail: {
|
|
445
|
+
type: "string",
|
|
446
|
+
enum: [
|
|
447
|
+
"summary",
|
|
448
|
+
"full",
|
|
449
|
+
"complete"
|
|
450
|
+
],
|
|
451
|
+
default: "summary",
|
|
452
|
+
description: KNOWLEDGE_DETAIL_DESCRIPTION
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
name: "list-agent-skills",
|
|
459
|
+
description: "List bundled harness-agnostic agent skills shipped with smrt-dev-mcp",
|
|
460
|
+
inputSchema: {
|
|
461
|
+
type: "object",
|
|
462
|
+
properties: {}
|
|
463
|
+
}
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
name: "get-agent-skill",
|
|
467
|
+
description: "Return a bundled harness-agnostic agent skill as Markdown plus optional references",
|
|
468
|
+
inputSchema: {
|
|
469
|
+
type: "object",
|
|
470
|
+
properties: {
|
|
471
|
+
name: {
|
|
472
|
+
type: "string",
|
|
473
|
+
enum: [REVIEW_SKILL_NAME],
|
|
474
|
+
description: "Bundled agent skill name"
|
|
475
|
+
},
|
|
476
|
+
includeReferences: {
|
|
477
|
+
type: "boolean",
|
|
478
|
+
default: true,
|
|
479
|
+
description: "Include referenced files with the skill bundle"
|
|
480
|
+
}
|
|
481
|
+
},
|
|
482
|
+
required: ["name"]
|
|
483
|
+
}
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
name: "migration-status",
|
|
487
|
+
description: "Live migration status from the _smrt_schema_migrations system table (runtime provenance; read-only)",
|
|
488
|
+
inputSchema: {
|
|
489
|
+
type: "object",
|
|
490
|
+
properties: {
|
|
491
|
+
dbUrl: DATABASE_URL_PROPERTY,
|
|
492
|
+
dbType: DATABASE_TYPE_PROPERTY,
|
|
493
|
+
limit: LIMIT_PROPERTY
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
name: "job-health",
|
|
499
|
+
description: "Live job queue health from the _smrt_jobs/_smrt_workers system tables (runtime provenance; read-only)",
|
|
500
|
+
inputSchema: {
|
|
501
|
+
type: "object",
|
|
502
|
+
properties: {
|
|
503
|
+
dbUrl: DATABASE_URL_PROPERTY,
|
|
504
|
+
dbType: DATABASE_TYPE_PROPERTY,
|
|
505
|
+
limit: LIMIT_PROPERTY
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
name: "schedule-health",
|
|
511
|
+
description: "Live agent schedule health from the _smrt_agent_schedules system table (runtime provenance; read-only; sensitive agentConfig never read)",
|
|
512
|
+
inputSchema: {
|
|
513
|
+
type: "object",
|
|
514
|
+
properties: {
|
|
515
|
+
dbUrl: DATABASE_URL_PROPERTY,
|
|
516
|
+
dbType: DATABASE_TYPE_PROPERTY,
|
|
517
|
+
limit: LIMIT_PROPERTY
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
name: "dispatch-health",
|
|
523
|
+
description: "Live dispatch health from the _smrt_dispatch/_smrt_dispatch_subscriptions system tables (runtime provenance; read-only; payloads never read)",
|
|
524
|
+
inputSchema: {
|
|
525
|
+
type: "object",
|
|
526
|
+
properties: {
|
|
527
|
+
dbUrl: DATABASE_URL_PROPERTY,
|
|
528
|
+
dbType: DATABASE_TYPE_PROPERTY,
|
|
529
|
+
limit: LIMIT_PROPERTY
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
name: "recent-changes",
|
|
535
|
+
description: "Tail of the _smrt_changes change feed (runtime provenance; read-only; filter by table/tenant)",
|
|
536
|
+
inputSchema: {
|
|
537
|
+
type: "object",
|
|
538
|
+
properties: {
|
|
539
|
+
dbUrl: DATABASE_URL_PROPERTY,
|
|
540
|
+
dbType: DATABASE_TYPE_PROPERTY,
|
|
541
|
+
since: {
|
|
542
|
+
type: "number",
|
|
543
|
+
description: "Cursor to read after (default 0)"
|
|
544
|
+
},
|
|
545
|
+
tables: {
|
|
546
|
+
type: "array",
|
|
547
|
+
items: { type: "string" },
|
|
548
|
+
description: "Restrict to these physical table names"
|
|
549
|
+
},
|
|
550
|
+
tenantId: {
|
|
551
|
+
type: "string",
|
|
552
|
+
description: "Tenant narrowing filter"
|
|
553
|
+
},
|
|
554
|
+
limit: LIMIT_PROPERTY
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
},
|
|
558
|
+
{
|
|
559
|
+
name: "registry-drift",
|
|
560
|
+
description: "Registry drift report; _smrt_registry is retired and reported as such, never queried (read-only)",
|
|
561
|
+
inputSchema: {
|
|
562
|
+
type: "object",
|
|
563
|
+
properties: {
|
|
564
|
+
dbUrl: DATABASE_URL_PROPERTY,
|
|
565
|
+
dbType: DATABASE_TYPE_PROPERTY
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
},
|
|
569
|
+
{
|
|
570
|
+
name: "runtime-registry",
|
|
571
|
+
description: "Sanitized snapshot of the booted ObjectRegistry from the project and installed manifests (booted provenance; read-only; no project code executed)",
|
|
572
|
+
inputSchema: {
|
|
573
|
+
type: "object",
|
|
574
|
+
properties: {
|
|
575
|
+
projectPath: PROJECT_PATH_PROPERTY,
|
|
576
|
+
objects: {
|
|
577
|
+
type: "array",
|
|
578
|
+
items: { type: "string" },
|
|
579
|
+
description: "Restrict field/method detail to these simple or qualified object names"
|
|
580
|
+
},
|
|
581
|
+
detail: {
|
|
582
|
+
type: "boolean",
|
|
583
|
+
description: "Include field and method detail for every object (default: only when objects is given)"
|
|
584
|
+
},
|
|
585
|
+
cursor: {
|
|
586
|
+
type: "string",
|
|
587
|
+
description: "Resume after this qualified object name; pass a previous response's `page.nextCursor`"
|
|
588
|
+
},
|
|
589
|
+
limit: {
|
|
590
|
+
type: "number",
|
|
591
|
+
description: "Objects per page (default 50, capped at 500)"
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
name: "runtime-object",
|
|
598
|
+
description: "One booted object: sanitized fields, methods, tenancy, inheritance, and the DDL the registry would generate (booted provenance; read-only)",
|
|
599
|
+
inputSchema: {
|
|
600
|
+
type: "object",
|
|
601
|
+
properties: {
|
|
602
|
+
projectPath: PROJECT_PATH_PROPERTY,
|
|
603
|
+
name: {
|
|
604
|
+
type: "string",
|
|
605
|
+
description: "Simple or qualified object name"
|
|
606
|
+
},
|
|
607
|
+
engine: {
|
|
608
|
+
type: "string",
|
|
609
|
+
enum: [
|
|
610
|
+
"sqlite",
|
|
611
|
+
"postgres",
|
|
612
|
+
"duckdb"
|
|
613
|
+
],
|
|
614
|
+
description: "Engine for the DDL preview (default: registry default)"
|
|
615
|
+
}
|
|
616
|
+
},
|
|
617
|
+
required: ["name"]
|
|
618
|
+
}
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
name: "runtime-schema-diff",
|
|
622
|
+
description: "Booted registry schemas versus the live dev database using the db:diff comparer; introspection only, drops/relaxations never proposed (runtime provenance; read-only)",
|
|
623
|
+
inputSchema: {
|
|
624
|
+
type: "object",
|
|
625
|
+
properties: {
|
|
626
|
+
projectPath: PROJECT_PATH_PROPERTY,
|
|
627
|
+
dbUrl: DATABASE_URL_PROPERTY,
|
|
628
|
+
dbType: DATABASE_TYPE_PROPERTY
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
].map((tool) => ({
|
|
633
|
+
...tool,
|
|
634
|
+
inputSchema: {
|
|
635
|
+
...tool.inputSchema,
|
|
636
|
+
$schema: JSON_SCHEMA_2020_12
|
|
637
|
+
},
|
|
638
|
+
outputSchema: DEV_MCP_OUTPUT_SCHEMA
|
|
639
|
+
})).sort((left, right) => compareToolNames(left.name, right.name));
|
|
640
|
+
//#endregion
|
|
641
|
+
export { TOOLS as n, REVIEW_SKILL_NAME as t };
|
|
642
|
+
|
|
643
|
+
//# sourceMappingURL=tool-catalog-Zl-bcimC.js.map
|