@vcp-dev/contracts 0.6.11 → 0.7.0

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.
Files changed (70) hide show
  1. package/README.md +5 -4
  2. package/dist/business-facts.d.ts +23 -0
  3. package/dist/cms-page-directory.d.ts +40 -4
  4. package/dist/colorway-distinctness.js +1 -1
  5. package/dist/connect-dynamic-collection.d.ts +6 -6
  6. package/dist/connect-form.d.ts +6 -6
  7. package/dist/conversion-hints.d.ts +37 -0
  8. package/dist/crawler-task-service.d.ts +244 -2
  9. package/dist/custom-domain.d.ts +119 -239
  10. package/dist/customer-materials.d.ts +5 -5
  11. package/dist/deployment-lifecycle.d.ts +45 -0
  12. package/dist/design-tokens.d.ts +1 -0
  13. package/dist/design-tokens.js +1 -1
  14. package/dist/e2b-preview-proxy.d.ts +5 -0
  15. package/dist/external-site-edit.d.ts +9 -0
  16. package/dist/firecrawl-internal.d.ts +19 -0
  17. package/dist/font-catalog.d.ts +5 -2
  18. package/dist/form-design.d.ts +54 -12
  19. package/dist/google-search-console.d.ts +1 -0
  20. package/dist/index.d.ts +3095 -818
  21. package/dist/index.js +1 -1
  22. package/dist/industry-classification.d.ts +43 -0
  23. package/dist/input-context-bundle.d.ts +10 -0
  24. package/dist/internal-entity-id.d.ts +1 -0
  25. package/dist/knowledge-category.d.ts +20 -0
  26. package/dist/knowledge-source-readiness.d.ts +94 -0
  27. package/dist/launcher-prompt-templates.d.ts +117 -14
  28. package/dist/migration-products.d.ts +45 -0
  29. package/dist/page-slug.d.ts +2 -0
  30. package/dist/page-template.d.ts +95 -0
  31. package/dist/site-build.d.ts +563 -0
  32. package/dist/site-design-presets.d.ts +20 -0
  33. package/dist/site-edit-capability.d.ts +13 -1
  34. package/dist/site-edit-class-name-source.d.ts +40 -8
  35. package/dist/site-edit-command-result.d.ts +15 -4
  36. package/dist/site-edit-composition.d.ts +13 -0
  37. package/dist/site-edit-event.d.ts +68 -14
  38. package/dist/site-edit-history-status.d.ts +193 -0
  39. package/dist/site-edit-operation.d.ts +152 -51
  40. package/dist/site-edit-page-composition.d.ts +101 -22
  41. package/dist/site-edit-patch-plan.d.ts +49 -3
  42. package/dist/site-edit-render-document.d.ts +54 -8
  43. package/dist/site-edit-session.d.ts +5 -2
  44. package/dist/site-edit-source.d.ts +60 -11
  45. package/dist/site-edit-version.d.ts +1 -1
  46. package/dist/site-extra-requirement.d.ts +31 -0
  47. package/dist/site-locale.d.ts +20 -0
  48. package/dist/site-localization-fields.d.ts +196 -0
  49. package/dist/site-localization-scope.d.ts +95 -0
  50. package/dist/site-preview.d.ts +15 -0
  51. package/dist/site-publish-domain.d.ts +680 -0
  52. package/dist/site-publish-workflow.d.ts +612 -0
  53. package/dist/site-workflow-completions.d.ts +163 -0
  54. package/dist/site-workflow.d.ts +231 -211
  55. package/dist/sitemap-navigation.d.ts +4 -1
  56. package/dist/step2-page-selection.d.ts +88 -0
  57. package/dist/step2-site-initialization.d.ts +321 -30
  58. package/dist/step3-digital-employee-analysis.d.ts +177 -211
  59. package/dist/step4-diagnosis.d.ts +72 -4
  60. package/dist/step5-strategy.d.ts +5549 -170
  61. package/dist/step6-design.d.ts +778 -464
  62. package/dist/subsite-localization-input.d.ts +121 -0
  63. package/dist/subsite-mount-path.d.ts +23 -0
  64. package/dist/subsite-visible-text-export.d.ts +22 -0
  65. package/dist/template-upgrade-observability.d.ts +2 -2
  66. package/dist/theme-presets.d.ts +56 -1
  67. package/dist/workspace-design-apply.d.ts +5 -0
  68. package/dist/workspace-resource-operation.d.ts +58 -24
  69. package/package.json +1 -1
  70. package/dist/publish-quality.d.ts +0 -92
@@ -8,7 +8,7 @@ export type WorkflowFlowType = z.infer<typeof WorkflowFlowTypeSchema>;
8
8
  /** URLs that may be handed to a server-side website crawler. */
9
9
  export declare const HttpUrlSchema: z.ZodString;
10
10
  export type HttpUrl = z.infer<typeof HttpUrlSchema>;
11
- export declare const WORKFLOW_NODE_CODES: readonly ["welcome", "website_scan", "customer_materials", "analysis", "diagnosis", "strategy", "site_build", "customer_conversion", "growth_loop", "growth_dashboard", "stage_goal"];
11
+ export declare const WORKFLOW_NODE_CODES: readonly ["welcome", "website_scan", "customer_materials", "analysis", "diagnosis", "strategy", "structure_planning", "preview_personalization", "publishing"];
12
12
  export declare const WorkflowNodeCodeSchema: z.ZodEnum<{
13
13
  welcome: "welcome";
14
14
  website_scan: "website_scan";
@@ -16,11 +16,9 @@ export declare const WorkflowNodeCodeSchema: z.ZodEnum<{
16
16
  analysis: "analysis";
17
17
  diagnosis: "diagnosis";
18
18
  strategy: "strategy";
19
- site_build: "site_build";
20
- customer_conversion: "customer_conversion";
21
- growth_loop: "growth_loop";
22
- growth_dashboard: "growth_dashboard";
23
- stage_goal: "stage_goal";
19
+ structure_planning: "structure_planning";
20
+ preview_personalization: "preview_personalization";
21
+ publishing: "publishing";
24
22
  }>;
25
23
  export type WorkflowNodeCode = z.infer<typeof WorkflowNodeCodeSchema>;
26
24
  export declare const WORKFLOW_TASK_TYPES: readonly ["company_info", "website_crawl", "website_basic_info_extract", "website_metrics_evaluate", "intelligent_analysis", "strategy_recommendation"];
@@ -100,84 +98,216 @@ export declare function siteBuildStatusToCode(status: SiteBuildStatus): number;
100
98
  export declare function siteDeploymentStatusToCode(status: SiteDeploymentStatus): number;
101
99
  export declare function siteWorkflowStatusToCode(status: SiteWorkflowStatus): number;
102
100
  export declare function taskExecutionStatusToCode(status: TaskExecutionStatus): number;
101
+ export interface WorkflowDefinitionNode {
102
+ readonly id: string;
103
+ readonly node_code: WorkflowNodeCode;
104
+ readonly label: string;
105
+ readonly sort_order: number;
106
+ readonly is_enabled: true;
107
+ }
108
+ export interface WorkflowDefinitionRegistryEntry {
109
+ readonly definition_version: number;
110
+ readonly published: boolean;
111
+ readonly required_client_capability: string | null;
112
+ readonly definitions: Readonly<Record<WorkflowFlowType, readonly WorkflowDefinitionNode[]>>;
113
+ }
114
+ /**
115
+ * Versioned, checked-in workflow definitions. `published` controls admission
116
+ * for new workflows; exact-version lookup intentionally ignores it so an
117
+ * existing workflow can survive a two-stage code release.
118
+ */
119
+ export declare const WORKFLOW_DEFINITION_REGISTRY: readonly [{
120
+ readonly definition_version: 1;
121
+ readonly published: true;
122
+ readonly required_client_capability: null;
123
+ readonly definitions: {
124
+ readonly with_website: readonly [{
125
+ readonly id: "01900000-0000-7000-8000-000000000001";
126
+ readonly node_code: "welcome";
127
+ readonly label: "欢迎启动";
128
+ readonly sort_order: 1;
129
+ readonly is_enabled: true;
130
+ }, {
131
+ readonly id: "01900000-0000-7000-8000-000000000002";
132
+ readonly node_code: "website_scan";
133
+ readonly label: "初始化需求与官网扫描";
134
+ readonly sort_order: 2;
135
+ readonly is_enabled: true;
136
+ }, {
137
+ readonly id: "01900000-0000-7000-8000-000000000003";
138
+ readonly node_code: "analysis";
139
+ readonly label: "智能分析";
140
+ readonly sort_order: 3;
141
+ readonly is_enabled: true;
142
+ }, {
143
+ readonly id: "01900000-0000-7000-8000-000000000004";
144
+ readonly node_code: "diagnosis";
145
+ readonly label: "诊断报告";
146
+ readonly sort_order: 4;
147
+ readonly is_enabled: true;
148
+ }, {
149
+ readonly id: "01900000-0000-7000-8000-000000000005";
150
+ readonly node_code: "strategy";
151
+ readonly label: "策略与建议";
152
+ readonly sort_order: 5;
153
+ readonly is_enabled: true;
154
+ }, {
155
+ readonly id: "01900000-0000-7000-8000-000000000014";
156
+ readonly node_code: "structure_planning";
157
+ readonly label: "结构规划";
158
+ readonly sort_order: 6;
159
+ readonly is_enabled: true;
160
+ }, {
161
+ readonly id: "01900000-0000-7000-8000-000000000015";
162
+ readonly node_code: "preview_personalization";
163
+ readonly label: "预览与个性化";
164
+ readonly sort_order: 7;
165
+ readonly is_enabled: true;
166
+ }, {
167
+ readonly id: "01900000-0000-7000-8000-000000000016";
168
+ readonly node_code: "publishing";
169
+ readonly label: "网站发布";
170
+ readonly sort_order: 8;
171
+ readonly is_enabled: true;
172
+ }];
173
+ readonly without_website: readonly [{
174
+ readonly id: "01900000-0000-7000-8000-00000000000b";
175
+ readonly node_code: "welcome";
176
+ readonly label: "欢迎启动";
177
+ readonly sort_order: 1;
178
+ readonly is_enabled: true;
179
+ }, {
180
+ readonly id: "01900000-0000-7000-8000-00000000000c";
181
+ readonly node_code: "customer_materials";
182
+ readonly label: "客户资料提供";
183
+ readonly sort_order: 2;
184
+ readonly is_enabled: true;
185
+ }, {
186
+ readonly id: "01900000-0000-7000-8000-00000000000d";
187
+ readonly node_code: "analysis";
188
+ readonly label: "智能分析";
189
+ readonly sort_order: 3;
190
+ readonly is_enabled: true;
191
+ }, {
192
+ readonly id: "01900000-0000-7000-8000-00000000000e";
193
+ readonly node_code: "strategy";
194
+ readonly label: "策略与建议";
195
+ readonly sort_order: 4;
196
+ readonly is_enabled: true;
197
+ }, {
198
+ readonly id: "01900000-0000-7000-8000-000000000017";
199
+ readonly node_code: "structure_planning";
200
+ readonly label: "结构规划";
201
+ readonly sort_order: 5;
202
+ readonly is_enabled: true;
203
+ }, {
204
+ readonly id: "01900000-0000-7000-8000-000000000018";
205
+ readonly node_code: "preview_personalization";
206
+ readonly label: "预览与个性化";
207
+ readonly sort_order: 6;
208
+ readonly is_enabled: true;
209
+ }, {
210
+ readonly id: "01900000-0000-7000-8000-000000000019";
211
+ readonly node_code: "publishing";
212
+ readonly label: "网站发布";
213
+ readonly sort_order: 7;
214
+ readonly is_enabled: true;
215
+ }];
216
+ };
217
+ }];
218
+ /** Compatibility view retained for existing contract consumers. */
103
219
  export declare const WORKFLOW_DEFINITIONS_V1: {
104
220
  readonly with_website: readonly [{
221
+ readonly id: "01900000-0000-7000-8000-000000000001";
105
222
  readonly node_code: "welcome";
106
223
  readonly label: "欢迎启动";
107
224
  readonly sort_order: 1;
225
+ readonly is_enabled: true;
108
226
  }, {
227
+ readonly id: "01900000-0000-7000-8000-000000000002";
109
228
  readonly node_code: "website_scan";
110
229
  readonly label: "初始化需求与官网扫描";
111
230
  readonly sort_order: 2;
231
+ readonly is_enabled: true;
112
232
  }, {
233
+ readonly id: "01900000-0000-7000-8000-000000000003";
113
234
  readonly node_code: "analysis";
114
235
  readonly label: "智能分析";
115
236
  readonly sort_order: 3;
237
+ readonly is_enabled: true;
116
238
  }, {
239
+ readonly id: "01900000-0000-7000-8000-000000000004";
117
240
  readonly node_code: "diagnosis";
118
241
  readonly label: "诊断报告";
119
242
  readonly sort_order: 4;
243
+ readonly is_enabled: true;
120
244
  }, {
245
+ readonly id: "01900000-0000-7000-8000-000000000005";
121
246
  readonly node_code: "strategy";
122
247
  readonly label: "策略与建议";
123
248
  readonly sort_order: 5;
249
+ readonly is_enabled: true;
124
250
  }, {
125
- readonly node_code: "site_build";
126
- readonly label: "建站";
251
+ readonly id: "01900000-0000-7000-8000-000000000014";
252
+ readonly node_code: "structure_planning";
253
+ readonly label: "结构规划";
127
254
  readonly sort_order: 6;
255
+ readonly is_enabled: true;
128
256
  }, {
129
- readonly node_code: "customer_conversion";
130
- readonly label: "客户转化";
257
+ readonly id: "01900000-0000-7000-8000-000000000015";
258
+ readonly node_code: "preview_personalization";
259
+ readonly label: "预览与个性化";
131
260
  readonly sort_order: 7;
261
+ readonly is_enabled: true;
132
262
  }, {
133
- readonly node_code: "growth_loop";
134
- readonly label: "增长闭环";
263
+ readonly id: "01900000-0000-7000-8000-000000000016";
264
+ readonly node_code: "publishing";
265
+ readonly label: "网站发布";
135
266
  readonly sort_order: 8;
136
- }, {
137
- readonly node_code: "growth_dashboard";
138
- readonly label: "增长大盘";
139
- readonly sort_order: 9;
140
- }, {
141
- readonly node_code: "stage_goal";
142
- readonly label: "阶段运营目标";
143
- readonly sort_order: 10;
267
+ readonly is_enabled: true;
144
268
  }];
145
269
  readonly without_website: readonly [{
270
+ readonly id: "01900000-0000-7000-8000-00000000000b";
146
271
  readonly node_code: "welcome";
147
272
  readonly label: "欢迎启动";
148
273
  readonly sort_order: 1;
274
+ readonly is_enabled: true;
149
275
  }, {
276
+ readonly id: "01900000-0000-7000-8000-00000000000c";
150
277
  readonly node_code: "customer_materials";
151
278
  readonly label: "客户资料提供";
152
279
  readonly sort_order: 2;
280
+ readonly is_enabled: true;
153
281
  }, {
282
+ readonly id: "01900000-0000-7000-8000-00000000000d";
154
283
  readonly node_code: "analysis";
155
284
  readonly label: "智能分析";
156
285
  readonly sort_order: 3;
286
+ readonly is_enabled: true;
157
287
  }, {
288
+ readonly id: "01900000-0000-7000-8000-00000000000e";
158
289
  readonly node_code: "strategy";
159
290
  readonly label: "策略与建议";
160
291
  readonly sort_order: 4;
292
+ readonly is_enabled: true;
161
293
  }, {
162
- readonly node_code: "site_build";
163
- readonly label: "建站";
294
+ readonly id: "01900000-0000-7000-8000-000000000017";
295
+ readonly node_code: "structure_planning";
296
+ readonly label: "结构规划";
164
297
  readonly sort_order: 5;
298
+ readonly is_enabled: true;
165
299
  }, {
166
- readonly node_code: "customer_conversion";
167
- readonly label: "客户转化";
300
+ readonly id: "01900000-0000-7000-8000-000000000018";
301
+ readonly node_code: "preview_personalization";
302
+ readonly label: "预览与个性化";
168
303
  readonly sort_order: 6;
304
+ readonly is_enabled: true;
169
305
  }, {
170
- readonly node_code: "growth_loop";
171
- readonly label: "增长闭环";
306
+ readonly id: "01900000-0000-7000-8000-000000000019";
307
+ readonly node_code: "publishing";
308
+ readonly label: "网站发布";
172
309
  readonly sort_order: 7;
173
- }, {
174
- readonly node_code: "growth_dashboard";
175
- readonly label: "增长大盘";
176
- readonly sort_order: 8;
177
- }, {
178
- readonly node_code: "stage_goal";
179
- readonly label: "阶段运营目标";
180
- readonly sort_order: 9;
310
+ readonly is_enabled: true;
181
311
  }];
182
312
  };
183
313
  export declare const WorkflowDefinitionVersionSchema: z.ZodNumber;
@@ -195,11 +325,9 @@ export declare const WorkflowMenuItemSchema: z.ZodObject<{
195
325
  analysis: "analysis";
196
326
  diagnosis: "diagnosis";
197
327
  strategy: "strategy";
198
- site_build: "site_build";
199
- customer_conversion: "customer_conversion";
200
- growth_loop: "growth_loop";
201
- growth_dashboard: "growth_dashboard";
202
- stage_goal: "stage_goal";
328
+ structure_planning: "structure_planning";
329
+ preview_personalization: "preview_personalization";
330
+ publishing: "publishing";
203
331
  }>;
204
332
  label: z.ZodString;
205
333
  sort_order: z.ZodNumber;
@@ -223,11 +351,9 @@ export declare const SiteWorkflowTaskRefSchema: z.ZodObject<{
223
351
  analysis: "analysis";
224
352
  diagnosis: "diagnosis";
225
353
  strategy: "strategy";
226
- site_build: "site_build";
227
- customer_conversion: "customer_conversion";
228
- growth_loop: "growth_loop";
229
- growth_dashboard: "growth_dashboard";
230
- stage_goal: "stage_goal";
354
+ structure_planning: "structure_planning";
355
+ preview_personalization: "preview_personalization";
356
+ publishing: "publishing";
231
357
  }>;
232
358
  task_type: z.ZodEnum<{
233
359
  company_info: "company_info";
@@ -269,11 +395,9 @@ export declare const SiteWorkflowRecordSchema: z.ZodObject<{
269
395
  analysis: "analysis";
270
396
  diagnosis: "diagnosis";
271
397
  strategy: "strategy";
272
- site_build: "site_build";
273
- customer_conversion: "customer_conversion";
274
- growth_loop: "growth_loop";
275
- growth_dashboard: "growth_dashboard";
276
- stage_goal: "stage_goal";
398
+ structure_planning: "structure_planning";
399
+ preview_personalization: "preview_personalization";
400
+ publishing: "publishing";
277
401
  }>;
278
402
  status: z.ZodEnum<{
279
403
  active: "active";
@@ -303,11 +427,9 @@ export declare const SiteWorkflowSnapshotSchema: z.ZodObject<{
303
427
  analysis: "analysis";
304
428
  diagnosis: "diagnosis";
305
429
  strategy: "strategy";
306
- site_build: "site_build";
307
- customer_conversion: "customer_conversion";
308
- growth_loop: "growth_loop";
309
- growth_dashboard: "growth_dashboard";
310
- stage_goal: "stage_goal";
430
+ structure_planning: "structure_planning";
431
+ preview_personalization: "preview_personalization";
432
+ publishing: "publishing";
311
433
  }>;
312
434
  status: z.ZodEnum<{
313
435
  active: "active";
@@ -332,11 +454,9 @@ export declare const SiteWorkflowSnapshotSchema: z.ZodObject<{
332
454
  analysis: "analysis";
333
455
  diagnosis: "diagnosis";
334
456
  strategy: "strategy";
335
- site_build: "site_build";
336
- customer_conversion: "customer_conversion";
337
- growth_loop: "growth_loop";
338
- growth_dashboard: "growth_dashboard";
339
- stage_goal: "stage_goal";
457
+ structure_planning: "structure_planning";
458
+ preview_personalization: "preview_personalization";
459
+ publishing: "publishing";
340
460
  }>;
341
461
  label: z.ZodString;
342
462
  sort_order: z.ZodNumber;
@@ -359,11 +479,9 @@ export declare const SiteWorkflowSnapshotSchema: z.ZodObject<{
359
479
  analysis: "analysis";
360
480
  diagnosis: "diagnosis";
361
481
  strategy: "strategy";
362
- site_build: "site_build";
363
- customer_conversion: "customer_conversion";
364
- growth_loop: "growth_loop";
365
- growth_dashboard: "growth_dashboard";
366
- stage_goal: "stage_goal";
482
+ structure_planning: "structure_planning";
483
+ preview_personalization: "preview_personalization";
484
+ publishing: "publishing";
367
485
  }>;
368
486
  task_type: z.ZodEnum<{
369
487
  company_info: "company_info";
@@ -499,10 +617,8 @@ export declare const SiteWorkflowSnapshotSchema: z.ZodObject<{
499
617
  structure_confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
500
618
  current_snapshot_id: z.ZodNullable<z.ZodString>;
501
619
  deployed_url: z.ZodNullable<z.ZodString>;
620
+ cms_site_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
502
621
  }, z.core.$strip>;
503
- capabilities: z.ZodOptional<z.ZodObject<{
504
- workflow_task_provider_available: z.ZodBoolean;
505
- }, z.core.$strip>>;
506
622
  }, z.core.$strip>;
507
623
  export type SiteWorkflowSnapshot = z.infer<typeof SiteWorkflowSnapshotSchema>;
508
624
  export declare const SiteWorkflowSnapshotResponseSchema: z.ZodObject<{
@@ -525,11 +641,9 @@ export declare const SiteWorkflowSnapshotResponseSchema: z.ZodObject<{
525
641
  analysis: "analysis";
526
642
  diagnosis: "diagnosis";
527
643
  strategy: "strategy";
528
- site_build: "site_build";
529
- customer_conversion: "customer_conversion";
530
- growth_loop: "growth_loop";
531
- growth_dashboard: "growth_dashboard";
532
- stage_goal: "stage_goal";
644
+ structure_planning: "structure_planning";
645
+ preview_personalization: "preview_personalization";
646
+ publishing: "publishing";
533
647
  }>;
534
648
  status: z.ZodEnum<{
535
649
  active: "active";
@@ -554,11 +668,9 @@ export declare const SiteWorkflowSnapshotResponseSchema: z.ZodObject<{
554
668
  analysis: "analysis";
555
669
  diagnosis: "diagnosis";
556
670
  strategy: "strategy";
557
- site_build: "site_build";
558
- customer_conversion: "customer_conversion";
559
- growth_loop: "growth_loop";
560
- growth_dashboard: "growth_dashboard";
561
- stage_goal: "stage_goal";
671
+ structure_planning: "structure_planning";
672
+ preview_personalization: "preview_personalization";
673
+ publishing: "publishing";
562
674
  }>;
563
675
  label: z.ZodString;
564
676
  sort_order: z.ZodNumber;
@@ -581,11 +693,9 @@ export declare const SiteWorkflowSnapshotResponseSchema: z.ZodObject<{
581
693
  analysis: "analysis";
582
694
  diagnosis: "diagnosis";
583
695
  strategy: "strategy";
584
- site_build: "site_build";
585
- customer_conversion: "customer_conversion";
586
- growth_loop: "growth_loop";
587
- growth_dashboard: "growth_dashboard";
588
- stage_goal: "stage_goal";
696
+ structure_planning: "structure_planning";
697
+ preview_personalization: "preview_personalization";
698
+ publishing: "publishing";
589
699
  }>;
590
700
  task_type: z.ZodEnum<{
591
701
  company_info: "company_info";
@@ -721,10 +831,8 @@ export declare const SiteWorkflowSnapshotResponseSchema: z.ZodObject<{
721
831
  structure_confirmed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
722
832
  current_snapshot_id: z.ZodNullable<z.ZodString>;
723
833
  deployed_url: z.ZodNullable<z.ZodString>;
834
+ cms_site_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
724
835
  }, z.core.$strip>;
725
- capabilities: z.ZodOptional<z.ZodObject<{
726
- workflow_task_provider_available: z.ZodBoolean;
727
- }, z.core.$strip>>;
728
836
  }, z.core.$strip>;
729
837
  message: z.ZodString;
730
838
  }, z.core.$strip>;
@@ -743,11 +851,9 @@ export declare const SiteWorkflowTaskRefResponseSchema: z.ZodObject<{
743
851
  analysis: "analysis";
744
852
  diagnosis: "diagnosis";
745
853
  strategy: "strategy";
746
- site_build: "site_build";
747
- customer_conversion: "customer_conversion";
748
- growth_loop: "growth_loop";
749
- growth_dashboard: "growth_dashboard";
750
- stage_goal: "stage_goal";
854
+ structure_planning: "structure_planning";
855
+ preview_personalization: "preview_personalization";
856
+ publishing: "publishing";
751
857
  }>;
752
858
  task_type: z.ZodEnum<{
753
859
  company_info: "company_info";
@@ -774,14 +880,28 @@ export declare const SiteWorkflowTaskRefResponseSchema: z.ZodObject<{
774
880
  message: z.ZodString;
775
881
  }, z.core.$strip>;
776
882
  export type SiteWorkflowTaskRefResponse = z.infer<typeof SiteWorkflowTaskRefResponseSchema>;
883
+ /**
884
+ * What the calling bundle can actually drive. Purely a compatibility signal for
885
+ * choosing a definition version — it never grants permission, and the server
886
+ * ignores it for tenant or role checks. Optional so an older bundle keeps
887
+ * creating workflows unchanged.
888
+ */
889
+ export declare const WorkflowClientCapabilitiesSchema: z.ZodOptional<z.ZodArray<z.ZodString>>;
777
890
  export declare const CreateSiteWorkflowRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
778
891
  flow_type: z.ZodLiteral<"with_website">;
779
892
  website: z.ZodString;
893
+ client_capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
780
894
  }, z.core.$strict>, z.ZodObject<{
781
895
  flow_type: z.ZodLiteral<"without_website">;
782
896
  website: z.ZodOptional<z.ZodNull>;
897
+ client_capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
783
898
  }, z.core.$strict>], "flow_type">;
784
899
  export type CreateSiteWorkflowRequest = z.infer<typeof CreateSiteWorkflowRequestSchema>;
900
+ export declare const UpdateSiteWorkflowWebsiteRequestSchema: z.ZodObject<{
901
+ expected_current_node: z.ZodLiteral<"website_scan">;
902
+ website: z.ZodString;
903
+ }, z.core.$strict>;
904
+ export type UpdateSiteWorkflowWebsiteRequest = z.infer<typeof UpdateSiteWorkflowWebsiteRequestSchema>;
785
905
  export declare const AdvanceSiteWorkflowRequestSchema: z.ZodObject<{
786
906
  expected_current_node: z.ZodEnum<{
787
907
  welcome: "welcome";
@@ -790,27 +910,16 @@ export declare const AdvanceSiteWorkflowRequestSchema: z.ZodObject<{
790
910
  analysis: "analysis";
791
911
  diagnosis: "diagnosis";
792
912
  strategy: "strategy";
793
- site_build: "site_build";
794
- customer_conversion: "customer_conversion";
795
- growth_loop: "growth_loop";
796
- growth_dashboard: "growth_dashboard";
797
- stage_goal: "stage_goal";
913
+ structure_planning: "structure_planning";
914
+ preview_personalization: "preview_personalization";
915
+ publishing: "publishing";
798
916
  }>;
799
917
  }, z.core.$strict>;
800
918
  export type AdvanceSiteWorkflowRequest = z.infer<typeof AdvanceSiteWorkflowRequestSchema>;
801
919
  export declare const CompleteSiteWorkflowRequestSchema: z.ZodObject<{
802
- expected_current_node: z.ZodLiteral<"stage_goal">;
920
+ expected_current_node: z.ZodLiteral<"publishing">;
803
921
  }, z.core.$strict>;
804
922
  export type CompleteSiteWorkflowRequest = z.infer<typeof CompleteSiteWorkflowRequestSchema>;
805
- /**
806
- * Browser action for closing the visible Launcher build node. The server
807
- * verifies the current snapshot and a released deployment before completing
808
- * the server-only workflow tail; the browser never submits a result status.
809
- */
810
- export declare const CompleteStaticSiteWorkflowRequestSchema: z.ZodObject<{
811
- expected_current_node: z.ZodLiteral<"site_build">;
812
- }, z.core.$strict>;
813
- export type CompleteStaticSiteWorkflowRequest = z.infer<typeof CompleteStaticSiteWorkflowRequestSchema>;
814
923
  export declare const RegisterWorkflowTaskRequestSchema: z.ZodObject<{
815
924
  node_code: z.ZodEnum<{
816
925
  welcome: "welcome";
@@ -819,11 +928,9 @@ export declare const RegisterWorkflowTaskRequestSchema: z.ZodObject<{
819
928
  analysis: "analysis";
820
929
  diagnosis: "diagnosis";
821
930
  strategy: "strategy";
822
- site_build: "site_build";
823
- customer_conversion: "customer_conversion";
824
- growth_loop: "growth_loop";
825
- growth_dashboard: "growth_dashboard";
826
- stage_goal: "stage_goal";
931
+ structure_planning: "structure_planning";
932
+ preview_personalization: "preview_personalization";
933
+ publishing: "publishing";
827
934
  }>;
828
935
  task_type: z.ZodEnum<{
829
936
  company_info: "company_info";
@@ -846,11 +953,9 @@ export declare const RegisterWorkflowTaskCommandRequestSchema: z.ZodObject<{
846
953
  analysis: "analysis";
847
954
  diagnosis: "diagnosis";
848
955
  strategy: "strategy";
849
- site_build: "site_build";
850
- customer_conversion: "customer_conversion";
851
- growth_loop: "growth_loop";
852
- growth_dashboard: "growth_dashboard";
853
- stage_goal: "stage_goal";
956
+ structure_planning: "structure_planning";
957
+ preview_personalization: "preview_personalization";
958
+ publishing: "publishing";
854
959
  }>;
855
960
  task_type: z.ZodEnum<{
856
961
  company_info: "company_info";
@@ -904,102 +1009,17 @@ export declare const ReplaceCrawlWorkflowTaskCommandRequestSchema: z.ZodObject<{
904
1009
  export type ReplaceCrawlWorkflowTaskCommandRequest = z.infer<typeof ReplaceCrawlWorkflowTaskCommandRequestSchema>;
905
1010
  export declare const StartSiteBuildRequestSchema: z.ZodObject<{}, z.core.$strict>;
906
1011
  export type StartSiteBuildRequest = z.infer<typeof StartSiteBuildRequestSchema>;
907
- /**
908
- * dev/test 使用的进程级 Mock 输入。它只携带 VCP 需要的 task type,
909
- * 不承载任何第三方协议、请求参数或业务结果。
910
- */
911
- export declare const WorkflowMockDriveRequestSchema: z.ZodObject<{
912
- task_types: z.ZodArray<z.ZodEnum<{
913
- company_info: "company_info";
914
- website_crawl: "website_crawl";
915
- website_basic_info_extract: "website_basic_info_extract";
916
- website_metrics_evaluate: "website_metrics_evaluate";
917
- intelligent_analysis: "intelligent_analysis";
918
- strategy_recommendation: "strategy_recommendation";
919
- }>>;
920
- }, z.core.$strict>;
921
- export type WorkflowMockDriveRequest = z.infer<typeof WorkflowMockDriveRequestSchema>;
922
- export declare const WorkflowMockRetryCrawlRequestSchema: z.ZodObject<{
923
- previous_external_task_id: z.ZodString;
924
- }, z.core.$strict>;
925
- export type WorkflowMockRetryCrawlRequest = z.infer<typeof WorkflowMockRetryCrawlRequestSchema>;
926
- export declare function getWorkflowDefinition(flow_type: WorkflowFlowType): readonly [{
927
- readonly node_code: "welcome";
928
- readonly label: "欢迎启动";
929
- readonly sort_order: 1;
930
- }, {
931
- readonly node_code: "website_scan";
932
- readonly label: "初始化需求与官网扫描";
933
- readonly sort_order: 2;
934
- }, {
935
- readonly node_code: "analysis";
936
- readonly label: "智能分析";
937
- readonly sort_order: 3;
938
- }, {
939
- readonly node_code: "diagnosis";
940
- readonly label: "诊断报告";
941
- readonly sort_order: 4;
942
- }, {
943
- readonly node_code: "strategy";
944
- readonly label: "策略与建议";
945
- readonly sort_order: 5;
946
- }, {
947
- readonly node_code: "site_build";
948
- readonly label: "建站";
949
- readonly sort_order: 6;
950
- }, {
951
- readonly node_code: "customer_conversion";
952
- readonly label: "客户转化";
953
- readonly sort_order: 7;
954
- }, {
955
- readonly node_code: "growth_loop";
956
- readonly label: "增长闭环";
957
- readonly sort_order: 8;
958
- }, {
959
- readonly node_code: "growth_dashboard";
960
- readonly label: "增长大盘";
961
- readonly sort_order: 9;
962
- }, {
963
- readonly node_code: "stage_goal";
964
- readonly label: "阶段运营目标";
965
- readonly sort_order: 10;
966
- }] | readonly [{
967
- readonly node_code: "welcome";
968
- readonly label: "欢迎启动";
969
- readonly sort_order: 1;
970
- }, {
971
- readonly node_code: "customer_materials";
972
- readonly label: "客户资料提供";
973
- readonly sort_order: 2;
974
- }, {
975
- readonly node_code: "analysis";
976
- readonly label: "智能分析";
977
- readonly sort_order: 3;
978
- }, {
979
- readonly node_code: "strategy";
980
- readonly label: "策略与建议";
981
- readonly sort_order: 4;
982
- }, {
983
- readonly node_code: "site_build";
984
- readonly label: "建站";
985
- readonly sort_order: 5;
986
- }, {
987
- readonly node_code: "customer_conversion";
988
- readonly label: "客户转化";
989
- readonly sort_order: 6;
990
- }, {
991
- readonly node_code: "growth_loop";
992
- readonly label: "增长闭环";
993
- readonly sort_order: 7;
994
- }, {
995
- readonly node_code: "growth_dashboard";
996
- readonly label: "增长大盘";
997
- readonly sort_order: 8;
998
- }, {
999
- readonly node_code: "stage_goal";
1000
- readonly label: "阶段运营目标";
1001
- readonly sort_order: 9;
1002
- }];
1012
+ export declare function findWorkflowDefinitionInRegistry(registry: readonly WorkflowDefinitionRegistryEntry[], flow_type: WorkflowFlowType, definition_version: number): readonly WorkflowDefinitionNode[] | undefined;
1013
+ export declare function findWorkflowDefinition(flow_type: WorkflowFlowType, definition_version: number): readonly WorkflowDefinitionNode[] | undefined;
1014
+ export declare function getWorkflowDefinition(flow_type: WorkflowFlowType, definition_version?: number): readonly WorkflowDefinitionNode[];
1015
+ export declare function selectPublishedWorkflowDefinition(registry: readonly WorkflowDefinitionRegistryEntry[], flow_type: WorkflowFlowType, client_capabilities: readonly string[]): {
1016
+ readonly definition_version: number;
1017
+ readonly items: readonly WorkflowDefinitionNode[];
1018
+ } | undefined;
1019
+ export declare function resolvePublishedWorkflowDefinition(flow_type: WorkflowFlowType, client_capabilities: readonly string[]): {
1020
+ readonly definition_version: number;
1021
+ readonly items: readonly WorkflowDefinitionNode[];
1022
+ } | undefined;
1003
1023
  export declare function getWorkflowNodeIndex(flow_type: WorkflowFlowType, node_code: WorkflowNodeCode): number;
1004
1024
  export declare function isWorkflowTaskTypeForNode(node_code: WorkflowNodeCode, task_type: WorkflowTaskType): boolean;
1005
1025
  export declare function assertTaskExecutionStatusTransition(from: TaskExecutionStatus, to: TaskExecutionStatus): TaskExecutionStatus;
@@ -1,9 +1,12 @@
1
1
  import type { Page, Sitemap } from "./index.js";
2
2
  type SitemapNavigation = Sitemap["navigation"];
3
+ type PreviousNavigationPage = Pick<Page, "id" | "title"> & {
4
+ readonly slug: string | null;
5
+ };
3
6
  /**
4
7
  * Reconciles page-derived navigation without treating the whole navigation
5
8
  * model as disposable. Non-page links and their order are retained; only links
6
9
  * whose internal page identity was removed or changed are touched.
7
10
  */
8
- export declare function reconcileSitemapNavigation(pages: readonly Page[], navigation: SitemapNavigation, previousPages?: readonly Page[]): SitemapNavigation;
11
+ export declare function reconcileSitemapNavigation(pages: readonly Page[], navigation: SitemapNavigation, previousPages?: readonly PreviousNavigationPage[]): SitemapNavigation;
9
12
  export {};