@tiangong-lca/cli 0.1.0 → 0.1.2
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/README.md +58 -6
- package/dist/src/batch.d.ts +6 -0
- package/dist/src/batch.js +6 -0
- package/dist/src/batch.js.map +1 -0
- package/dist/src/cli.d.ts +161 -0
- package/dist/src/cli.js +130 -0
- package/dist/src/cli.js.map +1 -1
- package/dist/src/command-spec.d.ts +90 -0
- package/dist/src/command-spec.js +400 -0
- package/dist/src/command-spec.js.map +1 -0
- package/dist/src/lib/artifacts.d.ts +9 -0
- package/dist/src/lib/auth-identity-receipt.d.ts +160 -0
- package/dist/src/lib/auth-identity-receipt.js +634 -0
- package/dist/src/lib/auth-identity-receipt.js.map +1 -0
- package/dist/src/lib/batch/attempt-recovery.d.ts +12 -0
- package/dist/src/lib/batch/attempt-recovery.js +183 -0
- package/dist/src/lib/batch/attempt-recovery.js.map +1 -0
- package/dist/src/lib/batch/canonical-contracts.d.ts +21 -0
- package/dist/src/lib/batch/canonical-contracts.js +180 -0
- package/dist/src/lib/batch/canonical-contracts.js.map +1 -0
- package/dist/src/lib/batch/engine.d.ts +2 -0
- package/dist/src/lib/batch/engine.js +294 -0
- package/dist/src/lib/batch/engine.js.map +1 -0
- package/dist/src/lib/batch/errors.d.ts +51 -0
- package/dist/src/lib/batch/errors.js +81 -0
- package/dist/src/lib/batch/errors.js.map +1 -0
- package/dist/src/lib/batch/item-projection.d.ts +10 -0
- package/dist/src/lib/batch/item-projection.js +118 -0
- package/dist/src/lib/batch/item-projection.js.map +1 -0
- package/dist/src/lib/batch/run-lock.d.ts +4 -0
- package/dist/src/lib/batch/run-lock.js +155 -0
- package/dist/src/lib/batch/run-lock.js.map +1 -0
- package/dist/src/lib/batch/scheduler-runtime.d.ts +29 -0
- package/dist/src/lib/batch/scheduler-runtime.js +114 -0
- package/dist/src/lib/batch/scheduler-runtime.js.map +1 -0
- package/dist/src/lib/batch/types.d.ts +183 -0
- package/dist/src/lib/batch/types.js +2 -0
- package/dist/src/lib/batch/types.js.map +1 -0
- package/dist/src/lib/dataset-author.d.ts +39 -0
- package/dist/src/lib/dataset-bilingual.d.ts +165 -0
- package/dist/src/lib/dataset-classification.d.ts +279 -0
- package/dist/src/lib/dataset-command.d.ts +53 -0
- package/dist/src/lib/dataset-contract.d.ts +82 -0
- package/dist/src/lib/dataset-curation-queue.d.ts +219 -0
- package/dist/src/lib/dataset-evidence-search.d.ts +134 -0
- package/dist/src/lib/dataset-import-lca.d.ts +136 -0
- package/dist/src/lib/dataset-local.d.ts +23 -0
- package/dist/src/lib/dataset-maintenance-alias-request.d.ts +12 -0
- package/dist/src/lib/dataset-maintenance-alias-rewrite.d.ts +111 -0
- package/dist/src/lib/dataset-maintenance-apply.d.ts +458 -0
- package/dist/src/lib/dataset-maintenance-clear-account.d.ts +161 -0
- package/dist/src/lib/dataset-maintenance-contract.d.ts +317 -0
- package/dist/src/lib/dataset-maintenance-derivatives.d.ts +48 -0
- package/dist/src/lib/dataset-maintenance-flow-identity-approval-claim.d.ts +50 -0
- package/dist/src/lib/dataset-maintenance-flow-identity-capture.d.ts +110 -0
- package/dist/src/lib/dataset-maintenance-flow-identity-command.d.ts +15 -0
- package/dist/src/lib/dataset-maintenance-flow-identity-contract.d.ts +387 -0
- package/dist/src/lib/dataset-maintenance-flow-identity-execution-contract.d.ts +456 -0
- package/dist/src/lib/dataset-maintenance-flow-identity-freeze.d.ts +99 -0
- package/dist/src/lib/dataset-maintenance-flow-identity-plan.d.ts +85 -0
- package/dist/src/lib/dataset-maintenance-flow-identity-recovery.d.ts +268 -0
- package/dist/src/lib/dataset-maintenance-flow-identity-run.d.ts +123 -0
- package/dist/src/lib/dataset-maintenance-flow-identity-seal.d.ts +50 -0
- package/dist/src/lib/dataset-maintenance-flow-identity-verify.d.ts +85 -0
- package/dist/src/lib/dataset-maintenance-flow-identity-wire.d.ts +32 -0
- package/dist/src/lib/dataset-maintenance-pagination.d.ts +58 -0
- package/dist/src/lib/dataset-maintenance-plan.d.ts +40 -0
- package/dist/src/lib/dataset-maintenance-protected-artifacts.d.ts +16 -0
- package/dist/src/lib/dataset-maintenance-protected-before.d.ts +71 -0
- package/dist/src/lib/dataset-maintenance-protected-contract.d.ts +385 -0
- package/dist/src/lib/dataset-maintenance-protected-freeze.d.ts +148 -0
- package/dist/src/lib/dataset-maintenance-protected-preparation.d.ts +76 -0
- package/dist/src/lib/dataset-maintenance-protected-run.d.ts +252 -0
- package/dist/src/lib/dataset-maintenance-protected-seal.d.ts +93 -0
- package/dist/src/lib/dataset-maintenance-protected-toolchain.d.ts +31 -0
- package/dist/src/lib/dataset-maintenance-protected-verify.d.ts +99 -0
- package/dist/src/lib/dataset-maintenance-remote.d.ts +212 -0
- package/dist/src/lib/dataset-maintenance-support-validation.d.ts +18 -0
- package/dist/src/lib/dataset-maintenance-verify.d.ts +102 -0
- package/dist/src/lib/dataset-patch.d.ts +193 -0
- package/dist/src/lib/dataset-references-rewrite.d.ts +77 -0
- package/dist/src/lib/dataset-remote-refresh.d.ts +64 -0
- package/dist/src/lib/dataset-remote-verify.d.ts +168 -0
- package/dist/src/lib/dataset-save-draft-run.d.ts +283 -0
- package/dist/src/lib/dataset-save-draft-run.js +54 -21
- package/dist/src/lib/dataset-save-draft-run.js.map +1 -1
- package/dist/src/lib/dataset-source-upload-attachments.d.ts +109 -0
- package/dist/src/lib/dataset-validate.d.ts +62 -0
- package/dist/src/lib/dotenv.d.ts +6 -0
- package/dist/src/lib/env.d.ts +59 -0
- package/dist/src/lib/errors.d.ts +18 -0
- package/dist/src/lib/flow-build-alias-map.d.ts +80 -0
- package/dist/src/lib/flow-fetch-rows.d.ts +70 -0
- package/dist/src/lib/flow-get.d.ts +35 -0
- package/dist/src/lib/flow-governance.d.ts +22 -0
- package/dist/src/lib/flow-list.d.ts +57 -0
- package/dist/src/lib/flow-materialize-decisions.d.ts +67 -0
- package/dist/src/lib/flow-payload-validation.d.ts +32 -0
- package/dist/src/lib/flow-publish-reviewed-data.d.ts +262 -0
- package/dist/src/lib/flow-publish-version.d.ts +193 -0
- package/dist/src/lib/flow-qa.d.ts +289 -0
- package/dist/src/lib/flow-read.d.ts +70 -0
- package/dist/src/lib/flow-regen-product.d.ts +431 -0
- package/dist/src/lib/flow-remediate.d.ts +133 -0
- package/dist/src/lib/http.d.ts +25 -0
- package/dist/src/lib/http.js.map +1 -1
- package/dist/src/lib/identity-preflight.d.ts +235 -0
- package/dist/src/lib/io.d.ts +2 -0
- package/dist/src/lib/kb-search.d.ts +23 -0
- package/dist/src/lib/lca-release.d.ts +105 -0
- package/dist/src/lib/lifecyclemodel-auto-build.d.ts +223 -0
- package/dist/src/lib/lifecyclemodel-bundle-save.d.ts +71 -0
- package/dist/src/lib/lifecyclemodel-graph.d.ts +91 -0
- package/dist/src/lib/lifecyclemodel-orchestrate.d.ts +349 -0
- package/dist/src/lib/lifecyclemodel-publish-build.d.ts +77 -0
- package/dist/src/lib/lifecyclemodel-publish-resulting-process.d.ts +27 -0
- package/dist/src/lib/lifecyclemodel-qa.d.ts +206 -0
- package/dist/src/lib/lifecyclemodel-resulting-process.d.ts +204 -0
- package/dist/src/lib/lifecyclemodel-save-draft-run.d.ts +96 -0
- package/dist/src/lib/lifecyclemodel-validate-build.d.ts +78 -0
- package/dist/src/lib/llm.d.ts +51 -0
- package/dist/src/lib/package-version.d.ts +3 -0
- package/dist/src/lib/process-auto-build.d.ts +168 -0
- package/dist/src/lib/process-batch-build.d.ts +97 -0
- package/dist/src/lib/process-dedup-review.d.ts +253 -0
- package/dist/src/lib/process-flow-build-plan.d.ts +108 -0
- package/dist/src/lib/process-get.d.ts +26 -0
- package/dist/src/lib/process-list.d.ts +87 -0
- package/dist/src/lib/process-payload-validation.d.ts +27 -0
- package/dist/src/lib/process-publish-build.d.ts +148 -0
- package/dist/src/lib/process-qa.d.ts +243 -0
- package/dist/src/lib/process-refresh-references.d.ts +179 -0
- package/dist/src/lib/process-required-fields.d.ts +142 -0
- package/dist/src/lib/process-resume-build.d.ts +77 -0
- package/dist/src/lib/process-save-draft-run.d.ts +72 -0
- package/dist/src/lib/process-save-draft.d.ts +53 -0
- package/dist/src/lib/process-scope-statistics.d.ts +210 -0
- package/dist/src/lib/process-verify-rows.d.ts +71 -0
- package/dist/src/lib/publish.d.ts +219 -0
- package/dist/src/lib/remote.d.ts +19 -0
- package/dist/src/lib/run.d.ts +60 -0
- package/dist/src/lib/runtime-rulesets.d.ts +29 -0
- package/dist/src/lib/state-lock.d.ts +25 -0
- package/dist/src/lib/state-lock.js +23 -1
- package/dist/src/lib/state-lock.js.map +1 -1
- package/dist/src/lib/supabase-client.d.ts +47 -0
- package/dist/src/lib/supabase-data-api-contract.d.ts +304 -0
- package/dist/src/lib/supabase-data-api-replay.d.ts +74 -0
- package/dist/src/lib/supabase-json-ordered-write.d.ts +65 -0
- package/dist/src/lib/supabase-rest.d.ts +26 -0
- package/dist/src/lib/supabase-session.d.ts +115 -0
- package/dist/src/lib/tidas-languages.d.ts +3 -0
- package/dist/src/lib/tidas-sdk-package-validator.d.ts +111 -0
- package/dist/src/lib/tidas-sdk-validation.d.ts +42 -0
- package/dist/src/lib/unstructured.d.ts +32 -0
- package/dist/src/lib/user-api-key.d.ts +16 -0
- package/dist/src/lib/validation.d.ts +82 -0
- package/dist/src/main.d.ts +4 -0
- package/package.json +17 -3
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import type { FetchLike } from './http.js';
|
|
2
|
+
type JsonObject = Record<string, unknown>;
|
|
3
|
+
type ProcessListQueryFilters = {
|
|
4
|
+
ids?: string[];
|
|
5
|
+
version?: string | null;
|
|
6
|
+
userId?: string | null;
|
|
7
|
+
stateCodes?: number[];
|
|
8
|
+
order?: string | null;
|
|
9
|
+
limit?: number | null;
|
|
10
|
+
offset?: number | null;
|
|
11
|
+
};
|
|
12
|
+
type SupabaseProcessListRow = {
|
|
13
|
+
id: string;
|
|
14
|
+
version: string;
|
|
15
|
+
user_id: string | null;
|
|
16
|
+
state_code: number | null;
|
|
17
|
+
modified_at: string | null;
|
|
18
|
+
json: unknown;
|
|
19
|
+
};
|
|
20
|
+
export type RunProcessListOptions = {
|
|
21
|
+
ids?: string[];
|
|
22
|
+
version?: string | null;
|
|
23
|
+
userId?: string | null;
|
|
24
|
+
stateCodes?: number[];
|
|
25
|
+
limit?: number | null;
|
|
26
|
+
offset?: number | null;
|
|
27
|
+
all?: boolean;
|
|
28
|
+
pageSize?: number | null;
|
|
29
|
+
order?: string | null;
|
|
30
|
+
env?: NodeJS.ProcessEnv;
|
|
31
|
+
fetchImpl?: FetchLike;
|
|
32
|
+
timeoutMs?: number;
|
|
33
|
+
now?: Date;
|
|
34
|
+
maxAttempts?: number | null;
|
|
35
|
+
};
|
|
36
|
+
export type ProcessListReport = {
|
|
37
|
+
schema_version: 1;
|
|
38
|
+
generated_at_utc: string;
|
|
39
|
+
status: 'listed_remote_processes';
|
|
40
|
+
filters: {
|
|
41
|
+
ids: string[];
|
|
42
|
+
requested_version: string | null;
|
|
43
|
+
requested_user_id: string | null;
|
|
44
|
+
requested_state_codes: number[];
|
|
45
|
+
order: string;
|
|
46
|
+
all: boolean;
|
|
47
|
+
limit: number | null;
|
|
48
|
+
offset: number;
|
|
49
|
+
page_size: number | null;
|
|
50
|
+
};
|
|
51
|
+
count: number;
|
|
52
|
+
source_urls: string[];
|
|
53
|
+
rows: Array<{
|
|
54
|
+
id: string;
|
|
55
|
+
version: string;
|
|
56
|
+
user_id: string | null;
|
|
57
|
+
state_code: number | null;
|
|
58
|
+
modified_at: string | null;
|
|
59
|
+
process: JsonObject;
|
|
60
|
+
}>;
|
|
61
|
+
};
|
|
62
|
+
declare function normalizeToken(value: string | null | undefined): string | null;
|
|
63
|
+
declare function nowIso(now?: Date): string;
|
|
64
|
+
declare function toPositiveInteger(value: number | null | undefined, label: string, code: string): number;
|
|
65
|
+
declare function toNonNegativeInteger(value: number | null | undefined, label: string, code: string): number;
|
|
66
|
+
declare function optionalPositiveInteger(value: number | null | undefined): number | null;
|
|
67
|
+
declare function optionalNonNegativeInteger(value: number | null | undefined): number | null;
|
|
68
|
+
declare function buildProcessListUrl(restBaseUrl: string, filters: ProcessListQueryFilters): string;
|
|
69
|
+
declare function parseProcessRows(payload: unknown, url: string): SupabaseProcessListRow[];
|
|
70
|
+
declare function applyOrder<Query extends {
|
|
71
|
+
order: (column: string, options?: object) => Query;
|
|
72
|
+
}>(query: Query, orderValue: string | null | undefined): Query;
|
|
73
|
+
declare function isRetryableError(error: unknown): boolean;
|
|
74
|
+
export declare function runProcessList(options: RunProcessListOptions): Promise<ProcessListReport>;
|
|
75
|
+
export declare const __testInternals: {
|
|
76
|
+
applyOrder: typeof applyOrder;
|
|
77
|
+
buildProcessListUrl: typeof buildProcessListUrl;
|
|
78
|
+
isRetryableError: typeof isRetryableError;
|
|
79
|
+
normalizeToken: typeof normalizeToken;
|
|
80
|
+
nowIso: typeof nowIso;
|
|
81
|
+
optionalNonNegativeInteger: typeof optionalNonNegativeInteger;
|
|
82
|
+
optionalPositiveInteger: typeof optionalPositiveInteger;
|
|
83
|
+
parseProcessRows: typeof parseProcessRows;
|
|
84
|
+
toNonNegativeInteger: typeof toNonNegativeInteger;
|
|
85
|
+
toPositiveInteger: typeof toPositiveInteger;
|
|
86
|
+
};
|
|
87
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type SafeParseSchema, type SdkValidationFactory } from './tidas-sdk-validation.js';
|
|
2
|
+
type JsonObject = Record<string, unknown>;
|
|
3
|
+
export type ProcessPayloadValidationIssue = {
|
|
4
|
+
path: string;
|
|
5
|
+
message: string;
|
|
6
|
+
code: string;
|
|
7
|
+
};
|
|
8
|
+
export type ProcessPayloadValidationResult = {
|
|
9
|
+
ok: true;
|
|
10
|
+
validator: string;
|
|
11
|
+
issue_count: 0;
|
|
12
|
+
issues: [];
|
|
13
|
+
} | {
|
|
14
|
+
ok: false;
|
|
15
|
+
validator: string;
|
|
16
|
+
issue_count: number;
|
|
17
|
+
issues: ProcessPayloadValidationIssue[];
|
|
18
|
+
};
|
|
19
|
+
declare function getProcessFactory(sdk?: {
|
|
20
|
+
createProcess?: unknown;
|
|
21
|
+
}): SdkValidationFactory | null;
|
|
22
|
+
export declare function summarizeProcessPayloadValidation(result: ProcessPayloadValidationResult): string;
|
|
23
|
+
export declare function validateProcessPayload(payload: JsonObject, schema?: SafeParseSchema, createEntity?: SdkValidationFactory | null): ProcessPayloadValidationResult;
|
|
24
|
+
export declare const __testInternals: {
|
|
25
|
+
getProcessFactory: typeof getProcessFactory;
|
|
26
|
+
};
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { type ProcessPayloadValidationResult } from './process-payload-validation.js';
|
|
2
|
+
type JsonRecord = Record<string, unknown>;
|
|
3
|
+
type DatasetOrigin = 'exports' | 'state';
|
|
4
|
+
type GateSeverity = 'info' | 'warning' | 'blocker';
|
|
5
|
+
type ProcessGateFinding = {
|
|
6
|
+
code: string;
|
|
7
|
+
severity: GateSeverity;
|
|
8
|
+
methodology_rule_id: string | null;
|
|
9
|
+
message: string;
|
|
10
|
+
path: string;
|
|
11
|
+
dataset_index: number;
|
|
12
|
+
dataset_id: string | null;
|
|
13
|
+
dataset_version: string | null;
|
|
14
|
+
};
|
|
15
|
+
export type ProcessPublishBuildLayout = {
|
|
16
|
+
runId: string;
|
|
17
|
+
runRoot: string;
|
|
18
|
+
collectionDir: string;
|
|
19
|
+
cacheDir: string;
|
|
20
|
+
manifestsDir: string;
|
|
21
|
+
reportsDir: string;
|
|
22
|
+
processExportsDir: string;
|
|
23
|
+
sourceExportsDir: string;
|
|
24
|
+
publishStageDir: string;
|
|
25
|
+
statePath: string;
|
|
26
|
+
handoffSummaryPath: string;
|
|
27
|
+
runManifestPath: string;
|
|
28
|
+
invocationIndexPath: string;
|
|
29
|
+
publishBundlePath: string;
|
|
30
|
+
publishRequestPath: string;
|
|
31
|
+
publishIntentPath: string;
|
|
32
|
+
processSchemaGatePath: string;
|
|
33
|
+
reportPath: string;
|
|
34
|
+
};
|
|
35
|
+
export type ProcessPublishSchemaGateReport = {
|
|
36
|
+
schema_version: 1;
|
|
37
|
+
generated_at_utc: string;
|
|
38
|
+
status: 'passed' | 'blocked';
|
|
39
|
+
ruleset_id: string;
|
|
40
|
+
ruleset_version: string;
|
|
41
|
+
ruleset_source_version: string;
|
|
42
|
+
ruleset_rule_ids: string[];
|
|
43
|
+
validator: string;
|
|
44
|
+
counts: {
|
|
45
|
+
total: number;
|
|
46
|
+
valid: number;
|
|
47
|
+
invalid: number;
|
|
48
|
+
};
|
|
49
|
+
findings: ProcessGateFinding[];
|
|
50
|
+
blockers: ProcessGateFinding[];
|
|
51
|
+
next_action: 'write_publish_bundle' | 'fix_process_payloads';
|
|
52
|
+
processes: Array<{
|
|
53
|
+
index: number;
|
|
54
|
+
id: string | null;
|
|
55
|
+
version: string | null;
|
|
56
|
+
ok: boolean;
|
|
57
|
+
issue_count: number;
|
|
58
|
+
issues: ProcessPayloadValidationResult['issues'];
|
|
59
|
+
}>;
|
|
60
|
+
};
|
|
61
|
+
export type ProcessPublishBuildReport = {
|
|
62
|
+
schema_version: 1;
|
|
63
|
+
generated_at_utc: string;
|
|
64
|
+
status: 'prepared_local_process_publish_bundle';
|
|
65
|
+
run_id: string;
|
|
66
|
+
run_root: string;
|
|
67
|
+
request_id: string | null;
|
|
68
|
+
state_summary: {
|
|
69
|
+
build_status: string | null;
|
|
70
|
+
next_stage: string | null;
|
|
71
|
+
stop_after: string | null;
|
|
72
|
+
};
|
|
73
|
+
dataset_origins: {
|
|
74
|
+
processes: DatasetOrigin;
|
|
75
|
+
sources: DatasetOrigin;
|
|
76
|
+
};
|
|
77
|
+
counts: {
|
|
78
|
+
processes: number;
|
|
79
|
+
sources: number;
|
|
80
|
+
relations: number;
|
|
81
|
+
};
|
|
82
|
+
publish_defaults: {
|
|
83
|
+
commit: boolean;
|
|
84
|
+
publish_lifecyclemodels: boolean;
|
|
85
|
+
publish_processes: boolean;
|
|
86
|
+
publish_sources: boolean;
|
|
87
|
+
publish_relations: boolean;
|
|
88
|
+
publish_process_build_runs: boolean;
|
|
89
|
+
relation_mode: 'local_manifest_only';
|
|
90
|
+
};
|
|
91
|
+
files: {
|
|
92
|
+
state: string;
|
|
93
|
+
handoff_summary: string;
|
|
94
|
+
run_manifest: string;
|
|
95
|
+
invocation_index: string;
|
|
96
|
+
publish_bundle: string;
|
|
97
|
+
publish_request: string;
|
|
98
|
+
publish_intent: string;
|
|
99
|
+
process_schema_gate: string;
|
|
100
|
+
report: string;
|
|
101
|
+
};
|
|
102
|
+
next_actions: string[];
|
|
103
|
+
};
|
|
104
|
+
export type RunProcessPublishBuildOptions = {
|
|
105
|
+
runId?: string;
|
|
106
|
+
runDir?: string | null;
|
|
107
|
+
now?: Date;
|
|
108
|
+
cwd?: string;
|
|
109
|
+
validateProcessPayloadImpl?: (payload: JsonRecord) => ProcessPayloadValidationResult;
|
|
110
|
+
};
|
|
111
|
+
declare function buildLayout(runRoot: string, runId: string): ProcessPublishBuildLayout;
|
|
112
|
+
declare function resolveLayout(options: RunProcessPublishBuildOptions): ProcessPublishBuildLayout;
|
|
113
|
+
declare function buildStateSummary(state: JsonRecord): ProcessPublishBuildReport['state_summary'];
|
|
114
|
+
declare function readDatasetArrayFromState(state: JsonRecord, key: 'process_datasets' | 'source_datasets'): JsonRecord[];
|
|
115
|
+
declare function collectCanonicalDatasets(layout: ProcessPublishBuildLayout, state: JsonRecord): {
|
|
116
|
+
processes: JsonRecord[];
|
|
117
|
+
processOrigin: DatasetOrigin;
|
|
118
|
+
sources: JsonRecord[];
|
|
119
|
+
sourceOrigin: DatasetOrigin;
|
|
120
|
+
};
|
|
121
|
+
declare function buildUpdatedState(state: JsonRecord, layout: ProcessPublishBuildLayout, counts: ProcessPublishBuildReport['counts'], datasetOrigins: ProcessPublishBuildReport['dataset_origins'], now: Date): JsonRecord;
|
|
122
|
+
declare function buildInvocationIndex(layout: ProcessPublishBuildLayout, invocationIndex: JsonRecord, options: RunProcessPublishBuildOptions, now: Date): JsonRecord;
|
|
123
|
+
declare function buildPublishRequest(): JsonRecord;
|
|
124
|
+
declare function buildPublishIntent(layout: ProcessPublishBuildLayout, counts: ProcessPublishBuildReport['counts']): JsonRecord;
|
|
125
|
+
declare function buildNextActions(layout: ProcessPublishBuildLayout): string[];
|
|
126
|
+
declare function buildReport(layout: ProcessPublishBuildLayout, state: JsonRecord, counts: ProcessPublishBuildReport['counts'], datasetOrigins: ProcessPublishBuildReport['dataset_origins'], publishDefaults: ProcessPublishBuildReport['publish_defaults'], now: Date): ProcessPublishBuildReport;
|
|
127
|
+
declare function buildProcessSchemaGateReport(processes: JsonRecord[], options: {
|
|
128
|
+
now: Date;
|
|
129
|
+
validateProcessPayloadImpl?: (payload: JsonRecord) => ProcessPayloadValidationResult;
|
|
130
|
+
}): ProcessPublishSchemaGateReport;
|
|
131
|
+
declare function assertProcessSchemaGatePassed(gate: ProcessPublishSchemaGateReport, layout: ProcessPublishBuildLayout): void;
|
|
132
|
+
export declare function runProcessPublishBuild(options: RunProcessPublishBuildOptions): Promise<ProcessPublishBuildReport>;
|
|
133
|
+
export declare const __testInternals: {
|
|
134
|
+
buildLayout: typeof buildLayout;
|
|
135
|
+
resolveLayout: typeof resolveLayout;
|
|
136
|
+
buildStateSummary: typeof buildStateSummary;
|
|
137
|
+
readDatasetArrayFromState: typeof readDatasetArrayFromState;
|
|
138
|
+
collectCanonicalDatasets: typeof collectCanonicalDatasets;
|
|
139
|
+
buildPublishRequest: typeof buildPublishRequest;
|
|
140
|
+
buildPublishIntent: typeof buildPublishIntent;
|
|
141
|
+
buildProcessSchemaGateReport: typeof buildProcessSchemaGateReport;
|
|
142
|
+
assertProcessSchemaGatePassed: typeof assertProcessSchemaGatePassed;
|
|
143
|
+
buildUpdatedState: typeof buildUpdatedState;
|
|
144
|
+
buildInvocationIndex: typeof buildInvocationIndex;
|
|
145
|
+
buildNextActions: typeof buildNextActions;
|
|
146
|
+
buildReport: typeof buildReport;
|
|
147
|
+
};
|
|
148
|
+
export {};
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
import type { FetchLike } from './http.js';
|
|
2
|
+
type JsonRecord = Record<string, unknown>;
|
|
3
|
+
type BaseInfoCheck = {
|
|
4
|
+
source_name_ok: boolean;
|
|
5
|
+
functional_unit_ok: boolean;
|
|
6
|
+
system_boundary_ok: boolean;
|
|
7
|
+
time_ok: boolean;
|
|
8
|
+
geo_ok: boolean;
|
|
9
|
+
tech_ok: boolean;
|
|
10
|
+
admin_ok: boolean;
|
|
11
|
+
completeness_score: number;
|
|
12
|
+
base_names: string[];
|
|
13
|
+
};
|
|
14
|
+
type ClassifiedExchange = {
|
|
15
|
+
classification: 'raw_material_input' | 'energy_input' | 'other_input' | 'product_output' | 'byproduct_output' | 'waste_output' | 'other_output' | 'other';
|
|
16
|
+
kinds: string[];
|
|
17
|
+
uoms: string[];
|
|
18
|
+
blob: string;
|
|
19
|
+
source_input_group: string | null;
|
|
20
|
+
source_output_group: string | null;
|
|
21
|
+
reference_flow: boolean;
|
|
22
|
+
};
|
|
23
|
+
type UnitIssue = {
|
|
24
|
+
flow_uuid: string;
|
|
25
|
+
current_unit: string;
|
|
26
|
+
suggested_unit: string;
|
|
27
|
+
basis: string;
|
|
28
|
+
confidence: string;
|
|
29
|
+
};
|
|
30
|
+
type ProcessQaRow = {
|
|
31
|
+
process_file: string;
|
|
32
|
+
raw_input: number;
|
|
33
|
+
product: number;
|
|
34
|
+
byproduct: number;
|
|
35
|
+
waste: number;
|
|
36
|
+
energy_excluded: number;
|
|
37
|
+
delta: number;
|
|
38
|
+
relative_deviation: number | null;
|
|
39
|
+
};
|
|
40
|
+
type ProcessQaTotals = {
|
|
41
|
+
raw_input: number;
|
|
42
|
+
product_plus_byproduct_plus_waste: number;
|
|
43
|
+
delta: number;
|
|
44
|
+
relative_deviation: number | null;
|
|
45
|
+
energy_excluded: number;
|
|
46
|
+
};
|
|
47
|
+
type ProcessQaFinding = {
|
|
48
|
+
process_file: string;
|
|
49
|
+
severity: 'info' | 'warning' | 'blocker';
|
|
50
|
+
code: string;
|
|
51
|
+
methodology_rule_id: string | null;
|
|
52
|
+
message: string;
|
|
53
|
+
source: 'rule';
|
|
54
|
+
evidence?: JsonRecord;
|
|
55
|
+
};
|
|
56
|
+
type ProcessRulesetGate = {
|
|
57
|
+
status: 'passed' | 'needs_review' | 'blocked';
|
|
58
|
+
ruleset_id: 'process-authoring/strict';
|
|
59
|
+
ruleset_version: '1';
|
|
60
|
+
ruleset_source_version: string;
|
|
61
|
+
ruleset_rule_ids: string[];
|
|
62
|
+
counts: {
|
|
63
|
+
findings: number;
|
|
64
|
+
blockers: number;
|
|
65
|
+
};
|
|
66
|
+
blockers: ProcessQaFinding[];
|
|
67
|
+
next_action: 'continue' | 'review_findings_in_foundry' | 'fix_blockers';
|
|
68
|
+
};
|
|
69
|
+
type ProcessSummaryForLlm = {
|
|
70
|
+
process_file: string;
|
|
71
|
+
base_names: string[];
|
|
72
|
+
base_checks: {
|
|
73
|
+
source_name_ok: boolean;
|
|
74
|
+
functional_unit_ok: boolean;
|
|
75
|
+
system_boundary_ok: boolean;
|
|
76
|
+
time_ok: boolean;
|
|
77
|
+
geo_ok: boolean;
|
|
78
|
+
tech_ok: boolean;
|
|
79
|
+
admin_ok: boolean;
|
|
80
|
+
};
|
|
81
|
+
balance: {
|
|
82
|
+
raw_in: number;
|
|
83
|
+
product: number;
|
|
84
|
+
byproduct: number;
|
|
85
|
+
waste: number;
|
|
86
|
+
energy_excluded: number;
|
|
87
|
+
relative_deviation: number | null;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
export type ProcessQaLlmResult = {
|
|
91
|
+
enabled: false;
|
|
92
|
+
reason: string;
|
|
93
|
+
} | {
|
|
94
|
+
enabled: true;
|
|
95
|
+
ok: true;
|
|
96
|
+
result: JsonRecord;
|
|
97
|
+
} | {
|
|
98
|
+
enabled: true;
|
|
99
|
+
ok: false;
|
|
100
|
+
reason: string;
|
|
101
|
+
raw?: string;
|
|
102
|
+
};
|
|
103
|
+
export type ProcessQaSummary = {
|
|
104
|
+
run_id: string;
|
|
105
|
+
logic_version: string;
|
|
106
|
+
process_count: number;
|
|
107
|
+
totals: ProcessQaTotals;
|
|
108
|
+
ruleset_gate?: ProcessRulesetGate;
|
|
109
|
+
llm: ProcessQaLlmResult;
|
|
110
|
+
policy_decision_owner: 'foundry';
|
|
111
|
+
qa_mode: 'deterministic_qa_report';
|
|
112
|
+
};
|
|
113
|
+
export type ProcessQaReport = {
|
|
114
|
+
schema_version: 1;
|
|
115
|
+
generated_at_utc: string;
|
|
116
|
+
status: 'completed_local_process_qa';
|
|
117
|
+
run_id: string;
|
|
118
|
+
run_root: string;
|
|
119
|
+
rows_file: string;
|
|
120
|
+
out_dir: string;
|
|
121
|
+
input_mode: 'rows_file' | 'run_root';
|
|
122
|
+
effective_processes_dir: string;
|
|
123
|
+
logic_version: string;
|
|
124
|
+
ruleset_id?: 'process-authoring/strict';
|
|
125
|
+
ruleset_version?: '1';
|
|
126
|
+
ruleset_source_version?: string;
|
|
127
|
+
ruleset_rule_ids?: string[];
|
|
128
|
+
process_count: number;
|
|
129
|
+
totals: ProcessQaTotals;
|
|
130
|
+
rule_finding_count?: number;
|
|
131
|
+
blocker_count?: number;
|
|
132
|
+
ruleset_gate?: ProcessRulesetGate;
|
|
133
|
+
policy_decision_owner: 'foundry';
|
|
134
|
+
qa_mode: 'deterministic_qa_report';
|
|
135
|
+
files: {
|
|
136
|
+
qa_input_summary: string;
|
|
137
|
+
materialization_summary: string | null;
|
|
138
|
+
rule_findings?: string;
|
|
139
|
+
ruleset_gate?: string;
|
|
140
|
+
qa_zh: string;
|
|
141
|
+
qa_en: string;
|
|
142
|
+
timing: string;
|
|
143
|
+
unit_issue_log: string;
|
|
144
|
+
summary: string;
|
|
145
|
+
report: string;
|
|
146
|
+
};
|
|
147
|
+
llm: ProcessQaLlmResult;
|
|
148
|
+
};
|
|
149
|
+
export type RunProcessQaOptions = {
|
|
150
|
+
rowsFile?: string;
|
|
151
|
+
runRoot?: string;
|
|
152
|
+
runId?: string;
|
|
153
|
+
outDir: string;
|
|
154
|
+
startTs?: string;
|
|
155
|
+
endTs?: string;
|
|
156
|
+
logicVersion?: string;
|
|
157
|
+
enableLlm?: boolean;
|
|
158
|
+
llmModel?: string;
|
|
159
|
+
llmMaxProcesses?: number;
|
|
160
|
+
env?: NodeJS.ProcessEnv;
|
|
161
|
+
fetchImpl?: FetchLike;
|
|
162
|
+
now?: () => Date;
|
|
163
|
+
};
|
|
164
|
+
declare function requiredNonEmpty(value: string | undefined, label: string, code: string): string;
|
|
165
|
+
declare function textFromValue(value: unknown): string;
|
|
166
|
+
declare function toNumber(value: unknown): number;
|
|
167
|
+
declare function deepGet(value: unknown, pathParts: string[]): unknown;
|
|
168
|
+
declare function hasNonEmpty(value: unknown): boolean;
|
|
169
|
+
declare function extractBaseNames(processPayload: JsonRecord): [boolean, string[]];
|
|
170
|
+
declare function classifyExchange(exchange: JsonRecord, referenceFlowId?: string | null): ClassifiedExchange;
|
|
171
|
+
declare function unitIssueCheck(exchange: JsonRecord, uoms: string[], blob: string): UnitIssue[];
|
|
172
|
+
declare function hasNumericAmount(exchange: JsonRecord): boolean;
|
|
173
|
+
declare function createProcessQaFinding(options: {
|
|
174
|
+
processFile: string;
|
|
175
|
+
severity: ProcessQaFinding['severity'];
|
|
176
|
+
code: string;
|
|
177
|
+
message: string;
|
|
178
|
+
evidence?: JsonRecord;
|
|
179
|
+
}): ProcessQaFinding;
|
|
180
|
+
declare function reviewFindingsForBase(processFile: string, base: BaseInfoCheck): ProcessQaFinding[];
|
|
181
|
+
declare function processRulesetGate(findings: ProcessQaFinding[]): ProcessRulesetGate;
|
|
182
|
+
declare function baseInfoCheck(processPayload: JsonRecord): BaseInfoCheck;
|
|
183
|
+
declare function unwrapProcessPayload(value: unknown, filePath: string): JsonRecord;
|
|
184
|
+
declare function buildPrompt(processSummaries: ProcessSummaryForLlm[]): string;
|
|
185
|
+
declare function parseLlmJsonOutput(output: string): JsonRecord | null;
|
|
186
|
+
declare function runOptionalLlmReview(processSummaries: ProcessSummaryForLlm[], options: {
|
|
187
|
+
enableLlm: boolean;
|
|
188
|
+
llmModel: string | undefined;
|
|
189
|
+
env: NodeJS.ProcessEnv;
|
|
190
|
+
fetchImpl: FetchLike;
|
|
191
|
+
outDir: string;
|
|
192
|
+
}): Promise<ProcessQaLlmResult>;
|
|
193
|
+
declare function renderZhReview(options: {
|
|
194
|
+
runId: string;
|
|
195
|
+
logicVersion: string;
|
|
196
|
+
baseRows: Array<[string, BaseInfoCheck]>;
|
|
197
|
+
rows: ProcessQaRow[];
|
|
198
|
+
totals: ProcessQaTotals;
|
|
199
|
+
llmResult: ProcessQaLlmResult;
|
|
200
|
+
evidenceStrong: string[];
|
|
201
|
+
evidenceWeak: string[];
|
|
202
|
+
}): string;
|
|
203
|
+
declare function renderEnReview(options: {
|
|
204
|
+
runId: string;
|
|
205
|
+
logicVersion: string;
|
|
206
|
+
baseRows: Array<[string, BaseInfoCheck]>;
|
|
207
|
+
rows: ProcessQaRow[];
|
|
208
|
+
totals: ProcessQaTotals;
|
|
209
|
+
evidenceStrong: string[];
|
|
210
|
+
evidenceWeak: string[];
|
|
211
|
+
}): string;
|
|
212
|
+
declare function renderTiming(options: {
|
|
213
|
+
runId: string;
|
|
214
|
+
startTs: string | undefined;
|
|
215
|
+
endTs: string | undefined;
|
|
216
|
+
processCount: number;
|
|
217
|
+
}): string;
|
|
218
|
+
declare function renderUnitIssues(runId: string, unitIssues: UnitIssue[]): string;
|
|
219
|
+
export declare function runProcessQa(options: RunProcessQaOptions): Promise<ProcessQaReport>;
|
|
220
|
+
export declare const __testInternals: {
|
|
221
|
+
requiredNonEmpty: typeof requiredNonEmpty;
|
|
222
|
+
textFromValue: typeof textFromValue;
|
|
223
|
+
toNumber: typeof toNumber;
|
|
224
|
+
deepGet: typeof deepGet;
|
|
225
|
+
hasNonEmpty: typeof hasNonEmpty;
|
|
226
|
+
extractBaseNames: typeof extractBaseNames;
|
|
227
|
+
classifyExchange: typeof classifyExchange;
|
|
228
|
+
unitIssueCheck: typeof unitIssueCheck;
|
|
229
|
+
hasNumericAmount: typeof hasNumericAmount;
|
|
230
|
+
createProcessQaFinding: typeof createProcessQaFinding;
|
|
231
|
+
reviewFindingsForBase: typeof reviewFindingsForBase;
|
|
232
|
+
processRulesetGate: typeof processRulesetGate;
|
|
233
|
+
baseInfoCheck: typeof baseInfoCheck;
|
|
234
|
+
unwrapProcessPayload: typeof unwrapProcessPayload;
|
|
235
|
+
buildPrompt: typeof buildPrompt;
|
|
236
|
+
parseLlmJsonOutput: typeof parseLlmJsonOutput;
|
|
237
|
+
runOptionalLlmReview: typeof runOptionalLlmReview;
|
|
238
|
+
renderZhReview: typeof renderZhReview;
|
|
239
|
+
renderEnReview: typeof renderEnReview;
|
|
240
|
+
renderTiming: typeof renderTiming;
|
|
241
|
+
renderUnitIssues: typeof renderUnitIssues;
|
|
242
|
+
};
|
|
243
|
+
export {};
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import type { FetchLike, ResponseLike } from './http.js';
|
|
2
|
+
import { type ProcessStateAwareWriteResult, type SyncStateAwareProcessRecordOptions } from './process-save-draft.js';
|
|
3
|
+
import { type ProcessPayloadValidationResult } from './process-payload-validation.js';
|
|
4
|
+
type JsonObject = Record<string, unknown>;
|
|
5
|
+
type ProcessManifestRow = {
|
|
6
|
+
id: string;
|
|
7
|
+
version: string;
|
|
8
|
+
modified_at: string | null;
|
|
9
|
+
state_code: number | null;
|
|
10
|
+
model_id: string | null;
|
|
11
|
+
};
|
|
12
|
+
type LatestReferenceRow = {
|
|
13
|
+
id: string;
|
|
14
|
+
version: string;
|
|
15
|
+
json: JsonObject;
|
|
16
|
+
modified_at: string | null;
|
|
17
|
+
state_code: number | null;
|
|
18
|
+
user_id: string | null;
|
|
19
|
+
team_id: string | null;
|
|
20
|
+
};
|
|
21
|
+
type LatestReferenceCacheEntry = {
|
|
22
|
+
row: LatestReferenceRow | null;
|
|
23
|
+
count: number;
|
|
24
|
+
error?: string;
|
|
25
|
+
};
|
|
26
|
+
type ReferenceNode = JsonObject & {
|
|
27
|
+
'@refObjectId': string;
|
|
28
|
+
'@version': string;
|
|
29
|
+
'@type': string;
|
|
30
|
+
};
|
|
31
|
+
type CollectedReference = {
|
|
32
|
+
node: ReferenceNode;
|
|
33
|
+
path: string;
|
|
34
|
+
};
|
|
35
|
+
type TouchedReference = {
|
|
36
|
+
id: string;
|
|
37
|
+
type: string;
|
|
38
|
+
from_version: string;
|
|
39
|
+
to_version: string;
|
|
40
|
+
path: string;
|
|
41
|
+
};
|
|
42
|
+
type UnresolvedReference = {
|
|
43
|
+
id: string;
|
|
44
|
+
type: string;
|
|
45
|
+
version: string;
|
|
46
|
+
reason: string;
|
|
47
|
+
};
|
|
48
|
+
type UpdateSummary = {
|
|
49
|
+
version_updates: number;
|
|
50
|
+
description_updates: number;
|
|
51
|
+
touched_refs: TouchedReference[];
|
|
52
|
+
unresolved_refs: UnresolvedReference[];
|
|
53
|
+
};
|
|
54
|
+
type RefreshManifest = {
|
|
55
|
+
schema_version: 1;
|
|
56
|
+
generated_at_utc: string;
|
|
57
|
+
user_id: string;
|
|
58
|
+
masked_user_email: string;
|
|
59
|
+
source: 'current_user_processes';
|
|
60
|
+
order: 'modified_at.desc,id.asc';
|
|
61
|
+
page_size: number;
|
|
62
|
+
count: number;
|
|
63
|
+
rows: ProcessManifestRow[];
|
|
64
|
+
};
|
|
65
|
+
export type ProcessRefreshReferencesReport = {
|
|
66
|
+
schema_version: 1;
|
|
67
|
+
generated_at_utc: string;
|
|
68
|
+
status: 'completed_process_reference_refresh' | 'completed_process_reference_refresh_with_errors';
|
|
69
|
+
out_dir: string;
|
|
70
|
+
mode: 'dry_run' | 'apply';
|
|
71
|
+
user_id: string;
|
|
72
|
+
masked_user_email: string;
|
|
73
|
+
counts: {
|
|
74
|
+
manifest: number;
|
|
75
|
+
selected: number;
|
|
76
|
+
already_completed: number;
|
|
77
|
+
pending: number;
|
|
78
|
+
saved: number;
|
|
79
|
+
dry_run: number;
|
|
80
|
+
skipped: number;
|
|
81
|
+
validation_blocked: number;
|
|
82
|
+
errors: number;
|
|
83
|
+
};
|
|
84
|
+
files: {
|
|
85
|
+
manifest: string;
|
|
86
|
+
progress_jsonl: string;
|
|
87
|
+
errors_jsonl: string;
|
|
88
|
+
validation_blockers_jsonl: string;
|
|
89
|
+
summary_json: string;
|
|
90
|
+
report_md: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
export type RunProcessRefreshReferencesOptions = {
|
|
94
|
+
outDir: string;
|
|
95
|
+
apply?: boolean | null;
|
|
96
|
+
reuseManifest?: boolean | null;
|
|
97
|
+
limit?: number | null;
|
|
98
|
+
pageSize?: number | null;
|
|
99
|
+
concurrency?: number | null;
|
|
100
|
+
env?: NodeJS.ProcessEnv;
|
|
101
|
+
fetchImpl?: FetchLike;
|
|
102
|
+
timeoutMs?: number;
|
|
103
|
+
maxRetries?: number;
|
|
104
|
+
now?: Date;
|
|
105
|
+
validateProcessPayloadImpl?: (payload: JsonObject) => ProcessPayloadValidationResult;
|
|
106
|
+
syncStateAwareProcessRecordImpl?: (options: SyncStateAwareProcessRecordOptions) => Promise<ProcessStateAwareWriteResult>;
|
|
107
|
+
};
|
|
108
|
+
declare function normalizeReferenceType(type: string): string;
|
|
109
|
+
declare function tableForReferenceType(type: string): string | null;
|
|
110
|
+
declare function recordKey(row: Pick<ProcessManifestRow, 'id' | 'version'>): string;
|
|
111
|
+
declare function parseContentRangeTotal(value: string | null): number | null;
|
|
112
|
+
declare function compareVersions(left: string, right: string): number;
|
|
113
|
+
declare function getLangList(value: unknown): JsonObject[];
|
|
114
|
+
declare function getLangText(value: unknown, lang: string | null): string;
|
|
115
|
+
declare function genFlowName(name: JsonObject | null, lang: string): string;
|
|
116
|
+
declare function genFlowNameJson(name: JsonObject | null): JsonObject[];
|
|
117
|
+
declare function genProcessName(name: JsonObject | null, lang: string): string;
|
|
118
|
+
declare function genProcessNameJson(name: JsonObject | null): JsonObject[];
|
|
119
|
+
declare function normalizeDatasetPayload(payload: unknown, label: string): JsonObject;
|
|
120
|
+
declare function getShortDescription(payload: JsonObject, type: string): JsonObject[];
|
|
121
|
+
declare function parseJsonResponse(response: ResponseLike, label: string): Promise<unknown>;
|
|
122
|
+
declare function fetchJsonWithRetry(options: {
|
|
123
|
+
url: string;
|
|
124
|
+
init: RequestInit;
|
|
125
|
+
label: string;
|
|
126
|
+
fetchImpl: FetchLike;
|
|
127
|
+
timeoutMs: number;
|
|
128
|
+
maxRetries: number;
|
|
129
|
+
}): Promise<{
|
|
130
|
+
status: number;
|
|
131
|
+
headers: Headers;
|
|
132
|
+
body: unknown;
|
|
133
|
+
}>;
|
|
134
|
+
declare function normalizeManifestRow(value: unknown): ProcessManifestRow | null;
|
|
135
|
+
declare function readManifest(filePath: string): RefreshManifest | null;
|
|
136
|
+
declare function readCompleted(progressFile: string, applyMode: boolean): Set<string>;
|
|
137
|
+
declare function collectRefs(root: JsonObject): CollectedReference[];
|
|
138
|
+
declare function fetchLatestRefs(options: {
|
|
139
|
+
projectBaseUrl: string;
|
|
140
|
+
publishableKey: string;
|
|
141
|
+
accessToken: string;
|
|
142
|
+
refs: CollectedReference[];
|
|
143
|
+
cache: Map<string, LatestReferenceCacheEntry>;
|
|
144
|
+
fetchImpl: FetchLike;
|
|
145
|
+
timeoutMs: number;
|
|
146
|
+
maxRetries: number;
|
|
147
|
+
}): Promise<void>;
|
|
148
|
+
declare function updateProcessJson(payload: JsonObject, refs: CollectedReference[], cache: Map<string, LatestReferenceCacheEntry>): UpdateSummary;
|
|
149
|
+
declare function appendReportHeader(reportFile: string, context: {
|
|
150
|
+
mode: 'dry_run' | 'apply';
|
|
151
|
+
generatedAtUtc: string;
|
|
152
|
+
manifestCount: number;
|
|
153
|
+
}): void;
|
|
154
|
+
export declare function runProcessRefreshReferences(options: RunProcessRefreshReferencesOptions): Promise<ProcessRefreshReferencesReport>;
|
|
155
|
+
export declare const __testInternals: {
|
|
156
|
+
appendReportHeader: typeof appendReportHeader;
|
|
157
|
+
collectRefs: typeof collectRefs;
|
|
158
|
+
compareVersions: typeof compareVersions;
|
|
159
|
+
fetchLatestRefs: typeof fetchLatestRefs;
|
|
160
|
+
fetchJsonWithRetry: typeof fetchJsonWithRetry;
|
|
161
|
+
genFlowName: typeof genFlowName;
|
|
162
|
+
genFlowNameJson: typeof genFlowNameJson;
|
|
163
|
+
genProcessName: typeof genProcessName;
|
|
164
|
+
genProcessNameJson: typeof genProcessNameJson;
|
|
165
|
+
getLangList: typeof getLangList;
|
|
166
|
+
getLangText: typeof getLangText;
|
|
167
|
+
getShortDescription: typeof getShortDescription;
|
|
168
|
+
normalizeReferenceType: typeof normalizeReferenceType;
|
|
169
|
+
normalizeDatasetPayload: typeof normalizeDatasetPayload;
|
|
170
|
+
normalizeManifestRow: typeof normalizeManifestRow;
|
|
171
|
+
parseJsonResponse: typeof parseJsonResponse;
|
|
172
|
+
parseContentRangeTotal: typeof parseContentRangeTotal;
|
|
173
|
+
readCompleted: typeof readCompleted;
|
|
174
|
+
readManifest: typeof readManifest;
|
|
175
|
+
recordKey: typeof recordKey;
|
|
176
|
+
tableForReferenceType: typeof tableForReferenceType;
|
|
177
|
+
updateProcessJson: typeof updateProcessJson;
|
|
178
|
+
};
|
|
179
|
+
export {};
|