@vcp-dev/contracts 0.10.27 → 0.10.28
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.
|
@@ -689,6 +689,11 @@ export declare const SiteEditObjectDetailSchema: z.ZodObject<{
|
|
|
689
689
|
}, z.core.$strict>;
|
|
690
690
|
key: z.ZodString;
|
|
691
691
|
tag: z.ZodString;
|
|
692
|
+
linkSourceKind: z.ZodOptional<z.ZodEnum<{
|
|
693
|
+
unsupported: "unsupported";
|
|
694
|
+
"native-anchor": "native-anchor";
|
|
695
|
+
"next-link": "next-link";
|
|
696
|
+
}>>;
|
|
692
697
|
componentName: z.ZodString;
|
|
693
698
|
sourceFile: z.ZodString;
|
|
694
699
|
sourceLocator: z.ZodOptional<z.ZodObject<{
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* 由 release-edit-engine-packages.ts 在 bump 版本时自动更新。
|
|
7
7
|
*/
|
|
8
|
-
export declare const CURRENT_EDIT_ENGINE_VERSION = "0.10.
|
|
8
|
+
export declare const CURRENT_EDIT_ENGINE_VERSION = "0.10.28";
|
|
9
9
|
export declare const EDIT_ENGINE_VERSION_HEADER = "x-vcp-edit-engine-version";
|
|
10
10
|
export declare const EDIT_ENGINE_VERSION_SOURCE_HEADER = "x-vcp-edit-engine-version-source";
|
|
11
11
|
export type EditEngineVersionSource = "explicit" | "fallback_current" | "system_current";
|
|
@@ -1124,10 +1124,27 @@ export type SitePublishWorkflowQualityResponse = z.infer<typeof SitePublishWorkf
|
|
|
1124
1124
|
export declare function getSitePublishRepairItems(qualityResult: VcpQualityResult): SitePublishRepairInputItem[];
|
|
1125
1125
|
export declare function isSitePublishRepairResultSuccessful(expectedItems: readonly SitePublishRepairInputItem[], repairResult: SitePublishRepairResult): boolean;
|
|
1126
1126
|
export declare function buildFinalSitePublishQualityResult(qualityResult: VcpQualityResult, _legacyRepairResult?: SitePublishRepairResult): VcpQualityResult | null;
|
|
1127
|
-
export declare
|
|
1127
|
+
export declare const QualityCheckOutcomeSchema: z.ZodEnum<{
|
|
1128
|
+
failed: "failed";
|
|
1129
|
+
not_checked: "not_checked";
|
|
1130
|
+
passed: "passed";
|
|
1131
|
+
checking: "checking";
|
|
1132
|
+
not_passed: "not_passed";
|
|
1133
|
+
}>;
|
|
1134
|
+
export type QualityCheckOutcome = z.infer<typeof QualityCheckOutcomeSchema>;
|
|
1135
|
+
type QualityCheckEvidence = {
|
|
1136
|
+
status: string;
|
|
1137
|
+
score: number;
|
|
1138
|
+
total_score: number;
|
|
1139
|
+
check_result?: unknown;
|
|
1140
|
+
result_text?: string;
|
|
1141
|
+
};
|
|
1142
|
+
export declare function getQualityCheckOutcome(item: QualityCheckEvidence): QualityCheckOutcome;
|
|
1143
|
+
export declare function isSitePublishQualityItemIssue(item: QualityCheckEvidence): boolean;
|
|
1128
1144
|
export interface SitePublishSafetyAssessment {
|
|
1129
1145
|
status: "passed" | "blocked" | "unavailable";
|
|
1130
1146
|
issueCount: number;
|
|
1131
1147
|
}
|
|
1132
1148
|
/** Current Crew item outcomes are authoritative, including deficits above the dimension threshold. */
|
|
1133
1149
|
export declare function getSitePublishSafetyAssessment(qualityResult?: VcpQualityResult | null): SitePublishSafetyAssessment;
|
|
1150
|
+
export {};
|
|
@@ -38,6 +38,8 @@ export declare const ERROR_COPY: {
|
|
|
38
38
|
readonly FILL_IN_TARGET_NOT_OMITTED: "One of the selected items is no longer listed as missing. Reload the omissions list and try again.";
|
|
39
39
|
readonly FILL_IN_TARGET_MODIFIED: "One of the selected items was changed or removed after generation, so it was not filled in. Your edits are kept.";
|
|
40
40
|
readonly WORKSPACE_ITERATION_QUALITY_GATE_FAILED: "Quality check failed. The change was rolled back; try a smaller or more specific request.";
|
|
41
|
+
readonly WORKSPACE_RESOURCE_MATERIALIZATION_FAILED: "The resource couldn't be prepared. Check its file format, dependencies, and target paths before trying again.";
|
|
42
|
+
readonly DESIGNER_PAGE_RESOURCE_INCOMPATIBLE: "This template contains files or dependencies the page editor doesn't support. Choose another template or adapt the resource package first.";
|
|
41
43
|
readonly WORKSPACE_SOCKET_DEAD: "The workspace connection was lost. Please retry.";
|
|
42
44
|
readonly WORKSPACE_RUN_CANCELLED: "The run was cancelled.";
|
|
43
45
|
readonly WORKSPACE_RUN_ABANDONED: "This run was interrupted and did not finish. Please try again.";
|