veryfront 0.1.543 → 0.1.544

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/deno.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  "name": "veryfront",
3
- "version": "0.1.543",
3
+ "version": "0.1.544",
4
4
  "license": "Apache-2.0",
5
5
  "nodeModulesDir": "auto",
6
6
  "workspace": [
@@ -1 +1 @@
1
- {"version":3,"file":"result.d.ts","sourceRoot":"","sources":["../../../../../src/src/agent/testing/live-evals/result.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAExD,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,eAAe,CAAC;IACzB,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,wBAAgB,uBAAuB,CAAC,KAAK,EAAE;IAC7C,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,eAAe,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB,GAAG,oBAAoB,CASvB;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,eAAe,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,oBAAoB,CAgBvB;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,eAAe,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,oBAAoB,CAgBvB"}
1
+ {"version":3,"file":"result.d.ts","sourceRoot":"","sources":["../../../../../src/src/agent/testing/live-evals/result.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAExD,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,eAAe,CAAC;IACzB,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM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AC;IACf,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,oBAAoB,CAEvB"}
@@ -1,19 +1,9 @@
1
- export function createSkippedEvalResult(input) {
1
+ function createEvalResult(status, input) {
2
2
  return {
3
3
  id: input.id,
4
4
  label: input.label,
5
5
  runtime: input.runtime,
6
- status: "skip",
7
- details: input.details,
8
- durationMs: Date.now() - input.startedAt,
9
- };
10
- }
11
- export function createFailedEvalResult(input) {
12
- return {
13
- id: input.id,
14
- label: input.label,
15
- runtime: input.runtime,
16
- status: "fail",
6
+ status,
17
7
  details: input.details,
18
8
  durationMs: Date.now() - input.startedAt,
19
9
  ...(input.conversationId ? { conversationId: input.conversationId } : {}),
@@ -25,20 +15,19 @@ export function createFailedEvalResult(input) {
25
15
  ...(input.textPreview ? { textPreview: input.textPreview } : {}),
26
16
  };
27
17
  }
28
- export function createPassedEvalResult(input) {
18
+ export function createSkippedEvalResult(input) {
29
19
  return {
30
20
  id: input.id,
31
21
  label: input.label,
32
22
  runtime: input.runtime,
33
- status: "pass",
23
+ status: "skip",
34
24
  details: input.details,
35
25
  durationMs: Date.now() - input.startedAt,
36
- ...(input.conversationId ? { conversationId: input.conversationId } : {}),
37
- ...(input.runId ? { runId: input.runId } : {}),
38
- ...(input.artifactPaths?.length ? { artifactPaths: input.artifactPaths } : {}),
39
- ...(input.traceSignature ? { traceSignature: input.traceSignature } : {}),
40
- ...(input.toolStarts ? { toolStarts: input.toolStarts } : {}),
41
- ...(input.toolArgsPreview ? { toolArgsPreview: input.toolArgsPreview } : {}),
42
- ...(input.textPreview ? { textPreview: input.textPreview } : {}),
43
26
  };
44
27
  }
28
+ export function createFailedEvalResult(input) {
29
+ return createEvalResult("fail", input);
30
+ }
31
+ export function createPassedEvalResult(input) {
32
+ return createEvalResult("pass", input);
33
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../src/src/mcp/server.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAI7D,OAAO,KAAK,EAAE,eAAe,EAAiB,MAAM,YAAY,CAAC;AAIjE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAWzE,KAAK,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,EAAE,CAAC;AA2CzD,UAAU,cAAc;IACtB,OAAO,EAAE,KAAK,CAAC;IACf,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,aAAa,CAAC;CACxB;AAED,UAAU,eAAe;IACvB,OAAO,EAAE,KAAK,CAAC;IACf,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;QAChB,IAAI,CAAC,EAAE,OAAO,CAAC;KAChB,CAAC;CACH;AAED,MAAM,WAAW,uBAAuB;IACtC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,wBAAwB,GAAG,SAAS,CAAC,CAAC;IACnE,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAID,qBAAa,SAAS;IACpB,OAAO,CAAC,MAAM,CAAC,UAAU,CASd;IACX,OAAO,CAAC,QAAQ,CAAkD;IAClE,OAAO,CAAC,MAAM,CAAkB;IAChC,OAAO,CAAC,iBAAiB,CAAC,CAA0B;IACpD,OAAO,CAAC,kBAAkB,CAAS;IACnC,OAAO,CAAC,cAAc,CAAwB;IAC9C,OA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clB,OAAO,CAAC,SAAS;IAIjB,0EAA0E;IAC1E,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC;IAIpC,iBAAiB,IAAI,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,QAAQ,CAAC;IAiB5D,OAAO,CAAC,qBAAqB;YAgBf,YAAY;IAoB1B,OAAO,CAAC,cAAc;YAsBR,0BAA0B;CA0BzC;AAED,wBAAgB,eAAe,CAAC,MAAM,EAAE,eAAe,GAAG,SAAS,CAElE"}
@@ -300,17 +300,32 @@ export class MCPServer {
300
300
  const rawTtl = typeof taskParam.ttl === "number" ? taskParam.ttl : 60000;
301
301
  const ttl = Math.max(MIN_TTL, Math.min(MAX_TTL, rawTtl));
302
302
  const task = this.taskStore.create(ttl);
303
+ const abortController = new AbortController();
304
+ const outerAbortSignal = toolContext?.abortSignal;
305
+ const abortFromOuterSignal = () => abortController.abort();
306
+ if (outerAbortSignal?.aborted) {
307
+ abortController.abort();
308
+ }
309
+ else {
310
+ outerAbortSignal?.addEventListener("abort", abortFromOuterSignal, { once: true });
311
+ }
312
+ const taskToolContext = {
313
+ ...toolContext,
314
+ abortSignal: abortController.signal,
315
+ };
303
316
  // Run tool in background, update task on completion
304
- // TODO(#842): wire AbortController so that tasks/cancel actually aborts the running tool execution
305
317
  const pending = withSpan("mcp.callTool.async", async () => {
306
318
  try {
307
- const result = await executeTool(toolName, args, toolContext);
319
+ const result = await executeTool(toolName, args, taskToolContext);
308
320
  this.taskStore.complete(task.taskId, {
309
321
  content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
310
322
  isError: false,
311
323
  });
312
324
  }
313
325
  catch (error) {
326
+ if (this.taskStore.get(task.taskId)?.status === "cancelled") {
327
+ return;
328
+ }
314
329
  const message = error instanceof Error ? error.message : String(error);
315
330
  logger.warn("Async tool execution failed", {
316
331
  tool: toolName,
@@ -319,10 +334,11 @@ export class MCPServer {
319
334
  });
320
335
  this.taskStore.fail(task.taskId, message);
321
336
  }
322
- }, { "mcp.tool.name": toolName, "mcp.task.id": task.taskId }).then(() => {
337
+ }, { "mcp.tool.name": toolName, "mcp.task.id": task.taskId }).finally(() => {
338
+ outerAbortSignal?.removeEventListener("abort", abortFromOuterSignal);
323
339
  this.pendingTasks.delete(task.taskId);
324
340
  });
325
- this.pendingTasks.set(task.taskId, pending);
341
+ this.pendingTasks.set(task.taskId, { promise: pending, abortController });
326
342
  return Promise.resolve({ task });
327
343
  }
328
344
  return withSpan("mcp.callTool", async () => {
@@ -497,6 +513,7 @@ export class MCPServer {
497
513
  if (!cancelled) {
498
514
  throw new JsonRpcError(-32002, `Cannot cancel task: ${taskId}`);
499
515
  }
516
+ this.pendingTasks.get(String(taskId))?.abortController.abort();
500
517
  const task = this.taskStore.get(String(taskId));
501
518
  return Promise.resolve({ ...task });
502
519
  }
@@ -505,7 +522,7 @@ export class MCPServer {
505
522
  }
506
523
  /** Wait for all background task executions to settle. Useful in tests. */
507
524
  waitForPendingTasks() {
508
- return Promise.all(this.pendingTasks.values()).then(() => { });
525
+ return Promise.all(Array.from(this.pendingTasks.values(), (run) => run.promise)).then(() => { });
509
526
  }
510
527
  createHTTPHandler() {
511
528
  return createMCPHTTPHandler({
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.1.543";
1
+ export declare const VERSION = "0.1.544";
2
2
  //# sourceMappingURL=version-constant.d.ts.map
@@ -1,3 +1,3 @@
1
1
  // Keep in sync with deno.json version.
2
2
  // scripts/release.ts updates this constant during releases.
3
- export const VERSION = "0.1.543";
3
+ export const VERSION = "0.1.544";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "veryfront",
3
- "version": "0.1.543",
3
+ "version": "0.1.544",
4
4
  "description": "The simplest way to build AI-powered apps",
5
5
  "keywords": [
6
6
  "react",
package/src/deno.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  "name": "veryfront",
3
- "version": "0.1.543",
3
+ "version": "0.1.544",
4
4
  "license": "Apache-2.0",
5
5
  "nodeModulesDir": "auto",
6
6
  "workspace": [
@@ -4,7 +4,7 @@
4
4
 
5
5
  // See https://github.com/facebook/react/blob/main/packages/react-dom/client.js to see how the exports are declared,
6
6
 
7
- import React = require("https://esm.sh/@types/react@19.2.14/index.d.ts");
7
+ import React = require("https://esm.sh/@types/react@19.2.3/index.d.ts");
8
8
 
9
9
  export {};
10
10
 
@@ -0,0 +1,165 @@
1
+ /*
2
+ React projects that don't include the DOM library need these interfaces to compile.
3
+ React Native applications use React, but there is no DOM available. The JavaScript runtime
4
+ is ES6/ES2015 only. These definitions allow such projects to compile with only `--lib ES6`.
5
+
6
+ Warning: all of these interfaces are empty. If you want type definitions for various properties
7
+ (such as HTMLInputElement.prototype.value), you need to add `--lib DOM` (via command line or tsconfig.json).
8
+ */
9
+
10
+ interface Event {}
11
+ interface AnimationEvent extends Event {}
12
+ interface ClipboardEvent extends Event {}
13
+ interface CompositionEvent extends Event {}
14
+ interface DragEvent extends Event {}
15
+ interface FocusEvent extends Event {}
16
+ interface InputEvent extends Event {}
17
+ interface KeyboardEvent extends Event {}
18
+ interface MouseEvent extends Event {}
19
+ interface TouchEvent extends Event {}
20
+ interface PointerEvent extends Event {}
21
+ interface ToggleEvent extends Event {}
22
+ interface TransitionEvent extends Event {}
23
+ interface UIEvent extends Event {}
24
+ interface WheelEvent extends Event {}
25
+
26
+ interface EventTarget {}
27
+ interface Document {}
28
+ interface DataTransfer {}
29
+ interface StyleMedia {}
30
+
31
+ interface Element {}
32
+ interface DocumentFragment {}
33
+
34
+ interface HTMLElement extends Element {}
35
+ interface HTMLAnchorElement extends HTMLElement {}
36
+ interface HTMLAreaElement extends HTMLElement {}
37
+ interface HTMLAudioElement extends HTMLElement {}
38
+ interface HTMLBaseElement extends HTMLElement {}
39
+ interface HTMLBodyElement extends HTMLElement {}
40
+ interface HTMLBRElement extends HTMLElement {}
41
+ interface HTMLButtonElement extends HTMLElement {}
42
+ interface HTMLCanvasElement extends HTMLElement {}
43
+ interface HTMLDataElement extends HTMLElement {}
44
+ interface HTMLDataListElement extends HTMLElement {}
45
+ interface HTMLDetailsElement extends HTMLElement {}
46
+ interface HTMLDialogElement extends HTMLElement {}
47
+ interface HTMLDivElement extends HTMLElement {}
48
+ interface HTMLDListElement extends HTMLElement {}
49
+ interface HTMLEmbedElement extends HTMLElement {}
50
+ interface HTMLFieldSetElement extends HTMLElement {}
51
+ interface HTMLFormElement extends HTMLElement {}
52
+ interface HTMLHeadingElement extends HTMLElement {}
53
+ interface HTMLHeadElement extends HTMLElement {}
54
+ interface HTMLHRElement extends HTMLElement {}
55
+ interface HTMLHtmlElement extends HTMLElement {}
56
+ interface HTMLIFrameElement extends HTMLElement {}
57
+ interface HTMLImageElement extends HTMLElement {}
58
+ interface HTMLInputElement extends HTMLElement {}
59
+ interface HTMLModElement extends HTMLElement {}
60
+ interface HTMLLabelElement extends HTMLElement {}
61
+ interface HTMLLegendElement extends HTMLElement {}
62
+ interface HTMLLIElement extends HTMLElement {}
63
+ interface HTMLLinkElement extends HTMLElement {}
64
+ interface HTMLMapElement extends HTMLElement {}
65
+ interface HTMLMetaElement extends HTMLElement {}
66
+ interface HTMLMeterElement extends HTMLElement {}
67
+ interface HTMLObjectElement extends HTMLElement {}
68
+ interface HTMLOListElement extends HTMLElement {}
69
+ interface HTMLOptGroupElement extends HTMLElement {}
70
+ interface HTMLOptionElement extends HTMLElement {}
71
+ interface HTMLOutputElement extends HTMLElement {}
72
+ interface HTMLParagraphElement extends HTMLElement {}
73
+ interface HTMLParamElement extends HTMLElement {}
74
+ interface HTMLPreElement extends HTMLElement {}
75
+ interface HTMLProgressElement extends HTMLElement {}
76
+ interface HTMLQuoteElement extends HTMLElement {}
77
+ interface HTMLSlotElement extends HTMLElement {}
78
+ interface HTMLScriptElement extends HTMLElement {}
79
+ interface HTMLSelectElement extends HTMLElement {}
80
+ interface HTMLSourceElement extends HTMLElement {}
81
+ interface HTMLSpanElement extends HTMLElement {}
82
+ interface HTMLStyleElement extends HTMLElement {}
83
+ interface HTMLTableElement extends HTMLElement {}
84
+ interface HTMLTableColElement extends HTMLElement {}
85
+ interface HTMLTableDataCellElement extends HTMLElement {}
86
+ interface HTMLTableHeaderCellElement extends HTMLElement {}
87
+ interface HTMLTableRowElement extends HTMLElement {}
88
+ interface HTMLTableSectionElement extends HTMLElement {}
89
+ interface HTMLTemplateElement extends HTMLElement {}
90
+ interface HTMLTextAreaElement extends HTMLElement {}
91
+ interface HTMLTimeElement extends HTMLElement {}
92
+ interface HTMLTitleElement extends HTMLElement {}
93
+ interface HTMLTrackElement extends HTMLElement {}
94
+ interface HTMLUListElement extends HTMLElement {}
95
+ interface HTMLVideoElement extends HTMLElement {}
96
+ interface HTMLWebViewElement extends HTMLElement {}
97
+
98
+ interface SVGElement extends Element {}
99
+ interface SVGSVGElement extends SVGElement {}
100
+ interface SVGCircleElement extends SVGElement {}
101
+ interface SVGClipPathElement extends SVGElement {}
102
+ interface SVGDefsElement extends SVGElement {}
103
+ interface SVGDescElement extends SVGElement {}
104
+ interface SVGEllipseElement extends SVGElement {}
105
+ interface SVGFEBlendElement extends SVGElement {}
106
+ interface SVGFEColorMatrixElement extends SVGElement {}
107
+ interface SVGFEComponentTransferElement extends SVGElement {}
108
+ interface SVGFECompositeElement extends SVGElement {}
109
+ interface SVGFEConvolveMatrixElement extends SVGElement {}
110
+ interface SVGFEDiffuseLightingElement extends SVGElement {}
111
+ interface SVGFEDisplacementMapElement extends SVGElement {}
112
+ interface SVGFEDistantLightElement extends SVGElement {}
113
+ interface SVGFEDropShadowElement extends SVGElement {}
114
+ interface SVGFEFloodElement extends SVGElement {}
115
+ interface SVGFEFuncAElement extends SVGElement {}
116
+ interface SVGFEFuncBElement extends SVGElement {}
117
+ interface SVGFEFuncGElement extends SVGElement {}
118
+ interface SVGFEFuncRElement extends SVGElement {}
119
+ interface SVGFEGaussianBlurElement extends SVGElement {}
120
+ interface SVGFEImageElement extends SVGElement {}
121
+ interface SVGFEMergeElement extends SVGElement {}
122
+ interface SVGFEMergeNodeElement extends SVGElement {}
123
+ interface SVGFEMorphologyElement extends SVGElement {}
124
+ interface SVGFEOffsetElement extends SVGElement {}
125
+ interface SVGFEPointLightElement extends SVGElement {}
126
+ interface SVGFESpecularLightingElement extends SVGElement {}
127
+ interface SVGFESpotLightElement extends SVGElement {}
128
+ interface SVGFETileElement extends SVGElement {}
129
+ interface SVGFETurbulenceElement extends SVGElement {}
130
+ interface SVGFilterElement extends SVGElement {}
131
+ interface SVGForeignObjectElement extends SVGElement {}
132
+ interface SVGGElement extends SVGElement {}
133
+ interface SVGImageElement extends SVGElement {}
134
+ interface SVGLineElement extends SVGElement {}
135
+ interface SVGLinearGradientElement extends SVGElement {}
136
+ interface SVGMarkerElement extends SVGElement {}
137
+ interface SVGMaskElement extends SVGElement {}
138
+ interface SVGMetadataElement extends SVGElement {}
139
+ interface SVGPathElement extends SVGElement {}
140
+ interface SVGPatternElement extends SVGElement {}
141
+ interface SVGPolygonElement extends SVGElement {}
142
+ interface SVGPolylineElement extends SVGElement {}
143
+ interface SVGRadialGradientElement extends SVGElement {}
144
+ interface SVGRectElement extends SVGElement {}
145
+ interface SVGSetElement extends SVGElement {}
146
+ interface SVGStopElement extends SVGElement {}
147
+ interface SVGSwitchElement extends SVGElement {}
148
+ interface SVGSymbolElement extends SVGElement {}
149
+ interface SVGTextElement extends SVGElement {}
150
+ interface SVGTextPathElement extends SVGElement {}
151
+ interface SVGTSpanElement extends SVGElement {}
152
+ interface SVGUseElement extends SVGElement {}
153
+ interface SVGViewElement extends SVGElement {}
154
+
155
+ interface FormData {}
156
+ interface Text {}
157
+ interface TouchList {}
158
+ interface WebGLRenderingContext {}
159
+ interface WebGL2RenderingContext {}
160
+
161
+ interface TrustedHTML {}
162
+
163
+ interface Blob {}
164
+ interface MediaStream {}
165
+ interface MediaSource {}