@vcp-dev/contracts 0.10.6 → 0.10.8
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/block-interaction.d.ts +18 -0
- package/dist/cms-navigation.d.ts +248 -0
- package/dist/cms-page-directory.d.ts +13 -0
- package/dist/cms-public-url.d.ts +12 -3
- package/dist/cms-request-context.d.ts +10 -0
- package/dist/connect-form.d.ts +11 -2
- package/dist/form-design.d.ts +48 -12
- package/dist/form-metadata.d.ts +32 -0
- package/dist/google-analytics.d.ts +697 -0
- package/dist/google-search-console.d.ts +8 -8
- package/dist/index.d.ts +584 -862
- package/dist/index.js +1 -1
- package/dist/launcher-prompt-templates.d.ts +6 -75
- package/dist/run-control.d.ts +2 -1
- package/dist/site-edit-operation.d.ts +4 -4
- package/dist/site-edit-render-document.d.ts +1 -4
- package/dist/site-edit-style-draft-property.d.ts +1 -1
- package/dist/site-edit-version.d.ts +1 -1
- package/dist/site-extra-requirement.d.ts +17 -12
- package/dist/site-migration-progress.d.ts +113 -0
- package/dist/site-workflow-progress.d.ts +129 -0
- package/dist/sitemap-resolver-answer-sheet.d.ts +13 -0
- package/dist/step5-keyword-library.d.ts +2 -3
- package/dist/step5-strategy.d.ts +110 -5647
- package/dist/step6-design.d.ts +6 -3
- package/dist/subsite-copy-estimate.d.ts +22 -0
- package/dist/user-facing-copy.d.ts +2 -0
- package/dist/workspace-file-mutation-tools.d.ts +32 -0
- package/dist/workspace-resource-operation.d.ts +2 -2
- package/package.json +1 -1
package/dist/step6-design.d.ts
CHANGED
|
@@ -792,7 +792,12 @@ export declare const UpdateStep6DesignSelectionResponseSchema: z.ZodObject<{
|
|
|
792
792
|
}, z.core.$strict>;
|
|
793
793
|
}, z.core.$strict>;
|
|
794
794
|
export type UpdateStep6DesignSelectionResponse = z.infer<typeof UpdateStep6DesignSelectionResponseSchema>;
|
|
795
|
-
/**
|
|
795
|
+
/**
|
|
796
|
+
* Trusted VCP API → agent input; this is never browser-provided.
|
|
797
|
+
*
|
|
798
|
+
* 刻意没有参考图与整站补充需求:六张卡只依据行业与已提交的 Step5 策略出,
|
|
799
|
+
* 两者在 Step6 结构页录入,只在确认结构后进入生成上下文(DesignPlan / 页面生成)。
|
|
800
|
+
*/
|
|
796
801
|
export declare const Step6DesignRecommendationGenerationInputSchema: z.ZodObject<{
|
|
797
802
|
tenant_id: z.ZodString;
|
|
798
803
|
site_id: z.ZodUUID;
|
|
@@ -894,8 +899,6 @@ export declare const Step6DesignRecommendationGenerationInputSchema: z.ZodObject
|
|
|
894
899
|
strategy_version: z.ZodNumber;
|
|
895
900
|
strategy_checksum: z.ZodString;
|
|
896
901
|
strategy_summary: z.ZodArray<z.ZodString>;
|
|
897
|
-
reference_image_source_id: z.ZodOptional<z.ZodUUID>;
|
|
898
|
-
owner_whole_site_request: z.ZodOptional<z.ZodString>;
|
|
899
902
|
}, z.core.$strict>;
|
|
900
903
|
export type Step6DesignRecommendationGenerationInput = z.infer<typeof Step6DesignRecommendationGenerationInputSchema>;
|
|
901
904
|
/**
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** 子站风格本地化单次最多提交的媒体替换决策数。 */
|
|
3
|
+
export declare const MAX_SUBSITE_MEDIA_REPLACEMENTS = 12;
|
|
4
|
+
/** apps/api 传给 subsite-service 的可信快照定位。 */
|
|
5
|
+
export declare const SubsiteCopyEstimateRequestSchema: z.ZodObject<{
|
|
6
|
+
tenant_id: z.ZodString;
|
|
7
|
+
site_id: z.ZodUUID;
|
|
8
|
+
snapshot_id: z.ZodUUID;
|
|
9
|
+
manifest_hash: z.ZodString;
|
|
10
|
+
object_key: z.ZodString;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export type SubsiteCopyEstimateRequest = z.infer<typeof SubsiteCopyEstimateRequestSchema>;
|
|
13
|
+
/** 复制前确定性预估;所有字段必须同时存在,禁止返回部分结果。 */
|
|
14
|
+
export declare const SubsiteCopyEstimateResponseSchema: z.ZodObject<{
|
|
15
|
+
page_count: z.ZodNumber;
|
|
16
|
+
translation_character_count: z.ZodNumber;
|
|
17
|
+
image_estimate: z.ZodObject<{
|
|
18
|
+
media_key_count: z.ZodNumber;
|
|
19
|
+
max_replacement_count: z.ZodNumber;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
export type SubsiteCopyEstimateResponse = z.infer<typeof SubsiteCopyEstimateResponseSchema>;
|
|
@@ -60,6 +60,8 @@ export declare const ERROR_COPY: {
|
|
|
60
60
|
readonly CLARIFY_MODEL_FAILED: "Clarify couldn't finish generating questions. Please try again.";
|
|
61
61
|
readonly WORKSPACE_RUN_IN_FLIGHT: "Another session is already running. Please try again in a moment.";
|
|
62
62
|
readonly SITE_OPERATION_LOCKED: "Another change is already running for this site. Wait for it to finish, then try again.";
|
|
63
|
+
readonly SITE_SITEMAP_DRAFT_STALE: "The draft was updated elsewhere. Reload the latest draft before saving.";
|
|
64
|
+
readonly SITE_SITEMAP_DRAFT_OPERATION_MISMATCH: "This save identity belongs to a different draft operation.";
|
|
63
65
|
readonly WORKSPACE_THREAD_NOT_FOUND: "That conversation no longer exists. Switching back to the default conversation.";
|
|
64
66
|
readonly WORKSPACE_THREAD_ARCHIVED: "This conversation is archived. Start a new one to continue.";
|
|
65
67
|
readonly WORKSPACE_THREAD_BUSY: "This conversation is still running. Wait for it to finish before archiving.";
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 写类工具名的唯一事实源:会改用户站点代码的工具叫什么。
|
|
3
|
+
*
|
|
4
|
+
* 这份名单同时被 agent 运行时(注册、停机条件、补丁归一、遥测)和 web 工作台
|
|
5
|
+
* (预览蒙层、写/读工具分类、业务任务标题)消费。两侧各维护一份字符串必然漂移
|
|
6
|
+
* ——2026-08-18 拆分文件修改工具时 web 侧三处 `"apply_patch_batch"` 字面量没跟着改,
|
|
7
|
+
* 且 `toolName: string` 让编译器看不见任何一处,写入开始不再盖预览蒙层、写工具被
|
|
8
|
+
* 当成只读折叠,直到 2026-09-22 才被发现。判据放这里就是为了不再有第二次。
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* 模型可见的文件修改工具。模型只会调这三个单文件工具,运行时再转成 canonical
|
|
12
|
+
* `applyPatchBatch` 事务落盘(见 docs/agent/CODE_EDITING_PROTOCOL.md)。
|
|
13
|
+
*/
|
|
14
|
+
export declare const MODEL_FILE_MUTATION_TOOL_NAMES: readonly ["write_file", "edit_file", "delete_file"];
|
|
15
|
+
/**
|
|
16
|
+
* 历史批量工具。服务端内部路径(设计面板应用、产品搜索落地等)和历史事件回放仍会
|
|
17
|
+
* 出现这个名字,但 `resolveWithheldWorkspaceToolNames` 已把它从模型可见工具集中摘除
|
|
18
|
+
* ——新 run 的模型调用不会再用它。判"是不是写类工具"要连它一起认,否则老会话回放
|
|
19
|
+
* 会错判。
|
|
20
|
+
*/
|
|
21
|
+
export declare const LEGACY_FILE_MUTATION_TOOL_NAME: "apply_patch_batch";
|
|
22
|
+
/** 写类工具全集:模型可见的三个 + 历史批量工具。 */
|
|
23
|
+
export declare const WORKSPACE_FILE_MUTATION_TOOL_NAMES: readonly ["write_file", "edit_file", "delete_file", "apply_patch_batch"];
|
|
24
|
+
export type ModelFileMutationToolName = (typeof MODEL_FILE_MUTATION_TOOL_NAMES)[number];
|
|
25
|
+
export type WorkspaceFileMutationToolName = (typeof WORKSPACE_FILE_MUTATION_TOOL_NAMES)[number];
|
|
26
|
+
/** 是不是模型可见的文件修改工具(不含历史批量工具)。 */
|
|
27
|
+
export declare function isModelFileMutationToolName(toolName: string): toolName is ModelFileMutationToolName;
|
|
28
|
+
/**
|
|
29
|
+
* 是不是写类工具(含历史批量工具)。凡是"这个工具会不会改站点代码"的判断都走这里
|
|
30
|
+
* ——预览蒙层、工具卡分类、状态胶囊、业务任务标题共用同一判据。
|
|
31
|
+
*/
|
|
32
|
+
export declare function isWorkspaceFileMutationToolName(toolName: string): toolName is WorkspaceFileMutationToolName;
|
|
@@ -305,10 +305,10 @@ export declare const WorkspaceResourceOperationTransientInputSchema: z.ZodObject
|
|
|
305
305
|
}, z.core.$strip>;
|
|
306
306
|
}, z.core.$strip>>;
|
|
307
307
|
props: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
308
|
+
href: "href";
|
|
308
309
|
src: "src";
|
|
309
310
|
alt: "alt";
|
|
310
311
|
poster: "poster";
|
|
311
|
-
href: "href";
|
|
312
312
|
width: "width";
|
|
313
313
|
height: "height";
|
|
314
314
|
}> & z.core.$partial, z.ZodString>>;
|
|
@@ -708,10 +708,10 @@ export declare const WorkspaceResourceOperationClientMessageSchema: z.ZodObject<
|
|
|
708
708
|
}, z.core.$strip>;
|
|
709
709
|
}, z.core.$strip>>;
|
|
710
710
|
props: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
711
|
+
href: "href";
|
|
711
712
|
src: "src";
|
|
712
713
|
alt: "alt";
|
|
713
714
|
poster: "poster";
|
|
714
|
-
href: "href";
|
|
715
715
|
width: "width";
|
|
716
716
|
height: "height";
|
|
717
717
|
}> & z.core.$partial, z.ZodString>>;
|