@eigenpal/cli 0.10.5 → 0.10.6
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 +302 -2663
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -17080,138 +17080,8 @@ 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
|
-
RUN_REVIEW: "rev",
|
|
17149
|
-
RUN_REVIEW_CORRECTION: "rvc",
|
|
17150
|
-
TABLE_ROW: "row",
|
|
17151
|
-
FOLDER: "fldr",
|
|
17152
|
-
AGENT_WORKFLOW: "awf",
|
|
17153
|
-
AGENT_EXECUTION: "aex",
|
|
17154
|
-
AGENT_EXAMPLE: "aeg",
|
|
17155
|
-
AGENT_VERSION: "avr",
|
|
17156
|
-
AGENT_TRAINING_SESSION: "ats",
|
|
17157
|
-
AGENT_EXPERIMENT: "aexp",
|
|
17158
|
-
AGENT_EMAIL_ALIAS: "aea",
|
|
17159
|
-
AGENT_EMAIL_INVOCATION: "aei",
|
|
17160
|
-
AUTOMATION_TRIGGER: "atr",
|
|
17161
|
-
FILE_SOURCE_CONFIG: "fsc",
|
|
17162
|
-
SANDBOX_WS_TOKEN: "sws"
|
|
17163
|
-
};
|
|
17164
|
-
TimestampSchema = exports_external.union([exports_external.date(), exports_external.string().datetime()]).transform((val) => {
|
|
17165
|
-
return typeof val === "string" ? new Date(val) : val;
|
|
17166
|
-
});
|
|
17167
|
-
JsonSchemaSchema = exports_external.record(exports_external.string(), exports_external.unknown());
|
|
17168
|
-
BaseEntitySchema = exports_external.object({
|
|
17169
|
-
id: exports_external.string(),
|
|
17170
|
-
createdAt: TimestampSchema.optional(),
|
|
17171
|
-
updatedAt: TimestampSchema.optional()
|
|
17172
|
-
});
|
|
17173
|
-
});
|
|
17174
|
-
|
|
17175
|
-
// ../types/src/core/ids.ts
|
|
17176
|
-
var PROCESSOR_IDS, PARSER_IDS, INPUT_KINDS;
|
|
17177
|
-
var init_ids = __esm(() => {
|
|
17178
|
-
PROCESSOR_IDS = {
|
|
17179
|
-
MERGE: "builtin/merge",
|
|
17180
|
-
DOCUMENT_PARSER: "builtin/parser",
|
|
17181
|
-
EXTRACT: "builtin/extract",
|
|
17182
|
-
SPLIT: "builtin/split",
|
|
17183
|
-
CLASSIFY: "builtin/classify",
|
|
17184
|
-
TEMPLATE: "builtin/template",
|
|
17185
|
-
PDF_EMBEDDER: "builtin/pdf-embedder",
|
|
17186
|
-
XLSX_TO_JSON: "builtin/xlsx-to-json"
|
|
17187
|
-
};
|
|
17188
|
-
PARSER_IDS = {
|
|
17189
|
-
KREUZBERG: "builtin/kreuzberg",
|
|
17190
|
-
OCR: "builtin/ocr",
|
|
17191
|
-
LLM_VISION: "builtin/llm-vision"
|
|
17192
|
-
};
|
|
17193
|
-
INPUT_KINDS = {
|
|
17194
|
-
DOCUMENT: "document",
|
|
17195
|
-
PAYLOAD: "payload"
|
|
17196
|
-
};
|
|
17197
|
-
});
|
|
17198
|
-
|
|
17199
|
-
// ../types/src/core/pagination.ts
|
|
17200
|
-
var PaginationParamsSchema, DEFAULT_PAGE_SIZE = 50, MAX_PAGE_SIZE = 100;
|
|
17201
|
-
var init_pagination = __esm(() => {
|
|
17202
|
-
init_zod();
|
|
17203
|
-
PaginationParamsSchema = exports_external.object({
|
|
17204
|
-
limit: exports_external.coerce.number().int().min(1).max(100).default(50),
|
|
17205
|
-
offset: exports_external.coerce.number().int().min(0).default(0)
|
|
17206
|
-
});
|
|
17207
|
-
});
|
|
17208
|
-
|
|
17209
17083
|
// ../types/src/core/index.ts
|
|
17210
|
-
var init_core3 =
|
|
17211
|
-
init_common();
|
|
17212
|
-
init_ids();
|
|
17213
|
-
init_pagination();
|
|
17214
|
-
});
|
|
17084
|
+
var init_core3 = () => {};
|
|
17215
17085
|
|
|
17216
17086
|
// ../types/src/files/legacy-boundary.ts
|
|
17217
17087
|
var LEGACY_FILE_REF_COMPATIBILITY;
|
|
@@ -17236,9 +17106,6 @@ var init_legacy_boundary = __esm(() => {
|
|
|
17236
17106
|
function isRuntimeFileRef(input) {
|
|
17237
17107
|
return RuntimeFileRefSchema.safeParse(input).success;
|
|
17238
17108
|
}
|
|
17239
|
-
function isFilePathDescriptor(input) {
|
|
17240
|
-
return FilePathDescriptorSchema.safeParse(input).success;
|
|
17241
|
-
}
|
|
17242
17109
|
function isResolvedProcessorFile(input) {
|
|
17243
17110
|
return ResolvedProcessorFileSchema.safeParse(input).success;
|
|
17244
17111
|
}
|
|
@@ -17461,2332 +17328,11 @@ var init_scoped_file_ref = __esm(() => {
|
|
|
17461
17328
|
]);
|
|
17462
17329
|
});
|
|
17463
17330
|
|
|
17464
|
-
// ../../node_modules/@opentelemetry/api/build/src/version.js
|
|
17465
|
-
var require_version = __commonJS((exports) => {
|
|
17466
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17467
|
-
exports.VERSION = undefined;
|
|
17468
|
-
exports.VERSION = "1.9.1";
|
|
17469
|
-
});
|
|
17470
|
-
|
|
17471
|
-
// ../../node_modules/@opentelemetry/api/build/src/internal/semver.js
|
|
17472
|
-
var require_semver = __commonJS((exports) => {
|
|
17473
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17474
|
-
exports.isCompatible = exports._makeCompatibilityCheck = undefined;
|
|
17475
|
-
var version_1 = require_version();
|
|
17476
|
-
var re = /^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;
|
|
17477
|
-
function _makeCompatibilityCheck(ownVersion) {
|
|
17478
|
-
const acceptedVersions = new Set([ownVersion]);
|
|
17479
|
-
const rejectedVersions = new Set;
|
|
17480
|
-
const myVersionMatch = ownVersion.match(re);
|
|
17481
|
-
if (!myVersionMatch) {
|
|
17482
|
-
return () => false;
|
|
17483
|
-
}
|
|
17484
|
-
const ownVersionParsed = {
|
|
17485
|
-
major: +myVersionMatch[1],
|
|
17486
|
-
minor: +myVersionMatch[2],
|
|
17487
|
-
patch: +myVersionMatch[3],
|
|
17488
|
-
prerelease: myVersionMatch[4]
|
|
17489
|
-
};
|
|
17490
|
-
if (ownVersionParsed.prerelease != null) {
|
|
17491
|
-
return function isExactmatch(globalVersion) {
|
|
17492
|
-
return globalVersion === ownVersion;
|
|
17493
|
-
};
|
|
17494
|
-
}
|
|
17495
|
-
function _reject(v) {
|
|
17496
|
-
rejectedVersions.add(v);
|
|
17497
|
-
return false;
|
|
17498
|
-
}
|
|
17499
|
-
function _accept(v) {
|
|
17500
|
-
acceptedVersions.add(v);
|
|
17501
|
-
return true;
|
|
17502
|
-
}
|
|
17503
|
-
return function isCompatible(globalVersion) {
|
|
17504
|
-
if (acceptedVersions.has(globalVersion)) {
|
|
17505
|
-
return true;
|
|
17506
|
-
}
|
|
17507
|
-
if (rejectedVersions.has(globalVersion)) {
|
|
17508
|
-
return false;
|
|
17509
|
-
}
|
|
17510
|
-
const globalVersionMatch = globalVersion.match(re);
|
|
17511
|
-
if (!globalVersionMatch) {
|
|
17512
|
-
return _reject(globalVersion);
|
|
17513
|
-
}
|
|
17514
|
-
const globalVersionParsed = {
|
|
17515
|
-
major: +globalVersionMatch[1],
|
|
17516
|
-
minor: +globalVersionMatch[2],
|
|
17517
|
-
patch: +globalVersionMatch[3],
|
|
17518
|
-
prerelease: globalVersionMatch[4]
|
|
17519
|
-
};
|
|
17520
|
-
if (globalVersionParsed.prerelease != null) {
|
|
17521
|
-
return _reject(globalVersion);
|
|
17522
|
-
}
|
|
17523
|
-
if (ownVersionParsed.major !== globalVersionParsed.major) {
|
|
17524
|
-
return _reject(globalVersion);
|
|
17525
|
-
}
|
|
17526
|
-
if (ownVersionParsed.major === 0) {
|
|
17527
|
-
if (ownVersionParsed.minor === globalVersionParsed.minor && ownVersionParsed.patch <= globalVersionParsed.patch) {
|
|
17528
|
-
return _accept(globalVersion);
|
|
17529
|
-
}
|
|
17530
|
-
return _reject(globalVersion);
|
|
17531
|
-
}
|
|
17532
|
-
if (ownVersionParsed.minor <= globalVersionParsed.minor) {
|
|
17533
|
-
return _accept(globalVersion);
|
|
17534
|
-
}
|
|
17535
|
-
return _reject(globalVersion);
|
|
17536
|
-
};
|
|
17537
|
-
}
|
|
17538
|
-
exports._makeCompatibilityCheck = _makeCompatibilityCheck;
|
|
17539
|
-
exports.isCompatible = _makeCompatibilityCheck(version_1.VERSION);
|
|
17540
|
-
});
|
|
17541
|
-
|
|
17542
|
-
// ../../node_modules/@opentelemetry/api/build/src/internal/global-utils.js
|
|
17543
|
-
var require_global_utils = __commonJS((exports) => {
|
|
17544
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17545
|
-
exports.unregisterGlobal = exports.getGlobal = exports.registerGlobal = undefined;
|
|
17546
|
-
var version_1 = require_version();
|
|
17547
|
-
var semver_1 = require_semver();
|
|
17548
|
-
var major = version_1.VERSION.split(".")[0];
|
|
17549
|
-
var GLOBAL_OPENTELEMETRY_API_KEY = Symbol.for(`opentelemetry.js.api.${major}`);
|
|
17550
|
-
var _global = typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : typeof window === "object" ? window : typeof global === "object" ? global : {};
|
|
17551
|
-
function registerGlobal(type, instance, diag, allowOverride = false) {
|
|
17552
|
-
var _a3;
|
|
17553
|
-
const api2 = _global[GLOBAL_OPENTELEMETRY_API_KEY] = (_a3 = _global[GLOBAL_OPENTELEMETRY_API_KEY]) !== null && _a3 !== undefined ? _a3 : {
|
|
17554
|
-
version: version_1.VERSION
|
|
17555
|
-
};
|
|
17556
|
-
if (!allowOverride && api2[type]) {
|
|
17557
|
-
const err = new Error(`@opentelemetry/api: Attempted duplicate registration of API: ${type}`);
|
|
17558
|
-
diag.error(err.stack || err.message);
|
|
17559
|
-
return false;
|
|
17560
|
-
}
|
|
17561
|
-
if (api2.version !== version_1.VERSION) {
|
|
17562
|
-
const err = new Error(`@opentelemetry/api: Registration of version v${api2.version} for ${type} does not match previously registered API v${version_1.VERSION}`);
|
|
17563
|
-
diag.error(err.stack || err.message);
|
|
17564
|
-
return false;
|
|
17565
|
-
}
|
|
17566
|
-
api2[type] = instance;
|
|
17567
|
-
diag.debug(`@opentelemetry/api: Registered a global for ${type} v${version_1.VERSION}.`);
|
|
17568
|
-
return true;
|
|
17569
|
-
}
|
|
17570
|
-
exports.registerGlobal = registerGlobal;
|
|
17571
|
-
function getGlobal(type) {
|
|
17572
|
-
var _a3, _b;
|
|
17573
|
-
const globalVersion = (_a3 = _global[GLOBAL_OPENTELEMETRY_API_KEY]) === null || _a3 === undefined ? undefined : _a3.version;
|
|
17574
|
-
if (!globalVersion || !(0, semver_1.isCompatible)(globalVersion)) {
|
|
17575
|
-
return;
|
|
17576
|
-
}
|
|
17577
|
-
return (_b = _global[GLOBAL_OPENTELEMETRY_API_KEY]) === null || _b === undefined ? undefined : _b[type];
|
|
17578
|
-
}
|
|
17579
|
-
exports.getGlobal = getGlobal;
|
|
17580
|
-
function unregisterGlobal(type, diag) {
|
|
17581
|
-
diag.debug(`@opentelemetry/api: Unregistering a global for ${type} v${version_1.VERSION}.`);
|
|
17582
|
-
const api2 = _global[GLOBAL_OPENTELEMETRY_API_KEY];
|
|
17583
|
-
if (api2) {
|
|
17584
|
-
delete api2[type];
|
|
17585
|
-
}
|
|
17586
|
-
}
|
|
17587
|
-
exports.unregisterGlobal = unregisterGlobal;
|
|
17588
|
-
});
|
|
17589
|
-
|
|
17590
|
-
// ../../node_modules/@opentelemetry/api/build/src/diag/ComponentLogger.js
|
|
17591
|
-
var require_ComponentLogger = __commonJS((exports) => {
|
|
17592
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17593
|
-
exports.DiagComponentLogger = undefined;
|
|
17594
|
-
var global_utils_1 = require_global_utils();
|
|
17595
|
-
|
|
17596
|
-
class DiagComponentLogger {
|
|
17597
|
-
constructor(props) {
|
|
17598
|
-
this._namespace = props.namespace || "DiagComponentLogger";
|
|
17599
|
-
}
|
|
17600
|
-
debug(...args) {
|
|
17601
|
-
return logProxy("debug", this._namespace, args);
|
|
17602
|
-
}
|
|
17603
|
-
error(...args) {
|
|
17604
|
-
return logProxy("error", this._namespace, args);
|
|
17605
|
-
}
|
|
17606
|
-
info(...args) {
|
|
17607
|
-
return logProxy("info", this._namespace, args);
|
|
17608
|
-
}
|
|
17609
|
-
warn(...args) {
|
|
17610
|
-
return logProxy("warn", this._namespace, args);
|
|
17611
|
-
}
|
|
17612
|
-
verbose(...args) {
|
|
17613
|
-
return logProxy("verbose", this._namespace, args);
|
|
17614
|
-
}
|
|
17615
|
-
}
|
|
17616
|
-
exports.DiagComponentLogger = DiagComponentLogger;
|
|
17617
|
-
function logProxy(funcName, namespace, args) {
|
|
17618
|
-
const logger = (0, global_utils_1.getGlobal)("diag");
|
|
17619
|
-
if (!logger) {
|
|
17620
|
-
return;
|
|
17621
|
-
}
|
|
17622
|
-
return logger[funcName](namespace, ...args);
|
|
17623
|
-
}
|
|
17624
|
-
});
|
|
17625
|
-
|
|
17626
|
-
// ../../node_modules/@opentelemetry/api/build/src/diag/types.js
|
|
17627
|
-
var require_types = __commonJS((exports) => {
|
|
17628
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17629
|
-
exports.DiagLogLevel = undefined;
|
|
17630
|
-
var DiagLogLevel;
|
|
17631
|
-
(function(DiagLogLevel2) {
|
|
17632
|
-
DiagLogLevel2[DiagLogLevel2["NONE"] = 0] = "NONE";
|
|
17633
|
-
DiagLogLevel2[DiagLogLevel2["ERROR"] = 30] = "ERROR";
|
|
17634
|
-
DiagLogLevel2[DiagLogLevel2["WARN"] = 50] = "WARN";
|
|
17635
|
-
DiagLogLevel2[DiagLogLevel2["INFO"] = 60] = "INFO";
|
|
17636
|
-
DiagLogLevel2[DiagLogLevel2["DEBUG"] = 70] = "DEBUG";
|
|
17637
|
-
DiagLogLevel2[DiagLogLevel2["VERBOSE"] = 80] = "VERBOSE";
|
|
17638
|
-
DiagLogLevel2[DiagLogLevel2["ALL"] = 9999] = "ALL";
|
|
17639
|
-
})(DiagLogLevel = exports.DiagLogLevel || (exports.DiagLogLevel = {}));
|
|
17640
|
-
});
|
|
17641
|
-
|
|
17642
|
-
// ../../node_modules/@opentelemetry/api/build/src/diag/internal/logLevelLogger.js
|
|
17643
|
-
var require_logLevelLogger = __commonJS((exports) => {
|
|
17644
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17645
|
-
exports.createLogLevelDiagLogger = undefined;
|
|
17646
|
-
var types_1 = require_types();
|
|
17647
|
-
function createLogLevelDiagLogger(maxLevel, logger) {
|
|
17648
|
-
if (maxLevel < types_1.DiagLogLevel.NONE) {
|
|
17649
|
-
maxLevel = types_1.DiagLogLevel.NONE;
|
|
17650
|
-
} else if (maxLevel > types_1.DiagLogLevel.ALL) {
|
|
17651
|
-
maxLevel = types_1.DiagLogLevel.ALL;
|
|
17652
|
-
}
|
|
17653
|
-
logger = logger || {};
|
|
17654
|
-
function _filterFunc(funcName, theLevel) {
|
|
17655
|
-
const theFunc = logger[funcName];
|
|
17656
|
-
if (typeof theFunc === "function" && maxLevel >= theLevel) {
|
|
17657
|
-
return theFunc.bind(logger);
|
|
17658
|
-
}
|
|
17659
|
-
return function() {};
|
|
17660
|
-
}
|
|
17661
|
-
return {
|
|
17662
|
-
error: _filterFunc("error", types_1.DiagLogLevel.ERROR),
|
|
17663
|
-
warn: _filterFunc("warn", types_1.DiagLogLevel.WARN),
|
|
17664
|
-
info: _filterFunc("info", types_1.DiagLogLevel.INFO),
|
|
17665
|
-
debug: _filterFunc("debug", types_1.DiagLogLevel.DEBUG),
|
|
17666
|
-
verbose: _filterFunc("verbose", types_1.DiagLogLevel.VERBOSE)
|
|
17667
|
-
};
|
|
17668
|
-
}
|
|
17669
|
-
exports.createLogLevelDiagLogger = createLogLevelDiagLogger;
|
|
17670
|
-
});
|
|
17671
|
-
|
|
17672
|
-
// ../../node_modules/@opentelemetry/api/build/src/api/diag.js
|
|
17673
|
-
var require_diag = __commonJS((exports) => {
|
|
17674
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17675
|
-
exports.DiagAPI = undefined;
|
|
17676
|
-
var ComponentLogger_1 = require_ComponentLogger();
|
|
17677
|
-
var logLevelLogger_1 = require_logLevelLogger();
|
|
17678
|
-
var types_1 = require_types();
|
|
17679
|
-
var global_utils_1 = require_global_utils();
|
|
17680
|
-
var API_NAME = "diag";
|
|
17681
|
-
|
|
17682
|
-
class DiagAPI {
|
|
17683
|
-
static instance() {
|
|
17684
|
-
if (!this._instance) {
|
|
17685
|
-
this._instance = new DiagAPI;
|
|
17686
|
-
}
|
|
17687
|
-
return this._instance;
|
|
17688
|
-
}
|
|
17689
|
-
constructor() {
|
|
17690
|
-
function _logProxy(funcName) {
|
|
17691
|
-
return function(...args) {
|
|
17692
|
-
const logger = (0, global_utils_1.getGlobal)("diag");
|
|
17693
|
-
if (!logger)
|
|
17694
|
-
return;
|
|
17695
|
-
return logger[funcName](...args);
|
|
17696
|
-
};
|
|
17697
|
-
}
|
|
17698
|
-
const self2 = this;
|
|
17699
|
-
const setLogger = (logger, optionsOrLogLevel = { logLevel: types_1.DiagLogLevel.INFO }) => {
|
|
17700
|
-
var _a3, _b, _c;
|
|
17701
|
-
if (logger === self2) {
|
|
17702
|
-
const err = new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");
|
|
17703
|
-
self2.error((_a3 = err.stack) !== null && _a3 !== undefined ? _a3 : err.message);
|
|
17704
|
-
return false;
|
|
17705
|
-
}
|
|
17706
|
-
if (typeof optionsOrLogLevel === "number") {
|
|
17707
|
-
optionsOrLogLevel = {
|
|
17708
|
-
logLevel: optionsOrLogLevel
|
|
17709
|
-
};
|
|
17710
|
-
}
|
|
17711
|
-
const oldLogger = (0, global_utils_1.getGlobal)("diag");
|
|
17712
|
-
const newLogger = (0, logLevelLogger_1.createLogLevelDiagLogger)((_b = optionsOrLogLevel.logLevel) !== null && _b !== undefined ? _b : types_1.DiagLogLevel.INFO, logger);
|
|
17713
|
-
if (oldLogger && !optionsOrLogLevel.suppressOverrideMessage) {
|
|
17714
|
-
const stack = (_c = new Error().stack) !== null && _c !== undefined ? _c : "<failed to generate stacktrace>";
|
|
17715
|
-
oldLogger.warn(`Current logger will be overwritten from ${stack}`);
|
|
17716
|
-
newLogger.warn(`Current logger will overwrite one already registered from ${stack}`);
|
|
17717
|
-
}
|
|
17718
|
-
return (0, global_utils_1.registerGlobal)("diag", newLogger, self2, true);
|
|
17719
|
-
};
|
|
17720
|
-
self2.setLogger = setLogger;
|
|
17721
|
-
self2.disable = () => {
|
|
17722
|
-
(0, global_utils_1.unregisterGlobal)(API_NAME, self2);
|
|
17723
|
-
};
|
|
17724
|
-
self2.createComponentLogger = (options) => {
|
|
17725
|
-
return new ComponentLogger_1.DiagComponentLogger(options);
|
|
17726
|
-
};
|
|
17727
|
-
self2.verbose = _logProxy("verbose");
|
|
17728
|
-
self2.debug = _logProxy("debug");
|
|
17729
|
-
self2.info = _logProxy("info");
|
|
17730
|
-
self2.warn = _logProxy("warn");
|
|
17731
|
-
self2.error = _logProxy("error");
|
|
17732
|
-
}
|
|
17733
|
-
}
|
|
17734
|
-
exports.DiagAPI = DiagAPI;
|
|
17735
|
-
});
|
|
17736
|
-
|
|
17737
|
-
// ../../node_modules/@opentelemetry/api/build/src/baggage/internal/baggage-impl.js
|
|
17738
|
-
var require_baggage_impl = __commonJS((exports) => {
|
|
17739
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17740
|
-
exports.BaggageImpl = undefined;
|
|
17741
|
-
|
|
17742
|
-
class BaggageImpl {
|
|
17743
|
-
constructor(entries) {
|
|
17744
|
-
this._entries = entries ? new Map(entries) : new Map;
|
|
17745
|
-
}
|
|
17746
|
-
getEntry(key) {
|
|
17747
|
-
const entry = this._entries.get(key);
|
|
17748
|
-
if (!entry) {
|
|
17749
|
-
return;
|
|
17750
|
-
}
|
|
17751
|
-
return Object.assign({}, entry);
|
|
17752
|
-
}
|
|
17753
|
-
getAllEntries() {
|
|
17754
|
-
return Array.from(this._entries.entries());
|
|
17755
|
-
}
|
|
17756
|
-
setEntry(key, entry) {
|
|
17757
|
-
const newBaggage = new BaggageImpl(this._entries);
|
|
17758
|
-
newBaggage._entries.set(key, entry);
|
|
17759
|
-
return newBaggage;
|
|
17760
|
-
}
|
|
17761
|
-
removeEntry(key) {
|
|
17762
|
-
const newBaggage = new BaggageImpl(this._entries);
|
|
17763
|
-
newBaggage._entries.delete(key);
|
|
17764
|
-
return newBaggage;
|
|
17765
|
-
}
|
|
17766
|
-
removeEntries(...keys) {
|
|
17767
|
-
const newBaggage = new BaggageImpl(this._entries);
|
|
17768
|
-
for (const key of keys) {
|
|
17769
|
-
newBaggage._entries.delete(key);
|
|
17770
|
-
}
|
|
17771
|
-
return newBaggage;
|
|
17772
|
-
}
|
|
17773
|
-
clear() {
|
|
17774
|
-
return new BaggageImpl;
|
|
17775
|
-
}
|
|
17776
|
-
}
|
|
17777
|
-
exports.BaggageImpl = BaggageImpl;
|
|
17778
|
-
});
|
|
17779
|
-
|
|
17780
|
-
// ../../node_modules/@opentelemetry/api/build/src/baggage/internal/symbol.js
|
|
17781
|
-
var require_symbol = __commonJS((exports) => {
|
|
17782
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17783
|
-
exports.baggageEntryMetadataSymbol = undefined;
|
|
17784
|
-
exports.baggageEntryMetadataSymbol = Symbol("BaggageEntryMetadata");
|
|
17785
|
-
});
|
|
17786
|
-
|
|
17787
|
-
// ../../node_modules/@opentelemetry/api/build/src/baggage/utils.js
|
|
17788
|
-
var require_utils = __commonJS((exports) => {
|
|
17789
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17790
|
-
exports.baggageEntryMetadataFromString = exports.createBaggage = undefined;
|
|
17791
|
-
var diag_1 = require_diag();
|
|
17792
|
-
var baggage_impl_1 = require_baggage_impl();
|
|
17793
|
-
var symbol_1 = require_symbol();
|
|
17794
|
-
var diag = diag_1.DiagAPI.instance();
|
|
17795
|
-
function createBaggage(entries = {}) {
|
|
17796
|
-
return new baggage_impl_1.BaggageImpl(new Map(Object.entries(entries)));
|
|
17797
|
-
}
|
|
17798
|
-
exports.createBaggage = createBaggage;
|
|
17799
|
-
function baggageEntryMetadataFromString(str) {
|
|
17800
|
-
if (typeof str !== "string") {
|
|
17801
|
-
diag.error(`Cannot create baggage metadata from unknown type: ${typeof str}`);
|
|
17802
|
-
str = "";
|
|
17803
|
-
}
|
|
17804
|
-
return {
|
|
17805
|
-
__TYPE__: symbol_1.baggageEntryMetadataSymbol,
|
|
17806
|
-
toString() {
|
|
17807
|
-
return str;
|
|
17808
|
-
}
|
|
17809
|
-
};
|
|
17810
|
-
}
|
|
17811
|
-
exports.baggageEntryMetadataFromString = baggageEntryMetadataFromString;
|
|
17812
|
-
});
|
|
17813
|
-
|
|
17814
|
-
// ../../node_modules/@opentelemetry/api/build/src/context/context.js
|
|
17815
|
-
var require_context = __commonJS((exports) => {
|
|
17816
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17817
|
-
exports.ROOT_CONTEXT = exports.createContextKey = undefined;
|
|
17818
|
-
function createContextKey(description) {
|
|
17819
|
-
return Symbol.for(description);
|
|
17820
|
-
}
|
|
17821
|
-
exports.createContextKey = createContextKey;
|
|
17822
|
-
|
|
17823
|
-
class BaseContext {
|
|
17824
|
-
constructor(parentContext) {
|
|
17825
|
-
const self2 = this;
|
|
17826
|
-
self2._currentContext = parentContext ? new Map(parentContext) : new Map;
|
|
17827
|
-
self2.getValue = (key) => self2._currentContext.get(key);
|
|
17828
|
-
self2.setValue = (key, value) => {
|
|
17829
|
-
const context = new BaseContext(self2._currentContext);
|
|
17830
|
-
context._currentContext.set(key, value);
|
|
17831
|
-
return context;
|
|
17832
|
-
};
|
|
17833
|
-
self2.deleteValue = (key) => {
|
|
17834
|
-
const context = new BaseContext(self2._currentContext);
|
|
17835
|
-
context._currentContext.delete(key);
|
|
17836
|
-
return context;
|
|
17837
|
-
};
|
|
17838
|
-
}
|
|
17839
|
-
}
|
|
17840
|
-
exports.ROOT_CONTEXT = new BaseContext;
|
|
17841
|
-
});
|
|
17842
|
-
|
|
17843
|
-
// ../../node_modules/@opentelemetry/api/build/src/diag/consoleLogger.js
|
|
17844
|
-
var require_consoleLogger = __commonJS((exports) => {
|
|
17845
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17846
|
-
exports.DiagConsoleLogger = exports._originalConsoleMethods = undefined;
|
|
17847
|
-
var consoleMap = [
|
|
17848
|
-
{ n: "error", c: "error" },
|
|
17849
|
-
{ n: "warn", c: "warn" },
|
|
17850
|
-
{ n: "info", c: "info" },
|
|
17851
|
-
{ n: "debug", c: "debug" },
|
|
17852
|
-
{ n: "verbose", c: "trace" }
|
|
17853
|
-
];
|
|
17854
|
-
exports._originalConsoleMethods = {};
|
|
17855
|
-
if (typeof console !== "undefined") {
|
|
17856
|
-
const keys = [
|
|
17857
|
-
"error",
|
|
17858
|
-
"warn",
|
|
17859
|
-
"info",
|
|
17860
|
-
"debug",
|
|
17861
|
-
"trace",
|
|
17862
|
-
"log"
|
|
17863
|
-
];
|
|
17864
|
-
for (const key of keys) {
|
|
17865
|
-
if (typeof console[key] === "function") {
|
|
17866
|
-
exports._originalConsoleMethods[key] = console[key];
|
|
17867
|
-
}
|
|
17868
|
-
}
|
|
17869
|
-
}
|
|
17870
|
-
|
|
17871
|
-
class DiagConsoleLogger {
|
|
17872
|
-
constructor() {
|
|
17873
|
-
function _consoleFunc(funcName) {
|
|
17874
|
-
return function(...args) {
|
|
17875
|
-
let theFunc = exports._originalConsoleMethods[funcName];
|
|
17876
|
-
if (typeof theFunc !== "function") {
|
|
17877
|
-
theFunc = exports._originalConsoleMethods["log"];
|
|
17878
|
-
}
|
|
17879
|
-
if (typeof theFunc !== "function" && console) {
|
|
17880
|
-
theFunc = console[funcName];
|
|
17881
|
-
if (typeof theFunc !== "function") {
|
|
17882
|
-
theFunc = console.log;
|
|
17883
|
-
}
|
|
17884
|
-
}
|
|
17885
|
-
if (typeof theFunc === "function") {
|
|
17886
|
-
return theFunc.apply(console, args);
|
|
17887
|
-
}
|
|
17888
|
-
};
|
|
17889
|
-
}
|
|
17890
|
-
for (let i = 0;i < consoleMap.length; i++) {
|
|
17891
|
-
this[consoleMap[i].n] = _consoleFunc(consoleMap[i].c);
|
|
17892
|
-
}
|
|
17893
|
-
}
|
|
17894
|
-
}
|
|
17895
|
-
exports.DiagConsoleLogger = DiagConsoleLogger;
|
|
17896
|
-
});
|
|
17897
|
-
|
|
17898
|
-
// ../../node_modules/@opentelemetry/api/build/src/metrics/NoopMeter.js
|
|
17899
|
-
var require_NoopMeter = __commonJS((exports) => {
|
|
17900
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17901
|
-
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;
|
|
17902
|
-
|
|
17903
|
-
class NoopMeter {
|
|
17904
|
-
constructor() {}
|
|
17905
|
-
createGauge(_name, _options) {
|
|
17906
|
-
return exports.NOOP_GAUGE_METRIC;
|
|
17907
|
-
}
|
|
17908
|
-
createHistogram(_name, _options) {
|
|
17909
|
-
return exports.NOOP_HISTOGRAM_METRIC;
|
|
17910
|
-
}
|
|
17911
|
-
createCounter(_name, _options) {
|
|
17912
|
-
return exports.NOOP_COUNTER_METRIC;
|
|
17913
|
-
}
|
|
17914
|
-
createUpDownCounter(_name, _options) {
|
|
17915
|
-
return exports.NOOP_UP_DOWN_COUNTER_METRIC;
|
|
17916
|
-
}
|
|
17917
|
-
createObservableGauge(_name, _options) {
|
|
17918
|
-
return exports.NOOP_OBSERVABLE_GAUGE_METRIC;
|
|
17919
|
-
}
|
|
17920
|
-
createObservableCounter(_name, _options) {
|
|
17921
|
-
return exports.NOOP_OBSERVABLE_COUNTER_METRIC;
|
|
17922
|
-
}
|
|
17923
|
-
createObservableUpDownCounter(_name, _options) {
|
|
17924
|
-
return exports.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC;
|
|
17925
|
-
}
|
|
17926
|
-
addBatchObservableCallback(_callback, _observables) {}
|
|
17927
|
-
removeBatchObservableCallback(_callback) {}
|
|
17928
|
-
}
|
|
17929
|
-
exports.NoopMeter = NoopMeter;
|
|
17930
|
-
|
|
17931
|
-
class NoopMetric {
|
|
17932
|
-
}
|
|
17933
|
-
exports.NoopMetric = NoopMetric;
|
|
17934
|
-
|
|
17935
|
-
class NoopCounterMetric extends NoopMetric {
|
|
17936
|
-
add(_value, _attributes) {}
|
|
17937
|
-
}
|
|
17938
|
-
exports.NoopCounterMetric = NoopCounterMetric;
|
|
17939
|
-
|
|
17940
|
-
class NoopUpDownCounterMetric extends NoopMetric {
|
|
17941
|
-
add(_value, _attributes) {}
|
|
17942
|
-
}
|
|
17943
|
-
exports.NoopUpDownCounterMetric = NoopUpDownCounterMetric;
|
|
17944
|
-
|
|
17945
|
-
class NoopGaugeMetric extends NoopMetric {
|
|
17946
|
-
record(_value, _attributes) {}
|
|
17947
|
-
}
|
|
17948
|
-
exports.NoopGaugeMetric = NoopGaugeMetric;
|
|
17949
|
-
|
|
17950
|
-
class NoopHistogramMetric extends NoopMetric {
|
|
17951
|
-
record(_value, _attributes) {}
|
|
17952
|
-
}
|
|
17953
|
-
exports.NoopHistogramMetric = NoopHistogramMetric;
|
|
17954
|
-
|
|
17955
|
-
class NoopObservableMetric {
|
|
17956
|
-
addCallback(_callback) {}
|
|
17957
|
-
removeCallback(_callback) {}
|
|
17958
|
-
}
|
|
17959
|
-
exports.NoopObservableMetric = NoopObservableMetric;
|
|
17960
|
-
|
|
17961
|
-
class NoopObservableCounterMetric extends NoopObservableMetric {
|
|
17962
|
-
}
|
|
17963
|
-
exports.NoopObservableCounterMetric = NoopObservableCounterMetric;
|
|
17964
|
-
|
|
17965
|
-
class NoopObservableGaugeMetric extends NoopObservableMetric {
|
|
17966
|
-
}
|
|
17967
|
-
exports.NoopObservableGaugeMetric = NoopObservableGaugeMetric;
|
|
17968
|
-
|
|
17969
|
-
class NoopObservableUpDownCounterMetric extends NoopObservableMetric {
|
|
17970
|
-
}
|
|
17971
|
-
exports.NoopObservableUpDownCounterMetric = NoopObservableUpDownCounterMetric;
|
|
17972
|
-
exports.NOOP_METER = new NoopMeter;
|
|
17973
|
-
exports.NOOP_COUNTER_METRIC = new NoopCounterMetric;
|
|
17974
|
-
exports.NOOP_GAUGE_METRIC = new NoopGaugeMetric;
|
|
17975
|
-
exports.NOOP_HISTOGRAM_METRIC = new NoopHistogramMetric;
|
|
17976
|
-
exports.NOOP_UP_DOWN_COUNTER_METRIC = new NoopUpDownCounterMetric;
|
|
17977
|
-
exports.NOOP_OBSERVABLE_COUNTER_METRIC = new NoopObservableCounterMetric;
|
|
17978
|
-
exports.NOOP_OBSERVABLE_GAUGE_METRIC = new NoopObservableGaugeMetric;
|
|
17979
|
-
exports.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC = new NoopObservableUpDownCounterMetric;
|
|
17980
|
-
function createNoopMeter() {
|
|
17981
|
-
return exports.NOOP_METER;
|
|
17982
|
-
}
|
|
17983
|
-
exports.createNoopMeter = createNoopMeter;
|
|
17984
|
-
});
|
|
17985
|
-
|
|
17986
|
-
// ../../node_modules/@opentelemetry/api/build/src/metrics/Metric.js
|
|
17987
|
-
var require_Metric = __commonJS((exports) => {
|
|
17988
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17989
|
-
exports.ValueType = undefined;
|
|
17990
|
-
var ValueType;
|
|
17991
|
-
(function(ValueType2) {
|
|
17992
|
-
ValueType2[ValueType2["INT"] = 0] = "INT";
|
|
17993
|
-
ValueType2[ValueType2["DOUBLE"] = 1] = "DOUBLE";
|
|
17994
|
-
})(ValueType = exports.ValueType || (exports.ValueType = {}));
|
|
17995
|
-
});
|
|
17996
|
-
|
|
17997
|
-
// ../../node_modules/@opentelemetry/api/build/src/propagation/TextMapPropagator.js
|
|
17998
|
-
var require_TextMapPropagator = __commonJS((exports) => {
|
|
17999
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18000
|
-
exports.defaultTextMapSetter = exports.defaultTextMapGetter = undefined;
|
|
18001
|
-
exports.defaultTextMapGetter = {
|
|
18002
|
-
get(carrier, key) {
|
|
18003
|
-
if (carrier == null) {
|
|
18004
|
-
return;
|
|
18005
|
-
}
|
|
18006
|
-
return carrier[key];
|
|
18007
|
-
},
|
|
18008
|
-
keys(carrier) {
|
|
18009
|
-
if (carrier == null) {
|
|
18010
|
-
return [];
|
|
18011
|
-
}
|
|
18012
|
-
return Object.keys(carrier);
|
|
18013
|
-
}
|
|
18014
|
-
};
|
|
18015
|
-
exports.defaultTextMapSetter = {
|
|
18016
|
-
set(carrier, key, value) {
|
|
18017
|
-
if (carrier == null) {
|
|
18018
|
-
return;
|
|
18019
|
-
}
|
|
18020
|
-
carrier[key] = value;
|
|
18021
|
-
}
|
|
18022
|
-
};
|
|
18023
|
-
});
|
|
18024
|
-
|
|
18025
|
-
// ../../node_modules/@opentelemetry/api/build/src/context/NoopContextManager.js
|
|
18026
|
-
var require_NoopContextManager = __commonJS((exports) => {
|
|
18027
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18028
|
-
exports.NoopContextManager = undefined;
|
|
18029
|
-
var context_1 = require_context();
|
|
18030
|
-
|
|
18031
|
-
class NoopContextManager {
|
|
18032
|
-
active() {
|
|
18033
|
-
return context_1.ROOT_CONTEXT;
|
|
18034
|
-
}
|
|
18035
|
-
with(_context, fn, thisArg, ...args) {
|
|
18036
|
-
return fn.call(thisArg, ...args);
|
|
18037
|
-
}
|
|
18038
|
-
bind(_context, target) {
|
|
18039
|
-
return target;
|
|
18040
|
-
}
|
|
18041
|
-
enable() {
|
|
18042
|
-
return this;
|
|
18043
|
-
}
|
|
18044
|
-
disable() {
|
|
18045
|
-
return this;
|
|
18046
|
-
}
|
|
18047
|
-
}
|
|
18048
|
-
exports.NoopContextManager = NoopContextManager;
|
|
18049
|
-
});
|
|
18050
|
-
|
|
18051
|
-
// ../../node_modules/@opentelemetry/api/build/src/api/context.js
|
|
18052
|
-
var require_context2 = __commonJS((exports) => {
|
|
18053
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18054
|
-
exports.ContextAPI = undefined;
|
|
18055
|
-
var NoopContextManager_1 = require_NoopContextManager();
|
|
18056
|
-
var global_utils_1 = require_global_utils();
|
|
18057
|
-
var diag_1 = require_diag();
|
|
18058
|
-
var API_NAME = "context";
|
|
18059
|
-
var NOOP_CONTEXT_MANAGER = new NoopContextManager_1.NoopContextManager;
|
|
18060
|
-
|
|
18061
|
-
class ContextAPI {
|
|
18062
|
-
constructor() {}
|
|
18063
|
-
static getInstance() {
|
|
18064
|
-
if (!this._instance) {
|
|
18065
|
-
this._instance = new ContextAPI;
|
|
18066
|
-
}
|
|
18067
|
-
return this._instance;
|
|
18068
|
-
}
|
|
18069
|
-
setGlobalContextManager(contextManager) {
|
|
18070
|
-
return (0, global_utils_1.registerGlobal)(API_NAME, contextManager, diag_1.DiagAPI.instance());
|
|
18071
|
-
}
|
|
18072
|
-
active() {
|
|
18073
|
-
return this._getContextManager().active();
|
|
18074
|
-
}
|
|
18075
|
-
with(context, fn, thisArg, ...args) {
|
|
18076
|
-
return this._getContextManager().with(context, fn, thisArg, ...args);
|
|
18077
|
-
}
|
|
18078
|
-
bind(context, target) {
|
|
18079
|
-
return this._getContextManager().bind(context, target);
|
|
18080
|
-
}
|
|
18081
|
-
_getContextManager() {
|
|
18082
|
-
return (0, global_utils_1.getGlobal)(API_NAME) || NOOP_CONTEXT_MANAGER;
|
|
18083
|
-
}
|
|
18084
|
-
disable() {
|
|
18085
|
-
this._getContextManager().disable();
|
|
18086
|
-
(0, global_utils_1.unregisterGlobal)(API_NAME, diag_1.DiagAPI.instance());
|
|
18087
|
-
}
|
|
18088
|
-
}
|
|
18089
|
-
exports.ContextAPI = ContextAPI;
|
|
18090
|
-
});
|
|
18091
|
-
|
|
18092
|
-
// ../../node_modules/@opentelemetry/api/build/src/trace/trace_flags.js
|
|
18093
|
-
var require_trace_flags = __commonJS((exports) => {
|
|
18094
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18095
|
-
exports.TraceFlags = undefined;
|
|
18096
|
-
var TraceFlags;
|
|
18097
|
-
(function(TraceFlags2) {
|
|
18098
|
-
TraceFlags2[TraceFlags2["NONE"] = 0] = "NONE";
|
|
18099
|
-
TraceFlags2[TraceFlags2["SAMPLED"] = 1] = "SAMPLED";
|
|
18100
|
-
})(TraceFlags = exports.TraceFlags || (exports.TraceFlags = {}));
|
|
18101
|
-
});
|
|
18102
|
-
|
|
18103
|
-
// ../../node_modules/@opentelemetry/api/build/src/trace/invalid-span-constants.js
|
|
18104
|
-
var require_invalid_span_constants = __commonJS((exports) => {
|
|
18105
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18106
|
-
exports.INVALID_SPAN_CONTEXT = exports.INVALID_TRACEID = exports.INVALID_SPANID = undefined;
|
|
18107
|
-
var trace_flags_1 = require_trace_flags();
|
|
18108
|
-
exports.INVALID_SPANID = "0000000000000000";
|
|
18109
|
-
exports.INVALID_TRACEID = "00000000000000000000000000000000";
|
|
18110
|
-
exports.INVALID_SPAN_CONTEXT = {
|
|
18111
|
-
traceId: exports.INVALID_TRACEID,
|
|
18112
|
-
spanId: exports.INVALID_SPANID,
|
|
18113
|
-
traceFlags: trace_flags_1.TraceFlags.NONE
|
|
18114
|
-
};
|
|
18115
|
-
});
|
|
18116
|
-
|
|
18117
|
-
// ../../node_modules/@opentelemetry/api/build/src/trace/NonRecordingSpan.js
|
|
18118
|
-
var require_NonRecordingSpan = __commonJS((exports) => {
|
|
18119
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18120
|
-
exports.NonRecordingSpan = undefined;
|
|
18121
|
-
var invalid_span_constants_1 = require_invalid_span_constants();
|
|
18122
|
-
|
|
18123
|
-
class NonRecordingSpan {
|
|
18124
|
-
constructor(spanContext = invalid_span_constants_1.INVALID_SPAN_CONTEXT) {
|
|
18125
|
-
this._spanContext = spanContext;
|
|
18126
|
-
}
|
|
18127
|
-
spanContext() {
|
|
18128
|
-
return this._spanContext;
|
|
18129
|
-
}
|
|
18130
|
-
setAttribute(_key, _value) {
|
|
18131
|
-
return this;
|
|
18132
|
-
}
|
|
18133
|
-
setAttributes(_attributes) {
|
|
18134
|
-
return this;
|
|
18135
|
-
}
|
|
18136
|
-
addEvent(_name, _attributes) {
|
|
18137
|
-
return this;
|
|
18138
|
-
}
|
|
18139
|
-
addLink(_link) {
|
|
18140
|
-
return this;
|
|
18141
|
-
}
|
|
18142
|
-
addLinks(_links) {
|
|
18143
|
-
return this;
|
|
18144
|
-
}
|
|
18145
|
-
setStatus(_status) {
|
|
18146
|
-
return this;
|
|
18147
|
-
}
|
|
18148
|
-
updateName(_name) {
|
|
18149
|
-
return this;
|
|
18150
|
-
}
|
|
18151
|
-
end(_endTime) {}
|
|
18152
|
-
isRecording() {
|
|
18153
|
-
return false;
|
|
18154
|
-
}
|
|
18155
|
-
recordException(_exception, _time) {}
|
|
18156
|
-
}
|
|
18157
|
-
exports.NonRecordingSpan = NonRecordingSpan;
|
|
18158
|
-
});
|
|
18159
|
-
|
|
18160
|
-
// ../../node_modules/@opentelemetry/api/build/src/trace/context-utils.js
|
|
18161
|
-
var require_context_utils = __commonJS((exports) => {
|
|
18162
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18163
|
-
exports.getSpanContext = exports.setSpanContext = exports.deleteSpan = exports.setSpan = exports.getActiveSpan = exports.getSpan = undefined;
|
|
18164
|
-
var context_1 = require_context();
|
|
18165
|
-
var NonRecordingSpan_1 = require_NonRecordingSpan();
|
|
18166
|
-
var context_2 = require_context2();
|
|
18167
|
-
var SPAN_KEY = (0, context_1.createContextKey)("OpenTelemetry Context Key SPAN");
|
|
18168
|
-
function getSpan(context) {
|
|
18169
|
-
return context.getValue(SPAN_KEY) || undefined;
|
|
18170
|
-
}
|
|
18171
|
-
exports.getSpan = getSpan;
|
|
18172
|
-
function getActiveSpan() {
|
|
18173
|
-
return getSpan(context_2.ContextAPI.getInstance().active());
|
|
18174
|
-
}
|
|
18175
|
-
exports.getActiveSpan = getActiveSpan;
|
|
18176
|
-
function setSpan(context, span) {
|
|
18177
|
-
return context.setValue(SPAN_KEY, span);
|
|
18178
|
-
}
|
|
18179
|
-
exports.setSpan = setSpan;
|
|
18180
|
-
function deleteSpan(context) {
|
|
18181
|
-
return context.deleteValue(SPAN_KEY);
|
|
18182
|
-
}
|
|
18183
|
-
exports.deleteSpan = deleteSpan;
|
|
18184
|
-
function setSpanContext(context, spanContext) {
|
|
18185
|
-
return setSpan(context, new NonRecordingSpan_1.NonRecordingSpan(spanContext));
|
|
18186
|
-
}
|
|
18187
|
-
exports.setSpanContext = setSpanContext;
|
|
18188
|
-
function getSpanContext(context) {
|
|
18189
|
-
var _a3;
|
|
18190
|
-
return (_a3 = getSpan(context)) === null || _a3 === undefined ? undefined : _a3.spanContext();
|
|
18191
|
-
}
|
|
18192
|
-
exports.getSpanContext = getSpanContext;
|
|
18193
|
-
});
|
|
18194
|
-
|
|
18195
|
-
// ../../node_modules/@opentelemetry/api/build/src/trace/spancontext-utils.js
|
|
18196
|
-
var require_spancontext_utils = __commonJS((exports) => {
|
|
18197
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18198
|
-
exports.wrapSpanContext = exports.isSpanContextValid = exports.isValidSpanId = exports.isValidTraceId = undefined;
|
|
18199
|
-
var invalid_span_constants_1 = require_invalid_span_constants();
|
|
18200
|
-
var NonRecordingSpan_1 = require_NonRecordingSpan();
|
|
18201
|
-
var isHex = new Uint8Array([
|
|
18202
|
-
0,
|
|
18203
|
-
0,
|
|
18204
|
-
0,
|
|
18205
|
-
0,
|
|
18206
|
-
0,
|
|
18207
|
-
0,
|
|
18208
|
-
0,
|
|
18209
|
-
0,
|
|
18210
|
-
0,
|
|
18211
|
-
0,
|
|
18212
|
-
0,
|
|
18213
|
-
0,
|
|
18214
|
-
0,
|
|
18215
|
-
0,
|
|
18216
|
-
0,
|
|
18217
|
-
0,
|
|
18218
|
-
0,
|
|
18219
|
-
0,
|
|
18220
|
-
0,
|
|
18221
|
-
0,
|
|
18222
|
-
0,
|
|
18223
|
-
0,
|
|
18224
|
-
0,
|
|
18225
|
-
0,
|
|
18226
|
-
0,
|
|
18227
|
-
0,
|
|
18228
|
-
0,
|
|
18229
|
-
0,
|
|
18230
|
-
0,
|
|
18231
|
-
0,
|
|
18232
|
-
0,
|
|
18233
|
-
0,
|
|
18234
|
-
0,
|
|
18235
|
-
0,
|
|
18236
|
-
0,
|
|
18237
|
-
0,
|
|
18238
|
-
0,
|
|
18239
|
-
0,
|
|
18240
|
-
0,
|
|
18241
|
-
0,
|
|
18242
|
-
0,
|
|
18243
|
-
0,
|
|
18244
|
-
0,
|
|
18245
|
-
0,
|
|
18246
|
-
0,
|
|
18247
|
-
0,
|
|
18248
|
-
0,
|
|
18249
|
-
0,
|
|
18250
|
-
1,
|
|
18251
|
-
1,
|
|
18252
|
-
1,
|
|
18253
|
-
1,
|
|
18254
|
-
1,
|
|
18255
|
-
1,
|
|
18256
|
-
1,
|
|
18257
|
-
1,
|
|
18258
|
-
1,
|
|
18259
|
-
1,
|
|
18260
|
-
0,
|
|
18261
|
-
0,
|
|
18262
|
-
0,
|
|
18263
|
-
0,
|
|
18264
|
-
0,
|
|
18265
|
-
0,
|
|
18266
|
-
0,
|
|
18267
|
-
1,
|
|
18268
|
-
1,
|
|
18269
|
-
1,
|
|
18270
|
-
1,
|
|
18271
|
-
1,
|
|
18272
|
-
1,
|
|
18273
|
-
0,
|
|
18274
|
-
0,
|
|
18275
|
-
0,
|
|
18276
|
-
0,
|
|
18277
|
-
0,
|
|
18278
|
-
0,
|
|
18279
|
-
0,
|
|
18280
|
-
0,
|
|
18281
|
-
0,
|
|
18282
|
-
0,
|
|
18283
|
-
0,
|
|
18284
|
-
0,
|
|
18285
|
-
0,
|
|
18286
|
-
0,
|
|
18287
|
-
0,
|
|
18288
|
-
0,
|
|
18289
|
-
0,
|
|
18290
|
-
0,
|
|
18291
|
-
0,
|
|
18292
|
-
0,
|
|
18293
|
-
0,
|
|
18294
|
-
0,
|
|
18295
|
-
0,
|
|
18296
|
-
0,
|
|
18297
|
-
0,
|
|
18298
|
-
0,
|
|
18299
|
-
1,
|
|
18300
|
-
1,
|
|
18301
|
-
1,
|
|
18302
|
-
1,
|
|
18303
|
-
1,
|
|
18304
|
-
1
|
|
18305
|
-
]);
|
|
18306
|
-
function isValidHex(id, length) {
|
|
18307
|
-
if (typeof id !== "string" || id.length !== length)
|
|
18308
|
-
return false;
|
|
18309
|
-
let r = 0;
|
|
18310
|
-
for (let i = 0;i < id.length; i += 4) {
|
|
18311
|
-
r += (isHex[id.charCodeAt(i)] | 0) + (isHex[id.charCodeAt(i + 1)] | 0) + (isHex[id.charCodeAt(i + 2)] | 0) + (isHex[id.charCodeAt(i + 3)] | 0);
|
|
18312
|
-
}
|
|
18313
|
-
return r === length;
|
|
18314
|
-
}
|
|
18315
|
-
function isValidTraceId(traceId) {
|
|
18316
|
-
return isValidHex(traceId, 32) && traceId !== invalid_span_constants_1.INVALID_TRACEID;
|
|
18317
|
-
}
|
|
18318
|
-
exports.isValidTraceId = isValidTraceId;
|
|
18319
|
-
function isValidSpanId(spanId) {
|
|
18320
|
-
return isValidHex(spanId, 16) && spanId !== invalid_span_constants_1.INVALID_SPANID;
|
|
18321
|
-
}
|
|
18322
|
-
exports.isValidSpanId = isValidSpanId;
|
|
18323
|
-
function isSpanContextValid(spanContext) {
|
|
18324
|
-
return isValidTraceId(spanContext.traceId) && isValidSpanId(spanContext.spanId);
|
|
18325
|
-
}
|
|
18326
|
-
exports.isSpanContextValid = isSpanContextValid;
|
|
18327
|
-
function wrapSpanContext(spanContext) {
|
|
18328
|
-
return new NonRecordingSpan_1.NonRecordingSpan(spanContext);
|
|
18329
|
-
}
|
|
18330
|
-
exports.wrapSpanContext = wrapSpanContext;
|
|
18331
|
-
});
|
|
18332
|
-
|
|
18333
|
-
// ../../node_modules/@opentelemetry/api/build/src/trace/NoopTracer.js
|
|
18334
|
-
var require_NoopTracer = __commonJS((exports) => {
|
|
18335
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18336
|
-
exports.NoopTracer = undefined;
|
|
18337
|
-
var context_1 = require_context2();
|
|
18338
|
-
var context_utils_1 = require_context_utils();
|
|
18339
|
-
var NonRecordingSpan_1 = require_NonRecordingSpan();
|
|
18340
|
-
var spancontext_utils_1 = require_spancontext_utils();
|
|
18341
|
-
var contextApi = context_1.ContextAPI.getInstance();
|
|
18342
|
-
|
|
18343
|
-
class NoopTracer {
|
|
18344
|
-
startSpan(name, options, context = contextApi.active()) {
|
|
18345
|
-
const root = Boolean(options === null || options === undefined ? undefined : options.root);
|
|
18346
|
-
if (root) {
|
|
18347
|
-
return new NonRecordingSpan_1.NonRecordingSpan;
|
|
18348
|
-
}
|
|
18349
|
-
const parentFromContext = context && (0, context_utils_1.getSpanContext)(context);
|
|
18350
|
-
if (isSpanContext(parentFromContext) && (0, spancontext_utils_1.isSpanContextValid)(parentFromContext)) {
|
|
18351
|
-
return new NonRecordingSpan_1.NonRecordingSpan(parentFromContext);
|
|
18352
|
-
} else {
|
|
18353
|
-
return new NonRecordingSpan_1.NonRecordingSpan;
|
|
18354
|
-
}
|
|
18355
|
-
}
|
|
18356
|
-
startActiveSpan(name, arg2, arg3, arg4) {
|
|
18357
|
-
let opts;
|
|
18358
|
-
let ctx;
|
|
18359
|
-
let fn;
|
|
18360
|
-
if (arguments.length < 2) {
|
|
18361
|
-
return;
|
|
18362
|
-
} else if (arguments.length === 2) {
|
|
18363
|
-
fn = arg2;
|
|
18364
|
-
} else if (arguments.length === 3) {
|
|
18365
|
-
opts = arg2;
|
|
18366
|
-
fn = arg3;
|
|
18367
|
-
} else {
|
|
18368
|
-
opts = arg2;
|
|
18369
|
-
ctx = arg3;
|
|
18370
|
-
fn = arg4;
|
|
18371
|
-
}
|
|
18372
|
-
const parentContext = ctx !== null && ctx !== undefined ? ctx : contextApi.active();
|
|
18373
|
-
const span = this.startSpan(name, opts, parentContext);
|
|
18374
|
-
const contextWithSpanSet = (0, context_utils_1.setSpan)(parentContext, span);
|
|
18375
|
-
return contextApi.with(contextWithSpanSet, fn, undefined, span);
|
|
18376
|
-
}
|
|
18377
|
-
}
|
|
18378
|
-
exports.NoopTracer = NoopTracer;
|
|
18379
|
-
function isSpanContext(spanContext) {
|
|
18380
|
-
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";
|
|
18381
|
-
}
|
|
18382
|
-
});
|
|
18383
|
-
|
|
18384
|
-
// ../../node_modules/@opentelemetry/api/build/src/trace/ProxyTracer.js
|
|
18385
|
-
var require_ProxyTracer = __commonJS((exports) => {
|
|
18386
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18387
|
-
exports.ProxyTracer = undefined;
|
|
18388
|
-
var NoopTracer_1 = require_NoopTracer();
|
|
18389
|
-
var NOOP_TRACER = new NoopTracer_1.NoopTracer;
|
|
18390
|
-
|
|
18391
|
-
class ProxyTracer {
|
|
18392
|
-
constructor(provider, name, version2, options) {
|
|
18393
|
-
this._provider = provider;
|
|
18394
|
-
this.name = name;
|
|
18395
|
-
this.version = version2;
|
|
18396
|
-
this.options = options;
|
|
18397
|
-
}
|
|
18398
|
-
startSpan(name, options, context) {
|
|
18399
|
-
return this._getTracer().startSpan(name, options, context);
|
|
18400
|
-
}
|
|
18401
|
-
startActiveSpan(_name, _options, _context, _fn) {
|
|
18402
|
-
const tracer = this._getTracer();
|
|
18403
|
-
return Reflect.apply(tracer.startActiveSpan, tracer, arguments);
|
|
18404
|
-
}
|
|
18405
|
-
_getTracer() {
|
|
18406
|
-
if (this._delegate) {
|
|
18407
|
-
return this._delegate;
|
|
18408
|
-
}
|
|
18409
|
-
const tracer = this._provider.getDelegateTracer(this.name, this.version, this.options);
|
|
18410
|
-
if (!tracer) {
|
|
18411
|
-
return NOOP_TRACER;
|
|
18412
|
-
}
|
|
18413
|
-
this._delegate = tracer;
|
|
18414
|
-
return this._delegate;
|
|
18415
|
-
}
|
|
18416
|
-
}
|
|
18417
|
-
exports.ProxyTracer = ProxyTracer;
|
|
18418
|
-
});
|
|
18419
|
-
|
|
18420
|
-
// ../../node_modules/@opentelemetry/api/build/src/trace/NoopTracerProvider.js
|
|
18421
|
-
var require_NoopTracerProvider = __commonJS((exports) => {
|
|
18422
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18423
|
-
exports.NoopTracerProvider = undefined;
|
|
18424
|
-
var NoopTracer_1 = require_NoopTracer();
|
|
18425
|
-
|
|
18426
|
-
class NoopTracerProvider {
|
|
18427
|
-
getTracer(_name, _version, _options) {
|
|
18428
|
-
return new NoopTracer_1.NoopTracer;
|
|
18429
|
-
}
|
|
18430
|
-
}
|
|
18431
|
-
exports.NoopTracerProvider = NoopTracerProvider;
|
|
18432
|
-
});
|
|
18433
|
-
|
|
18434
|
-
// ../../node_modules/@opentelemetry/api/build/src/trace/ProxyTracerProvider.js
|
|
18435
|
-
var require_ProxyTracerProvider = __commonJS((exports) => {
|
|
18436
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18437
|
-
exports.ProxyTracerProvider = undefined;
|
|
18438
|
-
var ProxyTracer_1 = require_ProxyTracer();
|
|
18439
|
-
var NoopTracerProvider_1 = require_NoopTracerProvider();
|
|
18440
|
-
var NOOP_TRACER_PROVIDER = new NoopTracerProvider_1.NoopTracerProvider;
|
|
18441
|
-
|
|
18442
|
-
class ProxyTracerProvider {
|
|
18443
|
-
getTracer(name, version2, options) {
|
|
18444
|
-
var _a3;
|
|
18445
|
-
return (_a3 = this.getDelegateTracer(name, version2, options)) !== null && _a3 !== undefined ? _a3 : new ProxyTracer_1.ProxyTracer(this, name, version2, options);
|
|
18446
|
-
}
|
|
18447
|
-
getDelegate() {
|
|
18448
|
-
var _a3;
|
|
18449
|
-
return (_a3 = this._delegate) !== null && _a3 !== undefined ? _a3 : NOOP_TRACER_PROVIDER;
|
|
18450
|
-
}
|
|
18451
|
-
setDelegate(delegate) {
|
|
18452
|
-
this._delegate = delegate;
|
|
18453
|
-
}
|
|
18454
|
-
getDelegateTracer(name, version2, options) {
|
|
18455
|
-
var _a3;
|
|
18456
|
-
return (_a3 = this._delegate) === null || _a3 === undefined ? undefined : _a3.getTracer(name, version2, options);
|
|
18457
|
-
}
|
|
18458
|
-
}
|
|
18459
|
-
exports.ProxyTracerProvider = ProxyTracerProvider;
|
|
18460
|
-
});
|
|
18461
|
-
|
|
18462
|
-
// ../../node_modules/@opentelemetry/api/build/src/trace/SamplingResult.js
|
|
18463
|
-
var require_SamplingResult = __commonJS((exports) => {
|
|
18464
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18465
|
-
exports.SamplingDecision = undefined;
|
|
18466
|
-
var SamplingDecision;
|
|
18467
|
-
(function(SamplingDecision2) {
|
|
18468
|
-
SamplingDecision2[SamplingDecision2["NOT_RECORD"] = 0] = "NOT_RECORD";
|
|
18469
|
-
SamplingDecision2[SamplingDecision2["RECORD"] = 1] = "RECORD";
|
|
18470
|
-
SamplingDecision2[SamplingDecision2["RECORD_AND_SAMPLED"] = 2] = "RECORD_AND_SAMPLED";
|
|
18471
|
-
})(SamplingDecision = exports.SamplingDecision || (exports.SamplingDecision = {}));
|
|
18472
|
-
});
|
|
18473
|
-
|
|
18474
|
-
// ../../node_modules/@opentelemetry/api/build/src/trace/span_kind.js
|
|
18475
|
-
var require_span_kind = __commonJS((exports) => {
|
|
18476
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18477
|
-
exports.SpanKind = undefined;
|
|
18478
|
-
var SpanKind;
|
|
18479
|
-
(function(SpanKind2) {
|
|
18480
|
-
SpanKind2[SpanKind2["INTERNAL"] = 0] = "INTERNAL";
|
|
18481
|
-
SpanKind2[SpanKind2["SERVER"] = 1] = "SERVER";
|
|
18482
|
-
SpanKind2[SpanKind2["CLIENT"] = 2] = "CLIENT";
|
|
18483
|
-
SpanKind2[SpanKind2["PRODUCER"] = 3] = "PRODUCER";
|
|
18484
|
-
SpanKind2[SpanKind2["CONSUMER"] = 4] = "CONSUMER";
|
|
18485
|
-
})(SpanKind = exports.SpanKind || (exports.SpanKind = {}));
|
|
18486
|
-
});
|
|
18487
|
-
|
|
18488
|
-
// ../../node_modules/@opentelemetry/api/build/src/trace/status.js
|
|
18489
|
-
var require_status = __commonJS((exports) => {
|
|
18490
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18491
|
-
exports.SpanStatusCode = undefined;
|
|
18492
|
-
var SpanStatusCode;
|
|
18493
|
-
(function(SpanStatusCode2) {
|
|
18494
|
-
SpanStatusCode2[SpanStatusCode2["UNSET"] = 0] = "UNSET";
|
|
18495
|
-
SpanStatusCode2[SpanStatusCode2["OK"] = 1] = "OK";
|
|
18496
|
-
SpanStatusCode2[SpanStatusCode2["ERROR"] = 2] = "ERROR";
|
|
18497
|
-
})(SpanStatusCode = exports.SpanStatusCode || (exports.SpanStatusCode = {}));
|
|
18498
|
-
});
|
|
18499
|
-
|
|
18500
|
-
// ../../node_modules/@opentelemetry/api/build/src/trace/internal/tracestate-validators.js
|
|
18501
|
-
var require_tracestate_validators = __commonJS((exports) => {
|
|
18502
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18503
|
-
exports.validateValue = exports.validateKey = undefined;
|
|
18504
|
-
var VALID_KEY_CHAR_RANGE = "[_0-9a-z-*/]";
|
|
18505
|
-
var VALID_KEY = `[a-z]${VALID_KEY_CHAR_RANGE}{0,255}`;
|
|
18506
|
-
var VALID_VENDOR_KEY = `[a-z0-9]${VALID_KEY_CHAR_RANGE}{0,240}@[a-z]${VALID_KEY_CHAR_RANGE}{0,13}`;
|
|
18507
|
-
var VALID_KEY_REGEX = new RegExp(`^(?:${VALID_KEY}|${VALID_VENDOR_KEY})$`);
|
|
18508
|
-
var VALID_VALUE_BASE_REGEX = /^[ -~]{0,255}[!-~]$/;
|
|
18509
|
-
var INVALID_VALUE_COMMA_EQUAL_REGEX = /,|=/;
|
|
18510
|
-
function validateKey(key) {
|
|
18511
|
-
return VALID_KEY_REGEX.test(key);
|
|
18512
|
-
}
|
|
18513
|
-
exports.validateKey = validateKey;
|
|
18514
|
-
function validateValue(value) {
|
|
18515
|
-
return VALID_VALUE_BASE_REGEX.test(value) && !INVALID_VALUE_COMMA_EQUAL_REGEX.test(value);
|
|
18516
|
-
}
|
|
18517
|
-
exports.validateValue = validateValue;
|
|
18518
|
-
});
|
|
18519
|
-
|
|
18520
|
-
// ../../node_modules/@opentelemetry/api/build/src/trace/internal/tracestate-impl.js
|
|
18521
|
-
var require_tracestate_impl = __commonJS((exports) => {
|
|
18522
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18523
|
-
exports.TraceStateImpl = undefined;
|
|
18524
|
-
var tracestate_validators_1 = require_tracestate_validators();
|
|
18525
|
-
var MAX_TRACE_STATE_ITEMS = 32;
|
|
18526
|
-
var MAX_TRACE_STATE_LEN = 512;
|
|
18527
|
-
var LIST_MEMBERS_SEPARATOR = ",";
|
|
18528
|
-
var LIST_MEMBER_KEY_VALUE_SPLITTER = "=";
|
|
18529
|
-
|
|
18530
|
-
class TraceStateImpl {
|
|
18531
|
-
constructor(rawTraceState) {
|
|
18532
|
-
this._internalState = new Map;
|
|
18533
|
-
if (rawTraceState)
|
|
18534
|
-
this._parse(rawTraceState);
|
|
18535
|
-
}
|
|
18536
|
-
set(key, value) {
|
|
18537
|
-
const traceState = this._clone();
|
|
18538
|
-
if (traceState._internalState.has(key)) {
|
|
18539
|
-
traceState._internalState.delete(key);
|
|
18540
|
-
}
|
|
18541
|
-
traceState._internalState.set(key, value);
|
|
18542
|
-
return traceState;
|
|
18543
|
-
}
|
|
18544
|
-
unset(key) {
|
|
18545
|
-
const traceState = this._clone();
|
|
18546
|
-
traceState._internalState.delete(key);
|
|
18547
|
-
return traceState;
|
|
18548
|
-
}
|
|
18549
|
-
get(key) {
|
|
18550
|
-
return this._internalState.get(key);
|
|
18551
|
-
}
|
|
18552
|
-
serialize() {
|
|
18553
|
-
return Array.from(this._internalState.keys()).reduceRight((agg, key) => {
|
|
18554
|
-
agg.push(key + LIST_MEMBER_KEY_VALUE_SPLITTER + this.get(key));
|
|
18555
|
-
return agg;
|
|
18556
|
-
}, []).join(LIST_MEMBERS_SEPARATOR);
|
|
18557
|
-
}
|
|
18558
|
-
_parse(rawTraceState) {
|
|
18559
|
-
if (rawTraceState.length > MAX_TRACE_STATE_LEN)
|
|
18560
|
-
return;
|
|
18561
|
-
this._internalState = rawTraceState.split(LIST_MEMBERS_SEPARATOR).reduceRight((agg, part) => {
|
|
18562
|
-
const listMember = part.trim();
|
|
18563
|
-
const i = listMember.indexOf(LIST_MEMBER_KEY_VALUE_SPLITTER);
|
|
18564
|
-
if (i !== -1) {
|
|
18565
|
-
const key = listMember.slice(0, i);
|
|
18566
|
-
const value = listMember.slice(i + 1, part.length);
|
|
18567
|
-
if ((0, tracestate_validators_1.validateKey)(key) && (0, tracestate_validators_1.validateValue)(value)) {
|
|
18568
|
-
agg.set(key, value);
|
|
18569
|
-
}
|
|
18570
|
-
}
|
|
18571
|
-
return agg;
|
|
18572
|
-
}, new Map);
|
|
18573
|
-
if (this._internalState.size > MAX_TRACE_STATE_ITEMS) {
|
|
18574
|
-
this._internalState = new Map(Array.from(this._internalState.entries()).reverse().slice(0, MAX_TRACE_STATE_ITEMS));
|
|
18575
|
-
}
|
|
18576
|
-
}
|
|
18577
|
-
_keys() {
|
|
18578
|
-
return Array.from(this._internalState.keys()).reverse();
|
|
18579
|
-
}
|
|
18580
|
-
_clone() {
|
|
18581
|
-
const traceState = new TraceStateImpl;
|
|
18582
|
-
traceState._internalState = new Map(this._internalState);
|
|
18583
|
-
return traceState;
|
|
18584
|
-
}
|
|
18585
|
-
}
|
|
18586
|
-
exports.TraceStateImpl = TraceStateImpl;
|
|
18587
|
-
});
|
|
18588
|
-
|
|
18589
|
-
// ../../node_modules/@opentelemetry/api/build/src/trace/internal/utils.js
|
|
18590
|
-
var require_utils2 = __commonJS((exports) => {
|
|
18591
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18592
|
-
exports.createTraceState = undefined;
|
|
18593
|
-
var tracestate_impl_1 = require_tracestate_impl();
|
|
18594
|
-
function createTraceState(rawTraceState) {
|
|
18595
|
-
return new tracestate_impl_1.TraceStateImpl(rawTraceState);
|
|
18596
|
-
}
|
|
18597
|
-
exports.createTraceState = createTraceState;
|
|
18598
|
-
});
|
|
18599
|
-
|
|
18600
|
-
// ../../node_modules/@opentelemetry/api/build/src/context-api.js
|
|
18601
|
-
var require_context_api = __commonJS((exports) => {
|
|
18602
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18603
|
-
exports.context = undefined;
|
|
18604
|
-
var context_1 = require_context2();
|
|
18605
|
-
exports.context = context_1.ContextAPI.getInstance();
|
|
18606
|
-
});
|
|
18607
|
-
|
|
18608
|
-
// ../../node_modules/@opentelemetry/api/build/src/diag-api.js
|
|
18609
|
-
var require_diag_api = __commonJS((exports) => {
|
|
18610
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18611
|
-
exports.diag = undefined;
|
|
18612
|
-
var diag_1 = require_diag();
|
|
18613
|
-
exports.diag = diag_1.DiagAPI.instance();
|
|
18614
|
-
});
|
|
18615
|
-
|
|
18616
|
-
// ../../node_modules/@opentelemetry/api/build/src/metrics/NoopMeterProvider.js
|
|
18617
|
-
var require_NoopMeterProvider = __commonJS((exports) => {
|
|
18618
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18619
|
-
exports.NOOP_METER_PROVIDER = exports.NoopMeterProvider = undefined;
|
|
18620
|
-
var NoopMeter_1 = require_NoopMeter();
|
|
18621
|
-
|
|
18622
|
-
class NoopMeterProvider {
|
|
18623
|
-
getMeter(_name, _version, _options) {
|
|
18624
|
-
return NoopMeter_1.NOOP_METER;
|
|
18625
|
-
}
|
|
18626
|
-
}
|
|
18627
|
-
exports.NoopMeterProvider = NoopMeterProvider;
|
|
18628
|
-
exports.NOOP_METER_PROVIDER = new NoopMeterProvider;
|
|
18629
|
-
});
|
|
18630
|
-
|
|
18631
|
-
// ../../node_modules/@opentelemetry/api/build/src/api/metrics.js
|
|
18632
|
-
var require_metrics = __commonJS((exports) => {
|
|
18633
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18634
|
-
exports.MetricsAPI = undefined;
|
|
18635
|
-
var NoopMeterProvider_1 = require_NoopMeterProvider();
|
|
18636
|
-
var global_utils_1 = require_global_utils();
|
|
18637
|
-
var diag_1 = require_diag();
|
|
18638
|
-
var API_NAME = "metrics";
|
|
18639
|
-
|
|
18640
|
-
class MetricsAPI {
|
|
18641
|
-
constructor() {}
|
|
18642
|
-
static getInstance() {
|
|
18643
|
-
if (!this._instance) {
|
|
18644
|
-
this._instance = new MetricsAPI;
|
|
18645
|
-
}
|
|
18646
|
-
return this._instance;
|
|
18647
|
-
}
|
|
18648
|
-
setGlobalMeterProvider(provider) {
|
|
18649
|
-
return (0, global_utils_1.registerGlobal)(API_NAME, provider, diag_1.DiagAPI.instance());
|
|
18650
|
-
}
|
|
18651
|
-
getMeterProvider() {
|
|
18652
|
-
return (0, global_utils_1.getGlobal)(API_NAME) || NoopMeterProvider_1.NOOP_METER_PROVIDER;
|
|
18653
|
-
}
|
|
18654
|
-
getMeter(name, version2, options) {
|
|
18655
|
-
return this.getMeterProvider().getMeter(name, version2, options);
|
|
18656
|
-
}
|
|
18657
|
-
disable() {
|
|
18658
|
-
(0, global_utils_1.unregisterGlobal)(API_NAME, diag_1.DiagAPI.instance());
|
|
18659
|
-
}
|
|
18660
|
-
}
|
|
18661
|
-
exports.MetricsAPI = MetricsAPI;
|
|
18662
|
-
});
|
|
18663
|
-
|
|
18664
|
-
// ../../node_modules/@opentelemetry/api/build/src/metrics-api.js
|
|
18665
|
-
var require_metrics_api = __commonJS((exports) => {
|
|
18666
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18667
|
-
exports.metrics = undefined;
|
|
18668
|
-
var metrics_1 = require_metrics();
|
|
18669
|
-
exports.metrics = metrics_1.MetricsAPI.getInstance();
|
|
18670
|
-
});
|
|
18671
|
-
|
|
18672
|
-
// ../../node_modules/@opentelemetry/api/build/src/propagation/NoopTextMapPropagator.js
|
|
18673
|
-
var require_NoopTextMapPropagator = __commonJS((exports) => {
|
|
18674
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18675
|
-
exports.NoopTextMapPropagator = undefined;
|
|
18676
|
-
|
|
18677
|
-
class NoopTextMapPropagator {
|
|
18678
|
-
inject(_context, _carrier) {}
|
|
18679
|
-
extract(context, _carrier) {
|
|
18680
|
-
return context;
|
|
18681
|
-
}
|
|
18682
|
-
fields() {
|
|
18683
|
-
return [];
|
|
18684
|
-
}
|
|
18685
|
-
}
|
|
18686
|
-
exports.NoopTextMapPropagator = NoopTextMapPropagator;
|
|
18687
|
-
});
|
|
18688
|
-
|
|
18689
|
-
// ../../node_modules/@opentelemetry/api/build/src/baggage/context-helpers.js
|
|
18690
|
-
var require_context_helpers = __commonJS((exports) => {
|
|
18691
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18692
|
-
exports.deleteBaggage = exports.setBaggage = exports.getActiveBaggage = exports.getBaggage = undefined;
|
|
18693
|
-
var context_1 = require_context2();
|
|
18694
|
-
var context_2 = require_context();
|
|
18695
|
-
var BAGGAGE_KEY = (0, context_2.createContextKey)("OpenTelemetry Baggage Key");
|
|
18696
|
-
function getBaggage(context) {
|
|
18697
|
-
return context.getValue(BAGGAGE_KEY) || undefined;
|
|
18698
|
-
}
|
|
18699
|
-
exports.getBaggage = getBaggage;
|
|
18700
|
-
function getActiveBaggage() {
|
|
18701
|
-
return getBaggage(context_1.ContextAPI.getInstance().active());
|
|
18702
|
-
}
|
|
18703
|
-
exports.getActiveBaggage = getActiveBaggage;
|
|
18704
|
-
function setBaggage(context, baggage) {
|
|
18705
|
-
return context.setValue(BAGGAGE_KEY, baggage);
|
|
18706
|
-
}
|
|
18707
|
-
exports.setBaggage = setBaggage;
|
|
18708
|
-
function deleteBaggage(context) {
|
|
18709
|
-
return context.deleteValue(BAGGAGE_KEY);
|
|
18710
|
-
}
|
|
18711
|
-
exports.deleteBaggage = deleteBaggage;
|
|
18712
|
-
});
|
|
18713
|
-
|
|
18714
|
-
// ../../node_modules/@opentelemetry/api/build/src/api/propagation.js
|
|
18715
|
-
var require_propagation = __commonJS((exports) => {
|
|
18716
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18717
|
-
exports.PropagationAPI = undefined;
|
|
18718
|
-
var global_utils_1 = require_global_utils();
|
|
18719
|
-
var NoopTextMapPropagator_1 = require_NoopTextMapPropagator();
|
|
18720
|
-
var TextMapPropagator_1 = require_TextMapPropagator();
|
|
18721
|
-
var context_helpers_1 = require_context_helpers();
|
|
18722
|
-
var utils_1 = require_utils();
|
|
18723
|
-
var diag_1 = require_diag();
|
|
18724
|
-
var API_NAME = "propagation";
|
|
18725
|
-
var NOOP_TEXT_MAP_PROPAGATOR = new NoopTextMapPropagator_1.NoopTextMapPropagator;
|
|
18726
|
-
|
|
18727
|
-
class PropagationAPI {
|
|
18728
|
-
constructor() {
|
|
18729
|
-
this.createBaggage = utils_1.createBaggage;
|
|
18730
|
-
this.getBaggage = context_helpers_1.getBaggage;
|
|
18731
|
-
this.getActiveBaggage = context_helpers_1.getActiveBaggage;
|
|
18732
|
-
this.setBaggage = context_helpers_1.setBaggage;
|
|
18733
|
-
this.deleteBaggage = context_helpers_1.deleteBaggage;
|
|
18734
|
-
}
|
|
18735
|
-
static getInstance() {
|
|
18736
|
-
if (!this._instance) {
|
|
18737
|
-
this._instance = new PropagationAPI;
|
|
18738
|
-
}
|
|
18739
|
-
return this._instance;
|
|
18740
|
-
}
|
|
18741
|
-
setGlobalPropagator(propagator) {
|
|
18742
|
-
return (0, global_utils_1.registerGlobal)(API_NAME, propagator, diag_1.DiagAPI.instance());
|
|
18743
|
-
}
|
|
18744
|
-
inject(context, carrier, setter = TextMapPropagator_1.defaultTextMapSetter) {
|
|
18745
|
-
return this._getGlobalPropagator().inject(context, carrier, setter);
|
|
18746
|
-
}
|
|
18747
|
-
extract(context, carrier, getter = TextMapPropagator_1.defaultTextMapGetter) {
|
|
18748
|
-
return this._getGlobalPropagator().extract(context, carrier, getter);
|
|
18749
|
-
}
|
|
18750
|
-
fields() {
|
|
18751
|
-
return this._getGlobalPropagator().fields();
|
|
18752
|
-
}
|
|
18753
|
-
disable() {
|
|
18754
|
-
(0, global_utils_1.unregisterGlobal)(API_NAME, diag_1.DiagAPI.instance());
|
|
18755
|
-
}
|
|
18756
|
-
_getGlobalPropagator() {
|
|
18757
|
-
return (0, global_utils_1.getGlobal)(API_NAME) || NOOP_TEXT_MAP_PROPAGATOR;
|
|
18758
|
-
}
|
|
18759
|
-
}
|
|
18760
|
-
exports.PropagationAPI = PropagationAPI;
|
|
18761
|
-
});
|
|
18762
|
-
|
|
18763
|
-
// ../../node_modules/@opentelemetry/api/build/src/propagation-api.js
|
|
18764
|
-
var require_propagation_api = __commonJS((exports) => {
|
|
18765
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18766
|
-
exports.propagation = undefined;
|
|
18767
|
-
var propagation_1 = require_propagation();
|
|
18768
|
-
exports.propagation = propagation_1.PropagationAPI.getInstance();
|
|
18769
|
-
});
|
|
18770
|
-
|
|
18771
|
-
// ../../node_modules/@opentelemetry/api/build/src/api/trace.js
|
|
18772
|
-
var require_trace = __commonJS((exports) => {
|
|
18773
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18774
|
-
exports.TraceAPI = undefined;
|
|
18775
|
-
var global_utils_1 = require_global_utils();
|
|
18776
|
-
var ProxyTracerProvider_1 = require_ProxyTracerProvider();
|
|
18777
|
-
var spancontext_utils_1 = require_spancontext_utils();
|
|
18778
|
-
var context_utils_1 = require_context_utils();
|
|
18779
|
-
var diag_1 = require_diag();
|
|
18780
|
-
var API_NAME = "trace";
|
|
18781
|
-
|
|
18782
|
-
class TraceAPI {
|
|
18783
|
-
constructor() {
|
|
18784
|
-
this._proxyTracerProvider = new ProxyTracerProvider_1.ProxyTracerProvider;
|
|
18785
|
-
this.wrapSpanContext = spancontext_utils_1.wrapSpanContext;
|
|
18786
|
-
this.isSpanContextValid = spancontext_utils_1.isSpanContextValid;
|
|
18787
|
-
this.deleteSpan = context_utils_1.deleteSpan;
|
|
18788
|
-
this.getSpan = context_utils_1.getSpan;
|
|
18789
|
-
this.getActiveSpan = context_utils_1.getActiveSpan;
|
|
18790
|
-
this.getSpanContext = context_utils_1.getSpanContext;
|
|
18791
|
-
this.setSpan = context_utils_1.setSpan;
|
|
18792
|
-
this.setSpanContext = context_utils_1.setSpanContext;
|
|
18793
|
-
}
|
|
18794
|
-
static getInstance() {
|
|
18795
|
-
if (!this._instance) {
|
|
18796
|
-
this._instance = new TraceAPI;
|
|
18797
|
-
}
|
|
18798
|
-
return this._instance;
|
|
18799
|
-
}
|
|
18800
|
-
setGlobalTracerProvider(provider) {
|
|
18801
|
-
const success3 = (0, global_utils_1.registerGlobal)(API_NAME, this._proxyTracerProvider, diag_1.DiagAPI.instance());
|
|
18802
|
-
if (success3) {
|
|
18803
|
-
this._proxyTracerProvider.setDelegate(provider);
|
|
18804
|
-
}
|
|
18805
|
-
return success3;
|
|
18806
|
-
}
|
|
18807
|
-
getTracerProvider() {
|
|
18808
|
-
return (0, global_utils_1.getGlobal)(API_NAME) || this._proxyTracerProvider;
|
|
18809
|
-
}
|
|
18810
|
-
getTracer(name, version2) {
|
|
18811
|
-
return this.getTracerProvider().getTracer(name, version2);
|
|
18812
|
-
}
|
|
18813
|
-
disable() {
|
|
18814
|
-
(0, global_utils_1.unregisterGlobal)(API_NAME, diag_1.DiagAPI.instance());
|
|
18815
|
-
this._proxyTracerProvider = new ProxyTracerProvider_1.ProxyTracerProvider;
|
|
18816
|
-
}
|
|
18817
|
-
}
|
|
18818
|
-
exports.TraceAPI = TraceAPI;
|
|
18819
|
-
});
|
|
18820
|
-
|
|
18821
|
-
// ../../node_modules/@opentelemetry/api/build/src/trace-api.js
|
|
18822
|
-
var require_trace_api = __commonJS((exports) => {
|
|
18823
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18824
|
-
exports.trace = undefined;
|
|
18825
|
-
var trace_1 = require_trace();
|
|
18826
|
-
exports.trace = trace_1.TraceAPI.getInstance();
|
|
18827
|
-
});
|
|
18828
|
-
|
|
18829
|
-
// ../../node_modules/@opentelemetry/api/build/src/index.js
|
|
18830
|
-
var require_src = __commonJS((exports) => {
|
|
18831
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18832
|
-
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;
|
|
18833
|
-
var utils_1 = require_utils();
|
|
18834
|
-
Object.defineProperty(exports, "baggageEntryMetadataFromString", { enumerable: true, get: function() {
|
|
18835
|
-
return utils_1.baggageEntryMetadataFromString;
|
|
18836
|
-
} });
|
|
18837
|
-
var context_1 = require_context();
|
|
18838
|
-
Object.defineProperty(exports, "createContextKey", { enumerable: true, get: function() {
|
|
18839
|
-
return context_1.createContextKey;
|
|
18840
|
-
} });
|
|
18841
|
-
Object.defineProperty(exports, "ROOT_CONTEXT", { enumerable: true, get: function() {
|
|
18842
|
-
return context_1.ROOT_CONTEXT;
|
|
18843
|
-
} });
|
|
18844
|
-
var consoleLogger_1 = require_consoleLogger();
|
|
18845
|
-
Object.defineProperty(exports, "DiagConsoleLogger", { enumerable: true, get: function() {
|
|
18846
|
-
return consoleLogger_1.DiagConsoleLogger;
|
|
18847
|
-
} });
|
|
18848
|
-
var types_1 = require_types();
|
|
18849
|
-
Object.defineProperty(exports, "DiagLogLevel", { enumerable: true, get: function() {
|
|
18850
|
-
return types_1.DiagLogLevel;
|
|
18851
|
-
} });
|
|
18852
|
-
var NoopMeter_1 = require_NoopMeter();
|
|
18853
|
-
Object.defineProperty(exports, "createNoopMeter", { enumerable: true, get: function() {
|
|
18854
|
-
return NoopMeter_1.createNoopMeter;
|
|
18855
|
-
} });
|
|
18856
|
-
var Metric_1 = require_Metric();
|
|
18857
|
-
Object.defineProperty(exports, "ValueType", { enumerable: true, get: function() {
|
|
18858
|
-
return Metric_1.ValueType;
|
|
18859
|
-
} });
|
|
18860
|
-
var TextMapPropagator_1 = require_TextMapPropagator();
|
|
18861
|
-
Object.defineProperty(exports, "defaultTextMapGetter", { enumerable: true, get: function() {
|
|
18862
|
-
return TextMapPropagator_1.defaultTextMapGetter;
|
|
18863
|
-
} });
|
|
18864
|
-
Object.defineProperty(exports, "defaultTextMapSetter", { enumerable: true, get: function() {
|
|
18865
|
-
return TextMapPropagator_1.defaultTextMapSetter;
|
|
18866
|
-
} });
|
|
18867
|
-
var ProxyTracer_1 = require_ProxyTracer();
|
|
18868
|
-
Object.defineProperty(exports, "ProxyTracer", { enumerable: true, get: function() {
|
|
18869
|
-
return ProxyTracer_1.ProxyTracer;
|
|
18870
|
-
} });
|
|
18871
|
-
var ProxyTracerProvider_1 = require_ProxyTracerProvider();
|
|
18872
|
-
Object.defineProperty(exports, "ProxyTracerProvider", { enumerable: true, get: function() {
|
|
18873
|
-
return ProxyTracerProvider_1.ProxyTracerProvider;
|
|
18874
|
-
} });
|
|
18875
|
-
var SamplingResult_1 = require_SamplingResult();
|
|
18876
|
-
Object.defineProperty(exports, "SamplingDecision", { enumerable: true, get: function() {
|
|
18877
|
-
return SamplingResult_1.SamplingDecision;
|
|
18878
|
-
} });
|
|
18879
|
-
var span_kind_1 = require_span_kind();
|
|
18880
|
-
Object.defineProperty(exports, "SpanKind", { enumerable: true, get: function() {
|
|
18881
|
-
return span_kind_1.SpanKind;
|
|
18882
|
-
} });
|
|
18883
|
-
var status_1 = require_status();
|
|
18884
|
-
Object.defineProperty(exports, "SpanStatusCode", { enumerable: true, get: function() {
|
|
18885
|
-
return status_1.SpanStatusCode;
|
|
18886
|
-
} });
|
|
18887
|
-
var trace_flags_1 = require_trace_flags();
|
|
18888
|
-
Object.defineProperty(exports, "TraceFlags", { enumerable: true, get: function() {
|
|
18889
|
-
return trace_flags_1.TraceFlags;
|
|
18890
|
-
} });
|
|
18891
|
-
var utils_2 = require_utils2();
|
|
18892
|
-
Object.defineProperty(exports, "createTraceState", { enumerable: true, get: function() {
|
|
18893
|
-
return utils_2.createTraceState;
|
|
18894
|
-
} });
|
|
18895
|
-
var spancontext_utils_1 = require_spancontext_utils();
|
|
18896
|
-
Object.defineProperty(exports, "isSpanContextValid", { enumerable: true, get: function() {
|
|
18897
|
-
return spancontext_utils_1.isSpanContextValid;
|
|
18898
|
-
} });
|
|
18899
|
-
Object.defineProperty(exports, "isValidTraceId", { enumerable: true, get: function() {
|
|
18900
|
-
return spancontext_utils_1.isValidTraceId;
|
|
18901
|
-
} });
|
|
18902
|
-
Object.defineProperty(exports, "isValidSpanId", { enumerable: true, get: function() {
|
|
18903
|
-
return spancontext_utils_1.isValidSpanId;
|
|
18904
|
-
} });
|
|
18905
|
-
var invalid_span_constants_1 = require_invalid_span_constants();
|
|
18906
|
-
Object.defineProperty(exports, "INVALID_SPANID", { enumerable: true, get: function() {
|
|
18907
|
-
return invalid_span_constants_1.INVALID_SPANID;
|
|
18908
|
-
} });
|
|
18909
|
-
Object.defineProperty(exports, "INVALID_TRACEID", { enumerable: true, get: function() {
|
|
18910
|
-
return invalid_span_constants_1.INVALID_TRACEID;
|
|
18911
|
-
} });
|
|
18912
|
-
Object.defineProperty(exports, "INVALID_SPAN_CONTEXT", { enumerable: true, get: function() {
|
|
18913
|
-
return invalid_span_constants_1.INVALID_SPAN_CONTEXT;
|
|
18914
|
-
} });
|
|
18915
|
-
var context_api_1 = require_context_api();
|
|
18916
|
-
Object.defineProperty(exports, "context", { enumerable: true, get: function() {
|
|
18917
|
-
return context_api_1.context;
|
|
18918
|
-
} });
|
|
18919
|
-
var diag_api_1 = require_diag_api();
|
|
18920
|
-
Object.defineProperty(exports, "diag", { enumerable: true, get: function() {
|
|
18921
|
-
return diag_api_1.diag;
|
|
18922
|
-
} });
|
|
18923
|
-
var metrics_api_1 = require_metrics_api();
|
|
18924
|
-
Object.defineProperty(exports, "metrics", { enumerable: true, get: function() {
|
|
18925
|
-
return metrics_api_1.metrics;
|
|
18926
|
-
} });
|
|
18927
|
-
var propagation_api_1 = require_propagation_api();
|
|
18928
|
-
Object.defineProperty(exports, "propagation", { enumerable: true, get: function() {
|
|
18929
|
-
return propagation_api_1.propagation;
|
|
18930
|
-
} });
|
|
18931
|
-
var trace_api_1 = require_trace_api();
|
|
18932
|
-
Object.defineProperty(exports, "trace", { enumerable: true, get: function() {
|
|
18933
|
-
return trace_api_1.trace;
|
|
18934
|
-
} });
|
|
18935
|
-
exports.default = {
|
|
18936
|
-
context: context_api_1.context,
|
|
18937
|
-
diag: diag_api_1.diag,
|
|
18938
|
-
metrics: metrics_api_1.metrics,
|
|
18939
|
-
propagation: propagation_api_1.propagation,
|
|
18940
|
-
trace: trace_api_1.trace
|
|
18941
|
-
};
|
|
18942
|
-
});
|
|
18943
|
-
|
|
18944
|
-
// ../types/src/processor/processor.ts
|
|
18945
|
-
var import_api, noopTracingContext, ProcessorPortSchema, ProcessorDefinitionSchema, ProcessorExecutionContextSchema, TraceStatus;
|
|
18946
|
-
var init_processor = __esm(() => {
|
|
18947
|
-
init_zod();
|
|
18948
|
-
init_common();
|
|
18949
|
-
import_api = __toESM(require_src(), 1);
|
|
18950
|
-
noopTracingContext = {
|
|
18951
|
-
traceId: "",
|
|
18952
|
-
getActiveSpan() {
|
|
18953
|
-
return;
|
|
18954
|
-
},
|
|
18955
|
-
async withSpan(_name, _options, fn) {
|
|
18956
|
-
const noopSpan = {
|
|
18957
|
-
spanContext: () => ({
|
|
18958
|
-
traceId: "",
|
|
18959
|
-
spanId: "",
|
|
18960
|
-
traceFlags: 0
|
|
18961
|
-
}),
|
|
18962
|
-
setAttribute: () => noopSpan,
|
|
18963
|
-
setAttributes: () => noopSpan,
|
|
18964
|
-
addEvent: () => noopSpan,
|
|
18965
|
-
addLink: () => noopSpan,
|
|
18966
|
-
addLinks: () => noopSpan,
|
|
18967
|
-
setStatus: () => noopSpan,
|
|
18968
|
-
updateName: () => noopSpan,
|
|
18969
|
-
end: () => {},
|
|
18970
|
-
isRecording: () => false,
|
|
18971
|
-
recordException: () => {}
|
|
18972
|
-
};
|
|
18973
|
-
return fn(noopSpan);
|
|
18974
|
-
}
|
|
18975
|
-
};
|
|
18976
|
-
ProcessorPortSchema = exports_external.object({
|
|
18977
|
-
name: exports_external.string(),
|
|
18978
|
-
schema: JsonSchemaSchema,
|
|
18979
|
-
required: exports_external.boolean().default(true)
|
|
18980
|
-
});
|
|
18981
|
-
ProcessorDefinitionSchema = exports_external.object({
|
|
18982
|
-
id: exports_external.string(),
|
|
18983
|
-
name: exports_external.string(),
|
|
18984
|
-
description: exports_external.string().optional(),
|
|
18985
|
-
inputSchema: JsonSchemaSchema,
|
|
18986
|
-
outputSchema: JsonSchemaSchema,
|
|
18987
|
-
configSchema: JsonSchemaSchema.optional(),
|
|
18988
|
-
inputPorts: exports_external.array(ProcessorPortSchema).optional(),
|
|
18989
|
-
outputPorts: exports_external.array(ProcessorPortSchema).optional(),
|
|
18990
|
-
isBuiltin: exports_external.boolean().default(true),
|
|
18991
|
-
pluginName: exports_external.string().optional()
|
|
18992
|
-
});
|
|
18993
|
-
ProcessorExecutionContextSchema = exports_external.object({
|
|
18994
|
-
jobId: exports_external.string(),
|
|
18995
|
-
stepId: exports_external.string(),
|
|
18996
|
-
tenantId: exports_external.string(),
|
|
18997
|
-
automationId: exports_external.string().optional(),
|
|
18998
|
-
workflowId: exports_external.string(),
|
|
18999
|
-
workerId: exports_external.string().optional()
|
|
19000
|
-
});
|
|
19001
|
-
((TraceStatus2) => {
|
|
19002
|
-
TraceStatus2["PENDING"] = "pending";
|
|
19003
|
-
TraceStatus2["RUNNING"] = "running";
|
|
19004
|
-
TraceStatus2["COMPLETED"] = "completed";
|
|
19005
|
-
TraceStatus2["FAILED"] = "failed";
|
|
19006
|
-
})(TraceStatus ||= {});
|
|
19007
|
-
});
|
|
19008
|
-
|
|
19009
|
-
// ../types/src/processor/execution.ts
|
|
19010
|
-
function asTuple(values) {
|
|
19011
|
-
return values;
|
|
19012
|
-
}
|
|
19013
|
-
var WorkflowExecutionStatusValue, WorkflowExecutionStatusSchema, StepExecutionStatusValue, StepExecutionStatusSchema, TriggerTypeValue, TriggerTypeSchema, ExecutionTypeValue, ExecutionTypeSchema, WORKFLOW_EXECUTION_STATUSES, STEP_EXECUTION_STATUSES, TRIGGER_TYPES, EXECUTION_TYPES;
|
|
19014
|
-
var init_execution = __esm(() => {
|
|
19015
|
-
init_zod();
|
|
19016
|
-
WorkflowExecutionStatusValue = {
|
|
19017
|
-
CREATED: "created",
|
|
19018
|
-
PENDING: "pending",
|
|
19019
|
-
RUNNING: "running",
|
|
19020
|
-
WAITING: "waiting",
|
|
19021
|
-
COMPLETED: "completed",
|
|
19022
|
-
FAILED: "failed",
|
|
19023
|
-
CANCELLED: "cancelled"
|
|
19024
|
-
};
|
|
19025
|
-
WorkflowExecutionStatusSchema = exports_external.enum([
|
|
19026
|
-
WorkflowExecutionStatusValue.CREATED,
|
|
19027
|
-
WorkflowExecutionStatusValue.PENDING,
|
|
19028
|
-
WorkflowExecutionStatusValue.RUNNING,
|
|
19029
|
-
WorkflowExecutionStatusValue.WAITING,
|
|
19030
|
-
WorkflowExecutionStatusValue.COMPLETED,
|
|
19031
|
-
WorkflowExecutionStatusValue.FAILED,
|
|
19032
|
-
WorkflowExecutionStatusValue.CANCELLED
|
|
19033
|
-
]);
|
|
19034
|
-
StepExecutionStatusValue = {
|
|
19035
|
-
PENDING: "pending",
|
|
19036
|
-
RUNNING: "running",
|
|
19037
|
-
SUCCESS: "success",
|
|
19038
|
-
FAILURE: "failure",
|
|
19039
|
-
WAITING: "waiting",
|
|
19040
|
-
SKIPPED: "skipped"
|
|
19041
|
-
};
|
|
19042
|
-
StepExecutionStatusSchema = exports_external.enum([
|
|
19043
|
-
StepExecutionStatusValue.PENDING,
|
|
19044
|
-
StepExecutionStatusValue.RUNNING,
|
|
19045
|
-
StepExecutionStatusValue.SUCCESS,
|
|
19046
|
-
StepExecutionStatusValue.FAILURE,
|
|
19047
|
-
StepExecutionStatusValue.WAITING,
|
|
19048
|
-
StepExecutionStatusValue.SKIPPED
|
|
19049
|
-
]);
|
|
19050
|
-
TriggerTypeValue = {
|
|
19051
|
-
MANUAL: "manual",
|
|
19052
|
-
API: "api",
|
|
19053
|
-
WEBHOOK: "webhook",
|
|
19054
|
-
SCHEDULE: "schedule",
|
|
19055
|
-
EMAIL: "email",
|
|
19056
|
-
EVAL: "eval",
|
|
19057
|
-
CLI: "cli"
|
|
19058
|
-
};
|
|
19059
|
-
TriggerTypeSchema = exports_external.enum([
|
|
19060
|
-
TriggerTypeValue.MANUAL,
|
|
19061
|
-
TriggerTypeValue.API,
|
|
19062
|
-
TriggerTypeValue.WEBHOOK,
|
|
19063
|
-
TriggerTypeValue.SCHEDULE,
|
|
19064
|
-
TriggerTypeValue.EMAIL,
|
|
19065
|
-
TriggerTypeValue.EVAL,
|
|
19066
|
-
TriggerTypeValue.CLI
|
|
19067
|
-
]);
|
|
19068
|
-
ExecutionTypeValue = {
|
|
19069
|
-
PROD: "prod",
|
|
19070
|
-
EVAL: "eval",
|
|
19071
|
-
PLAYGROUND: "playground"
|
|
19072
|
-
};
|
|
19073
|
-
ExecutionTypeSchema = exports_external.enum([
|
|
19074
|
-
ExecutionTypeValue.PROD,
|
|
19075
|
-
ExecutionTypeValue.EVAL,
|
|
19076
|
-
ExecutionTypeValue.PLAYGROUND
|
|
19077
|
-
]);
|
|
19078
|
-
WORKFLOW_EXECUTION_STATUSES = asTuple(WorkflowExecutionStatusSchema.options);
|
|
19079
|
-
STEP_EXECUTION_STATUSES = asTuple(StepExecutionStatusSchema.options);
|
|
19080
|
-
TRIGGER_TYPES = TriggerTypeSchema.options;
|
|
19081
|
-
EXECUTION_TYPES = ExecutionTypeSchema.options;
|
|
19082
|
-
});
|
|
19083
|
-
|
|
19084
|
-
// ../types/src/processor/configs/classify.ts
|
|
19085
|
-
var ClassifyInputSchema, ClassifyLabelSchema, ClassifyConfigSchema, ClassifyOutputSchema;
|
|
19086
|
-
var init_classify = __esm(() => {
|
|
19087
|
-
init_zod();
|
|
19088
|
-
ClassifyInputSchema = exports_external.object({
|
|
19089
|
-
content: exports_external.string().optional().describe("Text content to classify"),
|
|
19090
|
-
text: exports_external.string().optional().describe("Text content (alternative to content)")
|
|
19091
|
-
}).refine((data) => !!(data.content || data.text), {
|
|
19092
|
-
message: "Either content or text must be provided"
|
|
19093
|
-
});
|
|
19094
|
-
ClassifyLabelSchema = exports_external.object({
|
|
19095
|
-
name: exports_external.string().min(1).describe("Label value returned in output.label"),
|
|
19096
|
-
description: exports_external.string().optional().describe("What documents fall into this label. Fed to the LLM as guidance.")
|
|
19097
|
-
});
|
|
19098
|
-
ClassifyConfigSchema = exports_external.object({
|
|
19099
|
-
labels: exports_external.array(ClassifyLabelSchema).min(2).describe("Allowed labels. The LLM is constrained to pick exactly one of these names."),
|
|
19100
|
-
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."),
|
|
19101
|
-
provider: exports_external.string().optional().describe('Provider ID (e.g., "openai-gpt4o-mini")'),
|
|
19102
|
-
model: exports_external.string().optional().describe("Model override"),
|
|
19103
|
-
maxInputTokens: exports_external.number().int().optional().describe("Max input tokens. Truncates input text when exceeded. Omit for no limit.")
|
|
19104
|
-
});
|
|
19105
|
-
ClassifyOutputSchema = exports_external.object({
|
|
19106
|
-
label: exports_external.string().describe("The selected label name"),
|
|
19107
|
-
confidence: exports_external.enum(["low", "medium", "high"]).describe("Coarse confidence in the classification"),
|
|
19108
|
-
reason: exports_external.string().describe("Short justification for the chosen label")
|
|
19109
|
-
});
|
|
19110
|
-
});
|
|
19111
|
-
|
|
19112
|
-
// ../types/src/parser/parser.ts
|
|
19113
|
-
function resolveEffectiveMimeType(filename, declaredMimeType) {
|
|
19114
|
-
const ext = filename.split(".").pop()?.toLowerCase();
|
|
19115
|
-
if (!ext)
|
|
19116
|
-
return declaredMimeType;
|
|
19117
|
-
const extensionMime = EXTENSION_TO_MIME[ext];
|
|
19118
|
-
return extensionMime ?? declaredMimeType;
|
|
19119
|
-
}
|
|
19120
|
-
function mimeTypeForExtension(extension) {
|
|
19121
|
-
return EXTENSION_TO_MIME[extension.replace(/^\./, "").toLowerCase()];
|
|
19122
|
-
}
|
|
19123
|
-
function extensionForMimeType(mimeType) {
|
|
19124
|
-
const base = mimeType.split(";")[0]?.trim().toLowerCase();
|
|
19125
|
-
return base ? MIME_TO_EXTENSION[base] : undefined;
|
|
19126
|
-
}
|
|
19127
|
-
function getParserCategory(mimeType) {
|
|
19128
|
-
const normalized = mimeType.toLowerCase().trim();
|
|
19129
|
-
if (ParserCategory.PLAINTEXT.includes(normalized)) {
|
|
19130
|
-
return "plaintext";
|
|
19131
|
-
}
|
|
19132
|
-
if (ParserCategory.OFFICE.includes(normalized)) {
|
|
19133
|
-
return "office";
|
|
19134
|
-
}
|
|
19135
|
-
if (ParserCategory.DOCUMENT.includes(normalized)) {
|
|
19136
|
-
return "document";
|
|
19137
|
-
}
|
|
19138
|
-
return null;
|
|
19139
|
-
}
|
|
19140
|
-
function requiresSpecializedParser(mimeType) {
|
|
19141
|
-
return getParserCategory(mimeType) === "document";
|
|
19142
|
-
}
|
|
19143
|
-
function getAllSupportedMimeTypes() {
|
|
19144
|
-
return [...ParserCategory.PLAINTEXT, ...ParserCategory.OFFICE, ...ParserCategory.DOCUMENT];
|
|
19145
|
-
}
|
|
19146
|
-
function getSupportedFormatsLabel() {
|
|
19147
|
-
const allMimes = getAllSupportedMimeTypes();
|
|
19148
|
-
const labels = [...new Set(allMimes.map((m) => MIME_TO_LABEL[m] ?? m))];
|
|
19149
|
-
return labels.join(", ");
|
|
19150
|
-
}
|
|
19151
|
-
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_EXTENSION, MIME_TO_LABEL;
|
|
19152
|
-
var init_parser = __esm(() => {
|
|
19153
|
-
init_zod();
|
|
19154
|
-
OFFICE_MIME_TYPES = [
|
|
19155
|
-
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
19156
|
-
"application/msword",
|
|
19157
|
-
"application/vnd.oasis.opendocument.text",
|
|
19158
|
-
"application/rtf",
|
|
19159
|
-
"text/rtf",
|
|
19160
|
-
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
19161
|
-
"application/vnd.ms-excel",
|
|
19162
|
-
"application/vnd.ms-excel.sheet.macroenabled.12",
|
|
19163
|
-
"application/vnd.ms-excel.sheet.binary.macroenabled.12",
|
|
19164
|
-
"application/vnd.oasis.opendocument.spreadsheet",
|
|
19165
|
-
"application/vnd.openxmlformats-officedocument.presentationml.presentation",
|
|
19166
|
-
"application/vnd.openxmlformats-officedocument.presentationml.slideshow",
|
|
19167
|
-
"application/vnd.ms-powerpoint.presentation.macroenabled.12",
|
|
19168
|
-
"application/vnd.ms-powerpoint",
|
|
19169
|
-
"application/vnd.oasis.opendocument.presentation",
|
|
19170
|
-
"message/rfc822",
|
|
19171
|
-
"application/vnd.ms-outlook",
|
|
19172
|
-
"application/epub+zip"
|
|
19173
|
-
];
|
|
19174
|
-
ParserCategory = {
|
|
19175
|
-
PLAINTEXT: [
|
|
19176
|
-
"text/plain",
|
|
19177
|
-
"text/markdown",
|
|
19178
|
-
"text/csv",
|
|
19179
|
-
"text/tab-separated-values",
|
|
19180
|
-
"text/html",
|
|
19181
|
-
"text/xml",
|
|
19182
|
-
"application/json",
|
|
19183
|
-
"application/x-yaml",
|
|
19184
|
-
"application/toml",
|
|
19185
|
-
"image/svg+xml",
|
|
19186
|
-
"text/x-rst",
|
|
19187
|
-
"text/x-org",
|
|
19188
|
-
"application/x-latex",
|
|
19189
|
-
"application/x-ipynb+json",
|
|
19190
|
-
"application/x-bibtex",
|
|
19191
|
-
"application/docbook+xml",
|
|
19192
|
-
"application/x-fictionbook+xml"
|
|
19193
|
-
],
|
|
19194
|
-
OFFICE: [...OFFICE_MIME_TYPES],
|
|
19195
|
-
DOCUMENT: [
|
|
19196
|
-
"application/pdf",
|
|
19197
|
-
"image/png",
|
|
19198
|
-
"image/jpeg",
|
|
19199
|
-
"image/webp",
|
|
19200
|
-
"image/tiff",
|
|
19201
|
-
"image/gif",
|
|
19202
|
-
"image/bmp"
|
|
19203
|
-
]
|
|
19204
|
-
};
|
|
19205
|
-
ParserTypeSchema = exports_external.enum([
|
|
19206
|
-
"plaintext",
|
|
19207
|
-
"office",
|
|
19208
|
-
"llm-vision",
|
|
19209
|
-
"ocr"
|
|
19210
|
-
]);
|
|
19211
|
-
DocumentMetadataSchema = exports_external.object({
|
|
19212
|
-
filename: exports_external.string(),
|
|
19213
|
-
mimeType: exports_external.string(),
|
|
19214
|
-
size: exports_external.number().describe("File size in bytes"),
|
|
19215
|
-
storageRef: exports_external.string().optional().describe("Storage reference for the original file")
|
|
19216
|
-
});
|
|
19217
|
-
ParseUsageSchema = exports_external.object({
|
|
19218
|
-
pageCount: exports_external.number(),
|
|
19219
|
-
processingTimeMs: exports_external.number().optional()
|
|
19220
|
-
});
|
|
19221
|
-
CoordinateUnitSchema = exports_external.enum(["pixel", "inch", "point", "normalized"]);
|
|
19222
|
-
PointSchema = exports_external.object({
|
|
19223
|
-
x: exports_external.number(),
|
|
19224
|
-
y: exports_external.number()
|
|
19225
|
-
});
|
|
19226
|
-
BoundingRegionSchema = exports_external.object({
|
|
19227
|
-
polygon: exports_external.array(PointSchema).min(3),
|
|
19228
|
-
unit: CoordinateUnitSchema,
|
|
19229
|
-
pageIndex: exports_external.number()
|
|
19230
|
-
});
|
|
19231
|
-
PositionedTextSchema = exports_external.object({
|
|
19232
|
-
text: exports_external.string(),
|
|
19233
|
-
confidence: exports_external.number().min(0).max(1).optional(),
|
|
19234
|
-
boundingRegion: BoundingRegionSchema.optional()
|
|
19235
|
-
});
|
|
19236
|
-
TableCellSchema = exports_external.object({
|
|
19237
|
-
content: exports_external.string(),
|
|
19238
|
-
rowIndex: exports_external.number(),
|
|
19239
|
-
columnIndex: exports_external.number(),
|
|
19240
|
-
rowSpan: exports_external.number().default(1),
|
|
19241
|
-
columnSpan: exports_external.number().default(1),
|
|
19242
|
-
boundingRegion: BoundingRegionSchema.optional()
|
|
19243
|
-
});
|
|
19244
|
-
ExtractedTableSchema = exports_external.object({
|
|
19245
|
-
cells: exports_external.array(TableCellSchema),
|
|
19246
|
-
rowCount: exports_external.number(),
|
|
19247
|
-
columnCount: exports_external.number(),
|
|
19248
|
-
boundingRegion: BoundingRegionSchema.optional()
|
|
19249
|
-
});
|
|
19250
|
-
LayoutElementTypeSchema = exports_external.enum([
|
|
19251
|
-
"paragraph",
|
|
19252
|
-
"title",
|
|
19253
|
-
"sectionHeading",
|
|
19254
|
-
"pageHeader",
|
|
19255
|
-
"pageFooter",
|
|
19256
|
-
"pageNumber",
|
|
19257
|
-
"footnote",
|
|
19258
|
-
"table",
|
|
19259
|
-
"figure",
|
|
19260
|
-
"formulaBlock"
|
|
19261
|
-
]);
|
|
19262
|
-
LayoutElementSchema = exports_external.object({
|
|
19263
|
-
type: LayoutElementTypeSchema,
|
|
19264
|
-
content: exports_external.string(),
|
|
19265
|
-
table: ExtractedTableSchema.optional(),
|
|
19266
|
-
caption: exports_external.string().optional(),
|
|
19267
|
-
figureId: exports_external.string().optional(),
|
|
19268
|
-
boundingRegion: BoundingRegionSchema.optional()
|
|
19269
|
-
});
|
|
19270
|
-
PageResultSchema = exports_external.object({
|
|
19271
|
-
pageIndex: exports_external.number().describe("0-based page index"),
|
|
19272
|
-
text: exports_external.string().describe("Extracted text content (markdown/HTML)"),
|
|
19273
|
-
pageName: exports_external.string().optional().describe("Page/sheet name (e.g., Excel sheet name)"),
|
|
19274
|
-
layoutElements: exports_external.array(LayoutElementSchema).optional().describe("Semantic layout elements in reading order"),
|
|
19275
|
-
words: exports_external.array(PositionedTextSchema).optional().describe("Word-level positions"),
|
|
19276
|
-
lines: exports_external.array(PositionedTextSchema).optional().describe("Line-level positions"),
|
|
19277
|
-
tables: exports_external.array(ExtractedTableSchema).optional().describe("Extracted tables"),
|
|
19278
|
-
width: exports_external.number().optional().describe("Page width"),
|
|
19279
|
-
height: exports_external.number().optional().describe("Page height"),
|
|
19280
|
-
unit: CoordinateUnitSchema.optional().describe("Unit for width/height and bounding regions"),
|
|
19281
|
-
confidence: exports_external.number().min(0).max(1).optional().describe("Overall page confidence")
|
|
19282
|
-
});
|
|
19283
|
-
ParseResultSchema = exports_external.object({
|
|
19284
|
-
document: DocumentMetadataSchema,
|
|
19285
|
-
usage: ParseUsageSchema,
|
|
19286
|
-
pages: exports_external.array(PageResultSchema),
|
|
19287
|
-
text: exports_external.string().describe("Combined text from all pages"),
|
|
19288
|
-
parserType: ParserTypeSchema,
|
|
19289
|
-
parserVersion: exports_external.string().optional(),
|
|
19290
|
-
model: exports_external.string().optional().describe("Model used (for LLM/OCR parsers)"),
|
|
19291
|
-
rawResponse: exports_external.unknown().optional()
|
|
19292
|
-
});
|
|
19293
|
-
ParseOptionsSchema = exports_external.object({
|
|
19294
|
-
outputFormat: exports_external.enum(["plain", "markdown", "djot", "html"]).default("markdown"),
|
|
19295
|
-
ocrProvider: exports_external.string().optional().describe("OCR provider ID to use"),
|
|
19296
|
-
includeWordPositions: exports_external.boolean().default(false),
|
|
19297
|
-
includeLinePositions: exports_external.boolean().default(false),
|
|
19298
|
-
extractTables: exports_external.boolean().default(true),
|
|
19299
|
-
provider: exports_external.string().optional().describe("LLM provider ID to use"),
|
|
19300
|
-
model: exports_external.string().optional(),
|
|
19301
|
-
maxConcurrency: exports_external.number().min(1).max(30).default(3),
|
|
19302
|
-
pagesPerBatch: exports_external.number().min(1).max(20).default(5),
|
|
19303
|
-
prompt: exports_external.string().optional().describe("Custom prompt for LLM-based parsing"),
|
|
19304
|
-
languages: exports_external.array(exports_external.string()).optional().describe("OCR language hints"),
|
|
19305
|
-
tenantId: exports_external.string().optional()
|
|
19306
|
-
});
|
|
19307
|
-
ParserInputSchema = exports_external.object({
|
|
19308
|
-
data: exports_external.instanceof(Buffer).or(exports_external.instanceof(Uint8Array)),
|
|
19309
|
-
filename: exports_external.string(),
|
|
19310
|
-
mimeType: exports_external.string(),
|
|
19311
|
-
options: ParseOptionsSchema.optional()
|
|
19312
|
-
});
|
|
19313
|
-
EXTENSION_TO_MIME = {
|
|
19314
|
-
docx: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
19315
|
-
doc: "application/msword",
|
|
19316
|
-
odt: "application/vnd.oasis.opendocument.text",
|
|
19317
|
-
rtf: "application/rtf",
|
|
19318
|
-
xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
19319
|
-
xls: "application/vnd.ms-excel",
|
|
19320
|
-
xlsm: "application/vnd.ms-excel.sheet.macroenabled.12",
|
|
19321
|
-
xlsb: "application/vnd.ms-excel.sheet.binary.macroenabled.12",
|
|
19322
|
-
ods: "application/vnd.oasis.opendocument.spreadsheet",
|
|
19323
|
-
pptx: "application/vnd.openxmlformats-officedocument.presentationml.presentation",
|
|
19324
|
-
ppsx: "application/vnd.openxmlformats-officedocument.presentationml.slideshow",
|
|
19325
|
-
pptm: "application/vnd.ms-powerpoint.presentation.macroenabled.12",
|
|
19326
|
-
ppt: "application/vnd.ms-powerpoint",
|
|
19327
|
-
odp: "application/vnd.oasis.opendocument.presentation",
|
|
19328
|
-
eml: "message/rfc822",
|
|
19329
|
-
msg: "application/vnd.ms-outlook",
|
|
19330
|
-
epub: "application/epub+zip",
|
|
19331
|
-
pdf: "application/pdf",
|
|
19332
|
-
png: "image/png",
|
|
19333
|
-
jpg: "image/jpeg",
|
|
19334
|
-
jpeg: "image/jpeg",
|
|
19335
|
-
webp: "image/webp",
|
|
19336
|
-
tiff: "image/tiff",
|
|
19337
|
-
tif: "image/tiff",
|
|
19338
|
-
gif: "image/gif",
|
|
19339
|
-
bmp: "image/bmp",
|
|
19340
|
-
svg: "image/svg+xml",
|
|
19341
|
-
txt: "text/plain",
|
|
19342
|
-
md: "text/markdown",
|
|
19343
|
-
markdown: "text/markdown",
|
|
19344
|
-
csv: "text/csv",
|
|
19345
|
-
tsv: "text/tab-separated-values",
|
|
19346
|
-
html: "text/html",
|
|
19347
|
-
htm: "text/html",
|
|
19348
|
-
xml: "text/xml",
|
|
19349
|
-
json: "application/json",
|
|
19350
|
-
yaml: "application/x-yaml",
|
|
19351
|
-
yml: "application/x-yaml",
|
|
19352
|
-
toml: "application/toml",
|
|
19353
|
-
rst: "text/x-rst",
|
|
19354
|
-
org: "text/x-org",
|
|
19355
|
-
tex: "application/x-latex",
|
|
19356
|
-
latex: "application/x-latex",
|
|
19357
|
-
ipynb: "application/x-ipynb+json",
|
|
19358
|
-
bib: "application/x-bibtex",
|
|
19359
|
-
dbk: "application/docbook+xml",
|
|
19360
|
-
docbook: "application/docbook+xml",
|
|
19361
|
-
fb2: "application/x-fictionbook+xml"
|
|
19362
|
-
};
|
|
19363
|
-
MIME_TO_EXTENSION = Object.entries(EXTENSION_TO_MIME).reduce((acc, [ext, mime]) => {
|
|
19364
|
-
if (!(mime in acc))
|
|
19365
|
-
acc[mime] = ext;
|
|
19366
|
-
return acc;
|
|
19367
|
-
}, {});
|
|
19368
|
-
MIME_TO_LABEL = {
|
|
19369
|
-
"application/vnd.openxmlformats-officedocument.wordprocessingml.document": "DOCX",
|
|
19370
|
-
"application/msword": "DOC",
|
|
19371
|
-
"application/vnd.oasis.opendocument.text": "ODT",
|
|
19372
|
-
"application/rtf": "RTF",
|
|
19373
|
-
"text/rtf": "RTF",
|
|
19374
|
-
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": "XLSX",
|
|
19375
|
-
"application/vnd.ms-excel": "XLS",
|
|
19376
|
-
"application/vnd.ms-excel.sheet.macroenabled.12": "XLSM",
|
|
19377
|
-
"application/vnd.ms-excel.sheet.binary.macroenabled.12": "XLSB",
|
|
19378
|
-
"application/vnd.oasis.opendocument.spreadsheet": "ODS",
|
|
19379
|
-
"application/vnd.openxmlformats-officedocument.presentationml.presentation": "PPTX",
|
|
19380
|
-
"application/vnd.openxmlformats-officedocument.presentationml.slideshow": "PPSX",
|
|
19381
|
-
"application/vnd.ms-powerpoint.presentation.macroenabled.12": "PPTM",
|
|
19382
|
-
"application/vnd.ms-powerpoint": "PPT",
|
|
19383
|
-
"application/vnd.oasis.opendocument.presentation": "ODP",
|
|
19384
|
-
"message/rfc822": "EML",
|
|
19385
|
-
"application/vnd.ms-outlook": "MSG",
|
|
19386
|
-
"application/epub+zip": "EPUB",
|
|
19387
|
-
"application/pdf": "PDF",
|
|
19388
|
-
"image/png": "PNG",
|
|
19389
|
-
"image/jpeg": "JPEG",
|
|
19390
|
-
"image/webp": "WebP",
|
|
19391
|
-
"image/tiff": "TIFF",
|
|
19392
|
-
"image/gif": "GIF",
|
|
19393
|
-
"image/bmp": "BMP",
|
|
19394
|
-
"image/svg+xml": "SVG",
|
|
19395
|
-
"text/plain": "TXT",
|
|
19396
|
-
"text/markdown": "Markdown",
|
|
19397
|
-
"text/csv": "CSV",
|
|
19398
|
-
"text/tab-separated-values": "TSV",
|
|
19399
|
-
"text/html": "HTML",
|
|
19400
|
-
"text/xml": "XML",
|
|
19401
|
-
"application/json": "JSON",
|
|
19402
|
-
"application/x-yaml": "YAML",
|
|
19403
|
-
"application/toml": "TOML",
|
|
19404
|
-
"text/x-rst": "RST",
|
|
19405
|
-
"text/x-org": "Org",
|
|
19406
|
-
"application/x-latex": "LaTeX",
|
|
19407
|
-
"application/x-ipynb+json": "Jupyter",
|
|
19408
|
-
"application/x-bibtex": "BibTeX",
|
|
19409
|
-
"application/docbook+xml": "DocBook",
|
|
19410
|
-
"application/x-fictionbook+xml": "FB2"
|
|
19411
|
-
};
|
|
19412
|
-
});
|
|
19413
|
-
|
|
19414
|
-
// ../types/src/processor/configs/document-parser.ts
|
|
19415
|
-
var DocumentParserInputSchema, DocumentParserOutputSchema, DocumentParserConfigSchema;
|
|
19416
|
-
var init_document_parser = __esm(() => {
|
|
19417
|
-
init_zod();
|
|
19418
|
-
init_runtime_file_ref();
|
|
19419
|
-
init_parser();
|
|
19420
|
-
DocumentParserInputSchema = ResolvedProcessorFileSchema;
|
|
19421
|
-
DocumentParserOutputSchema = ParseResultSchema;
|
|
19422
|
-
DocumentParserConfigSchema = exports_external.object({
|
|
19423
|
-
ocrModel: exports_external.string().optional().describe("OCR provider ID for PDF/image parsing"),
|
|
19424
|
-
llmModel: exports_external.string().optional().describe("LLM provider ID for vision-based parsing"),
|
|
19425
|
-
maxConcurrency: exports_external.number().min(1).max(10).default(3).describe("Max concurrent VLM batch requests"),
|
|
19426
|
-
pagesPerBatch: exports_external.number().min(1).max(20).default(5).describe("Number of page images per VLM request"),
|
|
19427
|
-
prompt: exports_external.string().optional().describe("Custom extraction prompt"),
|
|
19428
|
-
nativeText: exports_external.boolean().default(false).optional().describe("Use native text extraction for PDFs with embedded text (no OCR/VLM)"),
|
|
19429
|
-
languages: exports_external.array(exports_external.string()).optional().describe('OCR language hints (e.g., ["en", "de"])'),
|
|
19430
|
-
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.")
|
|
19431
|
-
}).prefault({});
|
|
19432
|
-
});
|
|
19433
|
-
|
|
19434
|
-
// ../types/src/processor/configs/extract.ts
|
|
19435
|
-
var ExtractInputSchema, ExtractOutputSchema, ExtractConfigSchema;
|
|
19436
|
-
var init_extract = __esm(() => {
|
|
19437
|
-
init_zod();
|
|
19438
|
-
ExtractInputSchema = exports_external.object({
|
|
19439
|
-
content: exports_external.string().optional().describe("Text content to extract from"),
|
|
19440
|
-
text: exports_external.string().optional().describe("Text content (alternative to content, e.g., from document parser)"),
|
|
19441
|
-
contentType: exports_external.enum(["text", "image"]).default("text"),
|
|
19442
|
-
imageData: exports_external.string().optional(),
|
|
19443
|
-
imageMimeType: exports_external.string().optional()
|
|
19444
|
-
}).refine((data) => data.content || data.text, {
|
|
19445
|
-
message: "Either content or text must be provided"
|
|
19446
|
-
});
|
|
19447
|
-
ExtractOutputSchema = exports_external.record(exports_external.string(), exports_external.unknown()).describe("Extracted structured data matching the provided schema");
|
|
19448
|
-
ExtractConfigSchema = exports_external.object({
|
|
19449
|
-
schema: exports_external.record(exports_external.string(), exports_external.unknown()).describe("JSON Schema defining the structure to extract"),
|
|
19450
|
-
prompt: exports_external.string().optional().describe("Custom prompt template for extraction"),
|
|
19451
|
-
provider: exports_external.string().optional().describe('Provider ID to use (e.g., "openai-gpt4o", "anthropic-claude")'),
|
|
19452
|
-
model: exports_external.string().optional().describe("Model to use (overrides provider default)"),
|
|
19453
|
-
maxInputTokens: exports_external.number().int().optional().describe("Max input tokens. Truncates input text and logs a warning when exceeded. Omit for no limit.")
|
|
19454
|
-
});
|
|
19455
|
-
});
|
|
19456
|
-
|
|
19457
|
-
// ../types/src/processor/configs/merge.ts
|
|
19458
|
-
var MergeConfigSchema, MergeInputSchema, MergeOutputSchema;
|
|
19459
|
-
var init_merge = __esm(() => {
|
|
19460
|
-
init_zod();
|
|
19461
|
-
MergeConfigSchema = exports_external.object({
|
|
19462
|
-
preservePortNames: exports_external.boolean().default(true),
|
|
19463
|
-
outputKey: exports_external.string().optional()
|
|
19464
|
-
});
|
|
19465
|
-
MergeInputSchema = exports_external.record(exports_external.string(), exports_external.unknown());
|
|
19466
|
-
MergeOutputSchema = exports_external.object({
|
|
19467
|
-
items: exports_external.array(exports_external.unknown()),
|
|
19468
|
-
count: exports_external.number(),
|
|
19469
|
-
merged: exports_external.record(exports_external.string(), exports_external.unknown()).optional()
|
|
19470
|
-
});
|
|
19471
|
-
});
|
|
19472
|
-
|
|
19473
|
-
// ../types/src/processor/configs/pdf-embedder.ts
|
|
19474
|
-
var PdfEmbedderInputSchema, PdfEmbedderOutputSchema, PdfEmbedderConfigSchema;
|
|
19475
|
-
var init_pdf_embedder = __esm(() => {
|
|
19476
|
-
init_zod();
|
|
19477
|
-
init_runtime_file_ref();
|
|
19478
|
-
init_parser();
|
|
19479
|
-
PdfEmbedderInputSchema = exports_external.object({
|
|
19480
|
-
file: ResolvedProcessorFileSchema.describe("Resolved source file handle"),
|
|
19481
|
-
parseResult: exports_external.object({
|
|
19482
|
-
pages: exports_external.array(PageResultSchema),
|
|
19483
|
-
text: exports_external.string().optional()
|
|
19484
|
-
}).describe("Parse result from ai.parse step (must include word positions)")
|
|
19485
|
-
});
|
|
19486
|
-
PdfEmbedderOutputSchema = exports_external.object({
|
|
19487
|
-
fileId: exports_external.string().describe("File ID from files table"),
|
|
19488
|
-
pageCount: exports_external.number().describe("Number of pages in the output PDF"),
|
|
19489
|
-
wordCount: exports_external.number().describe("Number of words embedded"),
|
|
19490
|
-
text: exports_external.string().describe("Extracted text (from parse step)")
|
|
19491
|
-
});
|
|
19492
|
-
PdfEmbedderConfigSchema = exports_external.object({
|
|
19493
|
-
outputFilename: exports_external.string().optional().describe('Output filename - supports LiquidJS syntax e.g. "{{filename}}-searchable.pdf"'),
|
|
19494
|
-
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")
|
|
19495
|
-
}).prefault({});
|
|
19496
|
-
});
|
|
19497
|
-
|
|
19498
|
-
// ../types/src/processor/configs/split.ts
|
|
19499
|
-
var SplitInputSchema, SplitConfigSchema, ConfidenceLevelSchema, SplitOutputSchema;
|
|
19500
|
-
var init_split = __esm(() => {
|
|
19501
|
-
init_zod();
|
|
19502
|
-
SplitInputSchema = exports_external.object({
|
|
19503
|
-
pages: exports_external.array(exports_external.object({
|
|
19504
|
-
pageIndex: exports_external.number().describe("0-based page index"),
|
|
19505
|
-
text: exports_external.string().describe("Extracted text for this page"),
|
|
19506
|
-
pageName: exports_external.string().optional()
|
|
19507
|
-
})).min(1).describe("Per-page parsed content from a document parser")
|
|
19508
|
-
}).passthrough().describe("Document-parser-shaped input. Pass {{ steps.parse.output }} directly — extra fields like text/metadata are ignored.");
|
|
19509
|
-
SplitConfigSchema = exports_external.object({
|
|
19510
|
-
sections: exports_external.array(exports_external.object({
|
|
19511
|
-
name: exports_external.string().min(1).describe("Stable id for the section"),
|
|
19512
|
-
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."),
|
|
19513
|
-
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").'),
|
|
19514
|
-
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.')
|
|
19515
|
-
})).min(1),
|
|
19516
|
-
rules: exports_external.string().optional().describe("Optional natural-language rules appended to the system prompt"),
|
|
19517
|
-
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.'),
|
|
19518
|
-
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.")
|
|
19519
|
-
});
|
|
19520
|
-
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.");
|
|
19521
|
-
SplitOutputSchema = exports_external.object({
|
|
19522
|
-
splits: exports_external.array(exports_external.object({
|
|
19523
|
-
name: exports_external.string(),
|
|
19524
|
-
page_range: exports_external.tuple([exports_external.number().int(), exports_external.number().int()]),
|
|
19525
|
-
confidence: ConfidenceLevelSchema.describe("LLM confidence at the start anchor: low | medium | high."),
|
|
19526
|
-
notes: exports_external.string(),
|
|
19527
|
-
evidence: exports_external.object({
|
|
19528
|
-
start_heading_text: exports_external.string().nullable().optional().describe("Verbatim heading text the LLM cited as the section start"),
|
|
19529
|
-
start_page: exports_external.number().int().nullable().optional().describe("Page where start_heading_text appears")
|
|
19530
|
-
}).optional().describe("Structured start-anchor evidence the LLM cited — for downstream parsing without regex over `notes`."),
|
|
19531
|
-
end_evidence: exports_external.object({
|
|
19532
|
-
end_page: exports_external.number().int().describe("LAST page of the section (inclusive)"),
|
|
19533
|
-
confidence: ConfidenceLevelSchema,
|
|
19534
|
-
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.")
|
|
19535
|
-
}).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)."),
|
|
19536
|
-
text: exports_external.string().describe("Joined per-page text for this section, ready for ai.extract"),
|
|
19537
|
-
pages: exports_external.array(exports_external.object({
|
|
19538
|
-
pageIndex: exports_external.number().int(),
|
|
19539
|
-
text: exports_external.string(),
|
|
19540
|
-
pageName: exports_external.string().optional(),
|
|
19541
|
-
source: exports_external.enum(["anchored", "inferred"]).describe("Whether this page was the LLM anchor (direct evidence) or filled in by continuity")
|
|
19542
|
-
})).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."),
|
|
19543
|
-
pages_anchored: exports_external.array(exports_external.number().int()),
|
|
19544
|
-
pages_inferred: exports_external.array(exports_external.number().int())
|
|
19545
|
-
}))
|
|
19546
|
-
});
|
|
19547
|
-
});
|
|
19548
|
-
|
|
19549
|
-
// ../types/src/processor/configs/template.ts
|
|
19550
|
-
var TemplateInputSchema, TemplateOutputSchema, TemplateConfigSchema;
|
|
19551
|
-
var init_template = __esm(() => {
|
|
19552
|
-
init_zod();
|
|
19553
|
-
TemplateInputSchema = exports_external.object({
|
|
19554
|
-
data: exports_external.record(exports_external.string(), exports_external.unknown()).describe("Data to merge into the template")
|
|
19555
|
-
});
|
|
19556
|
-
TemplateOutputSchema = exports_external.object({
|
|
19557
|
-
fileId: exports_external.string().describe("File ID from files table")
|
|
19558
|
-
});
|
|
19559
|
-
TemplateConfigSchema = exports_external.object({
|
|
19560
|
-
templateId: exports_external.string().describe("ID of the template from templates table"),
|
|
19561
|
-
outputFilename: exports_external.string().optional().describe('Output filename - supports LiquidJS syntax e.g. "{{invoice_id}}-report.docx"'),
|
|
19562
|
-
highlightNotFound: exports_external.boolean().default(true).optional().describe("Highlight missing variables with red-colored text in the output document"),
|
|
19563
|
-
notFoundText: exports_external.string().default("NOT FOUND").optional().describe("Text to display for missing variables when highlightNotFound is enabled")
|
|
19564
|
-
});
|
|
19565
|
-
});
|
|
19566
|
-
|
|
19567
|
-
// ../types/src/processor/configs/xlsx-to-json.ts
|
|
19568
|
-
var XlsxToJsonInputSchema, XlsxToJsonOutputSchema, XlsxToJsonConfigSchema;
|
|
19569
|
-
var init_xlsx_to_json = __esm(() => {
|
|
19570
|
-
init_zod();
|
|
19571
|
-
init_runtime_file_ref();
|
|
19572
|
-
XlsxToJsonInputSchema = ResolvedProcessorFileSchema;
|
|
19573
|
-
XlsxToJsonOutputSchema = exports_external.object({
|
|
19574
|
-
rows: exports_external.array(exports_external.record(exports_external.string(), exports_external.unknown())).describe("Array of row objects (header row = keys)"),
|
|
19575
|
-
fileId: exports_external.string().optional().describe("File ID of stored CSV when outputCsv is true")
|
|
19576
|
-
});
|
|
19577
|
-
XlsxToJsonConfigSchema = exports_external.object({
|
|
19578
|
-
sheet: exports_external.union([exports_external.number().int().min(0), exports_external.string()]).optional().describe("Sheet to read: 0-based index or sheet name"),
|
|
19579
|
-
outputCsv: exports_external.boolean().default(false).optional(),
|
|
19580
|
-
outputFilename: exports_external.string().optional().describe("Output CSV filename when outputCsv is true")
|
|
19581
|
-
});
|
|
19582
|
-
});
|
|
19583
|
-
|
|
19584
|
-
// ../types/src/processor/configs/react-hook-form.ts
|
|
19585
|
-
function extractFieldMetadata(schema) {
|
|
19586
|
-
const fields = [];
|
|
19587
|
-
let inner = schema;
|
|
19588
|
-
while (inner instanceof exports_external.ZodDefault || inner instanceof exports_external.ZodPrefault) {
|
|
19589
|
-
inner = inner.unwrap();
|
|
19590
|
-
}
|
|
19591
|
-
if (inner instanceof exports_external.ZodObject) {
|
|
19592
|
-
for (const [name, fieldSchema] of Object.entries(inner.shape)) {
|
|
19593
|
-
fields.push(extractSingleFieldMetadata(name, fieldSchema));
|
|
19594
|
-
}
|
|
19595
|
-
}
|
|
19596
|
-
return fields;
|
|
19597
|
-
}
|
|
19598
|
-
function extractSingleFieldMetadata(name, schema) {
|
|
19599
|
-
let current = schema;
|
|
19600
|
-
let required2 = true;
|
|
19601
|
-
let defaultValue = undefined;
|
|
19602
|
-
let description = current.description;
|
|
19603
|
-
while (true) {
|
|
19604
|
-
if (current instanceof exports_external.ZodOptional) {
|
|
19605
|
-
required2 = false;
|
|
19606
|
-
current = current.unwrap();
|
|
19607
|
-
} else if (current instanceof exports_external.ZodDefault || current instanceof exports_external.ZodPrefault) {
|
|
19608
|
-
defaultValue = current._def.defaultValue;
|
|
19609
|
-
current = current.unwrap();
|
|
19610
|
-
} else {
|
|
19611
|
-
break;
|
|
19612
|
-
}
|
|
19613
|
-
description ??= current.description;
|
|
19614
|
-
}
|
|
19615
|
-
const base = { name, type: "unknown", required: required2, description, defaultValue };
|
|
19616
|
-
if (current instanceof exports_external.ZodString)
|
|
19617
|
-
return { ...base, type: "string" };
|
|
19618
|
-
if (current instanceof exports_external.ZodNumber) {
|
|
19619
|
-
let min;
|
|
19620
|
-
let max;
|
|
19621
|
-
for (const c of current._def.checks ?? []) {
|
|
19622
|
-
const def = c._zod.def;
|
|
19623
|
-
if (def.check === "greater_than")
|
|
19624
|
-
min = def.value;
|
|
19625
|
-
if (def.check === "less_than")
|
|
19626
|
-
max = def.value;
|
|
19627
|
-
}
|
|
19628
|
-
return { ...base, type: "number", min, max };
|
|
19629
|
-
}
|
|
19630
|
-
if (current instanceof exports_external.ZodBoolean)
|
|
19631
|
-
return { ...base, type: "boolean" };
|
|
19632
|
-
if (current instanceof exports_external.ZodEnum) {
|
|
19633
|
-
return { ...base, type: "enum", enumValues: current.options };
|
|
19634
|
-
}
|
|
19635
|
-
if (current instanceof exports_external.ZodArray)
|
|
19636
|
-
return { ...base, type: "array" };
|
|
19637
|
-
if (current instanceof exports_external.ZodObject || current instanceof exports_external.ZodRecord) {
|
|
19638
|
-
return { ...base, type: "object" };
|
|
19639
|
-
}
|
|
19640
|
-
return base;
|
|
19641
|
-
}
|
|
19642
|
-
function getConfigFieldMetadata(processorId) {
|
|
19643
|
-
const schema = getConfigSchema(processorId);
|
|
19644
|
-
if (!schema)
|
|
19645
|
-
return;
|
|
19646
|
-
return extractFieldMetadata(schema);
|
|
19647
|
-
}
|
|
19648
|
-
function getConfigDefaults(processorId) {
|
|
19649
|
-
const schema = PROCESSOR_SCHEMAS[processorId]?.configSchema;
|
|
19650
|
-
if (!schema)
|
|
19651
|
-
return {};
|
|
19652
|
-
try {
|
|
19653
|
-
const result = schema.safeParse({});
|
|
19654
|
-
if (result.success) {
|
|
19655
|
-
return result.data;
|
|
19656
|
-
}
|
|
19657
|
-
} catch {}
|
|
19658
|
-
const fields = extractFieldMetadata(schema);
|
|
19659
|
-
const defaults = {};
|
|
19660
|
-
for (const field of fields) {
|
|
19661
|
-
if (field.defaultValue !== undefined) {
|
|
19662
|
-
defaults[field.name] = field.defaultValue;
|
|
19663
|
-
}
|
|
19664
|
-
}
|
|
19665
|
-
return defaults;
|
|
19666
|
-
}
|
|
19667
|
-
function validateConfig(processorId, config2) {
|
|
19668
|
-
const schema = getConfigSchema(processorId);
|
|
19669
|
-
if (!schema) {
|
|
19670
|
-
return { valid: true, errors: {} };
|
|
19671
|
-
}
|
|
19672
|
-
const result = schema.safeParse(config2);
|
|
19673
|
-
if (result.success) {
|
|
19674
|
-
return { valid: true, errors: {} };
|
|
19675
|
-
}
|
|
19676
|
-
const errors3 = {};
|
|
19677
|
-
for (const issue2 of result.error.issues) {
|
|
19678
|
-
const path = issue2.path.join(".");
|
|
19679
|
-
errors3[path] = issue2.message;
|
|
19680
|
-
}
|
|
19681
|
-
return { valid: false, errors: errors3 };
|
|
19682
|
-
}
|
|
19683
|
-
var init_react_hook_form = __esm(() => {
|
|
19684
|
-
init_zod();
|
|
19685
|
-
init_configs();
|
|
19686
|
-
});
|
|
19687
|
-
|
|
19688
|
-
// ../types/src/processor/configs/index.ts
|
|
19689
|
-
function getProcessorSchemas(processorId) {
|
|
19690
|
-
return PROCESSOR_SCHEMAS[processorId];
|
|
19691
|
-
}
|
|
19692
|
-
function getConfigSchema(processorId) {
|
|
19693
|
-
return PROCESSOR_SCHEMAS[processorId]?.configSchema;
|
|
19694
|
-
}
|
|
19695
|
-
function getAllProcessorJsonSchemas() {
|
|
19696
|
-
return Object.values(PROCESSOR_SCHEMAS).map((p) => ({
|
|
19697
|
-
id: p.id,
|
|
19698
|
-
inputSchema: toJsonSchema(p.inputSchema),
|
|
19699
|
-
outputSchema: toJsonSchema(p.outputSchema),
|
|
19700
|
-
configSchema: toJsonSchema(p.configSchema)
|
|
19701
|
-
}));
|
|
19702
|
-
}
|
|
19703
|
-
function listProcessorIds() {
|
|
19704
|
-
return Object.keys(PROCESSOR_SCHEMAS);
|
|
19705
|
-
}
|
|
19706
|
-
var PROCESSOR_SCHEMAS;
|
|
19707
|
-
var init_configs = __esm(() => {
|
|
19708
|
-
init_common();
|
|
19709
|
-
init_ids();
|
|
19710
|
-
init_classify();
|
|
19711
|
-
init_document_parser();
|
|
19712
|
-
init_extract();
|
|
19713
|
-
init_merge();
|
|
19714
|
-
init_pdf_embedder();
|
|
19715
|
-
init_split();
|
|
19716
|
-
init_template();
|
|
19717
|
-
init_xlsx_to_json();
|
|
19718
|
-
init_react_hook_form();
|
|
19719
|
-
init_classify();
|
|
19720
|
-
init_document_parser();
|
|
19721
|
-
init_extract();
|
|
19722
|
-
init_merge();
|
|
19723
|
-
init_pdf_embedder();
|
|
19724
|
-
init_split();
|
|
19725
|
-
init_template();
|
|
19726
|
-
init_xlsx_to_json();
|
|
19727
|
-
PROCESSOR_SCHEMAS = {
|
|
19728
|
-
[PROCESSOR_IDS.EXTRACT]: {
|
|
19729
|
-
id: PROCESSOR_IDS.EXTRACT,
|
|
19730
|
-
inputSchema: ExtractInputSchema,
|
|
19731
|
-
outputSchema: ExtractOutputSchema,
|
|
19732
|
-
configSchema: ExtractConfigSchema
|
|
19733
|
-
},
|
|
19734
|
-
[PROCESSOR_IDS.DOCUMENT_PARSER]: {
|
|
19735
|
-
id: PROCESSOR_IDS.DOCUMENT_PARSER,
|
|
19736
|
-
inputSchema: DocumentParserInputSchema,
|
|
19737
|
-
outputSchema: DocumentParserOutputSchema,
|
|
19738
|
-
configSchema: DocumentParserConfigSchema
|
|
19739
|
-
},
|
|
19740
|
-
[PROCESSOR_IDS.MERGE]: {
|
|
19741
|
-
id: PROCESSOR_IDS.MERGE,
|
|
19742
|
-
inputSchema: MergeInputSchema,
|
|
19743
|
-
outputSchema: MergeOutputSchema,
|
|
19744
|
-
configSchema: MergeConfigSchema
|
|
19745
|
-
},
|
|
19746
|
-
[PROCESSOR_IDS.TEMPLATE]: {
|
|
19747
|
-
id: PROCESSOR_IDS.TEMPLATE,
|
|
19748
|
-
inputSchema: TemplateInputSchema,
|
|
19749
|
-
outputSchema: TemplateOutputSchema,
|
|
19750
|
-
configSchema: TemplateConfigSchema
|
|
19751
|
-
},
|
|
19752
|
-
[PROCESSOR_IDS.PDF_EMBEDDER]: {
|
|
19753
|
-
id: PROCESSOR_IDS.PDF_EMBEDDER,
|
|
19754
|
-
inputSchema: PdfEmbedderInputSchema,
|
|
19755
|
-
outputSchema: PdfEmbedderOutputSchema,
|
|
19756
|
-
configSchema: PdfEmbedderConfigSchema
|
|
19757
|
-
},
|
|
19758
|
-
[PROCESSOR_IDS.SPLIT]: {
|
|
19759
|
-
id: PROCESSOR_IDS.SPLIT,
|
|
19760
|
-
inputSchema: SplitInputSchema,
|
|
19761
|
-
outputSchema: SplitOutputSchema,
|
|
19762
|
-
configSchema: SplitConfigSchema
|
|
19763
|
-
},
|
|
19764
|
-
[PROCESSOR_IDS.CLASSIFY]: {
|
|
19765
|
-
id: PROCESSOR_IDS.CLASSIFY,
|
|
19766
|
-
inputSchema: ClassifyInputSchema,
|
|
19767
|
-
outputSchema: ClassifyOutputSchema,
|
|
19768
|
-
configSchema: ClassifyConfigSchema
|
|
19769
|
-
},
|
|
19770
|
-
[PROCESSOR_IDS.XLSX_TO_JSON]: {
|
|
19771
|
-
id: PROCESSOR_IDS.XLSX_TO_JSON,
|
|
19772
|
-
inputSchema: XlsxToJsonInputSchema,
|
|
19773
|
-
outputSchema: XlsxToJsonOutputSchema,
|
|
19774
|
-
configSchema: XlsxToJsonConfigSchema
|
|
19775
|
-
}
|
|
19776
|
-
};
|
|
19777
|
-
});
|
|
19778
|
-
|
|
19779
17331
|
// ../types/src/processor/index.ts
|
|
19780
|
-
var
|
|
19781
|
-
init_processor();
|
|
19782
|
-
init_execution();
|
|
19783
|
-
init_configs();
|
|
19784
|
-
});
|
|
17332
|
+
var init_processor = () => {};
|
|
19785
17333
|
|
|
19786
17334
|
// ../types/src/parser/index.ts
|
|
19787
|
-
var
|
|
19788
|
-
init_parser();
|
|
19789
|
-
});
|
|
17335
|
+
var init_parser = () => {};
|
|
19790
17336
|
|
|
19791
17337
|
// ../types/src/otel/semantic-conventions.ts
|
|
19792
17338
|
function mapLLMAttributes(attrs) {
|
|
@@ -23106,7 +20652,7 @@ var require_data = __commonJS((exports, module) => {
|
|
|
23106
20652
|
});
|
|
23107
20653
|
|
|
23108
20654
|
// ../../node_modules/fast-uri/lib/utils.js
|
|
23109
|
-
var
|
|
20655
|
+
var require_utils = __commonJS((exports, module) => {
|
|
23110
20656
|
var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
|
|
23111
20657
|
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);
|
|
23112
20658
|
function stringArrayToHexStripped(input) {
|
|
@@ -23362,7 +20908,7 @@ var require_utils3 = __commonJS((exports, module) => {
|
|
|
23362
20908
|
|
|
23363
20909
|
// ../../node_modules/fast-uri/lib/schemes.js
|
|
23364
20910
|
var require_schemes = __commonJS((exports, module) => {
|
|
23365
|
-
var { isUUID } =
|
|
20911
|
+
var { isUUID } = require_utils();
|
|
23366
20912
|
var URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
|
|
23367
20913
|
var supportedSchemeNames = [
|
|
23368
20914
|
"http",
|
|
@@ -23536,7 +21082,7 @@ var require_schemes = __commonJS((exports, module) => {
|
|
|
23536
21082
|
|
|
23537
21083
|
// ../../node_modules/fast-uri/index.js
|
|
23538
21084
|
var require_fast_uri = __commonJS((exports, module) => {
|
|
23539
|
-
var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizeComponentEncoding, isIPv4, nonSimpleDomain } =
|
|
21085
|
+
var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizeComponentEncoding, isIPv4, nonSimpleDomain } = require_utils();
|
|
23540
21086
|
var { SCHEMES, getSchemeHandler } = require_schemes();
|
|
23541
21087
|
function normalize(uri, options) {
|
|
23542
21088
|
if (typeof uri === "string") {
|
|
@@ -25946,7 +23492,7 @@ var require_draft7 = __commonJS((exports) => {
|
|
|
25946
23492
|
});
|
|
25947
23493
|
|
|
25948
23494
|
// ../../node_modules/ajv/dist/vocabularies/discriminator/types.js
|
|
25949
|
-
var
|
|
23495
|
+
var require_types = __commonJS((exports) => {
|
|
25950
23496
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25951
23497
|
exports.DiscrError = undefined;
|
|
25952
23498
|
var DiscrError;
|
|
@@ -25960,7 +23506,7 @@ var require_types2 = __commonJS((exports) => {
|
|
|
25960
23506
|
var require_discriminator = __commonJS((exports) => {
|
|
25961
23507
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25962
23508
|
var codegen_1 = require_codegen();
|
|
25963
|
-
var types_1 =
|
|
23509
|
+
var types_1 = require_types();
|
|
25964
23510
|
var compile_1 = require_compile();
|
|
25965
23511
|
var ref_error_1 = require_ref_error();
|
|
25966
23512
|
var util_1 = require_util();
|
|
@@ -26888,6 +24434,24 @@ var init_validation = __esm(() => {
|
|
|
26888
24434
|
init_workspace_schema();
|
|
26889
24435
|
});
|
|
26890
24436
|
|
|
24437
|
+
// ../types/src/core/common.ts
|
|
24438
|
+
function toJsonSchema2(schema) {
|
|
24439
|
+
return exports_external.toJSONSchema(schema, { target: "draft-7" });
|
|
24440
|
+
}
|
|
24441
|
+
var TimestampSchema2, JsonSchemaSchema2, BaseEntitySchema2;
|
|
24442
|
+
var init_common = __esm(() => {
|
|
24443
|
+
init_zod();
|
|
24444
|
+
TimestampSchema2 = exports_external.union([exports_external.date(), exports_external.string().datetime()]).transform((val) => {
|
|
24445
|
+
return typeof val === "string" ? new Date(val) : val;
|
|
24446
|
+
});
|
|
24447
|
+
JsonSchemaSchema2 = exports_external.record(exports_external.string(), exports_external.unknown());
|
|
24448
|
+
BaseEntitySchema2 = exports_external.object({
|
|
24449
|
+
id: exports_external.string(),
|
|
24450
|
+
createdAt: TimestampSchema2.optional(),
|
|
24451
|
+
updatedAt: TimestampSchema2.optional()
|
|
24452
|
+
});
|
|
24453
|
+
});
|
|
24454
|
+
|
|
26891
24455
|
// ../../node_modules/@babel/parser/lib/index.js
|
|
26892
24456
|
var require_lib = __commonJS((exports) => {
|
|
26893
24457
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -27301,12 +24865,12 @@ var require_lib = __commonJS((exports) => {
|
|
|
27301
24865
|
}
|
|
27302
24866
|
const ParseErrorConstructors = {};
|
|
27303
24867
|
for (const reasonCode of Object.keys(argument)) {
|
|
27304
|
-
const
|
|
27305
|
-
const _ref = typeof
|
|
27306
|
-
message: () =>
|
|
27307
|
-
} : typeof
|
|
27308
|
-
message:
|
|
27309
|
-
} :
|
|
24868
|
+
const template = argument[reasonCode];
|
|
24869
|
+
const _ref = typeof template === "string" ? {
|
|
24870
|
+
message: () => template
|
|
24871
|
+
} : typeof template === "function" ? {
|
|
24872
|
+
message: template
|
|
24873
|
+
} : template, {
|
|
27310
24874
|
message
|
|
27311
24875
|
} = _ref, rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
27312
24876
|
const toMessage = typeof message === "string" ? () => message : message;
|
|
@@ -41779,7 +39343,7 @@ var require_keywords = __commonJS((exports) => {
|
|
|
41779
39343
|
});
|
|
41780
39344
|
|
|
41781
39345
|
// ../../node_modules/sucrase/dist/parser/tokenizer/types.js
|
|
41782
|
-
var
|
|
39346
|
+
var require_types2 = __commonJS((exports) => {
|
|
41783
39347
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41784
39348
|
var TokenType;
|
|
41785
39349
|
(function(TokenType2) {
|
|
@@ -41843,8 +39407,8 @@ var require_types3 = __commonJS((exports) => {
|
|
|
41843
39407
|
TokenType2[TokenType2["questionDot"] = questionDot] = "questionDot";
|
|
41844
39408
|
const arrow = 22528;
|
|
41845
39409
|
TokenType2[TokenType2["arrow"] = arrow] = "arrow";
|
|
41846
|
-
const
|
|
41847
|
-
TokenType2[TokenType2["template"] =
|
|
39410
|
+
const template = 23552;
|
|
39411
|
+
TokenType2[TokenType2["template"] = template] = "template";
|
|
41848
39412
|
const ellipsis = 24576;
|
|
41849
39413
|
TokenType2[TokenType2["ellipsis"] = ellipsis] = "ellipsis";
|
|
41850
39414
|
const backQuote = 25600;
|
|
@@ -42263,7 +39827,7 @@ var require_types3 = __commonJS((exports) => {
|
|
|
42263
39827
|
var require_state = __commonJS((exports) => {
|
|
42264
39828
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42265
39829
|
var _keywords = require_keywords();
|
|
42266
|
-
var _types =
|
|
39830
|
+
var _types = require_types2();
|
|
42267
39831
|
|
|
42268
39832
|
class Scope {
|
|
42269
39833
|
constructor(startTokenIndex, endTokenIndex, isFunctionScope) {
|
|
@@ -42649,7 +40213,7 @@ var require_base = __commonJS((exports) => {
|
|
|
42649
40213
|
var require_util2 = __commonJS((exports) => {
|
|
42650
40214
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42651
40215
|
var _index = require_tokenizer();
|
|
42652
|
-
var _types =
|
|
40216
|
+
var _types = require_types2();
|
|
42653
40217
|
var _charcodes = require_charcodes();
|
|
42654
40218
|
var _base = require_base();
|
|
42655
40219
|
function isContextual(contextualKeyword) {
|
|
@@ -42811,7 +40375,7 @@ var require_identifier = __commonJS((exports) => {
|
|
|
42811
40375
|
var require_readWordTree = __commonJS((exports) => {
|
|
42812
40376
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42813
40377
|
var _keywords = require_keywords();
|
|
42814
|
-
var _types =
|
|
40378
|
+
var _types = require_types2();
|
|
42815
40379
|
var READ_WORD_TREE = new Int32Array([
|
|
42816
40380
|
-1,
|
|
42817
40381
|
27,
|
|
@@ -51789,7 +49353,7 @@ var require_readWord = __commonJS((exports) => {
|
|
|
51789
49353
|
var _identifier = require_identifier();
|
|
51790
49354
|
var _index = require_tokenizer();
|
|
51791
49355
|
var _readWordTree = require_readWordTree();
|
|
51792
|
-
var _types =
|
|
49356
|
+
var _types = require_types2();
|
|
51793
49357
|
function readWord() {
|
|
51794
49358
|
let treePos = 0;
|
|
51795
49359
|
let code = 0;
|
|
@@ -51855,7 +49419,7 @@ var require_tokenizer = __commonJS((exports) => {
|
|
|
51855
49419
|
var _keywords = require_keywords();
|
|
51856
49420
|
var _readWord = require_readWord();
|
|
51857
49421
|
var _readWord2 = _interopRequireDefault(_readWord);
|
|
51858
|
-
var _types =
|
|
49422
|
+
var _types = require_types2();
|
|
51859
49423
|
var IdentifierRole;
|
|
51860
49424
|
(function(IdentifierRole2) {
|
|
51861
49425
|
const Access = 0;
|
|
@@ -52572,7 +50136,7 @@ var require_tokenizer = __commonJS((exports) => {
|
|
|
52572
50136
|
// ../../node_modules/sucrase/dist/util/getImportExportSpecifierInfo.js
|
|
52573
50137
|
var require_getImportExportSpecifierInfo = __commonJS((exports) => {
|
|
52574
50138
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
52575
|
-
var _types =
|
|
50139
|
+
var _types = require_types2();
|
|
52576
50140
|
function getImportExportSpecifierInfo(tokens, index = tokens.currentIndex()) {
|
|
52577
50141
|
let endIndex = index + 1;
|
|
52578
50142
|
if (isSpecifierEnd(tokens, endIndex)) {
|
|
@@ -52925,7 +50489,7 @@ var require_JSXTransformer = __commonJS((exports) => {
|
|
|
52925
50489
|
var _xhtml = require_xhtml();
|
|
52926
50490
|
var _xhtml2 = _interopRequireDefault(_xhtml);
|
|
52927
50491
|
var _tokenizer = require_tokenizer();
|
|
52928
|
-
var _types =
|
|
50492
|
+
var _types = require_types2();
|
|
52929
50493
|
var _charcodes = require_charcodes();
|
|
52930
50494
|
var _getJSXPragmaInfo = require_getJSXPragmaInfo();
|
|
52931
50495
|
var _getJSXPragmaInfo2 = _interopRequireDefault(_getJSXPragmaInfo);
|
|
@@ -53429,7 +50993,7 @@ var require_getNonTypeIdentifiers = __commonJS((exports) => {
|
|
|
53429
50993
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
53430
50994
|
}
|
|
53431
50995
|
var _tokenizer = require_tokenizer();
|
|
53432
|
-
var _types =
|
|
50996
|
+
var _types = require_types2();
|
|
53433
50997
|
var _JSXTransformer = require_JSXTransformer();
|
|
53434
50998
|
var _getJSXPragmaInfo = require_getJSXPragmaInfo();
|
|
53435
50999
|
var _getJSXPragmaInfo2 = _interopRequireDefault(_getJSXPragmaInfo);
|
|
@@ -53468,7 +51032,7 @@ var require_CJSImportProcessor = __commonJS((exports) => {
|
|
|
53468
51032
|
}
|
|
53469
51033
|
var _tokenizer = require_tokenizer();
|
|
53470
51034
|
var _keywords = require_keywords();
|
|
53471
|
-
var _types =
|
|
51035
|
+
var _types = require_types2();
|
|
53472
51036
|
var _getImportExportSpecifierInfo = require_getImportExportSpecifierInfo();
|
|
53473
51037
|
var _getImportExportSpecifierInfo2 = _interopRequireDefault(_getImportExportSpecifierInfo);
|
|
53474
51038
|
var _getNonTypeIdentifiers = require_getNonTypeIdentifiers();
|
|
@@ -55503,7 +53067,7 @@ var require_HelperManager = __commonJS((exports) => {
|
|
|
55503
53067
|
var require_identifyShadowedGlobals = __commonJS((exports) => {
|
|
55504
53068
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
55505
53069
|
var _tokenizer = require_tokenizer();
|
|
55506
|
-
var _types =
|
|
53070
|
+
var _types = require_types2();
|
|
55507
53071
|
function identifyShadowedGlobals(tokens, scopes, globalNames) {
|
|
55508
53072
|
if (!hasShadowedGlobals(tokens, globalNames)) {
|
|
55509
53073
|
return;
|
|
@@ -55568,7 +53132,7 @@ var require_identifyShadowedGlobals = __commonJS((exports) => {
|
|
|
55568
53132
|
// ../../node_modules/sucrase/dist/util/getIdentifierNames.js
|
|
55569
53133
|
var require_getIdentifierNames = __commonJS((exports) => {
|
|
55570
53134
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
55571
|
-
var _types =
|
|
53135
|
+
var _types = require_types2();
|
|
55572
53136
|
function getIdentifierNames(code, tokens) {
|
|
55573
53137
|
const names = [];
|
|
55574
53138
|
for (const token of tokens) {
|
|
@@ -55744,7 +53308,7 @@ var require_util3 = __commonJS((exports) => {
|
|
|
55744
53308
|
});
|
|
55745
53309
|
|
|
55746
53310
|
// ../../node_modules/ts-interface-checker/dist/types.js
|
|
55747
|
-
var
|
|
53311
|
+
var require_types3 = __commonJS((exports) => {
|
|
55748
53312
|
var __extends = exports && exports.__extends || function() {
|
|
55749
53313
|
var extendStatics = function(d, b) {
|
|
55750
53314
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -56344,9 +53908,9 @@ var require_dist2 = __commonJS((exports) => {
|
|
|
56344
53908
|
};
|
|
56345
53909
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
56346
53910
|
exports.Checker = exports.createCheckers = undefined;
|
|
56347
|
-
var types_1 =
|
|
53911
|
+
var types_1 = require_types3();
|
|
56348
53912
|
var util_1 = require_util3();
|
|
56349
|
-
var types_2 =
|
|
53913
|
+
var types_2 = require_types3();
|
|
56350
53914
|
Object.defineProperty(exports, "TArray", { enumerable: true, get: function() {
|
|
56351
53915
|
return types_2.TArray;
|
|
56352
53916
|
} });
|
|
@@ -56628,7 +54192,7 @@ var require_lval = __commonJS((exports) => {
|
|
|
56628
54192
|
var _typescript = require_typescript();
|
|
56629
54193
|
var _index = require_tokenizer();
|
|
56630
54194
|
var _keywords = require_keywords();
|
|
56631
|
-
var _types =
|
|
54195
|
+
var _types = require_types2();
|
|
56632
54196
|
var _base = require_base();
|
|
56633
54197
|
var _expression = require_expression();
|
|
56634
54198
|
var _util = require_util2();
|
|
@@ -56760,7 +54324,7 @@ var require_typescript = __commonJS((exports) => {
|
|
|
56760
54324
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
56761
54325
|
var _index = require_tokenizer();
|
|
56762
54326
|
var _keywords = require_keywords();
|
|
56763
|
-
var _types =
|
|
54327
|
+
var _types = require_types2();
|
|
56764
54328
|
var _base = require_base();
|
|
56765
54329
|
var _expression = require_expression();
|
|
56766
54330
|
var _lval = require_lval();
|
|
@@ -58022,7 +55586,7 @@ var require_typescript = __commonJS((exports) => {
|
|
|
58022
55586
|
var require_jsx = __commonJS((exports) => {
|
|
58023
55587
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
58024
55588
|
var _index = require_tokenizer();
|
|
58025
|
-
var _types =
|
|
55589
|
+
var _types = require_types2();
|
|
58026
55590
|
var _base = require_base();
|
|
58027
55591
|
var _expression = require_expression();
|
|
58028
55592
|
var _util = require_util2();
|
|
@@ -58285,10 +55849,10 @@ var require_jsx = __commonJS((exports) => {
|
|
|
58285
55849
|
});
|
|
58286
55850
|
|
|
58287
55851
|
// ../../node_modules/sucrase/dist/parser/plugins/types.js
|
|
58288
|
-
var
|
|
55852
|
+
var require_types4 = __commonJS((exports) => {
|
|
58289
55853
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
58290
55854
|
var _index = require_tokenizer();
|
|
58291
|
-
var _types =
|
|
55855
|
+
var _types = require_types2();
|
|
58292
55856
|
var _base = require_base();
|
|
58293
55857
|
var _expression = require_expression();
|
|
58294
55858
|
var _flow = require_flow();
|
|
@@ -58321,12 +55885,12 @@ var require_expression = __commonJS((exports) => {
|
|
|
58321
55885
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
58322
55886
|
var _flow = require_flow();
|
|
58323
55887
|
var _index = require_jsx();
|
|
58324
|
-
var _types =
|
|
55888
|
+
var _types = require_types4();
|
|
58325
55889
|
var _typescript = require_typescript();
|
|
58326
55890
|
var _index3 = require_tokenizer();
|
|
58327
55891
|
var _keywords = require_keywords();
|
|
58328
55892
|
var _state = require_state();
|
|
58329
|
-
var _types3 =
|
|
55893
|
+
var _types3 = require_types2();
|
|
58330
55894
|
var _charcodes = require_charcodes();
|
|
58331
55895
|
var _identifier = require_identifier();
|
|
58332
55896
|
var _base = require_base();
|
|
@@ -59042,7 +56606,7 @@ var require_flow = __commonJS((exports) => {
|
|
|
59042
56606
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
59043
56607
|
var _index = require_tokenizer();
|
|
59044
56608
|
var _keywords = require_keywords();
|
|
59045
|
-
var _types =
|
|
56609
|
+
var _types = require_types2();
|
|
59046
56610
|
var _base = require_base();
|
|
59047
56611
|
var _expression = require_expression();
|
|
59048
56612
|
var _statement = require_statement();
|
|
@@ -59917,7 +57481,7 @@ var require_statement = __commonJS((exports) => {
|
|
|
59917
57481
|
var _tokenizer = require_tokenizer();
|
|
59918
57482
|
var _keywords = require_keywords();
|
|
59919
57483
|
var _state = require_state();
|
|
59920
|
-
var _types =
|
|
57484
|
+
var _types = require_types2();
|
|
59921
57485
|
var _charcodes = require_charcodes();
|
|
59922
57486
|
var _base = require_base();
|
|
59923
57487
|
var _expression = require_expression();
|
|
@@ -60952,7 +58516,7 @@ var require_TokenProcessor = __commonJS((exports) => {
|
|
|
60952
58516
|
function _interopRequireDefault(obj) {
|
|
60953
58517
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
60954
58518
|
}
|
|
60955
|
-
var _types =
|
|
58519
|
+
var _types = require_types2();
|
|
60956
58520
|
var _isAsyncOperation = require_isAsyncOperation();
|
|
60957
58521
|
var _isAsyncOperation2 = _interopRequireDefault(_isAsyncOperation);
|
|
60958
58522
|
|
|
@@ -61210,7 +58774,7 @@ var require_TokenProcessor = __commonJS((exports) => {
|
|
|
61210
58774
|
var require_getClassInfo = __commonJS((exports) => {
|
|
61211
58775
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
61212
58776
|
var _keywords = require_keywords();
|
|
61213
|
-
var _types =
|
|
58777
|
+
var _types = require_types2();
|
|
61214
58778
|
function getClassInfo(rootTransformer, tokens, nameManager, disableESTransforms) {
|
|
61215
58779
|
const snapshot = tokens.snapshot();
|
|
61216
58780
|
const headerInfo = processClassHeader(tokens);
|
|
@@ -61448,7 +59012,7 @@ var require_getClassInfo = __commonJS((exports) => {
|
|
|
61448
59012
|
// ../../node_modules/sucrase/dist/util/elideImportEquals.js
|
|
61449
59013
|
var require_elideImportEquals = __commonJS((exports) => {
|
|
61450
59014
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
61451
|
-
var _types =
|
|
59015
|
+
var _types = require_types2();
|
|
61452
59016
|
function elideImportEquals(tokens) {
|
|
61453
59017
|
tokens.removeInitialToken();
|
|
61454
59018
|
tokens.removeToken();
|
|
@@ -61472,7 +59036,7 @@ var require_elideImportEquals = __commonJS((exports) => {
|
|
|
61472
59036
|
var require_getDeclarationInfo = __commonJS((exports) => {
|
|
61473
59037
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
61474
59038
|
var _tokenizer = require_tokenizer();
|
|
61475
|
-
var _types =
|
|
59039
|
+
var _types = require_types2();
|
|
61476
59040
|
var EMPTY_DECLARATION_INFO = {
|
|
61477
59041
|
typeDeclarations: new Set,
|
|
61478
59042
|
valueDeclarations: new Set
|
|
@@ -61500,7 +59064,7 @@ var require_getDeclarationInfo = __commonJS((exports) => {
|
|
|
61500
59064
|
var require_isExportFrom = __commonJS((exports) => {
|
|
61501
59065
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
61502
59066
|
var _keywords = require_keywords();
|
|
61503
|
-
var _types =
|
|
59067
|
+
var _types = require_types2();
|
|
61504
59068
|
function isExportFrom(tokens) {
|
|
61505
59069
|
let closeBraceIndex = tokens.currentIndex();
|
|
61506
59070
|
while (!tokens.matches1AtIndex(closeBraceIndex, _types.TokenType.braceR)) {
|
|
@@ -61515,7 +59079,7 @@ var require_isExportFrom = __commonJS((exports) => {
|
|
|
61515
59079
|
var require_removeMaybeImportAttributes = __commonJS((exports) => {
|
|
61516
59080
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
61517
59081
|
var _keywords = require_keywords();
|
|
61518
|
-
var _types =
|
|
59082
|
+
var _types = require_types2();
|
|
61519
59083
|
function removeMaybeImportAttributes(tokens) {
|
|
61520
59084
|
if (tokens.matches2(_types.TokenType._with, _types.TokenType.braceL) || tokens.matches2(_types.TokenType.name, _types.TokenType.braceL) && tokens.matchesContextual(_keywords.ContextualKeyword._assert)) {
|
|
61521
59085
|
tokens.removeToken();
|
|
@@ -61530,7 +59094,7 @@ var require_removeMaybeImportAttributes = __commonJS((exports) => {
|
|
|
61530
59094
|
// ../../node_modules/sucrase/dist/util/shouldElideDefaultExport.js
|
|
61531
59095
|
var require_shouldElideDefaultExport = __commonJS((exports) => {
|
|
61532
59096
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
61533
|
-
var _types =
|
|
59097
|
+
var _types = require_types2();
|
|
61534
59098
|
function shouldElideDefaultExport(isTypeScriptTransformEnabled, keepUnusedImports, tokens, declarationInfo) {
|
|
61535
59099
|
if (!isTypeScriptTransformEnabled || keepUnusedImports) {
|
|
61536
59100
|
return false;
|
|
@@ -61561,7 +59125,7 @@ var require_CJSImportTransformer = __commonJS((exports) => {
|
|
|
61561
59125
|
}
|
|
61562
59126
|
var _tokenizer = require_tokenizer();
|
|
61563
59127
|
var _keywords = require_keywords();
|
|
61564
|
-
var _types =
|
|
59128
|
+
var _types = require_types2();
|
|
61565
59129
|
var _elideImportEquals = require_elideImportEquals();
|
|
61566
59130
|
var _elideImportEquals2 = _interopRequireDefault(_elideImportEquals);
|
|
61567
59131
|
var _getDeclarationInfo = require_getDeclarationInfo();
|
|
@@ -62203,7 +59767,7 @@ var require_ESMImportTransformer = __commonJS((exports) => {
|
|
|
62203
59767
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
62204
59768
|
}
|
|
62205
59769
|
var _keywords = require_keywords();
|
|
62206
|
-
var _types =
|
|
59770
|
+
var _types = require_types2();
|
|
62207
59771
|
var _elideImportEquals = require_elideImportEquals();
|
|
62208
59772
|
var _elideImportEquals2 = _interopRequireDefault(_elideImportEquals);
|
|
62209
59773
|
var _getDeclarationInfo = require_getDeclarationInfo();
|
|
@@ -62473,7 +60037,7 @@ var require_FlowTransformer = __commonJS((exports) => {
|
|
|
62473
60037
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
62474
60038
|
}
|
|
62475
60039
|
var _keywords = require_keywords();
|
|
62476
|
-
var _types =
|
|
60040
|
+
var _types = require_types2();
|
|
62477
60041
|
var _Transformer = require_Transformer();
|
|
62478
60042
|
var _Transformer2 = _interopRequireDefault(_Transformer);
|
|
62479
60043
|
|
|
@@ -62593,7 +60157,7 @@ var require_JestHoistTransformer = __commonJS((exports) => {
|
|
|
62593
60157
|
}
|
|
62594
60158
|
return value;
|
|
62595
60159
|
}
|
|
62596
|
-
var _types =
|
|
60160
|
+
var _types = require_types2();
|
|
62597
60161
|
var _Transformer = require_Transformer();
|
|
62598
60162
|
var _Transformer2 = _interopRequireDefault(_Transformer);
|
|
62599
60163
|
var JEST_GLOBAL_NAME = "jest";
|
|
@@ -62667,7 +60231,7 @@ var require_NumericSeparatorTransformer = __commonJS((exports) => {
|
|
|
62667
60231
|
function _interopRequireDefault(obj) {
|
|
62668
60232
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
62669
60233
|
}
|
|
62670
|
-
var _types =
|
|
60234
|
+
var _types = require_types2();
|
|
62671
60235
|
var _Transformer = require_Transformer();
|
|
62672
60236
|
var _Transformer2 = _interopRequireDefault(_Transformer);
|
|
62673
60237
|
|
|
@@ -62696,7 +60260,7 @@ var require_OptionalCatchBindingTransformer = __commonJS((exports) => {
|
|
|
62696
60260
|
function _interopRequireDefault(obj) {
|
|
62697
60261
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
62698
60262
|
}
|
|
62699
|
-
var _types =
|
|
60263
|
+
var _types = require_types2();
|
|
62700
60264
|
var _Transformer = require_Transformer();
|
|
62701
60265
|
var _Transformer2 = _interopRequireDefault(_Transformer);
|
|
62702
60266
|
|
|
@@ -62724,7 +60288,7 @@ var require_OptionalChainingNullishTransformer = __commonJS((exports) => {
|
|
|
62724
60288
|
function _interopRequireDefault(obj) {
|
|
62725
60289
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
62726
60290
|
}
|
|
62727
|
-
var _types =
|
|
60291
|
+
var _types = require_types2();
|
|
62728
60292
|
var _Transformer = require_Transformer();
|
|
62729
60293
|
var _Transformer2 = _interopRequireDefault(_Transformer);
|
|
62730
60294
|
|
|
@@ -62840,7 +60404,7 @@ var require_ReactDisplayNameTransformer = __commonJS((exports) => {
|
|
|
62840
60404
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
62841
60405
|
}
|
|
62842
60406
|
var _tokenizer = require_tokenizer();
|
|
62843
|
-
var _types =
|
|
60407
|
+
var _types = require_types2();
|
|
62844
60408
|
var _Transformer = require_Transformer();
|
|
62845
60409
|
var _Transformer2 = _interopRequireDefault(_Transformer);
|
|
62846
60410
|
|
|
@@ -63091,7 +60655,7 @@ var require_TypeScriptTransformer = __commonJS((exports) => {
|
|
|
63091
60655
|
function _interopRequireDefault(obj) {
|
|
63092
60656
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
63093
60657
|
}
|
|
63094
|
-
var _types =
|
|
60658
|
+
var _types = require_types2();
|
|
63095
60659
|
var _isIdentifier = require_isIdentifier();
|
|
63096
60660
|
var _isIdentifier2 = _interopRequireDefault(_isIdentifier);
|
|
63097
60661
|
var _Transformer = require_Transformer();
|
|
@@ -63237,7 +60801,7 @@ var require_RootTransformer = __commonJS((exports) => {
|
|
|
63237
60801
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
63238
60802
|
}
|
|
63239
60803
|
var _keywords = require_keywords();
|
|
63240
|
-
var _types =
|
|
60804
|
+
var _types = require_types2();
|
|
63241
60805
|
var _getClassInfo = require_getClassInfo();
|
|
63242
60806
|
var _getClassInfo2 = _interopRequireDefault(_getClassInfo);
|
|
63243
60807
|
var _CJSImportTransformer = require_CJSImportTransformer();
|
|
@@ -63636,7 +61200,7 @@ var require_formatTokens = __commonJS((exports) => {
|
|
|
63636
61200
|
}
|
|
63637
61201
|
var _linesandcolumns = require_build();
|
|
63638
61202
|
var _linesandcolumns2 = _interopRequireDefault(_linesandcolumns);
|
|
63639
|
-
var _types =
|
|
61203
|
+
var _types = require_types2();
|
|
63640
61204
|
function formatTokens(code, tokens) {
|
|
63641
61205
|
if (tokens.length === 0) {
|
|
63642
61206
|
return "";
|
|
@@ -63701,7 +61265,7 @@ var require_getTSImportedNames = __commonJS((exports) => {
|
|
|
63701
61265
|
function _interopRequireDefault(obj) {
|
|
63702
61266
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
63703
61267
|
}
|
|
63704
|
-
var _types =
|
|
61268
|
+
var _types = require_types2();
|
|
63705
61269
|
var _getImportExportSpecifierInfo = require_getImportExportSpecifierInfo();
|
|
63706
61270
|
var _getImportExportSpecifierInfo2 = _interopRequireDefault(_getImportExportSpecifierInfo);
|
|
63707
61271
|
function getTSImportedNames(tokens) {
|
|
@@ -64086,7 +61650,7 @@ function describeUnsupportedType(nodeType) {
|
|
|
64086
61650
|
function compileTypedScript(opts) {
|
|
64087
61651
|
let ast;
|
|
64088
61652
|
try {
|
|
64089
|
-
ast =
|
|
61653
|
+
ast = import_parser2.parse(opts.source, {
|
|
64090
61654
|
sourceType: "script",
|
|
64091
61655
|
plugins: ["typescript"],
|
|
64092
61656
|
ranges: true
|
|
@@ -64338,9 +61902,9 @@ function stripCommentsAndStrings(s) {
|
|
|
64338
61902
|
out = out.replace(/`(\\.|[^`\\])*`/g, "``");
|
|
64339
61903
|
return out;
|
|
64340
61904
|
}
|
|
64341
|
-
var
|
|
61905
|
+
var import_parser2, import_sucrase, EVALUATOR_FN_NAME = "scoreScript", EVALUATOR_PARAM_NAMES, TRANSFORM_FN_NAME = "script";
|
|
64342
61906
|
var init_compile = __esm(() => {
|
|
64343
|
-
|
|
61907
|
+
import_parser2 = __toESM(require_lib(), 1);
|
|
64344
61908
|
import_sucrase = __toESM(require_dist3(), 1);
|
|
64345
61909
|
EVALUATOR_PARAM_NAMES = ["expected", "actual"];
|
|
64346
61910
|
});
|
|
@@ -64554,8 +62118,8 @@ function getAllStepJsonSchemas() {
|
|
|
64554
62118
|
category: def.category,
|
|
64555
62119
|
name: def.name,
|
|
64556
62120
|
description: def.description,
|
|
64557
|
-
configSchema:
|
|
64558
|
-
outputSchema:
|
|
62121
|
+
configSchema: toJsonSchema2(def.configSchema),
|
|
62122
|
+
outputSchema: toJsonSchema2(def.outputSchema),
|
|
64559
62123
|
configInWith: def.configInWith
|
|
64560
62124
|
}));
|
|
64561
62125
|
}
|
|
@@ -65201,6 +62765,81 @@ var init_actions = __esm(() => {
|
|
|
65201
62765
|
ACTION_TYPES = ActionTypeSchema.options;
|
|
65202
62766
|
});
|
|
65203
62767
|
|
|
62768
|
+
// ../types/src/processor/execution.ts
|
|
62769
|
+
function asTuple(values) {
|
|
62770
|
+
return values;
|
|
62771
|
+
}
|
|
62772
|
+
var WorkflowExecutionStatusValue2, WorkflowExecutionStatusSchema2, StepExecutionStatusValue2, StepExecutionStatusSchema2, TriggerTypeValue2, TriggerTypeSchema2, ExecutionTypeValue2, ExecutionTypeSchema2, WORKFLOW_EXECUTION_STATUSES2, STEP_EXECUTION_STATUSES2, TRIGGER_TYPES2, EXECUTION_TYPES2;
|
|
62773
|
+
var init_execution = __esm(() => {
|
|
62774
|
+
init_zod();
|
|
62775
|
+
WorkflowExecutionStatusValue2 = {
|
|
62776
|
+
CREATED: "created",
|
|
62777
|
+
PENDING: "pending",
|
|
62778
|
+
RUNNING: "running",
|
|
62779
|
+
WAITING: "waiting",
|
|
62780
|
+
COMPLETED: "completed",
|
|
62781
|
+
FAILED: "failed",
|
|
62782
|
+
CANCELLED: "cancelled"
|
|
62783
|
+
};
|
|
62784
|
+
WorkflowExecutionStatusSchema2 = exports_external.enum([
|
|
62785
|
+
WorkflowExecutionStatusValue2.CREATED,
|
|
62786
|
+
WorkflowExecutionStatusValue2.PENDING,
|
|
62787
|
+
WorkflowExecutionStatusValue2.RUNNING,
|
|
62788
|
+
WorkflowExecutionStatusValue2.WAITING,
|
|
62789
|
+
WorkflowExecutionStatusValue2.COMPLETED,
|
|
62790
|
+
WorkflowExecutionStatusValue2.FAILED,
|
|
62791
|
+
WorkflowExecutionStatusValue2.CANCELLED
|
|
62792
|
+
]);
|
|
62793
|
+
StepExecutionStatusValue2 = {
|
|
62794
|
+
PENDING: "pending",
|
|
62795
|
+
RUNNING: "running",
|
|
62796
|
+
SUCCESS: "success",
|
|
62797
|
+
FAILURE: "failure",
|
|
62798
|
+
WAITING: "waiting",
|
|
62799
|
+
SKIPPED: "skipped"
|
|
62800
|
+
};
|
|
62801
|
+
StepExecutionStatusSchema2 = exports_external.enum([
|
|
62802
|
+
StepExecutionStatusValue2.PENDING,
|
|
62803
|
+
StepExecutionStatusValue2.RUNNING,
|
|
62804
|
+
StepExecutionStatusValue2.SUCCESS,
|
|
62805
|
+
StepExecutionStatusValue2.FAILURE,
|
|
62806
|
+
StepExecutionStatusValue2.WAITING,
|
|
62807
|
+
StepExecutionStatusValue2.SKIPPED
|
|
62808
|
+
]);
|
|
62809
|
+
TriggerTypeValue2 = {
|
|
62810
|
+
MANUAL: "manual",
|
|
62811
|
+
API: "api",
|
|
62812
|
+
WEBHOOK: "webhook",
|
|
62813
|
+
SCHEDULE: "schedule",
|
|
62814
|
+
EMAIL: "email",
|
|
62815
|
+
EVAL: "eval",
|
|
62816
|
+
CLI: "cli"
|
|
62817
|
+
};
|
|
62818
|
+
TriggerTypeSchema2 = exports_external.enum([
|
|
62819
|
+
TriggerTypeValue2.MANUAL,
|
|
62820
|
+
TriggerTypeValue2.API,
|
|
62821
|
+
TriggerTypeValue2.WEBHOOK,
|
|
62822
|
+
TriggerTypeValue2.SCHEDULE,
|
|
62823
|
+
TriggerTypeValue2.EMAIL,
|
|
62824
|
+
TriggerTypeValue2.EVAL,
|
|
62825
|
+
TriggerTypeValue2.CLI
|
|
62826
|
+
]);
|
|
62827
|
+
ExecutionTypeValue2 = {
|
|
62828
|
+
PROD: "prod",
|
|
62829
|
+
EVAL: "eval",
|
|
62830
|
+
PLAYGROUND: "playground"
|
|
62831
|
+
};
|
|
62832
|
+
ExecutionTypeSchema2 = exports_external.enum([
|
|
62833
|
+
ExecutionTypeValue2.PROD,
|
|
62834
|
+
ExecutionTypeValue2.EVAL,
|
|
62835
|
+
ExecutionTypeValue2.PLAYGROUND
|
|
62836
|
+
]);
|
|
62837
|
+
WORKFLOW_EXECUTION_STATUSES2 = asTuple(WorkflowExecutionStatusSchema2.options);
|
|
62838
|
+
STEP_EXECUTION_STATUSES2 = asTuple(StepExecutionStatusSchema2.options);
|
|
62839
|
+
TRIGGER_TYPES2 = TriggerTypeSchema2.options;
|
|
62840
|
+
EXECUTION_TYPES2 = ExecutionTypeSchema2.options;
|
|
62841
|
+
});
|
|
62842
|
+
|
|
65204
62843
|
// ../types/src/workflow/workflow.ts
|
|
65205
62844
|
function suggestWorkflowName(raw) {
|
|
65206
62845
|
return raw.toLowerCase().replace(/[^a-z0-9_-]+/g, "-").replace(/^[_-]+|[_-]+$/g, "").slice(0, 64);
|
|
@@ -65281,11 +62920,11 @@ var init_workflow = __esm(() => {
|
|
|
65281
62920
|
ManualTriggerMethodSchema = exports_external.object({
|
|
65282
62921
|
type: exports_external.literal("manual"),
|
|
65283
62922
|
enabled: exports_external.boolean().optional(),
|
|
65284
|
-
inputSchema:
|
|
62923
|
+
inputSchema: JsonSchemaSchema2.optional()
|
|
65285
62924
|
});
|
|
65286
62925
|
ApiTriggerMethodSchema = exports_external.object({
|
|
65287
62926
|
type: exports_external.literal("api"),
|
|
65288
|
-
inputSchema:
|
|
62927
|
+
inputSchema: JsonSchemaSchema2.optional()
|
|
65289
62928
|
});
|
|
65290
62929
|
EmailTriggerMethodSchema = exports_external.object({
|
|
65291
62930
|
type: exports_external.literal("email"),
|
|
@@ -65324,8 +62963,8 @@ var init_workflow = __esm(() => {
|
|
|
65324
62963
|
yamlContent: exports_external.string(),
|
|
65325
62964
|
definition: WorkflowDefinitionSchema,
|
|
65326
62965
|
isCurrent: exports_external.boolean().default(true),
|
|
65327
|
-
createdAt:
|
|
65328
|
-
updatedAt:
|
|
62966
|
+
createdAt: TimestampSchema2,
|
|
62967
|
+
updatedAt: TimestampSchema2.optional(),
|
|
65329
62968
|
createdBy: exports_external.string()
|
|
65330
62969
|
});
|
|
65331
62970
|
CreateWorkflowDefinitionSchema = exports_external.object({
|
|
@@ -65507,14 +63146,14 @@ function isFileOutput(value) {
|
|
|
65507
63146
|
function isWorkflowResult(value) {
|
|
65508
63147
|
return value != null && typeof value === "object" && "files" in value && Array.isArray(value.files);
|
|
65509
63148
|
}
|
|
65510
|
-
var
|
|
63149
|
+
var WorkflowExecutionStatusSchema3, StepExecutionStatusSchema3, ScopeEntryTypeSchema, ScopeEntrySchema, ScopeStackSchema, StepResultSchema, ExecutionContextSchema, StepInputReferenceSchema, WorkflowExecutionSchema, StepExecutionSchema, ConnectorSchema, WorkflowFileOutputSchema, WorkflowResultSchema;
|
|
65511
63150
|
var init_execution2 = __esm(() => {
|
|
65512
63151
|
init_zod();
|
|
65513
63152
|
init_common();
|
|
65514
63153
|
init_execution();
|
|
65515
63154
|
init_workflow();
|
|
65516
|
-
|
|
65517
|
-
|
|
63155
|
+
WorkflowExecutionStatusSchema3 = WorkflowExecutionStatusSchema2;
|
|
63156
|
+
StepExecutionStatusSchema3 = StepExecutionStatusSchema2;
|
|
65518
63157
|
ScopeEntryTypeSchema = exports_external.enum([
|
|
65519
63158
|
"root",
|
|
65520
63159
|
"if-then",
|
|
@@ -65536,7 +63175,7 @@ var init_execution2 = __esm(() => {
|
|
|
65536
63175
|
ScopeStackSchema = exports_external.array(ScopeEntrySchema);
|
|
65537
63176
|
StepResultSchema = exports_external.object({
|
|
65538
63177
|
output: exports_external.unknown(),
|
|
65539
|
-
status:
|
|
63178
|
+
status: StepExecutionStatusSchema3
|
|
65540
63179
|
});
|
|
65541
63180
|
ExecutionContextSchema = exports_external.object({
|
|
65542
63181
|
input: exports_external.record(exports_external.string(), exports_external.unknown()),
|
|
@@ -65564,7 +63203,7 @@ var init_execution2 = __esm(() => {
|
|
|
65564
63203
|
triggerType: exports_external.string(),
|
|
65565
63204
|
triggerInput: exports_external.record(exports_external.string(), exports_external.unknown()).nullable(),
|
|
65566
63205
|
overrides: exports_external.object({ steps: exports_external.record(exports_external.string(), exports_external.record(exports_external.string(), exports_external.unknown())).optional() }).nullable().optional(),
|
|
65567
|
-
status:
|
|
63206
|
+
status: WorkflowExecutionStatusSchema3,
|
|
65568
63207
|
scopeStack: ScopeStackSchema,
|
|
65569
63208
|
currentStepIndex: exports_external.number(),
|
|
65570
63209
|
stepResults: exports_external.record(exports_external.string(), StepResultSchema).optional(),
|
|
@@ -65572,15 +63211,15 @@ var init_execution2 = __esm(() => {
|
|
|
65572
63211
|
error: exports_external.string().nullable(),
|
|
65573
63212
|
priority: exports_external.number().default(50),
|
|
65574
63213
|
leaseId: exports_external.string().nullable(),
|
|
65575
|
-
leaseExpiresAt:
|
|
63214
|
+
leaseExpiresAt: TimestampSchema2.nullable(),
|
|
65576
63215
|
workerId: exports_external.string().nullable(),
|
|
65577
63216
|
maxRetries: exports_external.number().default(0),
|
|
65578
63217
|
originalExecutionId: exports_external.string().nullable().optional(),
|
|
65579
63218
|
previousExecutionId: exports_external.string().nullable().optional(),
|
|
65580
63219
|
retryNumber: exports_external.number().default(0),
|
|
65581
|
-
createdAt:
|
|
65582
|
-
startedAt:
|
|
65583
|
-
completedAt:
|
|
63220
|
+
createdAt: TimestampSchema2,
|
|
63221
|
+
startedAt: TimestampSchema2.nullable(),
|
|
63222
|
+
completedAt: TimestampSchema2.nullable(),
|
|
65584
63223
|
createdBy: exports_external.string().nullable()
|
|
65585
63224
|
});
|
|
65586
63225
|
StepExecutionSchema = exports_external.object({
|
|
@@ -65597,12 +63236,12 @@ var init_execution2 = __esm(() => {
|
|
|
65597
63236
|
stepAttempt: exports_external.number().default(0),
|
|
65598
63237
|
inputData: exports_external.unknown().nullable(),
|
|
65599
63238
|
outputData: exports_external.unknown().nullable(),
|
|
65600
|
-
status:
|
|
63239
|
+
status: StepExecutionStatusSchema3,
|
|
65601
63240
|
error: exports_external.string().nullable(),
|
|
65602
63241
|
overrideMode: exports_external.enum(["skipped", "partial"]).nullable().optional(),
|
|
65603
63242
|
durationMs: exports_external.number().nullable(),
|
|
65604
|
-
startedAt:
|
|
65605
|
-
completedAt:
|
|
63243
|
+
startedAt: TimestampSchema2.nullable(),
|
|
63244
|
+
completedAt: TimestampSchema2.nullable()
|
|
65606
63245
|
});
|
|
65607
63246
|
ConnectorSchema = exports_external.object({
|
|
65608
63247
|
id: exports_external.string(),
|
|
@@ -65613,8 +63252,8 @@ var init_execution2 = __esm(() => {
|
|
|
65613
63252
|
config: exports_external.record(exports_external.string(), exports_external.unknown()),
|
|
65614
63253
|
inputSchema: exports_external.unknown().optional(),
|
|
65615
63254
|
outputSchema: exports_external.unknown().optional(),
|
|
65616
|
-
createdAt:
|
|
65617
|
-
updatedAt:
|
|
63255
|
+
createdAt: TimestampSchema2,
|
|
63256
|
+
updatedAt: TimestampSchema2.optional(),
|
|
65618
63257
|
createdBy: exports_external.string()
|
|
65619
63258
|
});
|
|
65620
63259
|
WorkflowFileOutputSchema = exports_external.object({
|
|
@@ -67497,7 +65136,7 @@ function fromBig(n, le = false) {
|
|
|
67497
65136
|
return { h: Number(n & U32_MASK64), l: Number(n >> _32n & U32_MASK64) };
|
|
67498
65137
|
return { h: Number(n >> _32n & U32_MASK64) | 0, l: Number(n & U32_MASK64) | 0 };
|
|
67499
65138
|
}
|
|
67500
|
-
function
|
|
65139
|
+
function split(lst, le = false) {
|
|
67501
65140
|
const len = lst.length;
|
|
67502
65141
|
let Ah = new Uint32Array(len);
|
|
67503
65142
|
let Al = new Uint32Array(len);
|
|
@@ -67677,7 +65316,7 @@ var init_sha2 = __esm(() => {
|
|
|
67677
65316
|
super(28);
|
|
67678
65317
|
}
|
|
67679
65318
|
};
|
|
67680
|
-
K512 = /* @__PURE__ */ (() =>
|
|
65319
|
+
K512 = /* @__PURE__ */ (() => split([
|
|
67681
65320
|
"0x428a2f98d728ae22",
|
|
67682
65321
|
"0x7137449123ef65cd",
|
|
67683
65322
|
"0xb5c0fbcfec4d3b2f",
|
|
@@ -68066,11 +65705,11 @@ function walkGrammar(node, parts) {
|
|
|
68066
65705
|
}
|
|
68067
65706
|
return current;
|
|
68068
65707
|
}
|
|
68069
|
-
function normalizeTemplate(
|
|
68070
|
-
return
|
|
65708
|
+
function normalizeTemplate(template) {
|
|
65709
|
+
return template.endsWith("/") ? template.slice(0, -1) : template;
|
|
68071
65710
|
}
|
|
68072
|
-
function renderTemplate(
|
|
68073
|
-
return normalizeTemplate(
|
|
65711
|
+
function renderTemplate(template, params) {
|
|
65712
|
+
return normalizeTemplate(template).split("/").flatMap((part) => {
|
|
68074
65713
|
if (!part.startsWith(":")) {
|
|
68075
65714
|
return [part];
|
|
68076
65715
|
}
|
|
@@ -68085,31 +65724,31 @@ function renderTemplate(template2, params) {
|
|
|
68085
65724
|
return [assertSegment(String(name), value)];
|
|
68086
65725
|
});
|
|
68087
65726
|
}
|
|
68088
|
-
function buildS3Path(tenantId,
|
|
65727
|
+
function buildS3Path(tenantId, template, params) {
|
|
68089
65728
|
const tenant = assertSegment("tenantId", tenantId);
|
|
68090
|
-
const parts = renderTemplate(
|
|
65729
|
+
const parts = renderTemplate(template, params);
|
|
68091
65730
|
const node = walkGrammar(S3_PATH_GRAMMAR, parts);
|
|
68092
|
-
if (
|
|
68093
|
-
throw new Error(`S3 path leaf cannot have a trailing slash: ${JSON.stringify(
|
|
65731
|
+
if (template.endsWith("/") && node === PATH_LEAF) {
|
|
65732
|
+
throw new Error(`S3 path leaf cannot have a trailing slash: ${JSON.stringify(template)}`);
|
|
68094
65733
|
}
|
|
68095
65734
|
const path = ["tenants", tenant, ...parts].join("/");
|
|
68096
|
-
return
|
|
65735
|
+
return template.endsWith("/") ? `${path}/` : path;
|
|
68097
65736
|
}
|
|
68098
|
-
function buildS3PathSuffix(
|
|
68099
|
-
const parts = renderTemplate(
|
|
65737
|
+
function buildS3PathSuffix(template, params) {
|
|
65738
|
+
const parts = renderTemplate(template, params);
|
|
68100
65739
|
const node = walkGrammar(S3_PATH_GRAMMAR, parts);
|
|
68101
|
-
if (
|
|
68102
|
-
throw new Error(`S3 path leaf cannot have a trailing slash: ${JSON.stringify(
|
|
65740
|
+
if (template.endsWith("/") && node === PATH_LEAF) {
|
|
65741
|
+
throw new Error(`S3 path leaf cannot have a trailing slash: ${JSON.stringify(template)}`);
|
|
68103
65742
|
}
|
|
68104
65743
|
const path = parts.join("/");
|
|
68105
|
-
return
|
|
65744
|
+
return template.endsWith("/") ? `${path}/` : path;
|
|
68106
65745
|
}
|
|
68107
65746
|
function stripTenantPrefix(key) {
|
|
68108
65747
|
return key.replace(TENANT_PREFIX_RX, "");
|
|
68109
65748
|
}
|
|
68110
|
-
function matchS3Path(
|
|
65749
|
+
function matchS3Path(template, key) {
|
|
68111
65750
|
const keyParts = stripTenantPrefix(key).split("/");
|
|
68112
|
-
const templateParts = normalizeTemplate(
|
|
65751
|
+
const templateParts = normalizeTemplate(template).split("/");
|
|
68113
65752
|
const params = {};
|
|
68114
65753
|
let keyIndex = 0;
|
|
68115
65754
|
for (let templateIndex = 0;templateIndex < templateParts.length; templateIndex += 1) {
|
|
@@ -68162,23 +65801,23 @@ function createBuilder(grammarNode, prefixSegments, boundTenantId) {
|
|
|
68162
65801
|
}
|
|
68163
65802
|
return assertSegment("tenantId", tenantId);
|
|
68164
65803
|
};
|
|
68165
|
-
const build = (
|
|
65804
|
+
const build = (template, params) => {
|
|
68166
65805
|
const tenant = resolveTenantId(params);
|
|
68167
|
-
const parts = renderTemplate(
|
|
65806
|
+
const parts = renderTemplate(template, params ?? {});
|
|
68168
65807
|
const node = walkGrammar(grammarNode, parts);
|
|
68169
|
-
if (
|
|
68170
|
-
throw new Error(`S3 path leaf cannot have a trailing slash: ${JSON.stringify(
|
|
65808
|
+
if (template.endsWith("/") && node === PATH_LEAF) {
|
|
65809
|
+
throw new Error(`S3 path leaf cannot have a trailing slash: ${JSON.stringify(template)}`);
|
|
68171
65810
|
}
|
|
68172
65811
|
const path = ["tenants", tenant, ...prefixSegments, ...parts].join("/");
|
|
68173
|
-
return
|
|
65812
|
+
return template.endsWith("/") ? `${path}/` : path;
|
|
68174
65813
|
};
|
|
68175
65814
|
const builder = build;
|
|
68176
|
-
builder.at = (
|
|
65815
|
+
builder.at = (template, params) => {
|
|
68177
65816
|
const tenant = resolveTenantId(params);
|
|
68178
|
-
const parts = renderTemplate(
|
|
65817
|
+
const parts = renderTemplate(template, params ?? {});
|
|
68179
65818
|
const nextNode = walkGrammar(grammarNode, parts);
|
|
68180
|
-
if (
|
|
68181
|
-
throw new Error(`S3 path leaf cannot have a trailing slash: ${JSON.stringify(
|
|
65819
|
+
if (template.endsWith("/") && nextNode === PATH_LEAF) {
|
|
65820
|
+
throw new Error(`S3 path leaf cannot have a trailing slash: ${JSON.stringify(template)}`);
|
|
68182
65821
|
}
|
|
68183
65822
|
return createBuilder(nextNode, [...prefixSegments, ...parts], tenant);
|
|
68184
65823
|
};
|
|
@@ -68561,7 +66200,7 @@ __export(exports_src, {
|
|
|
68561
66200
|
SplitConfigSchema: () => SplitConfigSchema,
|
|
68562
66201
|
SpanTypes: () => SpanTypes,
|
|
68563
66202
|
SpanKindMap: () => SpanKindMap,
|
|
68564
|
-
SpanKind: () =>
|
|
66203
|
+
SpanKind: () => SpanKind,
|
|
68565
66204
|
SourceVersionRefSchema: () => SourceVersionRefSchema,
|
|
68566
66205
|
SourceSecretsFileSchema: () => SourceSecretsFileSchema,
|
|
68567
66206
|
SourcePackageTypeSchema: () => SourcePackageTypeSchema,
|
|
@@ -68663,7 +66302,7 @@ __export(exports_src, {
|
|
|
68663
66302
|
GPFS_FILE_SOURCE_DESCRIPTOR: () => GPFS_FILE_SOURCE_DESCRIPTOR,
|
|
68664
66303
|
ForeachStepSchema: () => ForeachStepSchema,
|
|
68665
66304
|
FileReferenceSentinelSchema: () => FileReferenceSentinelSchema,
|
|
68666
|
-
FilePathDescriptorSchema: () =>
|
|
66305
|
+
FilePathDescriptorSchema: () => FilePathDescriptorSchema2,
|
|
68667
66306
|
FileIngressRefSchema: () => FileIngressRefSchema,
|
|
68668
66307
|
FileIdIngressRefSchema: () => FileIdIngressRefSchema,
|
|
68669
66308
|
FailStepSchema: () => FailStepSchema,
|
|
@@ -68784,8 +66423,8 @@ var init_src = __esm(() => {
|
|
|
68784
66423
|
init_legacy_boundary();
|
|
68785
66424
|
init_runtime_file_ref();
|
|
68786
66425
|
init_scoped_file_ref();
|
|
68787
|
-
|
|
68788
|
-
|
|
66426
|
+
init_processor();
|
|
66427
|
+
init_parser();
|
|
68789
66428
|
init_otel();
|
|
68790
66429
|
init_execution_row();
|
|
68791
66430
|
init_run_expand();
|
|
@@ -69698,7 +67337,7 @@ var require_foldFlowLines = __commonJS((exports) => {
|
|
|
69698
67337
|
else
|
|
69699
67338
|
end = lineWidth - indentAtStart;
|
|
69700
67339
|
}
|
|
69701
|
-
let
|
|
67340
|
+
let split2 = undefined;
|
|
69702
67341
|
let prev = undefined;
|
|
69703
67342
|
let overflow = false;
|
|
69704
67343
|
let i = -1;
|
|
@@ -69732,20 +67371,20 @@ var require_foldFlowLines = __commonJS((exports) => {
|
|
|
69732
67371
|
if (mode === FOLD_BLOCK)
|
|
69733
67372
|
i = consumeMoreIndentedLines(text, i, indent.length);
|
|
69734
67373
|
end = i + indent.length + endStep;
|
|
69735
|
-
|
|
67374
|
+
split2 = undefined;
|
|
69736
67375
|
} else {
|
|
69737
67376
|
if (ch === " " && prev && prev !== " " && prev !== `
|
|
69738
67377
|
` && prev !== "\t") {
|
|
69739
67378
|
const next = text[i + 1];
|
|
69740
67379
|
if (next && next !== " " && next !== `
|
|
69741
67380
|
` && next !== "\t")
|
|
69742
|
-
|
|
67381
|
+
split2 = i;
|
|
69743
67382
|
}
|
|
69744
67383
|
if (i >= end) {
|
|
69745
|
-
if (
|
|
69746
|
-
folds.push(
|
|
69747
|
-
end =
|
|
69748
|
-
|
|
67384
|
+
if (split2) {
|
|
67385
|
+
folds.push(split2);
|
|
67386
|
+
end = split2 + endStep;
|
|
67387
|
+
split2 = undefined;
|
|
69749
67388
|
} else if (mode === FOLD_QUOTED) {
|
|
69750
67389
|
while (prev === " " || prev === "\t") {
|
|
69751
67390
|
prev = ch;
|
|
@@ -69758,7 +67397,7 @@ var require_foldFlowLines = __commonJS((exports) => {
|
|
|
69758
67397
|
folds.push(j);
|
|
69759
67398
|
escapedFolds[j] = true;
|
|
69760
67399
|
end = j + endStep;
|
|
69761
|
-
|
|
67400
|
+
split2 = undefined;
|
|
69762
67401
|
} else {
|
|
69763
67402
|
overflow = true;
|
|
69764
67403
|
}
|
|
@@ -70392,7 +68031,7 @@ var require_merge = __commonJS((exports) => {
|
|
|
70392
68031
|
var identity = require_identity();
|
|
70393
68032
|
var Scalar = require_Scalar();
|
|
70394
68033
|
var MERGE_KEY = "<<";
|
|
70395
|
-
var
|
|
68034
|
+
var merge2 = {
|
|
70396
68035
|
identify: (value) => value === MERGE_KEY || typeof value === "symbol" && value.description === MERGE_KEY,
|
|
70397
68036
|
default: "key",
|
|
70398
68037
|
tag: "tag:yaml.org,2002:merge",
|
|
@@ -70402,7 +68041,7 @@ var require_merge = __commonJS((exports) => {
|
|
|
70402
68041
|
}),
|
|
70403
68042
|
stringify: () => MERGE_KEY
|
|
70404
68043
|
};
|
|
70405
|
-
var isMergeKey = (ctx, key) => (
|
|
68044
|
+
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);
|
|
70406
68045
|
function addMergeToJSMap(ctx, map2, value) {
|
|
70407
68046
|
const source = resolveAliasValue(ctx, value);
|
|
70408
68047
|
if (identity.isSeq(source))
|
|
@@ -70441,21 +68080,21 @@ var require_merge = __commonJS((exports) => {
|
|
|
70441
68080
|
}
|
|
70442
68081
|
exports.addMergeToJSMap = addMergeToJSMap;
|
|
70443
68082
|
exports.isMergeKey = isMergeKey;
|
|
70444
|
-
exports.merge =
|
|
68083
|
+
exports.merge = merge2;
|
|
70445
68084
|
});
|
|
70446
68085
|
|
|
70447
68086
|
// node_modules/yaml/dist/nodes/addPairToJSMap.js
|
|
70448
68087
|
var require_addPairToJSMap = __commonJS((exports) => {
|
|
70449
68088
|
var log = require_log();
|
|
70450
|
-
var
|
|
68089
|
+
var merge2 = require_merge();
|
|
70451
68090
|
var stringify = require_stringify();
|
|
70452
68091
|
var identity = require_identity();
|
|
70453
68092
|
var toJS = require_toJS();
|
|
70454
68093
|
function addPairToJSMap(ctx, map2, { key, value }) {
|
|
70455
68094
|
if (identity.isNode(key) && key.addToJSMap)
|
|
70456
68095
|
key.addToJSMap(ctx, map2, value);
|
|
70457
|
-
else if (
|
|
70458
|
-
|
|
68096
|
+
else if (merge2.isMergeKey(ctx, key))
|
|
68097
|
+
merge2.addMergeToJSMap(ctx, map2, value);
|
|
70459
68098
|
else {
|
|
70460
68099
|
const jsKey = toJS.toJS(key, "", ctx);
|
|
70461
68100
|
if (map2 instanceof Map) {
|
|
@@ -71731,7 +69370,7 @@ var require_schema3 = __commonJS((exports) => {
|
|
|
71731
69370
|
var bool = require_bool2();
|
|
71732
69371
|
var float = require_float2();
|
|
71733
69372
|
var int2 = require_int2();
|
|
71734
|
-
var
|
|
69373
|
+
var merge2 = require_merge();
|
|
71735
69374
|
var omap = require_omap();
|
|
71736
69375
|
var pairs = require_pairs();
|
|
71737
69376
|
var set2 = require_set();
|
|
@@ -71751,7 +69390,7 @@ var require_schema3 = __commonJS((exports) => {
|
|
|
71751
69390
|
float.floatExp,
|
|
71752
69391
|
float.float,
|
|
71753
69392
|
binary.binary,
|
|
71754
|
-
|
|
69393
|
+
merge2.merge,
|
|
71755
69394
|
omap.omap,
|
|
71756
69395
|
pairs.pairs,
|
|
71757
69396
|
set2.set,
|
|
@@ -71774,7 +69413,7 @@ var require_tags = __commonJS((exports) => {
|
|
|
71774
69413
|
var schema = require_schema();
|
|
71775
69414
|
var schema$1 = require_schema2();
|
|
71776
69415
|
var binary = require_binary();
|
|
71777
|
-
var
|
|
69416
|
+
var merge2 = require_merge();
|
|
71778
69417
|
var omap = require_omap();
|
|
71779
69418
|
var pairs = require_pairs();
|
|
71780
69419
|
var schema$2 = require_schema3();
|
|
@@ -71799,7 +69438,7 @@ var require_tags = __commonJS((exports) => {
|
|
|
71799
69438
|
intOct: int2.intOct,
|
|
71800
69439
|
intTime: timestamp.intTime,
|
|
71801
69440
|
map: map2.map,
|
|
71802
|
-
merge:
|
|
69441
|
+
merge: merge2.merge,
|
|
71803
69442
|
null: _null4.nullTag,
|
|
71804
69443
|
omap: omap.omap,
|
|
71805
69444
|
pairs: pairs.pairs,
|
|
@@ -71809,7 +69448,7 @@ var require_tags = __commonJS((exports) => {
|
|
|
71809
69448
|
};
|
|
71810
69449
|
var coreKnownTags = {
|
|
71811
69450
|
"tag:yaml.org,2002:binary": binary.binary,
|
|
71812
|
-
"tag:yaml.org,2002:merge":
|
|
69451
|
+
"tag:yaml.org,2002:merge": merge2.merge,
|
|
71813
69452
|
"tag:yaml.org,2002:omap": omap.omap,
|
|
71814
69453
|
"tag:yaml.org,2002:pairs": pairs.pairs,
|
|
71815
69454
|
"tag:yaml.org,2002:set": set2.set,
|
|
@@ -71818,7 +69457,7 @@ var require_tags = __commonJS((exports) => {
|
|
|
71818
69457
|
function getTags(customTags, schemaName, addMergeTag) {
|
|
71819
69458
|
const schemaTags = schemas3.get(schemaName);
|
|
71820
69459
|
if (schemaTags && !customTags) {
|
|
71821
|
-
return addMergeTag && !schemaTags.includes(
|
|
69460
|
+
return addMergeTag && !schemaTags.includes(merge2.merge) ? schemaTags.concat(merge2.merge) : schemaTags.slice();
|
|
71822
69461
|
}
|
|
71823
69462
|
let tags = schemaTags;
|
|
71824
69463
|
if (!tags) {
|
|
@@ -71836,7 +69475,7 @@ var require_tags = __commonJS((exports) => {
|
|
|
71836
69475
|
tags = customTags(tags.slice());
|
|
71837
69476
|
}
|
|
71838
69477
|
if (addMergeTag)
|
|
71839
|
-
tags = tags.concat(
|
|
69478
|
+
tags = tags.concat(merge2.merge);
|
|
71840
69479
|
return tags.reduce((tags2, tag) => {
|
|
71841
69480
|
const tagObj = typeof tag === "string" ? tagsByName[tag] : tag;
|
|
71842
69481
|
if (!tagObj) {
|
|
@@ -71863,11 +69502,11 @@ var require_Schema = __commonJS((exports) => {
|
|
|
71863
69502
|
var sortMapEntriesByKey = (a, b) => a.key < b.key ? -1 : a.key > b.key ? 1 : 0;
|
|
71864
69503
|
|
|
71865
69504
|
class Schema {
|
|
71866
|
-
constructor({ compat: compat2, customTags, merge:
|
|
69505
|
+
constructor({ compat: compat2, customTags, merge: merge2, resolveKnownTags, schema, sortMapEntries, toStringDefaults }) {
|
|
71867
69506
|
this.compat = Array.isArray(compat2) ? tags.getTags(compat2, "compat") : compat2 ? tags.getTags(null, compat2) : null;
|
|
71868
69507
|
this.name = typeof schema === "string" && schema || "core";
|
|
71869
69508
|
this.knownTags = resolveKnownTags ? tags.coreKnownTags : {};
|
|
71870
|
-
this.tags = tags.getTags(customTags, this.name,
|
|
69509
|
+
this.tags = tags.getTags(customTags, this.name, merge2);
|
|
71871
69510
|
this.toStringOptions = toStringDefaults ?? null;
|
|
71872
69511
|
Object.defineProperty(this, identity.MAP, { value: map2.map });
|
|
71873
69512
|
Object.defineProperty(this, identity.SCALAR, { value: string4.string });
|
|
@@ -73090,13 +70729,13 @@ var require_resolve_block_scalar = __commonJS((exports) => {
|
|
|
73090
70729
|
return { mode, indent, chomp, comment, length };
|
|
73091
70730
|
}
|
|
73092
70731
|
function splitLines(source) {
|
|
73093
|
-
const
|
|
73094
|
-
const first =
|
|
70732
|
+
const split2 = source.split(/\n( *)/);
|
|
70733
|
+
const first = split2[0];
|
|
73095
70734
|
const m = first.match(/^( *)/);
|
|
73096
70735
|
const line0 = m?.[1] ? [m[1], first.slice(m[1].length)] : ["", first];
|
|
73097
70736
|
const lines = [line0];
|
|
73098
|
-
for (let i = 1;i <
|
|
73099
|
-
lines.push([
|
|
70737
|
+
for (let i = 1;i < split2.length; i += 2)
|
|
70738
|
+
lines.push([split2[i], split2[i + 1]]);
|
|
73100
70739
|
return lines;
|
|
73101
70740
|
}
|
|
73102
70741
|
exports.resolveBlockScalar = resolveBlockScalar;
|
|
@@ -76110,7 +73749,7 @@ var init_main = __esm(() => {
|
|
|
76110
73749
|
});
|
|
76111
73750
|
|
|
76112
73751
|
// ../../node_modules/sisteransi/src/index.js
|
|
76113
|
-
var
|
|
73752
|
+
var require_src = __commonJS((exports, module) => {
|
|
76114
73753
|
var ESC2 = "\x1B";
|
|
76115
73754
|
var CSI2 = `${ESC2}[`;
|
|
76116
73755
|
var beep = "\x07";
|
|
@@ -76453,7 +74092,7 @@ var import_sisteransi, G, K, h, Y, k, A = (r) => ("columns" in r) && typeof r.co
|
|
|
76453
74092
|
}, Q, X, Z, et, it, rt, nt, ot, ut, at, ht;
|
|
76454
74093
|
var init_dist3 = __esm(() => {
|
|
76455
74094
|
init_main();
|
|
76456
|
-
import_sisteransi = __toESM(
|
|
74095
|
+
import_sisteransi = __toESM(require_src(), 1);
|
|
76457
74096
|
G = ["up", "down", "left", "right", "space", "enter", "cancel"];
|
|
76458
74097
|
K = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
|
|
76459
74098
|
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)}` } } };
|
|
@@ -77796,7 +75435,7 @@ var init_dist4 = __esm(() => {
|
|
|
77796
75435
|
init_dist3();
|
|
77797
75436
|
init_main();
|
|
77798
75437
|
init_dist2();
|
|
77799
|
-
import_sisteransi2 = __toESM(
|
|
75438
|
+
import_sisteransi2 = __toESM(require_src(), 1);
|
|
77800
75439
|
tt2 = te();
|
|
77801
75440
|
_t = w2("◆", "*");
|
|
77802
75441
|
ot2 = w2("■", "x");
|
|
@@ -171288,7 +168927,7 @@ var require3, __filename2, __dirname2, __create2, __defProp3, __getOwnPropDesc,
|
|
|
171288
168927
|
__defProp3(to5, key2, { get: () => from[key2], enumerable: !(desc = __getOwnPropDesc(from, key2)) || desc.enumerable });
|
|
171289
168928
|
}
|
|
171290
168929
|
return to5;
|
|
171291
|
-
}, __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,
|
|
168930
|
+
}, __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 {
|
|
171292
168931
|
diff(oldStr, newStr, options8 = {}) {
|
|
171293
168932
|
let callback;
|
|
171294
168933
|
if (typeof options8 === "function") {
|
|
@@ -172310,7 +169949,7 @@ var init_prettier = __esm(() => {
|
|
|
172310
169949
|
};
|
|
172311
169950
|
}
|
|
172312
169951
|
});
|
|
172313
|
-
|
|
169952
|
+
require_utils2 = __commonJS2({
|
|
172314
169953
|
"node_modules/braces/lib/utils.js"(exports) {
|
|
172315
169954
|
exports.isInteger = (num) => {
|
|
172316
169955
|
if (typeof num === "number") {
|
|
@@ -172399,7 +170038,7 @@ var init_prettier = __esm(() => {
|
|
|
172399
170038
|
});
|
|
172400
170039
|
require_stringify2 = __commonJS2({
|
|
172401
170040
|
"node_modules/braces/lib/stringify.js"(exports, module) {
|
|
172402
|
-
var utils2 =
|
|
170041
|
+
var utils2 = require_utils2();
|
|
172403
170042
|
module.exports = (ast, options8 = {}) => {
|
|
172404
170043
|
const stringify2 = (node, parent = {}) => {
|
|
172405
170044
|
const invalidBlock = options8.escapeInvalid && utils2.isInvalidBrace(parent);
|
|
@@ -172853,7 +170492,7 @@ var init_prettier = __esm(() => {
|
|
|
172853
170492
|
require_compile2 = __commonJS2({
|
|
172854
170493
|
"node_modules/braces/lib/compile.js"(exports, module) {
|
|
172855
170494
|
var fill2 = require_fill_range();
|
|
172856
|
-
var utils2 =
|
|
170495
|
+
var utils2 = require_utils2();
|
|
172857
170496
|
var compile = (ast, options8 = {}) => {
|
|
172858
170497
|
const walk2 = (node, parent = {}) => {
|
|
172859
170498
|
const invalidBlock = utils2.isInvalidBrace(parent);
|
|
@@ -172903,7 +170542,7 @@ var init_prettier = __esm(() => {
|
|
|
172903
170542
|
"node_modules/braces/lib/expand.js"(exports, module) {
|
|
172904
170543
|
var fill2 = require_fill_range();
|
|
172905
170544
|
var stringify2 = require_stringify2();
|
|
172906
|
-
var utils2 =
|
|
170545
|
+
var utils2 = require_utils2();
|
|
172907
170546
|
var append = (queue = "", stash = "", enclose = false) => {
|
|
172908
170547
|
const result = [];
|
|
172909
170548
|
queue = [].concat(queue);
|
|
@@ -175102,8 +172741,8 @@ var init_prettier = __esm(() => {
|
|
|
175102
172741
|
var Stream = __require2("stream");
|
|
175103
172742
|
var PassThrough = Stream.PassThrough;
|
|
175104
172743
|
var slice = Array.prototype.slice;
|
|
175105
|
-
module.exports =
|
|
175106
|
-
function
|
|
172744
|
+
module.exports = merge2;
|
|
172745
|
+
function merge2() {
|
|
175107
172746
|
const streamsQueue = [];
|
|
175108
172747
|
const args = slice.call(arguments);
|
|
175109
172748
|
let merging = false;
|
|
@@ -175217,9 +172856,9 @@ var init_prettier = __esm(() => {
|
|
|
175217
172856
|
"node_modules/fast-glob/out/utils/stream.js"(exports) {
|
|
175218
172857
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
175219
172858
|
exports.merge = undefined;
|
|
175220
|
-
var
|
|
172859
|
+
var merge2 = require_merge2();
|
|
175221
172860
|
function merge3(streams) {
|
|
175222
|
-
const mergedStream =
|
|
172861
|
+
const mergedStream = merge2(streams);
|
|
175223
172862
|
streams.forEach((stream) => {
|
|
175224
172863
|
stream.once("error", (error52) => mergedStream.emit("error", error52));
|
|
175225
172864
|
});
|
|
@@ -175247,7 +172886,7 @@ var init_prettier = __esm(() => {
|
|
|
175247
172886
|
exports.isEmpty = isEmpty;
|
|
175248
172887
|
}
|
|
175249
172888
|
});
|
|
175250
|
-
|
|
172889
|
+
require_utils3 = __commonJS2({
|
|
175251
172890
|
"node_modules/fast-glob/out/utils/index.js"(exports) {
|
|
175252
172891
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
175253
172892
|
exports.string = exports.stream = exports.pattern = exports.path = exports.fs = exports.errno = exports.array = undefined;
|
|
@@ -175271,7 +172910,7 @@ var init_prettier = __esm(() => {
|
|
|
175271
172910
|
"node_modules/fast-glob/out/managers/tasks.js"(exports) {
|
|
175272
172911
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
175273
172912
|
exports.convertPatternGroupToTask = exports.convertPatternGroupsToTasks = exports.groupPatternsByBaseDirectory = exports.getNegativePatternsAsPositive = exports.getPositivePatterns = exports.convertPatternsToTasks = exports.generate = undefined;
|
|
175274
|
-
var utils2 =
|
|
172913
|
+
var utils2 = require_utils3();
|
|
175275
172914
|
function generate(input, settings) {
|
|
175276
172915
|
const patterns = processPatterns(input, settings);
|
|
175277
172916
|
const ignore = processPatterns(settings.ignore, settings);
|
|
@@ -175580,7 +173219,7 @@ var init_prettier = __esm(() => {
|
|
|
175580
173219
|
exports.createDirentFromStats = createDirentFromStats;
|
|
175581
173220
|
}
|
|
175582
173221
|
});
|
|
175583
|
-
|
|
173222
|
+
require_utils4 = __commonJS2({
|
|
175584
173223
|
"node_modules/@nodelib/fs.scandir/out/utils/index.js"(exports) {
|
|
175585
173224
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
175586
173225
|
exports.fs = undefined;
|
|
@@ -175608,7 +173247,7 @@ var init_prettier = __esm(() => {
|
|
|
175608
173247
|
var fsStat = require_out();
|
|
175609
173248
|
var rpl = require_run_parallel();
|
|
175610
173249
|
var constants_1 = require_constants3();
|
|
175611
|
-
var utils2 =
|
|
173250
|
+
var utils2 = require_utils4();
|
|
175612
173251
|
var common = require_common();
|
|
175613
173252
|
function read3(directory, settings, callback) {
|
|
175614
173253
|
if (!settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) {
|
|
@@ -175714,7 +173353,7 @@ var init_prettier = __esm(() => {
|
|
|
175714
173353
|
exports.readdir = exports.readdirWithFileTypes = exports.read = undefined;
|
|
175715
173354
|
var fsStat = require_out();
|
|
175716
173355
|
var constants_1 = require_constants3();
|
|
175717
|
-
var utils2 =
|
|
173356
|
+
var utils2 = require_utils4();
|
|
175718
173357
|
var common = require_common();
|
|
175719
173358
|
function read3(directory, settings) {
|
|
175720
173359
|
if (!settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) {
|
|
@@ -176494,7 +174133,7 @@ var init_prettier = __esm(() => {
|
|
|
176494
174133
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
176495
174134
|
var path15 = __require2("path");
|
|
176496
174135
|
var fsStat = require_out();
|
|
176497
|
-
var utils2 =
|
|
174136
|
+
var utils2 = require_utils3();
|
|
176498
174137
|
var Reader = class {
|
|
176499
174138
|
constructor(_settings) {
|
|
176500
174139
|
this._settings = _settings;
|
|
@@ -176618,7 +174257,7 @@ var init_prettier = __esm(() => {
|
|
|
176618
174257
|
require_matcher = __commonJS2({
|
|
176619
174258
|
"node_modules/fast-glob/out/providers/matchers/matcher.js"(exports) {
|
|
176620
174259
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
176621
|
-
var utils2 =
|
|
174260
|
+
var utils2 = require_utils3();
|
|
176622
174261
|
var Matcher = class {
|
|
176623
174262
|
constructor(_patterns, _settings, _micromatchOptions) {
|
|
176624
174263
|
this._patterns = _patterns;
|
|
@@ -176700,7 +174339,7 @@ var init_prettier = __esm(() => {
|
|
|
176700
174339
|
require_deep = __commonJS2({
|
|
176701
174340
|
"node_modules/fast-glob/out/providers/filters/deep.js"(exports) {
|
|
176702
174341
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
176703
|
-
var utils2 =
|
|
174342
|
+
var utils2 = require_utils3();
|
|
176704
174343
|
var partial_1 = require_partial();
|
|
176705
174344
|
var DeepFilter = class {
|
|
176706
174345
|
constructor(_settings, _micromatchOptions) {
|
|
@@ -176762,7 +174401,7 @@ var init_prettier = __esm(() => {
|
|
|
176762
174401
|
require_entry = __commonJS2({
|
|
176763
174402
|
"node_modules/fast-glob/out/providers/filters/entry.js"(exports) {
|
|
176764
174403
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
176765
|
-
var utils2 =
|
|
174404
|
+
var utils2 = require_utils3();
|
|
176766
174405
|
var EntryFilter = class {
|
|
176767
174406
|
constructor(_settings, _micromatchOptions) {
|
|
176768
174407
|
this._settings = _settings;
|
|
@@ -176847,7 +174486,7 @@ var init_prettier = __esm(() => {
|
|
|
176847
174486
|
require_error2 = __commonJS2({
|
|
176848
174487
|
"node_modules/fast-glob/out/providers/filters/error.js"(exports) {
|
|
176849
174488
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
176850
|
-
var utils2 =
|
|
174489
|
+
var utils2 = require_utils3();
|
|
176851
174490
|
var ErrorFilter = class {
|
|
176852
174491
|
constructor(_settings) {
|
|
176853
174492
|
this._settings = _settings;
|
|
@@ -176865,7 +174504,7 @@ var init_prettier = __esm(() => {
|
|
|
176865
174504
|
require_entry2 = __commonJS2({
|
|
176866
174505
|
"node_modules/fast-glob/out/providers/transformers/entry.js"(exports) {
|
|
176867
174506
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
176868
|
-
var utils2 =
|
|
174507
|
+
var utils2 = require_utils3();
|
|
176869
174508
|
var EntryTransformer = class {
|
|
176870
174509
|
constructor(_settings) {
|
|
176871
174510
|
this._settings = _settings;
|
|
@@ -177133,7 +174772,7 @@ var init_prettier = __esm(() => {
|
|
|
177133
174772
|
var stream_1 = require_stream4();
|
|
177134
174773
|
var sync_1 = require_sync6();
|
|
177135
174774
|
var settings_1 = require_settings4();
|
|
177136
|
-
var utils2 =
|
|
174775
|
+
var utils2 = require_utils3();
|
|
177137
174776
|
async function FastGlob(source2, options8) {
|
|
177138
174777
|
assertPatternsInput(source2);
|
|
177139
174778
|
const works = getWorks(source2, async_1.default, options8);
|
|
@@ -177451,7 +175090,7 @@ var init_prettier = __esm(() => {
|
|
|
177451
175090
|
};
|
|
177452
175091
|
}
|
|
177453
175092
|
});
|
|
177454
|
-
|
|
175093
|
+
require_semver = __commonJS2({
|
|
177455
175094
|
"node_modules/semver/classes/semver.js"(exports, module) {
|
|
177456
175095
|
var debug = require_debug();
|
|
177457
175096
|
var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants4();
|
|
@@ -177721,7 +175360,7 @@ var init_prettier = __esm(() => {
|
|
|
177721
175360
|
});
|
|
177722
175361
|
require_compare = __commonJS2({
|
|
177723
175362
|
"node_modules/semver/functions/compare.js"(exports, module) {
|
|
177724
|
-
var SemVer =
|
|
175363
|
+
var SemVer = require_semver();
|
|
177725
175364
|
var compare = (a5, b8, loose) => new SemVer(a5, loose).compare(new SemVer(b8, loose));
|
|
177726
175365
|
module.exports = compare;
|
|
177727
175366
|
}
|
|
@@ -179454,7 +177093,7 @@ globstar while`, file2, fr10, pattern, pr8, swallowee);
|
|
|
179454
177093
|
};
|
|
179455
177094
|
}
|
|
179456
177095
|
});
|
|
179457
|
-
|
|
177096
|
+
require_src2 = __commonJS2({
|
|
179458
177097
|
"node_modules/editorconfig/src/index.js"(exports) {
|
|
179459
177098
|
var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P9, generator) {
|
|
179460
177099
|
return new (P9 || (P9 = Promise))(function(resolve32, reject) {
|
|
@@ -180917,7 +178556,7 @@ globstar while`, file2, fr10, pattern, pr8, swallowee);
|
|
|
180917
178556
|
mockable_default = mockable.mocked;
|
|
180918
178557
|
import_micromatch = __toESM2(require_micromatch(), 1);
|
|
180919
178558
|
partition_default = partition2;
|
|
180920
|
-
import_editorconfig = __toESM2(
|
|
178559
|
+
import_editorconfig = __toESM2(require_src2(), 1);
|
|
180921
178560
|
iterate_directory_up_default = iterateDirectoryUp;
|
|
180922
178561
|
FileSearcher = class extends Searcher {
|
|
180923
178562
|
findInDirectory = findFile;
|
|
@@ -184388,7 +182027,7 @@ var require_foldFlowLines2 = __commonJS((exports) => {
|
|
|
184388
182027
|
else
|
|
184389
182028
|
end = lineWidth - indentAtStart;
|
|
184390
182029
|
}
|
|
184391
|
-
let
|
|
182030
|
+
let split2 = undefined;
|
|
184392
182031
|
let prev = undefined;
|
|
184393
182032
|
let overflow = false;
|
|
184394
182033
|
let i5 = -1;
|
|
@@ -184422,20 +182061,20 @@ var require_foldFlowLines2 = __commonJS((exports) => {
|
|
|
184422
182061
|
if (mode === FOLD_BLOCK)
|
|
184423
182062
|
i5 = consumeMoreIndentedLines(text, i5, indent3.length);
|
|
184424
182063
|
end = i5 + indent3.length + endStep;
|
|
184425
|
-
|
|
182064
|
+
split2 = undefined;
|
|
184426
182065
|
} else {
|
|
184427
182066
|
if (ch2 === " " && prev && prev !== " " && prev !== `
|
|
184428
182067
|
` && prev !== "\t") {
|
|
184429
182068
|
const next = text[i5 + 1];
|
|
184430
182069
|
if (next && next !== " " && next !== `
|
|
184431
182070
|
` && next !== "\t")
|
|
184432
|
-
|
|
182071
|
+
split2 = i5;
|
|
184433
182072
|
}
|
|
184434
182073
|
if (i5 >= end) {
|
|
184435
|
-
if (
|
|
184436
|
-
folds.push(
|
|
184437
|
-
end =
|
|
184438
|
-
|
|
182074
|
+
if (split2) {
|
|
182075
|
+
folds.push(split2);
|
|
182076
|
+
end = split2 + endStep;
|
|
182077
|
+
split2 = undefined;
|
|
184439
182078
|
} else if (mode === FOLD_QUOTED) {
|
|
184440
182079
|
while (prev === " " || prev === "\t") {
|
|
184441
182080
|
prev = ch2;
|
|
@@ -184448,7 +182087,7 @@ var require_foldFlowLines2 = __commonJS((exports) => {
|
|
|
184448
182087
|
folds.push(j11);
|
|
184449
182088
|
escapedFolds[j11] = true;
|
|
184450
182089
|
end = j11 + endStep;
|
|
184451
|
-
|
|
182090
|
+
split2 = undefined;
|
|
184452
182091
|
} else {
|
|
184453
182092
|
overflow = true;
|
|
184454
182093
|
}
|
|
@@ -185082,7 +182721,7 @@ var require_merge3 = __commonJS((exports) => {
|
|
|
185082
182721
|
var identity = require_identity2();
|
|
185083
182722
|
var Scalar = require_Scalar2();
|
|
185084
182723
|
var MERGE_KEY = "<<";
|
|
185085
|
-
var
|
|
182724
|
+
var merge2 = {
|
|
185086
182725
|
identify: (value) => value === MERGE_KEY || typeof value === "symbol" && value.description === MERGE_KEY,
|
|
185087
182726
|
default: "key",
|
|
185088
182727
|
tag: "tag:yaml.org,2002:merge",
|
|
@@ -185092,7 +182731,7 @@ var require_merge3 = __commonJS((exports) => {
|
|
|
185092
182731
|
}),
|
|
185093
182732
|
stringify: () => MERGE_KEY
|
|
185094
182733
|
};
|
|
185095
|
-
var isMergeKey = (ctx, key2) => (
|
|
182734
|
+
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);
|
|
185096
182735
|
function addMergeToJSMap(ctx, map2, value) {
|
|
185097
182736
|
const source2 = resolveAliasValue(ctx, value);
|
|
185098
182737
|
if (identity.isSeq(source2))
|
|
@@ -185131,21 +182770,21 @@ var require_merge3 = __commonJS((exports) => {
|
|
|
185131
182770
|
}
|
|
185132
182771
|
exports.addMergeToJSMap = addMergeToJSMap;
|
|
185133
182772
|
exports.isMergeKey = isMergeKey;
|
|
185134
|
-
exports.merge =
|
|
182773
|
+
exports.merge = merge2;
|
|
185135
182774
|
});
|
|
185136
182775
|
|
|
185137
182776
|
// ../workflow-yaml/node_modules/yaml/dist/nodes/addPairToJSMap.js
|
|
185138
182777
|
var require_addPairToJSMap2 = __commonJS((exports) => {
|
|
185139
182778
|
var log = require_log2();
|
|
185140
|
-
var
|
|
182779
|
+
var merge2 = require_merge3();
|
|
185141
182780
|
var stringify = require_stringify3();
|
|
185142
182781
|
var identity = require_identity2();
|
|
185143
182782
|
var toJS = require_toJS2();
|
|
185144
182783
|
function addPairToJSMap(ctx, map2, { key: key2, value }) {
|
|
185145
182784
|
if (identity.isNode(key2) && key2.addToJSMap)
|
|
185146
182785
|
key2.addToJSMap(ctx, map2, value);
|
|
185147
|
-
else if (
|
|
185148
|
-
|
|
182786
|
+
else if (merge2.isMergeKey(ctx, key2))
|
|
182787
|
+
merge2.addMergeToJSMap(ctx, map2, value);
|
|
185149
182788
|
else {
|
|
185150
182789
|
const jsKey = toJS.toJS(key2, "", ctx);
|
|
185151
182790
|
if (map2 instanceof Map) {
|
|
@@ -186421,7 +184060,7 @@ var require_schema6 = __commonJS((exports) => {
|
|
|
186421
184060
|
var bool = require_bool4();
|
|
186422
184061
|
var float = require_float4();
|
|
186423
184062
|
var int2 = require_int4();
|
|
186424
|
-
var
|
|
184063
|
+
var merge2 = require_merge3();
|
|
186425
184064
|
var omap = require_omap2();
|
|
186426
184065
|
var pairs = require_pairs2();
|
|
186427
184066
|
var set2 = require_set2();
|
|
@@ -186441,7 +184080,7 @@ var require_schema6 = __commonJS((exports) => {
|
|
|
186441
184080
|
float.floatExp,
|
|
186442
184081
|
float.float,
|
|
186443
184082
|
binary.binary,
|
|
186444
|
-
|
|
184083
|
+
merge2.merge,
|
|
186445
184084
|
omap.omap,
|
|
186446
184085
|
pairs.pairs,
|
|
186447
184086
|
set2.set,
|
|
@@ -186464,7 +184103,7 @@ var require_tags2 = __commonJS((exports) => {
|
|
|
186464
184103
|
var schema = require_schema4();
|
|
186465
184104
|
var schema$1 = require_schema5();
|
|
186466
184105
|
var binary = require_binary2();
|
|
186467
|
-
var
|
|
184106
|
+
var merge2 = require_merge3();
|
|
186468
184107
|
var omap = require_omap2();
|
|
186469
184108
|
var pairs = require_pairs2();
|
|
186470
184109
|
var schema$2 = require_schema6();
|
|
@@ -186489,7 +184128,7 @@ var require_tags2 = __commonJS((exports) => {
|
|
|
186489
184128
|
intOct: int2.intOct,
|
|
186490
184129
|
intTime: timestamp.intTime,
|
|
186491
184130
|
map: map2.map,
|
|
186492
|
-
merge:
|
|
184131
|
+
merge: merge2.merge,
|
|
186493
184132
|
null: _null4.nullTag,
|
|
186494
184133
|
omap: omap.omap,
|
|
186495
184134
|
pairs: pairs.pairs,
|
|
@@ -186499,7 +184138,7 @@ var require_tags2 = __commonJS((exports) => {
|
|
|
186499
184138
|
};
|
|
186500
184139
|
var coreKnownTags = {
|
|
186501
184140
|
"tag:yaml.org,2002:binary": binary.binary,
|
|
186502
|
-
"tag:yaml.org,2002:merge":
|
|
184141
|
+
"tag:yaml.org,2002:merge": merge2.merge,
|
|
186503
184142
|
"tag:yaml.org,2002:omap": omap.omap,
|
|
186504
184143
|
"tag:yaml.org,2002:pairs": pairs.pairs,
|
|
186505
184144
|
"tag:yaml.org,2002:set": set2.set,
|
|
@@ -186508,7 +184147,7 @@ var require_tags2 = __commonJS((exports) => {
|
|
|
186508
184147
|
function getTags(customTags, schemaName, addMergeTag) {
|
|
186509
184148
|
const schemaTags = schemas3.get(schemaName);
|
|
186510
184149
|
if (schemaTags && !customTags) {
|
|
186511
|
-
return addMergeTag && !schemaTags.includes(
|
|
184150
|
+
return addMergeTag && !schemaTags.includes(merge2.merge) ? schemaTags.concat(merge2.merge) : schemaTags.slice();
|
|
186512
184151
|
}
|
|
186513
184152
|
let tags = schemaTags;
|
|
186514
184153
|
if (!tags) {
|
|
@@ -186526,7 +184165,7 @@ var require_tags2 = __commonJS((exports) => {
|
|
|
186526
184165
|
tags = customTags(tags.slice());
|
|
186527
184166
|
}
|
|
186528
184167
|
if (addMergeTag)
|
|
186529
|
-
tags = tags.concat(
|
|
184168
|
+
tags = tags.concat(merge2.merge);
|
|
186530
184169
|
return tags.reduce((tags2, tag) => {
|
|
186531
184170
|
const tagObj = typeof tag === "string" ? tagsByName[tag] : tag;
|
|
186532
184171
|
if (!tagObj) {
|
|
@@ -186553,11 +184192,11 @@ var require_Schema2 = __commonJS((exports) => {
|
|
|
186553
184192
|
var sortMapEntriesByKey = (a5, b8) => a5.key < b8.key ? -1 : a5.key > b8.key ? 1 : 0;
|
|
186554
184193
|
|
|
186555
184194
|
class Schema2 {
|
|
186556
|
-
constructor({ compat: compat2, customTags, merge:
|
|
184195
|
+
constructor({ compat: compat2, customTags, merge: merge2, resolveKnownTags, schema, sortMapEntries, toStringDefaults }) {
|
|
186557
184196
|
this.compat = Array.isArray(compat2) ? tags.getTags(compat2, "compat") : compat2 ? tags.getTags(null, compat2) : null;
|
|
186558
184197
|
this.name = typeof schema === "string" && schema || "core";
|
|
186559
184198
|
this.knownTags = resolveKnownTags ? tags.coreKnownTags : {};
|
|
186560
|
-
this.tags = tags.getTags(customTags, this.name,
|
|
184199
|
+
this.tags = tags.getTags(customTags, this.name, merge2);
|
|
186561
184200
|
this.toStringOptions = toStringDefaults ?? null;
|
|
186562
184201
|
Object.defineProperty(this, identity.MAP, { value: map2.map });
|
|
186563
184202
|
Object.defineProperty(this, identity.SCALAR, { value: string4.string });
|
|
@@ -187780,13 +185419,13 @@ var require_resolve_block_scalar2 = __commonJS((exports) => {
|
|
|
187780
185419
|
return { mode, indent: indent3, chomp, comment, length };
|
|
187781
185420
|
}
|
|
187782
185421
|
function splitLines2(source2) {
|
|
187783
|
-
const
|
|
187784
|
-
const first =
|
|
185422
|
+
const split2 = source2.split(/\n( *)/);
|
|
185423
|
+
const first = split2[0];
|
|
187785
185424
|
const m7 = first.match(/^( *)/);
|
|
187786
185425
|
const line0 = m7?.[1] ? [m7[1], first.slice(m7[1].length)] : ["", first];
|
|
187787
185426
|
const lines = [line0];
|
|
187788
|
-
for (let i5 = 1;i5 <
|
|
187789
|
-
lines.push([
|
|
185427
|
+
for (let i5 = 1;i5 < split2.length; i5 += 2)
|
|
185428
|
+
lines.push([split2[i5], split2[i5 + 1]]);
|
|
187790
185429
|
return lines;
|
|
187791
185430
|
}
|
|
187792
185431
|
exports.resolveBlockScalar = resolveBlockScalar;
|
|
@@ -190434,7 +188073,7 @@ import { fileURLToPath as fileURLToPath8 } from "url";
|
|
|
190434
188073
|
// package.json
|
|
190435
188074
|
var package_default = {
|
|
190436
188075
|
name: "@eigenpal/cli",
|
|
190437
|
-
version: "0.10.
|
|
188076
|
+
version: "0.10.6",
|
|
190438
188077
|
description: "Eigenpal CLI — author and run document workflows from your terminal. Agent-ready.",
|
|
190439
188078
|
keywords: [
|
|
190440
188079
|
"eigenpal",
|
|
@@ -191951,7 +189590,7 @@ async function pushCurrentBranch(input) {
|
|
|
191951
189590
|
function slugifyPackageSegment(value) {
|
|
191952
189591
|
return value.trim().toLowerCase().replace(/[^a-z0-9_-]+/g, "-").replace(/^-+|-+$/g, "");
|
|
191953
189592
|
}
|
|
191954
|
-
function packagePathForTemplate(
|
|
189593
|
+
function packagePathForTemplate(template, name) {
|
|
191955
189594
|
const slug = slugifyPackageSegment(name);
|
|
191956
189595
|
if (!slug)
|
|
191957
189596
|
throw new Error("Package name must include at least one letter or number.");
|
|
@@ -191963,7 +189602,7 @@ function packagePathForTemplate(template2, name) {
|
|
|
191963
189602
|
knowledge: "resources/knowledge",
|
|
191964
189603
|
evaluator: "evaluators"
|
|
191965
189604
|
};
|
|
191966
|
-
const root = rootByTemplate[
|
|
189605
|
+
const root = rootByTemplate[template];
|
|
191967
189606
|
if (!root)
|
|
191968
189607
|
throw new Error("Template must be agent, workflow, skill, rule, knowledge, or evaluator.");
|
|
191969
189608
|
return SourcePackagePathSchema.parse(`${root}/${slug}`);
|
|
@@ -192372,12 +190011,12 @@ function archivePackage(input) {
|
|
|
192372
190011
|
runGit(["archive", "--format=tar", `--output=${tarPath}`, input.ref, input.packagePath], {
|
|
192373
190012
|
cwd: input.gitRoot
|
|
192374
190013
|
});
|
|
192375
|
-
const
|
|
190014
|
+
const extract = spawnSync3("tar", ["-xf", tarPath, "--strip-components", String(input.packagePath.split("/").length)], {
|
|
192376
190015
|
cwd: input.outDir,
|
|
192377
190016
|
encoding: "utf8"
|
|
192378
190017
|
});
|
|
192379
|
-
if (
|
|
192380
|
-
throw new Error(
|
|
190018
|
+
if (extract.status !== 0)
|
|
190019
|
+
throw new Error(extract.stderr.trim() || "tar extraction failed");
|
|
192381
190020
|
} finally {
|
|
192382
190021
|
rmSync(path5.dirname(tarPath), { recursive: true, force: true });
|
|
192383
190022
|
}
|
|
@@ -192406,12 +190045,12 @@ async function tryHostedArchive(input) {
|
|
|
192406
190045
|
const tarPath = path5.join(mkdtempSyncCompat("eigenpal-hosted-source-"), "package.tar");
|
|
192407
190046
|
try {
|
|
192408
190047
|
writeFileSync4(tarPath, Buffer.from(await response.arrayBuffer()));
|
|
192409
|
-
const
|
|
190048
|
+
const extract = spawnSync3("tar", ["-xf", tarPath, "--strip-components", String(input.packagePath.split("/").length)], {
|
|
192410
190049
|
cwd: input.outDir,
|
|
192411
190050
|
encoding: "utf8"
|
|
192412
190051
|
});
|
|
192413
|
-
if (
|
|
192414
|
-
throw new Error(
|
|
190052
|
+
if (extract.status !== 0)
|
|
190053
|
+
throw new Error(extract.stderr.trim() || "tar extraction failed");
|
|
192415
190054
|
return true;
|
|
192416
190055
|
} finally {
|
|
192417
190056
|
rmSync(path5.dirname(tarPath), { recursive: true, force: true });
|
|
@@ -196766,18 +194405,18 @@ async function init(name, opts) {
|
|
|
196766
194405
|
if (existsSync11(target) && readdirSync2(target).length > 0) {
|
|
196767
194406
|
throw new Error(`Target directory ${relative(process.cwd(), target)} exists and is not empty.`);
|
|
196768
194407
|
}
|
|
196769
|
-
let
|
|
194408
|
+
let template;
|
|
196770
194409
|
if (opts.template) {
|
|
196771
194410
|
if (!isTemplateName(opts.template)) {
|
|
196772
194411
|
throw new Error(`Unknown template "${opts.template}". Available: ${TEMPLATE_NAMES.join(", ")}.`);
|
|
196773
194412
|
}
|
|
196774
|
-
|
|
194413
|
+
template = opts.template;
|
|
196775
194414
|
} else if (opts.yes || !process.stdin.isTTY) {
|
|
196776
|
-
|
|
194415
|
+
template = "blank";
|
|
196777
194416
|
} else {
|
|
196778
|
-
|
|
194417
|
+
template = await promptForTemplate();
|
|
196779
194418
|
}
|
|
196780
|
-
const sourceRoot = join2(resolveTemplatesRoot(),
|
|
194419
|
+
const sourceRoot = join2(resolveTemplatesRoot(), template);
|
|
196781
194420
|
if (!existsSync11(sourceRoot)) {
|
|
196782
194421
|
throw new Error(`Template directory missing on disk: ${sourceRoot}`);
|
|
196783
194422
|
}
|