@itphx/synth-shared 0.7.3 → 0.8.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.
- package/dist/config/defaults.d.ts.map +1 -1
- package/dist/config/defaults.js +44 -0
- package/dist/config/defaults.js.map +1 -1
- package/dist/config/defaults.test.js +33 -0
- package/dist/config/defaults.test.js.map +1 -1
- package/dist/config/loader.d.ts +2 -0
- package/dist/config/loader.d.ts.map +1 -1
- package/dist/config/loader.js +10 -5
- package/dist/config/loader.js.map +1 -1
- package/dist/config/resolve.d.ts +35 -6
- package/dist/config/resolve.d.ts.map +1 -1
- package/dist/config/resolve.js +98 -18
- package/dist/config/resolve.js.map +1 -1
- package/dist/config/resolve.test.js +244 -1
- package/dist/config/resolve.test.js.map +1 -1
- package/dist/config/types.d.ts +711 -78
- package/dist/config/types.d.ts.map +1 -1
- package/dist/config/types.js +138 -1
- package/dist/config/types.js.map +1 -1
- package/dist/config/types.test.js +78 -1
- package/dist/config/types.test.js.map +1 -1
- package/dist/i18n/index.d.ts +1 -1
- package/dist/i18n/index.d.ts.map +1 -1
- package/dist/i18n/index.js +116 -0
- package/dist/i18n/index.js.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/schemas/index.d.ts +558 -24
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +244 -7
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/index.test.d.ts +2 -0
- package/dist/schemas/index.test.d.ts.map +1 -0
- package/dist/schemas/index.test.js +154 -0
- package/dist/schemas/index.test.js.map +1 -0
- package/dist/skills/frontmatter.d.ts +21 -0
- package/dist/skills/frontmatter.d.ts.map +1 -0
- package/dist/skills/frontmatter.js +70 -0
- package/dist/skills/frontmatter.js.map +1 -0
- package/dist/skills/frontmatter.test.d.ts +2 -0
- package/dist/skills/frontmatter.test.d.ts.map +1 -0
- package/dist/skills/frontmatter.test.js +65 -0
- package/dist/skills/frontmatter.test.js.map +1 -0
- package/dist/types/commands.d.ts +128 -0
- package/dist/types/commands.d.ts.map +1 -0
- package/dist/types/commands.js +11 -0
- package/dist/types/commands.js.map +1 -0
- package/dist/types/index.d.ts +137 -12
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +68 -5
- package/dist/types/index.js.map +1 -1
- package/dist/types/permission.d.ts +5 -4
- package/dist/types/permission.d.ts.map +1 -1
- package/dist/types/skills.d.ts +136 -0
- package/dist/types/skills.d.ts.map +1 -0
- package/dist/types/skills.js +18 -0
- package/dist/types/skills.js.map +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +2 -0
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/workspace.d.ts +14 -0
- package/dist/utils/workspace.d.ts.map +1 -0
- package/dist/utils/workspace.js +35 -0
- package/dist/utils/workspace.js.map +1 -0
- package/dist/utils/workspace.test.d.ts +2 -0
- package/dist/utils/workspace.test.d.ts.map +1 -0
- package/dist/utils/workspace.test.js +40 -0
- package/dist/utils/workspace.test.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/schemas/index.d.ts
CHANGED
|
@@ -1,9 +1,27 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { MessageRole, GlobalRole, ProjectRole, StatusMessageType } from '../types/index.js';
|
|
3
|
+
import type { GitRepoConfig, ProjectIconKey, ProjectColorKey } from '../types/index.js';
|
|
3
4
|
export declare const messageRoleSchema: z.ZodNativeEnum<typeof MessageRole>;
|
|
4
5
|
export declare const globalRoleSchema: z.ZodNativeEnum<typeof GlobalRole>;
|
|
5
6
|
export declare const projectRoleSchema: z.ZodNativeEnum<typeof ProjectRole>;
|
|
6
7
|
export declare const statusMessageTypeSchema: z.ZodNativeEnum<typeof StatusMessageType>;
|
|
8
|
+
/** Zod-схемы канонических ключей иконок/цветов (единые для project и session). */
|
|
9
|
+
export declare const projectIconKeySchema: z.ZodEnum<["code", "terminal", "rocket", "flask", "gamepad", "briefcase", "home", "globe", "leaf", "shield", "palette", "server", "phone", "database", "lightbulb", "music", "camera", "book", "heart", "folder", "chat", "cpu", "file", "file-code", "docs", "task", "todo", "bug", "robot", "brain", "git", "repo", "test", "chart", "star", "image", "calendar"]>;
|
|
10
|
+
export declare const projectColorKeySchema: z.ZodEnum<["keyword", "string", "number", "type", "comment", "error", "primary", "success"]>;
|
|
11
|
+
/** true, если значение — канонический ключ иконки (без алиасов; для записи). */
|
|
12
|
+
export declare function isProjectIconKey(value: unknown): value is ProjectIconKey;
|
|
13
|
+
/** true, если значение — канонический ключ цвета (без алиасов; для записи). */
|
|
14
|
+
export declare function isProjectColorKey(value: unknown): value is ProjectColorKey;
|
|
15
|
+
/**
|
|
16
|
+
* Нормализация иконки при ЧТЕНИИ. Канонический ключ → как есть; всё прочее
|
|
17
|
+
* (эмодзи/произвольные строки) → `undefined`.
|
|
18
|
+
*/
|
|
19
|
+
export declare function normalizeIconKey(value: unknown): ProjectIconKey | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Нормализация цвета при ЧТЕНИИ: канонический ключ или legacy-алиас → ключ
|
|
22
|
+
* палитры; всё прочее → `undefined`.
|
|
23
|
+
*/
|
|
24
|
+
export declare function normalizeColorKey(value: unknown): ProjectColorKey | undefined;
|
|
7
25
|
export declare const tokenUsageSchema: z.ZodObject<{
|
|
8
26
|
inputTokens: z.ZodNumber;
|
|
9
27
|
outputTokens: z.ZodNumber;
|
|
@@ -43,6 +61,8 @@ export declare const sessionSettingsSchema: z.ZodObject<{
|
|
|
43
61
|
websocketEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
44
62
|
language: z.ZodOptional<z.ZodString>;
|
|
45
63
|
planMode: z.ZodOptional<z.ZodEnum<["auto", "strict", "off"]>>;
|
|
64
|
+
skills: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
65
|
+
skillsDisabled: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
46
66
|
}, "strip", z.ZodTypeAny, {
|
|
47
67
|
temperature: number;
|
|
48
68
|
maxTokens: number;
|
|
@@ -69,6 +89,8 @@ export declare const sessionSettingsSchema: z.ZodObject<{
|
|
|
69
89
|
mcpDisabledServers?: string[] | undefined;
|
|
70
90
|
language?: string | undefined;
|
|
71
91
|
planMode?: "auto" | "strict" | "off" | undefined;
|
|
92
|
+
skills?: string[] | undefined;
|
|
93
|
+
skillsDisabled?: string[] | undefined;
|
|
72
94
|
}, {
|
|
73
95
|
provider?: string | undefined;
|
|
74
96
|
model?: string | undefined;
|
|
@@ -95,10 +117,14 @@ export declare const sessionSettingsSchema: z.ZodObject<{
|
|
|
95
117
|
websocketEnabled?: boolean | undefined;
|
|
96
118
|
language?: string | undefined;
|
|
97
119
|
planMode?: "auto" | "strict" | "off" | undefined;
|
|
120
|
+
skills?: string[] | undefined;
|
|
121
|
+
skillsDisabled?: string[] | undefined;
|
|
98
122
|
}>;
|
|
99
123
|
export declare const sessionCreateSchema: z.ZodObject<{
|
|
100
124
|
name: z.ZodOptional<z.ZodString>;
|
|
101
125
|
title: z.ZodOptional<z.ZodString>;
|
|
126
|
+
icon: z.ZodNullable<z.ZodOptional<z.ZodEnum<["code", "terminal", "rocket", "flask", "gamepad", "briefcase", "home", "globe", "leaf", "shield", "palette", "server", "phone", "database", "lightbulb", "music", "camera", "book", "heart", "folder", "chat", "cpu", "file", "file-code", "docs", "task", "todo", "bug", "robot", "brain", "git", "repo", "test", "chart", "star", "image", "calendar"]>>>;
|
|
127
|
+
color: z.ZodNullable<z.ZodOptional<z.ZodEnum<["keyword", "string", "number", "type", "comment", "error", "primary", "success"]>>>;
|
|
102
128
|
projectId: z.ZodOptional<z.ZodString>;
|
|
103
129
|
engine: z.ZodDefault<z.ZodEnum<["synth", "opencode", "cline"]>>;
|
|
104
130
|
settings: z.ZodOptional<z.ZodObject<{
|
|
@@ -127,6 +153,8 @@ export declare const sessionCreateSchema: z.ZodObject<{
|
|
|
127
153
|
websocketEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
128
154
|
language: z.ZodOptional<z.ZodString>;
|
|
129
155
|
planMode: z.ZodOptional<z.ZodEnum<["auto", "strict", "off"]>>;
|
|
156
|
+
skills: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
157
|
+
skillsDisabled: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
130
158
|
}, "strip", z.ZodTypeAny, {
|
|
131
159
|
temperature: number;
|
|
132
160
|
maxTokens: number;
|
|
@@ -153,6 +181,8 @@ export declare const sessionCreateSchema: z.ZodObject<{
|
|
|
153
181
|
mcpDisabledServers?: string[] | undefined;
|
|
154
182
|
language?: string | undefined;
|
|
155
183
|
planMode?: "auto" | "strict" | "off" | undefined;
|
|
184
|
+
skills?: string[] | undefined;
|
|
185
|
+
skillsDisabled?: string[] | undefined;
|
|
156
186
|
}, {
|
|
157
187
|
provider?: string | undefined;
|
|
158
188
|
model?: string | undefined;
|
|
@@ -179,11 +209,15 @@ export declare const sessionCreateSchema: z.ZodObject<{
|
|
|
179
209
|
websocketEnabled?: boolean | undefined;
|
|
180
210
|
language?: string | undefined;
|
|
181
211
|
planMode?: "auto" | "strict" | "off" | undefined;
|
|
212
|
+
skills?: string[] | undefined;
|
|
213
|
+
skillsDisabled?: string[] | undefined;
|
|
182
214
|
}>>;
|
|
183
215
|
}, "strip", z.ZodTypeAny, {
|
|
184
216
|
engine: "synth" | "opencode" | "cline";
|
|
185
217
|
name?: string | undefined;
|
|
186
218
|
title?: string | undefined;
|
|
219
|
+
icon?: "task" | "code" | "terminal" | "rocket" | "flask" | "gamepad" | "briefcase" | "home" | "globe" | "leaf" | "shield" | "palette" | "server" | "phone" | "database" | "lightbulb" | "music" | "camera" | "book" | "heart" | "folder" | "chat" | "cpu" | "file" | "file-code" | "docs" | "todo" | "bug" | "robot" | "brain" | "git" | "repo" | "test" | "chart" | "star" | "image" | "calendar" | null | undefined;
|
|
220
|
+
color?: "string" | "number" | "type" | "keyword" | "comment" | "error" | "primary" | "success" | null | undefined;
|
|
187
221
|
projectId?: string | undefined;
|
|
188
222
|
settings?: {
|
|
189
223
|
temperature: number;
|
|
@@ -211,10 +245,14 @@ export declare const sessionCreateSchema: z.ZodObject<{
|
|
|
211
245
|
mcpDisabledServers?: string[] | undefined;
|
|
212
246
|
language?: string | undefined;
|
|
213
247
|
planMode?: "auto" | "strict" | "off" | undefined;
|
|
248
|
+
skills?: string[] | undefined;
|
|
249
|
+
skillsDisabled?: string[] | undefined;
|
|
214
250
|
} | undefined;
|
|
215
251
|
}, {
|
|
216
252
|
name?: string | undefined;
|
|
217
253
|
title?: string | undefined;
|
|
254
|
+
icon?: "task" | "code" | "terminal" | "rocket" | "flask" | "gamepad" | "briefcase" | "home" | "globe" | "leaf" | "shield" | "palette" | "server" | "phone" | "database" | "lightbulb" | "music" | "camera" | "book" | "heart" | "folder" | "chat" | "cpu" | "file" | "file-code" | "docs" | "todo" | "bug" | "robot" | "brain" | "git" | "repo" | "test" | "chart" | "star" | "image" | "calendar" | null | undefined;
|
|
255
|
+
color?: "string" | "number" | "type" | "keyword" | "comment" | "error" | "primary" | "success" | null | undefined;
|
|
218
256
|
projectId?: string | undefined;
|
|
219
257
|
engine?: "synth" | "opencode" | "cline" | undefined;
|
|
220
258
|
settings?: {
|
|
@@ -243,10 +281,14 @@ export declare const sessionCreateSchema: z.ZodObject<{
|
|
|
243
281
|
websocketEnabled?: boolean | undefined;
|
|
244
282
|
language?: string | undefined;
|
|
245
283
|
planMode?: "auto" | "strict" | "off" | undefined;
|
|
284
|
+
skills?: string[] | undefined;
|
|
285
|
+
skillsDisabled?: string[] | undefined;
|
|
246
286
|
} | undefined;
|
|
247
287
|
}>;
|
|
248
288
|
export declare const sessionUpdateSchema: z.ZodObject<{
|
|
249
289
|
name: z.ZodOptional<z.ZodString>;
|
|
290
|
+
icon: z.ZodNullable<z.ZodOptional<z.ZodEnum<["code", "terminal", "rocket", "flask", "gamepad", "briefcase", "home", "globe", "leaf", "shield", "palette", "server", "phone", "database", "lightbulb", "music", "camera", "book", "heart", "folder", "chat", "cpu", "file", "file-code", "docs", "task", "todo", "bug", "robot", "brain", "git", "repo", "test", "chart", "star", "image", "calendar"]>>>;
|
|
291
|
+
color: z.ZodNullable<z.ZodOptional<z.ZodEnum<["keyword", "string", "number", "type", "comment", "error", "primary", "success"]>>>;
|
|
250
292
|
projectId: z.ZodOptional<z.ZodString>;
|
|
251
293
|
engine: z.ZodOptional<z.ZodEnum<["synth", "opencode", "cline"]>>;
|
|
252
294
|
settings: z.ZodOptional<z.ZodObject<{
|
|
@@ -275,6 +317,8 @@ export declare const sessionUpdateSchema: z.ZodObject<{
|
|
|
275
317
|
websocketEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
276
318
|
language: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
277
319
|
planMode: z.ZodOptional<z.ZodOptional<z.ZodEnum<["auto", "strict", "off"]>>>;
|
|
320
|
+
skills: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
321
|
+
skillsDisabled: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
278
322
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
279
323
|
provider: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
280
324
|
model: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
@@ -301,6 +345,8 @@ export declare const sessionUpdateSchema: z.ZodObject<{
|
|
|
301
345
|
websocketEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
302
346
|
language: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
303
347
|
planMode: z.ZodOptional<z.ZodOptional<z.ZodEnum<["auto", "strict", "off"]>>>;
|
|
348
|
+
skills: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
349
|
+
skillsDisabled: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
304
350
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
305
351
|
provider: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
306
352
|
model: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
@@ -327,9 +373,13 @@ export declare const sessionUpdateSchema: z.ZodObject<{
|
|
|
327
373
|
websocketEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
328
374
|
language: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
329
375
|
planMode: z.ZodOptional<z.ZodOptional<z.ZodEnum<["auto", "strict", "off"]>>>;
|
|
376
|
+
skills: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
377
|
+
skillsDisabled: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
330
378
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
331
379
|
}, "strip", z.ZodTypeAny, {
|
|
332
380
|
name?: string | undefined;
|
|
381
|
+
icon?: "task" | "code" | "terminal" | "rocket" | "flask" | "gamepad" | "briefcase" | "home" | "globe" | "leaf" | "shield" | "palette" | "server" | "phone" | "database" | "lightbulb" | "music" | "camera" | "book" | "heart" | "folder" | "chat" | "cpu" | "file" | "file-code" | "docs" | "todo" | "bug" | "robot" | "brain" | "git" | "repo" | "test" | "chart" | "star" | "image" | "calendar" | null | undefined;
|
|
382
|
+
color?: "string" | "number" | "type" | "keyword" | "comment" | "error" | "primary" | "success" | null | undefined;
|
|
333
383
|
projectId?: string | undefined;
|
|
334
384
|
engine?: "synth" | "opencode" | "cline" | undefined;
|
|
335
385
|
settings?: z.objectOutputType<{
|
|
@@ -358,9 +408,13 @@ export declare const sessionUpdateSchema: z.ZodObject<{
|
|
|
358
408
|
websocketEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
359
409
|
language: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
360
410
|
planMode: z.ZodOptional<z.ZodOptional<z.ZodEnum<["auto", "strict", "off"]>>>;
|
|
411
|
+
skills: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
412
|
+
skillsDisabled: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
361
413
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
362
414
|
}, {
|
|
363
415
|
name?: string | undefined;
|
|
416
|
+
icon?: "task" | "code" | "terminal" | "rocket" | "flask" | "gamepad" | "briefcase" | "home" | "globe" | "leaf" | "shield" | "palette" | "server" | "phone" | "database" | "lightbulb" | "music" | "camera" | "book" | "heart" | "folder" | "chat" | "cpu" | "file" | "file-code" | "docs" | "todo" | "bug" | "robot" | "brain" | "git" | "repo" | "test" | "chart" | "star" | "image" | "calendar" | null | undefined;
|
|
417
|
+
color?: "string" | "number" | "type" | "keyword" | "comment" | "error" | "primary" | "success" | null | undefined;
|
|
364
418
|
projectId?: string | undefined;
|
|
365
419
|
engine?: "synth" | "opencode" | "cline" | undefined;
|
|
366
420
|
settings?: z.objectInputType<{
|
|
@@ -389,98 +443,229 @@ export declare const sessionUpdateSchema: z.ZodObject<{
|
|
|
389
443
|
websocketEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
390
444
|
language: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
391
445
|
planMode: z.ZodOptional<z.ZodOptional<z.ZodEnum<["auto", "strict", "off"]>>>;
|
|
446
|
+
skills: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
447
|
+
skillsDisabled: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
392
448
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
393
449
|
}>;
|
|
450
|
+
/**
|
|
451
|
+
* AD-076: запись реестра git-репозиториев. `path` обязателен, остальные поля
|
|
452
|
+
* опциональны; старые формы (`string` / `{ path }`) принимаются через
|
|
453
|
+
* `normalizeGitRepoConfig` и union в `repos`.
|
|
454
|
+
*/
|
|
394
455
|
export declare const gitRepoConfigSchema: z.ZodObject<{
|
|
456
|
+
id: z.ZodOptional<z.ZodString>;
|
|
457
|
+
name: z.ZodOptional<z.ZodString>;
|
|
458
|
+
url: z.ZodOptional<z.ZodString>;
|
|
459
|
+
type: z.ZodOptional<z.ZodEnum<["https", "ssh"]>>;
|
|
395
460
|
path: z.ZodString;
|
|
396
461
|
defaultBranch: z.ZodOptional<z.ZodString>;
|
|
462
|
+
sshKeyId: z.ZodOptional<z.ZodString>;
|
|
463
|
+
lastFetch: z.ZodOptional<z.ZodString>;
|
|
397
464
|
}, "strip", z.ZodTypeAny, {
|
|
398
465
|
path: string;
|
|
466
|
+
type?: "https" | "ssh" | undefined;
|
|
467
|
+
name?: string | undefined;
|
|
468
|
+
id?: string | undefined;
|
|
469
|
+
url?: string | undefined;
|
|
399
470
|
defaultBranch?: string | undefined;
|
|
471
|
+
sshKeyId?: string | undefined;
|
|
472
|
+
lastFetch?: string | undefined;
|
|
400
473
|
}, {
|
|
401
474
|
path: string;
|
|
475
|
+
type?: "https" | "ssh" | undefined;
|
|
476
|
+
name?: string | undefined;
|
|
477
|
+
id?: string | undefined;
|
|
478
|
+
url?: string | undefined;
|
|
402
479
|
defaultBranch?: string | undefined;
|
|
480
|
+
sshKeyId?: string | undefined;
|
|
481
|
+
lastFetch?: string | undefined;
|
|
403
482
|
}>;
|
|
483
|
+
/**
|
|
484
|
+
* AD-076: нормализация legacy-значения `repos` к `GitRepoConfig`.
|
|
485
|
+
* `string` → `{ path }`; объект → прогон через `gitRepoConfigSchema`
|
|
486
|
+
* (невалидный → `null`). Всё прочее → `null`.
|
|
487
|
+
*/
|
|
488
|
+
export declare function normalizeGitRepoConfig(raw: unknown): GitRepoConfig | null;
|
|
404
489
|
export declare const projectCreateSchema: z.ZodObject<{
|
|
405
490
|
name: z.ZodString;
|
|
406
491
|
description: z.ZodDefault<z.ZodString>;
|
|
407
|
-
icon: z.ZodOptional<z.
|
|
408
|
-
color: z.ZodOptional<z.
|
|
492
|
+
icon: z.ZodNullable<z.ZodOptional<z.ZodEnum<["code", "terminal", "rocket", "flask", "gamepad", "briefcase", "home", "globe", "leaf", "shield", "palette", "server", "phone", "database", "lightbulb", "music", "camera", "book", "heart", "folder", "chat", "cpu", "file", "file-code", "docs", "task", "todo", "bug", "robot", "brain", "git", "repo", "test", "chart", "star", "image", "calendar"]>>>;
|
|
493
|
+
color: z.ZodNullable<z.ZodOptional<z.ZodEnum<["keyword", "string", "number", "type", "comment", "error", "primary", "success"]>>>;
|
|
409
494
|
workspace: z.ZodOptional<z.ZodString>;
|
|
410
|
-
repos: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
495
|
+
repos: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
496
|
+
id: z.ZodOptional<z.ZodString>;
|
|
497
|
+
name: z.ZodOptional<z.ZodString>;
|
|
498
|
+
url: z.ZodOptional<z.ZodString>;
|
|
499
|
+
type: z.ZodOptional<z.ZodEnum<["https", "ssh"]>>;
|
|
411
500
|
path: z.ZodString;
|
|
412
501
|
defaultBranch: z.ZodOptional<z.ZodString>;
|
|
502
|
+
sshKeyId: z.ZodOptional<z.ZodString>;
|
|
503
|
+
lastFetch: z.ZodOptional<z.ZodString>;
|
|
413
504
|
}, "strip", z.ZodTypeAny, {
|
|
414
505
|
path: string;
|
|
506
|
+
type?: "https" | "ssh" | undefined;
|
|
507
|
+
name?: string | undefined;
|
|
508
|
+
id?: string | undefined;
|
|
509
|
+
url?: string | undefined;
|
|
415
510
|
defaultBranch?: string | undefined;
|
|
511
|
+
sshKeyId?: string | undefined;
|
|
512
|
+
lastFetch?: string | undefined;
|
|
416
513
|
}, {
|
|
417
514
|
path: string;
|
|
515
|
+
type?: "https" | "ssh" | undefined;
|
|
516
|
+
name?: string | undefined;
|
|
517
|
+
id?: string | undefined;
|
|
518
|
+
url?: string | undefined;
|
|
418
519
|
defaultBranch?: string | undefined;
|
|
419
|
-
|
|
520
|
+
sshKeyId?: string | undefined;
|
|
521
|
+
lastFetch?: string | undefined;
|
|
522
|
+
}>]>, "many">>;
|
|
420
523
|
}, "strip", z.ZodTypeAny, {
|
|
421
524
|
name: string;
|
|
422
525
|
description: string;
|
|
423
|
-
icon?:
|
|
424
|
-
color?: string | undefined;
|
|
526
|
+
icon?: "task" | "code" | "terminal" | "rocket" | "flask" | "gamepad" | "briefcase" | "home" | "globe" | "leaf" | "shield" | "palette" | "server" | "phone" | "database" | "lightbulb" | "music" | "camera" | "book" | "heart" | "folder" | "chat" | "cpu" | "file" | "file-code" | "docs" | "todo" | "bug" | "robot" | "brain" | "git" | "repo" | "test" | "chart" | "star" | "image" | "calendar" | null | undefined;
|
|
527
|
+
color?: "string" | "number" | "type" | "keyword" | "comment" | "error" | "primary" | "success" | null | undefined;
|
|
425
528
|
workspace?: string | undefined;
|
|
426
|
-
repos?: {
|
|
529
|
+
repos?: (string | {
|
|
427
530
|
path: string;
|
|
531
|
+
type?: "https" | "ssh" | undefined;
|
|
532
|
+
name?: string | undefined;
|
|
533
|
+
id?: string | undefined;
|
|
534
|
+
url?: string | undefined;
|
|
428
535
|
defaultBranch?: string | undefined;
|
|
429
|
-
|
|
536
|
+
sshKeyId?: string | undefined;
|
|
537
|
+
lastFetch?: string | undefined;
|
|
538
|
+
})[] | undefined;
|
|
430
539
|
}, {
|
|
431
540
|
name: string;
|
|
541
|
+
icon?: "task" | "code" | "terminal" | "rocket" | "flask" | "gamepad" | "briefcase" | "home" | "globe" | "leaf" | "shield" | "palette" | "server" | "phone" | "database" | "lightbulb" | "music" | "camera" | "book" | "heart" | "folder" | "chat" | "cpu" | "file" | "file-code" | "docs" | "todo" | "bug" | "robot" | "brain" | "git" | "repo" | "test" | "chart" | "star" | "image" | "calendar" | null | undefined;
|
|
542
|
+
color?: "string" | "number" | "type" | "keyword" | "comment" | "error" | "primary" | "success" | null | undefined;
|
|
432
543
|
description?: string | undefined;
|
|
433
|
-
icon?: string | undefined;
|
|
434
|
-
color?: string | undefined;
|
|
435
544
|
workspace?: string | undefined;
|
|
436
|
-
repos?: {
|
|
545
|
+
repos?: (string | {
|
|
437
546
|
path: string;
|
|
547
|
+
type?: "https" | "ssh" | undefined;
|
|
548
|
+
name?: string | undefined;
|
|
549
|
+
id?: string | undefined;
|
|
550
|
+
url?: string | undefined;
|
|
438
551
|
defaultBranch?: string | undefined;
|
|
439
|
-
|
|
552
|
+
sshKeyId?: string | undefined;
|
|
553
|
+
lastFetch?: string | undefined;
|
|
554
|
+
})[] | undefined;
|
|
440
555
|
}>;
|
|
441
556
|
export declare const projectUpdateSchema: z.ZodObject<{
|
|
442
557
|
name: z.ZodOptional<z.ZodString>;
|
|
443
558
|
description: z.ZodOptional<z.ZodString>;
|
|
444
559
|
currentTask: z.ZodOptional<z.ZodString>;
|
|
445
560
|
invariants: z.ZodOptional<z.ZodString>;
|
|
446
|
-
icon: z.ZodOptional<z.
|
|
447
|
-
color: z.ZodOptional<z.
|
|
561
|
+
icon: z.ZodNullable<z.ZodOptional<z.ZodEnum<["code", "terminal", "rocket", "flask", "gamepad", "briefcase", "home", "globe", "leaf", "shield", "palette", "server", "phone", "database", "lightbulb", "music", "camera", "book", "heart", "folder", "chat", "cpu", "file", "file-code", "docs", "task", "todo", "bug", "robot", "brain", "git", "repo", "test", "chart", "star", "image", "calendar"]>>>;
|
|
562
|
+
color: z.ZodNullable<z.ZodOptional<z.ZodEnum<["keyword", "string", "number", "type", "comment", "error", "primary", "success"]>>>;
|
|
448
563
|
workspace: z.ZodOptional<z.ZodString>;
|
|
449
|
-
repos: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
564
|
+
repos: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
565
|
+
id: z.ZodOptional<z.ZodString>;
|
|
566
|
+
name: z.ZodOptional<z.ZodString>;
|
|
567
|
+
url: z.ZodOptional<z.ZodString>;
|
|
568
|
+
type: z.ZodOptional<z.ZodEnum<["https", "ssh"]>>;
|
|
450
569
|
path: z.ZodString;
|
|
451
570
|
defaultBranch: z.ZodOptional<z.ZodString>;
|
|
571
|
+
sshKeyId: z.ZodOptional<z.ZodString>;
|
|
572
|
+
lastFetch: z.ZodOptional<z.ZodString>;
|
|
452
573
|
}, "strip", z.ZodTypeAny, {
|
|
453
574
|
path: string;
|
|
575
|
+
type?: "https" | "ssh" | undefined;
|
|
576
|
+
name?: string | undefined;
|
|
577
|
+
id?: string | undefined;
|
|
578
|
+
url?: string | undefined;
|
|
454
579
|
defaultBranch?: string | undefined;
|
|
580
|
+
sshKeyId?: string | undefined;
|
|
581
|
+
lastFetch?: string | undefined;
|
|
455
582
|
}, {
|
|
456
583
|
path: string;
|
|
584
|
+
type?: "https" | "ssh" | undefined;
|
|
585
|
+
name?: string | undefined;
|
|
586
|
+
id?: string | undefined;
|
|
587
|
+
url?: string | undefined;
|
|
457
588
|
defaultBranch?: string | undefined;
|
|
458
|
-
|
|
589
|
+
sshKeyId?: string | undefined;
|
|
590
|
+
lastFetch?: string | undefined;
|
|
591
|
+
}>]>, "many">>;
|
|
459
592
|
}, "strip", z.ZodTypeAny, {
|
|
460
593
|
name?: string | undefined;
|
|
594
|
+
icon?: "task" | "code" | "terminal" | "rocket" | "flask" | "gamepad" | "briefcase" | "home" | "globe" | "leaf" | "shield" | "palette" | "server" | "phone" | "database" | "lightbulb" | "music" | "camera" | "book" | "heart" | "folder" | "chat" | "cpu" | "file" | "file-code" | "docs" | "todo" | "bug" | "robot" | "brain" | "git" | "repo" | "test" | "chart" | "star" | "image" | "calendar" | null | undefined;
|
|
595
|
+
color?: "string" | "number" | "type" | "keyword" | "comment" | "error" | "primary" | "success" | null | undefined;
|
|
461
596
|
description?: string | undefined;
|
|
462
|
-
icon?: string | undefined;
|
|
463
|
-
color?: string | undefined;
|
|
464
597
|
workspace?: string | undefined;
|
|
465
|
-
repos?: {
|
|
598
|
+
repos?: (string | {
|
|
466
599
|
path: string;
|
|
600
|
+
type?: "https" | "ssh" | undefined;
|
|
601
|
+
name?: string | undefined;
|
|
602
|
+
id?: string | undefined;
|
|
603
|
+
url?: string | undefined;
|
|
467
604
|
defaultBranch?: string | undefined;
|
|
468
|
-
|
|
605
|
+
sshKeyId?: string | undefined;
|
|
606
|
+
lastFetch?: string | undefined;
|
|
607
|
+
})[] | undefined;
|
|
469
608
|
currentTask?: string | undefined;
|
|
470
609
|
invariants?: string | undefined;
|
|
471
610
|
}, {
|
|
472
611
|
name?: string | undefined;
|
|
612
|
+
icon?: "task" | "code" | "terminal" | "rocket" | "flask" | "gamepad" | "briefcase" | "home" | "globe" | "leaf" | "shield" | "palette" | "server" | "phone" | "database" | "lightbulb" | "music" | "camera" | "book" | "heart" | "folder" | "chat" | "cpu" | "file" | "file-code" | "docs" | "todo" | "bug" | "robot" | "brain" | "git" | "repo" | "test" | "chart" | "star" | "image" | "calendar" | null | undefined;
|
|
613
|
+
color?: "string" | "number" | "type" | "keyword" | "comment" | "error" | "primary" | "success" | null | undefined;
|
|
473
614
|
description?: string | undefined;
|
|
474
|
-
icon?: string | undefined;
|
|
475
|
-
color?: string | undefined;
|
|
476
615
|
workspace?: string | undefined;
|
|
477
|
-
repos?: {
|
|
616
|
+
repos?: (string | {
|
|
478
617
|
path: string;
|
|
618
|
+
type?: "https" | "ssh" | undefined;
|
|
619
|
+
name?: string | undefined;
|
|
620
|
+
id?: string | undefined;
|
|
621
|
+
url?: string | undefined;
|
|
479
622
|
defaultBranch?: string | undefined;
|
|
480
|
-
|
|
623
|
+
sshKeyId?: string | undefined;
|
|
624
|
+
lastFetch?: string | undefined;
|
|
625
|
+
})[] | undefined;
|
|
481
626
|
currentTask?: string | undefined;
|
|
482
627
|
invariants?: string | undefined;
|
|
483
628
|
}>;
|
|
629
|
+
/** AD-076: тело создания SSH-ключа (`POST /api/v2/ssh-keys`). */
|
|
630
|
+
export declare const sshKeyCreateSchema: z.ZodObject<{
|
|
631
|
+
name: z.ZodString;
|
|
632
|
+
type: z.ZodOptional<z.ZodString>;
|
|
633
|
+
privateKey: z.ZodString;
|
|
634
|
+
passphrase: z.ZodOptional<z.ZodString>;
|
|
635
|
+
agentIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
636
|
+
}, "strip", z.ZodTypeAny, {
|
|
637
|
+
name: string;
|
|
638
|
+
privateKey: string;
|
|
639
|
+
type?: string | undefined;
|
|
640
|
+
passphrase?: string | undefined;
|
|
641
|
+
agentIds?: string[] | undefined;
|
|
642
|
+
}, {
|
|
643
|
+
name: string;
|
|
644
|
+
privateKey: string;
|
|
645
|
+
type?: string | undefined;
|
|
646
|
+
passphrase?: string | undefined;
|
|
647
|
+
agentIds?: string[] | undefined;
|
|
648
|
+
}>;
|
|
649
|
+
/** AD-076: тело обновления SSH-ключа (без id/createdAt). */
|
|
650
|
+
export declare const sshKeyUpdateSchema: z.ZodObject<{
|
|
651
|
+
name: z.ZodOptional<z.ZodString>;
|
|
652
|
+
type: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
653
|
+
privateKey: z.ZodOptional<z.ZodString>;
|
|
654
|
+
passphrase: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
655
|
+
agentIds: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
656
|
+
}, "strip", z.ZodTypeAny, {
|
|
657
|
+
type?: string | undefined;
|
|
658
|
+
name?: string | undefined;
|
|
659
|
+
privateKey?: string | undefined;
|
|
660
|
+
passphrase?: string | undefined;
|
|
661
|
+
agentIds?: string[] | undefined;
|
|
662
|
+
}, {
|
|
663
|
+
type?: string | undefined;
|
|
664
|
+
name?: string | undefined;
|
|
665
|
+
privateKey?: string | undefined;
|
|
666
|
+
passphrase?: string | undefined;
|
|
667
|
+
agentIds?: string[] | undefined;
|
|
668
|
+
}>;
|
|
484
669
|
/**
|
|
485
670
|
* AD-071 §2.4: проектный скоуп MCP (ссылки на реестр по имени).
|
|
486
671
|
* PUT-семантика: `undefined` ≠ `[]` — отсутствующее поле сохраняет текущее
|
|
@@ -496,6 +681,18 @@ export declare const projectMcpUpdateSchema: z.ZodObject<{
|
|
|
496
681
|
enabled?: string[] | undefined;
|
|
497
682
|
defaultOn?: string[] | undefined;
|
|
498
683
|
}>;
|
|
684
|
+
/**
|
|
685
|
+
* AD-075: тело `PUT /api/v2/settings/workspace-policy` — политика для
|
|
686
|
+
* абсолютного workspace вне `workspacesRoot`.
|
|
687
|
+
*/
|
|
688
|
+
export declare const workspacePolicySchema: z.ZodObject<{
|
|
689
|
+
outsideRoot: z.ZodEnum<["confirm", "deny"]>;
|
|
690
|
+
}, "strip", z.ZodTypeAny, {
|
|
691
|
+
outsideRoot: "deny" | "confirm";
|
|
692
|
+
}, {
|
|
693
|
+
outsideRoot: "deny" | "confirm";
|
|
694
|
+
}>;
|
|
695
|
+
export type WorkspacePolicyRequest = z.infer<typeof workspacePolicySchema>;
|
|
499
696
|
export declare const promptRequestSchema: z.ZodObject<{
|
|
500
697
|
messageId: z.ZodOptional<z.ZodString>;
|
|
501
698
|
content: z.ZodString;
|
|
@@ -600,6 +797,33 @@ export declare const fsDownloadQuerySchema: z.ZodObject<{
|
|
|
600
797
|
path: string;
|
|
601
798
|
project_id: string;
|
|
602
799
|
}>;
|
|
800
|
+
/**
|
|
801
|
+
* AD-075: запрос навигации по корню workspace (`GET /fs/workspace-root/browse`,
|
|
802
|
+
* `GET /fs/workspace-root`). `includeHidden` принимает строковые `true`/`false`
|
|
803
|
+
* (query-параметры) — `z.coerce.boolean()` не подходит, т.к. `'false'` → `true`.
|
|
804
|
+
*/
|
|
805
|
+
export declare const fsWorkspaceBrowseQuerySchema: z.ZodObject<{
|
|
806
|
+
path: z.ZodDefault<z.ZodString>;
|
|
807
|
+
includeHidden: z.ZodDefault<z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, unknown>>;
|
|
808
|
+
}, "strip", z.ZodTypeAny, {
|
|
809
|
+
path: string;
|
|
810
|
+
includeHidden: boolean;
|
|
811
|
+
}, {
|
|
812
|
+
path?: string | undefined;
|
|
813
|
+
includeHidden?: unknown;
|
|
814
|
+
}>;
|
|
815
|
+
/** AD-075: тело `POST /fs/workspace-root/mkdir` — создание каталога в корне workspace. */
|
|
816
|
+
export declare const fsWorkspaceMkdirBodySchema: z.ZodObject<{
|
|
817
|
+
path: z.ZodString;
|
|
818
|
+
/** `confirm`-политика: явное подтверждение создания каталога вне `workspacesRoot`. */
|
|
819
|
+
confirmOutsideRoot: z.ZodOptional<z.ZodBoolean>;
|
|
820
|
+
}, "strip", z.ZodTypeAny, {
|
|
821
|
+
path: string;
|
|
822
|
+
confirmOutsideRoot?: boolean | undefined;
|
|
823
|
+
}, {
|
|
824
|
+
path: string;
|
|
825
|
+
confirmOutsideRoot?: boolean | undefined;
|
|
826
|
+
}>;
|
|
603
827
|
export declare const gitScanBodySchema: z.ZodObject<{
|
|
604
828
|
projectId: z.ZodString;
|
|
605
829
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -611,31 +835,125 @@ export declare const gitInitBodySchema: z.ZodObject<{
|
|
|
611
835
|
projectId: z.ZodString;
|
|
612
836
|
path: z.ZodString;
|
|
613
837
|
defaultBranch: z.ZodOptional<z.ZodString>;
|
|
838
|
+
name: z.ZodOptional<z.ZodString>;
|
|
839
|
+
sshKeyId: z.ZodOptional<z.ZodString>;
|
|
614
840
|
}, "strip", z.ZodTypeAny, {
|
|
615
841
|
path: string;
|
|
616
842
|
projectId: string;
|
|
843
|
+
name?: string | undefined;
|
|
617
844
|
defaultBranch?: string | undefined;
|
|
845
|
+
sshKeyId?: string | undefined;
|
|
618
846
|
}, {
|
|
619
847
|
path: string;
|
|
620
848
|
projectId: string;
|
|
849
|
+
name?: string | undefined;
|
|
621
850
|
defaultBranch?: string | undefined;
|
|
851
|
+
sshKeyId?: string | undefined;
|
|
622
852
|
}>;
|
|
623
853
|
export declare const gitCloneBodySchema: z.ZodObject<{
|
|
624
854
|
projectId: z.ZodString;
|
|
625
855
|
url: z.ZodString;
|
|
626
856
|
path: z.ZodOptional<z.ZodString>;
|
|
627
857
|
branch: z.ZodOptional<z.ZodString>;
|
|
858
|
+
name: z.ZodOptional<z.ZodString>;
|
|
859
|
+
sshKeyId: z.ZodOptional<z.ZodString>;
|
|
628
860
|
}, "strip", z.ZodTypeAny, {
|
|
629
861
|
projectId: string;
|
|
630
862
|
url: string;
|
|
631
863
|
path?: string | undefined;
|
|
864
|
+
name?: string | undefined;
|
|
865
|
+
sshKeyId?: string | undefined;
|
|
632
866
|
branch?: string | undefined;
|
|
633
867
|
}, {
|
|
634
868
|
projectId: string;
|
|
635
869
|
url: string;
|
|
636
870
|
path?: string | undefined;
|
|
871
|
+
name?: string | undefined;
|
|
872
|
+
sshKeyId?: string | undefined;
|
|
637
873
|
branch?: string | undefined;
|
|
638
874
|
}>;
|
|
875
|
+
/**
|
|
876
|
+
* AD-076: тело `POST /api/v2/git/repos/register` — upsert записи реестра
|
|
877
|
+
* (идемпотентно по `path`). Используется UI для добавления уже существующего
|
|
878
|
+
* локально репозитория.
|
|
879
|
+
*/
|
|
880
|
+
export declare const gitReposRegisterBodySchema: z.ZodObject<{
|
|
881
|
+
projectId: z.ZodString;
|
|
882
|
+
path: z.ZodString;
|
|
883
|
+
name: z.ZodOptional<z.ZodString>;
|
|
884
|
+
url: z.ZodOptional<z.ZodString>;
|
|
885
|
+
type: z.ZodOptional<z.ZodEnum<["https", "ssh"]>>;
|
|
886
|
+
defaultBranch: z.ZodOptional<z.ZodString>;
|
|
887
|
+
sshKeyId: z.ZodOptional<z.ZodString>;
|
|
888
|
+
}, "strip", z.ZodTypeAny, {
|
|
889
|
+
path: string;
|
|
890
|
+
projectId: string;
|
|
891
|
+
type?: "https" | "ssh" | undefined;
|
|
892
|
+
name?: string | undefined;
|
|
893
|
+
url?: string | undefined;
|
|
894
|
+
defaultBranch?: string | undefined;
|
|
895
|
+
sshKeyId?: string | undefined;
|
|
896
|
+
}, {
|
|
897
|
+
path: string;
|
|
898
|
+
projectId: string;
|
|
899
|
+
type?: "https" | "ssh" | undefined;
|
|
900
|
+
name?: string | undefined;
|
|
901
|
+
url?: string | undefined;
|
|
902
|
+
defaultBranch?: string | undefined;
|
|
903
|
+
sshKeyId?: string | undefined;
|
|
904
|
+
}>;
|
|
905
|
+
/**
|
|
906
|
+
* AD-076: тело `POST /api/v2/git/repos/remove` — удаление записи реестра;
|
|
907
|
+
* обязателен `id` либо `path`. `deleteLocal` — удалить каталог репозитория.
|
|
908
|
+
*/
|
|
909
|
+
export declare const gitReposRemoveBodySchema: z.ZodEffects<z.ZodObject<{
|
|
910
|
+
projectId: z.ZodString;
|
|
911
|
+
id: z.ZodOptional<z.ZodString>;
|
|
912
|
+
path: z.ZodOptional<z.ZodString>;
|
|
913
|
+
deleteLocal: z.ZodOptional<z.ZodBoolean>;
|
|
914
|
+
}, "strip", z.ZodTypeAny, {
|
|
915
|
+
projectId: string;
|
|
916
|
+
path?: string | undefined;
|
|
917
|
+
id?: string | undefined;
|
|
918
|
+
deleteLocal?: boolean | undefined;
|
|
919
|
+
}, {
|
|
920
|
+
projectId: string;
|
|
921
|
+
path?: string | undefined;
|
|
922
|
+
id?: string | undefined;
|
|
923
|
+
deleteLocal?: boolean | undefined;
|
|
924
|
+
}>, {
|
|
925
|
+
projectId: string;
|
|
926
|
+
path?: string | undefined;
|
|
927
|
+
id?: string | undefined;
|
|
928
|
+
deleteLocal?: boolean | undefined;
|
|
929
|
+
}, {
|
|
930
|
+
projectId: string;
|
|
931
|
+
path?: string | undefined;
|
|
932
|
+
id?: string | undefined;
|
|
933
|
+
deleteLocal?: boolean | undefined;
|
|
934
|
+
}>;
|
|
935
|
+
/** AD-076: тело `POST /api/v2/git/repos/fetch` — обязателен `id` либо `path`. */
|
|
936
|
+
export declare const gitReposFetchBodySchema: z.ZodEffects<z.ZodObject<{
|
|
937
|
+
projectId: z.ZodString;
|
|
938
|
+
id: z.ZodOptional<z.ZodString>;
|
|
939
|
+
path: z.ZodOptional<z.ZodString>;
|
|
940
|
+
}, "strip", z.ZodTypeAny, {
|
|
941
|
+
projectId: string;
|
|
942
|
+
path?: string | undefined;
|
|
943
|
+
id?: string | undefined;
|
|
944
|
+
}, {
|
|
945
|
+
projectId: string;
|
|
946
|
+
path?: string | undefined;
|
|
947
|
+
id?: string | undefined;
|
|
948
|
+
}>, {
|
|
949
|
+
projectId: string;
|
|
950
|
+
path?: string | undefined;
|
|
951
|
+
id?: string | undefined;
|
|
952
|
+
}, {
|
|
953
|
+
projectId: string;
|
|
954
|
+
path?: string | undefined;
|
|
955
|
+
id?: string | undefined;
|
|
956
|
+
}>;
|
|
639
957
|
export declare const gitLogQuerySchema: z.ZodObject<{
|
|
640
958
|
project_id: z.ZodString;
|
|
641
959
|
repo_path: z.ZodDefault<z.ZodString>;
|
|
@@ -755,6 +1073,8 @@ export type SessionCreateRequest = z.infer<typeof sessionCreateSchema>;
|
|
|
755
1073
|
export type SessionUpdateRequest = z.infer<typeof sessionUpdateSchema>;
|
|
756
1074
|
export type ProjectCreateRequest = z.infer<typeof projectCreateSchema>;
|
|
757
1075
|
export type ProjectUpdateRequest = z.infer<typeof projectUpdateSchema>;
|
|
1076
|
+
export type SSHKeyCreateRequest = z.infer<typeof sshKeyCreateSchema>;
|
|
1077
|
+
export type SSHKeyUpdateRequest = z.infer<typeof sshKeyUpdateSchema>;
|
|
758
1078
|
export type PromptRequest = z.infer<typeof promptRequestSchema>;
|
|
759
1079
|
export type SpaLoginRequest = z.infer<typeof spaLoginSchema>;
|
|
760
1080
|
export type FsListQuery = z.infer<typeof fsListQuerySchema>;
|
|
@@ -763,9 +1083,223 @@ export type FsWriteBody = z.infer<typeof fsWriteBodySchema>;
|
|
|
763
1083
|
export type FsDeleteQuery = z.infer<typeof fsDeleteQuerySchema>;
|
|
764
1084
|
export type FsMkdirBody = z.infer<typeof fsMkdirBodySchema>;
|
|
765
1085
|
export type FsDownloadQuery = z.infer<typeof fsDownloadQuerySchema>;
|
|
1086
|
+
export type FsWorkspaceBrowseQuery = z.infer<typeof fsWorkspaceBrowseQuerySchema>;
|
|
1087
|
+
export type FsWorkspaceMkdirBody = z.infer<typeof fsWorkspaceMkdirBodySchema>;
|
|
766
1088
|
export type GitScanBody = z.infer<typeof gitScanBodySchema>;
|
|
767
1089
|
export type GitInitBody = z.infer<typeof gitInitBodySchema>;
|
|
768
1090
|
export type GitCloneBody = z.infer<typeof gitCloneBodySchema>;
|
|
1091
|
+
export type GitReposRegisterBody = z.infer<typeof gitReposRegisterBodySchema>;
|
|
1092
|
+
export type GitReposRemoveBody = z.infer<typeof gitReposRemoveBodySchema>;
|
|
1093
|
+
export type GitReposFetchBody = z.infer<typeof gitReposFetchBodySchema>;
|
|
769
1094
|
export type GitLogQuery = z.infer<typeof gitLogQuerySchema>;
|
|
770
1095
|
export type GitCommitQuery = z.infer<typeof gitCommitQuerySchema>;
|
|
1096
|
+
/** AD-046 §3.2: имя скилла — 1–64, `^[a-z0-9]+(-[a-z0-9]+)*$`. */
|
|
1097
|
+
export declare const SKILL_NAME_REGEX: RegExp;
|
|
1098
|
+
export declare const SKILL_NAME_MIN = 1;
|
|
1099
|
+
export declare const SKILL_NAME_MAX = 64;
|
|
1100
|
+
/** AD-046 §3.2: длина `description`. */
|
|
1101
|
+
export declare const SKILL_DESCRIPTION_MIN = 1;
|
|
1102
|
+
export declare const SKILL_DESCRIPTION_MAX = 1024;
|
|
1103
|
+
export declare const skillNameSchema: z.ZodString;
|
|
1104
|
+
export declare const skillCreateSchema: z.ZodObject<{
|
|
1105
|
+
name: z.ZodString;
|
|
1106
|
+
description: z.ZodString;
|
|
1107
|
+
/** Тело Markdown (без frontmatter). */
|
|
1108
|
+
body: z.ZodOptional<z.ZodString>;
|
|
1109
|
+
/** Дополнительные supporting-файлы (относительный путь → содержимое). */
|
|
1110
|
+
files: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1111
|
+
}, "strip", z.ZodTypeAny, {
|
|
1112
|
+
name: string;
|
|
1113
|
+
description: string;
|
|
1114
|
+
body?: string | undefined;
|
|
1115
|
+
files?: Record<string, string> | undefined;
|
|
1116
|
+
}, {
|
|
1117
|
+
name: string;
|
|
1118
|
+
description: string;
|
|
1119
|
+
body?: string | undefined;
|
|
1120
|
+
files?: Record<string, string> | undefined;
|
|
1121
|
+
}>;
|
|
1122
|
+
export declare const skillUpdateSchema: z.ZodEffects<z.ZodObject<{
|
|
1123
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1124
|
+
body: z.ZodOptional<z.ZodString>;
|
|
1125
|
+
/** Толерантный контейнер (неизвестные ключи сохраняются). */
|
|
1126
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1127
|
+
}, "strip", z.ZodTypeAny, {
|
|
1128
|
+
description?: string | undefined;
|
|
1129
|
+
body?: string | undefined;
|
|
1130
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1131
|
+
}, {
|
|
1132
|
+
description?: string | undefined;
|
|
1133
|
+
body?: string | undefined;
|
|
1134
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1135
|
+
}>, {
|
|
1136
|
+
description?: string | undefined;
|
|
1137
|
+
body?: string | undefined;
|
|
1138
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1139
|
+
}, {
|
|
1140
|
+
description?: string | undefined;
|
|
1141
|
+
body?: string | undefined;
|
|
1142
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1143
|
+
}>;
|
|
1144
|
+
export declare const skillFileWriteSchema: z.ZodObject<{
|
|
1145
|
+
content: z.ZodString;
|
|
1146
|
+
}, "strip", z.ZodTypeAny, {
|
|
1147
|
+
content: string;
|
|
1148
|
+
}, {
|
|
1149
|
+
content: string;
|
|
1150
|
+
}>;
|
|
1151
|
+
/**
|
|
1152
|
+
* AD-046 §4.5: per-session enable/disable скиллов (по образцу MCP-скоупа).
|
|
1153
|
+
* `undefined` ≠ `[]`: отсутствующее поле сохраняет текущее значение.
|
|
1154
|
+
*/
|
|
1155
|
+
export declare const skillSessionOverrideSchema: z.ZodObject<{
|
|
1156
|
+
skills: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1157
|
+
skillsDisabled: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1158
|
+
}, "strip", z.ZodTypeAny, {
|
|
1159
|
+
skills?: string[] | undefined;
|
|
1160
|
+
skillsDisabled?: string[] | undefined;
|
|
1161
|
+
}, {
|
|
1162
|
+
skills?: string[] | undefined;
|
|
1163
|
+
skillsDisabled?: string[] | undefined;
|
|
1164
|
+
}>;
|
|
1165
|
+
export type SkillCreateRequest = z.infer<typeof skillCreateSchema>;
|
|
1166
|
+
export type SkillUpdateRequest = z.infer<typeof skillUpdateSchema>;
|
|
1167
|
+
export type SkillFileWriteRequest = z.infer<typeof skillFileWriteSchema>;
|
|
1168
|
+
export type SkillSessionOverrideRequest = z.infer<typeof skillSessionOverrideSchema>;
|
|
1169
|
+
/** AD-046 §7.3: тело `POST/PATCH /api/v2/skill-bundles` (YAML-группа скиллов). */
|
|
1170
|
+
export declare const skillBundleSchema: z.ZodObject<{
|
|
1171
|
+
name: z.ZodString;
|
|
1172
|
+
description: z.ZodString;
|
|
1173
|
+
skills: z.ZodArray<z.ZodString, "many">;
|
|
1174
|
+
instruction: z.ZodOptional<z.ZodString>;
|
|
1175
|
+
}, "strip", z.ZodTypeAny, {
|
|
1176
|
+
skills: string[];
|
|
1177
|
+
name: string;
|
|
1178
|
+
description: string;
|
|
1179
|
+
instruction?: string | undefined;
|
|
1180
|
+
}, {
|
|
1181
|
+
skills: string[];
|
|
1182
|
+
name: string;
|
|
1183
|
+
description: string;
|
|
1184
|
+
instruction?: string | undefined;
|
|
1185
|
+
}>;
|
|
1186
|
+
export type SkillBundleRequest = z.infer<typeof skillBundleSchema>;
|
|
1187
|
+
/** AD-046 §7.4: тело `PUT /api/v2/settings/skills-disabled` (группы/имена). */
|
|
1188
|
+
export declare const skillsDisabledSchema: z.ZodObject<{
|
|
1189
|
+
categories: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1190
|
+
groups: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1191
|
+
skills: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1192
|
+
}, "strip", z.ZodTypeAny, {
|
|
1193
|
+
skills: string[];
|
|
1194
|
+
categories: string[];
|
|
1195
|
+
groups: string[];
|
|
1196
|
+
}, {
|
|
1197
|
+
skills?: string[] | undefined;
|
|
1198
|
+
categories?: string[] | undefined;
|
|
1199
|
+
groups?: string[] | undefined;
|
|
1200
|
+
}>;
|
|
1201
|
+
export type SkillsDisabledRequest = z.infer<typeof skillsDisabledSchema>;
|
|
1202
|
+
/**
|
|
1203
|
+
* AD-046 §4.5: тело `PUT /api/v2/settings/skills` — системные настройки:
|
|
1204
|
+
* - `disabled` — hard-gate: скиллы, недоступные НИГДЕ;
|
|
1205
|
+
* - `disabledForNewProjects` — сид для НОВЫХ проектов (снимок при создании);
|
|
1206
|
+
* - `policy` — политика доступности (строкой, валидируется роутом).
|
|
1207
|
+
*/
|
|
1208
|
+
export declare const skillsSystemSettingsSchema: z.ZodObject<{
|
|
1209
|
+
disabled: z.ZodOptional<z.ZodObject<{
|
|
1210
|
+
categories: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1211
|
+
groups: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1212
|
+
skills: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1213
|
+
}, "strip", z.ZodTypeAny, {
|
|
1214
|
+
skills: string[];
|
|
1215
|
+
categories: string[];
|
|
1216
|
+
groups: string[];
|
|
1217
|
+
}, {
|
|
1218
|
+
skills?: string[] | undefined;
|
|
1219
|
+
categories?: string[] | undefined;
|
|
1220
|
+
groups?: string[] | undefined;
|
|
1221
|
+
}>>;
|
|
1222
|
+
disabledForNewProjects: z.ZodOptional<z.ZodObject<{
|
|
1223
|
+
categories: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1224
|
+
groups: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1225
|
+
skills: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1226
|
+
}, "strip", z.ZodTypeAny, {
|
|
1227
|
+
skills: string[];
|
|
1228
|
+
categories: string[];
|
|
1229
|
+
groups: string[];
|
|
1230
|
+
}, {
|
|
1231
|
+
skills?: string[] | undefined;
|
|
1232
|
+
categories?: string[] | undefined;
|
|
1233
|
+
groups?: string[] | undefined;
|
|
1234
|
+
}>>;
|
|
1235
|
+
policy: z.ZodOptional<z.ZodString>;
|
|
1236
|
+
}, "strip", z.ZodTypeAny, {
|
|
1237
|
+
disabled?: {
|
|
1238
|
+
skills: string[];
|
|
1239
|
+
categories: string[];
|
|
1240
|
+
groups: string[];
|
|
1241
|
+
} | undefined;
|
|
1242
|
+
disabledForNewProjects?: {
|
|
1243
|
+
skills: string[];
|
|
1244
|
+
categories: string[];
|
|
1245
|
+
groups: string[];
|
|
1246
|
+
} | undefined;
|
|
1247
|
+
policy?: string | undefined;
|
|
1248
|
+
}, {
|
|
1249
|
+
disabled?: {
|
|
1250
|
+
skills?: string[] | undefined;
|
|
1251
|
+
categories?: string[] | undefined;
|
|
1252
|
+
groups?: string[] | undefined;
|
|
1253
|
+
} | undefined;
|
|
1254
|
+
disabledForNewProjects?: {
|
|
1255
|
+
skills?: string[] | undefined;
|
|
1256
|
+
categories?: string[] | undefined;
|
|
1257
|
+
groups?: string[] | undefined;
|
|
1258
|
+
} | undefined;
|
|
1259
|
+
policy?: string | undefined;
|
|
1260
|
+
}>;
|
|
1261
|
+
export type SkillsSystemSettingsRequest = z.infer<typeof skillsSystemSettingsSchema>;
|
|
1262
|
+
/**
|
|
1263
|
+
* AD-046 §4.5: тело `PUT /api/v2/sessions/:id/skills`: точечный toggle
|
|
1264
|
+
* (`{ name, enabled }`) или полная/частичная замена (`{ skills?, skillsDisabled? }`).
|
|
1265
|
+
*/
|
|
1266
|
+
export declare const sessionSkillUpdateSchema: z.ZodEffects<z.ZodObject<{
|
|
1267
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1268
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1269
|
+
skills: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1270
|
+
skillsDisabled: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1271
|
+
}, "strip", z.ZodTypeAny, {
|
|
1272
|
+
skills?: string[] | undefined;
|
|
1273
|
+
skillsDisabled?: string[] | undefined;
|
|
1274
|
+
name?: string | undefined;
|
|
1275
|
+
enabled?: boolean | undefined;
|
|
1276
|
+
}, {
|
|
1277
|
+
skills?: string[] | undefined;
|
|
1278
|
+
skillsDisabled?: string[] | undefined;
|
|
1279
|
+
name?: string | undefined;
|
|
1280
|
+
enabled?: boolean | undefined;
|
|
1281
|
+
}>, {
|
|
1282
|
+
skills?: string[] | undefined;
|
|
1283
|
+
skillsDisabled?: string[] | undefined;
|
|
1284
|
+
name?: string | undefined;
|
|
1285
|
+
enabled?: boolean | undefined;
|
|
1286
|
+
}, {
|
|
1287
|
+
skills?: string[] | undefined;
|
|
1288
|
+
skillsDisabled?: string[] | undefined;
|
|
1289
|
+
name?: string | undefined;
|
|
1290
|
+
enabled?: boolean | undefined;
|
|
1291
|
+
}>;
|
|
1292
|
+
/** AD-046 §4.5: тело `PUT /api/v2/projects/:id/skills`. */
|
|
1293
|
+
export declare const projectSkillUpdateSchema: z.ZodObject<{
|
|
1294
|
+
enabled: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1295
|
+
defaultOn: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1296
|
+
}, "strip", z.ZodTypeAny, {
|
|
1297
|
+
enabled?: string[] | undefined;
|
|
1298
|
+
defaultOn?: string[] | undefined;
|
|
1299
|
+
}, {
|
|
1300
|
+
enabled?: string[] | undefined;
|
|
1301
|
+
defaultOn?: string[] | undefined;
|
|
1302
|
+
}>;
|
|
1303
|
+
export type SessionSkillUpdateRequest = z.infer<typeof sessionSkillUpdateSchema>;
|
|
1304
|
+
export type ProjectSkillUpdateRequest = z.infer<typeof projectSkillUpdateSchema>;
|
|
771
1305
|
//# sourceMappingURL=index.d.ts.map
|