veryfront 0.0.66 → 0.0.67

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.
@@ -1,29 +1,23 @@
1
1
  // src/_shims/deno-env.ts
2
- var denoEnvShim = {
3
- get(key) {
4
- return process.env[key];
5
- },
6
- set(key, value) {
7
- process.env[key] = value;
8
- },
9
- delete(key) {
10
- delete process.env[key];
11
- },
12
- has(key) {
13
- return key in process.env;
14
- },
15
- toObject() {
16
- return { ...process.env };
2
+ globalThis.Deno = globalThis.Deno || {
3
+ env: {
4
+ get(key) {
5
+ return process.env[key];
6
+ },
7
+ set(key, value) {
8
+ process.env[key] = value;
9
+ },
10
+ delete(key) {
11
+ delete process.env[key];
12
+ },
13
+ has(key) {
14
+ return key in process.env;
15
+ },
16
+ toObject() {
17
+ return { ...process.env };
18
+ }
17
19
  }
18
20
  };
19
- if (typeof globalThis.Deno === "undefined") {
20
- globalThis.Deno = {
21
- env: denoEnvShim,
22
- cwd: () => process.cwd()
23
- };
24
- } else if (typeof globalThis.Deno.env === "undefined") {
25
- globalThis.Deno.env = denoEnvShim;
26
- }
27
21
 
28
22
  // src/ai/workflow/types.ts
29
23
  function parseDuration(duration) {
@@ -405,12 +399,10 @@ var isCloudflare = typeof globalThis !== "undefined" && "caches" in globalThis &
405
399
 
406
400
  // src/platform/compat/fs.ts
407
401
  var NodeFileSystem = class {
408
- constructor() {
409
- this.fs = null;
410
- this.os = null;
411
- this.path = null;
412
- this.initialized = false;
413
- }
402
+ fs = null;
403
+ os = null;
404
+ path = null;
405
+ initialized = false;
414
406
  async ensureInitialized() {
415
407
  if (this.initialized)
416
408
  return;
@@ -704,7 +696,7 @@ var LRU_DEFAULT_MAX_SIZE_BYTES = 50 * 1024 * 1024;
704
696
  // deno.json
705
697
  var deno_default = {
706
698
  name: "veryfront",
707
- version: "0.0.66",
699
+ version: "0.0.67",
708
700
  nodeModulesDir: "auto",
709
701
  exclude: [
710
702
  "npm/",
@@ -1028,11 +1020,9 @@ var VERYFRONT_PATHS = {
1028
1020
 
1029
1021
  // src/core/utils/bundle-manifest.ts
1030
1022
  var InMemoryBundleManifestStore = class {
1031
- constructor() {
1032
- this.metadata = /* @__PURE__ */ new Map();
1033
- this.code = /* @__PURE__ */ new Map();
1034
- this.sourceIndex = /* @__PURE__ */ new Map();
1035
- }
1023
+ metadata = /* @__PURE__ */ new Map();
1024
+ code = /* @__PURE__ */ new Map();
1025
+ sourceIndex = /* @__PURE__ */ new Map();
1036
1026
  getBundleMetadata(key) {
1037
1027
  const entry = this.metadata.get(key);
1038
1028
  if (!entry)
@@ -1125,6 +1115,9 @@ var manifestStore = new InMemoryBundleManifestStore();
1125
1115
 
1126
1116
  // src/ai/workflow/blob/local-storage.ts
1127
1117
  var LocalBlobStorage = class {
1118
+ rootDir;
1119
+ baseUrl;
1120
+ fs;
1128
1121
  constructor(rootDir, baseUrl) {
1129
1122
  this.rootDir = rootDir;
1130
1123
  this.baseUrl = baseUrl;
@@ -1278,9 +1271,10 @@ Original error: ${error instanceof Error ? error.message : String(error)}`
1278
1271
  }
1279
1272
  }
1280
1273
  var S3BlobStorage = class {
1274
+ client = null;
1275
+ config;
1276
+ initPromise = null;
1281
1277
  constructor(config) {
1282
- this.client = null;
1283
- this.initPromise = null;
1284
1278
  this.config = config;
1285
1279
  this.initPromise = this.initialize();
1286
1280
  }
@@ -1510,8 +1504,9 @@ var S3BlobStorage = class {
1510
1504
 
1511
1505
  // src/ai/workflow/blob/gcs-storage.ts
1512
1506
  var GCSBlobStorage = class {
1507
+ config;
1508
+ tokenCache = null;
1513
1509
  constructor(config) {
1514
- this.tokenCache = null;
1515
1510
  this.config = config;
1516
1511
  try {
1517
1512
  JSON.parse(this.config.serviceAccountKey);
@@ -1799,12 +1794,13 @@ function hasEventSupport(backend) {
1799
1794
  // src/ai/workflow/backends/memory.ts
1800
1795
  var DEFAULT_MAX_QUEUE_SIZE = 1e4;
1801
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;
1802
1803
  constructor(config = {}) {
1803
- this.runs = /* @__PURE__ */ new Map();
1804
- this.checkpoints = /* @__PURE__ */ new Map();
1805
- this.approvals = /* @__PURE__ */ new Map();
1806
- this.queue = [];
1807
- this.locks = /* @__PURE__ */ new Map();
1808
1804
  this.config = {
1809
1805
  prefix: "wf:",
1810
1806
  debug: false,
@@ -2361,10 +2357,11 @@ var DenoRedisAdapter = class {
2361
2357
  }
2362
2358
  };
2363
2359
  var RedisBackend = class {
2360
+ client = null;
2361
+ connectionPromise = null;
2362
+ config;
2363
+ initialized = false;
2364
2364
  constructor(config = {}) {
2365
- this.client = null;
2366
- this.connectionPromise = null;
2367
- this.initialized = false;
2368
2365
  this.config = {
2369
2366
  prefix: "vf:workflow:",
2370
2367
  streamKey: "vf:workflow:stream",
@@ -2903,6 +2900,7 @@ var RedisBackend = class {
2903
2900
 
2904
2901
  // src/ai/workflow/executor/dag-executor.ts
2905
2902
  var DAGExecutor = class {
2903
+ config;
2906
2904
  constructor(config) {
2907
2905
  this.config = {
2908
2906
  maxConcurrency: 10,
@@ -3444,6 +3442,7 @@ var DAGExecutor = class {
3444
3442
 
3445
3443
  // src/ai/workflow/executor/checkpoint-manager.ts
3446
3444
  var CheckpointManager = class {
3445
+ config;
3447
3446
  constructor(config) {
3448
3447
  this.config = {
3449
3448
  debug: false,
@@ -3601,6 +3600,7 @@ var CheckpointManager = class {
3601
3600
  // src/ai/workflow/executor/step-executor.ts
3602
3601
  var DEFAULT_STEP_TIMEOUT_MS = 5 * 60 * 1e3;
3603
3602
  var StepExecutor = class {
3603
+ config;
3604
3604
  constructor(config = {}) {
3605
3605
  this.config = {
3606
3606
  defaultTimeout: DEFAULT_STEP_TIMEOUT_MS,
@@ -3822,8 +3822,15 @@ var StepExecutor = class {
3822
3822
 
3823
3823
  // src/ai/workflow/executor/workflow-executor.ts
3824
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;
3825
3833
  constructor(config) {
3826
- this.workflows = /* @__PURE__ */ new Map();
3827
3834
  this.config = {
3828
3835
  maxConcurrency: 10,
3829
3836
  debug: false,
@@ -3859,10 +3866,6 @@ var WorkflowExecutor = class _WorkflowExecutor {
3859
3866
  };
3860
3867
  }
3861
3868
  }
3862
- static {
3863
- /** Default lock duration: 30 seconds */
3864
- this.DEFAULT_LOCK_DURATION = 3e4;
3865
- }
3866
3869
  /**
3867
3870
  * Register a workflow definition
3868
3871
  */
@@ -4217,8 +4220,10 @@ var WorkflowExecutor = class _WorkflowExecutor {
4217
4220
 
4218
4221
  // src/ai/workflow/runtime/approval-manager.ts
4219
4222
  var ApprovalManager = class {
4223
+ config;
4224
+ expirationTimer;
4225
+ destroyed = false;
4220
4226
  constructor(config) {
4221
- this.destroyed = false;
4222
4227
  this.config = {
4223
4228
  expirationCheckInterval: 6e4,
4224
4229
  // Check every minute
@@ -4445,9 +4450,7 @@ var ApprovalManager = class {
4445
4450
 
4446
4451
  // src/ai/workflow/runtime/agent-registry.ts
4447
4452
  var DefaultAgentRegistry = class {
4448
- constructor() {
4449
- this.agents = /* @__PURE__ */ new Map();
4450
- }
4453
+ agents = /* @__PURE__ */ new Map();
4451
4454
  /**
4452
4455
  * Register an agent
4453
4456
  */
@@ -4494,9 +4497,7 @@ var DefaultAgentRegistry = class {
4494
4497
  }
4495
4498
  };
4496
4499
  var DefaultToolRegistry = class {
4497
- constructor() {
4498
- this.tools = /* @__PURE__ */ new Map();
4499
- }
4500
+ tools = /* @__PURE__ */ new Map();
4500
4501
  /**
4501
4502
  * Register a tool
4502
4503
  */
@@ -4612,6 +4613,10 @@ function createMockTool(id, options = {}) {
4612
4613
 
4613
4614
  // src/ai/workflow/api/workflow-client.ts
4614
4615
  var WorkflowClient = class {
4616
+ backend;
4617
+ executor;
4618
+ approvalManager;
4619
+ debug;
4615
4620
  constructor(config = {}) {
4616
4621
  this.debug = config.debug ?? false;
4617
4622
  this.backend = config.backend ?? new MemoryBackend({ debug: this.debug });
@@ -4776,6 +4781,7 @@ function createWorkflowClient(config) {
4776
4781
 
4777
4782
  // src/ai/workflow/backends/temporal.ts
4778
4783
  var TemporalAdapter = class {
4784
+ config;
4779
4785
  constructor(config = {}) {
4780
4786
  this.config = {
4781
4787
  address: "localhost:7233",
@@ -4836,6 +4842,7 @@ var TemporalAdapter = class {
4836
4842
 
4837
4843
  // src/ai/workflow/backends/inngest.ts
4838
4844
  var InngestAdapter = class {
4845
+ config;
4839
4846
  constructor(config = {}) {
4840
4847
  this.config = {
4841
4848
  debug: false,
@@ -4893,6 +4900,7 @@ var InngestAdapter = class {
4893
4900
 
4894
4901
  // src/ai/workflow/backends/cloudflare.ts
4895
4902
  var CloudflareAdapter = class {
4903
+ config;
4896
4904
  constructor(config = {}) {
4897
4905
  this.config = {
4898
4906
  durableObjectBinding: "WORKFLOW_DO",