@eigenpal/cli 0.10.33 → 0.10.34
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 +429 -2912
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -17245,147 +17245,8 @@ var init_provider_logo_data_generated = __esm(() => {
|
|
|
17245
17245
|
};
|
|
17246
17246
|
});
|
|
17247
17247
|
|
|
17248
|
-
// ../../node_modules/nanoid/url-alphabet/index.js
|
|
17249
|
-
var urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
17250
|
-
|
|
17251
|
-
// ../../node_modules/nanoid/index.js
|
|
17252
|
-
import { webcrypto as crypto } from "node:crypto";
|
|
17253
|
-
function fillPool(bytes) {
|
|
17254
|
-
if (!pool || pool.length < bytes) {
|
|
17255
|
-
pool = Buffer.allocUnsafe(bytes * POOL_SIZE_MULTIPLIER);
|
|
17256
|
-
crypto.getRandomValues(pool);
|
|
17257
|
-
poolOffset = 0;
|
|
17258
|
-
} else if (poolOffset + bytes > pool.length) {
|
|
17259
|
-
crypto.getRandomValues(pool);
|
|
17260
|
-
poolOffset = 0;
|
|
17261
|
-
}
|
|
17262
|
-
poolOffset += bytes;
|
|
17263
|
-
}
|
|
17264
|
-
function nanoid3(size = 21) {
|
|
17265
|
-
fillPool(size |= 0);
|
|
17266
|
-
let id = "";
|
|
17267
|
-
for (let i = poolOffset - size;i < poolOffset; i++) {
|
|
17268
|
-
id += urlAlphabet[pool[i] & 63];
|
|
17269
|
-
}
|
|
17270
|
-
return id;
|
|
17271
|
-
}
|
|
17272
|
-
var POOL_SIZE_MULTIPLIER = 128, pool, poolOffset;
|
|
17273
|
-
var init_nanoid = () => {};
|
|
17274
|
-
|
|
17275
|
-
// ../types/src/core/common.ts
|
|
17276
|
-
function generateId(prefix) {
|
|
17277
|
-
const id = nanoid3();
|
|
17278
|
-
return prefix ? `${prefix}_${id}` : id;
|
|
17279
|
-
}
|
|
17280
|
-
function toJsonSchema(schema) {
|
|
17281
|
-
return exports_external.toJSONSchema(schema, { target: "draft-7" });
|
|
17282
|
-
}
|
|
17283
|
-
var ID_PREFIXES, TimestampSchema, JsonSchemaSchema, BaseEntitySchema;
|
|
17284
|
-
var init_common = __esm(() => {
|
|
17285
|
-
init_nanoid();
|
|
17286
|
-
init_zod();
|
|
17287
|
-
ID_PREFIXES = {
|
|
17288
|
-
WORKFLOW: "wf",
|
|
17289
|
-
WORKFLOW_VERSION: "wfv",
|
|
17290
|
-
WORKFLOW_HISTORY: "wfh",
|
|
17291
|
-
JOB: "job",
|
|
17292
|
-
EXECUTION: "exec",
|
|
17293
|
-
STEP_EXECUTION: "step",
|
|
17294
|
-
FILE: "file",
|
|
17295
|
-
TEMPLATE: "tmpl",
|
|
17296
|
-
USER: "user",
|
|
17297
|
-
TENANT: "org",
|
|
17298
|
-
TENANT_INVITE: "inv",
|
|
17299
|
-
API_KEY: "eig",
|
|
17300
|
-
PROCESSOR: "proc",
|
|
17301
|
-
AI_PROVIDER: "aip",
|
|
17302
|
-
ACCOUNT: "acct",
|
|
17303
|
-
SESSION: "sess",
|
|
17304
|
-
VERIFICATION: "vrf",
|
|
17305
|
-
DATASET: "ds",
|
|
17306
|
-
DATASET_EXAMPLE: "dex",
|
|
17307
|
-
EXPERIMENT: "exp",
|
|
17308
|
-
EXPERIMENT_RUN: "exr",
|
|
17309
|
-
EXPERIMENT_EVALUATION: "evl",
|
|
17310
|
-
EVAL_EXAMPLE: "evx",
|
|
17311
|
-
EVAL_RESULT: "evr",
|
|
17312
|
-
EVAL_BATCH: "evb",
|
|
17313
|
-
RUN_REVIEW: "rev",
|
|
17314
|
-
RUN_REVIEW_CORRECTION: "rvc",
|
|
17315
|
-
TABLE_ROW: "row",
|
|
17316
|
-
FOLDER: "fldr",
|
|
17317
|
-
AGENT_WORKFLOW: "awf",
|
|
17318
|
-
AGENT_EXECUTION: "aex",
|
|
17319
|
-
AGENT_EXAMPLE: "aeg",
|
|
17320
|
-
AGENT_VERSION: "avr",
|
|
17321
|
-
AGENT_TRAINING_SESSION: "ats",
|
|
17322
|
-
AGENT_EXPERIMENT: "aexp",
|
|
17323
|
-
AGENT_EMAIL_ALIAS: "aea",
|
|
17324
|
-
AGENT_EMAIL_INVOCATION: "aei",
|
|
17325
|
-
AUTOMATION_TRIGGER: "atr",
|
|
17326
|
-
FILE_SOURCE_CONFIG: "fsc",
|
|
17327
|
-
WEBHOOK_ENDPOINT: "whep",
|
|
17328
|
-
WEBHOOK_EVENT: "whev",
|
|
17329
|
-
WEBHOOK_DELIVERY: "whdl",
|
|
17330
|
-
WEBHOOK_ATTEMPT: "what",
|
|
17331
|
-
PAID_ALLOWANCE_GRANT: "pag",
|
|
17332
|
-
PAID_ALLOWANCE_ADJUSTMENT: "paa",
|
|
17333
|
-
OCR_EXTRACTION_PIPELINE: "oep",
|
|
17334
|
-
SANDBOX_WS_TOKEN: "sws"
|
|
17335
|
-
};
|
|
17336
|
-
TimestampSchema = exports_external.union([exports_external.date(), exports_external.string().datetime()]).transform((val) => {
|
|
17337
|
-
return typeof val === "string" ? new Date(val) : val;
|
|
17338
|
-
});
|
|
17339
|
-
JsonSchemaSchema = exports_external.record(exports_external.string(), exports_external.unknown());
|
|
17340
|
-
BaseEntitySchema = exports_external.object({
|
|
17341
|
-
id: exports_external.string(),
|
|
17342
|
-
createdAt: TimestampSchema.optional(),
|
|
17343
|
-
updatedAt: TimestampSchema.optional()
|
|
17344
|
-
});
|
|
17345
|
-
});
|
|
17346
|
-
|
|
17347
|
-
// ../types/src/core/ids.ts
|
|
17348
|
-
var PROCESSOR_IDS, PARSER_IDS, INPUT_KINDS;
|
|
17349
|
-
var init_ids = __esm(() => {
|
|
17350
|
-
PROCESSOR_IDS = {
|
|
17351
|
-
MERGE: "builtin/merge",
|
|
17352
|
-
DOCUMENT_PARSER: "builtin/parser",
|
|
17353
|
-
EXTRACT: "builtin/extract",
|
|
17354
|
-
SPLIT: "builtin/split",
|
|
17355
|
-
SEGMENT: "builtin/segment",
|
|
17356
|
-
CLASSIFY: "builtin/classify",
|
|
17357
|
-
VISION: "builtin/vision",
|
|
17358
|
-
TEMPLATE: "builtin/template",
|
|
17359
|
-
PDF_EMBEDDER: "builtin/pdf-embedder",
|
|
17360
|
-
XLSX_TO_JSON: "builtin/xlsx-to-json"
|
|
17361
|
-
};
|
|
17362
|
-
PARSER_IDS = {
|
|
17363
|
-
KREUZBERG: "builtin/kreuzberg",
|
|
17364
|
-
OCR: "builtin/ocr",
|
|
17365
|
-
LLM_VISION: "builtin/llm-vision"
|
|
17366
|
-
};
|
|
17367
|
-
INPUT_KINDS = {
|
|
17368
|
-
DOCUMENT: "document",
|
|
17369
|
-
PAYLOAD: "payload"
|
|
17370
|
-
};
|
|
17371
|
-
});
|
|
17372
|
-
|
|
17373
|
-
// ../types/src/core/pagination.ts
|
|
17374
|
-
var PaginationParamsSchema, DEFAULT_PAGE_SIZE = 50, MAX_PAGE_SIZE = 100;
|
|
17375
|
-
var init_pagination = __esm(() => {
|
|
17376
|
-
init_zod();
|
|
17377
|
-
PaginationParamsSchema = exports_external.object({
|
|
17378
|
-
limit: exports_external.coerce.number().int().min(1).max(100).default(50),
|
|
17379
|
-
offset: exports_external.coerce.number().int().min(0).default(0)
|
|
17380
|
-
});
|
|
17381
|
-
});
|
|
17382
|
-
|
|
17383
17248
|
// ../types/src/core/index.ts
|
|
17384
|
-
var init_core3 =
|
|
17385
|
-
init_common();
|
|
17386
|
-
init_ids();
|
|
17387
|
-
init_pagination();
|
|
17388
|
-
});
|
|
17249
|
+
var init_core3 = () => {};
|
|
17389
17250
|
|
|
17390
17251
|
// ../types/src/files/legacy-boundary.ts
|
|
17391
17252
|
var LEGACY_FILE_REF_COMPATIBILITY;
|
|
@@ -17410,9 +17271,6 @@ var init_legacy_boundary = __esm(() => {
|
|
|
17410
17271
|
function isRuntimeFileRef(input) {
|
|
17411
17272
|
return RuntimeFileRefSchema.safeParse(input).success;
|
|
17412
17273
|
}
|
|
17413
|
-
function isFilePathDescriptor(input) {
|
|
17414
|
-
return FilePathDescriptorSchema.safeParse(input).success;
|
|
17415
|
-
}
|
|
17416
17274
|
function isResolvedProcessorFile(input) {
|
|
17417
17275
|
return ResolvedProcessorFileSchema.safeParse(input).success;
|
|
17418
17276
|
}
|
|
@@ -17635,2466 +17493,11 @@ var init_scoped_file_ref = __esm(() => {
|
|
|
17635
17493
|
]);
|
|
17636
17494
|
});
|
|
17637
17495
|
|
|
17638
|
-
// ../../node_modules/@opentelemetry/api/build/src/version.js
|
|
17639
|
-
var require_version = __commonJS((exports) => {
|
|
17640
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17641
|
-
exports.VERSION = undefined;
|
|
17642
|
-
exports.VERSION = "1.9.1";
|
|
17643
|
-
});
|
|
17644
|
-
|
|
17645
|
-
// ../../node_modules/@opentelemetry/api/build/src/internal/semver.js
|
|
17646
|
-
var require_semver = __commonJS((exports) => {
|
|
17647
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17648
|
-
exports.isCompatible = exports._makeCompatibilityCheck = undefined;
|
|
17649
|
-
var version_1 = require_version();
|
|
17650
|
-
var re = /^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;
|
|
17651
|
-
function _makeCompatibilityCheck(ownVersion) {
|
|
17652
|
-
const acceptedVersions = new Set([ownVersion]);
|
|
17653
|
-
const rejectedVersions = new Set;
|
|
17654
|
-
const myVersionMatch = ownVersion.match(re);
|
|
17655
|
-
if (!myVersionMatch) {
|
|
17656
|
-
return () => false;
|
|
17657
|
-
}
|
|
17658
|
-
const ownVersionParsed = {
|
|
17659
|
-
major: +myVersionMatch[1],
|
|
17660
|
-
minor: +myVersionMatch[2],
|
|
17661
|
-
patch: +myVersionMatch[3],
|
|
17662
|
-
prerelease: myVersionMatch[4]
|
|
17663
|
-
};
|
|
17664
|
-
if (ownVersionParsed.prerelease != null) {
|
|
17665
|
-
return function isExactmatch(globalVersion) {
|
|
17666
|
-
return globalVersion === ownVersion;
|
|
17667
|
-
};
|
|
17668
|
-
}
|
|
17669
|
-
function _reject(v) {
|
|
17670
|
-
rejectedVersions.add(v);
|
|
17671
|
-
return false;
|
|
17672
|
-
}
|
|
17673
|
-
function _accept(v) {
|
|
17674
|
-
acceptedVersions.add(v);
|
|
17675
|
-
return true;
|
|
17676
|
-
}
|
|
17677
|
-
return function isCompatible(globalVersion) {
|
|
17678
|
-
if (acceptedVersions.has(globalVersion)) {
|
|
17679
|
-
return true;
|
|
17680
|
-
}
|
|
17681
|
-
if (rejectedVersions.has(globalVersion)) {
|
|
17682
|
-
return false;
|
|
17683
|
-
}
|
|
17684
|
-
const globalVersionMatch = globalVersion.match(re);
|
|
17685
|
-
if (!globalVersionMatch) {
|
|
17686
|
-
return _reject(globalVersion);
|
|
17687
|
-
}
|
|
17688
|
-
const globalVersionParsed = {
|
|
17689
|
-
major: +globalVersionMatch[1],
|
|
17690
|
-
minor: +globalVersionMatch[2],
|
|
17691
|
-
patch: +globalVersionMatch[3],
|
|
17692
|
-
prerelease: globalVersionMatch[4]
|
|
17693
|
-
};
|
|
17694
|
-
if (globalVersionParsed.prerelease != null) {
|
|
17695
|
-
return _reject(globalVersion);
|
|
17696
|
-
}
|
|
17697
|
-
if (ownVersionParsed.major !== globalVersionParsed.major) {
|
|
17698
|
-
return _reject(globalVersion);
|
|
17699
|
-
}
|
|
17700
|
-
if (ownVersionParsed.major === 0) {
|
|
17701
|
-
if (ownVersionParsed.minor === globalVersionParsed.minor && ownVersionParsed.patch <= globalVersionParsed.patch) {
|
|
17702
|
-
return _accept(globalVersion);
|
|
17703
|
-
}
|
|
17704
|
-
return _reject(globalVersion);
|
|
17705
|
-
}
|
|
17706
|
-
if (ownVersionParsed.minor <= globalVersionParsed.minor) {
|
|
17707
|
-
return _accept(globalVersion);
|
|
17708
|
-
}
|
|
17709
|
-
return _reject(globalVersion);
|
|
17710
|
-
};
|
|
17711
|
-
}
|
|
17712
|
-
exports._makeCompatibilityCheck = _makeCompatibilityCheck;
|
|
17713
|
-
exports.isCompatible = _makeCompatibilityCheck(version_1.VERSION);
|
|
17714
|
-
});
|
|
17715
|
-
|
|
17716
|
-
// ../../node_modules/@opentelemetry/api/build/src/internal/global-utils.js
|
|
17717
|
-
var require_global_utils = __commonJS((exports) => {
|
|
17718
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17719
|
-
exports.unregisterGlobal = exports.getGlobal = exports.registerGlobal = undefined;
|
|
17720
|
-
var version_1 = require_version();
|
|
17721
|
-
var semver_1 = require_semver();
|
|
17722
|
-
var major = version_1.VERSION.split(".")[0];
|
|
17723
|
-
var GLOBAL_OPENTELEMETRY_API_KEY = Symbol.for(`opentelemetry.js.api.${major}`);
|
|
17724
|
-
var _global = typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : typeof window === "object" ? window : typeof global === "object" ? global : {};
|
|
17725
|
-
function registerGlobal(type, instance, diag, allowOverride = false) {
|
|
17726
|
-
var _a3;
|
|
17727
|
-
const api2 = _global[GLOBAL_OPENTELEMETRY_API_KEY] = (_a3 = _global[GLOBAL_OPENTELEMETRY_API_KEY]) !== null && _a3 !== undefined ? _a3 : {
|
|
17728
|
-
version: version_1.VERSION
|
|
17729
|
-
};
|
|
17730
|
-
if (!allowOverride && api2[type]) {
|
|
17731
|
-
const err = new Error(`@opentelemetry/api: Attempted duplicate registration of API: ${type}`);
|
|
17732
|
-
diag.error(err.stack || err.message);
|
|
17733
|
-
return false;
|
|
17734
|
-
}
|
|
17735
|
-
if (api2.version !== version_1.VERSION) {
|
|
17736
|
-
const err = new Error(`@opentelemetry/api: Registration of version v${api2.version} for ${type} does not match previously registered API v${version_1.VERSION}`);
|
|
17737
|
-
diag.error(err.stack || err.message);
|
|
17738
|
-
return false;
|
|
17739
|
-
}
|
|
17740
|
-
api2[type] = instance;
|
|
17741
|
-
diag.debug(`@opentelemetry/api: Registered a global for ${type} v${version_1.VERSION}.`);
|
|
17742
|
-
return true;
|
|
17743
|
-
}
|
|
17744
|
-
exports.registerGlobal = registerGlobal;
|
|
17745
|
-
function getGlobal(type) {
|
|
17746
|
-
var _a3, _b;
|
|
17747
|
-
const globalVersion = (_a3 = _global[GLOBAL_OPENTELEMETRY_API_KEY]) === null || _a3 === undefined ? undefined : _a3.version;
|
|
17748
|
-
if (!globalVersion || !(0, semver_1.isCompatible)(globalVersion)) {
|
|
17749
|
-
return;
|
|
17750
|
-
}
|
|
17751
|
-
return (_b = _global[GLOBAL_OPENTELEMETRY_API_KEY]) === null || _b === undefined ? undefined : _b[type];
|
|
17752
|
-
}
|
|
17753
|
-
exports.getGlobal = getGlobal;
|
|
17754
|
-
function unregisterGlobal(type, diag) {
|
|
17755
|
-
diag.debug(`@opentelemetry/api: Unregistering a global for ${type} v${version_1.VERSION}.`);
|
|
17756
|
-
const api2 = _global[GLOBAL_OPENTELEMETRY_API_KEY];
|
|
17757
|
-
if (api2) {
|
|
17758
|
-
delete api2[type];
|
|
17759
|
-
}
|
|
17760
|
-
}
|
|
17761
|
-
exports.unregisterGlobal = unregisterGlobal;
|
|
17762
|
-
});
|
|
17763
|
-
|
|
17764
|
-
// ../../node_modules/@opentelemetry/api/build/src/diag/ComponentLogger.js
|
|
17765
|
-
var require_ComponentLogger = __commonJS((exports) => {
|
|
17766
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17767
|
-
exports.DiagComponentLogger = undefined;
|
|
17768
|
-
var global_utils_1 = require_global_utils();
|
|
17769
|
-
|
|
17770
|
-
class DiagComponentLogger {
|
|
17771
|
-
constructor(props) {
|
|
17772
|
-
this._namespace = props.namespace || "DiagComponentLogger";
|
|
17773
|
-
}
|
|
17774
|
-
debug(...args) {
|
|
17775
|
-
return logProxy("debug", this._namespace, args);
|
|
17776
|
-
}
|
|
17777
|
-
error(...args) {
|
|
17778
|
-
return logProxy("error", this._namespace, args);
|
|
17779
|
-
}
|
|
17780
|
-
info(...args) {
|
|
17781
|
-
return logProxy("info", this._namespace, args);
|
|
17782
|
-
}
|
|
17783
|
-
warn(...args) {
|
|
17784
|
-
return logProxy("warn", this._namespace, args);
|
|
17785
|
-
}
|
|
17786
|
-
verbose(...args) {
|
|
17787
|
-
return logProxy("verbose", this._namespace, args);
|
|
17788
|
-
}
|
|
17789
|
-
}
|
|
17790
|
-
exports.DiagComponentLogger = DiagComponentLogger;
|
|
17791
|
-
function logProxy(funcName, namespace, args) {
|
|
17792
|
-
const logger = (0, global_utils_1.getGlobal)("diag");
|
|
17793
|
-
if (!logger) {
|
|
17794
|
-
return;
|
|
17795
|
-
}
|
|
17796
|
-
return logger[funcName](namespace, ...args);
|
|
17797
|
-
}
|
|
17798
|
-
});
|
|
17799
|
-
|
|
17800
|
-
// ../../node_modules/@opentelemetry/api/build/src/diag/types.js
|
|
17801
|
-
var require_types = __commonJS((exports) => {
|
|
17802
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17803
|
-
exports.DiagLogLevel = undefined;
|
|
17804
|
-
var DiagLogLevel;
|
|
17805
|
-
(function(DiagLogLevel2) {
|
|
17806
|
-
DiagLogLevel2[DiagLogLevel2["NONE"] = 0] = "NONE";
|
|
17807
|
-
DiagLogLevel2[DiagLogLevel2["ERROR"] = 30] = "ERROR";
|
|
17808
|
-
DiagLogLevel2[DiagLogLevel2["WARN"] = 50] = "WARN";
|
|
17809
|
-
DiagLogLevel2[DiagLogLevel2["INFO"] = 60] = "INFO";
|
|
17810
|
-
DiagLogLevel2[DiagLogLevel2["DEBUG"] = 70] = "DEBUG";
|
|
17811
|
-
DiagLogLevel2[DiagLogLevel2["VERBOSE"] = 80] = "VERBOSE";
|
|
17812
|
-
DiagLogLevel2[DiagLogLevel2["ALL"] = 9999] = "ALL";
|
|
17813
|
-
})(DiagLogLevel = exports.DiagLogLevel || (exports.DiagLogLevel = {}));
|
|
17814
|
-
});
|
|
17815
|
-
|
|
17816
|
-
// ../../node_modules/@opentelemetry/api/build/src/diag/internal/logLevelLogger.js
|
|
17817
|
-
var require_logLevelLogger = __commonJS((exports) => {
|
|
17818
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17819
|
-
exports.createLogLevelDiagLogger = undefined;
|
|
17820
|
-
var types_1 = require_types();
|
|
17821
|
-
function createLogLevelDiagLogger(maxLevel, logger) {
|
|
17822
|
-
if (maxLevel < types_1.DiagLogLevel.NONE) {
|
|
17823
|
-
maxLevel = types_1.DiagLogLevel.NONE;
|
|
17824
|
-
} else if (maxLevel > types_1.DiagLogLevel.ALL) {
|
|
17825
|
-
maxLevel = types_1.DiagLogLevel.ALL;
|
|
17826
|
-
}
|
|
17827
|
-
logger = logger || {};
|
|
17828
|
-
function _filterFunc(funcName, theLevel) {
|
|
17829
|
-
const theFunc = logger[funcName];
|
|
17830
|
-
if (typeof theFunc === "function" && maxLevel >= theLevel) {
|
|
17831
|
-
return theFunc.bind(logger);
|
|
17832
|
-
}
|
|
17833
|
-
return function() {};
|
|
17834
|
-
}
|
|
17835
|
-
return {
|
|
17836
|
-
error: _filterFunc("error", types_1.DiagLogLevel.ERROR),
|
|
17837
|
-
warn: _filterFunc("warn", types_1.DiagLogLevel.WARN),
|
|
17838
|
-
info: _filterFunc("info", types_1.DiagLogLevel.INFO),
|
|
17839
|
-
debug: _filterFunc("debug", types_1.DiagLogLevel.DEBUG),
|
|
17840
|
-
verbose: _filterFunc("verbose", types_1.DiagLogLevel.VERBOSE)
|
|
17841
|
-
};
|
|
17842
|
-
}
|
|
17843
|
-
exports.createLogLevelDiagLogger = createLogLevelDiagLogger;
|
|
17844
|
-
});
|
|
17845
|
-
|
|
17846
|
-
// ../../node_modules/@opentelemetry/api/build/src/api/diag.js
|
|
17847
|
-
var require_diag = __commonJS((exports) => {
|
|
17848
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17849
|
-
exports.DiagAPI = undefined;
|
|
17850
|
-
var ComponentLogger_1 = require_ComponentLogger();
|
|
17851
|
-
var logLevelLogger_1 = require_logLevelLogger();
|
|
17852
|
-
var types_1 = require_types();
|
|
17853
|
-
var global_utils_1 = require_global_utils();
|
|
17854
|
-
var API_NAME = "diag";
|
|
17855
|
-
|
|
17856
|
-
class DiagAPI {
|
|
17857
|
-
static instance() {
|
|
17858
|
-
if (!this._instance) {
|
|
17859
|
-
this._instance = new DiagAPI;
|
|
17860
|
-
}
|
|
17861
|
-
return this._instance;
|
|
17862
|
-
}
|
|
17863
|
-
constructor() {
|
|
17864
|
-
function _logProxy(funcName) {
|
|
17865
|
-
return function(...args) {
|
|
17866
|
-
const logger = (0, global_utils_1.getGlobal)("diag");
|
|
17867
|
-
if (!logger)
|
|
17868
|
-
return;
|
|
17869
|
-
return logger[funcName](...args);
|
|
17870
|
-
};
|
|
17871
|
-
}
|
|
17872
|
-
const self2 = this;
|
|
17873
|
-
const setLogger = (logger, optionsOrLogLevel = { logLevel: types_1.DiagLogLevel.INFO }) => {
|
|
17874
|
-
var _a3, _b, _c;
|
|
17875
|
-
if (logger === self2) {
|
|
17876
|
-
const err = new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");
|
|
17877
|
-
self2.error((_a3 = err.stack) !== null && _a3 !== undefined ? _a3 : err.message);
|
|
17878
|
-
return false;
|
|
17879
|
-
}
|
|
17880
|
-
if (typeof optionsOrLogLevel === "number") {
|
|
17881
|
-
optionsOrLogLevel = {
|
|
17882
|
-
logLevel: optionsOrLogLevel
|
|
17883
|
-
};
|
|
17884
|
-
}
|
|
17885
|
-
const oldLogger = (0, global_utils_1.getGlobal)("diag");
|
|
17886
|
-
const newLogger = (0, logLevelLogger_1.createLogLevelDiagLogger)((_b = optionsOrLogLevel.logLevel) !== null && _b !== undefined ? _b : types_1.DiagLogLevel.INFO, logger);
|
|
17887
|
-
if (oldLogger && !optionsOrLogLevel.suppressOverrideMessage) {
|
|
17888
|
-
const stack = (_c = new Error().stack) !== null && _c !== undefined ? _c : "<failed to generate stacktrace>";
|
|
17889
|
-
oldLogger.warn(`Current logger will be overwritten from ${stack}`);
|
|
17890
|
-
newLogger.warn(`Current logger will overwrite one already registered from ${stack}`);
|
|
17891
|
-
}
|
|
17892
|
-
return (0, global_utils_1.registerGlobal)("diag", newLogger, self2, true);
|
|
17893
|
-
};
|
|
17894
|
-
self2.setLogger = setLogger;
|
|
17895
|
-
self2.disable = () => {
|
|
17896
|
-
(0, global_utils_1.unregisterGlobal)(API_NAME, self2);
|
|
17897
|
-
};
|
|
17898
|
-
self2.createComponentLogger = (options) => {
|
|
17899
|
-
return new ComponentLogger_1.DiagComponentLogger(options);
|
|
17900
|
-
};
|
|
17901
|
-
self2.verbose = _logProxy("verbose");
|
|
17902
|
-
self2.debug = _logProxy("debug");
|
|
17903
|
-
self2.info = _logProxy("info");
|
|
17904
|
-
self2.warn = _logProxy("warn");
|
|
17905
|
-
self2.error = _logProxy("error");
|
|
17906
|
-
}
|
|
17907
|
-
}
|
|
17908
|
-
exports.DiagAPI = DiagAPI;
|
|
17909
|
-
});
|
|
17910
|
-
|
|
17911
|
-
// ../../node_modules/@opentelemetry/api/build/src/baggage/internal/baggage-impl.js
|
|
17912
|
-
var require_baggage_impl = __commonJS((exports) => {
|
|
17913
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17914
|
-
exports.BaggageImpl = undefined;
|
|
17915
|
-
|
|
17916
|
-
class BaggageImpl {
|
|
17917
|
-
constructor(entries) {
|
|
17918
|
-
this._entries = entries ? new Map(entries) : new Map;
|
|
17919
|
-
}
|
|
17920
|
-
getEntry(key) {
|
|
17921
|
-
const entry = this._entries.get(key);
|
|
17922
|
-
if (!entry) {
|
|
17923
|
-
return;
|
|
17924
|
-
}
|
|
17925
|
-
return Object.assign({}, entry);
|
|
17926
|
-
}
|
|
17927
|
-
getAllEntries() {
|
|
17928
|
-
return Array.from(this._entries.entries());
|
|
17929
|
-
}
|
|
17930
|
-
setEntry(key, entry) {
|
|
17931
|
-
const newBaggage = new BaggageImpl(this._entries);
|
|
17932
|
-
newBaggage._entries.set(key, entry);
|
|
17933
|
-
return newBaggage;
|
|
17934
|
-
}
|
|
17935
|
-
removeEntry(key) {
|
|
17936
|
-
const newBaggage = new BaggageImpl(this._entries);
|
|
17937
|
-
newBaggage._entries.delete(key);
|
|
17938
|
-
return newBaggage;
|
|
17939
|
-
}
|
|
17940
|
-
removeEntries(...keys) {
|
|
17941
|
-
const newBaggage = new BaggageImpl(this._entries);
|
|
17942
|
-
for (const key of keys) {
|
|
17943
|
-
newBaggage._entries.delete(key);
|
|
17944
|
-
}
|
|
17945
|
-
return newBaggage;
|
|
17946
|
-
}
|
|
17947
|
-
clear() {
|
|
17948
|
-
return new BaggageImpl;
|
|
17949
|
-
}
|
|
17950
|
-
}
|
|
17951
|
-
exports.BaggageImpl = BaggageImpl;
|
|
17952
|
-
});
|
|
17953
|
-
|
|
17954
|
-
// ../../node_modules/@opentelemetry/api/build/src/baggage/internal/symbol.js
|
|
17955
|
-
var require_symbol = __commonJS((exports) => {
|
|
17956
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17957
|
-
exports.baggageEntryMetadataSymbol = undefined;
|
|
17958
|
-
exports.baggageEntryMetadataSymbol = Symbol("BaggageEntryMetadata");
|
|
17959
|
-
});
|
|
17960
|
-
|
|
17961
|
-
// ../../node_modules/@opentelemetry/api/build/src/baggage/utils.js
|
|
17962
|
-
var require_utils = __commonJS((exports) => {
|
|
17963
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17964
|
-
exports.baggageEntryMetadataFromString = exports.createBaggage = undefined;
|
|
17965
|
-
var diag_1 = require_diag();
|
|
17966
|
-
var baggage_impl_1 = require_baggage_impl();
|
|
17967
|
-
var symbol_1 = require_symbol();
|
|
17968
|
-
var diag = diag_1.DiagAPI.instance();
|
|
17969
|
-
function createBaggage(entries = {}) {
|
|
17970
|
-
return new baggage_impl_1.BaggageImpl(new Map(Object.entries(entries)));
|
|
17971
|
-
}
|
|
17972
|
-
exports.createBaggage = createBaggage;
|
|
17973
|
-
function baggageEntryMetadataFromString(str) {
|
|
17974
|
-
if (typeof str !== "string") {
|
|
17975
|
-
diag.error(`Cannot create baggage metadata from unknown type: ${typeof str}`);
|
|
17976
|
-
str = "";
|
|
17977
|
-
}
|
|
17978
|
-
return {
|
|
17979
|
-
__TYPE__: symbol_1.baggageEntryMetadataSymbol,
|
|
17980
|
-
toString() {
|
|
17981
|
-
return str;
|
|
17982
|
-
}
|
|
17983
|
-
};
|
|
17984
|
-
}
|
|
17985
|
-
exports.baggageEntryMetadataFromString = baggageEntryMetadataFromString;
|
|
17986
|
-
});
|
|
17987
|
-
|
|
17988
|
-
// ../../node_modules/@opentelemetry/api/build/src/context/context.js
|
|
17989
|
-
var require_context = __commonJS((exports) => {
|
|
17990
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17991
|
-
exports.ROOT_CONTEXT = exports.createContextKey = undefined;
|
|
17992
|
-
function createContextKey(description) {
|
|
17993
|
-
return Symbol.for(description);
|
|
17994
|
-
}
|
|
17995
|
-
exports.createContextKey = createContextKey;
|
|
17996
|
-
|
|
17997
|
-
class BaseContext {
|
|
17998
|
-
constructor(parentContext) {
|
|
17999
|
-
const self2 = this;
|
|
18000
|
-
self2._currentContext = parentContext ? new Map(parentContext) : new Map;
|
|
18001
|
-
self2.getValue = (key) => self2._currentContext.get(key);
|
|
18002
|
-
self2.setValue = (key, value) => {
|
|
18003
|
-
const context = new BaseContext(self2._currentContext);
|
|
18004
|
-
context._currentContext.set(key, value);
|
|
18005
|
-
return context;
|
|
18006
|
-
};
|
|
18007
|
-
self2.deleteValue = (key) => {
|
|
18008
|
-
const context = new BaseContext(self2._currentContext);
|
|
18009
|
-
context._currentContext.delete(key);
|
|
18010
|
-
return context;
|
|
18011
|
-
};
|
|
18012
|
-
}
|
|
18013
|
-
}
|
|
18014
|
-
exports.ROOT_CONTEXT = new BaseContext;
|
|
18015
|
-
});
|
|
18016
|
-
|
|
18017
|
-
// ../../node_modules/@opentelemetry/api/build/src/diag/consoleLogger.js
|
|
18018
|
-
var require_consoleLogger = __commonJS((exports) => {
|
|
18019
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18020
|
-
exports.DiagConsoleLogger = exports._originalConsoleMethods = undefined;
|
|
18021
|
-
var consoleMap = [
|
|
18022
|
-
{ n: "error", c: "error" },
|
|
18023
|
-
{ n: "warn", c: "warn" },
|
|
18024
|
-
{ n: "info", c: "info" },
|
|
18025
|
-
{ n: "debug", c: "debug" },
|
|
18026
|
-
{ n: "verbose", c: "trace" }
|
|
18027
|
-
];
|
|
18028
|
-
exports._originalConsoleMethods = {};
|
|
18029
|
-
if (typeof console !== "undefined") {
|
|
18030
|
-
const keys = [
|
|
18031
|
-
"error",
|
|
18032
|
-
"warn",
|
|
18033
|
-
"info",
|
|
18034
|
-
"debug",
|
|
18035
|
-
"trace",
|
|
18036
|
-
"log"
|
|
18037
|
-
];
|
|
18038
|
-
for (const key of keys) {
|
|
18039
|
-
if (typeof console[key] === "function") {
|
|
18040
|
-
exports._originalConsoleMethods[key] = console[key];
|
|
18041
|
-
}
|
|
18042
|
-
}
|
|
18043
|
-
}
|
|
18044
|
-
|
|
18045
|
-
class DiagConsoleLogger {
|
|
18046
|
-
constructor() {
|
|
18047
|
-
function _consoleFunc(funcName) {
|
|
18048
|
-
return function(...args) {
|
|
18049
|
-
let theFunc = exports._originalConsoleMethods[funcName];
|
|
18050
|
-
if (typeof theFunc !== "function") {
|
|
18051
|
-
theFunc = exports._originalConsoleMethods["log"];
|
|
18052
|
-
}
|
|
18053
|
-
if (typeof theFunc !== "function" && console) {
|
|
18054
|
-
theFunc = console[funcName];
|
|
18055
|
-
if (typeof theFunc !== "function") {
|
|
18056
|
-
theFunc = console.log;
|
|
18057
|
-
}
|
|
18058
|
-
}
|
|
18059
|
-
if (typeof theFunc === "function") {
|
|
18060
|
-
return theFunc.apply(console, args);
|
|
18061
|
-
}
|
|
18062
|
-
};
|
|
18063
|
-
}
|
|
18064
|
-
for (let i = 0;i < consoleMap.length; i++) {
|
|
18065
|
-
this[consoleMap[i].n] = _consoleFunc(consoleMap[i].c);
|
|
18066
|
-
}
|
|
18067
|
-
}
|
|
18068
|
-
}
|
|
18069
|
-
exports.DiagConsoleLogger = DiagConsoleLogger;
|
|
18070
|
-
});
|
|
18071
|
-
|
|
18072
|
-
// ../../node_modules/@opentelemetry/api/build/src/metrics/NoopMeter.js
|
|
18073
|
-
var require_NoopMeter = __commonJS((exports) => {
|
|
18074
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18075
|
-
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;
|
|
18076
|
-
|
|
18077
|
-
class NoopMeter {
|
|
18078
|
-
constructor() {}
|
|
18079
|
-
createGauge(_name, _options) {
|
|
18080
|
-
return exports.NOOP_GAUGE_METRIC;
|
|
18081
|
-
}
|
|
18082
|
-
createHistogram(_name, _options) {
|
|
18083
|
-
return exports.NOOP_HISTOGRAM_METRIC;
|
|
18084
|
-
}
|
|
18085
|
-
createCounter(_name, _options) {
|
|
18086
|
-
return exports.NOOP_COUNTER_METRIC;
|
|
18087
|
-
}
|
|
18088
|
-
createUpDownCounter(_name, _options) {
|
|
18089
|
-
return exports.NOOP_UP_DOWN_COUNTER_METRIC;
|
|
18090
|
-
}
|
|
18091
|
-
createObservableGauge(_name, _options) {
|
|
18092
|
-
return exports.NOOP_OBSERVABLE_GAUGE_METRIC;
|
|
18093
|
-
}
|
|
18094
|
-
createObservableCounter(_name, _options) {
|
|
18095
|
-
return exports.NOOP_OBSERVABLE_COUNTER_METRIC;
|
|
18096
|
-
}
|
|
18097
|
-
createObservableUpDownCounter(_name, _options) {
|
|
18098
|
-
return exports.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC;
|
|
18099
|
-
}
|
|
18100
|
-
addBatchObservableCallback(_callback, _observables) {}
|
|
18101
|
-
removeBatchObservableCallback(_callback) {}
|
|
18102
|
-
}
|
|
18103
|
-
exports.NoopMeter = NoopMeter;
|
|
18104
|
-
|
|
18105
|
-
class NoopMetric {
|
|
18106
|
-
}
|
|
18107
|
-
exports.NoopMetric = NoopMetric;
|
|
18108
|
-
|
|
18109
|
-
class NoopCounterMetric extends NoopMetric {
|
|
18110
|
-
add(_value, _attributes) {}
|
|
18111
|
-
}
|
|
18112
|
-
exports.NoopCounterMetric = NoopCounterMetric;
|
|
18113
|
-
|
|
18114
|
-
class NoopUpDownCounterMetric extends NoopMetric {
|
|
18115
|
-
add(_value, _attributes) {}
|
|
18116
|
-
}
|
|
18117
|
-
exports.NoopUpDownCounterMetric = NoopUpDownCounterMetric;
|
|
18118
|
-
|
|
18119
|
-
class NoopGaugeMetric extends NoopMetric {
|
|
18120
|
-
record(_value, _attributes) {}
|
|
18121
|
-
}
|
|
18122
|
-
exports.NoopGaugeMetric = NoopGaugeMetric;
|
|
18123
|
-
|
|
18124
|
-
class NoopHistogramMetric extends NoopMetric {
|
|
18125
|
-
record(_value, _attributes) {}
|
|
18126
|
-
}
|
|
18127
|
-
exports.NoopHistogramMetric = NoopHistogramMetric;
|
|
18128
|
-
|
|
18129
|
-
class NoopObservableMetric {
|
|
18130
|
-
addCallback(_callback) {}
|
|
18131
|
-
removeCallback(_callback) {}
|
|
18132
|
-
}
|
|
18133
|
-
exports.NoopObservableMetric = NoopObservableMetric;
|
|
18134
|
-
|
|
18135
|
-
class NoopObservableCounterMetric extends NoopObservableMetric {
|
|
18136
|
-
}
|
|
18137
|
-
exports.NoopObservableCounterMetric = NoopObservableCounterMetric;
|
|
18138
|
-
|
|
18139
|
-
class NoopObservableGaugeMetric extends NoopObservableMetric {
|
|
18140
|
-
}
|
|
18141
|
-
exports.NoopObservableGaugeMetric = NoopObservableGaugeMetric;
|
|
18142
|
-
|
|
18143
|
-
class NoopObservableUpDownCounterMetric extends NoopObservableMetric {
|
|
18144
|
-
}
|
|
18145
|
-
exports.NoopObservableUpDownCounterMetric = NoopObservableUpDownCounterMetric;
|
|
18146
|
-
exports.NOOP_METER = new NoopMeter;
|
|
18147
|
-
exports.NOOP_COUNTER_METRIC = new NoopCounterMetric;
|
|
18148
|
-
exports.NOOP_GAUGE_METRIC = new NoopGaugeMetric;
|
|
18149
|
-
exports.NOOP_HISTOGRAM_METRIC = new NoopHistogramMetric;
|
|
18150
|
-
exports.NOOP_UP_DOWN_COUNTER_METRIC = new NoopUpDownCounterMetric;
|
|
18151
|
-
exports.NOOP_OBSERVABLE_COUNTER_METRIC = new NoopObservableCounterMetric;
|
|
18152
|
-
exports.NOOP_OBSERVABLE_GAUGE_METRIC = new NoopObservableGaugeMetric;
|
|
18153
|
-
exports.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC = new NoopObservableUpDownCounterMetric;
|
|
18154
|
-
function createNoopMeter() {
|
|
18155
|
-
return exports.NOOP_METER;
|
|
18156
|
-
}
|
|
18157
|
-
exports.createNoopMeter = createNoopMeter;
|
|
18158
|
-
});
|
|
18159
|
-
|
|
18160
|
-
// ../../node_modules/@opentelemetry/api/build/src/metrics/Metric.js
|
|
18161
|
-
var require_Metric = __commonJS((exports) => {
|
|
18162
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18163
|
-
exports.ValueType = undefined;
|
|
18164
|
-
var ValueType;
|
|
18165
|
-
(function(ValueType2) {
|
|
18166
|
-
ValueType2[ValueType2["INT"] = 0] = "INT";
|
|
18167
|
-
ValueType2[ValueType2["DOUBLE"] = 1] = "DOUBLE";
|
|
18168
|
-
})(ValueType = exports.ValueType || (exports.ValueType = {}));
|
|
18169
|
-
});
|
|
18170
|
-
|
|
18171
|
-
// ../../node_modules/@opentelemetry/api/build/src/propagation/TextMapPropagator.js
|
|
18172
|
-
var require_TextMapPropagator = __commonJS((exports) => {
|
|
18173
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18174
|
-
exports.defaultTextMapSetter = exports.defaultTextMapGetter = undefined;
|
|
18175
|
-
exports.defaultTextMapGetter = {
|
|
18176
|
-
get(carrier, key) {
|
|
18177
|
-
if (carrier == null) {
|
|
18178
|
-
return;
|
|
18179
|
-
}
|
|
18180
|
-
return carrier[key];
|
|
18181
|
-
},
|
|
18182
|
-
keys(carrier) {
|
|
18183
|
-
if (carrier == null) {
|
|
18184
|
-
return [];
|
|
18185
|
-
}
|
|
18186
|
-
return Object.keys(carrier);
|
|
18187
|
-
}
|
|
18188
|
-
};
|
|
18189
|
-
exports.defaultTextMapSetter = {
|
|
18190
|
-
set(carrier, key, value) {
|
|
18191
|
-
if (carrier == null) {
|
|
18192
|
-
return;
|
|
18193
|
-
}
|
|
18194
|
-
carrier[key] = value;
|
|
18195
|
-
}
|
|
18196
|
-
};
|
|
18197
|
-
});
|
|
18198
|
-
|
|
18199
|
-
// ../../node_modules/@opentelemetry/api/build/src/context/NoopContextManager.js
|
|
18200
|
-
var require_NoopContextManager = __commonJS((exports) => {
|
|
18201
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18202
|
-
exports.NoopContextManager = undefined;
|
|
18203
|
-
var context_1 = require_context();
|
|
18204
|
-
|
|
18205
|
-
class NoopContextManager {
|
|
18206
|
-
active() {
|
|
18207
|
-
return context_1.ROOT_CONTEXT;
|
|
18208
|
-
}
|
|
18209
|
-
with(_context, fn, thisArg, ...args) {
|
|
18210
|
-
return fn.call(thisArg, ...args);
|
|
18211
|
-
}
|
|
18212
|
-
bind(_context, target) {
|
|
18213
|
-
return target;
|
|
18214
|
-
}
|
|
18215
|
-
enable() {
|
|
18216
|
-
return this;
|
|
18217
|
-
}
|
|
18218
|
-
disable() {
|
|
18219
|
-
return this;
|
|
18220
|
-
}
|
|
18221
|
-
}
|
|
18222
|
-
exports.NoopContextManager = NoopContextManager;
|
|
18223
|
-
});
|
|
18224
|
-
|
|
18225
|
-
// ../../node_modules/@opentelemetry/api/build/src/api/context.js
|
|
18226
|
-
var require_context2 = __commonJS((exports) => {
|
|
18227
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18228
|
-
exports.ContextAPI = undefined;
|
|
18229
|
-
var NoopContextManager_1 = require_NoopContextManager();
|
|
18230
|
-
var global_utils_1 = require_global_utils();
|
|
18231
|
-
var diag_1 = require_diag();
|
|
18232
|
-
var API_NAME = "context";
|
|
18233
|
-
var NOOP_CONTEXT_MANAGER = new NoopContextManager_1.NoopContextManager;
|
|
18234
|
-
|
|
18235
|
-
class ContextAPI {
|
|
18236
|
-
constructor() {}
|
|
18237
|
-
static getInstance() {
|
|
18238
|
-
if (!this._instance) {
|
|
18239
|
-
this._instance = new ContextAPI;
|
|
18240
|
-
}
|
|
18241
|
-
return this._instance;
|
|
18242
|
-
}
|
|
18243
|
-
setGlobalContextManager(contextManager) {
|
|
18244
|
-
return (0, global_utils_1.registerGlobal)(API_NAME, contextManager, diag_1.DiagAPI.instance());
|
|
18245
|
-
}
|
|
18246
|
-
active() {
|
|
18247
|
-
return this._getContextManager().active();
|
|
18248
|
-
}
|
|
18249
|
-
with(context, fn, thisArg, ...args) {
|
|
18250
|
-
return this._getContextManager().with(context, fn, thisArg, ...args);
|
|
18251
|
-
}
|
|
18252
|
-
bind(context, target) {
|
|
18253
|
-
return this._getContextManager().bind(context, target);
|
|
18254
|
-
}
|
|
18255
|
-
_getContextManager() {
|
|
18256
|
-
return (0, global_utils_1.getGlobal)(API_NAME) || NOOP_CONTEXT_MANAGER;
|
|
18257
|
-
}
|
|
18258
|
-
disable() {
|
|
18259
|
-
this._getContextManager().disable();
|
|
18260
|
-
(0, global_utils_1.unregisterGlobal)(API_NAME, diag_1.DiagAPI.instance());
|
|
18261
|
-
}
|
|
18262
|
-
}
|
|
18263
|
-
exports.ContextAPI = ContextAPI;
|
|
18264
|
-
});
|
|
18265
|
-
|
|
18266
|
-
// ../../node_modules/@opentelemetry/api/build/src/trace/trace_flags.js
|
|
18267
|
-
var require_trace_flags = __commonJS((exports) => {
|
|
18268
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18269
|
-
exports.TraceFlags = undefined;
|
|
18270
|
-
var TraceFlags;
|
|
18271
|
-
(function(TraceFlags2) {
|
|
18272
|
-
TraceFlags2[TraceFlags2["NONE"] = 0] = "NONE";
|
|
18273
|
-
TraceFlags2[TraceFlags2["SAMPLED"] = 1] = "SAMPLED";
|
|
18274
|
-
})(TraceFlags = exports.TraceFlags || (exports.TraceFlags = {}));
|
|
18275
|
-
});
|
|
18276
|
-
|
|
18277
|
-
// ../../node_modules/@opentelemetry/api/build/src/trace/invalid-span-constants.js
|
|
18278
|
-
var require_invalid_span_constants = __commonJS((exports) => {
|
|
18279
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18280
|
-
exports.INVALID_SPAN_CONTEXT = exports.INVALID_TRACEID = exports.INVALID_SPANID = undefined;
|
|
18281
|
-
var trace_flags_1 = require_trace_flags();
|
|
18282
|
-
exports.INVALID_SPANID = "0000000000000000";
|
|
18283
|
-
exports.INVALID_TRACEID = "00000000000000000000000000000000";
|
|
18284
|
-
exports.INVALID_SPAN_CONTEXT = {
|
|
18285
|
-
traceId: exports.INVALID_TRACEID,
|
|
18286
|
-
spanId: exports.INVALID_SPANID,
|
|
18287
|
-
traceFlags: trace_flags_1.TraceFlags.NONE
|
|
18288
|
-
};
|
|
18289
|
-
});
|
|
18290
|
-
|
|
18291
|
-
// ../../node_modules/@opentelemetry/api/build/src/trace/NonRecordingSpan.js
|
|
18292
|
-
var require_NonRecordingSpan = __commonJS((exports) => {
|
|
18293
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18294
|
-
exports.NonRecordingSpan = undefined;
|
|
18295
|
-
var invalid_span_constants_1 = require_invalid_span_constants();
|
|
18296
|
-
|
|
18297
|
-
class NonRecordingSpan {
|
|
18298
|
-
constructor(spanContext = invalid_span_constants_1.INVALID_SPAN_CONTEXT) {
|
|
18299
|
-
this._spanContext = spanContext;
|
|
18300
|
-
}
|
|
18301
|
-
spanContext() {
|
|
18302
|
-
return this._spanContext;
|
|
18303
|
-
}
|
|
18304
|
-
setAttribute(_key, _value) {
|
|
18305
|
-
return this;
|
|
18306
|
-
}
|
|
18307
|
-
setAttributes(_attributes) {
|
|
18308
|
-
return this;
|
|
18309
|
-
}
|
|
18310
|
-
addEvent(_name, _attributes) {
|
|
18311
|
-
return this;
|
|
18312
|
-
}
|
|
18313
|
-
addLink(_link) {
|
|
18314
|
-
return this;
|
|
18315
|
-
}
|
|
18316
|
-
addLinks(_links) {
|
|
18317
|
-
return this;
|
|
18318
|
-
}
|
|
18319
|
-
setStatus(_status) {
|
|
18320
|
-
return this;
|
|
18321
|
-
}
|
|
18322
|
-
updateName(_name) {
|
|
18323
|
-
return this;
|
|
18324
|
-
}
|
|
18325
|
-
end(_endTime) {}
|
|
18326
|
-
isRecording() {
|
|
18327
|
-
return false;
|
|
18328
|
-
}
|
|
18329
|
-
recordException(_exception, _time) {}
|
|
18330
|
-
}
|
|
18331
|
-
exports.NonRecordingSpan = NonRecordingSpan;
|
|
18332
|
-
});
|
|
18333
|
-
|
|
18334
|
-
// ../../node_modules/@opentelemetry/api/build/src/trace/context-utils.js
|
|
18335
|
-
var require_context_utils = __commonJS((exports) => {
|
|
18336
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18337
|
-
exports.getSpanContext = exports.setSpanContext = exports.deleteSpan = exports.setSpan = exports.getActiveSpan = exports.getSpan = undefined;
|
|
18338
|
-
var context_1 = require_context();
|
|
18339
|
-
var NonRecordingSpan_1 = require_NonRecordingSpan();
|
|
18340
|
-
var context_2 = require_context2();
|
|
18341
|
-
var SPAN_KEY = (0, context_1.createContextKey)("OpenTelemetry Context Key SPAN");
|
|
18342
|
-
function getSpan(context) {
|
|
18343
|
-
return context.getValue(SPAN_KEY) || undefined;
|
|
18344
|
-
}
|
|
18345
|
-
exports.getSpan = getSpan;
|
|
18346
|
-
function getActiveSpan() {
|
|
18347
|
-
return getSpan(context_2.ContextAPI.getInstance().active());
|
|
18348
|
-
}
|
|
18349
|
-
exports.getActiveSpan = getActiveSpan;
|
|
18350
|
-
function setSpan(context, span) {
|
|
18351
|
-
return context.setValue(SPAN_KEY, span);
|
|
18352
|
-
}
|
|
18353
|
-
exports.setSpan = setSpan;
|
|
18354
|
-
function deleteSpan(context) {
|
|
18355
|
-
return context.deleteValue(SPAN_KEY);
|
|
18356
|
-
}
|
|
18357
|
-
exports.deleteSpan = deleteSpan;
|
|
18358
|
-
function setSpanContext(context, spanContext) {
|
|
18359
|
-
return setSpan(context, new NonRecordingSpan_1.NonRecordingSpan(spanContext));
|
|
18360
|
-
}
|
|
18361
|
-
exports.setSpanContext = setSpanContext;
|
|
18362
|
-
function getSpanContext(context) {
|
|
18363
|
-
var _a3;
|
|
18364
|
-
return (_a3 = getSpan(context)) === null || _a3 === undefined ? undefined : _a3.spanContext();
|
|
18365
|
-
}
|
|
18366
|
-
exports.getSpanContext = getSpanContext;
|
|
18367
|
-
});
|
|
18368
|
-
|
|
18369
|
-
// ../../node_modules/@opentelemetry/api/build/src/trace/spancontext-utils.js
|
|
18370
|
-
var require_spancontext_utils = __commonJS((exports) => {
|
|
18371
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18372
|
-
exports.wrapSpanContext = exports.isSpanContextValid = exports.isValidSpanId = exports.isValidTraceId = undefined;
|
|
18373
|
-
var invalid_span_constants_1 = require_invalid_span_constants();
|
|
18374
|
-
var NonRecordingSpan_1 = require_NonRecordingSpan();
|
|
18375
|
-
var isHex = new Uint8Array([
|
|
18376
|
-
0,
|
|
18377
|
-
0,
|
|
18378
|
-
0,
|
|
18379
|
-
0,
|
|
18380
|
-
0,
|
|
18381
|
-
0,
|
|
18382
|
-
0,
|
|
18383
|
-
0,
|
|
18384
|
-
0,
|
|
18385
|
-
0,
|
|
18386
|
-
0,
|
|
18387
|
-
0,
|
|
18388
|
-
0,
|
|
18389
|
-
0,
|
|
18390
|
-
0,
|
|
18391
|
-
0,
|
|
18392
|
-
0,
|
|
18393
|
-
0,
|
|
18394
|
-
0,
|
|
18395
|
-
0,
|
|
18396
|
-
0,
|
|
18397
|
-
0,
|
|
18398
|
-
0,
|
|
18399
|
-
0,
|
|
18400
|
-
0,
|
|
18401
|
-
0,
|
|
18402
|
-
0,
|
|
18403
|
-
0,
|
|
18404
|
-
0,
|
|
18405
|
-
0,
|
|
18406
|
-
0,
|
|
18407
|
-
0,
|
|
18408
|
-
0,
|
|
18409
|
-
0,
|
|
18410
|
-
0,
|
|
18411
|
-
0,
|
|
18412
|
-
0,
|
|
18413
|
-
0,
|
|
18414
|
-
0,
|
|
18415
|
-
0,
|
|
18416
|
-
0,
|
|
18417
|
-
0,
|
|
18418
|
-
0,
|
|
18419
|
-
0,
|
|
18420
|
-
0,
|
|
18421
|
-
0,
|
|
18422
|
-
0,
|
|
18423
|
-
0,
|
|
18424
|
-
1,
|
|
18425
|
-
1,
|
|
18426
|
-
1,
|
|
18427
|
-
1,
|
|
18428
|
-
1,
|
|
18429
|
-
1,
|
|
18430
|
-
1,
|
|
18431
|
-
1,
|
|
18432
|
-
1,
|
|
18433
|
-
1,
|
|
18434
|
-
0,
|
|
18435
|
-
0,
|
|
18436
|
-
0,
|
|
18437
|
-
0,
|
|
18438
|
-
0,
|
|
18439
|
-
0,
|
|
18440
|
-
0,
|
|
18441
|
-
1,
|
|
18442
|
-
1,
|
|
18443
|
-
1,
|
|
18444
|
-
1,
|
|
18445
|
-
1,
|
|
18446
|
-
1,
|
|
18447
|
-
0,
|
|
18448
|
-
0,
|
|
18449
|
-
0,
|
|
18450
|
-
0,
|
|
18451
|
-
0,
|
|
18452
|
-
0,
|
|
18453
|
-
0,
|
|
18454
|
-
0,
|
|
18455
|
-
0,
|
|
18456
|
-
0,
|
|
18457
|
-
0,
|
|
18458
|
-
0,
|
|
18459
|
-
0,
|
|
18460
|
-
0,
|
|
18461
|
-
0,
|
|
18462
|
-
0,
|
|
18463
|
-
0,
|
|
18464
|
-
0,
|
|
18465
|
-
0,
|
|
18466
|
-
0,
|
|
18467
|
-
0,
|
|
18468
|
-
0,
|
|
18469
|
-
0,
|
|
18470
|
-
0,
|
|
18471
|
-
0,
|
|
18472
|
-
0,
|
|
18473
|
-
1,
|
|
18474
|
-
1,
|
|
18475
|
-
1,
|
|
18476
|
-
1,
|
|
18477
|
-
1,
|
|
18478
|
-
1
|
|
18479
|
-
]);
|
|
18480
|
-
function isValidHex(id, length) {
|
|
18481
|
-
if (typeof id !== "string" || id.length !== length)
|
|
18482
|
-
return false;
|
|
18483
|
-
let r = 0;
|
|
18484
|
-
for (let i = 0;i < id.length; i += 4) {
|
|
18485
|
-
r += (isHex[id.charCodeAt(i)] | 0) + (isHex[id.charCodeAt(i + 1)] | 0) + (isHex[id.charCodeAt(i + 2)] | 0) + (isHex[id.charCodeAt(i + 3)] | 0);
|
|
18486
|
-
}
|
|
18487
|
-
return r === length;
|
|
18488
|
-
}
|
|
18489
|
-
function isValidTraceId(traceId) {
|
|
18490
|
-
return isValidHex(traceId, 32) && traceId !== invalid_span_constants_1.INVALID_TRACEID;
|
|
18491
|
-
}
|
|
18492
|
-
exports.isValidTraceId = isValidTraceId;
|
|
18493
|
-
function isValidSpanId(spanId) {
|
|
18494
|
-
return isValidHex(spanId, 16) && spanId !== invalid_span_constants_1.INVALID_SPANID;
|
|
18495
|
-
}
|
|
18496
|
-
exports.isValidSpanId = isValidSpanId;
|
|
18497
|
-
function isSpanContextValid(spanContext) {
|
|
18498
|
-
return isValidTraceId(spanContext.traceId) && isValidSpanId(spanContext.spanId);
|
|
18499
|
-
}
|
|
18500
|
-
exports.isSpanContextValid = isSpanContextValid;
|
|
18501
|
-
function wrapSpanContext(spanContext) {
|
|
18502
|
-
return new NonRecordingSpan_1.NonRecordingSpan(spanContext);
|
|
18503
|
-
}
|
|
18504
|
-
exports.wrapSpanContext = wrapSpanContext;
|
|
18505
|
-
});
|
|
18506
|
-
|
|
18507
|
-
// ../../node_modules/@opentelemetry/api/build/src/trace/NoopTracer.js
|
|
18508
|
-
var require_NoopTracer = __commonJS((exports) => {
|
|
18509
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18510
|
-
exports.NoopTracer = undefined;
|
|
18511
|
-
var context_1 = require_context2();
|
|
18512
|
-
var context_utils_1 = require_context_utils();
|
|
18513
|
-
var NonRecordingSpan_1 = require_NonRecordingSpan();
|
|
18514
|
-
var spancontext_utils_1 = require_spancontext_utils();
|
|
18515
|
-
var contextApi = context_1.ContextAPI.getInstance();
|
|
18516
|
-
|
|
18517
|
-
class NoopTracer {
|
|
18518
|
-
startSpan(name, options, context = contextApi.active()) {
|
|
18519
|
-
const root = Boolean(options === null || options === undefined ? undefined : options.root);
|
|
18520
|
-
if (root) {
|
|
18521
|
-
return new NonRecordingSpan_1.NonRecordingSpan;
|
|
18522
|
-
}
|
|
18523
|
-
const parentFromContext = context && (0, context_utils_1.getSpanContext)(context);
|
|
18524
|
-
if (isSpanContext(parentFromContext) && (0, spancontext_utils_1.isSpanContextValid)(parentFromContext)) {
|
|
18525
|
-
return new NonRecordingSpan_1.NonRecordingSpan(parentFromContext);
|
|
18526
|
-
} else {
|
|
18527
|
-
return new NonRecordingSpan_1.NonRecordingSpan;
|
|
18528
|
-
}
|
|
18529
|
-
}
|
|
18530
|
-
startActiveSpan(name, arg2, arg3, arg4) {
|
|
18531
|
-
let opts;
|
|
18532
|
-
let ctx;
|
|
18533
|
-
let fn;
|
|
18534
|
-
if (arguments.length < 2) {
|
|
18535
|
-
return;
|
|
18536
|
-
} else if (arguments.length === 2) {
|
|
18537
|
-
fn = arg2;
|
|
18538
|
-
} else if (arguments.length === 3) {
|
|
18539
|
-
opts = arg2;
|
|
18540
|
-
fn = arg3;
|
|
18541
|
-
} else {
|
|
18542
|
-
opts = arg2;
|
|
18543
|
-
ctx = arg3;
|
|
18544
|
-
fn = arg4;
|
|
18545
|
-
}
|
|
18546
|
-
const parentContext = ctx !== null && ctx !== undefined ? ctx : contextApi.active();
|
|
18547
|
-
const span = this.startSpan(name, opts, parentContext);
|
|
18548
|
-
const contextWithSpanSet = (0, context_utils_1.setSpan)(parentContext, span);
|
|
18549
|
-
return contextApi.with(contextWithSpanSet, fn, undefined, span);
|
|
18550
|
-
}
|
|
18551
|
-
}
|
|
18552
|
-
exports.NoopTracer = NoopTracer;
|
|
18553
|
-
function isSpanContext(spanContext) {
|
|
18554
|
-
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";
|
|
18555
|
-
}
|
|
18556
|
-
});
|
|
18557
|
-
|
|
18558
|
-
// ../../node_modules/@opentelemetry/api/build/src/trace/ProxyTracer.js
|
|
18559
|
-
var require_ProxyTracer = __commonJS((exports) => {
|
|
18560
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18561
|
-
exports.ProxyTracer = undefined;
|
|
18562
|
-
var NoopTracer_1 = require_NoopTracer();
|
|
18563
|
-
var NOOP_TRACER = new NoopTracer_1.NoopTracer;
|
|
18564
|
-
|
|
18565
|
-
class ProxyTracer {
|
|
18566
|
-
constructor(provider, name, version2, options) {
|
|
18567
|
-
this._provider = provider;
|
|
18568
|
-
this.name = name;
|
|
18569
|
-
this.version = version2;
|
|
18570
|
-
this.options = options;
|
|
18571
|
-
}
|
|
18572
|
-
startSpan(name, options, context) {
|
|
18573
|
-
return this._getTracer().startSpan(name, options, context);
|
|
18574
|
-
}
|
|
18575
|
-
startActiveSpan(_name, _options, _context, _fn) {
|
|
18576
|
-
const tracer = this._getTracer();
|
|
18577
|
-
return Reflect.apply(tracer.startActiveSpan, tracer, arguments);
|
|
18578
|
-
}
|
|
18579
|
-
_getTracer() {
|
|
18580
|
-
if (this._delegate) {
|
|
18581
|
-
return this._delegate;
|
|
18582
|
-
}
|
|
18583
|
-
const tracer = this._provider.getDelegateTracer(this.name, this.version, this.options);
|
|
18584
|
-
if (!tracer) {
|
|
18585
|
-
return NOOP_TRACER;
|
|
18586
|
-
}
|
|
18587
|
-
this._delegate = tracer;
|
|
18588
|
-
return this._delegate;
|
|
18589
|
-
}
|
|
18590
|
-
}
|
|
18591
|
-
exports.ProxyTracer = ProxyTracer;
|
|
18592
|
-
});
|
|
18593
|
-
|
|
18594
|
-
// ../../node_modules/@opentelemetry/api/build/src/trace/NoopTracerProvider.js
|
|
18595
|
-
var require_NoopTracerProvider = __commonJS((exports) => {
|
|
18596
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18597
|
-
exports.NoopTracerProvider = undefined;
|
|
18598
|
-
var NoopTracer_1 = require_NoopTracer();
|
|
18599
|
-
|
|
18600
|
-
class NoopTracerProvider {
|
|
18601
|
-
getTracer(_name, _version, _options) {
|
|
18602
|
-
return new NoopTracer_1.NoopTracer;
|
|
18603
|
-
}
|
|
18604
|
-
}
|
|
18605
|
-
exports.NoopTracerProvider = NoopTracerProvider;
|
|
18606
|
-
});
|
|
18607
|
-
|
|
18608
|
-
// ../../node_modules/@opentelemetry/api/build/src/trace/ProxyTracerProvider.js
|
|
18609
|
-
var require_ProxyTracerProvider = __commonJS((exports) => {
|
|
18610
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18611
|
-
exports.ProxyTracerProvider = undefined;
|
|
18612
|
-
var ProxyTracer_1 = require_ProxyTracer();
|
|
18613
|
-
var NoopTracerProvider_1 = require_NoopTracerProvider();
|
|
18614
|
-
var NOOP_TRACER_PROVIDER = new NoopTracerProvider_1.NoopTracerProvider;
|
|
18615
|
-
|
|
18616
|
-
class ProxyTracerProvider {
|
|
18617
|
-
getTracer(name, version2, options) {
|
|
18618
|
-
var _a3;
|
|
18619
|
-
return (_a3 = this.getDelegateTracer(name, version2, options)) !== null && _a3 !== undefined ? _a3 : new ProxyTracer_1.ProxyTracer(this, name, version2, options);
|
|
18620
|
-
}
|
|
18621
|
-
getDelegate() {
|
|
18622
|
-
var _a3;
|
|
18623
|
-
return (_a3 = this._delegate) !== null && _a3 !== undefined ? _a3 : NOOP_TRACER_PROVIDER;
|
|
18624
|
-
}
|
|
18625
|
-
setDelegate(delegate) {
|
|
18626
|
-
this._delegate = delegate;
|
|
18627
|
-
}
|
|
18628
|
-
getDelegateTracer(name, version2, options) {
|
|
18629
|
-
var _a3;
|
|
18630
|
-
return (_a3 = this._delegate) === null || _a3 === undefined ? undefined : _a3.getTracer(name, version2, options);
|
|
18631
|
-
}
|
|
18632
|
-
}
|
|
18633
|
-
exports.ProxyTracerProvider = ProxyTracerProvider;
|
|
18634
|
-
});
|
|
18635
|
-
|
|
18636
|
-
// ../../node_modules/@opentelemetry/api/build/src/trace/SamplingResult.js
|
|
18637
|
-
var require_SamplingResult = __commonJS((exports) => {
|
|
18638
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18639
|
-
exports.SamplingDecision = undefined;
|
|
18640
|
-
var SamplingDecision;
|
|
18641
|
-
(function(SamplingDecision2) {
|
|
18642
|
-
SamplingDecision2[SamplingDecision2["NOT_RECORD"] = 0] = "NOT_RECORD";
|
|
18643
|
-
SamplingDecision2[SamplingDecision2["RECORD"] = 1] = "RECORD";
|
|
18644
|
-
SamplingDecision2[SamplingDecision2["RECORD_AND_SAMPLED"] = 2] = "RECORD_AND_SAMPLED";
|
|
18645
|
-
})(SamplingDecision = exports.SamplingDecision || (exports.SamplingDecision = {}));
|
|
18646
|
-
});
|
|
18647
|
-
|
|
18648
|
-
// ../../node_modules/@opentelemetry/api/build/src/trace/span_kind.js
|
|
18649
|
-
var require_span_kind = __commonJS((exports) => {
|
|
18650
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18651
|
-
exports.SpanKind = undefined;
|
|
18652
|
-
var SpanKind;
|
|
18653
|
-
(function(SpanKind2) {
|
|
18654
|
-
SpanKind2[SpanKind2["INTERNAL"] = 0] = "INTERNAL";
|
|
18655
|
-
SpanKind2[SpanKind2["SERVER"] = 1] = "SERVER";
|
|
18656
|
-
SpanKind2[SpanKind2["CLIENT"] = 2] = "CLIENT";
|
|
18657
|
-
SpanKind2[SpanKind2["PRODUCER"] = 3] = "PRODUCER";
|
|
18658
|
-
SpanKind2[SpanKind2["CONSUMER"] = 4] = "CONSUMER";
|
|
18659
|
-
})(SpanKind = exports.SpanKind || (exports.SpanKind = {}));
|
|
18660
|
-
});
|
|
18661
|
-
|
|
18662
|
-
// ../../node_modules/@opentelemetry/api/build/src/trace/status.js
|
|
18663
|
-
var require_status = __commonJS((exports) => {
|
|
18664
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18665
|
-
exports.SpanStatusCode = undefined;
|
|
18666
|
-
var SpanStatusCode;
|
|
18667
|
-
(function(SpanStatusCode2) {
|
|
18668
|
-
SpanStatusCode2[SpanStatusCode2["UNSET"] = 0] = "UNSET";
|
|
18669
|
-
SpanStatusCode2[SpanStatusCode2["OK"] = 1] = "OK";
|
|
18670
|
-
SpanStatusCode2[SpanStatusCode2["ERROR"] = 2] = "ERROR";
|
|
18671
|
-
})(SpanStatusCode = exports.SpanStatusCode || (exports.SpanStatusCode = {}));
|
|
18672
|
-
});
|
|
18673
|
-
|
|
18674
|
-
// ../../node_modules/@opentelemetry/api/build/src/trace/internal/tracestate-validators.js
|
|
18675
|
-
var require_tracestate_validators = __commonJS((exports) => {
|
|
18676
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18677
|
-
exports.validateValue = exports.validateKey = undefined;
|
|
18678
|
-
var VALID_KEY_CHAR_RANGE = "[_0-9a-z-*/]";
|
|
18679
|
-
var VALID_KEY = `[a-z]${VALID_KEY_CHAR_RANGE}{0,255}`;
|
|
18680
|
-
var VALID_VENDOR_KEY = `[a-z0-9]${VALID_KEY_CHAR_RANGE}{0,240}@[a-z]${VALID_KEY_CHAR_RANGE}{0,13}`;
|
|
18681
|
-
var VALID_KEY_REGEX = new RegExp(`^(?:${VALID_KEY}|${VALID_VENDOR_KEY})$`);
|
|
18682
|
-
var VALID_VALUE_BASE_REGEX = /^[ -~]{0,255}[!-~]$/;
|
|
18683
|
-
var INVALID_VALUE_COMMA_EQUAL_REGEX = /,|=/;
|
|
18684
|
-
function validateKey(key) {
|
|
18685
|
-
return VALID_KEY_REGEX.test(key);
|
|
18686
|
-
}
|
|
18687
|
-
exports.validateKey = validateKey;
|
|
18688
|
-
function validateValue(value) {
|
|
18689
|
-
return VALID_VALUE_BASE_REGEX.test(value) && !INVALID_VALUE_COMMA_EQUAL_REGEX.test(value);
|
|
18690
|
-
}
|
|
18691
|
-
exports.validateValue = validateValue;
|
|
18692
|
-
});
|
|
18693
|
-
|
|
18694
|
-
// ../../node_modules/@opentelemetry/api/build/src/trace/internal/tracestate-impl.js
|
|
18695
|
-
var require_tracestate_impl = __commonJS((exports) => {
|
|
18696
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18697
|
-
exports.TraceStateImpl = undefined;
|
|
18698
|
-
var tracestate_validators_1 = require_tracestate_validators();
|
|
18699
|
-
var MAX_TRACE_STATE_ITEMS = 32;
|
|
18700
|
-
var MAX_TRACE_STATE_LEN = 512;
|
|
18701
|
-
var LIST_MEMBERS_SEPARATOR = ",";
|
|
18702
|
-
var LIST_MEMBER_KEY_VALUE_SPLITTER = "=";
|
|
18703
|
-
|
|
18704
|
-
class TraceStateImpl {
|
|
18705
|
-
constructor(rawTraceState) {
|
|
18706
|
-
this._internalState = new Map;
|
|
18707
|
-
if (rawTraceState)
|
|
18708
|
-
this._parse(rawTraceState);
|
|
18709
|
-
}
|
|
18710
|
-
set(key, value) {
|
|
18711
|
-
const traceState = this._clone();
|
|
18712
|
-
if (traceState._internalState.has(key)) {
|
|
18713
|
-
traceState._internalState.delete(key);
|
|
18714
|
-
}
|
|
18715
|
-
traceState._internalState.set(key, value);
|
|
18716
|
-
return traceState;
|
|
18717
|
-
}
|
|
18718
|
-
unset(key) {
|
|
18719
|
-
const traceState = this._clone();
|
|
18720
|
-
traceState._internalState.delete(key);
|
|
18721
|
-
return traceState;
|
|
18722
|
-
}
|
|
18723
|
-
get(key) {
|
|
18724
|
-
return this._internalState.get(key);
|
|
18725
|
-
}
|
|
18726
|
-
serialize() {
|
|
18727
|
-
return Array.from(this._internalState.keys()).reduceRight((agg, key) => {
|
|
18728
|
-
agg.push(key + LIST_MEMBER_KEY_VALUE_SPLITTER + this.get(key));
|
|
18729
|
-
return agg;
|
|
18730
|
-
}, []).join(LIST_MEMBERS_SEPARATOR);
|
|
18731
|
-
}
|
|
18732
|
-
_parse(rawTraceState) {
|
|
18733
|
-
if (rawTraceState.length > MAX_TRACE_STATE_LEN)
|
|
18734
|
-
return;
|
|
18735
|
-
this._internalState = rawTraceState.split(LIST_MEMBERS_SEPARATOR).reduceRight((agg, part) => {
|
|
18736
|
-
const listMember = part.trim();
|
|
18737
|
-
const i = listMember.indexOf(LIST_MEMBER_KEY_VALUE_SPLITTER);
|
|
18738
|
-
if (i !== -1) {
|
|
18739
|
-
const key = listMember.slice(0, i);
|
|
18740
|
-
const value = listMember.slice(i + 1, part.length);
|
|
18741
|
-
if ((0, tracestate_validators_1.validateKey)(key) && (0, tracestate_validators_1.validateValue)(value)) {
|
|
18742
|
-
agg.set(key, value);
|
|
18743
|
-
}
|
|
18744
|
-
}
|
|
18745
|
-
return agg;
|
|
18746
|
-
}, new Map);
|
|
18747
|
-
if (this._internalState.size > MAX_TRACE_STATE_ITEMS) {
|
|
18748
|
-
this._internalState = new Map(Array.from(this._internalState.entries()).reverse().slice(0, MAX_TRACE_STATE_ITEMS));
|
|
18749
|
-
}
|
|
18750
|
-
}
|
|
18751
|
-
_keys() {
|
|
18752
|
-
return Array.from(this._internalState.keys()).reverse();
|
|
18753
|
-
}
|
|
18754
|
-
_clone() {
|
|
18755
|
-
const traceState = new TraceStateImpl;
|
|
18756
|
-
traceState._internalState = new Map(this._internalState);
|
|
18757
|
-
return traceState;
|
|
18758
|
-
}
|
|
18759
|
-
}
|
|
18760
|
-
exports.TraceStateImpl = TraceStateImpl;
|
|
18761
|
-
});
|
|
18762
|
-
|
|
18763
|
-
// ../../node_modules/@opentelemetry/api/build/src/trace/internal/utils.js
|
|
18764
|
-
var require_utils2 = __commonJS((exports) => {
|
|
18765
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18766
|
-
exports.createTraceState = undefined;
|
|
18767
|
-
var tracestate_impl_1 = require_tracestate_impl();
|
|
18768
|
-
function createTraceState(rawTraceState) {
|
|
18769
|
-
return new tracestate_impl_1.TraceStateImpl(rawTraceState);
|
|
18770
|
-
}
|
|
18771
|
-
exports.createTraceState = createTraceState;
|
|
18772
|
-
});
|
|
18773
|
-
|
|
18774
|
-
// ../../node_modules/@opentelemetry/api/build/src/context-api.js
|
|
18775
|
-
var require_context_api = __commonJS((exports) => {
|
|
18776
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18777
|
-
exports.context = undefined;
|
|
18778
|
-
var context_1 = require_context2();
|
|
18779
|
-
exports.context = context_1.ContextAPI.getInstance();
|
|
18780
|
-
});
|
|
18781
|
-
|
|
18782
|
-
// ../../node_modules/@opentelemetry/api/build/src/diag-api.js
|
|
18783
|
-
var require_diag_api = __commonJS((exports) => {
|
|
18784
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18785
|
-
exports.diag = undefined;
|
|
18786
|
-
var diag_1 = require_diag();
|
|
18787
|
-
exports.diag = diag_1.DiagAPI.instance();
|
|
18788
|
-
});
|
|
18789
|
-
|
|
18790
|
-
// ../../node_modules/@opentelemetry/api/build/src/metrics/NoopMeterProvider.js
|
|
18791
|
-
var require_NoopMeterProvider = __commonJS((exports) => {
|
|
18792
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18793
|
-
exports.NOOP_METER_PROVIDER = exports.NoopMeterProvider = undefined;
|
|
18794
|
-
var NoopMeter_1 = require_NoopMeter();
|
|
18795
|
-
|
|
18796
|
-
class NoopMeterProvider {
|
|
18797
|
-
getMeter(_name, _version, _options) {
|
|
18798
|
-
return NoopMeter_1.NOOP_METER;
|
|
18799
|
-
}
|
|
18800
|
-
}
|
|
18801
|
-
exports.NoopMeterProvider = NoopMeterProvider;
|
|
18802
|
-
exports.NOOP_METER_PROVIDER = new NoopMeterProvider;
|
|
18803
|
-
});
|
|
18804
|
-
|
|
18805
|
-
// ../../node_modules/@opentelemetry/api/build/src/api/metrics.js
|
|
18806
|
-
var require_metrics = __commonJS((exports) => {
|
|
18807
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18808
|
-
exports.MetricsAPI = undefined;
|
|
18809
|
-
var NoopMeterProvider_1 = require_NoopMeterProvider();
|
|
18810
|
-
var global_utils_1 = require_global_utils();
|
|
18811
|
-
var diag_1 = require_diag();
|
|
18812
|
-
var API_NAME = "metrics";
|
|
18813
|
-
|
|
18814
|
-
class MetricsAPI {
|
|
18815
|
-
constructor() {}
|
|
18816
|
-
static getInstance() {
|
|
18817
|
-
if (!this._instance) {
|
|
18818
|
-
this._instance = new MetricsAPI;
|
|
18819
|
-
}
|
|
18820
|
-
return this._instance;
|
|
18821
|
-
}
|
|
18822
|
-
setGlobalMeterProvider(provider) {
|
|
18823
|
-
return (0, global_utils_1.registerGlobal)(API_NAME, provider, diag_1.DiagAPI.instance());
|
|
18824
|
-
}
|
|
18825
|
-
getMeterProvider() {
|
|
18826
|
-
return (0, global_utils_1.getGlobal)(API_NAME) || NoopMeterProvider_1.NOOP_METER_PROVIDER;
|
|
18827
|
-
}
|
|
18828
|
-
getMeter(name, version2, options) {
|
|
18829
|
-
return this.getMeterProvider().getMeter(name, version2, options);
|
|
18830
|
-
}
|
|
18831
|
-
disable() {
|
|
18832
|
-
(0, global_utils_1.unregisterGlobal)(API_NAME, diag_1.DiagAPI.instance());
|
|
18833
|
-
}
|
|
18834
|
-
}
|
|
18835
|
-
exports.MetricsAPI = MetricsAPI;
|
|
18836
|
-
});
|
|
18837
|
-
|
|
18838
|
-
// ../../node_modules/@opentelemetry/api/build/src/metrics-api.js
|
|
18839
|
-
var require_metrics_api = __commonJS((exports) => {
|
|
18840
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18841
|
-
exports.metrics = undefined;
|
|
18842
|
-
var metrics_1 = require_metrics();
|
|
18843
|
-
exports.metrics = metrics_1.MetricsAPI.getInstance();
|
|
18844
|
-
});
|
|
18845
|
-
|
|
18846
|
-
// ../../node_modules/@opentelemetry/api/build/src/propagation/NoopTextMapPropagator.js
|
|
18847
|
-
var require_NoopTextMapPropagator = __commonJS((exports) => {
|
|
18848
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18849
|
-
exports.NoopTextMapPropagator = undefined;
|
|
18850
|
-
|
|
18851
|
-
class NoopTextMapPropagator {
|
|
18852
|
-
inject(_context, _carrier) {}
|
|
18853
|
-
extract(context, _carrier) {
|
|
18854
|
-
return context;
|
|
18855
|
-
}
|
|
18856
|
-
fields() {
|
|
18857
|
-
return [];
|
|
18858
|
-
}
|
|
18859
|
-
}
|
|
18860
|
-
exports.NoopTextMapPropagator = NoopTextMapPropagator;
|
|
18861
|
-
});
|
|
18862
|
-
|
|
18863
|
-
// ../../node_modules/@opentelemetry/api/build/src/baggage/context-helpers.js
|
|
18864
|
-
var require_context_helpers = __commonJS((exports) => {
|
|
18865
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18866
|
-
exports.deleteBaggage = exports.setBaggage = exports.getActiveBaggage = exports.getBaggage = undefined;
|
|
18867
|
-
var context_1 = require_context2();
|
|
18868
|
-
var context_2 = require_context();
|
|
18869
|
-
var BAGGAGE_KEY = (0, context_2.createContextKey)("OpenTelemetry Baggage Key");
|
|
18870
|
-
function getBaggage(context) {
|
|
18871
|
-
return context.getValue(BAGGAGE_KEY) || undefined;
|
|
18872
|
-
}
|
|
18873
|
-
exports.getBaggage = getBaggage;
|
|
18874
|
-
function getActiveBaggage() {
|
|
18875
|
-
return getBaggage(context_1.ContextAPI.getInstance().active());
|
|
18876
|
-
}
|
|
18877
|
-
exports.getActiveBaggage = getActiveBaggage;
|
|
18878
|
-
function setBaggage(context, baggage) {
|
|
18879
|
-
return context.setValue(BAGGAGE_KEY, baggage);
|
|
18880
|
-
}
|
|
18881
|
-
exports.setBaggage = setBaggage;
|
|
18882
|
-
function deleteBaggage(context) {
|
|
18883
|
-
return context.deleteValue(BAGGAGE_KEY);
|
|
18884
|
-
}
|
|
18885
|
-
exports.deleteBaggage = deleteBaggage;
|
|
18886
|
-
});
|
|
18887
|
-
|
|
18888
|
-
// ../../node_modules/@opentelemetry/api/build/src/api/propagation.js
|
|
18889
|
-
var require_propagation = __commonJS((exports) => {
|
|
18890
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18891
|
-
exports.PropagationAPI = undefined;
|
|
18892
|
-
var global_utils_1 = require_global_utils();
|
|
18893
|
-
var NoopTextMapPropagator_1 = require_NoopTextMapPropagator();
|
|
18894
|
-
var TextMapPropagator_1 = require_TextMapPropagator();
|
|
18895
|
-
var context_helpers_1 = require_context_helpers();
|
|
18896
|
-
var utils_1 = require_utils();
|
|
18897
|
-
var diag_1 = require_diag();
|
|
18898
|
-
var API_NAME = "propagation";
|
|
18899
|
-
var NOOP_TEXT_MAP_PROPAGATOR = new NoopTextMapPropagator_1.NoopTextMapPropagator;
|
|
18900
|
-
|
|
18901
|
-
class PropagationAPI {
|
|
18902
|
-
constructor() {
|
|
18903
|
-
this.createBaggage = utils_1.createBaggage;
|
|
18904
|
-
this.getBaggage = context_helpers_1.getBaggage;
|
|
18905
|
-
this.getActiveBaggage = context_helpers_1.getActiveBaggage;
|
|
18906
|
-
this.setBaggage = context_helpers_1.setBaggage;
|
|
18907
|
-
this.deleteBaggage = context_helpers_1.deleteBaggage;
|
|
18908
|
-
}
|
|
18909
|
-
static getInstance() {
|
|
18910
|
-
if (!this._instance) {
|
|
18911
|
-
this._instance = new PropagationAPI;
|
|
18912
|
-
}
|
|
18913
|
-
return this._instance;
|
|
18914
|
-
}
|
|
18915
|
-
setGlobalPropagator(propagator) {
|
|
18916
|
-
return (0, global_utils_1.registerGlobal)(API_NAME, propagator, diag_1.DiagAPI.instance());
|
|
18917
|
-
}
|
|
18918
|
-
inject(context, carrier, setter = TextMapPropagator_1.defaultTextMapSetter) {
|
|
18919
|
-
return this._getGlobalPropagator().inject(context, carrier, setter);
|
|
18920
|
-
}
|
|
18921
|
-
extract(context, carrier, getter = TextMapPropagator_1.defaultTextMapGetter) {
|
|
18922
|
-
return this._getGlobalPropagator().extract(context, carrier, getter);
|
|
18923
|
-
}
|
|
18924
|
-
fields() {
|
|
18925
|
-
return this._getGlobalPropagator().fields();
|
|
18926
|
-
}
|
|
18927
|
-
disable() {
|
|
18928
|
-
(0, global_utils_1.unregisterGlobal)(API_NAME, diag_1.DiagAPI.instance());
|
|
18929
|
-
}
|
|
18930
|
-
_getGlobalPropagator() {
|
|
18931
|
-
return (0, global_utils_1.getGlobal)(API_NAME) || NOOP_TEXT_MAP_PROPAGATOR;
|
|
18932
|
-
}
|
|
18933
|
-
}
|
|
18934
|
-
exports.PropagationAPI = PropagationAPI;
|
|
18935
|
-
});
|
|
18936
|
-
|
|
18937
|
-
// ../../node_modules/@opentelemetry/api/build/src/propagation-api.js
|
|
18938
|
-
var require_propagation_api = __commonJS((exports) => {
|
|
18939
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18940
|
-
exports.propagation = undefined;
|
|
18941
|
-
var propagation_1 = require_propagation();
|
|
18942
|
-
exports.propagation = propagation_1.PropagationAPI.getInstance();
|
|
18943
|
-
});
|
|
18944
|
-
|
|
18945
|
-
// ../../node_modules/@opentelemetry/api/build/src/api/trace.js
|
|
18946
|
-
var require_trace = __commonJS((exports) => {
|
|
18947
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18948
|
-
exports.TraceAPI = undefined;
|
|
18949
|
-
var global_utils_1 = require_global_utils();
|
|
18950
|
-
var ProxyTracerProvider_1 = require_ProxyTracerProvider();
|
|
18951
|
-
var spancontext_utils_1 = require_spancontext_utils();
|
|
18952
|
-
var context_utils_1 = require_context_utils();
|
|
18953
|
-
var diag_1 = require_diag();
|
|
18954
|
-
var API_NAME = "trace";
|
|
18955
|
-
|
|
18956
|
-
class TraceAPI {
|
|
18957
|
-
constructor() {
|
|
18958
|
-
this._proxyTracerProvider = new ProxyTracerProvider_1.ProxyTracerProvider;
|
|
18959
|
-
this.wrapSpanContext = spancontext_utils_1.wrapSpanContext;
|
|
18960
|
-
this.isSpanContextValid = spancontext_utils_1.isSpanContextValid;
|
|
18961
|
-
this.deleteSpan = context_utils_1.deleteSpan;
|
|
18962
|
-
this.getSpan = context_utils_1.getSpan;
|
|
18963
|
-
this.getActiveSpan = context_utils_1.getActiveSpan;
|
|
18964
|
-
this.getSpanContext = context_utils_1.getSpanContext;
|
|
18965
|
-
this.setSpan = context_utils_1.setSpan;
|
|
18966
|
-
this.setSpanContext = context_utils_1.setSpanContext;
|
|
18967
|
-
}
|
|
18968
|
-
static getInstance() {
|
|
18969
|
-
if (!this._instance) {
|
|
18970
|
-
this._instance = new TraceAPI;
|
|
18971
|
-
}
|
|
18972
|
-
return this._instance;
|
|
18973
|
-
}
|
|
18974
|
-
setGlobalTracerProvider(provider) {
|
|
18975
|
-
const success3 = (0, global_utils_1.registerGlobal)(API_NAME, this._proxyTracerProvider, diag_1.DiagAPI.instance());
|
|
18976
|
-
if (success3) {
|
|
18977
|
-
this._proxyTracerProvider.setDelegate(provider);
|
|
18978
|
-
}
|
|
18979
|
-
return success3;
|
|
18980
|
-
}
|
|
18981
|
-
getTracerProvider() {
|
|
18982
|
-
return (0, global_utils_1.getGlobal)(API_NAME) || this._proxyTracerProvider;
|
|
18983
|
-
}
|
|
18984
|
-
getTracer(name, version2) {
|
|
18985
|
-
return this.getTracerProvider().getTracer(name, version2);
|
|
18986
|
-
}
|
|
18987
|
-
disable() {
|
|
18988
|
-
(0, global_utils_1.unregisterGlobal)(API_NAME, diag_1.DiagAPI.instance());
|
|
18989
|
-
this._proxyTracerProvider = new ProxyTracerProvider_1.ProxyTracerProvider;
|
|
18990
|
-
}
|
|
18991
|
-
}
|
|
18992
|
-
exports.TraceAPI = TraceAPI;
|
|
18993
|
-
});
|
|
18994
|
-
|
|
18995
|
-
// ../../node_modules/@opentelemetry/api/build/src/trace-api.js
|
|
18996
|
-
var require_trace_api = __commonJS((exports) => {
|
|
18997
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18998
|
-
exports.trace = undefined;
|
|
18999
|
-
var trace_1 = require_trace();
|
|
19000
|
-
exports.trace = trace_1.TraceAPI.getInstance();
|
|
19001
|
-
});
|
|
19002
|
-
|
|
19003
|
-
// ../../node_modules/@opentelemetry/api/build/src/index.js
|
|
19004
|
-
var require_src = __commonJS((exports) => {
|
|
19005
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19006
|
-
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;
|
|
19007
|
-
var utils_1 = require_utils();
|
|
19008
|
-
Object.defineProperty(exports, "baggageEntryMetadataFromString", { enumerable: true, get: function() {
|
|
19009
|
-
return utils_1.baggageEntryMetadataFromString;
|
|
19010
|
-
} });
|
|
19011
|
-
var context_1 = require_context();
|
|
19012
|
-
Object.defineProperty(exports, "createContextKey", { enumerable: true, get: function() {
|
|
19013
|
-
return context_1.createContextKey;
|
|
19014
|
-
} });
|
|
19015
|
-
Object.defineProperty(exports, "ROOT_CONTEXT", { enumerable: true, get: function() {
|
|
19016
|
-
return context_1.ROOT_CONTEXT;
|
|
19017
|
-
} });
|
|
19018
|
-
var consoleLogger_1 = require_consoleLogger();
|
|
19019
|
-
Object.defineProperty(exports, "DiagConsoleLogger", { enumerable: true, get: function() {
|
|
19020
|
-
return consoleLogger_1.DiagConsoleLogger;
|
|
19021
|
-
} });
|
|
19022
|
-
var types_1 = require_types();
|
|
19023
|
-
Object.defineProperty(exports, "DiagLogLevel", { enumerable: true, get: function() {
|
|
19024
|
-
return types_1.DiagLogLevel;
|
|
19025
|
-
} });
|
|
19026
|
-
var NoopMeter_1 = require_NoopMeter();
|
|
19027
|
-
Object.defineProperty(exports, "createNoopMeter", { enumerable: true, get: function() {
|
|
19028
|
-
return NoopMeter_1.createNoopMeter;
|
|
19029
|
-
} });
|
|
19030
|
-
var Metric_1 = require_Metric();
|
|
19031
|
-
Object.defineProperty(exports, "ValueType", { enumerable: true, get: function() {
|
|
19032
|
-
return Metric_1.ValueType;
|
|
19033
|
-
} });
|
|
19034
|
-
var TextMapPropagator_1 = require_TextMapPropagator();
|
|
19035
|
-
Object.defineProperty(exports, "defaultTextMapGetter", { enumerable: true, get: function() {
|
|
19036
|
-
return TextMapPropagator_1.defaultTextMapGetter;
|
|
19037
|
-
} });
|
|
19038
|
-
Object.defineProperty(exports, "defaultTextMapSetter", { enumerable: true, get: function() {
|
|
19039
|
-
return TextMapPropagator_1.defaultTextMapSetter;
|
|
19040
|
-
} });
|
|
19041
|
-
var ProxyTracer_1 = require_ProxyTracer();
|
|
19042
|
-
Object.defineProperty(exports, "ProxyTracer", { enumerable: true, get: function() {
|
|
19043
|
-
return ProxyTracer_1.ProxyTracer;
|
|
19044
|
-
} });
|
|
19045
|
-
var ProxyTracerProvider_1 = require_ProxyTracerProvider();
|
|
19046
|
-
Object.defineProperty(exports, "ProxyTracerProvider", { enumerable: true, get: function() {
|
|
19047
|
-
return ProxyTracerProvider_1.ProxyTracerProvider;
|
|
19048
|
-
} });
|
|
19049
|
-
var SamplingResult_1 = require_SamplingResult();
|
|
19050
|
-
Object.defineProperty(exports, "SamplingDecision", { enumerable: true, get: function() {
|
|
19051
|
-
return SamplingResult_1.SamplingDecision;
|
|
19052
|
-
} });
|
|
19053
|
-
var span_kind_1 = require_span_kind();
|
|
19054
|
-
Object.defineProperty(exports, "SpanKind", { enumerable: true, get: function() {
|
|
19055
|
-
return span_kind_1.SpanKind;
|
|
19056
|
-
} });
|
|
19057
|
-
var status_1 = require_status();
|
|
19058
|
-
Object.defineProperty(exports, "SpanStatusCode", { enumerable: true, get: function() {
|
|
19059
|
-
return status_1.SpanStatusCode;
|
|
19060
|
-
} });
|
|
19061
|
-
var trace_flags_1 = require_trace_flags();
|
|
19062
|
-
Object.defineProperty(exports, "TraceFlags", { enumerable: true, get: function() {
|
|
19063
|
-
return trace_flags_1.TraceFlags;
|
|
19064
|
-
} });
|
|
19065
|
-
var utils_2 = require_utils2();
|
|
19066
|
-
Object.defineProperty(exports, "createTraceState", { enumerable: true, get: function() {
|
|
19067
|
-
return utils_2.createTraceState;
|
|
19068
|
-
} });
|
|
19069
|
-
var spancontext_utils_1 = require_spancontext_utils();
|
|
19070
|
-
Object.defineProperty(exports, "isSpanContextValid", { enumerable: true, get: function() {
|
|
19071
|
-
return spancontext_utils_1.isSpanContextValid;
|
|
19072
|
-
} });
|
|
19073
|
-
Object.defineProperty(exports, "isValidTraceId", { enumerable: true, get: function() {
|
|
19074
|
-
return spancontext_utils_1.isValidTraceId;
|
|
19075
|
-
} });
|
|
19076
|
-
Object.defineProperty(exports, "isValidSpanId", { enumerable: true, get: function() {
|
|
19077
|
-
return spancontext_utils_1.isValidSpanId;
|
|
19078
|
-
} });
|
|
19079
|
-
var invalid_span_constants_1 = require_invalid_span_constants();
|
|
19080
|
-
Object.defineProperty(exports, "INVALID_SPANID", { enumerable: true, get: function() {
|
|
19081
|
-
return invalid_span_constants_1.INVALID_SPANID;
|
|
19082
|
-
} });
|
|
19083
|
-
Object.defineProperty(exports, "INVALID_TRACEID", { enumerable: true, get: function() {
|
|
19084
|
-
return invalid_span_constants_1.INVALID_TRACEID;
|
|
19085
|
-
} });
|
|
19086
|
-
Object.defineProperty(exports, "INVALID_SPAN_CONTEXT", { enumerable: true, get: function() {
|
|
19087
|
-
return invalid_span_constants_1.INVALID_SPAN_CONTEXT;
|
|
19088
|
-
} });
|
|
19089
|
-
var context_api_1 = require_context_api();
|
|
19090
|
-
Object.defineProperty(exports, "context", { enumerable: true, get: function() {
|
|
19091
|
-
return context_api_1.context;
|
|
19092
|
-
} });
|
|
19093
|
-
var diag_api_1 = require_diag_api();
|
|
19094
|
-
Object.defineProperty(exports, "diag", { enumerable: true, get: function() {
|
|
19095
|
-
return diag_api_1.diag;
|
|
19096
|
-
} });
|
|
19097
|
-
var metrics_api_1 = require_metrics_api();
|
|
19098
|
-
Object.defineProperty(exports, "metrics", { enumerable: true, get: function() {
|
|
19099
|
-
return metrics_api_1.metrics;
|
|
19100
|
-
} });
|
|
19101
|
-
var propagation_api_1 = require_propagation_api();
|
|
19102
|
-
Object.defineProperty(exports, "propagation", { enumerable: true, get: function() {
|
|
19103
|
-
return propagation_api_1.propagation;
|
|
19104
|
-
} });
|
|
19105
|
-
var trace_api_1 = require_trace_api();
|
|
19106
|
-
Object.defineProperty(exports, "trace", { enumerable: true, get: function() {
|
|
19107
|
-
return trace_api_1.trace;
|
|
19108
|
-
} });
|
|
19109
|
-
exports.default = {
|
|
19110
|
-
context: context_api_1.context,
|
|
19111
|
-
diag: diag_api_1.diag,
|
|
19112
|
-
metrics: metrics_api_1.metrics,
|
|
19113
|
-
propagation: propagation_api_1.propagation,
|
|
19114
|
-
trace: trace_api_1.trace
|
|
19115
|
-
};
|
|
19116
|
-
});
|
|
19117
|
-
|
|
19118
|
-
// ../types/src/processor/processor.ts
|
|
19119
|
-
var import_api, noopTracingContext, ProcessorPortSchema, ProcessorDefinitionSchema, ProcessorExecutionContextSchema, TraceStatus;
|
|
19120
|
-
var init_processor = __esm(() => {
|
|
19121
|
-
init_zod();
|
|
19122
|
-
init_common();
|
|
19123
|
-
import_api = __toESM(require_src(), 1);
|
|
19124
|
-
noopTracingContext = {
|
|
19125
|
-
traceId: "",
|
|
19126
|
-
getActiveSpan() {
|
|
19127
|
-
return;
|
|
19128
|
-
},
|
|
19129
|
-
async withSpan(_name, _options, fn) {
|
|
19130
|
-
const noopSpan = {
|
|
19131
|
-
spanContext: () => ({
|
|
19132
|
-
traceId: "",
|
|
19133
|
-
spanId: "",
|
|
19134
|
-
traceFlags: 0
|
|
19135
|
-
}),
|
|
19136
|
-
setAttribute: () => noopSpan,
|
|
19137
|
-
setAttributes: () => noopSpan,
|
|
19138
|
-
addEvent: () => noopSpan,
|
|
19139
|
-
addLink: () => noopSpan,
|
|
19140
|
-
addLinks: () => noopSpan,
|
|
19141
|
-
setStatus: () => noopSpan,
|
|
19142
|
-
updateName: () => noopSpan,
|
|
19143
|
-
end: () => {},
|
|
19144
|
-
isRecording: () => false,
|
|
19145
|
-
recordException: () => {}
|
|
19146
|
-
};
|
|
19147
|
-
return fn(noopSpan);
|
|
19148
|
-
}
|
|
19149
|
-
};
|
|
19150
|
-
ProcessorPortSchema = exports_external.object({
|
|
19151
|
-
name: exports_external.string(),
|
|
19152
|
-
schema: JsonSchemaSchema,
|
|
19153
|
-
required: exports_external.boolean().default(true)
|
|
19154
|
-
});
|
|
19155
|
-
ProcessorDefinitionSchema = exports_external.object({
|
|
19156
|
-
id: exports_external.string(),
|
|
19157
|
-
name: exports_external.string(),
|
|
19158
|
-
description: exports_external.string().optional(),
|
|
19159
|
-
inputSchema: JsonSchemaSchema,
|
|
19160
|
-
outputSchema: JsonSchemaSchema,
|
|
19161
|
-
configSchema: JsonSchemaSchema.optional(),
|
|
19162
|
-
inputPorts: exports_external.array(ProcessorPortSchema).optional(),
|
|
19163
|
-
outputPorts: exports_external.array(ProcessorPortSchema).optional(),
|
|
19164
|
-
isBuiltin: exports_external.boolean().default(true),
|
|
19165
|
-
pluginName: exports_external.string().optional()
|
|
19166
|
-
});
|
|
19167
|
-
ProcessorExecutionContextSchema = exports_external.object({
|
|
19168
|
-
jobId: exports_external.string(),
|
|
19169
|
-
stepId: exports_external.string(),
|
|
19170
|
-
tenantId: exports_external.string(),
|
|
19171
|
-
automationId: exports_external.string().optional(),
|
|
19172
|
-
workflowId: exports_external.string(),
|
|
19173
|
-
workerId: exports_external.string().optional()
|
|
19174
|
-
});
|
|
19175
|
-
((TraceStatus2) => {
|
|
19176
|
-
TraceStatus2["PENDING"] = "pending";
|
|
19177
|
-
TraceStatus2["RUNNING"] = "running";
|
|
19178
|
-
TraceStatus2["COMPLETED"] = "completed";
|
|
19179
|
-
TraceStatus2["FAILED"] = "failed";
|
|
19180
|
-
})(TraceStatus ||= {});
|
|
19181
|
-
});
|
|
19182
|
-
|
|
19183
|
-
// ../types/src/processor/normalize-extract-input.ts
|
|
19184
|
-
function normalizeExtractInputToText(input) {
|
|
19185
|
-
if (typeof input === "string") {
|
|
19186
|
-
return input;
|
|
19187
|
-
}
|
|
19188
|
-
if (input && typeof input === "object") {
|
|
19189
|
-
const obj = input;
|
|
19190
|
-
if (typeof obj.content === "string") {
|
|
19191
|
-
return obj.content;
|
|
19192
|
-
}
|
|
19193
|
-
if (typeof obj.text === "string") {
|
|
19194
|
-
return obj.text;
|
|
19195
|
-
}
|
|
19196
|
-
return JSON.stringify(input, null, 2);
|
|
19197
|
-
}
|
|
19198
|
-
return String(input ?? "");
|
|
19199
|
-
}
|
|
19200
|
-
function extractSourceTextFromResolvedConfig(config2) {
|
|
19201
|
-
if (!config2 || typeof config2 !== "object")
|
|
19202
|
-
return null;
|
|
19203
|
-
if (typeof config2.content === "string") {
|
|
19204
|
-
return normalizeExtractInputToText({ content: config2.content });
|
|
19205
|
-
}
|
|
19206
|
-
if (typeof config2.text === "string") {
|
|
19207
|
-
return normalizeExtractInputToText({ text: config2.text });
|
|
19208
|
-
}
|
|
19209
|
-
if (typeof config2.input === "string") {
|
|
19210
|
-
return normalizeExtractInputToText({ content: config2.input });
|
|
19211
|
-
}
|
|
19212
|
-
if (config2.input !== null && config2.input !== undefined) {
|
|
19213
|
-
return normalizeExtractInputToText(config2.input);
|
|
19214
|
-
}
|
|
19215
|
-
return null;
|
|
19216
|
-
}
|
|
19217
|
-
|
|
19218
|
-
// ../types/src/processor/grounding.ts
|
|
19219
|
-
function stripGroundingMetadata(value) {
|
|
19220
|
-
if (Array.isArray(value))
|
|
19221
|
-
return value.map(stripGroundingMetadata);
|
|
19222
|
-
if (value && typeof value === "object") {
|
|
19223
|
-
const out = {};
|
|
19224
|
-
for (const [k, v] of Object.entries(value)) {
|
|
19225
|
-
if (k === "_grounding")
|
|
19226
|
-
continue;
|
|
19227
|
-
out[k] = stripGroundingMetadata(v);
|
|
19228
|
-
}
|
|
19229
|
-
return out;
|
|
19230
|
-
}
|
|
19231
|
-
return value;
|
|
19232
|
-
}
|
|
19233
|
-
|
|
19234
|
-
// ../types/src/processor/execution.ts
|
|
19235
|
-
function asTuple(values) {
|
|
19236
|
-
return values;
|
|
19237
|
-
}
|
|
19238
|
-
var WorkflowExecutionStatusValue, WorkflowExecutionStatusSchema, StepExecutionStatusValue, StepExecutionStatusSchema, TriggerTypeValue, TriggerTypeSchema, ExecutionTypeValue, ExecutionTypeSchema, WORKFLOW_EXECUTION_STATUSES, STEP_EXECUTION_STATUSES, TRIGGER_TYPES, EXECUTION_TYPES;
|
|
19239
|
-
var init_execution = __esm(() => {
|
|
19240
|
-
init_zod();
|
|
19241
|
-
WorkflowExecutionStatusValue = {
|
|
19242
|
-
CREATED: "created",
|
|
19243
|
-
PENDING: "pending",
|
|
19244
|
-
RUNNING: "running",
|
|
19245
|
-
WAITING: "waiting",
|
|
19246
|
-
COMPLETED: "completed",
|
|
19247
|
-
FAILED: "failed",
|
|
19248
|
-
CANCELLED: "cancelled"
|
|
19249
|
-
};
|
|
19250
|
-
WorkflowExecutionStatusSchema = exports_external.enum([
|
|
19251
|
-
WorkflowExecutionStatusValue.CREATED,
|
|
19252
|
-
WorkflowExecutionStatusValue.PENDING,
|
|
19253
|
-
WorkflowExecutionStatusValue.RUNNING,
|
|
19254
|
-
WorkflowExecutionStatusValue.WAITING,
|
|
19255
|
-
WorkflowExecutionStatusValue.COMPLETED,
|
|
19256
|
-
WorkflowExecutionStatusValue.FAILED,
|
|
19257
|
-
WorkflowExecutionStatusValue.CANCELLED
|
|
19258
|
-
]);
|
|
19259
|
-
StepExecutionStatusValue = {
|
|
19260
|
-
PENDING: "pending",
|
|
19261
|
-
RUNNING: "running",
|
|
19262
|
-
SUCCESS: "success",
|
|
19263
|
-
FAILURE: "failure",
|
|
19264
|
-
WAITING: "waiting",
|
|
19265
|
-
SKIPPED: "skipped"
|
|
19266
|
-
};
|
|
19267
|
-
StepExecutionStatusSchema = exports_external.enum([
|
|
19268
|
-
StepExecutionStatusValue.PENDING,
|
|
19269
|
-
StepExecutionStatusValue.RUNNING,
|
|
19270
|
-
StepExecutionStatusValue.SUCCESS,
|
|
19271
|
-
StepExecutionStatusValue.FAILURE,
|
|
19272
|
-
StepExecutionStatusValue.WAITING,
|
|
19273
|
-
StepExecutionStatusValue.SKIPPED
|
|
19274
|
-
]);
|
|
19275
|
-
TriggerTypeValue = {
|
|
19276
|
-
MANUAL: "manual",
|
|
19277
|
-
API: "api",
|
|
19278
|
-
WEBHOOK: "webhook",
|
|
19279
|
-
SCHEDULE: "schedule",
|
|
19280
|
-
EMAIL: "email",
|
|
19281
|
-
EVAL: "eval",
|
|
19282
|
-
CLI: "cli"
|
|
19283
|
-
};
|
|
19284
|
-
TriggerTypeSchema = exports_external.enum([
|
|
19285
|
-
TriggerTypeValue.MANUAL,
|
|
19286
|
-
TriggerTypeValue.API,
|
|
19287
|
-
TriggerTypeValue.WEBHOOK,
|
|
19288
|
-
TriggerTypeValue.SCHEDULE,
|
|
19289
|
-
TriggerTypeValue.EMAIL,
|
|
19290
|
-
TriggerTypeValue.EVAL,
|
|
19291
|
-
TriggerTypeValue.CLI
|
|
19292
|
-
]);
|
|
19293
|
-
ExecutionTypeValue = {
|
|
19294
|
-
PROD: "prod",
|
|
19295
|
-
EVAL: "eval",
|
|
19296
|
-
PLAYGROUND: "playground"
|
|
19297
|
-
};
|
|
19298
|
-
ExecutionTypeSchema = exports_external.enum([
|
|
19299
|
-
ExecutionTypeValue.PROD,
|
|
19300
|
-
ExecutionTypeValue.EVAL,
|
|
19301
|
-
ExecutionTypeValue.PLAYGROUND
|
|
19302
|
-
]);
|
|
19303
|
-
WORKFLOW_EXECUTION_STATUSES = asTuple(WorkflowExecutionStatusSchema.options);
|
|
19304
|
-
STEP_EXECUTION_STATUSES = asTuple(StepExecutionStatusSchema.options);
|
|
19305
|
-
TRIGGER_TYPES = TriggerTypeSchema.options;
|
|
19306
|
-
EXECUTION_TYPES = ExecutionTypeSchema.options;
|
|
19307
|
-
});
|
|
19308
|
-
|
|
19309
|
-
// ../types/src/processor/configs/classify.ts
|
|
19310
|
-
var ClassifyInputSchema, ClassifyLabelSchema, ClassifyConfigSchema, ClassifyOutputSchema;
|
|
19311
|
-
var init_classify = __esm(() => {
|
|
19312
|
-
init_zod();
|
|
19313
|
-
ClassifyInputSchema = exports_external.object({
|
|
19314
|
-
content: exports_external.string().optional().describe("Text content to classify"),
|
|
19315
|
-
text: exports_external.string().optional().describe("Text content (alternative to content)")
|
|
19316
|
-
}).refine((data) => !!(data.content || data.text), {
|
|
19317
|
-
message: "Either content or text must be provided"
|
|
19318
|
-
});
|
|
19319
|
-
ClassifyLabelSchema = exports_external.object({
|
|
19320
|
-
name: exports_external.string().min(1).describe("Label value returned in output.label"),
|
|
19321
|
-
description: exports_external.string().optional().describe("What documents fall into this label. Fed to the LLM as guidance.")
|
|
19322
|
-
});
|
|
19323
|
-
ClassifyConfigSchema = exports_external.object({
|
|
19324
|
-
labels: exports_external.array(ClassifyLabelSchema).min(2).describe("Allowed labels. The LLM is constrained to pick exactly one of these names."),
|
|
19325
|
-
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."),
|
|
19326
|
-
provider: exports_external.string().optional().describe('Provider ID (e.g., "openai-gpt4o-mini")'),
|
|
19327
|
-
model: exports_external.string().optional().describe("Model override"),
|
|
19328
|
-
maxInputTokens: exports_external.number().int().optional().describe("Max input tokens. Truncates input text when exceeded. Omit for no limit.")
|
|
19329
|
-
});
|
|
19330
|
-
ClassifyOutputSchema = exports_external.object({
|
|
19331
|
-
label: exports_external.string().describe("The selected label name"),
|
|
19332
|
-
confidence: exports_external.enum(["low", "medium", "high"]).describe("Coarse confidence in the classification"),
|
|
19333
|
-
reason: exports_external.string().describe("Short justification for the chosen label")
|
|
19334
|
-
});
|
|
19335
|
-
});
|
|
19336
|
-
|
|
19337
|
-
// ../types/src/parser/parser.ts
|
|
19338
|
-
function resolveEffectiveMimeType(filename, declaredMimeType) {
|
|
19339
|
-
const ext = filename.split(".").pop()?.toLowerCase();
|
|
19340
|
-
if (!ext)
|
|
19341
|
-
return declaredMimeType;
|
|
19342
|
-
const extensionMime = EXTENSION_TO_MIME[ext];
|
|
19343
|
-
return extensionMime ?? declaredMimeType;
|
|
19344
|
-
}
|
|
19345
|
-
function mimeTypeForExtension(extension) {
|
|
19346
|
-
return EXTENSION_TO_MIME[extension.replace(/^\./, "").toLowerCase()];
|
|
19347
|
-
}
|
|
19348
|
-
function extensionForMimeType(mimeType) {
|
|
19349
|
-
const base = mimeType.split(";")[0]?.trim().toLowerCase();
|
|
19350
|
-
return base ? MIME_TO_EXTENSION[base] : undefined;
|
|
19351
|
-
}
|
|
19352
|
-
function getParserCategory(mimeType) {
|
|
19353
|
-
const normalized = mimeType.toLowerCase().trim();
|
|
19354
|
-
if (ParserCategory.PLAINTEXT.includes(normalized)) {
|
|
19355
|
-
return "plaintext";
|
|
19356
|
-
}
|
|
19357
|
-
if (ParserCategory.OFFICE.includes(normalized)) {
|
|
19358
|
-
return "office";
|
|
19359
|
-
}
|
|
19360
|
-
if (ParserCategory.DOCUMENT.includes(normalized)) {
|
|
19361
|
-
return "document";
|
|
19362
|
-
}
|
|
19363
|
-
return null;
|
|
19364
|
-
}
|
|
19365
|
-
function requiresSpecializedParser(mimeType) {
|
|
19366
|
-
return getParserCategory(mimeType) === "document";
|
|
19367
|
-
}
|
|
19368
|
-
function getAllSupportedMimeTypes() {
|
|
19369
|
-
return [...ParserCategory.PLAINTEXT, ...ParserCategory.OFFICE, ...ParserCategory.DOCUMENT];
|
|
19370
|
-
}
|
|
19371
|
-
function getSupportedFormatsLabel() {
|
|
19372
|
-
const allMimes = getAllSupportedMimeTypes();
|
|
19373
|
-
const labels = [...new Set(allMimes.map((m) => MIME_TO_LABEL[m] ?? m))];
|
|
19374
|
-
return labels.join(", ");
|
|
19375
|
-
}
|
|
19376
|
-
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;
|
|
19377
|
-
var init_parser = __esm(() => {
|
|
19378
|
-
init_zod();
|
|
19379
|
-
OFFICE_MIME_TYPES = [
|
|
19380
|
-
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
19381
|
-
"application/msword",
|
|
19382
|
-
"application/vnd.oasis.opendocument.text",
|
|
19383
|
-
"application/rtf",
|
|
19384
|
-
"text/rtf",
|
|
19385
|
-
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
19386
|
-
"application/vnd.ms-excel",
|
|
19387
|
-
"application/vnd.ms-excel.sheet.macroenabled.12",
|
|
19388
|
-
"application/vnd.ms-excel.sheet.binary.macroenabled.12",
|
|
19389
|
-
"application/vnd.oasis.opendocument.spreadsheet",
|
|
19390
|
-
"application/vnd.openxmlformats-officedocument.presentationml.presentation",
|
|
19391
|
-
"application/vnd.openxmlformats-officedocument.presentationml.slideshow",
|
|
19392
|
-
"application/vnd.ms-powerpoint.presentation.macroenabled.12",
|
|
19393
|
-
"application/vnd.ms-powerpoint",
|
|
19394
|
-
"application/vnd.oasis.opendocument.presentation",
|
|
19395
|
-
"message/rfc822",
|
|
19396
|
-
"application/vnd.ms-outlook",
|
|
19397
|
-
"application/epub+zip"
|
|
19398
|
-
];
|
|
19399
|
-
ParserCategory = {
|
|
19400
|
-
PLAINTEXT: [
|
|
19401
|
-
"text/plain",
|
|
19402
|
-
"text/markdown",
|
|
19403
|
-
"text/csv",
|
|
19404
|
-
"text/tab-separated-values",
|
|
19405
|
-
"text/html",
|
|
19406
|
-
"text/xml",
|
|
19407
|
-
"application/json",
|
|
19408
|
-
"application/x-yaml",
|
|
19409
|
-
"application/toml",
|
|
19410
|
-
"image/svg+xml",
|
|
19411
|
-
"text/x-rst",
|
|
19412
|
-
"text/x-org",
|
|
19413
|
-
"application/x-latex",
|
|
19414
|
-
"application/x-ipynb+json",
|
|
19415
|
-
"application/x-bibtex",
|
|
19416
|
-
"application/docbook+xml",
|
|
19417
|
-
"application/x-fictionbook+xml"
|
|
19418
|
-
],
|
|
19419
|
-
OFFICE: [...OFFICE_MIME_TYPES],
|
|
19420
|
-
DOCUMENT: [
|
|
19421
|
-
"application/pdf",
|
|
19422
|
-
"image/png",
|
|
19423
|
-
"image/jpeg",
|
|
19424
|
-
"image/webp",
|
|
19425
|
-
"image/tiff",
|
|
19426
|
-
"image/gif",
|
|
19427
|
-
"image/bmp"
|
|
19428
|
-
]
|
|
19429
|
-
};
|
|
19430
|
-
ParserTypeSchema = exports_external.enum([
|
|
19431
|
-
"plaintext",
|
|
19432
|
-
"office",
|
|
19433
|
-
"llm-vision",
|
|
19434
|
-
"ocr"
|
|
19435
|
-
]);
|
|
19436
|
-
DocumentMetadataSchema = exports_external.object({
|
|
19437
|
-
filename: exports_external.string(),
|
|
19438
|
-
mimeType: exports_external.string(),
|
|
19439
|
-
size: exports_external.number().describe("File size in bytes"),
|
|
19440
|
-
storageRef: exports_external.string().optional().describe("Storage reference for the original file")
|
|
19441
|
-
});
|
|
19442
|
-
ParseUsageSchema = exports_external.object({
|
|
19443
|
-
pageCount: exports_external.number(),
|
|
19444
|
-
processingTimeMs: exports_external.number().optional()
|
|
19445
|
-
});
|
|
19446
|
-
CoordinateUnitSchema = exports_external.enum(["pixel", "inch", "point", "normalized"]);
|
|
19447
|
-
PointSchema = exports_external.object({
|
|
19448
|
-
x: exports_external.number(),
|
|
19449
|
-
y: exports_external.number()
|
|
19450
|
-
});
|
|
19451
|
-
BoundingRegionSchema = exports_external.object({
|
|
19452
|
-
polygon: exports_external.array(PointSchema).min(3),
|
|
19453
|
-
unit: CoordinateUnitSchema,
|
|
19454
|
-
pageIndex: exports_external.number()
|
|
19455
|
-
});
|
|
19456
|
-
PositionedTextSchema = exports_external.object({
|
|
19457
|
-
text: exports_external.string(),
|
|
19458
|
-
confidence: exports_external.number().min(0).max(1).optional(),
|
|
19459
|
-
boundingRegion: BoundingRegionSchema.optional()
|
|
19460
|
-
});
|
|
19461
|
-
TableCellSchema = exports_external.object({
|
|
19462
|
-
content: exports_external.string(),
|
|
19463
|
-
rowIndex: exports_external.number(),
|
|
19464
|
-
columnIndex: exports_external.number(),
|
|
19465
|
-
rowSpan: exports_external.number().default(1),
|
|
19466
|
-
columnSpan: exports_external.number().default(1),
|
|
19467
|
-
boundingRegion: BoundingRegionSchema.optional()
|
|
19468
|
-
});
|
|
19469
|
-
ExtractedTableSchema = exports_external.object({
|
|
19470
|
-
cells: exports_external.array(TableCellSchema),
|
|
19471
|
-
rowCount: exports_external.number(),
|
|
19472
|
-
columnCount: exports_external.number(),
|
|
19473
|
-
boundingRegion: BoundingRegionSchema.optional()
|
|
19474
|
-
});
|
|
19475
|
-
LayoutElementTypeSchema = exports_external.enum([
|
|
19476
|
-
"paragraph",
|
|
19477
|
-
"title",
|
|
19478
|
-
"sectionHeading",
|
|
19479
|
-
"pageHeader",
|
|
19480
|
-
"pageFooter",
|
|
19481
|
-
"pageNumber",
|
|
19482
|
-
"footnote",
|
|
19483
|
-
"table",
|
|
19484
|
-
"figure",
|
|
19485
|
-
"formulaBlock"
|
|
19486
|
-
]);
|
|
19487
|
-
LayoutElementSchema = exports_external.object({
|
|
19488
|
-
type: LayoutElementTypeSchema,
|
|
19489
|
-
content: exports_external.string(),
|
|
19490
|
-
table: ExtractedTableSchema.optional(),
|
|
19491
|
-
caption: exports_external.string().optional(),
|
|
19492
|
-
figureId: exports_external.string().optional(),
|
|
19493
|
-
boundingRegion: BoundingRegionSchema.optional()
|
|
19494
|
-
});
|
|
19495
|
-
PageResultSchema = exports_external.object({
|
|
19496
|
-
pageIndex: exports_external.number().describe("0-based page index"),
|
|
19497
|
-
text: exports_external.string().describe("Extracted text content (markdown/HTML)"),
|
|
19498
|
-
pageName: exports_external.string().optional().describe("Page/sheet name (e.g., Excel sheet name)"),
|
|
19499
|
-
layoutElements: exports_external.array(LayoutElementSchema).optional().describe("Semantic layout elements in reading order"),
|
|
19500
|
-
words: exports_external.array(PositionedTextSchema).optional().describe("Word-level positions"),
|
|
19501
|
-
lines: exports_external.array(PositionedTextSchema).optional().describe("Line-level positions"),
|
|
19502
|
-
tables: exports_external.array(ExtractedTableSchema).optional().describe("Extracted tables"),
|
|
19503
|
-
width: exports_external.number().optional().describe("Page width"),
|
|
19504
|
-
height: exports_external.number().optional().describe("Page height"),
|
|
19505
|
-
unit: CoordinateUnitSchema.optional().describe("Unit for width/height and bounding regions"),
|
|
19506
|
-
confidence: exports_external.number().min(0).max(1).optional().describe("Overall page confidence")
|
|
19507
|
-
});
|
|
19508
|
-
ParseResultSchema = exports_external.object({
|
|
19509
|
-
document: DocumentMetadataSchema,
|
|
19510
|
-
usage: ParseUsageSchema,
|
|
19511
|
-
pages: exports_external.array(PageResultSchema),
|
|
19512
|
-
text: exports_external.string().describe("Combined text from all pages"),
|
|
19513
|
-
parserType: ParserTypeSchema,
|
|
19514
|
-
parserVersion: exports_external.string().optional(),
|
|
19515
|
-
model: exports_external.string().optional().describe("Model used (for LLM/OCR parsers)"),
|
|
19516
|
-
rawResponse: exports_external.unknown().optional()
|
|
19517
|
-
});
|
|
19518
|
-
ParseOptionsSchema = exports_external.object({
|
|
19519
|
-
outputFormat: exports_external.enum(["plain", "markdown", "djot", "html"]).default("markdown"),
|
|
19520
|
-
ocrProvider: exports_external.string().optional().describe("OCR provider ID to use"),
|
|
19521
|
-
includeWordPositions: exports_external.boolean().default(false),
|
|
19522
|
-
includeLinePositions: exports_external.boolean().default(false),
|
|
19523
|
-
extractTables: exports_external.boolean().default(true),
|
|
19524
|
-
provider: exports_external.string().optional().describe("LLM provider ID to use"),
|
|
19525
|
-
model: exports_external.string().optional(),
|
|
19526
|
-
maxConcurrency: exports_external.number().min(1).max(30).default(3),
|
|
19527
|
-
pagesPerBatch: exports_external.number().min(1).max(20).default(5),
|
|
19528
|
-
pdfRenderScale: exports_external.number().min(1).max(4).default(1).describe("Scale factor used when rendering PDF pages for VLM parsing"),
|
|
19529
|
-
imageQuality: exports_external.number().int().min(1).max(100).default(85).describe("JPEG quality used for PDF page images sent to VLM parsing"),
|
|
19530
|
-
prompt: exports_external.string().optional().describe("Custom prompt for LLM-based parsing"),
|
|
19531
|
-
languages: exports_external.array(exports_external.string()).optional().describe("OCR language hints"),
|
|
19532
|
-
tenantId: exports_external.string().optional()
|
|
19533
|
-
});
|
|
19534
|
-
ParserInputSchema = exports_external.object({
|
|
19535
|
-
data: exports_external.instanceof(Buffer).or(exports_external.instanceof(Uint8Array)),
|
|
19536
|
-
filename: exports_external.string(),
|
|
19537
|
-
mimeType: exports_external.string(),
|
|
19538
|
-
options: ParseOptionsSchema.optional()
|
|
19539
|
-
});
|
|
19540
|
-
EXTENSION_TO_MIME = {
|
|
19541
|
-
docx: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
19542
|
-
doc: "application/msword",
|
|
19543
|
-
odt: "application/vnd.oasis.opendocument.text",
|
|
19544
|
-
rtf: "application/rtf",
|
|
19545
|
-
xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
19546
|
-
xls: "application/vnd.ms-excel",
|
|
19547
|
-
xlsm: "application/vnd.ms-excel.sheet.macroenabled.12",
|
|
19548
|
-
xlsb: "application/vnd.ms-excel.sheet.binary.macroenabled.12",
|
|
19549
|
-
ods: "application/vnd.oasis.opendocument.spreadsheet",
|
|
19550
|
-
pptx: "application/vnd.openxmlformats-officedocument.presentationml.presentation",
|
|
19551
|
-
ppsx: "application/vnd.openxmlformats-officedocument.presentationml.slideshow",
|
|
19552
|
-
pptm: "application/vnd.ms-powerpoint.presentation.macroenabled.12",
|
|
19553
|
-
ppt: "application/vnd.ms-powerpoint",
|
|
19554
|
-
odp: "application/vnd.oasis.opendocument.presentation",
|
|
19555
|
-
eml: "message/rfc822",
|
|
19556
|
-
msg: "application/vnd.ms-outlook",
|
|
19557
|
-
epub: "application/epub+zip",
|
|
19558
|
-
pdf: "application/pdf",
|
|
19559
|
-
png: "image/png",
|
|
19560
|
-
jpg: "image/jpeg",
|
|
19561
|
-
jpeg: "image/jpeg",
|
|
19562
|
-
webp: "image/webp",
|
|
19563
|
-
tiff: "image/tiff",
|
|
19564
|
-
tif: "image/tiff",
|
|
19565
|
-
gif: "image/gif",
|
|
19566
|
-
bmp: "image/bmp",
|
|
19567
|
-
svg: "image/svg+xml",
|
|
19568
|
-
txt: "text/plain",
|
|
19569
|
-
md: "text/markdown",
|
|
19570
|
-
markdown: "text/markdown",
|
|
19571
|
-
csv: "text/csv",
|
|
19572
|
-
tsv: "text/tab-separated-values",
|
|
19573
|
-
html: "text/html",
|
|
19574
|
-
htm: "text/html",
|
|
19575
|
-
xml: "text/xml",
|
|
19576
|
-
json: "application/json",
|
|
19577
|
-
yaml: "application/x-yaml",
|
|
19578
|
-
yml: "application/x-yaml",
|
|
19579
|
-
toml: "application/toml",
|
|
19580
|
-
rst: "text/x-rst",
|
|
19581
|
-
org: "text/x-org",
|
|
19582
|
-
tex: "application/x-latex",
|
|
19583
|
-
latex: "application/x-latex",
|
|
19584
|
-
ipynb: "application/x-ipynb+json",
|
|
19585
|
-
bib: "application/x-bibtex",
|
|
19586
|
-
dbk: "application/docbook+xml",
|
|
19587
|
-
docbook: "application/docbook+xml",
|
|
19588
|
-
fb2: "application/x-fictionbook+xml"
|
|
19589
|
-
};
|
|
19590
|
-
MIME_TO_EXTENSION = Object.entries(EXTENSION_TO_MIME).reduce((acc, [ext, mime]) => {
|
|
19591
|
-
if (!(mime in acc))
|
|
19592
|
-
acc[mime] = ext;
|
|
19593
|
-
return acc;
|
|
19594
|
-
}, {});
|
|
19595
|
-
MIME_TO_LABEL = {
|
|
19596
|
-
"application/vnd.openxmlformats-officedocument.wordprocessingml.document": "DOCX",
|
|
19597
|
-
"application/msword": "DOC",
|
|
19598
|
-
"application/vnd.oasis.opendocument.text": "ODT",
|
|
19599
|
-
"application/rtf": "RTF",
|
|
19600
|
-
"text/rtf": "RTF",
|
|
19601
|
-
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": "XLSX",
|
|
19602
|
-
"application/vnd.ms-excel": "XLS",
|
|
19603
|
-
"application/vnd.ms-excel.sheet.macroenabled.12": "XLSM",
|
|
19604
|
-
"application/vnd.ms-excel.sheet.binary.macroenabled.12": "XLSB",
|
|
19605
|
-
"application/vnd.oasis.opendocument.spreadsheet": "ODS",
|
|
19606
|
-
"application/vnd.openxmlformats-officedocument.presentationml.presentation": "PPTX",
|
|
19607
|
-
"application/vnd.openxmlformats-officedocument.presentationml.slideshow": "PPSX",
|
|
19608
|
-
"application/vnd.ms-powerpoint.presentation.macroenabled.12": "PPTM",
|
|
19609
|
-
"application/vnd.ms-powerpoint": "PPT",
|
|
19610
|
-
"application/vnd.oasis.opendocument.presentation": "ODP",
|
|
19611
|
-
"message/rfc822": "EML",
|
|
19612
|
-
"application/vnd.ms-outlook": "MSG",
|
|
19613
|
-
"application/epub+zip": "EPUB",
|
|
19614
|
-
"application/pdf": "PDF",
|
|
19615
|
-
"image/png": "PNG",
|
|
19616
|
-
"image/jpeg": "JPEG",
|
|
19617
|
-
"image/webp": "WebP",
|
|
19618
|
-
"image/tiff": "TIFF",
|
|
19619
|
-
"image/gif": "GIF",
|
|
19620
|
-
"image/bmp": "BMP",
|
|
19621
|
-
"image/svg+xml": "SVG",
|
|
19622
|
-
"text/plain": "TXT",
|
|
19623
|
-
"text/markdown": "Markdown",
|
|
19624
|
-
"text/csv": "CSV",
|
|
19625
|
-
"text/tab-separated-values": "TSV",
|
|
19626
|
-
"text/html": "HTML",
|
|
19627
|
-
"text/xml": "XML",
|
|
19628
|
-
"application/json": "JSON",
|
|
19629
|
-
"application/x-yaml": "YAML",
|
|
19630
|
-
"application/toml": "TOML",
|
|
19631
|
-
"text/x-rst": "RST",
|
|
19632
|
-
"text/x-org": "Org",
|
|
19633
|
-
"application/x-latex": "LaTeX",
|
|
19634
|
-
"application/x-ipynb+json": "Jupyter",
|
|
19635
|
-
"application/x-bibtex": "BibTeX",
|
|
19636
|
-
"application/docbook+xml": "DocBook",
|
|
19637
|
-
"application/x-fictionbook+xml": "FB2"
|
|
19638
|
-
};
|
|
19639
|
-
});
|
|
19640
|
-
|
|
19641
|
-
// ../types/src/processor/configs/document-parser.ts
|
|
19642
|
-
var DocumentParserInputSchema, DocumentParserOutputSchema, DocumentParserConfigSchema;
|
|
19643
|
-
var init_document_parser = __esm(() => {
|
|
19644
|
-
init_zod();
|
|
19645
|
-
init_runtime_file_ref();
|
|
19646
|
-
init_parser();
|
|
19647
|
-
DocumentParserInputSchema = ResolvedProcessorFileSchema;
|
|
19648
|
-
DocumentParserOutputSchema = ParseResultSchema;
|
|
19649
|
-
DocumentParserConfigSchema = exports_external.object({
|
|
19650
|
-
ocrModel: exports_external.string().optional().describe("OCR provider ID for PDF/image parsing"),
|
|
19651
|
-
llmModel: exports_external.string().optional().describe("LLM provider ID for vision-based parsing"),
|
|
19652
|
-
maxConcurrency: exports_external.number().min(1).max(10).default(3).describe("Max concurrent VLM batch requests"),
|
|
19653
|
-
pagesPerBatch: exports_external.number().min(1).max(20).default(5).describe("Number of page images per VLM request"),
|
|
19654
|
-
pdfRenderScale: exports_external.number().min(1).max(4).default(1).optional().describe("Scale factor used when rendering PDF pages for VLM parsing"),
|
|
19655
|
-
imageQuality: exports_external.number().int().min(1).max(100).default(85).optional().describe("JPEG quality used for PDF page images sent to VLM parsing"),
|
|
19656
|
-
prompt: exports_external.string().optional().describe("Custom extraction prompt"),
|
|
19657
|
-
nativeText: exports_external.boolean().default(false).optional().describe("Use native text extraction for PDFs with embedded text (no OCR/VLM)"),
|
|
19658
|
-
describeFigures: exports_external.boolean().optional().describe("Opt-in (default off). After text extraction, detect figure pages with a layout model and caption them with a vision model, appending `<figure>description</figure>` to their text. Skipped for plaintext. The caption vision calls are billed."),
|
|
19659
|
-
figureInstructions: exports_external.string().optional().describe("Custom instruction for the figure-description pass."),
|
|
19660
|
-
languages: exports_external.array(exports_external.string()).optional().describe('OCR language hints (e.g., ["en", "de"])'),
|
|
19661
|
-
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.")
|
|
19662
|
-
}).prefault({});
|
|
19663
|
-
});
|
|
19664
|
-
|
|
19665
|
-
// ../types/src/processor/configs/extract.ts
|
|
19666
|
-
var ExtractInputSchema, ExtractOutputSchema, ExtractConfigSchema;
|
|
19667
|
-
var init_extract = __esm(() => {
|
|
19668
|
-
init_zod();
|
|
19669
|
-
ExtractInputSchema = exports_external.object({
|
|
19670
|
-
content: exports_external.string().optional().describe("Text content to extract from"),
|
|
19671
|
-
text: exports_external.string().optional().describe("Text content (alternative to content, e.g., from document parser)"),
|
|
19672
|
-
contentType: exports_external.enum(["text", "image"]).default("text"),
|
|
19673
|
-
imageData: exports_external.string().optional(),
|
|
19674
|
-
imageMimeType: exports_external.string().optional()
|
|
19675
|
-
}).refine((data) => data.content || data.text, {
|
|
19676
|
-
message: "Either content or text must be provided"
|
|
19677
|
-
});
|
|
19678
|
-
ExtractOutputSchema = exports_external.record(exports_external.string(), exports_external.unknown()).describe("Extracted structured data matching the provided schema. Unless grounding is disabled (grounded: false), the output also carries a reserved `_grounding` map keyed by field name: `_grounding.<field> = { confidence: high|medium|low, needsReview, reason?, source_span: { start, end, text, alignment } | null }`, plus reserved `_degraded: true` / `_reason` markers when the grounding LLM pass could not run.");
|
|
19679
|
-
ExtractConfigSchema = exports_external.object({
|
|
19680
|
-
schema: exports_external.record(exports_external.string(), exports_external.unknown()).describe("JSON Schema defining the structure to extract"),
|
|
19681
|
-
prompt: exports_external.string().optional().describe("Custom prompt template for extraction"),
|
|
19682
|
-
provider: exports_external.string().optional().describe('Provider ID to use (e.g., "openai-gpt4o", "anthropic-claude")'),
|
|
19683
|
-
model: exports_external.string().optional().describe("Model to use (overrides provider default)"),
|
|
19684
|
-
maxInputTokens: exports_external.number().int().optional().describe("Max input tokens. Truncates input text and logs a warning when exceeded. Omit for no limit."),
|
|
19685
|
-
grounded: exports_external.boolean().optional().describe("Grounding is ON by default: a grounding pass runs over the schema fields and attaches per-field source spans + confidence under a reserved `_grounding` output key, flagging fields whose value cannot be located in the source for human review. The pass runs through the workspace LLM (any provider) and chunks long documents automatically. Tri-state: unset (default) = on, degrading gracefully to deterministic text alignment (`_grounding._degraded: true`) if no grounding model is available; `true` = strict, the step fails when the grounding model cannot be resolved; `false` = off, no `_grounding` key at all."),
|
|
19686
|
-
groundingModel: exports_external.string().optional().describe("Provider/model for the grounding pass. Defaults to the workspace default LLM. Any configured provider works; the pass only fails the step when `grounded: true` is set explicitly and no model resolves."),
|
|
19687
|
-
groundingExamples: exports_external.array(exports_external.object({
|
|
19688
|
-
text: exports_external.string(),
|
|
19689
|
-
extractions: exports_external.array(exports_external.object({ field: exports_external.string(), text: exports_external.string() }))
|
|
19690
|
-
})).optional().describe("Few-shot examples for grounding (verbatim source text per field). Optional."),
|
|
19691
|
-
reviewOn: exports_external.enum(["medium_or_low", "low_only"]).optional().describe("Which grounding confidences set needsReview on a field. Default: low_only (only fields whose value could not be located in the source). Use medium_or_low to also flag approximate and derived matches.")
|
|
19692
|
-
});
|
|
19693
|
-
});
|
|
19694
|
-
|
|
19695
|
-
// ../types/src/processor/configs/merge.ts
|
|
19696
|
-
var MergeConfigSchema, MergeInputSchema, MergeOutputSchema;
|
|
19697
|
-
var init_merge = __esm(() => {
|
|
19698
|
-
init_zod();
|
|
19699
|
-
MergeConfigSchema = exports_external.object({
|
|
19700
|
-
preservePortNames: exports_external.boolean().default(true),
|
|
19701
|
-
outputKey: exports_external.string().optional()
|
|
19702
|
-
});
|
|
19703
|
-
MergeInputSchema = exports_external.record(exports_external.string(), exports_external.unknown());
|
|
19704
|
-
MergeOutputSchema = exports_external.object({
|
|
19705
|
-
items: exports_external.array(exports_external.unknown()),
|
|
19706
|
-
count: exports_external.number(),
|
|
19707
|
-
merged: exports_external.record(exports_external.string(), exports_external.unknown()).optional()
|
|
19708
|
-
});
|
|
19709
|
-
});
|
|
19710
|
-
|
|
19711
|
-
// ../types/src/processor/configs/pdf-embedder.ts
|
|
19712
|
-
var PdfEmbedderInputSchema, PdfEmbedderOutputSchema, PdfEmbedderConfigSchema;
|
|
19713
|
-
var init_pdf_embedder = __esm(() => {
|
|
19714
|
-
init_zod();
|
|
19715
|
-
init_runtime_file_ref();
|
|
19716
|
-
init_parser();
|
|
19717
|
-
PdfEmbedderInputSchema = exports_external.object({
|
|
19718
|
-
file: ResolvedProcessorFileSchema.describe("Resolved source file handle"),
|
|
19719
|
-
parseResult: exports_external.object({
|
|
19720
|
-
pages: exports_external.array(PageResultSchema),
|
|
19721
|
-
text: exports_external.string().optional()
|
|
19722
|
-
}).describe("Parse result from ai.parse step (must include word positions)")
|
|
19723
|
-
});
|
|
19724
|
-
PdfEmbedderOutputSchema = exports_external.object({
|
|
19725
|
-
fileId: exports_external.string().describe("File ID from files table"),
|
|
19726
|
-
pageCount: exports_external.number().describe("Number of pages in the output PDF"),
|
|
19727
|
-
wordCount: exports_external.number().describe("Number of words embedded"),
|
|
19728
|
-
text: exports_external.string().describe("Extracted text (from parse step)")
|
|
19729
|
-
});
|
|
19730
|
-
PdfEmbedderConfigSchema = exports_external.object({
|
|
19731
|
-
outputFilename: exports_external.string().optional().describe('Output filename - supports LiquidJS syntax e.g. "{{filename}}-searchable.pdf"'),
|
|
19732
|
-
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")
|
|
19733
|
-
}).prefault({});
|
|
19734
|
-
});
|
|
19735
|
-
|
|
19736
|
-
// ../types/src/processor/configs/segment.ts
|
|
19737
|
-
var SegmentInputSchema, SEGMENT_UNKNOWN_TYPE = "unknown", SegmentConfigSchema, ConfidenceLevelSchema, SegmentSummarySchema, SegmentOutputSchema;
|
|
19738
|
-
var init_segment = __esm(() => {
|
|
19739
|
-
init_zod();
|
|
19740
|
-
SegmentInputSchema = exports_external.object({
|
|
19741
|
-
pages: exports_external.array(exports_external.object({
|
|
19742
|
-
pageIndex: exports_external.number().describe("0-based page index"),
|
|
19743
|
-
text: exports_external.string().describe("Extracted text for this page"),
|
|
19744
|
-
pageName: exports_external.string().optional()
|
|
19745
|
-
})).min(1).describe("Per-page parsed content from a document parser")
|
|
19746
|
-
}).passthrough().describe("Document-parser-shaped input. Pass {{ steps.parse.output }} directly — extra fields like text/metadata are ignored.");
|
|
19747
|
-
SegmentConfigSchema = exports_external.object({
|
|
19748
|
-
documentTypes: exports_external.array(exports_external.object({
|
|
19749
|
-
name: exports_external.string().min(1).describe('Type label returned in documents[].type (e.g. "timesheet", "deal-memo").'),
|
|
19750
|
-
description: exports_external.string().optional().describe("What this document type looks like — headings, layout, vocabulary, and the visual cues that mark its FIRST page. Fed to the LLM as guidance for both boundary detection and typing.")
|
|
19751
|
-
})).min(1).describe('The document-type taxonomy. The LLM tags each detected document with one of these names, or the reserved "unknown" type when none fit.'),
|
|
19752
|
-
rules: exports_external.string().optional().describe("Optional natural-language rules appended to the system prompt"),
|
|
19753
|
-
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.'),
|
|
19754
|
-
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 boundaries on dense batches; larger windows when documents routinely exceed the per-window page count.")
|
|
19755
|
-
});
|
|
19756
|
-
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.");
|
|
19757
|
-
SegmentSummarySchema = exports_external.object({
|
|
19758
|
-
total: exports_external.number().int().describe("Total documents discovered in the batch."),
|
|
19759
|
-
labelled: exports_external.number().int().describe('Documents assigned a known taxonomy type (type !== "unknown").'),
|
|
19760
|
-
unlabelled: exports_external.number().int().describe('Documents the segmenter could not label (type === "unknown") — escalate to a human.'),
|
|
19761
|
-
lowConfidence: exports_external.number().int().describe('Documents whose boundary/type confidence is "low" — also worth human review.'),
|
|
19762
|
-
byType: exports_external.record(exports_external.string(), exports_external.number().int()).describe('Per-type document counts, keyed by type name (includes "unknown").'),
|
|
19763
|
-
needsReview: exports_external.array(exports_external.object({
|
|
19764
|
-
index: exports_external.number().int(),
|
|
19765
|
-
type: exports_external.string(),
|
|
19766
|
-
page_range: exports_external.tuple([exports_external.number().int(), exports_external.number().int()]),
|
|
19767
|
-
reason: exports_external.enum(["unlabelled", "low_confidence"]).describe("Why this document should be escalated to a human operator."),
|
|
19768
|
-
notes: exports_external.string()
|
|
19769
|
-
})).describe("The exact documents to escalate to a human operator, with the reason for each.")
|
|
19770
|
-
});
|
|
19771
|
-
SegmentOutputSchema = exports_external.object({
|
|
19772
|
-
summary: SegmentSummarySchema.describe("Batch-level escalation summary: labelled vs unlabelled counts and the documents needing human review."),
|
|
19773
|
-
documents: exports_external.array(exports_external.object({
|
|
19774
|
-
index: exports_external.number().int().describe("0-based position of this document in the batch, in page order."),
|
|
19775
|
-
type: exports_external.string().describe('Chosen type name from the taxonomy, or "unknown" when none fit.'),
|
|
19776
|
-
page_range: exports_external.tuple([exports_external.number().int(), exports_external.number().int()]).describe("Inclusive [startPage, endPage], 0-based, matching input pageIndex."),
|
|
19777
|
-
confidence: ConfidenceLevelSchema.describe("LLM confidence at the document boundary + type: low | medium | high."),
|
|
19778
|
-
notes: exports_external.string().describe("Short prose citing what marked this page as a new document."),
|
|
19779
|
-
evidence: exports_external.object({
|
|
19780
|
-
start_heading_text: exports_external.string().nullable().optional().describe("Verbatim heading/title text the LLM cited as the document start"),
|
|
19781
|
-
start_page: exports_external.number().int().nullable().optional().describe("Page where the start appears")
|
|
19782
|
-
}).optional().describe("Structured start evidence — for downstream parsing without regex over `notes`."),
|
|
19783
|
-
text: exports_external.string().describe("Joined per-page text for this document, ready for ai.extract"),
|
|
19784
|
-
pages: exports_external.array(exports_external.object({
|
|
19785
|
-
pageIndex: exports_external.number().int(),
|
|
19786
|
-
text: exports_external.string(),
|
|
19787
|
-
pageName: exports_external.string().optional(),
|
|
19788
|
-
source: exports_external.enum(["anchored", "inferred"]).describe("Whether this page was the LLM boundary (direct evidence) or filled in by continuity")
|
|
19789
|
-
})).describe("Raw per-page records covered by this document, in page order."),
|
|
19790
|
-
pages_anchored: exports_external.array(exports_external.number().int()),
|
|
19791
|
-
pages_inferred: exports_external.array(exports_external.number().int())
|
|
19792
|
-
}))
|
|
19793
|
-
});
|
|
19794
|
-
});
|
|
19795
|
-
|
|
19796
|
-
// ../types/src/processor/configs/split.ts
|
|
19797
|
-
var SplitInputSchema, SplitConfigSchema, ConfidenceLevelSchema2, SplitSectionSchema, SplitOutputSchema;
|
|
19798
|
-
var init_split = __esm(() => {
|
|
19799
|
-
init_zod();
|
|
19800
|
-
SplitInputSchema = exports_external.object({
|
|
19801
|
-
pages: exports_external.array(exports_external.object({
|
|
19802
|
-
pageIndex: exports_external.number().describe("0-based page index"),
|
|
19803
|
-
text: exports_external.string().describe("Extracted text for this page"),
|
|
19804
|
-
pageName: exports_external.string().optional()
|
|
19805
|
-
})).min(1).describe("Per-page parsed content from a document parser")
|
|
19806
|
-
}).passthrough().describe("Document-parser-shaped input. Pass {{ steps.parse.output }} directly — extra fields like text/metadata are ignored.");
|
|
19807
|
-
SplitConfigSchema = exports_external.object({
|
|
19808
|
-
sections: exports_external.array(exports_external.object({
|
|
19809
|
-
name: exports_external.string().min(1).describe("Stable id for the section"),
|
|
19810
|
-
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."),
|
|
19811
|
-
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").'),
|
|
19812
|
-
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.')
|
|
19813
|
-
})).min(1),
|
|
19814
|
-
rules: exports_external.string().optional().describe("Optional natural-language rules appended to the system prompt"),
|
|
19815
|
-
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.'),
|
|
19816
|
-
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.")
|
|
19817
|
-
});
|
|
19818
|
-
ConfidenceLevelSchema2 = 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.");
|
|
19819
|
-
SplitSectionSchema = exports_external.object({
|
|
19820
|
-
name: exports_external.string(),
|
|
19821
|
-
page_range: exports_external.tuple([exports_external.number().int(), exports_external.number().int()]),
|
|
19822
|
-
confidence: ConfidenceLevelSchema2.describe("LLM confidence at the start anchor: low | medium | high."),
|
|
19823
|
-
notes: exports_external.string(),
|
|
19824
|
-
evidence: exports_external.object({
|
|
19825
|
-
start_heading_text: exports_external.string().nullable().optional().describe("Verbatim heading text the LLM cited as the section start"),
|
|
19826
|
-
start_page: exports_external.number().int().nullable().optional().describe("Page where start_heading_text appears")
|
|
19827
|
-
}).optional().describe("Structured start-anchor evidence the LLM cited — for downstream parsing without regex over `notes`."),
|
|
19828
|
-
end_evidence: exports_external.object({
|
|
19829
|
-
end_page: exports_external.number().int().describe("LAST page of the section (inclusive)"),
|
|
19830
|
-
confidence: ConfidenceLevelSchema2,
|
|
19831
|
-
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.")
|
|
19832
|
-
}).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)."),
|
|
19833
|
-
text: exports_external.string().describe("Joined per-page text for this section, ready for ai.extract"),
|
|
19834
|
-
pages: exports_external.array(exports_external.object({
|
|
19835
|
-
pageIndex: exports_external.number().int(),
|
|
19836
|
-
text: exports_external.string(),
|
|
19837
|
-
pageName: exports_external.string().optional(),
|
|
19838
|
-
source: exports_external.enum(["anchored", "inferred"]).describe("Whether this page was the LLM anchor (direct evidence) or filled in by continuity")
|
|
19839
|
-
})).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."),
|
|
19840
|
-
pages_anchored: exports_external.array(exports_external.number().int()),
|
|
19841
|
-
pages_inferred: exports_external.array(exports_external.number().int())
|
|
19842
|
-
});
|
|
19843
|
-
SplitOutputSchema = exports_external.object({
|
|
19844
|
-
splits: exports_external.array(SplitSectionSchema),
|
|
19845
|
-
sections: exports_external.record(exports_external.string(), SplitSectionSchema).describe("The same sections keyed by their config name, for direct reference: `steps.<split>.output.sections.<name>.page_range`. On the rare duplicate name, the last section wins; use `splits` for the full ordered list.")
|
|
19846
|
-
});
|
|
19847
|
-
});
|
|
19848
|
-
|
|
19849
|
-
// ../types/src/processor/configs/template.ts
|
|
19850
|
-
var TemplateInputSchema, TemplateOutputSchema, TemplateConfigSchema;
|
|
19851
|
-
var init_template = __esm(() => {
|
|
19852
|
-
init_zod();
|
|
19853
|
-
TemplateInputSchema = exports_external.object({
|
|
19854
|
-
data: exports_external.record(exports_external.string(), exports_external.unknown()).describe("Data to merge into the template")
|
|
19855
|
-
});
|
|
19856
|
-
TemplateOutputSchema = exports_external.object({
|
|
19857
|
-
fileId: exports_external.string().describe("File ID from files table")
|
|
19858
|
-
});
|
|
19859
|
-
TemplateConfigSchema = exports_external.object({
|
|
19860
|
-
templateId: exports_external.string().describe("ID of the template from templates table"),
|
|
19861
|
-
outputFilename: exports_external.string().optional().describe('Output filename - supports LiquidJS syntax e.g. "{{invoice_id}}-report.docx"'),
|
|
19862
|
-
highlightNotFound: exports_external.boolean().default(true).optional().describe("Highlight missing variables with red-colored text in the output document"),
|
|
19863
|
-
notFoundText: exports_external.string().default("NOT FOUND").optional().describe("Text to display for missing variables when highlightNotFound is enabled")
|
|
19864
|
-
});
|
|
19865
|
-
});
|
|
19866
|
-
|
|
19867
|
-
// ../types/src/processor/configs/xlsx-to-json.ts
|
|
19868
|
-
var XlsxToJsonInputSchema, XlsxToJsonOutputSchema, XlsxToJsonConfigSchema;
|
|
19869
|
-
var init_xlsx_to_json = __esm(() => {
|
|
19870
|
-
init_zod();
|
|
19871
|
-
init_runtime_file_ref();
|
|
19872
|
-
XlsxToJsonInputSchema = ResolvedProcessorFileSchema;
|
|
19873
|
-
XlsxToJsonOutputSchema = exports_external.object({
|
|
19874
|
-
rows: exports_external.array(exports_external.record(exports_external.string(), exports_external.unknown())).describe("Array of row objects (header row = keys)"),
|
|
19875
|
-
fileId: exports_external.string().optional().describe("File ID of stored CSV when outputCsv is true")
|
|
19876
|
-
});
|
|
19877
|
-
XlsxToJsonConfigSchema = exports_external.object({
|
|
19878
|
-
sheet: exports_external.union([exports_external.number().int().min(0), exports_external.string()]).optional().describe("Sheet to read: 0-based index or sheet name"),
|
|
19879
|
-
outputCsv: exports_external.boolean().default(false).optional(),
|
|
19880
|
-
outputFilename: exports_external.string().optional().describe("Output CSV filename when outputCsv is true")
|
|
19881
|
-
});
|
|
19882
|
-
});
|
|
19883
|
-
|
|
19884
|
-
// ../types/src/processor/configs/react-hook-form.ts
|
|
19885
|
-
function extractFieldMetadata(schema) {
|
|
19886
|
-
const fields = [];
|
|
19887
|
-
let inner = schema;
|
|
19888
|
-
while (inner instanceof exports_external.ZodDefault || inner instanceof exports_external.ZodPrefault) {
|
|
19889
|
-
inner = inner.unwrap();
|
|
19890
|
-
}
|
|
19891
|
-
if (inner instanceof exports_external.ZodObject) {
|
|
19892
|
-
for (const [name, fieldSchema] of Object.entries(inner.shape)) {
|
|
19893
|
-
fields.push(extractSingleFieldMetadata(name, fieldSchema));
|
|
19894
|
-
}
|
|
19895
|
-
}
|
|
19896
|
-
return fields;
|
|
19897
|
-
}
|
|
19898
|
-
function extractSingleFieldMetadata(name, schema) {
|
|
19899
|
-
let current = schema;
|
|
19900
|
-
let required2 = true;
|
|
19901
|
-
let defaultValue = undefined;
|
|
19902
|
-
let description = current.description;
|
|
19903
|
-
while (true) {
|
|
19904
|
-
if (current instanceof exports_external.ZodOptional) {
|
|
19905
|
-
required2 = false;
|
|
19906
|
-
current = current.unwrap();
|
|
19907
|
-
} else if (current instanceof exports_external.ZodDefault || current instanceof exports_external.ZodPrefault) {
|
|
19908
|
-
defaultValue = current._def.defaultValue;
|
|
19909
|
-
current = current.unwrap();
|
|
19910
|
-
} else {
|
|
19911
|
-
break;
|
|
19912
|
-
}
|
|
19913
|
-
description ??= current.description;
|
|
19914
|
-
}
|
|
19915
|
-
const base = { name, type: "unknown", required: required2, description, defaultValue };
|
|
19916
|
-
if (current instanceof exports_external.ZodString)
|
|
19917
|
-
return { ...base, type: "string" };
|
|
19918
|
-
if (current instanceof exports_external.ZodNumber) {
|
|
19919
|
-
let min;
|
|
19920
|
-
let max;
|
|
19921
|
-
for (const c of current._def.checks ?? []) {
|
|
19922
|
-
const def = c._zod.def;
|
|
19923
|
-
if (def.check === "greater_than")
|
|
19924
|
-
min = def.value;
|
|
19925
|
-
if (def.check === "less_than")
|
|
19926
|
-
max = def.value;
|
|
19927
|
-
}
|
|
19928
|
-
return { ...base, type: "number", min, max };
|
|
19929
|
-
}
|
|
19930
|
-
if (current instanceof exports_external.ZodBoolean)
|
|
19931
|
-
return { ...base, type: "boolean" };
|
|
19932
|
-
if (current instanceof exports_external.ZodEnum) {
|
|
19933
|
-
return { ...base, type: "enum", enumValues: current.options };
|
|
19934
|
-
}
|
|
19935
|
-
if (current instanceof exports_external.ZodArray)
|
|
19936
|
-
return { ...base, type: "array" };
|
|
19937
|
-
if (current instanceof exports_external.ZodObject || current instanceof exports_external.ZodRecord) {
|
|
19938
|
-
return { ...base, type: "object" };
|
|
19939
|
-
}
|
|
19940
|
-
return base;
|
|
19941
|
-
}
|
|
19942
|
-
function getConfigFieldMetadata(processorId) {
|
|
19943
|
-
const schema = getConfigSchema(processorId);
|
|
19944
|
-
if (!schema)
|
|
19945
|
-
return;
|
|
19946
|
-
return extractFieldMetadata(schema);
|
|
19947
|
-
}
|
|
19948
|
-
function getConfigDefaults(processorId) {
|
|
19949
|
-
const schema = PROCESSOR_SCHEMAS[processorId]?.configSchema;
|
|
19950
|
-
if (!schema)
|
|
19951
|
-
return {};
|
|
19952
|
-
try {
|
|
19953
|
-
const result = schema.safeParse({});
|
|
19954
|
-
if (result.success) {
|
|
19955
|
-
return result.data;
|
|
19956
|
-
}
|
|
19957
|
-
} catch {}
|
|
19958
|
-
const fields = extractFieldMetadata(schema);
|
|
19959
|
-
const defaults = {};
|
|
19960
|
-
for (const field of fields) {
|
|
19961
|
-
if (field.defaultValue !== undefined) {
|
|
19962
|
-
defaults[field.name] = field.defaultValue;
|
|
19963
|
-
}
|
|
19964
|
-
}
|
|
19965
|
-
return defaults;
|
|
19966
|
-
}
|
|
19967
|
-
function validateConfig(processorId, config2) {
|
|
19968
|
-
const schema = getConfigSchema(processorId);
|
|
19969
|
-
if (!schema) {
|
|
19970
|
-
return { valid: true, errors: {} };
|
|
19971
|
-
}
|
|
19972
|
-
const result = schema.safeParse(config2);
|
|
19973
|
-
if (result.success) {
|
|
19974
|
-
return { valid: true, errors: {} };
|
|
19975
|
-
}
|
|
19976
|
-
const errors3 = {};
|
|
19977
|
-
for (const issue2 of result.error.issues) {
|
|
19978
|
-
const path = issue2.path.join(".");
|
|
19979
|
-
errors3[path] = issue2.message;
|
|
19980
|
-
}
|
|
19981
|
-
return { valid: false, errors: errors3 };
|
|
19982
|
-
}
|
|
19983
|
-
var init_react_hook_form = __esm(() => {
|
|
19984
|
-
init_zod();
|
|
19985
|
-
init_configs();
|
|
19986
|
-
});
|
|
19987
|
-
|
|
19988
|
-
// ../types/src/processor/configs/index.ts
|
|
19989
|
-
function getProcessorSchemas(processorId) {
|
|
19990
|
-
return PROCESSOR_SCHEMAS[processorId];
|
|
19991
|
-
}
|
|
19992
|
-
function getConfigSchema(processorId) {
|
|
19993
|
-
return PROCESSOR_SCHEMAS[processorId]?.configSchema;
|
|
19994
|
-
}
|
|
19995
|
-
function getAllProcessorJsonSchemas() {
|
|
19996
|
-
return Object.values(PROCESSOR_SCHEMAS).map((p) => ({
|
|
19997
|
-
id: p.id,
|
|
19998
|
-
inputSchema: toJsonSchema(p.inputSchema),
|
|
19999
|
-
outputSchema: toJsonSchema(p.outputSchema),
|
|
20000
|
-
configSchema: toJsonSchema(p.configSchema)
|
|
20001
|
-
}));
|
|
20002
|
-
}
|
|
20003
|
-
function listProcessorIds() {
|
|
20004
|
-
return Object.keys(PROCESSOR_SCHEMAS);
|
|
20005
|
-
}
|
|
20006
|
-
var PROCESSOR_SCHEMAS;
|
|
20007
|
-
var init_configs = __esm(() => {
|
|
20008
|
-
init_common();
|
|
20009
|
-
init_ids();
|
|
20010
|
-
init_classify();
|
|
20011
|
-
init_document_parser();
|
|
20012
|
-
init_extract();
|
|
20013
|
-
init_merge();
|
|
20014
|
-
init_pdf_embedder();
|
|
20015
|
-
init_segment();
|
|
20016
|
-
init_split();
|
|
20017
|
-
init_template();
|
|
20018
|
-
init_xlsx_to_json();
|
|
20019
|
-
init_react_hook_form();
|
|
20020
|
-
init_classify();
|
|
20021
|
-
init_document_parser();
|
|
20022
|
-
init_extract();
|
|
20023
|
-
init_merge();
|
|
20024
|
-
init_pdf_embedder();
|
|
20025
|
-
init_segment();
|
|
20026
|
-
init_split();
|
|
20027
|
-
init_template();
|
|
20028
|
-
init_xlsx_to_json();
|
|
20029
|
-
PROCESSOR_SCHEMAS = {
|
|
20030
|
-
[PROCESSOR_IDS.EXTRACT]: {
|
|
20031
|
-
id: PROCESSOR_IDS.EXTRACT,
|
|
20032
|
-
inputSchema: ExtractInputSchema,
|
|
20033
|
-
outputSchema: ExtractOutputSchema,
|
|
20034
|
-
configSchema: ExtractConfigSchema
|
|
20035
|
-
},
|
|
20036
|
-
[PROCESSOR_IDS.DOCUMENT_PARSER]: {
|
|
20037
|
-
id: PROCESSOR_IDS.DOCUMENT_PARSER,
|
|
20038
|
-
inputSchema: DocumentParserInputSchema,
|
|
20039
|
-
outputSchema: DocumentParserOutputSchema,
|
|
20040
|
-
configSchema: DocumentParserConfigSchema
|
|
20041
|
-
},
|
|
20042
|
-
[PROCESSOR_IDS.MERGE]: {
|
|
20043
|
-
id: PROCESSOR_IDS.MERGE,
|
|
20044
|
-
inputSchema: MergeInputSchema,
|
|
20045
|
-
outputSchema: MergeOutputSchema,
|
|
20046
|
-
configSchema: MergeConfigSchema
|
|
20047
|
-
},
|
|
20048
|
-
[PROCESSOR_IDS.TEMPLATE]: {
|
|
20049
|
-
id: PROCESSOR_IDS.TEMPLATE,
|
|
20050
|
-
inputSchema: TemplateInputSchema,
|
|
20051
|
-
outputSchema: TemplateOutputSchema,
|
|
20052
|
-
configSchema: TemplateConfigSchema
|
|
20053
|
-
},
|
|
20054
|
-
[PROCESSOR_IDS.PDF_EMBEDDER]: {
|
|
20055
|
-
id: PROCESSOR_IDS.PDF_EMBEDDER,
|
|
20056
|
-
inputSchema: PdfEmbedderInputSchema,
|
|
20057
|
-
outputSchema: PdfEmbedderOutputSchema,
|
|
20058
|
-
configSchema: PdfEmbedderConfigSchema
|
|
20059
|
-
},
|
|
20060
|
-
[PROCESSOR_IDS.SPLIT]: {
|
|
20061
|
-
id: PROCESSOR_IDS.SPLIT,
|
|
20062
|
-
inputSchema: SplitInputSchema,
|
|
20063
|
-
outputSchema: SplitOutputSchema,
|
|
20064
|
-
configSchema: SplitConfigSchema
|
|
20065
|
-
},
|
|
20066
|
-
[PROCESSOR_IDS.SEGMENT]: {
|
|
20067
|
-
id: PROCESSOR_IDS.SEGMENT,
|
|
20068
|
-
inputSchema: SegmentInputSchema,
|
|
20069
|
-
outputSchema: SegmentOutputSchema,
|
|
20070
|
-
configSchema: SegmentConfigSchema
|
|
20071
|
-
},
|
|
20072
|
-
[PROCESSOR_IDS.CLASSIFY]: {
|
|
20073
|
-
id: PROCESSOR_IDS.CLASSIFY,
|
|
20074
|
-
inputSchema: ClassifyInputSchema,
|
|
20075
|
-
outputSchema: ClassifyOutputSchema,
|
|
20076
|
-
configSchema: ClassifyConfigSchema
|
|
20077
|
-
},
|
|
20078
|
-
[PROCESSOR_IDS.XLSX_TO_JSON]: {
|
|
20079
|
-
id: PROCESSOR_IDS.XLSX_TO_JSON,
|
|
20080
|
-
inputSchema: XlsxToJsonInputSchema,
|
|
20081
|
-
outputSchema: XlsxToJsonOutputSchema,
|
|
20082
|
-
configSchema: XlsxToJsonConfigSchema
|
|
20083
|
-
}
|
|
20084
|
-
};
|
|
20085
|
-
});
|
|
20086
|
-
|
|
20087
17496
|
// ../types/src/processor/index.ts
|
|
20088
|
-
var
|
|
20089
|
-
init_processor();
|
|
20090
|
-
init_execution();
|
|
20091
|
-
init_configs();
|
|
20092
|
-
});
|
|
17497
|
+
var init_processor = () => {};
|
|
20093
17498
|
|
|
20094
17499
|
// ../types/src/parser/index.ts
|
|
20095
|
-
var
|
|
20096
|
-
init_parser();
|
|
20097
|
-
});
|
|
17500
|
+
var init_parser = () => {};
|
|
20098
17501
|
|
|
20099
17502
|
// ../types/src/otel/semantic-conventions.ts
|
|
20100
17503
|
function mapLLMAttributes(attrs) {
|
|
@@ -23132,9 +20535,9 @@ var require_validate = __commonJS((exports) => {
|
|
|
23132
20535
|
}
|
|
23133
20536
|
let expr = data;
|
|
23134
20537
|
const segments = jsonPointer.split("/");
|
|
23135
|
-
for (const
|
|
23136
|
-
if (
|
|
23137
|
-
data = (0, codegen_1._)`${data}${(0, codegen_1.getProperty)((0, util_1.unescapeJsonPointer)(
|
|
20538
|
+
for (const segment of segments) {
|
|
20539
|
+
if (segment) {
|
|
20540
|
+
data = (0, codegen_1._)`${data}${(0, codegen_1.getProperty)((0, util_1.unescapeJsonPointer)(segment))}`;
|
|
23138
20541
|
expr = (0, codegen_1._)`${expr} && ${data}`;
|
|
23139
20542
|
}
|
|
23140
20543
|
}
|
|
@@ -23414,7 +20817,7 @@ var require_data = __commonJS((exports, module) => {
|
|
|
23414
20817
|
});
|
|
23415
20818
|
|
|
23416
20819
|
// ../../node_modules/fast-uri/lib/utils.js
|
|
23417
|
-
var
|
|
20820
|
+
var require_utils = __commonJS((exports, module) => {
|
|
23418
20821
|
var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
|
|
23419
20822
|
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);
|
|
23420
20823
|
function stringArrayToHexStripped(input) {
|
|
@@ -23670,7 +21073,7 @@ var require_utils3 = __commonJS((exports, module) => {
|
|
|
23670
21073
|
|
|
23671
21074
|
// ../../node_modules/fast-uri/lib/schemes.js
|
|
23672
21075
|
var require_schemes = __commonJS((exports, module) => {
|
|
23673
|
-
var { isUUID } =
|
|
21076
|
+
var { isUUID } = require_utils();
|
|
23674
21077
|
var URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
|
|
23675
21078
|
var supportedSchemeNames = [
|
|
23676
21079
|
"http",
|
|
@@ -23844,7 +21247,7 @@ var require_schemes = __commonJS((exports, module) => {
|
|
|
23844
21247
|
|
|
23845
21248
|
// ../../node_modules/fast-uri/index.js
|
|
23846
21249
|
var require_fast_uri = __commonJS((exports, module) => {
|
|
23847
|
-
var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizeComponentEncoding, isIPv4, nonSimpleDomain } =
|
|
21250
|
+
var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizeComponentEncoding, isIPv4, nonSimpleDomain } = require_utils();
|
|
23848
21251
|
var { SCHEMES, getSchemeHandler } = require_schemes();
|
|
23849
21252
|
function normalize(uri, options) {
|
|
23850
21253
|
if (typeof uri === "string") {
|
|
@@ -26254,7 +23657,7 @@ var require_draft7 = __commonJS((exports) => {
|
|
|
26254
23657
|
});
|
|
26255
23658
|
|
|
26256
23659
|
// ../../node_modules/ajv/dist/vocabularies/discriminator/types.js
|
|
26257
|
-
var
|
|
23660
|
+
var require_types = __commonJS((exports) => {
|
|
26258
23661
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26259
23662
|
exports.DiscrError = undefined;
|
|
26260
23663
|
var DiscrError;
|
|
@@ -26268,7 +23671,7 @@ var require_types2 = __commonJS((exports) => {
|
|
|
26268
23671
|
var require_discriminator = __commonJS((exports) => {
|
|
26269
23672
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26270
23673
|
var codegen_1 = require_codegen();
|
|
26271
|
-
var types_1 =
|
|
23674
|
+
var types_1 = require_types();
|
|
26272
23675
|
var compile_1 = require_compile();
|
|
26273
23676
|
var ref_error_1 = require_ref_error();
|
|
26274
23677
|
var util_1 = require_util();
|
|
@@ -27196,6 +24599,24 @@ var init_validation = __esm(() => {
|
|
|
27196
24599
|
init_workspace_schema();
|
|
27197
24600
|
});
|
|
27198
24601
|
|
|
24602
|
+
// ../types/src/core/common.ts
|
|
24603
|
+
function toJsonSchema2(schema) {
|
|
24604
|
+
return exports_external.toJSONSchema(schema, { target: "draft-7" });
|
|
24605
|
+
}
|
|
24606
|
+
var TimestampSchema2, JsonSchemaSchema2, BaseEntitySchema2;
|
|
24607
|
+
var init_common = __esm(() => {
|
|
24608
|
+
init_zod();
|
|
24609
|
+
TimestampSchema2 = exports_external.union([exports_external.date(), exports_external.string().datetime()]).transform((val) => {
|
|
24610
|
+
return typeof val === "string" ? new Date(val) : val;
|
|
24611
|
+
});
|
|
24612
|
+
JsonSchemaSchema2 = exports_external.record(exports_external.string(), exports_external.unknown());
|
|
24613
|
+
BaseEntitySchema2 = exports_external.object({
|
|
24614
|
+
id: exports_external.string(),
|
|
24615
|
+
createdAt: TimestampSchema2.optional(),
|
|
24616
|
+
updatedAt: TimestampSchema2.optional()
|
|
24617
|
+
});
|
|
24618
|
+
});
|
|
24619
|
+
|
|
27199
24620
|
// ../../node_modules/@babel/parser/lib/index.js
|
|
27200
24621
|
var require_lib = __commonJS((exports) => {
|
|
27201
24622
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -27609,12 +25030,12 @@ var require_lib = __commonJS((exports) => {
|
|
|
27609
25030
|
}
|
|
27610
25031
|
const ParseErrorConstructors = {};
|
|
27611
25032
|
for (const reasonCode of Object.keys(argument)) {
|
|
27612
|
-
const
|
|
27613
|
-
const _ref = typeof
|
|
27614
|
-
message: () =>
|
|
27615
|
-
} : typeof
|
|
27616
|
-
message:
|
|
27617
|
-
} :
|
|
25033
|
+
const template = argument[reasonCode];
|
|
25034
|
+
const _ref = typeof template === "string" ? {
|
|
25035
|
+
message: () => template
|
|
25036
|
+
} : typeof template === "function" ? {
|
|
25037
|
+
message: template
|
|
25038
|
+
} : template, {
|
|
27618
25039
|
message
|
|
27619
25040
|
} = _ref, rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
27620
25041
|
const toMessage = typeof message === "string" ? () => message : message;
|
|
@@ -42087,7 +39508,7 @@ var require_keywords = __commonJS((exports) => {
|
|
|
42087
39508
|
});
|
|
42088
39509
|
|
|
42089
39510
|
// ../../node_modules/sucrase/dist/parser/tokenizer/types.js
|
|
42090
|
-
var
|
|
39511
|
+
var require_types2 = __commonJS((exports) => {
|
|
42091
39512
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42092
39513
|
var TokenType;
|
|
42093
39514
|
(function(TokenType2) {
|
|
@@ -42151,8 +39572,8 @@ var require_types3 = __commonJS((exports) => {
|
|
|
42151
39572
|
TokenType2[TokenType2["questionDot"] = questionDot] = "questionDot";
|
|
42152
39573
|
const arrow = 22528;
|
|
42153
39574
|
TokenType2[TokenType2["arrow"] = arrow] = "arrow";
|
|
42154
|
-
const
|
|
42155
|
-
TokenType2[TokenType2["template"] =
|
|
39575
|
+
const template = 23552;
|
|
39576
|
+
TokenType2[TokenType2["template"] = template] = "template";
|
|
42156
39577
|
const ellipsis = 24576;
|
|
42157
39578
|
TokenType2[TokenType2["ellipsis"] = ellipsis] = "ellipsis";
|
|
42158
39579
|
const backQuote = 25600;
|
|
@@ -42571,7 +39992,7 @@ var require_types3 = __commonJS((exports) => {
|
|
|
42571
39992
|
var require_state = __commonJS((exports) => {
|
|
42572
39993
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42573
39994
|
var _keywords = require_keywords();
|
|
42574
|
-
var _types =
|
|
39995
|
+
var _types = require_types2();
|
|
42575
39996
|
|
|
42576
39997
|
class Scope {
|
|
42577
39998
|
constructor(startTokenIndex, endTokenIndex, isFunctionScope) {
|
|
@@ -42957,7 +40378,7 @@ var require_base = __commonJS((exports) => {
|
|
|
42957
40378
|
var require_util2 = __commonJS((exports) => {
|
|
42958
40379
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42959
40380
|
var _index = require_tokenizer();
|
|
42960
|
-
var _types =
|
|
40381
|
+
var _types = require_types2();
|
|
42961
40382
|
var _charcodes = require_charcodes();
|
|
42962
40383
|
var _base = require_base();
|
|
42963
40384
|
function isContextual(contextualKeyword) {
|
|
@@ -43119,7 +40540,7 @@ var require_identifier = __commonJS((exports) => {
|
|
|
43119
40540
|
var require_readWordTree = __commonJS((exports) => {
|
|
43120
40541
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
43121
40542
|
var _keywords = require_keywords();
|
|
43122
|
-
var _types =
|
|
40543
|
+
var _types = require_types2();
|
|
43123
40544
|
var READ_WORD_TREE = new Int32Array([
|
|
43124
40545
|
-1,
|
|
43125
40546
|
27,
|
|
@@ -52097,7 +49518,7 @@ var require_readWord = __commonJS((exports) => {
|
|
|
52097
49518
|
var _identifier = require_identifier();
|
|
52098
49519
|
var _index = require_tokenizer();
|
|
52099
49520
|
var _readWordTree = require_readWordTree();
|
|
52100
|
-
var _types =
|
|
49521
|
+
var _types = require_types2();
|
|
52101
49522
|
function readWord() {
|
|
52102
49523
|
let treePos = 0;
|
|
52103
49524
|
let code = 0;
|
|
@@ -52163,7 +49584,7 @@ var require_tokenizer = __commonJS((exports) => {
|
|
|
52163
49584
|
var _keywords = require_keywords();
|
|
52164
49585
|
var _readWord = require_readWord();
|
|
52165
49586
|
var _readWord2 = _interopRequireDefault(_readWord);
|
|
52166
|
-
var _types =
|
|
49587
|
+
var _types = require_types2();
|
|
52167
49588
|
var IdentifierRole;
|
|
52168
49589
|
(function(IdentifierRole2) {
|
|
52169
49590
|
const Access = 0;
|
|
@@ -52880,7 +50301,7 @@ var require_tokenizer = __commonJS((exports) => {
|
|
|
52880
50301
|
// ../../node_modules/sucrase/dist/util/getImportExportSpecifierInfo.js
|
|
52881
50302
|
var require_getImportExportSpecifierInfo = __commonJS((exports) => {
|
|
52882
50303
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
52883
|
-
var _types =
|
|
50304
|
+
var _types = require_types2();
|
|
52884
50305
|
function getImportExportSpecifierInfo(tokens, index = tokens.currentIndex()) {
|
|
52885
50306
|
let endIndex = index + 1;
|
|
52886
50307
|
if (isSpecifierEnd(tokens, endIndex)) {
|
|
@@ -53233,7 +50654,7 @@ var require_JSXTransformer = __commonJS((exports) => {
|
|
|
53233
50654
|
var _xhtml = require_xhtml();
|
|
53234
50655
|
var _xhtml2 = _interopRequireDefault(_xhtml);
|
|
53235
50656
|
var _tokenizer = require_tokenizer();
|
|
53236
|
-
var _types =
|
|
50657
|
+
var _types = require_types2();
|
|
53237
50658
|
var _charcodes = require_charcodes();
|
|
53238
50659
|
var _getJSXPragmaInfo = require_getJSXPragmaInfo();
|
|
53239
50660
|
var _getJSXPragmaInfo2 = _interopRequireDefault(_getJSXPragmaInfo);
|
|
@@ -53737,7 +51158,7 @@ var require_getNonTypeIdentifiers = __commonJS((exports) => {
|
|
|
53737
51158
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
53738
51159
|
}
|
|
53739
51160
|
var _tokenizer = require_tokenizer();
|
|
53740
|
-
var _types =
|
|
51161
|
+
var _types = require_types2();
|
|
53741
51162
|
var _JSXTransformer = require_JSXTransformer();
|
|
53742
51163
|
var _getJSXPragmaInfo = require_getJSXPragmaInfo();
|
|
53743
51164
|
var _getJSXPragmaInfo2 = _interopRequireDefault(_getJSXPragmaInfo);
|
|
@@ -53776,7 +51197,7 @@ var require_CJSImportProcessor = __commonJS((exports) => {
|
|
|
53776
51197
|
}
|
|
53777
51198
|
var _tokenizer = require_tokenizer();
|
|
53778
51199
|
var _keywords = require_keywords();
|
|
53779
|
-
var _types =
|
|
51200
|
+
var _types = require_types2();
|
|
53780
51201
|
var _getImportExportSpecifierInfo = require_getImportExportSpecifierInfo();
|
|
53781
51202
|
var _getImportExportSpecifierInfo2 = _interopRequireDefault(_getImportExportSpecifierInfo);
|
|
53782
51203
|
var _getNonTypeIdentifiers = require_getNonTypeIdentifiers();
|
|
@@ -54547,18 +51968,18 @@ var require_sourcemap_codec_umd = __commonJS((exports, module) => {
|
|
|
54547
51968
|
continue;
|
|
54548
51969
|
let genColumn = 0;
|
|
54549
51970
|
for (let j = 0;j < line.length; j++) {
|
|
54550
|
-
const
|
|
51971
|
+
const segment = line[j];
|
|
54551
51972
|
if (j > 0)
|
|
54552
51973
|
writer.write(comma);
|
|
54553
|
-
genColumn = encodeInteger(writer,
|
|
54554
|
-
if (
|
|
51974
|
+
genColumn = encodeInteger(writer, segment[0], genColumn);
|
|
51975
|
+
if (segment.length === 1)
|
|
54555
51976
|
continue;
|
|
54556
|
-
sourcesIndex = encodeInteger(writer,
|
|
54557
|
-
sourceLine = encodeInteger(writer,
|
|
54558
|
-
sourceColumn = encodeInteger(writer,
|
|
54559
|
-
if (
|
|
51977
|
+
sourcesIndex = encodeInteger(writer, segment[1], sourcesIndex);
|
|
51978
|
+
sourceLine = encodeInteger(writer, segment[2], sourceLine);
|
|
51979
|
+
sourceColumn = encodeInteger(writer, segment[3], sourceColumn);
|
|
51980
|
+
if (segment.length === 4)
|
|
54560
51981
|
continue;
|
|
54561
|
-
namesIndex = encodeInteger(writer,
|
|
51982
|
+
namesIndex = encodeInteger(writer, segment[4], namesIndex);
|
|
54562
51983
|
}
|
|
54563
51984
|
}
|
|
54564
51985
|
return writer.flush();
|
|
@@ -55113,11 +52534,11 @@ var require_trace_mapping_umd = __commonJS((exports, module) => {
|
|
|
55113
52534
|
const index = traceSegmentInternal(segments, cast(map2)._decodedMemo, line, column, bias || GREATEST_LOWER_BOUND);
|
|
55114
52535
|
if (index === -1)
|
|
55115
52536
|
return OMapping(null, null, null, null);
|
|
55116
|
-
const
|
|
55117
|
-
if (
|
|
52537
|
+
const segment = segments[index];
|
|
52538
|
+
if (segment.length === 1)
|
|
55118
52539
|
return OMapping(null, null, null, null);
|
|
55119
52540
|
const { names, resolvedSources } = map2;
|
|
55120
|
-
return OMapping(resolvedSources[
|
|
52541
|
+
return OMapping(resolvedSources[segment[SOURCES_INDEX]], segment[SOURCE_LINE] + 1, segment[SOURCE_COLUMN], segment.length === 5 ? names[segment[NAMES_INDEX]] : null);
|
|
55121
52542
|
}
|
|
55122
52543
|
function generatedPositionFor(map2, needle) {
|
|
55123
52544
|
const { source, line, column, bias } = needle;
|
|
@@ -55230,8 +52651,8 @@ var require_trace_mapping_umd = __commonJS((exports, module) => {
|
|
|
55230
52651
|
const max = upperBound(segments, matchedColumn, min);
|
|
55231
52652
|
const result = [];
|
|
55232
52653
|
for (;min <= max; min++) {
|
|
55233
|
-
const
|
|
55234
|
-
result.push(GMapping(
|
|
52654
|
+
const segment = segments[min];
|
|
52655
|
+
result.push(GMapping(segment[REV_GENERATED_LINE] + 1, segment[REV_GENERATED_COLUMN]));
|
|
55235
52656
|
}
|
|
55236
52657
|
return result;
|
|
55237
52658
|
}
|
|
@@ -55259,8 +52680,8 @@ var require_trace_mapping_umd = __commonJS((exports, module) => {
|
|
|
55259
52680
|
const index = traceSegmentInternal(segments, memo, line, column, bias);
|
|
55260
52681
|
if (index === -1)
|
|
55261
52682
|
return GMapping(null, null);
|
|
55262
|
-
const
|
|
55263
|
-
return GMapping(
|
|
52683
|
+
const segment = segments[index];
|
|
52684
|
+
return GMapping(segment[REV_GENERATED_LINE] + 1, segment[REV_GENERATED_COLUMN]);
|
|
55264
52685
|
}
|
|
55265
52686
|
});
|
|
55266
52687
|
});
|
|
@@ -55811,7 +53232,7 @@ var require_HelperManager = __commonJS((exports) => {
|
|
|
55811
53232
|
var require_identifyShadowedGlobals = __commonJS((exports) => {
|
|
55812
53233
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
55813
53234
|
var _tokenizer = require_tokenizer();
|
|
55814
|
-
var _types =
|
|
53235
|
+
var _types = require_types2();
|
|
55815
53236
|
function identifyShadowedGlobals(tokens, scopes, globalNames) {
|
|
55816
53237
|
if (!hasShadowedGlobals(tokens, globalNames)) {
|
|
55817
53238
|
return;
|
|
@@ -55876,7 +53297,7 @@ var require_identifyShadowedGlobals = __commonJS((exports) => {
|
|
|
55876
53297
|
// ../../node_modules/sucrase/dist/util/getIdentifierNames.js
|
|
55877
53298
|
var require_getIdentifierNames = __commonJS((exports) => {
|
|
55878
53299
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
55879
|
-
var _types =
|
|
53300
|
+
var _types = require_types2();
|
|
55880
53301
|
function getIdentifierNames(code, tokens) {
|
|
55881
53302
|
const names = [];
|
|
55882
53303
|
for (const token of tokens) {
|
|
@@ -56052,7 +53473,7 @@ var require_util3 = __commonJS((exports) => {
|
|
|
56052
53473
|
});
|
|
56053
53474
|
|
|
56054
53475
|
// ../../node_modules/ts-interface-checker/dist/types.js
|
|
56055
|
-
var
|
|
53476
|
+
var require_types3 = __commonJS((exports) => {
|
|
56056
53477
|
var __extends = exports && exports.__extends || function() {
|
|
56057
53478
|
var extendStatics = function(d, b) {
|
|
56058
53479
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -56652,9 +54073,9 @@ var require_dist2 = __commonJS((exports) => {
|
|
|
56652
54073
|
};
|
|
56653
54074
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
56654
54075
|
exports.Checker = exports.createCheckers = undefined;
|
|
56655
|
-
var types_1 =
|
|
54076
|
+
var types_1 = require_types3();
|
|
56656
54077
|
var util_1 = require_util3();
|
|
56657
|
-
var types_2 =
|
|
54078
|
+
var types_2 = require_types3();
|
|
56658
54079
|
Object.defineProperty(exports, "TArray", { enumerable: true, get: function() {
|
|
56659
54080
|
return types_2.TArray;
|
|
56660
54081
|
} });
|
|
@@ -56936,7 +54357,7 @@ var require_lval = __commonJS((exports) => {
|
|
|
56936
54357
|
var _typescript = require_typescript();
|
|
56937
54358
|
var _index = require_tokenizer();
|
|
56938
54359
|
var _keywords = require_keywords();
|
|
56939
|
-
var _types =
|
|
54360
|
+
var _types = require_types2();
|
|
56940
54361
|
var _base = require_base();
|
|
56941
54362
|
var _expression = require_expression();
|
|
56942
54363
|
var _util = require_util2();
|
|
@@ -57068,7 +54489,7 @@ var require_typescript = __commonJS((exports) => {
|
|
|
57068
54489
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
57069
54490
|
var _index = require_tokenizer();
|
|
57070
54491
|
var _keywords = require_keywords();
|
|
57071
|
-
var _types =
|
|
54492
|
+
var _types = require_types2();
|
|
57072
54493
|
var _base = require_base();
|
|
57073
54494
|
var _expression = require_expression();
|
|
57074
54495
|
var _lval = require_lval();
|
|
@@ -58330,7 +55751,7 @@ var require_typescript = __commonJS((exports) => {
|
|
|
58330
55751
|
var require_jsx = __commonJS((exports) => {
|
|
58331
55752
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
58332
55753
|
var _index = require_tokenizer();
|
|
58333
|
-
var _types =
|
|
55754
|
+
var _types = require_types2();
|
|
58334
55755
|
var _base = require_base();
|
|
58335
55756
|
var _expression = require_expression();
|
|
58336
55757
|
var _util = require_util2();
|
|
@@ -58593,10 +56014,10 @@ var require_jsx = __commonJS((exports) => {
|
|
|
58593
56014
|
});
|
|
58594
56015
|
|
|
58595
56016
|
// ../../node_modules/sucrase/dist/parser/plugins/types.js
|
|
58596
|
-
var
|
|
56017
|
+
var require_types4 = __commonJS((exports) => {
|
|
58597
56018
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
58598
56019
|
var _index = require_tokenizer();
|
|
58599
|
-
var _types =
|
|
56020
|
+
var _types = require_types2();
|
|
58600
56021
|
var _base = require_base();
|
|
58601
56022
|
var _expression = require_expression();
|
|
58602
56023
|
var _flow = require_flow();
|
|
@@ -58629,12 +56050,12 @@ var require_expression = __commonJS((exports) => {
|
|
|
58629
56050
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
58630
56051
|
var _flow = require_flow();
|
|
58631
56052
|
var _index = require_jsx();
|
|
58632
|
-
var _types =
|
|
56053
|
+
var _types = require_types4();
|
|
58633
56054
|
var _typescript = require_typescript();
|
|
58634
56055
|
var _index3 = require_tokenizer();
|
|
58635
56056
|
var _keywords = require_keywords();
|
|
58636
56057
|
var _state = require_state();
|
|
58637
|
-
var _types3 =
|
|
56058
|
+
var _types3 = require_types2();
|
|
58638
56059
|
var _charcodes = require_charcodes();
|
|
58639
56060
|
var _identifier = require_identifier();
|
|
58640
56061
|
var _base = require_base();
|
|
@@ -59350,7 +56771,7 @@ var require_flow = __commonJS((exports) => {
|
|
|
59350
56771
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
59351
56772
|
var _index = require_tokenizer();
|
|
59352
56773
|
var _keywords = require_keywords();
|
|
59353
|
-
var _types =
|
|
56774
|
+
var _types = require_types2();
|
|
59354
56775
|
var _base = require_base();
|
|
59355
56776
|
var _expression = require_expression();
|
|
59356
56777
|
var _statement = require_statement();
|
|
@@ -60225,7 +57646,7 @@ var require_statement = __commonJS((exports) => {
|
|
|
60225
57646
|
var _tokenizer = require_tokenizer();
|
|
60226
57647
|
var _keywords = require_keywords();
|
|
60227
57648
|
var _state = require_state();
|
|
60228
|
-
var _types =
|
|
57649
|
+
var _types = require_types2();
|
|
60229
57650
|
var _charcodes = require_charcodes();
|
|
60230
57651
|
var _base = require_base();
|
|
60231
57652
|
var _expression = require_expression();
|
|
@@ -61260,7 +58681,7 @@ var require_TokenProcessor = __commonJS((exports) => {
|
|
|
61260
58681
|
function _interopRequireDefault(obj) {
|
|
61261
58682
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
61262
58683
|
}
|
|
61263
|
-
var _types =
|
|
58684
|
+
var _types = require_types2();
|
|
61264
58685
|
var _isAsyncOperation = require_isAsyncOperation();
|
|
61265
58686
|
var _isAsyncOperation2 = _interopRequireDefault(_isAsyncOperation);
|
|
61266
58687
|
|
|
@@ -61518,7 +58939,7 @@ var require_TokenProcessor = __commonJS((exports) => {
|
|
|
61518
58939
|
var require_getClassInfo = __commonJS((exports) => {
|
|
61519
58940
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
61520
58941
|
var _keywords = require_keywords();
|
|
61521
|
-
var _types =
|
|
58942
|
+
var _types = require_types2();
|
|
61522
58943
|
function getClassInfo(rootTransformer, tokens, nameManager, disableESTransforms) {
|
|
61523
58944
|
const snapshot = tokens.snapshot();
|
|
61524
58945
|
const headerInfo = processClassHeader(tokens);
|
|
@@ -61756,7 +59177,7 @@ var require_getClassInfo = __commonJS((exports) => {
|
|
|
61756
59177
|
// ../../node_modules/sucrase/dist/util/elideImportEquals.js
|
|
61757
59178
|
var require_elideImportEquals = __commonJS((exports) => {
|
|
61758
59179
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
61759
|
-
var _types =
|
|
59180
|
+
var _types = require_types2();
|
|
61760
59181
|
function elideImportEquals(tokens) {
|
|
61761
59182
|
tokens.removeInitialToken();
|
|
61762
59183
|
tokens.removeToken();
|
|
@@ -61780,7 +59201,7 @@ var require_elideImportEquals = __commonJS((exports) => {
|
|
|
61780
59201
|
var require_getDeclarationInfo = __commonJS((exports) => {
|
|
61781
59202
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
61782
59203
|
var _tokenizer = require_tokenizer();
|
|
61783
|
-
var _types =
|
|
59204
|
+
var _types = require_types2();
|
|
61784
59205
|
var EMPTY_DECLARATION_INFO = {
|
|
61785
59206
|
typeDeclarations: new Set,
|
|
61786
59207
|
valueDeclarations: new Set
|
|
@@ -61808,7 +59229,7 @@ var require_getDeclarationInfo = __commonJS((exports) => {
|
|
|
61808
59229
|
var require_isExportFrom = __commonJS((exports) => {
|
|
61809
59230
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
61810
59231
|
var _keywords = require_keywords();
|
|
61811
|
-
var _types =
|
|
59232
|
+
var _types = require_types2();
|
|
61812
59233
|
function isExportFrom(tokens) {
|
|
61813
59234
|
let closeBraceIndex = tokens.currentIndex();
|
|
61814
59235
|
while (!tokens.matches1AtIndex(closeBraceIndex, _types.TokenType.braceR)) {
|
|
@@ -61823,7 +59244,7 @@ var require_isExportFrom = __commonJS((exports) => {
|
|
|
61823
59244
|
var require_removeMaybeImportAttributes = __commonJS((exports) => {
|
|
61824
59245
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
61825
59246
|
var _keywords = require_keywords();
|
|
61826
|
-
var _types =
|
|
59247
|
+
var _types = require_types2();
|
|
61827
59248
|
function removeMaybeImportAttributes(tokens) {
|
|
61828
59249
|
if (tokens.matches2(_types.TokenType._with, _types.TokenType.braceL) || tokens.matches2(_types.TokenType.name, _types.TokenType.braceL) && tokens.matchesContextual(_keywords.ContextualKeyword._assert)) {
|
|
61829
59250
|
tokens.removeToken();
|
|
@@ -61838,7 +59259,7 @@ var require_removeMaybeImportAttributes = __commonJS((exports) => {
|
|
|
61838
59259
|
// ../../node_modules/sucrase/dist/util/shouldElideDefaultExport.js
|
|
61839
59260
|
var require_shouldElideDefaultExport = __commonJS((exports) => {
|
|
61840
59261
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
61841
|
-
var _types =
|
|
59262
|
+
var _types = require_types2();
|
|
61842
59263
|
function shouldElideDefaultExport(isTypeScriptTransformEnabled, keepUnusedImports, tokens, declarationInfo) {
|
|
61843
59264
|
if (!isTypeScriptTransformEnabled || keepUnusedImports) {
|
|
61844
59265
|
return false;
|
|
@@ -61869,7 +59290,7 @@ var require_CJSImportTransformer = __commonJS((exports) => {
|
|
|
61869
59290
|
}
|
|
61870
59291
|
var _tokenizer = require_tokenizer();
|
|
61871
59292
|
var _keywords = require_keywords();
|
|
61872
|
-
var _types =
|
|
59293
|
+
var _types = require_types2();
|
|
61873
59294
|
var _elideImportEquals = require_elideImportEquals();
|
|
61874
59295
|
var _elideImportEquals2 = _interopRequireDefault(_elideImportEquals);
|
|
61875
59296
|
var _getDeclarationInfo = require_getDeclarationInfo();
|
|
@@ -62511,7 +59932,7 @@ var require_ESMImportTransformer = __commonJS((exports) => {
|
|
|
62511
59932
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
62512
59933
|
}
|
|
62513
59934
|
var _keywords = require_keywords();
|
|
62514
|
-
var _types =
|
|
59935
|
+
var _types = require_types2();
|
|
62515
59936
|
var _elideImportEquals = require_elideImportEquals();
|
|
62516
59937
|
var _elideImportEquals2 = _interopRequireDefault(_elideImportEquals);
|
|
62517
59938
|
var _getDeclarationInfo = require_getDeclarationInfo();
|
|
@@ -62781,7 +60202,7 @@ var require_FlowTransformer = __commonJS((exports) => {
|
|
|
62781
60202
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
62782
60203
|
}
|
|
62783
60204
|
var _keywords = require_keywords();
|
|
62784
|
-
var _types =
|
|
60205
|
+
var _types = require_types2();
|
|
62785
60206
|
var _Transformer = require_Transformer();
|
|
62786
60207
|
var _Transformer2 = _interopRequireDefault(_Transformer);
|
|
62787
60208
|
|
|
@@ -62901,7 +60322,7 @@ var require_JestHoistTransformer = __commonJS((exports) => {
|
|
|
62901
60322
|
}
|
|
62902
60323
|
return value;
|
|
62903
60324
|
}
|
|
62904
|
-
var _types =
|
|
60325
|
+
var _types = require_types2();
|
|
62905
60326
|
var _Transformer = require_Transformer();
|
|
62906
60327
|
var _Transformer2 = _interopRequireDefault(_Transformer);
|
|
62907
60328
|
var JEST_GLOBAL_NAME = "jest";
|
|
@@ -62975,7 +60396,7 @@ var require_NumericSeparatorTransformer = __commonJS((exports) => {
|
|
|
62975
60396
|
function _interopRequireDefault(obj) {
|
|
62976
60397
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
62977
60398
|
}
|
|
62978
|
-
var _types =
|
|
60399
|
+
var _types = require_types2();
|
|
62979
60400
|
var _Transformer = require_Transformer();
|
|
62980
60401
|
var _Transformer2 = _interopRequireDefault(_Transformer);
|
|
62981
60402
|
|
|
@@ -63004,7 +60425,7 @@ var require_OptionalCatchBindingTransformer = __commonJS((exports) => {
|
|
|
63004
60425
|
function _interopRequireDefault(obj) {
|
|
63005
60426
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
63006
60427
|
}
|
|
63007
|
-
var _types =
|
|
60428
|
+
var _types = require_types2();
|
|
63008
60429
|
var _Transformer = require_Transformer();
|
|
63009
60430
|
var _Transformer2 = _interopRequireDefault(_Transformer);
|
|
63010
60431
|
|
|
@@ -63032,7 +60453,7 @@ var require_OptionalChainingNullishTransformer = __commonJS((exports) => {
|
|
|
63032
60453
|
function _interopRequireDefault(obj) {
|
|
63033
60454
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
63034
60455
|
}
|
|
63035
|
-
var _types =
|
|
60456
|
+
var _types = require_types2();
|
|
63036
60457
|
var _Transformer = require_Transformer();
|
|
63037
60458
|
var _Transformer2 = _interopRequireDefault(_Transformer);
|
|
63038
60459
|
|
|
@@ -63148,7 +60569,7 @@ var require_ReactDisplayNameTransformer = __commonJS((exports) => {
|
|
|
63148
60569
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
63149
60570
|
}
|
|
63150
60571
|
var _tokenizer = require_tokenizer();
|
|
63151
|
-
var _types =
|
|
60572
|
+
var _types = require_types2();
|
|
63152
60573
|
var _Transformer = require_Transformer();
|
|
63153
60574
|
var _Transformer2 = _interopRequireDefault(_Transformer);
|
|
63154
60575
|
|
|
@@ -63399,7 +60820,7 @@ var require_TypeScriptTransformer = __commonJS((exports) => {
|
|
|
63399
60820
|
function _interopRequireDefault(obj) {
|
|
63400
60821
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
63401
60822
|
}
|
|
63402
|
-
var _types =
|
|
60823
|
+
var _types = require_types2();
|
|
63403
60824
|
var _isIdentifier = require_isIdentifier();
|
|
63404
60825
|
var _isIdentifier2 = _interopRequireDefault(_isIdentifier);
|
|
63405
60826
|
var _Transformer = require_Transformer();
|
|
@@ -63545,7 +60966,7 @@ var require_RootTransformer = __commonJS((exports) => {
|
|
|
63545
60966
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
63546
60967
|
}
|
|
63547
60968
|
var _keywords = require_keywords();
|
|
63548
|
-
var _types =
|
|
60969
|
+
var _types = require_types2();
|
|
63549
60970
|
var _getClassInfo = require_getClassInfo();
|
|
63550
60971
|
var _getClassInfo2 = _interopRequireDefault(_getClassInfo);
|
|
63551
60972
|
var _CJSImportTransformer = require_CJSImportTransformer();
|
|
@@ -63944,7 +61365,7 @@ var require_formatTokens = __commonJS((exports) => {
|
|
|
63944
61365
|
}
|
|
63945
61366
|
var _linesandcolumns = require_build();
|
|
63946
61367
|
var _linesandcolumns2 = _interopRequireDefault(_linesandcolumns);
|
|
63947
|
-
var _types =
|
|
61368
|
+
var _types = require_types2();
|
|
63948
61369
|
function formatTokens(code, tokens) {
|
|
63949
61370
|
if (tokens.length === 0) {
|
|
63950
61371
|
return "";
|
|
@@ -64009,7 +61430,7 @@ var require_getTSImportedNames = __commonJS((exports) => {
|
|
|
64009
61430
|
function _interopRequireDefault(obj) {
|
|
64010
61431
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
64011
61432
|
}
|
|
64012
|
-
var _types =
|
|
61433
|
+
var _types = require_types2();
|
|
64013
61434
|
var _getImportExportSpecifierInfo = require_getImportExportSpecifierInfo();
|
|
64014
61435
|
var _getImportExportSpecifierInfo2 = _interopRequireDefault(_getImportExportSpecifierInfo);
|
|
64015
61436
|
function getTSImportedNames(tokens) {
|
|
@@ -64394,7 +61815,7 @@ function describeUnsupportedType(nodeType) {
|
|
|
64394
61815
|
function compileTypedScript(opts) {
|
|
64395
61816
|
let ast;
|
|
64396
61817
|
try {
|
|
64397
|
-
ast =
|
|
61818
|
+
ast = import_parser2.parse(opts.source, {
|
|
64398
61819
|
sourceType: "script",
|
|
64399
61820
|
plugins: ["typescript"],
|
|
64400
61821
|
ranges: true
|
|
@@ -64646,9 +62067,9 @@ function stripCommentsAndStrings(s) {
|
|
|
64646
62067
|
out = out.replace(/`(\\.|[^`\\])*`/g, "``");
|
|
64647
62068
|
return out;
|
|
64648
62069
|
}
|
|
64649
|
-
var
|
|
62070
|
+
var import_parser2, import_sucrase, EVALUATOR_FN_NAME = "scoreScript", EVALUATOR_PARAM_NAMES, TRANSFORM_FN_NAME = "script";
|
|
64650
62071
|
var init_compile = __esm(() => {
|
|
64651
|
-
|
|
62072
|
+
import_parser2 = __toESM(require_lib(), 1);
|
|
64652
62073
|
import_sucrase = __toESM(require_dist3(), 1);
|
|
64653
62074
|
EVALUATOR_PARAM_NAMES = ["expected", "actual"];
|
|
64654
62075
|
});
|
|
@@ -65008,8 +62429,8 @@ function getAllStepJsonSchemas() {
|
|
|
65008
62429
|
category: def.category,
|
|
65009
62430
|
name: def.name,
|
|
65010
62431
|
description: def.description,
|
|
65011
|
-
configSchema:
|
|
65012
|
-
outputSchema:
|
|
62432
|
+
configSchema: toJsonSchema2(def.configSchema),
|
|
62433
|
+
outputSchema: toJsonSchema2(def.outputSchema),
|
|
65013
62434
|
configInWith: def.configInWith
|
|
65014
62435
|
}));
|
|
65015
62436
|
}
|
|
@@ -65862,6 +63283,81 @@ var init_actions = __esm(() => {
|
|
|
65862
63283
|
ACTION_TYPES = ActionTypeSchema.options;
|
|
65863
63284
|
});
|
|
65864
63285
|
|
|
63286
|
+
// ../types/src/processor/execution.ts
|
|
63287
|
+
function asTuple(values) {
|
|
63288
|
+
return values;
|
|
63289
|
+
}
|
|
63290
|
+
var WorkflowExecutionStatusValue2, WorkflowExecutionStatusSchema2, StepExecutionStatusValue2, StepExecutionStatusSchema2, TriggerTypeValue2, TriggerTypeSchema2, ExecutionTypeValue2, ExecutionTypeSchema2, WORKFLOW_EXECUTION_STATUSES2, STEP_EXECUTION_STATUSES2, TRIGGER_TYPES2, EXECUTION_TYPES2;
|
|
63291
|
+
var init_execution = __esm(() => {
|
|
63292
|
+
init_zod();
|
|
63293
|
+
WorkflowExecutionStatusValue2 = {
|
|
63294
|
+
CREATED: "created",
|
|
63295
|
+
PENDING: "pending",
|
|
63296
|
+
RUNNING: "running",
|
|
63297
|
+
WAITING: "waiting",
|
|
63298
|
+
COMPLETED: "completed",
|
|
63299
|
+
FAILED: "failed",
|
|
63300
|
+
CANCELLED: "cancelled"
|
|
63301
|
+
};
|
|
63302
|
+
WorkflowExecutionStatusSchema2 = exports_external.enum([
|
|
63303
|
+
WorkflowExecutionStatusValue2.CREATED,
|
|
63304
|
+
WorkflowExecutionStatusValue2.PENDING,
|
|
63305
|
+
WorkflowExecutionStatusValue2.RUNNING,
|
|
63306
|
+
WorkflowExecutionStatusValue2.WAITING,
|
|
63307
|
+
WorkflowExecutionStatusValue2.COMPLETED,
|
|
63308
|
+
WorkflowExecutionStatusValue2.FAILED,
|
|
63309
|
+
WorkflowExecutionStatusValue2.CANCELLED
|
|
63310
|
+
]);
|
|
63311
|
+
StepExecutionStatusValue2 = {
|
|
63312
|
+
PENDING: "pending",
|
|
63313
|
+
RUNNING: "running",
|
|
63314
|
+
SUCCESS: "success",
|
|
63315
|
+
FAILURE: "failure",
|
|
63316
|
+
WAITING: "waiting",
|
|
63317
|
+
SKIPPED: "skipped"
|
|
63318
|
+
};
|
|
63319
|
+
StepExecutionStatusSchema2 = exports_external.enum([
|
|
63320
|
+
StepExecutionStatusValue2.PENDING,
|
|
63321
|
+
StepExecutionStatusValue2.RUNNING,
|
|
63322
|
+
StepExecutionStatusValue2.SUCCESS,
|
|
63323
|
+
StepExecutionStatusValue2.FAILURE,
|
|
63324
|
+
StepExecutionStatusValue2.WAITING,
|
|
63325
|
+
StepExecutionStatusValue2.SKIPPED
|
|
63326
|
+
]);
|
|
63327
|
+
TriggerTypeValue2 = {
|
|
63328
|
+
MANUAL: "manual",
|
|
63329
|
+
API: "api",
|
|
63330
|
+
WEBHOOK: "webhook",
|
|
63331
|
+
SCHEDULE: "schedule",
|
|
63332
|
+
EMAIL: "email",
|
|
63333
|
+
EVAL: "eval",
|
|
63334
|
+
CLI: "cli"
|
|
63335
|
+
};
|
|
63336
|
+
TriggerTypeSchema2 = exports_external.enum([
|
|
63337
|
+
TriggerTypeValue2.MANUAL,
|
|
63338
|
+
TriggerTypeValue2.API,
|
|
63339
|
+
TriggerTypeValue2.WEBHOOK,
|
|
63340
|
+
TriggerTypeValue2.SCHEDULE,
|
|
63341
|
+
TriggerTypeValue2.EMAIL,
|
|
63342
|
+
TriggerTypeValue2.EVAL,
|
|
63343
|
+
TriggerTypeValue2.CLI
|
|
63344
|
+
]);
|
|
63345
|
+
ExecutionTypeValue2 = {
|
|
63346
|
+
PROD: "prod",
|
|
63347
|
+
EVAL: "eval",
|
|
63348
|
+
PLAYGROUND: "playground"
|
|
63349
|
+
};
|
|
63350
|
+
ExecutionTypeSchema2 = exports_external.enum([
|
|
63351
|
+
ExecutionTypeValue2.PROD,
|
|
63352
|
+
ExecutionTypeValue2.EVAL,
|
|
63353
|
+
ExecutionTypeValue2.PLAYGROUND
|
|
63354
|
+
]);
|
|
63355
|
+
WORKFLOW_EXECUTION_STATUSES2 = asTuple(WorkflowExecutionStatusSchema2.options);
|
|
63356
|
+
STEP_EXECUTION_STATUSES2 = asTuple(StepExecutionStatusSchema2.options);
|
|
63357
|
+
TRIGGER_TYPES2 = TriggerTypeSchema2.options;
|
|
63358
|
+
EXECUTION_TYPES2 = ExecutionTypeSchema2.options;
|
|
63359
|
+
});
|
|
63360
|
+
|
|
65865
63361
|
// ../types/src/workflow/workflow.ts
|
|
65866
63362
|
function suggestWorkflowName(raw) {
|
|
65867
63363
|
return raw.toLowerCase().replace(/[^a-z0-9_-]+/g, "-").replace(/^[_-]+|[_-]+$/g, "").slice(0, 64);
|
|
@@ -65943,11 +63439,11 @@ var init_workflow = __esm(() => {
|
|
|
65943
63439
|
ManualTriggerMethodSchema = exports_external.object({
|
|
65944
63440
|
type: exports_external.literal("manual"),
|
|
65945
63441
|
enabled: exports_external.boolean().optional(),
|
|
65946
|
-
inputSchema:
|
|
63442
|
+
inputSchema: JsonSchemaSchema2.optional()
|
|
65947
63443
|
});
|
|
65948
63444
|
ApiTriggerMethodSchema = exports_external.object({
|
|
65949
63445
|
type: exports_external.literal("api"),
|
|
65950
|
-
inputSchema:
|
|
63446
|
+
inputSchema: JsonSchemaSchema2.optional()
|
|
65951
63447
|
});
|
|
65952
63448
|
EmailTriggerMethodSchema = exports_external.object({
|
|
65953
63449
|
type: exports_external.literal("email"),
|
|
@@ -65987,8 +63483,8 @@ var init_workflow = __esm(() => {
|
|
|
65987
63483
|
yamlContent: exports_external.string(),
|
|
65988
63484
|
definition: WorkflowDefinitionSchema,
|
|
65989
63485
|
isCurrent: exports_external.boolean().default(true),
|
|
65990
|
-
createdAt:
|
|
65991
|
-
updatedAt:
|
|
63486
|
+
createdAt: TimestampSchema2,
|
|
63487
|
+
updatedAt: TimestampSchema2.optional(),
|
|
65992
63488
|
createdBy: exports_external.string()
|
|
65993
63489
|
});
|
|
65994
63490
|
CreateWorkflowDefinitionSchema = exports_external.object({
|
|
@@ -66170,15 +63666,15 @@ function isFileOutput(value) {
|
|
|
66170
63666
|
function isWorkflowResult(value) {
|
|
66171
63667
|
return value != null && typeof value === "object" && "files" in value && Array.isArray(value.files);
|
|
66172
63668
|
}
|
|
66173
|
-
var
|
|
63669
|
+
var WorkflowExecutionStatusSchema3, StepExecutionStatusSchema3, ScopeEntryTypeSchema, ScopeEntrySchema, ScopeStackSchema, StepResultSchema, ExecutionContextSchema, StepInputReferenceSchema, WorkflowExecutionSchema, StepExecutionSchema, StepExecutionAttemptSchema, ConnectorSchema, WorkflowFileOutputSchema, WorkflowResultSchema;
|
|
66174
63670
|
var init_execution2 = __esm(() => {
|
|
66175
63671
|
init_zod();
|
|
66176
63672
|
init_common();
|
|
66177
63673
|
init_execution();
|
|
66178
63674
|
init_retry();
|
|
66179
63675
|
init_workflow();
|
|
66180
|
-
|
|
66181
|
-
|
|
63676
|
+
WorkflowExecutionStatusSchema3 = WorkflowExecutionStatusSchema2;
|
|
63677
|
+
StepExecutionStatusSchema3 = StepExecutionStatusSchema2;
|
|
66182
63678
|
ScopeEntryTypeSchema = exports_external.enum([
|
|
66183
63679
|
"root",
|
|
66184
63680
|
"if-then",
|
|
@@ -66201,7 +63697,7 @@ var init_execution2 = __esm(() => {
|
|
|
66201
63697
|
ScopeStackSchema = exports_external.array(ScopeEntrySchema);
|
|
66202
63698
|
StepResultSchema = exports_external.object({
|
|
66203
63699
|
output: exports_external.unknown(),
|
|
66204
|
-
status:
|
|
63700
|
+
status: StepExecutionStatusSchema3
|
|
66205
63701
|
});
|
|
66206
63702
|
ExecutionContextSchema = exports_external.object({
|
|
66207
63703
|
input: exports_external.record(exports_external.string(), exports_external.unknown()),
|
|
@@ -66229,24 +63725,24 @@ var init_execution2 = __esm(() => {
|
|
|
66229
63725
|
triggerType: exports_external.string(),
|
|
66230
63726
|
triggerInput: exports_external.record(exports_external.string(), exports_external.unknown()).nullable(),
|
|
66231
63727
|
overrides: exports_external.object({ steps: exports_external.record(exports_external.string(), exports_external.record(exports_external.string(), exports_external.unknown())).optional() }).nullable().optional(),
|
|
66232
|
-
status:
|
|
63728
|
+
status: WorkflowExecutionStatusSchema3,
|
|
66233
63729
|
scopeStack: ScopeStackSchema,
|
|
66234
63730
|
currentStepIndex: exports_external.number(),
|
|
66235
63731
|
stepResults: exports_external.record(exports_external.string(), StepResultSchema).optional(),
|
|
66236
63732
|
result: exports_external.unknown().nullable(),
|
|
66237
63733
|
error: exports_external.string().nullable(),
|
|
66238
63734
|
priority: exports_external.number().default(50),
|
|
66239
|
-
availableAt:
|
|
63735
|
+
availableAt: TimestampSchema2,
|
|
66240
63736
|
leaseId: exports_external.string().nullable(),
|
|
66241
|
-
leaseExpiresAt:
|
|
63737
|
+
leaseExpiresAt: TimestampSchema2.nullable(),
|
|
66242
63738
|
workerId: exports_external.string().nullable(),
|
|
66243
63739
|
maxRetries: exports_external.number().default(0),
|
|
66244
63740
|
originalExecutionId: exports_external.string().nullable().optional(),
|
|
66245
63741
|
previousExecutionId: exports_external.string().nullable().optional(),
|
|
66246
63742
|
retryNumber: exports_external.number().default(0),
|
|
66247
|
-
createdAt:
|
|
66248
|
-
startedAt:
|
|
66249
|
-
completedAt:
|
|
63743
|
+
createdAt: TimestampSchema2,
|
|
63744
|
+
startedAt: TimestampSchema2.nullable(),
|
|
63745
|
+
completedAt: TimestampSchema2.nullable(),
|
|
66250
63746
|
createdBy: exports_external.string().nullable()
|
|
66251
63747
|
});
|
|
66252
63748
|
StepExecutionSchema = exports_external.object({
|
|
@@ -66265,15 +63761,15 @@ var init_execution2 = __esm(() => {
|
|
|
66265
63761
|
effectiveRetryPolicy: ResolvedRetryPolicySchema.nullable().optional(),
|
|
66266
63762
|
retryPolicySource: RetryPolicySourceSchema.nullable().optional(),
|
|
66267
63763
|
latestAttempt: exports_external.number().default(0),
|
|
66268
|
-
nextAttemptAt:
|
|
63764
|
+
nextAttemptAt: TimestampSchema2.nullable().optional(),
|
|
66269
63765
|
inputData: exports_external.unknown().nullable(),
|
|
66270
63766
|
outputData: exports_external.unknown().nullable(),
|
|
66271
|
-
status:
|
|
63767
|
+
status: StepExecutionStatusSchema3,
|
|
66272
63768
|
error: exports_external.string().nullable(),
|
|
66273
63769
|
overrideMode: exports_external.enum(["skipped", "partial"]).nullable().optional(),
|
|
66274
63770
|
durationMs: exports_external.number().nullable(),
|
|
66275
|
-
startedAt:
|
|
66276
|
-
completedAt:
|
|
63771
|
+
startedAt: TimestampSchema2.nullable(),
|
|
63772
|
+
completedAt: TimestampSchema2.nullable()
|
|
66277
63773
|
});
|
|
66278
63774
|
StepExecutionAttemptSchema = exports_external.object({
|
|
66279
63775
|
id: exports_external.string(),
|
|
@@ -66286,8 +63782,8 @@ var init_execution2 = __esm(() => {
|
|
|
66286
63782
|
failure: ExecutionFailureSchema.nullable(),
|
|
66287
63783
|
retryDecision: RetryDecisionSchema.nullable(),
|
|
66288
63784
|
replaySafe: exports_external.boolean().nullable(),
|
|
66289
|
-
startedAt:
|
|
66290
|
-
completedAt:
|
|
63785
|
+
startedAt: TimestampSchema2,
|
|
63786
|
+
completedAt: TimestampSchema2.nullable(),
|
|
66291
63787
|
durationMs: exports_external.number().nullable()
|
|
66292
63788
|
});
|
|
66293
63789
|
ConnectorSchema = exports_external.object({
|
|
@@ -66299,8 +63795,8 @@ var init_execution2 = __esm(() => {
|
|
|
66299
63795
|
config: exports_external.record(exports_external.string(), exports_external.unknown()),
|
|
66300
63796
|
inputSchema: exports_external.unknown().optional(),
|
|
66301
63797
|
outputSchema: exports_external.unknown().optional(),
|
|
66302
|
-
createdAt:
|
|
66303
|
-
updatedAt:
|
|
63798
|
+
createdAt: TimestampSchema2,
|
|
63799
|
+
updatedAt: TimestampSchema2.optional(),
|
|
66304
63800
|
createdBy: exports_external.string()
|
|
66305
63801
|
});
|
|
66306
63802
|
WorkflowFileOutputSchema = exports_external.object({
|
|
@@ -67266,8 +64762,8 @@ function parseRunTarget(target) {
|
|
|
67266
64762
|
if (root !== "agents") {
|
|
67267
64763
|
throw new Error(`Agent target must be rooted at "agents.", got "${idOrSlug2}"`);
|
|
67268
64764
|
}
|
|
67269
|
-
for (const
|
|
67270
|
-
RunTargetSegmentSchema.parse(
|
|
64765
|
+
for (const segment of segments) {
|
|
64766
|
+
RunTargetSegmentSchema.parse(segment);
|
|
67271
64767
|
}
|
|
67272
64768
|
const packagePath = packageName.split(".").join("/");
|
|
67273
64769
|
const [, ...slugParts] = packagePath.split("/");
|
|
@@ -67380,9 +64876,9 @@ var init_grammar = __esm(() => {
|
|
|
67380
64876
|
if (!SourcePackageTypeSchema.safeParse(parts[0]).success) {
|
|
67381
64877
|
ctx.addIssue({ code: "custom", message: `Invalid package root: ${parts[0]}` });
|
|
67382
64878
|
}
|
|
67383
|
-
for (const
|
|
67384
|
-
if (!SourcePackageSegmentSchema.safeParse(
|
|
67385
|
-
ctx.addIssue({ code: "custom", message: `Invalid package segment: ${
|
|
64879
|
+
for (const segment of parts.slice(1)) {
|
|
64880
|
+
if (!SourcePackageSegmentSchema.safeParse(segment).success) {
|
|
64881
|
+
ctx.addIssue({ code: "custom", message: `Invalid package segment: ${segment}` });
|
|
67386
64882
|
}
|
|
67387
64883
|
}
|
|
67388
64884
|
});
|
|
@@ -67398,9 +64894,9 @@ var init_grammar = __esm(() => {
|
|
|
67398
64894
|
if (!SourcePackageTypeSchema.safeParse(parts[0]).success) {
|
|
67399
64895
|
ctx.addIssue({ code: "custom", message: `Invalid package root: ${parts[0]}` });
|
|
67400
64896
|
}
|
|
67401
|
-
for (const
|
|
67402
|
-
if (!SourcePackageSegmentSchema.safeParse(
|
|
67403
|
-
ctx.addIssue({ code: "custom", message: `Invalid package segment: ${
|
|
64897
|
+
for (const segment of parts.slice(1)) {
|
|
64898
|
+
if (!SourcePackageSegmentSchema.safeParse(segment).success) {
|
|
64899
|
+
ctx.addIssue({ code: "custom", message: `Invalid package segment: ${segment}` });
|
|
67404
64900
|
}
|
|
67405
64901
|
}
|
|
67406
64902
|
});
|
|
@@ -67494,9 +64990,9 @@ var init_grammar = __esm(() => {
|
|
|
67494
64990
|
});
|
|
67495
64991
|
return;
|
|
67496
64992
|
}
|
|
67497
|
-
for (const
|
|
67498
|
-
if (!RunTargetSegmentSchema.safeParse(
|
|
67499
|
-
ctx.addIssue({ code: "custom", message: `Invalid run target segment: ${
|
|
64993
|
+
for (const segment of parts.slice(1)) {
|
|
64994
|
+
if (!RunTargetSegmentSchema.safeParse(segment).success) {
|
|
64995
|
+
ctx.addIssue({ code: "custom", message: `Invalid run target segment: ${segment}` });
|
|
67500
64996
|
}
|
|
67501
64997
|
}
|
|
67502
64998
|
if (ref) {
|
|
@@ -68246,7 +65742,7 @@ function fromBig(n, le = false) {
|
|
|
68246
65742
|
return { h: Number(n & U32_MASK64), l: Number(n >> _32n & U32_MASK64) };
|
|
68247
65743
|
return { h: Number(n >> _32n & U32_MASK64) | 0, l: Number(n & U32_MASK64) | 0 };
|
|
68248
65744
|
}
|
|
68249
|
-
function
|
|
65745
|
+
function split(lst, le = false) {
|
|
68250
65746
|
const len = lst.length;
|
|
68251
65747
|
let Ah = new Uint32Array(len);
|
|
68252
65748
|
let Al = new Uint32Array(len);
|
|
@@ -68426,7 +65922,7 @@ var init_sha2 = __esm(() => {
|
|
|
68426
65922
|
super(28);
|
|
68427
65923
|
}
|
|
68428
65924
|
};
|
|
68429
|
-
K512 = /* @__PURE__ */ (() =>
|
|
65925
|
+
K512 = /* @__PURE__ */ (() => split([
|
|
68430
65926
|
"0x428a2f98d728ae22",
|
|
68431
65927
|
"0x7137449123ef65cd",
|
|
68432
65928
|
"0xb5c0fbcfec4d3b2f",
|
|
@@ -69016,13 +66512,6 @@ var init_parsed_document = __esm(() => {
|
|
|
69016
66512
|
path: ["table_html"]
|
|
69017
66513
|
});
|
|
69018
66514
|
}
|
|
69019
|
-
if (block.kind === "figure" && block.figure_uri == null) {
|
|
69020
|
-
ctx.addIssue({
|
|
69021
|
-
code: "custom",
|
|
69022
|
-
message: "figure blocks require figure_uri",
|
|
69023
|
-
path: ["figure_uri"]
|
|
69024
|
-
});
|
|
69025
|
-
}
|
|
69026
66515
|
});
|
|
69027
66516
|
REGION_TYPES = [
|
|
69028
66517
|
"text",
|
|
@@ -69453,50 +66942,10 @@ var init_extraction = __esm(() => {
|
|
|
69453
66942
|
}).strict();
|
|
69454
66943
|
});
|
|
69455
66944
|
|
|
69456
|
-
// ../types/src/ocr/model-options.ts
|
|
69457
|
-
function applyPaddleOcrOptionDefaults(requested) {
|
|
69458
|
-
return {
|
|
69459
|
-
image_block_ocr: requested?.image_block_ocr ?? PADDLE_OCR_OPTION_DEFAULTS.image_block_ocr,
|
|
69460
|
-
chart_recognition: requested?.chart_recognition ?? PADDLE_OCR_OPTION_DEFAULTS.chart_recognition,
|
|
69461
|
-
figure_assets: requested?.figure_assets ?? PADDLE_OCR_OPTION_DEFAULTS.figure_assets
|
|
69462
|
-
};
|
|
69463
|
-
}
|
|
69464
|
-
var OcrFigureAssetsModeSchema, PaddleOcrOptionsRequestSchema, PaddleOcrOptionsEffectiveSchema, PADDLE_OCR_OPTION_DEFAULTS, OcrOptionsRequestSchema, OcrOptionsEffectiveSchema, LlmOptionsRequestSchema, LlmOptionsStoredSchema, OcrModelOptionCapabilitySchema;
|
|
69465
|
-
var init_model_options = __esm(() => {
|
|
69466
|
-
init_zod();
|
|
69467
|
-
init_llm_models();
|
|
69468
|
-
OcrFigureAssetsModeSchema = exports_external.enum(["none", "stored"]);
|
|
69469
|
-
PaddleOcrOptionsRequestSchema = exports_external.object({
|
|
69470
|
-
image_block_ocr: exports_external.boolean().optional(),
|
|
69471
|
-
chart_recognition: exports_external.boolean().optional(),
|
|
69472
|
-
figure_assets: OcrFigureAssetsModeSchema.optional()
|
|
69473
|
-
}).strict();
|
|
69474
|
-
PaddleOcrOptionsEffectiveSchema = exports_external.object({
|
|
69475
|
-
image_block_ocr: exports_external.boolean(),
|
|
69476
|
-
chart_recognition: exports_external.boolean(),
|
|
69477
|
-
figure_assets: OcrFigureAssetsModeSchema
|
|
69478
|
-
}).strict();
|
|
69479
|
-
PADDLE_OCR_OPTION_DEFAULTS = {
|
|
69480
|
-
image_block_ocr: false,
|
|
69481
|
-
chart_recognition: true,
|
|
69482
|
-
figure_assets: "none"
|
|
69483
|
-
};
|
|
69484
|
-
OcrOptionsRequestSchema = PaddleOcrOptionsRequestSchema;
|
|
69485
|
-
OcrOptionsEffectiveSchema = PaddleOcrOptionsEffectiveSchema;
|
|
69486
|
-
LlmOptionsRequestSchema = exports_external.object({ reasoning_effort: OcrLlmReasoningEffortRequestSchema.optional() }).strict();
|
|
69487
|
-
LlmOptionsStoredSchema = exports_external.object({ reasoning_effort: OcrLlmReasoningEffortRequestSchema.nullable() }).strict();
|
|
69488
|
-
OcrModelOptionCapabilitySchema = exports_external.object({
|
|
69489
|
-
image_block_ocr: exports_external.boolean(),
|
|
69490
|
-
chart_recognition: exports_external.boolean(),
|
|
69491
|
-
figure_assets: exports_external.boolean()
|
|
69492
|
-
}).strict();
|
|
69493
|
-
});
|
|
69494
|
-
|
|
69495
66945
|
// ../types/src/ocr/raw-result.ts
|
|
69496
66946
|
var OCR_OUTPUT_FORMATS, OcrOutputFormatSchema, PaddleRawProfileSchema, RawParseResultSchema;
|
|
69497
66947
|
var init_raw_result = __esm(() => {
|
|
69498
66948
|
init_zod();
|
|
69499
|
-
init_model_options();
|
|
69500
66949
|
OCR_OUTPUT_FORMATS = ["openparser@1", "raw"];
|
|
69501
66950
|
OcrOutputFormatSchema = exports_external.enum(OCR_OUTPUT_FORMATS);
|
|
69502
66951
|
PaddleRawProfileSchema = exports_external.object({
|
|
@@ -69508,8 +66957,7 @@ var init_raw_result = __esm(() => {
|
|
|
69508
66957
|
return_markdown_images: exports_external.boolean(),
|
|
69509
66958
|
visualize: exports_external.literal(false),
|
|
69510
66959
|
image_block_ocr: exports_external.boolean(),
|
|
69511
|
-
chart_recognition: exports_external.boolean()
|
|
69512
|
-
figure_assets: OcrFigureAssetsModeSchema
|
|
66960
|
+
chart_recognition: exports_external.boolean()
|
|
69513
66961
|
}).strict()
|
|
69514
66962
|
}).strict();
|
|
69515
66963
|
RawParseResultSchema = exports_external.object({
|
|
@@ -69522,23 +66970,20 @@ var init_raw_result = __esm(() => {
|
|
|
69522
66970
|
});
|
|
69523
66971
|
|
|
69524
66972
|
// ../types/src/ocr/suggest-schema.ts
|
|
69525
|
-
|
|
69526
|
-
const trimmed = requested?.trim();
|
|
69527
|
-
return trimmed && trimmed.length > 0 ? trimmed : getDefaultOcrLlmModelId();
|
|
69528
|
-
}
|
|
69529
|
-
var SUGGEST_SCHEMA_HINT_MAX_CHARS = 500, SUGGEST_SCHEMA_PREVIEW_MAX_PAGES = 2, SUGGEST_SCHEMA_PREVIEW_MAX_CHARS = 24000, SuggestSchemaHintSchema, SuggestSchemaRequestSchema, SuggestSchemaPreviewMetaSchema, SuggestSchemaTerminalResultSchema;
|
|
66973
|
+
var SUGGEST_SCHEMA_HINT_MAX_CHARS = 500, SUGGEST_SCHEMA_PREVIEW_MAX_PAGES = 2, SUGGEST_SCHEMA_PREVIEW_MAX_CHARS = 24000, SUGGEST_SCHEMA_LLM_MODEL = "anthropic/claude-haiku-4.5", SuggestSchemaHintSchema, SuggestSchemaRequestSchema, SuggestSchemaResponseSchema, SuggestSchemaPreviewMetaSchema, SuggestSchemaTerminalResultSchema;
|
|
69530
66974
|
var init_suggest_schema = __esm(() => {
|
|
69531
66975
|
init_zod();
|
|
69532
66976
|
init_extraction();
|
|
69533
66977
|
init_llm_models();
|
|
69534
|
-
init_model_options();
|
|
69535
66978
|
SuggestSchemaHintSchema = exports_external.string().min(1).max(SUGGEST_SCHEMA_HINT_MAX_CHARS);
|
|
69536
66979
|
SuggestSchemaRequestSchema = exports_external.object({
|
|
69537
66980
|
parse_job_id: exports_external.string().uuid(),
|
|
69538
|
-
llm_model: LlmModelSchema.optional(),
|
|
69539
|
-
llm_options: LlmOptionsRequestSchema.optional(),
|
|
69540
66981
|
hint: SuggestSchemaHintSchema.optional()
|
|
69541
66982
|
}).strict();
|
|
66983
|
+
SuggestSchemaResponseSchema = exports_external.object({
|
|
66984
|
+
name: exports_external.string().min(1).max(200),
|
|
66985
|
+
schema: exports_external.record(exports_external.string(), exports_external.unknown())
|
|
66986
|
+
}).strict();
|
|
69542
66987
|
SuggestSchemaPreviewMetaSchema = exports_external.object({
|
|
69543
66988
|
max_pages: exports_external.literal(SUGGEST_SCHEMA_PREVIEW_MAX_PAGES),
|
|
69544
66989
|
max_chars: exports_external.literal(SUGGEST_SCHEMA_PREVIEW_MAX_CHARS),
|
|
@@ -69559,7 +67004,7 @@ var init_suggest_schema = __esm(() => {
|
|
|
69559
67004
|
});
|
|
69560
67005
|
|
|
69561
67006
|
// ../types/src/ocr/jobs.ts
|
|
69562
|
-
var OCR_OPENAPI_RELATIVE_PATH = "docs/OCR_API_OPENAPI.yaml", OCR_JOB_STATUSES, JobStatusSchema, OCR_JOB_OPERATIONS, JobOperationSchema, JobIdSchema, JobFailureSchema, JobAcceptedSchema, BatchJobAcceptedSchema, BatchChildSummarySchema, BatchChildPageSchema, BatchSummaryCountsSchema, JobProgressSchema, JobSchema, OCR_JOB_LIST_DEFAULT_LIMIT = 25, OCR_JOB_LIST_MAX_LIMIT = 100, JobSummarySchema, JobListResponseSchema, JobListQuerySchema, ErrorBodySchema, ErrorResponseSchema, OCR_SYNC_STATUS_CODES;
|
|
67007
|
+
var OCR_OPENAPI_RELATIVE_PATH = "docs/OCR_API_OPENAPI.yaml", OCR_JOB_STATUSES, JobStatusSchema, OCR_JOB_OPERATIONS, JobOperationSchema, OCR_JOB_HISTORY_OPERATIONS, JobHistoryOperationSchema, JobIdSchema, JobFailureSchema, JobAcceptedSchema, BatchJobAcceptedSchema, BatchChildSummarySchema, BatchChildPageSchema, BatchSummaryCountsSchema, JobProgressSchema, RelatedExtractionSummarySchema, JobSchema, OCR_JOB_LIST_DEFAULT_LIMIT = 25, OCR_JOB_LIST_MAX_LIMIT = 100, JobSummarySchema, JobListResponseSchema, JobListQuerySchema, ErrorBodySchema, ErrorResponseSchema, OCR_SYNC_STATUS_CODES;
|
|
69563
67008
|
var init_jobs = __esm(() => {
|
|
69564
67009
|
init_zod();
|
|
69565
67010
|
init_extraction();
|
|
@@ -69582,6 +67027,13 @@ var init_jobs = __esm(() => {
|
|
|
69582
67027
|
"extract_batch"
|
|
69583
67028
|
];
|
|
69584
67029
|
JobOperationSchema = exports_external.enum(OCR_JOB_OPERATIONS);
|
|
67030
|
+
OCR_JOB_HISTORY_OPERATIONS = [
|
|
67031
|
+
"parse",
|
|
67032
|
+
"extract",
|
|
67033
|
+
"parse_batch",
|
|
67034
|
+
"extract_batch"
|
|
67035
|
+
];
|
|
67036
|
+
JobHistoryOperationSchema = exports_external.enum(OCR_JOB_HISTORY_OPERATIONS);
|
|
69585
67037
|
JobIdSchema = exports_external.string().uuid();
|
|
69586
67038
|
JobFailureSchema = exports_external.object({
|
|
69587
67039
|
code: exports_external.string().min(1),
|
|
@@ -69591,7 +67043,7 @@ var init_jobs = __esm(() => {
|
|
|
69591
67043
|
}).strict();
|
|
69592
67044
|
JobAcceptedSchema = exports_external.object({
|
|
69593
67045
|
id: JobIdSchema,
|
|
69594
|
-
operation: exports_external.enum(["parse", "extract"
|
|
67046
|
+
operation: exports_external.enum(["parse", "extract"]),
|
|
69595
67047
|
status: JobStatusSchema,
|
|
69596
67048
|
output_format: OcrOutputFormatSchema,
|
|
69597
67049
|
created_at: exports_external.string().datetime(),
|
|
@@ -69604,7 +67056,7 @@ var init_jobs = __esm(() => {
|
|
|
69604
67056
|
output_format: OcrOutputFormatSchema,
|
|
69605
67057
|
created_at: exports_external.string().datetime(),
|
|
69606
67058
|
updated_at: exports_external.string().datetime(),
|
|
69607
|
-
child_count: exports_external.number().int().min(1).max(
|
|
67059
|
+
child_count: exports_external.number().int().min(1).max(100)
|
|
69608
67060
|
}).strict();
|
|
69609
67061
|
BatchChildSummarySchema = exports_external.object({
|
|
69610
67062
|
client_item_id: exports_external.string().min(1).max(128),
|
|
@@ -69631,6 +67083,15 @@ var init_jobs = __esm(() => {
|
|
|
69631
67083
|
completed: exports_external.number().int().min(0).optional(),
|
|
69632
67084
|
total: exports_external.number().int().min(0).optional()
|
|
69633
67085
|
}).strict();
|
|
67086
|
+
RelatedExtractionSummarySchema = exports_external.object({
|
|
67087
|
+
id: JobIdSchema,
|
|
67088
|
+
status: JobStatusSchema,
|
|
67089
|
+
created_at: exports_external.string().datetime(),
|
|
67090
|
+
updated_at: exports_external.string().datetime(),
|
|
67091
|
+
llm_model: exports_external.string().min(1).nullable().optional(),
|
|
67092
|
+
has_result: exports_external.boolean(),
|
|
67093
|
+
url: exports_external.string().min(1)
|
|
67094
|
+
}).strict();
|
|
69634
67095
|
JobSchema = exports_external.object({
|
|
69635
67096
|
id: JobIdSchema,
|
|
69636
67097
|
operation: JobOperationSchema,
|
|
@@ -69647,11 +67108,16 @@ var init_jobs = __esm(() => {
|
|
|
69647
67108
|
SuggestSchemaTerminalResultSchema
|
|
69648
67109
|
]).optional(),
|
|
69649
67110
|
summary: BatchSummaryCountsSchema.optional(),
|
|
69650
|
-
children: BatchChildPageSchema.optional()
|
|
67111
|
+
children: BatchChildPageSchema.optional(),
|
|
67112
|
+
has_source: exports_external.boolean().optional(),
|
|
67113
|
+
source_media_type: exports_external.string().min(1).nullable().optional(),
|
|
67114
|
+
source_parse_job_id: JobIdSchema.nullable().optional(),
|
|
67115
|
+
related_extractions: exports_external.array(RelatedExtractionSummarySchema).optional(),
|
|
67116
|
+
extraction_schema: exports_external.record(exports_external.string(), exports_external.unknown()).optional()
|
|
69651
67117
|
}).strict();
|
|
69652
67118
|
JobSummarySchema = exports_external.object({
|
|
69653
67119
|
id: JobIdSchema,
|
|
69654
|
-
operation:
|
|
67120
|
+
operation: JobHistoryOperationSchema,
|
|
69655
67121
|
status: JobStatusSchema,
|
|
69656
67122
|
output_format: OcrOutputFormatSchema,
|
|
69657
67123
|
ocr_model: exports_external.string().min(1).nullable().optional(),
|
|
@@ -69661,7 +67127,8 @@ var init_jobs = __esm(() => {
|
|
|
69661
67127
|
updated_at: exports_external.string().datetime(),
|
|
69662
67128
|
error: JobFailureSchema.optional(),
|
|
69663
67129
|
has_result: exports_external.boolean(),
|
|
69664
|
-
url: exports_external.string().min(1)
|
|
67130
|
+
url: exports_external.string().min(1),
|
|
67131
|
+
has_source: exports_external.boolean().optional()
|
|
69665
67132
|
}).strict();
|
|
69666
67133
|
JobListResponseSchema = exports_external.object({
|
|
69667
67134
|
data: exports_external.array(JobSummarySchema),
|
|
@@ -69671,7 +67138,7 @@ var init_jobs = __esm(() => {
|
|
|
69671
67138
|
cursor: exports_external.string().min(1).optional(),
|
|
69672
67139
|
limit: exports_external.coerce.number().int().min(1).max(OCR_JOB_LIST_MAX_LIMIT).optional().default(OCR_JOB_LIST_DEFAULT_LIMIT),
|
|
69673
67140
|
status: JobStatusSchema.optional(),
|
|
69674
|
-
operation:
|
|
67141
|
+
operation: JobHistoryOperationSchema.optional()
|
|
69675
67142
|
}).strict();
|
|
69676
67143
|
ErrorBodySchema = exports_external.object({
|
|
69677
67144
|
code: exports_external.string().min(1),
|
|
@@ -69691,6 +67158,41 @@ var init_jobs = __esm(() => {
|
|
|
69691
67158
|
};
|
|
69692
67159
|
});
|
|
69693
67160
|
|
|
67161
|
+
// ../types/src/ocr/model-options.ts
|
|
67162
|
+
function applyPaddleOcrOptionDefaults(requested) {
|
|
67163
|
+
const source = requested && typeof requested === "object" ? requested : undefined;
|
|
67164
|
+
return {
|
|
67165
|
+
image_block_ocr: typeof source?.image_block_ocr === "boolean" ? source.image_block_ocr : PADDLE_OCR_OPTION_DEFAULTS.image_block_ocr,
|
|
67166
|
+
chart_recognition: typeof source?.chart_recognition === "boolean" ? source.chart_recognition : PADDLE_OCR_OPTION_DEFAULTS.chart_recognition
|
|
67167
|
+
};
|
|
67168
|
+
}
|
|
67169
|
+
var OcrFigureAssetsModeSchema, PaddleOcrOptionsRequestSchema, PaddleOcrOptionsEffectiveSchema, PADDLE_OCR_OPTION_DEFAULTS, OcrOptionsRequestSchema, OcrOptionsEffectiveSchema, LlmOptionsRequestSchema, LlmOptionsStoredSchema, OcrModelOptionCapabilitySchema;
|
|
67170
|
+
var init_model_options = __esm(() => {
|
|
67171
|
+
init_zod();
|
|
67172
|
+
init_llm_models();
|
|
67173
|
+
OcrFigureAssetsModeSchema = exports_external.enum(["none", "stored"]);
|
|
67174
|
+
PaddleOcrOptionsRequestSchema = exports_external.object({
|
|
67175
|
+
image_block_ocr: exports_external.boolean().optional(),
|
|
67176
|
+
chart_recognition: exports_external.boolean().optional()
|
|
67177
|
+
}).strict();
|
|
67178
|
+
PaddleOcrOptionsEffectiveSchema = exports_external.object({
|
|
67179
|
+
image_block_ocr: exports_external.boolean(),
|
|
67180
|
+
chart_recognition: exports_external.boolean()
|
|
67181
|
+
}).strict();
|
|
67182
|
+
PADDLE_OCR_OPTION_DEFAULTS = {
|
|
67183
|
+
image_block_ocr: false,
|
|
67184
|
+
chart_recognition: true
|
|
67185
|
+
};
|
|
67186
|
+
OcrOptionsRequestSchema = PaddleOcrOptionsRequestSchema;
|
|
67187
|
+
OcrOptionsEffectiveSchema = PaddleOcrOptionsEffectiveSchema;
|
|
67188
|
+
LlmOptionsRequestSchema = exports_external.object({ reasoning_effort: OcrLlmReasoningEffortRequestSchema.optional() }).strict();
|
|
67189
|
+
LlmOptionsStoredSchema = exports_external.object({ reasoning_effort: OcrLlmReasoningEffortRequestSchema.nullable() }).strict();
|
|
67190
|
+
OcrModelOptionCapabilitySchema = exports_external.object({
|
|
67191
|
+
image_block_ocr: exports_external.boolean(),
|
|
67192
|
+
chart_recognition: exports_external.boolean()
|
|
67193
|
+
}).strict();
|
|
67194
|
+
});
|
|
67195
|
+
|
|
69694
67196
|
// ../types/src/ocr/ocr-models.ts
|
|
69695
67197
|
function getDefaultOcrModelId() {
|
|
69696
67198
|
const defaults = OCR_MODEL_CATALOG.filter((entry) => entry.is_default);
|
|
@@ -69737,8 +67239,7 @@ var init_ocr_models = __esm(() => {
|
|
|
69737
67239
|
}).strict(),
|
|
69738
67240
|
option_defaults: exports_external.object({
|
|
69739
67241
|
image_block_ocr: exports_external.boolean(),
|
|
69740
|
-
chart_recognition: exports_external.boolean()
|
|
69741
|
-
figure_assets: exports_external.enum(["none", "stored"])
|
|
67242
|
+
chart_recognition: exports_external.boolean()
|
|
69742
67243
|
}).strict(),
|
|
69743
67244
|
pricing: OcrModelPricingSchema,
|
|
69744
67245
|
availability: OcrModelAvailabilitySchema
|
|
@@ -69746,8 +67247,7 @@ var init_ocr_models = __esm(() => {
|
|
|
69746
67247
|
OcrModelsResponseSchema = exports_external.object({ data: exports_external.array(OcrModelCatalogEntrySchema).min(1) }).strict();
|
|
69747
67248
|
PADDLE_OPTION_CAPABILITIES = {
|
|
69748
67249
|
image_block_ocr: true,
|
|
69749
|
-
chart_recognition: true
|
|
69750
|
-
figure_assets: true
|
|
67250
|
+
chart_recognition: true
|
|
69751
67251
|
};
|
|
69752
67252
|
OCR_MODEL_CATALOG = [
|
|
69753
67253
|
{
|
|
@@ -70015,11 +67515,11 @@ var init_contracts = __esm(() => {
|
|
|
70015
67515
|
};
|
|
70016
67516
|
});
|
|
70017
67517
|
ParseBatchRequestSchema = exports_external.object({
|
|
70018
|
-
items: exports_external.array(ParseBatchItemSchema).min(1).max(
|
|
67518
|
+
items: exports_external.array(ParseBatchItemSchema).min(1).max(100),
|
|
70019
67519
|
output_format: OcrOutputFormatSchema.default("openparser@1")
|
|
70020
67520
|
}).strict();
|
|
70021
67521
|
ExtractBatchRequestSchema = exports_external.object({
|
|
70022
|
-
items: exports_external.array(ExtractBatchItemSchema).min(1).max(
|
|
67522
|
+
items: exports_external.array(ExtractBatchItemSchema).min(1).max(100),
|
|
70023
67523
|
output_format: OcrOutputFormatSchema.default("openparser@1")
|
|
70024
67524
|
}).strict();
|
|
70025
67525
|
PublicFileSchema = exports_external.object({
|
|
@@ -70058,7 +67558,7 @@ var init_contracts = __esm(() => {
|
|
|
70058
67558
|
RawParseResult: RawParseResultSchema,
|
|
70059
67559
|
ParseResult: OpenParserParseResultSchema,
|
|
70060
67560
|
JobStatus: JobStatusSchema,
|
|
70061
|
-
JobOperation:
|
|
67561
|
+
JobOperation: JobHistoryOperationSchema,
|
|
70062
67562
|
JobAccepted: JobAcceptedSchema,
|
|
70063
67563
|
BatchJobAccepted: BatchJobAcceptedSchema,
|
|
70064
67564
|
BoundingBox: BoundingBoxSchema,
|
|
@@ -70080,12 +67580,15 @@ var init_contracts = __esm(() => {
|
|
|
70080
67580
|
ExtractionGroundingField: ExtractionGroundingFieldSchema,
|
|
70081
67581
|
ExtractionGroundingResult: ExtractionGroundingResultSchema,
|
|
70082
67582
|
ExtractionTerminalResult: ExtractionTerminalResultSchema,
|
|
70083
|
-
|
|
67583
|
+
SuggestSchemaResponse: SuggestSchemaResponseSchema,
|
|
70084
67584
|
JobFailure: JobFailureSchema,
|
|
70085
67585
|
BatchChildSummary: BatchChildSummarySchema,
|
|
70086
67586
|
BatchChildPage: BatchChildPageSchema,
|
|
70087
67587
|
BatchSummaryCounts: BatchSummaryCountsSchema,
|
|
70088
|
-
Job: JobSchema
|
|
67588
|
+
Job: JobSchema.extend({
|
|
67589
|
+
operation: JobHistoryOperationSchema,
|
|
67590
|
+
result: exports_external.union([ParsedDocumentSchema, RawParseResultSchema, ExtractionTerminalResultSchema]).optional()
|
|
67591
|
+
}),
|
|
70089
67592
|
JobSummary: JobSummarySchema,
|
|
70090
67593
|
JobListResponse: JobListResponseSchema,
|
|
70091
67594
|
ErrorBody: ErrorBodySchema,
|
|
@@ -70216,35 +67719,23 @@ var init_contracts = __esm(() => {
|
|
|
70216
67719
|
}
|
|
70217
67720
|
},
|
|
70218
67721
|
{
|
|
70219
|
-
operationId: "
|
|
67722
|
+
operationId: "suggestSchema",
|
|
70220
67723
|
method: "post",
|
|
70221
67724
|
path: "/suggest-schema",
|
|
70222
67725
|
tag: "extract",
|
|
70223
67726
|
requestBody: "SuggestSchemaRequest",
|
|
70224
|
-
parameters: ["IdempotencyKey"],
|
|
70225
67727
|
responses: {
|
|
70226
|
-
200: { schema: "
|
|
70227
|
-
|
|
70228
|
-
|
|
67728
|
+
200: { schema: "SuggestSchemaResponse" },
|
|
67729
|
+
400: { component: "MalformedRequest" },
|
|
67730
|
+
401: { component: "Unauthorized" },
|
|
67731
|
+
403: { component: "Forbidden" },
|
|
70229
67732
|
404: { component: "JobNotFound" },
|
|
70230
67733
|
422: { component: "UnprocessableOrSyncFailed" },
|
|
67734
|
+
429: { component: "RateLimited" },
|
|
67735
|
+
503: { component: "ServiceUnavailable" },
|
|
70231
67736
|
504: { component: "SyncTerminalIndeterminate" }
|
|
70232
67737
|
}
|
|
70233
67738
|
},
|
|
70234
|
-
{
|
|
70235
|
-
operationId: "suggestSchemaAsync",
|
|
70236
|
-
method: "post",
|
|
70237
|
-
path: "/suggest-schema/async",
|
|
70238
|
-
tag: "extract",
|
|
70239
|
-
requestBody: "SuggestSchemaRequest",
|
|
70240
|
-
parameters: ["IdempotencyKey"],
|
|
70241
|
-
responses: {
|
|
70242
|
-
202: { component: "JobAccepted" },
|
|
70243
|
-
...admissionErrors,
|
|
70244
|
-
404: { component: "JobNotFound" },
|
|
70245
|
-
422: { component: "UnprocessableConfig" }
|
|
70246
|
-
}
|
|
70247
|
-
},
|
|
70248
67739
|
{
|
|
70249
67740
|
operationId: "listJobs",
|
|
70250
67741
|
method: "get",
|
|
@@ -70273,6 +67764,22 @@ var init_contracts = __esm(() => {
|
|
|
70273
67764
|
429: { component: "RateLimited" }
|
|
70274
67765
|
}
|
|
70275
67766
|
},
|
|
67767
|
+
{
|
|
67768
|
+
operationId: "getJobSource",
|
|
67769
|
+
method: "get",
|
|
67770
|
+
path: "/jobs/{id}/source",
|
|
67771
|
+
tag: "jobs",
|
|
67772
|
+
parameters: ["JobId"],
|
|
67773
|
+
responses: {
|
|
67774
|
+
200: { binary: true },
|
|
67775
|
+
206: { component: "PartialContent" },
|
|
67776
|
+
401: { component: "Unauthorized" },
|
|
67777
|
+
403: { component: "Forbidden" },
|
|
67778
|
+
404: { component: "JobSourceUnavailable" },
|
|
67779
|
+
416: { component: "RangeNotSatisfiable" },
|
|
67780
|
+
429: { component: "RateLimited" }
|
|
67781
|
+
}
|
|
67782
|
+
},
|
|
70276
67783
|
{
|
|
70277
67784
|
operationId: "createFile",
|
|
70278
67785
|
method: "post",
|
|
@@ -70486,6 +67993,10 @@ function s3PathFilename(value) {
|
|
|
70486
67993
|
function s3FileArtifactName(fileId, filename) {
|
|
70487
67994
|
return `${assertSegment("fileId", fileId)}-${s3PathFilename(filename)}`;
|
|
70488
67995
|
}
|
|
67996
|
+
function filenameFromArtifactName(nameOrPath) {
|
|
67997
|
+
const base = nameOrPath.split("/").filter(Boolean).at(-1) ?? nameOrPath;
|
|
67998
|
+
return base.replace(FILE_ARTIFACT_PREFIX_RX, "") || base;
|
|
67999
|
+
}
|
|
70489
68000
|
function getDynamicEntry(node) {
|
|
70490
68001
|
const key = Object.keys(node).find((candidate) => candidate.startsWith("$"));
|
|
70491
68002
|
return key ? [key, node[key]] : undefined;
|
|
@@ -70535,11 +68046,11 @@ function walkGrammar(node, parts) {
|
|
|
70535
68046
|
}
|
|
70536
68047
|
return current;
|
|
70537
68048
|
}
|
|
70538
|
-
function normalizeTemplate(
|
|
70539
|
-
return
|
|
68049
|
+
function normalizeTemplate(template) {
|
|
68050
|
+
return template.endsWith("/") ? template.slice(0, -1) : template;
|
|
70540
68051
|
}
|
|
70541
|
-
function renderTemplate(
|
|
70542
|
-
return normalizeTemplate(
|
|
68052
|
+
function renderTemplate(template, params) {
|
|
68053
|
+
return normalizeTemplate(template).split("/").flatMap((part) => {
|
|
70543
68054
|
if (!part.startsWith(":")) {
|
|
70544
68055
|
return [part];
|
|
70545
68056
|
}
|
|
@@ -70549,36 +68060,36 @@ function renderTemplate(template2, params) {
|
|
|
70549
68060
|
throw new Error(`Missing S3 path parameter: ${part}`);
|
|
70550
68061
|
}
|
|
70551
68062
|
if (name === "path") {
|
|
70552
|
-
return value.split("/").map((
|
|
68063
|
+
return value.split("/").map((segment) => assertSegment("path", segment));
|
|
70553
68064
|
}
|
|
70554
68065
|
return [assertSegment(String(name), value)];
|
|
70555
68066
|
});
|
|
70556
68067
|
}
|
|
70557
|
-
function buildS3Path(tenantId,
|
|
68068
|
+
function buildS3Path(tenantId, template, params) {
|
|
70558
68069
|
const tenant = assertSegment("tenantId", tenantId);
|
|
70559
|
-
const parts = renderTemplate(
|
|
68070
|
+
const parts = renderTemplate(template, params);
|
|
70560
68071
|
const node = walkGrammar(S3_PATH_GRAMMAR, parts);
|
|
70561
|
-
if (
|
|
70562
|
-
throw new Error(`S3 path leaf cannot have a trailing slash: ${JSON.stringify(
|
|
68072
|
+
if (template.endsWith("/") && node === PATH_LEAF) {
|
|
68073
|
+
throw new Error(`S3 path leaf cannot have a trailing slash: ${JSON.stringify(template)}`);
|
|
70563
68074
|
}
|
|
70564
68075
|
const path = ["tenants", tenant, ...parts].join("/");
|
|
70565
|
-
return
|
|
68076
|
+
return template.endsWith("/") ? `${path}/` : path;
|
|
70566
68077
|
}
|
|
70567
|
-
function buildS3PathSuffix(
|
|
70568
|
-
const parts = renderTemplate(
|
|
68078
|
+
function buildS3PathSuffix(template, params) {
|
|
68079
|
+
const parts = renderTemplate(template, params);
|
|
70569
68080
|
const node = walkGrammar(S3_PATH_GRAMMAR, parts);
|
|
70570
|
-
if (
|
|
70571
|
-
throw new Error(`S3 path leaf cannot have a trailing slash: ${JSON.stringify(
|
|
68081
|
+
if (template.endsWith("/") && node === PATH_LEAF) {
|
|
68082
|
+
throw new Error(`S3 path leaf cannot have a trailing slash: ${JSON.stringify(template)}`);
|
|
70572
68083
|
}
|
|
70573
68084
|
const path = parts.join("/");
|
|
70574
|
-
return
|
|
68085
|
+
return template.endsWith("/") ? `${path}/` : path;
|
|
70575
68086
|
}
|
|
70576
68087
|
function stripTenantPrefix(key) {
|
|
70577
68088
|
return key.replace(TENANT_PREFIX_RX, "");
|
|
70578
68089
|
}
|
|
70579
|
-
function matchS3Path(
|
|
68090
|
+
function matchS3Path(template, key) {
|
|
70580
68091
|
const keyParts = stripTenantPrefix(key).split("/");
|
|
70581
|
-
const templateParts = normalizeTemplate(
|
|
68092
|
+
const templateParts = normalizeTemplate(template).split("/");
|
|
70582
68093
|
const params = {};
|
|
70583
68094
|
let keyIndex = 0;
|
|
70584
68095
|
for (let templateIndex = 0;templateIndex < templateParts.length; templateIndex += 1) {
|
|
@@ -70597,7 +68108,7 @@ function matchS3Path(template2, key) {
|
|
|
70597
68108
|
if (rest.length === 0)
|
|
70598
68109
|
return null;
|
|
70599
68110
|
try {
|
|
70600
|
-
params.path = rest.map((
|
|
68111
|
+
params.path = rest.map((segment) => assertSegment("path", segment)).join("/");
|
|
70601
68112
|
walkGrammar(S3_PATH_GRAMMAR, keyParts);
|
|
70602
68113
|
} catch {
|
|
70603
68114
|
return null;
|
|
@@ -70631,23 +68142,23 @@ function createBuilder(grammarNode, prefixSegments, boundTenantId) {
|
|
|
70631
68142
|
}
|
|
70632
68143
|
return assertSegment("tenantId", tenantId);
|
|
70633
68144
|
};
|
|
70634
|
-
const build = (
|
|
68145
|
+
const build = (template, params) => {
|
|
70635
68146
|
const tenant = resolveTenantId(params);
|
|
70636
|
-
const parts = renderTemplate(
|
|
68147
|
+
const parts = renderTemplate(template, params ?? {});
|
|
70637
68148
|
const node = walkGrammar(grammarNode, parts);
|
|
70638
|
-
if (
|
|
70639
|
-
throw new Error(`S3 path leaf cannot have a trailing slash: ${JSON.stringify(
|
|
68149
|
+
if (template.endsWith("/") && node === PATH_LEAF) {
|
|
68150
|
+
throw new Error(`S3 path leaf cannot have a trailing slash: ${JSON.stringify(template)}`);
|
|
70640
68151
|
}
|
|
70641
68152
|
const path = ["tenants", tenant, ...prefixSegments, ...parts].join("/");
|
|
70642
|
-
return
|
|
68153
|
+
return template.endsWith("/") ? `${path}/` : path;
|
|
70643
68154
|
};
|
|
70644
68155
|
const builder = build;
|
|
70645
|
-
builder.at = (
|
|
68156
|
+
builder.at = (template, params) => {
|
|
70646
68157
|
const tenant = resolveTenantId(params);
|
|
70647
|
-
const parts = renderTemplate(
|
|
68158
|
+
const parts = renderTemplate(template, params ?? {});
|
|
70648
68159
|
const nextNode = walkGrammar(grammarNode, parts);
|
|
70649
|
-
if (
|
|
70650
|
-
throw new Error(`S3 path leaf cannot have a trailing slash: ${JSON.stringify(
|
|
68160
|
+
if (template.endsWith("/") && nextNode === PATH_LEAF) {
|
|
68161
|
+
throw new Error(`S3 path leaf cannot have a trailing slash: ${JSON.stringify(template)}`);
|
|
70651
68162
|
}
|
|
70652
68163
|
return createBuilder(nextNode, [...prefixSegments, ...parts], tenant);
|
|
70653
68164
|
};
|
|
@@ -70658,7 +68169,7 @@ function createBuilder(grammarNode, prefixSegments, boundTenantId) {
|
|
|
70658
68169
|
});
|
|
70659
68170
|
return builder;
|
|
70660
68171
|
}
|
|
70661
|
-
var PATH_LEAF = null, PATH_REST = "*", S3_PATH_GRAMMAR, SEGMENT_RX, SAFE_FILENAME_RX, TENANT_PREFIX_RX, rootS3Path;
|
|
68172
|
+
var PATH_LEAF = null, PATH_REST = "*", S3_PATH_GRAMMAR, SEGMENT_RX, SAFE_FILENAME_RX, TENANT_PREFIX_RX, FILE_ARTIFACT_PREFIX_RX, rootS3Path;
|
|
70662
68173
|
var init_s3_paths = __esm(() => {
|
|
70663
68174
|
S3_PATH_GRAMMAR = {
|
|
70664
68175
|
agents: {
|
|
@@ -70809,6 +68320,7 @@ var init_s3_paths = __esm(() => {
|
|
|
70809
68320
|
SEGMENT_RX = /^[A-Za-z0-9_.-]+$/;
|
|
70810
68321
|
SAFE_FILENAME_RX = /[^A-Za-z0-9_.-]+/g;
|
|
70811
68322
|
TENANT_PREFIX_RX = /^tenants\/[A-Za-z0-9_.-]+\//;
|
|
68323
|
+
FILE_ARTIFACT_PREFIX_RX = /^file_[A-Za-z0-9_-]{21}-/;
|
|
70812
68324
|
rootS3Path = createBuilder(S3_PATH_GRAMMAR, []);
|
|
70813
68325
|
});
|
|
70814
68326
|
|
|
@@ -70858,7 +68370,6 @@ __export(exports_src, {
|
|
|
70858
68370
|
runExpandErrorMessage: () => runExpandErrorMessage,
|
|
70859
68371
|
rootS3Path: () => rootS3Path,
|
|
70860
68372
|
resolveWorkflowPassThreshold: () => resolveWorkflowPassThreshold,
|
|
70861
|
-
resolveSuggestSchemaLlmModel: () => resolveSuggestSchemaLlmModel,
|
|
70862
68373
|
resolveRetryPolicy: () => resolveRetryPolicy,
|
|
70863
68374
|
resolveEffectiveMimeType: () => resolveEffectiveMimeType,
|
|
70864
68375
|
resolveAgentOriginalSourceRef: () => resolveAgentOriginalSourceRef,
|
|
@@ -70948,6 +68459,7 @@ __export(exports_src, {
|
|
|
70948
68459
|
formatReleaseTag: () => formatReleaseTag,
|
|
70949
68460
|
formatHostedSourceExportPath: () => formatHostedSourceExportPath,
|
|
70950
68461
|
formatDiffValue: () => formatDiffValue,
|
|
68462
|
+
filenameFromArtifactName: () => filenameFromArtifactName,
|
|
70951
68463
|
fileReferenceKind: () => fileReferenceKind,
|
|
70952
68464
|
fileFieldNamesFromJsonSchema: () => fileFieldNamesFromJsonSchema,
|
|
70953
68465
|
fieldStemFromGoldenName: () => fieldStemFromGoldenName,
|
|
@@ -71070,6 +68582,7 @@ __export(exports_src, {
|
|
|
71070
68582
|
TERMINAL_EXECUTION_STATUSES: () => TERMINAL_EXECUTION_STATUSES,
|
|
71071
68583
|
SwitchStepSchema: () => SwitchStepSchema,
|
|
71072
68584
|
SuggestSchemaTerminalResultSchema: () => SuggestSchemaTerminalResultSchema,
|
|
68585
|
+
SuggestSchemaResponseSchema: () => SuggestSchemaResponseSchema,
|
|
71073
68586
|
SuggestSchemaRequestSchema: () => SuggestSchemaRequestSchema,
|
|
71074
68587
|
SuggestSchemaPreviewMetaSchema: () => SuggestSchemaPreviewMetaSchema,
|
|
71075
68588
|
SuggestSchemaHintSchema: () => SuggestSchemaHintSchema,
|
|
@@ -71090,7 +68603,7 @@ __export(exports_src, {
|
|
|
71090
68603
|
SplitConfigSchema: () => SplitConfigSchema,
|
|
71091
68604
|
SpanTypes: () => SpanTypes,
|
|
71092
68605
|
SpanKindMap: () => SpanKindMap,
|
|
71093
|
-
SpanKind: () =>
|
|
68606
|
+
SpanKind: () => SpanKind,
|
|
71094
68607
|
SourceVersionRefSchema: () => SourceVersionRefSchema,
|
|
71095
68608
|
SourceSecretsFileSchema: () => SourceSecretsFileSchema,
|
|
71096
68609
|
SourcePackageTypeSchema: () => SourcePackageTypeSchema,
|
|
@@ -71114,6 +68627,7 @@ __export(exports_src, {
|
|
|
71114
68627
|
ScopeEntrySchema: () => ScopeEntrySchema,
|
|
71115
68628
|
SUGGEST_SCHEMA_PREVIEW_MAX_PAGES: () => SUGGEST_SCHEMA_PREVIEW_MAX_PAGES,
|
|
71116
68629
|
SUGGEST_SCHEMA_PREVIEW_MAX_CHARS: () => SUGGEST_SCHEMA_PREVIEW_MAX_CHARS,
|
|
68630
|
+
SUGGEST_SCHEMA_LLM_MODEL: () => SUGGEST_SCHEMA_LLM_MODEL,
|
|
71117
68631
|
SUGGEST_SCHEMA_HINT_MAX_CHARS: () => SUGGEST_SCHEMA_HINT_MAX_CHARS,
|
|
71118
68632
|
STEP_TYPES: () => STEP_TYPES,
|
|
71119
68633
|
STEP_SCHEMAS: () => STEP_SCHEMAS,
|
|
@@ -71145,6 +68659,7 @@ __export(exports_src, {
|
|
|
71145
68659
|
ResolvedProcessorFileSchema: () => ResolvedProcessorFileSchema,
|
|
71146
68660
|
RepairAttemptsSchema: () => RepairAttemptsSchema,
|
|
71147
68661
|
ReleaseTagSchema: () => ReleaseTagSchema,
|
|
68662
|
+
RelatedExtractionSummarySchema: () => RelatedExtractionSummarySchema,
|
|
71148
68663
|
RegionTypeSchema: () => RegionTypeSchema,
|
|
71149
68664
|
RegionSchema: () => RegionSchema,
|
|
71150
68665
|
RegionContentSchema: () => RegionContentSchema,
|
|
@@ -71248,6 +68763,7 @@ __export(exports_src, {
|
|
|
71248
68763
|
OCR_JOB_OPERATIONS: () => OCR_JOB_OPERATIONS,
|
|
71249
68764
|
OCR_JOB_LIST_MAX_LIMIT: () => OCR_JOB_LIST_MAX_LIMIT,
|
|
71250
68765
|
OCR_JOB_LIST_DEFAULT_LIMIT: () => OCR_JOB_LIST_DEFAULT_LIMIT,
|
|
68766
|
+
OCR_JOB_HISTORY_OPERATIONS: () => OCR_JOB_HISTORY_OPERATIONS,
|
|
71251
68767
|
NON_SUCCESS_TERMINAL_EXECUTION_STATUSES: () => NON_SUCCESS_TERMINAL_EXECUTION_STATUSES,
|
|
71252
68768
|
MergeOutputSchema: () => MergeOutputSchema,
|
|
71253
68769
|
MergeInputSchema: () => MergeInputSchema,
|
|
@@ -71279,6 +68795,7 @@ __export(exports_src, {
|
|
|
71279
68795
|
JobListResponseSchema: () => JobListResponseSchema,
|
|
71280
68796
|
JobListQuerySchema: () => JobListQuerySchema,
|
|
71281
68797
|
JobIdSchema: () => JobIdSchema,
|
|
68798
|
+
JobHistoryOperationSchema: () => JobHistoryOperationSchema,
|
|
71282
68799
|
JobFailureSchema: () => JobFailureSchema,
|
|
71283
68800
|
JobAcceptedSchema: () => JobAcceptedSchema,
|
|
71284
68801
|
InlineFileRefSchema: () => InlineFileRefSchema,
|
|
@@ -71294,7 +68811,7 @@ __export(exports_src, {
|
|
|
71294
68811
|
GPFS_FILE_SOURCE_DESCRIPTOR: () => GPFS_FILE_SOURCE_DESCRIPTOR,
|
|
71295
68812
|
ForeachStepSchema: () => ForeachStepSchema,
|
|
71296
68813
|
FileReferenceSentinelSchema: () => FileReferenceSentinelSchema,
|
|
71297
|
-
FilePathDescriptorSchema: () =>
|
|
68814
|
+
FilePathDescriptorSchema: () => FilePathDescriptorSchema2,
|
|
71298
68815
|
FileIngressRefSchema: () => FileIngressRefSchema,
|
|
71299
68816
|
FileIdIngressRefSchema: () => FileIdIngressRefSchema,
|
|
71300
68817
|
FailStepSchema: () => FailStepSchema,
|
|
@@ -71456,8 +68973,8 @@ var init_src = __esm(() => {
|
|
|
71456
68973
|
init_legacy_boundary();
|
|
71457
68974
|
init_runtime_file_ref();
|
|
71458
68975
|
init_scoped_file_ref();
|
|
71459
|
-
|
|
71460
|
-
|
|
68976
|
+
init_processor();
|
|
68977
|
+
init_parser();
|
|
71461
68978
|
init_otel();
|
|
71462
68979
|
init_execution_row();
|
|
71463
68980
|
init_run_expand();
|
|
@@ -72372,7 +69889,7 @@ var require_foldFlowLines = __commonJS((exports) => {
|
|
|
72372
69889
|
else
|
|
72373
69890
|
end = lineWidth - indentAtStart;
|
|
72374
69891
|
}
|
|
72375
|
-
let
|
|
69892
|
+
let split2 = undefined;
|
|
72376
69893
|
let prev = undefined;
|
|
72377
69894
|
let overflow = false;
|
|
72378
69895
|
let i = -1;
|
|
@@ -72406,20 +69923,20 @@ var require_foldFlowLines = __commonJS((exports) => {
|
|
|
72406
69923
|
if (mode === FOLD_BLOCK)
|
|
72407
69924
|
i = consumeMoreIndentedLines(text, i, indent.length);
|
|
72408
69925
|
end = i + indent.length + endStep;
|
|
72409
|
-
|
|
69926
|
+
split2 = undefined;
|
|
72410
69927
|
} else {
|
|
72411
69928
|
if (ch === " " && prev && prev !== " " && prev !== `
|
|
72412
69929
|
` && prev !== "\t") {
|
|
72413
69930
|
const next = text[i + 1];
|
|
72414
69931
|
if (next && next !== " " && next !== `
|
|
72415
69932
|
` && next !== "\t")
|
|
72416
|
-
|
|
69933
|
+
split2 = i;
|
|
72417
69934
|
}
|
|
72418
69935
|
if (i >= end) {
|
|
72419
|
-
if (
|
|
72420
|
-
folds.push(
|
|
72421
|
-
end =
|
|
72422
|
-
|
|
69936
|
+
if (split2) {
|
|
69937
|
+
folds.push(split2);
|
|
69938
|
+
end = split2 + endStep;
|
|
69939
|
+
split2 = undefined;
|
|
72423
69940
|
} else if (mode === FOLD_QUOTED) {
|
|
72424
69941
|
while (prev === " " || prev === "\t") {
|
|
72425
69942
|
prev = ch;
|
|
@@ -72432,7 +69949,7 @@ var require_foldFlowLines = __commonJS((exports) => {
|
|
|
72432
69949
|
folds.push(j);
|
|
72433
69950
|
escapedFolds[j] = true;
|
|
72434
69951
|
end = j + endStep;
|
|
72435
|
-
|
|
69952
|
+
split2 = undefined;
|
|
72436
69953
|
} else {
|
|
72437
69954
|
overflow = true;
|
|
72438
69955
|
}
|
|
@@ -73066,7 +70583,7 @@ var require_merge = __commonJS((exports) => {
|
|
|
73066
70583
|
var identity = require_identity();
|
|
73067
70584
|
var Scalar = require_Scalar();
|
|
73068
70585
|
var MERGE_KEY = "<<";
|
|
73069
|
-
var
|
|
70586
|
+
var merge2 = {
|
|
73070
70587
|
identify: (value) => value === MERGE_KEY || typeof value === "symbol" && value.description === MERGE_KEY,
|
|
73071
70588
|
default: "key",
|
|
73072
70589
|
tag: "tag:yaml.org,2002:merge",
|
|
@@ -73076,7 +70593,7 @@ var require_merge = __commonJS((exports) => {
|
|
|
73076
70593
|
}),
|
|
73077
70594
|
stringify: () => MERGE_KEY
|
|
73078
70595
|
};
|
|
73079
|
-
var isMergeKey = (ctx, key) => (
|
|
70596
|
+
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);
|
|
73080
70597
|
function addMergeToJSMap(ctx, map2, value) {
|
|
73081
70598
|
const source = resolveAliasValue(ctx, value);
|
|
73082
70599
|
if (identity.isSeq(source))
|
|
@@ -73115,21 +70632,21 @@ var require_merge = __commonJS((exports) => {
|
|
|
73115
70632
|
}
|
|
73116
70633
|
exports.addMergeToJSMap = addMergeToJSMap;
|
|
73117
70634
|
exports.isMergeKey = isMergeKey;
|
|
73118
|
-
exports.merge =
|
|
70635
|
+
exports.merge = merge2;
|
|
73119
70636
|
});
|
|
73120
70637
|
|
|
73121
70638
|
// ../../node_modules/yaml/dist/nodes/addPairToJSMap.js
|
|
73122
70639
|
var require_addPairToJSMap = __commonJS((exports) => {
|
|
73123
70640
|
var log = require_log();
|
|
73124
|
-
var
|
|
70641
|
+
var merge2 = require_merge();
|
|
73125
70642
|
var stringify = require_stringify();
|
|
73126
70643
|
var identity = require_identity();
|
|
73127
70644
|
var toJS = require_toJS();
|
|
73128
70645
|
function addPairToJSMap(ctx, map2, { key, value }) {
|
|
73129
70646
|
if (identity.isNode(key) && key.addToJSMap)
|
|
73130
70647
|
key.addToJSMap(ctx, map2, value);
|
|
73131
|
-
else if (
|
|
73132
|
-
|
|
70648
|
+
else if (merge2.isMergeKey(ctx, key))
|
|
70649
|
+
merge2.addMergeToJSMap(ctx, map2, value);
|
|
73133
70650
|
else {
|
|
73134
70651
|
const jsKey = toJS.toJS(key, "", ctx);
|
|
73135
70652
|
if (map2 instanceof Map) {
|
|
@@ -74405,7 +71922,7 @@ var require_schema3 = __commonJS((exports) => {
|
|
|
74405
71922
|
var bool = require_bool2();
|
|
74406
71923
|
var float = require_float2();
|
|
74407
71924
|
var int2 = require_int2();
|
|
74408
|
-
var
|
|
71925
|
+
var merge2 = require_merge();
|
|
74409
71926
|
var omap = require_omap();
|
|
74410
71927
|
var pairs = require_pairs();
|
|
74411
71928
|
var set2 = require_set();
|
|
@@ -74425,7 +71942,7 @@ var require_schema3 = __commonJS((exports) => {
|
|
|
74425
71942
|
float.floatExp,
|
|
74426
71943
|
float.float,
|
|
74427
71944
|
binary.binary,
|
|
74428
|
-
|
|
71945
|
+
merge2.merge,
|
|
74429
71946
|
omap.omap,
|
|
74430
71947
|
pairs.pairs,
|
|
74431
71948
|
set2.set,
|
|
@@ -74448,7 +71965,7 @@ var require_tags = __commonJS((exports) => {
|
|
|
74448
71965
|
var schema = require_schema();
|
|
74449
71966
|
var schema$1 = require_schema2();
|
|
74450
71967
|
var binary = require_binary();
|
|
74451
|
-
var
|
|
71968
|
+
var merge2 = require_merge();
|
|
74452
71969
|
var omap = require_omap();
|
|
74453
71970
|
var pairs = require_pairs();
|
|
74454
71971
|
var schema$2 = require_schema3();
|
|
@@ -74473,7 +71990,7 @@ var require_tags = __commonJS((exports) => {
|
|
|
74473
71990
|
intOct: int2.intOct,
|
|
74474
71991
|
intTime: timestamp.intTime,
|
|
74475
71992
|
map: map2.map,
|
|
74476
|
-
merge:
|
|
71993
|
+
merge: merge2.merge,
|
|
74477
71994
|
null: _null4.nullTag,
|
|
74478
71995
|
omap: omap.omap,
|
|
74479
71996
|
pairs: pairs.pairs,
|
|
@@ -74483,7 +72000,7 @@ var require_tags = __commonJS((exports) => {
|
|
|
74483
72000
|
};
|
|
74484
72001
|
var coreKnownTags = {
|
|
74485
72002
|
"tag:yaml.org,2002:binary": binary.binary,
|
|
74486
|
-
"tag:yaml.org,2002:merge":
|
|
72003
|
+
"tag:yaml.org,2002:merge": merge2.merge,
|
|
74487
72004
|
"tag:yaml.org,2002:omap": omap.omap,
|
|
74488
72005
|
"tag:yaml.org,2002:pairs": pairs.pairs,
|
|
74489
72006
|
"tag:yaml.org,2002:set": set2.set,
|
|
@@ -74492,7 +72009,7 @@ var require_tags = __commonJS((exports) => {
|
|
|
74492
72009
|
function getTags(customTags, schemaName, addMergeTag) {
|
|
74493
72010
|
const schemaTags = schemas3.get(schemaName);
|
|
74494
72011
|
if (schemaTags && !customTags) {
|
|
74495
|
-
return addMergeTag && !schemaTags.includes(
|
|
72012
|
+
return addMergeTag && !schemaTags.includes(merge2.merge) ? schemaTags.concat(merge2.merge) : schemaTags.slice();
|
|
74496
72013
|
}
|
|
74497
72014
|
let tags = schemaTags;
|
|
74498
72015
|
if (!tags) {
|
|
@@ -74510,7 +72027,7 @@ var require_tags = __commonJS((exports) => {
|
|
|
74510
72027
|
tags = customTags(tags.slice());
|
|
74511
72028
|
}
|
|
74512
72029
|
if (addMergeTag)
|
|
74513
|
-
tags = tags.concat(
|
|
72030
|
+
tags = tags.concat(merge2.merge);
|
|
74514
72031
|
return tags.reduce((tags2, tag) => {
|
|
74515
72032
|
const tagObj = typeof tag === "string" ? tagsByName[tag] : tag;
|
|
74516
72033
|
if (!tagObj) {
|
|
@@ -74537,11 +72054,11 @@ var require_Schema = __commonJS((exports) => {
|
|
|
74537
72054
|
var sortMapEntriesByKey = (a, b) => a.key < b.key ? -1 : a.key > b.key ? 1 : 0;
|
|
74538
72055
|
|
|
74539
72056
|
class Schema {
|
|
74540
|
-
constructor({ compat: compat2, customTags, merge:
|
|
72057
|
+
constructor({ compat: compat2, customTags, merge: merge2, resolveKnownTags, schema, sortMapEntries, toStringDefaults }) {
|
|
74541
72058
|
this.compat = Array.isArray(compat2) ? tags.getTags(compat2, "compat") : compat2 ? tags.getTags(null, compat2) : null;
|
|
74542
72059
|
this.name = typeof schema === "string" && schema || "core";
|
|
74543
72060
|
this.knownTags = resolveKnownTags ? tags.coreKnownTags : {};
|
|
74544
|
-
this.tags = tags.getTags(customTags, this.name,
|
|
72061
|
+
this.tags = tags.getTags(customTags, this.name, merge2);
|
|
74545
72062
|
this.toStringOptions = toStringDefaults ?? null;
|
|
74546
72063
|
Object.defineProperty(this, identity.MAP, { value: map2.map });
|
|
74547
72064
|
Object.defineProperty(this, identity.SCALAR, { value: string4.string });
|
|
@@ -75764,13 +73281,13 @@ var require_resolve_block_scalar = __commonJS((exports) => {
|
|
|
75764
73281
|
return { mode, indent, chomp, comment, length };
|
|
75765
73282
|
}
|
|
75766
73283
|
function splitLines(source) {
|
|
75767
|
-
const
|
|
75768
|
-
const first =
|
|
73284
|
+
const split2 = source.split(/\n( *)/);
|
|
73285
|
+
const first = split2[0];
|
|
75769
73286
|
const m = first.match(/^( *)/);
|
|
75770
73287
|
const line0 = m?.[1] ? [m[1], first.slice(m[1].length)] : ["", first];
|
|
75771
73288
|
const lines = [line0];
|
|
75772
|
-
for (let i = 1;i <
|
|
75773
|
-
lines.push([
|
|
73289
|
+
for (let i = 1;i < split2.length; i += 2)
|
|
73290
|
+
lines.push([split2[i], split2[i + 1]]);
|
|
75774
73291
|
return lines;
|
|
75775
73292
|
}
|
|
75776
73293
|
exports.resolveBlockScalar = resolveBlockScalar;
|
|
@@ -78784,7 +76301,7 @@ var init_main = __esm(() => {
|
|
|
78784
76301
|
});
|
|
78785
76302
|
|
|
78786
76303
|
// ../../node_modules/sisteransi/src/index.js
|
|
78787
|
-
var
|
|
76304
|
+
var require_src = __commonJS((exports, module) => {
|
|
78788
76305
|
var ESC2 = "\x1B";
|
|
78789
76306
|
var CSI2 = `${ESC2}[`;
|
|
78790
76307
|
var beep = "\x07";
|
|
@@ -79127,7 +76644,7 @@ var import_sisteransi, G, K, h, Y, k, A = (r) => ("columns" in r) && typeof r.co
|
|
|
79127
76644
|
}, Q, X, Z, et, it, rt, nt, ot, ut, at, ht;
|
|
79128
76645
|
var init_dist3 = __esm(() => {
|
|
79129
76646
|
init_main();
|
|
79130
|
-
import_sisteransi = __toESM(
|
|
76647
|
+
import_sisteransi = __toESM(require_src(), 1);
|
|
79131
76648
|
G = ["up", "down", "left", "right", "space", "enter", "cancel"];
|
|
79132
76649
|
K = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
|
|
79133
76650
|
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)}` } } };
|
|
@@ -80470,7 +77987,7 @@ var init_dist4 = __esm(() => {
|
|
|
80470
77987
|
init_dist3();
|
|
80471
77988
|
init_main();
|
|
80472
77989
|
init_dist2();
|
|
80473
|
-
import_sisteransi2 = __toESM(
|
|
77990
|
+
import_sisteransi2 = __toESM(require_src(), 1);
|
|
80474
77991
|
tt2 = te();
|
|
80475
77992
|
_t = w2("◆", "*");
|
|
80476
77993
|
ot2 = w2("■", "x");
|
|
@@ -173962,7 +171479,7 @@ var require3, __filename2, __dirname2, __create2, __defProp3, __getOwnPropDesc,
|
|
|
173962
171479
|
__defProp3(to5, key2, { get: () => from[key2], enumerable: !(desc = __getOwnPropDesc(from, key2)) || desc.enumerable });
|
|
173963
171480
|
}
|
|
173964
171481
|
return to5;
|
|
173965
|
-
}, __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,
|
|
171482
|
+
}, __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 {
|
|
173966
171483
|
diff(oldStr, newStr, options8 = {}) {
|
|
173967
171484
|
let callback;
|
|
173968
171485
|
if (typeof options8 === "function") {
|
|
@@ -174984,7 +172501,7 @@ var init_prettier = __esm(() => {
|
|
|
174984
172501
|
};
|
|
174985
172502
|
}
|
|
174986
172503
|
});
|
|
174987
|
-
|
|
172504
|
+
require_utils2 = __commonJS2({
|
|
174988
172505
|
"node_modules/braces/lib/utils.js"(exports) {
|
|
174989
172506
|
exports.isInteger = (num) => {
|
|
174990
172507
|
if (typeof num === "number") {
|
|
@@ -175073,7 +172590,7 @@ var init_prettier = __esm(() => {
|
|
|
175073
172590
|
});
|
|
175074
172591
|
require_stringify2 = __commonJS2({
|
|
175075
172592
|
"node_modules/braces/lib/stringify.js"(exports, module) {
|
|
175076
|
-
var utils2 =
|
|
172593
|
+
var utils2 = require_utils2();
|
|
175077
172594
|
module.exports = (ast, options8 = {}) => {
|
|
175078
172595
|
const stringify2 = (node, parent = {}) => {
|
|
175079
172596
|
const invalidBlock = options8.escapeInvalid && utils2.isInvalidBrace(parent);
|
|
@@ -175527,7 +173044,7 @@ var init_prettier = __esm(() => {
|
|
|
175527
173044
|
require_compile2 = __commonJS2({
|
|
175528
173045
|
"node_modules/braces/lib/compile.js"(exports, module) {
|
|
175529
173046
|
var fill2 = require_fill_range();
|
|
175530
|
-
var utils2 =
|
|
173047
|
+
var utils2 = require_utils2();
|
|
175531
173048
|
var compile = (ast, options8 = {}) => {
|
|
175532
173049
|
const walk = (node, parent = {}) => {
|
|
175533
173050
|
const invalidBlock = utils2.isInvalidBrace(parent);
|
|
@@ -175577,7 +173094,7 @@ var init_prettier = __esm(() => {
|
|
|
175577
173094
|
"node_modules/braces/lib/expand.js"(exports, module) {
|
|
175578
173095
|
var fill2 = require_fill_range();
|
|
175579
173096
|
var stringify2 = require_stringify2();
|
|
175580
|
-
var utils2 =
|
|
173097
|
+
var utils2 = require_utils2();
|
|
175581
173098
|
var append = (queue = "", stash = "", enclose = false) => {
|
|
175582
173099
|
const result = [];
|
|
175583
173100
|
queue = [].concat(queue);
|
|
@@ -177776,8 +175293,8 @@ var init_prettier = __esm(() => {
|
|
|
177776
175293
|
var Stream = __require2("stream");
|
|
177777
175294
|
var PassThrough = Stream.PassThrough;
|
|
177778
175295
|
var slice = Array.prototype.slice;
|
|
177779
|
-
module.exports =
|
|
177780
|
-
function
|
|
175296
|
+
module.exports = merge2;
|
|
175297
|
+
function merge2() {
|
|
177781
175298
|
const streamsQueue = [];
|
|
177782
175299
|
const args = slice.call(arguments);
|
|
177783
175300
|
let merging = false;
|
|
@@ -177891,9 +175408,9 @@ var init_prettier = __esm(() => {
|
|
|
177891
175408
|
"node_modules/fast-glob/out/utils/stream.js"(exports) {
|
|
177892
175409
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
177893
175410
|
exports.merge = undefined;
|
|
177894
|
-
var
|
|
175411
|
+
var merge2 = require_merge2();
|
|
177895
175412
|
function merge3(streams) {
|
|
177896
|
-
const mergedStream =
|
|
175413
|
+
const mergedStream = merge2(streams);
|
|
177897
175414
|
streams.forEach((stream) => {
|
|
177898
175415
|
stream.once("error", (error52) => mergedStream.emit("error", error52));
|
|
177899
175416
|
});
|
|
@@ -177921,7 +175438,7 @@ var init_prettier = __esm(() => {
|
|
|
177921
175438
|
exports.isEmpty = isEmpty;
|
|
177922
175439
|
}
|
|
177923
175440
|
});
|
|
177924
|
-
|
|
175441
|
+
require_utils3 = __commonJS2({
|
|
177925
175442
|
"node_modules/fast-glob/out/utils/index.js"(exports) {
|
|
177926
175443
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
177927
175444
|
exports.string = exports.stream = exports.pattern = exports.path = exports.fs = exports.errno = exports.array = undefined;
|
|
@@ -177945,7 +175462,7 @@ var init_prettier = __esm(() => {
|
|
|
177945
175462
|
"node_modules/fast-glob/out/managers/tasks.js"(exports) {
|
|
177946
175463
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
177947
175464
|
exports.convertPatternGroupToTask = exports.convertPatternGroupsToTasks = exports.groupPatternsByBaseDirectory = exports.getNegativePatternsAsPositive = exports.getPositivePatterns = exports.convertPatternsToTasks = exports.generate = undefined;
|
|
177948
|
-
var utils2 =
|
|
175465
|
+
var utils2 = require_utils3();
|
|
177949
175466
|
function generate(input, settings) {
|
|
177950
175467
|
const patterns = processPatterns(input, settings);
|
|
177951
175468
|
const ignore = processPatterns(settings.ignore, settings);
|
|
@@ -178254,7 +175771,7 @@ var init_prettier = __esm(() => {
|
|
|
178254
175771
|
exports.createDirentFromStats = createDirentFromStats;
|
|
178255
175772
|
}
|
|
178256
175773
|
});
|
|
178257
|
-
|
|
175774
|
+
require_utils4 = __commonJS2({
|
|
178258
175775
|
"node_modules/@nodelib/fs.scandir/out/utils/index.js"(exports) {
|
|
178259
175776
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
178260
175777
|
exports.fs = undefined;
|
|
@@ -178282,7 +175799,7 @@ var init_prettier = __esm(() => {
|
|
|
178282
175799
|
var fsStat = require_out();
|
|
178283
175800
|
var rpl = require_run_parallel();
|
|
178284
175801
|
var constants_1 = require_constants3();
|
|
178285
|
-
var utils2 =
|
|
175802
|
+
var utils2 = require_utils4();
|
|
178286
175803
|
var common = require_common();
|
|
178287
175804
|
function read3(directory, settings, callback) {
|
|
178288
175805
|
if (!settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) {
|
|
@@ -178388,7 +175905,7 @@ var init_prettier = __esm(() => {
|
|
|
178388
175905
|
exports.readdir = exports.readdirWithFileTypes = exports.read = undefined;
|
|
178389
175906
|
var fsStat = require_out();
|
|
178390
175907
|
var constants_1 = require_constants3();
|
|
178391
|
-
var utils2 =
|
|
175908
|
+
var utils2 = require_utils4();
|
|
178392
175909
|
var common = require_common();
|
|
178393
175910
|
function read3(directory, settings) {
|
|
178394
175911
|
if (!settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) {
|
|
@@ -179168,7 +176685,7 @@ var init_prettier = __esm(() => {
|
|
|
179168
176685
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
179169
176686
|
var path15 = __require2("path");
|
|
179170
176687
|
var fsStat = require_out();
|
|
179171
|
-
var utils2 =
|
|
176688
|
+
var utils2 = require_utils3();
|
|
179172
176689
|
var Reader = class {
|
|
179173
176690
|
constructor(_settings) {
|
|
179174
176691
|
this._settings = _settings;
|
|
@@ -179292,7 +176809,7 @@ var init_prettier = __esm(() => {
|
|
|
179292
176809
|
require_matcher = __commonJS2({
|
|
179293
176810
|
"node_modules/fast-glob/out/providers/matchers/matcher.js"(exports) {
|
|
179294
176811
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
179295
|
-
var utils2 =
|
|
176812
|
+
var utils2 = require_utils3();
|
|
179296
176813
|
var Matcher = class {
|
|
179297
176814
|
constructor(_patterns, _settings, _micromatchOptions) {
|
|
179298
176815
|
this._patterns = _patterns;
|
|
@@ -179331,7 +176848,7 @@ var init_prettier = __esm(() => {
|
|
|
179331
176848
|
});
|
|
179332
176849
|
}
|
|
179333
176850
|
_splitSegmentsIntoSections(segments) {
|
|
179334
|
-
return utils2.array.splitWhen(segments, (
|
|
176851
|
+
return utils2.array.splitWhen(segments, (segment) => segment.dynamic && utils2.pattern.hasGlobStar(segment.pattern));
|
|
179335
176852
|
}
|
|
179336
176853
|
};
|
|
179337
176854
|
exports.default = Matcher;
|
|
@@ -179352,11 +176869,11 @@ var init_prettier = __esm(() => {
|
|
|
179352
176869
|
return true;
|
|
179353
176870
|
}
|
|
179354
176871
|
const match = parts.every((part, index) => {
|
|
179355
|
-
const
|
|
179356
|
-
if (
|
|
176872
|
+
const segment = pattern.segments[index];
|
|
176873
|
+
if (segment.dynamic && segment.patternRe.test(part)) {
|
|
179357
176874
|
return true;
|
|
179358
176875
|
}
|
|
179359
|
-
if (!
|
|
176876
|
+
if (!segment.dynamic && segment.pattern === part) {
|
|
179360
176877
|
return true;
|
|
179361
176878
|
}
|
|
179362
176879
|
return false;
|
|
@@ -179374,7 +176891,7 @@ var init_prettier = __esm(() => {
|
|
|
179374
176891
|
require_deep = __commonJS2({
|
|
179375
176892
|
"node_modules/fast-glob/out/providers/filters/deep.js"(exports) {
|
|
179376
176893
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
179377
|
-
var utils2 =
|
|
176894
|
+
var utils2 = require_utils3();
|
|
179378
176895
|
var partial_1 = require_partial();
|
|
179379
176896
|
var DeepFilter = class {
|
|
179380
176897
|
constructor(_settings, _micromatchOptions) {
|
|
@@ -179436,7 +176953,7 @@ var init_prettier = __esm(() => {
|
|
|
179436
176953
|
require_entry = __commonJS2({
|
|
179437
176954
|
"node_modules/fast-glob/out/providers/filters/entry.js"(exports) {
|
|
179438
176955
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
179439
|
-
var utils2 =
|
|
176956
|
+
var utils2 = require_utils3();
|
|
179440
176957
|
var EntryFilter = class {
|
|
179441
176958
|
constructor(_settings, _micromatchOptions) {
|
|
179442
176959
|
this._settings = _settings;
|
|
@@ -179521,7 +177038,7 @@ var init_prettier = __esm(() => {
|
|
|
179521
177038
|
require_error2 = __commonJS2({
|
|
179522
177039
|
"node_modules/fast-glob/out/providers/filters/error.js"(exports) {
|
|
179523
177040
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
179524
|
-
var utils2 =
|
|
177041
|
+
var utils2 = require_utils3();
|
|
179525
177042
|
var ErrorFilter = class {
|
|
179526
177043
|
constructor(_settings) {
|
|
179527
177044
|
this._settings = _settings;
|
|
@@ -179539,7 +177056,7 @@ var init_prettier = __esm(() => {
|
|
|
179539
177056
|
require_entry2 = __commonJS2({
|
|
179540
177057
|
"node_modules/fast-glob/out/providers/transformers/entry.js"(exports) {
|
|
179541
177058
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
179542
|
-
var utils2 =
|
|
177059
|
+
var utils2 = require_utils3();
|
|
179543
177060
|
var EntryTransformer = class {
|
|
179544
177061
|
constructor(_settings) {
|
|
179545
177062
|
this._settings = _settings;
|
|
@@ -179807,7 +177324,7 @@ var init_prettier = __esm(() => {
|
|
|
179807
177324
|
var stream_1 = require_stream4();
|
|
179808
177325
|
var sync_1 = require_sync6();
|
|
179809
177326
|
var settings_1 = require_settings4();
|
|
179810
|
-
var utils2 =
|
|
177327
|
+
var utils2 = require_utils3();
|
|
179811
177328
|
async function FastGlob(source2, options8) {
|
|
179812
177329
|
assertPatternsInput(source2);
|
|
179813
177330
|
const works = getWorks(source2, async_1.default, options8);
|
|
@@ -180125,7 +177642,7 @@ var init_prettier = __esm(() => {
|
|
|
180125
177642
|
};
|
|
180126
177643
|
}
|
|
180127
177644
|
});
|
|
180128
|
-
|
|
177645
|
+
require_semver = __commonJS2({
|
|
180129
177646
|
"node_modules/semver/classes/semver.js"(exports, module) {
|
|
180130
177647
|
var debug = require_debug();
|
|
180131
177648
|
var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants4();
|
|
@@ -180395,7 +177912,7 @@ var init_prettier = __esm(() => {
|
|
|
180395
177912
|
});
|
|
180396
177913
|
require_compare = __commonJS2({
|
|
180397
177914
|
"node_modules/semver/functions/compare.js"(exports, module) {
|
|
180398
|
-
var SemVer =
|
|
177915
|
+
var SemVer = require_semver();
|
|
180399
177916
|
var compare = (a5, b8, loose) => new SemVer(a5, loose).compare(new SemVer(b8, loose));
|
|
180400
177917
|
module.exports = compare;
|
|
180401
177918
|
}
|
|
@@ -182128,7 +179645,7 @@ globstar while`, file2, fr10, pattern, pr8, swallowee);
|
|
|
182128
179645
|
};
|
|
182129
179646
|
}
|
|
182130
179647
|
});
|
|
182131
|
-
|
|
179648
|
+
require_src2 = __commonJS2({
|
|
182132
179649
|
"node_modules/editorconfig/src/index.js"(exports) {
|
|
182133
179650
|
var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P9, generator) {
|
|
182134
179651
|
return new (P9 || (P9 = Promise))(function(resolve3, reject) {
|
|
@@ -183591,7 +181108,7 @@ globstar while`, file2, fr10, pattern, pr8, swallowee);
|
|
|
183591
181108
|
mockable_default = mockable.mocked;
|
|
183592
181109
|
import_micromatch = __toESM2(require_micromatch(), 1);
|
|
183593
181110
|
partition_default = partition2;
|
|
183594
|
-
import_editorconfig = __toESM2(
|
|
181111
|
+
import_editorconfig = __toESM2(require_src2(), 1);
|
|
183595
181112
|
iterate_directory_up_default = iterateDirectoryUp;
|
|
183596
181113
|
FileSearcher = class extends Searcher {
|
|
183597
181114
|
findInDirectory = findFile;
|
|
@@ -186187,7 +183704,7 @@ import { fileURLToPath as fileURLToPath9 } from "url";
|
|
|
186187
183704
|
// package.json
|
|
186188
183705
|
var package_default = {
|
|
186189
183706
|
name: "@eigenpal/cli",
|
|
186190
|
-
version: "0.10.
|
|
183707
|
+
version: "0.10.34",
|
|
186191
183708
|
description: "Eigenpal CLI — author and run document workflows from your terminal. Agent-ready.",
|
|
186192
183709
|
keywords: [
|
|
186193
183710
|
"eigenpal",
|
|
@@ -187702,7 +185219,7 @@ async function pushCurrentBranch(input) {
|
|
|
187702
185219
|
function slugifyPackageSegment(value) {
|
|
187703
185220
|
return value.trim().toLowerCase().replace(/[^a-z0-9_-]+/g, "-").replace(/^-+|-+$/g, "");
|
|
187704
185221
|
}
|
|
187705
|
-
function packagePathForTemplate(
|
|
185222
|
+
function packagePathForTemplate(template, name) {
|
|
187706
185223
|
const slug = slugifyPackageSegment(name);
|
|
187707
185224
|
if (!slug)
|
|
187708
185225
|
throw new Error("Package name must include at least one letter or number.");
|
|
@@ -187714,7 +185231,7 @@ function packagePathForTemplate(template2, name) {
|
|
|
187714
185231
|
knowledge: "resources/knowledge",
|
|
187715
185232
|
evaluator: "evaluators"
|
|
187716
185233
|
};
|
|
187717
|
-
const root = rootByTemplate[
|
|
185234
|
+
const root = rootByTemplate[template];
|
|
187718
185235
|
if (!root)
|
|
187719
185236
|
throw new Error("Template must be agent, workflow, skill, rule, knowledge, or evaluator.");
|
|
187720
185237
|
return SourcePackagePathSchema.parse(`${root}/${slug}`);
|
|
@@ -188145,12 +185662,12 @@ function archivePackage(input) {
|
|
|
188145
185662
|
runGit(["archive", "--format=tar", `--output=${tarPath}`, input.ref, input.packagePath], {
|
|
188146
185663
|
cwd: input.gitRoot
|
|
188147
185664
|
});
|
|
188148
|
-
const
|
|
185665
|
+
const extract = spawnSync3("tar", ["-xf", tarPath, "--strip-components", String(input.packagePath.split("/").length)], {
|
|
188149
185666
|
cwd: input.outDir,
|
|
188150
185667
|
encoding: "utf8"
|
|
188151
185668
|
});
|
|
188152
|
-
if (
|
|
188153
|
-
throw new Error(
|
|
185669
|
+
if (extract.status !== 0)
|
|
185670
|
+
throw new Error(extract.stderr.trim() || "tar extraction failed");
|
|
188154
185671
|
} finally {
|
|
188155
185672
|
rmSync(path5.dirname(tarPath), { recursive: true, force: true });
|
|
188156
185673
|
}
|
|
@@ -188179,12 +185696,12 @@ async function tryHostedArchive(input) {
|
|
|
188179
185696
|
const tarPath = path5.join(mkdtempSyncCompat("eigenpal-hosted-source-"), "package.tar");
|
|
188180
185697
|
try {
|
|
188181
185698
|
writeFileSync4(tarPath, Buffer.from(await response.arrayBuffer()));
|
|
188182
|
-
const
|
|
185699
|
+
const extract = spawnSync3("tar", ["-xf", tarPath, "--strip-components", String(input.packagePath.split("/").length)], {
|
|
188183
185700
|
cwd: input.outDir,
|
|
188184
185701
|
encoding: "utf8"
|
|
188185
185702
|
});
|
|
188186
|
-
if (
|
|
188187
|
-
throw new Error(
|
|
185703
|
+
if (extract.status !== 0)
|
|
185704
|
+
throw new Error(extract.stderr.trim() || "tar extraction failed");
|
|
188188
185705
|
return true;
|
|
188189
185706
|
} finally {
|
|
188190
185707
|
rmSync(path5.dirname(tarPath), { recursive: true, force: true });
|
|
@@ -193165,18 +190682,18 @@ async function init(name, opts) {
|
|
|
193165
190682
|
if (existsSync13(target) && readdirSync4(target).length > 0) {
|
|
193166
190683
|
throw new Error(`Target directory ${relative2(process.cwd(), target)} exists and is not empty.`);
|
|
193167
190684
|
}
|
|
193168
|
-
let
|
|
190685
|
+
let template;
|
|
193169
190686
|
if (opts.template) {
|
|
193170
190687
|
if (!isTemplateName(opts.template)) {
|
|
193171
190688
|
throw new Error(`Unknown template "${opts.template}". Available: ${TEMPLATE_NAMES.join(", ")}.`);
|
|
193172
190689
|
}
|
|
193173
|
-
|
|
190690
|
+
template = opts.template;
|
|
193174
190691
|
} else if (opts.yes || !process.stdin.isTTY) {
|
|
193175
|
-
|
|
190692
|
+
template = "blank";
|
|
193176
190693
|
} else {
|
|
193177
|
-
|
|
190694
|
+
template = await promptForTemplate();
|
|
193178
190695
|
}
|
|
193179
|
-
const sourceRoot = join7(resolveTemplatesRoot(),
|
|
190696
|
+
const sourceRoot = join7(resolveTemplatesRoot(), template);
|
|
193180
190697
|
if (!existsSync13(sourceRoot)) {
|
|
193181
190698
|
throw new Error(`Template directory missing on disk: ${sourceRoot}`);
|
|
193182
190699
|
}
|