veryfront 0.1.613 → 0.1.615
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/templates/index.d.ts.map +1 -1
- package/esm/cli/templates/index.js +2 -9
- package/esm/cli/templates/manifest.d.ts +2 -0
- package/esm/cli/templates/manifest.js +8 -6
- package/esm/cli/templates/types.d.ts +1 -0
- package/esm/cli/templates/types.d.ts.map +1 -1
- package/esm/cli/templates/types.js +9 -1
- package/esm/deno.js +6 -6
- package/esm/src/build/bundler/code-splitter/build-context.d.ts.map +1 -1
- package/esm/src/build/bundler/code-splitter/build-context.js +1 -0
- package/esm/src/chat/message-prep.d.ts.map +1 -1
- package/esm/src/chat/message-prep.js +16 -2
- package/esm/src/html/utils.d.ts.map +1 -1
- package/esm/src/html/utils.js +11 -6
- package/esm/src/integrations/_data.js +1 -1
- package/esm/src/integrations/_tool_summaries.d.ts.map +1 -1
- package/esm/src/integrations/_tool_summaries.js +197 -4
- package/esm/src/integrations/schema.d.ts +8 -0
- package/esm/src/integrations/schema.d.ts.map +1 -1
- package/esm/src/integrations/schema.js +2 -1
- package/esm/src/server/handlers/request/lib-modules.handler.d.ts +6 -0
- package/esm/src/server/handlers/request/lib-modules.handler.d.ts.map +1 -1
- package/esm/src/server/handlers/request/lib-modules.handler.js +11 -4
- package/esm/src/utils/version-constant.d.ts +1 -1
- package/esm/src/utils/version-constant.js +1 -1
- package/esm/src/workflow/react/use-workflow-list.js +1 -2
- package/esm/src/workflow/react/use-workflow.js +1 -2
- package/package.json +1 -1
|
@@ -125,7 +125,7 @@ export const getIntegrationEndpointResponseEnrichmentSchema = defineSchema((v) =
|
|
|
125
125
|
export const IntegrationEndpointResponseEnrichmentSchema = lazySchema(getIntegrationEndpointResponseEnrichmentSchema);
|
|
126
126
|
export const getIntegrationEndpointHistoricalSummaryFieldSchema = defineSchema((v) => v.object({
|
|
127
127
|
name: v.string(),
|
|
128
|
-
kind: v.enum(["scalar", "string-array", "contact", "contact-array"]).optional(),
|
|
128
|
+
kind: v.enum(["scalar", "string-array", "contact", "contact-array", "object"]).optional(),
|
|
129
129
|
maxLength: v.number().optional(),
|
|
130
130
|
}));
|
|
131
131
|
export const IntegrationEndpointHistoricalSummaryFieldSchema = lazySchema(getIntegrationEndpointHistoricalSummaryFieldSchema);
|
|
@@ -134,6 +134,7 @@ export const getIntegrationEndpointHistoricalSummarySchema = defineSchema((v) =>
|
|
|
134
134
|
collectionName: v.string(),
|
|
135
135
|
itemFields: v.array(getIntegrationEndpointHistoricalSummaryFieldSchema()),
|
|
136
136
|
outputFields: v.array(getIntegrationEndpointHistoricalSummaryFieldSchema()).optional(),
|
|
137
|
+
singleItem: v.boolean().optional(),
|
|
137
138
|
omitted: v.string(),
|
|
138
139
|
}));
|
|
139
140
|
export const IntegrationEndpointHistoricalSummarySchema = lazySchema(getIntegrationEndpointHistoricalSummarySchema);
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { BaseHandler } from "../response/base.js";
|
|
2
2
|
import type { HandlerContext, HandlerMetadata, HandlerResult } from "../types.js";
|
|
3
|
+
export declare const LIB_MODULE_PATHS: {
|
|
4
|
+
readonly "chat.js": "esm/src/chat/index.js";
|
|
5
|
+
readonly "markdown.js": "esm/src/markdown/index.js";
|
|
6
|
+
readonly "mdx.js": "esm/src/mdx/index.js";
|
|
7
|
+
readonly "workflow.js": "esm/src/workflow/react/index.js";
|
|
8
|
+
};
|
|
3
9
|
export declare class LibModulesHandler extends BaseHandler {
|
|
4
10
|
metadata: HandlerMetadata;
|
|
5
11
|
handle(req: Request, ctx: HandlerContext): Promise<HandlerResult>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lib-modules.handler.d.ts","sourceRoot":"","sources":["../../../../../src/src/server/handlers/request/lib-modules.handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAmB,aAAa,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"lib-modules.handler.d.ts","sourceRoot":"","sources":["../../../../../src/src/server/handlers/request/lib-modules.handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAmB,aAAa,EAAE,MAAM,aAAa,CAAC;AAUnG,eAAO,MAAM,gBAAgB;;;;;CAKnB,CAAC;AAKX,qBAAa,iBAAkB,SAAQ,WAAW;IAChD,QAAQ,EAAE,eAAe,CAOvB;IAEI,MAAM,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;IA+EvE,OAAO,CAAC,eAAe;IAcvB,OAAO,CAAC,iBAAiB;CAO1B"}
|
|
@@ -3,7 +3,13 @@ import { joinPath, normalizePath } from "../../../utils/path-utils.js";
|
|
|
3
3
|
import { createSecureFs } from "../../../security/index.js";
|
|
4
4
|
import { computeEtag, hasMatchingEtag } from "../utils/etag.js";
|
|
5
5
|
import { HTTP_NOT_FOUND, HTTP_OK, PRIORITY_MEDIUM_LIB_MODULES, } from "../../../utils/constants/index.js";
|
|
6
|
-
const
|
|
6
|
+
export const LIB_MODULE_PATHS = {
|
|
7
|
+
"chat.js": "esm/src/chat/index.js",
|
|
8
|
+
"markdown.js": "esm/src/markdown/index.js",
|
|
9
|
+
"mdx.js": "esm/src/mdx/index.js",
|
|
10
|
+
"workflow.js": "esm/src/workflow/react/index.js",
|
|
11
|
+
};
|
|
12
|
+
const ALLOWED_MODULES = new Set(Object.keys(LIB_MODULE_PATHS));
|
|
7
13
|
const LIB_PREFIX = "/_veryfront/lib/";
|
|
8
14
|
export class LibModulesHandler extends BaseHandler {
|
|
9
15
|
metadata = {
|
|
@@ -73,9 +79,10 @@ export class LibModulesHandler extends BaseHandler {
|
|
|
73
79
|
.withContentType("text/plain; charset=utf-8", method === "HEAD" ? null : "Module not found", HTTP_NOT_FOUND));
|
|
74
80
|
}
|
|
75
81
|
resolveModulePath(module, projectDir) {
|
|
76
|
-
|
|
82
|
+
const relativePath = LIB_MODULE_PATHS[module];
|
|
83
|
+
if (!relativePath)
|
|
77
84
|
return null;
|
|
78
|
-
const
|
|
79
|
-
return normalizePath(joinPath(
|
|
85
|
+
const packageDir = joinPath(joinPath(projectDir, "node_modules"), "veryfront");
|
|
86
|
+
return normalizePath(joinPath(packageDir, relativePath)) ?? null;
|
|
80
87
|
}
|
|
81
88
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as dntShim from "../../../_dnt.shims.js";
|
|
2
1
|
import { useCallback, useEffect, useState } from "../../../react/react.js";
|
|
3
2
|
import { REQUEST_ERROR } from "../../errors/error-registry.js";
|
|
4
3
|
/** Default interval for auto-refreshing the workflow list */
|
|
@@ -85,7 +84,7 @@ export function useWorkflowList(options = {}) {
|
|
|
85
84
|
useEffect(() => {
|
|
86
85
|
if (!autoRefresh)
|
|
87
86
|
return;
|
|
88
|
-
const intervalId =
|
|
87
|
+
const intervalId = globalThis.setInterval(() => {
|
|
89
88
|
fetchRuns(false);
|
|
90
89
|
}, refreshInterval);
|
|
91
90
|
return () => clearInterval(intervalId);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as dntShim from "../../../_dnt.shims.js";
|
|
2
1
|
import { useCallback, useEffect, useRef, useState } from "../../../react/react.js";
|
|
3
2
|
import { ORCHESTRATION_ERROR, REQUEST_ERROR } from "../../errors/error-registry.js";
|
|
4
3
|
/** Default polling interval for workflow status updates */
|
|
@@ -114,7 +113,7 @@ export function useWorkflow(options) {
|
|
|
114
113
|
abortControllerRef.current?.abort();
|
|
115
114
|
};
|
|
116
115
|
}
|
|
117
|
-
const intervalId =
|
|
116
|
+
const intervalId = globalThis.setInterval(() => {
|
|
118
117
|
const currentStatus = previousStatusRef.current;
|
|
119
118
|
if (!currentStatus)
|
|
120
119
|
return;
|