@eigenpal/cli 0.10.2 → 0.10.4
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 +301 -2687
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -17080,2493 +17080,14 @@ 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
|
-
});
|
|
17215
|
-
|
|
17216
|
-
// ../../node_modules/@opentelemetry/api/build/src/version.js
|
|
17217
|
-
var require_version = __commonJS((exports) => {
|
|
17218
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17219
|
-
exports.VERSION = undefined;
|
|
17220
|
-
exports.VERSION = "1.9.1";
|
|
17221
|
-
});
|
|
17222
|
-
|
|
17223
|
-
// ../../node_modules/@opentelemetry/api/build/src/internal/semver.js
|
|
17224
|
-
var require_semver = __commonJS((exports) => {
|
|
17225
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17226
|
-
exports.isCompatible = exports._makeCompatibilityCheck = undefined;
|
|
17227
|
-
var version_1 = require_version();
|
|
17228
|
-
var re = /^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;
|
|
17229
|
-
function _makeCompatibilityCheck(ownVersion) {
|
|
17230
|
-
const acceptedVersions = new Set([ownVersion]);
|
|
17231
|
-
const rejectedVersions = new Set;
|
|
17232
|
-
const myVersionMatch = ownVersion.match(re);
|
|
17233
|
-
if (!myVersionMatch) {
|
|
17234
|
-
return () => false;
|
|
17235
|
-
}
|
|
17236
|
-
const ownVersionParsed = {
|
|
17237
|
-
major: +myVersionMatch[1],
|
|
17238
|
-
minor: +myVersionMatch[2],
|
|
17239
|
-
patch: +myVersionMatch[3],
|
|
17240
|
-
prerelease: myVersionMatch[4]
|
|
17241
|
-
};
|
|
17242
|
-
if (ownVersionParsed.prerelease != null) {
|
|
17243
|
-
return function isExactmatch(globalVersion) {
|
|
17244
|
-
return globalVersion === ownVersion;
|
|
17245
|
-
};
|
|
17246
|
-
}
|
|
17247
|
-
function _reject(v) {
|
|
17248
|
-
rejectedVersions.add(v);
|
|
17249
|
-
return false;
|
|
17250
|
-
}
|
|
17251
|
-
function _accept(v) {
|
|
17252
|
-
acceptedVersions.add(v);
|
|
17253
|
-
return true;
|
|
17254
|
-
}
|
|
17255
|
-
return function isCompatible(globalVersion) {
|
|
17256
|
-
if (acceptedVersions.has(globalVersion)) {
|
|
17257
|
-
return true;
|
|
17258
|
-
}
|
|
17259
|
-
if (rejectedVersions.has(globalVersion)) {
|
|
17260
|
-
return false;
|
|
17261
|
-
}
|
|
17262
|
-
const globalVersionMatch = globalVersion.match(re);
|
|
17263
|
-
if (!globalVersionMatch) {
|
|
17264
|
-
return _reject(globalVersion);
|
|
17265
|
-
}
|
|
17266
|
-
const globalVersionParsed = {
|
|
17267
|
-
major: +globalVersionMatch[1],
|
|
17268
|
-
minor: +globalVersionMatch[2],
|
|
17269
|
-
patch: +globalVersionMatch[3],
|
|
17270
|
-
prerelease: globalVersionMatch[4]
|
|
17271
|
-
};
|
|
17272
|
-
if (globalVersionParsed.prerelease != null) {
|
|
17273
|
-
return _reject(globalVersion);
|
|
17274
|
-
}
|
|
17275
|
-
if (ownVersionParsed.major !== globalVersionParsed.major) {
|
|
17276
|
-
return _reject(globalVersion);
|
|
17277
|
-
}
|
|
17278
|
-
if (ownVersionParsed.major === 0) {
|
|
17279
|
-
if (ownVersionParsed.minor === globalVersionParsed.minor && ownVersionParsed.patch <= globalVersionParsed.patch) {
|
|
17280
|
-
return _accept(globalVersion);
|
|
17281
|
-
}
|
|
17282
|
-
return _reject(globalVersion);
|
|
17283
|
-
}
|
|
17284
|
-
if (ownVersionParsed.minor <= globalVersionParsed.minor) {
|
|
17285
|
-
return _accept(globalVersion);
|
|
17286
|
-
}
|
|
17287
|
-
return _reject(globalVersion);
|
|
17288
|
-
};
|
|
17289
|
-
}
|
|
17290
|
-
exports._makeCompatibilityCheck = _makeCompatibilityCheck;
|
|
17291
|
-
exports.isCompatible = _makeCompatibilityCheck(version_1.VERSION);
|
|
17292
|
-
});
|
|
17293
|
-
|
|
17294
|
-
// ../../node_modules/@opentelemetry/api/build/src/internal/global-utils.js
|
|
17295
|
-
var require_global_utils = __commonJS((exports) => {
|
|
17296
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17297
|
-
exports.unregisterGlobal = exports.getGlobal = exports.registerGlobal = undefined;
|
|
17298
|
-
var version_1 = require_version();
|
|
17299
|
-
var semver_1 = require_semver();
|
|
17300
|
-
var major = version_1.VERSION.split(".")[0];
|
|
17301
|
-
var GLOBAL_OPENTELEMETRY_API_KEY = Symbol.for(`opentelemetry.js.api.${major}`);
|
|
17302
|
-
var _global = typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : typeof window === "object" ? window : typeof global === "object" ? global : {};
|
|
17303
|
-
function registerGlobal(type, instance, diag, allowOverride = false) {
|
|
17304
|
-
var _a3;
|
|
17305
|
-
const api2 = _global[GLOBAL_OPENTELEMETRY_API_KEY] = (_a3 = _global[GLOBAL_OPENTELEMETRY_API_KEY]) !== null && _a3 !== undefined ? _a3 : {
|
|
17306
|
-
version: version_1.VERSION
|
|
17307
|
-
};
|
|
17308
|
-
if (!allowOverride && api2[type]) {
|
|
17309
|
-
const err = new Error(`@opentelemetry/api: Attempted duplicate registration of API: ${type}`);
|
|
17310
|
-
diag.error(err.stack || err.message);
|
|
17311
|
-
return false;
|
|
17312
|
-
}
|
|
17313
|
-
if (api2.version !== version_1.VERSION) {
|
|
17314
|
-
const err = new Error(`@opentelemetry/api: Registration of version v${api2.version} for ${type} does not match previously registered API v${version_1.VERSION}`);
|
|
17315
|
-
diag.error(err.stack || err.message);
|
|
17316
|
-
return false;
|
|
17317
|
-
}
|
|
17318
|
-
api2[type] = instance;
|
|
17319
|
-
diag.debug(`@opentelemetry/api: Registered a global for ${type} v${version_1.VERSION}.`);
|
|
17320
|
-
return true;
|
|
17321
|
-
}
|
|
17322
|
-
exports.registerGlobal = registerGlobal;
|
|
17323
|
-
function getGlobal(type) {
|
|
17324
|
-
var _a3, _b;
|
|
17325
|
-
const globalVersion = (_a3 = _global[GLOBAL_OPENTELEMETRY_API_KEY]) === null || _a3 === undefined ? undefined : _a3.version;
|
|
17326
|
-
if (!globalVersion || !(0, semver_1.isCompatible)(globalVersion)) {
|
|
17327
|
-
return;
|
|
17328
|
-
}
|
|
17329
|
-
return (_b = _global[GLOBAL_OPENTELEMETRY_API_KEY]) === null || _b === undefined ? undefined : _b[type];
|
|
17330
|
-
}
|
|
17331
|
-
exports.getGlobal = getGlobal;
|
|
17332
|
-
function unregisterGlobal(type, diag) {
|
|
17333
|
-
diag.debug(`@opentelemetry/api: Unregistering a global for ${type} v${version_1.VERSION}.`);
|
|
17334
|
-
const api2 = _global[GLOBAL_OPENTELEMETRY_API_KEY];
|
|
17335
|
-
if (api2) {
|
|
17336
|
-
delete api2[type];
|
|
17337
|
-
}
|
|
17338
|
-
}
|
|
17339
|
-
exports.unregisterGlobal = unregisterGlobal;
|
|
17340
|
-
});
|
|
17341
|
-
|
|
17342
|
-
// ../../node_modules/@opentelemetry/api/build/src/diag/ComponentLogger.js
|
|
17343
|
-
var require_ComponentLogger = __commonJS((exports) => {
|
|
17344
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17345
|
-
exports.DiagComponentLogger = undefined;
|
|
17346
|
-
var global_utils_1 = require_global_utils();
|
|
17347
|
-
|
|
17348
|
-
class DiagComponentLogger {
|
|
17349
|
-
constructor(props) {
|
|
17350
|
-
this._namespace = props.namespace || "DiagComponentLogger";
|
|
17351
|
-
}
|
|
17352
|
-
debug(...args) {
|
|
17353
|
-
return logProxy("debug", this._namespace, args);
|
|
17354
|
-
}
|
|
17355
|
-
error(...args) {
|
|
17356
|
-
return logProxy("error", this._namespace, args);
|
|
17357
|
-
}
|
|
17358
|
-
info(...args) {
|
|
17359
|
-
return logProxy("info", this._namespace, args);
|
|
17360
|
-
}
|
|
17361
|
-
warn(...args) {
|
|
17362
|
-
return logProxy("warn", this._namespace, args);
|
|
17363
|
-
}
|
|
17364
|
-
verbose(...args) {
|
|
17365
|
-
return logProxy("verbose", this._namespace, args);
|
|
17366
|
-
}
|
|
17367
|
-
}
|
|
17368
|
-
exports.DiagComponentLogger = DiagComponentLogger;
|
|
17369
|
-
function logProxy(funcName, namespace, args) {
|
|
17370
|
-
const logger = (0, global_utils_1.getGlobal)("diag");
|
|
17371
|
-
if (!logger) {
|
|
17372
|
-
return;
|
|
17373
|
-
}
|
|
17374
|
-
return logger[funcName](namespace, ...args);
|
|
17375
|
-
}
|
|
17376
|
-
});
|
|
17377
|
-
|
|
17378
|
-
// ../../node_modules/@opentelemetry/api/build/src/diag/types.js
|
|
17379
|
-
var require_types = __commonJS((exports) => {
|
|
17380
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17381
|
-
exports.DiagLogLevel = undefined;
|
|
17382
|
-
var DiagLogLevel;
|
|
17383
|
-
(function(DiagLogLevel2) {
|
|
17384
|
-
DiagLogLevel2[DiagLogLevel2["NONE"] = 0] = "NONE";
|
|
17385
|
-
DiagLogLevel2[DiagLogLevel2["ERROR"] = 30] = "ERROR";
|
|
17386
|
-
DiagLogLevel2[DiagLogLevel2["WARN"] = 50] = "WARN";
|
|
17387
|
-
DiagLogLevel2[DiagLogLevel2["INFO"] = 60] = "INFO";
|
|
17388
|
-
DiagLogLevel2[DiagLogLevel2["DEBUG"] = 70] = "DEBUG";
|
|
17389
|
-
DiagLogLevel2[DiagLogLevel2["VERBOSE"] = 80] = "VERBOSE";
|
|
17390
|
-
DiagLogLevel2[DiagLogLevel2["ALL"] = 9999] = "ALL";
|
|
17391
|
-
})(DiagLogLevel = exports.DiagLogLevel || (exports.DiagLogLevel = {}));
|
|
17392
|
-
});
|
|
17393
|
-
|
|
17394
|
-
// ../../node_modules/@opentelemetry/api/build/src/diag/internal/logLevelLogger.js
|
|
17395
|
-
var require_logLevelLogger = __commonJS((exports) => {
|
|
17396
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17397
|
-
exports.createLogLevelDiagLogger = undefined;
|
|
17398
|
-
var types_1 = require_types();
|
|
17399
|
-
function createLogLevelDiagLogger(maxLevel, logger) {
|
|
17400
|
-
if (maxLevel < types_1.DiagLogLevel.NONE) {
|
|
17401
|
-
maxLevel = types_1.DiagLogLevel.NONE;
|
|
17402
|
-
} else if (maxLevel > types_1.DiagLogLevel.ALL) {
|
|
17403
|
-
maxLevel = types_1.DiagLogLevel.ALL;
|
|
17404
|
-
}
|
|
17405
|
-
logger = logger || {};
|
|
17406
|
-
function _filterFunc(funcName, theLevel) {
|
|
17407
|
-
const theFunc = logger[funcName];
|
|
17408
|
-
if (typeof theFunc === "function" && maxLevel >= theLevel) {
|
|
17409
|
-
return theFunc.bind(logger);
|
|
17410
|
-
}
|
|
17411
|
-
return function() {};
|
|
17412
|
-
}
|
|
17413
|
-
return {
|
|
17414
|
-
error: _filterFunc("error", types_1.DiagLogLevel.ERROR),
|
|
17415
|
-
warn: _filterFunc("warn", types_1.DiagLogLevel.WARN),
|
|
17416
|
-
info: _filterFunc("info", types_1.DiagLogLevel.INFO),
|
|
17417
|
-
debug: _filterFunc("debug", types_1.DiagLogLevel.DEBUG),
|
|
17418
|
-
verbose: _filterFunc("verbose", types_1.DiagLogLevel.VERBOSE)
|
|
17419
|
-
};
|
|
17420
|
-
}
|
|
17421
|
-
exports.createLogLevelDiagLogger = createLogLevelDiagLogger;
|
|
17422
|
-
});
|
|
17423
|
-
|
|
17424
|
-
// ../../node_modules/@opentelemetry/api/build/src/api/diag.js
|
|
17425
|
-
var require_diag = __commonJS((exports) => {
|
|
17426
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17427
|
-
exports.DiagAPI = undefined;
|
|
17428
|
-
var ComponentLogger_1 = require_ComponentLogger();
|
|
17429
|
-
var logLevelLogger_1 = require_logLevelLogger();
|
|
17430
|
-
var types_1 = require_types();
|
|
17431
|
-
var global_utils_1 = require_global_utils();
|
|
17432
|
-
var API_NAME = "diag";
|
|
17433
|
-
|
|
17434
|
-
class DiagAPI {
|
|
17435
|
-
static instance() {
|
|
17436
|
-
if (!this._instance) {
|
|
17437
|
-
this._instance = new DiagAPI;
|
|
17438
|
-
}
|
|
17439
|
-
return this._instance;
|
|
17440
|
-
}
|
|
17441
|
-
constructor() {
|
|
17442
|
-
function _logProxy(funcName) {
|
|
17443
|
-
return function(...args) {
|
|
17444
|
-
const logger = (0, global_utils_1.getGlobal)("diag");
|
|
17445
|
-
if (!logger)
|
|
17446
|
-
return;
|
|
17447
|
-
return logger[funcName](...args);
|
|
17448
|
-
};
|
|
17449
|
-
}
|
|
17450
|
-
const self2 = this;
|
|
17451
|
-
const setLogger = (logger, optionsOrLogLevel = { logLevel: types_1.DiagLogLevel.INFO }) => {
|
|
17452
|
-
var _a3, _b, _c;
|
|
17453
|
-
if (logger === self2) {
|
|
17454
|
-
const err = new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");
|
|
17455
|
-
self2.error((_a3 = err.stack) !== null && _a3 !== undefined ? _a3 : err.message);
|
|
17456
|
-
return false;
|
|
17457
|
-
}
|
|
17458
|
-
if (typeof optionsOrLogLevel === "number") {
|
|
17459
|
-
optionsOrLogLevel = {
|
|
17460
|
-
logLevel: optionsOrLogLevel
|
|
17461
|
-
};
|
|
17462
|
-
}
|
|
17463
|
-
const oldLogger = (0, global_utils_1.getGlobal)("diag");
|
|
17464
|
-
const newLogger = (0, logLevelLogger_1.createLogLevelDiagLogger)((_b = optionsOrLogLevel.logLevel) !== null && _b !== undefined ? _b : types_1.DiagLogLevel.INFO, logger);
|
|
17465
|
-
if (oldLogger && !optionsOrLogLevel.suppressOverrideMessage) {
|
|
17466
|
-
const stack = (_c = new Error().stack) !== null && _c !== undefined ? _c : "<failed to generate stacktrace>";
|
|
17467
|
-
oldLogger.warn(`Current logger will be overwritten from ${stack}`);
|
|
17468
|
-
newLogger.warn(`Current logger will overwrite one already registered from ${stack}`);
|
|
17469
|
-
}
|
|
17470
|
-
return (0, global_utils_1.registerGlobal)("diag", newLogger, self2, true);
|
|
17471
|
-
};
|
|
17472
|
-
self2.setLogger = setLogger;
|
|
17473
|
-
self2.disable = () => {
|
|
17474
|
-
(0, global_utils_1.unregisterGlobal)(API_NAME, self2);
|
|
17475
|
-
};
|
|
17476
|
-
self2.createComponentLogger = (options) => {
|
|
17477
|
-
return new ComponentLogger_1.DiagComponentLogger(options);
|
|
17478
|
-
};
|
|
17479
|
-
self2.verbose = _logProxy("verbose");
|
|
17480
|
-
self2.debug = _logProxy("debug");
|
|
17481
|
-
self2.info = _logProxy("info");
|
|
17482
|
-
self2.warn = _logProxy("warn");
|
|
17483
|
-
self2.error = _logProxy("error");
|
|
17484
|
-
}
|
|
17485
|
-
}
|
|
17486
|
-
exports.DiagAPI = DiagAPI;
|
|
17487
|
-
});
|
|
17488
|
-
|
|
17489
|
-
// ../../node_modules/@opentelemetry/api/build/src/baggage/internal/baggage-impl.js
|
|
17490
|
-
var require_baggage_impl = __commonJS((exports) => {
|
|
17491
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17492
|
-
exports.BaggageImpl = undefined;
|
|
17493
|
-
|
|
17494
|
-
class BaggageImpl {
|
|
17495
|
-
constructor(entries) {
|
|
17496
|
-
this._entries = entries ? new Map(entries) : new Map;
|
|
17497
|
-
}
|
|
17498
|
-
getEntry(key) {
|
|
17499
|
-
const entry = this._entries.get(key);
|
|
17500
|
-
if (!entry) {
|
|
17501
|
-
return;
|
|
17502
|
-
}
|
|
17503
|
-
return Object.assign({}, entry);
|
|
17504
|
-
}
|
|
17505
|
-
getAllEntries() {
|
|
17506
|
-
return Array.from(this._entries.entries());
|
|
17507
|
-
}
|
|
17508
|
-
setEntry(key, entry) {
|
|
17509
|
-
const newBaggage = new BaggageImpl(this._entries);
|
|
17510
|
-
newBaggage._entries.set(key, entry);
|
|
17511
|
-
return newBaggage;
|
|
17512
|
-
}
|
|
17513
|
-
removeEntry(key) {
|
|
17514
|
-
const newBaggage = new BaggageImpl(this._entries);
|
|
17515
|
-
newBaggage._entries.delete(key);
|
|
17516
|
-
return newBaggage;
|
|
17517
|
-
}
|
|
17518
|
-
removeEntries(...keys) {
|
|
17519
|
-
const newBaggage = new BaggageImpl(this._entries);
|
|
17520
|
-
for (const key of keys) {
|
|
17521
|
-
newBaggage._entries.delete(key);
|
|
17522
|
-
}
|
|
17523
|
-
return newBaggage;
|
|
17524
|
-
}
|
|
17525
|
-
clear() {
|
|
17526
|
-
return new BaggageImpl;
|
|
17527
|
-
}
|
|
17528
|
-
}
|
|
17529
|
-
exports.BaggageImpl = BaggageImpl;
|
|
17530
|
-
});
|
|
17531
|
-
|
|
17532
|
-
// ../../node_modules/@opentelemetry/api/build/src/baggage/internal/symbol.js
|
|
17533
|
-
var require_symbol = __commonJS((exports) => {
|
|
17534
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17535
|
-
exports.baggageEntryMetadataSymbol = undefined;
|
|
17536
|
-
exports.baggageEntryMetadataSymbol = Symbol("BaggageEntryMetadata");
|
|
17537
|
-
});
|
|
17538
|
-
|
|
17539
|
-
// ../../node_modules/@opentelemetry/api/build/src/baggage/utils.js
|
|
17540
|
-
var require_utils = __commonJS((exports) => {
|
|
17541
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17542
|
-
exports.baggageEntryMetadataFromString = exports.createBaggage = undefined;
|
|
17543
|
-
var diag_1 = require_diag();
|
|
17544
|
-
var baggage_impl_1 = require_baggage_impl();
|
|
17545
|
-
var symbol_1 = require_symbol();
|
|
17546
|
-
var diag = diag_1.DiagAPI.instance();
|
|
17547
|
-
function createBaggage(entries = {}) {
|
|
17548
|
-
return new baggage_impl_1.BaggageImpl(new Map(Object.entries(entries)));
|
|
17549
|
-
}
|
|
17550
|
-
exports.createBaggage = createBaggage;
|
|
17551
|
-
function baggageEntryMetadataFromString(str) {
|
|
17552
|
-
if (typeof str !== "string") {
|
|
17553
|
-
diag.error(`Cannot create baggage metadata from unknown type: ${typeof str}`);
|
|
17554
|
-
str = "";
|
|
17555
|
-
}
|
|
17556
|
-
return {
|
|
17557
|
-
__TYPE__: symbol_1.baggageEntryMetadataSymbol,
|
|
17558
|
-
toString() {
|
|
17559
|
-
return str;
|
|
17560
|
-
}
|
|
17561
|
-
};
|
|
17562
|
-
}
|
|
17563
|
-
exports.baggageEntryMetadataFromString = baggageEntryMetadataFromString;
|
|
17564
|
-
});
|
|
17565
|
-
|
|
17566
|
-
// ../../node_modules/@opentelemetry/api/build/src/context/context.js
|
|
17567
|
-
var require_context = __commonJS((exports) => {
|
|
17568
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17569
|
-
exports.ROOT_CONTEXT = exports.createContextKey = undefined;
|
|
17570
|
-
function createContextKey(description) {
|
|
17571
|
-
return Symbol.for(description);
|
|
17572
|
-
}
|
|
17573
|
-
exports.createContextKey = createContextKey;
|
|
17574
|
-
|
|
17575
|
-
class BaseContext {
|
|
17576
|
-
constructor(parentContext) {
|
|
17577
|
-
const self2 = this;
|
|
17578
|
-
self2._currentContext = parentContext ? new Map(parentContext) : new Map;
|
|
17579
|
-
self2.getValue = (key) => self2._currentContext.get(key);
|
|
17580
|
-
self2.setValue = (key, value) => {
|
|
17581
|
-
const context = new BaseContext(self2._currentContext);
|
|
17582
|
-
context._currentContext.set(key, value);
|
|
17583
|
-
return context;
|
|
17584
|
-
};
|
|
17585
|
-
self2.deleteValue = (key) => {
|
|
17586
|
-
const context = new BaseContext(self2._currentContext);
|
|
17587
|
-
context._currentContext.delete(key);
|
|
17588
|
-
return context;
|
|
17589
|
-
};
|
|
17590
|
-
}
|
|
17591
|
-
}
|
|
17592
|
-
exports.ROOT_CONTEXT = new BaseContext;
|
|
17593
|
-
});
|
|
17594
|
-
|
|
17595
|
-
// ../../node_modules/@opentelemetry/api/build/src/diag/consoleLogger.js
|
|
17596
|
-
var require_consoleLogger = __commonJS((exports) => {
|
|
17597
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17598
|
-
exports.DiagConsoleLogger = exports._originalConsoleMethods = undefined;
|
|
17599
|
-
var consoleMap = [
|
|
17600
|
-
{ n: "error", c: "error" },
|
|
17601
|
-
{ n: "warn", c: "warn" },
|
|
17602
|
-
{ n: "info", c: "info" },
|
|
17603
|
-
{ n: "debug", c: "debug" },
|
|
17604
|
-
{ n: "verbose", c: "trace" }
|
|
17605
|
-
];
|
|
17606
|
-
exports._originalConsoleMethods = {};
|
|
17607
|
-
if (typeof console !== "undefined") {
|
|
17608
|
-
const keys = [
|
|
17609
|
-
"error",
|
|
17610
|
-
"warn",
|
|
17611
|
-
"info",
|
|
17612
|
-
"debug",
|
|
17613
|
-
"trace",
|
|
17614
|
-
"log"
|
|
17615
|
-
];
|
|
17616
|
-
for (const key of keys) {
|
|
17617
|
-
if (typeof console[key] === "function") {
|
|
17618
|
-
exports._originalConsoleMethods[key] = console[key];
|
|
17619
|
-
}
|
|
17620
|
-
}
|
|
17621
|
-
}
|
|
17622
|
-
|
|
17623
|
-
class DiagConsoleLogger {
|
|
17624
|
-
constructor() {
|
|
17625
|
-
function _consoleFunc(funcName) {
|
|
17626
|
-
return function(...args) {
|
|
17627
|
-
let theFunc = exports._originalConsoleMethods[funcName];
|
|
17628
|
-
if (typeof theFunc !== "function") {
|
|
17629
|
-
theFunc = exports._originalConsoleMethods["log"];
|
|
17630
|
-
}
|
|
17631
|
-
if (typeof theFunc !== "function" && console) {
|
|
17632
|
-
theFunc = console[funcName];
|
|
17633
|
-
if (typeof theFunc !== "function") {
|
|
17634
|
-
theFunc = console.log;
|
|
17635
|
-
}
|
|
17636
|
-
}
|
|
17637
|
-
if (typeof theFunc === "function") {
|
|
17638
|
-
return theFunc.apply(console, args);
|
|
17639
|
-
}
|
|
17640
|
-
};
|
|
17641
|
-
}
|
|
17642
|
-
for (let i = 0;i < consoleMap.length; i++) {
|
|
17643
|
-
this[consoleMap[i].n] = _consoleFunc(consoleMap[i].c);
|
|
17644
|
-
}
|
|
17645
|
-
}
|
|
17646
|
-
}
|
|
17647
|
-
exports.DiagConsoleLogger = DiagConsoleLogger;
|
|
17648
|
-
});
|
|
17649
|
-
|
|
17650
|
-
// ../../node_modules/@opentelemetry/api/build/src/metrics/NoopMeter.js
|
|
17651
|
-
var require_NoopMeter = __commonJS((exports) => {
|
|
17652
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17653
|
-
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;
|
|
17654
|
-
|
|
17655
|
-
class NoopMeter {
|
|
17656
|
-
constructor() {}
|
|
17657
|
-
createGauge(_name, _options) {
|
|
17658
|
-
return exports.NOOP_GAUGE_METRIC;
|
|
17659
|
-
}
|
|
17660
|
-
createHistogram(_name, _options) {
|
|
17661
|
-
return exports.NOOP_HISTOGRAM_METRIC;
|
|
17662
|
-
}
|
|
17663
|
-
createCounter(_name, _options) {
|
|
17664
|
-
return exports.NOOP_COUNTER_METRIC;
|
|
17665
|
-
}
|
|
17666
|
-
createUpDownCounter(_name, _options) {
|
|
17667
|
-
return exports.NOOP_UP_DOWN_COUNTER_METRIC;
|
|
17668
|
-
}
|
|
17669
|
-
createObservableGauge(_name, _options) {
|
|
17670
|
-
return exports.NOOP_OBSERVABLE_GAUGE_METRIC;
|
|
17671
|
-
}
|
|
17672
|
-
createObservableCounter(_name, _options) {
|
|
17673
|
-
return exports.NOOP_OBSERVABLE_COUNTER_METRIC;
|
|
17674
|
-
}
|
|
17675
|
-
createObservableUpDownCounter(_name, _options) {
|
|
17676
|
-
return exports.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC;
|
|
17677
|
-
}
|
|
17678
|
-
addBatchObservableCallback(_callback, _observables) {}
|
|
17679
|
-
removeBatchObservableCallback(_callback) {}
|
|
17680
|
-
}
|
|
17681
|
-
exports.NoopMeter = NoopMeter;
|
|
17682
|
-
|
|
17683
|
-
class NoopMetric {
|
|
17684
|
-
}
|
|
17685
|
-
exports.NoopMetric = NoopMetric;
|
|
17686
|
-
|
|
17687
|
-
class NoopCounterMetric extends NoopMetric {
|
|
17688
|
-
add(_value, _attributes) {}
|
|
17689
|
-
}
|
|
17690
|
-
exports.NoopCounterMetric = NoopCounterMetric;
|
|
17691
|
-
|
|
17692
|
-
class NoopUpDownCounterMetric extends NoopMetric {
|
|
17693
|
-
add(_value, _attributes) {}
|
|
17694
|
-
}
|
|
17695
|
-
exports.NoopUpDownCounterMetric = NoopUpDownCounterMetric;
|
|
17696
|
-
|
|
17697
|
-
class NoopGaugeMetric extends NoopMetric {
|
|
17698
|
-
record(_value, _attributes) {}
|
|
17699
|
-
}
|
|
17700
|
-
exports.NoopGaugeMetric = NoopGaugeMetric;
|
|
17701
|
-
|
|
17702
|
-
class NoopHistogramMetric extends NoopMetric {
|
|
17703
|
-
record(_value, _attributes) {}
|
|
17704
|
-
}
|
|
17705
|
-
exports.NoopHistogramMetric = NoopHistogramMetric;
|
|
17706
|
-
|
|
17707
|
-
class NoopObservableMetric {
|
|
17708
|
-
addCallback(_callback) {}
|
|
17709
|
-
removeCallback(_callback) {}
|
|
17710
|
-
}
|
|
17711
|
-
exports.NoopObservableMetric = NoopObservableMetric;
|
|
17712
|
-
|
|
17713
|
-
class NoopObservableCounterMetric extends NoopObservableMetric {
|
|
17714
|
-
}
|
|
17715
|
-
exports.NoopObservableCounterMetric = NoopObservableCounterMetric;
|
|
17716
|
-
|
|
17717
|
-
class NoopObservableGaugeMetric extends NoopObservableMetric {
|
|
17718
|
-
}
|
|
17719
|
-
exports.NoopObservableGaugeMetric = NoopObservableGaugeMetric;
|
|
17720
|
-
|
|
17721
|
-
class NoopObservableUpDownCounterMetric extends NoopObservableMetric {
|
|
17722
|
-
}
|
|
17723
|
-
exports.NoopObservableUpDownCounterMetric = NoopObservableUpDownCounterMetric;
|
|
17724
|
-
exports.NOOP_METER = new NoopMeter;
|
|
17725
|
-
exports.NOOP_COUNTER_METRIC = new NoopCounterMetric;
|
|
17726
|
-
exports.NOOP_GAUGE_METRIC = new NoopGaugeMetric;
|
|
17727
|
-
exports.NOOP_HISTOGRAM_METRIC = new NoopHistogramMetric;
|
|
17728
|
-
exports.NOOP_UP_DOWN_COUNTER_METRIC = new NoopUpDownCounterMetric;
|
|
17729
|
-
exports.NOOP_OBSERVABLE_COUNTER_METRIC = new NoopObservableCounterMetric;
|
|
17730
|
-
exports.NOOP_OBSERVABLE_GAUGE_METRIC = new NoopObservableGaugeMetric;
|
|
17731
|
-
exports.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC = new NoopObservableUpDownCounterMetric;
|
|
17732
|
-
function createNoopMeter() {
|
|
17733
|
-
return exports.NOOP_METER;
|
|
17734
|
-
}
|
|
17735
|
-
exports.createNoopMeter = createNoopMeter;
|
|
17736
|
-
});
|
|
17737
|
-
|
|
17738
|
-
// ../../node_modules/@opentelemetry/api/build/src/metrics/Metric.js
|
|
17739
|
-
var require_Metric = __commonJS((exports) => {
|
|
17740
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17741
|
-
exports.ValueType = undefined;
|
|
17742
|
-
var ValueType;
|
|
17743
|
-
(function(ValueType2) {
|
|
17744
|
-
ValueType2[ValueType2["INT"] = 0] = "INT";
|
|
17745
|
-
ValueType2[ValueType2["DOUBLE"] = 1] = "DOUBLE";
|
|
17746
|
-
})(ValueType = exports.ValueType || (exports.ValueType = {}));
|
|
17747
|
-
});
|
|
17748
|
-
|
|
17749
|
-
// ../../node_modules/@opentelemetry/api/build/src/propagation/TextMapPropagator.js
|
|
17750
|
-
var require_TextMapPropagator = __commonJS((exports) => {
|
|
17751
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17752
|
-
exports.defaultTextMapSetter = exports.defaultTextMapGetter = undefined;
|
|
17753
|
-
exports.defaultTextMapGetter = {
|
|
17754
|
-
get(carrier, key) {
|
|
17755
|
-
if (carrier == null) {
|
|
17756
|
-
return;
|
|
17757
|
-
}
|
|
17758
|
-
return carrier[key];
|
|
17759
|
-
},
|
|
17760
|
-
keys(carrier) {
|
|
17761
|
-
if (carrier == null) {
|
|
17762
|
-
return [];
|
|
17763
|
-
}
|
|
17764
|
-
return Object.keys(carrier);
|
|
17765
|
-
}
|
|
17766
|
-
};
|
|
17767
|
-
exports.defaultTextMapSetter = {
|
|
17768
|
-
set(carrier, key, value) {
|
|
17769
|
-
if (carrier == null) {
|
|
17770
|
-
return;
|
|
17771
|
-
}
|
|
17772
|
-
carrier[key] = value;
|
|
17773
|
-
}
|
|
17774
|
-
};
|
|
17775
|
-
});
|
|
17776
|
-
|
|
17777
|
-
// ../../node_modules/@opentelemetry/api/build/src/context/NoopContextManager.js
|
|
17778
|
-
var require_NoopContextManager = __commonJS((exports) => {
|
|
17779
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17780
|
-
exports.NoopContextManager = undefined;
|
|
17781
|
-
var context_1 = require_context();
|
|
17782
|
-
|
|
17783
|
-
class NoopContextManager {
|
|
17784
|
-
active() {
|
|
17785
|
-
return context_1.ROOT_CONTEXT;
|
|
17786
|
-
}
|
|
17787
|
-
with(_context, fn, thisArg, ...args) {
|
|
17788
|
-
return fn.call(thisArg, ...args);
|
|
17789
|
-
}
|
|
17790
|
-
bind(_context, target) {
|
|
17791
|
-
return target;
|
|
17792
|
-
}
|
|
17793
|
-
enable() {
|
|
17794
|
-
return this;
|
|
17795
|
-
}
|
|
17796
|
-
disable() {
|
|
17797
|
-
return this;
|
|
17798
|
-
}
|
|
17799
|
-
}
|
|
17800
|
-
exports.NoopContextManager = NoopContextManager;
|
|
17801
|
-
});
|
|
17802
|
-
|
|
17803
|
-
// ../../node_modules/@opentelemetry/api/build/src/api/context.js
|
|
17804
|
-
var require_context2 = __commonJS((exports) => {
|
|
17805
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17806
|
-
exports.ContextAPI = undefined;
|
|
17807
|
-
var NoopContextManager_1 = require_NoopContextManager();
|
|
17808
|
-
var global_utils_1 = require_global_utils();
|
|
17809
|
-
var diag_1 = require_diag();
|
|
17810
|
-
var API_NAME = "context";
|
|
17811
|
-
var NOOP_CONTEXT_MANAGER = new NoopContextManager_1.NoopContextManager;
|
|
17812
|
-
|
|
17813
|
-
class ContextAPI {
|
|
17814
|
-
constructor() {}
|
|
17815
|
-
static getInstance() {
|
|
17816
|
-
if (!this._instance) {
|
|
17817
|
-
this._instance = new ContextAPI;
|
|
17818
|
-
}
|
|
17819
|
-
return this._instance;
|
|
17820
|
-
}
|
|
17821
|
-
setGlobalContextManager(contextManager) {
|
|
17822
|
-
return (0, global_utils_1.registerGlobal)(API_NAME, contextManager, diag_1.DiagAPI.instance());
|
|
17823
|
-
}
|
|
17824
|
-
active() {
|
|
17825
|
-
return this._getContextManager().active();
|
|
17826
|
-
}
|
|
17827
|
-
with(context, fn, thisArg, ...args) {
|
|
17828
|
-
return this._getContextManager().with(context, fn, thisArg, ...args);
|
|
17829
|
-
}
|
|
17830
|
-
bind(context, target) {
|
|
17831
|
-
return this._getContextManager().bind(context, target);
|
|
17832
|
-
}
|
|
17833
|
-
_getContextManager() {
|
|
17834
|
-
return (0, global_utils_1.getGlobal)(API_NAME) || NOOP_CONTEXT_MANAGER;
|
|
17835
|
-
}
|
|
17836
|
-
disable() {
|
|
17837
|
-
this._getContextManager().disable();
|
|
17838
|
-
(0, global_utils_1.unregisterGlobal)(API_NAME, diag_1.DiagAPI.instance());
|
|
17839
|
-
}
|
|
17840
|
-
}
|
|
17841
|
-
exports.ContextAPI = ContextAPI;
|
|
17842
|
-
});
|
|
17843
|
-
|
|
17844
|
-
// ../../node_modules/@opentelemetry/api/build/src/trace/trace_flags.js
|
|
17845
|
-
var require_trace_flags = __commonJS((exports) => {
|
|
17846
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17847
|
-
exports.TraceFlags = undefined;
|
|
17848
|
-
var TraceFlags;
|
|
17849
|
-
(function(TraceFlags2) {
|
|
17850
|
-
TraceFlags2[TraceFlags2["NONE"] = 0] = "NONE";
|
|
17851
|
-
TraceFlags2[TraceFlags2["SAMPLED"] = 1] = "SAMPLED";
|
|
17852
|
-
})(TraceFlags = exports.TraceFlags || (exports.TraceFlags = {}));
|
|
17853
|
-
});
|
|
17854
|
-
|
|
17855
|
-
// ../../node_modules/@opentelemetry/api/build/src/trace/invalid-span-constants.js
|
|
17856
|
-
var require_invalid_span_constants = __commonJS((exports) => {
|
|
17857
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17858
|
-
exports.INVALID_SPAN_CONTEXT = exports.INVALID_TRACEID = exports.INVALID_SPANID = undefined;
|
|
17859
|
-
var trace_flags_1 = require_trace_flags();
|
|
17860
|
-
exports.INVALID_SPANID = "0000000000000000";
|
|
17861
|
-
exports.INVALID_TRACEID = "00000000000000000000000000000000";
|
|
17862
|
-
exports.INVALID_SPAN_CONTEXT = {
|
|
17863
|
-
traceId: exports.INVALID_TRACEID,
|
|
17864
|
-
spanId: exports.INVALID_SPANID,
|
|
17865
|
-
traceFlags: trace_flags_1.TraceFlags.NONE
|
|
17866
|
-
};
|
|
17867
|
-
});
|
|
17868
|
-
|
|
17869
|
-
// ../../node_modules/@opentelemetry/api/build/src/trace/NonRecordingSpan.js
|
|
17870
|
-
var require_NonRecordingSpan = __commonJS((exports) => {
|
|
17871
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17872
|
-
exports.NonRecordingSpan = undefined;
|
|
17873
|
-
var invalid_span_constants_1 = require_invalid_span_constants();
|
|
17874
|
-
|
|
17875
|
-
class NonRecordingSpan {
|
|
17876
|
-
constructor(spanContext = invalid_span_constants_1.INVALID_SPAN_CONTEXT) {
|
|
17877
|
-
this._spanContext = spanContext;
|
|
17878
|
-
}
|
|
17879
|
-
spanContext() {
|
|
17880
|
-
return this._spanContext;
|
|
17881
|
-
}
|
|
17882
|
-
setAttribute(_key, _value) {
|
|
17883
|
-
return this;
|
|
17884
|
-
}
|
|
17885
|
-
setAttributes(_attributes) {
|
|
17886
|
-
return this;
|
|
17887
|
-
}
|
|
17888
|
-
addEvent(_name, _attributes) {
|
|
17889
|
-
return this;
|
|
17890
|
-
}
|
|
17891
|
-
addLink(_link) {
|
|
17892
|
-
return this;
|
|
17893
|
-
}
|
|
17894
|
-
addLinks(_links) {
|
|
17895
|
-
return this;
|
|
17896
|
-
}
|
|
17897
|
-
setStatus(_status) {
|
|
17898
|
-
return this;
|
|
17899
|
-
}
|
|
17900
|
-
updateName(_name) {
|
|
17901
|
-
return this;
|
|
17902
|
-
}
|
|
17903
|
-
end(_endTime) {}
|
|
17904
|
-
isRecording() {
|
|
17905
|
-
return false;
|
|
17906
|
-
}
|
|
17907
|
-
recordException(_exception, _time) {}
|
|
17908
|
-
}
|
|
17909
|
-
exports.NonRecordingSpan = NonRecordingSpan;
|
|
17910
|
-
});
|
|
17911
|
-
|
|
17912
|
-
// ../../node_modules/@opentelemetry/api/build/src/trace/context-utils.js
|
|
17913
|
-
var require_context_utils = __commonJS((exports) => {
|
|
17914
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17915
|
-
exports.getSpanContext = exports.setSpanContext = exports.deleteSpan = exports.setSpan = exports.getActiveSpan = exports.getSpan = undefined;
|
|
17916
|
-
var context_1 = require_context();
|
|
17917
|
-
var NonRecordingSpan_1 = require_NonRecordingSpan();
|
|
17918
|
-
var context_2 = require_context2();
|
|
17919
|
-
var SPAN_KEY = (0, context_1.createContextKey)("OpenTelemetry Context Key SPAN");
|
|
17920
|
-
function getSpan(context) {
|
|
17921
|
-
return context.getValue(SPAN_KEY) || undefined;
|
|
17922
|
-
}
|
|
17923
|
-
exports.getSpan = getSpan;
|
|
17924
|
-
function getActiveSpan() {
|
|
17925
|
-
return getSpan(context_2.ContextAPI.getInstance().active());
|
|
17926
|
-
}
|
|
17927
|
-
exports.getActiveSpan = getActiveSpan;
|
|
17928
|
-
function setSpan(context, span) {
|
|
17929
|
-
return context.setValue(SPAN_KEY, span);
|
|
17930
|
-
}
|
|
17931
|
-
exports.setSpan = setSpan;
|
|
17932
|
-
function deleteSpan(context) {
|
|
17933
|
-
return context.deleteValue(SPAN_KEY);
|
|
17934
|
-
}
|
|
17935
|
-
exports.deleteSpan = deleteSpan;
|
|
17936
|
-
function setSpanContext(context, spanContext) {
|
|
17937
|
-
return setSpan(context, new NonRecordingSpan_1.NonRecordingSpan(spanContext));
|
|
17938
|
-
}
|
|
17939
|
-
exports.setSpanContext = setSpanContext;
|
|
17940
|
-
function getSpanContext(context) {
|
|
17941
|
-
var _a3;
|
|
17942
|
-
return (_a3 = getSpan(context)) === null || _a3 === undefined ? undefined : _a3.spanContext();
|
|
17943
|
-
}
|
|
17944
|
-
exports.getSpanContext = getSpanContext;
|
|
17945
|
-
});
|
|
17946
|
-
|
|
17947
|
-
// ../../node_modules/@opentelemetry/api/build/src/trace/spancontext-utils.js
|
|
17948
|
-
var require_spancontext_utils = __commonJS((exports) => {
|
|
17949
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17950
|
-
exports.wrapSpanContext = exports.isSpanContextValid = exports.isValidSpanId = exports.isValidTraceId = undefined;
|
|
17951
|
-
var invalid_span_constants_1 = require_invalid_span_constants();
|
|
17952
|
-
var NonRecordingSpan_1 = require_NonRecordingSpan();
|
|
17953
|
-
var isHex = new Uint8Array([
|
|
17954
|
-
0,
|
|
17955
|
-
0,
|
|
17956
|
-
0,
|
|
17957
|
-
0,
|
|
17958
|
-
0,
|
|
17959
|
-
0,
|
|
17960
|
-
0,
|
|
17961
|
-
0,
|
|
17962
|
-
0,
|
|
17963
|
-
0,
|
|
17964
|
-
0,
|
|
17965
|
-
0,
|
|
17966
|
-
0,
|
|
17967
|
-
0,
|
|
17968
|
-
0,
|
|
17969
|
-
0,
|
|
17970
|
-
0,
|
|
17971
|
-
0,
|
|
17972
|
-
0,
|
|
17973
|
-
0,
|
|
17974
|
-
0,
|
|
17975
|
-
0,
|
|
17976
|
-
0,
|
|
17977
|
-
0,
|
|
17978
|
-
0,
|
|
17979
|
-
0,
|
|
17980
|
-
0,
|
|
17981
|
-
0,
|
|
17982
|
-
0,
|
|
17983
|
-
0,
|
|
17984
|
-
0,
|
|
17985
|
-
0,
|
|
17986
|
-
0,
|
|
17987
|
-
0,
|
|
17988
|
-
0,
|
|
17989
|
-
0,
|
|
17990
|
-
0,
|
|
17991
|
-
0,
|
|
17992
|
-
0,
|
|
17993
|
-
0,
|
|
17994
|
-
0,
|
|
17995
|
-
0,
|
|
17996
|
-
0,
|
|
17997
|
-
0,
|
|
17998
|
-
0,
|
|
17999
|
-
0,
|
|
18000
|
-
0,
|
|
18001
|
-
0,
|
|
18002
|
-
1,
|
|
18003
|
-
1,
|
|
18004
|
-
1,
|
|
18005
|
-
1,
|
|
18006
|
-
1,
|
|
18007
|
-
1,
|
|
18008
|
-
1,
|
|
18009
|
-
1,
|
|
18010
|
-
1,
|
|
18011
|
-
1,
|
|
18012
|
-
0,
|
|
18013
|
-
0,
|
|
18014
|
-
0,
|
|
18015
|
-
0,
|
|
18016
|
-
0,
|
|
18017
|
-
0,
|
|
18018
|
-
0,
|
|
18019
|
-
1,
|
|
18020
|
-
1,
|
|
18021
|
-
1,
|
|
18022
|
-
1,
|
|
18023
|
-
1,
|
|
18024
|
-
1,
|
|
18025
|
-
0,
|
|
18026
|
-
0,
|
|
18027
|
-
0,
|
|
18028
|
-
0,
|
|
18029
|
-
0,
|
|
18030
|
-
0,
|
|
18031
|
-
0,
|
|
18032
|
-
0,
|
|
18033
|
-
0,
|
|
18034
|
-
0,
|
|
18035
|
-
0,
|
|
18036
|
-
0,
|
|
18037
|
-
0,
|
|
18038
|
-
0,
|
|
18039
|
-
0,
|
|
18040
|
-
0,
|
|
18041
|
-
0,
|
|
18042
|
-
0,
|
|
18043
|
-
0,
|
|
18044
|
-
0,
|
|
18045
|
-
0,
|
|
18046
|
-
0,
|
|
18047
|
-
0,
|
|
18048
|
-
0,
|
|
18049
|
-
0,
|
|
18050
|
-
0,
|
|
18051
|
-
1,
|
|
18052
|
-
1,
|
|
18053
|
-
1,
|
|
18054
|
-
1,
|
|
18055
|
-
1,
|
|
18056
|
-
1
|
|
18057
|
-
]);
|
|
18058
|
-
function isValidHex(id, length) {
|
|
18059
|
-
if (typeof id !== "string" || id.length !== length)
|
|
18060
|
-
return false;
|
|
18061
|
-
let r = 0;
|
|
18062
|
-
for (let i = 0;i < id.length; i += 4) {
|
|
18063
|
-
r += (isHex[id.charCodeAt(i)] | 0) + (isHex[id.charCodeAt(i + 1)] | 0) + (isHex[id.charCodeAt(i + 2)] | 0) + (isHex[id.charCodeAt(i + 3)] | 0);
|
|
18064
|
-
}
|
|
18065
|
-
return r === length;
|
|
18066
|
-
}
|
|
18067
|
-
function isValidTraceId(traceId) {
|
|
18068
|
-
return isValidHex(traceId, 32) && traceId !== invalid_span_constants_1.INVALID_TRACEID;
|
|
18069
|
-
}
|
|
18070
|
-
exports.isValidTraceId = isValidTraceId;
|
|
18071
|
-
function isValidSpanId(spanId) {
|
|
18072
|
-
return isValidHex(spanId, 16) && spanId !== invalid_span_constants_1.INVALID_SPANID;
|
|
18073
|
-
}
|
|
18074
|
-
exports.isValidSpanId = isValidSpanId;
|
|
18075
|
-
function isSpanContextValid(spanContext) {
|
|
18076
|
-
return isValidTraceId(spanContext.traceId) && isValidSpanId(spanContext.spanId);
|
|
18077
|
-
}
|
|
18078
|
-
exports.isSpanContextValid = isSpanContextValid;
|
|
18079
|
-
function wrapSpanContext(spanContext) {
|
|
18080
|
-
return new NonRecordingSpan_1.NonRecordingSpan(spanContext);
|
|
18081
|
-
}
|
|
18082
|
-
exports.wrapSpanContext = wrapSpanContext;
|
|
18083
|
-
});
|
|
18084
|
-
|
|
18085
|
-
// ../../node_modules/@opentelemetry/api/build/src/trace/NoopTracer.js
|
|
18086
|
-
var require_NoopTracer = __commonJS((exports) => {
|
|
18087
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18088
|
-
exports.NoopTracer = undefined;
|
|
18089
|
-
var context_1 = require_context2();
|
|
18090
|
-
var context_utils_1 = require_context_utils();
|
|
18091
|
-
var NonRecordingSpan_1 = require_NonRecordingSpan();
|
|
18092
|
-
var spancontext_utils_1 = require_spancontext_utils();
|
|
18093
|
-
var contextApi = context_1.ContextAPI.getInstance();
|
|
18094
|
-
|
|
18095
|
-
class NoopTracer {
|
|
18096
|
-
startSpan(name, options, context = contextApi.active()) {
|
|
18097
|
-
const root = Boolean(options === null || options === undefined ? undefined : options.root);
|
|
18098
|
-
if (root) {
|
|
18099
|
-
return new NonRecordingSpan_1.NonRecordingSpan;
|
|
18100
|
-
}
|
|
18101
|
-
const parentFromContext = context && (0, context_utils_1.getSpanContext)(context);
|
|
18102
|
-
if (isSpanContext(parentFromContext) && (0, spancontext_utils_1.isSpanContextValid)(parentFromContext)) {
|
|
18103
|
-
return new NonRecordingSpan_1.NonRecordingSpan(parentFromContext);
|
|
18104
|
-
} else {
|
|
18105
|
-
return new NonRecordingSpan_1.NonRecordingSpan;
|
|
18106
|
-
}
|
|
18107
|
-
}
|
|
18108
|
-
startActiveSpan(name, arg2, arg3, arg4) {
|
|
18109
|
-
let opts;
|
|
18110
|
-
let ctx;
|
|
18111
|
-
let fn;
|
|
18112
|
-
if (arguments.length < 2) {
|
|
18113
|
-
return;
|
|
18114
|
-
} else if (arguments.length === 2) {
|
|
18115
|
-
fn = arg2;
|
|
18116
|
-
} else if (arguments.length === 3) {
|
|
18117
|
-
opts = arg2;
|
|
18118
|
-
fn = arg3;
|
|
18119
|
-
} else {
|
|
18120
|
-
opts = arg2;
|
|
18121
|
-
ctx = arg3;
|
|
18122
|
-
fn = arg4;
|
|
18123
|
-
}
|
|
18124
|
-
const parentContext = ctx !== null && ctx !== undefined ? ctx : contextApi.active();
|
|
18125
|
-
const span = this.startSpan(name, opts, parentContext);
|
|
18126
|
-
const contextWithSpanSet = (0, context_utils_1.setSpan)(parentContext, span);
|
|
18127
|
-
return contextApi.with(contextWithSpanSet, fn, undefined, span);
|
|
18128
|
-
}
|
|
18129
|
-
}
|
|
18130
|
-
exports.NoopTracer = NoopTracer;
|
|
18131
|
-
function isSpanContext(spanContext) {
|
|
18132
|
-
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";
|
|
18133
|
-
}
|
|
18134
|
-
});
|
|
18135
|
-
|
|
18136
|
-
// ../../node_modules/@opentelemetry/api/build/src/trace/ProxyTracer.js
|
|
18137
|
-
var require_ProxyTracer = __commonJS((exports) => {
|
|
18138
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18139
|
-
exports.ProxyTracer = undefined;
|
|
18140
|
-
var NoopTracer_1 = require_NoopTracer();
|
|
18141
|
-
var NOOP_TRACER = new NoopTracer_1.NoopTracer;
|
|
18142
|
-
|
|
18143
|
-
class ProxyTracer {
|
|
18144
|
-
constructor(provider, name, version2, options) {
|
|
18145
|
-
this._provider = provider;
|
|
18146
|
-
this.name = name;
|
|
18147
|
-
this.version = version2;
|
|
18148
|
-
this.options = options;
|
|
18149
|
-
}
|
|
18150
|
-
startSpan(name, options, context) {
|
|
18151
|
-
return this._getTracer().startSpan(name, options, context);
|
|
18152
|
-
}
|
|
18153
|
-
startActiveSpan(_name, _options, _context, _fn) {
|
|
18154
|
-
const tracer = this._getTracer();
|
|
18155
|
-
return Reflect.apply(tracer.startActiveSpan, tracer, arguments);
|
|
18156
|
-
}
|
|
18157
|
-
_getTracer() {
|
|
18158
|
-
if (this._delegate) {
|
|
18159
|
-
return this._delegate;
|
|
18160
|
-
}
|
|
18161
|
-
const tracer = this._provider.getDelegateTracer(this.name, this.version, this.options);
|
|
18162
|
-
if (!tracer) {
|
|
18163
|
-
return NOOP_TRACER;
|
|
18164
|
-
}
|
|
18165
|
-
this._delegate = tracer;
|
|
18166
|
-
return this._delegate;
|
|
18167
|
-
}
|
|
18168
|
-
}
|
|
18169
|
-
exports.ProxyTracer = ProxyTracer;
|
|
18170
|
-
});
|
|
18171
|
-
|
|
18172
|
-
// ../../node_modules/@opentelemetry/api/build/src/trace/NoopTracerProvider.js
|
|
18173
|
-
var require_NoopTracerProvider = __commonJS((exports) => {
|
|
18174
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18175
|
-
exports.NoopTracerProvider = undefined;
|
|
18176
|
-
var NoopTracer_1 = require_NoopTracer();
|
|
18177
|
-
|
|
18178
|
-
class NoopTracerProvider {
|
|
18179
|
-
getTracer(_name, _version, _options) {
|
|
18180
|
-
return new NoopTracer_1.NoopTracer;
|
|
18181
|
-
}
|
|
18182
|
-
}
|
|
18183
|
-
exports.NoopTracerProvider = NoopTracerProvider;
|
|
18184
|
-
});
|
|
18185
|
-
|
|
18186
|
-
// ../../node_modules/@opentelemetry/api/build/src/trace/ProxyTracerProvider.js
|
|
18187
|
-
var require_ProxyTracerProvider = __commonJS((exports) => {
|
|
18188
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18189
|
-
exports.ProxyTracerProvider = undefined;
|
|
18190
|
-
var ProxyTracer_1 = require_ProxyTracer();
|
|
18191
|
-
var NoopTracerProvider_1 = require_NoopTracerProvider();
|
|
18192
|
-
var NOOP_TRACER_PROVIDER = new NoopTracerProvider_1.NoopTracerProvider;
|
|
18193
|
-
|
|
18194
|
-
class ProxyTracerProvider {
|
|
18195
|
-
getTracer(name, version2, options) {
|
|
18196
|
-
var _a3;
|
|
18197
|
-
return (_a3 = this.getDelegateTracer(name, version2, options)) !== null && _a3 !== undefined ? _a3 : new ProxyTracer_1.ProxyTracer(this, name, version2, options);
|
|
18198
|
-
}
|
|
18199
|
-
getDelegate() {
|
|
18200
|
-
var _a3;
|
|
18201
|
-
return (_a3 = this._delegate) !== null && _a3 !== undefined ? _a3 : NOOP_TRACER_PROVIDER;
|
|
18202
|
-
}
|
|
18203
|
-
setDelegate(delegate) {
|
|
18204
|
-
this._delegate = delegate;
|
|
18205
|
-
}
|
|
18206
|
-
getDelegateTracer(name, version2, options) {
|
|
18207
|
-
var _a3;
|
|
18208
|
-
return (_a3 = this._delegate) === null || _a3 === undefined ? undefined : _a3.getTracer(name, version2, options);
|
|
18209
|
-
}
|
|
18210
|
-
}
|
|
18211
|
-
exports.ProxyTracerProvider = ProxyTracerProvider;
|
|
18212
|
-
});
|
|
18213
|
-
|
|
18214
|
-
// ../../node_modules/@opentelemetry/api/build/src/trace/SamplingResult.js
|
|
18215
|
-
var require_SamplingResult = __commonJS((exports) => {
|
|
18216
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18217
|
-
exports.SamplingDecision = undefined;
|
|
18218
|
-
var SamplingDecision;
|
|
18219
|
-
(function(SamplingDecision2) {
|
|
18220
|
-
SamplingDecision2[SamplingDecision2["NOT_RECORD"] = 0] = "NOT_RECORD";
|
|
18221
|
-
SamplingDecision2[SamplingDecision2["RECORD"] = 1] = "RECORD";
|
|
18222
|
-
SamplingDecision2[SamplingDecision2["RECORD_AND_SAMPLED"] = 2] = "RECORD_AND_SAMPLED";
|
|
18223
|
-
})(SamplingDecision = exports.SamplingDecision || (exports.SamplingDecision = {}));
|
|
18224
|
-
});
|
|
18225
|
-
|
|
18226
|
-
// ../../node_modules/@opentelemetry/api/build/src/trace/span_kind.js
|
|
18227
|
-
var require_span_kind = __commonJS((exports) => {
|
|
18228
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18229
|
-
exports.SpanKind = undefined;
|
|
18230
|
-
var SpanKind;
|
|
18231
|
-
(function(SpanKind2) {
|
|
18232
|
-
SpanKind2[SpanKind2["INTERNAL"] = 0] = "INTERNAL";
|
|
18233
|
-
SpanKind2[SpanKind2["SERVER"] = 1] = "SERVER";
|
|
18234
|
-
SpanKind2[SpanKind2["CLIENT"] = 2] = "CLIENT";
|
|
18235
|
-
SpanKind2[SpanKind2["PRODUCER"] = 3] = "PRODUCER";
|
|
18236
|
-
SpanKind2[SpanKind2["CONSUMER"] = 4] = "CONSUMER";
|
|
18237
|
-
})(SpanKind = exports.SpanKind || (exports.SpanKind = {}));
|
|
18238
|
-
});
|
|
18239
|
-
|
|
18240
|
-
// ../../node_modules/@opentelemetry/api/build/src/trace/status.js
|
|
18241
|
-
var require_status = __commonJS((exports) => {
|
|
18242
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18243
|
-
exports.SpanStatusCode = undefined;
|
|
18244
|
-
var SpanStatusCode;
|
|
18245
|
-
(function(SpanStatusCode2) {
|
|
18246
|
-
SpanStatusCode2[SpanStatusCode2["UNSET"] = 0] = "UNSET";
|
|
18247
|
-
SpanStatusCode2[SpanStatusCode2["OK"] = 1] = "OK";
|
|
18248
|
-
SpanStatusCode2[SpanStatusCode2["ERROR"] = 2] = "ERROR";
|
|
18249
|
-
})(SpanStatusCode = exports.SpanStatusCode || (exports.SpanStatusCode = {}));
|
|
18250
|
-
});
|
|
18251
|
-
|
|
18252
|
-
// ../../node_modules/@opentelemetry/api/build/src/trace/internal/tracestate-validators.js
|
|
18253
|
-
var require_tracestate_validators = __commonJS((exports) => {
|
|
18254
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18255
|
-
exports.validateValue = exports.validateKey = undefined;
|
|
18256
|
-
var VALID_KEY_CHAR_RANGE = "[_0-9a-z-*/]";
|
|
18257
|
-
var VALID_KEY = `[a-z]${VALID_KEY_CHAR_RANGE}{0,255}`;
|
|
18258
|
-
var VALID_VENDOR_KEY = `[a-z0-9]${VALID_KEY_CHAR_RANGE}{0,240}@[a-z]${VALID_KEY_CHAR_RANGE}{0,13}`;
|
|
18259
|
-
var VALID_KEY_REGEX = new RegExp(`^(?:${VALID_KEY}|${VALID_VENDOR_KEY})$`);
|
|
18260
|
-
var VALID_VALUE_BASE_REGEX = /^[ -~]{0,255}[!-~]$/;
|
|
18261
|
-
var INVALID_VALUE_COMMA_EQUAL_REGEX = /,|=/;
|
|
18262
|
-
function validateKey(key) {
|
|
18263
|
-
return VALID_KEY_REGEX.test(key);
|
|
18264
|
-
}
|
|
18265
|
-
exports.validateKey = validateKey;
|
|
18266
|
-
function validateValue(value) {
|
|
18267
|
-
return VALID_VALUE_BASE_REGEX.test(value) && !INVALID_VALUE_COMMA_EQUAL_REGEX.test(value);
|
|
18268
|
-
}
|
|
18269
|
-
exports.validateValue = validateValue;
|
|
18270
|
-
});
|
|
18271
|
-
|
|
18272
|
-
// ../../node_modules/@opentelemetry/api/build/src/trace/internal/tracestate-impl.js
|
|
18273
|
-
var require_tracestate_impl = __commonJS((exports) => {
|
|
18274
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18275
|
-
exports.TraceStateImpl = undefined;
|
|
18276
|
-
var tracestate_validators_1 = require_tracestate_validators();
|
|
18277
|
-
var MAX_TRACE_STATE_ITEMS = 32;
|
|
18278
|
-
var MAX_TRACE_STATE_LEN = 512;
|
|
18279
|
-
var LIST_MEMBERS_SEPARATOR = ",";
|
|
18280
|
-
var LIST_MEMBER_KEY_VALUE_SPLITTER = "=";
|
|
18281
|
-
|
|
18282
|
-
class TraceStateImpl {
|
|
18283
|
-
constructor(rawTraceState) {
|
|
18284
|
-
this._internalState = new Map;
|
|
18285
|
-
if (rawTraceState)
|
|
18286
|
-
this._parse(rawTraceState);
|
|
18287
|
-
}
|
|
18288
|
-
set(key, value) {
|
|
18289
|
-
const traceState = this._clone();
|
|
18290
|
-
if (traceState._internalState.has(key)) {
|
|
18291
|
-
traceState._internalState.delete(key);
|
|
18292
|
-
}
|
|
18293
|
-
traceState._internalState.set(key, value);
|
|
18294
|
-
return traceState;
|
|
18295
|
-
}
|
|
18296
|
-
unset(key) {
|
|
18297
|
-
const traceState = this._clone();
|
|
18298
|
-
traceState._internalState.delete(key);
|
|
18299
|
-
return traceState;
|
|
18300
|
-
}
|
|
18301
|
-
get(key) {
|
|
18302
|
-
return this._internalState.get(key);
|
|
18303
|
-
}
|
|
18304
|
-
serialize() {
|
|
18305
|
-
return Array.from(this._internalState.keys()).reduceRight((agg, key) => {
|
|
18306
|
-
agg.push(key + LIST_MEMBER_KEY_VALUE_SPLITTER + this.get(key));
|
|
18307
|
-
return agg;
|
|
18308
|
-
}, []).join(LIST_MEMBERS_SEPARATOR);
|
|
18309
|
-
}
|
|
18310
|
-
_parse(rawTraceState) {
|
|
18311
|
-
if (rawTraceState.length > MAX_TRACE_STATE_LEN)
|
|
18312
|
-
return;
|
|
18313
|
-
this._internalState = rawTraceState.split(LIST_MEMBERS_SEPARATOR).reduceRight((agg, part) => {
|
|
18314
|
-
const listMember = part.trim();
|
|
18315
|
-
const i = listMember.indexOf(LIST_MEMBER_KEY_VALUE_SPLITTER);
|
|
18316
|
-
if (i !== -1) {
|
|
18317
|
-
const key = listMember.slice(0, i);
|
|
18318
|
-
const value = listMember.slice(i + 1, part.length);
|
|
18319
|
-
if ((0, tracestate_validators_1.validateKey)(key) && (0, tracestate_validators_1.validateValue)(value)) {
|
|
18320
|
-
agg.set(key, value);
|
|
18321
|
-
}
|
|
18322
|
-
}
|
|
18323
|
-
return agg;
|
|
18324
|
-
}, new Map);
|
|
18325
|
-
if (this._internalState.size > MAX_TRACE_STATE_ITEMS) {
|
|
18326
|
-
this._internalState = new Map(Array.from(this._internalState.entries()).reverse().slice(0, MAX_TRACE_STATE_ITEMS));
|
|
18327
|
-
}
|
|
18328
|
-
}
|
|
18329
|
-
_keys() {
|
|
18330
|
-
return Array.from(this._internalState.keys()).reverse();
|
|
18331
|
-
}
|
|
18332
|
-
_clone() {
|
|
18333
|
-
const traceState = new TraceStateImpl;
|
|
18334
|
-
traceState._internalState = new Map(this._internalState);
|
|
18335
|
-
return traceState;
|
|
18336
|
-
}
|
|
18337
|
-
}
|
|
18338
|
-
exports.TraceStateImpl = TraceStateImpl;
|
|
18339
|
-
});
|
|
18340
|
-
|
|
18341
|
-
// ../../node_modules/@opentelemetry/api/build/src/trace/internal/utils.js
|
|
18342
|
-
var require_utils2 = __commonJS((exports) => {
|
|
18343
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18344
|
-
exports.createTraceState = undefined;
|
|
18345
|
-
var tracestate_impl_1 = require_tracestate_impl();
|
|
18346
|
-
function createTraceState(rawTraceState) {
|
|
18347
|
-
return new tracestate_impl_1.TraceStateImpl(rawTraceState);
|
|
18348
|
-
}
|
|
18349
|
-
exports.createTraceState = createTraceState;
|
|
18350
|
-
});
|
|
18351
|
-
|
|
18352
|
-
// ../../node_modules/@opentelemetry/api/build/src/context-api.js
|
|
18353
|
-
var require_context_api = __commonJS((exports) => {
|
|
18354
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18355
|
-
exports.context = undefined;
|
|
18356
|
-
var context_1 = require_context2();
|
|
18357
|
-
exports.context = context_1.ContextAPI.getInstance();
|
|
18358
|
-
});
|
|
18359
|
-
|
|
18360
|
-
// ../../node_modules/@opentelemetry/api/build/src/diag-api.js
|
|
18361
|
-
var require_diag_api = __commonJS((exports) => {
|
|
18362
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18363
|
-
exports.diag = undefined;
|
|
18364
|
-
var diag_1 = require_diag();
|
|
18365
|
-
exports.diag = diag_1.DiagAPI.instance();
|
|
18366
|
-
});
|
|
18367
|
-
|
|
18368
|
-
// ../../node_modules/@opentelemetry/api/build/src/metrics/NoopMeterProvider.js
|
|
18369
|
-
var require_NoopMeterProvider = __commonJS((exports) => {
|
|
18370
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18371
|
-
exports.NOOP_METER_PROVIDER = exports.NoopMeterProvider = undefined;
|
|
18372
|
-
var NoopMeter_1 = require_NoopMeter();
|
|
18373
|
-
|
|
18374
|
-
class NoopMeterProvider {
|
|
18375
|
-
getMeter(_name, _version, _options) {
|
|
18376
|
-
return NoopMeter_1.NOOP_METER;
|
|
18377
|
-
}
|
|
18378
|
-
}
|
|
18379
|
-
exports.NoopMeterProvider = NoopMeterProvider;
|
|
18380
|
-
exports.NOOP_METER_PROVIDER = new NoopMeterProvider;
|
|
18381
|
-
});
|
|
18382
|
-
|
|
18383
|
-
// ../../node_modules/@opentelemetry/api/build/src/api/metrics.js
|
|
18384
|
-
var require_metrics = __commonJS((exports) => {
|
|
18385
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18386
|
-
exports.MetricsAPI = undefined;
|
|
18387
|
-
var NoopMeterProvider_1 = require_NoopMeterProvider();
|
|
18388
|
-
var global_utils_1 = require_global_utils();
|
|
18389
|
-
var diag_1 = require_diag();
|
|
18390
|
-
var API_NAME = "metrics";
|
|
18391
|
-
|
|
18392
|
-
class MetricsAPI {
|
|
18393
|
-
constructor() {}
|
|
18394
|
-
static getInstance() {
|
|
18395
|
-
if (!this._instance) {
|
|
18396
|
-
this._instance = new MetricsAPI;
|
|
18397
|
-
}
|
|
18398
|
-
return this._instance;
|
|
18399
|
-
}
|
|
18400
|
-
setGlobalMeterProvider(provider) {
|
|
18401
|
-
return (0, global_utils_1.registerGlobal)(API_NAME, provider, diag_1.DiagAPI.instance());
|
|
18402
|
-
}
|
|
18403
|
-
getMeterProvider() {
|
|
18404
|
-
return (0, global_utils_1.getGlobal)(API_NAME) || NoopMeterProvider_1.NOOP_METER_PROVIDER;
|
|
18405
|
-
}
|
|
18406
|
-
getMeter(name, version2, options) {
|
|
18407
|
-
return this.getMeterProvider().getMeter(name, version2, options);
|
|
18408
|
-
}
|
|
18409
|
-
disable() {
|
|
18410
|
-
(0, global_utils_1.unregisterGlobal)(API_NAME, diag_1.DiagAPI.instance());
|
|
18411
|
-
}
|
|
18412
|
-
}
|
|
18413
|
-
exports.MetricsAPI = MetricsAPI;
|
|
18414
|
-
});
|
|
18415
|
-
|
|
18416
|
-
// ../../node_modules/@opentelemetry/api/build/src/metrics-api.js
|
|
18417
|
-
var require_metrics_api = __commonJS((exports) => {
|
|
18418
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18419
|
-
exports.metrics = undefined;
|
|
18420
|
-
var metrics_1 = require_metrics();
|
|
18421
|
-
exports.metrics = metrics_1.MetricsAPI.getInstance();
|
|
18422
|
-
});
|
|
18423
|
-
|
|
18424
|
-
// ../../node_modules/@opentelemetry/api/build/src/propagation/NoopTextMapPropagator.js
|
|
18425
|
-
var require_NoopTextMapPropagator = __commonJS((exports) => {
|
|
18426
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18427
|
-
exports.NoopTextMapPropagator = undefined;
|
|
18428
|
-
|
|
18429
|
-
class NoopTextMapPropagator {
|
|
18430
|
-
inject(_context, _carrier) {}
|
|
18431
|
-
extract(context, _carrier) {
|
|
18432
|
-
return context;
|
|
18433
|
-
}
|
|
18434
|
-
fields() {
|
|
18435
|
-
return [];
|
|
18436
|
-
}
|
|
18437
|
-
}
|
|
18438
|
-
exports.NoopTextMapPropagator = NoopTextMapPropagator;
|
|
18439
|
-
});
|
|
18440
|
-
|
|
18441
|
-
// ../../node_modules/@opentelemetry/api/build/src/baggage/context-helpers.js
|
|
18442
|
-
var require_context_helpers = __commonJS((exports) => {
|
|
18443
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18444
|
-
exports.deleteBaggage = exports.setBaggage = exports.getActiveBaggage = exports.getBaggage = undefined;
|
|
18445
|
-
var context_1 = require_context2();
|
|
18446
|
-
var context_2 = require_context();
|
|
18447
|
-
var BAGGAGE_KEY = (0, context_2.createContextKey)("OpenTelemetry Baggage Key");
|
|
18448
|
-
function getBaggage(context) {
|
|
18449
|
-
return context.getValue(BAGGAGE_KEY) || undefined;
|
|
18450
|
-
}
|
|
18451
|
-
exports.getBaggage = getBaggage;
|
|
18452
|
-
function getActiveBaggage() {
|
|
18453
|
-
return getBaggage(context_1.ContextAPI.getInstance().active());
|
|
18454
|
-
}
|
|
18455
|
-
exports.getActiveBaggage = getActiveBaggage;
|
|
18456
|
-
function setBaggage(context, baggage) {
|
|
18457
|
-
return context.setValue(BAGGAGE_KEY, baggage);
|
|
18458
|
-
}
|
|
18459
|
-
exports.setBaggage = setBaggage;
|
|
18460
|
-
function deleteBaggage(context) {
|
|
18461
|
-
return context.deleteValue(BAGGAGE_KEY);
|
|
18462
|
-
}
|
|
18463
|
-
exports.deleteBaggage = deleteBaggage;
|
|
18464
|
-
});
|
|
18465
|
-
|
|
18466
|
-
// ../../node_modules/@opentelemetry/api/build/src/api/propagation.js
|
|
18467
|
-
var require_propagation = __commonJS((exports) => {
|
|
18468
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18469
|
-
exports.PropagationAPI = undefined;
|
|
18470
|
-
var global_utils_1 = require_global_utils();
|
|
18471
|
-
var NoopTextMapPropagator_1 = require_NoopTextMapPropagator();
|
|
18472
|
-
var TextMapPropagator_1 = require_TextMapPropagator();
|
|
18473
|
-
var context_helpers_1 = require_context_helpers();
|
|
18474
|
-
var utils_1 = require_utils();
|
|
18475
|
-
var diag_1 = require_diag();
|
|
18476
|
-
var API_NAME = "propagation";
|
|
18477
|
-
var NOOP_TEXT_MAP_PROPAGATOR = new NoopTextMapPropagator_1.NoopTextMapPropagator;
|
|
18478
|
-
|
|
18479
|
-
class PropagationAPI {
|
|
18480
|
-
constructor() {
|
|
18481
|
-
this.createBaggage = utils_1.createBaggage;
|
|
18482
|
-
this.getBaggage = context_helpers_1.getBaggage;
|
|
18483
|
-
this.getActiveBaggage = context_helpers_1.getActiveBaggage;
|
|
18484
|
-
this.setBaggage = context_helpers_1.setBaggage;
|
|
18485
|
-
this.deleteBaggage = context_helpers_1.deleteBaggage;
|
|
18486
|
-
}
|
|
18487
|
-
static getInstance() {
|
|
18488
|
-
if (!this._instance) {
|
|
18489
|
-
this._instance = new PropagationAPI;
|
|
18490
|
-
}
|
|
18491
|
-
return this._instance;
|
|
18492
|
-
}
|
|
18493
|
-
setGlobalPropagator(propagator) {
|
|
18494
|
-
return (0, global_utils_1.registerGlobal)(API_NAME, propagator, diag_1.DiagAPI.instance());
|
|
18495
|
-
}
|
|
18496
|
-
inject(context, carrier, setter = TextMapPropagator_1.defaultTextMapSetter) {
|
|
18497
|
-
return this._getGlobalPropagator().inject(context, carrier, setter);
|
|
18498
|
-
}
|
|
18499
|
-
extract(context, carrier, getter = TextMapPropagator_1.defaultTextMapGetter) {
|
|
18500
|
-
return this._getGlobalPropagator().extract(context, carrier, getter);
|
|
18501
|
-
}
|
|
18502
|
-
fields() {
|
|
18503
|
-
return this._getGlobalPropagator().fields();
|
|
18504
|
-
}
|
|
18505
|
-
disable() {
|
|
18506
|
-
(0, global_utils_1.unregisterGlobal)(API_NAME, diag_1.DiagAPI.instance());
|
|
18507
|
-
}
|
|
18508
|
-
_getGlobalPropagator() {
|
|
18509
|
-
return (0, global_utils_1.getGlobal)(API_NAME) || NOOP_TEXT_MAP_PROPAGATOR;
|
|
18510
|
-
}
|
|
18511
|
-
}
|
|
18512
|
-
exports.PropagationAPI = PropagationAPI;
|
|
18513
|
-
});
|
|
18514
|
-
|
|
18515
|
-
// ../../node_modules/@opentelemetry/api/build/src/propagation-api.js
|
|
18516
|
-
var require_propagation_api = __commonJS((exports) => {
|
|
18517
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18518
|
-
exports.propagation = undefined;
|
|
18519
|
-
var propagation_1 = require_propagation();
|
|
18520
|
-
exports.propagation = propagation_1.PropagationAPI.getInstance();
|
|
18521
|
-
});
|
|
18522
|
-
|
|
18523
|
-
// ../../node_modules/@opentelemetry/api/build/src/api/trace.js
|
|
18524
|
-
var require_trace = __commonJS((exports) => {
|
|
18525
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18526
|
-
exports.TraceAPI = undefined;
|
|
18527
|
-
var global_utils_1 = require_global_utils();
|
|
18528
|
-
var ProxyTracerProvider_1 = require_ProxyTracerProvider();
|
|
18529
|
-
var spancontext_utils_1 = require_spancontext_utils();
|
|
18530
|
-
var context_utils_1 = require_context_utils();
|
|
18531
|
-
var diag_1 = require_diag();
|
|
18532
|
-
var API_NAME = "trace";
|
|
18533
|
-
|
|
18534
|
-
class TraceAPI {
|
|
18535
|
-
constructor() {
|
|
18536
|
-
this._proxyTracerProvider = new ProxyTracerProvider_1.ProxyTracerProvider;
|
|
18537
|
-
this.wrapSpanContext = spancontext_utils_1.wrapSpanContext;
|
|
18538
|
-
this.isSpanContextValid = spancontext_utils_1.isSpanContextValid;
|
|
18539
|
-
this.deleteSpan = context_utils_1.deleteSpan;
|
|
18540
|
-
this.getSpan = context_utils_1.getSpan;
|
|
18541
|
-
this.getActiveSpan = context_utils_1.getActiveSpan;
|
|
18542
|
-
this.getSpanContext = context_utils_1.getSpanContext;
|
|
18543
|
-
this.setSpan = context_utils_1.setSpan;
|
|
18544
|
-
this.setSpanContext = context_utils_1.setSpanContext;
|
|
18545
|
-
}
|
|
18546
|
-
static getInstance() {
|
|
18547
|
-
if (!this._instance) {
|
|
18548
|
-
this._instance = new TraceAPI;
|
|
18549
|
-
}
|
|
18550
|
-
return this._instance;
|
|
18551
|
-
}
|
|
18552
|
-
setGlobalTracerProvider(provider) {
|
|
18553
|
-
const success3 = (0, global_utils_1.registerGlobal)(API_NAME, this._proxyTracerProvider, diag_1.DiagAPI.instance());
|
|
18554
|
-
if (success3) {
|
|
18555
|
-
this._proxyTracerProvider.setDelegate(provider);
|
|
18556
|
-
}
|
|
18557
|
-
return success3;
|
|
18558
|
-
}
|
|
18559
|
-
getTracerProvider() {
|
|
18560
|
-
return (0, global_utils_1.getGlobal)(API_NAME) || this._proxyTracerProvider;
|
|
18561
|
-
}
|
|
18562
|
-
getTracer(name, version2) {
|
|
18563
|
-
return this.getTracerProvider().getTracer(name, version2);
|
|
18564
|
-
}
|
|
18565
|
-
disable() {
|
|
18566
|
-
(0, global_utils_1.unregisterGlobal)(API_NAME, diag_1.DiagAPI.instance());
|
|
18567
|
-
this._proxyTracerProvider = new ProxyTracerProvider_1.ProxyTracerProvider;
|
|
18568
|
-
}
|
|
18569
|
-
}
|
|
18570
|
-
exports.TraceAPI = TraceAPI;
|
|
18571
|
-
});
|
|
18572
|
-
|
|
18573
|
-
// ../../node_modules/@opentelemetry/api/build/src/trace-api.js
|
|
18574
|
-
var require_trace_api = __commonJS((exports) => {
|
|
18575
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18576
|
-
exports.trace = undefined;
|
|
18577
|
-
var trace_1 = require_trace();
|
|
18578
|
-
exports.trace = trace_1.TraceAPI.getInstance();
|
|
18579
|
-
});
|
|
18580
|
-
|
|
18581
|
-
// ../../node_modules/@opentelemetry/api/build/src/index.js
|
|
18582
|
-
var require_src = __commonJS((exports) => {
|
|
18583
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18584
|
-
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;
|
|
18585
|
-
var utils_1 = require_utils();
|
|
18586
|
-
Object.defineProperty(exports, "baggageEntryMetadataFromString", { enumerable: true, get: function() {
|
|
18587
|
-
return utils_1.baggageEntryMetadataFromString;
|
|
18588
|
-
} });
|
|
18589
|
-
var context_1 = require_context();
|
|
18590
|
-
Object.defineProperty(exports, "createContextKey", { enumerable: true, get: function() {
|
|
18591
|
-
return context_1.createContextKey;
|
|
18592
|
-
} });
|
|
18593
|
-
Object.defineProperty(exports, "ROOT_CONTEXT", { enumerable: true, get: function() {
|
|
18594
|
-
return context_1.ROOT_CONTEXT;
|
|
18595
|
-
} });
|
|
18596
|
-
var consoleLogger_1 = require_consoleLogger();
|
|
18597
|
-
Object.defineProperty(exports, "DiagConsoleLogger", { enumerable: true, get: function() {
|
|
18598
|
-
return consoleLogger_1.DiagConsoleLogger;
|
|
18599
|
-
} });
|
|
18600
|
-
var types_1 = require_types();
|
|
18601
|
-
Object.defineProperty(exports, "DiagLogLevel", { enumerable: true, get: function() {
|
|
18602
|
-
return types_1.DiagLogLevel;
|
|
18603
|
-
} });
|
|
18604
|
-
var NoopMeter_1 = require_NoopMeter();
|
|
18605
|
-
Object.defineProperty(exports, "createNoopMeter", { enumerable: true, get: function() {
|
|
18606
|
-
return NoopMeter_1.createNoopMeter;
|
|
18607
|
-
} });
|
|
18608
|
-
var Metric_1 = require_Metric();
|
|
18609
|
-
Object.defineProperty(exports, "ValueType", { enumerable: true, get: function() {
|
|
18610
|
-
return Metric_1.ValueType;
|
|
18611
|
-
} });
|
|
18612
|
-
var TextMapPropagator_1 = require_TextMapPropagator();
|
|
18613
|
-
Object.defineProperty(exports, "defaultTextMapGetter", { enumerable: true, get: function() {
|
|
18614
|
-
return TextMapPropagator_1.defaultTextMapGetter;
|
|
18615
|
-
} });
|
|
18616
|
-
Object.defineProperty(exports, "defaultTextMapSetter", { enumerable: true, get: function() {
|
|
18617
|
-
return TextMapPropagator_1.defaultTextMapSetter;
|
|
18618
|
-
} });
|
|
18619
|
-
var ProxyTracer_1 = require_ProxyTracer();
|
|
18620
|
-
Object.defineProperty(exports, "ProxyTracer", { enumerable: true, get: function() {
|
|
18621
|
-
return ProxyTracer_1.ProxyTracer;
|
|
18622
|
-
} });
|
|
18623
|
-
var ProxyTracerProvider_1 = require_ProxyTracerProvider();
|
|
18624
|
-
Object.defineProperty(exports, "ProxyTracerProvider", { enumerable: true, get: function() {
|
|
18625
|
-
return ProxyTracerProvider_1.ProxyTracerProvider;
|
|
18626
|
-
} });
|
|
18627
|
-
var SamplingResult_1 = require_SamplingResult();
|
|
18628
|
-
Object.defineProperty(exports, "SamplingDecision", { enumerable: true, get: function() {
|
|
18629
|
-
return SamplingResult_1.SamplingDecision;
|
|
18630
|
-
} });
|
|
18631
|
-
var span_kind_1 = require_span_kind();
|
|
18632
|
-
Object.defineProperty(exports, "SpanKind", { enumerable: true, get: function() {
|
|
18633
|
-
return span_kind_1.SpanKind;
|
|
18634
|
-
} });
|
|
18635
|
-
var status_1 = require_status();
|
|
18636
|
-
Object.defineProperty(exports, "SpanStatusCode", { enumerable: true, get: function() {
|
|
18637
|
-
return status_1.SpanStatusCode;
|
|
18638
|
-
} });
|
|
18639
|
-
var trace_flags_1 = require_trace_flags();
|
|
18640
|
-
Object.defineProperty(exports, "TraceFlags", { enumerable: true, get: function() {
|
|
18641
|
-
return trace_flags_1.TraceFlags;
|
|
18642
|
-
} });
|
|
18643
|
-
var utils_2 = require_utils2();
|
|
18644
|
-
Object.defineProperty(exports, "createTraceState", { enumerable: true, get: function() {
|
|
18645
|
-
return utils_2.createTraceState;
|
|
18646
|
-
} });
|
|
18647
|
-
var spancontext_utils_1 = require_spancontext_utils();
|
|
18648
|
-
Object.defineProperty(exports, "isSpanContextValid", { enumerable: true, get: function() {
|
|
18649
|
-
return spancontext_utils_1.isSpanContextValid;
|
|
18650
|
-
} });
|
|
18651
|
-
Object.defineProperty(exports, "isValidTraceId", { enumerable: true, get: function() {
|
|
18652
|
-
return spancontext_utils_1.isValidTraceId;
|
|
18653
|
-
} });
|
|
18654
|
-
Object.defineProperty(exports, "isValidSpanId", { enumerable: true, get: function() {
|
|
18655
|
-
return spancontext_utils_1.isValidSpanId;
|
|
18656
|
-
} });
|
|
18657
|
-
var invalid_span_constants_1 = require_invalid_span_constants();
|
|
18658
|
-
Object.defineProperty(exports, "INVALID_SPANID", { enumerable: true, get: function() {
|
|
18659
|
-
return invalid_span_constants_1.INVALID_SPANID;
|
|
18660
|
-
} });
|
|
18661
|
-
Object.defineProperty(exports, "INVALID_TRACEID", { enumerable: true, get: function() {
|
|
18662
|
-
return invalid_span_constants_1.INVALID_TRACEID;
|
|
18663
|
-
} });
|
|
18664
|
-
Object.defineProperty(exports, "INVALID_SPAN_CONTEXT", { enumerable: true, get: function() {
|
|
18665
|
-
return invalid_span_constants_1.INVALID_SPAN_CONTEXT;
|
|
18666
|
-
} });
|
|
18667
|
-
var context_api_1 = require_context_api();
|
|
18668
|
-
Object.defineProperty(exports, "context", { enumerable: true, get: function() {
|
|
18669
|
-
return context_api_1.context;
|
|
18670
|
-
} });
|
|
18671
|
-
var diag_api_1 = require_diag_api();
|
|
18672
|
-
Object.defineProperty(exports, "diag", { enumerable: true, get: function() {
|
|
18673
|
-
return diag_api_1.diag;
|
|
18674
|
-
} });
|
|
18675
|
-
var metrics_api_1 = require_metrics_api();
|
|
18676
|
-
Object.defineProperty(exports, "metrics", { enumerable: true, get: function() {
|
|
18677
|
-
return metrics_api_1.metrics;
|
|
18678
|
-
} });
|
|
18679
|
-
var propagation_api_1 = require_propagation_api();
|
|
18680
|
-
Object.defineProperty(exports, "propagation", { enumerable: true, get: function() {
|
|
18681
|
-
return propagation_api_1.propagation;
|
|
18682
|
-
} });
|
|
18683
|
-
var trace_api_1 = require_trace_api();
|
|
18684
|
-
Object.defineProperty(exports, "trace", { enumerable: true, get: function() {
|
|
18685
|
-
return trace_api_1.trace;
|
|
18686
|
-
} });
|
|
18687
|
-
exports.default = {
|
|
18688
|
-
context: context_api_1.context,
|
|
18689
|
-
diag: diag_api_1.diag,
|
|
18690
|
-
metrics: metrics_api_1.metrics,
|
|
18691
|
-
propagation: propagation_api_1.propagation,
|
|
18692
|
-
trace: trace_api_1.trace
|
|
18693
|
-
};
|
|
18694
|
-
});
|
|
18695
|
-
|
|
18696
|
-
// ../types/src/processor/processor.ts
|
|
18697
|
-
var import_api, noopTracingContext, ProcessorPortSchema, ProcessorDefinitionSchema, ProcessorExecutionContextSchema, TraceStatus;
|
|
18698
|
-
var init_processor = __esm(() => {
|
|
18699
|
-
init_zod();
|
|
18700
|
-
init_common();
|
|
18701
|
-
import_api = __toESM(require_src(), 1);
|
|
18702
|
-
noopTracingContext = {
|
|
18703
|
-
traceId: "",
|
|
18704
|
-
getActiveSpan() {
|
|
18705
|
-
return;
|
|
18706
|
-
},
|
|
18707
|
-
async withSpan(_name, _options, fn) {
|
|
18708
|
-
const noopSpan = {
|
|
18709
|
-
spanContext: () => ({
|
|
18710
|
-
traceId: "",
|
|
18711
|
-
spanId: "",
|
|
18712
|
-
traceFlags: 0
|
|
18713
|
-
}),
|
|
18714
|
-
setAttribute: () => noopSpan,
|
|
18715
|
-
setAttributes: () => noopSpan,
|
|
18716
|
-
addEvent: () => noopSpan,
|
|
18717
|
-
addLink: () => noopSpan,
|
|
18718
|
-
addLinks: () => noopSpan,
|
|
18719
|
-
setStatus: () => noopSpan,
|
|
18720
|
-
updateName: () => noopSpan,
|
|
18721
|
-
end: () => {},
|
|
18722
|
-
isRecording: () => false,
|
|
18723
|
-
recordException: () => {}
|
|
18724
|
-
};
|
|
18725
|
-
return fn(noopSpan);
|
|
18726
|
-
}
|
|
18727
|
-
};
|
|
18728
|
-
ProcessorPortSchema = exports_external.object({
|
|
18729
|
-
name: exports_external.string(),
|
|
18730
|
-
schema: JsonSchemaSchema,
|
|
18731
|
-
required: exports_external.boolean().default(true)
|
|
18732
|
-
});
|
|
18733
|
-
ProcessorDefinitionSchema = exports_external.object({
|
|
18734
|
-
id: exports_external.string(),
|
|
18735
|
-
name: exports_external.string(),
|
|
18736
|
-
description: exports_external.string().optional(),
|
|
18737
|
-
inputSchema: JsonSchemaSchema,
|
|
18738
|
-
outputSchema: JsonSchemaSchema,
|
|
18739
|
-
configSchema: JsonSchemaSchema.optional(),
|
|
18740
|
-
inputPorts: exports_external.array(ProcessorPortSchema).optional(),
|
|
18741
|
-
outputPorts: exports_external.array(ProcessorPortSchema).optional(),
|
|
18742
|
-
isBuiltin: exports_external.boolean().default(true),
|
|
18743
|
-
pluginName: exports_external.string().optional()
|
|
18744
|
-
});
|
|
18745
|
-
ProcessorExecutionContextSchema = exports_external.object({
|
|
18746
|
-
jobId: exports_external.string(),
|
|
18747
|
-
stepId: exports_external.string(),
|
|
18748
|
-
tenantId: exports_external.string(),
|
|
18749
|
-
workflowId: exports_external.string(),
|
|
18750
|
-
workerId: exports_external.string().optional()
|
|
18751
|
-
});
|
|
18752
|
-
((TraceStatus2) => {
|
|
18753
|
-
TraceStatus2["PENDING"] = "pending";
|
|
18754
|
-
TraceStatus2["RUNNING"] = "running";
|
|
18755
|
-
TraceStatus2["COMPLETED"] = "completed";
|
|
18756
|
-
TraceStatus2["FAILED"] = "failed";
|
|
18757
|
-
})(TraceStatus ||= {});
|
|
18758
|
-
});
|
|
18759
|
-
|
|
18760
|
-
// ../types/src/processor/execution.ts
|
|
18761
|
-
function asTuple(values) {
|
|
18762
|
-
return values;
|
|
18763
|
-
}
|
|
18764
|
-
var WorkflowExecutionStatusValue, WorkflowExecutionStatusSchema, StepExecutionStatusValue, StepExecutionStatusSchema, TriggerTypeValue, TriggerTypeSchema, ExecutionTypeValue, ExecutionTypeSchema, WORKFLOW_EXECUTION_STATUSES, STEP_EXECUTION_STATUSES, TRIGGER_TYPES, EXECUTION_TYPES;
|
|
18765
|
-
var init_execution = __esm(() => {
|
|
18766
|
-
init_zod();
|
|
18767
|
-
WorkflowExecutionStatusValue = {
|
|
18768
|
-
CREATED: "created",
|
|
18769
|
-
PENDING: "pending",
|
|
18770
|
-
RUNNING: "running",
|
|
18771
|
-
WAITING: "waiting",
|
|
18772
|
-
COMPLETED: "completed",
|
|
18773
|
-
FAILED: "failed",
|
|
18774
|
-
CANCELLED: "cancelled"
|
|
18775
|
-
};
|
|
18776
|
-
WorkflowExecutionStatusSchema = exports_external.enum([
|
|
18777
|
-
WorkflowExecutionStatusValue.CREATED,
|
|
18778
|
-
WorkflowExecutionStatusValue.PENDING,
|
|
18779
|
-
WorkflowExecutionStatusValue.RUNNING,
|
|
18780
|
-
WorkflowExecutionStatusValue.WAITING,
|
|
18781
|
-
WorkflowExecutionStatusValue.COMPLETED,
|
|
18782
|
-
WorkflowExecutionStatusValue.FAILED,
|
|
18783
|
-
WorkflowExecutionStatusValue.CANCELLED
|
|
18784
|
-
]);
|
|
18785
|
-
StepExecutionStatusValue = {
|
|
18786
|
-
PENDING: "pending",
|
|
18787
|
-
RUNNING: "running",
|
|
18788
|
-
SUCCESS: "success",
|
|
18789
|
-
FAILURE: "failure",
|
|
18790
|
-
WAITING: "waiting",
|
|
18791
|
-
SKIPPED: "skipped"
|
|
18792
|
-
};
|
|
18793
|
-
StepExecutionStatusSchema = exports_external.enum([
|
|
18794
|
-
StepExecutionStatusValue.PENDING,
|
|
18795
|
-
StepExecutionStatusValue.RUNNING,
|
|
18796
|
-
StepExecutionStatusValue.SUCCESS,
|
|
18797
|
-
StepExecutionStatusValue.FAILURE,
|
|
18798
|
-
StepExecutionStatusValue.WAITING,
|
|
18799
|
-
StepExecutionStatusValue.SKIPPED
|
|
18800
|
-
]);
|
|
18801
|
-
TriggerTypeValue = {
|
|
18802
|
-
MANUAL: "manual",
|
|
18803
|
-
API: "api",
|
|
18804
|
-
WEBHOOK: "webhook",
|
|
18805
|
-
SCHEDULE: "schedule",
|
|
18806
|
-
EMAIL: "email",
|
|
18807
|
-
EVAL: "eval",
|
|
18808
|
-
CLI: "cli"
|
|
18809
|
-
};
|
|
18810
|
-
TriggerTypeSchema = exports_external.enum([
|
|
18811
|
-
TriggerTypeValue.MANUAL,
|
|
18812
|
-
TriggerTypeValue.API,
|
|
18813
|
-
TriggerTypeValue.WEBHOOK,
|
|
18814
|
-
TriggerTypeValue.SCHEDULE,
|
|
18815
|
-
TriggerTypeValue.EMAIL,
|
|
18816
|
-
TriggerTypeValue.EVAL,
|
|
18817
|
-
TriggerTypeValue.CLI
|
|
18818
|
-
]);
|
|
18819
|
-
ExecutionTypeValue = {
|
|
18820
|
-
PROD: "prod",
|
|
18821
|
-
EVAL: "eval",
|
|
18822
|
-
PLAYGROUND: "playground"
|
|
18823
|
-
};
|
|
18824
|
-
ExecutionTypeSchema = exports_external.enum([
|
|
18825
|
-
ExecutionTypeValue.PROD,
|
|
18826
|
-
ExecutionTypeValue.EVAL,
|
|
18827
|
-
ExecutionTypeValue.PLAYGROUND
|
|
18828
|
-
]);
|
|
18829
|
-
WORKFLOW_EXECUTION_STATUSES = asTuple(WorkflowExecutionStatusSchema.options);
|
|
18830
|
-
STEP_EXECUTION_STATUSES = asTuple(StepExecutionStatusSchema.options);
|
|
18831
|
-
TRIGGER_TYPES = TriggerTypeSchema.options;
|
|
18832
|
-
EXECUTION_TYPES = ExecutionTypeSchema.options;
|
|
18833
|
-
});
|
|
18834
|
-
|
|
18835
|
-
// ../types/src/processor/configs/classify.ts
|
|
18836
|
-
var ClassifyInputSchema, ClassifyLabelSchema, ClassifyConfigSchema, ClassifyOutputSchema;
|
|
18837
|
-
var init_classify = __esm(() => {
|
|
18838
|
-
init_zod();
|
|
18839
|
-
ClassifyInputSchema = exports_external.object({
|
|
18840
|
-
content: exports_external.string().optional().describe("Text content to classify"),
|
|
18841
|
-
text: exports_external.string().optional().describe("Text content (alternative to content)")
|
|
18842
|
-
}).refine((data) => !!(data.content || data.text), {
|
|
18843
|
-
message: "Either content or text must be provided"
|
|
18844
|
-
});
|
|
18845
|
-
ClassifyLabelSchema = exports_external.object({
|
|
18846
|
-
name: exports_external.string().min(1).describe("Label value returned in output.label"),
|
|
18847
|
-
description: exports_external.string().optional().describe("What documents fall into this label. Fed to the LLM as guidance.")
|
|
18848
|
-
});
|
|
18849
|
-
ClassifyConfigSchema = exports_external.object({
|
|
18850
|
-
labels: exports_external.array(ClassifyLabelSchema).min(2).describe("Allowed labels. The LLM is constrained to pick exactly one of these names."),
|
|
18851
|
-
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."),
|
|
18852
|
-
provider: exports_external.string().optional().describe('Provider ID (e.g., "openai-gpt4o-mini")'),
|
|
18853
|
-
model: exports_external.string().optional().describe("Model override"),
|
|
18854
|
-
maxInputTokens: exports_external.number().int().optional().describe("Max input tokens. Truncates input text when exceeded. Omit for no limit.")
|
|
18855
|
-
});
|
|
18856
|
-
ClassifyOutputSchema = exports_external.object({
|
|
18857
|
-
label: exports_external.string().describe("The selected label name"),
|
|
18858
|
-
confidence: exports_external.enum(["low", "medium", "high"]).describe("Coarse confidence in the classification"),
|
|
18859
|
-
reason: exports_external.string().describe("Short justification for the chosen label")
|
|
18860
|
-
});
|
|
18861
|
-
});
|
|
18862
|
-
|
|
18863
|
-
// ../types/src/parser/parser.ts
|
|
18864
|
-
function resolveEffectiveMimeType(filename, declaredMimeType) {
|
|
18865
|
-
const ext = filename.split(".").pop()?.toLowerCase();
|
|
18866
|
-
if (!ext)
|
|
18867
|
-
return declaredMimeType;
|
|
18868
|
-
const extensionMime = EXTENSION_TO_MIME[ext];
|
|
18869
|
-
return extensionMime ?? declaredMimeType;
|
|
18870
|
-
}
|
|
18871
|
-
function mimeTypeForExtension(extension) {
|
|
18872
|
-
return EXTENSION_TO_MIME[extension.replace(/^\./, "").toLowerCase()];
|
|
18873
|
-
}
|
|
18874
|
-
function extensionForMimeType(mimeType) {
|
|
18875
|
-
const base = mimeType.split(";")[0]?.trim().toLowerCase();
|
|
18876
|
-
return base ? MIME_TO_EXTENSION[base] : undefined;
|
|
18877
|
-
}
|
|
18878
|
-
function getParserCategory(mimeType) {
|
|
18879
|
-
const normalized = mimeType.toLowerCase().trim();
|
|
18880
|
-
if (ParserCategory.PLAINTEXT.includes(normalized)) {
|
|
18881
|
-
return "plaintext";
|
|
18882
|
-
}
|
|
18883
|
-
if (ParserCategory.OFFICE.includes(normalized)) {
|
|
18884
|
-
return "office";
|
|
18885
|
-
}
|
|
18886
|
-
if (ParserCategory.DOCUMENT.includes(normalized)) {
|
|
18887
|
-
return "document";
|
|
18888
|
-
}
|
|
18889
|
-
return null;
|
|
18890
|
-
}
|
|
18891
|
-
function requiresSpecializedParser(mimeType) {
|
|
18892
|
-
return getParserCategory(mimeType) === "document";
|
|
18893
|
-
}
|
|
18894
|
-
function getAllSupportedMimeTypes() {
|
|
18895
|
-
return [...ParserCategory.PLAINTEXT, ...ParserCategory.OFFICE, ...ParserCategory.DOCUMENT];
|
|
18896
|
-
}
|
|
18897
|
-
function getSupportedFormatsLabel() {
|
|
18898
|
-
const allMimes = getAllSupportedMimeTypes();
|
|
18899
|
-
const labels = [...new Set(allMimes.map((m) => MIME_TO_LABEL[m] ?? m))];
|
|
18900
|
-
return labels.join(", ");
|
|
18901
|
-
}
|
|
18902
|
-
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;
|
|
18903
|
-
var init_parser = __esm(() => {
|
|
18904
|
-
init_zod();
|
|
18905
|
-
OFFICE_MIME_TYPES = [
|
|
18906
|
-
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
18907
|
-
"application/msword",
|
|
18908
|
-
"application/vnd.oasis.opendocument.text",
|
|
18909
|
-
"application/rtf",
|
|
18910
|
-
"text/rtf",
|
|
18911
|
-
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
18912
|
-
"application/vnd.ms-excel",
|
|
18913
|
-
"application/vnd.ms-excel.sheet.macroenabled.12",
|
|
18914
|
-
"application/vnd.ms-excel.sheet.binary.macroenabled.12",
|
|
18915
|
-
"application/vnd.oasis.opendocument.spreadsheet",
|
|
18916
|
-
"application/vnd.openxmlformats-officedocument.presentationml.presentation",
|
|
18917
|
-
"application/vnd.openxmlformats-officedocument.presentationml.slideshow",
|
|
18918
|
-
"application/vnd.ms-powerpoint.presentation.macroenabled.12",
|
|
18919
|
-
"application/vnd.ms-powerpoint",
|
|
18920
|
-
"application/vnd.oasis.opendocument.presentation",
|
|
18921
|
-
"message/rfc822",
|
|
18922
|
-
"application/vnd.ms-outlook",
|
|
18923
|
-
"application/epub+zip"
|
|
18924
|
-
];
|
|
18925
|
-
ParserCategory = {
|
|
18926
|
-
PLAINTEXT: [
|
|
18927
|
-
"text/plain",
|
|
18928
|
-
"text/markdown",
|
|
18929
|
-
"text/csv",
|
|
18930
|
-
"text/tab-separated-values",
|
|
18931
|
-
"text/html",
|
|
18932
|
-
"text/xml",
|
|
18933
|
-
"application/json",
|
|
18934
|
-
"application/x-yaml",
|
|
18935
|
-
"application/toml",
|
|
18936
|
-
"image/svg+xml",
|
|
18937
|
-
"text/x-rst",
|
|
18938
|
-
"text/x-org",
|
|
18939
|
-
"application/x-latex",
|
|
18940
|
-
"application/x-ipynb+json",
|
|
18941
|
-
"application/x-bibtex",
|
|
18942
|
-
"application/docbook+xml",
|
|
18943
|
-
"application/x-fictionbook+xml"
|
|
18944
|
-
],
|
|
18945
|
-
OFFICE: [...OFFICE_MIME_TYPES],
|
|
18946
|
-
DOCUMENT: [
|
|
18947
|
-
"application/pdf",
|
|
18948
|
-
"image/png",
|
|
18949
|
-
"image/jpeg",
|
|
18950
|
-
"image/webp",
|
|
18951
|
-
"image/tiff",
|
|
18952
|
-
"image/gif",
|
|
18953
|
-
"image/bmp"
|
|
18954
|
-
]
|
|
18955
|
-
};
|
|
18956
|
-
ParserTypeSchema = exports_external.enum([
|
|
18957
|
-
"plaintext",
|
|
18958
|
-
"office",
|
|
18959
|
-
"llm-vision",
|
|
18960
|
-
"ocr"
|
|
18961
|
-
]);
|
|
18962
|
-
DocumentMetadataSchema = exports_external.object({
|
|
18963
|
-
filename: exports_external.string(),
|
|
18964
|
-
mimeType: exports_external.string(),
|
|
18965
|
-
size: exports_external.number().describe("File size in bytes"),
|
|
18966
|
-
storageRef: exports_external.string().optional().describe("Storage reference for the original file")
|
|
18967
|
-
});
|
|
18968
|
-
ParseUsageSchema = exports_external.object({
|
|
18969
|
-
pageCount: exports_external.number(),
|
|
18970
|
-
processingTimeMs: exports_external.number().optional()
|
|
18971
|
-
});
|
|
18972
|
-
CoordinateUnitSchema = exports_external.enum(["pixel", "inch", "point", "normalized"]);
|
|
18973
|
-
PointSchema = exports_external.object({
|
|
18974
|
-
x: exports_external.number(),
|
|
18975
|
-
y: exports_external.number()
|
|
18976
|
-
});
|
|
18977
|
-
BoundingRegionSchema = exports_external.object({
|
|
18978
|
-
polygon: exports_external.array(PointSchema).min(3),
|
|
18979
|
-
unit: CoordinateUnitSchema,
|
|
18980
|
-
pageIndex: exports_external.number()
|
|
18981
|
-
});
|
|
18982
|
-
PositionedTextSchema = exports_external.object({
|
|
18983
|
-
text: exports_external.string(),
|
|
18984
|
-
confidence: exports_external.number().min(0).max(1).optional(),
|
|
18985
|
-
boundingRegion: BoundingRegionSchema.optional()
|
|
18986
|
-
});
|
|
18987
|
-
TableCellSchema = exports_external.object({
|
|
18988
|
-
content: exports_external.string(),
|
|
18989
|
-
rowIndex: exports_external.number(),
|
|
18990
|
-
columnIndex: exports_external.number(),
|
|
18991
|
-
rowSpan: exports_external.number().default(1),
|
|
18992
|
-
columnSpan: exports_external.number().default(1),
|
|
18993
|
-
boundingRegion: BoundingRegionSchema.optional()
|
|
18994
|
-
});
|
|
18995
|
-
ExtractedTableSchema = exports_external.object({
|
|
18996
|
-
cells: exports_external.array(TableCellSchema),
|
|
18997
|
-
rowCount: exports_external.number(),
|
|
18998
|
-
columnCount: exports_external.number(),
|
|
18999
|
-
boundingRegion: BoundingRegionSchema.optional()
|
|
19000
|
-
});
|
|
19001
|
-
LayoutElementTypeSchema = exports_external.enum([
|
|
19002
|
-
"paragraph",
|
|
19003
|
-
"title",
|
|
19004
|
-
"sectionHeading",
|
|
19005
|
-
"pageHeader",
|
|
19006
|
-
"pageFooter",
|
|
19007
|
-
"pageNumber",
|
|
19008
|
-
"footnote",
|
|
19009
|
-
"table",
|
|
19010
|
-
"figure",
|
|
19011
|
-
"formulaBlock"
|
|
19012
|
-
]);
|
|
19013
|
-
LayoutElementSchema = exports_external.object({
|
|
19014
|
-
type: LayoutElementTypeSchema,
|
|
19015
|
-
content: exports_external.string(),
|
|
19016
|
-
table: ExtractedTableSchema.optional(),
|
|
19017
|
-
caption: exports_external.string().optional(),
|
|
19018
|
-
figureId: exports_external.string().optional(),
|
|
19019
|
-
boundingRegion: BoundingRegionSchema.optional()
|
|
19020
|
-
});
|
|
19021
|
-
PageResultSchema = exports_external.object({
|
|
19022
|
-
pageIndex: exports_external.number().describe("0-based page index"),
|
|
19023
|
-
text: exports_external.string().describe("Extracted text content (markdown/HTML)"),
|
|
19024
|
-
pageName: exports_external.string().optional().describe("Page/sheet name (e.g., Excel sheet name)"),
|
|
19025
|
-
layoutElements: exports_external.array(LayoutElementSchema).optional().describe("Semantic layout elements in reading order"),
|
|
19026
|
-
words: exports_external.array(PositionedTextSchema).optional().describe("Word-level positions"),
|
|
19027
|
-
lines: exports_external.array(PositionedTextSchema).optional().describe("Line-level positions"),
|
|
19028
|
-
tables: exports_external.array(ExtractedTableSchema).optional().describe("Extracted tables"),
|
|
19029
|
-
width: exports_external.number().optional().describe("Page width"),
|
|
19030
|
-
height: exports_external.number().optional().describe("Page height"),
|
|
19031
|
-
unit: CoordinateUnitSchema.optional().describe("Unit for width/height and bounding regions"),
|
|
19032
|
-
confidence: exports_external.number().min(0).max(1).optional().describe("Overall page confidence")
|
|
19033
|
-
});
|
|
19034
|
-
ParseResultSchema = exports_external.object({
|
|
19035
|
-
document: DocumentMetadataSchema,
|
|
19036
|
-
usage: ParseUsageSchema,
|
|
19037
|
-
pages: exports_external.array(PageResultSchema),
|
|
19038
|
-
text: exports_external.string().describe("Combined text from all pages"),
|
|
19039
|
-
parserType: ParserTypeSchema,
|
|
19040
|
-
parserVersion: exports_external.string().optional(),
|
|
19041
|
-
model: exports_external.string().optional().describe("Model used (for LLM/OCR parsers)"),
|
|
19042
|
-
rawResponse: exports_external.unknown().optional()
|
|
19043
|
-
});
|
|
19044
|
-
ParseOptionsSchema = exports_external.object({
|
|
19045
|
-
outputFormat: exports_external.enum(["plain", "markdown", "djot", "html"]).default("markdown"),
|
|
19046
|
-
ocrProvider: exports_external.string().optional().describe("OCR provider ID to use"),
|
|
19047
|
-
includeWordPositions: exports_external.boolean().default(false),
|
|
19048
|
-
includeLinePositions: exports_external.boolean().default(false),
|
|
19049
|
-
extractTables: exports_external.boolean().default(true),
|
|
19050
|
-
provider: exports_external.string().optional().describe("LLM provider ID to use"),
|
|
19051
|
-
model: exports_external.string().optional(),
|
|
19052
|
-
maxConcurrency: exports_external.number().min(1).max(30).default(3),
|
|
19053
|
-
pagesPerBatch: exports_external.number().min(1).max(20).default(5),
|
|
19054
|
-
prompt: exports_external.string().optional().describe("Custom prompt for LLM-based parsing"),
|
|
19055
|
-
languages: exports_external.array(exports_external.string()).optional().describe("OCR language hints"),
|
|
19056
|
-
tenantId: exports_external.string().optional()
|
|
19057
|
-
});
|
|
19058
|
-
ParserInputSchema = exports_external.object({
|
|
19059
|
-
data: exports_external.instanceof(Buffer).or(exports_external.instanceof(Uint8Array)),
|
|
19060
|
-
filename: exports_external.string(),
|
|
19061
|
-
mimeType: exports_external.string(),
|
|
19062
|
-
options: ParseOptionsSchema.optional()
|
|
19063
|
-
});
|
|
19064
|
-
EXTENSION_TO_MIME = {
|
|
19065
|
-
docx: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
19066
|
-
doc: "application/msword",
|
|
19067
|
-
odt: "application/vnd.oasis.opendocument.text",
|
|
19068
|
-
rtf: "application/rtf",
|
|
19069
|
-
xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
19070
|
-
xls: "application/vnd.ms-excel",
|
|
19071
|
-
xlsm: "application/vnd.ms-excel.sheet.macroenabled.12",
|
|
19072
|
-
xlsb: "application/vnd.ms-excel.sheet.binary.macroenabled.12",
|
|
19073
|
-
ods: "application/vnd.oasis.opendocument.spreadsheet",
|
|
19074
|
-
pptx: "application/vnd.openxmlformats-officedocument.presentationml.presentation",
|
|
19075
|
-
ppsx: "application/vnd.openxmlformats-officedocument.presentationml.slideshow",
|
|
19076
|
-
pptm: "application/vnd.ms-powerpoint.presentation.macroenabled.12",
|
|
19077
|
-
ppt: "application/vnd.ms-powerpoint",
|
|
19078
|
-
odp: "application/vnd.oasis.opendocument.presentation",
|
|
19079
|
-
eml: "message/rfc822",
|
|
19080
|
-
msg: "application/vnd.ms-outlook",
|
|
19081
|
-
epub: "application/epub+zip",
|
|
19082
|
-
pdf: "application/pdf",
|
|
19083
|
-
png: "image/png",
|
|
19084
|
-
jpg: "image/jpeg",
|
|
19085
|
-
jpeg: "image/jpeg",
|
|
19086
|
-
webp: "image/webp",
|
|
19087
|
-
tiff: "image/tiff",
|
|
19088
|
-
tif: "image/tiff",
|
|
19089
|
-
gif: "image/gif",
|
|
19090
|
-
bmp: "image/bmp",
|
|
19091
|
-
svg: "image/svg+xml",
|
|
19092
|
-
txt: "text/plain",
|
|
19093
|
-
md: "text/markdown",
|
|
19094
|
-
markdown: "text/markdown",
|
|
19095
|
-
csv: "text/csv",
|
|
19096
|
-
tsv: "text/tab-separated-values",
|
|
19097
|
-
html: "text/html",
|
|
19098
|
-
htm: "text/html",
|
|
19099
|
-
xml: "text/xml",
|
|
19100
|
-
json: "application/json",
|
|
19101
|
-
yaml: "application/x-yaml",
|
|
19102
|
-
yml: "application/x-yaml",
|
|
19103
|
-
toml: "application/toml",
|
|
19104
|
-
rst: "text/x-rst",
|
|
19105
|
-
org: "text/x-org",
|
|
19106
|
-
tex: "application/x-latex",
|
|
19107
|
-
latex: "application/x-latex",
|
|
19108
|
-
ipynb: "application/x-ipynb+json",
|
|
19109
|
-
bib: "application/x-bibtex",
|
|
19110
|
-
dbk: "application/docbook+xml",
|
|
19111
|
-
docbook: "application/docbook+xml",
|
|
19112
|
-
fb2: "application/x-fictionbook+xml"
|
|
19113
|
-
};
|
|
19114
|
-
MIME_TO_EXTENSION = Object.entries(EXTENSION_TO_MIME).reduce((acc, [ext, mime]) => {
|
|
19115
|
-
if (!(mime in acc))
|
|
19116
|
-
acc[mime] = ext;
|
|
19117
|
-
return acc;
|
|
19118
|
-
}, {});
|
|
19119
|
-
MIME_TO_LABEL = {
|
|
19120
|
-
"application/vnd.openxmlformats-officedocument.wordprocessingml.document": "DOCX",
|
|
19121
|
-
"application/msword": "DOC",
|
|
19122
|
-
"application/vnd.oasis.opendocument.text": "ODT",
|
|
19123
|
-
"application/rtf": "RTF",
|
|
19124
|
-
"text/rtf": "RTF",
|
|
19125
|
-
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": "XLSX",
|
|
19126
|
-
"application/vnd.ms-excel": "XLS",
|
|
19127
|
-
"application/vnd.ms-excel.sheet.macroenabled.12": "XLSM",
|
|
19128
|
-
"application/vnd.ms-excel.sheet.binary.macroenabled.12": "XLSB",
|
|
19129
|
-
"application/vnd.oasis.opendocument.spreadsheet": "ODS",
|
|
19130
|
-
"application/vnd.openxmlformats-officedocument.presentationml.presentation": "PPTX",
|
|
19131
|
-
"application/vnd.openxmlformats-officedocument.presentationml.slideshow": "PPSX",
|
|
19132
|
-
"application/vnd.ms-powerpoint.presentation.macroenabled.12": "PPTM",
|
|
19133
|
-
"application/vnd.ms-powerpoint": "PPT",
|
|
19134
|
-
"application/vnd.oasis.opendocument.presentation": "ODP",
|
|
19135
|
-
"message/rfc822": "EML",
|
|
19136
|
-
"application/vnd.ms-outlook": "MSG",
|
|
19137
|
-
"application/epub+zip": "EPUB",
|
|
19138
|
-
"application/pdf": "PDF",
|
|
19139
|
-
"image/png": "PNG",
|
|
19140
|
-
"image/jpeg": "JPEG",
|
|
19141
|
-
"image/webp": "WebP",
|
|
19142
|
-
"image/tiff": "TIFF",
|
|
19143
|
-
"image/gif": "GIF",
|
|
19144
|
-
"image/bmp": "BMP",
|
|
19145
|
-
"image/svg+xml": "SVG",
|
|
19146
|
-
"text/plain": "TXT",
|
|
19147
|
-
"text/markdown": "Markdown",
|
|
19148
|
-
"text/csv": "CSV",
|
|
19149
|
-
"text/tab-separated-values": "TSV",
|
|
19150
|
-
"text/html": "HTML",
|
|
19151
|
-
"text/xml": "XML",
|
|
19152
|
-
"application/json": "JSON",
|
|
19153
|
-
"application/x-yaml": "YAML",
|
|
19154
|
-
"application/toml": "TOML",
|
|
19155
|
-
"text/x-rst": "RST",
|
|
19156
|
-
"text/x-org": "Org",
|
|
19157
|
-
"application/x-latex": "LaTeX",
|
|
19158
|
-
"application/x-ipynb+json": "Jupyter",
|
|
19159
|
-
"application/x-bibtex": "BibTeX",
|
|
19160
|
-
"application/docbook+xml": "DocBook",
|
|
19161
|
-
"application/x-fictionbook+xml": "FB2"
|
|
19162
|
-
};
|
|
19163
|
-
});
|
|
19164
|
-
|
|
19165
|
-
// ../types/src/processor/configs/document-parser.ts
|
|
19166
|
-
function isFilePathDescriptor(input) {
|
|
19167
|
-
return FilePathDescriptorSchema.safeParse(input).success;
|
|
19168
|
-
}
|
|
19169
|
-
var FileIdInputSchema, LocalFileRefSchema, S3FileRefSchema, InlineFileRefSchema, FilePathDescriptorSchema, DocumentParserInputSchema, DocumentParserOutputSchema, DocumentParserConfigSchema;
|
|
19170
|
-
var init_document_parser = __esm(() => {
|
|
19171
|
-
init_zod();
|
|
19172
|
-
init_parser();
|
|
19173
|
-
FileIdInputSchema = exports_external.object({
|
|
19174
|
-
fileId: exports_external.string().describe("File ID from files table"),
|
|
19175
|
-
filename: exports_external.string().optional().describe("Original filename (for inline files)"),
|
|
19176
|
-
mimeType: exports_external.string().optional().describe("MIME type (for inline files)")
|
|
19177
|
-
});
|
|
19178
|
-
LocalFileRefSchema = exports_external.object({
|
|
19179
|
-
kind: exports_external.literal("local"),
|
|
19180
|
-
path: exports_external.string().describe("Absolute path to a file on disk"),
|
|
19181
|
-
filename: exports_external.string().describe("Original filename"),
|
|
19182
|
-
mimeType: exports_external.string().describe("MIME type of the file")
|
|
19183
|
-
});
|
|
19184
|
-
S3FileRefSchema = exports_external.object({
|
|
19185
|
-
kind: exports_external.literal("s3"),
|
|
19186
|
-
ref: exports_external.string().describe("Storage key (suffix-only, prefix added by adapter)"),
|
|
19187
|
-
filename: exports_external.string().describe("Original filename"),
|
|
19188
|
-
mimeType: exports_external.string().describe("MIME type of the file")
|
|
19189
|
-
});
|
|
19190
|
-
InlineFileRefSchema = exports_external.object({
|
|
19191
|
-
kind: exports_external.literal("inline"),
|
|
19192
|
-
base64: exports_external.string().describe("Base64-encoded file bytes"),
|
|
19193
|
-
filename: exports_external.string().describe("Original filename"),
|
|
19194
|
-
mimeType: exports_external.string().describe("MIME type of the file")
|
|
19195
|
-
});
|
|
19196
|
-
FilePathDescriptorSchema = exports_external.discriminatedUnion("kind", [
|
|
19197
|
-
LocalFileRefSchema,
|
|
19198
|
-
S3FileRefSchema,
|
|
19199
|
-
InlineFileRefSchema
|
|
19200
|
-
]);
|
|
19201
|
-
DocumentParserInputSchema = exports_external.union([FileIdInputSchema, FilePathDescriptorSchema]);
|
|
19202
|
-
DocumentParserOutputSchema = ParseResultSchema;
|
|
19203
|
-
DocumentParserConfigSchema = exports_external.object({
|
|
19204
|
-
ocrModel: exports_external.string().optional().describe("OCR provider ID for PDF/image parsing"),
|
|
19205
|
-
llmModel: exports_external.string().optional().describe("LLM provider ID for vision-based parsing"),
|
|
19206
|
-
maxConcurrency: exports_external.number().min(1).max(10).default(3).describe("Max concurrent VLM batch requests"),
|
|
19207
|
-
pagesPerBatch: exports_external.number().min(1).max(20).default(5).describe("Number of page images per VLM request"),
|
|
19208
|
-
prompt: exports_external.string().optional().describe("Custom extraction prompt"),
|
|
19209
|
-
nativeText: exports_external.boolean().default(false).optional().describe("Use native text extraction for PDFs with embedded text (no OCR/VLM)"),
|
|
19210
|
-
languages: exports_external.array(exports_external.string()).optional().describe('OCR language hints (e.g., ["en", "de"])'),
|
|
19211
|
-
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.")
|
|
19212
|
-
}).prefault({});
|
|
19213
|
-
});
|
|
19214
|
-
|
|
19215
|
-
// ../types/src/processor/configs/extract.ts
|
|
19216
|
-
var ExtractInputSchema, ExtractOutputSchema, ExtractConfigSchema;
|
|
19217
|
-
var init_extract = __esm(() => {
|
|
19218
|
-
init_zod();
|
|
19219
|
-
ExtractInputSchema = exports_external.object({
|
|
19220
|
-
content: exports_external.string().optional().describe("Text content to extract from"),
|
|
19221
|
-
text: exports_external.string().optional().describe("Text content (alternative to content, e.g., from document parser)"),
|
|
19222
|
-
contentType: exports_external.enum(["text", "image"]).default("text"),
|
|
19223
|
-
imageData: exports_external.string().optional(),
|
|
19224
|
-
imageMimeType: exports_external.string().optional()
|
|
19225
|
-
}).refine((data) => data.content || data.text, {
|
|
19226
|
-
message: "Either content or text must be provided"
|
|
19227
|
-
});
|
|
19228
|
-
ExtractOutputSchema = exports_external.record(exports_external.string(), exports_external.unknown()).describe("Extracted structured data matching the provided schema");
|
|
19229
|
-
ExtractConfigSchema = exports_external.object({
|
|
19230
|
-
schema: exports_external.record(exports_external.string(), exports_external.unknown()).describe("JSON Schema defining the structure to extract"),
|
|
19231
|
-
prompt: exports_external.string().optional().describe("Custom prompt template for extraction"),
|
|
19232
|
-
provider: exports_external.string().optional().describe('Provider ID to use (e.g., "openai-gpt4o", "anthropic-claude")'),
|
|
19233
|
-
model: exports_external.string().optional().describe("Model to use (overrides provider default)"),
|
|
19234
|
-
maxInputTokens: exports_external.number().int().optional().describe("Max input tokens. Truncates input text and logs a warning when exceeded. Omit for no limit.")
|
|
19235
|
-
});
|
|
19236
|
-
});
|
|
19237
|
-
|
|
19238
|
-
// ../types/src/processor/configs/merge.ts
|
|
19239
|
-
var MergeConfigSchema, MergeInputSchema, MergeOutputSchema;
|
|
19240
|
-
var init_merge = __esm(() => {
|
|
19241
|
-
init_zod();
|
|
19242
|
-
MergeConfigSchema = exports_external.object({
|
|
19243
|
-
preservePortNames: exports_external.boolean().default(true),
|
|
19244
|
-
outputKey: exports_external.string().optional()
|
|
19245
|
-
});
|
|
19246
|
-
MergeInputSchema = exports_external.record(exports_external.string(), exports_external.unknown());
|
|
19247
|
-
MergeOutputSchema = exports_external.object({
|
|
19248
|
-
items: exports_external.array(exports_external.unknown()),
|
|
19249
|
-
count: exports_external.number(),
|
|
19250
|
-
merged: exports_external.record(exports_external.string(), exports_external.unknown()).optional()
|
|
19251
|
-
});
|
|
19252
|
-
});
|
|
19253
|
-
|
|
19254
|
-
// ../types/src/processor/configs/pdf-embedder.ts
|
|
19255
|
-
var PdfEmbedderInputSchema, PdfEmbedderOutputSchema, PdfEmbedderConfigSchema;
|
|
19256
|
-
var init_pdf_embedder = __esm(() => {
|
|
19257
|
-
init_zod();
|
|
19258
|
-
init_parser();
|
|
19259
|
-
PdfEmbedderInputSchema = exports_external.object({
|
|
19260
|
-
fileId: exports_external.string().describe("File ID from files table"),
|
|
19261
|
-
parseResult: exports_external.object({
|
|
19262
|
-
pages: exports_external.array(PageResultSchema),
|
|
19263
|
-
text: exports_external.string().optional()
|
|
19264
|
-
}).describe("Parse result from ai.parse step (must include word positions)")
|
|
19265
|
-
});
|
|
19266
|
-
PdfEmbedderOutputSchema = exports_external.object({
|
|
19267
|
-
fileId: exports_external.string().describe("File ID from files table"),
|
|
19268
|
-
pageCount: exports_external.number().describe("Number of pages in the output PDF"),
|
|
19269
|
-
wordCount: exports_external.number().describe("Number of words embedded"),
|
|
19270
|
-
text: exports_external.string().describe("Extracted text (from parse step)")
|
|
19271
|
-
});
|
|
19272
|
-
PdfEmbedderConfigSchema = exports_external.object({
|
|
19273
|
-
outputFilename: exports_external.string().optional().describe('Output filename - supports LiquidJS syntax e.g. "{{filename}}-searchable.pdf"'),
|
|
19274
|
-
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")
|
|
19275
|
-
}).prefault({});
|
|
19276
|
-
});
|
|
19277
|
-
|
|
19278
|
-
// ../types/src/processor/configs/split.ts
|
|
19279
|
-
var SplitInputSchema, SplitConfigSchema, ConfidenceLevelSchema, SplitOutputSchema;
|
|
19280
|
-
var init_split = __esm(() => {
|
|
19281
|
-
init_zod();
|
|
19282
|
-
SplitInputSchema = exports_external.object({
|
|
19283
|
-
pages: exports_external.array(exports_external.object({
|
|
19284
|
-
pageIndex: exports_external.number().describe("0-based page index"),
|
|
19285
|
-
text: exports_external.string().describe("Extracted text for this page"),
|
|
19286
|
-
pageName: exports_external.string().optional()
|
|
19287
|
-
})).min(1).describe("Per-page parsed content from a document parser")
|
|
19288
|
-
}).passthrough().describe("Document-parser-shaped input. Pass {{ steps.parse.output }} directly — extra fields like text/metadata are ignored.");
|
|
19289
|
-
SplitConfigSchema = exports_external.object({
|
|
19290
|
-
sections: exports_external.array(exports_external.object({
|
|
19291
|
-
name: exports_external.string().min(1).describe("Stable id for the section"),
|
|
19292
|
-
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."),
|
|
19293
|
-
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").'),
|
|
19294
|
-
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.')
|
|
19295
|
-
})).min(1),
|
|
19296
|
-
rules: exports_external.string().optional().describe("Optional natural-language rules appended to the system prompt"),
|
|
19297
|
-
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.'),
|
|
19298
|
-
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.")
|
|
19299
|
-
});
|
|
19300
|
-
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.");
|
|
19301
|
-
SplitOutputSchema = exports_external.object({
|
|
19302
|
-
splits: exports_external.array(exports_external.object({
|
|
19303
|
-
name: exports_external.string(),
|
|
19304
|
-
page_range: exports_external.tuple([exports_external.number().int(), exports_external.number().int()]),
|
|
19305
|
-
confidence: ConfidenceLevelSchema.describe("LLM confidence at the start anchor: low | medium | high."),
|
|
19306
|
-
notes: exports_external.string(),
|
|
19307
|
-
evidence: exports_external.object({
|
|
19308
|
-
start_heading_text: exports_external.string().nullable().optional().describe("Verbatim heading text the LLM cited as the section start"),
|
|
19309
|
-
start_page: exports_external.number().int().nullable().optional().describe("Page where start_heading_text appears")
|
|
19310
|
-
}).optional().describe("Structured start-anchor evidence the LLM cited — for downstream parsing without regex over `notes`."),
|
|
19311
|
-
end_evidence: exports_external.object({
|
|
19312
|
-
end_page: exports_external.number().int().describe("LAST page of the section (inclusive)"),
|
|
19313
|
-
confidence: ConfidenceLevelSchema,
|
|
19314
|
-
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.")
|
|
19315
|
-
}).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)."),
|
|
19316
|
-
text: exports_external.string().describe("Joined per-page text for this section, ready for ai.extract"),
|
|
19317
|
-
pages: exports_external.array(exports_external.object({
|
|
19318
|
-
pageIndex: exports_external.number().int(),
|
|
19319
|
-
text: exports_external.string(),
|
|
19320
|
-
pageName: exports_external.string().optional(),
|
|
19321
|
-
source: exports_external.enum(["anchored", "inferred"]).describe("Whether this page was the LLM anchor (direct evidence) or filled in by continuity")
|
|
19322
|
-
})).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."),
|
|
19323
|
-
pages_anchored: exports_external.array(exports_external.number().int()),
|
|
19324
|
-
pages_inferred: exports_external.array(exports_external.number().int())
|
|
19325
|
-
}))
|
|
19326
|
-
});
|
|
19327
|
-
});
|
|
19328
|
-
|
|
19329
|
-
// ../types/src/processor/configs/template.ts
|
|
19330
|
-
var TemplateInputSchema, TemplateOutputSchema, TemplateConfigSchema;
|
|
19331
|
-
var init_template = __esm(() => {
|
|
19332
|
-
init_zod();
|
|
19333
|
-
TemplateInputSchema = exports_external.object({
|
|
19334
|
-
data: exports_external.record(exports_external.string(), exports_external.unknown()).describe("Data to merge into the template")
|
|
19335
|
-
});
|
|
19336
|
-
TemplateOutputSchema = exports_external.object({
|
|
19337
|
-
fileId: exports_external.string().describe("File ID from files table")
|
|
19338
|
-
});
|
|
19339
|
-
TemplateConfigSchema = exports_external.object({
|
|
19340
|
-
templateId: exports_external.string().describe("ID of the template from templates table"),
|
|
19341
|
-
outputFilename: exports_external.string().optional().describe('Output filename - supports LiquidJS syntax e.g. "{{invoice_id}}-report.docx"'),
|
|
19342
|
-
highlightNotFound: exports_external.boolean().default(true).optional().describe("Highlight missing variables with red-colored text in the output document"),
|
|
19343
|
-
notFoundText: exports_external.string().default("NOT FOUND").optional().describe("Text to display for missing variables when highlightNotFound is enabled")
|
|
19344
|
-
});
|
|
19345
|
-
});
|
|
19346
|
-
|
|
19347
|
-
// ../types/src/processor/configs/xlsx-to-json.ts
|
|
19348
|
-
var XlsxToJsonInputSchema, XlsxToJsonOutputSchema, XlsxToJsonConfigSchema;
|
|
19349
|
-
var init_xlsx_to_json = __esm(() => {
|
|
19350
|
-
init_zod();
|
|
19351
|
-
init_document_parser();
|
|
19352
|
-
XlsxToJsonInputSchema = exports_external.union([FileIdInputSchema, FilePathDescriptorSchema]);
|
|
19353
|
-
XlsxToJsonOutputSchema = exports_external.object({
|
|
19354
|
-
rows: exports_external.array(exports_external.record(exports_external.string(), exports_external.unknown())).describe("Array of row objects (header row = keys)"),
|
|
19355
|
-
fileId: exports_external.string().optional().describe("File ID of stored CSV when outputCsv is true")
|
|
19356
|
-
});
|
|
19357
|
-
XlsxToJsonConfigSchema = exports_external.object({
|
|
19358
|
-
sheet: exports_external.union([exports_external.number().int().min(0), exports_external.string()]).optional().describe("Sheet to read: 0-based index or sheet name"),
|
|
19359
|
-
outputCsv: exports_external.boolean().default(false).optional(),
|
|
19360
|
-
outputFilename: exports_external.string().optional().describe("Output CSV filename when outputCsv is true")
|
|
19361
|
-
});
|
|
19362
|
-
});
|
|
19363
|
-
|
|
19364
|
-
// ../types/src/processor/configs/react-hook-form.ts
|
|
19365
|
-
function extractFieldMetadata(schema) {
|
|
19366
|
-
const fields = [];
|
|
19367
|
-
let inner = schema;
|
|
19368
|
-
while (inner instanceof exports_external.ZodDefault || inner instanceof exports_external.ZodPrefault) {
|
|
19369
|
-
inner = inner.unwrap();
|
|
19370
|
-
}
|
|
19371
|
-
if (inner instanceof exports_external.ZodObject) {
|
|
19372
|
-
for (const [name, fieldSchema] of Object.entries(inner.shape)) {
|
|
19373
|
-
fields.push(extractSingleFieldMetadata(name, fieldSchema));
|
|
19374
|
-
}
|
|
19375
|
-
}
|
|
19376
|
-
return fields;
|
|
19377
|
-
}
|
|
19378
|
-
function extractSingleFieldMetadata(name, schema) {
|
|
19379
|
-
let current = schema;
|
|
19380
|
-
let required2 = true;
|
|
19381
|
-
let defaultValue = undefined;
|
|
19382
|
-
let description = current.description;
|
|
19383
|
-
while (true) {
|
|
19384
|
-
if (current instanceof exports_external.ZodOptional) {
|
|
19385
|
-
required2 = false;
|
|
19386
|
-
current = current.unwrap();
|
|
19387
|
-
} else if (current instanceof exports_external.ZodDefault || current instanceof exports_external.ZodPrefault) {
|
|
19388
|
-
defaultValue = current._def.defaultValue;
|
|
19389
|
-
current = current.unwrap();
|
|
19390
|
-
} else {
|
|
19391
|
-
break;
|
|
19392
|
-
}
|
|
19393
|
-
description ??= current.description;
|
|
19394
|
-
}
|
|
19395
|
-
const base = { name, type: "unknown", required: required2, description, defaultValue };
|
|
19396
|
-
if (current instanceof exports_external.ZodString)
|
|
19397
|
-
return { ...base, type: "string" };
|
|
19398
|
-
if (current instanceof exports_external.ZodNumber) {
|
|
19399
|
-
let min;
|
|
19400
|
-
let max;
|
|
19401
|
-
for (const c of current._def.checks ?? []) {
|
|
19402
|
-
const def = c._zod.def;
|
|
19403
|
-
if (def.check === "greater_than")
|
|
19404
|
-
min = def.value;
|
|
19405
|
-
if (def.check === "less_than")
|
|
19406
|
-
max = def.value;
|
|
19407
|
-
}
|
|
19408
|
-
return { ...base, type: "number", min, max };
|
|
19409
|
-
}
|
|
19410
|
-
if (current instanceof exports_external.ZodBoolean)
|
|
19411
|
-
return { ...base, type: "boolean" };
|
|
19412
|
-
if (current instanceof exports_external.ZodEnum) {
|
|
19413
|
-
return { ...base, type: "enum", enumValues: current.options };
|
|
19414
|
-
}
|
|
19415
|
-
if (current instanceof exports_external.ZodArray)
|
|
19416
|
-
return { ...base, type: "array" };
|
|
19417
|
-
if (current instanceof exports_external.ZodObject || current instanceof exports_external.ZodRecord) {
|
|
19418
|
-
return { ...base, type: "object" };
|
|
19419
|
-
}
|
|
19420
|
-
return base;
|
|
19421
|
-
}
|
|
19422
|
-
function getConfigFieldMetadata(processorId) {
|
|
19423
|
-
const schema = getConfigSchema(processorId);
|
|
19424
|
-
if (!schema)
|
|
19425
|
-
return;
|
|
19426
|
-
return extractFieldMetadata(schema);
|
|
19427
|
-
}
|
|
19428
|
-
function getConfigDefaults(processorId) {
|
|
19429
|
-
const schema = PROCESSOR_SCHEMAS[processorId]?.configSchema;
|
|
19430
|
-
if (!schema)
|
|
19431
|
-
return {};
|
|
19432
|
-
try {
|
|
19433
|
-
const result = schema.safeParse({});
|
|
19434
|
-
if (result.success) {
|
|
19435
|
-
return result.data;
|
|
19436
|
-
}
|
|
19437
|
-
} catch {}
|
|
19438
|
-
const fields = extractFieldMetadata(schema);
|
|
19439
|
-
const defaults = {};
|
|
19440
|
-
for (const field of fields) {
|
|
19441
|
-
if (field.defaultValue !== undefined) {
|
|
19442
|
-
defaults[field.name] = field.defaultValue;
|
|
19443
|
-
}
|
|
19444
|
-
}
|
|
19445
|
-
return defaults;
|
|
19446
|
-
}
|
|
19447
|
-
function validateConfig(processorId, config2) {
|
|
19448
|
-
const schema = getConfigSchema(processorId);
|
|
19449
|
-
if (!schema) {
|
|
19450
|
-
return { valid: true, errors: {} };
|
|
19451
|
-
}
|
|
19452
|
-
const result = schema.safeParse(config2);
|
|
19453
|
-
if (result.success) {
|
|
19454
|
-
return { valid: true, errors: {} };
|
|
19455
|
-
}
|
|
19456
|
-
const errors3 = {};
|
|
19457
|
-
for (const issue2 of result.error.issues) {
|
|
19458
|
-
const path = issue2.path.join(".");
|
|
19459
|
-
errors3[path] = issue2.message;
|
|
19460
|
-
}
|
|
19461
|
-
return { valid: false, errors: errors3 };
|
|
19462
|
-
}
|
|
19463
|
-
var init_react_hook_form = __esm(() => {
|
|
19464
|
-
init_zod();
|
|
19465
|
-
init_configs();
|
|
19466
|
-
});
|
|
19467
|
-
|
|
19468
|
-
// ../types/src/processor/configs/index.ts
|
|
19469
|
-
function getProcessorSchemas(processorId) {
|
|
19470
|
-
return PROCESSOR_SCHEMAS[processorId];
|
|
19471
|
-
}
|
|
19472
|
-
function getConfigSchema(processorId) {
|
|
19473
|
-
return PROCESSOR_SCHEMAS[processorId]?.configSchema;
|
|
19474
|
-
}
|
|
19475
|
-
function getAllProcessorJsonSchemas() {
|
|
19476
|
-
return Object.values(PROCESSOR_SCHEMAS).map((p) => ({
|
|
19477
|
-
id: p.id,
|
|
19478
|
-
inputSchema: toJsonSchema(p.inputSchema),
|
|
19479
|
-
outputSchema: toJsonSchema(p.outputSchema),
|
|
19480
|
-
configSchema: toJsonSchema(p.configSchema)
|
|
19481
|
-
}));
|
|
19482
|
-
}
|
|
19483
|
-
function listProcessorIds() {
|
|
19484
|
-
return Object.keys(PROCESSOR_SCHEMAS);
|
|
19485
|
-
}
|
|
19486
|
-
var PROCESSOR_SCHEMAS;
|
|
19487
|
-
var init_configs = __esm(() => {
|
|
19488
|
-
init_common();
|
|
19489
|
-
init_ids();
|
|
19490
|
-
init_classify();
|
|
19491
|
-
init_document_parser();
|
|
19492
|
-
init_extract();
|
|
19493
|
-
init_merge();
|
|
19494
|
-
init_pdf_embedder();
|
|
19495
|
-
init_split();
|
|
19496
|
-
init_template();
|
|
19497
|
-
init_xlsx_to_json();
|
|
19498
|
-
init_react_hook_form();
|
|
19499
|
-
init_classify();
|
|
19500
|
-
init_document_parser();
|
|
19501
|
-
init_extract();
|
|
19502
|
-
init_merge();
|
|
19503
|
-
init_pdf_embedder();
|
|
19504
|
-
init_split();
|
|
19505
|
-
init_template();
|
|
19506
|
-
init_xlsx_to_json();
|
|
19507
|
-
PROCESSOR_SCHEMAS = {
|
|
19508
|
-
[PROCESSOR_IDS.EXTRACT]: {
|
|
19509
|
-
id: PROCESSOR_IDS.EXTRACT,
|
|
19510
|
-
inputSchema: ExtractInputSchema,
|
|
19511
|
-
outputSchema: ExtractOutputSchema,
|
|
19512
|
-
configSchema: ExtractConfigSchema
|
|
19513
|
-
},
|
|
19514
|
-
[PROCESSOR_IDS.DOCUMENT_PARSER]: {
|
|
19515
|
-
id: PROCESSOR_IDS.DOCUMENT_PARSER,
|
|
19516
|
-
inputSchema: DocumentParserInputSchema,
|
|
19517
|
-
outputSchema: DocumentParserOutputSchema,
|
|
19518
|
-
configSchema: DocumentParserConfigSchema
|
|
19519
|
-
},
|
|
19520
|
-
[PROCESSOR_IDS.MERGE]: {
|
|
19521
|
-
id: PROCESSOR_IDS.MERGE,
|
|
19522
|
-
inputSchema: MergeInputSchema,
|
|
19523
|
-
outputSchema: MergeOutputSchema,
|
|
19524
|
-
configSchema: MergeConfigSchema
|
|
19525
|
-
},
|
|
19526
|
-
[PROCESSOR_IDS.TEMPLATE]: {
|
|
19527
|
-
id: PROCESSOR_IDS.TEMPLATE,
|
|
19528
|
-
inputSchema: TemplateInputSchema,
|
|
19529
|
-
outputSchema: TemplateOutputSchema,
|
|
19530
|
-
configSchema: TemplateConfigSchema
|
|
19531
|
-
},
|
|
19532
|
-
[PROCESSOR_IDS.PDF_EMBEDDER]: {
|
|
19533
|
-
id: PROCESSOR_IDS.PDF_EMBEDDER,
|
|
19534
|
-
inputSchema: PdfEmbedderInputSchema,
|
|
19535
|
-
outputSchema: PdfEmbedderOutputSchema,
|
|
19536
|
-
configSchema: PdfEmbedderConfigSchema
|
|
19537
|
-
},
|
|
19538
|
-
[PROCESSOR_IDS.SPLIT]: {
|
|
19539
|
-
id: PROCESSOR_IDS.SPLIT,
|
|
19540
|
-
inputSchema: SplitInputSchema,
|
|
19541
|
-
outputSchema: SplitOutputSchema,
|
|
19542
|
-
configSchema: SplitConfigSchema
|
|
19543
|
-
},
|
|
19544
|
-
[PROCESSOR_IDS.CLASSIFY]: {
|
|
19545
|
-
id: PROCESSOR_IDS.CLASSIFY,
|
|
19546
|
-
inputSchema: ClassifyInputSchema,
|
|
19547
|
-
outputSchema: ClassifyOutputSchema,
|
|
19548
|
-
configSchema: ClassifyConfigSchema
|
|
19549
|
-
},
|
|
19550
|
-
[PROCESSOR_IDS.XLSX_TO_JSON]: {
|
|
19551
|
-
id: PROCESSOR_IDS.XLSX_TO_JSON,
|
|
19552
|
-
inputSchema: XlsxToJsonInputSchema,
|
|
19553
|
-
outputSchema: XlsxToJsonOutputSchema,
|
|
19554
|
-
configSchema: XlsxToJsonConfigSchema
|
|
19555
|
-
}
|
|
19556
|
-
};
|
|
19557
|
-
});
|
|
17084
|
+
var init_core3 = () => {};
|
|
19558
17085
|
|
|
19559
17086
|
// ../types/src/processor/index.ts
|
|
19560
|
-
var
|
|
19561
|
-
init_processor();
|
|
19562
|
-
init_execution();
|
|
19563
|
-
init_configs();
|
|
19564
|
-
});
|
|
17087
|
+
var init_processor = () => {};
|
|
19565
17088
|
|
|
19566
17089
|
// ../types/src/parser/index.ts
|
|
19567
|
-
var
|
|
19568
|
-
init_parser();
|
|
19569
|
-
});
|
|
17090
|
+
var init_parser = () => {};
|
|
19570
17091
|
|
|
19571
17092
|
// ../types/src/otel/semantic-conventions.ts
|
|
19572
17093
|
function mapLLMAttributes(attrs) {
|
|
@@ -22886,7 +20407,7 @@ var require_data = __commonJS((exports, module) => {
|
|
|
22886
20407
|
});
|
|
22887
20408
|
|
|
22888
20409
|
// ../../node_modules/fast-uri/lib/utils.js
|
|
22889
|
-
var
|
|
20410
|
+
var require_utils = __commonJS((exports, module) => {
|
|
22890
20411
|
var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
|
|
22891
20412
|
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);
|
|
22892
20413
|
function stringArrayToHexStripped(input) {
|
|
@@ -23142,7 +20663,7 @@ var require_utils3 = __commonJS((exports, module) => {
|
|
|
23142
20663
|
|
|
23143
20664
|
// ../../node_modules/fast-uri/lib/schemes.js
|
|
23144
20665
|
var require_schemes = __commonJS((exports, module) => {
|
|
23145
|
-
var { isUUID } =
|
|
20666
|
+
var { isUUID } = require_utils();
|
|
23146
20667
|
var URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
|
|
23147
20668
|
var supportedSchemeNames = [
|
|
23148
20669
|
"http",
|
|
@@ -23316,7 +20837,7 @@ var require_schemes = __commonJS((exports, module) => {
|
|
|
23316
20837
|
|
|
23317
20838
|
// ../../node_modules/fast-uri/index.js
|
|
23318
20839
|
var require_fast_uri = __commonJS((exports, module) => {
|
|
23319
|
-
var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizeComponentEncoding, isIPv4, nonSimpleDomain } =
|
|
20840
|
+
var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizeComponentEncoding, isIPv4, nonSimpleDomain } = require_utils();
|
|
23320
20841
|
var { SCHEMES, getSchemeHandler } = require_schemes();
|
|
23321
20842
|
function normalize(uri, options) {
|
|
23322
20843
|
if (typeof uri === "string") {
|
|
@@ -25726,7 +23247,7 @@ var require_draft7 = __commonJS((exports) => {
|
|
|
25726
23247
|
});
|
|
25727
23248
|
|
|
25728
23249
|
// ../../node_modules/ajv/dist/vocabularies/discriminator/types.js
|
|
25729
|
-
var
|
|
23250
|
+
var require_types = __commonJS((exports) => {
|
|
25730
23251
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25731
23252
|
exports.DiscrError = undefined;
|
|
25732
23253
|
var DiscrError;
|
|
@@ -25740,7 +23261,7 @@ var require_types2 = __commonJS((exports) => {
|
|
|
25740
23261
|
var require_discriminator = __commonJS((exports) => {
|
|
25741
23262
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25742
23263
|
var codegen_1 = require_codegen();
|
|
25743
|
-
var types_1 =
|
|
23264
|
+
var types_1 = require_types();
|
|
25744
23265
|
var compile_1 = require_compile();
|
|
25745
23266
|
var ref_error_1 = require_ref_error();
|
|
25746
23267
|
var util_1 = require_util();
|
|
@@ -26679,6 +24200,24 @@ var init_validation = __esm(() => {
|
|
|
26679
24200
|
init_workspace_schema();
|
|
26680
24201
|
});
|
|
26681
24202
|
|
|
24203
|
+
// ../types/src/core/common.ts
|
|
24204
|
+
function toJsonSchema2(schema) {
|
|
24205
|
+
return exports_external.toJSONSchema(schema, { target: "draft-7" });
|
|
24206
|
+
}
|
|
24207
|
+
var TimestampSchema2, JsonSchemaSchema2, BaseEntitySchema2;
|
|
24208
|
+
var init_common = __esm(() => {
|
|
24209
|
+
init_zod();
|
|
24210
|
+
TimestampSchema2 = exports_external.union([exports_external.date(), exports_external.string().datetime()]).transform((val) => {
|
|
24211
|
+
return typeof val === "string" ? new Date(val) : val;
|
|
24212
|
+
});
|
|
24213
|
+
JsonSchemaSchema2 = exports_external.record(exports_external.string(), exports_external.unknown());
|
|
24214
|
+
BaseEntitySchema2 = exports_external.object({
|
|
24215
|
+
id: exports_external.string(),
|
|
24216
|
+
createdAt: TimestampSchema2.optional(),
|
|
24217
|
+
updatedAt: TimestampSchema2.optional()
|
|
24218
|
+
});
|
|
24219
|
+
});
|
|
24220
|
+
|
|
26682
24221
|
// ../../node_modules/@babel/parser/lib/index.js
|
|
26683
24222
|
var require_lib = __commonJS((exports) => {
|
|
26684
24223
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -27092,12 +24631,12 @@ var require_lib = __commonJS((exports) => {
|
|
|
27092
24631
|
}
|
|
27093
24632
|
const ParseErrorConstructors = {};
|
|
27094
24633
|
for (const reasonCode of Object.keys(argument)) {
|
|
27095
|
-
const
|
|
27096
|
-
const _ref = typeof
|
|
27097
|
-
message: () =>
|
|
27098
|
-
} : typeof
|
|
27099
|
-
message:
|
|
27100
|
-
} :
|
|
24634
|
+
const template = argument[reasonCode];
|
|
24635
|
+
const _ref = typeof template === "string" ? {
|
|
24636
|
+
message: () => template
|
|
24637
|
+
} : typeof template === "function" ? {
|
|
24638
|
+
message: template
|
|
24639
|
+
} : template, {
|
|
27101
24640
|
message
|
|
27102
24641
|
} = _ref, rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
27103
24642
|
const toMessage = typeof message === "string" ? () => message : message;
|
|
@@ -41570,7 +39109,7 @@ var require_keywords = __commonJS((exports) => {
|
|
|
41570
39109
|
});
|
|
41571
39110
|
|
|
41572
39111
|
// ../../node_modules/sucrase/dist/parser/tokenizer/types.js
|
|
41573
|
-
var
|
|
39112
|
+
var require_types2 = __commonJS((exports) => {
|
|
41574
39113
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41575
39114
|
var TokenType;
|
|
41576
39115
|
(function(TokenType2) {
|
|
@@ -41634,8 +39173,8 @@ var require_types3 = __commonJS((exports) => {
|
|
|
41634
39173
|
TokenType2[TokenType2["questionDot"] = questionDot] = "questionDot";
|
|
41635
39174
|
const arrow = 22528;
|
|
41636
39175
|
TokenType2[TokenType2["arrow"] = arrow] = "arrow";
|
|
41637
|
-
const
|
|
41638
|
-
TokenType2[TokenType2["template"] =
|
|
39176
|
+
const template = 23552;
|
|
39177
|
+
TokenType2[TokenType2["template"] = template] = "template";
|
|
41639
39178
|
const ellipsis = 24576;
|
|
41640
39179
|
TokenType2[TokenType2["ellipsis"] = ellipsis] = "ellipsis";
|
|
41641
39180
|
const backQuote = 25600;
|
|
@@ -42054,7 +39593,7 @@ var require_types3 = __commonJS((exports) => {
|
|
|
42054
39593
|
var require_state = __commonJS((exports) => {
|
|
42055
39594
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42056
39595
|
var _keywords = require_keywords();
|
|
42057
|
-
var _types =
|
|
39596
|
+
var _types = require_types2();
|
|
42058
39597
|
|
|
42059
39598
|
class Scope {
|
|
42060
39599
|
constructor(startTokenIndex, endTokenIndex, isFunctionScope) {
|
|
@@ -42440,7 +39979,7 @@ var require_base = __commonJS((exports) => {
|
|
|
42440
39979
|
var require_util2 = __commonJS((exports) => {
|
|
42441
39980
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42442
39981
|
var _index = require_tokenizer();
|
|
42443
|
-
var _types =
|
|
39982
|
+
var _types = require_types2();
|
|
42444
39983
|
var _charcodes = require_charcodes();
|
|
42445
39984
|
var _base = require_base();
|
|
42446
39985
|
function isContextual(contextualKeyword) {
|
|
@@ -42602,7 +40141,7 @@ var require_identifier = __commonJS((exports) => {
|
|
|
42602
40141
|
var require_readWordTree = __commonJS((exports) => {
|
|
42603
40142
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42604
40143
|
var _keywords = require_keywords();
|
|
42605
|
-
var _types =
|
|
40144
|
+
var _types = require_types2();
|
|
42606
40145
|
var READ_WORD_TREE = new Int32Array([
|
|
42607
40146
|
-1,
|
|
42608
40147
|
27,
|
|
@@ -51580,7 +49119,7 @@ var require_readWord = __commonJS((exports) => {
|
|
|
51580
49119
|
var _identifier = require_identifier();
|
|
51581
49120
|
var _index = require_tokenizer();
|
|
51582
49121
|
var _readWordTree = require_readWordTree();
|
|
51583
|
-
var _types =
|
|
49122
|
+
var _types = require_types2();
|
|
51584
49123
|
function readWord() {
|
|
51585
49124
|
let treePos = 0;
|
|
51586
49125
|
let code = 0;
|
|
@@ -51646,7 +49185,7 @@ var require_tokenizer = __commonJS((exports) => {
|
|
|
51646
49185
|
var _keywords = require_keywords();
|
|
51647
49186
|
var _readWord = require_readWord();
|
|
51648
49187
|
var _readWord2 = _interopRequireDefault(_readWord);
|
|
51649
|
-
var _types =
|
|
49188
|
+
var _types = require_types2();
|
|
51650
49189
|
var IdentifierRole;
|
|
51651
49190
|
(function(IdentifierRole2) {
|
|
51652
49191
|
const Access = 0;
|
|
@@ -52363,7 +49902,7 @@ var require_tokenizer = __commonJS((exports) => {
|
|
|
52363
49902
|
// ../../node_modules/sucrase/dist/util/getImportExportSpecifierInfo.js
|
|
52364
49903
|
var require_getImportExportSpecifierInfo = __commonJS((exports) => {
|
|
52365
49904
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
52366
|
-
var _types =
|
|
49905
|
+
var _types = require_types2();
|
|
52367
49906
|
function getImportExportSpecifierInfo(tokens, index = tokens.currentIndex()) {
|
|
52368
49907
|
let endIndex = index + 1;
|
|
52369
49908
|
if (isSpecifierEnd(tokens, endIndex)) {
|
|
@@ -52716,7 +50255,7 @@ var require_JSXTransformer = __commonJS((exports) => {
|
|
|
52716
50255
|
var _xhtml = require_xhtml();
|
|
52717
50256
|
var _xhtml2 = _interopRequireDefault(_xhtml);
|
|
52718
50257
|
var _tokenizer = require_tokenizer();
|
|
52719
|
-
var _types =
|
|
50258
|
+
var _types = require_types2();
|
|
52720
50259
|
var _charcodes = require_charcodes();
|
|
52721
50260
|
var _getJSXPragmaInfo = require_getJSXPragmaInfo();
|
|
52722
50261
|
var _getJSXPragmaInfo2 = _interopRequireDefault(_getJSXPragmaInfo);
|
|
@@ -53220,7 +50759,7 @@ var require_getNonTypeIdentifiers = __commonJS((exports) => {
|
|
|
53220
50759
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
53221
50760
|
}
|
|
53222
50761
|
var _tokenizer = require_tokenizer();
|
|
53223
|
-
var _types =
|
|
50762
|
+
var _types = require_types2();
|
|
53224
50763
|
var _JSXTransformer = require_JSXTransformer();
|
|
53225
50764
|
var _getJSXPragmaInfo = require_getJSXPragmaInfo();
|
|
53226
50765
|
var _getJSXPragmaInfo2 = _interopRequireDefault(_getJSXPragmaInfo);
|
|
@@ -53259,7 +50798,7 @@ var require_CJSImportProcessor = __commonJS((exports) => {
|
|
|
53259
50798
|
}
|
|
53260
50799
|
var _tokenizer = require_tokenizer();
|
|
53261
50800
|
var _keywords = require_keywords();
|
|
53262
|
-
var _types =
|
|
50801
|
+
var _types = require_types2();
|
|
53263
50802
|
var _getImportExportSpecifierInfo = require_getImportExportSpecifierInfo();
|
|
53264
50803
|
var _getImportExportSpecifierInfo2 = _interopRequireDefault(_getImportExportSpecifierInfo);
|
|
53265
50804
|
var _getNonTypeIdentifiers = require_getNonTypeIdentifiers();
|
|
@@ -55294,7 +52833,7 @@ var require_HelperManager = __commonJS((exports) => {
|
|
|
55294
52833
|
var require_identifyShadowedGlobals = __commonJS((exports) => {
|
|
55295
52834
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
55296
52835
|
var _tokenizer = require_tokenizer();
|
|
55297
|
-
var _types =
|
|
52836
|
+
var _types = require_types2();
|
|
55298
52837
|
function identifyShadowedGlobals(tokens, scopes, globalNames) {
|
|
55299
52838
|
if (!hasShadowedGlobals(tokens, globalNames)) {
|
|
55300
52839
|
return;
|
|
@@ -55359,7 +52898,7 @@ var require_identifyShadowedGlobals = __commonJS((exports) => {
|
|
|
55359
52898
|
// ../../node_modules/sucrase/dist/util/getIdentifierNames.js
|
|
55360
52899
|
var require_getIdentifierNames = __commonJS((exports) => {
|
|
55361
52900
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
55362
|
-
var _types =
|
|
52901
|
+
var _types = require_types2();
|
|
55363
52902
|
function getIdentifierNames(code, tokens) {
|
|
55364
52903
|
const names = [];
|
|
55365
52904
|
for (const token of tokens) {
|
|
@@ -55535,7 +53074,7 @@ var require_util3 = __commonJS((exports) => {
|
|
|
55535
53074
|
});
|
|
55536
53075
|
|
|
55537
53076
|
// ../../node_modules/ts-interface-checker/dist/types.js
|
|
55538
|
-
var
|
|
53077
|
+
var require_types3 = __commonJS((exports) => {
|
|
55539
53078
|
var __extends = exports && exports.__extends || function() {
|
|
55540
53079
|
var extendStatics = function(d, b) {
|
|
55541
53080
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -56135,9 +53674,9 @@ var require_dist2 = __commonJS((exports) => {
|
|
|
56135
53674
|
};
|
|
56136
53675
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
56137
53676
|
exports.Checker = exports.createCheckers = undefined;
|
|
56138
|
-
var types_1 =
|
|
53677
|
+
var types_1 = require_types3();
|
|
56139
53678
|
var util_1 = require_util3();
|
|
56140
|
-
var types_2 =
|
|
53679
|
+
var types_2 = require_types3();
|
|
56141
53680
|
Object.defineProperty(exports, "TArray", { enumerable: true, get: function() {
|
|
56142
53681
|
return types_2.TArray;
|
|
56143
53682
|
} });
|
|
@@ -56419,7 +53958,7 @@ var require_lval = __commonJS((exports) => {
|
|
|
56419
53958
|
var _typescript = require_typescript();
|
|
56420
53959
|
var _index = require_tokenizer();
|
|
56421
53960
|
var _keywords = require_keywords();
|
|
56422
|
-
var _types =
|
|
53961
|
+
var _types = require_types2();
|
|
56423
53962
|
var _base = require_base();
|
|
56424
53963
|
var _expression = require_expression();
|
|
56425
53964
|
var _util = require_util2();
|
|
@@ -56551,7 +54090,7 @@ var require_typescript = __commonJS((exports) => {
|
|
|
56551
54090
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
56552
54091
|
var _index = require_tokenizer();
|
|
56553
54092
|
var _keywords = require_keywords();
|
|
56554
|
-
var _types =
|
|
54093
|
+
var _types = require_types2();
|
|
56555
54094
|
var _base = require_base();
|
|
56556
54095
|
var _expression = require_expression();
|
|
56557
54096
|
var _lval = require_lval();
|
|
@@ -57813,7 +55352,7 @@ var require_typescript = __commonJS((exports) => {
|
|
|
57813
55352
|
var require_jsx = __commonJS((exports) => {
|
|
57814
55353
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
57815
55354
|
var _index = require_tokenizer();
|
|
57816
|
-
var _types =
|
|
55355
|
+
var _types = require_types2();
|
|
57817
55356
|
var _base = require_base();
|
|
57818
55357
|
var _expression = require_expression();
|
|
57819
55358
|
var _util = require_util2();
|
|
@@ -58076,10 +55615,10 @@ var require_jsx = __commonJS((exports) => {
|
|
|
58076
55615
|
});
|
|
58077
55616
|
|
|
58078
55617
|
// ../../node_modules/sucrase/dist/parser/plugins/types.js
|
|
58079
|
-
var
|
|
55618
|
+
var require_types4 = __commonJS((exports) => {
|
|
58080
55619
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
58081
55620
|
var _index = require_tokenizer();
|
|
58082
|
-
var _types =
|
|
55621
|
+
var _types = require_types2();
|
|
58083
55622
|
var _base = require_base();
|
|
58084
55623
|
var _expression = require_expression();
|
|
58085
55624
|
var _flow = require_flow();
|
|
@@ -58112,12 +55651,12 @@ var require_expression = __commonJS((exports) => {
|
|
|
58112
55651
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
58113
55652
|
var _flow = require_flow();
|
|
58114
55653
|
var _index = require_jsx();
|
|
58115
|
-
var _types =
|
|
55654
|
+
var _types = require_types4();
|
|
58116
55655
|
var _typescript = require_typescript();
|
|
58117
55656
|
var _index3 = require_tokenizer();
|
|
58118
55657
|
var _keywords = require_keywords();
|
|
58119
55658
|
var _state = require_state();
|
|
58120
|
-
var _types3 =
|
|
55659
|
+
var _types3 = require_types2();
|
|
58121
55660
|
var _charcodes = require_charcodes();
|
|
58122
55661
|
var _identifier = require_identifier();
|
|
58123
55662
|
var _base = require_base();
|
|
@@ -58833,7 +56372,7 @@ var require_flow = __commonJS((exports) => {
|
|
|
58833
56372
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
58834
56373
|
var _index = require_tokenizer();
|
|
58835
56374
|
var _keywords = require_keywords();
|
|
58836
|
-
var _types =
|
|
56375
|
+
var _types = require_types2();
|
|
58837
56376
|
var _base = require_base();
|
|
58838
56377
|
var _expression = require_expression();
|
|
58839
56378
|
var _statement = require_statement();
|
|
@@ -59708,7 +57247,7 @@ var require_statement = __commonJS((exports) => {
|
|
|
59708
57247
|
var _tokenizer = require_tokenizer();
|
|
59709
57248
|
var _keywords = require_keywords();
|
|
59710
57249
|
var _state = require_state();
|
|
59711
|
-
var _types =
|
|
57250
|
+
var _types = require_types2();
|
|
59712
57251
|
var _charcodes = require_charcodes();
|
|
59713
57252
|
var _base = require_base();
|
|
59714
57253
|
var _expression = require_expression();
|
|
@@ -60743,7 +58282,7 @@ var require_TokenProcessor = __commonJS((exports) => {
|
|
|
60743
58282
|
function _interopRequireDefault(obj) {
|
|
60744
58283
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
60745
58284
|
}
|
|
60746
|
-
var _types =
|
|
58285
|
+
var _types = require_types2();
|
|
60747
58286
|
var _isAsyncOperation = require_isAsyncOperation();
|
|
60748
58287
|
var _isAsyncOperation2 = _interopRequireDefault(_isAsyncOperation);
|
|
60749
58288
|
|
|
@@ -61001,7 +58540,7 @@ var require_TokenProcessor = __commonJS((exports) => {
|
|
|
61001
58540
|
var require_getClassInfo = __commonJS((exports) => {
|
|
61002
58541
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
61003
58542
|
var _keywords = require_keywords();
|
|
61004
|
-
var _types =
|
|
58543
|
+
var _types = require_types2();
|
|
61005
58544
|
function getClassInfo(rootTransformer, tokens, nameManager, disableESTransforms) {
|
|
61006
58545
|
const snapshot = tokens.snapshot();
|
|
61007
58546
|
const headerInfo = processClassHeader(tokens);
|
|
@@ -61239,7 +58778,7 @@ var require_getClassInfo = __commonJS((exports) => {
|
|
|
61239
58778
|
// ../../node_modules/sucrase/dist/util/elideImportEquals.js
|
|
61240
58779
|
var require_elideImportEquals = __commonJS((exports) => {
|
|
61241
58780
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
61242
|
-
var _types =
|
|
58781
|
+
var _types = require_types2();
|
|
61243
58782
|
function elideImportEquals(tokens) {
|
|
61244
58783
|
tokens.removeInitialToken();
|
|
61245
58784
|
tokens.removeToken();
|
|
@@ -61263,7 +58802,7 @@ var require_elideImportEquals = __commonJS((exports) => {
|
|
|
61263
58802
|
var require_getDeclarationInfo = __commonJS((exports) => {
|
|
61264
58803
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
61265
58804
|
var _tokenizer = require_tokenizer();
|
|
61266
|
-
var _types =
|
|
58805
|
+
var _types = require_types2();
|
|
61267
58806
|
var EMPTY_DECLARATION_INFO = {
|
|
61268
58807
|
typeDeclarations: new Set,
|
|
61269
58808
|
valueDeclarations: new Set
|
|
@@ -61291,7 +58830,7 @@ var require_getDeclarationInfo = __commonJS((exports) => {
|
|
|
61291
58830
|
var require_isExportFrom = __commonJS((exports) => {
|
|
61292
58831
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
61293
58832
|
var _keywords = require_keywords();
|
|
61294
|
-
var _types =
|
|
58833
|
+
var _types = require_types2();
|
|
61295
58834
|
function isExportFrom(tokens) {
|
|
61296
58835
|
let closeBraceIndex = tokens.currentIndex();
|
|
61297
58836
|
while (!tokens.matches1AtIndex(closeBraceIndex, _types.TokenType.braceR)) {
|
|
@@ -61306,7 +58845,7 @@ var require_isExportFrom = __commonJS((exports) => {
|
|
|
61306
58845
|
var require_removeMaybeImportAttributes = __commonJS((exports) => {
|
|
61307
58846
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
61308
58847
|
var _keywords = require_keywords();
|
|
61309
|
-
var _types =
|
|
58848
|
+
var _types = require_types2();
|
|
61310
58849
|
function removeMaybeImportAttributes(tokens) {
|
|
61311
58850
|
if (tokens.matches2(_types.TokenType._with, _types.TokenType.braceL) || tokens.matches2(_types.TokenType.name, _types.TokenType.braceL) && tokens.matchesContextual(_keywords.ContextualKeyword._assert)) {
|
|
61312
58851
|
tokens.removeToken();
|
|
@@ -61321,7 +58860,7 @@ var require_removeMaybeImportAttributes = __commonJS((exports) => {
|
|
|
61321
58860
|
// ../../node_modules/sucrase/dist/util/shouldElideDefaultExport.js
|
|
61322
58861
|
var require_shouldElideDefaultExport = __commonJS((exports) => {
|
|
61323
58862
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
61324
|
-
var _types =
|
|
58863
|
+
var _types = require_types2();
|
|
61325
58864
|
function shouldElideDefaultExport(isTypeScriptTransformEnabled, keepUnusedImports, tokens, declarationInfo) {
|
|
61326
58865
|
if (!isTypeScriptTransformEnabled || keepUnusedImports) {
|
|
61327
58866
|
return false;
|
|
@@ -61352,7 +58891,7 @@ var require_CJSImportTransformer = __commonJS((exports) => {
|
|
|
61352
58891
|
}
|
|
61353
58892
|
var _tokenizer = require_tokenizer();
|
|
61354
58893
|
var _keywords = require_keywords();
|
|
61355
|
-
var _types =
|
|
58894
|
+
var _types = require_types2();
|
|
61356
58895
|
var _elideImportEquals = require_elideImportEquals();
|
|
61357
58896
|
var _elideImportEquals2 = _interopRequireDefault(_elideImportEquals);
|
|
61358
58897
|
var _getDeclarationInfo = require_getDeclarationInfo();
|
|
@@ -61994,7 +59533,7 @@ var require_ESMImportTransformer = __commonJS((exports) => {
|
|
|
61994
59533
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
61995
59534
|
}
|
|
61996
59535
|
var _keywords = require_keywords();
|
|
61997
|
-
var _types =
|
|
59536
|
+
var _types = require_types2();
|
|
61998
59537
|
var _elideImportEquals = require_elideImportEquals();
|
|
61999
59538
|
var _elideImportEquals2 = _interopRequireDefault(_elideImportEquals);
|
|
62000
59539
|
var _getDeclarationInfo = require_getDeclarationInfo();
|
|
@@ -62264,7 +59803,7 @@ var require_FlowTransformer = __commonJS((exports) => {
|
|
|
62264
59803
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
62265
59804
|
}
|
|
62266
59805
|
var _keywords = require_keywords();
|
|
62267
|
-
var _types =
|
|
59806
|
+
var _types = require_types2();
|
|
62268
59807
|
var _Transformer = require_Transformer();
|
|
62269
59808
|
var _Transformer2 = _interopRequireDefault(_Transformer);
|
|
62270
59809
|
|
|
@@ -62384,7 +59923,7 @@ var require_JestHoistTransformer = __commonJS((exports) => {
|
|
|
62384
59923
|
}
|
|
62385
59924
|
return value;
|
|
62386
59925
|
}
|
|
62387
|
-
var _types =
|
|
59926
|
+
var _types = require_types2();
|
|
62388
59927
|
var _Transformer = require_Transformer();
|
|
62389
59928
|
var _Transformer2 = _interopRequireDefault(_Transformer);
|
|
62390
59929
|
var JEST_GLOBAL_NAME = "jest";
|
|
@@ -62458,7 +59997,7 @@ var require_NumericSeparatorTransformer = __commonJS((exports) => {
|
|
|
62458
59997
|
function _interopRequireDefault(obj) {
|
|
62459
59998
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
62460
59999
|
}
|
|
62461
|
-
var _types =
|
|
60000
|
+
var _types = require_types2();
|
|
62462
60001
|
var _Transformer = require_Transformer();
|
|
62463
60002
|
var _Transformer2 = _interopRequireDefault(_Transformer);
|
|
62464
60003
|
|
|
@@ -62487,7 +60026,7 @@ var require_OptionalCatchBindingTransformer = __commonJS((exports) => {
|
|
|
62487
60026
|
function _interopRequireDefault(obj) {
|
|
62488
60027
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
62489
60028
|
}
|
|
62490
|
-
var _types =
|
|
60029
|
+
var _types = require_types2();
|
|
62491
60030
|
var _Transformer = require_Transformer();
|
|
62492
60031
|
var _Transformer2 = _interopRequireDefault(_Transformer);
|
|
62493
60032
|
|
|
@@ -62515,7 +60054,7 @@ var require_OptionalChainingNullishTransformer = __commonJS((exports) => {
|
|
|
62515
60054
|
function _interopRequireDefault(obj) {
|
|
62516
60055
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
62517
60056
|
}
|
|
62518
|
-
var _types =
|
|
60057
|
+
var _types = require_types2();
|
|
62519
60058
|
var _Transformer = require_Transformer();
|
|
62520
60059
|
var _Transformer2 = _interopRequireDefault(_Transformer);
|
|
62521
60060
|
|
|
@@ -62631,7 +60170,7 @@ var require_ReactDisplayNameTransformer = __commonJS((exports) => {
|
|
|
62631
60170
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
62632
60171
|
}
|
|
62633
60172
|
var _tokenizer = require_tokenizer();
|
|
62634
|
-
var _types =
|
|
60173
|
+
var _types = require_types2();
|
|
62635
60174
|
var _Transformer = require_Transformer();
|
|
62636
60175
|
var _Transformer2 = _interopRequireDefault(_Transformer);
|
|
62637
60176
|
|
|
@@ -62882,7 +60421,7 @@ var require_TypeScriptTransformer = __commonJS((exports) => {
|
|
|
62882
60421
|
function _interopRequireDefault(obj) {
|
|
62883
60422
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
62884
60423
|
}
|
|
62885
|
-
var _types =
|
|
60424
|
+
var _types = require_types2();
|
|
62886
60425
|
var _isIdentifier = require_isIdentifier();
|
|
62887
60426
|
var _isIdentifier2 = _interopRequireDefault(_isIdentifier);
|
|
62888
60427
|
var _Transformer = require_Transformer();
|
|
@@ -63028,7 +60567,7 @@ var require_RootTransformer = __commonJS((exports) => {
|
|
|
63028
60567
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
63029
60568
|
}
|
|
63030
60569
|
var _keywords = require_keywords();
|
|
63031
|
-
var _types =
|
|
60570
|
+
var _types = require_types2();
|
|
63032
60571
|
var _getClassInfo = require_getClassInfo();
|
|
63033
60572
|
var _getClassInfo2 = _interopRequireDefault(_getClassInfo);
|
|
63034
60573
|
var _CJSImportTransformer = require_CJSImportTransformer();
|
|
@@ -63427,7 +60966,7 @@ var require_formatTokens = __commonJS((exports) => {
|
|
|
63427
60966
|
}
|
|
63428
60967
|
var _linesandcolumns = require_build();
|
|
63429
60968
|
var _linesandcolumns2 = _interopRequireDefault(_linesandcolumns);
|
|
63430
|
-
var _types =
|
|
60969
|
+
var _types = require_types2();
|
|
63431
60970
|
function formatTokens(code, tokens) {
|
|
63432
60971
|
if (tokens.length === 0) {
|
|
63433
60972
|
return "";
|
|
@@ -63492,7 +61031,7 @@ var require_getTSImportedNames = __commonJS((exports) => {
|
|
|
63492
61031
|
function _interopRequireDefault(obj) {
|
|
63493
61032
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
63494
61033
|
}
|
|
63495
|
-
var _types =
|
|
61034
|
+
var _types = require_types2();
|
|
63496
61035
|
var _getImportExportSpecifierInfo = require_getImportExportSpecifierInfo();
|
|
63497
61036
|
var _getImportExportSpecifierInfo2 = _interopRequireDefault(_getImportExportSpecifierInfo);
|
|
63498
61037
|
function getTSImportedNames(tokens) {
|
|
@@ -63877,7 +61416,7 @@ function describeUnsupportedType(nodeType) {
|
|
|
63877
61416
|
function compileTypedScript(opts) {
|
|
63878
61417
|
let ast;
|
|
63879
61418
|
try {
|
|
63880
|
-
ast =
|
|
61419
|
+
ast = import_parser2.parse(opts.source, {
|
|
63881
61420
|
sourceType: "script",
|
|
63882
61421
|
plugins: ["typescript"],
|
|
63883
61422
|
ranges: true
|
|
@@ -64129,9 +61668,9 @@ function stripCommentsAndStrings(s) {
|
|
|
64129
61668
|
out = out.replace(/`(\\.|[^`\\])*`/g, "``");
|
|
64130
61669
|
return out;
|
|
64131
61670
|
}
|
|
64132
|
-
var
|
|
61671
|
+
var import_parser2, import_sucrase, EVALUATOR_FN_NAME = "scoreScript", EVALUATOR_PARAM_NAMES, TRANSFORM_FN_NAME = "script";
|
|
64133
61672
|
var init_compile = __esm(() => {
|
|
64134
|
-
|
|
61673
|
+
import_parser2 = __toESM(require_lib(), 1);
|
|
64135
61674
|
import_sucrase = __toESM(require_dist3(), 1);
|
|
64136
61675
|
EVALUATOR_PARAM_NAMES = ["expected", "actual"];
|
|
64137
61676
|
});
|
|
@@ -64345,8 +61884,8 @@ function getAllStepJsonSchemas() {
|
|
|
64345
61884
|
category: def.category,
|
|
64346
61885
|
name: def.name,
|
|
64347
61886
|
description: def.description,
|
|
64348
|
-
configSchema:
|
|
64349
|
-
outputSchema:
|
|
61887
|
+
configSchema: toJsonSchema2(def.configSchema),
|
|
61888
|
+
outputSchema: toJsonSchema2(def.outputSchema),
|
|
64350
61889
|
configInWith: def.configInWith
|
|
64351
61890
|
}));
|
|
64352
61891
|
}
|
|
@@ -64992,6 +62531,81 @@ var init_actions = __esm(() => {
|
|
|
64992
62531
|
ACTION_TYPES = ActionTypeSchema.options;
|
|
64993
62532
|
});
|
|
64994
62533
|
|
|
62534
|
+
// ../types/src/processor/execution.ts
|
|
62535
|
+
function asTuple(values) {
|
|
62536
|
+
return values;
|
|
62537
|
+
}
|
|
62538
|
+
var WorkflowExecutionStatusValue2, WorkflowExecutionStatusSchema2, StepExecutionStatusValue2, StepExecutionStatusSchema2, TriggerTypeValue2, TriggerTypeSchema2, ExecutionTypeValue2, ExecutionTypeSchema2, WORKFLOW_EXECUTION_STATUSES2, STEP_EXECUTION_STATUSES2, TRIGGER_TYPES2, EXECUTION_TYPES2;
|
|
62539
|
+
var init_execution = __esm(() => {
|
|
62540
|
+
init_zod();
|
|
62541
|
+
WorkflowExecutionStatusValue2 = {
|
|
62542
|
+
CREATED: "created",
|
|
62543
|
+
PENDING: "pending",
|
|
62544
|
+
RUNNING: "running",
|
|
62545
|
+
WAITING: "waiting",
|
|
62546
|
+
COMPLETED: "completed",
|
|
62547
|
+
FAILED: "failed",
|
|
62548
|
+
CANCELLED: "cancelled"
|
|
62549
|
+
};
|
|
62550
|
+
WorkflowExecutionStatusSchema2 = exports_external.enum([
|
|
62551
|
+
WorkflowExecutionStatusValue2.CREATED,
|
|
62552
|
+
WorkflowExecutionStatusValue2.PENDING,
|
|
62553
|
+
WorkflowExecutionStatusValue2.RUNNING,
|
|
62554
|
+
WorkflowExecutionStatusValue2.WAITING,
|
|
62555
|
+
WorkflowExecutionStatusValue2.COMPLETED,
|
|
62556
|
+
WorkflowExecutionStatusValue2.FAILED,
|
|
62557
|
+
WorkflowExecutionStatusValue2.CANCELLED
|
|
62558
|
+
]);
|
|
62559
|
+
StepExecutionStatusValue2 = {
|
|
62560
|
+
PENDING: "pending",
|
|
62561
|
+
RUNNING: "running",
|
|
62562
|
+
SUCCESS: "success",
|
|
62563
|
+
FAILURE: "failure",
|
|
62564
|
+
WAITING: "waiting",
|
|
62565
|
+
SKIPPED: "skipped"
|
|
62566
|
+
};
|
|
62567
|
+
StepExecutionStatusSchema2 = exports_external.enum([
|
|
62568
|
+
StepExecutionStatusValue2.PENDING,
|
|
62569
|
+
StepExecutionStatusValue2.RUNNING,
|
|
62570
|
+
StepExecutionStatusValue2.SUCCESS,
|
|
62571
|
+
StepExecutionStatusValue2.FAILURE,
|
|
62572
|
+
StepExecutionStatusValue2.WAITING,
|
|
62573
|
+
StepExecutionStatusValue2.SKIPPED
|
|
62574
|
+
]);
|
|
62575
|
+
TriggerTypeValue2 = {
|
|
62576
|
+
MANUAL: "manual",
|
|
62577
|
+
API: "api",
|
|
62578
|
+
WEBHOOK: "webhook",
|
|
62579
|
+
SCHEDULE: "schedule",
|
|
62580
|
+
EMAIL: "email",
|
|
62581
|
+
EVAL: "eval",
|
|
62582
|
+
CLI: "cli"
|
|
62583
|
+
};
|
|
62584
|
+
TriggerTypeSchema2 = exports_external.enum([
|
|
62585
|
+
TriggerTypeValue2.MANUAL,
|
|
62586
|
+
TriggerTypeValue2.API,
|
|
62587
|
+
TriggerTypeValue2.WEBHOOK,
|
|
62588
|
+
TriggerTypeValue2.SCHEDULE,
|
|
62589
|
+
TriggerTypeValue2.EMAIL,
|
|
62590
|
+
TriggerTypeValue2.EVAL,
|
|
62591
|
+
TriggerTypeValue2.CLI
|
|
62592
|
+
]);
|
|
62593
|
+
ExecutionTypeValue2 = {
|
|
62594
|
+
PROD: "prod",
|
|
62595
|
+
EVAL: "eval",
|
|
62596
|
+
PLAYGROUND: "playground"
|
|
62597
|
+
};
|
|
62598
|
+
ExecutionTypeSchema2 = exports_external.enum([
|
|
62599
|
+
ExecutionTypeValue2.PROD,
|
|
62600
|
+
ExecutionTypeValue2.EVAL,
|
|
62601
|
+
ExecutionTypeValue2.PLAYGROUND
|
|
62602
|
+
]);
|
|
62603
|
+
WORKFLOW_EXECUTION_STATUSES2 = asTuple(WorkflowExecutionStatusSchema2.options);
|
|
62604
|
+
STEP_EXECUTION_STATUSES2 = asTuple(StepExecutionStatusSchema2.options);
|
|
62605
|
+
TRIGGER_TYPES2 = TriggerTypeSchema2.options;
|
|
62606
|
+
EXECUTION_TYPES2 = ExecutionTypeSchema2.options;
|
|
62607
|
+
});
|
|
62608
|
+
|
|
64995
62609
|
// ../types/src/workflow/workflow.ts
|
|
64996
62610
|
function suggestWorkflowName(raw) {
|
|
64997
62611
|
return raw.toLowerCase().replace(/[^a-z0-9_-]+/g, "-").replace(/^[_-]+|[_-]+$/g, "").slice(0, 64);
|
|
@@ -65072,11 +62686,11 @@ var init_workflow = __esm(() => {
|
|
|
65072
62686
|
ManualTriggerMethodSchema = exports_external.object({
|
|
65073
62687
|
type: exports_external.literal("manual"),
|
|
65074
62688
|
enabled: exports_external.boolean().optional(),
|
|
65075
|
-
inputSchema:
|
|
62689
|
+
inputSchema: JsonSchemaSchema2.optional()
|
|
65076
62690
|
});
|
|
65077
62691
|
ApiTriggerMethodSchema = exports_external.object({
|
|
65078
62692
|
type: exports_external.literal("api"),
|
|
65079
|
-
inputSchema:
|
|
62693
|
+
inputSchema: JsonSchemaSchema2.optional()
|
|
65080
62694
|
});
|
|
65081
62695
|
EmailTriggerMethodSchema = exports_external.object({
|
|
65082
62696
|
type: exports_external.literal("email"),
|
|
@@ -65115,8 +62729,8 @@ var init_workflow = __esm(() => {
|
|
|
65115
62729
|
yamlContent: exports_external.string(),
|
|
65116
62730
|
definition: WorkflowDefinitionSchema,
|
|
65117
62731
|
isCurrent: exports_external.boolean().default(true),
|
|
65118
|
-
createdAt:
|
|
65119
|
-
updatedAt:
|
|
62732
|
+
createdAt: TimestampSchema2,
|
|
62733
|
+
updatedAt: TimestampSchema2.optional(),
|
|
65120
62734
|
createdBy: exports_external.string()
|
|
65121
62735
|
});
|
|
65122
62736
|
CreateWorkflowDefinitionSchema = exports_external.object({
|
|
@@ -65298,14 +62912,14 @@ function isFileOutput(value) {
|
|
|
65298
62912
|
function isWorkflowResult(value) {
|
|
65299
62913
|
return value != null && typeof value === "object" && "files" in value && Array.isArray(value.files);
|
|
65300
62914
|
}
|
|
65301
|
-
var
|
|
62915
|
+
var WorkflowExecutionStatusSchema3, StepExecutionStatusSchema3, ScopeEntryTypeSchema, ScopeEntrySchema, ScopeStackSchema, StepResultSchema, ExecutionContextSchema, StepInputReferenceSchema, WorkflowExecutionSchema, StepExecutionSchema, ConnectorSchema, WorkflowFileOutputSchema, WorkflowResultSchema;
|
|
65302
62916
|
var init_execution2 = __esm(() => {
|
|
65303
62917
|
init_zod();
|
|
65304
62918
|
init_common();
|
|
65305
62919
|
init_execution();
|
|
65306
62920
|
init_workflow();
|
|
65307
|
-
|
|
65308
|
-
|
|
62921
|
+
WorkflowExecutionStatusSchema3 = WorkflowExecutionStatusSchema2;
|
|
62922
|
+
StepExecutionStatusSchema3 = StepExecutionStatusSchema2;
|
|
65309
62923
|
ScopeEntryTypeSchema = exports_external.enum([
|
|
65310
62924
|
"root",
|
|
65311
62925
|
"if-then",
|
|
@@ -65327,7 +62941,7 @@ var init_execution2 = __esm(() => {
|
|
|
65327
62941
|
ScopeStackSchema = exports_external.array(ScopeEntrySchema);
|
|
65328
62942
|
StepResultSchema = exports_external.object({
|
|
65329
62943
|
output: exports_external.unknown(),
|
|
65330
|
-
status:
|
|
62944
|
+
status: StepExecutionStatusSchema3
|
|
65331
62945
|
});
|
|
65332
62946
|
ExecutionContextSchema = exports_external.object({
|
|
65333
62947
|
input: exports_external.record(exports_external.string(), exports_external.unknown()),
|
|
@@ -65355,7 +62969,7 @@ var init_execution2 = __esm(() => {
|
|
|
65355
62969
|
triggerType: exports_external.string(),
|
|
65356
62970
|
triggerInput: exports_external.record(exports_external.string(), exports_external.unknown()).nullable(),
|
|
65357
62971
|
overrides: exports_external.object({ steps: exports_external.record(exports_external.string(), exports_external.record(exports_external.string(), exports_external.unknown())).optional() }).nullable().optional(),
|
|
65358
|
-
status:
|
|
62972
|
+
status: WorkflowExecutionStatusSchema3,
|
|
65359
62973
|
scopeStack: ScopeStackSchema,
|
|
65360
62974
|
currentStepIndex: exports_external.number(),
|
|
65361
62975
|
stepResults: exports_external.record(exports_external.string(), StepResultSchema).optional(),
|
|
@@ -65363,15 +62977,15 @@ var init_execution2 = __esm(() => {
|
|
|
65363
62977
|
error: exports_external.string().nullable(),
|
|
65364
62978
|
priority: exports_external.number().default(50),
|
|
65365
62979
|
leaseId: exports_external.string().nullable(),
|
|
65366
|
-
leaseExpiresAt:
|
|
62980
|
+
leaseExpiresAt: TimestampSchema2.nullable(),
|
|
65367
62981
|
workerId: exports_external.string().nullable(),
|
|
65368
62982
|
maxRetries: exports_external.number().default(0),
|
|
65369
62983
|
originalExecutionId: exports_external.string().nullable().optional(),
|
|
65370
62984
|
previousExecutionId: exports_external.string().nullable().optional(),
|
|
65371
62985
|
retryNumber: exports_external.number().default(0),
|
|
65372
|
-
createdAt:
|
|
65373
|
-
startedAt:
|
|
65374
|
-
completedAt:
|
|
62986
|
+
createdAt: TimestampSchema2,
|
|
62987
|
+
startedAt: TimestampSchema2.nullable(),
|
|
62988
|
+
completedAt: TimestampSchema2.nullable(),
|
|
65375
62989
|
createdBy: exports_external.string().nullable()
|
|
65376
62990
|
});
|
|
65377
62991
|
StepExecutionSchema = exports_external.object({
|
|
@@ -65388,12 +63002,12 @@ var init_execution2 = __esm(() => {
|
|
|
65388
63002
|
stepAttempt: exports_external.number().default(0),
|
|
65389
63003
|
inputData: exports_external.unknown().nullable(),
|
|
65390
63004
|
outputData: exports_external.unknown().nullable(),
|
|
65391
|
-
status:
|
|
63005
|
+
status: StepExecutionStatusSchema3,
|
|
65392
63006
|
error: exports_external.string().nullable(),
|
|
65393
63007
|
overrideMode: exports_external.enum(["skipped", "partial"]).nullable().optional(),
|
|
65394
63008
|
durationMs: exports_external.number().nullable(),
|
|
65395
|
-
startedAt:
|
|
65396
|
-
completedAt:
|
|
63009
|
+
startedAt: TimestampSchema2.nullable(),
|
|
63010
|
+
completedAt: TimestampSchema2.nullable()
|
|
65397
63011
|
});
|
|
65398
63012
|
ConnectorSchema = exports_external.object({
|
|
65399
63013
|
id: exports_external.string(),
|
|
@@ -65404,8 +63018,8 @@ var init_execution2 = __esm(() => {
|
|
|
65404
63018
|
config: exports_external.record(exports_external.string(), exports_external.unknown()),
|
|
65405
63019
|
inputSchema: exports_external.unknown().optional(),
|
|
65406
63020
|
outputSchema: exports_external.unknown().optional(),
|
|
65407
|
-
createdAt:
|
|
65408
|
-
updatedAt:
|
|
63021
|
+
createdAt: TimestampSchema2,
|
|
63022
|
+
updatedAt: TimestampSchema2.optional(),
|
|
65409
63023
|
createdBy: exports_external.string()
|
|
65410
63024
|
});
|
|
65411
63025
|
WorkflowFileOutputSchema = exports_external.object({
|
|
@@ -67177,7 +64791,7 @@ function fromBig(n, le = false) {
|
|
|
67177
64791
|
return { h: Number(n & U32_MASK64), l: Number(n >> _32n & U32_MASK64) };
|
|
67178
64792
|
return { h: Number(n >> _32n & U32_MASK64) | 0, l: Number(n & U32_MASK64) | 0 };
|
|
67179
64793
|
}
|
|
67180
|
-
function
|
|
64794
|
+
function split(lst, le = false) {
|
|
67181
64795
|
const len = lst.length;
|
|
67182
64796
|
let Ah = new Uint32Array(len);
|
|
67183
64797
|
let Al = new Uint32Array(len);
|
|
@@ -67357,7 +64971,7 @@ var init_sha2 = __esm(() => {
|
|
|
67357
64971
|
super(28);
|
|
67358
64972
|
}
|
|
67359
64973
|
};
|
|
67360
|
-
K512 = /* @__PURE__ */ (() =>
|
|
64974
|
+
K512 = /* @__PURE__ */ (() => split([
|
|
67361
64975
|
"0x428a2f98d728ae22",
|
|
67362
64976
|
"0x7137449123ef65cd",
|
|
67363
64977
|
"0xb5c0fbcfec4d3b2f",
|
|
@@ -67746,11 +65360,11 @@ function walkGrammar(node, parts) {
|
|
|
67746
65360
|
}
|
|
67747
65361
|
return current;
|
|
67748
65362
|
}
|
|
67749
|
-
function normalizeTemplate(
|
|
67750
|
-
return
|
|
65363
|
+
function normalizeTemplate(template) {
|
|
65364
|
+
return template.endsWith("/") ? template.slice(0, -1) : template;
|
|
67751
65365
|
}
|
|
67752
|
-
function renderTemplate(
|
|
67753
|
-
return normalizeTemplate(
|
|
65366
|
+
function renderTemplate(template, params) {
|
|
65367
|
+
return normalizeTemplate(template).split("/").flatMap((part) => {
|
|
67754
65368
|
if (!part.startsWith(":")) {
|
|
67755
65369
|
return [part];
|
|
67756
65370
|
}
|
|
@@ -67765,31 +65379,31 @@ function renderTemplate(template2, params) {
|
|
|
67765
65379
|
return [assertSegment(String(name), value)];
|
|
67766
65380
|
});
|
|
67767
65381
|
}
|
|
67768
|
-
function buildS3Path(tenantId,
|
|
65382
|
+
function buildS3Path(tenantId, template, params) {
|
|
67769
65383
|
const tenant = assertSegment("tenantId", tenantId);
|
|
67770
|
-
const parts = renderTemplate(
|
|
65384
|
+
const parts = renderTemplate(template, params);
|
|
67771
65385
|
const node = walkGrammar(S3_PATH_GRAMMAR, parts);
|
|
67772
|
-
if (
|
|
67773
|
-
throw new Error(`S3 path leaf cannot have a trailing slash: ${JSON.stringify(
|
|
65386
|
+
if (template.endsWith("/") && node === PATH_LEAF) {
|
|
65387
|
+
throw new Error(`S3 path leaf cannot have a trailing slash: ${JSON.stringify(template)}`);
|
|
67774
65388
|
}
|
|
67775
65389
|
const path = ["tenants", tenant, ...parts].join("/");
|
|
67776
|
-
return
|
|
65390
|
+
return template.endsWith("/") ? `${path}/` : path;
|
|
67777
65391
|
}
|
|
67778
|
-
function buildS3PathSuffix(
|
|
67779
|
-
const parts = renderTemplate(
|
|
65392
|
+
function buildS3PathSuffix(template, params) {
|
|
65393
|
+
const parts = renderTemplate(template, params);
|
|
67780
65394
|
const node = walkGrammar(S3_PATH_GRAMMAR, parts);
|
|
67781
|
-
if (
|
|
67782
|
-
throw new Error(`S3 path leaf cannot have a trailing slash: ${JSON.stringify(
|
|
65395
|
+
if (template.endsWith("/") && node === PATH_LEAF) {
|
|
65396
|
+
throw new Error(`S3 path leaf cannot have a trailing slash: ${JSON.stringify(template)}`);
|
|
67783
65397
|
}
|
|
67784
65398
|
const path = parts.join("/");
|
|
67785
|
-
return
|
|
65399
|
+
return template.endsWith("/") ? `${path}/` : path;
|
|
67786
65400
|
}
|
|
67787
65401
|
function stripTenantPrefix(key) {
|
|
67788
65402
|
return key.replace(TENANT_PREFIX_RX, "");
|
|
67789
65403
|
}
|
|
67790
|
-
function matchS3Path(
|
|
65404
|
+
function matchS3Path(template, key) {
|
|
67791
65405
|
const keyParts = stripTenantPrefix(key).split("/");
|
|
67792
|
-
const templateParts = normalizeTemplate(
|
|
65406
|
+
const templateParts = normalizeTemplate(template).split("/");
|
|
67793
65407
|
const params = {};
|
|
67794
65408
|
let keyIndex = 0;
|
|
67795
65409
|
for (let templateIndex = 0;templateIndex < templateParts.length; templateIndex += 1) {
|
|
@@ -67842,23 +65456,23 @@ function createBuilder(grammarNode, prefixSegments, boundTenantId) {
|
|
|
67842
65456
|
}
|
|
67843
65457
|
return assertSegment("tenantId", tenantId);
|
|
67844
65458
|
};
|
|
67845
|
-
const build = (
|
|
65459
|
+
const build = (template, params) => {
|
|
67846
65460
|
const tenant = resolveTenantId(params);
|
|
67847
|
-
const parts = renderTemplate(
|
|
65461
|
+
const parts = renderTemplate(template, params ?? {});
|
|
67848
65462
|
const node = walkGrammar(grammarNode, parts);
|
|
67849
|
-
if (
|
|
67850
|
-
throw new Error(`S3 path leaf cannot have a trailing slash: ${JSON.stringify(
|
|
65463
|
+
if (template.endsWith("/") && node === PATH_LEAF) {
|
|
65464
|
+
throw new Error(`S3 path leaf cannot have a trailing slash: ${JSON.stringify(template)}`);
|
|
67851
65465
|
}
|
|
67852
65466
|
const path = ["tenants", tenant, ...prefixSegments, ...parts].join("/");
|
|
67853
|
-
return
|
|
65467
|
+
return template.endsWith("/") ? `${path}/` : path;
|
|
67854
65468
|
};
|
|
67855
65469
|
const builder = build;
|
|
67856
|
-
builder.at = (
|
|
65470
|
+
builder.at = (template, params) => {
|
|
67857
65471
|
const tenant = resolveTenantId(params);
|
|
67858
|
-
const parts = renderTemplate(
|
|
65472
|
+
const parts = renderTemplate(template, params ?? {});
|
|
67859
65473
|
const nextNode = walkGrammar(grammarNode, parts);
|
|
67860
|
-
if (
|
|
67861
|
-
throw new Error(`S3 path leaf cannot have a trailing slash: ${JSON.stringify(
|
|
65474
|
+
if (template.endsWith("/") && nextNode === PATH_LEAF) {
|
|
65475
|
+
throw new Error(`S3 path leaf cannot have a trailing slash: ${JSON.stringify(template)}`);
|
|
67862
65476
|
}
|
|
67863
65477
|
return createBuilder(nextNode, [...prefixSegments, ...parts], tenant);
|
|
67864
65478
|
};
|
|
@@ -68222,7 +65836,7 @@ __export(exports_src, {
|
|
|
68222
65836
|
SplitConfigSchema: () => SplitConfigSchema,
|
|
68223
65837
|
SpanTypes: () => SpanTypes,
|
|
68224
65838
|
SpanKindMap: () => SpanKindMap,
|
|
68225
|
-
SpanKind: () =>
|
|
65839
|
+
SpanKind: () => SpanKind,
|
|
68226
65840
|
SourceVersionRefSchema: () => SourceVersionRefSchema,
|
|
68227
65841
|
SourceSecretsFileSchema: () => SourceSecretsFileSchema,
|
|
68228
65842
|
SourcePackageTypeSchema: () => SourcePackageTypeSchema,
|
|
@@ -68427,8 +66041,8 @@ __export(exports_src, {
|
|
|
68427
66041
|
});
|
|
68428
66042
|
var init_src = __esm(() => {
|
|
68429
66043
|
init_core3();
|
|
68430
|
-
|
|
68431
|
-
|
|
66044
|
+
init_processor();
|
|
66045
|
+
init_parser();
|
|
68432
66046
|
init_otel();
|
|
68433
66047
|
init_execution_row();
|
|
68434
66048
|
init_run_expand();
|
|
@@ -69341,7 +66955,7 @@ var require_foldFlowLines = __commonJS((exports) => {
|
|
|
69341
66955
|
else
|
|
69342
66956
|
end = lineWidth - indentAtStart;
|
|
69343
66957
|
}
|
|
69344
|
-
let
|
|
66958
|
+
let split2 = undefined;
|
|
69345
66959
|
let prev = undefined;
|
|
69346
66960
|
let overflow = false;
|
|
69347
66961
|
let i = -1;
|
|
@@ -69375,20 +66989,20 @@ var require_foldFlowLines = __commonJS((exports) => {
|
|
|
69375
66989
|
if (mode === FOLD_BLOCK)
|
|
69376
66990
|
i = consumeMoreIndentedLines(text, i, indent.length);
|
|
69377
66991
|
end = i + indent.length + endStep;
|
|
69378
|
-
|
|
66992
|
+
split2 = undefined;
|
|
69379
66993
|
} else {
|
|
69380
66994
|
if (ch === " " && prev && prev !== " " && prev !== `
|
|
69381
66995
|
` && prev !== "\t") {
|
|
69382
66996
|
const next = text[i + 1];
|
|
69383
66997
|
if (next && next !== " " && next !== `
|
|
69384
66998
|
` && next !== "\t")
|
|
69385
|
-
|
|
66999
|
+
split2 = i;
|
|
69386
67000
|
}
|
|
69387
67001
|
if (i >= end) {
|
|
69388
|
-
if (
|
|
69389
|
-
folds.push(
|
|
69390
|
-
end =
|
|
69391
|
-
|
|
67002
|
+
if (split2) {
|
|
67003
|
+
folds.push(split2);
|
|
67004
|
+
end = split2 + endStep;
|
|
67005
|
+
split2 = undefined;
|
|
69392
67006
|
} else if (mode === FOLD_QUOTED) {
|
|
69393
67007
|
while (prev === " " || prev === "\t") {
|
|
69394
67008
|
prev = ch;
|
|
@@ -69401,7 +67015,7 @@ var require_foldFlowLines = __commonJS((exports) => {
|
|
|
69401
67015
|
folds.push(j);
|
|
69402
67016
|
escapedFolds[j] = true;
|
|
69403
67017
|
end = j + endStep;
|
|
69404
|
-
|
|
67018
|
+
split2 = undefined;
|
|
69405
67019
|
} else {
|
|
69406
67020
|
overflow = true;
|
|
69407
67021
|
}
|
|
@@ -70035,7 +67649,7 @@ var require_merge = __commonJS((exports) => {
|
|
|
70035
67649
|
var identity = require_identity();
|
|
70036
67650
|
var Scalar = require_Scalar();
|
|
70037
67651
|
var MERGE_KEY = "<<";
|
|
70038
|
-
var
|
|
67652
|
+
var merge2 = {
|
|
70039
67653
|
identify: (value) => value === MERGE_KEY || typeof value === "symbol" && value.description === MERGE_KEY,
|
|
70040
67654
|
default: "key",
|
|
70041
67655
|
tag: "tag:yaml.org,2002:merge",
|
|
@@ -70045,7 +67659,7 @@ var require_merge = __commonJS((exports) => {
|
|
|
70045
67659
|
}),
|
|
70046
67660
|
stringify: () => MERGE_KEY
|
|
70047
67661
|
};
|
|
70048
|
-
var isMergeKey = (ctx, key) => (
|
|
67662
|
+
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);
|
|
70049
67663
|
function addMergeToJSMap(ctx, map2, value) {
|
|
70050
67664
|
const source = resolveAliasValue(ctx, value);
|
|
70051
67665
|
if (identity.isSeq(source))
|
|
@@ -70084,21 +67698,21 @@ var require_merge = __commonJS((exports) => {
|
|
|
70084
67698
|
}
|
|
70085
67699
|
exports.addMergeToJSMap = addMergeToJSMap;
|
|
70086
67700
|
exports.isMergeKey = isMergeKey;
|
|
70087
|
-
exports.merge =
|
|
67701
|
+
exports.merge = merge2;
|
|
70088
67702
|
});
|
|
70089
67703
|
|
|
70090
67704
|
// node_modules/yaml/dist/nodes/addPairToJSMap.js
|
|
70091
67705
|
var require_addPairToJSMap = __commonJS((exports) => {
|
|
70092
67706
|
var log = require_log();
|
|
70093
|
-
var
|
|
67707
|
+
var merge2 = require_merge();
|
|
70094
67708
|
var stringify = require_stringify();
|
|
70095
67709
|
var identity = require_identity();
|
|
70096
67710
|
var toJS = require_toJS();
|
|
70097
67711
|
function addPairToJSMap(ctx, map2, { key, value }) {
|
|
70098
67712
|
if (identity.isNode(key) && key.addToJSMap)
|
|
70099
67713
|
key.addToJSMap(ctx, map2, value);
|
|
70100
|
-
else if (
|
|
70101
|
-
|
|
67714
|
+
else if (merge2.isMergeKey(ctx, key))
|
|
67715
|
+
merge2.addMergeToJSMap(ctx, map2, value);
|
|
70102
67716
|
else {
|
|
70103
67717
|
const jsKey = toJS.toJS(key, "", ctx);
|
|
70104
67718
|
if (map2 instanceof Map) {
|
|
@@ -71374,7 +68988,7 @@ var require_schema3 = __commonJS((exports) => {
|
|
|
71374
68988
|
var bool = require_bool2();
|
|
71375
68989
|
var float = require_float2();
|
|
71376
68990
|
var int2 = require_int2();
|
|
71377
|
-
var
|
|
68991
|
+
var merge2 = require_merge();
|
|
71378
68992
|
var omap = require_omap();
|
|
71379
68993
|
var pairs = require_pairs();
|
|
71380
68994
|
var set2 = require_set();
|
|
@@ -71394,7 +69008,7 @@ var require_schema3 = __commonJS((exports) => {
|
|
|
71394
69008
|
float.floatExp,
|
|
71395
69009
|
float.float,
|
|
71396
69010
|
binary.binary,
|
|
71397
|
-
|
|
69011
|
+
merge2.merge,
|
|
71398
69012
|
omap.omap,
|
|
71399
69013
|
pairs.pairs,
|
|
71400
69014
|
set2.set,
|
|
@@ -71417,7 +69031,7 @@ var require_tags = __commonJS((exports) => {
|
|
|
71417
69031
|
var schema = require_schema();
|
|
71418
69032
|
var schema$1 = require_schema2();
|
|
71419
69033
|
var binary = require_binary();
|
|
71420
|
-
var
|
|
69034
|
+
var merge2 = require_merge();
|
|
71421
69035
|
var omap = require_omap();
|
|
71422
69036
|
var pairs = require_pairs();
|
|
71423
69037
|
var schema$2 = require_schema3();
|
|
@@ -71442,7 +69056,7 @@ var require_tags = __commonJS((exports) => {
|
|
|
71442
69056
|
intOct: int2.intOct,
|
|
71443
69057
|
intTime: timestamp.intTime,
|
|
71444
69058
|
map: map2.map,
|
|
71445
|
-
merge:
|
|
69059
|
+
merge: merge2.merge,
|
|
71446
69060
|
null: _null4.nullTag,
|
|
71447
69061
|
omap: omap.omap,
|
|
71448
69062
|
pairs: pairs.pairs,
|
|
@@ -71452,7 +69066,7 @@ var require_tags = __commonJS((exports) => {
|
|
|
71452
69066
|
};
|
|
71453
69067
|
var coreKnownTags = {
|
|
71454
69068
|
"tag:yaml.org,2002:binary": binary.binary,
|
|
71455
|
-
"tag:yaml.org,2002:merge":
|
|
69069
|
+
"tag:yaml.org,2002:merge": merge2.merge,
|
|
71456
69070
|
"tag:yaml.org,2002:omap": omap.omap,
|
|
71457
69071
|
"tag:yaml.org,2002:pairs": pairs.pairs,
|
|
71458
69072
|
"tag:yaml.org,2002:set": set2.set,
|
|
@@ -71461,7 +69075,7 @@ var require_tags = __commonJS((exports) => {
|
|
|
71461
69075
|
function getTags(customTags, schemaName, addMergeTag) {
|
|
71462
69076
|
const schemaTags = schemas3.get(schemaName);
|
|
71463
69077
|
if (schemaTags && !customTags) {
|
|
71464
|
-
return addMergeTag && !schemaTags.includes(
|
|
69078
|
+
return addMergeTag && !schemaTags.includes(merge2.merge) ? schemaTags.concat(merge2.merge) : schemaTags.slice();
|
|
71465
69079
|
}
|
|
71466
69080
|
let tags = schemaTags;
|
|
71467
69081
|
if (!tags) {
|
|
@@ -71479,7 +69093,7 @@ var require_tags = __commonJS((exports) => {
|
|
|
71479
69093
|
tags = customTags(tags.slice());
|
|
71480
69094
|
}
|
|
71481
69095
|
if (addMergeTag)
|
|
71482
|
-
tags = tags.concat(
|
|
69096
|
+
tags = tags.concat(merge2.merge);
|
|
71483
69097
|
return tags.reduce((tags2, tag) => {
|
|
71484
69098
|
const tagObj = typeof tag === "string" ? tagsByName[tag] : tag;
|
|
71485
69099
|
if (!tagObj) {
|
|
@@ -71506,11 +69120,11 @@ var require_Schema = __commonJS((exports) => {
|
|
|
71506
69120
|
var sortMapEntriesByKey = (a, b) => a.key < b.key ? -1 : a.key > b.key ? 1 : 0;
|
|
71507
69121
|
|
|
71508
69122
|
class Schema {
|
|
71509
|
-
constructor({ compat: compat2, customTags, merge:
|
|
69123
|
+
constructor({ compat: compat2, customTags, merge: merge2, resolveKnownTags, schema, sortMapEntries, toStringDefaults }) {
|
|
71510
69124
|
this.compat = Array.isArray(compat2) ? tags.getTags(compat2, "compat") : compat2 ? tags.getTags(null, compat2) : null;
|
|
71511
69125
|
this.name = typeof schema === "string" && schema || "core";
|
|
71512
69126
|
this.knownTags = resolveKnownTags ? tags.coreKnownTags : {};
|
|
71513
|
-
this.tags = tags.getTags(customTags, this.name,
|
|
69127
|
+
this.tags = tags.getTags(customTags, this.name, merge2);
|
|
71514
69128
|
this.toStringOptions = toStringDefaults ?? null;
|
|
71515
69129
|
Object.defineProperty(this, identity.MAP, { value: map2.map });
|
|
71516
69130
|
Object.defineProperty(this, identity.SCALAR, { value: string4.string });
|
|
@@ -72733,13 +70347,13 @@ var require_resolve_block_scalar = __commonJS((exports) => {
|
|
|
72733
70347
|
return { mode, indent, chomp, comment, length };
|
|
72734
70348
|
}
|
|
72735
70349
|
function splitLines(source) {
|
|
72736
|
-
const
|
|
72737
|
-
const first =
|
|
70350
|
+
const split2 = source.split(/\n( *)/);
|
|
70351
|
+
const first = split2[0];
|
|
72738
70352
|
const m = first.match(/^( *)/);
|
|
72739
70353
|
const line0 = m?.[1] ? [m[1], first.slice(m[1].length)] : ["", first];
|
|
72740
70354
|
const lines = [line0];
|
|
72741
|
-
for (let i = 1;i <
|
|
72742
|
-
lines.push([
|
|
70355
|
+
for (let i = 1;i < split2.length; i += 2)
|
|
70356
|
+
lines.push([split2[i], split2[i + 1]]);
|
|
72743
70357
|
return lines;
|
|
72744
70358
|
}
|
|
72745
70359
|
exports.resolveBlockScalar = resolveBlockScalar;
|
|
@@ -75753,7 +73367,7 @@ var init_main = __esm(() => {
|
|
|
75753
73367
|
});
|
|
75754
73368
|
|
|
75755
73369
|
// ../../node_modules/sisteransi/src/index.js
|
|
75756
|
-
var
|
|
73370
|
+
var require_src = __commonJS((exports, module) => {
|
|
75757
73371
|
var ESC2 = "\x1B";
|
|
75758
73372
|
var CSI2 = `${ESC2}[`;
|
|
75759
73373
|
var beep = "\x07";
|
|
@@ -76096,7 +73710,7 @@ var import_sisteransi, G, K, h, Y, k, A = (r) => ("columns" in r) && typeof r.co
|
|
|
76096
73710
|
}, Q, X, Z, et, it, rt, nt, ot, ut, at, ht;
|
|
76097
73711
|
var init_dist3 = __esm(() => {
|
|
76098
73712
|
init_main();
|
|
76099
|
-
import_sisteransi = __toESM(
|
|
73713
|
+
import_sisteransi = __toESM(require_src(), 1);
|
|
76100
73714
|
G = ["up", "down", "left", "right", "space", "enter", "cancel"];
|
|
76101
73715
|
K = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
|
|
76102
73716
|
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)}` } } };
|
|
@@ -77439,7 +75053,7 @@ var init_dist4 = __esm(() => {
|
|
|
77439
75053
|
init_dist3();
|
|
77440
75054
|
init_main();
|
|
77441
75055
|
init_dist2();
|
|
77442
|
-
import_sisteransi2 = __toESM(
|
|
75056
|
+
import_sisteransi2 = __toESM(require_src(), 1);
|
|
77443
75057
|
tt2 = te();
|
|
77444
75058
|
_t = w2("◆", "*");
|
|
77445
75059
|
ot2 = w2("■", "x");
|
|
@@ -170931,7 +168545,7 @@ var require3, __filename2, __dirname2, __create2, __defProp3, __getOwnPropDesc,
|
|
|
170931
168545
|
__defProp3(to5, key2, { get: () => from[key2], enumerable: !(desc = __getOwnPropDesc(from, key2)) || desc.enumerable });
|
|
170932
168546
|
}
|
|
170933
168547
|
return to5;
|
|
170934
|
-
}, __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,
|
|
168548
|
+
}, __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 {
|
|
170935
168549
|
diff(oldStr, newStr, options8 = {}) {
|
|
170936
168550
|
let callback;
|
|
170937
168551
|
if (typeof options8 === "function") {
|
|
@@ -171953,7 +169567,7 @@ var init_prettier = __esm(() => {
|
|
|
171953
169567
|
};
|
|
171954
169568
|
}
|
|
171955
169569
|
});
|
|
171956
|
-
|
|
169570
|
+
require_utils2 = __commonJS2({
|
|
171957
169571
|
"node_modules/braces/lib/utils.js"(exports) {
|
|
171958
169572
|
exports.isInteger = (num) => {
|
|
171959
169573
|
if (typeof num === "number") {
|
|
@@ -172042,7 +169656,7 @@ var init_prettier = __esm(() => {
|
|
|
172042
169656
|
});
|
|
172043
169657
|
require_stringify2 = __commonJS2({
|
|
172044
169658
|
"node_modules/braces/lib/stringify.js"(exports, module) {
|
|
172045
|
-
var utils2 =
|
|
169659
|
+
var utils2 = require_utils2();
|
|
172046
169660
|
module.exports = (ast, options8 = {}) => {
|
|
172047
169661
|
const stringify2 = (node, parent = {}) => {
|
|
172048
169662
|
const invalidBlock = options8.escapeInvalid && utils2.isInvalidBrace(parent);
|
|
@@ -172496,7 +170110,7 @@ var init_prettier = __esm(() => {
|
|
|
172496
170110
|
require_compile2 = __commonJS2({
|
|
172497
170111
|
"node_modules/braces/lib/compile.js"(exports, module) {
|
|
172498
170112
|
var fill2 = require_fill_range();
|
|
172499
|
-
var utils2 =
|
|
170113
|
+
var utils2 = require_utils2();
|
|
172500
170114
|
var compile = (ast, options8 = {}) => {
|
|
172501
170115
|
const walk2 = (node, parent = {}) => {
|
|
172502
170116
|
const invalidBlock = utils2.isInvalidBrace(parent);
|
|
@@ -172546,7 +170160,7 @@ var init_prettier = __esm(() => {
|
|
|
172546
170160
|
"node_modules/braces/lib/expand.js"(exports, module) {
|
|
172547
170161
|
var fill2 = require_fill_range();
|
|
172548
170162
|
var stringify2 = require_stringify2();
|
|
172549
|
-
var utils2 =
|
|
170163
|
+
var utils2 = require_utils2();
|
|
172550
170164
|
var append = (queue = "", stash = "", enclose = false) => {
|
|
172551
170165
|
const result = [];
|
|
172552
170166
|
queue = [].concat(queue);
|
|
@@ -174745,8 +172359,8 @@ var init_prettier = __esm(() => {
|
|
|
174745
172359
|
var Stream = __require2("stream");
|
|
174746
172360
|
var PassThrough = Stream.PassThrough;
|
|
174747
172361
|
var slice = Array.prototype.slice;
|
|
174748
|
-
module.exports =
|
|
174749
|
-
function
|
|
172362
|
+
module.exports = merge2;
|
|
172363
|
+
function merge2() {
|
|
174750
172364
|
const streamsQueue = [];
|
|
174751
172365
|
const args = slice.call(arguments);
|
|
174752
172366
|
let merging = false;
|
|
@@ -174860,9 +172474,9 @@ var init_prettier = __esm(() => {
|
|
|
174860
172474
|
"node_modules/fast-glob/out/utils/stream.js"(exports) {
|
|
174861
172475
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
174862
172476
|
exports.merge = undefined;
|
|
174863
|
-
var
|
|
172477
|
+
var merge2 = require_merge2();
|
|
174864
172478
|
function merge3(streams) {
|
|
174865
|
-
const mergedStream =
|
|
172479
|
+
const mergedStream = merge2(streams);
|
|
174866
172480
|
streams.forEach((stream) => {
|
|
174867
172481
|
stream.once("error", (error52) => mergedStream.emit("error", error52));
|
|
174868
172482
|
});
|
|
@@ -174890,7 +172504,7 @@ var init_prettier = __esm(() => {
|
|
|
174890
172504
|
exports.isEmpty = isEmpty;
|
|
174891
172505
|
}
|
|
174892
172506
|
});
|
|
174893
|
-
|
|
172507
|
+
require_utils3 = __commonJS2({
|
|
174894
172508
|
"node_modules/fast-glob/out/utils/index.js"(exports) {
|
|
174895
172509
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
174896
172510
|
exports.string = exports.stream = exports.pattern = exports.path = exports.fs = exports.errno = exports.array = undefined;
|
|
@@ -174914,7 +172528,7 @@ var init_prettier = __esm(() => {
|
|
|
174914
172528
|
"node_modules/fast-glob/out/managers/tasks.js"(exports) {
|
|
174915
172529
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
174916
172530
|
exports.convertPatternGroupToTask = exports.convertPatternGroupsToTasks = exports.groupPatternsByBaseDirectory = exports.getNegativePatternsAsPositive = exports.getPositivePatterns = exports.convertPatternsToTasks = exports.generate = undefined;
|
|
174917
|
-
var utils2 =
|
|
172531
|
+
var utils2 = require_utils3();
|
|
174918
172532
|
function generate(input, settings) {
|
|
174919
172533
|
const patterns = processPatterns(input, settings);
|
|
174920
172534
|
const ignore = processPatterns(settings.ignore, settings);
|
|
@@ -175223,7 +172837,7 @@ var init_prettier = __esm(() => {
|
|
|
175223
172837
|
exports.createDirentFromStats = createDirentFromStats;
|
|
175224
172838
|
}
|
|
175225
172839
|
});
|
|
175226
|
-
|
|
172840
|
+
require_utils4 = __commonJS2({
|
|
175227
172841
|
"node_modules/@nodelib/fs.scandir/out/utils/index.js"(exports) {
|
|
175228
172842
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
175229
172843
|
exports.fs = undefined;
|
|
@@ -175251,7 +172865,7 @@ var init_prettier = __esm(() => {
|
|
|
175251
172865
|
var fsStat = require_out();
|
|
175252
172866
|
var rpl = require_run_parallel();
|
|
175253
172867
|
var constants_1 = require_constants3();
|
|
175254
|
-
var utils2 =
|
|
172868
|
+
var utils2 = require_utils4();
|
|
175255
172869
|
var common = require_common();
|
|
175256
172870
|
function read3(directory, settings, callback) {
|
|
175257
172871
|
if (!settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) {
|
|
@@ -175357,7 +172971,7 @@ var init_prettier = __esm(() => {
|
|
|
175357
172971
|
exports.readdir = exports.readdirWithFileTypes = exports.read = undefined;
|
|
175358
172972
|
var fsStat = require_out();
|
|
175359
172973
|
var constants_1 = require_constants3();
|
|
175360
|
-
var utils2 =
|
|
172974
|
+
var utils2 = require_utils4();
|
|
175361
172975
|
var common = require_common();
|
|
175362
172976
|
function read3(directory, settings) {
|
|
175363
172977
|
if (!settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) {
|
|
@@ -176137,7 +173751,7 @@ var init_prettier = __esm(() => {
|
|
|
176137
173751
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
176138
173752
|
var path15 = __require2("path");
|
|
176139
173753
|
var fsStat = require_out();
|
|
176140
|
-
var utils2 =
|
|
173754
|
+
var utils2 = require_utils3();
|
|
176141
173755
|
var Reader = class {
|
|
176142
173756
|
constructor(_settings) {
|
|
176143
173757
|
this._settings = _settings;
|
|
@@ -176261,7 +173875,7 @@ var init_prettier = __esm(() => {
|
|
|
176261
173875
|
require_matcher = __commonJS2({
|
|
176262
173876
|
"node_modules/fast-glob/out/providers/matchers/matcher.js"(exports) {
|
|
176263
173877
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
176264
|
-
var utils2 =
|
|
173878
|
+
var utils2 = require_utils3();
|
|
176265
173879
|
var Matcher = class {
|
|
176266
173880
|
constructor(_patterns, _settings, _micromatchOptions) {
|
|
176267
173881
|
this._patterns = _patterns;
|
|
@@ -176343,7 +173957,7 @@ var init_prettier = __esm(() => {
|
|
|
176343
173957
|
require_deep = __commonJS2({
|
|
176344
173958
|
"node_modules/fast-glob/out/providers/filters/deep.js"(exports) {
|
|
176345
173959
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
176346
|
-
var utils2 =
|
|
173960
|
+
var utils2 = require_utils3();
|
|
176347
173961
|
var partial_1 = require_partial();
|
|
176348
173962
|
var DeepFilter = class {
|
|
176349
173963
|
constructor(_settings, _micromatchOptions) {
|
|
@@ -176405,7 +174019,7 @@ var init_prettier = __esm(() => {
|
|
|
176405
174019
|
require_entry = __commonJS2({
|
|
176406
174020
|
"node_modules/fast-glob/out/providers/filters/entry.js"(exports) {
|
|
176407
174021
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
176408
|
-
var utils2 =
|
|
174022
|
+
var utils2 = require_utils3();
|
|
176409
174023
|
var EntryFilter = class {
|
|
176410
174024
|
constructor(_settings, _micromatchOptions) {
|
|
176411
174025
|
this._settings = _settings;
|
|
@@ -176490,7 +174104,7 @@ var init_prettier = __esm(() => {
|
|
|
176490
174104
|
require_error2 = __commonJS2({
|
|
176491
174105
|
"node_modules/fast-glob/out/providers/filters/error.js"(exports) {
|
|
176492
174106
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
176493
|
-
var utils2 =
|
|
174107
|
+
var utils2 = require_utils3();
|
|
176494
174108
|
var ErrorFilter = class {
|
|
176495
174109
|
constructor(_settings) {
|
|
176496
174110
|
this._settings = _settings;
|
|
@@ -176508,7 +174122,7 @@ var init_prettier = __esm(() => {
|
|
|
176508
174122
|
require_entry2 = __commonJS2({
|
|
176509
174123
|
"node_modules/fast-glob/out/providers/transformers/entry.js"(exports) {
|
|
176510
174124
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
176511
|
-
var utils2 =
|
|
174125
|
+
var utils2 = require_utils3();
|
|
176512
174126
|
var EntryTransformer = class {
|
|
176513
174127
|
constructor(_settings) {
|
|
176514
174128
|
this._settings = _settings;
|
|
@@ -176776,7 +174390,7 @@ var init_prettier = __esm(() => {
|
|
|
176776
174390
|
var stream_1 = require_stream4();
|
|
176777
174391
|
var sync_1 = require_sync6();
|
|
176778
174392
|
var settings_1 = require_settings4();
|
|
176779
|
-
var utils2 =
|
|
174393
|
+
var utils2 = require_utils3();
|
|
176780
174394
|
async function FastGlob(source2, options8) {
|
|
176781
174395
|
assertPatternsInput(source2);
|
|
176782
174396
|
const works = getWorks(source2, async_1.default, options8);
|
|
@@ -177094,7 +174708,7 @@ var init_prettier = __esm(() => {
|
|
|
177094
174708
|
};
|
|
177095
174709
|
}
|
|
177096
174710
|
});
|
|
177097
|
-
|
|
174711
|
+
require_semver = __commonJS2({
|
|
177098
174712
|
"node_modules/semver/classes/semver.js"(exports, module) {
|
|
177099
174713
|
var debug = require_debug();
|
|
177100
174714
|
var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants4();
|
|
@@ -177364,7 +174978,7 @@ var init_prettier = __esm(() => {
|
|
|
177364
174978
|
});
|
|
177365
174979
|
require_compare = __commonJS2({
|
|
177366
174980
|
"node_modules/semver/functions/compare.js"(exports, module) {
|
|
177367
|
-
var SemVer =
|
|
174981
|
+
var SemVer = require_semver();
|
|
177368
174982
|
var compare = (a5, b8, loose) => new SemVer(a5, loose).compare(new SemVer(b8, loose));
|
|
177369
174983
|
module.exports = compare;
|
|
177370
174984
|
}
|
|
@@ -179097,7 +176711,7 @@ globstar while`, file2, fr10, pattern, pr8, swallowee);
|
|
|
179097
176711
|
};
|
|
179098
176712
|
}
|
|
179099
176713
|
});
|
|
179100
|
-
|
|
176714
|
+
require_src2 = __commonJS2({
|
|
179101
176715
|
"node_modules/editorconfig/src/index.js"(exports) {
|
|
179102
176716
|
var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P9, generator) {
|
|
179103
176717
|
return new (P9 || (P9 = Promise))(function(resolve32, reject) {
|
|
@@ -180560,7 +178174,7 @@ globstar while`, file2, fr10, pattern, pr8, swallowee);
|
|
|
180560
178174
|
mockable_default = mockable.mocked;
|
|
180561
178175
|
import_micromatch = __toESM2(require_micromatch(), 1);
|
|
180562
178176
|
partition_default = partition2;
|
|
180563
|
-
import_editorconfig = __toESM2(
|
|
178177
|
+
import_editorconfig = __toESM2(require_src2(), 1);
|
|
180564
178178
|
iterate_directory_up_default = iterateDirectoryUp;
|
|
180565
178179
|
FileSearcher = class extends Searcher {
|
|
180566
178180
|
findInDirectory = findFile;
|
|
@@ -184031,7 +181645,7 @@ var require_foldFlowLines2 = __commonJS((exports) => {
|
|
|
184031
181645
|
else
|
|
184032
181646
|
end = lineWidth - indentAtStart;
|
|
184033
181647
|
}
|
|
184034
|
-
let
|
|
181648
|
+
let split2 = undefined;
|
|
184035
181649
|
let prev = undefined;
|
|
184036
181650
|
let overflow = false;
|
|
184037
181651
|
let i5 = -1;
|
|
@@ -184065,20 +181679,20 @@ var require_foldFlowLines2 = __commonJS((exports) => {
|
|
|
184065
181679
|
if (mode === FOLD_BLOCK)
|
|
184066
181680
|
i5 = consumeMoreIndentedLines(text, i5, indent3.length);
|
|
184067
181681
|
end = i5 + indent3.length + endStep;
|
|
184068
|
-
|
|
181682
|
+
split2 = undefined;
|
|
184069
181683
|
} else {
|
|
184070
181684
|
if (ch2 === " " && prev && prev !== " " && prev !== `
|
|
184071
181685
|
` && prev !== "\t") {
|
|
184072
181686
|
const next = text[i5 + 1];
|
|
184073
181687
|
if (next && next !== " " && next !== `
|
|
184074
181688
|
` && next !== "\t")
|
|
184075
|
-
|
|
181689
|
+
split2 = i5;
|
|
184076
181690
|
}
|
|
184077
181691
|
if (i5 >= end) {
|
|
184078
|
-
if (
|
|
184079
|
-
folds.push(
|
|
184080
|
-
end =
|
|
184081
|
-
|
|
181692
|
+
if (split2) {
|
|
181693
|
+
folds.push(split2);
|
|
181694
|
+
end = split2 + endStep;
|
|
181695
|
+
split2 = undefined;
|
|
184082
181696
|
} else if (mode === FOLD_QUOTED) {
|
|
184083
181697
|
while (prev === " " || prev === "\t") {
|
|
184084
181698
|
prev = ch2;
|
|
@@ -184091,7 +181705,7 @@ var require_foldFlowLines2 = __commonJS((exports) => {
|
|
|
184091
181705
|
folds.push(j11);
|
|
184092
181706
|
escapedFolds[j11] = true;
|
|
184093
181707
|
end = j11 + endStep;
|
|
184094
|
-
|
|
181708
|
+
split2 = undefined;
|
|
184095
181709
|
} else {
|
|
184096
181710
|
overflow = true;
|
|
184097
181711
|
}
|
|
@@ -184725,7 +182339,7 @@ var require_merge3 = __commonJS((exports) => {
|
|
|
184725
182339
|
var identity = require_identity2();
|
|
184726
182340
|
var Scalar = require_Scalar2();
|
|
184727
182341
|
var MERGE_KEY = "<<";
|
|
184728
|
-
var
|
|
182342
|
+
var merge2 = {
|
|
184729
182343
|
identify: (value) => value === MERGE_KEY || typeof value === "symbol" && value.description === MERGE_KEY,
|
|
184730
182344
|
default: "key",
|
|
184731
182345
|
tag: "tag:yaml.org,2002:merge",
|
|
@@ -184735,7 +182349,7 @@ var require_merge3 = __commonJS((exports) => {
|
|
|
184735
182349
|
}),
|
|
184736
182350
|
stringify: () => MERGE_KEY
|
|
184737
182351
|
};
|
|
184738
|
-
var isMergeKey = (ctx, key2) => (
|
|
182352
|
+
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);
|
|
184739
182353
|
function addMergeToJSMap(ctx, map2, value) {
|
|
184740
182354
|
const source2 = resolveAliasValue(ctx, value);
|
|
184741
182355
|
if (identity.isSeq(source2))
|
|
@@ -184774,21 +182388,21 @@ var require_merge3 = __commonJS((exports) => {
|
|
|
184774
182388
|
}
|
|
184775
182389
|
exports.addMergeToJSMap = addMergeToJSMap;
|
|
184776
182390
|
exports.isMergeKey = isMergeKey;
|
|
184777
|
-
exports.merge =
|
|
182391
|
+
exports.merge = merge2;
|
|
184778
182392
|
});
|
|
184779
182393
|
|
|
184780
182394
|
// ../workflow-yaml/node_modules/yaml/dist/nodes/addPairToJSMap.js
|
|
184781
182395
|
var require_addPairToJSMap2 = __commonJS((exports) => {
|
|
184782
182396
|
var log = require_log2();
|
|
184783
|
-
var
|
|
182397
|
+
var merge2 = require_merge3();
|
|
184784
182398
|
var stringify = require_stringify3();
|
|
184785
182399
|
var identity = require_identity2();
|
|
184786
182400
|
var toJS = require_toJS2();
|
|
184787
182401
|
function addPairToJSMap(ctx, map2, { key: key2, value }) {
|
|
184788
182402
|
if (identity.isNode(key2) && key2.addToJSMap)
|
|
184789
182403
|
key2.addToJSMap(ctx, map2, value);
|
|
184790
|
-
else if (
|
|
184791
|
-
|
|
182404
|
+
else if (merge2.isMergeKey(ctx, key2))
|
|
182405
|
+
merge2.addMergeToJSMap(ctx, map2, value);
|
|
184792
182406
|
else {
|
|
184793
182407
|
const jsKey = toJS.toJS(key2, "", ctx);
|
|
184794
182408
|
if (map2 instanceof Map) {
|
|
@@ -186064,7 +183678,7 @@ var require_schema6 = __commonJS((exports) => {
|
|
|
186064
183678
|
var bool = require_bool4();
|
|
186065
183679
|
var float = require_float4();
|
|
186066
183680
|
var int2 = require_int4();
|
|
186067
|
-
var
|
|
183681
|
+
var merge2 = require_merge3();
|
|
186068
183682
|
var omap = require_omap2();
|
|
186069
183683
|
var pairs = require_pairs2();
|
|
186070
183684
|
var set2 = require_set2();
|
|
@@ -186084,7 +183698,7 @@ var require_schema6 = __commonJS((exports) => {
|
|
|
186084
183698
|
float.floatExp,
|
|
186085
183699
|
float.float,
|
|
186086
183700
|
binary.binary,
|
|
186087
|
-
|
|
183701
|
+
merge2.merge,
|
|
186088
183702
|
omap.omap,
|
|
186089
183703
|
pairs.pairs,
|
|
186090
183704
|
set2.set,
|
|
@@ -186107,7 +183721,7 @@ var require_tags2 = __commonJS((exports) => {
|
|
|
186107
183721
|
var schema = require_schema4();
|
|
186108
183722
|
var schema$1 = require_schema5();
|
|
186109
183723
|
var binary = require_binary2();
|
|
186110
|
-
var
|
|
183724
|
+
var merge2 = require_merge3();
|
|
186111
183725
|
var omap = require_omap2();
|
|
186112
183726
|
var pairs = require_pairs2();
|
|
186113
183727
|
var schema$2 = require_schema6();
|
|
@@ -186132,7 +183746,7 @@ var require_tags2 = __commonJS((exports) => {
|
|
|
186132
183746
|
intOct: int2.intOct,
|
|
186133
183747
|
intTime: timestamp.intTime,
|
|
186134
183748
|
map: map2.map,
|
|
186135
|
-
merge:
|
|
183749
|
+
merge: merge2.merge,
|
|
186136
183750
|
null: _null4.nullTag,
|
|
186137
183751
|
omap: omap.omap,
|
|
186138
183752
|
pairs: pairs.pairs,
|
|
@@ -186142,7 +183756,7 @@ var require_tags2 = __commonJS((exports) => {
|
|
|
186142
183756
|
};
|
|
186143
183757
|
var coreKnownTags = {
|
|
186144
183758
|
"tag:yaml.org,2002:binary": binary.binary,
|
|
186145
|
-
"tag:yaml.org,2002:merge":
|
|
183759
|
+
"tag:yaml.org,2002:merge": merge2.merge,
|
|
186146
183760
|
"tag:yaml.org,2002:omap": omap.omap,
|
|
186147
183761
|
"tag:yaml.org,2002:pairs": pairs.pairs,
|
|
186148
183762
|
"tag:yaml.org,2002:set": set2.set,
|
|
@@ -186151,7 +183765,7 @@ var require_tags2 = __commonJS((exports) => {
|
|
|
186151
183765
|
function getTags(customTags, schemaName, addMergeTag) {
|
|
186152
183766
|
const schemaTags = schemas3.get(schemaName);
|
|
186153
183767
|
if (schemaTags && !customTags) {
|
|
186154
|
-
return addMergeTag && !schemaTags.includes(
|
|
183768
|
+
return addMergeTag && !schemaTags.includes(merge2.merge) ? schemaTags.concat(merge2.merge) : schemaTags.slice();
|
|
186155
183769
|
}
|
|
186156
183770
|
let tags = schemaTags;
|
|
186157
183771
|
if (!tags) {
|
|
@@ -186169,7 +183783,7 @@ var require_tags2 = __commonJS((exports) => {
|
|
|
186169
183783
|
tags = customTags(tags.slice());
|
|
186170
183784
|
}
|
|
186171
183785
|
if (addMergeTag)
|
|
186172
|
-
tags = tags.concat(
|
|
183786
|
+
tags = tags.concat(merge2.merge);
|
|
186173
183787
|
return tags.reduce((tags2, tag) => {
|
|
186174
183788
|
const tagObj = typeof tag === "string" ? tagsByName[tag] : tag;
|
|
186175
183789
|
if (!tagObj) {
|
|
@@ -186196,11 +183810,11 @@ var require_Schema2 = __commonJS((exports) => {
|
|
|
186196
183810
|
var sortMapEntriesByKey = (a5, b8) => a5.key < b8.key ? -1 : a5.key > b8.key ? 1 : 0;
|
|
186197
183811
|
|
|
186198
183812
|
class Schema2 {
|
|
186199
|
-
constructor({ compat: compat2, customTags, merge:
|
|
183813
|
+
constructor({ compat: compat2, customTags, merge: merge2, resolveKnownTags, schema, sortMapEntries, toStringDefaults }) {
|
|
186200
183814
|
this.compat = Array.isArray(compat2) ? tags.getTags(compat2, "compat") : compat2 ? tags.getTags(null, compat2) : null;
|
|
186201
183815
|
this.name = typeof schema === "string" && schema || "core";
|
|
186202
183816
|
this.knownTags = resolveKnownTags ? tags.coreKnownTags : {};
|
|
186203
|
-
this.tags = tags.getTags(customTags, this.name,
|
|
183817
|
+
this.tags = tags.getTags(customTags, this.name, merge2);
|
|
186204
183818
|
this.toStringOptions = toStringDefaults ?? null;
|
|
186205
183819
|
Object.defineProperty(this, identity.MAP, { value: map2.map });
|
|
186206
183820
|
Object.defineProperty(this, identity.SCALAR, { value: string4.string });
|
|
@@ -187423,13 +185037,13 @@ var require_resolve_block_scalar2 = __commonJS((exports) => {
|
|
|
187423
185037
|
return { mode, indent: indent3, chomp, comment, length };
|
|
187424
185038
|
}
|
|
187425
185039
|
function splitLines2(source2) {
|
|
187426
|
-
const
|
|
187427
|
-
const first =
|
|
185040
|
+
const split2 = source2.split(/\n( *)/);
|
|
185041
|
+
const first = split2[0];
|
|
187428
185042
|
const m7 = first.match(/^( *)/);
|
|
187429
185043
|
const line0 = m7?.[1] ? [m7[1], first.slice(m7[1].length)] : ["", first];
|
|
187430
185044
|
const lines = [line0];
|
|
187431
|
-
for (let i5 = 1;i5 <
|
|
187432
|
-
lines.push([
|
|
185045
|
+
for (let i5 = 1;i5 < split2.length; i5 += 2)
|
|
185046
|
+
lines.push([split2[i5], split2[i5 + 1]]);
|
|
187433
185047
|
return lines;
|
|
187434
185048
|
}
|
|
187435
185049
|
exports.resolveBlockScalar = resolveBlockScalar;
|
|
@@ -190077,7 +187691,7 @@ import { fileURLToPath as fileURLToPath8 } from "url";
|
|
|
190077
187691
|
// package.json
|
|
190078
187692
|
var package_default = {
|
|
190079
187693
|
name: "@eigenpal/cli",
|
|
190080
|
-
version: "0.10.
|
|
187694
|
+
version: "0.10.4",
|
|
190081
187695
|
description: "Eigenpal CLI — author and run document workflows from your terminal. Agent-ready.",
|
|
190082
187696
|
keywords: [
|
|
190083
187697
|
"eigenpal",
|
|
@@ -191594,7 +189208,7 @@ async function pushCurrentBranch(input) {
|
|
|
191594
189208
|
function slugifyPackageSegment(value) {
|
|
191595
189209
|
return value.trim().toLowerCase().replace(/[^a-z0-9_-]+/g, "-").replace(/^-+|-+$/g, "");
|
|
191596
189210
|
}
|
|
191597
|
-
function packagePathForTemplate(
|
|
189211
|
+
function packagePathForTemplate(template, name) {
|
|
191598
189212
|
const slug = slugifyPackageSegment(name);
|
|
191599
189213
|
if (!slug)
|
|
191600
189214
|
throw new Error("Package name must include at least one letter or number.");
|
|
@@ -191606,7 +189220,7 @@ function packagePathForTemplate(template2, name) {
|
|
|
191606
189220
|
knowledge: "resources/knowledge",
|
|
191607
189221
|
evaluator: "evaluators"
|
|
191608
189222
|
};
|
|
191609
|
-
const root = rootByTemplate[
|
|
189223
|
+
const root = rootByTemplate[template];
|
|
191610
189224
|
if (!root)
|
|
191611
189225
|
throw new Error("Template must be agent, workflow, skill, rule, knowledge, or evaluator.");
|
|
191612
189226
|
return SourcePackagePathSchema.parse(`${root}/${slug}`);
|
|
@@ -192015,12 +189629,12 @@ function archivePackage(input) {
|
|
|
192015
189629
|
runGit(["archive", "--format=tar", `--output=${tarPath}`, input.ref, input.packagePath], {
|
|
192016
189630
|
cwd: input.gitRoot
|
|
192017
189631
|
});
|
|
192018
|
-
const
|
|
189632
|
+
const extract = spawnSync3("tar", ["-xf", tarPath, "--strip-components", String(input.packagePath.split("/").length)], {
|
|
192019
189633
|
cwd: input.outDir,
|
|
192020
189634
|
encoding: "utf8"
|
|
192021
189635
|
});
|
|
192022
|
-
if (
|
|
192023
|
-
throw new Error(
|
|
189636
|
+
if (extract.status !== 0)
|
|
189637
|
+
throw new Error(extract.stderr.trim() || "tar extraction failed");
|
|
192024
189638
|
} finally {
|
|
192025
189639
|
rmSync(path5.dirname(tarPath), { recursive: true, force: true });
|
|
192026
189640
|
}
|
|
@@ -192049,12 +189663,12 @@ async function tryHostedArchive(input) {
|
|
|
192049
189663
|
const tarPath = path5.join(mkdtempSyncCompat("eigenpal-hosted-source-"), "package.tar");
|
|
192050
189664
|
try {
|
|
192051
189665
|
writeFileSync4(tarPath, Buffer.from(await response.arrayBuffer()));
|
|
192052
|
-
const
|
|
189666
|
+
const extract = spawnSync3("tar", ["-xf", tarPath, "--strip-components", String(input.packagePath.split("/").length)], {
|
|
192053
189667
|
cwd: input.outDir,
|
|
192054
189668
|
encoding: "utf8"
|
|
192055
189669
|
});
|
|
192056
|
-
if (
|
|
192057
|
-
throw new Error(
|
|
189670
|
+
if (extract.status !== 0)
|
|
189671
|
+
throw new Error(extract.stderr.trim() || "tar extraction failed");
|
|
192058
189672
|
return true;
|
|
192059
189673
|
} finally {
|
|
192060
189674
|
rmSync(path5.dirname(tarPath), { recursive: true, force: true });
|
|
@@ -196409,18 +194023,18 @@ async function init(name, opts) {
|
|
|
196409
194023
|
if (existsSync11(target) && readdirSync2(target).length > 0) {
|
|
196410
194024
|
throw new Error(`Target directory ${relative(process.cwd(), target)} exists and is not empty.`);
|
|
196411
194025
|
}
|
|
196412
|
-
let
|
|
194026
|
+
let template;
|
|
196413
194027
|
if (opts.template) {
|
|
196414
194028
|
if (!isTemplateName(opts.template)) {
|
|
196415
194029
|
throw new Error(`Unknown template "${opts.template}". Available: ${TEMPLATE_NAMES.join(", ")}.`);
|
|
196416
194030
|
}
|
|
196417
|
-
|
|
194031
|
+
template = opts.template;
|
|
196418
194032
|
} else if (opts.yes || !process.stdin.isTTY) {
|
|
196419
|
-
|
|
194033
|
+
template = "blank";
|
|
196420
194034
|
} else {
|
|
196421
|
-
|
|
194035
|
+
template = await promptForTemplate();
|
|
196422
194036
|
}
|
|
196423
|
-
const sourceRoot = join2(resolveTemplatesRoot(),
|
|
194037
|
+
const sourceRoot = join2(resolveTemplatesRoot(), template);
|
|
196424
194038
|
if (!existsSync11(sourceRoot)) {
|
|
196425
194039
|
throw new Error(`Template directory missing on disk: ${sourceRoot}`);
|
|
196426
194040
|
}
|