@vcp-dev/contracts 0.9.0 → 0.9.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.
@@ -176,5 +176,15 @@ export declare const SiteEditEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
176
176
  }, z.core.$strict>;
177
177
  message: z.ZodString;
178
178
  at: z.ZodString;
179
+ }, z.core.$strict>, z.ZodObject<{
180
+ type: z.ZodLiteral<"site-edit.snapshot.changed">;
181
+ siteId: z.ZodUUID;
182
+ composition: z.ZodObject<{
183
+ routeId: z.ZodString;
184
+ effectiveTemplateId: z.ZodOptional<z.ZodString>;
185
+ }, z.core.$strict>;
186
+ snapshotId: z.ZodUUID;
187
+ previousSnapshotId: z.ZodNullable<z.ZodString>;
188
+ at: z.ZodString;
179
189
  }, z.core.$strict>], "type">;
180
190
  export type SiteEditEvent = z.infer<typeof SiteEditEventSchema>;
@@ -1,11 +1,11 @@
1
1
  /**
2
2
  * 当前 edit-engine 公开包统一版本号。
3
- * 三个包(@vcp-dev/contracts / @vcp-dev/site-edit-engine / @vcp-dev/site-edit-bridge)
3
+ * 四个包(@vcp-dev/contracts / @vcp-dev/site-edit-engine / @vcp-dev/site-edit-bridge / @vcp-dev/i18n
4
4
  * 始终同号发布。
5
5
  *
6
6
  * 由 release-edit-engine-packages.ts 在 bump 版本时自动更新。
7
7
  */
8
- export declare const CURRENT_EDIT_ENGINE_VERSION = "0.9.0";
8
+ export declare const CURRENT_EDIT_ENGINE_VERSION = "0.9.2";
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";
@@ -145,6 +145,7 @@ export declare const UpdateSitePublishWorkflowStepRequestSchema: z.ZodObject<{
145
145
  publish: "publish";
146
146
  }>;
147
147
  skip_domain_binding: z.ZodOptional<z.ZodBoolean>;
148
+ skip_quality_check: z.ZodOptional<z.ZodBoolean>;
148
149
  }, z.core.$strict>;
149
150
  export type UpdateSitePublishWorkflowStepRequest = z.infer<typeof UpdateSitePublishWorkflowStepRequestSchema>;
150
151
  export declare const SitePublishWorkflowRevisionRequestSchema: z.ZodObject<{
@@ -16,6 +16,7 @@ export declare const ERROR_COPY: {
16
16
  readonly PATCH_BATCH_INVALID: "The change couldn't be applied. Try simpler instructions.";
17
17
  readonly VALIDATION_FAILED: "Your message couldn't be sent as written. Please edit it and try again.";
18
18
  readonly WORKSPACE_MESSAGE_CONTAINS_SECRET: "Your message looks like it contains a secret or token, so it wasn't sent. Remove it and try again.";
19
+ readonly WORKSPACE_RUN_INPUT_REQUIRED: "Nothing to work on: the request had no instruction, so no edit was started. Describe the change you want and send it.";
19
20
  readonly WORKSPACE_TOOL_RESULT_INVALID: "This change couldn't be completed and was rolled back. Please try again.";
20
21
  readonly WORKSPACE_TOOL_FAILED: "A tool step failed. Please try again.";
21
22
  readonly WORKSPACE_TOOL_RESULT_MISSING: "The tool didn't return a usable result. Please try again.";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vcp-dev/contracts",
3
- "version": "0.9.0",
3
+ "version": "0.9.2",
4
4
  "type": "module",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {