@vcp-dev/contracts 0.10.3 → 0.10.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.
- package/dist/cms-page-directory.d.ts +1 -0
- package/dist/external-site-edit.d.ts +30 -12
- package/dist/fill-in-targets.d.ts +22 -0
- package/dist/generation-ledger.d.ts +254 -0
- package/dist/index.d.ts +1199 -32
- package/dist/index.js +1 -1
- package/dist/launcher-prompt-templates.d.ts +2 -0
- package/dist/media-library.d.ts +6 -1
- package/dist/nav-label-width.d.ts +19 -0
- package/dist/page-template.d.ts +101 -8
- package/dist/run-control.d.ts +285 -0
- package/dist/site-edit-operation.d.ts +1 -1
- package/dist/site-edit-render-document.d.ts +5 -1
- package/dist/site-edit-version.d.ts +1 -1
- package/dist/sitemap-structure.d.ts +82 -0
- package/dist/step5-strategy.d.ts +4 -0
- package/dist/user-facing-copy.d.ts +23 -0
- package/dist/workspace-attachment.d.ts +27 -0
- package/package.json +1 -1
|
@@ -81,6 +81,7 @@ export declare const DesignerPageDisabledReasonSchema: z.ZodEnum<{
|
|
|
81
81
|
missing_url: "missing_url";
|
|
82
82
|
not_vcp_managed: "not_vcp_managed";
|
|
83
83
|
unsupported_page_type: "unsupported_page_type";
|
|
84
|
+
page_not_generated: "page_not_generated";
|
|
84
85
|
}>;
|
|
85
86
|
export type DesignerPageDisabledReason = z.infer<typeof DesignerPageDisabledReasonSchema>;
|
|
86
87
|
export declare const DesignerPageDeleteBlockReasonSchema: z.ZodEnum<{
|
|
@@ -7,6 +7,12 @@ import { z } from "zod";
|
|
|
7
7
|
* 自己的运行与会话标识,VCP 只原样存储与回显,不解析其含义。
|
|
8
8
|
*/
|
|
9
9
|
export declare const ExternalSiteEditTaskIdSchema: z.ZodUUID;
|
|
10
|
+
export declare const SiteEditExecutionSceneSchema: z.ZodEnum<{
|
|
11
|
+
external_site_edit: "external_site_edit";
|
|
12
|
+
page_template_create: "page_template_create";
|
|
13
|
+
}>;
|
|
14
|
+
export type SiteEditExecutionScene = z.infer<typeof SiteEditExecutionSceneSchema>;
|
|
15
|
+
export declare const ExternalSiteEditExternalIdSchema: z.ZodString;
|
|
10
16
|
/** 提示词上限。改站提示词是一次任务描述,不是资料投递通道。 */
|
|
11
17
|
export declare const EXTERNAL_SITE_EDIT_PROMPT_MAX_LENGTH = 4000;
|
|
12
18
|
/**
|
|
@@ -75,9 +81,13 @@ export type CreateExternalSiteEditRequest = z.infer<typeof CreateExternalSiteEdi
|
|
|
75
81
|
*/
|
|
76
82
|
export declare const ExternalSiteEditTaskSchema: z.ZodObject<{
|
|
77
83
|
id: z.ZodUUID;
|
|
84
|
+
execution_scene: z.ZodDefault<z.ZodEnum<{
|
|
85
|
+
external_site_edit: "external_site_edit";
|
|
86
|
+
page_template_create: "page_template_create";
|
|
87
|
+
}>>;
|
|
78
88
|
site_id: z.ZodUUID;
|
|
79
|
-
external_run_id: z.ZodString
|
|
80
|
-
external_thread_id: z.ZodString
|
|
89
|
+
external_run_id: z.ZodNullable<z.ZodString>;
|
|
90
|
+
external_thread_id: z.ZodNullable<z.ZodString>;
|
|
81
91
|
status: z.ZodEnum<{
|
|
82
92
|
succeeded: "succeeded";
|
|
83
93
|
failed: "failed";
|
|
@@ -112,11 +122,11 @@ export declare const ExternalSiteEditTaskSchema: z.ZodObject<{
|
|
|
112
122
|
summary: z.ZodNullable<z.ZodString>;
|
|
113
123
|
error_code: z.ZodNullable<z.ZodString>;
|
|
114
124
|
build_verified: z.ZodNullable<z.ZodBoolean>;
|
|
115
|
-
callback_status: z.ZodEnum<{
|
|
125
|
+
callback_status: z.ZodNullable<z.ZodEnum<{
|
|
116
126
|
failed: "failed";
|
|
117
127
|
pending: "pending";
|
|
118
128
|
delivered: "delivered";
|
|
119
|
-
}
|
|
129
|
+
}>>;
|
|
120
130
|
created_at: z.ZodString;
|
|
121
131
|
started_at: z.ZodNullable<z.ZodString>;
|
|
122
132
|
finished_at: z.ZodNullable<z.ZodString>;
|
|
@@ -125,9 +135,13 @@ export type ExternalSiteEditTask = z.infer<typeof ExternalSiteEditTaskSchema>;
|
|
|
125
135
|
export declare const CreateExternalSiteEditResponseSchema: z.ZodObject<{
|
|
126
136
|
task: z.ZodObject<{
|
|
127
137
|
id: z.ZodUUID;
|
|
138
|
+
execution_scene: z.ZodDefault<z.ZodEnum<{
|
|
139
|
+
external_site_edit: "external_site_edit";
|
|
140
|
+
page_template_create: "page_template_create";
|
|
141
|
+
}>>;
|
|
128
142
|
site_id: z.ZodUUID;
|
|
129
|
-
external_run_id: z.ZodString
|
|
130
|
-
external_thread_id: z.ZodString
|
|
143
|
+
external_run_id: z.ZodNullable<z.ZodString>;
|
|
144
|
+
external_thread_id: z.ZodNullable<z.ZodString>;
|
|
131
145
|
status: z.ZodEnum<{
|
|
132
146
|
succeeded: "succeeded";
|
|
133
147
|
failed: "failed";
|
|
@@ -162,11 +176,11 @@ export declare const CreateExternalSiteEditResponseSchema: z.ZodObject<{
|
|
|
162
176
|
summary: z.ZodNullable<z.ZodString>;
|
|
163
177
|
error_code: z.ZodNullable<z.ZodString>;
|
|
164
178
|
build_verified: z.ZodNullable<z.ZodBoolean>;
|
|
165
|
-
callback_status: z.ZodEnum<{
|
|
179
|
+
callback_status: z.ZodNullable<z.ZodEnum<{
|
|
166
180
|
failed: "failed";
|
|
167
181
|
pending: "pending";
|
|
168
182
|
delivered: "delivered";
|
|
169
|
-
}
|
|
183
|
+
}>>;
|
|
170
184
|
created_at: z.ZodString;
|
|
171
185
|
started_at: z.ZodNullable<z.ZodString>;
|
|
172
186
|
finished_at: z.ZodNullable<z.ZodString>;
|
|
@@ -176,9 +190,13 @@ export type CreateExternalSiteEditResponse = z.infer<typeof CreateExternalSiteEd
|
|
|
176
190
|
export declare const GetExternalSiteEditResponseSchema: z.ZodObject<{
|
|
177
191
|
task: z.ZodObject<{
|
|
178
192
|
id: z.ZodUUID;
|
|
193
|
+
execution_scene: z.ZodDefault<z.ZodEnum<{
|
|
194
|
+
external_site_edit: "external_site_edit";
|
|
195
|
+
page_template_create: "page_template_create";
|
|
196
|
+
}>>;
|
|
179
197
|
site_id: z.ZodUUID;
|
|
180
|
-
external_run_id: z.ZodString
|
|
181
|
-
external_thread_id: z.ZodString
|
|
198
|
+
external_run_id: z.ZodNullable<z.ZodString>;
|
|
199
|
+
external_thread_id: z.ZodNullable<z.ZodString>;
|
|
182
200
|
status: z.ZodEnum<{
|
|
183
201
|
succeeded: "succeeded";
|
|
184
202
|
failed: "failed";
|
|
@@ -213,11 +231,11 @@ export declare const GetExternalSiteEditResponseSchema: z.ZodObject<{
|
|
|
213
231
|
summary: z.ZodNullable<z.ZodString>;
|
|
214
232
|
error_code: z.ZodNullable<z.ZodString>;
|
|
215
233
|
build_verified: z.ZodNullable<z.ZodBoolean>;
|
|
216
|
-
callback_status: z.ZodEnum<{
|
|
234
|
+
callback_status: z.ZodNullable<z.ZodEnum<{
|
|
217
235
|
failed: "failed";
|
|
218
236
|
pending: "pending";
|
|
219
237
|
delivered: "delivered";
|
|
220
|
-
}
|
|
238
|
+
}>>;
|
|
221
239
|
created_at: z.ZodString;
|
|
222
240
|
started_at: z.ZodNullable<z.ZodString>;
|
|
223
241
|
finished_at: z.ZodNullable<z.ZodString>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { WorkspaceGenerationLedger } from "./generation-ledger.js";
|
|
2
|
+
import type { FillInTarget } from "./run-control.js";
|
|
3
|
+
export type FillInTargetCheck = {
|
|
4
|
+
ok: true;
|
|
5
|
+
} | {
|
|
6
|
+
ok: false;
|
|
7
|
+
target_id: string;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* 账本侧的补齐目标校验:只看遗漏清单,不看文件。文件层面的冲突
|
|
11
|
+
* (用户后来自己建了同路由页面、删了承载页面)由 agent 侧的
|
|
12
|
+
* `resolveFillInTargets` 判 FILL_IN_TARGET_MODIFIED。
|
|
13
|
+
*
|
|
14
|
+
* 页面目标的 `target_id` 是该页 `page_id`,组件目标是 `block_id`,
|
|
15
|
+
* 共享目标是 `header` / `footer` / `style`。已经补齐过的条目留在账本里
|
|
16
|
+
* (`filled: true`,历史不删),因此必须连同 `filled` 一起判:只要目标
|
|
17
|
+
* 不在清单里、或者已经补过,就不是一个可补齐的目标。
|
|
18
|
+
*/
|
|
19
|
+
export declare function assertFillInTargetsOmitted(input: {
|
|
20
|
+
ledger: WorkspaceGenerationLedger;
|
|
21
|
+
targets: readonly FillInTarget[];
|
|
22
|
+
}): FillInTargetCheck;
|
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* 首次生成的页面结果账本(方案 5.0、6.3、8 章)。
|
|
4
|
+
* 计划中保留用户确认的全部页面身份;实际交付允许省略,但每个省略项都带对象、原因与修复次数。
|
|
5
|
+
*
|
|
6
|
+
* message 只写固定枚举文案:本对象会整体进 AgentEvent payload,
|
|
7
|
+
* AppendAgentEventRequestSchema 对整份 payload 跑 containsSensitiveData,
|
|
8
|
+
* 把 tsc 诊断或模型自由文本塞进来会让整条事件被拒收。
|
|
9
|
+
*/
|
|
10
|
+
export declare const WorkspaceOmissionKindSchema: z.ZodEnum<{
|
|
11
|
+
page: "page";
|
|
12
|
+
component: "component";
|
|
13
|
+
shared: "shared";
|
|
14
|
+
}>;
|
|
15
|
+
export type WorkspaceOmissionKind = z.infer<typeof WorkspaceOmissionKindSchema>;
|
|
16
|
+
export declare const WorkspaceOmissionReasonSchema: z.ZodEnum<{
|
|
17
|
+
conflict: "conflict";
|
|
18
|
+
generation_failed: "generation_failed";
|
|
19
|
+
repair_exhausted: "repair_exhausted";
|
|
20
|
+
page_unusable: "page_unusable";
|
|
21
|
+
check_incomplete: "check_incomplete";
|
|
22
|
+
design_missing: "design_missing";
|
|
23
|
+
chrome_fallback: "chrome_fallback";
|
|
24
|
+
style_fallback: "style_fallback";
|
|
25
|
+
resume_exhausted: "resume_exhausted";
|
|
26
|
+
user_stopped: "user_stopped";
|
|
27
|
+
}>;
|
|
28
|
+
export type WorkspaceOmissionReason = z.infer<typeof WorkspaceOmissionReasonSchema>;
|
|
29
|
+
export declare const WorkspaceOmissionSchema: z.ZodObject<{
|
|
30
|
+
kind: z.ZodEnum<{
|
|
31
|
+
page: "page";
|
|
32
|
+
component: "component";
|
|
33
|
+
shared: "shared";
|
|
34
|
+
}>;
|
|
35
|
+
target_id: z.ZodString;
|
|
36
|
+
page_id: z.ZodNullable<z.ZodString>;
|
|
37
|
+
reason: z.ZodEnum<{
|
|
38
|
+
conflict: "conflict";
|
|
39
|
+
generation_failed: "generation_failed";
|
|
40
|
+
repair_exhausted: "repair_exhausted";
|
|
41
|
+
page_unusable: "page_unusable";
|
|
42
|
+
check_incomplete: "check_incomplete";
|
|
43
|
+
design_missing: "design_missing";
|
|
44
|
+
chrome_fallback: "chrome_fallback";
|
|
45
|
+
style_fallback: "style_fallback";
|
|
46
|
+
resume_exhausted: "resume_exhausted";
|
|
47
|
+
user_stopped: "user_stopped";
|
|
48
|
+
}>;
|
|
49
|
+
repair_attempts: z.ZodNumber;
|
|
50
|
+
message: z.ZodString;
|
|
51
|
+
filled: z.ZodOptional<z.ZodBoolean>;
|
|
52
|
+
}, z.core.$strict>;
|
|
53
|
+
export type WorkspaceOmission = z.infer<typeof WorkspaceOmissionSchema>;
|
|
54
|
+
export declare const WorkspacePageResultSchema: z.ZodEnum<{
|
|
55
|
+
partial: "partial";
|
|
56
|
+
complete: "complete";
|
|
57
|
+
pending: "pending";
|
|
58
|
+
check_incomplete: "check_incomplete";
|
|
59
|
+
omitted: "omitted";
|
|
60
|
+
}>;
|
|
61
|
+
export type WorkspacePageResult = z.infer<typeof WorkspacePageResultSchema>;
|
|
62
|
+
export declare const WorkspacePageOutcomeSchema: z.ZodObject<{
|
|
63
|
+
page_id: z.ZodString;
|
|
64
|
+
slug: z.ZodString;
|
|
65
|
+
title: z.ZodString;
|
|
66
|
+
parent_page_id: z.ZodNullable<z.ZodString>;
|
|
67
|
+
result: z.ZodEnum<{
|
|
68
|
+
partial: "partial";
|
|
69
|
+
complete: "complete";
|
|
70
|
+
pending: "pending";
|
|
71
|
+
check_incomplete: "check_incomplete";
|
|
72
|
+
omitted: "omitted";
|
|
73
|
+
}>;
|
|
74
|
+
attempts: z.ZodNumber;
|
|
75
|
+
omissions: z.ZodArray<z.ZodObject<{
|
|
76
|
+
kind: z.ZodEnum<{
|
|
77
|
+
page: "page";
|
|
78
|
+
component: "component";
|
|
79
|
+
shared: "shared";
|
|
80
|
+
}>;
|
|
81
|
+
target_id: z.ZodString;
|
|
82
|
+
page_id: z.ZodNullable<z.ZodString>;
|
|
83
|
+
reason: z.ZodEnum<{
|
|
84
|
+
conflict: "conflict";
|
|
85
|
+
generation_failed: "generation_failed";
|
|
86
|
+
repair_exhausted: "repair_exhausted";
|
|
87
|
+
page_unusable: "page_unusable";
|
|
88
|
+
check_incomplete: "check_incomplete";
|
|
89
|
+
design_missing: "design_missing";
|
|
90
|
+
chrome_fallback: "chrome_fallback";
|
|
91
|
+
style_fallback: "style_fallback";
|
|
92
|
+
resume_exhausted: "resume_exhausted";
|
|
93
|
+
user_stopped: "user_stopped";
|
|
94
|
+
}>;
|
|
95
|
+
repair_attempts: z.ZodNumber;
|
|
96
|
+
message: z.ZodString;
|
|
97
|
+
filled: z.ZodOptional<z.ZodBoolean>;
|
|
98
|
+
}, z.core.$strict>>;
|
|
99
|
+
}, z.core.$strict>;
|
|
100
|
+
export type WorkspacePageOutcome = z.infer<typeof WorkspacePageOutcomeSchema>;
|
|
101
|
+
export declare const WorkspaceGenerationLedgerSchema: z.ZodObject<{
|
|
102
|
+
schema_version: z.ZodLiteral<1>;
|
|
103
|
+
sitemap_id: z.ZodString;
|
|
104
|
+
confirmed_page_ids: z.ZodArray<z.ZodString>;
|
|
105
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
106
|
+
page_id: z.ZodString;
|
|
107
|
+
slug: z.ZodString;
|
|
108
|
+
title: z.ZodString;
|
|
109
|
+
parent_page_id: z.ZodNullable<z.ZodString>;
|
|
110
|
+
result: z.ZodEnum<{
|
|
111
|
+
partial: "partial";
|
|
112
|
+
complete: "complete";
|
|
113
|
+
pending: "pending";
|
|
114
|
+
check_incomplete: "check_incomplete";
|
|
115
|
+
omitted: "omitted";
|
|
116
|
+
}>;
|
|
117
|
+
attempts: z.ZodNumber;
|
|
118
|
+
omissions: z.ZodArray<z.ZodObject<{
|
|
119
|
+
kind: z.ZodEnum<{
|
|
120
|
+
page: "page";
|
|
121
|
+
component: "component";
|
|
122
|
+
shared: "shared";
|
|
123
|
+
}>;
|
|
124
|
+
target_id: z.ZodString;
|
|
125
|
+
page_id: z.ZodNullable<z.ZodString>;
|
|
126
|
+
reason: z.ZodEnum<{
|
|
127
|
+
conflict: "conflict";
|
|
128
|
+
generation_failed: "generation_failed";
|
|
129
|
+
repair_exhausted: "repair_exhausted";
|
|
130
|
+
page_unusable: "page_unusable";
|
|
131
|
+
check_incomplete: "check_incomplete";
|
|
132
|
+
design_missing: "design_missing";
|
|
133
|
+
chrome_fallback: "chrome_fallback";
|
|
134
|
+
style_fallback: "style_fallback";
|
|
135
|
+
resume_exhausted: "resume_exhausted";
|
|
136
|
+
user_stopped: "user_stopped";
|
|
137
|
+
}>;
|
|
138
|
+
repair_attempts: z.ZodNumber;
|
|
139
|
+
message: z.ZodString;
|
|
140
|
+
filled: z.ZodOptional<z.ZodBoolean>;
|
|
141
|
+
}, z.core.$strict>>;
|
|
142
|
+
}, z.core.$strict>>;
|
|
143
|
+
shared: z.ZodArray<z.ZodObject<{
|
|
144
|
+
kind: z.ZodEnum<{
|
|
145
|
+
page: "page";
|
|
146
|
+
component: "component";
|
|
147
|
+
shared: "shared";
|
|
148
|
+
}>;
|
|
149
|
+
target_id: z.ZodString;
|
|
150
|
+
page_id: z.ZodNullable<z.ZodString>;
|
|
151
|
+
reason: z.ZodEnum<{
|
|
152
|
+
conflict: "conflict";
|
|
153
|
+
generation_failed: "generation_failed";
|
|
154
|
+
repair_exhausted: "repair_exhausted";
|
|
155
|
+
page_unusable: "page_unusable";
|
|
156
|
+
check_incomplete: "check_incomplete";
|
|
157
|
+
design_missing: "design_missing";
|
|
158
|
+
chrome_fallback: "chrome_fallback";
|
|
159
|
+
style_fallback: "style_fallback";
|
|
160
|
+
resume_exhausted: "resume_exhausted";
|
|
161
|
+
user_stopped: "user_stopped";
|
|
162
|
+
}>;
|
|
163
|
+
repair_attempts: z.ZodNumber;
|
|
164
|
+
message: z.ZodString;
|
|
165
|
+
filled: z.ZodOptional<z.ZodBoolean>;
|
|
166
|
+
}, z.core.$strict>>;
|
|
167
|
+
stopped_by_user: z.ZodBoolean;
|
|
168
|
+
resume_count: z.ZodNumber;
|
|
169
|
+
home_replaced_by: z.ZodNullable<z.ZodString>;
|
|
170
|
+
updated_at: z.ZodString;
|
|
171
|
+
}, z.core.$strict>;
|
|
172
|
+
export type WorkspaceGenerationLedger = z.infer<typeof WorkspaceGenerationLedgerSchema>;
|
|
173
|
+
export declare const WorkspaceGenerationLedgerEventSchema: z.ZodObject<{
|
|
174
|
+
type: z.ZodLiteral<"workspace.generation_ledger">;
|
|
175
|
+
ledger: z.ZodObject<{
|
|
176
|
+
schema_version: z.ZodLiteral<1>;
|
|
177
|
+
sitemap_id: z.ZodString;
|
|
178
|
+
confirmed_page_ids: z.ZodArray<z.ZodString>;
|
|
179
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
180
|
+
page_id: z.ZodString;
|
|
181
|
+
slug: z.ZodString;
|
|
182
|
+
title: z.ZodString;
|
|
183
|
+
parent_page_id: z.ZodNullable<z.ZodString>;
|
|
184
|
+
result: z.ZodEnum<{
|
|
185
|
+
partial: "partial";
|
|
186
|
+
complete: "complete";
|
|
187
|
+
pending: "pending";
|
|
188
|
+
check_incomplete: "check_incomplete";
|
|
189
|
+
omitted: "omitted";
|
|
190
|
+
}>;
|
|
191
|
+
attempts: z.ZodNumber;
|
|
192
|
+
omissions: z.ZodArray<z.ZodObject<{
|
|
193
|
+
kind: z.ZodEnum<{
|
|
194
|
+
page: "page";
|
|
195
|
+
component: "component";
|
|
196
|
+
shared: "shared";
|
|
197
|
+
}>;
|
|
198
|
+
target_id: z.ZodString;
|
|
199
|
+
page_id: z.ZodNullable<z.ZodString>;
|
|
200
|
+
reason: z.ZodEnum<{
|
|
201
|
+
conflict: "conflict";
|
|
202
|
+
generation_failed: "generation_failed";
|
|
203
|
+
repair_exhausted: "repair_exhausted";
|
|
204
|
+
page_unusable: "page_unusable";
|
|
205
|
+
check_incomplete: "check_incomplete";
|
|
206
|
+
design_missing: "design_missing";
|
|
207
|
+
chrome_fallback: "chrome_fallback";
|
|
208
|
+
style_fallback: "style_fallback";
|
|
209
|
+
resume_exhausted: "resume_exhausted";
|
|
210
|
+
user_stopped: "user_stopped";
|
|
211
|
+
}>;
|
|
212
|
+
repair_attempts: z.ZodNumber;
|
|
213
|
+
message: z.ZodString;
|
|
214
|
+
filled: z.ZodOptional<z.ZodBoolean>;
|
|
215
|
+
}, z.core.$strict>>;
|
|
216
|
+
}, z.core.$strict>>;
|
|
217
|
+
shared: z.ZodArray<z.ZodObject<{
|
|
218
|
+
kind: z.ZodEnum<{
|
|
219
|
+
page: "page";
|
|
220
|
+
component: "component";
|
|
221
|
+
shared: "shared";
|
|
222
|
+
}>;
|
|
223
|
+
target_id: z.ZodString;
|
|
224
|
+
page_id: z.ZodNullable<z.ZodString>;
|
|
225
|
+
reason: z.ZodEnum<{
|
|
226
|
+
conflict: "conflict";
|
|
227
|
+
generation_failed: "generation_failed";
|
|
228
|
+
repair_exhausted: "repair_exhausted";
|
|
229
|
+
page_unusable: "page_unusable";
|
|
230
|
+
check_incomplete: "check_incomplete";
|
|
231
|
+
design_missing: "design_missing";
|
|
232
|
+
chrome_fallback: "chrome_fallback";
|
|
233
|
+
style_fallback: "style_fallback";
|
|
234
|
+
resume_exhausted: "resume_exhausted";
|
|
235
|
+
user_stopped: "user_stopped";
|
|
236
|
+
}>;
|
|
237
|
+
repair_attempts: z.ZodNumber;
|
|
238
|
+
message: z.ZodString;
|
|
239
|
+
filled: z.ZodOptional<z.ZodBoolean>;
|
|
240
|
+
}, z.core.$strict>>;
|
|
241
|
+
stopped_by_user: z.ZodBoolean;
|
|
242
|
+
resume_count: z.ZodNumber;
|
|
243
|
+
home_replaced_by: z.ZodNullable<z.ZodString>;
|
|
244
|
+
updated_at: z.ZodString;
|
|
245
|
+
}, z.core.$strict>;
|
|
246
|
+
at: z.ZodString;
|
|
247
|
+
}, z.core.$strict>;
|
|
248
|
+
export declare function countLedgerAccessiblePages(ledger: WorkspaceGenerationLedger): number;
|
|
249
|
+
/**
|
|
250
|
+
* 已处理 = 可访问 + 带页面级省略的页面(方案 5.0 / U36 的恒等式:已处理 = 可访问 + 遗漏清单里的整页条目数)。
|
|
251
|
+
* `omitted` / `check_incomplete` / `user_stopped` 三类页面各带且只带一条 `kind: "page"` 的省略,避免重复计数;
|
|
252
|
+
* 停止后仍为 `pending` 但带 `user_stopped` 整页省略的页面也算已处理。
|
|
253
|
+
*/
|
|
254
|
+
export declare function countLedgerProcessedPages(ledger: WorkspaceGenerationLedger): number;
|