@eigenpal/cli 0.10.32 → 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 +116 -95
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -66512,13 +66512,6 @@ var init_parsed_document = __esm(() => {
|
|
|
66512
66512
|
path: ["table_html"]
|
|
66513
66513
|
});
|
|
66514
66514
|
}
|
|
66515
|
-
if (block.kind === "figure" && block.figure_uri == null) {
|
|
66516
|
-
ctx.addIssue({
|
|
66517
|
-
code: "custom",
|
|
66518
|
-
message: "figure blocks require figure_uri",
|
|
66519
|
-
path: ["figure_uri"]
|
|
66520
|
-
});
|
|
66521
|
-
}
|
|
66522
66515
|
});
|
|
66523
66516
|
REGION_TYPES = [
|
|
66524
66517
|
"text",
|
|
@@ -66949,50 +66942,10 @@ var init_extraction = __esm(() => {
|
|
|
66949
66942
|
}).strict();
|
|
66950
66943
|
});
|
|
66951
66944
|
|
|
66952
|
-
// ../types/src/ocr/model-options.ts
|
|
66953
|
-
function applyPaddleOcrOptionDefaults(requested) {
|
|
66954
|
-
return {
|
|
66955
|
-
image_block_ocr: requested?.image_block_ocr ?? PADDLE_OCR_OPTION_DEFAULTS.image_block_ocr,
|
|
66956
|
-
chart_recognition: requested?.chart_recognition ?? PADDLE_OCR_OPTION_DEFAULTS.chart_recognition,
|
|
66957
|
-
figure_assets: requested?.figure_assets ?? PADDLE_OCR_OPTION_DEFAULTS.figure_assets
|
|
66958
|
-
};
|
|
66959
|
-
}
|
|
66960
|
-
var OcrFigureAssetsModeSchema, PaddleOcrOptionsRequestSchema, PaddleOcrOptionsEffectiveSchema, PADDLE_OCR_OPTION_DEFAULTS, OcrOptionsRequestSchema, OcrOptionsEffectiveSchema, LlmOptionsRequestSchema, LlmOptionsStoredSchema, OcrModelOptionCapabilitySchema;
|
|
66961
|
-
var init_model_options = __esm(() => {
|
|
66962
|
-
init_zod();
|
|
66963
|
-
init_llm_models();
|
|
66964
|
-
OcrFigureAssetsModeSchema = exports_external.enum(["none", "stored"]);
|
|
66965
|
-
PaddleOcrOptionsRequestSchema = exports_external.object({
|
|
66966
|
-
image_block_ocr: exports_external.boolean().optional(),
|
|
66967
|
-
chart_recognition: exports_external.boolean().optional(),
|
|
66968
|
-
figure_assets: OcrFigureAssetsModeSchema.optional()
|
|
66969
|
-
}).strict();
|
|
66970
|
-
PaddleOcrOptionsEffectiveSchema = exports_external.object({
|
|
66971
|
-
image_block_ocr: exports_external.boolean(),
|
|
66972
|
-
chart_recognition: exports_external.boolean(),
|
|
66973
|
-
figure_assets: OcrFigureAssetsModeSchema
|
|
66974
|
-
}).strict();
|
|
66975
|
-
PADDLE_OCR_OPTION_DEFAULTS = {
|
|
66976
|
-
image_block_ocr: false,
|
|
66977
|
-
chart_recognition: true,
|
|
66978
|
-
figure_assets: "none"
|
|
66979
|
-
};
|
|
66980
|
-
OcrOptionsRequestSchema = PaddleOcrOptionsRequestSchema;
|
|
66981
|
-
OcrOptionsEffectiveSchema = PaddleOcrOptionsEffectiveSchema;
|
|
66982
|
-
LlmOptionsRequestSchema = exports_external.object({ reasoning_effort: OcrLlmReasoningEffortRequestSchema.optional() }).strict();
|
|
66983
|
-
LlmOptionsStoredSchema = exports_external.object({ reasoning_effort: OcrLlmReasoningEffortRequestSchema.nullable() }).strict();
|
|
66984
|
-
OcrModelOptionCapabilitySchema = exports_external.object({
|
|
66985
|
-
image_block_ocr: exports_external.boolean(),
|
|
66986
|
-
chart_recognition: exports_external.boolean(),
|
|
66987
|
-
figure_assets: exports_external.boolean()
|
|
66988
|
-
}).strict();
|
|
66989
|
-
});
|
|
66990
|
-
|
|
66991
66945
|
// ../types/src/ocr/raw-result.ts
|
|
66992
66946
|
var OCR_OUTPUT_FORMATS, OcrOutputFormatSchema, PaddleRawProfileSchema, RawParseResultSchema;
|
|
66993
66947
|
var init_raw_result = __esm(() => {
|
|
66994
66948
|
init_zod();
|
|
66995
|
-
init_model_options();
|
|
66996
66949
|
OCR_OUTPUT_FORMATS = ["openparser@1", "raw"];
|
|
66997
66950
|
OcrOutputFormatSchema = exports_external.enum(OCR_OUTPUT_FORMATS);
|
|
66998
66951
|
PaddleRawProfileSchema = exports_external.object({
|
|
@@ -67004,8 +66957,7 @@ var init_raw_result = __esm(() => {
|
|
|
67004
66957
|
return_markdown_images: exports_external.boolean(),
|
|
67005
66958
|
visualize: exports_external.literal(false),
|
|
67006
66959
|
image_block_ocr: exports_external.boolean(),
|
|
67007
|
-
chart_recognition: exports_external.boolean()
|
|
67008
|
-
figure_assets: OcrFigureAssetsModeSchema
|
|
66960
|
+
chart_recognition: exports_external.boolean()
|
|
67009
66961
|
}).strict()
|
|
67010
66962
|
}).strict();
|
|
67011
66963
|
RawParseResultSchema = exports_external.object({
|
|
@@ -67018,23 +66970,20 @@ var init_raw_result = __esm(() => {
|
|
|
67018
66970
|
});
|
|
67019
66971
|
|
|
67020
66972
|
// ../types/src/ocr/suggest-schema.ts
|
|
67021
|
-
|
|
67022
|
-
const trimmed = requested?.trim();
|
|
67023
|
-
return trimmed && trimmed.length > 0 ? trimmed : getDefaultOcrLlmModelId();
|
|
67024
|
-
}
|
|
67025
|
-
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;
|
|
67026
66974
|
var init_suggest_schema = __esm(() => {
|
|
67027
66975
|
init_zod();
|
|
67028
66976
|
init_extraction();
|
|
67029
66977
|
init_llm_models();
|
|
67030
|
-
init_model_options();
|
|
67031
66978
|
SuggestSchemaHintSchema = exports_external.string().min(1).max(SUGGEST_SCHEMA_HINT_MAX_CHARS);
|
|
67032
66979
|
SuggestSchemaRequestSchema = exports_external.object({
|
|
67033
66980
|
parse_job_id: exports_external.string().uuid(),
|
|
67034
|
-
llm_model: LlmModelSchema.optional(),
|
|
67035
|
-
llm_options: LlmOptionsRequestSchema.optional(),
|
|
67036
66981
|
hint: SuggestSchemaHintSchema.optional()
|
|
67037
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();
|
|
67038
66987
|
SuggestSchemaPreviewMetaSchema = exports_external.object({
|
|
67039
66988
|
max_pages: exports_external.literal(SUGGEST_SCHEMA_PREVIEW_MAX_PAGES),
|
|
67040
66989
|
max_chars: exports_external.literal(SUGGEST_SCHEMA_PREVIEW_MAX_CHARS),
|
|
@@ -67055,7 +67004,7 @@ var init_suggest_schema = __esm(() => {
|
|
|
67055
67004
|
});
|
|
67056
67005
|
|
|
67057
67006
|
// ../types/src/ocr/jobs.ts
|
|
67058
|
-
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;
|
|
67059
67008
|
var init_jobs = __esm(() => {
|
|
67060
67009
|
init_zod();
|
|
67061
67010
|
init_extraction();
|
|
@@ -67078,6 +67027,13 @@ var init_jobs = __esm(() => {
|
|
|
67078
67027
|
"extract_batch"
|
|
67079
67028
|
];
|
|
67080
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);
|
|
67081
67037
|
JobIdSchema = exports_external.string().uuid();
|
|
67082
67038
|
JobFailureSchema = exports_external.object({
|
|
67083
67039
|
code: exports_external.string().min(1),
|
|
@@ -67087,7 +67043,7 @@ var init_jobs = __esm(() => {
|
|
|
67087
67043
|
}).strict();
|
|
67088
67044
|
JobAcceptedSchema = exports_external.object({
|
|
67089
67045
|
id: JobIdSchema,
|
|
67090
|
-
operation: exports_external.enum(["parse", "extract"
|
|
67046
|
+
operation: exports_external.enum(["parse", "extract"]),
|
|
67091
67047
|
status: JobStatusSchema,
|
|
67092
67048
|
output_format: OcrOutputFormatSchema,
|
|
67093
67049
|
created_at: exports_external.string().datetime(),
|
|
@@ -67100,7 +67056,7 @@ var init_jobs = __esm(() => {
|
|
|
67100
67056
|
output_format: OcrOutputFormatSchema,
|
|
67101
67057
|
created_at: exports_external.string().datetime(),
|
|
67102
67058
|
updated_at: exports_external.string().datetime(),
|
|
67103
|
-
child_count: exports_external.number().int().min(1).max(
|
|
67059
|
+
child_count: exports_external.number().int().min(1).max(100)
|
|
67104
67060
|
}).strict();
|
|
67105
67061
|
BatchChildSummarySchema = exports_external.object({
|
|
67106
67062
|
client_item_id: exports_external.string().min(1).max(128),
|
|
@@ -67127,6 +67083,15 @@ var init_jobs = __esm(() => {
|
|
|
67127
67083
|
completed: exports_external.number().int().min(0).optional(),
|
|
67128
67084
|
total: exports_external.number().int().min(0).optional()
|
|
67129
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();
|
|
67130
67095
|
JobSchema = exports_external.object({
|
|
67131
67096
|
id: JobIdSchema,
|
|
67132
67097
|
operation: JobOperationSchema,
|
|
@@ -67143,11 +67108,16 @@ var init_jobs = __esm(() => {
|
|
|
67143
67108
|
SuggestSchemaTerminalResultSchema
|
|
67144
67109
|
]).optional(),
|
|
67145
67110
|
summary: BatchSummaryCountsSchema.optional(),
|
|
67146
|
-
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()
|
|
67147
67117
|
}).strict();
|
|
67148
67118
|
JobSummarySchema = exports_external.object({
|
|
67149
67119
|
id: JobIdSchema,
|
|
67150
|
-
operation:
|
|
67120
|
+
operation: JobHistoryOperationSchema,
|
|
67151
67121
|
status: JobStatusSchema,
|
|
67152
67122
|
output_format: OcrOutputFormatSchema,
|
|
67153
67123
|
ocr_model: exports_external.string().min(1).nullable().optional(),
|
|
@@ -67157,7 +67127,8 @@ var init_jobs = __esm(() => {
|
|
|
67157
67127
|
updated_at: exports_external.string().datetime(),
|
|
67158
67128
|
error: JobFailureSchema.optional(),
|
|
67159
67129
|
has_result: exports_external.boolean(),
|
|
67160
|
-
url: exports_external.string().min(1)
|
|
67130
|
+
url: exports_external.string().min(1),
|
|
67131
|
+
has_source: exports_external.boolean().optional()
|
|
67161
67132
|
}).strict();
|
|
67162
67133
|
JobListResponseSchema = exports_external.object({
|
|
67163
67134
|
data: exports_external.array(JobSummarySchema),
|
|
@@ -67167,7 +67138,7 @@ var init_jobs = __esm(() => {
|
|
|
67167
67138
|
cursor: exports_external.string().min(1).optional(),
|
|
67168
67139
|
limit: exports_external.coerce.number().int().min(1).max(OCR_JOB_LIST_MAX_LIMIT).optional().default(OCR_JOB_LIST_DEFAULT_LIMIT),
|
|
67169
67140
|
status: JobStatusSchema.optional(),
|
|
67170
|
-
operation:
|
|
67141
|
+
operation: JobHistoryOperationSchema.optional()
|
|
67171
67142
|
}).strict();
|
|
67172
67143
|
ErrorBodySchema = exports_external.object({
|
|
67173
67144
|
code: exports_external.string().min(1),
|
|
@@ -67187,6 +67158,41 @@ var init_jobs = __esm(() => {
|
|
|
67187
67158
|
};
|
|
67188
67159
|
});
|
|
67189
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
|
+
|
|
67190
67196
|
// ../types/src/ocr/ocr-models.ts
|
|
67191
67197
|
function getDefaultOcrModelId() {
|
|
67192
67198
|
const defaults = OCR_MODEL_CATALOG.filter((entry) => entry.is_default);
|
|
@@ -67233,8 +67239,7 @@ var init_ocr_models = __esm(() => {
|
|
|
67233
67239
|
}).strict(),
|
|
67234
67240
|
option_defaults: exports_external.object({
|
|
67235
67241
|
image_block_ocr: exports_external.boolean(),
|
|
67236
|
-
chart_recognition: exports_external.boolean()
|
|
67237
|
-
figure_assets: exports_external.enum(["none", "stored"])
|
|
67242
|
+
chart_recognition: exports_external.boolean()
|
|
67238
67243
|
}).strict(),
|
|
67239
67244
|
pricing: OcrModelPricingSchema,
|
|
67240
67245
|
availability: OcrModelAvailabilitySchema
|
|
@@ -67242,8 +67247,7 @@ var init_ocr_models = __esm(() => {
|
|
|
67242
67247
|
OcrModelsResponseSchema = exports_external.object({ data: exports_external.array(OcrModelCatalogEntrySchema).min(1) }).strict();
|
|
67243
67248
|
PADDLE_OPTION_CAPABILITIES = {
|
|
67244
67249
|
image_block_ocr: true,
|
|
67245
|
-
chart_recognition: true
|
|
67246
|
-
figure_assets: true
|
|
67250
|
+
chart_recognition: true
|
|
67247
67251
|
};
|
|
67248
67252
|
OCR_MODEL_CATALOG = [
|
|
67249
67253
|
{
|
|
@@ -67511,11 +67515,11 @@ var init_contracts = __esm(() => {
|
|
|
67511
67515
|
};
|
|
67512
67516
|
});
|
|
67513
67517
|
ParseBatchRequestSchema = exports_external.object({
|
|
67514
|
-
items: exports_external.array(ParseBatchItemSchema).min(1).max(
|
|
67518
|
+
items: exports_external.array(ParseBatchItemSchema).min(1).max(100),
|
|
67515
67519
|
output_format: OcrOutputFormatSchema.default("openparser@1")
|
|
67516
67520
|
}).strict();
|
|
67517
67521
|
ExtractBatchRequestSchema = exports_external.object({
|
|
67518
|
-
items: exports_external.array(ExtractBatchItemSchema).min(1).max(
|
|
67522
|
+
items: exports_external.array(ExtractBatchItemSchema).min(1).max(100),
|
|
67519
67523
|
output_format: OcrOutputFormatSchema.default("openparser@1")
|
|
67520
67524
|
}).strict();
|
|
67521
67525
|
PublicFileSchema = exports_external.object({
|
|
@@ -67554,7 +67558,7 @@ var init_contracts = __esm(() => {
|
|
|
67554
67558
|
RawParseResult: RawParseResultSchema,
|
|
67555
67559
|
ParseResult: OpenParserParseResultSchema,
|
|
67556
67560
|
JobStatus: JobStatusSchema,
|
|
67557
|
-
JobOperation:
|
|
67561
|
+
JobOperation: JobHistoryOperationSchema,
|
|
67558
67562
|
JobAccepted: JobAcceptedSchema,
|
|
67559
67563
|
BatchJobAccepted: BatchJobAcceptedSchema,
|
|
67560
67564
|
BoundingBox: BoundingBoxSchema,
|
|
@@ -67576,12 +67580,15 @@ var init_contracts = __esm(() => {
|
|
|
67576
67580
|
ExtractionGroundingField: ExtractionGroundingFieldSchema,
|
|
67577
67581
|
ExtractionGroundingResult: ExtractionGroundingResultSchema,
|
|
67578
67582
|
ExtractionTerminalResult: ExtractionTerminalResultSchema,
|
|
67579
|
-
|
|
67583
|
+
SuggestSchemaResponse: SuggestSchemaResponseSchema,
|
|
67580
67584
|
JobFailure: JobFailureSchema,
|
|
67581
67585
|
BatchChildSummary: BatchChildSummarySchema,
|
|
67582
67586
|
BatchChildPage: BatchChildPageSchema,
|
|
67583
67587
|
BatchSummaryCounts: BatchSummaryCountsSchema,
|
|
67584
|
-
Job: JobSchema
|
|
67588
|
+
Job: JobSchema.extend({
|
|
67589
|
+
operation: JobHistoryOperationSchema,
|
|
67590
|
+
result: exports_external.union([ParsedDocumentSchema, RawParseResultSchema, ExtractionTerminalResultSchema]).optional()
|
|
67591
|
+
}),
|
|
67585
67592
|
JobSummary: JobSummarySchema,
|
|
67586
67593
|
JobListResponse: JobListResponseSchema,
|
|
67587
67594
|
ErrorBody: ErrorBodySchema,
|
|
@@ -67712,35 +67719,23 @@ var init_contracts = __esm(() => {
|
|
|
67712
67719
|
}
|
|
67713
67720
|
},
|
|
67714
67721
|
{
|
|
67715
|
-
operationId: "
|
|
67722
|
+
operationId: "suggestSchema",
|
|
67716
67723
|
method: "post",
|
|
67717
67724
|
path: "/suggest-schema",
|
|
67718
67725
|
tag: "extract",
|
|
67719
67726
|
requestBody: "SuggestSchemaRequest",
|
|
67720
|
-
parameters: ["IdempotencyKey"],
|
|
67721
67727
|
responses: {
|
|
67722
|
-
200: { schema: "
|
|
67723
|
-
|
|
67724
|
-
|
|
67728
|
+
200: { schema: "SuggestSchemaResponse" },
|
|
67729
|
+
400: { component: "MalformedRequest" },
|
|
67730
|
+
401: { component: "Unauthorized" },
|
|
67731
|
+
403: { component: "Forbidden" },
|
|
67725
67732
|
404: { component: "JobNotFound" },
|
|
67726
67733
|
422: { component: "UnprocessableOrSyncFailed" },
|
|
67734
|
+
429: { component: "RateLimited" },
|
|
67735
|
+
503: { component: "ServiceUnavailable" },
|
|
67727
67736
|
504: { component: "SyncTerminalIndeterminate" }
|
|
67728
67737
|
}
|
|
67729
67738
|
},
|
|
67730
|
-
{
|
|
67731
|
-
operationId: "suggestSchemaAsync",
|
|
67732
|
-
method: "post",
|
|
67733
|
-
path: "/suggest-schema/async",
|
|
67734
|
-
tag: "extract",
|
|
67735
|
-
requestBody: "SuggestSchemaRequest",
|
|
67736
|
-
parameters: ["IdempotencyKey"],
|
|
67737
|
-
responses: {
|
|
67738
|
-
202: { component: "JobAccepted" },
|
|
67739
|
-
...admissionErrors,
|
|
67740
|
-
404: { component: "JobNotFound" },
|
|
67741
|
-
422: { component: "UnprocessableConfig" }
|
|
67742
|
-
}
|
|
67743
|
-
},
|
|
67744
67739
|
{
|
|
67745
67740
|
operationId: "listJobs",
|
|
67746
67741
|
method: "get",
|
|
@@ -67769,6 +67764,22 @@ var init_contracts = __esm(() => {
|
|
|
67769
67764
|
429: { component: "RateLimited" }
|
|
67770
67765
|
}
|
|
67771
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
|
+
},
|
|
67772
67783
|
{
|
|
67773
67784
|
operationId: "createFile",
|
|
67774
67785
|
method: "post",
|
|
@@ -67982,6 +67993,10 @@ function s3PathFilename(value) {
|
|
|
67982
67993
|
function s3FileArtifactName(fileId, filename) {
|
|
67983
67994
|
return `${assertSegment("fileId", fileId)}-${s3PathFilename(filename)}`;
|
|
67984
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
|
+
}
|
|
67985
68000
|
function getDynamicEntry(node) {
|
|
67986
68001
|
const key = Object.keys(node).find((candidate) => candidate.startsWith("$"));
|
|
67987
68002
|
return key ? [key, node[key]] : undefined;
|
|
@@ -68154,7 +68169,7 @@ function createBuilder(grammarNode, prefixSegments, boundTenantId) {
|
|
|
68154
68169
|
});
|
|
68155
68170
|
return builder;
|
|
68156
68171
|
}
|
|
68157
|
-
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;
|
|
68158
68173
|
var init_s3_paths = __esm(() => {
|
|
68159
68174
|
S3_PATH_GRAMMAR = {
|
|
68160
68175
|
agents: {
|
|
@@ -68305,6 +68320,7 @@ var init_s3_paths = __esm(() => {
|
|
|
68305
68320
|
SEGMENT_RX = /^[A-Za-z0-9_.-]+$/;
|
|
68306
68321
|
SAFE_FILENAME_RX = /[^A-Za-z0-9_.-]+/g;
|
|
68307
68322
|
TENANT_PREFIX_RX = /^tenants\/[A-Za-z0-9_.-]+\//;
|
|
68323
|
+
FILE_ARTIFACT_PREFIX_RX = /^file_[A-Za-z0-9_-]{21}-/;
|
|
68308
68324
|
rootS3Path = createBuilder(S3_PATH_GRAMMAR, []);
|
|
68309
68325
|
});
|
|
68310
68326
|
|
|
@@ -68354,7 +68370,6 @@ __export(exports_src, {
|
|
|
68354
68370
|
runExpandErrorMessage: () => runExpandErrorMessage,
|
|
68355
68371
|
rootS3Path: () => rootS3Path,
|
|
68356
68372
|
resolveWorkflowPassThreshold: () => resolveWorkflowPassThreshold,
|
|
68357
|
-
resolveSuggestSchemaLlmModel: () => resolveSuggestSchemaLlmModel,
|
|
68358
68373
|
resolveRetryPolicy: () => resolveRetryPolicy,
|
|
68359
68374
|
resolveEffectiveMimeType: () => resolveEffectiveMimeType,
|
|
68360
68375
|
resolveAgentOriginalSourceRef: () => resolveAgentOriginalSourceRef,
|
|
@@ -68444,6 +68459,7 @@ __export(exports_src, {
|
|
|
68444
68459
|
formatReleaseTag: () => formatReleaseTag,
|
|
68445
68460
|
formatHostedSourceExportPath: () => formatHostedSourceExportPath,
|
|
68446
68461
|
formatDiffValue: () => formatDiffValue,
|
|
68462
|
+
filenameFromArtifactName: () => filenameFromArtifactName,
|
|
68447
68463
|
fileReferenceKind: () => fileReferenceKind,
|
|
68448
68464
|
fileFieldNamesFromJsonSchema: () => fileFieldNamesFromJsonSchema,
|
|
68449
68465
|
fieldStemFromGoldenName: () => fieldStemFromGoldenName,
|
|
@@ -68566,6 +68582,7 @@ __export(exports_src, {
|
|
|
68566
68582
|
TERMINAL_EXECUTION_STATUSES: () => TERMINAL_EXECUTION_STATUSES,
|
|
68567
68583
|
SwitchStepSchema: () => SwitchStepSchema,
|
|
68568
68584
|
SuggestSchemaTerminalResultSchema: () => SuggestSchemaTerminalResultSchema,
|
|
68585
|
+
SuggestSchemaResponseSchema: () => SuggestSchemaResponseSchema,
|
|
68569
68586
|
SuggestSchemaRequestSchema: () => SuggestSchemaRequestSchema,
|
|
68570
68587
|
SuggestSchemaPreviewMetaSchema: () => SuggestSchemaPreviewMetaSchema,
|
|
68571
68588
|
SuggestSchemaHintSchema: () => SuggestSchemaHintSchema,
|
|
@@ -68610,6 +68627,7 @@ __export(exports_src, {
|
|
|
68610
68627
|
ScopeEntrySchema: () => ScopeEntrySchema,
|
|
68611
68628
|
SUGGEST_SCHEMA_PREVIEW_MAX_PAGES: () => SUGGEST_SCHEMA_PREVIEW_MAX_PAGES,
|
|
68612
68629
|
SUGGEST_SCHEMA_PREVIEW_MAX_CHARS: () => SUGGEST_SCHEMA_PREVIEW_MAX_CHARS,
|
|
68630
|
+
SUGGEST_SCHEMA_LLM_MODEL: () => SUGGEST_SCHEMA_LLM_MODEL,
|
|
68613
68631
|
SUGGEST_SCHEMA_HINT_MAX_CHARS: () => SUGGEST_SCHEMA_HINT_MAX_CHARS,
|
|
68614
68632
|
STEP_TYPES: () => STEP_TYPES,
|
|
68615
68633
|
STEP_SCHEMAS: () => STEP_SCHEMAS,
|
|
@@ -68641,6 +68659,7 @@ __export(exports_src, {
|
|
|
68641
68659
|
ResolvedProcessorFileSchema: () => ResolvedProcessorFileSchema,
|
|
68642
68660
|
RepairAttemptsSchema: () => RepairAttemptsSchema,
|
|
68643
68661
|
ReleaseTagSchema: () => ReleaseTagSchema,
|
|
68662
|
+
RelatedExtractionSummarySchema: () => RelatedExtractionSummarySchema,
|
|
68644
68663
|
RegionTypeSchema: () => RegionTypeSchema,
|
|
68645
68664
|
RegionSchema: () => RegionSchema,
|
|
68646
68665
|
RegionContentSchema: () => RegionContentSchema,
|
|
@@ -68744,6 +68763,7 @@ __export(exports_src, {
|
|
|
68744
68763
|
OCR_JOB_OPERATIONS: () => OCR_JOB_OPERATIONS,
|
|
68745
68764
|
OCR_JOB_LIST_MAX_LIMIT: () => OCR_JOB_LIST_MAX_LIMIT,
|
|
68746
68765
|
OCR_JOB_LIST_DEFAULT_LIMIT: () => OCR_JOB_LIST_DEFAULT_LIMIT,
|
|
68766
|
+
OCR_JOB_HISTORY_OPERATIONS: () => OCR_JOB_HISTORY_OPERATIONS,
|
|
68747
68767
|
NON_SUCCESS_TERMINAL_EXECUTION_STATUSES: () => NON_SUCCESS_TERMINAL_EXECUTION_STATUSES,
|
|
68748
68768
|
MergeOutputSchema: () => MergeOutputSchema,
|
|
68749
68769
|
MergeInputSchema: () => MergeInputSchema,
|
|
@@ -68775,6 +68795,7 @@ __export(exports_src, {
|
|
|
68775
68795
|
JobListResponseSchema: () => JobListResponseSchema,
|
|
68776
68796
|
JobListQuerySchema: () => JobListQuerySchema,
|
|
68777
68797
|
JobIdSchema: () => JobIdSchema,
|
|
68798
|
+
JobHistoryOperationSchema: () => JobHistoryOperationSchema,
|
|
68778
68799
|
JobFailureSchema: () => JobFailureSchema,
|
|
68779
68800
|
JobAcceptedSchema: () => JobAcceptedSchema,
|
|
68780
68801
|
InlineFileRefSchema: () => InlineFileRefSchema,
|
|
@@ -183683,7 +183704,7 @@ import { fileURLToPath as fileURLToPath9 } from "url";
|
|
|
183683
183704
|
// package.json
|
|
183684
183705
|
var package_default = {
|
|
183685
183706
|
name: "@eigenpal/cli",
|
|
183686
|
-
version: "0.10.
|
|
183707
|
+
version: "0.10.34",
|
|
183687
183708
|
description: "Eigenpal CLI — author and run document workflows from your terminal. Agent-ready.",
|
|
183688
183709
|
keywords: [
|
|
183689
183710
|
"eigenpal",
|