@vcp-dev/contracts 0.9.4 → 0.9.5

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.
@@ -22,6 +22,7 @@ export declare const SnapshotIdSchema: z.ZodUUID;
22
22
  export declare const SiteVersionIdSchema: z.ZodUUID;
23
23
  export declare const AgentRunIdSchema: z.ZodUUID;
24
24
  export declare const AgentEventIdSchema: z.ZodUUID;
25
+ export declare const AgentThreadIdSchema: z.ZodUUID;
25
26
  export declare const SandboxSessionIdSchema: z.ZodUUID;
26
27
  export declare const DeploymentIdSchema: z.ZodUUID;
27
28
  export declare const DeploymentJobIdSchema: z.ZodUUID;
@@ -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.9.4";
8
+ export declare const CURRENT_EDIT_ENGINE_VERSION = "0.9.5";
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";
@@ -0,0 +1,170 @@
1
+ import { z } from "zod";
2
+ import { type Step6GeneratedThemeCard } from "./step6-design.js";
3
+ /** Stable visual identity; owner-facing prose and object-key order are irrelevant. */
4
+ export declare function step6GptVisualIdentity(card: Step6GeneratedThemeCard): string;
5
+ /** GPT can preserve locked palettes while offering distinct complete visual choices. */
6
+ export declare const Step6GptDesignRecommendationModelOutputSchema: z.ZodObject<{
7
+ theme_candidates: z.ZodArray<z.ZodObject<{
8
+ name: z.ZodString;
9
+ description: z.ZodString;
10
+ reason: z.ZodString;
11
+ color_seeds: z.ZodObject<{
12
+ primary: z.ZodString;
13
+ accent: z.ZodString;
14
+ foreground: z.ZodString;
15
+ }, z.core.$strict>;
16
+ surface_mode: z.ZodEnum<{
17
+ light: "light";
18
+ dark: "dark";
19
+ }>;
20
+ radius: z.ZodEnum<{
21
+ none: "none";
22
+ sm: "sm";
23
+ md: "md";
24
+ lg: "lg";
25
+ xl: "xl";
26
+ }>;
27
+ font_pairing_id: z.ZodEnum<{
28
+ "archivo-inter": "archivo-inter";
29
+ "playfair-source-sans": "playfair-source-sans";
30
+ "space-grotesk-manrope": "space-grotesk-manrope";
31
+ "fraunces-libre-franklin": "fraunces-libre-franklin";
32
+ "noto-serif-sc-noto-sans-sc": "noto-serif-sc-noto-sans-sc";
33
+ "noto-sans-sc": "noto-sans-sc";
34
+ }>;
35
+ motion_preset_id: z.ZodEnum<{
36
+ subtle: "subtle";
37
+ moderate: "moderate";
38
+ expressive: "expressive";
39
+ }>;
40
+ density: z.ZodEnum<{
41
+ compact: "compact";
42
+ comfortable: "comfortable";
43
+ airy: "airy";
44
+ }>;
45
+ }, z.core.$strict>>;
46
+ conversion: z.ZodOptional<z.ZodObject<{
47
+ protocol: z.ZodEnum<{
48
+ external: "external";
49
+ phone: "phone";
50
+ form: "form";
51
+ download: "download";
52
+ route: "route";
53
+ }>;
54
+ ctaLabel: z.ZodString;
55
+ ctaTarget: z.ZodOptional<z.ZodString>;
56
+ requiresOwnerDetail: z.ZodOptional<z.ZodBoolean>;
57
+ }, z.core.$strip>>;
58
+ }, z.core.$strict>;
59
+ /**
60
+ * Internal Agent -> API response only. The Agent adds this marker after model
61
+ * validation. It is never part of a model's output schema or a browser response.
62
+ * Unmarked responses retain the legacy palette-distinctness contract.
63
+ */
64
+ export declare const Step6DesignAgentRecommendationsResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
65
+ theme_candidates: z.ZodArray<z.ZodObject<{
66
+ name: z.ZodString;
67
+ description: z.ZodString;
68
+ reason: z.ZodString;
69
+ color_seeds: z.ZodObject<{
70
+ primary: z.ZodString;
71
+ accent: z.ZodString;
72
+ foreground: z.ZodString;
73
+ }, z.core.$strict>;
74
+ surface_mode: z.ZodEnum<{
75
+ light: "light";
76
+ dark: "dark";
77
+ }>;
78
+ radius: z.ZodEnum<{
79
+ none: "none";
80
+ sm: "sm";
81
+ md: "md";
82
+ lg: "lg";
83
+ xl: "xl";
84
+ }>;
85
+ font_pairing_id: z.ZodEnum<{
86
+ "archivo-inter": "archivo-inter";
87
+ "playfair-source-sans": "playfair-source-sans";
88
+ "space-grotesk-manrope": "space-grotesk-manrope";
89
+ "fraunces-libre-franklin": "fraunces-libre-franklin";
90
+ "noto-serif-sc-noto-sans-sc": "noto-serif-sc-noto-sans-sc";
91
+ "noto-sans-sc": "noto-sans-sc";
92
+ }>;
93
+ motion_preset_id: z.ZodEnum<{
94
+ subtle: "subtle";
95
+ moderate: "moderate";
96
+ expressive: "expressive";
97
+ }>;
98
+ density: z.ZodEnum<{
99
+ compact: "compact";
100
+ comfortable: "comfortable";
101
+ airy: "airy";
102
+ }>;
103
+ }, z.core.$strict>>;
104
+ conversion: z.ZodOptional<z.ZodObject<{
105
+ protocol: z.ZodEnum<{
106
+ external: "external";
107
+ phone: "phone";
108
+ form: "form";
109
+ download: "download";
110
+ route: "route";
111
+ }>;
112
+ ctaLabel: z.ZodString;
113
+ ctaTarget: z.ZodOptional<z.ZodString>;
114
+ requiresOwnerDetail: z.ZodOptional<z.ZodBoolean>;
115
+ }, z.core.$strip>>;
116
+ }, z.core.$strict>, z.ZodObject<{
117
+ theme_candidates: z.ZodArray<z.ZodObject<{
118
+ name: z.ZodString;
119
+ description: z.ZodString;
120
+ reason: z.ZodString;
121
+ color_seeds: z.ZodObject<{
122
+ primary: z.ZodString;
123
+ accent: z.ZodString;
124
+ foreground: z.ZodString;
125
+ }, z.core.$strict>;
126
+ surface_mode: z.ZodEnum<{
127
+ light: "light";
128
+ dark: "dark";
129
+ }>;
130
+ radius: z.ZodEnum<{
131
+ none: "none";
132
+ sm: "sm";
133
+ md: "md";
134
+ lg: "lg";
135
+ xl: "xl";
136
+ }>;
137
+ font_pairing_id: z.ZodEnum<{
138
+ "archivo-inter": "archivo-inter";
139
+ "playfair-source-sans": "playfair-source-sans";
140
+ "space-grotesk-manrope": "space-grotesk-manrope";
141
+ "fraunces-libre-franklin": "fraunces-libre-franklin";
142
+ "noto-serif-sc-noto-sans-sc": "noto-serif-sc-noto-sans-sc";
143
+ "noto-sans-sc": "noto-sans-sc";
144
+ }>;
145
+ motion_preset_id: z.ZodEnum<{
146
+ subtle: "subtle";
147
+ moderate: "moderate";
148
+ expressive: "expressive";
149
+ }>;
150
+ density: z.ZodEnum<{
151
+ compact: "compact";
152
+ comfortable: "comfortable";
153
+ airy: "airy";
154
+ }>;
155
+ }, z.core.$strict>>;
156
+ conversion: z.ZodOptional<z.ZodObject<{
157
+ protocol: z.ZodEnum<{
158
+ external: "external";
159
+ phone: "phone";
160
+ form: "form";
161
+ download: "download";
162
+ route: "route";
163
+ }>;
164
+ ctaLabel: z.ZodString;
165
+ ctaTarget: z.ZodOptional<z.ZodString>;
166
+ requiresOwnerDetail: z.ZodOptional<z.ZodBoolean>;
167
+ }, z.core.$strip>>;
168
+ model_profile: z.ZodLiteral<"azure-gpt">;
169
+ }, z.core.$strict>]>;
170
+ export type Step6DesignAgentRecommendationsResponse = z.infer<typeof Step6DesignAgentRecommendationsResponseSchema>;
@@ -52,6 +52,11 @@ export declare const ERROR_COPY: {
52
52
  readonly CLARIFY_MODEL_FAILED: "Clarify couldn't finish generating questions. Please try again.";
53
53
  readonly WORKSPACE_RUN_IN_FLIGHT: "Another session is already running. Please try again in a moment.";
54
54
  readonly SITE_OPERATION_LOCKED: "Another change is already running for this site. Wait for it to finish, then try again.";
55
+ readonly WORKSPACE_THREAD_NOT_FOUND: "That conversation no longer exists. Switching back to the default conversation.";
56
+ readonly WORKSPACE_THREAD_ARCHIVED: "This conversation is archived. Start a new one to continue.";
57
+ readonly WORKSPACE_THREAD_BUSY: "This conversation is still running. Wait for it to finish before archiving.";
58
+ readonly WORKSPACE_THREAD_READ_ONLY: "Background conversations are read-only here.";
59
+ readonly WORKSPACE_THREAD_INVALID: "This conversation can't accept new requests right now. Refresh and try again.";
55
60
  readonly EDIT_ENGINE_VERSION_INVALID: "Invalid editor version. Refresh the page and try again.";
56
61
  readonly SANDBOX_DEPENDENCY_SYNC_FAILED: "The preview runtime could not be prepared. Please try again.";
57
62
  readonly SANDBOX_PREVIEW_FAILED: "The site preview failed to start. Please try again.";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vcp-dev/contracts",
3
- "version": "0.9.4",
3
+ "version": "0.9.5",
4
4
  "type": "module",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {