@eigenpal/cli 0.6.15 → 0.6.17

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/cli.js CHANGED
@@ -17080,14 +17080,2477 @@ var require_picocolors = __commonJS((exports, module) => {
17080
17080
  module.exports.createColors = createColors;
17081
17081
  });
17082
17082
 
17083
+ // ../../node_modules/nanoid/url-alphabet/index.js
17084
+ var urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
17085
+
17086
+ // ../../node_modules/nanoid/index.js
17087
+ import { webcrypto as crypto } from "node:crypto";
17088
+ function fillPool(bytes) {
17089
+ if (!pool || pool.length < bytes) {
17090
+ pool = Buffer.allocUnsafe(bytes * POOL_SIZE_MULTIPLIER);
17091
+ crypto.getRandomValues(pool);
17092
+ poolOffset = 0;
17093
+ } else if (poolOffset + bytes > pool.length) {
17094
+ crypto.getRandomValues(pool);
17095
+ poolOffset = 0;
17096
+ }
17097
+ poolOffset += bytes;
17098
+ }
17099
+ function nanoid3(size = 21) {
17100
+ fillPool(size |= 0);
17101
+ let id = "";
17102
+ for (let i = poolOffset - size;i < poolOffset; i++) {
17103
+ id += urlAlphabet[pool[i] & 63];
17104
+ }
17105
+ return id;
17106
+ }
17107
+ var POOL_SIZE_MULTIPLIER = 128, pool, poolOffset;
17108
+ var init_nanoid = () => {};
17109
+
17110
+ // ../types/src/core/common.ts
17111
+ function generateId(prefix) {
17112
+ const id = nanoid3();
17113
+ return prefix ? `${prefix}_${id}` : id;
17114
+ }
17115
+ function toJsonSchema(schema) {
17116
+ return exports_external.toJSONSchema(schema, { target: "draft-7" });
17117
+ }
17118
+ var ID_PREFIXES, TimestampSchema, JsonSchemaSchema, BaseEntitySchema;
17119
+ var init_common = __esm(() => {
17120
+ init_nanoid();
17121
+ init_zod();
17122
+ ID_PREFIXES = {
17123
+ WORKFLOW: "wf",
17124
+ WORKFLOW_VERSION: "wfv",
17125
+ WORKFLOW_HISTORY: "wfh",
17126
+ JOB: "job",
17127
+ EXECUTION: "exec",
17128
+ STEP_EXECUTION: "step",
17129
+ FILE: "file",
17130
+ TEMPLATE: "tmpl",
17131
+ USER: "user",
17132
+ TENANT: "org",
17133
+ TENANT_INVITE: "inv",
17134
+ API_KEY: "eig",
17135
+ PROCESSOR: "proc",
17136
+ AI_PROVIDER: "aip",
17137
+ ACCOUNT: "acct",
17138
+ SESSION: "sess",
17139
+ VERIFICATION: "vrf",
17140
+ DATASET: "ds",
17141
+ DATASET_EXAMPLE: "dex",
17142
+ EXPERIMENT: "exp",
17143
+ EXPERIMENT_RUN: "exr",
17144
+ EXPERIMENT_EVALUATION: "evl",
17145
+ EVAL_EXAMPLE: "evx",
17146
+ EVAL_RESULT: "evr",
17147
+ EVAL_BATCH: "evb",
17148
+ TABLE_ROW: "row",
17149
+ FOLDER: "fldr",
17150
+ AGENT_WORKFLOW: "awf",
17151
+ AGENT_EXECUTION: "aex",
17152
+ AGENT_EXAMPLE: "aeg",
17153
+ AGENT_VERSION: "avr",
17154
+ AGENT_TRAINING_SESSION: "ats",
17155
+ AGENT_EXPERIMENT: "aexp",
17156
+ AGENT_EMAIL_ALIAS: "aea",
17157
+ AGENT_EMAIL_INVOCATION: "aei",
17158
+ SANDBOX_WS_TOKEN: "sws"
17159
+ };
17160
+ TimestampSchema = exports_external.union([exports_external.date(), exports_external.string().datetime()]).transform((val) => {
17161
+ return typeof val === "string" ? new Date(val) : val;
17162
+ });
17163
+ JsonSchemaSchema = exports_external.record(exports_external.string(), exports_external.unknown());
17164
+ BaseEntitySchema = exports_external.object({
17165
+ id: exports_external.string(),
17166
+ createdAt: TimestampSchema.optional(),
17167
+ updatedAt: TimestampSchema.optional()
17168
+ });
17169
+ });
17170
+
17171
+ // ../types/src/core/ids.ts
17172
+ var PROCESSOR_IDS, PARSER_IDS, INPUT_KINDS;
17173
+ var init_ids = __esm(() => {
17174
+ PROCESSOR_IDS = {
17175
+ MERGE: "builtin/merge",
17176
+ DOCUMENT_PARSER: "builtin/parser",
17177
+ EXTRACT: "builtin/extract",
17178
+ SPLIT: "builtin/split",
17179
+ CLASSIFY: "builtin/classify",
17180
+ TEMPLATE: "builtin/template",
17181
+ PDF_EMBEDDER: "builtin/pdf-embedder",
17182
+ XLSX_TO_JSON: "builtin/xlsx-to-json"
17183
+ };
17184
+ PARSER_IDS = {
17185
+ KREUZBERG: "builtin/kreuzberg",
17186
+ OCR: "builtin/ocr",
17187
+ LLM_VISION: "builtin/llm-vision"
17188
+ };
17189
+ INPUT_KINDS = {
17190
+ DOCUMENT: "document",
17191
+ PAYLOAD: "payload"
17192
+ };
17193
+ });
17194
+
17195
+ // ../types/src/core/pagination.ts
17196
+ var PaginationParamsSchema, DEFAULT_PAGE_SIZE = 50, MAX_PAGE_SIZE = 100;
17197
+ var init_pagination = __esm(() => {
17198
+ init_zod();
17199
+ PaginationParamsSchema = exports_external.object({
17200
+ limit: exports_external.coerce.number().int().min(1).max(100).default(50),
17201
+ offset: exports_external.coerce.number().int().min(0).default(0)
17202
+ });
17203
+ });
17204
+
17083
17205
  // ../types/src/core/index.ts
17084
- var init_core3 = () => {};
17206
+ var init_core3 = __esm(() => {
17207
+ init_common();
17208
+ init_ids();
17209
+ init_pagination();
17210
+ });
17211
+
17212
+ // ../../node_modules/@opentelemetry/api/build/src/version.js
17213
+ var require_version = __commonJS((exports) => {
17214
+ Object.defineProperty(exports, "__esModule", { value: true });
17215
+ exports.VERSION = undefined;
17216
+ exports.VERSION = "1.9.1";
17217
+ });
17218
+
17219
+ // ../../node_modules/@opentelemetry/api/build/src/internal/semver.js
17220
+ var require_semver = __commonJS((exports) => {
17221
+ Object.defineProperty(exports, "__esModule", { value: true });
17222
+ exports.isCompatible = exports._makeCompatibilityCheck = undefined;
17223
+ var version_1 = require_version();
17224
+ var re = /^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;
17225
+ function _makeCompatibilityCheck(ownVersion) {
17226
+ const acceptedVersions = new Set([ownVersion]);
17227
+ const rejectedVersions = new Set;
17228
+ const myVersionMatch = ownVersion.match(re);
17229
+ if (!myVersionMatch) {
17230
+ return () => false;
17231
+ }
17232
+ const ownVersionParsed = {
17233
+ major: +myVersionMatch[1],
17234
+ minor: +myVersionMatch[2],
17235
+ patch: +myVersionMatch[3],
17236
+ prerelease: myVersionMatch[4]
17237
+ };
17238
+ if (ownVersionParsed.prerelease != null) {
17239
+ return function isExactmatch(globalVersion) {
17240
+ return globalVersion === ownVersion;
17241
+ };
17242
+ }
17243
+ function _reject(v) {
17244
+ rejectedVersions.add(v);
17245
+ return false;
17246
+ }
17247
+ function _accept(v) {
17248
+ acceptedVersions.add(v);
17249
+ return true;
17250
+ }
17251
+ return function isCompatible(globalVersion) {
17252
+ if (acceptedVersions.has(globalVersion)) {
17253
+ return true;
17254
+ }
17255
+ if (rejectedVersions.has(globalVersion)) {
17256
+ return false;
17257
+ }
17258
+ const globalVersionMatch = globalVersion.match(re);
17259
+ if (!globalVersionMatch) {
17260
+ return _reject(globalVersion);
17261
+ }
17262
+ const globalVersionParsed = {
17263
+ major: +globalVersionMatch[1],
17264
+ minor: +globalVersionMatch[2],
17265
+ patch: +globalVersionMatch[3],
17266
+ prerelease: globalVersionMatch[4]
17267
+ };
17268
+ if (globalVersionParsed.prerelease != null) {
17269
+ return _reject(globalVersion);
17270
+ }
17271
+ if (ownVersionParsed.major !== globalVersionParsed.major) {
17272
+ return _reject(globalVersion);
17273
+ }
17274
+ if (ownVersionParsed.major === 0) {
17275
+ if (ownVersionParsed.minor === globalVersionParsed.minor && ownVersionParsed.patch <= globalVersionParsed.patch) {
17276
+ return _accept(globalVersion);
17277
+ }
17278
+ return _reject(globalVersion);
17279
+ }
17280
+ if (ownVersionParsed.minor <= globalVersionParsed.minor) {
17281
+ return _accept(globalVersion);
17282
+ }
17283
+ return _reject(globalVersion);
17284
+ };
17285
+ }
17286
+ exports._makeCompatibilityCheck = _makeCompatibilityCheck;
17287
+ exports.isCompatible = _makeCompatibilityCheck(version_1.VERSION);
17288
+ });
17289
+
17290
+ // ../../node_modules/@opentelemetry/api/build/src/internal/global-utils.js
17291
+ var require_global_utils = __commonJS((exports) => {
17292
+ Object.defineProperty(exports, "__esModule", { value: true });
17293
+ exports.unregisterGlobal = exports.getGlobal = exports.registerGlobal = undefined;
17294
+ var version_1 = require_version();
17295
+ var semver_1 = require_semver();
17296
+ var major = version_1.VERSION.split(".")[0];
17297
+ var GLOBAL_OPENTELEMETRY_API_KEY = Symbol.for(`opentelemetry.js.api.${major}`);
17298
+ var _global = typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : typeof window === "object" ? window : typeof global === "object" ? global : {};
17299
+ function registerGlobal(type, instance, diag, allowOverride = false) {
17300
+ var _a3;
17301
+ const api2 = _global[GLOBAL_OPENTELEMETRY_API_KEY] = (_a3 = _global[GLOBAL_OPENTELEMETRY_API_KEY]) !== null && _a3 !== undefined ? _a3 : {
17302
+ version: version_1.VERSION
17303
+ };
17304
+ if (!allowOverride && api2[type]) {
17305
+ const err = new Error(`@opentelemetry/api: Attempted duplicate registration of API: ${type}`);
17306
+ diag.error(err.stack || err.message);
17307
+ return false;
17308
+ }
17309
+ if (api2.version !== version_1.VERSION) {
17310
+ const err = new Error(`@opentelemetry/api: Registration of version v${api2.version} for ${type} does not match previously registered API v${version_1.VERSION}`);
17311
+ diag.error(err.stack || err.message);
17312
+ return false;
17313
+ }
17314
+ api2[type] = instance;
17315
+ diag.debug(`@opentelemetry/api: Registered a global for ${type} v${version_1.VERSION}.`);
17316
+ return true;
17317
+ }
17318
+ exports.registerGlobal = registerGlobal;
17319
+ function getGlobal(type) {
17320
+ var _a3, _b;
17321
+ const globalVersion = (_a3 = _global[GLOBAL_OPENTELEMETRY_API_KEY]) === null || _a3 === undefined ? undefined : _a3.version;
17322
+ if (!globalVersion || !(0, semver_1.isCompatible)(globalVersion)) {
17323
+ return;
17324
+ }
17325
+ return (_b = _global[GLOBAL_OPENTELEMETRY_API_KEY]) === null || _b === undefined ? undefined : _b[type];
17326
+ }
17327
+ exports.getGlobal = getGlobal;
17328
+ function unregisterGlobal(type, diag) {
17329
+ diag.debug(`@opentelemetry/api: Unregistering a global for ${type} v${version_1.VERSION}.`);
17330
+ const api2 = _global[GLOBAL_OPENTELEMETRY_API_KEY];
17331
+ if (api2) {
17332
+ delete api2[type];
17333
+ }
17334
+ }
17335
+ exports.unregisterGlobal = unregisterGlobal;
17336
+ });
17337
+
17338
+ // ../../node_modules/@opentelemetry/api/build/src/diag/ComponentLogger.js
17339
+ var require_ComponentLogger = __commonJS((exports) => {
17340
+ Object.defineProperty(exports, "__esModule", { value: true });
17341
+ exports.DiagComponentLogger = undefined;
17342
+ var global_utils_1 = require_global_utils();
17343
+
17344
+ class DiagComponentLogger {
17345
+ constructor(props) {
17346
+ this._namespace = props.namespace || "DiagComponentLogger";
17347
+ }
17348
+ debug(...args) {
17349
+ return logProxy("debug", this._namespace, args);
17350
+ }
17351
+ error(...args) {
17352
+ return logProxy("error", this._namespace, args);
17353
+ }
17354
+ info(...args) {
17355
+ return logProxy("info", this._namespace, args);
17356
+ }
17357
+ warn(...args) {
17358
+ return logProxy("warn", this._namespace, args);
17359
+ }
17360
+ verbose(...args) {
17361
+ return logProxy("verbose", this._namespace, args);
17362
+ }
17363
+ }
17364
+ exports.DiagComponentLogger = DiagComponentLogger;
17365
+ function logProxy(funcName, namespace, args) {
17366
+ const logger = (0, global_utils_1.getGlobal)("diag");
17367
+ if (!logger) {
17368
+ return;
17369
+ }
17370
+ return logger[funcName](namespace, ...args);
17371
+ }
17372
+ });
17373
+
17374
+ // ../../node_modules/@opentelemetry/api/build/src/diag/types.js
17375
+ var require_types = __commonJS((exports) => {
17376
+ Object.defineProperty(exports, "__esModule", { value: true });
17377
+ exports.DiagLogLevel = undefined;
17378
+ var DiagLogLevel;
17379
+ (function(DiagLogLevel2) {
17380
+ DiagLogLevel2[DiagLogLevel2["NONE"] = 0] = "NONE";
17381
+ DiagLogLevel2[DiagLogLevel2["ERROR"] = 30] = "ERROR";
17382
+ DiagLogLevel2[DiagLogLevel2["WARN"] = 50] = "WARN";
17383
+ DiagLogLevel2[DiagLogLevel2["INFO"] = 60] = "INFO";
17384
+ DiagLogLevel2[DiagLogLevel2["DEBUG"] = 70] = "DEBUG";
17385
+ DiagLogLevel2[DiagLogLevel2["VERBOSE"] = 80] = "VERBOSE";
17386
+ DiagLogLevel2[DiagLogLevel2["ALL"] = 9999] = "ALL";
17387
+ })(DiagLogLevel = exports.DiagLogLevel || (exports.DiagLogLevel = {}));
17388
+ });
17389
+
17390
+ // ../../node_modules/@opentelemetry/api/build/src/diag/internal/logLevelLogger.js
17391
+ var require_logLevelLogger = __commonJS((exports) => {
17392
+ Object.defineProperty(exports, "__esModule", { value: true });
17393
+ exports.createLogLevelDiagLogger = undefined;
17394
+ var types_1 = require_types();
17395
+ function createLogLevelDiagLogger(maxLevel, logger) {
17396
+ if (maxLevel < types_1.DiagLogLevel.NONE) {
17397
+ maxLevel = types_1.DiagLogLevel.NONE;
17398
+ } else if (maxLevel > types_1.DiagLogLevel.ALL) {
17399
+ maxLevel = types_1.DiagLogLevel.ALL;
17400
+ }
17401
+ logger = logger || {};
17402
+ function _filterFunc(funcName, theLevel) {
17403
+ const theFunc = logger[funcName];
17404
+ if (typeof theFunc === "function" && maxLevel >= theLevel) {
17405
+ return theFunc.bind(logger);
17406
+ }
17407
+ return function() {};
17408
+ }
17409
+ return {
17410
+ error: _filterFunc("error", types_1.DiagLogLevel.ERROR),
17411
+ warn: _filterFunc("warn", types_1.DiagLogLevel.WARN),
17412
+ info: _filterFunc("info", types_1.DiagLogLevel.INFO),
17413
+ debug: _filterFunc("debug", types_1.DiagLogLevel.DEBUG),
17414
+ verbose: _filterFunc("verbose", types_1.DiagLogLevel.VERBOSE)
17415
+ };
17416
+ }
17417
+ exports.createLogLevelDiagLogger = createLogLevelDiagLogger;
17418
+ });
17419
+
17420
+ // ../../node_modules/@opentelemetry/api/build/src/api/diag.js
17421
+ var require_diag = __commonJS((exports) => {
17422
+ Object.defineProperty(exports, "__esModule", { value: true });
17423
+ exports.DiagAPI = undefined;
17424
+ var ComponentLogger_1 = require_ComponentLogger();
17425
+ var logLevelLogger_1 = require_logLevelLogger();
17426
+ var types_1 = require_types();
17427
+ var global_utils_1 = require_global_utils();
17428
+ var API_NAME = "diag";
17429
+
17430
+ class DiagAPI {
17431
+ static instance() {
17432
+ if (!this._instance) {
17433
+ this._instance = new DiagAPI;
17434
+ }
17435
+ return this._instance;
17436
+ }
17437
+ constructor() {
17438
+ function _logProxy(funcName) {
17439
+ return function(...args) {
17440
+ const logger = (0, global_utils_1.getGlobal)("diag");
17441
+ if (!logger)
17442
+ return;
17443
+ return logger[funcName](...args);
17444
+ };
17445
+ }
17446
+ const self2 = this;
17447
+ const setLogger = (logger, optionsOrLogLevel = { logLevel: types_1.DiagLogLevel.INFO }) => {
17448
+ var _a3, _b, _c;
17449
+ if (logger === self2) {
17450
+ const err = new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");
17451
+ self2.error((_a3 = err.stack) !== null && _a3 !== undefined ? _a3 : err.message);
17452
+ return false;
17453
+ }
17454
+ if (typeof optionsOrLogLevel === "number") {
17455
+ optionsOrLogLevel = {
17456
+ logLevel: optionsOrLogLevel
17457
+ };
17458
+ }
17459
+ const oldLogger = (0, global_utils_1.getGlobal)("diag");
17460
+ const newLogger = (0, logLevelLogger_1.createLogLevelDiagLogger)((_b = optionsOrLogLevel.logLevel) !== null && _b !== undefined ? _b : types_1.DiagLogLevel.INFO, logger);
17461
+ if (oldLogger && !optionsOrLogLevel.suppressOverrideMessage) {
17462
+ const stack = (_c = new Error().stack) !== null && _c !== undefined ? _c : "<failed to generate stacktrace>";
17463
+ oldLogger.warn(`Current logger will be overwritten from ${stack}`);
17464
+ newLogger.warn(`Current logger will overwrite one already registered from ${stack}`);
17465
+ }
17466
+ return (0, global_utils_1.registerGlobal)("diag", newLogger, self2, true);
17467
+ };
17468
+ self2.setLogger = setLogger;
17469
+ self2.disable = () => {
17470
+ (0, global_utils_1.unregisterGlobal)(API_NAME, self2);
17471
+ };
17472
+ self2.createComponentLogger = (options) => {
17473
+ return new ComponentLogger_1.DiagComponentLogger(options);
17474
+ };
17475
+ self2.verbose = _logProxy("verbose");
17476
+ self2.debug = _logProxy("debug");
17477
+ self2.info = _logProxy("info");
17478
+ self2.warn = _logProxy("warn");
17479
+ self2.error = _logProxy("error");
17480
+ }
17481
+ }
17482
+ exports.DiagAPI = DiagAPI;
17483
+ });
17484
+
17485
+ // ../../node_modules/@opentelemetry/api/build/src/baggage/internal/baggage-impl.js
17486
+ var require_baggage_impl = __commonJS((exports) => {
17487
+ Object.defineProperty(exports, "__esModule", { value: true });
17488
+ exports.BaggageImpl = undefined;
17489
+
17490
+ class BaggageImpl {
17491
+ constructor(entries) {
17492
+ this._entries = entries ? new Map(entries) : new Map;
17493
+ }
17494
+ getEntry(key) {
17495
+ const entry = this._entries.get(key);
17496
+ if (!entry) {
17497
+ return;
17498
+ }
17499
+ return Object.assign({}, entry);
17500
+ }
17501
+ getAllEntries() {
17502
+ return Array.from(this._entries.entries());
17503
+ }
17504
+ setEntry(key, entry) {
17505
+ const newBaggage = new BaggageImpl(this._entries);
17506
+ newBaggage._entries.set(key, entry);
17507
+ return newBaggage;
17508
+ }
17509
+ removeEntry(key) {
17510
+ const newBaggage = new BaggageImpl(this._entries);
17511
+ newBaggage._entries.delete(key);
17512
+ return newBaggage;
17513
+ }
17514
+ removeEntries(...keys) {
17515
+ const newBaggage = new BaggageImpl(this._entries);
17516
+ for (const key of keys) {
17517
+ newBaggage._entries.delete(key);
17518
+ }
17519
+ return newBaggage;
17520
+ }
17521
+ clear() {
17522
+ return new BaggageImpl;
17523
+ }
17524
+ }
17525
+ exports.BaggageImpl = BaggageImpl;
17526
+ });
17527
+
17528
+ // ../../node_modules/@opentelemetry/api/build/src/baggage/internal/symbol.js
17529
+ var require_symbol = __commonJS((exports) => {
17530
+ Object.defineProperty(exports, "__esModule", { value: true });
17531
+ exports.baggageEntryMetadataSymbol = undefined;
17532
+ exports.baggageEntryMetadataSymbol = Symbol("BaggageEntryMetadata");
17533
+ });
17534
+
17535
+ // ../../node_modules/@opentelemetry/api/build/src/baggage/utils.js
17536
+ var require_utils = __commonJS((exports) => {
17537
+ Object.defineProperty(exports, "__esModule", { value: true });
17538
+ exports.baggageEntryMetadataFromString = exports.createBaggage = undefined;
17539
+ var diag_1 = require_diag();
17540
+ var baggage_impl_1 = require_baggage_impl();
17541
+ var symbol_1 = require_symbol();
17542
+ var diag = diag_1.DiagAPI.instance();
17543
+ function createBaggage(entries = {}) {
17544
+ return new baggage_impl_1.BaggageImpl(new Map(Object.entries(entries)));
17545
+ }
17546
+ exports.createBaggage = createBaggage;
17547
+ function baggageEntryMetadataFromString(str) {
17548
+ if (typeof str !== "string") {
17549
+ diag.error(`Cannot create baggage metadata from unknown type: ${typeof str}`);
17550
+ str = "";
17551
+ }
17552
+ return {
17553
+ __TYPE__: symbol_1.baggageEntryMetadataSymbol,
17554
+ toString() {
17555
+ return str;
17556
+ }
17557
+ };
17558
+ }
17559
+ exports.baggageEntryMetadataFromString = baggageEntryMetadataFromString;
17560
+ });
17561
+
17562
+ // ../../node_modules/@opentelemetry/api/build/src/context/context.js
17563
+ var require_context = __commonJS((exports) => {
17564
+ Object.defineProperty(exports, "__esModule", { value: true });
17565
+ exports.ROOT_CONTEXT = exports.createContextKey = undefined;
17566
+ function createContextKey(description) {
17567
+ return Symbol.for(description);
17568
+ }
17569
+ exports.createContextKey = createContextKey;
17570
+
17571
+ class BaseContext {
17572
+ constructor(parentContext) {
17573
+ const self2 = this;
17574
+ self2._currentContext = parentContext ? new Map(parentContext) : new Map;
17575
+ self2.getValue = (key) => self2._currentContext.get(key);
17576
+ self2.setValue = (key, value) => {
17577
+ const context = new BaseContext(self2._currentContext);
17578
+ context._currentContext.set(key, value);
17579
+ return context;
17580
+ };
17581
+ self2.deleteValue = (key) => {
17582
+ const context = new BaseContext(self2._currentContext);
17583
+ context._currentContext.delete(key);
17584
+ return context;
17585
+ };
17586
+ }
17587
+ }
17588
+ exports.ROOT_CONTEXT = new BaseContext;
17589
+ });
17590
+
17591
+ // ../../node_modules/@opentelemetry/api/build/src/diag/consoleLogger.js
17592
+ var require_consoleLogger = __commonJS((exports) => {
17593
+ Object.defineProperty(exports, "__esModule", { value: true });
17594
+ exports.DiagConsoleLogger = exports._originalConsoleMethods = undefined;
17595
+ var consoleMap = [
17596
+ { n: "error", c: "error" },
17597
+ { n: "warn", c: "warn" },
17598
+ { n: "info", c: "info" },
17599
+ { n: "debug", c: "debug" },
17600
+ { n: "verbose", c: "trace" }
17601
+ ];
17602
+ exports._originalConsoleMethods = {};
17603
+ if (typeof console !== "undefined") {
17604
+ const keys = [
17605
+ "error",
17606
+ "warn",
17607
+ "info",
17608
+ "debug",
17609
+ "trace",
17610
+ "log"
17611
+ ];
17612
+ for (const key of keys) {
17613
+ if (typeof console[key] === "function") {
17614
+ exports._originalConsoleMethods[key] = console[key];
17615
+ }
17616
+ }
17617
+ }
17618
+
17619
+ class DiagConsoleLogger {
17620
+ constructor() {
17621
+ function _consoleFunc(funcName) {
17622
+ return function(...args) {
17623
+ let theFunc = exports._originalConsoleMethods[funcName];
17624
+ if (typeof theFunc !== "function") {
17625
+ theFunc = exports._originalConsoleMethods["log"];
17626
+ }
17627
+ if (typeof theFunc !== "function" && console) {
17628
+ theFunc = console[funcName];
17629
+ if (typeof theFunc !== "function") {
17630
+ theFunc = console.log;
17631
+ }
17632
+ }
17633
+ if (typeof theFunc === "function") {
17634
+ return theFunc.apply(console, args);
17635
+ }
17636
+ };
17637
+ }
17638
+ for (let i = 0;i < consoleMap.length; i++) {
17639
+ this[consoleMap[i].n] = _consoleFunc(consoleMap[i].c);
17640
+ }
17641
+ }
17642
+ }
17643
+ exports.DiagConsoleLogger = DiagConsoleLogger;
17644
+ });
17645
+
17646
+ // ../../node_modules/@opentelemetry/api/build/src/metrics/NoopMeter.js
17647
+ var require_NoopMeter = __commonJS((exports) => {
17648
+ Object.defineProperty(exports, "__esModule", { value: true });
17649
+ exports.createNoopMeter = exports.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC = exports.NOOP_OBSERVABLE_GAUGE_METRIC = exports.NOOP_OBSERVABLE_COUNTER_METRIC = exports.NOOP_UP_DOWN_COUNTER_METRIC = exports.NOOP_HISTOGRAM_METRIC = exports.NOOP_GAUGE_METRIC = exports.NOOP_COUNTER_METRIC = exports.NOOP_METER = exports.NoopObservableUpDownCounterMetric = exports.NoopObservableGaugeMetric = exports.NoopObservableCounterMetric = exports.NoopObservableMetric = exports.NoopHistogramMetric = exports.NoopGaugeMetric = exports.NoopUpDownCounterMetric = exports.NoopCounterMetric = exports.NoopMetric = exports.NoopMeter = undefined;
17650
+
17651
+ class NoopMeter {
17652
+ constructor() {}
17653
+ createGauge(_name, _options) {
17654
+ return exports.NOOP_GAUGE_METRIC;
17655
+ }
17656
+ createHistogram(_name, _options) {
17657
+ return exports.NOOP_HISTOGRAM_METRIC;
17658
+ }
17659
+ createCounter(_name, _options) {
17660
+ return exports.NOOP_COUNTER_METRIC;
17661
+ }
17662
+ createUpDownCounter(_name, _options) {
17663
+ return exports.NOOP_UP_DOWN_COUNTER_METRIC;
17664
+ }
17665
+ createObservableGauge(_name, _options) {
17666
+ return exports.NOOP_OBSERVABLE_GAUGE_METRIC;
17667
+ }
17668
+ createObservableCounter(_name, _options) {
17669
+ return exports.NOOP_OBSERVABLE_COUNTER_METRIC;
17670
+ }
17671
+ createObservableUpDownCounter(_name, _options) {
17672
+ return exports.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC;
17673
+ }
17674
+ addBatchObservableCallback(_callback, _observables) {}
17675
+ removeBatchObservableCallback(_callback) {}
17676
+ }
17677
+ exports.NoopMeter = NoopMeter;
17678
+
17679
+ class NoopMetric {
17680
+ }
17681
+ exports.NoopMetric = NoopMetric;
17682
+
17683
+ class NoopCounterMetric extends NoopMetric {
17684
+ add(_value, _attributes) {}
17685
+ }
17686
+ exports.NoopCounterMetric = NoopCounterMetric;
17687
+
17688
+ class NoopUpDownCounterMetric extends NoopMetric {
17689
+ add(_value, _attributes) {}
17690
+ }
17691
+ exports.NoopUpDownCounterMetric = NoopUpDownCounterMetric;
17692
+
17693
+ class NoopGaugeMetric extends NoopMetric {
17694
+ record(_value, _attributes) {}
17695
+ }
17696
+ exports.NoopGaugeMetric = NoopGaugeMetric;
17697
+
17698
+ class NoopHistogramMetric extends NoopMetric {
17699
+ record(_value, _attributes) {}
17700
+ }
17701
+ exports.NoopHistogramMetric = NoopHistogramMetric;
17702
+
17703
+ class NoopObservableMetric {
17704
+ addCallback(_callback) {}
17705
+ removeCallback(_callback) {}
17706
+ }
17707
+ exports.NoopObservableMetric = NoopObservableMetric;
17708
+
17709
+ class NoopObservableCounterMetric extends NoopObservableMetric {
17710
+ }
17711
+ exports.NoopObservableCounterMetric = NoopObservableCounterMetric;
17712
+
17713
+ class NoopObservableGaugeMetric extends NoopObservableMetric {
17714
+ }
17715
+ exports.NoopObservableGaugeMetric = NoopObservableGaugeMetric;
17716
+
17717
+ class NoopObservableUpDownCounterMetric extends NoopObservableMetric {
17718
+ }
17719
+ exports.NoopObservableUpDownCounterMetric = NoopObservableUpDownCounterMetric;
17720
+ exports.NOOP_METER = new NoopMeter;
17721
+ exports.NOOP_COUNTER_METRIC = new NoopCounterMetric;
17722
+ exports.NOOP_GAUGE_METRIC = new NoopGaugeMetric;
17723
+ exports.NOOP_HISTOGRAM_METRIC = new NoopHistogramMetric;
17724
+ exports.NOOP_UP_DOWN_COUNTER_METRIC = new NoopUpDownCounterMetric;
17725
+ exports.NOOP_OBSERVABLE_COUNTER_METRIC = new NoopObservableCounterMetric;
17726
+ exports.NOOP_OBSERVABLE_GAUGE_METRIC = new NoopObservableGaugeMetric;
17727
+ exports.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC = new NoopObservableUpDownCounterMetric;
17728
+ function createNoopMeter() {
17729
+ return exports.NOOP_METER;
17730
+ }
17731
+ exports.createNoopMeter = createNoopMeter;
17732
+ });
17733
+
17734
+ // ../../node_modules/@opentelemetry/api/build/src/metrics/Metric.js
17735
+ var require_Metric = __commonJS((exports) => {
17736
+ Object.defineProperty(exports, "__esModule", { value: true });
17737
+ exports.ValueType = undefined;
17738
+ var ValueType;
17739
+ (function(ValueType2) {
17740
+ ValueType2[ValueType2["INT"] = 0] = "INT";
17741
+ ValueType2[ValueType2["DOUBLE"] = 1] = "DOUBLE";
17742
+ })(ValueType = exports.ValueType || (exports.ValueType = {}));
17743
+ });
17744
+
17745
+ // ../../node_modules/@opentelemetry/api/build/src/propagation/TextMapPropagator.js
17746
+ var require_TextMapPropagator = __commonJS((exports) => {
17747
+ Object.defineProperty(exports, "__esModule", { value: true });
17748
+ exports.defaultTextMapSetter = exports.defaultTextMapGetter = undefined;
17749
+ exports.defaultTextMapGetter = {
17750
+ get(carrier, key) {
17751
+ if (carrier == null) {
17752
+ return;
17753
+ }
17754
+ return carrier[key];
17755
+ },
17756
+ keys(carrier) {
17757
+ if (carrier == null) {
17758
+ return [];
17759
+ }
17760
+ return Object.keys(carrier);
17761
+ }
17762
+ };
17763
+ exports.defaultTextMapSetter = {
17764
+ set(carrier, key, value) {
17765
+ if (carrier == null) {
17766
+ return;
17767
+ }
17768
+ carrier[key] = value;
17769
+ }
17770
+ };
17771
+ });
17772
+
17773
+ // ../../node_modules/@opentelemetry/api/build/src/context/NoopContextManager.js
17774
+ var require_NoopContextManager = __commonJS((exports) => {
17775
+ Object.defineProperty(exports, "__esModule", { value: true });
17776
+ exports.NoopContextManager = undefined;
17777
+ var context_1 = require_context();
17778
+
17779
+ class NoopContextManager {
17780
+ active() {
17781
+ return context_1.ROOT_CONTEXT;
17782
+ }
17783
+ with(_context, fn, thisArg, ...args) {
17784
+ return fn.call(thisArg, ...args);
17785
+ }
17786
+ bind(_context, target) {
17787
+ return target;
17788
+ }
17789
+ enable() {
17790
+ return this;
17791
+ }
17792
+ disable() {
17793
+ return this;
17794
+ }
17795
+ }
17796
+ exports.NoopContextManager = NoopContextManager;
17797
+ });
17798
+
17799
+ // ../../node_modules/@opentelemetry/api/build/src/api/context.js
17800
+ var require_context2 = __commonJS((exports) => {
17801
+ Object.defineProperty(exports, "__esModule", { value: true });
17802
+ exports.ContextAPI = undefined;
17803
+ var NoopContextManager_1 = require_NoopContextManager();
17804
+ var global_utils_1 = require_global_utils();
17805
+ var diag_1 = require_diag();
17806
+ var API_NAME = "context";
17807
+ var NOOP_CONTEXT_MANAGER = new NoopContextManager_1.NoopContextManager;
17808
+
17809
+ class ContextAPI {
17810
+ constructor() {}
17811
+ static getInstance() {
17812
+ if (!this._instance) {
17813
+ this._instance = new ContextAPI;
17814
+ }
17815
+ return this._instance;
17816
+ }
17817
+ setGlobalContextManager(contextManager) {
17818
+ return (0, global_utils_1.registerGlobal)(API_NAME, contextManager, diag_1.DiagAPI.instance());
17819
+ }
17820
+ active() {
17821
+ return this._getContextManager().active();
17822
+ }
17823
+ with(context, fn, thisArg, ...args) {
17824
+ return this._getContextManager().with(context, fn, thisArg, ...args);
17825
+ }
17826
+ bind(context, target) {
17827
+ return this._getContextManager().bind(context, target);
17828
+ }
17829
+ _getContextManager() {
17830
+ return (0, global_utils_1.getGlobal)(API_NAME) || NOOP_CONTEXT_MANAGER;
17831
+ }
17832
+ disable() {
17833
+ this._getContextManager().disable();
17834
+ (0, global_utils_1.unregisterGlobal)(API_NAME, diag_1.DiagAPI.instance());
17835
+ }
17836
+ }
17837
+ exports.ContextAPI = ContextAPI;
17838
+ });
17839
+
17840
+ // ../../node_modules/@opentelemetry/api/build/src/trace/trace_flags.js
17841
+ var require_trace_flags = __commonJS((exports) => {
17842
+ Object.defineProperty(exports, "__esModule", { value: true });
17843
+ exports.TraceFlags = undefined;
17844
+ var TraceFlags;
17845
+ (function(TraceFlags2) {
17846
+ TraceFlags2[TraceFlags2["NONE"] = 0] = "NONE";
17847
+ TraceFlags2[TraceFlags2["SAMPLED"] = 1] = "SAMPLED";
17848
+ })(TraceFlags = exports.TraceFlags || (exports.TraceFlags = {}));
17849
+ });
17850
+
17851
+ // ../../node_modules/@opentelemetry/api/build/src/trace/invalid-span-constants.js
17852
+ var require_invalid_span_constants = __commonJS((exports) => {
17853
+ Object.defineProperty(exports, "__esModule", { value: true });
17854
+ exports.INVALID_SPAN_CONTEXT = exports.INVALID_TRACEID = exports.INVALID_SPANID = undefined;
17855
+ var trace_flags_1 = require_trace_flags();
17856
+ exports.INVALID_SPANID = "0000000000000000";
17857
+ exports.INVALID_TRACEID = "00000000000000000000000000000000";
17858
+ exports.INVALID_SPAN_CONTEXT = {
17859
+ traceId: exports.INVALID_TRACEID,
17860
+ spanId: exports.INVALID_SPANID,
17861
+ traceFlags: trace_flags_1.TraceFlags.NONE
17862
+ };
17863
+ });
17864
+
17865
+ // ../../node_modules/@opentelemetry/api/build/src/trace/NonRecordingSpan.js
17866
+ var require_NonRecordingSpan = __commonJS((exports) => {
17867
+ Object.defineProperty(exports, "__esModule", { value: true });
17868
+ exports.NonRecordingSpan = undefined;
17869
+ var invalid_span_constants_1 = require_invalid_span_constants();
17870
+
17871
+ class NonRecordingSpan {
17872
+ constructor(spanContext = invalid_span_constants_1.INVALID_SPAN_CONTEXT) {
17873
+ this._spanContext = spanContext;
17874
+ }
17875
+ spanContext() {
17876
+ return this._spanContext;
17877
+ }
17878
+ setAttribute(_key, _value) {
17879
+ return this;
17880
+ }
17881
+ setAttributes(_attributes) {
17882
+ return this;
17883
+ }
17884
+ addEvent(_name, _attributes) {
17885
+ return this;
17886
+ }
17887
+ addLink(_link) {
17888
+ return this;
17889
+ }
17890
+ addLinks(_links) {
17891
+ return this;
17892
+ }
17893
+ setStatus(_status) {
17894
+ return this;
17895
+ }
17896
+ updateName(_name) {
17897
+ return this;
17898
+ }
17899
+ end(_endTime) {}
17900
+ isRecording() {
17901
+ return false;
17902
+ }
17903
+ recordException(_exception, _time) {}
17904
+ }
17905
+ exports.NonRecordingSpan = NonRecordingSpan;
17906
+ });
17907
+
17908
+ // ../../node_modules/@opentelemetry/api/build/src/trace/context-utils.js
17909
+ var require_context_utils = __commonJS((exports) => {
17910
+ Object.defineProperty(exports, "__esModule", { value: true });
17911
+ exports.getSpanContext = exports.setSpanContext = exports.deleteSpan = exports.setSpan = exports.getActiveSpan = exports.getSpan = undefined;
17912
+ var context_1 = require_context();
17913
+ var NonRecordingSpan_1 = require_NonRecordingSpan();
17914
+ var context_2 = require_context2();
17915
+ var SPAN_KEY = (0, context_1.createContextKey)("OpenTelemetry Context Key SPAN");
17916
+ function getSpan(context) {
17917
+ return context.getValue(SPAN_KEY) || undefined;
17918
+ }
17919
+ exports.getSpan = getSpan;
17920
+ function getActiveSpan() {
17921
+ return getSpan(context_2.ContextAPI.getInstance().active());
17922
+ }
17923
+ exports.getActiveSpan = getActiveSpan;
17924
+ function setSpan(context, span) {
17925
+ return context.setValue(SPAN_KEY, span);
17926
+ }
17927
+ exports.setSpan = setSpan;
17928
+ function deleteSpan(context) {
17929
+ return context.deleteValue(SPAN_KEY);
17930
+ }
17931
+ exports.deleteSpan = deleteSpan;
17932
+ function setSpanContext(context, spanContext) {
17933
+ return setSpan(context, new NonRecordingSpan_1.NonRecordingSpan(spanContext));
17934
+ }
17935
+ exports.setSpanContext = setSpanContext;
17936
+ function getSpanContext(context) {
17937
+ var _a3;
17938
+ return (_a3 = getSpan(context)) === null || _a3 === undefined ? undefined : _a3.spanContext();
17939
+ }
17940
+ exports.getSpanContext = getSpanContext;
17941
+ });
17942
+
17943
+ // ../../node_modules/@opentelemetry/api/build/src/trace/spancontext-utils.js
17944
+ var require_spancontext_utils = __commonJS((exports) => {
17945
+ Object.defineProperty(exports, "__esModule", { value: true });
17946
+ exports.wrapSpanContext = exports.isSpanContextValid = exports.isValidSpanId = exports.isValidTraceId = undefined;
17947
+ var invalid_span_constants_1 = require_invalid_span_constants();
17948
+ var NonRecordingSpan_1 = require_NonRecordingSpan();
17949
+ var isHex = new Uint8Array([
17950
+ 0,
17951
+ 0,
17952
+ 0,
17953
+ 0,
17954
+ 0,
17955
+ 0,
17956
+ 0,
17957
+ 0,
17958
+ 0,
17959
+ 0,
17960
+ 0,
17961
+ 0,
17962
+ 0,
17963
+ 0,
17964
+ 0,
17965
+ 0,
17966
+ 0,
17967
+ 0,
17968
+ 0,
17969
+ 0,
17970
+ 0,
17971
+ 0,
17972
+ 0,
17973
+ 0,
17974
+ 0,
17975
+ 0,
17976
+ 0,
17977
+ 0,
17978
+ 0,
17979
+ 0,
17980
+ 0,
17981
+ 0,
17982
+ 0,
17983
+ 0,
17984
+ 0,
17985
+ 0,
17986
+ 0,
17987
+ 0,
17988
+ 0,
17989
+ 0,
17990
+ 0,
17991
+ 0,
17992
+ 0,
17993
+ 0,
17994
+ 0,
17995
+ 0,
17996
+ 0,
17997
+ 0,
17998
+ 1,
17999
+ 1,
18000
+ 1,
18001
+ 1,
18002
+ 1,
18003
+ 1,
18004
+ 1,
18005
+ 1,
18006
+ 1,
18007
+ 1,
18008
+ 0,
18009
+ 0,
18010
+ 0,
18011
+ 0,
18012
+ 0,
18013
+ 0,
18014
+ 0,
18015
+ 1,
18016
+ 1,
18017
+ 1,
18018
+ 1,
18019
+ 1,
18020
+ 1,
18021
+ 0,
18022
+ 0,
18023
+ 0,
18024
+ 0,
18025
+ 0,
18026
+ 0,
18027
+ 0,
18028
+ 0,
18029
+ 0,
18030
+ 0,
18031
+ 0,
18032
+ 0,
18033
+ 0,
18034
+ 0,
18035
+ 0,
18036
+ 0,
18037
+ 0,
18038
+ 0,
18039
+ 0,
18040
+ 0,
18041
+ 0,
18042
+ 0,
18043
+ 0,
18044
+ 0,
18045
+ 0,
18046
+ 0,
18047
+ 1,
18048
+ 1,
18049
+ 1,
18050
+ 1,
18051
+ 1,
18052
+ 1
18053
+ ]);
18054
+ function isValidHex(id, length) {
18055
+ if (typeof id !== "string" || id.length !== length)
18056
+ return false;
18057
+ let r = 0;
18058
+ for (let i = 0;i < id.length; i += 4) {
18059
+ r += (isHex[id.charCodeAt(i)] | 0) + (isHex[id.charCodeAt(i + 1)] | 0) + (isHex[id.charCodeAt(i + 2)] | 0) + (isHex[id.charCodeAt(i + 3)] | 0);
18060
+ }
18061
+ return r === length;
18062
+ }
18063
+ function isValidTraceId(traceId) {
18064
+ return isValidHex(traceId, 32) && traceId !== invalid_span_constants_1.INVALID_TRACEID;
18065
+ }
18066
+ exports.isValidTraceId = isValidTraceId;
18067
+ function isValidSpanId(spanId) {
18068
+ return isValidHex(spanId, 16) && spanId !== invalid_span_constants_1.INVALID_SPANID;
18069
+ }
18070
+ exports.isValidSpanId = isValidSpanId;
18071
+ function isSpanContextValid(spanContext) {
18072
+ return isValidTraceId(spanContext.traceId) && isValidSpanId(spanContext.spanId);
18073
+ }
18074
+ exports.isSpanContextValid = isSpanContextValid;
18075
+ function wrapSpanContext(spanContext) {
18076
+ return new NonRecordingSpan_1.NonRecordingSpan(spanContext);
18077
+ }
18078
+ exports.wrapSpanContext = wrapSpanContext;
18079
+ });
18080
+
18081
+ // ../../node_modules/@opentelemetry/api/build/src/trace/NoopTracer.js
18082
+ var require_NoopTracer = __commonJS((exports) => {
18083
+ Object.defineProperty(exports, "__esModule", { value: true });
18084
+ exports.NoopTracer = undefined;
18085
+ var context_1 = require_context2();
18086
+ var context_utils_1 = require_context_utils();
18087
+ var NonRecordingSpan_1 = require_NonRecordingSpan();
18088
+ var spancontext_utils_1 = require_spancontext_utils();
18089
+ var contextApi = context_1.ContextAPI.getInstance();
18090
+
18091
+ class NoopTracer {
18092
+ startSpan(name, options, context = contextApi.active()) {
18093
+ const root = Boolean(options === null || options === undefined ? undefined : options.root);
18094
+ if (root) {
18095
+ return new NonRecordingSpan_1.NonRecordingSpan;
18096
+ }
18097
+ const parentFromContext = context && (0, context_utils_1.getSpanContext)(context);
18098
+ if (isSpanContext(parentFromContext) && (0, spancontext_utils_1.isSpanContextValid)(parentFromContext)) {
18099
+ return new NonRecordingSpan_1.NonRecordingSpan(parentFromContext);
18100
+ } else {
18101
+ return new NonRecordingSpan_1.NonRecordingSpan;
18102
+ }
18103
+ }
18104
+ startActiveSpan(name, arg2, arg3, arg4) {
18105
+ let opts;
18106
+ let ctx;
18107
+ let fn;
18108
+ if (arguments.length < 2) {
18109
+ return;
18110
+ } else if (arguments.length === 2) {
18111
+ fn = arg2;
18112
+ } else if (arguments.length === 3) {
18113
+ opts = arg2;
18114
+ fn = arg3;
18115
+ } else {
18116
+ opts = arg2;
18117
+ ctx = arg3;
18118
+ fn = arg4;
18119
+ }
18120
+ const parentContext = ctx !== null && ctx !== undefined ? ctx : contextApi.active();
18121
+ const span = this.startSpan(name, opts, parentContext);
18122
+ const contextWithSpanSet = (0, context_utils_1.setSpan)(parentContext, span);
18123
+ return contextApi.with(contextWithSpanSet, fn, undefined, span);
18124
+ }
18125
+ }
18126
+ exports.NoopTracer = NoopTracer;
18127
+ function isSpanContext(spanContext) {
18128
+ return spanContext !== null && typeof spanContext === "object" && "spanId" in spanContext && typeof spanContext["spanId"] === "string" && "traceId" in spanContext && typeof spanContext["traceId"] === "string" && "traceFlags" in spanContext && typeof spanContext["traceFlags"] === "number";
18129
+ }
18130
+ });
18131
+
18132
+ // ../../node_modules/@opentelemetry/api/build/src/trace/ProxyTracer.js
18133
+ var require_ProxyTracer = __commonJS((exports) => {
18134
+ Object.defineProperty(exports, "__esModule", { value: true });
18135
+ exports.ProxyTracer = undefined;
18136
+ var NoopTracer_1 = require_NoopTracer();
18137
+ var NOOP_TRACER = new NoopTracer_1.NoopTracer;
18138
+
18139
+ class ProxyTracer {
18140
+ constructor(provider, name, version2, options) {
18141
+ this._provider = provider;
18142
+ this.name = name;
18143
+ this.version = version2;
18144
+ this.options = options;
18145
+ }
18146
+ startSpan(name, options, context) {
18147
+ return this._getTracer().startSpan(name, options, context);
18148
+ }
18149
+ startActiveSpan(_name, _options, _context, _fn) {
18150
+ const tracer = this._getTracer();
18151
+ return Reflect.apply(tracer.startActiveSpan, tracer, arguments);
18152
+ }
18153
+ _getTracer() {
18154
+ if (this._delegate) {
18155
+ return this._delegate;
18156
+ }
18157
+ const tracer = this._provider.getDelegateTracer(this.name, this.version, this.options);
18158
+ if (!tracer) {
18159
+ return NOOP_TRACER;
18160
+ }
18161
+ this._delegate = tracer;
18162
+ return this._delegate;
18163
+ }
18164
+ }
18165
+ exports.ProxyTracer = ProxyTracer;
18166
+ });
18167
+
18168
+ // ../../node_modules/@opentelemetry/api/build/src/trace/NoopTracerProvider.js
18169
+ var require_NoopTracerProvider = __commonJS((exports) => {
18170
+ Object.defineProperty(exports, "__esModule", { value: true });
18171
+ exports.NoopTracerProvider = undefined;
18172
+ var NoopTracer_1 = require_NoopTracer();
18173
+
18174
+ class NoopTracerProvider {
18175
+ getTracer(_name, _version, _options) {
18176
+ return new NoopTracer_1.NoopTracer;
18177
+ }
18178
+ }
18179
+ exports.NoopTracerProvider = NoopTracerProvider;
18180
+ });
18181
+
18182
+ // ../../node_modules/@opentelemetry/api/build/src/trace/ProxyTracerProvider.js
18183
+ var require_ProxyTracerProvider = __commonJS((exports) => {
18184
+ Object.defineProperty(exports, "__esModule", { value: true });
18185
+ exports.ProxyTracerProvider = undefined;
18186
+ var ProxyTracer_1 = require_ProxyTracer();
18187
+ var NoopTracerProvider_1 = require_NoopTracerProvider();
18188
+ var NOOP_TRACER_PROVIDER = new NoopTracerProvider_1.NoopTracerProvider;
18189
+
18190
+ class ProxyTracerProvider {
18191
+ getTracer(name, version2, options) {
18192
+ var _a3;
18193
+ return (_a3 = this.getDelegateTracer(name, version2, options)) !== null && _a3 !== undefined ? _a3 : new ProxyTracer_1.ProxyTracer(this, name, version2, options);
18194
+ }
18195
+ getDelegate() {
18196
+ var _a3;
18197
+ return (_a3 = this._delegate) !== null && _a3 !== undefined ? _a3 : NOOP_TRACER_PROVIDER;
18198
+ }
18199
+ setDelegate(delegate) {
18200
+ this._delegate = delegate;
18201
+ }
18202
+ getDelegateTracer(name, version2, options) {
18203
+ var _a3;
18204
+ return (_a3 = this._delegate) === null || _a3 === undefined ? undefined : _a3.getTracer(name, version2, options);
18205
+ }
18206
+ }
18207
+ exports.ProxyTracerProvider = ProxyTracerProvider;
18208
+ });
18209
+
18210
+ // ../../node_modules/@opentelemetry/api/build/src/trace/SamplingResult.js
18211
+ var require_SamplingResult = __commonJS((exports) => {
18212
+ Object.defineProperty(exports, "__esModule", { value: true });
18213
+ exports.SamplingDecision = undefined;
18214
+ var SamplingDecision;
18215
+ (function(SamplingDecision2) {
18216
+ SamplingDecision2[SamplingDecision2["NOT_RECORD"] = 0] = "NOT_RECORD";
18217
+ SamplingDecision2[SamplingDecision2["RECORD"] = 1] = "RECORD";
18218
+ SamplingDecision2[SamplingDecision2["RECORD_AND_SAMPLED"] = 2] = "RECORD_AND_SAMPLED";
18219
+ })(SamplingDecision = exports.SamplingDecision || (exports.SamplingDecision = {}));
18220
+ });
18221
+
18222
+ // ../../node_modules/@opentelemetry/api/build/src/trace/span_kind.js
18223
+ var require_span_kind = __commonJS((exports) => {
18224
+ Object.defineProperty(exports, "__esModule", { value: true });
18225
+ exports.SpanKind = undefined;
18226
+ var SpanKind;
18227
+ (function(SpanKind2) {
18228
+ SpanKind2[SpanKind2["INTERNAL"] = 0] = "INTERNAL";
18229
+ SpanKind2[SpanKind2["SERVER"] = 1] = "SERVER";
18230
+ SpanKind2[SpanKind2["CLIENT"] = 2] = "CLIENT";
18231
+ SpanKind2[SpanKind2["PRODUCER"] = 3] = "PRODUCER";
18232
+ SpanKind2[SpanKind2["CONSUMER"] = 4] = "CONSUMER";
18233
+ })(SpanKind = exports.SpanKind || (exports.SpanKind = {}));
18234
+ });
18235
+
18236
+ // ../../node_modules/@opentelemetry/api/build/src/trace/status.js
18237
+ var require_status = __commonJS((exports) => {
18238
+ Object.defineProperty(exports, "__esModule", { value: true });
18239
+ exports.SpanStatusCode = undefined;
18240
+ var SpanStatusCode;
18241
+ (function(SpanStatusCode2) {
18242
+ SpanStatusCode2[SpanStatusCode2["UNSET"] = 0] = "UNSET";
18243
+ SpanStatusCode2[SpanStatusCode2["OK"] = 1] = "OK";
18244
+ SpanStatusCode2[SpanStatusCode2["ERROR"] = 2] = "ERROR";
18245
+ })(SpanStatusCode = exports.SpanStatusCode || (exports.SpanStatusCode = {}));
18246
+ });
18247
+
18248
+ // ../../node_modules/@opentelemetry/api/build/src/trace/internal/tracestate-validators.js
18249
+ var require_tracestate_validators = __commonJS((exports) => {
18250
+ Object.defineProperty(exports, "__esModule", { value: true });
18251
+ exports.validateValue = exports.validateKey = undefined;
18252
+ var VALID_KEY_CHAR_RANGE = "[_0-9a-z-*/]";
18253
+ var VALID_KEY = `[a-z]${VALID_KEY_CHAR_RANGE}{0,255}`;
18254
+ var VALID_VENDOR_KEY = `[a-z0-9]${VALID_KEY_CHAR_RANGE}{0,240}@[a-z]${VALID_KEY_CHAR_RANGE}{0,13}`;
18255
+ var VALID_KEY_REGEX = new RegExp(`^(?:${VALID_KEY}|${VALID_VENDOR_KEY})$`);
18256
+ var VALID_VALUE_BASE_REGEX = /^[ -~]{0,255}[!-~]$/;
18257
+ var INVALID_VALUE_COMMA_EQUAL_REGEX = /,|=/;
18258
+ function validateKey(key) {
18259
+ return VALID_KEY_REGEX.test(key);
18260
+ }
18261
+ exports.validateKey = validateKey;
18262
+ function validateValue(value) {
18263
+ return VALID_VALUE_BASE_REGEX.test(value) && !INVALID_VALUE_COMMA_EQUAL_REGEX.test(value);
18264
+ }
18265
+ exports.validateValue = validateValue;
18266
+ });
18267
+
18268
+ // ../../node_modules/@opentelemetry/api/build/src/trace/internal/tracestate-impl.js
18269
+ var require_tracestate_impl = __commonJS((exports) => {
18270
+ Object.defineProperty(exports, "__esModule", { value: true });
18271
+ exports.TraceStateImpl = undefined;
18272
+ var tracestate_validators_1 = require_tracestate_validators();
18273
+ var MAX_TRACE_STATE_ITEMS = 32;
18274
+ var MAX_TRACE_STATE_LEN = 512;
18275
+ var LIST_MEMBERS_SEPARATOR = ",";
18276
+ var LIST_MEMBER_KEY_VALUE_SPLITTER = "=";
18277
+
18278
+ class TraceStateImpl {
18279
+ constructor(rawTraceState) {
18280
+ this._internalState = new Map;
18281
+ if (rawTraceState)
18282
+ this._parse(rawTraceState);
18283
+ }
18284
+ set(key, value) {
18285
+ const traceState = this._clone();
18286
+ if (traceState._internalState.has(key)) {
18287
+ traceState._internalState.delete(key);
18288
+ }
18289
+ traceState._internalState.set(key, value);
18290
+ return traceState;
18291
+ }
18292
+ unset(key) {
18293
+ const traceState = this._clone();
18294
+ traceState._internalState.delete(key);
18295
+ return traceState;
18296
+ }
18297
+ get(key) {
18298
+ return this._internalState.get(key);
18299
+ }
18300
+ serialize() {
18301
+ return Array.from(this._internalState.keys()).reduceRight((agg, key) => {
18302
+ agg.push(key + LIST_MEMBER_KEY_VALUE_SPLITTER + this.get(key));
18303
+ return agg;
18304
+ }, []).join(LIST_MEMBERS_SEPARATOR);
18305
+ }
18306
+ _parse(rawTraceState) {
18307
+ if (rawTraceState.length > MAX_TRACE_STATE_LEN)
18308
+ return;
18309
+ this._internalState = rawTraceState.split(LIST_MEMBERS_SEPARATOR).reduceRight((agg, part) => {
18310
+ const listMember = part.trim();
18311
+ const i = listMember.indexOf(LIST_MEMBER_KEY_VALUE_SPLITTER);
18312
+ if (i !== -1) {
18313
+ const key = listMember.slice(0, i);
18314
+ const value = listMember.slice(i + 1, part.length);
18315
+ if ((0, tracestate_validators_1.validateKey)(key) && (0, tracestate_validators_1.validateValue)(value)) {
18316
+ agg.set(key, value);
18317
+ }
18318
+ }
18319
+ return agg;
18320
+ }, new Map);
18321
+ if (this._internalState.size > MAX_TRACE_STATE_ITEMS) {
18322
+ this._internalState = new Map(Array.from(this._internalState.entries()).reverse().slice(0, MAX_TRACE_STATE_ITEMS));
18323
+ }
18324
+ }
18325
+ _keys() {
18326
+ return Array.from(this._internalState.keys()).reverse();
18327
+ }
18328
+ _clone() {
18329
+ const traceState = new TraceStateImpl;
18330
+ traceState._internalState = new Map(this._internalState);
18331
+ return traceState;
18332
+ }
18333
+ }
18334
+ exports.TraceStateImpl = TraceStateImpl;
18335
+ });
18336
+
18337
+ // ../../node_modules/@opentelemetry/api/build/src/trace/internal/utils.js
18338
+ var require_utils2 = __commonJS((exports) => {
18339
+ Object.defineProperty(exports, "__esModule", { value: true });
18340
+ exports.createTraceState = undefined;
18341
+ var tracestate_impl_1 = require_tracestate_impl();
18342
+ function createTraceState(rawTraceState) {
18343
+ return new tracestate_impl_1.TraceStateImpl(rawTraceState);
18344
+ }
18345
+ exports.createTraceState = createTraceState;
18346
+ });
18347
+
18348
+ // ../../node_modules/@opentelemetry/api/build/src/context-api.js
18349
+ var require_context_api = __commonJS((exports) => {
18350
+ Object.defineProperty(exports, "__esModule", { value: true });
18351
+ exports.context = undefined;
18352
+ var context_1 = require_context2();
18353
+ exports.context = context_1.ContextAPI.getInstance();
18354
+ });
18355
+
18356
+ // ../../node_modules/@opentelemetry/api/build/src/diag-api.js
18357
+ var require_diag_api = __commonJS((exports) => {
18358
+ Object.defineProperty(exports, "__esModule", { value: true });
18359
+ exports.diag = undefined;
18360
+ var diag_1 = require_diag();
18361
+ exports.diag = diag_1.DiagAPI.instance();
18362
+ });
18363
+
18364
+ // ../../node_modules/@opentelemetry/api/build/src/metrics/NoopMeterProvider.js
18365
+ var require_NoopMeterProvider = __commonJS((exports) => {
18366
+ Object.defineProperty(exports, "__esModule", { value: true });
18367
+ exports.NOOP_METER_PROVIDER = exports.NoopMeterProvider = undefined;
18368
+ var NoopMeter_1 = require_NoopMeter();
18369
+
18370
+ class NoopMeterProvider {
18371
+ getMeter(_name, _version, _options) {
18372
+ return NoopMeter_1.NOOP_METER;
18373
+ }
18374
+ }
18375
+ exports.NoopMeterProvider = NoopMeterProvider;
18376
+ exports.NOOP_METER_PROVIDER = new NoopMeterProvider;
18377
+ });
18378
+
18379
+ // ../../node_modules/@opentelemetry/api/build/src/api/metrics.js
18380
+ var require_metrics = __commonJS((exports) => {
18381
+ Object.defineProperty(exports, "__esModule", { value: true });
18382
+ exports.MetricsAPI = undefined;
18383
+ var NoopMeterProvider_1 = require_NoopMeterProvider();
18384
+ var global_utils_1 = require_global_utils();
18385
+ var diag_1 = require_diag();
18386
+ var API_NAME = "metrics";
18387
+
18388
+ class MetricsAPI {
18389
+ constructor() {}
18390
+ static getInstance() {
18391
+ if (!this._instance) {
18392
+ this._instance = new MetricsAPI;
18393
+ }
18394
+ return this._instance;
18395
+ }
18396
+ setGlobalMeterProvider(provider) {
18397
+ return (0, global_utils_1.registerGlobal)(API_NAME, provider, diag_1.DiagAPI.instance());
18398
+ }
18399
+ getMeterProvider() {
18400
+ return (0, global_utils_1.getGlobal)(API_NAME) || NoopMeterProvider_1.NOOP_METER_PROVIDER;
18401
+ }
18402
+ getMeter(name, version2, options) {
18403
+ return this.getMeterProvider().getMeter(name, version2, options);
18404
+ }
18405
+ disable() {
18406
+ (0, global_utils_1.unregisterGlobal)(API_NAME, diag_1.DiagAPI.instance());
18407
+ }
18408
+ }
18409
+ exports.MetricsAPI = MetricsAPI;
18410
+ });
18411
+
18412
+ // ../../node_modules/@opentelemetry/api/build/src/metrics-api.js
18413
+ var require_metrics_api = __commonJS((exports) => {
18414
+ Object.defineProperty(exports, "__esModule", { value: true });
18415
+ exports.metrics = undefined;
18416
+ var metrics_1 = require_metrics();
18417
+ exports.metrics = metrics_1.MetricsAPI.getInstance();
18418
+ });
18419
+
18420
+ // ../../node_modules/@opentelemetry/api/build/src/propagation/NoopTextMapPropagator.js
18421
+ var require_NoopTextMapPropagator = __commonJS((exports) => {
18422
+ Object.defineProperty(exports, "__esModule", { value: true });
18423
+ exports.NoopTextMapPropagator = undefined;
18424
+
18425
+ class NoopTextMapPropagator {
18426
+ inject(_context, _carrier) {}
18427
+ extract(context, _carrier) {
18428
+ return context;
18429
+ }
18430
+ fields() {
18431
+ return [];
18432
+ }
18433
+ }
18434
+ exports.NoopTextMapPropagator = NoopTextMapPropagator;
18435
+ });
18436
+
18437
+ // ../../node_modules/@opentelemetry/api/build/src/baggage/context-helpers.js
18438
+ var require_context_helpers = __commonJS((exports) => {
18439
+ Object.defineProperty(exports, "__esModule", { value: true });
18440
+ exports.deleteBaggage = exports.setBaggage = exports.getActiveBaggage = exports.getBaggage = undefined;
18441
+ var context_1 = require_context2();
18442
+ var context_2 = require_context();
18443
+ var BAGGAGE_KEY = (0, context_2.createContextKey)("OpenTelemetry Baggage Key");
18444
+ function getBaggage(context) {
18445
+ return context.getValue(BAGGAGE_KEY) || undefined;
18446
+ }
18447
+ exports.getBaggage = getBaggage;
18448
+ function getActiveBaggage() {
18449
+ return getBaggage(context_1.ContextAPI.getInstance().active());
18450
+ }
18451
+ exports.getActiveBaggage = getActiveBaggage;
18452
+ function setBaggage(context, baggage) {
18453
+ return context.setValue(BAGGAGE_KEY, baggage);
18454
+ }
18455
+ exports.setBaggage = setBaggage;
18456
+ function deleteBaggage(context) {
18457
+ return context.deleteValue(BAGGAGE_KEY);
18458
+ }
18459
+ exports.deleteBaggage = deleteBaggage;
18460
+ });
18461
+
18462
+ // ../../node_modules/@opentelemetry/api/build/src/api/propagation.js
18463
+ var require_propagation = __commonJS((exports) => {
18464
+ Object.defineProperty(exports, "__esModule", { value: true });
18465
+ exports.PropagationAPI = undefined;
18466
+ var global_utils_1 = require_global_utils();
18467
+ var NoopTextMapPropagator_1 = require_NoopTextMapPropagator();
18468
+ var TextMapPropagator_1 = require_TextMapPropagator();
18469
+ var context_helpers_1 = require_context_helpers();
18470
+ var utils_1 = require_utils();
18471
+ var diag_1 = require_diag();
18472
+ var API_NAME = "propagation";
18473
+ var NOOP_TEXT_MAP_PROPAGATOR = new NoopTextMapPropagator_1.NoopTextMapPropagator;
18474
+
18475
+ class PropagationAPI {
18476
+ constructor() {
18477
+ this.createBaggage = utils_1.createBaggage;
18478
+ this.getBaggage = context_helpers_1.getBaggage;
18479
+ this.getActiveBaggage = context_helpers_1.getActiveBaggage;
18480
+ this.setBaggage = context_helpers_1.setBaggage;
18481
+ this.deleteBaggage = context_helpers_1.deleteBaggage;
18482
+ }
18483
+ static getInstance() {
18484
+ if (!this._instance) {
18485
+ this._instance = new PropagationAPI;
18486
+ }
18487
+ return this._instance;
18488
+ }
18489
+ setGlobalPropagator(propagator) {
18490
+ return (0, global_utils_1.registerGlobal)(API_NAME, propagator, diag_1.DiagAPI.instance());
18491
+ }
18492
+ inject(context, carrier, setter = TextMapPropagator_1.defaultTextMapSetter) {
18493
+ return this._getGlobalPropagator().inject(context, carrier, setter);
18494
+ }
18495
+ extract(context, carrier, getter = TextMapPropagator_1.defaultTextMapGetter) {
18496
+ return this._getGlobalPropagator().extract(context, carrier, getter);
18497
+ }
18498
+ fields() {
18499
+ return this._getGlobalPropagator().fields();
18500
+ }
18501
+ disable() {
18502
+ (0, global_utils_1.unregisterGlobal)(API_NAME, diag_1.DiagAPI.instance());
18503
+ }
18504
+ _getGlobalPropagator() {
18505
+ return (0, global_utils_1.getGlobal)(API_NAME) || NOOP_TEXT_MAP_PROPAGATOR;
18506
+ }
18507
+ }
18508
+ exports.PropagationAPI = PropagationAPI;
18509
+ });
18510
+
18511
+ // ../../node_modules/@opentelemetry/api/build/src/propagation-api.js
18512
+ var require_propagation_api = __commonJS((exports) => {
18513
+ Object.defineProperty(exports, "__esModule", { value: true });
18514
+ exports.propagation = undefined;
18515
+ var propagation_1 = require_propagation();
18516
+ exports.propagation = propagation_1.PropagationAPI.getInstance();
18517
+ });
18518
+
18519
+ // ../../node_modules/@opentelemetry/api/build/src/api/trace.js
18520
+ var require_trace = __commonJS((exports) => {
18521
+ Object.defineProperty(exports, "__esModule", { value: true });
18522
+ exports.TraceAPI = undefined;
18523
+ var global_utils_1 = require_global_utils();
18524
+ var ProxyTracerProvider_1 = require_ProxyTracerProvider();
18525
+ var spancontext_utils_1 = require_spancontext_utils();
18526
+ var context_utils_1 = require_context_utils();
18527
+ var diag_1 = require_diag();
18528
+ var API_NAME = "trace";
18529
+
18530
+ class TraceAPI {
18531
+ constructor() {
18532
+ this._proxyTracerProvider = new ProxyTracerProvider_1.ProxyTracerProvider;
18533
+ this.wrapSpanContext = spancontext_utils_1.wrapSpanContext;
18534
+ this.isSpanContextValid = spancontext_utils_1.isSpanContextValid;
18535
+ this.deleteSpan = context_utils_1.deleteSpan;
18536
+ this.getSpan = context_utils_1.getSpan;
18537
+ this.getActiveSpan = context_utils_1.getActiveSpan;
18538
+ this.getSpanContext = context_utils_1.getSpanContext;
18539
+ this.setSpan = context_utils_1.setSpan;
18540
+ this.setSpanContext = context_utils_1.setSpanContext;
18541
+ }
18542
+ static getInstance() {
18543
+ if (!this._instance) {
18544
+ this._instance = new TraceAPI;
18545
+ }
18546
+ return this._instance;
18547
+ }
18548
+ setGlobalTracerProvider(provider) {
18549
+ const success3 = (0, global_utils_1.registerGlobal)(API_NAME, this._proxyTracerProvider, diag_1.DiagAPI.instance());
18550
+ if (success3) {
18551
+ this._proxyTracerProvider.setDelegate(provider);
18552
+ }
18553
+ return success3;
18554
+ }
18555
+ getTracerProvider() {
18556
+ return (0, global_utils_1.getGlobal)(API_NAME) || this._proxyTracerProvider;
18557
+ }
18558
+ getTracer(name, version2) {
18559
+ return this.getTracerProvider().getTracer(name, version2);
18560
+ }
18561
+ disable() {
18562
+ (0, global_utils_1.unregisterGlobal)(API_NAME, diag_1.DiagAPI.instance());
18563
+ this._proxyTracerProvider = new ProxyTracerProvider_1.ProxyTracerProvider;
18564
+ }
18565
+ }
18566
+ exports.TraceAPI = TraceAPI;
18567
+ });
18568
+
18569
+ // ../../node_modules/@opentelemetry/api/build/src/trace-api.js
18570
+ var require_trace_api = __commonJS((exports) => {
18571
+ Object.defineProperty(exports, "__esModule", { value: true });
18572
+ exports.trace = undefined;
18573
+ var trace_1 = require_trace();
18574
+ exports.trace = trace_1.TraceAPI.getInstance();
18575
+ });
18576
+
18577
+ // ../../node_modules/@opentelemetry/api/build/src/index.js
18578
+ var require_src = __commonJS((exports) => {
18579
+ Object.defineProperty(exports, "__esModule", { value: true });
18580
+ exports.trace = exports.propagation = exports.metrics = exports.diag = exports.context = exports.INVALID_SPAN_CONTEXT = exports.INVALID_TRACEID = exports.INVALID_SPANID = exports.isValidSpanId = exports.isValidTraceId = exports.isSpanContextValid = exports.createTraceState = exports.TraceFlags = exports.SpanStatusCode = exports.SpanKind = exports.SamplingDecision = exports.ProxyTracerProvider = exports.ProxyTracer = exports.defaultTextMapSetter = exports.defaultTextMapGetter = exports.ValueType = exports.createNoopMeter = exports.DiagLogLevel = exports.DiagConsoleLogger = exports.ROOT_CONTEXT = exports.createContextKey = exports.baggageEntryMetadataFromString = undefined;
18581
+ var utils_1 = require_utils();
18582
+ Object.defineProperty(exports, "baggageEntryMetadataFromString", { enumerable: true, get: function() {
18583
+ return utils_1.baggageEntryMetadataFromString;
18584
+ } });
18585
+ var context_1 = require_context();
18586
+ Object.defineProperty(exports, "createContextKey", { enumerable: true, get: function() {
18587
+ return context_1.createContextKey;
18588
+ } });
18589
+ Object.defineProperty(exports, "ROOT_CONTEXT", { enumerable: true, get: function() {
18590
+ return context_1.ROOT_CONTEXT;
18591
+ } });
18592
+ var consoleLogger_1 = require_consoleLogger();
18593
+ Object.defineProperty(exports, "DiagConsoleLogger", { enumerable: true, get: function() {
18594
+ return consoleLogger_1.DiagConsoleLogger;
18595
+ } });
18596
+ var types_1 = require_types();
18597
+ Object.defineProperty(exports, "DiagLogLevel", { enumerable: true, get: function() {
18598
+ return types_1.DiagLogLevel;
18599
+ } });
18600
+ var NoopMeter_1 = require_NoopMeter();
18601
+ Object.defineProperty(exports, "createNoopMeter", { enumerable: true, get: function() {
18602
+ return NoopMeter_1.createNoopMeter;
18603
+ } });
18604
+ var Metric_1 = require_Metric();
18605
+ Object.defineProperty(exports, "ValueType", { enumerable: true, get: function() {
18606
+ return Metric_1.ValueType;
18607
+ } });
18608
+ var TextMapPropagator_1 = require_TextMapPropagator();
18609
+ Object.defineProperty(exports, "defaultTextMapGetter", { enumerable: true, get: function() {
18610
+ return TextMapPropagator_1.defaultTextMapGetter;
18611
+ } });
18612
+ Object.defineProperty(exports, "defaultTextMapSetter", { enumerable: true, get: function() {
18613
+ return TextMapPropagator_1.defaultTextMapSetter;
18614
+ } });
18615
+ var ProxyTracer_1 = require_ProxyTracer();
18616
+ Object.defineProperty(exports, "ProxyTracer", { enumerable: true, get: function() {
18617
+ return ProxyTracer_1.ProxyTracer;
18618
+ } });
18619
+ var ProxyTracerProvider_1 = require_ProxyTracerProvider();
18620
+ Object.defineProperty(exports, "ProxyTracerProvider", { enumerable: true, get: function() {
18621
+ return ProxyTracerProvider_1.ProxyTracerProvider;
18622
+ } });
18623
+ var SamplingResult_1 = require_SamplingResult();
18624
+ Object.defineProperty(exports, "SamplingDecision", { enumerable: true, get: function() {
18625
+ return SamplingResult_1.SamplingDecision;
18626
+ } });
18627
+ var span_kind_1 = require_span_kind();
18628
+ Object.defineProperty(exports, "SpanKind", { enumerable: true, get: function() {
18629
+ return span_kind_1.SpanKind;
18630
+ } });
18631
+ var status_1 = require_status();
18632
+ Object.defineProperty(exports, "SpanStatusCode", { enumerable: true, get: function() {
18633
+ return status_1.SpanStatusCode;
18634
+ } });
18635
+ var trace_flags_1 = require_trace_flags();
18636
+ Object.defineProperty(exports, "TraceFlags", { enumerable: true, get: function() {
18637
+ return trace_flags_1.TraceFlags;
18638
+ } });
18639
+ var utils_2 = require_utils2();
18640
+ Object.defineProperty(exports, "createTraceState", { enumerable: true, get: function() {
18641
+ return utils_2.createTraceState;
18642
+ } });
18643
+ var spancontext_utils_1 = require_spancontext_utils();
18644
+ Object.defineProperty(exports, "isSpanContextValid", { enumerable: true, get: function() {
18645
+ return spancontext_utils_1.isSpanContextValid;
18646
+ } });
18647
+ Object.defineProperty(exports, "isValidTraceId", { enumerable: true, get: function() {
18648
+ return spancontext_utils_1.isValidTraceId;
18649
+ } });
18650
+ Object.defineProperty(exports, "isValidSpanId", { enumerable: true, get: function() {
18651
+ return spancontext_utils_1.isValidSpanId;
18652
+ } });
18653
+ var invalid_span_constants_1 = require_invalid_span_constants();
18654
+ Object.defineProperty(exports, "INVALID_SPANID", { enumerable: true, get: function() {
18655
+ return invalid_span_constants_1.INVALID_SPANID;
18656
+ } });
18657
+ Object.defineProperty(exports, "INVALID_TRACEID", { enumerable: true, get: function() {
18658
+ return invalid_span_constants_1.INVALID_TRACEID;
18659
+ } });
18660
+ Object.defineProperty(exports, "INVALID_SPAN_CONTEXT", { enumerable: true, get: function() {
18661
+ return invalid_span_constants_1.INVALID_SPAN_CONTEXT;
18662
+ } });
18663
+ var context_api_1 = require_context_api();
18664
+ Object.defineProperty(exports, "context", { enumerable: true, get: function() {
18665
+ return context_api_1.context;
18666
+ } });
18667
+ var diag_api_1 = require_diag_api();
18668
+ Object.defineProperty(exports, "diag", { enumerable: true, get: function() {
18669
+ return diag_api_1.diag;
18670
+ } });
18671
+ var metrics_api_1 = require_metrics_api();
18672
+ Object.defineProperty(exports, "metrics", { enumerable: true, get: function() {
18673
+ return metrics_api_1.metrics;
18674
+ } });
18675
+ var propagation_api_1 = require_propagation_api();
18676
+ Object.defineProperty(exports, "propagation", { enumerable: true, get: function() {
18677
+ return propagation_api_1.propagation;
18678
+ } });
18679
+ var trace_api_1 = require_trace_api();
18680
+ Object.defineProperty(exports, "trace", { enumerable: true, get: function() {
18681
+ return trace_api_1.trace;
18682
+ } });
18683
+ exports.default = {
18684
+ context: context_api_1.context,
18685
+ diag: diag_api_1.diag,
18686
+ metrics: metrics_api_1.metrics,
18687
+ propagation: propagation_api_1.propagation,
18688
+ trace: trace_api_1.trace
18689
+ };
18690
+ });
18691
+
18692
+ // ../types/src/processor/processor.ts
18693
+ var import_api, noopTracingContext, ProcessorPortSchema, ProcessorDefinitionSchema, ProcessorExecutionContextSchema, TraceStatus;
18694
+ var init_processor = __esm(() => {
18695
+ init_zod();
18696
+ init_common();
18697
+ import_api = __toESM(require_src(), 1);
18698
+ noopTracingContext = {
18699
+ traceId: "",
18700
+ getActiveSpan() {
18701
+ return;
18702
+ },
18703
+ async withSpan(_name, _options, fn) {
18704
+ const noopSpan = {
18705
+ spanContext: () => ({
18706
+ traceId: "",
18707
+ spanId: "",
18708
+ traceFlags: 0
18709
+ }),
18710
+ setAttribute: () => noopSpan,
18711
+ setAttributes: () => noopSpan,
18712
+ addEvent: () => noopSpan,
18713
+ addLink: () => noopSpan,
18714
+ addLinks: () => noopSpan,
18715
+ setStatus: () => noopSpan,
18716
+ updateName: () => noopSpan,
18717
+ end: () => {},
18718
+ isRecording: () => false,
18719
+ recordException: () => {}
18720
+ };
18721
+ return fn(noopSpan);
18722
+ }
18723
+ };
18724
+ ProcessorPortSchema = exports_external.object({
18725
+ name: exports_external.string(),
18726
+ schema: JsonSchemaSchema,
18727
+ required: exports_external.boolean().default(true)
18728
+ });
18729
+ ProcessorDefinitionSchema = exports_external.object({
18730
+ id: exports_external.string(),
18731
+ name: exports_external.string(),
18732
+ description: exports_external.string().optional(),
18733
+ inputSchema: JsonSchemaSchema,
18734
+ outputSchema: JsonSchemaSchema,
18735
+ configSchema: JsonSchemaSchema.optional(),
18736
+ inputPorts: exports_external.array(ProcessorPortSchema).optional(),
18737
+ outputPorts: exports_external.array(ProcessorPortSchema).optional(),
18738
+ isBuiltin: exports_external.boolean().default(true),
18739
+ pluginName: exports_external.string().optional()
18740
+ });
18741
+ ProcessorExecutionContextSchema = exports_external.object({
18742
+ jobId: exports_external.string(),
18743
+ stepId: exports_external.string(),
18744
+ tenantId: exports_external.string(),
18745
+ workflowId: exports_external.string(),
18746
+ workerId: exports_external.string().optional()
18747
+ });
18748
+ ((TraceStatus2) => {
18749
+ TraceStatus2["PENDING"] = "pending";
18750
+ TraceStatus2["RUNNING"] = "running";
18751
+ TraceStatus2["COMPLETED"] = "completed";
18752
+ TraceStatus2["FAILED"] = "failed";
18753
+ })(TraceStatus ||= {});
18754
+ });
18755
+
18756
+ // ../types/src/processor/execution.ts
18757
+ function asTuple(values) {
18758
+ return values;
18759
+ }
18760
+ var WorkflowExecutionStatusValue, WorkflowExecutionStatusSchema, StepExecutionStatusValue, StepExecutionStatusSchema, TriggerTypeValue, TriggerTypeSchema, ExecutionTypeValue, ExecutionTypeSchema, WORKFLOW_EXECUTION_STATUSES, STEP_EXECUTION_STATUSES, TRIGGER_TYPES, EXECUTION_TYPES;
18761
+ var init_execution = __esm(() => {
18762
+ init_zod();
18763
+ WorkflowExecutionStatusValue = {
18764
+ CREATED: "created",
18765
+ PENDING: "pending",
18766
+ RUNNING: "running",
18767
+ WAITING: "waiting",
18768
+ COMPLETED: "completed",
18769
+ FAILED: "failed",
18770
+ CANCELLED: "cancelled"
18771
+ };
18772
+ WorkflowExecutionStatusSchema = exports_external.enum([
18773
+ WorkflowExecutionStatusValue.CREATED,
18774
+ WorkflowExecutionStatusValue.PENDING,
18775
+ WorkflowExecutionStatusValue.RUNNING,
18776
+ WorkflowExecutionStatusValue.WAITING,
18777
+ WorkflowExecutionStatusValue.COMPLETED,
18778
+ WorkflowExecutionStatusValue.FAILED,
18779
+ WorkflowExecutionStatusValue.CANCELLED
18780
+ ]);
18781
+ StepExecutionStatusValue = {
18782
+ PENDING: "pending",
18783
+ RUNNING: "running",
18784
+ SUCCESS: "success",
18785
+ FAILURE: "failure",
18786
+ WAITING: "waiting",
18787
+ SKIPPED: "skipped"
18788
+ };
18789
+ StepExecutionStatusSchema = exports_external.enum([
18790
+ StepExecutionStatusValue.PENDING,
18791
+ StepExecutionStatusValue.RUNNING,
18792
+ StepExecutionStatusValue.SUCCESS,
18793
+ StepExecutionStatusValue.FAILURE,
18794
+ StepExecutionStatusValue.WAITING,
18795
+ StepExecutionStatusValue.SKIPPED
18796
+ ]);
18797
+ TriggerTypeValue = {
18798
+ MANUAL: "manual",
18799
+ API: "api",
18800
+ WEBHOOK: "webhook",
18801
+ SCHEDULE: "schedule",
18802
+ EMAIL: "email",
18803
+ EVAL: "eval",
18804
+ CLI: "cli"
18805
+ };
18806
+ TriggerTypeSchema = exports_external.enum([
18807
+ TriggerTypeValue.MANUAL,
18808
+ TriggerTypeValue.API,
18809
+ TriggerTypeValue.WEBHOOK,
18810
+ TriggerTypeValue.SCHEDULE,
18811
+ TriggerTypeValue.EMAIL,
18812
+ TriggerTypeValue.EVAL,
18813
+ TriggerTypeValue.CLI
18814
+ ]);
18815
+ ExecutionTypeValue = {
18816
+ PROD: "prod",
18817
+ EVAL: "eval",
18818
+ PLAYGROUND: "playground"
18819
+ };
18820
+ ExecutionTypeSchema = exports_external.enum([
18821
+ ExecutionTypeValue.PROD,
18822
+ ExecutionTypeValue.EVAL,
18823
+ ExecutionTypeValue.PLAYGROUND
18824
+ ]);
18825
+ WORKFLOW_EXECUTION_STATUSES = asTuple(WorkflowExecutionStatusSchema.options);
18826
+ STEP_EXECUTION_STATUSES = asTuple(StepExecutionStatusSchema.options);
18827
+ TRIGGER_TYPES = TriggerTypeSchema.options;
18828
+ EXECUTION_TYPES = ExecutionTypeSchema.options;
18829
+ });
18830
+
18831
+ // ../types/src/processor/configs/classify.ts
18832
+ var ClassifyInputSchema, ClassifyLabelSchema, ClassifyConfigSchema, ClassifyOutputSchema;
18833
+ var init_classify = __esm(() => {
18834
+ init_zod();
18835
+ ClassifyInputSchema = exports_external.object({
18836
+ content: exports_external.string().optional().describe("Text content to classify"),
18837
+ text: exports_external.string().optional().describe("Text content (alternative to content)")
18838
+ }).refine((data) => !!(data.content || data.text), {
18839
+ message: "Either content or text must be provided"
18840
+ });
18841
+ ClassifyLabelSchema = exports_external.object({
18842
+ name: exports_external.string().min(1).describe("Label value returned in output.label"),
18843
+ description: exports_external.string().optional().describe("What documents fall into this label. Fed to the LLM as guidance.")
18844
+ });
18845
+ ClassifyConfigSchema = exports_external.object({
18846
+ labels: exports_external.array(ClassifyLabelSchema).min(2).describe("Allowed labels. The LLM is constrained to pick exactly one of these names."),
18847
+ prompt: exports_external.string().optional().describe("Optional classification instructions appended to the system prompt. Use to clarify edge cases or emphasize evidence the model should weigh."),
18848
+ provider: exports_external.string().optional().describe('Provider ID (e.g., "openai-gpt4o-mini")'),
18849
+ model: exports_external.string().optional().describe("Model override"),
18850
+ maxInputTokens: exports_external.number().int().optional().describe("Max input tokens. Truncates input text when exceeded. Omit for no limit.")
18851
+ });
18852
+ ClassifyOutputSchema = exports_external.object({
18853
+ label: exports_external.string().describe("The selected label name"),
18854
+ confidence: exports_external.enum(["low", "medium", "high"]).describe("Coarse confidence in the classification"),
18855
+ reason: exports_external.string().describe("Short justification for the chosen label")
18856
+ });
18857
+ });
18858
+
18859
+ // ../types/src/parser/parser.ts
18860
+ function resolveEffectiveMimeType(filename, declaredMimeType) {
18861
+ const ext = filename.split(".").pop()?.toLowerCase();
18862
+ if (!ext)
18863
+ return declaredMimeType;
18864
+ const extensionMime = EXTENSION_TO_MIME[ext];
18865
+ return extensionMime ?? declaredMimeType;
18866
+ }
18867
+ function getParserCategory(mimeType) {
18868
+ const normalized = mimeType.toLowerCase().trim();
18869
+ if (ParserCategory.PLAINTEXT.includes(normalized)) {
18870
+ return "plaintext";
18871
+ }
18872
+ if (ParserCategory.OFFICE.includes(normalized)) {
18873
+ return "office";
18874
+ }
18875
+ if (ParserCategory.DOCUMENT.includes(normalized)) {
18876
+ return "document";
18877
+ }
18878
+ return null;
18879
+ }
18880
+ function requiresSpecializedParser(mimeType) {
18881
+ return getParserCategory(mimeType) === "document";
18882
+ }
18883
+ function getAllSupportedMimeTypes() {
18884
+ return [...ParserCategory.PLAINTEXT, ...ParserCategory.OFFICE, ...ParserCategory.DOCUMENT];
18885
+ }
18886
+ function getSupportedFormatsLabel() {
18887
+ const allMimes = getAllSupportedMimeTypes();
18888
+ const labels = [...new Set(allMimes.map((m) => MIME_TO_LABEL[m] ?? m))];
18889
+ return labels.join(", ");
18890
+ }
18891
+ var OFFICE_MIME_TYPES, ParserCategory, ParserTypeSchema, DocumentMetadataSchema, ParseUsageSchema, CoordinateUnitSchema, PointSchema, BoundingRegionSchema, PositionedTextSchema, TableCellSchema, ExtractedTableSchema, LayoutElementTypeSchema, LayoutElementSchema, PageResultSchema, ParseResultSchema, ParseOptionsSchema, ParserInputSchema, EXTENSION_TO_MIME, MIME_TO_LABEL;
18892
+ var init_parser = __esm(() => {
18893
+ init_zod();
18894
+ OFFICE_MIME_TYPES = [
18895
+ "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
18896
+ "application/msword",
18897
+ "application/vnd.oasis.opendocument.text",
18898
+ "application/rtf",
18899
+ "text/rtf",
18900
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
18901
+ "application/vnd.ms-excel",
18902
+ "application/vnd.ms-excel.sheet.macroenabled.12",
18903
+ "application/vnd.ms-excel.sheet.binary.macroenabled.12",
18904
+ "application/vnd.oasis.opendocument.spreadsheet",
18905
+ "application/vnd.openxmlformats-officedocument.presentationml.presentation",
18906
+ "application/vnd.openxmlformats-officedocument.presentationml.slideshow",
18907
+ "application/vnd.ms-powerpoint.presentation.macroenabled.12",
18908
+ "application/vnd.ms-powerpoint",
18909
+ "application/vnd.oasis.opendocument.presentation",
18910
+ "message/rfc822",
18911
+ "application/vnd.ms-outlook",
18912
+ "application/epub+zip"
18913
+ ];
18914
+ ParserCategory = {
18915
+ PLAINTEXT: [
18916
+ "text/plain",
18917
+ "text/markdown",
18918
+ "text/csv",
18919
+ "text/tab-separated-values",
18920
+ "text/html",
18921
+ "text/xml",
18922
+ "application/json",
18923
+ "application/x-yaml",
18924
+ "application/toml",
18925
+ "image/svg+xml",
18926
+ "text/x-rst",
18927
+ "text/x-org",
18928
+ "application/x-latex",
18929
+ "application/x-ipynb+json",
18930
+ "application/x-bibtex",
18931
+ "application/docbook+xml",
18932
+ "application/x-fictionbook+xml"
18933
+ ],
18934
+ OFFICE: [...OFFICE_MIME_TYPES],
18935
+ DOCUMENT: [
18936
+ "application/pdf",
18937
+ "image/png",
18938
+ "image/jpeg",
18939
+ "image/webp",
18940
+ "image/tiff",
18941
+ "image/gif",
18942
+ "image/bmp"
18943
+ ]
18944
+ };
18945
+ ParserTypeSchema = exports_external.enum([
18946
+ "plaintext",
18947
+ "office",
18948
+ "llm-vision",
18949
+ "ocr"
18950
+ ]);
18951
+ DocumentMetadataSchema = exports_external.object({
18952
+ filename: exports_external.string(),
18953
+ mimeType: exports_external.string(),
18954
+ size: exports_external.number().describe("File size in bytes"),
18955
+ storageRef: exports_external.string().optional().describe("Storage reference for the original file")
18956
+ });
18957
+ ParseUsageSchema = exports_external.object({
18958
+ pageCount: exports_external.number(),
18959
+ processingTimeMs: exports_external.number().optional()
18960
+ });
18961
+ CoordinateUnitSchema = exports_external.enum(["pixel", "inch", "point", "normalized"]);
18962
+ PointSchema = exports_external.object({
18963
+ x: exports_external.number(),
18964
+ y: exports_external.number()
18965
+ });
18966
+ BoundingRegionSchema = exports_external.object({
18967
+ polygon: exports_external.array(PointSchema).min(3),
18968
+ unit: CoordinateUnitSchema,
18969
+ pageIndex: exports_external.number()
18970
+ });
18971
+ PositionedTextSchema = exports_external.object({
18972
+ text: exports_external.string(),
18973
+ confidence: exports_external.number().min(0).max(1).optional(),
18974
+ boundingRegion: BoundingRegionSchema.optional()
18975
+ });
18976
+ TableCellSchema = exports_external.object({
18977
+ content: exports_external.string(),
18978
+ rowIndex: exports_external.number(),
18979
+ columnIndex: exports_external.number(),
18980
+ rowSpan: exports_external.number().default(1),
18981
+ columnSpan: exports_external.number().default(1),
18982
+ boundingRegion: BoundingRegionSchema.optional()
18983
+ });
18984
+ ExtractedTableSchema = exports_external.object({
18985
+ cells: exports_external.array(TableCellSchema),
18986
+ rowCount: exports_external.number(),
18987
+ columnCount: exports_external.number(),
18988
+ boundingRegion: BoundingRegionSchema.optional()
18989
+ });
18990
+ LayoutElementTypeSchema = exports_external.enum([
18991
+ "paragraph",
18992
+ "title",
18993
+ "sectionHeading",
18994
+ "pageHeader",
18995
+ "pageFooter",
18996
+ "pageNumber",
18997
+ "footnote",
18998
+ "table",
18999
+ "figure",
19000
+ "formulaBlock"
19001
+ ]);
19002
+ LayoutElementSchema = exports_external.object({
19003
+ type: LayoutElementTypeSchema,
19004
+ content: exports_external.string(),
19005
+ table: ExtractedTableSchema.optional(),
19006
+ caption: exports_external.string().optional(),
19007
+ figureId: exports_external.string().optional(),
19008
+ boundingRegion: BoundingRegionSchema.optional()
19009
+ });
19010
+ PageResultSchema = exports_external.object({
19011
+ pageIndex: exports_external.number().describe("0-based page index"),
19012
+ text: exports_external.string().describe("Extracted text content (markdown/HTML)"),
19013
+ pageName: exports_external.string().optional().describe("Page/sheet name (e.g., Excel sheet name)"),
19014
+ layoutElements: exports_external.array(LayoutElementSchema).optional().describe("Semantic layout elements in reading order"),
19015
+ words: exports_external.array(PositionedTextSchema).optional().describe("Word-level positions"),
19016
+ lines: exports_external.array(PositionedTextSchema).optional().describe("Line-level positions"),
19017
+ tables: exports_external.array(ExtractedTableSchema).optional().describe("Extracted tables"),
19018
+ width: exports_external.number().optional().describe("Page width"),
19019
+ height: exports_external.number().optional().describe("Page height"),
19020
+ unit: CoordinateUnitSchema.optional().describe("Unit for width/height and bounding regions"),
19021
+ confidence: exports_external.number().min(0).max(1).optional().describe("Overall page confidence")
19022
+ });
19023
+ ParseResultSchema = exports_external.object({
19024
+ document: DocumentMetadataSchema,
19025
+ usage: ParseUsageSchema,
19026
+ pages: exports_external.array(PageResultSchema),
19027
+ text: exports_external.string().describe("Combined text from all pages"),
19028
+ parserType: ParserTypeSchema,
19029
+ parserVersion: exports_external.string().optional(),
19030
+ model: exports_external.string().optional().describe("Model used (for LLM/OCR parsers)"),
19031
+ rawResponse: exports_external.unknown().optional()
19032
+ });
19033
+ ParseOptionsSchema = exports_external.object({
19034
+ outputFormat: exports_external.enum(["plain", "markdown", "djot", "html"]).default("markdown"),
19035
+ ocrProvider: exports_external.string().optional().describe("OCR provider ID to use"),
19036
+ includeWordPositions: exports_external.boolean().default(false),
19037
+ includeLinePositions: exports_external.boolean().default(false),
19038
+ extractTables: exports_external.boolean().default(true),
19039
+ provider: exports_external.string().optional().describe("LLM provider ID to use"),
19040
+ model: exports_external.string().optional(),
19041
+ maxConcurrency: exports_external.number().min(1).max(30).default(3),
19042
+ pagesPerBatch: exports_external.number().min(1).max(20).default(5),
19043
+ prompt: exports_external.string().optional().describe("Custom prompt for LLM-based parsing"),
19044
+ languages: exports_external.array(exports_external.string()).optional().describe("OCR language hints"),
19045
+ tenantId: exports_external.string().optional()
19046
+ });
19047
+ ParserInputSchema = exports_external.object({
19048
+ data: exports_external.instanceof(Buffer).or(exports_external.instanceof(Uint8Array)),
19049
+ filename: exports_external.string(),
19050
+ mimeType: exports_external.string(),
19051
+ options: ParseOptionsSchema.optional()
19052
+ });
19053
+ EXTENSION_TO_MIME = {
19054
+ docx: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
19055
+ doc: "application/msword",
19056
+ odt: "application/vnd.oasis.opendocument.text",
19057
+ rtf: "application/rtf",
19058
+ xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
19059
+ xls: "application/vnd.ms-excel",
19060
+ xlsm: "application/vnd.ms-excel.sheet.macroenabled.12",
19061
+ xlsb: "application/vnd.ms-excel.sheet.binary.macroenabled.12",
19062
+ ods: "application/vnd.oasis.opendocument.spreadsheet",
19063
+ pptx: "application/vnd.openxmlformats-officedocument.presentationml.presentation",
19064
+ ppsx: "application/vnd.openxmlformats-officedocument.presentationml.slideshow",
19065
+ pptm: "application/vnd.ms-powerpoint.presentation.macroenabled.12",
19066
+ ppt: "application/vnd.ms-powerpoint",
19067
+ odp: "application/vnd.oasis.opendocument.presentation",
19068
+ eml: "message/rfc822",
19069
+ msg: "application/vnd.ms-outlook",
19070
+ epub: "application/epub+zip",
19071
+ pdf: "application/pdf",
19072
+ png: "image/png",
19073
+ jpg: "image/jpeg",
19074
+ jpeg: "image/jpeg",
19075
+ webp: "image/webp",
19076
+ tiff: "image/tiff",
19077
+ tif: "image/tiff",
19078
+ gif: "image/gif",
19079
+ bmp: "image/bmp",
19080
+ svg: "image/svg+xml",
19081
+ txt: "text/plain",
19082
+ md: "text/markdown",
19083
+ markdown: "text/markdown",
19084
+ csv: "text/csv",
19085
+ tsv: "text/tab-separated-values",
19086
+ html: "text/html",
19087
+ htm: "text/html",
19088
+ xml: "text/xml",
19089
+ json: "application/json",
19090
+ yaml: "application/x-yaml",
19091
+ yml: "application/x-yaml",
19092
+ toml: "application/toml",
19093
+ rst: "text/x-rst",
19094
+ org: "text/x-org",
19095
+ tex: "application/x-latex",
19096
+ latex: "application/x-latex",
19097
+ ipynb: "application/x-ipynb+json",
19098
+ bib: "application/x-bibtex",
19099
+ dbk: "application/docbook+xml",
19100
+ docbook: "application/docbook+xml",
19101
+ fb2: "application/x-fictionbook+xml"
19102
+ };
19103
+ MIME_TO_LABEL = {
19104
+ "application/vnd.openxmlformats-officedocument.wordprocessingml.document": "DOCX",
19105
+ "application/msword": "DOC",
19106
+ "application/vnd.oasis.opendocument.text": "ODT",
19107
+ "application/rtf": "RTF",
19108
+ "text/rtf": "RTF",
19109
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": "XLSX",
19110
+ "application/vnd.ms-excel": "XLS",
19111
+ "application/vnd.ms-excel.sheet.macroenabled.12": "XLSM",
19112
+ "application/vnd.ms-excel.sheet.binary.macroenabled.12": "XLSB",
19113
+ "application/vnd.oasis.opendocument.spreadsheet": "ODS",
19114
+ "application/vnd.openxmlformats-officedocument.presentationml.presentation": "PPTX",
19115
+ "application/vnd.openxmlformats-officedocument.presentationml.slideshow": "PPSX",
19116
+ "application/vnd.ms-powerpoint.presentation.macroenabled.12": "PPTM",
19117
+ "application/vnd.ms-powerpoint": "PPT",
19118
+ "application/vnd.oasis.opendocument.presentation": "ODP",
19119
+ "message/rfc822": "EML",
19120
+ "application/vnd.ms-outlook": "MSG",
19121
+ "application/epub+zip": "EPUB",
19122
+ "application/pdf": "PDF",
19123
+ "image/png": "PNG",
19124
+ "image/jpeg": "JPEG",
19125
+ "image/webp": "WebP",
19126
+ "image/tiff": "TIFF",
19127
+ "image/gif": "GIF",
19128
+ "image/bmp": "BMP",
19129
+ "image/svg+xml": "SVG",
19130
+ "text/plain": "TXT",
19131
+ "text/markdown": "Markdown",
19132
+ "text/csv": "CSV",
19133
+ "text/tab-separated-values": "TSV",
19134
+ "text/html": "HTML",
19135
+ "text/xml": "XML",
19136
+ "application/json": "JSON",
19137
+ "application/x-yaml": "YAML",
19138
+ "application/toml": "TOML",
19139
+ "text/x-rst": "RST",
19140
+ "text/x-org": "Org",
19141
+ "application/x-latex": "LaTeX",
19142
+ "application/x-ipynb+json": "Jupyter",
19143
+ "application/x-bibtex": "BibTeX",
19144
+ "application/docbook+xml": "DocBook",
19145
+ "application/x-fictionbook+xml": "FB2"
19146
+ };
19147
+ });
19148
+
19149
+ // ../types/src/processor/configs/document-parser.ts
19150
+ function isFilePathDescriptor(input) {
19151
+ return FilePathDescriptorSchema.safeParse(input).success;
19152
+ }
19153
+ var FileIdInputSchema, LocalFileRefSchema, S3FileRefSchema, InlineFileRefSchema, FilePathDescriptorSchema, DocumentParserInputSchema, DocumentParserOutputSchema, DocumentParserConfigSchema;
19154
+ var init_document_parser = __esm(() => {
19155
+ init_zod();
19156
+ init_parser();
19157
+ FileIdInputSchema = exports_external.object({
19158
+ fileId: exports_external.string().describe("File ID from files table"),
19159
+ filename: exports_external.string().optional().describe("Original filename (for inline files)"),
19160
+ mimeType: exports_external.string().optional().describe("MIME type (for inline files)")
19161
+ });
19162
+ LocalFileRefSchema = exports_external.object({
19163
+ kind: exports_external.literal("local"),
19164
+ path: exports_external.string().describe("Absolute path to a file on disk"),
19165
+ filename: exports_external.string().describe("Original filename"),
19166
+ mimeType: exports_external.string().describe("MIME type of the file")
19167
+ });
19168
+ S3FileRefSchema = exports_external.object({
19169
+ kind: exports_external.literal("s3"),
19170
+ ref: exports_external.string().describe("Storage key (suffix-only, prefix added by adapter)"),
19171
+ filename: exports_external.string().describe("Original filename"),
19172
+ mimeType: exports_external.string().describe("MIME type of the file")
19173
+ });
19174
+ InlineFileRefSchema = exports_external.object({
19175
+ kind: exports_external.literal("inline"),
19176
+ base64: exports_external.string().describe("Base64-encoded file bytes"),
19177
+ filename: exports_external.string().describe("Original filename"),
19178
+ mimeType: exports_external.string().describe("MIME type of the file")
19179
+ });
19180
+ FilePathDescriptorSchema = exports_external.discriminatedUnion("kind", [
19181
+ LocalFileRefSchema,
19182
+ S3FileRefSchema,
19183
+ InlineFileRefSchema
19184
+ ]);
19185
+ DocumentParserInputSchema = exports_external.union([FileIdInputSchema, FilePathDescriptorSchema]);
19186
+ DocumentParserOutputSchema = ParseResultSchema;
19187
+ DocumentParserConfigSchema = exports_external.object({
19188
+ ocrModel: exports_external.string().optional().describe("OCR provider ID for PDF/image parsing"),
19189
+ llmModel: exports_external.string().optional().describe("LLM provider ID for vision-based parsing"),
19190
+ maxConcurrency: exports_external.number().min(1).max(10).default(3).describe("Max concurrent VLM batch requests"),
19191
+ pagesPerBatch: exports_external.number().min(1).max(20).default(5).describe("Number of page images per VLM request"),
19192
+ prompt: exports_external.string().optional().describe("Custom extraction prompt"),
19193
+ nativeText: exports_external.boolean().default(false).optional().describe("Use native text extraction for PDFs with embedded text (no OCR/VLM)"),
19194
+ languages: exports_external.array(exports_external.string()).optional().describe('OCR language hints (e.g., ["en", "de"])'),
19195
+ outputFormat: exports_external.enum(["plain", "markdown", "djot", "html"]).default("markdown").optional().describe("Format for extracted text. Only the native (Kreuzberg) parser uses this — OCR/VLM always emit markdown.")
19196
+ }).prefault({});
19197
+ });
19198
+
19199
+ // ../types/src/processor/configs/extract.ts
19200
+ var ExtractInputSchema, ExtractOutputSchema, ExtractConfigSchema;
19201
+ var init_extract = __esm(() => {
19202
+ init_zod();
19203
+ ExtractInputSchema = exports_external.object({
19204
+ content: exports_external.string().optional().describe("Text content to extract from"),
19205
+ text: exports_external.string().optional().describe("Text content (alternative to content, e.g., from document parser)"),
19206
+ contentType: exports_external.enum(["text", "image"]).default("text"),
19207
+ imageData: exports_external.string().optional(),
19208
+ imageMimeType: exports_external.string().optional()
19209
+ }).refine((data) => data.content || data.text, {
19210
+ message: "Either content or text must be provided"
19211
+ });
19212
+ ExtractOutputSchema = exports_external.record(exports_external.string(), exports_external.unknown()).describe("Extracted structured data matching the provided schema");
19213
+ ExtractConfigSchema = exports_external.object({
19214
+ schema: exports_external.record(exports_external.string(), exports_external.unknown()).describe("JSON Schema defining the structure to extract"),
19215
+ prompt: exports_external.string().optional().describe("Custom prompt template for extraction"),
19216
+ provider: exports_external.string().optional().describe('Provider ID to use (e.g., "openai-gpt4o", "anthropic-claude")'),
19217
+ model: exports_external.string().optional().describe("Model to use (overrides provider default)"),
19218
+ maxInputTokens: exports_external.number().int().optional().describe("Max input tokens. Truncates input text and logs a warning when exceeded. Omit for no limit.")
19219
+ });
19220
+ });
19221
+
19222
+ // ../types/src/processor/configs/merge.ts
19223
+ var MergeConfigSchema, MergeInputSchema, MergeOutputSchema;
19224
+ var init_merge = __esm(() => {
19225
+ init_zod();
19226
+ MergeConfigSchema = exports_external.object({
19227
+ preservePortNames: exports_external.boolean().default(true),
19228
+ outputKey: exports_external.string().optional()
19229
+ });
19230
+ MergeInputSchema = exports_external.record(exports_external.string(), exports_external.unknown());
19231
+ MergeOutputSchema = exports_external.object({
19232
+ items: exports_external.array(exports_external.unknown()),
19233
+ count: exports_external.number(),
19234
+ merged: exports_external.record(exports_external.string(), exports_external.unknown()).optional()
19235
+ });
19236
+ });
19237
+
19238
+ // ../types/src/processor/configs/pdf-embedder.ts
19239
+ var PdfEmbedderInputSchema, PdfEmbedderOutputSchema, PdfEmbedderConfigSchema;
19240
+ var init_pdf_embedder = __esm(() => {
19241
+ init_zod();
19242
+ init_parser();
19243
+ PdfEmbedderInputSchema = exports_external.object({
19244
+ fileId: exports_external.string().describe("File ID from files table"),
19245
+ parseResult: exports_external.object({
19246
+ pages: exports_external.array(PageResultSchema),
19247
+ text: exports_external.string().optional()
19248
+ }).describe("Parse result from ai.parse step (must include word positions)")
19249
+ });
19250
+ PdfEmbedderOutputSchema = exports_external.object({
19251
+ fileId: exports_external.string().describe("File ID from files table"),
19252
+ pageCount: exports_external.number().describe("Number of pages in the output PDF"),
19253
+ wordCount: exports_external.number().describe("Number of words embedded"),
19254
+ text: exports_external.string().describe("Extracted text (from parse step)")
19255
+ });
19256
+ PdfEmbedderConfigSchema = exports_external.object({
19257
+ outputFilename: exports_external.string().optional().describe('Output filename - supports LiquidJS syntax e.g. "{{filename}}-searchable.pdf"'),
19258
+ confidenceThreshold: exports_external.number().min(0).max(1).default(0.7).describe("Minimum OCR confidence (0-1) to include a word. Lower = more words but more errors")
19259
+ }).prefault({});
19260
+ });
19261
+
19262
+ // ../types/src/processor/configs/split.ts
19263
+ var SplitInputSchema, SplitConfigSchema, ConfidenceLevelSchema, SplitOutputSchema;
19264
+ var init_split = __esm(() => {
19265
+ init_zod();
19266
+ SplitInputSchema = exports_external.object({
19267
+ pages: exports_external.array(exports_external.object({
19268
+ pageIndex: exports_external.number().describe("0-based page index"),
19269
+ text: exports_external.string().describe("Extracted text for this page"),
19270
+ pageName: exports_external.string().optional()
19271
+ })).min(1).describe("Per-page parsed content from a document parser")
19272
+ }).passthrough().describe("Document-parser-shaped input. Pass {{ steps.parse.output }} directly — extra fields like text/metadata are ignored.");
19273
+ SplitConfigSchema = exports_external.object({
19274
+ sections: exports_external.array(exports_external.object({
19275
+ name: exports_external.string().min(1).describe("Stable id for the section"),
19276
+ description: exports_external.string().min(1).describe("What this section looks like in the document. Use the document's own terminology (e.g. 'Príloha 2 / Anlage 2') and visual cues."),
19277
+ required: exports_external.boolean().optional().describe('If true, log a warn when this section is not found, and lean the LLM toward expecting it. Default: false (Reducto-style "may be absent").'),
19278
+ endHints: exports_external.array(exports_external.string()).optional().describe('Natural-language hints fed to the LLM about what marks the END of this section (e.g. ["PRÍPAD PORUŠENIA ZMLUVY", "*Koniec prílohy*", "the next chapter heading"]). The LLM uses these as guidance — not a regex match — so casing variants, missing diacritics, and multilingual phrasings still close the section correctly. The LLM emits a structured end_anchor per section it judges closed; deterministic merge applies it.')
19279
+ })).min(1),
19280
+ rules: exports_external.string().optional().describe("Optional natural-language rules appended to the system prompt"),
19281
+ provider: exports_external.string().optional().describe('Provider ID from eigenpal.config.yaml (e.g. "openai-gpt5.4-mini"). Falls back to the tenant default LLM provider when omitted.'),
19282
+ windowTokenBudget: exports_external.number().int().positive().optional().describe("Per-window token ceiling. Defaults to env SPLIT_WINDOW_TOKEN_BUDGET or 20000. Smaller windows give sharper anchors on contract-style documents (less competing context for the LLM to mis-anchor on); 50k–100k when sections routinely exceed per-window page count.")
19283
+ });
19284
+ ConfidenceLevelSchema = exports_external.enum(["low", "medium", "high"]).describe("LLM confidence as a coarse enum. Numeric (0..1) confidences cluster at 0.85–0.95 and gradations are noise; low/medium/high is reliable.");
19285
+ SplitOutputSchema = exports_external.object({
19286
+ splits: exports_external.array(exports_external.object({
19287
+ name: exports_external.string(),
19288
+ page_range: exports_external.tuple([exports_external.number().int(), exports_external.number().int()]),
19289
+ confidence: ConfidenceLevelSchema.describe("LLM confidence at the start anchor: low | medium | high."),
19290
+ notes: exports_external.string(),
19291
+ evidence: exports_external.object({
19292
+ start_heading_text: exports_external.string().nullable().optional().describe("Verbatim heading text the LLM cited as the section start"),
19293
+ start_page: exports_external.number().int().nullable().optional().describe("Page where start_heading_text appears")
19294
+ }).optional().describe("Structured start-anchor evidence the LLM cited — for downstream parsing without regex over `notes`."),
19295
+ end_evidence: exports_external.object({
19296
+ end_page: exports_external.number().int().describe("LAST page of the section (inclusive)"),
19297
+ confidence: ConfidenceLevelSchema,
19298
+ notes: exports_external.string().describe("LLM justification for the end. Pairs with start-anchor `notes` so a reconciliation pass can judge whether the section is correctly bounded.")
19299
+ }).optional().describe("Set when the LLM flagged a section close (matched against `endHints` or detected end-of-section markers). Absent when the section was closed by deterministic continuity-fill (next section start - 1)."),
19300
+ text: exports_external.string().describe("Joined per-page text for this section, ready for ai.extract"),
19301
+ pages: exports_external.array(exports_external.object({
19302
+ pageIndex: exports_external.number().int(),
19303
+ text: exports_external.string(),
19304
+ pageName: exports_external.string().optional(),
19305
+ source: exports_external.enum(["anchored", "inferred"]).describe("Whether this page was the LLM anchor (direct evidence) or filled in by continuity")
19306
+ })).describe("Raw per-page records covered by this split (in page order). Use when downstream needs to iterate page-by-page rather than treating the section as one blob."),
19307
+ pages_anchored: exports_external.array(exports_external.number().int()),
19308
+ pages_inferred: exports_external.array(exports_external.number().int())
19309
+ }))
19310
+ });
19311
+ });
19312
+
19313
+ // ../types/src/processor/configs/template.ts
19314
+ var TemplateInputSchema, TemplateOutputSchema, TemplateConfigSchema;
19315
+ var init_template = __esm(() => {
19316
+ init_zod();
19317
+ TemplateInputSchema = exports_external.object({
19318
+ data: exports_external.record(exports_external.string(), exports_external.unknown()).describe("Data to merge into the template")
19319
+ });
19320
+ TemplateOutputSchema = exports_external.object({
19321
+ fileId: exports_external.string().describe("File ID from files table")
19322
+ });
19323
+ TemplateConfigSchema = exports_external.object({
19324
+ templateId: exports_external.string().describe("ID of the template from templates table"),
19325
+ outputFilename: exports_external.string().optional().describe('Output filename - supports LiquidJS syntax e.g. "{{invoice_id}}-report.docx"'),
19326
+ highlightNotFound: exports_external.boolean().default(true).optional().describe("Highlight missing variables with red-colored text in the output document"),
19327
+ notFoundText: exports_external.string().default("NOT FOUND").optional().describe("Text to display for missing variables when highlightNotFound is enabled")
19328
+ });
19329
+ });
19330
+
19331
+ // ../types/src/processor/configs/xlsx-to-json.ts
19332
+ var XlsxToJsonInputSchema, XlsxToJsonOutputSchema, XlsxToJsonConfigSchema;
19333
+ var init_xlsx_to_json = __esm(() => {
19334
+ init_zod();
19335
+ init_document_parser();
19336
+ XlsxToJsonInputSchema = exports_external.union([FileIdInputSchema, FilePathDescriptorSchema]);
19337
+ XlsxToJsonOutputSchema = exports_external.object({
19338
+ rows: exports_external.array(exports_external.record(exports_external.string(), exports_external.unknown())).describe("Array of row objects (header row = keys)"),
19339
+ fileId: exports_external.string().optional().describe("File ID of stored CSV when outputCsv is true")
19340
+ });
19341
+ XlsxToJsonConfigSchema = exports_external.object({
19342
+ sheet: exports_external.union([exports_external.number().int().min(0), exports_external.string()]).optional().describe("Sheet to read: 0-based index or sheet name"),
19343
+ outputCsv: exports_external.boolean().default(false).optional(),
19344
+ outputFilename: exports_external.string().optional().describe("Output CSV filename when outputCsv is true")
19345
+ });
19346
+ });
19347
+
19348
+ // ../types/src/processor/configs/react-hook-form.ts
19349
+ function extractFieldMetadata(schema) {
19350
+ const fields = [];
19351
+ let inner = schema;
19352
+ while (inner instanceof exports_external.ZodDefault || inner instanceof exports_external.ZodPrefault) {
19353
+ inner = inner.unwrap();
19354
+ }
19355
+ if (inner instanceof exports_external.ZodObject) {
19356
+ for (const [name, fieldSchema] of Object.entries(inner.shape)) {
19357
+ fields.push(extractSingleFieldMetadata(name, fieldSchema));
19358
+ }
19359
+ }
19360
+ return fields;
19361
+ }
19362
+ function extractSingleFieldMetadata(name, schema) {
19363
+ let current = schema;
19364
+ let required2 = true;
19365
+ let defaultValue = undefined;
19366
+ let description = current.description;
19367
+ while (true) {
19368
+ if (current instanceof exports_external.ZodOptional) {
19369
+ required2 = false;
19370
+ current = current.unwrap();
19371
+ } else if (current instanceof exports_external.ZodDefault || current instanceof exports_external.ZodPrefault) {
19372
+ defaultValue = current._def.defaultValue;
19373
+ current = current.unwrap();
19374
+ } else {
19375
+ break;
19376
+ }
19377
+ description ??= current.description;
19378
+ }
19379
+ const base = { name, type: "unknown", required: required2, description, defaultValue };
19380
+ if (current instanceof exports_external.ZodString)
19381
+ return { ...base, type: "string" };
19382
+ if (current instanceof exports_external.ZodNumber) {
19383
+ let min;
19384
+ let max;
19385
+ for (const c of current._def.checks ?? []) {
19386
+ const def = c._zod.def;
19387
+ if (def.check === "greater_than")
19388
+ min = def.value;
19389
+ if (def.check === "less_than")
19390
+ max = def.value;
19391
+ }
19392
+ return { ...base, type: "number", min, max };
19393
+ }
19394
+ if (current instanceof exports_external.ZodBoolean)
19395
+ return { ...base, type: "boolean" };
19396
+ if (current instanceof exports_external.ZodEnum) {
19397
+ return { ...base, type: "enum", enumValues: current.options };
19398
+ }
19399
+ if (current instanceof exports_external.ZodArray)
19400
+ return { ...base, type: "array" };
19401
+ if (current instanceof exports_external.ZodObject || current instanceof exports_external.ZodRecord) {
19402
+ return { ...base, type: "object" };
19403
+ }
19404
+ return base;
19405
+ }
19406
+ function getConfigFieldMetadata(processorId) {
19407
+ const schema = getConfigSchema(processorId);
19408
+ if (!schema)
19409
+ return;
19410
+ return extractFieldMetadata(schema);
19411
+ }
19412
+ function getConfigDefaults(processorId) {
19413
+ const schema = PROCESSOR_SCHEMAS[processorId]?.configSchema;
19414
+ if (!schema)
19415
+ return {};
19416
+ try {
19417
+ const result = schema.safeParse({});
19418
+ if (result.success) {
19419
+ return result.data;
19420
+ }
19421
+ } catch {}
19422
+ const fields = extractFieldMetadata(schema);
19423
+ const defaults = {};
19424
+ for (const field of fields) {
19425
+ if (field.defaultValue !== undefined) {
19426
+ defaults[field.name] = field.defaultValue;
19427
+ }
19428
+ }
19429
+ return defaults;
19430
+ }
19431
+ function validateConfig(processorId, config2) {
19432
+ const schema = getConfigSchema(processorId);
19433
+ if (!schema) {
19434
+ return { valid: true, errors: {} };
19435
+ }
19436
+ const result = schema.safeParse(config2);
19437
+ if (result.success) {
19438
+ return { valid: true, errors: {} };
19439
+ }
19440
+ const errors3 = {};
19441
+ for (const issue2 of result.error.issues) {
19442
+ const path = issue2.path.join(".");
19443
+ errors3[path] = issue2.message;
19444
+ }
19445
+ return { valid: false, errors: errors3 };
19446
+ }
19447
+ var init_react_hook_form = __esm(() => {
19448
+ init_zod();
19449
+ init_configs();
19450
+ });
19451
+
19452
+ // ../types/src/processor/configs/index.ts
19453
+ function getProcessorSchemas(processorId) {
19454
+ return PROCESSOR_SCHEMAS[processorId];
19455
+ }
19456
+ function getConfigSchema(processorId) {
19457
+ return PROCESSOR_SCHEMAS[processorId]?.configSchema;
19458
+ }
19459
+ function getAllProcessorJsonSchemas() {
19460
+ return Object.values(PROCESSOR_SCHEMAS).map((p) => ({
19461
+ id: p.id,
19462
+ inputSchema: toJsonSchema(p.inputSchema),
19463
+ outputSchema: toJsonSchema(p.outputSchema),
19464
+ configSchema: toJsonSchema(p.configSchema)
19465
+ }));
19466
+ }
19467
+ function listProcessorIds() {
19468
+ return Object.keys(PROCESSOR_SCHEMAS);
19469
+ }
19470
+ var PROCESSOR_SCHEMAS;
19471
+ var init_configs = __esm(() => {
19472
+ init_common();
19473
+ init_ids();
19474
+ init_classify();
19475
+ init_document_parser();
19476
+ init_extract();
19477
+ init_merge();
19478
+ init_pdf_embedder();
19479
+ init_split();
19480
+ init_template();
19481
+ init_xlsx_to_json();
19482
+ init_react_hook_form();
19483
+ init_classify();
19484
+ init_document_parser();
19485
+ init_extract();
19486
+ init_merge();
19487
+ init_pdf_embedder();
19488
+ init_split();
19489
+ init_template();
19490
+ init_xlsx_to_json();
19491
+ PROCESSOR_SCHEMAS = {
19492
+ [PROCESSOR_IDS.EXTRACT]: {
19493
+ id: PROCESSOR_IDS.EXTRACT,
19494
+ inputSchema: ExtractInputSchema,
19495
+ outputSchema: ExtractOutputSchema,
19496
+ configSchema: ExtractConfigSchema
19497
+ },
19498
+ [PROCESSOR_IDS.DOCUMENT_PARSER]: {
19499
+ id: PROCESSOR_IDS.DOCUMENT_PARSER,
19500
+ inputSchema: DocumentParserInputSchema,
19501
+ outputSchema: DocumentParserOutputSchema,
19502
+ configSchema: DocumentParserConfigSchema
19503
+ },
19504
+ [PROCESSOR_IDS.MERGE]: {
19505
+ id: PROCESSOR_IDS.MERGE,
19506
+ inputSchema: MergeInputSchema,
19507
+ outputSchema: MergeOutputSchema,
19508
+ configSchema: MergeConfigSchema
19509
+ },
19510
+ [PROCESSOR_IDS.TEMPLATE]: {
19511
+ id: PROCESSOR_IDS.TEMPLATE,
19512
+ inputSchema: TemplateInputSchema,
19513
+ outputSchema: TemplateOutputSchema,
19514
+ configSchema: TemplateConfigSchema
19515
+ },
19516
+ [PROCESSOR_IDS.PDF_EMBEDDER]: {
19517
+ id: PROCESSOR_IDS.PDF_EMBEDDER,
19518
+ inputSchema: PdfEmbedderInputSchema,
19519
+ outputSchema: PdfEmbedderOutputSchema,
19520
+ configSchema: PdfEmbedderConfigSchema
19521
+ },
19522
+ [PROCESSOR_IDS.SPLIT]: {
19523
+ id: PROCESSOR_IDS.SPLIT,
19524
+ inputSchema: SplitInputSchema,
19525
+ outputSchema: SplitOutputSchema,
19526
+ configSchema: SplitConfigSchema
19527
+ },
19528
+ [PROCESSOR_IDS.CLASSIFY]: {
19529
+ id: PROCESSOR_IDS.CLASSIFY,
19530
+ inputSchema: ClassifyInputSchema,
19531
+ outputSchema: ClassifyOutputSchema,
19532
+ configSchema: ClassifyConfigSchema
19533
+ },
19534
+ [PROCESSOR_IDS.XLSX_TO_JSON]: {
19535
+ id: PROCESSOR_IDS.XLSX_TO_JSON,
19536
+ inputSchema: XlsxToJsonInputSchema,
19537
+ outputSchema: XlsxToJsonOutputSchema,
19538
+ configSchema: XlsxToJsonConfigSchema
19539
+ }
19540
+ };
19541
+ });
17085
19542
 
17086
19543
  // ../types/src/processor/index.ts
17087
- var init_processor = () => {};
19544
+ var init_processor2 = __esm(() => {
19545
+ init_processor();
19546
+ init_execution();
19547
+ init_configs();
19548
+ });
17088
19549
 
17089
19550
  // ../types/src/parser/index.ts
17090
- var init_parser = () => {};
19551
+ var init_parser2 = __esm(() => {
19552
+ init_parser();
19553
+ });
17091
19554
 
17092
19555
  // ../types/src/otel/semantic-conventions.ts
17093
19556
  function mapLLMAttributes(attrs) {
@@ -20350,7 +22813,7 @@ var require_data = __commonJS((exports, module) => {
20350
22813
  });
20351
22814
 
20352
22815
  // ../../node_modules/fast-uri/lib/utils.js
20353
- var require_utils = __commonJS((exports, module) => {
22816
+ var require_utils3 = __commonJS((exports, module) => {
20354
22817
  var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
20355
22818
  var isIPv4 = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);
20356
22819
  function stringArrayToHexStripped(input) {
@@ -20606,7 +23069,7 @@ var require_utils = __commonJS((exports, module) => {
20606
23069
 
20607
23070
  // ../../node_modules/fast-uri/lib/schemes.js
20608
23071
  var require_schemes = __commonJS((exports, module) => {
20609
- var { isUUID } = require_utils();
23072
+ var { isUUID } = require_utils3();
20610
23073
  var URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
20611
23074
  var supportedSchemeNames = [
20612
23075
  "http",
@@ -20780,7 +23243,7 @@ var require_schemes = __commonJS((exports, module) => {
20780
23243
 
20781
23244
  // ../../node_modules/fast-uri/index.js
20782
23245
  var require_fast_uri = __commonJS((exports, module) => {
20783
- var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizeComponentEncoding, isIPv4, nonSimpleDomain } = require_utils();
23246
+ var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizeComponentEncoding, isIPv4, nonSimpleDomain } = require_utils3();
20784
23247
  var { SCHEMES, getSchemeHandler } = require_schemes();
20785
23248
  function normalize(uri, options) {
20786
23249
  if (typeof uri === "string") {
@@ -23190,7 +25653,7 @@ var require_draft7 = __commonJS((exports) => {
23190
25653
  });
23191
25654
 
23192
25655
  // ../../node_modules/ajv/dist/vocabularies/discriminator/types.js
23193
- var require_types = __commonJS((exports) => {
25656
+ var require_types2 = __commonJS((exports) => {
23194
25657
  Object.defineProperty(exports, "__esModule", { value: true });
23195
25658
  exports.DiscrError = undefined;
23196
25659
  var DiscrError;
@@ -23204,7 +25667,7 @@ var require_types = __commonJS((exports) => {
23204
25667
  var require_discriminator = __commonJS((exports) => {
23205
25668
  Object.defineProperty(exports, "__esModule", { value: true });
23206
25669
  var codegen_1 = require_codegen();
23207
- var types_1 = require_types();
25670
+ var types_1 = require_types2();
23208
25671
  var compile_1 = require_compile();
23209
25672
  var ref_error_1 = require_ref_error();
23210
25673
  var util_1 = require_util();
@@ -24137,24 +26600,6 @@ var init_validation = __esm(() => {
24137
26600
  init_workspace_schema();
24138
26601
  });
24139
26602
 
24140
- // ../types/src/core/common.ts
24141
- function toJsonSchema2(schema) {
24142
- return exports_external.toJSONSchema(schema, { target: "draft-7" });
24143
- }
24144
- var TimestampSchema2, JsonSchemaSchema2, BaseEntitySchema2;
24145
- var init_common = __esm(() => {
24146
- init_zod();
24147
- TimestampSchema2 = exports_external.union([exports_external.date(), exports_external.string().datetime()]).transform((val) => {
24148
- return typeof val === "string" ? new Date(val) : val;
24149
- });
24150
- JsonSchemaSchema2 = exports_external.record(exports_external.string(), exports_external.unknown());
24151
- BaseEntitySchema2 = exports_external.object({
24152
- id: exports_external.string(),
24153
- createdAt: TimestampSchema2.optional(),
24154
- updatedAt: TimestampSchema2.optional()
24155
- });
24156
- });
24157
-
24158
26603
  // ../../node_modules/@babel/parser/lib/index.js
24159
26604
  var require_lib = __commonJS((exports) => {
24160
26605
  Object.defineProperty(exports, "__esModule", {
@@ -24568,12 +27013,12 @@ var require_lib = __commonJS((exports) => {
24568
27013
  }
24569
27014
  const ParseErrorConstructors = {};
24570
27015
  for (const reasonCode of Object.keys(argument)) {
24571
- const template = argument[reasonCode];
24572
- const _ref = typeof template === "string" ? {
24573
- message: () => template
24574
- } : typeof template === "function" ? {
24575
- message: template
24576
- } : template, {
27016
+ const template2 = argument[reasonCode];
27017
+ const _ref = typeof template2 === "string" ? {
27018
+ message: () => template2
27019
+ } : typeof template2 === "function" ? {
27020
+ message: template2
27021
+ } : template2, {
24577
27022
  message
24578
27023
  } = _ref, rest = _objectWithoutPropertiesLoose(_ref, _excluded);
24579
27024
  const toMessage = typeof message === "string" ? () => message : message;
@@ -39046,7 +41491,7 @@ var require_keywords = __commonJS((exports) => {
39046
41491
  });
39047
41492
 
39048
41493
  // ../../node_modules/sucrase/dist/parser/tokenizer/types.js
39049
- var require_types2 = __commonJS((exports) => {
41494
+ var require_types3 = __commonJS((exports) => {
39050
41495
  Object.defineProperty(exports, "__esModule", { value: true });
39051
41496
  var TokenType;
39052
41497
  (function(TokenType2) {
@@ -39110,8 +41555,8 @@ var require_types2 = __commonJS((exports) => {
39110
41555
  TokenType2[TokenType2["questionDot"] = questionDot] = "questionDot";
39111
41556
  const arrow = 22528;
39112
41557
  TokenType2[TokenType2["arrow"] = arrow] = "arrow";
39113
- const template = 23552;
39114
- TokenType2[TokenType2["template"] = template] = "template";
41558
+ const template2 = 23552;
41559
+ TokenType2[TokenType2["template"] = template2] = "template";
39115
41560
  const ellipsis = 24576;
39116
41561
  TokenType2[TokenType2["ellipsis"] = ellipsis] = "ellipsis";
39117
41562
  const backQuote = 25600;
@@ -39530,7 +41975,7 @@ var require_types2 = __commonJS((exports) => {
39530
41975
  var require_state = __commonJS((exports) => {
39531
41976
  Object.defineProperty(exports, "__esModule", { value: true });
39532
41977
  var _keywords = require_keywords();
39533
- var _types = require_types2();
41978
+ var _types = require_types3();
39534
41979
 
39535
41980
  class Scope {
39536
41981
  constructor(startTokenIndex, endTokenIndex, isFunctionScope) {
@@ -39916,7 +42361,7 @@ var require_base = __commonJS((exports) => {
39916
42361
  var require_util2 = __commonJS((exports) => {
39917
42362
  Object.defineProperty(exports, "__esModule", { value: true });
39918
42363
  var _index = require_tokenizer();
39919
- var _types = require_types2();
42364
+ var _types = require_types3();
39920
42365
  var _charcodes = require_charcodes();
39921
42366
  var _base = require_base();
39922
42367
  function isContextual(contextualKeyword) {
@@ -40078,7 +42523,7 @@ var require_identifier = __commonJS((exports) => {
40078
42523
  var require_readWordTree = __commonJS((exports) => {
40079
42524
  Object.defineProperty(exports, "__esModule", { value: true });
40080
42525
  var _keywords = require_keywords();
40081
- var _types = require_types2();
42526
+ var _types = require_types3();
40082
42527
  var READ_WORD_TREE = new Int32Array([
40083
42528
  -1,
40084
42529
  27,
@@ -49056,7 +51501,7 @@ var require_readWord = __commonJS((exports) => {
49056
51501
  var _identifier = require_identifier();
49057
51502
  var _index = require_tokenizer();
49058
51503
  var _readWordTree = require_readWordTree();
49059
- var _types = require_types2();
51504
+ var _types = require_types3();
49060
51505
  function readWord() {
49061
51506
  let treePos = 0;
49062
51507
  let code = 0;
@@ -49122,7 +51567,7 @@ var require_tokenizer = __commonJS((exports) => {
49122
51567
  var _keywords = require_keywords();
49123
51568
  var _readWord = require_readWord();
49124
51569
  var _readWord2 = _interopRequireDefault(_readWord);
49125
- var _types = require_types2();
51570
+ var _types = require_types3();
49126
51571
  var IdentifierRole;
49127
51572
  (function(IdentifierRole2) {
49128
51573
  const Access = 0;
@@ -49839,7 +52284,7 @@ var require_tokenizer = __commonJS((exports) => {
49839
52284
  // ../../node_modules/sucrase/dist/util/getImportExportSpecifierInfo.js
49840
52285
  var require_getImportExportSpecifierInfo = __commonJS((exports) => {
49841
52286
  Object.defineProperty(exports, "__esModule", { value: true });
49842
- var _types = require_types2();
52287
+ var _types = require_types3();
49843
52288
  function getImportExportSpecifierInfo(tokens, index = tokens.currentIndex()) {
49844
52289
  let endIndex = index + 1;
49845
52290
  if (isSpecifierEnd(tokens, endIndex)) {
@@ -50192,7 +52637,7 @@ var require_JSXTransformer = __commonJS((exports) => {
50192
52637
  var _xhtml = require_xhtml();
50193
52638
  var _xhtml2 = _interopRequireDefault(_xhtml);
50194
52639
  var _tokenizer = require_tokenizer();
50195
- var _types = require_types2();
52640
+ var _types = require_types3();
50196
52641
  var _charcodes = require_charcodes();
50197
52642
  var _getJSXPragmaInfo = require_getJSXPragmaInfo();
50198
52643
  var _getJSXPragmaInfo2 = _interopRequireDefault(_getJSXPragmaInfo);
@@ -50696,7 +53141,7 @@ var require_getNonTypeIdentifiers = __commonJS((exports) => {
50696
53141
  return obj && obj.__esModule ? obj : { default: obj };
50697
53142
  }
50698
53143
  var _tokenizer = require_tokenizer();
50699
- var _types = require_types2();
53144
+ var _types = require_types3();
50700
53145
  var _JSXTransformer = require_JSXTransformer();
50701
53146
  var _getJSXPragmaInfo = require_getJSXPragmaInfo();
50702
53147
  var _getJSXPragmaInfo2 = _interopRequireDefault(_getJSXPragmaInfo);
@@ -50735,7 +53180,7 @@ var require_CJSImportProcessor = __commonJS((exports) => {
50735
53180
  }
50736
53181
  var _tokenizer = require_tokenizer();
50737
53182
  var _keywords = require_keywords();
50738
- var _types = require_types2();
53183
+ var _types = require_types3();
50739
53184
  var _getImportExportSpecifierInfo = require_getImportExportSpecifierInfo();
50740
53185
  var _getImportExportSpecifierInfo2 = _interopRequireDefault(_getImportExportSpecifierInfo);
50741
53186
  var _getNonTypeIdentifiers = require_getNonTypeIdentifiers();
@@ -52770,7 +55215,7 @@ var require_HelperManager = __commonJS((exports) => {
52770
55215
  var require_identifyShadowedGlobals = __commonJS((exports) => {
52771
55216
  Object.defineProperty(exports, "__esModule", { value: true });
52772
55217
  var _tokenizer = require_tokenizer();
52773
- var _types = require_types2();
55218
+ var _types = require_types3();
52774
55219
  function identifyShadowedGlobals(tokens, scopes, globalNames) {
52775
55220
  if (!hasShadowedGlobals(tokens, globalNames)) {
52776
55221
  return;
@@ -52835,7 +55280,7 @@ var require_identifyShadowedGlobals = __commonJS((exports) => {
52835
55280
  // ../../node_modules/sucrase/dist/util/getIdentifierNames.js
52836
55281
  var require_getIdentifierNames = __commonJS((exports) => {
52837
55282
  Object.defineProperty(exports, "__esModule", { value: true });
52838
- var _types = require_types2();
55283
+ var _types = require_types3();
52839
55284
  function getIdentifierNames(code, tokens) {
52840
55285
  const names = [];
52841
55286
  for (const token of tokens) {
@@ -53011,7 +55456,7 @@ var require_util3 = __commonJS((exports) => {
53011
55456
  });
53012
55457
 
53013
55458
  // ../../node_modules/ts-interface-checker/dist/types.js
53014
- var require_types3 = __commonJS((exports) => {
55459
+ var require_types4 = __commonJS((exports) => {
53015
55460
  var __extends = exports && exports.__extends || function() {
53016
55461
  var extendStatics = function(d, b) {
53017
55462
  extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
@@ -53611,9 +56056,9 @@ var require_dist2 = __commonJS((exports) => {
53611
56056
  };
53612
56057
  Object.defineProperty(exports, "__esModule", { value: true });
53613
56058
  exports.Checker = exports.createCheckers = undefined;
53614
- var types_1 = require_types3();
56059
+ var types_1 = require_types4();
53615
56060
  var util_1 = require_util3();
53616
- var types_2 = require_types3();
56061
+ var types_2 = require_types4();
53617
56062
  Object.defineProperty(exports, "TArray", { enumerable: true, get: function() {
53618
56063
  return types_2.TArray;
53619
56064
  } });
@@ -53895,7 +56340,7 @@ var require_lval = __commonJS((exports) => {
53895
56340
  var _typescript = require_typescript();
53896
56341
  var _index = require_tokenizer();
53897
56342
  var _keywords = require_keywords();
53898
- var _types = require_types2();
56343
+ var _types = require_types3();
53899
56344
  var _base = require_base();
53900
56345
  var _expression = require_expression();
53901
56346
  var _util = require_util2();
@@ -54027,7 +56472,7 @@ var require_typescript = __commonJS((exports) => {
54027
56472
  Object.defineProperty(exports, "__esModule", { value: true });
54028
56473
  var _index = require_tokenizer();
54029
56474
  var _keywords = require_keywords();
54030
- var _types = require_types2();
56475
+ var _types = require_types3();
54031
56476
  var _base = require_base();
54032
56477
  var _expression = require_expression();
54033
56478
  var _lval = require_lval();
@@ -55289,7 +57734,7 @@ var require_typescript = __commonJS((exports) => {
55289
57734
  var require_jsx = __commonJS((exports) => {
55290
57735
  Object.defineProperty(exports, "__esModule", { value: true });
55291
57736
  var _index = require_tokenizer();
55292
- var _types = require_types2();
57737
+ var _types = require_types3();
55293
57738
  var _base = require_base();
55294
57739
  var _expression = require_expression();
55295
57740
  var _util = require_util2();
@@ -55552,10 +57997,10 @@ var require_jsx = __commonJS((exports) => {
55552
57997
  });
55553
57998
 
55554
57999
  // ../../node_modules/sucrase/dist/parser/plugins/types.js
55555
- var require_types4 = __commonJS((exports) => {
58000
+ var require_types5 = __commonJS((exports) => {
55556
58001
  Object.defineProperty(exports, "__esModule", { value: true });
55557
58002
  var _index = require_tokenizer();
55558
- var _types = require_types2();
58003
+ var _types = require_types3();
55559
58004
  var _base = require_base();
55560
58005
  var _expression = require_expression();
55561
58006
  var _flow = require_flow();
@@ -55588,12 +58033,12 @@ var require_expression = __commonJS((exports) => {
55588
58033
  Object.defineProperty(exports, "__esModule", { value: true });
55589
58034
  var _flow = require_flow();
55590
58035
  var _index = require_jsx();
55591
- var _types = require_types4();
58036
+ var _types = require_types5();
55592
58037
  var _typescript = require_typescript();
55593
58038
  var _index3 = require_tokenizer();
55594
58039
  var _keywords = require_keywords();
55595
58040
  var _state = require_state();
55596
- var _types3 = require_types2();
58041
+ var _types3 = require_types3();
55597
58042
  var _charcodes = require_charcodes();
55598
58043
  var _identifier = require_identifier();
55599
58044
  var _base = require_base();
@@ -56309,7 +58754,7 @@ var require_flow = __commonJS((exports) => {
56309
58754
  Object.defineProperty(exports, "__esModule", { value: true });
56310
58755
  var _index = require_tokenizer();
56311
58756
  var _keywords = require_keywords();
56312
- var _types = require_types2();
58757
+ var _types = require_types3();
56313
58758
  var _base = require_base();
56314
58759
  var _expression = require_expression();
56315
58760
  var _statement = require_statement();
@@ -57184,7 +59629,7 @@ var require_statement = __commonJS((exports) => {
57184
59629
  var _tokenizer = require_tokenizer();
57185
59630
  var _keywords = require_keywords();
57186
59631
  var _state = require_state();
57187
- var _types = require_types2();
59632
+ var _types = require_types3();
57188
59633
  var _charcodes = require_charcodes();
57189
59634
  var _base = require_base();
57190
59635
  var _expression = require_expression();
@@ -58219,7 +60664,7 @@ var require_TokenProcessor = __commonJS((exports) => {
58219
60664
  function _interopRequireDefault(obj) {
58220
60665
  return obj && obj.__esModule ? obj : { default: obj };
58221
60666
  }
58222
- var _types = require_types2();
60667
+ var _types = require_types3();
58223
60668
  var _isAsyncOperation = require_isAsyncOperation();
58224
60669
  var _isAsyncOperation2 = _interopRequireDefault(_isAsyncOperation);
58225
60670
 
@@ -58477,7 +60922,7 @@ var require_TokenProcessor = __commonJS((exports) => {
58477
60922
  var require_getClassInfo = __commonJS((exports) => {
58478
60923
  Object.defineProperty(exports, "__esModule", { value: true });
58479
60924
  var _keywords = require_keywords();
58480
- var _types = require_types2();
60925
+ var _types = require_types3();
58481
60926
  function getClassInfo(rootTransformer, tokens, nameManager, disableESTransforms) {
58482
60927
  const snapshot = tokens.snapshot();
58483
60928
  const headerInfo = processClassHeader(tokens);
@@ -58715,7 +61160,7 @@ var require_getClassInfo = __commonJS((exports) => {
58715
61160
  // ../../node_modules/sucrase/dist/util/elideImportEquals.js
58716
61161
  var require_elideImportEquals = __commonJS((exports) => {
58717
61162
  Object.defineProperty(exports, "__esModule", { value: true });
58718
- var _types = require_types2();
61163
+ var _types = require_types3();
58719
61164
  function elideImportEquals(tokens) {
58720
61165
  tokens.removeInitialToken();
58721
61166
  tokens.removeToken();
@@ -58739,7 +61184,7 @@ var require_elideImportEquals = __commonJS((exports) => {
58739
61184
  var require_getDeclarationInfo = __commonJS((exports) => {
58740
61185
  Object.defineProperty(exports, "__esModule", { value: true });
58741
61186
  var _tokenizer = require_tokenizer();
58742
- var _types = require_types2();
61187
+ var _types = require_types3();
58743
61188
  var EMPTY_DECLARATION_INFO = {
58744
61189
  typeDeclarations: new Set,
58745
61190
  valueDeclarations: new Set
@@ -58767,7 +61212,7 @@ var require_getDeclarationInfo = __commonJS((exports) => {
58767
61212
  var require_isExportFrom = __commonJS((exports) => {
58768
61213
  Object.defineProperty(exports, "__esModule", { value: true });
58769
61214
  var _keywords = require_keywords();
58770
- var _types = require_types2();
61215
+ var _types = require_types3();
58771
61216
  function isExportFrom(tokens) {
58772
61217
  let closeBraceIndex = tokens.currentIndex();
58773
61218
  while (!tokens.matches1AtIndex(closeBraceIndex, _types.TokenType.braceR)) {
@@ -58782,7 +61227,7 @@ var require_isExportFrom = __commonJS((exports) => {
58782
61227
  var require_removeMaybeImportAttributes = __commonJS((exports) => {
58783
61228
  Object.defineProperty(exports, "__esModule", { value: true });
58784
61229
  var _keywords = require_keywords();
58785
- var _types = require_types2();
61230
+ var _types = require_types3();
58786
61231
  function removeMaybeImportAttributes(tokens) {
58787
61232
  if (tokens.matches2(_types.TokenType._with, _types.TokenType.braceL) || tokens.matches2(_types.TokenType.name, _types.TokenType.braceL) && tokens.matchesContextual(_keywords.ContextualKeyword._assert)) {
58788
61233
  tokens.removeToken();
@@ -58797,7 +61242,7 @@ var require_removeMaybeImportAttributes = __commonJS((exports) => {
58797
61242
  // ../../node_modules/sucrase/dist/util/shouldElideDefaultExport.js
58798
61243
  var require_shouldElideDefaultExport = __commonJS((exports) => {
58799
61244
  Object.defineProperty(exports, "__esModule", { value: true });
58800
- var _types = require_types2();
61245
+ var _types = require_types3();
58801
61246
  function shouldElideDefaultExport(isTypeScriptTransformEnabled, keepUnusedImports, tokens, declarationInfo) {
58802
61247
  if (!isTypeScriptTransformEnabled || keepUnusedImports) {
58803
61248
  return false;
@@ -58828,7 +61273,7 @@ var require_CJSImportTransformer = __commonJS((exports) => {
58828
61273
  }
58829
61274
  var _tokenizer = require_tokenizer();
58830
61275
  var _keywords = require_keywords();
58831
- var _types = require_types2();
61276
+ var _types = require_types3();
58832
61277
  var _elideImportEquals = require_elideImportEquals();
58833
61278
  var _elideImportEquals2 = _interopRequireDefault(_elideImportEquals);
58834
61279
  var _getDeclarationInfo = require_getDeclarationInfo();
@@ -59470,7 +61915,7 @@ var require_ESMImportTransformer = __commonJS((exports) => {
59470
61915
  return obj && obj.__esModule ? obj : { default: obj };
59471
61916
  }
59472
61917
  var _keywords = require_keywords();
59473
- var _types = require_types2();
61918
+ var _types = require_types3();
59474
61919
  var _elideImportEquals = require_elideImportEquals();
59475
61920
  var _elideImportEquals2 = _interopRequireDefault(_elideImportEquals);
59476
61921
  var _getDeclarationInfo = require_getDeclarationInfo();
@@ -59740,7 +62185,7 @@ var require_FlowTransformer = __commonJS((exports) => {
59740
62185
  return obj && obj.__esModule ? obj : { default: obj };
59741
62186
  }
59742
62187
  var _keywords = require_keywords();
59743
- var _types = require_types2();
62188
+ var _types = require_types3();
59744
62189
  var _Transformer = require_Transformer();
59745
62190
  var _Transformer2 = _interopRequireDefault(_Transformer);
59746
62191
 
@@ -59860,7 +62305,7 @@ var require_JestHoistTransformer = __commonJS((exports) => {
59860
62305
  }
59861
62306
  return value;
59862
62307
  }
59863
- var _types = require_types2();
62308
+ var _types = require_types3();
59864
62309
  var _Transformer = require_Transformer();
59865
62310
  var _Transformer2 = _interopRequireDefault(_Transformer);
59866
62311
  var JEST_GLOBAL_NAME = "jest";
@@ -59934,7 +62379,7 @@ var require_NumericSeparatorTransformer = __commonJS((exports) => {
59934
62379
  function _interopRequireDefault(obj) {
59935
62380
  return obj && obj.__esModule ? obj : { default: obj };
59936
62381
  }
59937
- var _types = require_types2();
62382
+ var _types = require_types3();
59938
62383
  var _Transformer = require_Transformer();
59939
62384
  var _Transformer2 = _interopRequireDefault(_Transformer);
59940
62385
 
@@ -59963,7 +62408,7 @@ var require_OptionalCatchBindingTransformer = __commonJS((exports) => {
59963
62408
  function _interopRequireDefault(obj) {
59964
62409
  return obj && obj.__esModule ? obj : { default: obj };
59965
62410
  }
59966
- var _types = require_types2();
62411
+ var _types = require_types3();
59967
62412
  var _Transformer = require_Transformer();
59968
62413
  var _Transformer2 = _interopRequireDefault(_Transformer);
59969
62414
 
@@ -59991,7 +62436,7 @@ var require_OptionalChainingNullishTransformer = __commonJS((exports) => {
59991
62436
  function _interopRequireDefault(obj) {
59992
62437
  return obj && obj.__esModule ? obj : { default: obj };
59993
62438
  }
59994
- var _types = require_types2();
62439
+ var _types = require_types3();
59995
62440
  var _Transformer = require_Transformer();
59996
62441
  var _Transformer2 = _interopRequireDefault(_Transformer);
59997
62442
 
@@ -60107,7 +62552,7 @@ var require_ReactDisplayNameTransformer = __commonJS((exports) => {
60107
62552
  return obj && obj.__esModule ? obj : { default: obj };
60108
62553
  }
60109
62554
  var _tokenizer = require_tokenizer();
60110
- var _types = require_types2();
62555
+ var _types = require_types3();
60111
62556
  var _Transformer = require_Transformer();
60112
62557
  var _Transformer2 = _interopRequireDefault(_Transformer);
60113
62558
 
@@ -60358,7 +62803,7 @@ var require_TypeScriptTransformer = __commonJS((exports) => {
60358
62803
  function _interopRequireDefault(obj) {
60359
62804
  return obj && obj.__esModule ? obj : { default: obj };
60360
62805
  }
60361
- var _types = require_types2();
62806
+ var _types = require_types3();
60362
62807
  var _isIdentifier = require_isIdentifier();
60363
62808
  var _isIdentifier2 = _interopRequireDefault(_isIdentifier);
60364
62809
  var _Transformer = require_Transformer();
@@ -60504,7 +62949,7 @@ var require_RootTransformer = __commonJS((exports) => {
60504
62949
  return obj && obj.__esModule ? obj : { default: obj };
60505
62950
  }
60506
62951
  var _keywords = require_keywords();
60507
- var _types = require_types2();
62952
+ var _types = require_types3();
60508
62953
  var _getClassInfo = require_getClassInfo();
60509
62954
  var _getClassInfo2 = _interopRequireDefault(_getClassInfo);
60510
62955
  var _CJSImportTransformer = require_CJSImportTransformer();
@@ -60903,7 +63348,7 @@ var require_formatTokens = __commonJS((exports) => {
60903
63348
  }
60904
63349
  var _linesandcolumns = require_build();
60905
63350
  var _linesandcolumns2 = _interopRequireDefault(_linesandcolumns);
60906
- var _types = require_types2();
63351
+ var _types = require_types3();
60907
63352
  function formatTokens(code, tokens) {
60908
63353
  if (tokens.length === 0) {
60909
63354
  return "";
@@ -60968,7 +63413,7 @@ var require_getTSImportedNames = __commonJS((exports) => {
60968
63413
  function _interopRequireDefault(obj) {
60969
63414
  return obj && obj.__esModule ? obj : { default: obj };
60970
63415
  }
60971
- var _types = require_types2();
63416
+ var _types = require_types3();
60972
63417
  var _getImportExportSpecifierInfo = require_getImportExportSpecifierInfo();
60973
63418
  var _getImportExportSpecifierInfo2 = _interopRequireDefault(_getImportExportSpecifierInfo);
60974
63419
  function getTSImportedNames(tokens) {
@@ -61353,7 +63798,7 @@ function describeUnsupportedType(nodeType) {
61353
63798
  function compileTypedScript(opts) {
61354
63799
  let ast;
61355
63800
  try {
61356
- ast = import_parser2.parse(opts.source, {
63801
+ ast = import_parser4.parse(opts.source, {
61357
63802
  sourceType: "script",
61358
63803
  plugins: ["typescript"],
61359
63804
  ranges: true
@@ -61605,9 +64050,9 @@ function stripCommentsAndStrings(s) {
61605
64050
  out = out.replace(/`(\\.|[^`\\])*`/g, "``");
61606
64051
  return out;
61607
64052
  }
61608
- var import_parser2, import_sucrase, EVALUATOR_FN_NAME = "scoreScript", EVALUATOR_PARAM_NAMES, TRANSFORM_FN_NAME = "script";
64053
+ var import_parser4, import_sucrase, EVALUATOR_FN_NAME = "scoreScript", EVALUATOR_PARAM_NAMES, TRANSFORM_FN_NAME = "script";
61609
64054
  var init_compile = __esm(() => {
61610
- import_parser2 = __toESM(require_lib(), 1);
64055
+ import_parser4 = __toESM(require_lib(), 1);
61611
64056
  import_sucrase = __toESM(require_dist3(), 1);
61612
64057
  EVALUATOR_PARAM_NAMES = ["expected", "actual"];
61613
64058
  });
@@ -61650,7 +64095,7 @@ function parseStepType(type) {
61650
64095
  function isStepCategory(type, category) {
61651
64096
  return type.startsWith(`${category}.`);
61652
64097
  }
61653
- var AI_STEP_TYPES, TRANSFORM_STEP_TYPES, ACTION_STEP_TYPES, CONTROL_STEP_TYPES, STEP_TYPES, StepTypeValue, StepTypeSchema, BaseStepSchema, AIStepSchema, TransformStepSchema, HttpMethodSchema, ActionStepSchema, WaitStepSchema, ApprovalStepSchema, FailStepSchema, BlockStepSchemaInner, IfStepSchemaInner, ParallelBranchSchemaInner, ParallelStepSchemaInner, ForeachStepSchemaInner, ParallelMapStepSchemaInner, StepSchema, BlockStepSchema, IfStepSchema, ParallelBranchSchema, ParallelStepSchema, ForeachStepSchema, ParallelMapStepSchema;
64098
+ var AI_STEP_TYPES, TRANSFORM_STEP_TYPES, ACTION_STEP_TYPES, CONTROL_STEP_TYPES, STEP_TYPES, StepTypeValue, StepTypeSchema, BaseStepSchema, AIStepSchema, TransformStepSchema, HttpMethodSchema, ActionStepSchema, WaitStepSchema, FailStepSchema, BlockStepSchemaInner, IfStepSchemaInner, ParallelBranchSchemaInner, ParallelStepSchemaInner, ForeachStepSchemaInner, ParallelMapStepSchemaInner, StepSchema, BlockStepSchema, IfStepSchema, ParallelBranchSchema, ParallelStepSchema, ForeachStepSchema, ParallelMapStepSchema;
61654
64099
  var init_steps = __esm(() => {
61655
64100
  init_zod();
61656
64101
  AI_STEP_TYPES = ["ai.parse", "ai.extract", "ai.split", "ai.classify"];
@@ -61678,7 +64123,6 @@ var init_steps = __esm(() => {
61678
64123
  "control.parallel",
61679
64124
  "control.parallel_map",
61680
64125
  "control.wait",
61681
- "control.approval",
61682
64126
  "control.block",
61683
64127
  "control.fail"
61684
64128
  ];
@@ -61712,7 +64156,6 @@ var init_steps = __esm(() => {
61712
64156
  CONTROL_PARALLEL: "control.parallel",
61713
64157
  CONTROL_PARALLEL_MAP: "control.parallel_map",
61714
64158
  CONTROL_WAIT: "control.wait",
61715
- CONTROL_APPROVAL: "control.approval",
61716
64159
  CONTROL_BLOCK: "control.block",
61717
64160
  CONTROL_FAIL: "control.fail"
61718
64161
  };
@@ -61735,17 +64178,12 @@ var init_steps = __esm(() => {
61735
64178
  });
61736
64179
  HttpMethodSchema = exports_external.enum(["GET", "POST", "PUT", "PATCH", "DELETE"]);
61737
64180
  ActionStepSchema = BaseStepSchema.extend({
61738
- type: exports_external.enum(ACTION_STEP_TYPES),
61739
- connectorId: exports_external.string().optional()
64181
+ type: exports_external.enum(ACTION_STEP_TYPES)
61740
64182
  });
61741
64183
  WaitStepSchema = BaseStepSchema.extend({
61742
64184
  type: exports_external.literal("control.wait"),
61743
64185
  duration: exports_external.number().positive().optional()
61744
64186
  });
61745
- ApprovalStepSchema = BaseStepSchema.extend({
61746
- type: exports_external.literal("control.approval"),
61747
- message: exports_external.string().optional()
61748
- });
61749
64187
  FailStepSchema = BaseStepSchema.extend({
61750
64188
  type: exports_external.literal("control.fail"),
61751
64189
  condition: exports_external.string().optional(),
@@ -61791,7 +64229,6 @@ var init_steps = __esm(() => {
61791
64229
  TransformStepSchema,
61792
64230
  ActionStepSchema,
61793
64231
  WaitStepSchema,
61794
- ApprovalStepSchema,
61795
64232
  FailStepSchema,
61796
64233
  BlockStepSchemaInner,
61797
64234
  IfStepSchemaInner,
@@ -61829,8 +64266,8 @@ function getAllStepJsonSchemas() {
61829
64266
  category: def.category,
61830
64267
  name: def.name,
61831
64268
  description: def.description,
61832
- configSchema: toJsonSchema2(def.configSchema),
61833
- outputSchema: toJsonSchema2(def.outputSchema),
64269
+ configSchema: toJsonSchema(def.configSchema),
64270
+ outputSchema: toJsonSchema(def.outputSchema),
61834
64271
  configInWith: def.configInWith
61835
64272
  }));
61836
64273
  }
@@ -61880,7 +64317,7 @@ function isOutputSchemaUnknown(stepType) {
61880
64317
  const def = schema._def;
61881
64318
  return def?.typeName === "ZodUnknown";
61882
64319
  }
61883
- var AiParseConfigSchema, AiParseOutputSchema, AiExtractConfigSchema, AiExtractOutputSchema, AiSplitConfigSchema, AiSplitOutputSchema, AiClassifyConfigSchema, AiClassifyOutputSchema, TransformSetConfigSchema, TransformSetOutputSchema, TransformRemoveConfigSchema, TransformRemoveOutputSchema, TransformCombineConfigSchema, TransformCombineOutputSchema, TransformSplitConfigSchema, TransformSplitOutputSchema, TransformMergeConfigSchema, TransformMergeOutputSchema, TransformTemplateConfigSchema, TransformTemplateOutputSchema, TransformPdfEmbedConfigSchema, TransformPdfEmbedOutputSchema, TransformXlsxToJsonConfigSchema, TransformXlsxToJsonOutputSchema, TransformScriptConfigSchema, TransformScriptOutputSchema, ParsedDocPageSchema, TransformTextChunkerConfigSchema, TransformTextChunkerOutputSchema, RegexNormalizerSchema, RegexFormatSchema, REGEX_FLAGS, RegexFieldSchema, TransformRegexExtractConfigSchema, TransformRegexExtractOutputSchema, ActionHttpConfigSchema, ActionHttpOutputSchema, ActionInvokeWorkflowConfigSchema, ActionInvokeWorkflowOutputSchema, ActionWebsiteReaderConfigSchema, ActionWebsiteReaderOutputSchema, ControlIfConfigSchema, ControlIfOutputSchema, ControlForeachConfigSchema, ControlForeachOutputSchema, ControlParallelMapConfigSchema, ControlParallelMapOutputSchema, ControlParallelConfigSchema, ControlParallelOutputSchema, ControlWaitConfigSchema, ControlWaitOutputSchema, ControlApprovalConfigSchema, ControlApprovalOutputSchema, ControlBlockConfigSchema, ControlBlockOutputSchema, ControlFailConfigSchema, ControlFailOutputSchema, STEP_SCHEMAS;
64320
+ var AiParseConfigSchema, AiParseOutputSchema, AiExtractConfigSchema, AiExtractOutputSchema, AiSplitConfigSchema, AiSplitOutputSchema, AiClassifyConfigSchema, AiClassifyOutputSchema, TransformSetConfigSchema, TransformSetOutputSchema, TransformRemoveConfigSchema, TransformRemoveOutputSchema, TransformCombineConfigSchema, TransformCombineOutputSchema, TransformSplitConfigSchema, TransformSplitOutputSchema, TransformMergeConfigSchema, TransformMergeOutputSchema, TransformTemplateConfigSchema, TransformTemplateOutputSchema, TransformPdfEmbedConfigSchema, TransformPdfEmbedOutputSchema, TransformXlsxToJsonConfigSchema, TransformXlsxToJsonOutputSchema, TransformScriptConfigSchema, TransformScriptOutputSchema, ParsedDocPageSchema, TransformTextChunkerConfigSchema, TransformTextChunkerOutputSchema, RegexNormalizerSchema, RegexFormatSchema, REGEX_FLAGS, RegexFieldSchema, TransformRegexExtractConfigSchema, TransformRegexExtractOutputSchema, ActionHttpConfigSchema, ActionHttpOutputSchema, ActionInvokeWorkflowConfigSchema, ActionInvokeWorkflowOutputSchema, ActionWebsiteReaderConfigSchema, ActionWebsiteReaderOutputSchema, ControlIfConfigSchema, ControlIfOutputSchema, ControlForeachConfigSchema, ControlForeachOutputSchema, ControlParallelMapConfigSchema, ControlParallelMapOutputSchema, ControlParallelConfigSchema, ControlParallelOutputSchema, ControlWaitConfigSchema, ControlWaitOutputSchema, ControlBlockConfigSchema, ControlBlockOutputSchema, ControlFailConfigSchema, ControlFailOutputSchema, STEP_SCHEMAS;
61884
64321
  var init_step_configs = __esm(() => {
61885
64322
  init_zod();
61886
64323
  init_common();
@@ -62166,7 +64603,10 @@ var init_step_configs = __esm(() => {
62166
64603
  });
62167
64604
  ActionInvokeWorkflowConfigSchema = exports_external.object({
62168
64605
  workflowId: exports_external.string().min(1, "Workflow ID is required").describe("ID of workflow to invoke"),
62169
- input: exports_external.record(exports_external.string(), exports_external.unknown()).optional().describe("Input to pass to workflow")
64606
+ input: exports_external.record(exports_external.string(), exports_external.unknown()).optional().describe("Input to pass to workflow"),
64607
+ wait: exports_external.boolean().optional().describe("If true, wait for the invoked workflow to complete (default: false)"),
64608
+ timeout: exports_external.number().optional().describe("Max wait time in ms when wait=true (default: 300000)"),
64609
+ pollInterval: exports_external.number().optional().describe("How often to poll status in ms when wait=true (default: 1000)")
62170
64610
  });
62171
64611
  ActionInvokeWorkflowOutputSchema = exports_external.record(exports_external.string(), exports_external.unknown()).describe("Output from invoked workflow");
62172
64612
  ActionWebsiteReaderConfigSchema = exports_external.object({
@@ -62220,17 +64660,6 @@ var init_step_configs = __esm(() => {
62220
64660
  ControlWaitOutputSchema = exports_external.object({
62221
64661
  waited: exports_external.number().describe("Actual milliseconds waited")
62222
64662
  });
62223
- ControlApprovalConfigSchema = exports_external.object({
62224
- message: exports_external.string().optional().describe("Message to display for approval"),
62225
- timeoutMinutes: exports_external.number().default(60 * 24).optional().describe("Auto-reject after timeout"),
62226
- notifyEmail: exports_external.string().email().optional().describe("Email to notify")
62227
- });
62228
- ControlApprovalOutputSchema = exports_external.object({
62229
- approved: exports_external.boolean().describe("Whether the request was approved"),
62230
- approvedBy: exports_external.string().optional().describe("Who approved"),
62231
- approvedAt: exports_external.string().optional().describe("When approved"),
62232
- comment: exports_external.string().optional().describe("Approver comment")
62233
- });
62234
64663
  ControlBlockConfigSchema = exports_external.object({
62235
64664
  blockName: exports_external.string().min(1, "Block name is required").describe("Name of the block to execute"),
62236
64665
  inputs: exports_external.record(exports_external.string(), exports_external.unknown()).optional().describe("Input mapping for the block")
@@ -62450,15 +64879,6 @@ var init_step_configs = __esm(() => {
62450
64879
  outputSchema: ControlWaitOutputSchema,
62451
64880
  configInWith: false
62452
64881
  },
62453
- "control.approval": {
62454
- type: "control.approval",
62455
- category: "control",
62456
- name: "Approval",
62457
- description: "Pause workflow for human approval before continuing",
62458
- configSchema: ControlApprovalConfigSchema,
62459
- outputSchema: ControlApprovalOutputSchema,
62460
- configInWith: false
62461
- },
62462
64882
  "control.block": {
62463
64883
  type: "control.block",
62464
64884
  category: "control",
@@ -62493,81 +64913,6 @@ var init_actions = __esm(() => {
62493
64913
  ACTION_TYPES = ActionTypeSchema.options;
62494
64914
  });
62495
64915
 
62496
- // ../types/src/processor/execution.ts
62497
- function asTuple(values) {
62498
- return values;
62499
- }
62500
- var WorkflowExecutionStatusValue2, WorkflowExecutionStatusSchema2, StepExecutionStatusValue2, StepExecutionStatusSchema2, TriggerTypeValue2, TriggerTypeSchema2, ExecutionTypeValue2, ExecutionTypeSchema2, WORKFLOW_EXECUTION_STATUSES2, STEP_EXECUTION_STATUSES2, TRIGGER_TYPES2, EXECUTION_TYPES2;
62501
- var init_execution = __esm(() => {
62502
- init_zod();
62503
- WorkflowExecutionStatusValue2 = {
62504
- CREATED: "created",
62505
- PENDING: "pending",
62506
- RUNNING: "running",
62507
- WAITING: "waiting",
62508
- COMPLETED: "completed",
62509
- FAILED: "failed",
62510
- CANCELLED: "cancelled"
62511
- };
62512
- WorkflowExecutionStatusSchema2 = exports_external.enum([
62513
- WorkflowExecutionStatusValue2.CREATED,
62514
- WorkflowExecutionStatusValue2.PENDING,
62515
- WorkflowExecutionStatusValue2.RUNNING,
62516
- WorkflowExecutionStatusValue2.WAITING,
62517
- WorkflowExecutionStatusValue2.COMPLETED,
62518
- WorkflowExecutionStatusValue2.FAILED,
62519
- WorkflowExecutionStatusValue2.CANCELLED
62520
- ]);
62521
- StepExecutionStatusValue2 = {
62522
- PENDING: "pending",
62523
- RUNNING: "running",
62524
- SUCCESS: "success",
62525
- FAILURE: "failure",
62526
- WAITING: "waiting",
62527
- SKIPPED: "skipped"
62528
- };
62529
- StepExecutionStatusSchema2 = exports_external.enum([
62530
- StepExecutionStatusValue2.PENDING,
62531
- StepExecutionStatusValue2.RUNNING,
62532
- StepExecutionStatusValue2.SUCCESS,
62533
- StepExecutionStatusValue2.FAILURE,
62534
- StepExecutionStatusValue2.WAITING,
62535
- StepExecutionStatusValue2.SKIPPED
62536
- ]);
62537
- TriggerTypeValue2 = {
62538
- MANUAL: "manual",
62539
- API: "api",
62540
- WEBHOOK: "webhook",
62541
- SCHEDULE: "schedule",
62542
- EMAIL: "email",
62543
- EVAL: "eval",
62544
- CLI: "cli"
62545
- };
62546
- TriggerTypeSchema2 = exports_external.enum([
62547
- TriggerTypeValue2.MANUAL,
62548
- TriggerTypeValue2.API,
62549
- TriggerTypeValue2.WEBHOOK,
62550
- TriggerTypeValue2.SCHEDULE,
62551
- TriggerTypeValue2.EMAIL,
62552
- TriggerTypeValue2.EVAL,
62553
- TriggerTypeValue2.CLI
62554
- ]);
62555
- ExecutionTypeValue2 = {
62556
- PROD: "prod",
62557
- EVAL: "eval",
62558
- PLAYGROUND: "playground"
62559
- };
62560
- ExecutionTypeSchema2 = exports_external.enum([
62561
- ExecutionTypeValue2.PROD,
62562
- ExecutionTypeValue2.EVAL,
62563
- ExecutionTypeValue2.PLAYGROUND
62564
- ]);
62565
- WORKFLOW_EXECUTION_STATUSES2 = asTuple(WorkflowExecutionStatusSchema2.options);
62566
- STEP_EXECUTION_STATUSES2 = asTuple(StepExecutionStatusSchema2.options);
62567
- TRIGGER_TYPES2 = TriggerTypeSchema2.options;
62568
- EXECUTION_TYPES2 = ExecutionTypeSchema2.options;
62569
- });
62570
-
62571
64916
  // ../types/src/workflow/workflow.ts
62572
64917
  function suggestWorkflowName(raw) {
62573
64918
  return raw.toLowerCase().replace(/[^a-z0-9_-]+/g, "-").replace(/^[_-]+|[_-]+$/g, "").slice(0, 64);
@@ -62603,11 +64948,11 @@ var init_workflow = __esm(() => {
62603
64948
  });
62604
64949
  ManualTriggerMethodSchema = exports_external.object({
62605
64950
  type: exports_external.literal("manual"),
62606
- inputSchema: JsonSchemaSchema2.optional()
64951
+ inputSchema: JsonSchemaSchema.optional()
62607
64952
  });
62608
64953
  ApiTriggerMethodSchema = exports_external.object({
62609
64954
  type: exports_external.literal("api"),
62610
- inputSchema: JsonSchemaSchema2.optional()
64955
+ inputSchema: JsonSchemaSchema.optional()
62611
64956
  });
62612
64957
  EmailTriggerMethodSchema = exports_external.object({
62613
64958
  type: exports_external.literal("email"),
@@ -62646,8 +64991,8 @@ var init_workflow = __esm(() => {
62646
64991
  yamlContent: exports_external.string(),
62647
64992
  definition: WorkflowDefinitionSchema,
62648
64993
  isCurrent: exports_external.boolean().default(true),
62649
- createdAt: TimestampSchema2,
62650
- updatedAt: TimestampSchema2.optional(),
64994
+ createdAt: TimestampSchema,
64995
+ updatedAt: TimestampSchema.optional(),
62651
64996
  createdBy: exports_external.string()
62652
64997
  });
62653
64998
  CreateWorkflowDefinitionSchema = exports_external.object({
@@ -62829,14 +65174,14 @@ function isFileOutput(value) {
62829
65174
  function isWorkflowResult(value) {
62830
65175
  return value != null && typeof value === "object" && "files" in value && Array.isArray(value.files);
62831
65176
  }
62832
- var WorkflowExecutionStatusSchema3, StepExecutionStatusSchema3, ScopeEntryTypeSchema, ScopeEntrySchema, ScopeStackSchema, StepResultSchema, ExecutionContextSchema, StepInputReferenceSchema, WorkflowExecutionSchema, StepExecutionSchema, ConnectorSchema, WorkflowFileOutputSchema, WorkflowResultSchema;
65177
+ var WorkflowExecutionStatusSchema2, StepExecutionStatusSchema2, ScopeEntryTypeSchema, ScopeEntrySchema, ScopeStackSchema, StepResultSchema, ExecutionContextSchema, StepInputReferenceSchema, WorkflowExecutionSchema, StepExecutionSchema, ConnectorSchema, WorkflowFileOutputSchema, WorkflowResultSchema;
62833
65178
  var init_execution2 = __esm(() => {
62834
65179
  init_zod();
62835
65180
  init_common();
62836
65181
  init_execution();
62837
65182
  init_workflow();
62838
- WorkflowExecutionStatusSchema3 = WorkflowExecutionStatusSchema2;
62839
- StepExecutionStatusSchema3 = StepExecutionStatusSchema2;
65183
+ WorkflowExecutionStatusSchema2 = WorkflowExecutionStatusSchema;
65184
+ StepExecutionStatusSchema2 = StepExecutionStatusSchema;
62840
65185
  ScopeEntryTypeSchema = exports_external.enum([
62841
65186
  "root",
62842
65187
  "if-then",
@@ -62858,7 +65203,7 @@ var init_execution2 = __esm(() => {
62858
65203
  ScopeStackSchema = exports_external.array(ScopeEntrySchema);
62859
65204
  StepResultSchema = exports_external.object({
62860
65205
  output: exports_external.unknown(),
62861
- status: StepExecutionStatusSchema3
65206
+ status: StepExecutionStatusSchema2
62862
65207
  });
62863
65208
  ExecutionContextSchema = exports_external.object({
62864
65209
  input: exports_external.record(exports_external.string(), exports_external.unknown()),
@@ -62886,7 +65231,7 @@ var init_execution2 = __esm(() => {
62886
65231
  triggerType: exports_external.string(),
62887
65232
  triggerInput: exports_external.record(exports_external.string(), exports_external.unknown()).nullable(),
62888
65233
  overrides: exports_external.object({ steps: exports_external.record(exports_external.string(), exports_external.record(exports_external.string(), exports_external.unknown())).optional() }).nullable().optional(),
62889
- status: WorkflowExecutionStatusSchema3,
65234
+ status: WorkflowExecutionStatusSchema2,
62890
65235
  scopeStack: ScopeStackSchema,
62891
65236
  currentStepIndex: exports_external.number(),
62892
65237
  stepResults: exports_external.record(exports_external.string(), StepResultSchema).optional(),
@@ -62894,15 +65239,15 @@ var init_execution2 = __esm(() => {
62894
65239
  error: exports_external.string().nullable(),
62895
65240
  priority: exports_external.number().default(50),
62896
65241
  leaseId: exports_external.string().nullable(),
62897
- leaseExpiresAt: TimestampSchema2.nullable(),
65242
+ leaseExpiresAt: TimestampSchema.nullable(),
62898
65243
  workerId: exports_external.string().nullable(),
62899
65244
  maxRetries: exports_external.number().default(0),
62900
65245
  originalExecutionId: exports_external.string().nullable().optional(),
62901
65246
  previousExecutionId: exports_external.string().nullable().optional(),
62902
65247
  retryNumber: exports_external.number().default(0),
62903
- createdAt: TimestampSchema2,
62904
- startedAt: TimestampSchema2.nullable(),
62905
- completedAt: TimestampSchema2.nullable(),
65248
+ createdAt: TimestampSchema,
65249
+ startedAt: TimestampSchema.nullable(),
65250
+ completedAt: TimestampSchema.nullable(),
62906
65251
  createdBy: exports_external.string().nullable()
62907
65252
  });
62908
65253
  StepExecutionSchema = exports_external.object({
@@ -62919,12 +65264,12 @@ var init_execution2 = __esm(() => {
62919
65264
  stepAttempt: exports_external.number().default(0),
62920
65265
  inputData: exports_external.unknown().nullable(),
62921
65266
  outputData: exports_external.unknown().nullable(),
62922
- status: StepExecutionStatusSchema3,
65267
+ status: StepExecutionStatusSchema2,
62923
65268
  error: exports_external.string().nullable(),
62924
65269
  overrideMode: exports_external.enum(["skipped", "partial"]).nullable().optional(),
62925
65270
  durationMs: exports_external.number().nullable(),
62926
- startedAt: TimestampSchema2.nullable(),
62927
- completedAt: TimestampSchema2.nullable()
65271
+ startedAt: TimestampSchema.nullable(),
65272
+ completedAt: TimestampSchema.nullable()
62928
65273
  });
62929
65274
  ConnectorSchema = exports_external.object({
62930
65275
  id: exports_external.string(),
@@ -62935,8 +65280,8 @@ var init_execution2 = __esm(() => {
62935
65280
  config: exports_external.record(exports_external.string(), exports_external.unknown()),
62936
65281
  inputSchema: exports_external.unknown().optional(),
62937
65282
  outputSchema: exports_external.unknown().optional(),
62938
- createdAt: TimestampSchema2,
62939
- updatedAt: TimestampSchema2.optional(),
65283
+ createdAt: TimestampSchema,
65284
+ updatedAt: TimestampSchema.optional(),
62940
65285
  createdBy: exports_external.string()
62941
65286
  });
62942
65287
  WorkflowFileOutputSchema = exports_external.object({
@@ -64356,11 +66701,11 @@ function walkGrammar(node, parts) {
64356
66701
  }
64357
66702
  return current;
64358
66703
  }
64359
- function normalizeTemplate(template) {
64360
- return template.endsWith("/") ? template.slice(0, -1) : template;
66704
+ function normalizeTemplate(template2) {
66705
+ return template2.endsWith("/") ? template2.slice(0, -1) : template2;
64361
66706
  }
64362
- function renderTemplate(template, params) {
64363
- return normalizeTemplate(template).split("/").flatMap((part) => {
66707
+ function renderTemplate(template2, params) {
66708
+ return normalizeTemplate(template2).split("/").flatMap((part) => {
64364
66709
  if (!part.startsWith(":")) {
64365
66710
  return [part];
64366
66711
  }
@@ -64375,15 +66720,15 @@ function renderTemplate(template, params) {
64375
66720
  return [assertSegment(String(name), value)];
64376
66721
  });
64377
66722
  }
64378
- function buildS3Path(tenantId, template, params) {
66723
+ function buildS3Path(tenantId, template2, params) {
64379
66724
  const tenant = assertSegment("tenantId", tenantId);
64380
- const parts = renderTemplate(template, params);
66725
+ const parts = renderTemplate(template2, params);
64381
66726
  const node = walkGrammar(S3_PATH_GRAMMAR, parts);
64382
- if (template.endsWith("/") && node === PATH_LEAF) {
64383
- throw new Error(`S3 path leaf cannot have a trailing slash: ${JSON.stringify(template)}`);
66727
+ if (template2.endsWith("/") && node === PATH_LEAF) {
66728
+ throw new Error(`S3 path leaf cannot have a trailing slash: ${JSON.stringify(template2)}`);
64384
66729
  }
64385
66730
  const path = ["tenants", tenant, ...parts].join("/");
64386
- return template.endsWith("/") ? `${path}/` : path;
66731
+ return template2.endsWith("/") ? `${path}/` : path;
64387
66732
  }
64388
66733
  function createBuilder(grammarNode, prefixSegments, boundTenantId) {
64389
66734
  const resolveTenantId = (params) => {
@@ -64393,23 +66738,23 @@ function createBuilder(grammarNode, prefixSegments, boundTenantId) {
64393
66738
  }
64394
66739
  return assertSegment("tenantId", tenantId);
64395
66740
  };
64396
- const build = (template, params) => {
66741
+ const build = (template2, params) => {
64397
66742
  const tenant = resolveTenantId(params);
64398
- const parts = renderTemplate(template, params ?? {});
66743
+ const parts = renderTemplate(template2, params ?? {});
64399
66744
  const node = walkGrammar(grammarNode, parts);
64400
- if (template.endsWith("/") && node === PATH_LEAF) {
64401
- throw new Error(`S3 path leaf cannot have a trailing slash: ${JSON.stringify(template)}`);
66745
+ if (template2.endsWith("/") && node === PATH_LEAF) {
66746
+ throw new Error(`S3 path leaf cannot have a trailing slash: ${JSON.stringify(template2)}`);
64402
66747
  }
64403
66748
  const path = ["tenants", tenant, ...prefixSegments, ...parts].join("/");
64404
- return template.endsWith("/") ? `${path}/` : path;
66749
+ return template2.endsWith("/") ? `${path}/` : path;
64405
66750
  };
64406
66751
  const builder = build;
64407
- builder.at = (template, params) => {
66752
+ builder.at = (template2, params) => {
64408
66753
  const tenant = resolveTenantId(params);
64409
- const parts = renderTemplate(template, params ?? {});
66754
+ const parts = renderTemplate(template2, params ?? {});
64410
66755
  const nextNode = walkGrammar(grammarNode, parts);
64411
- if (template.endsWith("/") && nextNode === PATH_LEAF) {
64412
- throw new Error(`S3 path leaf cannot have a trailing slash: ${JSON.stringify(template)}`);
66756
+ if (template2.endsWith("/") && nextNode === PATH_LEAF) {
66757
+ throw new Error(`S3 path leaf cannot have a trailing slash: ${JSON.stringify(template2)}`);
64413
66758
  }
64414
66759
  return createBuilder(nextNode, [...prefixSegments, ...parts], tenant);
64415
66760
  };
@@ -64694,7 +67039,7 @@ __export(exports_src, {
64694
67039
  SplitConfigSchema: () => SplitConfigSchema,
64695
67040
  SpanTypes: () => SpanTypes,
64696
67041
  SpanKindMap: () => SpanKindMap,
64697
- SpanKind: () => SpanKind,
67042
+ SpanKind: () => import_api.SpanKind,
64698
67043
  SourceVersionRefSchema: () => SourceVersionRefSchema,
64699
67044
  SourceSecretsFileSchema: () => SourceSecretsFileSchema,
64700
67045
  SourcePackageTypeSchema: () => SourcePackageTypeSchema,
@@ -64860,8 +67205,6 @@ __export(exports_src, {
64860
67205
  ControlFailConfigSchema: () => ControlFailConfigSchema,
64861
67206
  ControlBlockOutputSchema: () => ControlBlockOutputSchema,
64862
67207
  ControlBlockConfigSchema: () => ControlBlockConfigSchema,
64863
- ControlApprovalOutputSchema: () => ControlApprovalOutputSchema,
64864
- ControlApprovalConfigSchema: () => ControlApprovalConfigSchema,
64865
67208
  ConnectorSchema: () => ConnectorSchema,
64866
67209
  ClassifyOutputSchema: () => ClassifyOutputSchema,
64867
67210
  ClassifyLabelSchema: () => ClassifyLabelSchema,
@@ -64875,10 +67218,6 @@ __export(exports_src, {
64875
67218
  BlockStepSchema: () => BlockStepSchema,
64876
67219
  BaseEntitySchema: () => BaseEntitySchema,
64877
67220
  AutomationTargetSchema: () => AutomationTargetSchema,
64878
- ApprovalStepSchema: () => ApprovalStepSchema,
64879
- ApprovalOutputSchema: () => ApprovalOutputSchema,
64880
- ApprovalInputSchema: () => ApprovalInputSchema,
64881
- ApprovalConfigSchema: () => ApprovalConfigSchema,
64882
67221
  ApiTriggerMethodSchema: () => ApiTriggerMethodSchema,
64883
67222
  AiParseOutputSchema: () => AiParseOutputSchema,
64884
67223
  AiParseConfigSchema: () => AiParseConfigSchema,
@@ -64897,8 +67236,8 @@ __export(exports_src, {
64897
67236
  });
64898
67237
  var init_src = __esm(() => {
64899
67238
  init_core3();
64900
- init_processor();
64901
- init_parser();
67239
+ init_processor2();
67240
+ init_parser2();
64902
67241
  init_otel();
64903
67242
  init_execution_row();
64904
67243
  init_paths();
@@ -65808,7 +68147,7 @@ var require_foldFlowLines = __commonJS((exports) => {
65808
68147
  else
65809
68148
  end = lineWidth - indentAtStart;
65810
68149
  }
65811
- let split = undefined;
68150
+ let split2 = undefined;
65812
68151
  let prev = undefined;
65813
68152
  let overflow = false;
65814
68153
  let i = -1;
@@ -65842,20 +68181,20 @@ var require_foldFlowLines = __commonJS((exports) => {
65842
68181
  if (mode === FOLD_BLOCK)
65843
68182
  i = consumeMoreIndentedLines(text, i, indent.length);
65844
68183
  end = i + indent.length + endStep;
65845
- split = undefined;
68184
+ split2 = undefined;
65846
68185
  } else {
65847
68186
  if (ch === " " && prev && prev !== " " && prev !== `
65848
68187
  ` && prev !== "\t") {
65849
68188
  const next = text[i + 1];
65850
68189
  if (next && next !== " " && next !== `
65851
68190
  ` && next !== "\t")
65852
- split = i;
68191
+ split2 = i;
65853
68192
  }
65854
68193
  if (i >= end) {
65855
- if (split) {
65856
- folds.push(split);
65857
- end = split + endStep;
65858
- split = undefined;
68194
+ if (split2) {
68195
+ folds.push(split2);
68196
+ end = split2 + endStep;
68197
+ split2 = undefined;
65859
68198
  } else if (mode === FOLD_QUOTED) {
65860
68199
  while (prev === " " || prev === "\t") {
65861
68200
  prev = ch;
@@ -65868,7 +68207,7 @@ var require_foldFlowLines = __commonJS((exports) => {
65868
68207
  folds.push(j);
65869
68208
  escapedFolds[j] = true;
65870
68209
  end = j + endStep;
65871
- split = undefined;
68210
+ split2 = undefined;
65872
68211
  } else {
65873
68212
  overflow = true;
65874
68213
  }
@@ -66502,7 +68841,7 @@ var require_merge = __commonJS((exports) => {
66502
68841
  var identity = require_identity();
66503
68842
  var Scalar = require_Scalar();
66504
68843
  var MERGE_KEY = "<<";
66505
- var merge2 = {
68844
+ var merge3 = {
66506
68845
  identify: (value) => value === MERGE_KEY || typeof value === "symbol" && value.description === MERGE_KEY,
66507
68846
  default: "key",
66508
68847
  tag: "tag:yaml.org,2002:merge",
@@ -66512,7 +68851,7 @@ var require_merge = __commonJS((exports) => {
66512
68851
  }),
66513
68852
  stringify: () => MERGE_KEY
66514
68853
  };
66515
- var isMergeKey = (ctx, key) => (merge2.identify(key) || identity.isScalar(key) && (!key.type || key.type === Scalar.Scalar.PLAIN) && merge2.identify(key.value)) && ctx?.doc.schema.tags.some((tag) => tag.tag === merge2.tag && tag.default);
68854
+ var isMergeKey = (ctx, key) => (merge3.identify(key) || identity.isScalar(key) && (!key.type || key.type === Scalar.Scalar.PLAIN) && merge3.identify(key.value)) && ctx?.doc.schema.tags.some((tag) => tag.tag === merge3.tag && tag.default);
66516
68855
  function addMergeToJSMap(ctx, map2, value) {
66517
68856
  const source = resolveAliasValue(ctx, value);
66518
68857
  if (identity.isSeq(source))
@@ -66551,21 +68890,21 @@ var require_merge = __commonJS((exports) => {
66551
68890
  }
66552
68891
  exports.addMergeToJSMap = addMergeToJSMap;
66553
68892
  exports.isMergeKey = isMergeKey;
66554
- exports.merge = merge2;
68893
+ exports.merge = merge3;
66555
68894
  });
66556
68895
 
66557
68896
  // node_modules/yaml/dist/nodes/addPairToJSMap.js
66558
68897
  var require_addPairToJSMap = __commonJS((exports) => {
66559
68898
  var log = require_log();
66560
- var merge2 = require_merge();
68899
+ var merge3 = require_merge();
66561
68900
  var stringify = require_stringify();
66562
68901
  var identity = require_identity();
66563
68902
  var toJS = require_toJS();
66564
68903
  function addPairToJSMap(ctx, map2, { key, value }) {
66565
68904
  if (identity.isNode(key) && key.addToJSMap)
66566
68905
  key.addToJSMap(ctx, map2, value);
66567
- else if (merge2.isMergeKey(ctx, key))
66568
- merge2.addMergeToJSMap(ctx, map2, value);
68906
+ else if (merge3.isMergeKey(ctx, key))
68907
+ merge3.addMergeToJSMap(ctx, map2, value);
66569
68908
  else {
66570
68909
  const jsKey = toJS.toJS(key, "", ctx);
66571
68910
  if (map2 instanceof Map) {
@@ -67841,7 +70180,7 @@ var require_schema3 = __commonJS((exports) => {
67841
70180
  var bool = require_bool2();
67842
70181
  var float = require_float2();
67843
70182
  var int2 = require_int2();
67844
- var merge2 = require_merge();
70183
+ var merge3 = require_merge();
67845
70184
  var omap = require_omap();
67846
70185
  var pairs = require_pairs();
67847
70186
  var set2 = require_set();
@@ -67861,7 +70200,7 @@ var require_schema3 = __commonJS((exports) => {
67861
70200
  float.floatExp,
67862
70201
  float.float,
67863
70202
  binary.binary,
67864
- merge2.merge,
70203
+ merge3.merge,
67865
70204
  omap.omap,
67866
70205
  pairs.pairs,
67867
70206
  set2.set,
@@ -67884,7 +70223,7 @@ var require_tags = __commonJS((exports) => {
67884
70223
  var schema = require_schema();
67885
70224
  var schema$1 = require_schema2();
67886
70225
  var binary = require_binary();
67887
- var merge2 = require_merge();
70226
+ var merge3 = require_merge();
67888
70227
  var omap = require_omap();
67889
70228
  var pairs = require_pairs();
67890
70229
  var schema$2 = require_schema3();
@@ -67909,7 +70248,7 @@ var require_tags = __commonJS((exports) => {
67909
70248
  intOct: int2.intOct,
67910
70249
  intTime: timestamp.intTime,
67911
70250
  map: map2.map,
67912
- merge: merge2.merge,
70251
+ merge: merge3.merge,
67913
70252
  null: _null4.nullTag,
67914
70253
  omap: omap.omap,
67915
70254
  pairs: pairs.pairs,
@@ -67919,7 +70258,7 @@ var require_tags = __commonJS((exports) => {
67919
70258
  };
67920
70259
  var coreKnownTags = {
67921
70260
  "tag:yaml.org,2002:binary": binary.binary,
67922
- "tag:yaml.org,2002:merge": merge2.merge,
70261
+ "tag:yaml.org,2002:merge": merge3.merge,
67923
70262
  "tag:yaml.org,2002:omap": omap.omap,
67924
70263
  "tag:yaml.org,2002:pairs": pairs.pairs,
67925
70264
  "tag:yaml.org,2002:set": set2.set,
@@ -67928,7 +70267,7 @@ var require_tags = __commonJS((exports) => {
67928
70267
  function getTags(customTags, schemaName, addMergeTag) {
67929
70268
  const schemaTags = schemas3.get(schemaName);
67930
70269
  if (schemaTags && !customTags) {
67931
- return addMergeTag && !schemaTags.includes(merge2.merge) ? schemaTags.concat(merge2.merge) : schemaTags.slice();
70270
+ return addMergeTag && !schemaTags.includes(merge3.merge) ? schemaTags.concat(merge3.merge) : schemaTags.slice();
67932
70271
  }
67933
70272
  let tags = schemaTags;
67934
70273
  if (!tags) {
@@ -67946,7 +70285,7 @@ var require_tags = __commonJS((exports) => {
67946
70285
  tags = customTags(tags.slice());
67947
70286
  }
67948
70287
  if (addMergeTag)
67949
- tags = tags.concat(merge2.merge);
70288
+ tags = tags.concat(merge3.merge);
67950
70289
  return tags.reduce((tags2, tag) => {
67951
70290
  const tagObj = typeof tag === "string" ? tagsByName[tag] : tag;
67952
70291
  if (!tagObj) {
@@ -67973,11 +70312,11 @@ var require_Schema = __commonJS((exports) => {
67973
70312
  var sortMapEntriesByKey = (a, b) => a.key < b.key ? -1 : a.key > b.key ? 1 : 0;
67974
70313
 
67975
70314
  class Schema {
67976
- constructor({ compat: compat2, customTags, merge: merge2, resolveKnownTags, schema, sortMapEntries, toStringDefaults }) {
70315
+ constructor({ compat: compat2, customTags, merge: merge3, resolveKnownTags, schema, sortMapEntries, toStringDefaults }) {
67977
70316
  this.compat = Array.isArray(compat2) ? tags.getTags(compat2, "compat") : compat2 ? tags.getTags(null, compat2) : null;
67978
70317
  this.name = typeof schema === "string" && schema || "core";
67979
70318
  this.knownTags = resolveKnownTags ? tags.coreKnownTags : {};
67980
- this.tags = tags.getTags(customTags, this.name, merge2);
70319
+ this.tags = tags.getTags(customTags, this.name, merge3);
67981
70320
  this.toStringOptions = toStringDefaults ?? null;
67982
70321
  Object.defineProperty(this, identity.MAP, { value: map2.map });
67983
70322
  Object.defineProperty(this, identity.SCALAR, { value: string4.string });
@@ -69200,13 +71539,13 @@ var require_resolve_block_scalar = __commonJS((exports) => {
69200
71539
  return { mode, indent, chomp, comment, length };
69201
71540
  }
69202
71541
  function splitLines(source) {
69203
- const split = source.split(/\n( *)/);
69204
- const first = split[0];
71542
+ const split2 = source.split(/\n( *)/);
71543
+ const first = split2[0];
69205
71544
  const m = first.match(/^( *)/);
69206
71545
  const line0 = m?.[1] ? [m[1], first.slice(m[1].length)] : ["", first];
69207
71546
  const lines = [line0];
69208
- for (let i = 1;i < split.length; i += 2)
69209
- lines.push([split[i], split[i + 1]]);
71547
+ for (let i = 1;i < split2.length; i += 2)
71548
+ lines.push([split2[i], split2[i + 1]]);
69210
71549
  return lines;
69211
71550
  }
69212
71551
  exports.resolveBlockScalar = resolveBlockScalar;
@@ -72220,7 +74559,7 @@ var init_main = __esm(() => {
72220
74559
  });
72221
74560
 
72222
74561
  // ../../node_modules/sisteransi/src/index.js
72223
- var require_src = __commonJS((exports, module) => {
74562
+ var require_src2 = __commonJS((exports, module) => {
72224
74563
  var ESC2 = "\x1B";
72225
74564
  var CSI2 = `${ESC2}[`;
72226
74565
  var beep = "\x07";
@@ -72563,7 +74902,7 @@ var import_sisteransi, G, K, h, Y, k, A = (r) => ("columns" in r) && typeof r.co
72563
74902
  }, Q, X, Z, et, it, rt, nt, ot, ut, at, ht;
72564
74903
  var init_dist3 = __esm(() => {
72565
74904
  init_main();
72566
- import_sisteransi = __toESM(require_src(), 1);
74905
+ import_sisteransi = __toESM(require_src2(), 1);
72567
74906
  G = ["up", "down", "left", "right", "space", "enter", "cancel"];
72568
74907
  K = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
72569
74908
  h = { actions: new Set(G), aliases: new Map([["k", "up"], ["j", "down"], ["h", "left"], ["l", "right"], ["\x03", "cancel"], ["escape", "cancel"]]), messages: { cancel: "Canceled", error: "Something went wrong" }, withGuide: true, date: { monthNames: [...K], messages: { required: "Please enter a valid date", invalidMonth: "There are only 12 months in a year", invalidDay: (r, t) => `There are only ${r} days in ${t}`, afterMin: (r) => `Date must be on or after ${r.toISOString().slice(0, 10)}`, beforeMax: (r) => `Date must be on or before ${r.toISOString().slice(0, 10)}` } } };
@@ -73906,7 +76245,7 @@ var init_dist4 = __esm(() => {
73906
76245
  init_dist3();
73907
76246
  init_main();
73908
76247
  init_dist2();
73909
- import_sisteransi2 = __toESM(require_src(), 1);
76248
+ import_sisteransi2 = __toESM(require_src2(), 1);
73910
76249
  tt2 = te();
73911
76250
  _t = w2("◆", "*");
73912
76251
  ot2 = w2("■", "x");
@@ -167398,7 +169737,7 @@ var require2, __filename2, __dirname2, __create2, __defProp3, __getOwnPropDesc,
167398
169737
  __defProp3(to5, key2, { get: () => from[key2], enumerable: !(desc = __getOwnPropDesc(from, key2)) || desc.enumerable });
167399
169738
  }
167400
169739
  return to5;
167401
- }, __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp3(target, "default", { value: mod, enumerable: true }) : target, mod)), require_array, require_errno, require_fs, require_path, require_is_extglob, require_is_glob, require_glob_parent, require_utils2, require_stringify2, require_is_number, require_to_regex_range, require_fill_range, require_compile2, require_expand, require_constants, require_parse, require_braces, require_constants2, require_utils22, require_scan, require_parse2, require_picomatch, require_picomatch2, require_micromatch, require_pattern2, require_merge2, require_stream, require_string2, require_utils3, require_tasks, require_async, require_sync, require_fs2, require_settings, require_out, require_queue_microtask, require_run_parallel, require_constants3, require_fs3, require_utils4, require_common, require_async2, require_sync2, require_fs4, require_settings2, require_out2, require_reusify, require_queue, require_common2, require_reader, require_async3, require_async4, require_stream2, require_sync3, require_sync4, require_settings3, require_out3, require_reader2, require_stream3, require_async5, require_matcher, require_partial, require_deep, require_entry, require_error2, require_entry2, require_provider, require_async6, require_stream4, require_sync5, require_sync6, require_settings4, require_out4, require_picocolors2, require_debug, require_constants4, require_re, require_parse_options, require_identifiers, require_semver, require_compare, require_gte, require_pseudomap, require_map2, require_yallist, require_lru_cache, require_sigmund, require_fnmatch, require_ini, require_package, require_src2, require_js_tokens, require_readlines, require_ignore, index_exports, Diff = class {
169740
+ }, __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create2(__getProtoOf2(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp3(target, "default", { value: mod, enumerable: true }) : target, mod)), require_array, require_errno, require_fs, require_path, require_is_extglob, require_is_glob, require_glob_parent, require_utils4, require_stringify2, require_is_number, require_to_regex_range, require_fill_range, require_compile2, require_expand, require_constants, require_parse, require_braces, require_constants2, require_utils22, require_scan, require_parse2, require_picomatch, require_picomatch2, require_micromatch, require_pattern2, require_merge2, require_stream, require_string2, require_utils32, require_tasks, require_async, require_sync, require_fs2, require_settings, require_out, require_queue_microtask, require_run_parallel, require_constants3, require_fs3, require_utils42, require_common, require_async2, require_sync2, require_fs4, require_settings2, require_out2, require_reusify, require_queue, require_common2, require_reader, require_async3, require_async4, require_stream2, require_sync3, require_sync4, require_settings3, require_out3, require_reader2, require_stream3, require_async5, require_matcher, require_partial, require_deep, require_entry, require_error2, require_entry2, require_provider, require_async6, require_stream4, require_sync5, require_sync6, require_settings4, require_out4, require_picocolors2, require_debug, require_constants4, require_re, require_parse_options, require_identifiers, require_semver2, require_compare, require_gte, require_pseudomap, require_map2, require_yallist, require_lru_cache, require_sigmund, require_fnmatch, require_ini, require_package, require_src3, require_js_tokens, require_readlines, require_ignore, index_exports, Diff = class {
167402
169741
  diff(oldStr, newStr, options8 = {}) {
167403
169742
  let callback;
167404
169743
  if (typeof options8 === "function") {
@@ -168420,7 +170759,7 @@ var init_prettier = __esm(() => {
168420
170759
  };
168421
170760
  }
168422
170761
  });
168423
- require_utils2 = __commonJS2({
170762
+ require_utils4 = __commonJS2({
168424
170763
  "node_modules/braces/lib/utils.js"(exports) {
168425
170764
  exports.isInteger = (num) => {
168426
170765
  if (typeof num === "number") {
@@ -168509,7 +170848,7 @@ var init_prettier = __esm(() => {
168509
170848
  });
168510
170849
  require_stringify2 = __commonJS2({
168511
170850
  "node_modules/braces/lib/stringify.js"(exports, module) {
168512
- var utils2 = require_utils2();
170851
+ var utils2 = require_utils4();
168513
170852
  module.exports = (ast, options8 = {}) => {
168514
170853
  const stringify2 = (node, parent = {}) => {
168515
170854
  const invalidBlock = options8.escapeInvalid && utils2.isInvalidBrace(parent);
@@ -168963,7 +171302,7 @@ var init_prettier = __esm(() => {
168963
171302
  require_compile2 = __commonJS2({
168964
171303
  "node_modules/braces/lib/compile.js"(exports, module) {
168965
171304
  var fill2 = require_fill_range();
168966
- var utils2 = require_utils2();
171305
+ var utils2 = require_utils4();
168967
171306
  var compile = (ast, options8 = {}) => {
168968
171307
  const walk2 = (node, parent = {}) => {
168969
171308
  const invalidBlock = utils2.isInvalidBrace(parent);
@@ -169013,7 +171352,7 @@ var init_prettier = __esm(() => {
169013
171352
  "node_modules/braces/lib/expand.js"(exports, module) {
169014
171353
  var fill2 = require_fill_range();
169015
171354
  var stringify2 = require_stringify2();
169016
- var utils2 = require_utils2();
171355
+ var utils2 = require_utils4();
169017
171356
  var append = (queue = "", stash = "", enclose = false) => {
169018
171357
  const result = [];
169019
171358
  queue = [].concat(queue);
@@ -171212,8 +173551,8 @@ var init_prettier = __esm(() => {
171212
173551
  var Stream = __require2("stream");
171213
173552
  var PassThrough = Stream.PassThrough;
171214
173553
  var slice = Array.prototype.slice;
171215
- module.exports = merge2;
171216
- function merge2() {
173554
+ module.exports = merge22;
173555
+ function merge22() {
171217
173556
  const streamsQueue = [];
171218
173557
  const args = slice.call(arguments);
171219
173558
  let merging = false;
@@ -171327,9 +173666,9 @@ var init_prettier = __esm(() => {
171327
173666
  "node_modules/fast-glob/out/utils/stream.js"(exports) {
171328
173667
  Object.defineProperty(exports, "__esModule", { value: true });
171329
173668
  exports.merge = undefined;
171330
- var merge2 = require_merge2();
173669
+ var merge22 = require_merge2();
171331
173670
  function merge3(streams) {
171332
- const mergedStream = merge2(streams);
173671
+ const mergedStream = merge22(streams);
171333
173672
  streams.forEach((stream) => {
171334
173673
  stream.once("error", (error52) => mergedStream.emit("error", error52));
171335
173674
  });
@@ -171357,7 +173696,7 @@ var init_prettier = __esm(() => {
171357
173696
  exports.isEmpty = isEmpty;
171358
173697
  }
171359
173698
  });
171360
- require_utils3 = __commonJS2({
173699
+ require_utils32 = __commonJS2({
171361
173700
  "node_modules/fast-glob/out/utils/index.js"(exports) {
171362
173701
  Object.defineProperty(exports, "__esModule", { value: true });
171363
173702
  exports.string = exports.stream = exports.pattern = exports.path = exports.fs = exports.errno = exports.array = undefined;
@@ -171381,7 +173720,7 @@ var init_prettier = __esm(() => {
171381
173720
  "node_modules/fast-glob/out/managers/tasks.js"(exports) {
171382
173721
  Object.defineProperty(exports, "__esModule", { value: true });
171383
173722
  exports.convertPatternGroupToTask = exports.convertPatternGroupsToTasks = exports.groupPatternsByBaseDirectory = exports.getNegativePatternsAsPositive = exports.getPositivePatterns = exports.convertPatternsToTasks = exports.generate = undefined;
171384
- var utils2 = require_utils3();
173723
+ var utils2 = require_utils32();
171385
173724
  function generate(input, settings) {
171386
173725
  const patterns = processPatterns(input, settings);
171387
173726
  const ignore = processPatterns(settings.ignore, settings);
@@ -171690,7 +174029,7 @@ var init_prettier = __esm(() => {
171690
174029
  exports.createDirentFromStats = createDirentFromStats;
171691
174030
  }
171692
174031
  });
171693
- require_utils4 = __commonJS2({
174032
+ require_utils42 = __commonJS2({
171694
174033
  "node_modules/@nodelib/fs.scandir/out/utils/index.js"(exports) {
171695
174034
  Object.defineProperty(exports, "__esModule", { value: true });
171696
174035
  exports.fs = undefined;
@@ -171718,7 +174057,7 @@ var init_prettier = __esm(() => {
171718
174057
  var fsStat = require_out();
171719
174058
  var rpl = require_run_parallel();
171720
174059
  var constants_1 = require_constants3();
171721
- var utils2 = require_utils4();
174060
+ var utils2 = require_utils42();
171722
174061
  var common = require_common();
171723
174062
  function read3(directory, settings, callback) {
171724
174063
  if (!settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) {
@@ -171824,7 +174163,7 @@ var init_prettier = __esm(() => {
171824
174163
  exports.readdir = exports.readdirWithFileTypes = exports.read = undefined;
171825
174164
  var fsStat = require_out();
171826
174165
  var constants_1 = require_constants3();
171827
- var utils2 = require_utils4();
174166
+ var utils2 = require_utils42();
171828
174167
  var common = require_common();
171829
174168
  function read3(directory, settings) {
171830
174169
  if (!settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) {
@@ -172604,7 +174943,7 @@ var init_prettier = __esm(() => {
172604
174943
  Object.defineProperty(exports, "__esModule", { value: true });
172605
174944
  var path15 = __require2("path");
172606
174945
  var fsStat = require_out();
172607
- var utils2 = require_utils3();
174946
+ var utils2 = require_utils32();
172608
174947
  var Reader = class {
172609
174948
  constructor(_settings) {
172610
174949
  this._settings = _settings;
@@ -172728,7 +175067,7 @@ var init_prettier = __esm(() => {
172728
175067
  require_matcher = __commonJS2({
172729
175068
  "node_modules/fast-glob/out/providers/matchers/matcher.js"(exports) {
172730
175069
  Object.defineProperty(exports, "__esModule", { value: true });
172731
- var utils2 = require_utils3();
175070
+ var utils2 = require_utils32();
172732
175071
  var Matcher = class {
172733
175072
  constructor(_patterns, _settings, _micromatchOptions) {
172734
175073
  this._patterns = _patterns;
@@ -172810,7 +175149,7 @@ var init_prettier = __esm(() => {
172810
175149
  require_deep = __commonJS2({
172811
175150
  "node_modules/fast-glob/out/providers/filters/deep.js"(exports) {
172812
175151
  Object.defineProperty(exports, "__esModule", { value: true });
172813
- var utils2 = require_utils3();
175152
+ var utils2 = require_utils32();
172814
175153
  var partial_1 = require_partial();
172815
175154
  var DeepFilter = class {
172816
175155
  constructor(_settings, _micromatchOptions) {
@@ -172872,7 +175211,7 @@ var init_prettier = __esm(() => {
172872
175211
  require_entry = __commonJS2({
172873
175212
  "node_modules/fast-glob/out/providers/filters/entry.js"(exports) {
172874
175213
  Object.defineProperty(exports, "__esModule", { value: true });
172875
- var utils2 = require_utils3();
175214
+ var utils2 = require_utils32();
172876
175215
  var EntryFilter = class {
172877
175216
  constructor(_settings, _micromatchOptions) {
172878
175217
  this._settings = _settings;
@@ -172957,7 +175296,7 @@ var init_prettier = __esm(() => {
172957
175296
  require_error2 = __commonJS2({
172958
175297
  "node_modules/fast-glob/out/providers/filters/error.js"(exports) {
172959
175298
  Object.defineProperty(exports, "__esModule", { value: true });
172960
- var utils2 = require_utils3();
175299
+ var utils2 = require_utils32();
172961
175300
  var ErrorFilter = class {
172962
175301
  constructor(_settings) {
172963
175302
  this._settings = _settings;
@@ -172975,7 +175314,7 @@ var init_prettier = __esm(() => {
172975
175314
  require_entry2 = __commonJS2({
172976
175315
  "node_modules/fast-glob/out/providers/transformers/entry.js"(exports) {
172977
175316
  Object.defineProperty(exports, "__esModule", { value: true });
172978
- var utils2 = require_utils3();
175317
+ var utils2 = require_utils32();
172979
175318
  var EntryTransformer = class {
172980
175319
  constructor(_settings) {
172981
175320
  this._settings = _settings;
@@ -173243,7 +175582,7 @@ var init_prettier = __esm(() => {
173243
175582
  var stream_1 = require_stream4();
173244
175583
  var sync_1 = require_sync6();
173245
175584
  var settings_1 = require_settings4();
173246
- var utils2 = require_utils3();
175585
+ var utils2 = require_utils32();
173247
175586
  async function FastGlob(source2, options8) {
173248
175587
  assertPatternsInput(source2);
173249
175588
  const works = getWorks(source2, async_1.default, options8);
@@ -173561,7 +175900,7 @@ var init_prettier = __esm(() => {
173561
175900
  };
173562
175901
  }
173563
175902
  });
173564
- require_semver = __commonJS2({
175903
+ require_semver2 = __commonJS2({
173565
175904
  "node_modules/semver/classes/semver.js"(exports, module) {
173566
175905
  var debug = require_debug();
173567
175906
  var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants4();
@@ -173831,7 +176170,7 @@ var init_prettier = __esm(() => {
173831
176170
  });
173832
176171
  require_compare = __commonJS2({
173833
176172
  "node_modules/semver/functions/compare.js"(exports, module) {
173834
- var SemVer = require_semver();
176173
+ var SemVer = require_semver2();
173835
176174
  var compare = (a5, b8, loose) => new SemVer(a5, loose).compare(new SemVer(b8, loose));
173836
176175
  module.exports = compare;
173837
176176
  }
@@ -175564,7 +177903,7 @@ globstar while`, file2, fr10, pattern, pr8, swallowee);
175564
177903
  };
175565
177904
  }
175566
177905
  });
175567
- require_src2 = __commonJS2({
177906
+ require_src3 = __commonJS2({
175568
177907
  "node_modules/editorconfig/src/index.js"(exports) {
175569
177908
  var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P9, generator) {
175570
177909
  return new (P9 || (P9 = Promise))(function(resolve32, reject) {
@@ -177027,7 +179366,7 @@ globstar while`, file2, fr10, pattern, pr8, swallowee);
177027
179366
  mockable_default = mockable.mocked;
177028
179367
  import_micromatch = __toESM2(require_micromatch(), 1);
177029
179368
  partition_default = partition2;
177030
- import_editorconfig = __toESM2(require_src2(), 1);
179369
+ import_editorconfig = __toESM2(require_src3(), 1);
177031
179370
  iterate_directory_up_default = iterateDirectoryUp;
177032
179371
  FileSearcher = class extends Searcher {
177033
179372
  findInDirectory = findFile;
@@ -180498,7 +182837,7 @@ var require_foldFlowLines2 = __commonJS((exports) => {
180498
182837
  else
180499
182838
  end = lineWidth - indentAtStart;
180500
182839
  }
180501
- let split = undefined;
182840
+ let split2 = undefined;
180502
182841
  let prev = undefined;
180503
182842
  let overflow = false;
180504
182843
  let i5 = -1;
@@ -180532,20 +182871,20 @@ var require_foldFlowLines2 = __commonJS((exports) => {
180532
182871
  if (mode === FOLD_BLOCK)
180533
182872
  i5 = consumeMoreIndentedLines(text, i5, indent3.length);
180534
182873
  end = i5 + indent3.length + endStep;
180535
- split = undefined;
182874
+ split2 = undefined;
180536
182875
  } else {
180537
182876
  if (ch2 === " " && prev && prev !== " " && prev !== `
180538
182877
  ` && prev !== "\t") {
180539
182878
  const next = text[i5 + 1];
180540
182879
  if (next && next !== " " && next !== `
180541
182880
  ` && next !== "\t")
180542
- split = i5;
182881
+ split2 = i5;
180543
182882
  }
180544
182883
  if (i5 >= end) {
180545
- if (split) {
180546
- folds.push(split);
180547
- end = split + endStep;
180548
- split = undefined;
182884
+ if (split2) {
182885
+ folds.push(split2);
182886
+ end = split2 + endStep;
182887
+ split2 = undefined;
180549
182888
  } else if (mode === FOLD_QUOTED) {
180550
182889
  while (prev === " " || prev === "\t") {
180551
182890
  prev = ch2;
@@ -180558,7 +182897,7 @@ var require_foldFlowLines2 = __commonJS((exports) => {
180558
182897
  folds.push(j11);
180559
182898
  escapedFolds[j11] = true;
180560
182899
  end = j11 + endStep;
180561
- split = undefined;
182900
+ split2 = undefined;
180562
182901
  } else {
180563
182902
  overflow = true;
180564
182903
  }
@@ -181192,7 +183531,7 @@ var require_merge3 = __commonJS((exports) => {
181192
183531
  var identity = require_identity2();
181193
183532
  var Scalar = require_Scalar2();
181194
183533
  var MERGE_KEY = "<<";
181195
- var merge2 = {
183534
+ var merge3 = {
181196
183535
  identify: (value) => value === MERGE_KEY || typeof value === "symbol" && value.description === MERGE_KEY,
181197
183536
  default: "key",
181198
183537
  tag: "tag:yaml.org,2002:merge",
@@ -181202,7 +183541,7 @@ var require_merge3 = __commonJS((exports) => {
181202
183541
  }),
181203
183542
  stringify: () => MERGE_KEY
181204
183543
  };
181205
- var isMergeKey = (ctx, key2) => (merge2.identify(key2) || identity.isScalar(key2) && (!key2.type || key2.type === Scalar.Scalar.PLAIN) && merge2.identify(key2.value)) && ctx?.doc.schema.tags.some((tag) => tag.tag === merge2.tag && tag.default);
183544
+ var isMergeKey = (ctx, key2) => (merge3.identify(key2) || identity.isScalar(key2) && (!key2.type || key2.type === Scalar.Scalar.PLAIN) && merge3.identify(key2.value)) && ctx?.doc.schema.tags.some((tag) => tag.tag === merge3.tag && tag.default);
181206
183545
  function addMergeToJSMap(ctx, map2, value) {
181207
183546
  const source2 = resolveAliasValue(ctx, value);
181208
183547
  if (identity.isSeq(source2))
@@ -181241,21 +183580,21 @@ var require_merge3 = __commonJS((exports) => {
181241
183580
  }
181242
183581
  exports.addMergeToJSMap = addMergeToJSMap;
181243
183582
  exports.isMergeKey = isMergeKey;
181244
- exports.merge = merge2;
183583
+ exports.merge = merge3;
181245
183584
  });
181246
183585
 
181247
183586
  // ../workflow-yaml/node_modules/yaml/dist/nodes/addPairToJSMap.js
181248
183587
  var require_addPairToJSMap2 = __commonJS((exports) => {
181249
183588
  var log = require_log2();
181250
- var merge2 = require_merge3();
183589
+ var merge3 = require_merge3();
181251
183590
  var stringify = require_stringify3();
181252
183591
  var identity = require_identity2();
181253
183592
  var toJS = require_toJS2();
181254
183593
  function addPairToJSMap(ctx, map2, { key: key2, value }) {
181255
183594
  if (identity.isNode(key2) && key2.addToJSMap)
181256
183595
  key2.addToJSMap(ctx, map2, value);
181257
- else if (merge2.isMergeKey(ctx, key2))
181258
- merge2.addMergeToJSMap(ctx, map2, value);
183596
+ else if (merge3.isMergeKey(ctx, key2))
183597
+ merge3.addMergeToJSMap(ctx, map2, value);
181259
183598
  else {
181260
183599
  const jsKey = toJS.toJS(key2, "", ctx);
181261
183600
  if (map2 instanceof Map) {
@@ -182531,7 +184870,7 @@ var require_schema6 = __commonJS((exports) => {
182531
184870
  var bool = require_bool4();
182532
184871
  var float = require_float4();
182533
184872
  var int2 = require_int4();
182534
- var merge2 = require_merge3();
184873
+ var merge3 = require_merge3();
182535
184874
  var omap = require_omap2();
182536
184875
  var pairs = require_pairs2();
182537
184876
  var set2 = require_set2();
@@ -182551,7 +184890,7 @@ var require_schema6 = __commonJS((exports) => {
182551
184890
  float.floatExp,
182552
184891
  float.float,
182553
184892
  binary.binary,
182554
- merge2.merge,
184893
+ merge3.merge,
182555
184894
  omap.omap,
182556
184895
  pairs.pairs,
182557
184896
  set2.set,
@@ -182574,7 +184913,7 @@ var require_tags2 = __commonJS((exports) => {
182574
184913
  var schema = require_schema4();
182575
184914
  var schema$1 = require_schema5();
182576
184915
  var binary = require_binary2();
182577
- var merge2 = require_merge3();
184916
+ var merge3 = require_merge3();
182578
184917
  var omap = require_omap2();
182579
184918
  var pairs = require_pairs2();
182580
184919
  var schema$2 = require_schema6();
@@ -182599,7 +184938,7 @@ var require_tags2 = __commonJS((exports) => {
182599
184938
  intOct: int2.intOct,
182600
184939
  intTime: timestamp.intTime,
182601
184940
  map: map2.map,
182602
- merge: merge2.merge,
184941
+ merge: merge3.merge,
182603
184942
  null: _null4.nullTag,
182604
184943
  omap: omap.omap,
182605
184944
  pairs: pairs.pairs,
@@ -182609,7 +184948,7 @@ var require_tags2 = __commonJS((exports) => {
182609
184948
  };
182610
184949
  var coreKnownTags = {
182611
184950
  "tag:yaml.org,2002:binary": binary.binary,
182612
- "tag:yaml.org,2002:merge": merge2.merge,
184951
+ "tag:yaml.org,2002:merge": merge3.merge,
182613
184952
  "tag:yaml.org,2002:omap": omap.omap,
182614
184953
  "tag:yaml.org,2002:pairs": pairs.pairs,
182615
184954
  "tag:yaml.org,2002:set": set2.set,
@@ -182618,7 +184957,7 @@ var require_tags2 = __commonJS((exports) => {
182618
184957
  function getTags(customTags, schemaName, addMergeTag) {
182619
184958
  const schemaTags = schemas3.get(schemaName);
182620
184959
  if (schemaTags && !customTags) {
182621
- return addMergeTag && !schemaTags.includes(merge2.merge) ? schemaTags.concat(merge2.merge) : schemaTags.slice();
184960
+ return addMergeTag && !schemaTags.includes(merge3.merge) ? schemaTags.concat(merge3.merge) : schemaTags.slice();
182622
184961
  }
182623
184962
  let tags = schemaTags;
182624
184963
  if (!tags) {
@@ -182636,7 +184975,7 @@ var require_tags2 = __commonJS((exports) => {
182636
184975
  tags = customTags(tags.slice());
182637
184976
  }
182638
184977
  if (addMergeTag)
182639
- tags = tags.concat(merge2.merge);
184978
+ tags = tags.concat(merge3.merge);
182640
184979
  return tags.reduce((tags2, tag) => {
182641
184980
  const tagObj = typeof tag === "string" ? tagsByName[tag] : tag;
182642
184981
  if (!tagObj) {
@@ -182663,11 +185002,11 @@ var require_Schema2 = __commonJS((exports) => {
182663
185002
  var sortMapEntriesByKey = (a5, b8) => a5.key < b8.key ? -1 : a5.key > b8.key ? 1 : 0;
182664
185003
 
182665
185004
  class Schema2 {
182666
- constructor({ compat: compat2, customTags, merge: merge2, resolveKnownTags, schema, sortMapEntries, toStringDefaults }) {
185005
+ constructor({ compat: compat2, customTags, merge: merge3, resolveKnownTags, schema, sortMapEntries, toStringDefaults }) {
182667
185006
  this.compat = Array.isArray(compat2) ? tags.getTags(compat2, "compat") : compat2 ? tags.getTags(null, compat2) : null;
182668
185007
  this.name = typeof schema === "string" && schema || "core";
182669
185008
  this.knownTags = resolveKnownTags ? tags.coreKnownTags : {};
182670
- this.tags = tags.getTags(customTags, this.name, merge2);
185009
+ this.tags = tags.getTags(customTags, this.name, merge3);
182671
185010
  this.toStringOptions = toStringDefaults ?? null;
182672
185011
  Object.defineProperty(this, identity.MAP, { value: map2.map });
182673
185012
  Object.defineProperty(this, identity.SCALAR, { value: string4.string });
@@ -183890,13 +186229,13 @@ var require_resolve_block_scalar2 = __commonJS((exports) => {
183890
186229
  return { mode, indent: indent3, chomp, comment, length };
183891
186230
  }
183892
186231
  function splitLines2(source2) {
183893
- const split = source2.split(/\n( *)/);
183894
- const first = split[0];
186232
+ const split2 = source2.split(/\n( *)/);
186233
+ const first = split2[0];
183895
186234
  const m7 = first.match(/^( *)/);
183896
186235
  const line0 = m7?.[1] ? [m7[1], first.slice(m7[1].length)] : ["", first];
183897
186236
  const lines = [line0];
183898
- for (let i5 = 1;i5 < split.length; i5 += 2)
183899
- lines.push([split[i5], split[i5 + 1]]);
186237
+ for (let i5 = 1;i5 < split2.length; i5 += 2)
186238
+ lines.push([split2[i5], split2[i5 + 1]]);
183900
186239
  return lines;
183901
186240
  }
183902
186241
  exports.resolveBlockScalar = resolveBlockScalar;
@@ -186544,7 +188883,7 @@ import { fileURLToPath as fileURLToPath8 } from "url";
186544
188883
  // package.json
186545
188884
  var package_default = {
186546
188885
  name: "@eigenpal/cli",
186547
- version: "0.6.15",
188886
+ version: "0.6.17",
186548
188887
  description: "Eigenpal CLI — author and run document workflows from your terminal. Agent-ready.",
186549
188888
  keywords: [
186550
188889
  "eigenpal",
@@ -188043,7 +190382,7 @@ async function pushCurrentBranch(input) {
188043
190382
  function slugifyPackageSegment(value) {
188044
190383
  return value.trim().toLowerCase().replace(/[^a-z0-9_-]+/g, "-").replace(/^-+|-+$/g, "");
188045
190384
  }
188046
- function packagePathForTemplate(template, name) {
190385
+ function packagePathForTemplate(template2, name) {
188047
190386
  const slug = slugifyPackageSegment(name);
188048
190387
  if (!slug)
188049
190388
  throw new Error("Package name must include at least one letter or number.");
@@ -188055,7 +190394,7 @@ function packagePathForTemplate(template, name) {
188055
190394
  knowledge: "resources/knowledge",
188056
190395
  evaluator: "evaluators"
188057
190396
  };
188058
- const root = rootByTemplate[template];
190397
+ const root = rootByTemplate[template2];
188059
190398
  if (!root)
188060
190399
  throw new Error("Template must be agent, workflow, skill, rule, knowledge, or evaluator.");
188061
190400
  return SourcePackagePathSchema.parse(`${root}/${slug}`);
@@ -188464,12 +190803,12 @@ function archivePackage(input) {
188464
190803
  runGit(["archive", "--format=tar", `--output=${tarPath}`, input.ref, input.packagePath], {
188465
190804
  cwd: input.gitRoot
188466
190805
  });
188467
- const extract = spawnSync3("tar", ["-xf", tarPath, "--strip-components", String(input.packagePath.split("/").length)], {
190806
+ const extract2 = spawnSync3("tar", ["-xf", tarPath, "--strip-components", String(input.packagePath.split("/").length)], {
188468
190807
  cwd: input.outDir,
188469
190808
  encoding: "utf8"
188470
190809
  });
188471
- if (extract.status !== 0)
188472
- throw new Error(extract.stderr.trim() || "tar extraction failed");
190810
+ if (extract2.status !== 0)
190811
+ throw new Error(extract2.stderr.trim() || "tar extraction failed");
188473
190812
  } finally {
188474
190813
  rmSync(path5.dirname(tarPath), { recursive: true, force: true });
188475
190814
  }
@@ -188498,12 +190837,12 @@ async function tryHostedArchive(input) {
188498
190837
  const tarPath = path5.join(mkdtempSyncCompat("eigenpal-hosted-source-"), "package.tar");
188499
190838
  try {
188500
190839
  writeFileSync4(tarPath, Buffer.from(await response.arrayBuffer()));
188501
- const extract = spawnSync3("tar", ["-xf", tarPath, "--strip-components", String(input.packagePath.split("/").length)], {
190840
+ const extract2 = spawnSync3("tar", ["-xf", tarPath, "--strip-components", String(input.packagePath.split("/").length)], {
188502
190841
  cwd: input.outDir,
188503
190842
  encoding: "utf8"
188504
190843
  });
188505
- if (extract.status !== 0)
188506
- throw new Error(extract.stderr.trim() || "tar extraction failed");
190844
+ if (extract2.status !== 0)
190845
+ throw new Error(extract2.stderr.trim() || "tar extraction failed");
188507
190846
  return true;
188508
190847
  } finally {
188509
190848
  rmSync(path5.dirname(tarPath), { recursive: true, force: true });
@@ -190185,7 +192524,6 @@ function registerRunsCommands(program2) {
190185
192524
  registerRunFeedbackCommands(runs);
190186
192525
  registerRunExpectedCommands(runs);
190187
192526
  addJsonFlag(withBaseUrl(runs.command("watch <run-id>"))).description("Watch a run until it reaches a terminal status.").option("--interval <seconds>", "Polling interval in seconds", intArg, 2).option("--max-wait <seconds>", "Maximum wait before exiting 2", intArg, 1800).action(action(watchRunCommand));
190188
- addJsonFlag(withBaseUrl(runs.command("resume <run-id>"))).description("Resume a workflow run that is waiting for approval.").action(action(resumeRun));
190189
192527
  addJsonFlag(withBaseUrl(runs.command("cancel <run-id>"))).description("Cancel a run.").option("--yes", "Required in non-interactive environments").action(action(cancelRun));
190190
192528
  }
190191
192529
  function registerRunFeedbackCommands(runs) {
@@ -190908,11 +193246,6 @@ async function cancelRun(executionId, opts) {
190908
193246
  const payload = await client.post(`/api/v1/runs/${encodeURIComponent(executionId)}/cancel`, {});
190909
193247
  renderRunPayload(payload, opts);
190910
193248
  }
190911
- async function resumeRun(executionId, opts) {
190912
- const client = buildClient(opts);
190913
- const payload = await client.post(`/api/v1/runs/${encodeURIComponent(executionId)}/resume`, {});
190914
- renderRunPayload(payload, opts);
190915
- }
190916
193249
  async function downloadTraceText(client, executionId) {
190917
193250
  const response = await client.getStream(`/api/v1/runs/${encodeURIComponent(executionId)}/artifact/trace.jsonl`);
190918
193251
  return Buffer.from(await response.arrayBuffer()).toString("utf-8");
@@ -191670,18 +194003,18 @@ async function init(name, opts) {
191670
194003
  if (existsSync10(target) && readdirSync2(target).length > 0) {
191671
194004
  throw new Error(`Target directory ${relative(process.cwd(), target)} exists and is not empty.`);
191672
194005
  }
191673
- let template;
194006
+ let template2;
191674
194007
  if (opts.template) {
191675
194008
  if (!isTemplateName(opts.template)) {
191676
194009
  throw new Error(`Unknown template "${opts.template}". Available: ${TEMPLATE_NAMES.join(", ")}.`);
191677
194010
  }
191678
- template = opts.template;
194011
+ template2 = opts.template;
191679
194012
  } else if (opts.yes || !process.stdin.isTTY) {
191680
- template = "blank";
194013
+ template2 = "blank";
191681
194014
  } else {
191682
- template = await promptForTemplate();
194015
+ template2 = await promptForTemplate();
191683
194016
  }
191684
- const sourceRoot = join2(resolveTemplatesRoot(), template);
194017
+ const sourceRoot = join2(resolveTemplatesRoot(), template2);
191685
194018
  if (!existsSync10(sourceRoot)) {
191686
194019
  throw new Error(`Template directory missing on disk: ${sourceRoot}`);
191687
194020
  }
@@ -192318,10 +194651,12 @@ import {
192318
194651
  unlinkSync as unlinkSync2,
192319
194652
  writeFileSync as writeFileSync8
192320
194653
  } from "node:fs";
192321
- import { sep as PATH_SEP, dirname as dirname5, join as join10, relative as relative3, resolve as resolve5 } from "node:path";
194654
+ import { sep as PATH_SEP, dirname as dirname5, join as join11, relative as relative3, resolve as resolve5 } from "node:path";
192322
194655
  import { fileURLToPath as fileURLToPath6 } from "node:url";
194656
+
194657
+ // src/commands/skill/tools.ts
194658
+ import { join as join10 } from "node:path";
192323
194659
  var SKILL_NAME = "eigenpal";
192324
- var MANIFEST_NAME = ".eigenpal-manifest.json";
192325
194660
  var TOOLS = [
192326
194661
  {
192327
194662
  id: "claude",
@@ -192386,6 +194721,9 @@ var TOOLS = [
192386
194721
  ]
192387
194722
  }
192388
194723
  ];
194724
+
194725
+ // src/commands/skill/index.ts
194726
+ var MANIFEST_NAME = ".eigenpal-manifest.json";
192389
194727
  function resolveSkillSource() {
192390
194728
  const here = dirname5(fileURLToPath6(import.meta.url));
192391
194729
  const srcCandidate = resolve5(here, "..", "..", "skill");
@@ -192399,7 +194737,7 @@ function resolveSkillSource() {
192399
194737
  ${distCandidate}`);
192400
194738
  }
192401
194739
  function defaultClaudeTarget() {
192402
- return join10(process.cwd(), TOOLS[0].relativePath);
194740
+ return join11(process.cwd(), TOOLS[0].relativePath);
192403
194741
  }
192404
194742
  function resolveSkillTarget(opts) {
192405
194743
  return opts.target ?? defaultClaudeTarget();
@@ -192427,8 +194765,8 @@ async function installSkill(opts) {
192427
194765
  let skipped = 0;
192428
194766
  let prompted = 0;
192429
194767
  for (const relativePath of sourceFiles) {
192430
- const sourcePath = join10(source2, relativePath);
192431
- const targetPath = join10(target, relativePath);
194768
+ const sourcePath = join11(source2, relativePath);
194769
+ const targetPath = join11(target, relativePath);
192432
194770
  const sourceBytes = templateSourceFile(relativePath, readFileSync14(sourcePath), cliVersion);
192433
194771
  const sourceHash = sha256(sourceBytes);
192434
194772
  if (!existsSync14(targetPath)) {
@@ -192465,7 +194803,7 @@ async function installSkill(opts) {
192465
194803
  }
192466
194804
  const manifestEntries = [];
192467
194805
  for (const relativePath of sourceFiles) {
192468
- const targetPath = join10(target, relativePath);
194806
+ const targetPath = join11(target, relativePath);
192469
194807
  if (!existsSync14(targetPath))
192470
194808
  continue;
192471
194809
  manifestEntries.push({ path: relativePath, sha256: sha256(readFileSync14(targetPath)) });
@@ -192475,7 +194813,7 @@ async function installSkill(opts) {
192475
194813
  installedAt: new Date().toISOString(),
192476
194814
  files: manifestEntries
192477
194815
  };
192478
- writeFileSync8(join10(target, MANIFEST_NAME), `${JSON.stringify(manifest, null, 2)}
194816
+ writeFileSync8(join11(target, MANIFEST_NAME), `${JSON.stringify(manifest, null, 2)}
192479
194817
  `);
192480
194818
  const displayTarget = relative3(process.cwd(), target) || target;
192481
194819
  success2(`Installed skill at ${ui.bold(displayTarget)} — ${written} written, ${skipped} unchanged${prompted > 0 ? `, ${prompted} prompted` : ""}.`);
@@ -192484,7 +194822,7 @@ async function uninstallSkill(opts) {
192484
194822
  const target = resolveSkillTarget(opts);
192485
194823
  const manifest = readManifest(target);
192486
194824
  if (!manifest) {
192487
- error51(`No manifest found at ${join10(target, MANIFEST_NAME)}; nothing to uninstall.`);
194825
+ error51(`No manifest found at ${join11(target, MANIFEST_NAME)}; nothing to uninstall.`);
192488
194826
  process.exit(1);
192489
194827
  }
192490
194828
  if (!opts.yes && process.stdin.isTTY) {
@@ -192517,7 +194855,7 @@ async function uninstallSkill(opts) {
192517
194855
  unlinkSync2(path15);
192518
194856
  removed += 1;
192519
194857
  }
192520
- rmSync2(join10(target, MANIFEST_NAME), { force: true });
194858
+ rmSync2(join11(target, MANIFEST_NAME), { force: true });
192521
194859
  pruneEmptyDirs(target);
192522
194860
  const displayTarget = relative3(process.cwd(), target) || target;
192523
194861
  success2(`Uninstalled skill from ${ui.bold(displayTarget)} — ${removed} removed${kept > 0 ? `, ${kept} user-edited kept` : ""}.`);
@@ -192578,14 +194916,14 @@ async function installSkillTools(opts) {
192578
194916
  for (const tool of toInstall) {
192579
194917
  await installSkill({
192580
194918
  source: opts.source,
192581
- target: join10(cwd, tool.relativePath),
194919
+ target: join11(cwd, tool.relativePath),
192582
194920
  force: opts.force,
192583
194921
  yes: opts.yes
192584
194922
  });
192585
194923
  }
192586
194924
  for (const tool of toUninstall) {
192587
194925
  await uninstallSkill({
192588
- target: join10(cwd, tool.relativePath),
194926
+ target: join11(cwd, tool.relativePath),
192589
194927
  yes: true
192590
194928
  });
192591
194929
  }
@@ -192648,7 +194986,7 @@ async function uninstallSkillTools(opts) {
192648
194986
  }
192649
194987
  for (const tool of targets) {
192650
194988
  await uninstallSkill({
192651
- target: join10(cwd, tool.relativePath),
194989
+ target: join11(cwd, tool.relativePath),
192652
194990
  yes: true
192653
194991
  });
192654
194992
  }
@@ -192656,7 +194994,7 @@ async function uninstallSkillTools(opts) {
192656
194994
  function listSkillTools(opts = {}) {
192657
194995
  const cwd = process.cwd();
192658
194996
  const rows = TOOLS.flatMap((tool) => {
192659
- const targetDir = join10(cwd, tool.relativePath);
194997
+ const targetDir = join11(cwd, tool.relativePath);
192660
194998
  const manifest = readManifest(targetDir);
192661
194999
  if (!manifest)
192662
195000
  return [];
@@ -192709,10 +195047,10 @@ function hintFor(tool, installed, detected) {
192709
195047
  return tool.relativePath;
192710
195048
  }
192711
195049
  function isInstalled(cwd, tool) {
192712
- return existsSync14(join10(cwd, tool.relativePath, MANIFEST_NAME));
195050
+ return existsSync14(join11(cwd, tool.relativePath, MANIFEST_NAME));
192713
195051
  }
192714
195052
  function isProjectUsing(cwd, tool) {
192715
- return tool.detectPaths.some((p4) => existsSync14(join10(cwd, p4)));
195053
+ return tool.detectPaths.some((p4) => existsSync14(join11(cwd, p4)));
192716
195054
  }
192717
195055
  function listFiles(root2) {
192718
195056
  const out = [];
@@ -192720,7 +195058,7 @@ function listFiles(root2) {
192720
195058
  while (stack2.length > 0) {
192721
195059
  const dir = stack2.pop();
192722
195060
  for (const entry of readdirSync5(dir)) {
192723
- const full = join10(dir, entry);
195061
+ const full = join11(dir, entry);
192724
195062
  const rel = relative3(root2, full);
192725
195063
  const stats = lstatSync(full);
192726
195064
  if (stats.isDirectory()) {
@@ -192735,7 +195073,7 @@ function listFiles(root2) {
192735
195073
  return out.sort();
192736
195074
  }
192737
195075
  function readManifest(target) {
192738
- const path15 = join10(target, MANIFEST_NAME);
195076
+ const path15 = join11(target, MANIFEST_NAME);
192739
195077
  if (!existsSync14(path15))
192740
195078
  return null;
192741
195079
  try {
@@ -192770,7 +195108,7 @@ function pruneEmptyDirs(root2) {
192770
195108
  const stack2 = [];
192771
195109
  const collect = (dir) => {
192772
195110
  for (const entry of readdirSync5(dir)) {
192773
- const full = join10(dir, entry);
195111
+ const full = join11(dir, entry);
192774
195112
  if (lstatSync(full).isDirectory())
192775
195113
  collect(full);
192776
195114
  }
@@ -193559,12 +195897,12 @@ import { createInterface as createInterface3 } from "node:readline/promises";
193559
195897
 
193560
195898
  // src/commands/workflow/clear.ts
193561
195899
  import { existsSync as existsSync15, readdirSync as readdirSync6, rmSync as rmSync3, statSync as statSync5 } from "fs";
193562
- import { basename, join as join11 } from "path";
195900
+ import { basename, join as join12 } from "path";
193563
195901
  var EMPTY_REPORT = { removed: 0, kept: 0, touched: 0 };
193564
195902
  function getDirectoryEntries(path15) {
193565
195903
  if (!existsSync15(path15))
193566
195904
  return [];
193567
- return readdirSync6(path15).filter((entry) => statSync5(join11(path15, entry)).isDirectory()).sort();
195905
+ return readdirSync6(path15).filter((entry) => statSync5(join12(path15, entry)).isDirectory()).sort();
193568
195906
  }
193569
195907
  function removeDirEntriesWithRetention(path15, removeAll) {
193570
195908
  const entries = getDirectoryEntries(path15);
@@ -193577,7 +195915,7 @@ function removeDirEntriesWithRetention(path15, removeAll) {
193577
195915
  for (const entry of entries) {
193578
195916
  if (keepSet.has(entry))
193579
195917
  continue;
193580
- rmSync3(join11(path15, entry), { recursive: true, force: true });
195918
+ rmSync3(join12(path15, entry), { recursive: true, force: true });
193581
195919
  removed++;
193582
195920
  }
193583
195921
  return { removed, kept: keepSet.size, touched: entries.length };
@@ -193604,7 +195942,7 @@ function removeJudgeSummaryFilesWithRetention(exampleDir, removeAll) {
193604
195942
  kept++;
193605
195943
  continue;
193606
195944
  }
193607
- rmSync3(join11(exampleDir, fileName), { force: true });
195945
+ rmSync3(join12(exampleDir, fileName), { force: true });
193608
195946
  removed++;
193609
195947
  }
193610
195948
  return { removed, kept, touched: stampByFile.size };
@@ -193612,17 +195950,17 @@ function removeJudgeSummaryFilesWithRetention(exampleDir, removeAll) {
193612
195950
  function getTargetExampleDirs(dir, exampleNames) {
193613
195951
  const baseDir = resolveEvalBaseDir(dir);
193614
195952
  if (!baseDir) {
193615
- error51(`No dataset/examples directory at ${join11(dir, "dataset", "examples")}`);
195953
+ error51(`No dataset/examples directory at ${join12(dir, "dataset", "examples")}`);
193616
195954
  process.exit(1);
193617
195955
  }
193618
- const all = readdirSync6(baseDir).filter((entry) => statSync5(join11(baseDir, entry)).isDirectory());
195956
+ const all = readdirSync6(baseDir).filter((entry) => statSync5(join12(baseDir, entry)).isDirectory());
193619
195957
  if (exampleNames.length === 0)
193620
- return all.map((name) => join11(baseDir, name));
195958
+ return all.map((name) => join12(baseDir, name));
193621
195959
  const matched = all.filter((name) => exampleNames.includes(name));
193622
195960
  if (matched.length === 0) {
193623
195961
  warn(`None of [${exampleNames.join(", ")}] match an example under ./dataset/examples/. ` + `Heads up: the \`clear-local\` positional changed — it used to take a workflow slug, ` + `now it takes example names (or omit to clean every example).`);
193624
195962
  }
193625
- return matched.map((name) => join11(baseDir, name));
195963
+ return matched.map((name) => join12(baseDir, name));
193626
195964
  }
193627
195965
  function runSection(args) {
193628
195966
  let removed = 0;
@@ -193654,8 +195992,8 @@ async function clearEvalOutputs(dir, exampleNames = [], options8 = {}) {
193654
195992
  const exampleDirs = getTargetExampleDirs(dir, exampleNames);
193655
195993
  runSection({
193656
195994
  exampleDirs,
193657
- clean: (exampleDir) => removeDirEntriesWithRetention(join11(exampleDir, "executions"), removeAll),
193658
- shouldCount: (exampleDir) => existsSync15(join11(exampleDir, "executions")),
195995
+ clean: (exampleDir) => removeDirEntriesWithRetention(join12(exampleDir, "executions"), removeAll),
195996
+ shouldCount: (exampleDir) => existsSync15(join12(exampleDir, "executions")),
193659
195997
  successLabel: "Execution cleanup complete",
193660
195998
  scannedLabel: "examples scanned:",
193661
195999
  seenLabel: "runs seen: ",
@@ -194525,7 +196863,7 @@ function looksLikeFreeform(prop) {
194525
196863
  // src/commands/workflow/validation.ts
194526
196864
  var import_yaml8 = __toESM(require_dist4(), 1);
194527
196865
  import { existsSync as existsSync16, readdirSync as readdirSync7, readFileSync as readFileSync15, statSync as statSync6 } from "fs";
194528
- import { join as join12, resolve as resolve6 } from "path";
196866
+ import { join as join13, resolve as resolve6 } from "path";
194529
196867
  var NAME_RE = /^[a-z0-9][a-z0-9-_]*$/;
194530
196868
  function isDirSafe(path15, issues, field) {
194531
196869
  try {
@@ -194606,19 +196944,19 @@ function validateDatasetFolder(root2) {
194606
196944
  if (!existsSync16(root2)) {
194607
196945
  return [{ field: root2, message: "Folder not found." }];
194608
196946
  }
194609
- if (existsSync16(join12(root2, "manifest.json"))) {
196947
+ if (existsSync16(join13(root2, "manifest.json"))) {
194610
196948
  issues.push({
194611
196949
  field: "manifest.json",
194612
196950
  message: "Top-level manifest.json is the legacy format. Re-export the dataset using the folder convention."
194613
196951
  });
194614
196952
  }
194615
- const examplesDir = join12(root2, "examples");
196953
+ const examplesDir = join13(root2, "examples");
194616
196954
  if (!existsSync16(examplesDir)) {
194617
196955
  issues.push({ field: "examples/", message: "No examples/ directory found at dataset root." });
194618
196956
  return issues;
194619
196957
  }
194620
196958
  for (const exampleName of readdirSync7(examplesDir)) {
194621
- const exampleFolder = join12(examplesDir, exampleName);
196959
+ const exampleFolder = join13(examplesDir, exampleName);
194622
196960
  if (!isDirSafe(exampleFolder, issues, `examples/${exampleName}`))
194623
196961
  continue;
194624
196962
  if (!NAME_RE.test(exampleName)) {
@@ -194628,7 +196966,7 @@ function validateDatasetFolder(root2) {
194628
196966
  });
194629
196967
  continue;
194630
196968
  }
194631
- const argsPath = join12(exampleFolder, "input", "arguments.json");
196969
+ const argsPath = join13(exampleFolder, "input", "arguments.json");
194632
196970
  if (!existsSync16(argsPath)) {
194633
196971
  issues.push({
194634
196972
  field: `examples/${exampleName}/input/arguments.json`,
@@ -194654,11 +196992,11 @@ function validateDatasetFolder(root2) {
194654
196992
  });
194655
196993
  continue;
194656
196994
  }
194657
- const inputDir = join12(exampleFolder, "input");
196995
+ const inputDir = join13(exampleFolder, "input");
194658
196996
  for (const entry of readdirSync7(inputDir)) {
194659
196997
  if (entry === "arguments.json")
194660
196998
  continue;
194661
- const sub = join12(inputDir, entry);
196999
+ const sub = join13(inputDir, entry);
194662
197000
  const field = `examples/${exampleName}/input/${entry}`;
194663
197001
  let isDir;
194664
197002
  try {
@@ -194690,10 +197028,10 @@ function validateDatasetFolder(root2) {
194690
197028
  });
194691
197029
  }
194692
197030
  }
194693
- const expectedDir = join12(exampleFolder, "expected");
197031
+ const expectedDir = join13(exampleFolder, "expected");
194694
197032
  if (existsSync16(expectedDir)) {
194695
- const expectedPath = join12(expectedDir, "output.json");
194696
- const expectedErrorPath = join12(expectedDir, "error.json");
197033
+ const expectedPath = join13(expectedDir, "output.json");
197034
+ const expectedErrorPath = join13(expectedDir, "error.json");
194697
197035
  const hasExpectedOutput = existsSync16(expectedPath);
194698
197036
  const hasExpectedError = existsSync16(expectedErrorPath);
194699
197037
  if (hasExpectedOutput && hasExpectedError) {
@@ -194744,7 +197082,7 @@ function validateDatasetFolder(root2) {
194744
197082
  for (const entry of readdirSync7(expectedDir)) {
194745
197083
  if (entry === "output.json" || entry === "error.json")
194746
197084
  continue;
194747
- const sub = join12(expectedDir, entry);
197085
+ const sub = join13(expectedDir, entry);
194748
197086
  const field = `examples/${exampleName}/expected/${entry}`;
194749
197087
  let isDir;
194750
197088
  try {
@@ -194804,13 +197142,13 @@ function registerAllValidateCommand(parent) {
194804
197142
  return;
194805
197143
  }
194806
197144
  const root2 = rootDir(opts);
194807
- const wfResult = validateWorkflowYaml(join12(root2, "workflow.yaml"));
194808
- const wfPath = relPath(root2, join12(root2, "workflow.yaml"));
197145
+ const wfResult = validateWorkflowYaml(join13(root2, "workflow.yaml"));
197146
+ const wfPath = relPath(root2, join13(root2, "workflow.yaml"));
194809
197147
  const wfOk = printIssues("workflow.yaml", wfPath, wfResult.issues);
194810
197148
  if (wfOk)
194811
197149
  printSchemaQualityWarnings(wfPath, wfResult.warnings);
194812
- const evOk = printIssues("evaluators.yaml", relPath(root2, join12(root2, "evaluators.yaml")), validateEvaluatorsYaml(join12(root2, "evaluators.yaml")));
194813
- const dsOk = printIssues("dataset/", relPath(root2, join12(root2, "dataset")), validateDatasetFolder(join12(root2, "dataset")));
197150
+ const evOk = printIssues("evaluators.yaml", relPath(root2, join13(root2, "evaluators.yaml")), validateEvaluatorsYaml(join13(root2, "evaluators.yaml")));
197151
+ const dsOk = printIssues("dataset/", relPath(root2, join13(root2, "dataset")), validateDatasetFolder(join13(root2, "dataset")));
194814
197152
  if (!wfOk || !evOk || !dsOk)
194815
197153
  process.exit(1);
194816
197154
  });