@eigenpal/cli 0.5.1 → 0.5.3
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 +202 -81
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -67182,72 +67182,6 @@ var init_workflow = __esm(() => {
|
|
|
67182
67182
|
});
|
|
67183
67183
|
});
|
|
67184
67184
|
|
|
67185
|
-
// ../types/src/workflow/eval-config.ts
|
|
67186
|
-
function parseEvalConfig(raw) {
|
|
67187
|
-
return EvalConfigSchema.parse(raw ?? {});
|
|
67188
|
-
}
|
|
67189
|
-
function parseEvalConfigForForm(raw) {
|
|
67190
|
-
return EvalConfigFormSchema.parse(raw ?? {});
|
|
67191
|
-
}
|
|
67192
|
-
function isValidJudgeModel(model) {
|
|
67193
|
-
return JUDGE_MODEL_IDS.includes(model);
|
|
67194
|
-
}
|
|
67195
|
-
function resolveConcurrency(value, defaultNum) {
|
|
67196
|
-
const clamp = (n) => Math.min(MAX_CONCURRENCY, Math.max(1, n));
|
|
67197
|
-
if (value == null) {
|
|
67198
|
-
const d2 = clamp(defaultNum);
|
|
67199
|
-
return { executions: d2, judge: d2 };
|
|
67200
|
-
}
|
|
67201
|
-
if (typeof value === "number") {
|
|
67202
|
-
const d2 = clamp(value);
|
|
67203
|
-
return { executions: d2, judge: d2 };
|
|
67204
|
-
}
|
|
67205
|
-
return {
|
|
67206
|
-
executions: clamp(value.executions ?? defaultNum),
|
|
67207
|
-
judge: clamp(value.judge ?? defaultNum)
|
|
67208
|
-
};
|
|
67209
|
-
}
|
|
67210
|
-
var JUDGE_MODEL_IDS, JudgeModelSchema, DEFAULT_JUDGE_MODEL = "gpt-5.2", DEFAULT_CONCURRENCY = 3, ConcurrencySchema, JudgeConfigSchema, JudgeConfigFormSchema, EvalConfigSchema, EvalConfigFormSchema, MAX_CONCURRENCY = 50, EVAL_CONFIG_FORM_KEYS, EVAL_CONFIG_FIELD_DEFINITIONS;
|
|
67211
|
-
var init_eval_config = __esm(() => {
|
|
67212
|
-
init_zod();
|
|
67213
|
-
JUDGE_MODEL_IDS = ["gpt-4o", "gpt-4o-mini", "gpt-5.2"];
|
|
67214
|
-
JudgeModelSchema = exports_external.enum(JUDGE_MODEL_IDS);
|
|
67215
|
-
ConcurrencySchema = exports_external.union([
|
|
67216
|
-
exports_external.number().int().min(1),
|
|
67217
|
-
exports_external.object({
|
|
67218
|
-
executions: exports_external.number().int().min(1),
|
|
67219
|
-
judge: exports_external.number().int().min(1)
|
|
67220
|
-
})
|
|
67221
|
-
]);
|
|
67222
|
-
JudgeConfigSchema = exports_external.object({
|
|
67223
|
-
prompt: exports_external.string().default(""),
|
|
67224
|
-
model: JudgeModelSchema.default(DEFAULT_JUDGE_MODEL),
|
|
67225
|
-
run: exports_external.boolean().default(true)
|
|
67226
|
-
});
|
|
67227
|
-
JudgeConfigFormSchema = exports_external.object({
|
|
67228
|
-
prompt: exports_external.string().default(""),
|
|
67229
|
-
model: exports_external.string().default(DEFAULT_JUDGE_MODEL),
|
|
67230
|
-
run: exports_external.boolean().default(true)
|
|
67231
|
-
});
|
|
67232
|
-
EvalConfigSchema = exports_external.object({
|
|
67233
|
-
concurrency: ConcurrencySchema.default(DEFAULT_CONCURRENCY),
|
|
67234
|
-
judge: JudgeConfigSchema.prefault({}),
|
|
67235
|
-
defaultOverrides: exports_external.array(exports_external.string()).default([])
|
|
67236
|
-
});
|
|
67237
|
-
EvalConfigFormSchema = exports_external.object({
|
|
67238
|
-
concurrency: ConcurrencySchema.default(DEFAULT_CONCURRENCY),
|
|
67239
|
-
judge: JudgeConfigFormSchema.prefault({}),
|
|
67240
|
-
defaultOverrides: exports_external.array(exports_external.string()).default([])
|
|
67241
|
-
});
|
|
67242
|
-
EVAL_CONFIG_FORM_KEYS = ["judge"];
|
|
67243
|
-
EVAL_CONFIG_FIELD_DEFINITIONS = {
|
|
67244
|
-
judge: {
|
|
67245
|
-
label: "AI review",
|
|
67246
|
-
description: "Optional automated check: an AI compares each run to the expected result using your instructions."
|
|
67247
|
-
}
|
|
67248
|
-
};
|
|
67249
|
-
});
|
|
67250
|
-
|
|
67251
67185
|
// ../types/src/workflow/expected-output.ts
|
|
67252
67186
|
var ExpectedDocumentRefSchema, ExpectedDocumentsValueSchema, ExpectedOutputSchema, ExpectedOutputFilesSchema;
|
|
67253
67187
|
var init_expected_output = __esm(() => {
|
|
@@ -67464,7 +67398,6 @@ var init_workflow2 = __esm(() => {
|
|
|
67464
67398
|
init_actions();
|
|
67465
67399
|
init_steps();
|
|
67466
67400
|
init_workflow();
|
|
67467
|
-
init_eval_config();
|
|
67468
67401
|
init_expected_output();
|
|
67469
67402
|
init_local_meta();
|
|
67470
67403
|
init_email_trigger();
|
|
@@ -68079,6 +68012,180 @@ var init_eval = __esm(() => {
|
|
|
68079
68012
|
init_workflow_tool_metadata();
|
|
68080
68013
|
});
|
|
68081
68014
|
|
|
68015
|
+
// ../types/src/git-source/grammar.ts
|
|
68016
|
+
function pathToDottedPackageName(path2) {
|
|
68017
|
+
const parsed = SourcePackagePathSchema.parse(path2);
|
|
68018
|
+
return DottedPackageNameSchema.parse(parsed.split("/").join("."));
|
|
68019
|
+
}
|
|
68020
|
+
function dottedPackageNameToPath(name) {
|
|
68021
|
+
const parsed = DottedPackageNameSchema.parse(name);
|
|
68022
|
+
return SourcePackagePathSchema.parse(parsed.split(".").join("/"));
|
|
68023
|
+
}
|
|
68024
|
+
function formatReleaseTag(name, version2) {
|
|
68025
|
+
return ReleaseTagSchema.parse(`${DottedPackageNameSchema.parse(name)}@${version2}`);
|
|
68026
|
+
}
|
|
68027
|
+
function parseReleaseTag(tag) {
|
|
68028
|
+
const parsed = ReleaseTagSchema.parse(tag);
|
|
68029
|
+
const [packageName, version2] = parsed.split("@");
|
|
68030
|
+
return {
|
|
68031
|
+
packageName: DottedPackageNameSchema.parse(packageName),
|
|
68032
|
+
packagePath: dottedPackageNameToPath(packageName),
|
|
68033
|
+
version: version2
|
|
68034
|
+
};
|
|
68035
|
+
}
|
|
68036
|
+
var SOURCE_PACKAGE_SEGMENT_PATTERN, SOURCE_COMMIT_SHA_PATTERN, SOURCE_SEMVER_PATTERN, SOURCE_VERSION_RANGE_PATTERN, SourcePackageSegmentSchema, SourcePackageTypeSchema, SourcePackagePathSchema, DottedPackageNameSchema, SourceVersionRefSchema, ReleaseTagSchema, WorkspaceDependencySchema, AutomationTargetSchema;
|
|
68037
|
+
var init_grammar = __esm(() => {
|
|
68038
|
+
init_zod();
|
|
68039
|
+
SOURCE_PACKAGE_SEGMENT_PATTERN = /^[a-z0-9][a-z0-9-]*$/;
|
|
68040
|
+
SOURCE_COMMIT_SHA_PATTERN = /^[0-9a-f]{40}$/;
|
|
68041
|
+
SOURCE_SEMVER_PATTERN = /^[0-9]+\.[0-9]+\.[0-9]+$/;
|
|
68042
|
+
SOURCE_VERSION_RANGE_PATTERN = /^[0-9]+(?:\.[0-9]+)?\.(?:x|\*)$/;
|
|
68043
|
+
SourcePackageSegmentSchema = exports_external.string().regex(SOURCE_PACKAGE_SEGMENT_PATTERN, "Use lowercase letters, numbers, and dashes");
|
|
68044
|
+
SourcePackageTypeSchema = exports_external.enum(["agents", "workflows", "resources", "evaluators"]);
|
|
68045
|
+
SourcePackagePathSchema = exports_external.string().superRefine((value, ctx) => {
|
|
68046
|
+
const parts = value.split("/");
|
|
68047
|
+
if (parts.length < 2) {
|
|
68048
|
+
ctx.addIssue({
|
|
68049
|
+
code: "custom",
|
|
68050
|
+
message: "Package path must include a root and at least one segment"
|
|
68051
|
+
});
|
|
68052
|
+
return;
|
|
68053
|
+
}
|
|
68054
|
+
if (!SourcePackageTypeSchema.safeParse(parts[0]).success) {
|
|
68055
|
+
ctx.addIssue({ code: "custom", message: `Invalid package root: ${parts[0]}` });
|
|
68056
|
+
}
|
|
68057
|
+
for (const segment of parts.slice(1)) {
|
|
68058
|
+
if (!SourcePackageSegmentSchema.safeParse(segment).success) {
|
|
68059
|
+
ctx.addIssue({ code: "custom", message: `Invalid package segment: ${segment}` });
|
|
68060
|
+
}
|
|
68061
|
+
}
|
|
68062
|
+
});
|
|
68063
|
+
DottedPackageNameSchema = exports_external.string().superRefine((value, ctx) => {
|
|
68064
|
+
const parts = value.split(".");
|
|
68065
|
+
if (parts.length < 2) {
|
|
68066
|
+
ctx.addIssue({
|
|
68067
|
+
code: "custom",
|
|
68068
|
+
message: "Dotted package name must include a root and at least one segment"
|
|
68069
|
+
});
|
|
68070
|
+
return;
|
|
68071
|
+
}
|
|
68072
|
+
if (!SourcePackageTypeSchema.safeParse(parts[0]).success) {
|
|
68073
|
+
ctx.addIssue({ code: "custom", message: `Invalid package root: ${parts[0]}` });
|
|
68074
|
+
}
|
|
68075
|
+
for (const segment of parts.slice(1)) {
|
|
68076
|
+
if (!SourcePackageSegmentSchema.safeParse(segment).success) {
|
|
68077
|
+
ctx.addIssue({ code: "custom", message: `Invalid package segment: ${segment}` });
|
|
68078
|
+
}
|
|
68079
|
+
}
|
|
68080
|
+
});
|
|
68081
|
+
SourceVersionRefSchema = exports_external.union([
|
|
68082
|
+
exports_external.literal("latest"),
|
|
68083
|
+
exports_external.literal("main"),
|
|
68084
|
+
exports_external.string().regex(SOURCE_SEMVER_PATTERN),
|
|
68085
|
+
exports_external.string().regex(SOURCE_VERSION_RANGE_PATTERN),
|
|
68086
|
+
exports_external.string().regex(SOURCE_COMMIT_SHA_PATTERN)
|
|
68087
|
+
]);
|
|
68088
|
+
ReleaseTagSchema = exports_external.string().superRefine((value, ctx) => {
|
|
68089
|
+
const [name, version2, extra] = value.split("@");
|
|
68090
|
+
if (!name || !version2 || extra !== undefined) {
|
|
68091
|
+
ctx.addIssue({ code: "custom", message: "Release tags must be <package>@<X.Y.Z>" });
|
|
68092
|
+
return;
|
|
68093
|
+
}
|
|
68094
|
+
if (!DottedPackageNameSchema.safeParse(name).success) {
|
|
68095
|
+
ctx.addIssue({ code: "custom", message: `Invalid package name: ${name}` });
|
|
68096
|
+
}
|
|
68097
|
+
if (!SOURCE_SEMVER_PATTERN.test(version2)) {
|
|
68098
|
+
ctx.addIssue({ code: "custom", message: `Invalid release version: ${version2}` });
|
|
68099
|
+
}
|
|
68100
|
+
});
|
|
68101
|
+
WorkspaceDependencySchema = exports_external.string().superRefine((value, ctx) => {
|
|
68102
|
+
if (!value.startsWith("workspace:")) {
|
|
68103
|
+
ctx.addIssue({ code: "custom", message: "Workspace dependencies must start with workspace:" });
|
|
68104
|
+
return;
|
|
68105
|
+
}
|
|
68106
|
+
const ref = value.slice("workspace:".length);
|
|
68107
|
+
const [name, version2, extra] = ref.split("@");
|
|
68108
|
+
if (!name || !version2 || extra !== undefined) {
|
|
68109
|
+
ctx.addIssue({
|
|
68110
|
+
code: "custom",
|
|
68111
|
+
message: "Workspace dependencies must be workspace:<package>@<X.Y.Z>"
|
|
68112
|
+
});
|
|
68113
|
+
return;
|
|
68114
|
+
}
|
|
68115
|
+
if (!DottedPackageNameSchema.safeParse(name).success) {
|
|
68116
|
+
ctx.addIssue({ code: "custom", message: `Invalid dependency package: ${name}` });
|
|
68117
|
+
}
|
|
68118
|
+
if (!SOURCE_SEMVER_PATTERN.test(version2)) {
|
|
68119
|
+
ctx.addIssue({ code: "custom", message: `Invalid dependency version: ${version2}` });
|
|
68120
|
+
}
|
|
68121
|
+
});
|
|
68122
|
+
AutomationTargetSchema = exports_external.string().superRefine((value, ctx) => {
|
|
68123
|
+
const [target, ref, extra] = value.split("@");
|
|
68124
|
+
if (!target || extra !== undefined) {
|
|
68125
|
+
ctx.addIssue({ code: "custom", message: "Automation target must be <package>[@ref]" });
|
|
68126
|
+
return;
|
|
68127
|
+
}
|
|
68128
|
+
if (!DottedPackageNameSchema.safeParse(target).success) {
|
|
68129
|
+
ctx.addIssue({ code: "custom", message: `Invalid automation target: ${target}` });
|
|
68130
|
+
}
|
|
68131
|
+
if (ref && !SourceVersionRefSchema.safeParse(ref).success) {
|
|
68132
|
+
ctx.addIssue({ code: "custom", message: `Invalid automation ref: ${ref}` });
|
|
68133
|
+
}
|
|
68134
|
+
});
|
|
68135
|
+
});
|
|
68136
|
+
|
|
68137
|
+
// ../types/src/git-source/manifests.ts
|
|
68138
|
+
var SourceManifestSchemaVersionSchema, DependencyMapSchema, TriggerConfigSchema, CommonPackageManifestFields, RootSourceManifestSchema, AgentPackageManifestSchema, WorkflowPackageManifestSchema, SharedResourcePackageManifestSchema, EvaluatorPackageManifestSchema, SourcePackageManifestSchema;
|
|
68139
|
+
var init_manifests = __esm(() => {
|
|
68140
|
+
init_zod();
|
|
68141
|
+
init_grammar();
|
|
68142
|
+
SourceManifestSchemaVersionSchema = exports_external.literal(1);
|
|
68143
|
+
DependencyMapSchema = exports_external.record(SourcePackageSegmentSchema, WorkspaceDependencySchema);
|
|
68144
|
+
TriggerConfigSchema = exports_external.object({
|
|
68145
|
+
api: exports_external.boolean().optional(),
|
|
68146
|
+
email: exports_external.object({
|
|
68147
|
+
enabled: exports_external.boolean().default(true),
|
|
68148
|
+
aliases: exports_external.array(exports_external.string().email()).default([])
|
|
68149
|
+
}).strict().optional()
|
|
68150
|
+
}).strict();
|
|
68151
|
+
CommonPackageManifestFields = {
|
|
68152
|
+
schemaVersion: SourceManifestSchemaVersionSchema,
|
|
68153
|
+
name: exports_external.string().min(1),
|
|
68154
|
+
description: exports_external.string().optional()
|
|
68155
|
+
};
|
|
68156
|
+
RootSourceManifestSchema = exports_external.object({
|
|
68157
|
+
schemaVersion: SourceManifestSchemaVersionSchema,
|
|
68158
|
+
eigenpalVersion: exports_external.string().min(1)
|
|
68159
|
+
}).strict();
|
|
68160
|
+
AgentPackageManifestSchema = exports_external.object({
|
|
68161
|
+
...CommonPackageManifestFields,
|
|
68162
|
+
model: exports_external.string().optional(),
|
|
68163
|
+
triggers: TriggerConfigSchema.optional(),
|
|
68164
|
+
dependencies: DependencyMapSchema.optional(),
|
|
68165
|
+
evaluators: exports_external.array(exports_external.string().min(1)).optional()
|
|
68166
|
+
}).strict();
|
|
68167
|
+
WorkflowPackageManifestSchema = exports_external.object({
|
|
68168
|
+
...CommonPackageManifestFields,
|
|
68169
|
+
triggers: TriggerConfigSchema.optional(),
|
|
68170
|
+
dependencies: DependencyMapSchema.optional(),
|
|
68171
|
+
evaluators: exports_external.array(exports_external.string().min(1)).optional()
|
|
68172
|
+
}).strict();
|
|
68173
|
+
SharedResourcePackageManifestSchema = exports_external.object(CommonPackageManifestFields).strict();
|
|
68174
|
+
EvaluatorPackageManifestSchema = exports_external.object(CommonPackageManifestFields).strict();
|
|
68175
|
+
SourcePackageManifestSchema = exports_external.union([
|
|
68176
|
+
AgentPackageManifestSchema,
|
|
68177
|
+
WorkflowPackageManifestSchema,
|
|
68178
|
+
SharedResourcePackageManifestSchema,
|
|
68179
|
+
EvaluatorPackageManifestSchema
|
|
68180
|
+
]);
|
|
68181
|
+
});
|
|
68182
|
+
|
|
68183
|
+
// ../types/src/git-source/index.ts
|
|
68184
|
+
var init_git_source = __esm(() => {
|
|
68185
|
+
init_grammar();
|
|
68186
|
+
init_manifests();
|
|
68187
|
+
});
|
|
68188
|
+
|
|
68082
68189
|
// ../types/src/storage/paths.ts
|
|
68083
68190
|
function seg(name, value) {
|
|
68084
68191
|
if (!value || !SEGMENT_RX.test(value)) {
|
|
@@ -68378,12 +68485,11 @@ __export(exports_src, {
|
|
|
68378
68485
|
runInputKey: () => runInputKey,
|
|
68379
68486
|
rootS3Path: () => rootS3Path,
|
|
68380
68487
|
resolveEffectiveMimeType: () => resolveEffectiveMimeType,
|
|
68381
|
-
resolveConcurrency: () => resolveConcurrency,
|
|
68382
68488
|
requiresSpecializedParser: () => requiresSpecializedParser,
|
|
68489
|
+
pathToDottedPackageName: () => pathToDottedPackageName,
|
|
68383
68490
|
parseStepType: () => parseStepType,
|
|
68491
|
+
parseReleaseTag: () => parseReleaseTag,
|
|
68384
68492
|
parseFileKey: () => parseFileKey,
|
|
68385
|
-
parseEvalConfigForForm: () => parseEvalConfigForForm,
|
|
68386
|
-
parseEvalConfig: () => parseEvalConfig,
|
|
68387
68493
|
noopTracingContext: () => noopTracingContext,
|
|
68388
68494
|
mapOCRAttributes: () => mapOCRAttributes,
|
|
68389
68495
|
mapLLMAttributes: () => mapLLMAttributes,
|
|
@@ -68393,7 +68499,6 @@ __export(exports_src, {
|
|
|
68393
68499
|
judgeScoreJson: () => judgeScoreJson,
|
|
68394
68500
|
judgeLabelJson: () => judgeLabelJson,
|
|
68395
68501
|
isWorkflowResult: () => isWorkflowResult,
|
|
68396
|
-
isValidJudgeModel: () => isValidJudgeModel,
|
|
68397
68502
|
isTerminalExecutionStatus: () => isTerminalExecutionStatus,
|
|
68398
68503
|
isStepCategory: () => isStepCategory,
|
|
68399
68504
|
isOutputSchemaUnknown: () => isOutputSchemaUnknown,
|
|
@@ -68419,6 +68524,7 @@ __export(exports_src, {
|
|
|
68419
68524
|
getActualDataFromResult: () => getActualDataFromResult,
|
|
68420
68525
|
generateId: () => generateId,
|
|
68421
68526
|
formatZodError: () => formatZodError,
|
|
68527
|
+
formatReleaseTag: () => formatReleaseTag,
|
|
68422
68528
|
formatDiffValue: () => formatDiffValue,
|
|
68423
68529
|
fileFieldNamesFromJsonSchema: () => fileFieldNamesFromJsonSchema,
|
|
68424
68530
|
fieldStemFromGoldenName: () => fieldStemFromGoldenName,
|
|
@@ -68427,6 +68533,7 @@ __export(exports_src, {
|
|
|
68427
68533
|
evalInputKey: () => evalInputKey,
|
|
68428
68534
|
evalExpectedKey: () => evalExpectedKey,
|
|
68429
68535
|
errorHintFor: () => errorHintFor,
|
|
68536
|
+
dottedPackageNameToPath: () => dottedPackageNameToPath,
|
|
68430
68537
|
defaultScriptFunction: () => defaultScriptFunction,
|
|
68431
68538
|
defaultScoreFunction: () => defaultScoreFunction,
|
|
68432
68539
|
convertTsTypeToJsonSchema: () => convertTsTypeToJsonSchema,
|
|
@@ -68442,8 +68549,10 @@ __export(exports_src, {
|
|
|
68442
68549
|
XlsxToJsonOutputSchema: () => XlsxToJsonOutputSchema,
|
|
68443
68550
|
XlsxToJsonInputSchema: () => XlsxToJsonInputSchema,
|
|
68444
68551
|
XlsxToJsonConfigSchema: () => XlsxToJsonConfigSchema,
|
|
68552
|
+
WorkspaceDependencySchema: () => WorkspaceDependencySchema,
|
|
68445
68553
|
WorkflowSettingsSchema: () => WorkflowSettingsSchema,
|
|
68446
68554
|
WorkflowResultSchema: () => WorkflowResultSchema,
|
|
68555
|
+
WorkflowPackageManifestSchema: () => WorkflowPackageManifestSchema,
|
|
68447
68556
|
WorkflowNameSchema: () => WorkflowNameSchema,
|
|
68448
68557
|
WorkflowMetaSchema: () => WorkflowMetaSchema,
|
|
68449
68558
|
WorkflowInputDefSchema: () => WorkflowInputDefSchema,
|
|
@@ -68503,14 +68612,27 @@ __export(exports_src, {
|
|
|
68503
68612
|
SpanTypes: () => SpanTypes,
|
|
68504
68613
|
SpanKindMap: () => SpanKindMap,
|
|
68505
68614
|
SpanKind: () => import_api.SpanKind,
|
|
68615
|
+
SourceVersionRefSchema: () => SourceVersionRefSchema,
|
|
68616
|
+
SourcePackageTypeSchema: () => SourcePackageTypeSchema,
|
|
68617
|
+
SourcePackageSegmentSchema: () => SourcePackageSegmentSchema,
|
|
68618
|
+
SourcePackagePathSchema: () => SourcePackagePathSchema,
|
|
68619
|
+
SourcePackageManifestSchema: () => SourcePackageManifestSchema,
|
|
68620
|
+
SourceManifestSchemaVersionSchema: () => SourceManifestSchemaVersionSchema,
|
|
68621
|
+
SharedResourcePackageManifestSchema: () => SharedResourcePackageManifestSchema,
|
|
68506
68622
|
ScopeStackSchema: () => ScopeStackSchema,
|
|
68507
68623
|
ScopeEntryTypeSchema: () => ScopeEntryTypeSchema,
|
|
68508
68624
|
ScopeEntrySchema: () => ScopeEntrySchema,
|
|
68509
68625
|
STEP_TYPES: () => STEP_TYPES,
|
|
68510
68626
|
STEP_SCHEMAS: () => STEP_SCHEMAS,
|
|
68511
68627
|
STEP_EXECUTION_STATUSES: () => STEP_EXECUTION_STATUSES,
|
|
68628
|
+
SOURCE_VERSION_RANGE_PATTERN: () => SOURCE_VERSION_RANGE_PATTERN,
|
|
68629
|
+
SOURCE_SEMVER_PATTERN: () => SOURCE_SEMVER_PATTERN,
|
|
68630
|
+
SOURCE_PACKAGE_SEGMENT_PATTERN: () => SOURCE_PACKAGE_SEGMENT_PATTERN,
|
|
68631
|
+
SOURCE_COMMIT_SHA_PATTERN: () => SOURCE_COMMIT_SHA_PATTERN,
|
|
68512
68632
|
SCRIPT_FN_MAX_BYTES: () => SCRIPT_FN_MAX_BYTES,
|
|
68513
68633
|
S3_PATH_GRAMMAR: () => S3_PATH_GRAMMAR,
|
|
68634
|
+
RootSourceManifestSchema: () => RootSourceManifestSchema,
|
|
68635
|
+
ReleaseTagSchema: () => ReleaseTagSchema,
|
|
68514
68636
|
ProcessorPortSchema: () => ProcessorPortSchema,
|
|
68515
68637
|
ProcessorExecutionContextSchema: () => ProcessorExecutionContextSchema,
|
|
68516
68638
|
ProcessorDefinitionSchema: () => ProcessorDefinitionSchema,
|
|
@@ -68546,10 +68668,8 @@ __export(exports_src, {
|
|
|
68546
68668
|
LayoutElementTypeSchema: () => LayoutElementTypeSchema,
|
|
68547
68669
|
LayoutElementSchema: () => LayoutElementSchema,
|
|
68548
68670
|
LLM_JUDGE_PROMPT_MIN_LENGTH: () => LLM_JUDGE_PROMPT_MIN_LENGTH,
|
|
68549
|
-
JudgeModelSchema: () => JudgeModelSchema,
|
|
68550
68671
|
JudgeModeSchema: () => JudgeModeSchema,
|
|
68551
68672
|
JsonSchemaSchema: () => JsonSchemaSchema,
|
|
68552
|
-
JUDGE_MODEL_IDS: () => JUDGE_MODEL_IDS,
|
|
68553
68673
|
IfStepSchema: () => IfStepSchema,
|
|
68554
68674
|
INPUT_KINDS: () => INPUT_KINDS,
|
|
68555
68675
|
ID_PREFIXES: () => ID_PREFIXES,
|
|
@@ -68572,6 +68692,7 @@ __export(exports_src, {
|
|
|
68572
68692
|
EvaluatorsImportRequestSchema: () => EvaluatorsImportRequestSchema,
|
|
68573
68693
|
EvaluatorTypeSchema: () => EvaluatorTypeSchema,
|
|
68574
68694
|
EvaluatorResultSchema: () => EvaluatorResultSchema,
|
|
68695
|
+
EvaluatorPackageManifestSchema: () => EvaluatorPackageManifestSchema,
|
|
68575
68696
|
EvaluatorConfigSchema: () => EvaluatorConfigSchema,
|
|
68576
68697
|
EvaluatorBaseEntrySchema: () => EvaluatorBaseEntrySchema,
|
|
68577
68698
|
EvalResultsExportQuerySchema: () => EvalResultsExportQuerySchema,
|
|
@@ -68582,7 +68703,6 @@ __export(exports_src, {
|
|
|
68582
68703
|
EvalOverridesSchema: () => EvalOverridesSchema,
|
|
68583
68704
|
EvalExampleMetaSchema: () => EvalExampleMetaSchema,
|
|
68584
68705
|
EvalConfigYamlSchema: () => EvalConfigYamlSchema,
|
|
68585
|
-
EvalConfigSchema: () => EvalConfigSchema,
|
|
68586
68706
|
EmailTriggerMethodSchema: () => EmailTriggerMethodSchema,
|
|
68587
68707
|
Eigenpal: () => Eigenpal,
|
|
68588
68708
|
EXECUTION_TYPES: () => EXECUTION_TYPES,
|
|
@@ -68596,9 +68716,8 @@ __export(exports_src, {
|
|
|
68596
68716
|
EXECUTION_AGENT_QUEUED_STATUSES: () => EXECUTION_AGENT_QUEUED_STATUSES,
|
|
68597
68717
|
EXECUTION_AGENT_METRICS_STATUSES: () => EXECUTION_AGENT_METRICS_STATUSES,
|
|
68598
68718
|
EXECUTION_AGENT_CANCEL_REQUESTABLE_STATUSES: () => EXECUTION_AGENT_CANCEL_REQUESTABLE_STATUSES,
|
|
68599
|
-
EVAL_CONFIG_FORM_KEYS: () => EVAL_CONFIG_FORM_KEYS,
|
|
68600
|
-
EVAL_CONFIG_FIELD_DEFINITIONS: () => EVAL_CONFIG_FIELD_DEFINITIONS,
|
|
68601
68719
|
ERROR_HINTS: () => ERROR_HINTS,
|
|
68720
|
+
DottedPackageNameSchema: () => DottedPackageNameSchema,
|
|
68602
68721
|
DocumentParserOutputSchema: () => DocumentParserOutputSchema,
|
|
68603
68722
|
DocumentParserInputSchema: () => DocumentParserInputSchema,
|
|
68604
68723
|
DocumentParserConfigSchema: () => DocumentParserConfigSchema,
|
|
@@ -68610,7 +68729,6 @@ __export(exports_src, {
|
|
|
68610
68729
|
DURABLE_EXECUTION_TYPES: () => DURABLE_EXECUTION_TYPES,
|
|
68611
68730
|
DETERMINISTIC_TEMPERATURE: () => DETERMINISTIC_TEMPERATURE,
|
|
68612
68731
|
DEFAULT_PAGE_SIZE: () => DEFAULT_PAGE_SIZE,
|
|
68613
|
-
DEFAULT_CONCURRENCY: () => DEFAULT_CONCURRENCY,
|
|
68614
68732
|
DATASET_NAME_PATTERN: () => DATASET_NAME_PATTERN,
|
|
68615
68733
|
CustomScriptConfigSchema: () => CustomScriptConfigSchema,
|
|
68616
68734
|
CreateWorkflowDefinitionSchema: () => CreateWorkflowDefinitionSchema,
|
|
@@ -68637,6 +68755,7 @@ __export(exports_src, {
|
|
|
68637
68755
|
BoundingRegionSchema: () => BoundingRegionSchema,
|
|
68638
68756
|
BlockStepSchema: () => BlockStepSchema,
|
|
68639
68757
|
BaseEntitySchema: () => BaseEntitySchema,
|
|
68758
|
+
AutomationTargetSchema: () => AutomationTargetSchema,
|
|
68640
68759
|
ApprovalStepSchema: () => ApprovalStepSchema,
|
|
68641
68760
|
ApprovalOutputSchema: () => ApprovalOutputSchema,
|
|
68642
68761
|
ApprovalInputSchema: () => ApprovalInputSchema,
|
|
@@ -68646,6 +68765,7 @@ __export(exports_src, {
|
|
|
68646
68765
|
AiParseConfigSchema: () => AiParseConfigSchema,
|
|
68647
68766
|
AiExtractOutputSchema: () => AiExtractOutputSchema,
|
|
68648
68767
|
AiExtractConfigSchema: () => AiExtractConfigSchema,
|
|
68768
|
+
AgentPackageManifestSchema: () => AgentPackageManifestSchema,
|
|
68649
68769
|
ActionTypeValue: () => ActionTypeValue,
|
|
68650
68770
|
ActionTypeSchema: () => ActionTypeSchema,
|
|
68651
68771
|
ActionStepSchema: () => ActionStepSchema,
|
|
@@ -68666,6 +68786,7 @@ var init_src = __esm(() => {
|
|
|
68666
68786
|
init_s3_path_grammar();
|
|
68667
68787
|
init_workflow2();
|
|
68668
68788
|
init_eval();
|
|
68789
|
+
init_git_source();
|
|
68669
68790
|
init_typed_script();
|
|
68670
68791
|
});
|
|
68671
68792
|
|
|
@@ -181229,7 +181350,7 @@ import { fileURLToPath as fileURLToPath6 } from "url";
|
|
|
181229
181350
|
// package.json
|
|
181230
181351
|
var package_default = {
|
|
181231
181352
|
name: "@eigenpal/cli",
|
|
181232
|
-
version: "0.5.
|
|
181353
|
+
version: "0.5.3",
|
|
181233
181354
|
description: "Eigenpal CLI — author and run document workflows from your terminal. Agent-ready.",
|
|
181234
181355
|
keywords: [
|
|
181235
181356
|
"eigenpal",
|
|
@@ -185747,7 +185868,7 @@ function createProgressLines(options8) {
|
|
|
185747
185868
|
// src/commands/exec.ts
|
|
185748
185869
|
var POLL_INTERVAL_MS = 2000;
|
|
185749
185870
|
var MAX_POLL_MS = 5 * 60 * 1000;
|
|
185750
|
-
var
|
|
185871
|
+
var DEFAULT_CONCURRENCY = 3;
|
|
185751
185872
|
async function pollExecution2(client, executionId) {
|
|
185752
185873
|
const start = Date.now();
|
|
185753
185874
|
while (Date.now() - start < MAX_POLL_MS) {
|
|
@@ -185763,8 +185884,8 @@ async function runExec(client, dir, workflowIdOrSlug, exampleNames, options8 = {
|
|
|
185763
185884
|
const names = getExampleNames(dir, exampleNames.length ? exampleNames : undefined);
|
|
185764
185885
|
if (names.length === 0)
|
|
185765
185886
|
throw new Error("No matching eval examples found.");
|
|
185766
|
-
const requested = options8.concurrencyOverride ??
|
|
185767
|
-
const requestedValid = Number.isFinite(requested) && requested > 0 ? requested :
|
|
185887
|
+
const requested = options8.concurrencyOverride ?? DEFAULT_CONCURRENCY;
|
|
185888
|
+
const requestedValid = Number.isFinite(requested) && requested > 0 ? requested : DEFAULT_CONCURRENCY;
|
|
185768
185889
|
const concurrency = Math.max(1, Math.min(requestedValid, names.length));
|
|
185769
185890
|
const evalBaseDir = resolveEvalBaseDir(dir);
|
|
185770
185891
|
if (!evalBaseDir)
|