veryfront 0.0.72 → 0.0.73
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 +596 -55
- package/dist/ai/components.js.map +3 -3
- package/dist/ai/dev.js +3 -9
- package/dist/ai/dev.js.map +1 -1
- package/dist/ai/index.js +94 -75
- package/dist/ai/index.js.map +2 -2
- package/dist/ai/production.js +20 -14
- package/dist/ai/production.js.map +1 -1
- package/dist/ai/react.js +50 -31
- package/dist/ai/react.js.map +2 -2
- package/dist/ai/workflow.js +50 -36
- package/dist/ai/workflow.js.map +2 -2
- package/dist/cli.js +603 -1014
- package/dist/components.js +265 -4132
- package/dist/components.js.map +4 -4
- package/dist/config.js +2 -3
- package/dist/config.js.map +2 -2
- package/dist/data.js +28 -23
- package/dist/data.js.map +2 -2
- package/dist/index.js +296 -4165
- package/dist/index.js.map +4 -4
- package/dist/oauth/handlers.js +8 -7
- package/dist/oauth/handlers.js.map +2 -2
- package/dist/oauth/index.js +8 -7
- package/dist/oauth/index.js.map +2 -2
- package/dist/oauth/providers.js +4 -1
- package/dist/oauth/providers.js.map +2 -2
- package/dist/oauth/token-store.js +4 -6
- package/dist/oauth/token-store.js.map +1 -1
- package/dist/templates/ai/app/api/chat/route.ts +106 -3
- package/package.json +1 -1
package/dist/ai/index.js
CHANGED
|
@@ -192,6 +192,7 @@ var OpenAIStreamChunkSchema = z.object({
|
|
|
192
192
|
})).min(1)
|
|
193
193
|
});
|
|
194
194
|
var BaseProvider = class {
|
|
195
|
+
config;
|
|
195
196
|
constructor(config) {
|
|
196
197
|
this.config = config;
|
|
197
198
|
this.validateConfig();
|
|
@@ -406,9 +407,12 @@ var OpenAIResponseSchema = z2.object({
|
|
|
406
407
|
}).optional()
|
|
407
408
|
});
|
|
408
409
|
var OpenAIProvider = class extends BaseProvider {
|
|
410
|
+
name = "openai";
|
|
411
|
+
apiKey;
|
|
412
|
+
baseURL;
|
|
413
|
+
organizationId;
|
|
409
414
|
constructor(config) {
|
|
410
415
|
super(config);
|
|
411
|
-
this.name = "openai";
|
|
412
416
|
this.apiKey = config.apiKey;
|
|
413
417
|
this.baseURL = config.baseURL || "https://api.openai.com/v1";
|
|
414
418
|
this.organizationId = config.organizationId;
|
|
@@ -455,6 +459,7 @@ var OpenAIProvider = class extends BaseProvider {
|
|
|
455
459
|
parameters: tool3.parameters
|
|
456
460
|
}
|
|
457
461
|
}));
|
|
462
|
+
body.parallel_tool_calls = false;
|
|
458
463
|
}
|
|
459
464
|
return body;
|
|
460
465
|
}
|
|
@@ -510,9 +515,11 @@ var OpenAIProvider = class extends BaseProvider {
|
|
|
510
515
|
|
|
511
516
|
// src/ai/providers/anthropic.ts
|
|
512
517
|
var AnthropicProvider = class extends BaseProvider {
|
|
518
|
+
name = "anthropic";
|
|
519
|
+
apiKey;
|
|
520
|
+
baseURL;
|
|
513
521
|
constructor(config) {
|
|
514
522
|
super(config);
|
|
515
|
-
this.name = "anthropic";
|
|
516
523
|
this.apiKey = config.apiKey;
|
|
517
524
|
this.baseURL = config.baseURL || "https://api.anthropic.com";
|
|
518
525
|
}
|
|
@@ -810,9 +817,11 @@ var GoogleResponseSchema = z3.object({
|
|
|
810
817
|
}).optional()
|
|
811
818
|
});
|
|
812
819
|
var GoogleProvider = class extends BaseProvider {
|
|
820
|
+
name = "google";
|
|
821
|
+
apiKey;
|
|
822
|
+
baseURL;
|
|
813
823
|
constructor(config) {
|
|
814
824
|
super(config);
|
|
815
|
-
this.name = "google";
|
|
816
825
|
this.apiKey = config.apiKey;
|
|
817
826
|
this.baseURL = config.baseURL || "https://generativelanguage.googleapis.com/v1beta";
|
|
818
827
|
}
|
|
@@ -905,7 +914,7 @@ var GoogleProvider = class extends BaseProvider {
|
|
|
905
914
|
};
|
|
906
915
|
|
|
907
916
|
// src/platform/compat/runtime.ts
|
|
908
|
-
var isDeno = typeof Deno !== "undefined";
|
|
917
|
+
var isDeno = typeof Deno !== "undefined" && typeof Deno.version === "object";
|
|
909
918
|
var isNode = typeof globalThis.process !== "undefined" && globalThis.process?.versions?.node !== void 0;
|
|
910
919
|
var isBun = typeof globalThis.Bun !== "undefined";
|
|
911
920
|
var isCloudflare = typeof globalThis !== "undefined" && "caches" in globalThis && "WebSocketPair" in globalThis;
|
|
@@ -934,11 +943,9 @@ function getEnv(key) {
|
|
|
934
943
|
|
|
935
944
|
// src/ai/providers/factory.ts
|
|
936
945
|
var ProviderRegistry = class {
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
this.autoInitialized = false;
|
|
941
|
-
}
|
|
946
|
+
providers = /* @__PURE__ */ new Map();
|
|
947
|
+
config = {};
|
|
948
|
+
autoInitialized = false;
|
|
942
949
|
/**
|
|
943
950
|
* Auto-initialize providers from environment variables
|
|
944
951
|
* This is called lazily when a provider is first requested
|
|
@@ -1362,9 +1369,7 @@ function generateToolId() {
|
|
|
1362
1369
|
return `tool_${Date.now()}_${toolIdCounter++}`;
|
|
1363
1370
|
}
|
|
1364
1371
|
var ToolRegistryClass = class {
|
|
1365
|
-
|
|
1366
|
-
this.tools = /* @__PURE__ */ new Map();
|
|
1367
|
-
}
|
|
1372
|
+
tools = /* @__PURE__ */ new Map();
|
|
1368
1373
|
register(id, toolInstance) {
|
|
1369
1374
|
if (this.tools.has(id)) {
|
|
1370
1375
|
agentLogger.debug(`Tool "${id}" is already registered. Overwriting.`);
|
|
@@ -1624,9 +1629,7 @@ function patternToId(pattern) {
|
|
|
1624
1629
|
return pattern.replace(/^\//, "").replace(/\//g, "_").replace(/:/g, "");
|
|
1625
1630
|
}
|
|
1626
1631
|
var ResourceRegistryClass = class {
|
|
1627
|
-
|
|
1628
|
-
this.resources = /* @__PURE__ */ new Map();
|
|
1629
|
-
}
|
|
1632
|
+
resources = /* @__PURE__ */ new Map();
|
|
1630
1633
|
/**
|
|
1631
1634
|
* Register a resource
|
|
1632
1635
|
*/
|
|
@@ -1722,9 +1725,7 @@ function interpolateVariables(template, variables) {
|
|
|
1722
1725
|
});
|
|
1723
1726
|
}
|
|
1724
1727
|
var PromptRegistryClass = class {
|
|
1725
|
-
|
|
1726
|
-
this.prompts = /* @__PURE__ */ new Map();
|
|
1727
|
-
}
|
|
1728
|
+
prompts = /* @__PURE__ */ new Map();
|
|
1728
1729
|
/**
|
|
1729
1730
|
* Register a prompt
|
|
1730
1731
|
*/
|
|
@@ -1855,9 +1856,7 @@ function createWorkflow(config) {
|
|
|
1855
1856
|
};
|
|
1856
1857
|
}
|
|
1857
1858
|
var AgentRegistryClass = class {
|
|
1858
|
-
|
|
1859
|
-
this.agents = /* @__PURE__ */ new Map();
|
|
1860
|
-
}
|
|
1859
|
+
agents = /* @__PURE__ */ new Map();
|
|
1861
1860
|
/**
|
|
1862
1861
|
* Register an agent
|
|
1863
1862
|
*/
|
|
@@ -2110,7 +2109,7 @@ import { join } from "node:path";
|
|
|
2110
2109
|
// deno.json
|
|
2111
2110
|
var deno_default = {
|
|
2112
2111
|
name: "veryfront",
|
|
2113
|
-
version: "0.0.
|
|
2112
|
+
version: "0.0.73",
|
|
2114
2113
|
nodeModulesDir: "auto",
|
|
2115
2114
|
exclude: [
|
|
2116
2115
|
"npm/",
|
|
@@ -2779,12 +2778,10 @@ function createMockAdapter() {
|
|
|
2779
2778
|
|
|
2780
2779
|
// src/platform/compat/fs.ts
|
|
2781
2780
|
var NodeFileSystem = class {
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
this.initialized = false;
|
|
2787
|
-
}
|
|
2781
|
+
fs = null;
|
|
2782
|
+
os = null;
|
|
2783
|
+
path = null;
|
|
2784
|
+
initialized = false;
|
|
2788
2785
|
async ensureInitialized() {
|
|
2789
2786
|
if (this.initialized)
|
|
2790
2787
|
return;
|
|
@@ -3525,8 +3522,9 @@ function generateId(prefix) {
|
|
|
3525
3522
|
|
|
3526
3523
|
// src/ai/agent/memory.ts
|
|
3527
3524
|
var ConversationMemory = class {
|
|
3525
|
+
messages = [];
|
|
3526
|
+
config;
|
|
3528
3527
|
constructor(config) {
|
|
3529
|
-
this.messages = [];
|
|
3530
3528
|
this.config = config;
|
|
3531
3529
|
}
|
|
3532
3530
|
async add(message) {
|
|
@@ -3571,8 +3569,10 @@ var ConversationMemory = class {
|
|
|
3571
3569
|
}
|
|
3572
3570
|
};
|
|
3573
3571
|
var BufferMemory = class {
|
|
3572
|
+
messages = [];
|
|
3573
|
+
config;
|
|
3574
|
+
bufferSize;
|
|
3574
3575
|
constructor(config) {
|
|
3575
|
-
this.messages = [];
|
|
3576
3576
|
this.config = config;
|
|
3577
3577
|
this.bufferSize = config.maxMessages || 10;
|
|
3578
3578
|
}
|
|
@@ -3606,9 +3606,11 @@ var BufferMemory = class {
|
|
|
3606
3606
|
}
|
|
3607
3607
|
};
|
|
3608
3608
|
var SummaryMemory = class {
|
|
3609
|
+
messages = [];
|
|
3610
|
+
summary = "";
|
|
3611
|
+
config;
|
|
3612
|
+
summaryThreshold;
|
|
3609
3613
|
constructor(config) {
|
|
3610
|
-
this.messages = [];
|
|
3611
|
-
this.summary = "";
|
|
3612
3614
|
this.config = config;
|
|
3613
3615
|
this.summaryThreshold = config.maxMessages || 20;
|
|
3614
3616
|
}
|
|
@@ -3717,11 +3719,9 @@ var VERYFRONT_PATHS = {
|
|
|
3717
3719
|
|
|
3718
3720
|
// src/core/utils/bundle-manifest.ts
|
|
3719
3721
|
var InMemoryBundleManifestStore = class {
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
this.sourceIndex = /* @__PURE__ */ new Map();
|
|
3724
|
-
}
|
|
3722
|
+
metadata = /* @__PURE__ */ new Map();
|
|
3723
|
+
code = /* @__PURE__ */ new Map();
|
|
3724
|
+
sourceIndex = /* @__PURE__ */ new Map();
|
|
3725
3725
|
getBundleMetadata(key) {
|
|
3726
3726
|
const entry = this.metadata.get(key);
|
|
3727
3727
|
if (!entry)
|
|
@@ -4013,16 +4013,14 @@ var ContextPropagation = class {
|
|
|
4013
4013
|
|
|
4014
4014
|
// src/observability/tracing/manager.ts
|
|
4015
4015
|
var TracingManager = class {
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
this.contextProp = null;
|
|
4025
|
-
}
|
|
4016
|
+
state = {
|
|
4017
|
+
initialized: false,
|
|
4018
|
+
tracer: null,
|
|
4019
|
+
api: null,
|
|
4020
|
+
propagator: null
|
|
4021
|
+
};
|
|
4022
|
+
spanOps = null;
|
|
4023
|
+
contextProp = null;
|
|
4026
4024
|
async initialize(config = {}, adapter) {
|
|
4027
4025
|
if (this.state.initialized) {
|
|
4028
4026
|
serverLogger.debug("[tracing] Already initialized");
|
|
@@ -4180,8 +4178,11 @@ function convertMessageToProvider(msg) {
|
|
|
4180
4178
|
return providerMsg;
|
|
4181
4179
|
}
|
|
4182
4180
|
var AgentRuntime = class {
|
|
4181
|
+
id;
|
|
4182
|
+
config;
|
|
4183
|
+
memory;
|
|
4184
|
+
status = "idle";
|
|
4183
4185
|
constructor(id, config) {
|
|
4184
|
-
this.status = "idle";
|
|
4185
4186
|
this.id = id;
|
|
4186
4187
|
this.config = config;
|
|
4187
4188
|
const memoryConfig = config.memory || { type: "conversation", maxTokens: 4e3 };
|
|
@@ -5165,6 +5166,7 @@ async function setupAI(options = {}) {
|
|
|
5165
5166
|
|
|
5166
5167
|
// src/ai/mcp/server.ts
|
|
5167
5168
|
var MCPServer = class {
|
|
5169
|
+
config;
|
|
5168
5170
|
constructor(config) {
|
|
5169
5171
|
this.config = config;
|
|
5170
5172
|
}
|
|
@@ -5460,7 +5462,6 @@ import {
|
|
|
5460
5462
|
createIdGenerator,
|
|
5461
5463
|
embed,
|
|
5462
5464
|
embedMany,
|
|
5463
|
-
experimental_createMCPClient,
|
|
5464
5465
|
experimental_generateImage,
|
|
5465
5466
|
experimental_generateSpeech,
|
|
5466
5467
|
experimental_transcribe,
|
|
@@ -5476,8 +5477,9 @@ import { anthropic } from "@ai-sdk/anthropic";
|
|
|
5476
5477
|
|
|
5477
5478
|
// src/ai/production/rate-limit/limiter.ts
|
|
5478
5479
|
var FixedWindowLimiter = class {
|
|
5480
|
+
requests = /* @__PURE__ */ new Map();
|
|
5481
|
+
config;
|
|
5479
5482
|
constructor(config) {
|
|
5480
|
-
this.requests = /* @__PURE__ */ new Map();
|
|
5481
5483
|
this.config = config;
|
|
5482
5484
|
}
|
|
5483
5485
|
check(identifier) {
|
|
@@ -5518,8 +5520,10 @@ var FixedWindowLimiter = class {
|
|
|
5518
5520
|
}
|
|
5519
5521
|
};
|
|
5520
5522
|
var TokenBucketLimiter = class {
|
|
5523
|
+
buckets = /* @__PURE__ */ new Map();
|
|
5524
|
+
config;
|
|
5525
|
+
refillRate;
|
|
5521
5526
|
constructor(config) {
|
|
5522
|
-
this.buckets = /* @__PURE__ */ new Map();
|
|
5523
5527
|
this.config = config;
|
|
5524
5528
|
this.refillRate = config.maxRequests / config.windowMs;
|
|
5525
5529
|
}
|
|
@@ -5622,9 +5626,7 @@ function rateLimitMiddleware(config) {
|
|
|
5622
5626
|
|
|
5623
5627
|
// src/ai/production/cache/cache.ts
|
|
5624
5628
|
var MemoryCache = class {
|
|
5625
|
-
|
|
5626
|
-
this.cache = /* @__PURE__ */ new Map();
|
|
5627
|
-
}
|
|
5629
|
+
cache = /* @__PURE__ */ new Map();
|
|
5628
5630
|
set(key, response) {
|
|
5629
5631
|
this.cache.set(key, {
|
|
5630
5632
|
response,
|
|
@@ -5655,8 +5657,9 @@ var MemoryCache = class {
|
|
|
5655
5657
|
}
|
|
5656
5658
|
};
|
|
5657
5659
|
var LRUCache = class {
|
|
5660
|
+
cache = /* @__PURE__ */ new Map();
|
|
5661
|
+
maxSize;
|
|
5658
5662
|
constructor(maxSize = 100) {
|
|
5659
|
-
this.cache = /* @__PURE__ */ new Map();
|
|
5660
5663
|
this.maxSize = maxSize;
|
|
5661
5664
|
}
|
|
5662
5665
|
set(key, response) {
|
|
@@ -5700,9 +5703,10 @@ var LRUCache = class {
|
|
|
5700
5703
|
}
|
|
5701
5704
|
};
|
|
5702
5705
|
var TTLCache = class {
|
|
5706
|
+
cache = /* @__PURE__ */ new Map();
|
|
5707
|
+
ttl;
|
|
5708
|
+
cleanupInterval = null;
|
|
5703
5709
|
constructor(ttl = 3e5) {
|
|
5704
|
-
this.cache = /* @__PURE__ */ new Map();
|
|
5705
|
-
this.cleanupInterval = null;
|
|
5706
5710
|
this.ttl = ttl;
|
|
5707
5711
|
this.startCleanup();
|
|
5708
5712
|
}
|
|
@@ -5856,13 +5860,14 @@ function cacheMiddleware(config) {
|
|
|
5856
5860
|
|
|
5857
5861
|
// src/ai/production/cost-tracking/tracker.ts
|
|
5858
5862
|
var CostTracker = class {
|
|
5863
|
+
records = [];
|
|
5864
|
+
config;
|
|
5865
|
+
dailyTotal = 0;
|
|
5866
|
+
monthlyTotal = 0;
|
|
5867
|
+
lastDayReset = Date.now();
|
|
5868
|
+
lastMonthReset = Date.now();
|
|
5869
|
+
resetInterval = null;
|
|
5859
5870
|
constructor(config) {
|
|
5860
|
-
this.records = [];
|
|
5861
|
-
this.dailyTotal = 0;
|
|
5862
|
-
this.monthlyTotal = 0;
|
|
5863
|
-
this.lastDayReset = Date.now();
|
|
5864
|
-
this.lastMonthReset = Date.now();
|
|
5865
|
-
this.resetInterval = null;
|
|
5866
5871
|
this.config = config;
|
|
5867
5872
|
this.startPeriodicReset();
|
|
5868
5873
|
}
|
|
@@ -6125,6 +6130,7 @@ var PII_PATTERNS = {
|
|
|
6125
6130
|
creditCard: /\b\d{4}[-\s]?\d{4}[-\s]?\d{4}[-\s]?\d{4}\b/g
|
|
6126
6131
|
};
|
|
6127
6132
|
var InputValidator = class {
|
|
6133
|
+
config;
|
|
6128
6134
|
constructor(config) {
|
|
6129
6135
|
this.config = config || {};
|
|
6130
6136
|
}
|
|
@@ -6184,6 +6190,7 @@ var InputValidator = class {
|
|
|
6184
6190
|
}
|
|
6185
6191
|
};
|
|
6186
6192
|
var OutputFilter = class {
|
|
6193
|
+
config;
|
|
6187
6194
|
constructor(config) {
|
|
6188
6195
|
this.config = config || {};
|
|
6189
6196
|
}
|
|
@@ -6457,12 +6464,13 @@ function hasLockSupport(backend) {
|
|
|
6457
6464
|
// src/ai/workflow/backends/memory.ts
|
|
6458
6465
|
var DEFAULT_MAX_QUEUE_SIZE = 1e4;
|
|
6459
6466
|
var MemoryBackend = class {
|
|
6467
|
+
runs = /* @__PURE__ */ new Map();
|
|
6468
|
+
checkpoints = /* @__PURE__ */ new Map();
|
|
6469
|
+
approvals = /* @__PURE__ */ new Map();
|
|
6470
|
+
queue = [];
|
|
6471
|
+
locks = /* @__PURE__ */ new Map();
|
|
6472
|
+
config;
|
|
6460
6473
|
constructor(config = {}) {
|
|
6461
|
-
this.runs = /* @__PURE__ */ new Map();
|
|
6462
|
-
this.checkpoints = /* @__PURE__ */ new Map();
|
|
6463
|
-
this.approvals = /* @__PURE__ */ new Map();
|
|
6464
|
-
this.queue = [];
|
|
6465
|
-
this.locks = /* @__PURE__ */ new Map();
|
|
6466
6474
|
this.config = {
|
|
6467
6475
|
prefix: "wf:",
|
|
6468
6476
|
debug: false,
|
|
@@ -6793,6 +6801,7 @@ var MemoryBackend = class {
|
|
|
6793
6801
|
|
|
6794
6802
|
// src/ai/workflow/executor/dag-executor.ts
|
|
6795
6803
|
var DAGExecutor = class {
|
|
6804
|
+
config;
|
|
6796
6805
|
constructor(config) {
|
|
6797
6806
|
this.config = {
|
|
6798
6807
|
maxConcurrency: 10,
|
|
@@ -7334,6 +7343,7 @@ var DAGExecutor = class {
|
|
|
7334
7343
|
|
|
7335
7344
|
// src/ai/workflow/executor/checkpoint-manager.ts
|
|
7336
7345
|
var CheckpointManager = class {
|
|
7346
|
+
config;
|
|
7337
7347
|
constructor(config) {
|
|
7338
7348
|
this.config = {
|
|
7339
7349
|
debug: false,
|
|
@@ -7491,6 +7501,7 @@ var CheckpointManager = class {
|
|
|
7491
7501
|
// src/ai/workflow/executor/step-executor.ts
|
|
7492
7502
|
var DEFAULT_STEP_TIMEOUT_MS = 5 * 60 * 1e3;
|
|
7493
7503
|
var StepExecutor = class {
|
|
7504
|
+
config;
|
|
7494
7505
|
constructor(config = {}) {
|
|
7495
7506
|
this.config = {
|
|
7496
7507
|
defaultTimeout: DEFAULT_STEP_TIMEOUT_MS,
|
|
@@ -7712,8 +7723,15 @@ var StepExecutor = class {
|
|
|
7712
7723
|
|
|
7713
7724
|
// src/ai/workflow/executor/workflow-executor.ts
|
|
7714
7725
|
var WorkflowExecutor = class _WorkflowExecutor {
|
|
7726
|
+
config;
|
|
7727
|
+
stepExecutor;
|
|
7728
|
+
checkpointManager;
|
|
7729
|
+
dagExecutor;
|
|
7730
|
+
workflows = /* @__PURE__ */ new Map();
|
|
7731
|
+
blobResolver;
|
|
7732
|
+
/** Default lock duration: 30 seconds */
|
|
7733
|
+
static DEFAULT_LOCK_DURATION = 3e4;
|
|
7715
7734
|
constructor(config) {
|
|
7716
|
-
this.workflows = /* @__PURE__ */ new Map();
|
|
7717
7735
|
this.config = {
|
|
7718
7736
|
maxConcurrency: 10,
|
|
7719
7737
|
debug: false,
|
|
@@ -7749,10 +7767,6 @@ var WorkflowExecutor = class _WorkflowExecutor {
|
|
|
7749
7767
|
};
|
|
7750
7768
|
}
|
|
7751
7769
|
}
|
|
7752
|
-
static {
|
|
7753
|
-
/** Default lock duration: 30 seconds */
|
|
7754
|
-
this.DEFAULT_LOCK_DURATION = 3e4;
|
|
7755
|
-
}
|
|
7756
7770
|
/**
|
|
7757
7771
|
* Register a workflow definition
|
|
7758
7772
|
*/
|
|
@@ -8107,8 +8121,10 @@ var WorkflowExecutor = class _WorkflowExecutor {
|
|
|
8107
8121
|
|
|
8108
8122
|
// src/ai/workflow/runtime/approval-manager.ts
|
|
8109
8123
|
var ApprovalManager = class {
|
|
8124
|
+
config;
|
|
8125
|
+
expirationTimer;
|
|
8126
|
+
destroyed = false;
|
|
8110
8127
|
constructor(config) {
|
|
8111
|
-
this.destroyed = false;
|
|
8112
8128
|
this.config = {
|
|
8113
8129
|
expirationCheckInterval: 6e4,
|
|
8114
8130
|
// Check every minute
|
|
@@ -8335,6 +8351,10 @@ var ApprovalManager = class {
|
|
|
8335
8351
|
|
|
8336
8352
|
// src/ai/workflow/api/workflow-client.ts
|
|
8337
8353
|
var WorkflowClient = class {
|
|
8354
|
+
backend;
|
|
8355
|
+
executor;
|
|
8356
|
+
approvalManager;
|
|
8357
|
+
debug;
|
|
8338
8358
|
constructor(config = {}) {
|
|
8339
8359
|
this.debug = config.debug ?? false;
|
|
8340
8360
|
this.backend = config.backend ?? new MemoryBackend({ debug: this.debug });
|
|
@@ -8546,7 +8566,6 @@ export {
|
|
|
8546
8566
|
dynamicTool,
|
|
8547
8567
|
embed,
|
|
8548
8568
|
embedMany,
|
|
8549
|
-
experimental_createMCPClient,
|
|
8550
8569
|
experimental_generateImage,
|
|
8551
8570
|
experimental_generateSpeech,
|
|
8552
8571
|
experimental_transcribe,
|