@agent-phonon/protocol 0.9.0 → 0.10.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.
- package/README.md +35 -1
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -1
- package/dist/native-version.d.ts +6 -0
- package/dist/native-version.d.ts.map +1 -0
- package/dist/native-version.js +41 -0
- package/dist/native-version.js.map +1 -0
- package/dist/schemas/capabilities.d.ts +9 -0
- package/dist/schemas/capabilities.d.ts.map +1 -1
- package/dist/schemas/capabilities.js +3 -0
- package/dist/schemas/capabilities.js.map +1 -1
- package/dist/schemas/common.d.ts +4 -4
- package/dist/schemas/common.d.ts.map +1 -1
- package/dist/schemas/common.js +9 -0
- package/dist/schemas/common.js.map +1 -1
- package/dist/schemas/compression.d.ts +191 -0
- package/dist/schemas/compression.d.ts.map +1 -0
- package/dist/schemas/compression.js +18 -0
- package/dist/schemas/compression.js.map +1 -0
- package/dist/schemas/conversation-archive.d.ts +1021 -0
- package/dist/schemas/conversation-archive.d.ts.map +1 -0
- package/dist/schemas/conversation-archive.js +148 -0
- package/dist/schemas/conversation-archive.js.map +1 -0
- package/dist/schemas/conversation-board.d.ts +428 -0
- package/dist/schemas/conversation-board.d.ts.map +1 -0
- package/dist/schemas/conversation-board.js +32 -0
- package/dist/schemas/conversation-board.js.map +1 -0
- package/dist/schemas/conversation-message.d.ts +658 -0
- package/dist/schemas/conversation-message.d.ts.map +1 -0
- package/dist/schemas/conversation-message.js +42 -0
- package/dist/schemas/conversation-message.js.map +1 -0
- package/dist/schemas/conversation-workflow.d.ts +1201 -0
- package/dist/schemas/conversation-workflow.d.ts.map +1 -0
- package/dist/schemas/conversation-workflow.js +68 -0
- package/dist/schemas/conversation-workflow.js.map +1 -0
- package/dist/schemas/device.d.ts +198 -2
- package/dist/schemas/device.d.ts.map +1 -1
- package/dist/schemas/device.js +29 -1
- package/dist/schemas/device.js.map +1 -1
- package/dist/schemas/discovery.d.ts +107 -0
- package/dist/schemas/discovery.d.ts.map +1 -1
- package/dist/schemas/discovery.js +2 -0
- package/dist/schemas/discovery.js.map +1 -1
- package/dist/schemas/document.d.ts +56 -26
- package/dist/schemas/document.d.ts.map +1 -1
- package/dist/schemas/document.js +11 -0
- package/dist/schemas/document.js.map +1 -1
- package/dist/schemas/employee.d.ts +139 -0
- package/dist/schemas/employee.d.ts.map +1 -0
- package/dist/schemas/employee.js +17 -0
- package/dist/schemas/employee.js.map +1 -0
- package/dist/schemas/env.d.ts +15 -15
- package/dist/schemas/env.d.ts.map +1 -1
- package/dist/schemas/env.js +1 -1
- package/dist/schemas/env.js.map +1 -1
- package/dist/schemas/file.d.ts +6 -6
- package/dist/schemas/hook.d.ts +4 -4
- package/dist/schemas/interaction.d.ts +363 -2
- package/dist/schemas/interaction.d.ts.map +1 -1
- package/dist/schemas/interaction.js +28 -1
- package/dist/schemas/interaction.js.map +1 -1
- package/dist/schemas/jsonrpc.d.ts +19 -19
- package/dist/schemas/maintenance.d.ts +822 -0
- package/dist/schemas/maintenance.d.ts.map +1 -0
- package/dist/schemas/maintenance.js +166 -0
- package/dist/schemas/maintenance.js.map +1 -0
- package/dist/schemas/managed-mcp.d.ts +116 -0
- package/dist/schemas/managed-mcp.d.ts.map +1 -0
- package/dist/schemas/managed-mcp.js +23 -0
- package/dist/schemas/managed-mcp.js.map +1 -0
- package/dist/schemas/methods.d.ts +22195 -2371
- package/dist/schemas/methods.d.ts.map +1 -1
- package/dist/schemas/methods.js +181 -6
- package/dist/schemas/methods.js.map +1 -1
- package/dist/schemas/native-stop.d.ts +162 -0
- package/dist/schemas/native-stop.d.ts.map +1 -0
- package/dist/schemas/native-stop.js +14 -0
- package/dist/schemas/native-stop.js.map +1 -0
- package/dist/schemas/policy.d.ts +61 -2
- package/dist/schemas/policy.d.ts.map +1 -1
- package/dist/schemas/policy.js +33 -0
- package/dist/schemas/policy.js.map +1 -1
- package/dist/schemas/project-coordination.d.ts +1956 -0
- package/dist/schemas/project-coordination.d.ts.map +1 -0
- package/dist/schemas/project-coordination.js +81 -0
- package/dist/schemas/project-coordination.js.map +1 -0
- package/dist/schemas/project.d.ts +771 -53
- package/dist/schemas/project.d.ts.map +1 -1
- package/dist/schemas/project.js +60 -5
- package/dist/schemas/project.js.map +1 -1
- package/dist/schemas/reasoning.d.ts +26 -0
- package/dist/schemas/reasoning.d.ts.map +1 -0
- package/dist/schemas/reasoning.js +10 -0
- package/dist/schemas/reasoning.js.map +1 -0
- package/dist/schemas/schedule.d.ts +14653 -4527
- package/dist/schemas/schedule.d.ts.map +1 -1
- package/dist/schemas/schedule.js +55 -8
- package/dist/schemas/schedule.js.map +1 -1
- package/dist/schemas/session.d.ts +1558 -49
- package/dist/schemas/session.d.ts.map +1 -1
- package/dist/schemas/session.js +27 -16
- package/dist/schemas/session.js.map +1 -1
- package/dist/schemas/skill.d.ts +1009 -8
- package/dist/schemas/skill.d.ts.map +1 -1
- package/dist/schemas/skill.js +39 -0
- package/dist/schemas/skill.js.map +1 -1
- package/dist/schemas/stream.d.ts +1060 -67
- package/dist/schemas/stream.d.ts.map +1 -1
- package/dist/schemas/stream.js +18 -3
- package/dist/schemas/stream.js.map +1 -1
- package/dist/schemas/workflow.d.ts +2764 -255
- package/dist/schemas/workflow.d.ts.map +1 -1
- package/dist/schemas/workflow.js +69 -1
- package/dist/schemas/workflow.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +12 -0
- package/src/native-version.ts +30 -0
- package/src/schemas/capabilities.ts +3 -0
- package/src/schemas/common.ts +9 -0
- package/src/schemas/compression.ts +19 -0
- package/src/schemas/conversation-archive.ts +155 -0
- package/src/schemas/conversation-board.ts +36 -0
- package/src/schemas/conversation-message.ts +46 -0
- package/src/schemas/conversation-workflow.ts +62 -0
- package/src/schemas/device.ts +32 -1
- package/src/schemas/discovery.ts +2 -0
- package/src/schemas/document.ts +13 -0
- package/src/schemas/employee.ts +19 -0
- package/src/schemas/env.ts +1 -1
- package/src/schemas/interaction.ts +32 -1
- package/src/schemas/maintenance.ts +204 -0
- package/src/schemas/managed-mcp.ts +25 -0
- package/src/schemas/methods.ts +208 -1
- package/src/schemas/native-stop.ts +16 -0
- package/src/schemas/policy.ts +33 -0
- package/src/schemas/project-coordination.ts +90 -0
- package/src/schemas/project.ts +72 -5
- package/src/schemas/reasoning.ts +13 -0
- package/src/schemas/schedule.ts +63 -8
- package/src/schemas/session.ts +30 -18
- package/src/schemas/skill.ts +52 -0
- package/src/schemas/stream.ts +22 -3
- package/src/schemas/workflow.ts +82 -1
|
@@ -3,16 +3,21 @@ import { z } from "zod";
|
|
|
3
3
|
* 项目管理协议(design D23)。
|
|
4
4
|
*
|
|
5
5
|
* 一个项目 = 一个目录 + Git。所有 session 必须绑定一个项目(projectId)。
|
|
6
|
-
*
|
|
7
|
-
*
|
|
6
|
+
* 项目对应本机目录,但注册的 projectId 归属连接 namespace;其他 tenant 的标识及
|
|
7
|
+
* 未映射的旧记录不能自动借用。本机用户显式共享目录不等于 API 授予跨 namespace 权限。
|
|
8
8
|
*/
|
|
9
9
|
/** 项目描述。 */
|
|
10
10
|
export declare const ProjectDescriptor: z.ZodObject<{
|
|
11
11
|
projectId: z.ZodBranded<z.ZodString, "ProjectId">;
|
|
12
|
+
/** Creator connection namespace. Missing means an unmapped legacy record, not implicit ownership. */
|
|
13
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
14
|
+
/** Internal employee home, not a Registry project binding. */
|
|
15
|
+
employeeId: z.ZodOptional<z.ZodString>;
|
|
12
16
|
/** 展示名。 */
|
|
13
17
|
name: z.ZodString;
|
|
14
18
|
/** 项目目录的绝对路径(设备本地)。 */
|
|
15
19
|
path: z.ZodString;
|
|
20
|
+
directoryIdentity: z.ZodOptional<z.ZodString>;
|
|
16
21
|
/** 是否已 git init。 */
|
|
17
22
|
git: z.ZodDefault<z.ZodBoolean>;
|
|
18
23
|
/** 当前分支(若有)。 */
|
|
@@ -26,6 +31,9 @@ export declare const ProjectDescriptor: z.ZodObject<{
|
|
|
26
31
|
name: string;
|
|
27
32
|
projectId: string & z.BRAND<"ProjectId">;
|
|
28
33
|
git: boolean;
|
|
34
|
+
employeeId?: string | undefined;
|
|
35
|
+
namespace?: string | undefined;
|
|
36
|
+
directoryIdentity?: string | undefined;
|
|
29
37
|
branch?: string | undefined;
|
|
30
38
|
remote?: string | undefined;
|
|
31
39
|
}, {
|
|
@@ -33,12 +41,15 @@ export declare const ProjectDescriptor: z.ZodObject<{
|
|
|
33
41
|
createdAt: string;
|
|
34
42
|
name: string;
|
|
35
43
|
projectId: string;
|
|
44
|
+
employeeId?: string | undefined;
|
|
45
|
+
namespace?: string | undefined;
|
|
46
|
+
directoryIdentity?: string | undefined;
|
|
36
47
|
git?: boolean | undefined;
|
|
37
48
|
branch?: string | undefined;
|
|
38
49
|
remote?: string | undefined;
|
|
39
50
|
}>;
|
|
40
51
|
export type ProjectDescriptor = z.infer<typeof ProjectDescriptor>;
|
|
41
|
-
export declare const ProjectCreateParams: z.ZodObject<{
|
|
52
|
+
export declare const ProjectCreateParams: z.ZodEffects<z.ZodObject<{
|
|
42
53
|
/** 可选:幂等键(P0-3)。 */
|
|
43
54
|
clientRequestId: z.ZodOptional<z.ZodString>;
|
|
44
55
|
name: z.ZodString;
|
|
@@ -51,27 +62,49 @@ export declare const ProjectCreateParams: z.ZodObject<{
|
|
|
51
62
|
git: z.ZodDefault<z.ZodBoolean>;
|
|
52
63
|
/** 可选:初始化时设置的远端。 */
|
|
53
64
|
remote: z.ZodOptional<z.ZodString>;
|
|
65
|
+
existingDirectoryIdentity: z.ZodOptional<z.ZodString>;
|
|
54
66
|
}, "strip", z.ZodTypeAny, {
|
|
55
67
|
name: string;
|
|
56
68
|
git: boolean;
|
|
57
69
|
path?: string | undefined;
|
|
58
70
|
clientRequestId?: string | undefined;
|
|
59
71
|
remote?: string | undefined;
|
|
72
|
+
existingDirectoryIdentity?: string | undefined;
|
|
60
73
|
}, {
|
|
61
74
|
name: string;
|
|
62
75
|
path?: string | undefined;
|
|
63
76
|
clientRequestId?: string | undefined;
|
|
64
77
|
git?: boolean | undefined;
|
|
65
78
|
remote?: string | undefined;
|
|
79
|
+
existingDirectoryIdentity?: string | undefined;
|
|
80
|
+
}>, {
|
|
81
|
+
name: string;
|
|
82
|
+
git: boolean;
|
|
83
|
+
path?: string | undefined;
|
|
84
|
+
clientRequestId?: string | undefined;
|
|
85
|
+
remote?: string | undefined;
|
|
86
|
+
existingDirectoryIdentity?: string | undefined;
|
|
87
|
+
}, {
|
|
88
|
+
name: string;
|
|
89
|
+
path?: string | undefined;
|
|
90
|
+
clientRequestId?: string | undefined;
|
|
91
|
+
git?: boolean | undefined;
|
|
92
|
+
remote?: string | undefined;
|
|
93
|
+
existingDirectoryIdentity?: string | undefined;
|
|
66
94
|
}>;
|
|
67
95
|
export type ProjectCreateParams = z.infer<typeof ProjectCreateParams>;
|
|
68
96
|
export declare const ProjectCreateResult: z.ZodObject<{
|
|
69
97
|
project: z.ZodObject<{
|
|
70
98
|
projectId: z.ZodBranded<z.ZodString, "ProjectId">;
|
|
99
|
+
/** Creator connection namespace. Missing means an unmapped legacy record, not implicit ownership. */
|
|
100
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
101
|
+
/** Internal employee home, not a Registry project binding. */
|
|
102
|
+
employeeId: z.ZodOptional<z.ZodString>;
|
|
71
103
|
/** 展示名。 */
|
|
72
104
|
name: z.ZodString;
|
|
73
105
|
/** 项目目录的绝对路径(设备本地)。 */
|
|
74
106
|
path: z.ZodString;
|
|
107
|
+
directoryIdentity: z.ZodOptional<z.ZodString>;
|
|
75
108
|
/** 是否已 git init。 */
|
|
76
109
|
git: z.ZodDefault<z.ZodBoolean>;
|
|
77
110
|
/** 当前分支(若有)。 */
|
|
@@ -85,6 +118,9 @@ export declare const ProjectCreateResult: z.ZodObject<{
|
|
|
85
118
|
name: string;
|
|
86
119
|
projectId: string & z.BRAND<"ProjectId">;
|
|
87
120
|
git: boolean;
|
|
121
|
+
employeeId?: string | undefined;
|
|
122
|
+
namespace?: string | undefined;
|
|
123
|
+
directoryIdentity?: string | undefined;
|
|
88
124
|
branch?: string | undefined;
|
|
89
125
|
remote?: string | undefined;
|
|
90
126
|
}, {
|
|
@@ -92,6 +128,9 @@ export declare const ProjectCreateResult: z.ZodObject<{
|
|
|
92
128
|
createdAt: string;
|
|
93
129
|
name: string;
|
|
94
130
|
projectId: string;
|
|
131
|
+
employeeId?: string | undefined;
|
|
132
|
+
namespace?: string | undefined;
|
|
133
|
+
directoryIdentity?: string | undefined;
|
|
95
134
|
git?: boolean | undefined;
|
|
96
135
|
branch?: string | undefined;
|
|
97
136
|
remote?: string | undefined;
|
|
@@ -103,6 +142,9 @@ export declare const ProjectCreateResult: z.ZodObject<{
|
|
|
103
142
|
name: string;
|
|
104
143
|
projectId: string & z.BRAND<"ProjectId">;
|
|
105
144
|
git: boolean;
|
|
145
|
+
employeeId?: string | undefined;
|
|
146
|
+
namespace?: string | undefined;
|
|
147
|
+
directoryIdentity?: string | undefined;
|
|
106
148
|
branch?: string | undefined;
|
|
107
149
|
remote?: string | undefined;
|
|
108
150
|
};
|
|
@@ -112,21 +154,466 @@ export declare const ProjectCreateResult: z.ZodObject<{
|
|
|
112
154
|
createdAt: string;
|
|
113
155
|
name: string;
|
|
114
156
|
projectId: string;
|
|
157
|
+
employeeId?: string | undefined;
|
|
158
|
+
namespace?: string | undefined;
|
|
159
|
+
directoryIdentity?: string | undefined;
|
|
115
160
|
git?: boolean | undefined;
|
|
116
161
|
branch?: string | undefined;
|
|
117
162
|
remote?: string | undefined;
|
|
118
163
|
};
|
|
119
164
|
}>;
|
|
120
165
|
export type ProjectCreateResult = z.infer<typeof ProjectCreateResult>;
|
|
166
|
+
export declare const ProjectProvisionParams: z.ZodObject<{
|
|
167
|
+
clientRequestId: z.ZodString;
|
|
168
|
+
name: z.ZodString;
|
|
169
|
+
expectedReceiverID: z.ZodString;
|
|
170
|
+
}, "strict", z.ZodTypeAny, {
|
|
171
|
+
name: string;
|
|
172
|
+
clientRequestId: string;
|
|
173
|
+
expectedReceiverID: string;
|
|
174
|
+
}, {
|
|
175
|
+
name: string;
|
|
176
|
+
clientRequestId: string;
|
|
177
|
+
expectedReceiverID: string;
|
|
178
|
+
}>;
|
|
179
|
+
export type ProjectProvisionParams = z.infer<typeof ProjectProvisionParams>;
|
|
180
|
+
export declare const ProjectProvisionStatusParams: z.ZodObject<Pick<{
|
|
181
|
+
clientRequestId: z.ZodString;
|
|
182
|
+
name: z.ZodString;
|
|
183
|
+
expectedReceiverID: z.ZodString;
|
|
184
|
+
}, "clientRequestId" | "expectedReceiverID">, "strict", z.ZodTypeAny, {
|
|
185
|
+
clientRequestId: string;
|
|
186
|
+
expectedReceiverID: string;
|
|
187
|
+
}, {
|
|
188
|
+
clientRequestId: string;
|
|
189
|
+
expectedReceiverID: string;
|
|
190
|
+
}>;
|
|
191
|
+
export type ProjectProvisionStatusParams = z.infer<typeof ProjectProvisionStatusParams>;
|
|
192
|
+
export declare const ProjectProvisionStatusResult: z.ZodDiscriminatedUnion<"state", [z.ZodObject<{
|
|
193
|
+
state: z.ZodLiteral<"not_found">;
|
|
194
|
+
found: z.ZodLiteral<false>;
|
|
195
|
+
outcomeKnown: z.ZodLiteral<false>;
|
|
196
|
+
clientRequestId: z.ZodString;
|
|
197
|
+
receiverID: z.ZodString;
|
|
198
|
+
}, "strict", z.ZodTypeAny, {
|
|
199
|
+
state: "not_found";
|
|
200
|
+
clientRequestId: string;
|
|
201
|
+
receiverID: string;
|
|
202
|
+
found: false;
|
|
203
|
+
outcomeKnown: false;
|
|
204
|
+
}, {
|
|
205
|
+
state: "not_found";
|
|
206
|
+
clientRequestId: string;
|
|
207
|
+
receiverID: string;
|
|
208
|
+
found: false;
|
|
209
|
+
outcomeKnown: false;
|
|
210
|
+
}>, z.ZodObject<{
|
|
211
|
+
state: z.ZodLiteral<"prepared">;
|
|
212
|
+
found: z.ZodLiteral<true>;
|
|
213
|
+
outcomeKnown: z.ZodLiteral<false>;
|
|
214
|
+
dispatchClaimed: z.ZodLiteral<false>;
|
|
215
|
+
clientRequestId: z.ZodString;
|
|
216
|
+
receiverID: z.ZodString;
|
|
217
|
+
}, "strict", z.ZodTypeAny, {
|
|
218
|
+
state: "prepared";
|
|
219
|
+
clientRequestId: string;
|
|
220
|
+
receiverID: string;
|
|
221
|
+
found: true;
|
|
222
|
+
outcomeKnown: false;
|
|
223
|
+
dispatchClaimed: false;
|
|
224
|
+
}, {
|
|
225
|
+
state: "prepared";
|
|
226
|
+
clientRequestId: string;
|
|
227
|
+
receiverID: string;
|
|
228
|
+
found: true;
|
|
229
|
+
outcomeKnown: false;
|
|
230
|
+
dispatchClaimed: false;
|
|
231
|
+
}>, z.ZodObject<{
|
|
232
|
+
state: z.ZodEnum<["dispatched", "unknown"]>;
|
|
233
|
+
found: z.ZodLiteral<true>;
|
|
234
|
+
outcomeKnown: z.ZodLiteral<false>;
|
|
235
|
+
dispatchClaimed: z.ZodLiteral<true>;
|
|
236
|
+
clientRequestId: z.ZodString;
|
|
237
|
+
receiverID: z.ZodString;
|
|
238
|
+
}, "strict", z.ZodTypeAny, {
|
|
239
|
+
state: "unknown" | "dispatched";
|
|
240
|
+
clientRequestId: string;
|
|
241
|
+
receiverID: string;
|
|
242
|
+
found: true;
|
|
243
|
+
outcomeKnown: false;
|
|
244
|
+
dispatchClaimed: true;
|
|
245
|
+
}, {
|
|
246
|
+
state: "unknown" | "dispatched";
|
|
247
|
+
clientRequestId: string;
|
|
248
|
+
receiverID: string;
|
|
249
|
+
found: true;
|
|
250
|
+
outcomeKnown: false;
|
|
251
|
+
dispatchClaimed: true;
|
|
252
|
+
}>, z.ZodObject<{
|
|
253
|
+
state: z.ZodLiteral<"failed">;
|
|
254
|
+
found: z.ZodLiteral<true>;
|
|
255
|
+
outcomeKnown: z.ZodLiteral<true>;
|
|
256
|
+
dispatchClaimed: z.ZodLiteral<true>;
|
|
257
|
+
reasonCode: z.ZodLiteral<"creation_refused">;
|
|
258
|
+
clientRequestId: z.ZodString;
|
|
259
|
+
receiverID: z.ZodString;
|
|
260
|
+
}, "strict", z.ZodTypeAny, {
|
|
261
|
+
state: "failed";
|
|
262
|
+
reasonCode: "creation_refused";
|
|
263
|
+
clientRequestId: string;
|
|
264
|
+
receiverID: string;
|
|
265
|
+
found: true;
|
|
266
|
+
outcomeKnown: true;
|
|
267
|
+
dispatchClaimed: true;
|
|
268
|
+
}, {
|
|
269
|
+
state: "failed";
|
|
270
|
+
reasonCode: "creation_refused";
|
|
271
|
+
clientRequestId: string;
|
|
272
|
+
receiverID: string;
|
|
273
|
+
found: true;
|
|
274
|
+
outcomeKnown: true;
|
|
275
|
+
dispatchClaimed: true;
|
|
276
|
+
}>, z.ZodObject<{
|
|
277
|
+
state: z.ZodLiteral<"confirmed">;
|
|
278
|
+
found: z.ZodLiteral<true>;
|
|
279
|
+
outcomeKnown: z.ZodLiteral<true>;
|
|
280
|
+
dispatchClaimed: z.ZodLiteral<true>;
|
|
281
|
+
project: z.ZodObject<{
|
|
282
|
+
projectId: z.ZodBranded<z.ZodString, "ProjectId">;
|
|
283
|
+
/** Creator connection namespace. Missing means an unmapped legacy record, not implicit ownership. */
|
|
284
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
285
|
+
/** Internal employee home, not a Registry project binding. */
|
|
286
|
+
employeeId: z.ZodOptional<z.ZodString>;
|
|
287
|
+
/** 展示名。 */
|
|
288
|
+
name: z.ZodString;
|
|
289
|
+
/** 项目目录的绝对路径(设备本地)。 */
|
|
290
|
+
path: z.ZodString;
|
|
291
|
+
directoryIdentity: z.ZodOptional<z.ZodString>;
|
|
292
|
+
/** 是否已 git init。 */
|
|
293
|
+
git: z.ZodDefault<z.ZodBoolean>;
|
|
294
|
+
/** 当前分支(若有)。 */
|
|
295
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
296
|
+
/** 可选:远端 URL。 */
|
|
297
|
+
remote: z.ZodOptional<z.ZodString>;
|
|
298
|
+
createdAt: z.ZodString;
|
|
299
|
+
}, "strip", z.ZodTypeAny, {
|
|
300
|
+
path: string;
|
|
301
|
+
createdAt: string;
|
|
302
|
+
name: string;
|
|
303
|
+
projectId: string & z.BRAND<"ProjectId">;
|
|
304
|
+
git: boolean;
|
|
305
|
+
employeeId?: string | undefined;
|
|
306
|
+
namespace?: string | undefined;
|
|
307
|
+
directoryIdentity?: string | undefined;
|
|
308
|
+
branch?: string | undefined;
|
|
309
|
+
remote?: string | undefined;
|
|
310
|
+
}, {
|
|
311
|
+
path: string;
|
|
312
|
+
createdAt: string;
|
|
313
|
+
name: string;
|
|
314
|
+
projectId: string;
|
|
315
|
+
employeeId?: string | undefined;
|
|
316
|
+
namespace?: string | undefined;
|
|
317
|
+
directoryIdentity?: string | undefined;
|
|
318
|
+
git?: boolean | undefined;
|
|
319
|
+
branch?: string | undefined;
|
|
320
|
+
remote?: string | undefined;
|
|
321
|
+
}>;
|
|
322
|
+
rootIdentity: z.ZodString;
|
|
323
|
+
workspaceIdentity: z.ZodString;
|
|
324
|
+
clientRequestId: z.ZodString;
|
|
325
|
+
receiverID: z.ZodString;
|
|
326
|
+
}, "strict", z.ZodTypeAny, {
|
|
327
|
+
state: "confirmed";
|
|
328
|
+
project: {
|
|
329
|
+
path: string;
|
|
330
|
+
createdAt: string;
|
|
331
|
+
name: string;
|
|
332
|
+
projectId: string & z.BRAND<"ProjectId">;
|
|
333
|
+
git: boolean;
|
|
334
|
+
employeeId?: string | undefined;
|
|
335
|
+
namespace?: string | undefined;
|
|
336
|
+
directoryIdentity?: string | undefined;
|
|
337
|
+
branch?: string | undefined;
|
|
338
|
+
remote?: string | undefined;
|
|
339
|
+
};
|
|
340
|
+
clientRequestId: string;
|
|
341
|
+
receiverID: string;
|
|
342
|
+
found: true;
|
|
343
|
+
outcomeKnown: true;
|
|
344
|
+
dispatchClaimed: true;
|
|
345
|
+
rootIdentity: string;
|
|
346
|
+
workspaceIdentity: string;
|
|
347
|
+
}, {
|
|
348
|
+
state: "confirmed";
|
|
349
|
+
project: {
|
|
350
|
+
path: string;
|
|
351
|
+
createdAt: string;
|
|
352
|
+
name: string;
|
|
353
|
+
projectId: string;
|
|
354
|
+
employeeId?: string | undefined;
|
|
355
|
+
namespace?: string | undefined;
|
|
356
|
+
directoryIdentity?: string | undefined;
|
|
357
|
+
git?: boolean | undefined;
|
|
358
|
+
branch?: string | undefined;
|
|
359
|
+
remote?: string | undefined;
|
|
360
|
+
};
|
|
361
|
+
clientRequestId: string;
|
|
362
|
+
receiverID: string;
|
|
363
|
+
found: true;
|
|
364
|
+
outcomeKnown: true;
|
|
365
|
+
dispatchClaimed: true;
|
|
366
|
+
rootIdentity: string;
|
|
367
|
+
workspaceIdentity: string;
|
|
368
|
+
}>]>;
|
|
369
|
+
export type ProjectProvisionStatusResult = z.infer<typeof ProjectProvisionStatusResult>;
|
|
370
|
+
export declare const WorktreeProvisionParams: z.ZodObject<{
|
|
371
|
+
name: z.ZodString;
|
|
372
|
+
baseBranch: z.ZodString;
|
|
373
|
+
newBranch: z.ZodString;
|
|
374
|
+
clientRequestId: z.ZodString;
|
|
375
|
+
expectedReceiverID: z.ZodString;
|
|
376
|
+
projectId: z.ZodBranded<z.ZodString, "ProjectId">;
|
|
377
|
+
}, "strict", z.ZodTypeAny, {
|
|
378
|
+
name: string;
|
|
379
|
+
projectId: string & z.BRAND<"ProjectId">;
|
|
380
|
+
clientRequestId: string;
|
|
381
|
+
expectedReceiverID: string;
|
|
382
|
+
baseBranch: string;
|
|
383
|
+
newBranch: string;
|
|
384
|
+
}, {
|
|
385
|
+
name: string;
|
|
386
|
+
projectId: string;
|
|
387
|
+
clientRequestId: string;
|
|
388
|
+
expectedReceiverID: string;
|
|
389
|
+
baseBranch: string;
|
|
390
|
+
newBranch: string;
|
|
391
|
+
}>;
|
|
392
|
+
export type WorktreeProvisionParams = z.infer<typeof WorktreeProvisionParams>;
|
|
393
|
+
export declare const WorktreeProvisionStatusParams: z.ZodObject<{
|
|
394
|
+
clientRequestId: z.ZodString;
|
|
395
|
+
expectedReceiverID: z.ZodString;
|
|
396
|
+
projectId: z.ZodBranded<z.ZodString, "ProjectId">;
|
|
397
|
+
}, "strict", z.ZodTypeAny, {
|
|
398
|
+
projectId: string & z.BRAND<"ProjectId">;
|
|
399
|
+
clientRequestId: string;
|
|
400
|
+
expectedReceiverID: string;
|
|
401
|
+
}, {
|
|
402
|
+
projectId: string;
|
|
403
|
+
clientRequestId: string;
|
|
404
|
+
expectedReceiverID: string;
|
|
405
|
+
}>;
|
|
406
|
+
export type WorktreeProvisionStatusParams = z.infer<typeof WorktreeProvisionStatusParams>;
|
|
407
|
+
export declare const WorktreeProvisionStatusResult: z.ZodDiscriminatedUnion<"state", [z.ZodObject<{
|
|
408
|
+
state: z.ZodLiteral<"not_found">;
|
|
409
|
+
found: z.ZodLiteral<false>;
|
|
410
|
+
outcomeKnown: z.ZodLiteral<false>;
|
|
411
|
+
clientRequestId: z.ZodString;
|
|
412
|
+
receiverID: z.ZodString;
|
|
413
|
+
projectId: z.ZodBranded<z.ZodString, "ProjectId">;
|
|
414
|
+
}, "strict", z.ZodTypeAny, {
|
|
415
|
+
state: "not_found";
|
|
416
|
+
projectId: string & z.BRAND<"ProjectId">;
|
|
417
|
+
clientRequestId: string;
|
|
418
|
+
receiverID: string;
|
|
419
|
+
found: false;
|
|
420
|
+
outcomeKnown: false;
|
|
421
|
+
}, {
|
|
422
|
+
state: "not_found";
|
|
423
|
+
projectId: string;
|
|
424
|
+
clientRequestId: string;
|
|
425
|
+
receiverID: string;
|
|
426
|
+
found: false;
|
|
427
|
+
outcomeKnown: false;
|
|
428
|
+
}>, z.ZodObject<{
|
|
429
|
+
state: z.ZodLiteral<"prepared">;
|
|
430
|
+
found: z.ZodLiteral<true>;
|
|
431
|
+
outcomeKnown: z.ZodLiteral<false>;
|
|
432
|
+
dispatchClaimed: z.ZodLiteral<false>;
|
|
433
|
+
clientRequestId: z.ZodString;
|
|
434
|
+
receiverID: z.ZodString;
|
|
435
|
+
projectId: z.ZodBranded<z.ZodString, "ProjectId">;
|
|
436
|
+
}, "strict", z.ZodTypeAny, {
|
|
437
|
+
state: "prepared";
|
|
438
|
+
projectId: string & z.BRAND<"ProjectId">;
|
|
439
|
+
clientRequestId: string;
|
|
440
|
+
receiverID: string;
|
|
441
|
+
found: true;
|
|
442
|
+
outcomeKnown: false;
|
|
443
|
+
dispatchClaimed: false;
|
|
444
|
+
}, {
|
|
445
|
+
state: "prepared";
|
|
446
|
+
projectId: string;
|
|
447
|
+
clientRequestId: string;
|
|
448
|
+
receiverID: string;
|
|
449
|
+
found: true;
|
|
450
|
+
outcomeKnown: false;
|
|
451
|
+
dispatchClaimed: false;
|
|
452
|
+
}>, z.ZodObject<{
|
|
453
|
+
state: z.ZodEnum<["dispatched", "unknown"]>;
|
|
454
|
+
found: z.ZodLiteral<true>;
|
|
455
|
+
outcomeKnown: z.ZodLiteral<false>;
|
|
456
|
+
dispatchClaimed: z.ZodLiteral<true>;
|
|
457
|
+
clientRequestId: z.ZodString;
|
|
458
|
+
receiverID: z.ZodString;
|
|
459
|
+
projectId: z.ZodBranded<z.ZodString, "ProjectId">;
|
|
460
|
+
}, "strict", z.ZodTypeAny, {
|
|
461
|
+
state: "unknown" | "dispatched";
|
|
462
|
+
projectId: string & z.BRAND<"ProjectId">;
|
|
463
|
+
clientRequestId: string;
|
|
464
|
+
receiverID: string;
|
|
465
|
+
found: true;
|
|
466
|
+
outcomeKnown: false;
|
|
467
|
+
dispatchClaimed: true;
|
|
468
|
+
}, {
|
|
469
|
+
state: "unknown" | "dispatched";
|
|
470
|
+
projectId: string;
|
|
471
|
+
clientRequestId: string;
|
|
472
|
+
receiverID: string;
|
|
473
|
+
found: true;
|
|
474
|
+
outcomeKnown: false;
|
|
475
|
+
dispatchClaimed: true;
|
|
476
|
+
}>, z.ZodObject<{
|
|
477
|
+
state: z.ZodLiteral<"failed">;
|
|
478
|
+
found: z.ZodLiteral<true>;
|
|
479
|
+
outcomeKnown: z.ZodLiteral<true>;
|
|
480
|
+
dispatchClaimed: z.ZodLiteral<true>;
|
|
481
|
+
reasonCode: z.ZodLiteral<"creation_refused">;
|
|
482
|
+
clientRequestId: z.ZodString;
|
|
483
|
+
receiverID: z.ZodString;
|
|
484
|
+
projectId: z.ZodBranded<z.ZodString, "ProjectId">;
|
|
485
|
+
}, "strict", z.ZodTypeAny, {
|
|
486
|
+
state: "failed";
|
|
487
|
+
reasonCode: "creation_refused";
|
|
488
|
+
projectId: string & z.BRAND<"ProjectId">;
|
|
489
|
+
clientRequestId: string;
|
|
490
|
+
receiverID: string;
|
|
491
|
+
found: true;
|
|
492
|
+
outcomeKnown: true;
|
|
493
|
+
dispatchClaimed: true;
|
|
494
|
+
}, {
|
|
495
|
+
state: "failed";
|
|
496
|
+
reasonCode: "creation_refused";
|
|
497
|
+
projectId: string;
|
|
498
|
+
clientRequestId: string;
|
|
499
|
+
receiverID: string;
|
|
500
|
+
found: true;
|
|
501
|
+
outcomeKnown: true;
|
|
502
|
+
dispatchClaimed: true;
|
|
503
|
+
}>, z.ZodObject<{
|
|
504
|
+
state: z.ZodLiteral<"confirmed">;
|
|
505
|
+
found: z.ZodLiteral<true>;
|
|
506
|
+
outcomeKnown: z.ZodLiteral<true>;
|
|
507
|
+
dispatchClaimed: z.ZodLiteral<true>;
|
|
508
|
+
workspace: z.ZodObject<{
|
|
509
|
+
projectId: z.ZodBranded<z.ZodString, "ProjectId">;
|
|
510
|
+
/** Creator connection namespace. Missing means an unmapped legacy record, not implicit ownership. */
|
|
511
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
512
|
+
/** Internal employee home, not a Registry project binding. */
|
|
513
|
+
employeeId: z.ZodOptional<z.ZodString>;
|
|
514
|
+
/** 展示名。 */
|
|
515
|
+
name: z.ZodString;
|
|
516
|
+
/** 项目目录的绝对路径(设备本地)。 */
|
|
517
|
+
path: z.ZodString;
|
|
518
|
+
directoryIdentity: z.ZodOptional<z.ZodString>;
|
|
519
|
+
/** 是否已 git init。 */
|
|
520
|
+
git: z.ZodDefault<z.ZodBoolean>;
|
|
521
|
+
/** 当前分支(若有)。 */
|
|
522
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
523
|
+
/** 可选:远端 URL。 */
|
|
524
|
+
remote: z.ZodOptional<z.ZodString>;
|
|
525
|
+
createdAt: z.ZodString;
|
|
526
|
+
}, "strip", z.ZodTypeAny, {
|
|
527
|
+
path: string;
|
|
528
|
+
createdAt: string;
|
|
529
|
+
name: string;
|
|
530
|
+
projectId: string & z.BRAND<"ProjectId">;
|
|
531
|
+
git: boolean;
|
|
532
|
+
employeeId?: string | undefined;
|
|
533
|
+
namespace?: string | undefined;
|
|
534
|
+
directoryIdentity?: string | undefined;
|
|
535
|
+
branch?: string | undefined;
|
|
536
|
+
remote?: string | undefined;
|
|
537
|
+
}, {
|
|
538
|
+
path: string;
|
|
539
|
+
createdAt: string;
|
|
540
|
+
name: string;
|
|
541
|
+
projectId: string;
|
|
542
|
+
employeeId?: string | undefined;
|
|
543
|
+
namespace?: string | undefined;
|
|
544
|
+
directoryIdentity?: string | undefined;
|
|
545
|
+
git?: boolean | undefined;
|
|
546
|
+
branch?: string | undefined;
|
|
547
|
+
remote?: string | undefined;
|
|
548
|
+
}>;
|
|
549
|
+
directoryIdentity: z.ZodString;
|
|
550
|
+
baseCommit: z.ZodString;
|
|
551
|
+
branch: z.ZodString;
|
|
552
|
+
clientRequestId: z.ZodString;
|
|
553
|
+
receiverID: z.ZodString;
|
|
554
|
+
projectId: z.ZodBranded<z.ZodString, "ProjectId">;
|
|
555
|
+
}, "strict", z.ZodTypeAny, {
|
|
556
|
+
state: "confirmed";
|
|
557
|
+
projectId: string & z.BRAND<"ProjectId">;
|
|
558
|
+
clientRequestId: string;
|
|
559
|
+
receiverID: string;
|
|
560
|
+
found: true;
|
|
561
|
+
outcomeKnown: true;
|
|
562
|
+
dispatchClaimed: true;
|
|
563
|
+
directoryIdentity: string;
|
|
564
|
+
branch: string;
|
|
565
|
+
workspace: {
|
|
566
|
+
path: string;
|
|
567
|
+
createdAt: string;
|
|
568
|
+
name: string;
|
|
569
|
+
projectId: string & z.BRAND<"ProjectId">;
|
|
570
|
+
git: boolean;
|
|
571
|
+
employeeId?: string | undefined;
|
|
572
|
+
namespace?: string | undefined;
|
|
573
|
+
directoryIdentity?: string | undefined;
|
|
574
|
+
branch?: string | undefined;
|
|
575
|
+
remote?: string | undefined;
|
|
576
|
+
};
|
|
577
|
+
baseCommit: string;
|
|
578
|
+
}, {
|
|
579
|
+
state: "confirmed";
|
|
580
|
+
projectId: string;
|
|
581
|
+
clientRequestId: string;
|
|
582
|
+
receiverID: string;
|
|
583
|
+
found: true;
|
|
584
|
+
outcomeKnown: true;
|
|
585
|
+
dispatchClaimed: true;
|
|
586
|
+
directoryIdentity: string;
|
|
587
|
+
branch: string;
|
|
588
|
+
workspace: {
|
|
589
|
+
path: string;
|
|
590
|
+
createdAt: string;
|
|
591
|
+
name: string;
|
|
592
|
+
projectId: string;
|
|
593
|
+
employeeId?: string | undefined;
|
|
594
|
+
namespace?: string | undefined;
|
|
595
|
+
directoryIdentity?: string | undefined;
|
|
596
|
+
git?: boolean | undefined;
|
|
597
|
+
branch?: string | undefined;
|
|
598
|
+
remote?: string | undefined;
|
|
599
|
+
};
|
|
600
|
+
baseCommit: string;
|
|
601
|
+
}>]>;
|
|
602
|
+
export type WorktreeProvisionStatusResult = z.infer<typeof WorktreeProvisionStatusResult>;
|
|
121
603
|
export declare const ProjectListParams: z.ZodDefault<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
122
604
|
export type ProjectListParams = z.infer<typeof ProjectListParams>;
|
|
123
605
|
export declare const ProjectListResult: z.ZodObject<{
|
|
124
606
|
projects: z.ZodArray<z.ZodObject<{
|
|
125
607
|
projectId: z.ZodBranded<z.ZodString, "ProjectId">;
|
|
608
|
+
/** Creator connection namespace. Missing means an unmapped legacy record, not implicit ownership. */
|
|
609
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
610
|
+
/** Internal employee home, not a Registry project binding. */
|
|
611
|
+
employeeId: z.ZodOptional<z.ZodString>;
|
|
126
612
|
/** 展示名。 */
|
|
127
613
|
name: z.ZodString;
|
|
128
614
|
/** 项目目录的绝对路径(设备本地)。 */
|
|
129
615
|
path: z.ZodString;
|
|
616
|
+
directoryIdentity: z.ZodOptional<z.ZodString>;
|
|
130
617
|
/** 是否已 git init。 */
|
|
131
618
|
git: z.ZodDefault<z.ZodBoolean>;
|
|
132
619
|
/** 当前分支(若有)。 */
|
|
@@ -140,6 +627,9 @@ export declare const ProjectListResult: z.ZodObject<{
|
|
|
140
627
|
name: string;
|
|
141
628
|
projectId: string & z.BRAND<"ProjectId">;
|
|
142
629
|
git: boolean;
|
|
630
|
+
employeeId?: string | undefined;
|
|
631
|
+
namespace?: string | undefined;
|
|
632
|
+
directoryIdentity?: string | undefined;
|
|
143
633
|
branch?: string | undefined;
|
|
144
634
|
remote?: string | undefined;
|
|
145
635
|
}, {
|
|
@@ -147,6 +637,9 @@ export declare const ProjectListResult: z.ZodObject<{
|
|
|
147
637
|
createdAt: string;
|
|
148
638
|
name: string;
|
|
149
639
|
projectId: string;
|
|
640
|
+
employeeId?: string | undefined;
|
|
641
|
+
namespace?: string | undefined;
|
|
642
|
+
directoryIdentity?: string | undefined;
|
|
150
643
|
git?: boolean | undefined;
|
|
151
644
|
branch?: string | undefined;
|
|
152
645
|
remote?: string | undefined;
|
|
@@ -158,6 +651,9 @@ export declare const ProjectListResult: z.ZodObject<{
|
|
|
158
651
|
name: string;
|
|
159
652
|
projectId: string & z.BRAND<"ProjectId">;
|
|
160
653
|
git: boolean;
|
|
654
|
+
employeeId?: string | undefined;
|
|
655
|
+
namespace?: string | undefined;
|
|
656
|
+
directoryIdentity?: string | undefined;
|
|
161
657
|
branch?: string | undefined;
|
|
162
658
|
remote?: string | undefined;
|
|
163
659
|
}[];
|
|
@@ -167,6 +663,9 @@ export declare const ProjectListResult: z.ZodObject<{
|
|
|
167
663
|
createdAt: string;
|
|
168
664
|
name: string;
|
|
169
665
|
projectId: string;
|
|
666
|
+
employeeId?: string | undefined;
|
|
667
|
+
namespace?: string | undefined;
|
|
668
|
+
directoryIdentity?: string | undefined;
|
|
170
669
|
git?: boolean | undefined;
|
|
171
670
|
branch?: string | undefined;
|
|
172
671
|
remote?: string | undefined;
|
|
@@ -184,10 +683,15 @@ export type ProjectGetParams = z.infer<typeof ProjectGetParams>;
|
|
|
184
683
|
export declare const ProjectGetResult: z.ZodObject<{
|
|
185
684
|
project: z.ZodObject<{
|
|
186
685
|
projectId: z.ZodBranded<z.ZodString, "ProjectId">;
|
|
686
|
+
/** Creator connection namespace. Missing means an unmapped legacy record, not implicit ownership. */
|
|
687
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
688
|
+
/** Internal employee home, not a Registry project binding. */
|
|
689
|
+
employeeId: z.ZodOptional<z.ZodString>;
|
|
187
690
|
/** 展示名。 */
|
|
188
691
|
name: z.ZodString;
|
|
189
692
|
/** 项目目录的绝对路径(设备本地)。 */
|
|
190
693
|
path: z.ZodString;
|
|
694
|
+
directoryIdentity: z.ZodOptional<z.ZodString>;
|
|
191
695
|
/** 是否已 git init。 */
|
|
192
696
|
git: z.ZodDefault<z.ZodBoolean>;
|
|
193
697
|
/** 当前分支(若有)。 */
|
|
@@ -201,6 +705,9 @@ export declare const ProjectGetResult: z.ZodObject<{
|
|
|
201
705
|
name: string;
|
|
202
706
|
projectId: string & z.BRAND<"ProjectId">;
|
|
203
707
|
git: boolean;
|
|
708
|
+
employeeId?: string | undefined;
|
|
709
|
+
namespace?: string | undefined;
|
|
710
|
+
directoryIdentity?: string | undefined;
|
|
204
711
|
branch?: string | undefined;
|
|
205
712
|
remote?: string | undefined;
|
|
206
713
|
}, {
|
|
@@ -208,6 +715,9 @@ export declare const ProjectGetResult: z.ZodObject<{
|
|
|
208
715
|
createdAt: string;
|
|
209
716
|
name: string;
|
|
210
717
|
projectId: string;
|
|
718
|
+
employeeId?: string | undefined;
|
|
719
|
+
namespace?: string | undefined;
|
|
720
|
+
directoryIdentity?: string | undefined;
|
|
211
721
|
git?: boolean | undefined;
|
|
212
722
|
branch?: string | undefined;
|
|
213
723
|
remote?: string | undefined;
|
|
@@ -219,6 +729,9 @@ export declare const ProjectGetResult: z.ZodObject<{
|
|
|
219
729
|
name: string;
|
|
220
730
|
projectId: string & z.BRAND<"ProjectId">;
|
|
221
731
|
git: boolean;
|
|
732
|
+
employeeId?: string | undefined;
|
|
733
|
+
namespace?: string | undefined;
|
|
734
|
+
directoryIdentity?: string | undefined;
|
|
222
735
|
branch?: string | undefined;
|
|
223
736
|
remote?: string | undefined;
|
|
224
737
|
};
|
|
@@ -228,6 +741,9 @@ export declare const ProjectGetResult: z.ZodObject<{
|
|
|
228
741
|
createdAt: string;
|
|
229
742
|
name: string;
|
|
230
743
|
projectId: string;
|
|
744
|
+
employeeId?: string | undefined;
|
|
745
|
+
namespace?: string | undefined;
|
|
746
|
+
directoryIdentity?: string | undefined;
|
|
231
747
|
git?: boolean | undefined;
|
|
232
748
|
branch?: string | undefined;
|
|
233
749
|
remote?: string | undefined;
|
|
@@ -265,13 +781,13 @@ export declare const ProjectRemoveResult: z.ZodObject<{
|
|
|
265
781
|
terminatedSessions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
266
782
|
}, "strip", z.ZodTypeAny, {
|
|
267
783
|
projectId: string & z.BRAND<"ProjectId">;
|
|
268
|
-
removed: true;
|
|
269
784
|
filesDeleted: boolean;
|
|
785
|
+
removed: true;
|
|
270
786
|
terminatedSessions?: string[] | undefined;
|
|
271
787
|
}, {
|
|
272
788
|
projectId: string;
|
|
273
|
-
removed: true;
|
|
274
789
|
filesDeleted: boolean;
|
|
790
|
+
removed: true;
|
|
275
791
|
terminatedSessions?: string[] | undefined;
|
|
276
792
|
}>;
|
|
277
793
|
export type ProjectRemoveResult = z.infer<typeof ProjectRemoveResult>;
|
|
@@ -289,15 +805,15 @@ export declare const WorktreeDescriptor: z.ZodObject<{
|
|
|
289
805
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
290
806
|
}, "strip", z.ZodTypeAny, {
|
|
291
807
|
path: string;
|
|
292
|
-
worktreeId: string;
|
|
293
808
|
projectId: string & z.BRAND<"ProjectId">;
|
|
809
|
+
worktreeId: string;
|
|
294
810
|
branch: string;
|
|
295
811
|
isPrimary: boolean;
|
|
296
812
|
createdAt?: string | undefined;
|
|
297
813
|
}, {
|
|
298
814
|
path: string;
|
|
299
|
-
worktreeId: string;
|
|
300
815
|
projectId: string;
|
|
816
|
+
worktreeId: string;
|
|
301
817
|
branch: string;
|
|
302
818
|
createdAt?: string | undefined;
|
|
303
819
|
isPrimary?: boolean | undefined;
|
|
@@ -344,15 +860,15 @@ export declare const WorktreeCreateResult: z.ZodObject<{
|
|
|
344
860
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
345
861
|
}, "strip", z.ZodTypeAny, {
|
|
346
862
|
path: string;
|
|
347
|
-
worktreeId: string;
|
|
348
863
|
projectId: string & z.BRAND<"ProjectId">;
|
|
864
|
+
worktreeId: string;
|
|
349
865
|
branch: string;
|
|
350
866
|
isPrimary: boolean;
|
|
351
867
|
createdAt?: string | undefined;
|
|
352
868
|
}, {
|
|
353
869
|
path: string;
|
|
354
|
-
worktreeId: string;
|
|
355
870
|
projectId: string;
|
|
871
|
+
worktreeId: string;
|
|
356
872
|
branch: string;
|
|
357
873
|
createdAt?: string | undefined;
|
|
358
874
|
isPrimary?: boolean | undefined;
|
|
@@ -360,8 +876,8 @@ export declare const WorktreeCreateResult: z.ZodObject<{
|
|
|
360
876
|
}, "strip", z.ZodTypeAny, {
|
|
361
877
|
worktree: {
|
|
362
878
|
path: string;
|
|
363
|
-
worktreeId: string;
|
|
364
879
|
projectId: string & z.BRAND<"ProjectId">;
|
|
880
|
+
worktreeId: string;
|
|
365
881
|
branch: string;
|
|
366
882
|
isPrimary: boolean;
|
|
367
883
|
createdAt?: string | undefined;
|
|
@@ -369,8 +885,8 @@ export declare const WorktreeCreateResult: z.ZodObject<{
|
|
|
369
885
|
}, {
|
|
370
886
|
worktree: {
|
|
371
887
|
path: string;
|
|
372
|
-
worktreeId: string;
|
|
373
888
|
projectId: string;
|
|
889
|
+
worktreeId: string;
|
|
374
890
|
branch: string;
|
|
375
891
|
createdAt?: string | undefined;
|
|
376
892
|
isPrimary?: boolean | undefined;
|
|
@@ -399,15 +915,15 @@ export declare const WorktreeListResult: z.ZodObject<{
|
|
|
399
915
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
400
916
|
}, "strip", z.ZodTypeAny, {
|
|
401
917
|
path: string;
|
|
402
|
-
worktreeId: string;
|
|
403
918
|
projectId: string & z.BRAND<"ProjectId">;
|
|
919
|
+
worktreeId: string;
|
|
404
920
|
branch: string;
|
|
405
921
|
isPrimary: boolean;
|
|
406
922
|
createdAt?: string | undefined;
|
|
407
923
|
}, {
|
|
408
924
|
path: string;
|
|
409
|
-
worktreeId: string;
|
|
410
925
|
projectId: string;
|
|
926
|
+
worktreeId: string;
|
|
411
927
|
branch: string;
|
|
412
928
|
createdAt?: string | undefined;
|
|
413
929
|
isPrimary?: boolean | undefined;
|
|
@@ -415,8 +931,8 @@ export declare const WorktreeListResult: z.ZodObject<{
|
|
|
415
931
|
}, "strip", z.ZodTypeAny, {
|
|
416
932
|
worktrees: {
|
|
417
933
|
path: string;
|
|
418
|
-
worktreeId: string;
|
|
419
934
|
projectId: string & z.BRAND<"ProjectId">;
|
|
935
|
+
worktreeId: string;
|
|
420
936
|
branch: string;
|
|
421
937
|
isPrimary: boolean;
|
|
422
938
|
createdAt?: string | undefined;
|
|
@@ -424,8 +940,8 @@ export declare const WorktreeListResult: z.ZodObject<{
|
|
|
424
940
|
}, {
|
|
425
941
|
worktrees: {
|
|
426
942
|
path: string;
|
|
427
|
-
worktreeId: string;
|
|
428
943
|
projectId: string;
|
|
944
|
+
worktreeId: string;
|
|
429
945
|
branch: string;
|
|
430
946
|
createdAt?: string | undefined;
|
|
431
947
|
isPrimary?: boolean | undefined;
|
|
@@ -442,12 +958,12 @@ export declare const WorktreeRemoveParams: z.ZodObject<{
|
|
|
442
958
|
*/
|
|
443
959
|
force: z.ZodDefault<z.ZodBoolean>;
|
|
444
960
|
}, "strip", z.ZodTypeAny, {
|
|
445
|
-
worktreeId: string;
|
|
446
961
|
force: boolean;
|
|
447
962
|
projectId: string & z.BRAND<"ProjectId">;
|
|
448
|
-
}, {
|
|
449
963
|
worktreeId: string;
|
|
964
|
+
}, {
|
|
450
965
|
projectId: string;
|
|
966
|
+
worktreeId: string;
|
|
451
967
|
force?: boolean | undefined;
|
|
452
968
|
}>;
|
|
453
969
|
export type WorktreeRemoveParams = z.infer<typeof WorktreeRemoveParams>;
|
|
@@ -492,13 +1008,13 @@ export declare const GitDeleteBranchResult: z.ZodObject<{
|
|
|
492
1008
|
/** 被连带影响的 worktree(force 硬删时)。 */
|
|
493
1009
|
affectedWorktrees: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
494
1010
|
}, "strip", z.ZodTypeAny, {
|
|
495
|
-
branch: string;
|
|
496
1011
|
deleted: true;
|
|
1012
|
+
branch: string;
|
|
497
1013
|
wasMerged?: boolean | undefined;
|
|
498
1014
|
affectedWorktrees?: string[] | undefined;
|
|
499
1015
|
}, {
|
|
500
|
-
branch: string;
|
|
501
1016
|
deleted: true;
|
|
1017
|
+
branch: string;
|
|
502
1018
|
wasMerged?: boolean | undefined;
|
|
503
1019
|
affectedWorktrees?: string[] | undefined;
|
|
504
1020
|
}>;
|
|
@@ -527,8 +1043,8 @@ export declare const GitCommitParams: z.ZodObject<{
|
|
|
527
1043
|
message: string;
|
|
528
1044
|
projectId: string & z.BRAND<"ProjectId">;
|
|
529
1045
|
allowEmpty: boolean;
|
|
530
|
-
worktreeId?: string | undefined;
|
|
531
1046
|
files?: string[] | undefined;
|
|
1047
|
+
worktreeId?: string | undefined;
|
|
532
1048
|
author?: {
|
|
533
1049
|
name: string;
|
|
534
1050
|
email: string;
|
|
@@ -536,13 +1052,13 @@ export declare const GitCommitParams: z.ZodObject<{
|
|
|
536
1052
|
}, {
|
|
537
1053
|
message: string;
|
|
538
1054
|
projectId: string;
|
|
539
|
-
worktreeId?: string | undefined;
|
|
540
1055
|
files?: string[] | undefined;
|
|
541
|
-
|
|
1056
|
+
worktreeId?: string | undefined;
|
|
542
1057
|
author?: {
|
|
543
1058
|
name: string;
|
|
544
1059
|
email: string;
|
|
545
1060
|
} | undefined;
|
|
1061
|
+
allowEmpty?: boolean | undefined;
|
|
546
1062
|
}>;
|
|
547
1063
|
export type GitCommitParams = z.infer<typeof GitCommitParams>;
|
|
548
1064
|
export declare const GitCommitResult: z.ZodObject<{
|
|
@@ -552,13 +1068,13 @@ export declare const GitCommitResult: z.ZodObject<{
|
|
|
552
1068
|
insertions: z.ZodOptional<z.ZodNumber>;
|
|
553
1069
|
deletions: z.ZodOptional<z.ZodNumber>;
|
|
554
1070
|
}, "strip", z.ZodTypeAny, {
|
|
555
|
-
commitSha: string;
|
|
556
1071
|
filesChanged: number;
|
|
1072
|
+
commitSha: string;
|
|
557
1073
|
insertions?: number | undefined;
|
|
558
1074
|
deletions?: number | undefined;
|
|
559
1075
|
}, {
|
|
560
|
-
commitSha: string;
|
|
561
1076
|
filesChanged: number;
|
|
1077
|
+
commitSha: string;
|
|
562
1078
|
insertions?: number | undefined;
|
|
563
1079
|
deletions?: number | undefined;
|
|
564
1080
|
}>;
|
|
@@ -576,8 +1092,8 @@ export declare const GitMergeParams: z.ZodObject<{
|
|
|
576
1092
|
/** 冲突时是否 abort(默认 true,避免 worktree 留在冲突状态) */
|
|
577
1093
|
abortOnConflict: z.ZodDefault<z.ZodBoolean>;
|
|
578
1094
|
}, "strip", z.ZodTypeAny, {
|
|
579
|
-
strategy: "merge" | "squash" | "rebase" | "ff-only";
|
|
580
1095
|
projectId: string & z.BRAND<"ProjectId">;
|
|
1096
|
+
strategy: "merge" | "squash" | "rebase" | "ff-only";
|
|
581
1097
|
sourceBranch: string;
|
|
582
1098
|
abortOnConflict: boolean;
|
|
583
1099
|
message?: string | undefined;
|
|
@@ -686,8 +1202,8 @@ export declare const GitLogParams: z.ZodObject<{
|
|
|
686
1202
|
/** 只看这些路径相关的提交 */
|
|
687
1203
|
paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
688
1204
|
}, "strip", z.ZodTypeAny, {
|
|
689
|
-
limit: number;
|
|
690
1205
|
projectId: string & z.BRAND<"ProjectId">;
|
|
1206
|
+
limit: number;
|
|
691
1207
|
worktreeId?: string | undefined;
|
|
692
1208
|
branch?: string | undefined;
|
|
693
1209
|
paths?: string[] | undefined;
|
|
@@ -712,16 +1228,16 @@ export declare const GitCommitInfo: z.ZodObject<{
|
|
|
712
1228
|
subject: z.ZodString;
|
|
713
1229
|
body: z.ZodOptional<z.ZodString>;
|
|
714
1230
|
}, "strip", z.ZodTypeAny, {
|
|
715
|
-
email: string;
|
|
716
1231
|
author: string;
|
|
1232
|
+
email: string;
|
|
717
1233
|
sha: string;
|
|
718
1234
|
shortSha: string;
|
|
719
1235
|
timestamp: string;
|
|
720
1236
|
subject: string;
|
|
721
1237
|
body?: string | undefined;
|
|
722
1238
|
}, {
|
|
723
|
-
email: string;
|
|
724
1239
|
author: string;
|
|
1240
|
+
email: string;
|
|
725
1241
|
sha: string;
|
|
726
1242
|
shortSha: string;
|
|
727
1243
|
timestamp: string;
|
|
@@ -739,16 +1255,16 @@ export declare const GitLogResult: z.ZodObject<{
|
|
|
739
1255
|
subject: z.ZodString;
|
|
740
1256
|
body: z.ZodOptional<z.ZodString>;
|
|
741
1257
|
}, "strip", z.ZodTypeAny, {
|
|
742
|
-
email: string;
|
|
743
1258
|
author: string;
|
|
1259
|
+
email: string;
|
|
744
1260
|
sha: string;
|
|
745
1261
|
shortSha: string;
|
|
746
1262
|
timestamp: string;
|
|
747
1263
|
subject: string;
|
|
748
1264
|
body?: string | undefined;
|
|
749
1265
|
}, {
|
|
750
|
-
email: string;
|
|
751
1266
|
author: string;
|
|
1267
|
+
email: string;
|
|
752
1268
|
sha: string;
|
|
753
1269
|
shortSha: string;
|
|
754
1270
|
timestamp: string;
|
|
@@ -757,8 +1273,8 @@ export declare const GitLogResult: z.ZodObject<{
|
|
|
757
1273
|
}>, "many">;
|
|
758
1274
|
}, "strip", z.ZodTypeAny, {
|
|
759
1275
|
commits: {
|
|
760
|
-
email: string;
|
|
761
1276
|
author: string;
|
|
1277
|
+
email: string;
|
|
762
1278
|
sha: string;
|
|
763
1279
|
shortSha: string;
|
|
764
1280
|
timestamp: string;
|
|
@@ -767,8 +1283,8 @@ export declare const GitLogResult: z.ZodObject<{
|
|
|
767
1283
|
}[];
|
|
768
1284
|
}, {
|
|
769
1285
|
commits: {
|
|
770
|
-
email: string;
|
|
771
1286
|
author: string;
|
|
1287
|
+
email: string;
|
|
772
1288
|
sha: string;
|
|
773
1289
|
shortSha: string;
|
|
774
1290
|
timestamp: string;
|
|
@@ -795,8 +1311,8 @@ export declare const GitPushParams: z.ZodObject<{
|
|
|
795
1311
|
}, {
|
|
796
1312
|
projectId: string;
|
|
797
1313
|
branch: string;
|
|
798
|
-
worktreeId?: string | undefined;
|
|
799
1314
|
force?: boolean | undefined;
|
|
1315
|
+
worktreeId?: string | undefined;
|
|
800
1316
|
remote?: string | undefined;
|
|
801
1317
|
setUpstream?: boolean | undefined;
|
|
802
1318
|
}>;
|
|
@@ -823,6 +1339,58 @@ export declare const GitPushResult: z.ZodObject<{
|
|
|
823
1339
|
remoteHead?: string | undefined;
|
|
824
1340
|
}>;
|
|
825
1341
|
export type GitPushResult = z.infer<typeof GitPushResult>;
|
|
1342
|
+
export declare const GitOriginParams: z.ZodObject<{
|
|
1343
|
+
projectId: z.ZodBranded<z.ZodString, "ProjectId">;
|
|
1344
|
+
}, "strict", z.ZodTypeAny, {
|
|
1345
|
+
projectId: string & z.BRAND<"ProjectId">;
|
|
1346
|
+
}, {
|
|
1347
|
+
projectId: string;
|
|
1348
|
+
}>;
|
|
1349
|
+
export declare const GitOriginResult: z.ZodObject<{
|
|
1350
|
+
projectId: z.ZodBranded<z.ZodString, "ProjectId">;
|
|
1351
|
+
path: z.ZodString;
|
|
1352
|
+
repositoryRoot: z.ZodString;
|
|
1353
|
+
observedAt: z.ZodString;
|
|
1354
|
+
origin: z.ZodDiscriminatedUnion<"state", [z.ZodObject<{
|
|
1355
|
+
state: z.ZodLiteral<"configured">;
|
|
1356
|
+
url: z.ZodString;
|
|
1357
|
+
}, "strict", z.ZodTypeAny, {
|
|
1358
|
+
state: "configured";
|
|
1359
|
+
url: string;
|
|
1360
|
+
}, {
|
|
1361
|
+
state: "configured";
|
|
1362
|
+
url: string;
|
|
1363
|
+
}>, z.ZodObject<{
|
|
1364
|
+
state: z.ZodEnum<["missing", "unsupported"]>;
|
|
1365
|
+
}, "strict", z.ZodTypeAny, {
|
|
1366
|
+
state: "unsupported" | "missing";
|
|
1367
|
+
}, {
|
|
1368
|
+
state: "unsupported" | "missing";
|
|
1369
|
+
}>]>;
|
|
1370
|
+
}, "strict", z.ZodTypeAny, {
|
|
1371
|
+
path: string;
|
|
1372
|
+
observedAt: string;
|
|
1373
|
+
projectId: string & z.BRAND<"ProjectId">;
|
|
1374
|
+
origin: {
|
|
1375
|
+
state: "configured";
|
|
1376
|
+
url: string;
|
|
1377
|
+
} | {
|
|
1378
|
+
state: "unsupported" | "missing";
|
|
1379
|
+
};
|
|
1380
|
+
repositoryRoot: string;
|
|
1381
|
+
}, {
|
|
1382
|
+
path: string;
|
|
1383
|
+
observedAt: string;
|
|
1384
|
+
projectId: string;
|
|
1385
|
+
origin: {
|
|
1386
|
+
state: "configured";
|
|
1387
|
+
url: string;
|
|
1388
|
+
} | {
|
|
1389
|
+
state: "unsupported" | "missing";
|
|
1390
|
+
};
|
|
1391
|
+
repositoryRoot: string;
|
|
1392
|
+
}>;
|
|
1393
|
+
export type GitOriginResult = z.infer<typeof GitOriginResult>;
|
|
826
1394
|
export declare const GitStatusParams: z.ZodObject<{
|
|
827
1395
|
projectId: z.ZodBranded<z.ZodString, "ProjectId">;
|
|
828
1396
|
worktreeId: z.ZodOptional<z.ZodString>;
|
|
@@ -838,19 +1406,81 @@ export declare const GitFileStatus: z.ZodObject<{
|
|
|
838
1406
|
/** 文件路径(相对 cwd) */
|
|
839
1407
|
path: z.ZodString;
|
|
840
1408
|
/** 索引区状态(git status --porcelain 第 1 位) */
|
|
841
|
-
index: z.ZodEnum<["unmodified", "modified", "added", "deleted", "renamed", "copied", "untracked"]>;
|
|
1409
|
+
index: z.ZodEnum<["unmodified", "modified", "added", "deleted", "renamed", "copied", "untracked", "unmerged", "typeChanged"]>;
|
|
842
1410
|
/** 工作区状态(第 2 位) */
|
|
843
|
-
worktree: z.ZodEnum<["unmodified", "modified", "added", "deleted", "renamed", "copied", "untracked"]>;
|
|
1411
|
+
worktree: z.ZodEnum<["unmodified", "modified", "added", "deleted", "renamed", "copied", "untracked", "unmerged", "typeChanged"]>;
|
|
844
1412
|
}, "strip", z.ZodTypeAny, {
|
|
845
1413
|
path: string;
|
|
846
|
-
worktree: "deleted" | "unmodified" | "modified" | "added" | "renamed" | "copied" | "untracked";
|
|
847
|
-
index: "deleted" | "unmodified" | "modified" | "added" | "renamed" | "copied" | "untracked";
|
|
1414
|
+
worktree: "deleted" | "unmodified" | "modified" | "added" | "renamed" | "copied" | "untracked" | "unmerged" | "typeChanged";
|
|
1415
|
+
index: "deleted" | "unmodified" | "modified" | "added" | "renamed" | "copied" | "untracked" | "unmerged" | "typeChanged";
|
|
848
1416
|
}, {
|
|
849
1417
|
path: string;
|
|
850
|
-
worktree: "deleted" | "unmodified" | "modified" | "added" | "renamed" | "copied" | "untracked";
|
|
851
|
-
index: "deleted" | "unmodified" | "modified" | "added" | "renamed" | "copied" | "untracked";
|
|
1418
|
+
worktree: "deleted" | "unmodified" | "modified" | "added" | "renamed" | "copied" | "untracked" | "unmerged" | "typeChanged";
|
|
1419
|
+
index: "deleted" | "unmodified" | "modified" | "added" | "renamed" | "copied" | "untracked" | "unmerged" | "typeChanged";
|
|
852
1420
|
}>;
|
|
853
1421
|
export type GitFileStatus = z.infer<typeof GitFileStatus>;
|
|
1422
|
+
export declare const GitWorkspaceObservation: z.ZodEffects<z.ZodObject<{
|
|
1423
|
+
projectId: z.ZodBranded<z.ZodString, "ProjectId">;
|
|
1424
|
+
worktreeId: z.ZodOptional<z.ZodString>;
|
|
1425
|
+
path: z.ZodString;
|
|
1426
|
+
repositoryRoot: z.ZodString;
|
|
1427
|
+
isWorktree: z.ZodBoolean;
|
|
1428
|
+
detached: z.ZodBoolean;
|
|
1429
|
+
head: z.ZodOptional<z.ZodString>;
|
|
1430
|
+
observedAt: z.ZodString;
|
|
1431
|
+
changedFileCount: z.ZodNumber;
|
|
1432
|
+
trackedChangedFileCount: z.ZodNumber;
|
|
1433
|
+
untrackedFileCount: z.ZodNumber;
|
|
1434
|
+
}, "strict", z.ZodTypeAny, {
|
|
1435
|
+
path: string;
|
|
1436
|
+
observedAt: string;
|
|
1437
|
+
projectId: string & z.BRAND<"ProjectId">;
|
|
1438
|
+
detached: boolean;
|
|
1439
|
+
repositoryRoot: string;
|
|
1440
|
+
isWorktree: boolean;
|
|
1441
|
+
changedFileCount: number;
|
|
1442
|
+
trackedChangedFileCount: number;
|
|
1443
|
+
untrackedFileCount: number;
|
|
1444
|
+
worktreeId?: string | undefined;
|
|
1445
|
+
head?: string | undefined;
|
|
1446
|
+
}, {
|
|
1447
|
+
path: string;
|
|
1448
|
+
observedAt: string;
|
|
1449
|
+
projectId: string;
|
|
1450
|
+
detached: boolean;
|
|
1451
|
+
repositoryRoot: string;
|
|
1452
|
+
isWorktree: boolean;
|
|
1453
|
+
changedFileCount: number;
|
|
1454
|
+
trackedChangedFileCount: number;
|
|
1455
|
+
untrackedFileCount: number;
|
|
1456
|
+
worktreeId?: string | undefined;
|
|
1457
|
+
head?: string | undefined;
|
|
1458
|
+
}>, {
|
|
1459
|
+
path: string;
|
|
1460
|
+
observedAt: string;
|
|
1461
|
+
projectId: string & z.BRAND<"ProjectId">;
|
|
1462
|
+
detached: boolean;
|
|
1463
|
+
repositoryRoot: string;
|
|
1464
|
+
isWorktree: boolean;
|
|
1465
|
+
changedFileCount: number;
|
|
1466
|
+
trackedChangedFileCount: number;
|
|
1467
|
+
untrackedFileCount: number;
|
|
1468
|
+
worktreeId?: string | undefined;
|
|
1469
|
+
head?: string | undefined;
|
|
1470
|
+
}, {
|
|
1471
|
+
path: string;
|
|
1472
|
+
observedAt: string;
|
|
1473
|
+
projectId: string;
|
|
1474
|
+
detached: boolean;
|
|
1475
|
+
repositoryRoot: string;
|
|
1476
|
+
isWorktree: boolean;
|
|
1477
|
+
changedFileCount: number;
|
|
1478
|
+
trackedChangedFileCount: number;
|
|
1479
|
+
untrackedFileCount: number;
|
|
1480
|
+
worktreeId?: string | undefined;
|
|
1481
|
+
head?: string | undefined;
|
|
1482
|
+
}>;
|
|
1483
|
+
export type GitWorkspaceObservation = z.infer<typeof GitWorkspaceObservation>;
|
|
854
1484
|
export declare const GitStatusResult: z.ZodObject<{
|
|
855
1485
|
branch: z.ZodString;
|
|
856
1486
|
/** 是否 dirty(有任何未提交改动) */
|
|
@@ -863,37 +1493,125 @@ export declare const GitStatusResult: z.ZodObject<{
|
|
|
863
1493
|
/** 文件路径(相对 cwd) */
|
|
864
1494
|
path: z.ZodString;
|
|
865
1495
|
/** 索引区状态(git status --porcelain 第 1 位) */
|
|
866
|
-
index: z.ZodEnum<["unmodified", "modified", "added", "deleted", "renamed", "copied", "untracked"]>;
|
|
1496
|
+
index: z.ZodEnum<["unmodified", "modified", "added", "deleted", "renamed", "copied", "untracked", "unmerged", "typeChanged"]>;
|
|
867
1497
|
/** 工作区状态(第 2 位) */
|
|
868
|
-
worktree: z.ZodEnum<["unmodified", "modified", "added", "deleted", "renamed", "copied", "untracked"]>;
|
|
1498
|
+
worktree: z.ZodEnum<["unmodified", "modified", "added", "deleted", "renamed", "copied", "untracked", "unmerged", "typeChanged"]>;
|
|
869
1499
|
}, "strip", z.ZodTypeAny, {
|
|
870
1500
|
path: string;
|
|
871
|
-
worktree: "deleted" | "unmodified" | "modified" | "added" | "renamed" | "copied" | "untracked";
|
|
872
|
-
index: "deleted" | "unmodified" | "modified" | "added" | "renamed" | "copied" | "untracked";
|
|
1501
|
+
worktree: "deleted" | "unmodified" | "modified" | "added" | "renamed" | "copied" | "untracked" | "unmerged" | "typeChanged";
|
|
1502
|
+
index: "deleted" | "unmodified" | "modified" | "added" | "renamed" | "copied" | "untracked" | "unmerged" | "typeChanged";
|
|
873
1503
|
}, {
|
|
874
1504
|
path: string;
|
|
875
|
-
worktree: "deleted" | "unmodified" | "modified" | "added" | "renamed" | "copied" | "untracked";
|
|
876
|
-
index: "deleted" | "unmodified" | "modified" | "added" | "renamed" | "copied" | "untracked";
|
|
1505
|
+
worktree: "deleted" | "unmodified" | "modified" | "added" | "renamed" | "copied" | "untracked" | "unmerged" | "typeChanged";
|
|
1506
|
+
index: "deleted" | "unmodified" | "modified" | "added" | "renamed" | "copied" | "untracked" | "unmerged" | "typeChanged";
|
|
877
1507
|
}>, "many">;
|
|
1508
|
+
/** Live, bounded device observation. Older peers may omit it. */
|
|
1509
|
+
workspace: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
1510
|
+
projectId: z.ZodBranded<z.ZodString, "ProjectId">;
|
|
1511
|
+
worktreeId: z.ZodOptional<z.ZodString>;
|
|
1512
|
+
path: z.ZodString;
|
|
1513
|
+
repositoryRoot: z.ZodString;
|
|
1514
|
+
isWorktree: z.ZodBoolean;
|
|
1515
|
+
detached: z.ZodBoolean;
|
|
1516
|
+
head: z.ZodOptional<z.ZodString>;
|
|
1517
|
+
observedAt: z.ZodString;
|
|
1518
|
+
changedFileCount: z.ZodNumber;
|
|
1519
|
+
trackedChangedFileCount: z.ZodNumber;
|
|
1520
|
+
untrackedFileCount: z.ZodNumber;
|
|
1521
|
+
}, "strict", z.ZodTypeAny, {
|
|
1522
|
+
path: string;
|
|
1523
|
+
observedAt: string;
|
|
1524
|
+
projectId: string & z.BRAND<"ProjectId">;
|
|
1525
|
+
detached: boolean;
|
|
1526
|
+
repositoryRoot: string;
|
|
1527
|
+
isWorktree: boolean;
|
|
1528
|
+
changedFileCount: number;
|
|
1529
|
+
trackedChangedFileCount: number;
|
|
1530
|
+
untrackedFileCount: number;
|
|
1531
|
+
worktreeId?: string | undefined;
|
|
1532
|
+
head?: string | undefined;
|
|
1533
|
+
}, {
|
|
1534
|
+
path: string;
|
|
1535
|
+
observedAt: string;
|
|
1536
|
+
projectId: string;
|
|
1537
|
+
detached: boolean;
|
|
1538
|
+
repositoryRoot: string;
|
|
1539
|
+
isWorktree: boolean;
|
|
1540
|
+
changedFileCount: number;
|
|
1541
|
+
trackedChangedFileCount: number;
|
|
1542
|
+
untrackedFileCount: number;
|
|
1543
|
+
worktreeId?: string | undefined;
|
|
1544
|
+
head?: string | undefined;
|
|
1545
|
+
}>, {
|
|
1546
|
+
path: string;
|
|
1547
|
+
observedAt: string;
|
|
1548
|
+
projectId: string & z.BRAND<"ProjectId">;
|
|
1549
|
+
detached: boolean;
|
|
1550
|
+
repositoryRoot: string;
|
|
1551
|
+
isWorktree: boolean;
|
|
1552
|
+
changedFileCount: number;
|
|
1553
|
+
trackedChangedFileCount: number;
|
|
1554
|
+
untrackedFileCount: number;
|
|
1555
|
+
worktreeId?: string | undefined;
|
|
1556
|
+
head?: string | undefined;
|
|
1557
|
+
}, {
|
|
1558
|
+
path: string;
|
|
1559
|
+
observedAt: string;
|
|
1560
|
+
projectId: string;
|
|
1561
|
+
detached: boolean;
|
|
1562
|
+
repositoryRoot: string;
|
|
1563
|
+
isWorktree: boolean;
|
|
1564
|
+
changedFileCount: number;
|
|
1565
|
+
trackedChangedFileCount: number;
|
|
1566
|
+
untrackedFileCount: number;
|
|
1567
|
+
worktreeId?: string | undefined;
|
|
1568
|
+
head?: string | undefined;
|
|
1569
|
+
}>>;
|
|
878
1570
|
}, "strip", z.ZodTypeAny, {
|
|
879
|
-
branch: string;
|
|
880
1571
|
files: {
|
|
881
1572
|
path: string;
|
|
882
|
-
worktree: "deleted" | "unmodified" | "modified" | "added" | "renamed" | "copied" | "untracked";
|
|
883
|
-
index: "deleted" | "unmodified" | "modified" | "added" | "renamed" | "copied" | "untracked";
|
|
1573
|
+
worktree: "deleted" | "unmodified" | "modified" | "added" | "renamed" | "copied" | "untracked" | "unmerged" | "typeChanged";
|
|
1574
|
+
index: "deleted" | "unmodified" | "modified" | "added" | "renamed" | "copied" | "untracked" | "unmerged" | "typeChanged";
|
|
884
1575
|
}[];
|
|
1576
|
+
branch: string;
|
|
885
1577
|
isClean: boolean;
|
|
1578
|
+
workspace?: {
|
|
1579
|
+
path: string;
|
|
1580
|
+
observedAt: string;
|
|
1581
|
+
projectId: string & z.BRAND<"ProjectId">;
|
|
1582
|
+
detached: boolean;
|
|
1583
|
+
repositoryRoot: string;
|
|
1584
|
+
isWorktree: boolean;
|
|
1585
|
+
changedFileCount: number;
|
|
1586
|
+
trackedChangedFileCount: number;
|
|
1587
|
+
untrackedFileCount: number;
|
|
1588
|
+
worktreeId?: string | undefined;
|
|
1589
|
+
head?: string | undefined;
|
|
1590
|
+
} | undefined;
|
|
886
1591
|
ahead?: number | undefined;
|
|
887
1592
|
behind?: number | undefined;
|
|
888
1593
|
upstream?: string | undefined;
|
|
889
1594
|
}, {
|
|
890
|
-
branch: string;
|
|
891
1595
|
files: {
|
|
892
1596
|
path: string;
|
|
893
|
-
worktree: "deleted" | "unmodified" | "modified" | "added" | "renamed" | "copied" | "untracked";
|
|
894
|
-
index: "deleted" | "unmodified" | "modified" | "added" | "renamed" | "copied" | "untracked";
|
|
1597
|
+
worktree: "deleted" | "unmodified" | "modified" | "added" | "renamed" | "copied" | "untracked" | "unmerged" | "typeChanged";
|
|
1598
|
+
index: "deleted" | "unmodified" | "modified" | "added" | "renamed" | "copied" | "untracked" | "unmerged" | "typeChanged";
|
|
895
1599
|
}[];
|
|
1600
|
+
branch: string;
|
|
896
1601
|
isClean: boolean;
|
|
1602
|
+
workspace?: {
|
|
1603
|
+
path: string;
|
|
1604
|
+
observedAt: string;
|
|
1605
|
+
projectId: string;
|
|
1606
|
+
detached: boolean;
|
|
1607
|
+
repositoryRoot: string;
|
|
1608
|
+
isWorktree: boolean;
|
|
1609
|
+
changedFileCount: number;
|
|
1610
|
+
trackedChangedFileCount: number;
|
|
1611
|
+
untrackedFileCount: number;
|
|
1612
|
+
worktreeId?: string | undefined;
|
|
1613
|
+
head?: string | undefined;
|
|
1614
|
+
} | undefined;
|
|
897
1615
|
ahead?: number | undefined;
|
|
898
1616
|
behind?: number | undefined;
|
|
899
1617
|
upstream?: string | undefined;
|
|
@@ -911,17 +1629,17 @@ export declare const ProjectExecParams: z.ZodObject<{
|
|
|
911
1629
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
912
1630
|
maxOutputBytes: z.ZodDefault<z.ZodNumber>;
|
|
913
1631
|
}, "strip", z.ZodTypeAny, {
|
|
1632
|
+
projectId: string & z.BRAND<"ProjectId">;
|
|
914
1633
|
args: string[];
|
|
915
1634
|
command: string;
|
|
916
|
-
projectId: string & z.BRAND<"ProjectId">;
|
|
917
1635
|
timeoutMs: number;
|
|
918
1636
|
maxOutputBytes: number;
|
|
919
1637
|
worktreeId?: string | undefined;
|
|
920
1638
|
cwd?: string | undefined;
|
|
921
1639
|
env?: Record<string, string> | undefined;
|
|
922
1640
|
}, {
|
|
923
|
-
command: string;
|
|
924
1641
|
projectId: string;
|
|
1642
|
+
command: string;
|
|
925
1643
|
worktreeId?: string | undefined;
|
|
926
1644
|
args?: string[] | undefined;
|
|
927
1645
|
cwd?: string | undefined;
|