veryfront 0.0.70 → 0.0.72
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/dist/ai/components.js +117 -26
- package/dist/ai/components.js.map +2 -2
- package/dist/ai/dev.js +9 -3
- package/dist/ai/dev.js.map +2 -2
- package/dist/ai/index.js +191 -116
- package/dist/ai/index.js.map +2 -2
- package/dist/ai/primitives.js +24 -16
- package/dist/ai/primitives.js.map +2 -2
- package/dist/ai/production.js +14 -20
- package/dist/ai/production.js.map +1 -1
- package/dist/ai/react.js +84 -20
- package/dist/ai/react.js.map +2 -2
- package/dist/ai/workflow.js +36 -49
- package/dist/ai/workflow.js.map +2 -2
- package/dist/cli.js +1009 -596
- package/dist/components.js +4119 -252
- package/dist/components.js.map +4 -4
- package/dist/config.js +2 -1
- package/dist/config.js.map +2 -2
- package/dist/data.js +22 -27
- package/dist/data.js.map +2 -2
- package/dist/index.js +4162 -293
- package/dist/index.js.map +4 -4
- package/dist/oauth/handlers.js +6 -7
- package/dist/oauth/handlers.js.map +1 -1
- package/dist/oauth/index.js +6 -7
- package/dist/oauth/index.js.map +1 -1
- package/dist/oauth/providers.js +0 -3
- package/dist/oauth/providers.js.map +1 -1
- package/dist/oauth/token-store.js +6 -4
- package/dist/oauth/token-store.js.map +1 -1
- package/package.json +1 -1
package/dist/ai/workflow.js
CHANGED
|
@@ -399,10 +399,12 @@ var isCloudflare = typeof globalThis !== "undefined" && "caches" in globalThis &
|
|
|
399
399
|
|
|
400
400
|
// src/platform/compat/fs.ts
|
|
401
401
|
var NodeFileSystem = class {
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
402
|
+
constructor() {
|
|
403
|
+
this.fs = null;
|
|
404
|
+
this.os = null;
|
|
405
|
+
this.path = null;
|
|
406
|
+
this.initialized = false;
|
|
407
|
+
}
|
|
406
408
|
async ensureInitialized() {
|
|
407
409
|
if (this.initialized)
|
|
408
410
|
return;
|
|
@@ -696,7 +698,7 @@ var LRU_DEFAULT_MAX_SIZE_BYTES = 50 * 1024 * 1024;
|
|
|
696
698
|
// deno.json
|
|
697
699
|
var deno_default = {
|
|
698
700
|
name: "veryfront",
|
|
699
|
-
version: "0.0.
|
|
701
|
+
version: "0.0.71",
|
|
700
702
|
nodeModulesDir: "auto",
|
|
701
703
|
exclude: [
|
|
702
704
|
"npm/",
|
|
@@ -1020,9 +1022,11 @@ var VERYFRONT_PATHS = {
|
|
|
1020
1022
|
|
|
1021
1023
|
// src/core/utils/bundle-manifest.ts
|
|
1022
1024
|
var InMemoryBundleManifestStore = class {
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1025
|
+
constructor() {
|
|
1026
|
+
this.metadata = /* @__PURE__ */ new Map();
|
|
1027
|
+
this.code = /* @__PURE__ */ new Map();
|
|
1028
|
+
this.sourceIndex = /* @__PURE__ */ new Map();
|
|
1029
|
+
}
|
|
1026
1030
|
getBundleMetadata(key) {
|
|
1027
1031
|
const entry = this.metadata.get(key);
|
|
1028
1032
|
if (!entry)
|
|
@@ -1115,9 +1119,6 @@ var manifestStore = new InMemoryBundleManifestStore();
|
|
|
1115
1119
|
|
|
1116
1120
|
// src/ai/workflow/blob/local-storage.ts
|
|
1117
1121
|
var LocalBlobStorage = class {
|
|
1118
|
-
rootDir;
|
|
1119
|
-
baseUrl;
|
|
1120
|
-
fs;
|
|
1121
1122
|
constructor(rootDir, baseUrl) {
|
|
1122
1123
|
this.rootDir = rootDir;
|
|
1123
1124
|
this.baseUrl = baseUrl;
|
|
@@ -1271,10 +1272,9 @@ Original error: ${error instanceof Error ? error.message : String(error)}`
|
|
|
1271
1272
|
}
|
|
1272
1273
|
}
|
|
1273
1274
|
var S3BlobStorage = class {
|
|
1274
|
-
client = null;
|
|
1275
|
-
config;
|
|
1276
|
-
initPromise = null;
|
|
1277
1275
|
constructor(config) {
|
|
1276
|
+
this.client = null;
|
|
1277
|
+
this.initPromise = null;
|
|
1278
1278
|
this.config = config;
|
|
1279
1279
|
this.initPromise = this.initialize();
|
|
1280
1280
|
}
|
|
@@ -1504,9 +1504,8 @@ var S3BlobStorage = class {
|
|
|
1504
1504
|
|
|
1505
1505
|
// src/ai/workflow/blob/gcs-storage.ts
|
|
1506
1506
|
var GCSBlobStorage = class {
|
|
1507
|
-
config;
|
|
1508
|
-
tokenCache = null;
|
|
1509
1507
|
constructor(config) {
|
|
1508
|
+
this.tokenCache = null;
|
|
1510
1509
|
this.config = config;
|
|
1511
1510
|
try {
|
|
1512
1511
|
JSON.parse(this.config.serviceAccountKey);
|
|
@@ -1794,13 +1793,12 @@ function hasEventSupport(backend) {
|
|
|
1794
1793
|
// src/ai/workflow/backends/memory.ts
|
|
1795
1794
|
var DEFAULT_MAX_QUEUE_SIZE = 1e4;
|
|
1796
1795
|
var MemoryBackend = class {
|
|
1797
|
-
runs = /* @__PURE__ */ new Map();
|
|
1798
|
-
checkpoints = /* @__PURE__ */ new Map();
|
|
1799
|
-
approvals = /* @__PURE__ */ new Map();
|
|
1800
|
-
queue = [];
|
|
1801
|
-
locks = /* @__PURE__ */ new Map();
|
|
1802
|
-
config;
|
|
1803
1796
|
constructor(config = {}) {
|
|
1797
|
+
this.runs = /* @__PURE__ */ new Map();
|
|
1798
|
+
this.checkpoints = /* @__PURE__ */ new Map();
|
|
1799
|
+
this.approvals = /* @__PURE__ */ new Map();
|
|
1800
|
+
this.queue = [];
|
|
1801
|
+
this.locks = /* @__PURE__ */ new Map();
|
|
1804
1802
|
this.config = {
|
|
1805
1803
|
prefix: "wf:",
|
|
1806
1804
|
debug: false,
|
|
@@ -2357,11 +2355,10 @@ var DenoRedisAdapter = class {
|
|
|
2357
2355
|
}
|
|
2358
2356
|
};
|
|
2359
2357
|
var RedisBackend = class {
|
|
2360
|
-
client = null;
|
|
2361
|
-
connectionPromise = null;
|
|
2362
|
-
config;
|
|
2363
|
-
initialized = false;
|
|
2364
2358
|
constructor(config = {}) {
|
|
2359
|
+
this.client = null;
|
|
2360
|
+
this.connectionPromise = null;
|
|
2361
|
+
this.initialized = false;
|
|
2365
2362
|
this.config = {
|
|
2366
2363
|
prefix: "vf:workflow:",
|
|
2367
2364
|
streamKey: "vf:workflow:stream",
|
|
@@ -2900,7 +2897,6 @@ var RedisBackend = class {
|
|
|
2900
2897
|
|
|
2901
2898
|
// src/ai/workflow/executor/dag-executor.ts
|
|
2902
2899
|
var DAGExecutor = class {
|
|
2903
|
-
config;
|
|
2904
2900
|
constructor(config) {
|
|
2905
2901
|
this.config = {
|
|
2906
2902
|
maxConcurrency: 10,
|
|
@@ -3442,7 +3438,6 @@ var DAGExecutor = class {
|
|
|
3442
3438
|
|
|
3443
3439
|
// src/ai/workflow/executor/checkpoint-manager.ts
|
|
3444
3440
|
var CheckpointManager = class {
|
|
3445
|
-
config;
|
|
3446
3441
|
constructor(config) {
|
|
3447
3442
|
this.config = {
|
|
3448
3443
|
debug: false,
|
|
@@ -3600,7 +3595,6 @@ var CheckpointManager = class {
|
|
|
3600
3595
|
// src/ai/workflow/executor/step-executor.ts
|
|
3601
3596
|
var DEFAULT_STEP_TIMEOUT_MS = 5 * 60 * 1e3;
|
|
3602
3597
|
var StepExecutor = class {
|
|
3603
|
-
config;
|
|
3604
3598
|
constructor(config = {}) {
|
|
3605
3599
|
this.config = {
|
|
3606
3600
|
defaultTimeout: DEFAULT_STEP_TIMEOUT_MS,
|
|
@@ -3822,15 +3816,8 @@ var StepExecutor = class {
|
|
|
3822
3816
|
|
|
3823
3817
|
// src/ai/workflow/executor/workflow-executor.ts
|
|
3824
3818
|
var WorkflowExecutor = class _WorkflowExecutor {
|
|
3825
|
-
config;
|
|
3826
|
-
stepExecutor;
|
|
3827
|
-
checkpointManager;
|
|
3828
|
-
dagExecutor;
|
|
3829
|
-
workflows = /* @__PURE__ */ new Map();
|
|
3830
|
-
blobResolver;
|
|
3831
|
-
/** Default lock duration: 30 seconds */
|
|
3832
|
-
static DEFAULT_LOCK_DURATION = 3e4;
|
|
3833
3819
|
constructor(config) {
|
|
3820
|
+
this.workflows = /* @__PURE__ */ new Map();
|
|
3834
3821
|
this.config = {
|
|
3835
3822
|
maxConcurrency: 10,
|
|
3836
3823
|
debug: false,
|
|
@@ -3866,6 +3853,10 @@ var WorkflowExecutor = class _WorkflowExecutor {
|
|
|
3866
3853
|
};
|
|
3867
3854
|
}
|
|
3868
3855
|
}
|
|
3856
|
+
static {
|
|
3857
|
+
/** Default lock duration: 30 seconds */
|
|
3858
|
+
this.DEFAULT_LOCK_DURATION = 3e4;
|
|
3859
|
+
}
|
|
3869
3860
|
/**
|
|
3870
3861
|
* Register a workflow definition
|
|
3871
3862
|
*/
|
|
@@ -4220,10 +4211,8 @@ var WorkflowExecutor = class _WorkflowExecutor {
|
|
|
4220
4211
|
|
|
4221
4212
|
// src/ai/workflow/runtime/approval-manager.ts
|
|
4222
4213
|
var ApprovalManager = class {
|
|
4223
|
-
config;
|
|
4224
|
-
expirationTimer;
|
|
4225
|
-
destroyed = false;
|
|
4226
4214
|
constructor(config) {
|
|
4215
|
+
this.destroyed = false;
|
|
4227
4216
|
this.config = {
|
|
4228
4217
|
expirationCheckInterval: 6e4,
|
|
4229
4218
|
// Check every minute
|
|
@@ -4450,7 +4439,9 @@ var ApprovalManager = class {
|
|
|
4450
4439
|
|
|
4451
4440
|
// src/ai/workflow/runtime/agent-registry.ts
|
|
4452
4441
|
var DefaultAgentRegistry = class {
|
|
4453
|
-
|
|
4442
|
+
constructor() {
|
|
4443
|
+
this.agents = /* @__PURE__ */ new Map();
|
|
4444
|
+
}
|
|
4454
4445
|
/**
|
|
4455
4446
|
* Register an agent
|
|
4456
4447
|
*/
|
|
@@ -4497,7 +4488,9 @@ var DefaultAgentRegistry = class {
|
|
|
4497
4488
|
}
|
|
4498
4489
|
};
|
|
4499
4490
|
var DefaultToolRegistry = class {
|
|
4500
|
-
|
|
4491
|
+
constructor() {
|
|
4492
|
+
this.tools = /* @__PURE__ */ new Map();
|
|
4493
|
+
}
|
|
4501
4494
|
/**
|
|
4502
4495
|
* Register a tool
|
|
4503
4496
|
*/
|
|
@@ -4608,6 +4601,7 @@ function createMockTool(id, options = {}) {
|
|
|
4608
4601
|
const mockSchema = { parse: (x) => x };
|
|
4609
4602
|
return {
|
|
4610
4603
|
id,
|
|
4604
|
+
type: "function",
|
|
4611
4605
|
description: options.description ?? `Mock tool: ${id}`,
|
|
4612
4606
|
inputSchema: mockSchema,
|
|
4613
4607
|
async execute(args) {
|
|
@@ -4621,10 +4615,6 @@ function createMockTool(id, options = {}) {
|
|
|
4621
4615
|
|
|
4622
4616
|
// src/ai/workflow/api/workflow-client.ts
|
|
4623
4617
|
var WorkflowClient = class {
|
|
4624
|
-
backend;
|
|
4625
|
-
executor;
|
|
4626
|
-
approvalManager;
|
|
4627
|
-
debug;
|
|
4628
4618
|
constructor(config = {}) {
|
|
4629
4619
|
this.debug = config.debug ?? false;
|
|
4630
4620
|
this.backend = config.backend ?? new MemoryBackend({ debug: this.debug });
|
|
@@ -4789,7 +4779,6 @@ function createWorkflowClient(config) {
|
|
|
4789
4779
|
|
|
4790
4780
|
// src/ai/workflow/backends/temporal.ts
|
|
4791
4781
|
var TemporalAdapter = class {
|
|
4792
|
-
config;
|
|
4793
4782
|
constructor(config = {}) {
|
|
4794
4783
|
this.config = {
|
|
4795
4784
|
address: "localhost:7233",
|
|
@@ -4850,7 +4839,6 @@ var TemporalAdapter = class {
|
|
|
4850
4839
|
|
|
4851
4840
|
// src/ai/workflow/backends/inngest.ts
|
|
4852
4841
|
var InngestAdapter = class {
|
|
4853
|
-
config;
|
|
4854
4842
|
constructor(config = {}) {
|
|
4855
4843
|
this.config = {
|
|
4856
4844
|
debug: false,
|
|
@@ -4908,7 +4896,6 @@ var InngestAdapter = class {
|
|
|
4908
4896
|
|
|
4909
4897
|
// src/ai/workflow/backends/cloudflare.ts
|
|
4910
4898
|
var CloudflareAdapter = class {
|
|
4911
|
-
config;
|
|
4912
4899
|
constructor(config = {}) {
|
|
4913
4900
|
this.config = {
|
|
4914
4901
|
durableObjectBinding: "WORKFLOW_DO",
|