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.
@@ -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;AAanG,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;CAM1B"}
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 ALLOWED_MODULES = new Set(["chat.js", "markdown.js", "mdx.js"]);
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
- if (!ALLOWED_MODULES.has(module))
82
+ const relativePath = LIB_MODULE_PATHS[module];
83
+ if (!relativePath)
77
84
  return null;
78
- const distDir = joinPath(joinPath(joinPath(projectDir, "node_modules"), "veryfront"), "dist");
79
- return normalizePath(joinPath(distDir, module)) ?? null;
85
+ const packageDir = joinPath(joinPath(projectDir, "node_modules"), "veryfront");
86
+ return normalizePath(joinPath(packageDir, relativePath)) ?? null;
80
87
  }
81
88
  }
@@ -1,3 +1,3 @@
1
1
  /** Shared version value. */
2
- export declare const VERSION = "0.1.613";
2
+ export declare const VERSION = "0.1.615";
3
3
  //# sourceMappingURL=version-constant.d.ts.map
@@ -1,4 +1,4 @@
1
1
  // Keep in sync with deno.json version.
2
2
  // scripts/release.ts updates this constant during releases.
3
3
  /** Shared version value. */
4
- export const VERSION = "0.1.613";
4
+ export const VERSION = "0.1.615";
@@ -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 = dntShim.setInterval(() => {
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 = dntShim.setInterval(() => {
116
+ const intervalId = globalThis.setInterval(() => {
118
117
  const currentStatus = previousStatusRef.current;
119
118
  if (!currentStatus)
120
119
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "veryfront",
3
- "version": "0.1.613",
3
+ "version": "0.1.615",
4
4
  "description": "The simplest way to build AI-powered apps",
5
5
  "keywords": [
6
6
  "react",