veryfront 0.1.210 → 0.1.212
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/esm/cli/mcp/advanced-tools.d.ts.map +1 -1
- package/esm/cli/mcp/advanced-tools.js +6 -0
- package/esm/cli/mcp/standalone.d.ts.map +1 -1
- package/esm/cli/mcp/standalone.js +60 -0
- package/esm/cli/mcp/tools/bootstrap-tool.d.ts +29 -0
- package/esm/cli/mcp/tools/bootstrap-tool.d.ts.map +1 -0
- package/esm/cli/mcp/tools/bootstrap-tool.js +51 -0
- package/esm/cli/mcp/tools/build-tool.d.ts +28 -0
- package/esm/cli/mcp/tools/build-tool.d.ts.map +1 -0
- package/esm/cli/mcp/tools/build-tool.js +88 -0
- package/esm/cli/mcp/tools/run-lint-tool.d.ts +14 -0
- package/esm/cli/mcp/tools/run-lint-tool.d.ts.map +1 -0
- package/esm/cli/mcp/tools/run-lint-tool.js +55 -0
- package/esm/deno.js +1 -1
- package/esm/src/agent/data-stream.d.ts.map +1 -1
- package/esm/src/agent/data-stream.js +25 -17
- package/esm/src/agent/runtime/constants.d.ts +2 -0
- package/esm/src/agent/runtime/constants.d.ts.map +1 -1
- package/esm/src/agent/runtime/constants.js +16 -0
- package/esm/src/agent/runtime/index.d.ts +52 -1
- package/esm/src/agent/runtime/index.d.ts.map +1 -1
- package/esm/src/agent/runtime/index.js +102 -15
- package/esm/src/utils/version-constant.d.ts +1 -1
- package/esm/src/utils/version-constant.js +1 -1
- package/package.json +1 -1
- package/src/cli/mcp/advanced-tools.ts +6 -0
- package/src/cli/mcp/standalone.ts +65 -0
- package/src/cli/mcp/tools/bootstrap-tool.ts +67 -0
- package/src/cli/mcp/tools/build-tool.ts +115 -0
- package/src/cli/mcp/tools/run-lint-tool.ts +69 -0
- package/src/deno.js +1 -1
- package/src/src/agent/data-stream.ts +28 -18
- package/src/src/agent/runtime/constants.ts +18 -0
- package/src/src/agent/runtime/index.ts +147 -15
- package/src/src/utils/version-constant.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"advanced-tools.d.ts","sourceRoot":"","sources":["../../../src/cli/mcp/advanced-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"advanced-tools.d.ts","sourceRoot":"","sources":["../../../src/cli/mcp/advanced-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAgC1C,eAAO,MAAM,aAAa,EAAE,OAAO,EA0BlC,CAAC"}
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import { vfCreateProject, vfListExamples, vfListIntegrations, vfListTemplates, vfListUsecases, } from "./tools/catalog-tools.js";
|
|
2
2
|
import { vfGetDebugContext, vfGetFlywheelStatus, vfHotReload, vfPreviewRoute, vfTriggerHmr, vfWaitForReady, } from "./tools/dev-tools.js";
|
|
3
3
|
import { vfGetComponentTree, vfGetProjectContext, vfListLocalProjects, vfListRoutes, } from "./tools/project-tools.js";
|
|
4
|
+
import { vfBuild } from "./tools/build-tool.js";
|
|
5
|
+
import { vfRunLint } from "./tools/run-lint-tool.js";
|
|
4
6
|
import { vfRunTests } from "./tools/run-tests-tool.js";
|
|
5
7
|
import { vfGetConventions, vfScaffold } from "./tools/scaffold-tools.js";
|
|
6
8
|
import { vfGetSkillReference, vfGetSkills } from "./tools/skill-tools.js";
|
|
9
|
+
import { vfBootstrap } from "./tools/bootstrap-tool.js";
|
|
7
10
|
import { cicdTools } from "./tools/cicd-tools.js";
|
|
8
11
|
import { introspectionTools } from "./tools/introspection-tools.js";
|
|
9
12
|
export const advancedTools = [
|
|
10
13
|
...cicdTools,
|
|
11
14
|
...introspectionTools,
|
|
15
|
+
vfBootstrap,
|
|
12
16
|
vfGetSkills,
|
|
13
17
|
vfGetSkillReference,
|
|
14
18
|
vfListLocalProjects,
|
|
@@ -24,9 +28,11 @@ export const advancedTools = [
|
|
|
24
28
|
vfPreviewRoute,
|
|
25
29
|
vfGetDebugContext,
|
|
26
30
|
vfGetComponentTree,
|
|
31
|
+
vfBuild,
|
|
27
32
|
vfHotReload,
|
|
28
33
|
vfTriggerHmr,
|
|
29
34
|
vfWaitForReady,
|
|
35
|
+
vfRunLint,
|
|
30
36
|
vfGetFlywheelStatus,
|
|
31
37
|
vfRunTests,
|
|
32
38
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"standalone.d.ts","sourceRoot":"","sources":["../../../src/cli/mcp/standalone.ts"],"names":[],"mappings":"AAsCA,MAAM,WAAW,mBAAmB;IAClC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,MAAM,CAAkB;IAChC,OAAO,CAAC,KAAK,CAAmB;IAChC,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,WAAW,CAA4B;gBAEnC,MAAM,GAAE,mBAAwB;IAM5C,KAAK,IAAI,IAAI;IAWb,IAAI,IAAI,IAAI;YAME,aAAa;IAW3B,OAAO,CAAC,cAAc;YAgCR,eAAe;IAqB7B,OAAO,CAAC,eAAe;IAUvB,OAAO,CAAC,mBAAmB;YAyBb,mBAAmB;IA6CjC,OAAO,CAAC,iBAAiB;YAkBX,gBAAgB;IAwB9B,OAAO,CAAC,WAAW;
|
|
1
|
+
{"version":3,"file":"standalone.d.ts","sourceRoot":"","sources":["../../../src/cli/mcp/standalone.ts"],"names":[],"mappings":"AAsCA,MAAM,WAAW,mBAAmB;IAClC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,MAAM,CAAkB;IAChC,OAAO,CAAC,KAAK,CAAmB;IAChC,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,WAAW,CAA4B;gBAEnC,MAAM,GAAE,mBAAwB;IAM5C,KAAK,IAAI,IAAI;IAWb,IAAI,IAAI,IAAI;YAME,aAAa;IAW3B,OAAO,CAAC,cAAc;YAgCR,eAAe;IAqB7B,OAAO,CAAC,eAAe;IAUvB,OAAO,CAAC,mBAAmB;YAyBb,mBAAmB;IA6CjC,OAAO,CAAC,iBAAiB;YAkBX,gBAAgB;IAwB9B,OAAO,CAAC,WAAW;IAkQnB,OAAO,CAAC,mBAAmB;CA0F5B;AAED,wBAAgB,yBAAyB,CAAC,MAAM,GAAE,mBAAwB,GAAG,mBAAmB,CAI/F"}
|
|
@@ -382,6 +382,66 @@ export class StandaloneMCPServer {
|
|
|
382
382
|
});
|
|
383
383
|
},
|
|
384
384
|
},
|
|
385
|
+
{
|
|
386
|
+
name: "vf_run_lint",
|
|
387
|
+
description: "Run the linter. Returns structured diagnostics with file, line, column, rule code, and message. " +
|
|
388
|
+
"Do not use for test results — use vf_run_tests instead. " +
|
|
389
|
+
"Do not use for compile/runtime errors — use vf_get_errors instead.",
|
|
390
|
+
inputSchema: {
|
|
391
|
+
type: "object",
|
|
392
|
+
properties: {
|
|
393
|
+
timeout: {
|
|
394
|
+
type: "number",
|
|
395
|
+
description: "Maximum time to wait for lint completion in milliseconds (default: 120000)",
|
|
396
|
+
},
|
|
397
|
+
},
|
|
398
|
+
},
|
|
399
|
+
async execute(args) {
|
|
400
|
+
const { executeLint } = await import("./tools/run-lint-tool.js");
|
|
401
|
+
return executeLint({
|
|
402
|
+
timeout: args.timeout,
|
|
403
|
+
});
|
|
404
|
+
},
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
name: "vf_bootstrap",
|
|
408
|
+
description: "Get full project context in one call: structure, conventions, errors, and server status. " +
|
|
409
|
+
"Use at session start instead of calling vf_get_project_context + vf_get_conventions + " +
|
|
410
|
+
"vf_get_errors + vf_get_status separately.",
|
|
411
|
+
inputSchema: {
|
|
412
|
+
type: "object",
|
|
413
|
+
properties: {
|
|
414
|
+
projectPath: {
|
|
415
|
+
type: "string",
|
|
416
|
+
description: "Project directory (defaults to cwd)",
|
|
417
|
+
},
|
|
418
|
+
},
|
|
419
|
+
},
|
|
420
|
+
async execute(args) {
|
|
421
|
+
const { vfGetProjectContext } = await import("./tools/project-tools.js");
|
|
422
|
+
const { vfGetConventions } = await import("./tools/scaffold-tools.js");
|
|
423
|
+
const [project, conventions] = await Promise.all([
|
|
424
|
+
vfGetProjectContext.execute({ projectPath: args.projectPath }),
|
|
425
|
+
vfGetConventions.execute({ topic: "all" }),
|
|
426
|
+
]);
|
|
427
|
+
let errors = [];
|
|
428
|
+
let running = false;
|
|
429
|
+
try {
|
|
430
|
+
const result = await client.getLiveErrors();
|
|
431
|
+
errors = Array.isArray(result) ? result : [];
|
|
432
|
+
running = true;
|
|
433
|
+
}
|
|
434
|
+
catch {
|
|
435
|
+
// Dev server not running — no errors available
|
|
436
|
+
}
|
|
437
|
+
return {
|
|
438
|
+
project,
|
|
439
|
+
conventions,
|
|
440
|
+
errors: { total: errors.length, items: errors.slice(-20) },
|
|
441
|
+
status: { running },
|
|
442
|
+
};
|
|
443
|
+
},
|
|
444
|
+
},
|
|
385
445
|
...this.createContext7Tools(),
|
|
386
446
|
];
|
|
387
447
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MCP tool: vf_bootstrap
|
|
3
|
+
*
|
|
4
|
+
* Returns everything an agent needs at session start in a single call:
|
|
5
|
+
* project context, coding conventions, current errors, and server status.
|
|
6
|
+
*/
|
|
7
|
+
import { z } from "zod";
|
|
8
|
+
import type { MCPTool } from "../../../src/mcp/index.js";
|
|
9
|
+
import { type DevError } from "../../../src/observability/index.js";
|
|
10
|
+
import { vfGetProjectContext } from "./project-tools.js";
|
|
11
|
+
import { vfGetConventions } from "./scaffold-tools.js";
|
|
12
|
+
declare const bootstrapInput: z.ZodObject<{
|
|
13
|
+
projectPath: z.ZodOptional<z.ZodString>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
type BootstrapInput = z.infer<typeof bootstrapInput>;
|
|
16
|
+
interface BootstrapResult {
|
|
17
|
+
project: Awaited<ReturnType<typeof vfGetProjectContext.execute>>;
|
|
18
|
+
conventions: Awaited<ReturnType<typeof vfGetConventions.execute>>;
|
|
19
|
+
errors: {
|
|
20
|
+
total: number;
|
|
21
|
+
items: DevError[];
|
|
22
|
+
};
|
|
23
|
+
status: {
|
|
24
|
+
running: boolean;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export declare const vfBootstrap: MCPTool<BootstrapInput, BootstrapResult>;
|
|
28
|
+
export {};
|
|
29
|
+
//# sourceMappingURL=bootstrap-tool.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bootstrap-tool.d.ts","sourceRoot":"","sources":["../../../../src/cli/mcp/tools/bootstrap-tool.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,KAAK,QAAQ,EAAqB,MAAM,qCAAqC,CAAC;AACvF,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,QAAA,MAAM,cAAc;;iBAIlB,CAAC;AAEH,KAAK,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAErD,UAAU,eAAe;IACvB,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO,mBAAmB,CAAC,OAAO,CAAC,CAAC,CAAC;IACjE,WAAW,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC;IAClE,MAAM,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,QAAQ,EAAE,CAAA;KAAE,CAAC;IAC7C,MAAM,EAAE;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC;CAC9B;AAED,eAAO,MAAM,WAAW,EAAE,OAAO,CAAC,cAAc,EAAE,eAAe,CAsChE,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MCP tool: vf_bootstrap
|
|
3
|
+
*
|
|
4
|
+
* Returns everything an agent needs at session start in a single call:
|
|
5
|
+
* project context, coding conventions, current errors, and server status.
|
|
6
|
+
*/
|
|
7
|
+
import { z } from "zod";
|
|
8
|
+
import { getErrorCollector } from "../../../src/observability/index.js";
|
|
9
|
+
import { vfGetProjectContext } from "./project-tools.js";
|
|
10
|
+
import { vfGetConventions } from "./scaffold-tools.js";
|
|
11
|
+
const bootstrapInput = z.object({
|
|
12
|
+
projectPath: z.string().optional().describe("Project directory (defaults to current working directory)"),
|
|
13
|
+
});
|
|
14
|
+
export const vfBootstrap = {
|
|
15
|
+
name: "vf_bootstrap",
|
|
16
|
+
title: "Bootstrap",
|
|
17
|
+
annotations: {
|
|
18
|
+
readOnlyHint: true,
|
|
19
|
+
destructiveHint: false,
|
|
20
|
+
idempotentHint: true,
|
|
21
|
+
openWorldHint: false,
|
|
22
|
+
},
|
|
23
|
+
description: "Use this at the start of a new session to get full project context in one call. " +
|
|
24
|
+
"Returns project structure, coding conventions, current errors, and server status. " +
|
|
25
|
+
"Equivalent to calling vf_get_project_context + vf_get_conventions + vf_get_errors + " +
|
|
26
|
+
"vf_get_status separately, but in a single round-trip. " +
|
|
27
|
+
"Do not use repeatedly — call once at session bootstrap.",
|
|
28
|
+
inputSchema: bootstrapInput,
|
|
29
|
+
execute: async (input) => {
|
|
30
|
+
const [project, conventions] = await Promise.all([
|
|
31
|
+
vfGetProjectContext.execute({ projectPath: input.projectPath }),
|
|
32
|
+
vfGetConventions.execute({ topic: "all" }),
|
|
33
|
+
]);
|
|
34
|
+
let errors = [];
|
|
35
|
+
let running = false;
|
|
36
|
+
try {
|
|
37
|
+
const collector = getErrorCollector();
|
|
38
|
+
errors = collector.getAll();
|
|
39
|
+
running = true;
|
|
40
|
+
}
|
|
41
|
+
catch {
|
|
42
|
+
running = false;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
project,
|
|
46
|
+
conventions,
|
|
47
|
+
errors: { total: errors.length, items: errors.slice(-20) },
|
|
48
|
+
status: { running },
|
|
49
|
+
};
|
|
50
|
+
},
|
|
51
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MCP tool for production builds.
|
|
3
|
+
*/
|
|
4
|
+
import { z } from "zod";
|
|
5
|
+
import type { MCPTool } from "../tools.js";
|
|
6
|
+
declare const buildInput: z.ZodObject<{
|
|
7
|
+
outputDir: z.ZodOptional<z.ZodString>;
|
|
8
|
+
splitting: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
9
|
+
compress: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10
|
+
ssg: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
11
|
+
dryRun: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
type BuildInput = z.infer<typeof buildInput>;
|
|
14
|
+
interface BuildResult {
|
|
15
|
+
success: boolean;
|
|
16
|
+
pages?: number;
|
|
17
|
+
chunks?: number;
|
|
18
|
+
assets?: number;
|
|
19
|
+
totalSize?: number;
|
|
20
|
+
duration_ms?: number;
|
|
21
|
+
outputDir?: string;
|
|
22
|
+
dryRun?: boolean;
|
|
23
|
+
ssgPaths?: string[];
|
|
24
|
+
error?: string;
|
|
25
|
+
}
|
|
26
|
+
export declare const vfBuild: MCPTool<BuildInput, BuildResult>;
|
|
27
|
+
export {};
|
|
28
|
+
//# sourceMappingURL=build-tool.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-tool.d.ts","sourceRoot":"","sources":["../../../../src/cli/mcp/tools/build-tool.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAM3C,QAAA,MAAM,UAAU;;;;;;iBAyBd,CAAC;AAEH,KAAK,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAE7C,UAAU,WAAW;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,OAAO,EAAE,OAAO,CAAC,UAAU,EAAE,WAAW,CAyDpD,CAAC"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MCP tool for production builds.
|
|
3
|
+
*/
|
|
4
|
+
import { z } from "zod";
|
|
5
|
+
import { cwd } from "../../../src/platform/index.js";
|
|
6
|
+
import { join } from "../../../src/platform/compat/path/index.js";
|
|
7
|
+
import { buildProduction } from "../../../src/build/index.js";
|
|
8
|
+
import { withSpan } from "../../../src/observability/tracing/otlp-setup.js";
|
|
9
|
+
// ============================================================================
|
|
10
|
+
// Tool: vf_build
|
|
11
|
+
// ============================================================================
|
|
12
|
+
const buildInput = z.object({
|
|
13
|
+
outputDir: z
|
|
14
|
+
.string()
|
|
15
|
+
.optional()
|
|
16
|
+
.describe("Output directory for the build. Defaults to '<projectDir>/dist'."),
|
|
17
|
+
splitting: z
|
|
18
|
+
.boolean()
|
|
19
|
+
.optional()
|
|
20
|
+
.default(true)
|
|
21
|
+
.describe("Enable code splitting. Defaults to true."),
|
|
22
|
+
compress: z
|
|
23
|
+
.boolean()
|
|
24
|
+
.optional()
|
|
25
|
+
.default(true)
|
|
26
|
+
.describe("Enable compression (gzip/brotli). Defaults to true."),
|
|
27
|
+
ssg: z
|
|
28
|
+
.boolean()
|
|
29
|
+
.optional()
|
|
30
|
+
.default(true)
|
|
31
|
+
.describe("Enable static site generation. Defaults to true."),
|
|
32
|
+
dryRun: z
|
|
33
|
+
.boolean()
|
|
34
|
+
.optional()
|
|
35
|
+
.default(false)
|
|
36
|
+
.describe("Preview the build without writing files to disk. Defaults to false."),
|
|
37
|
+
});
|
|
38
|
+
export const vfBuild = {
|
|
39
|
+
name: "vf_build",
|
|
40
|
+
title: "Production Build",
|
|
41
|
+
annotations: {
|
|
42
|
+
readOnlyHint: false,
|
|
43
|
+
destructiveHint: false,
|
|
44
|
+
idempotentHint: true,
|
|
45
|
+
openWorldHint: false,
|
|
46
|
+
},
|
|
47
|
+
description: "Use this when you need to run a production build for the current project. " +
|
|
48
|
+
"Bundles, optimises, and writes output to the dist directory. " +
|
|
49
|
+
"Use dryRun=true to preview the build without writing files. " +
|
|
50
|
+
"Do not use for development — use the dev server tools instead. " +
|
|
51
|
+
"Do not use for lint checks — use vf_run_lint instead.",
|
|
52
|
+
inputSchema: buildInput,
|
|
53
|
+
execute: (input) => withSpan("cli.mcp.tool.vf_build", async () => {
|
|
54
|
+
const projectDir = cwd();
|
|
55
|
+
const outputDir = input.outputDir ?? join(projectDir, "dist");
|
|
56
|
+
const startTime = Date.now();
|
|
57
|
+
try {
|
|
58
|
+
const stats = await buildProduction({
|
|
59
|
+
projectDir,
|
|
60
|
+
outputDir,
|
|
61
|
+
enableSplitting: input.splitting,
|
|
62
|
+
enableCompression: input.compress,
|
|
63
|
+
ssg: input.ssg,
|
|
64
|
+
dryRun: input.dryRun,
|
|
65
|
+
});
|
|
66
|
+
const duration_ms = Date.now() - startTime;
|
|
67
|
+
return {
|
|
68
|
+
success: true,
|
|
69
|
+
pages: stats.pages,
|
|
70
|
+
chunks: stats.chunks,
|
|
71
|
+
assets: stats.assets,
|
|
72
|
+
totalSize: stats.totalSize,
|
|
73
|
+
duration_ms,
|
|
74
|
+
outputDir,
|
|
75
|
+
dryRun: input.dryRun,
|
|
76
|
+
ssgPaths: stats.ssgPaths,
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
catch (error) {
|
|
80
|
+
const duration_ms = Date.now() - startTime;
|
|
81
|
+
return {
|
|
82
|
+
success: false,
|
|
83
|
+
error: error instanceof Error ? error.message : String(error),
|
|
84
|
+
duration_ms,
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
}, { "tool.dryRun": input.dryRun }),
|
|
88
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import type { MCPTool } from "../tools.js";
|
|
3
|
+
import { type LintResult } from "../../commands/lint/command.js";
|
|
4
|
+
declare const runLintInput: z.ZodObject<{
|
|
5
|
+
timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
type RunLintInput = z.infer<typeof runLintInput>;
|
|
8
|
+
/** Spawn deno lint and return structured results. Exported for standalone reuse. */
|
|
9
|
+
export declare function executeLint(input?: {
|
|
10
|
+
timeout?: number;
|
|
11
|
+
}): Promise<LintResult>;
|
|
12
|
+
export declare const vfRunLint: MCPTool<RunLintInput, LintResult>;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=run-lint-tool.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-lint-tool.d.ts","sourceRoot":"","sources":["../../../../src/cli/mcp/tools/run-lint-tool.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,KAAK,UAAU,EAAuB,MAAM,gCAAgC,CAAC;AAEtF,QAAA,MAAM,YAAY;;iBAIhB,CAAC;AAEH,KAAK,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAEjD,oFAAoF;AACpF,wBAAsB,WAAW,CAC/B,KAAK,GAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAO,GAC/B,OAAO,CAAC,UAAU,CAAC,CA2BrB;AAED,eAAO,MAAM,SAAS,EAAE,OAAO,CAAC,YAAY,EAAE,UAAU,CAevD,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MCP tool: vf_run_lint
|
|
3
|
+
*
|
|
4
|
+
* Runs the linter via subprocess and returns structured diagnostics.
|
|
5
|
+
* Reuses parseLintJsonOutput from the CLI lint command.
|
|
6
|
+
*/
|
|
7
|
+
import * as dntShim from "../../../_dnt.shims.js";
|
|
8
|
+
import { z } from "zod";
|
|
9
|
+
import { parseLintJsonOutput } from "../../commands/lint/command.js";
|
|
10
|
+
const runLintInput = z.object({
|
|
11
|
+
timeout: z.number().optional().default(120000).describe("Maximum time to wait for lint completion in milliseconds. Defaults to 120000 (2 minutes)."),
|
|
12
|
+
});
|
|
13
|
+
/** Spawn deno lint and return structured results. Exported for standalone reuse. */
|
|
14
|
+
export async function executeLint(input = {}) {
|
|
15
|
+
const cmd = new dntShim.Deno.Command("deno", {
|
|
16
|
+
args: ["lint", "--json"],
|
|
17
|
+
stdout: "piped",
|
|
18
|
+
stderr: "piped",
|
|
19
|
+
});
|
|
20
|
+
const child = cmd.spawn();
|
|
21
|
+
const timeoutMs = input.timeout ?? 120000;
|
|
22
|
+
const result = await Promise.race([
|
|
23
|
+
child.output(),
|
|
24
|
+
new Promise((_, reject) => {
|
|
25
|
+
const timer = dntShim.setTimeout(() => {
|
|
26
|
+
try {
|
|
27
|
+
child.kill();
|
|
28
|
+
}
|
|
29
|
+
catch {
|
|
30
|
+
// Process may have already exited
|
|
31
|
+
}
|
|
32
|
+
reject(new Error(`Lint execution timed out after ${timeoutMs}ms`));
|
|
33
|
+
}, timeoutMs);
|
|
34
|
+
dntShim.Deno.unrefTimer(timer);
|
|
35
|
+
}),
|
|
36
|
+
]);
|
|
37
|
+
const stdout = new TextDecoder().decode(result.stdout);
|
|
38
|
+
return parseLintJsonOutput(stdout, result.code);
|
|
39
|
+
}
|
|
40
|
+
export const vfRunLint = {
|
|
41
|
+
name: "vf_run_lint",
|
|
42
|
+
title: "Run Lint",
|
|
43
|
+
annotations: {
|
|
44
|
+
readOnlyHint: true,
|
|
45
|
+
destructiveHint: false,
|
|
46
|
+
idempotentHint: true,
|
|
47
|
+
openWorldHint: false,
|
|
48
|
+
},
|
|
49
|
+
description: "Use this when you need to check for lint issues in the project. " +
|
|
50
|
+
"Returns structured diagnostics with file path, line, column, rule code, and message for each issue. " +
|
|
51
|
+
"Do not use for test results — use vf_run_tests instead. " +
|
|
52
|
+
"Do not use for compile/runtime errors — use vf_get_errors instead.",
|
|
53
|
+
inputSchema: runLintInput,
|
|
54
|
+
execute: (input) => executeLint(input),
|
|
55
|
+
};
|
package/esm/deno.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-stream.d.ts","sourceRoot":"","sources":["../../../src/src/agent/data-stream.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAMzE,wBAAgB,kCAAkC,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAmB1E;AAED,wBAAgB,mBAAmB,CAAC,gBAAgB,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"data-stream.d.ts","sourceRoot":"","sources":["../../../src/src/agent/data-stream.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAMzE,wBAAgB,kCAAkC,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAmB1E;AAED,wBAAgB,mBAAmB,CAAC,gBAAgB,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAwCvF;AAED,wBAAgB,kBAAkB,CAAC,gBAAgB,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAoBtF;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAiB5E;AAED,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG;IACvD,MAAM,EAAE,sBAAsB,EAAE,CAAC;IACjC,SAAS,EAAE,MAAM,CAAC;CACnB,CAoBA;AAED,wBAAuB,sBAAsB,CAC3C,MAAM,EAAE,cAAc,CAAC,UAAU,CAAC,GACjC,cAAc,CAAC,sBAAsB,CAAC,CAkCxC"}
|
|
@@ -18,13 +18,15 @@ export function stripLeadingEmptyObjectPlaceholder(rawArgs) {
|
|
|
18
18
|
return normalized;
|
|
19
19
|
}
|
|
20
20
|
export function mergeToolInputDelta(currentArguments, nextDelta) {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
21
|
+
const normalizedDelta = nextDelta.trimStart();
|
|
22
|
+
const candidateDeltas = normalizedDelta.startsWith('"')
|
|
23
|
+
? [normalizedDelta, `{${normalizedDelta}`]
|
|
24
|
+
: [normalizedDelta];
|
|
25
|
+
if (currentArguments === "{}" || currentArguments.length === 0) {
|
|
26
|
+
for (const candidate of candidateDeltas) {
|
|
27
|
+
if (candidate.startsWith("{")) {
|
|
28
|
+
return candidate;
|
|
29
|
+
}
|
|
28
30
|
}
|
|
29
31
|
}
|
|
30
32
|
if (nextDelta.length === 0) {
|
|
@@ -33,16 +35,18 @@ export function mergeToolInputDelta(currentArguments, nextDelta) {
|
|
|
33
35
|
if (currentArguments.length === 0) {
|
|
34
36
|
return nextDelta;
|
|
35
37
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
38
|
+
for (const candidate of candidateDeltas) {
|
|
39
|
+
if (candidate === currentArguments || currentArguments.includes(candidate)) {
|
|
40
|
+
return currentArguments;
|
|
41
|
+
}
|
|
42
|
+
if (candidate.startsWith(currentArguments)) {
|
|
43
|
+
return candidate;
|
|
44
|
+
}
|
|
45
|
+
const maxOverlap = Math.min(currentArguments.length, candidate.length);
|
|
46
|
+
for (let overlap = maxOverlap; overlap > 0; overlap--) {
|
|
47
|
+
if (currentArguments.endsWith(candidate.slice(0, overlap))) {
|
|
48
|
+
return currentArguments + candidate.slice(overlap);
|
|
49
|
+
}
|
|
46
50
|
}
|
|
47
51
|
}
|
|
48
52
|
return currentArguments + nextDelta;
|
|
@@ -51,9 +55,13 @@ export function mergeToolCallInput(currentArguments, nextInput) {
|
|
|
51
55
|
if (currentArguments.length === 0) {
|
|
52
56
|
return nextInput;
|
|
53
57
|
}
|
|
58
|
+
const normalizedCurrent = stripLeadingEmptyObjectPlaceholder(currentArguments);
|
|
54
59
|
if (nextInput.trim() === "{}" && currentArguments.trim().startsWith("{")) {
|
|
55
60
|
return currentArguments;
|
|
56
61
|
}
|
|
62
|
+
if (nextInput.trim() === "{}" && normalizedCurrent.trim().startsWith("{")) {
|
|
63
|
+
return normalizedCurrent;
|
|
64
|
+
}
|
|
57
65
|
if (currentArguments.trim() === "{}" && nextInput.trim().startsWith("{")) {
|
|
58
66
|
return nextInput;
|
|
59
67
|
}
|
|
@@ -2,4 +2,6 @@ export declare const DEFAULT_MAX_TOKENS: 4096;
|
|
|
2
2
|
export declare const DEFAULT_TEMPERATURE: 0.7;
|
|
3
3
|
export declare const MAX_STREAM_BUFFER_SIZE: number;
|
|
4
4
|
export declare const DEFAULT_MAX_STEPS = 20;
|
|
5
|
+
/** Look up max output tokens for a model, stripping the `veryfront-cloud/` prefix. */
|
|
6
|
+
export declare function getModelMaxOutputTokens(modelString: string): number | undefined;
|
|
5
7
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/runtime/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB,MAA2B,CAAC;AAC3D,eAAO,MAAM,mBAAmB,KAA6B,CAAC;AAC9D,eAAO,MAAM,sBAAsB,QAAmC,CAAC;AACvE,eAAO,MAAM,iBAAiB,KAAK,CAAC"}
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/runtime/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB,MAA2B,CAAC;AAC3D,eAAO,MAAM,mBAAmB,KAA6B,CAAC;AAC9D,eAAO,MAAM,sBAAsB,QAAmC,CAAC;AACvE,eAAO,MAAM,iBAAiB,KAAK,CAAC;AAYpC,sFAAsF;AACtF,wBAAgB,uBAAuB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAK/E"}
|
|
@@ -3,3 +3,19 @@ export const DEFAULT_MAX_TOKENS = AGENT_DEFAULTS.maxTokens;
|
|
|
3
3
|
export const DEFAULT_TEMPERATURE = AGENT_DEFAULTS.temperature;
|
|
4
4
|
export const MAX_STREAM_BUFFER_SIZE = STREAMING_DEFAULTS.maxBufferSize;
|
|
5
5
|
export const DEFAULT_MAX_STEPS = 20;
|
|
6
|
+
/** Max output token limits per model (normalized IDs without `veryfront-cloud/` prefix). */
|
|
7
|
+
const MODEL_MAX_OUTPUT_TOKENS = {
|
|
8
|
+
"anthropic/claude-opus-4-6": 32_768,
|
|
9
|
+
"anthropic/claude-sonnet-4-6": 16_384,
|
|
10
|
+
"anthropic/claude-haiku-4-5-20251001": 8_192,
|
|
11
|
+
"openai/gpt-5.2": 16_384,
|
|
12
|
+
"google-ai-studio/gemini-2.5-pro": 65_536,
|
|
13
|
+
"google-ai-studio/gemini-2.5-flash": 8_192,
|
|
14
|
+
};
|
|
15
|
+
/** Look up max output tokens for a model, stripping the `veryfront-cloud/` prefix. */
|
|
16
|
+
export function getModelMaxOutputTokens(modelString) {
|
|
17
|
+
const normalized = modelString.startsWith("veryfront-cloud/")
|
|
18
|
+
? modelString.slice("veryfront-cloud/".length)
|
|
19
|
+
: modelString;
|
|
20
|
+
return MODEL_MAX_OUTPUT_TOKENS[normalized];
|
|
21
|
+
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*
|
|
11
11
|
* @module ai/agent/runtime
|
|
12
12
|
*/
|
|
13
|
-
import { type AgentConfig, type AgentResponse, type Message, type ToolCall, type ToolResultPart } from "../types.js";
|
|
13
|
+
import { type AgentConfig, type AgentResponse, type Message, type MessagePart, type ToolCall, type ToolResultPart } from "../types.js";
|
|
14
14
|
import { type Memory } from "../memory/index.js";
|
|
15
15
|
import { type ChatStreamState, type StreamingToolCall, type StreamingToolResult } from "./chat-stream-handler.js";
|
|
16
16
|
export { closeSSEStream, generateMessageId, sendSSE } from "./sse-utils.js";
|
|
@@ -31,6 +31,57 @@ export declare function captureStreamedToolCallInput(toolCall: Pick<StreamingToo
|
|
|
31
31
|
inputText?: string;
|
|
32
32
|
parseError?: string;
|
|
33
33
|
};
|
|
34
|
+
/**
|
|
35
|
+
* A streamed tool call is "incomplete" when the provider stream terminated
|
|
36
|
+
* (abort, stall, timeout, transport error) before the SDK emitted the
|
|
37
|
+
* finalizing `tool-call` event that sets `inputAvailable: true`. In that state
|
|
38
|
+
* `arguments` only holds partial JSON fragments from `tool-input-delta` events,
|
|
39
|
+
* so the tool call is NOT a committed model choice and must not be parsed or
|
|
40
|
+
* executed. This is semantically distinct from a parse failure on a finalized
|
|
41
|
+
* tool call (`inputAvailable: true` but malformed JSON — which only happens on
|
|
42
|
+
* genuine provider bugs) and needs to be reported as a stream-termination
|
|
43
|
+
* error rather than a tool-argument error.
|
|
44
|
+
*/
|
|
45
|
+
export declare function isStreamedToolCallIncomplete(toolCall: Pick<StreamingToolCall, "inputAvailable">): boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Classification of a streamed tool call when we reach end-of-stream and need
|
|
48
|
+
* to persist it into the assistant message. Three distinct cases, each with
|
|
49
|
+
* different semantics downstream:
|
|
50
|
+
*
|
|
51
|
+
* - `complete`: provider emitted the finalizing `tool-call` event and the
|
|
52
|
+
* arguments parsed cleanly. Execute the tool normally.
|
|
53
|
+
* - `parse-error`: provider emitted the finalizing `tool-call` event but the
|
|
54
|
+
* arguments are not valid JSON. This is a provider/SDK bug; record it as a
|
|
55
|
+
* tool-argument error so the step can recover.
|
|
56
|
+
* - `incomplete`: stream terminated before the finalizing event fired. The
|
|
57
|
+
* model never committed this tool use; record it as a stream-termination
|
|
58
|
+
* error so the parent (e.g. child-fork watchdog) can decide whether to
|
|
59
|
+
* retry the step cleanly instead of seeing a malformed tool call.
|
|
60
|
+
*/
|
|
61
|
+
export type StreamedToolCallMaterialization = {
|
|
62
|
+
readonly kind: "complete";
|
|
63
|
+
readonly part: MessagePart;
|
|
64
|
+
} | {
|
|
65
|
+
readonly kind: "parse-error";
|
|
66
|
+
readonly part: MessagePart;
|
|
67
|
+
readonly parseError: string;
|
|
68
|
+
} | {
|
|
69
|
+
readonly kind: "incomplete";
|
|
70
|
+
readonly part: MessagePart;
|
|
71
|
+
readonly partialArgumentsLength: number;
|
|
72
|
+
readonly partialArgumentsPreview: string;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* Classify and build the persisted `MessagePart` for a single streamed tool
|
|
76
|
+
* call. Pure function — no logging, no SSE, no memory. Callers decide what to
|
|
77
|
+
* do with the result so this stays unit-testable.
|
|
78
|
+
*
|
|
79
|
+
* The resulting `part` is always pushed into the assistant message so the
|
|
80
|
+
* conversation history is transparent: even incomplete tool calls leave a
|
|
81
|
+
* visible trace with their partial `inputText`. What differs is the caller's
|
|
82
|
+
* error-surfacing behavior (log warning, SSE event, tool-result error).
|
|
83
|
+
*/
|
|
84
|
+
export declare function materializeStreamedToolCall(tc: StreamingToolCall): StreamedToolCallMaterialization;
|
|
34
85
|
/**
|
|
35
86
|
* Extract and validate the skill policy from a load-skill tool result.
|
|
36
87
|
* Returns `[]` (no tools allowed) for invalid/missing policies instead of
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/runtime/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EACL,KAAK,WAAW,EAEhB,KAAK,aAAa,EAGlB,KAAK,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/runtime/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EACL,KAAK,WAAW,EAEhB,KAAK,aAAa,EAGlB,KAAK,OAAO,EACZ,KAAK,WAAW,EAEhB,KAAK,QAAQ,EACb,KAAK,cAAc,EACpB,MAAM,aAAa,CAAC;AAIrB,OAAO,EAAgB,KAAK,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAU/D,OAAO,EACL,KAAK,eAAe,EAGpB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACzB,MAAM,0BAA0B,CAAC;AAUlC,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAC5E,OAAO,EACL,qBAAqB,EACrB,iBAAiB,EACjB,iBAAiB,EACjB,uBAAuB,EACvB,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EACV,8BAA8B,EAC9B,gBAAgB,EAChB,wBAAwB,GACzB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,qBAAqB,EACrB,iBAAiB,EACjB,aAAa,EACb,aAAa,GACd,MAAM,mBAAmB,CAAC;AAC3B,YAA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