veryfront 0.0.69 → 0.0.71

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.
@@ -399,12 +399,10 @@ var isCloudflare = typeof globalThis !== "undefined" && "caches" in globalThis &
399
399
 
400
400
  // src/platform/compat/fs.ts
401
401
  var NodeFileSystem = class {
402
- constructor() {
403
- this.fs = null;
404
- this.os = null;
405
- this.path = null;
406
- this.initialized = false;
407
- }
402
+ fs = null;
403
+ os = null;
404
+ path = null;
405
+ initialized = false;
408
406
  async ensureInitialized() {
409
407
  if (this.initialized)
410
408
  return;
@@ -698,7 +696,7 @@ var LRU_DEFAULT_MAX_SIZE_BYTES = 50 * 1024 * 1024;
698
696
  // deno.json
699
697
  var deno_default = {
700
698
  name: "veryfront",
701
- version: "0.0.68",
699
+ version: "0.0.71",
702
700
  nodeModulesDir: "auto",
703
701
  exclude: [
704
702
  "npm/",
@@ -1022,11 +1020,9 @@ var VERYFRONT_PATHS = {
1022
1020
 
1023
1021
  // src/core/utils/bundle-manifest.ts
1024
1022
  var InMemoryBundleManifestStore = class {
1025
- constructor() {
1026
- this.metadata = /* @__PURE__ */ new Map();
1027
- this.code = /* @__PURE__ */ new Map();
1028
- this.sourceIndex = /* @__PURE__ */ new Map();
1029
- }
1023
+ metadata = /* @__PURE__ */ new Map();
1024
+ code = /* @__PURE__ */ new Map();
1025
+ sourceIndex = /* @__PURE__ */ new Map();
1030
1026
  getBundleMetadata(key) {
1031
1027
  const entry = this.metadata.get(key);
1032
1028
  if (!entry)
@@ -1119,6 +1115,9 @@ var manifestStore = new InMemoryBundleManifestStore();
1119
1115
 
1120
1116
  // src/ai/workflow/blob/local-storage.ts
1121
1117
  var LocalBlobStorage = class {
1118
+ rootDir;
1119
+ baseUrl;
1120
+ fs;
1122
1121
  constructor(rootDir, baseUrl) {
1123
1122
  this.rootDir = rootDir;
1124
1123
  this.baseUrl = baseUrl;
@@ -1272,9 +1271,10 @@ Original error: ${error instanceof Error ? error.message : String(error)}`
1272
1271
  }
1273
1272
  }
1274
1273
  var S3BlobStorage = class {
1274
+ client = null;
1275
+ config;
1276
+ initPromise = null;
1275
1277
  constructor(config) {
1276
- this.client = null;
1277
- this.initPromise = null;
1278
1278
  this.config = config;
1279
1279
  this.initPromise = this.initialize();
1280
1280
  }
@@ -1504,8 +1504,9 @@ var S3BlobStorage = class {
1504
1504
 
1505
1505
  // src/ai/workflow/blob/gcs-storage.ts
1506
1506
  var GCSBlobStorage = class {
1507
+ config;
1508
+ tokenCache = null;
1507
1509
  constructor(config) {
1508
- this.tokenCache = null;
1509
1510
  this.config = config;
1510
1511
  try {
1511
1512
  JSON.parse(this.config.serviceAccountKey);
@@ -1793,12 +1794,13 @@ function hasEventSupport(backend) {
1793
1794
  // src/ai/workflow/backends/memory.ts
1794
1795
  var DEFAULT_MAX_QUEUE_SIZE = 1e4;
1795
1796
  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;
1796
1803
  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();
1802
1804
  this.config = {
1803
1805
  prefix: "wf:",
1804
1806
  debug: false,
@@ -2355,10 +2357,11 @@ var DenoRedisAdapter = class {
2355
2357
  }
2356
2358
  };
2357
2359
  var RedisBackend = class {
2360
+ client = null;
2361
+ connectionPromise = null;
2362
+ config;
2363
+ initialized = false;
2358
2364
  constructor(config = {}) {
2359
- this.client = null;
2360
- this.connectionPromise = null;
2361
- this.initialized = false;
2362
2365
  this.config = {
2363
2366
  prefix: "vf:workflow:",
2364
2367
  streamKey: "vf:workflow:stream",
@@ -2897,6 +2900,7 @@ var RedisBackend = class {
2897
2900
 
2898
2901
  // src/ai/workflow/executor/dag-executor.ts
2899
2902
  var DAGExecutor = class {
2903
+ config;
2900
2904
  constructor(config) {
2901
2905
  this.config = {
2902
2906
  maxConcurrency: 10,
@@ -3438,6 +3442,7 @@ var DAGExecutor = class {
3438
3442
 
3439
3443
  // src/ai/workflow/executor/checkpoint-manager.ts
3440
3444
  var CheckpointManager = class {
3445
+ config;
3441
3446
  constructor(config) {
3442
3447
  this.config = {
3443
3448
  debug: false,
@@ -3595,6 +3600,7 @@ var CheckpointManager = class {
3595
3600
  // src/ai/workflow/executor/step-executor.ts
3596
3601
  var DEFAULT_STEP_TIMEOUT_MS = 5 * 60 * 1e3;
3597
3602
  var StepExecutor = class {
3603
+ config;
3598
3604
  constructor(config = {}) {
3599
3605
  this.config = {
3600
3606
  defaultTimeout: DEFAULT_STEP_TIMEOUT_MS,
@@ -3816,8 +3822,15 @@ var StepExecutor = class {
3816
3822
 
3817
3823
  // src/ai/workflow/executor/workflow-executor.ts
3818
3824
  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;
3819
3833
  constructor(config) {
3820
- this.workflows = /* @__PURE__ */ new Map();
3821
3834
  this.config = {
3822
3835
  maxConcurrency: 10,
3823
3836
  debug: false,
@@ -3853,10 +3866,6 @@ var WorkflowExecutor = class _WorkflowExecutor {
3853
3866
  };
3854
3867
  }
3855
3868
  }
3856
- static {
3857
- /** Default lock duration: 30 seconds */
3858
- this.DEFAULT_LOCK_DURATION = 3e4;
3859
- }
3860
3869
  /**
3861
3870
  * Register a workflow definition
3862
3871
  */
@@ -4211,8 +4220,10 @@ var WorkflowExecutor = class _WorkflowExecutor {
4211
4220
 
4212
4221
  // src/ai/workflow/runtime/approval-manager.ts
4213
4222
  var ApprovalManager = class {
4223
+ config;
4224
+ expirationTimer;
4225
+ destroyed = false;
4214
4226
  constructor(config) {
4215
- this.destroyed = false;
4216
4227
  this.config = {
4217
4228
  expirationCheckInterval: 6e4,
4218
4229
  // Check every minute
@@ -4439,9 +4450,7 @@ var ApprovalManager = class {
4439
4450
 
4440
4451
  // src/ai/workflow/runtime/agent-registry.ts
4441
4452
  var DefaultAgentRegistry = class {
4442
- constructor() {
4443
- this.agents = /* @__PURE__ */ new Map();
4444
- }
4453
+ agents = /* @__PURE__ */ new Map();
4445
4454
  /**
4446
4455
  * Register an agent
4447
4456
  */
@@ -4488,9 +4497,7 @@ var DefaultAgentRegistry = class {
4488
4497
  }
4489
4498
  };
4490
4499
  var DefaultToolRegistry = class {
4491
- constructor() {
4492
- this.tools = /* @__PURE__ */ new Map();
4493
- }
4500
+ tools = /* @__PURE__ */ new Map();
4494
4501
  /**
4495
4502
  * Register a tool
4496
4503
  */
@@ -4554,8 +4561,16 @@ function createMockAgent(id, options = {}) {
4554
4561
  return {
4555
4562
  text,
4556
4563
  messages: [
4557
- { role: "user", content: inputStr },
4558
- { role: "assistant", content: text }
4564
+ {
4565
+ id: `msg_${Date.now()}_0`,
4566
+ role: "user",
4567
+ parts: [{ type: "text", text: inputStr }]
4568
+ },
4569
+ {
4570
+ id: `msg_${Date.now()}_1`,
4571
+ role: "assistant",
4572
+ parts: [{ type: "text", text }]
4573
+ }
4559
4574
  ],
4560
4575
  toolCalls: options.toolCalls?.map((tc) => ({
4561
4576
  ...tc,
@@ -4593,6 +4608,7 @@ function createMockTool(id, options = {}) {
4593
4608
  const mockSchema = { parse: (x) => x };
4594
4609
  return {
4595
4610
  id,
4611
+ type: "function",
4596
4612
  description: options.description ?? `Mock tool: ${id}`,
4597
4613
  inputSchema: mockSchema,
4598
4614
  async execute(args) {
@@ -4606,6 +4622,10 @@ function createMockTool(id, options = {}) {
4606
4622
 
4607
4623
  // src/ai/workflow/api/workflow-client.ts
4608
4624
  var WorkflowClient = class {
4625
+ backend;
4626
+ executor;
4627
+ approvalManager;
4628
+ debug;
4609
4629
  constructor(config = {}) {
4610
4630
  this.debug = config.debug ?? false;
4611
4631
  this.backend = config.backend ?? new MemoryBackend({ debug: this.debug });
@@ -4770,6 +4790,7 @@ function createWorkflowClient(config) {
4770
4790
 
4771
4791
  // src/ai/workflow/backends/temporal.ts
4772
4792
  var TemporalAdapter = class {
4793
+ config;
4773
4794
  constructor(config = {}) {
4774
4795
  this.config = {
4775
4796
  address: "localhost:7233",
@@ -4830,6 +4851,7 @@ var TemporalAdapter = class {
4830
4851
 
4831
4852
  // src/ai/workflow/backends/inngest.ts
4832
4853
  var InngestAdapter = class {
4854
+ config;
4833
4855
  constructor(config = {}) {
4834
4856
  this.config = {
4835
4857
  debug: false,
@@ -4887,6 +4909,7 @@ var InngestAdapter = class {
4887
4909
 
4888
4910
  // src/ai/workflow/backends/cloudflare.ts
4889
4911
  var CloudflareAdapter = class {
4912
+ config;
4890
4913
  constructor(config = {}) {
4891
4914
  this.config = {
4892
4915
  durableObjectBinding: "WORKFLOW_DO",