@vcp-dev/contracts 0.10.24 → 0.10.25

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.
@@ -277,8 +277,7 @@ export declare const LauncherPromptTemplateApplyRequestSchema: z.ZodObject<{
277
277
  seoKeywords: z.ZodOptional<z.ZodArray<z.ZodObject<{
278
278
  id: z.ZodString;
279
279
  keyword: z.ZodString;
280
- business_id: z.ZodString;
281
- business_name: z.ZodString;
280
+ business_ids: z.ZodArray<z.ZodString>;
282
281
  category: z.ZodEnum<{
283
282
  产品: "产品";
284
283
  "\u90E8\u4EF6/\u8017\u6750": "部件/耗材";
@@ -288,19 +287,8 @@ export declare const LauncherPromptTemplateApplyRequestSchema: z.ZodObject<{
288
287
  "\u8D44\u8D28/\u80FD\u529B": "资质/能力";
289
288
  }>;
290
289
  selling_points: z.ZodString;
291
- section_id: z.ZodString;
292
- content_usage: z.ZodEnum<{
293
- product: "product";
294
- category: "category";
295
- solution: "solution";
296
- service: "service";
297
- capability: "capability";
298
- article: "article";
299
- faq: "faq";
300
- }>;
301
290
  intent: z.ZodString;
302
291
  semantic_group: z.ZodString;
303
- primary_business: z.ZodBoolean;
304
292
  monthly_volume: z.ZodNumber;
305
293
  keyword_difficulty: z.ZodNullable<z.ZodNumber>;
306
294
  variants: z.ZodArray<z.ZodString>;
@@ -469,8 +457,7 @@ export declare const LauncherPromptTemplateApplyResponseSchema: z.ZodObject<{
469
457
  seoKeywords: z.ZodOptional<z.ZodArray<z.ZodObject<{
470
458
  id: z.ZodString;
471
459
  keyword: z.ZodString;
472
- business_id: z.ZodString;
473
- business_name: z.ZodString;
460
+ business_ids: z.ZodArray<z.ZodString>;
474
461
  category: z.ZodEnum<{
475
462
  产品: "产品";
476
463
  "\u90E8\u4EF6/\u8017\u6750": "部件/耗材";
@@ -480,19 +467,8 @@ export declare const LauncherPromptTemplateApplyResponseSchema: z.ZodObject<{
480
467
  "\u8D44\u8D28/\u80FD\u529B": "资质/能力";
481
468
  }>;
482
469
  selling_points: z.ZodString;
483
- section_id: z.ZodString;
484
- content_usage: z.ZodEnum<{
485
- product: "product";
486
- category: "category";
487
- solution: "solution";
488
- service: "service";
489
- capability: "capability";
490
- article: "article";
491
- faq: "faq";
492
- }>;
493
470
  intent: z.ZodString;
494
471
  semantic_group: z.ZodString;
495
- primary_business: z.ZodBoolean;
496
472
  monthly_volume: z.ZodNumber;
497
473
  keyword_difficulty: z.ZodNullable<z.ZodNumber>;
498
474
  variants: z.ZodArray<z.ZodString>;
@@ -11,6 +11,26 @@ export declare const ProductSearchValueShapeSchema: z.ZodEnum<{
11
11
  category_list: "category_list";
12
12
  }>;
13
13
  export declare const ProductSearchRouteIdSchema: z.ZodString;
14
+ export declare const ProductSearchPrepareFailureReasonSchema: z.ZodEnum<{
15
+ base_snapshot_missing: "base_snapshot_missing";
16
+ route_not_found: "route_not_found";
17
+ cms_unavailable: "cms_unavailable";
18
+ product_application_not_found: "product_application_not_found";
19
+ not_a_configuration_change: "not_a_configuration_change";
20
+ tool_execution_failed: "tool_execution_failed";
21
+ }>;
22
+ export declare const ProductSearchPrepareFailureSchema: z.ZodObject<{
23
+ status: z.ZodLiteral<"failed">;
24
+ reason: z.ZodEnum<{
25
+ base_snapshot_missing: "base_snapshot_missing";
26
+ route_not_found: "route_not_found";
27
+ cms_unavailable: "cms_unavailable";
28
+ product_application_not_found: "product_application_not_found";
29
+ not_a_configuration_change: "not_a_configuration_change";
30
+ tool_execution_failed: "tool_execution_failed";
31
+ }>;
32
+ }, z.core.$strict>;
33
+ export type ProductSearchPrepareFailure = z.infer<typeof ProductSearchPrepareFailureSchema>;
14
34
  export declare const ProductSearchFilterMetaSchema: z.ZodObject<{
15
35
  minimum: z.ZodNumber;
16
36
  maximum: z.ZodNumber;
@@ -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.24";
8
+ export declare const CURRENT_EDIT_ENGINE_VERSION = "0.10.25";
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";
@@ -748,6 +748,7 @@ export declare const SitePublishWorkflowQualityDataSchema: z.ZodObject<{
748
748
  }, z.core.$strict>>;
749
749
  }, z.core.$strict>]>;
750
750
  }, z.core.$strict>>;
751
+ safety_gate_enabled: z.ZodOptional<z.ZodBoolean>;
751
752
  repair_result: z.ZodOptional<z.ZodObject<{
752
753
  items: z.ZodArray<z.ZodObject<{
753
754
  item_code: z.ZodString;
@@ -1006,6 +1007,7 @@ export declare const SitePublishWorkflowQualityResponseSchema: z.ZodObject<{
1006
1007
  }, z.core.$strict>>;
1007
1008
  }, z.core.$strict>]>;
1008
1009
  }, z.core.$strict>>;
1010
+ safety_gate_enabled: z.ZodOptional<z.ZodBoolean>;
1009
1011
  repair_result: z.ZodOptional<z.ZodObject<{
1010
1012
  items: z.ZodArray<z.ZodObject<{
1011
1013
  item_code: z.ZodString;
@@ -1122,3 +1124,10 @@ export type SitePublishWorkflowQualityResponse = z.infer<typeof SitePublishWorkf
1122
1124
  export declare function getSitePublishRepairItems(qualityResult: VcpQualityResult): SitePublishRepairInputItem[];
1123
1125
  export declare function isSitePublishRepairResultSuccessful(expectedItems: readonly SitePublishRepairInputItem[], repairResult: SitePublishRepairResult): boolean;
1124
1126
  export declare function buildFinalSitePublishQualityResult(qualityResult: VcpQualityResult, _legacyRepairResult?: SitePublishRepairResult): VcpQualityResult | null;
1127
+ export declare function isSitePublishQualityItemIssue(item: Pick<z.infer<typeof VcpQualityRemediationItemSchema>, "status" | "score" | "total_score">): boolean;
1128
+ export interface SitePublishSafetyAssessment {
1129
+ status: "passed" | "blocked" | "unavailable";
1130
+ issueCount: number;
1131
+ }
1132
+ /** Current Crew item outcomes are authoritative, including deficits above the dimension threshold. */
1133
+ export declare function getSitePublishSafetyAssessment(qualityResult?: VcpQualityResult | null): SitePublishSafetyAssessment;
@@ -11,8 +11,7 @@ export declare const Step5KeywordCategorySchema: z.ZodEnum<{
11
11
  export declare const Step5KeywordEntrySchema: z.ZodObject<{
12
12
  id: z.ZodString;
13
13
  keyword: z.ZodString;
14
- business_id: z.ZodString;
15
- business_name: z.ZodString;
14
+ business_ids: z.ZodArray<z.ZodString>;
16
15
  category: z.ZodEnum<{
17
16
  产品: "产品";
18
17
  "\u90E8\u4EF6/\u8017\u6750": "部件/耗材";
@@ -22,19 +21,8 @@ export declare const Step5KeywordEntrySchema: z.ZodObject<{
22
21
  "\u8D44\u8D28/\u80FD\u529B": "资质/能力";
23
22
  }>;
24
23
  selling_points: z.ZodString;
25
- section_id: z.ZodString;
26
- content_usage: z.ZodEnum<{
27
- product: "product";
28
- category: "category";
29
- solution: "solution";
30
- service: "service";
31
- capability: "capability";
32
- article: "article";
33
- faq: "faq";
34
- }>;
35
24
  intent: z.ZodString;
36
25
  semantic_group: z.ZodString;
37
- primary_business: z.ZodBoolean;
38
26
  monthly_volume: z.ZodNumber;
39
27
  keyword_difficulty: z.ZodNullable<z.ZodNumber>;
40
28
  variants: z.ZodArray<z.ZodString>;
@@ -54,8 +42,7 @@ export declare const Step5KeywordLibrarySchema: z.ZodObject<{
54
42
  entries: z.ZodArray<z.ZodObject<{
55
43
  id: z.ZodString;
56
44
  keyword: z.ZodString;
57
- business_id: z.ZodString;
58
- business_name: z.ZodString;
45
+ business_ids: z.ZodArray<z.ZodString>;
59
46
  category: z.ZodEnum<{
60
47
  产品: "产品";
61
48
  "\u90E8\u4EF6/\u8017\u6750": "部件/耗材";
@@ -65,19 +52,8 @@ export declare const Step5KeywordLibrarySchema: z.ZodObject<{
65
52
  "\u8D44\u8D28/\u80FD\u529B": "资质/能力";
66
53
  }>;
67
54
  selling_points: z.ZodString;
68
- section_id: z.ZodString;
69
- content_usage: z.ZodEnum<{
70
- product: "product";
71
- category: "category";
72
- solution: "solution";
73
- service: "service";
74
- capability: "capability";
75
- article: "article";
76
- faq: "faq";
77
- }>;
78
55
  intent: z.ZodString;
79
56
  semantic_group: z.ZodString;
80
- primary_business: z.ZodBoolean;
81
57
  monthly_volume: z.ZodNumber;
82
58
  keyword_difficulty: z.ZodNullable<z.ZodNumber>;
83
59
  variants: z.ZodArray<z.ZodString>;
@@ -87,8 +63,7 @@ export declare const Step5KeywordLibrarySchema: z.ZodObject<{
87
63
  candidates: z.ZodArray<z.ZodObject<{
88
64
  id: z.ZodString;
89
65
  keyword: z.ZodString;
90
- business_id: z.ZodString;
91
- business_name: z.ZodString;
66
+ business_ids: z.ZodArray<z.ZodString>;
92
67
  category: z.ZodEnum<{
93
68
  产品: "产品";
94
69
  "\u90E8\u4EF6/\u8017\u6750": "部件/耗材";
@@ -98,19 +73,8 @@ export declare const Step5KeywordLibrarySchema: z.ZodObject<{
98
73
  "\u8D44\u8D28/\u80FD\u529B": "资质/能力";
99
74
  }>;
100
75
  selling_points: z.ZodString;
101
- section_id: z.ZodString;
102
- content_usage: z.ZodEnum<{
103
- product: "product";
104
- category: "category";
105
- solution: "solution";
106
- service: "service";
107
- capability: "capability";
108
- article: "article";
109
- faq: "faq";
110
- }>;
111
76
  intent: z.ZodString;
112
77
  semantic_group: z.ZodString;
113
- primary_business: z.ZodBoolean;
114
78
  monthly_volume: z.ZodNumber;
115
79
  keyword_difficulty: z.ZodNullable<z.ZodNumber>;
116
80
  variants: z.ZodArray<z.ZodString>;
@@ -120,9 +84,34 @@ export declare const Step5KeywordLibrarySchema: z.ZodObject<{
120
84
  search_result_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
121
85
  }, z.core.$strict>;
122
86
  export type Step5KeywordLibrary = z.infer<typeof Step5KeywordLibrarySchema>;
87
+ export declare const Step5KeywordEntryEditSchema: z.ZodObject<{
88
+ entry_id: z.ZodString;
89
+ category: z.ZodEnum<{
90
+ 产品: "产品";
91
+ "\u90E8\u4EF6/\u8017\u6750": "部件/耗材";
92
+ 应用方案: "应用方案";
93
+ "\u5B9A\u5236/OEM": "定制/OEM";
94
+ 服务: "服务";
95
+ "\u8D44\u8D28/\u80FD\u529B": "资质/能力";
96
+ }>;
97
+ selling_points: z.ZodString;
98
+ }, z.core.$strict>;
99
+ export type Step5KeywordEntryEdit = z.infer<typeof Step5KeywordEntryEditSchema>;
123
100
  export declare const Step5KeywordSelectionSchema: z.ZodObject<{
124
101
  snapshot_id: z.ZodString;
125
102
  entry_ids: z.ZodArray<z.ZodString>;
103
+ entry_edits: z.ZodOptional<z.ZodArray<z.ZodObject<{
104
+ entry_id: z.ZodString;
105
+ category: z.ZodEnum<{
106
+ 产品: "产品";
107
+ "\u90E8\u4EF6/\u8017\u6750": "部件/耗材";
108
+ 应用方案: "应用方案";
109
+ "\u5B9A\u5236/OEM": "定制/OEM";
110
+ 服务: "服务";
111
+ "\u8D44\u8D28/\u80FD\u529B": "资质/能力";
112
+ }>;
113
+ selling_points: z.ZodString;
114
+ }, z.core.$strict>>>;
126
115
  }, z.core.$strict>;
127
116
  export type Step5KeywordSelection = z.infer<typeof Step5KeywordSelectionSchema>;
128
117
  export declare const Step5KeywordSearchBodySchema: z.ZodObject<{