devchain-cli 0.4.0 → 0.4.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.
Files changed (41) hide show
  1. package/README.md +0 -14
  2. package/dist/cli.js +11 -1
  3. package/dist/node_modules/@devchain/shared/index.d.ts +3 -0
  4. package/dist/node_modules/@devchain/shared/index.d.ts.map +1 -0
  5. package/dist/node_modules/@devchain/shared/index.js +3 -0
  6. package/dist/node_modules/@devchain/shared/index.js.map +1 -0
  7. package/dist/node_modules/@devchain/shared/package.json +6 -0
  8. package/dist/node_modules/@devchain/shared/schemas/export-schema.d.ts +599 -0
  9. package/dist/node_modules/@devchain/shared/schemas/export-schema.d.ts.map +1 -0
  10. package/dist/node_modules/@devchain/shared/schemas/export-schema.js +143 -0
  11. package/dist/node_modules/@devchain/shared/schemas/export-schema.js.map +1 -0
  12. package/dist/node_modules/@devchain/shared/schemas/index.d.ts +2 -0
  13. package/dist/node_modules/@devchain/shared/schemas/index.d.ts.map +1 -0
  14. package/dist/node_modules/@devchain/shared/schemas/index.js +2 -0
  15. package/dist/node_modules/@devchain/shared/schemas/index.js.map +1 -0
  16. package/dist/node_modules/@devchain/shared/tsconfig.tsbuildinfo +1 -0
  17. package/dist/node_modules/@devchain/shared/utils/index.d.ts +2 -0
  18. package/dist/node_modules/@devchain/shared/utils/index.d.ts.map +1 -0
  19. package/dist/node_modules/@devchain/shared/utils/index.js +2 -0
  20. package/dist/node_modules/@devchain/shared/utils/index.js.map +1 -0
  21. package/dist/node_modules/@devchain/shared/utils/semver.d.ts +17 -0
  22. package/dist/node_modules/@devchain/shared/utils/semver.d.ts.map +1 -0
  23. package/dist/node_modules/@devchain/shared/utils/semver.js +103 -0
  24. package/dist/node_modules/@devchain/shared/utils/semver.js.map +1 -0
  25. package/dist/server/modules/projects/dtos/export.dto.d.ts +8 -0
  26. package/dist/server/modules/projects/dtos/export.dto.js +4 -0
  27. package/dist/server/modules/projects/dtos/export.dto.js.map +1 -1
  28. package/dist/server/modules/registry/services/unified-template.service.js +2 -2
  29. package/dist/server/modules/registry/services/unified-template.service.js.map +1 -1
  30. package/dist/server/modules/settings/services/settings.service.js +1 -1
  31. package/dist/server/modules/settings/services/settings.service.js.map +1 -1
  32. package/dist/server/templates/claude-codex-advanced.json +4 -3
  33. package/dist/server/templates/claude-opus.json +3 -2
  34. package/dist/server/templates/simple-codex.json +3 -2
  35. package/dist/server/tsconfig.tsbuildinfo +1 -1
  36. package/dist/server/ui/assets/{index-4Q4XuabC.js → index-DLpDwHdv.js} +159 -159
  37. package/dist/server/ui/index.html +1 -1
  38. package/dist/templates/claude-codex-advanced.json +4 -3
  39. package/dist/templates/claude-opus.json +3 -2
  40. package/dist/templates/simple-codex.json +3 -2
  41. package/package.json +12 -3
package/README.md CHANGED
@@ -71,20 +71,6 @@ devchain stop
71
71
  devchain --help
72
72
  ```
73
73
 
74
- ## Monorepo Structure
75
-
76
- This is a pnpm monorepo with multiple packages:
77
-
78
- | Package | Published | Description |
79
- |---------|-----------|-------------|
80
- | `devchain-cli` (root) | npm | CLI tool distributed via npm |
81
- | `apps/local-app` | No | Main application (bundled into CLI) |
82
- | `apps/remote-api` | No | Remote API service |
83
- | `apps/template-registry` | No | Template registry service (self-hosted) |
84
- | `packages/shared` | No | Shared types and utilities |
85
-
86
- Only the root `devchain-cli` package is published to npm. Other packages are either bundled into the CLI or deployed separately.
87
-
88
74
  ## License
89
75
 
90
76
  [Elastic License 2.0](LICENSE) — Free to use. You may not provide this software as a managed service or competing commercial offering.
package/dist/cli.js CHANGED
@@ -541,10 +541,11 @@ function getTmuxErrorMessage(osType) {
541
541
 
542
542
  async function main(argv) {
543
543
  const program = new Command();
544
+ const pkg = require('../package.json');
544
545
  program
545
546
  .name('devchain')
546
547
  .description('Devchain — Local-first AI agent orchestration')
547
- .version('0.1.0');
548
+ .version(pkg.version);
548
549
 
549
550
  const startCommand = program
550
551
  .command('start [args...]')
@@ -911,6 +912,15 @@ async function main(argv) {
911
912
  process.exit(1);
912
913
  }
913
914
 
915
+ // Add bundled node_modules to NODE_PATH for @devchain/shared resolution
916
+ const bundledNodeModules = join(__dirname, '..', 'dist', 'node_modules');
917
+ if (existsSync(bundledNodeModules)) {
918
+ process.env.NODE_PATH = process.env.NODE_PATH
919
+ ? `${bundledNodeModules}:${process.env.NODE_PATH}`
920
+ : bundledNodeModules;
921
+ require('module').Module._initPaths();
922
+ }
923
+
914
924
  // Start server (main.js bootstraps immediately)
915
925
  const spinner = opts.foreground ? null : cli.spinner('Starting server');
916
926
  if (spinner) spinner.start();
@@ -0,0 +1,3 @@
1
+ export { ExportSchema, type ExportData, type ExportDataInput, ManifestSchema, type ManifestData, } from './schemas/index.js';
2
+ export { parseSemVer, isValidSemVer, compareSemVer, isGreaterThan, isLessThan, isEqual, sortVersions, getLatestVersion, formatSemVer, type SemVer, } from './utils/index.js';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,YAAY,EACZ,KAAK,UAAU,EACf,KAAK,eAAe,EACpB,cAAc,EACd,KAAK,YAAY,GAClB,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EACL,WAAW,EACX,aAAa,EACb,aAAa,EACb,aAAa,EACb,UAAU,EACV,OAAO,EACP,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,KAAK,MAAM,GACZ,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { ExportSchema, ManifestSchema, } from './schemas/index.js';
2
+ export { parseSemVer, isValidSemVer, compareSemVer, isGreaterThan, isLessThan, isEqual, sortVersions, getLatestVersion, formatSemVer, } from './utils/index.js';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,YAAY,EAGZ,cAAc,GAEf,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EACL,WAAW,EACX,aAAa,EACb,aAAa,EACb,aAAa,EACb,UAAU,EACV,OAAO,EACP,YAAY,EACZ,gBAAgB,EAChB,YAAY,GAEb,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,6 @@
1
+ {
2
+ "name": "@devchain/shared",
3
+ "version": "0.0.0",
4
+ "main": "index.js",
5
+ "types": "index.d.ts"
6
+ }
@@ -0,0 +1,599 @@
1
+ import { z } from 'zod';
2
+ export declare const ManifestSchema: z.ZodObject<{
3
+ slug: z.ZodOptional<z.ZodString>;
4
+ name: z.ZodString;
5
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
+ category: z.ZodOptional<z.ZodEnum<["development", "planning", "custom"]>>;
7
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
8
+ authorName: z.ZodOptional<z.ZodString>;
9
+ minDevchainVersion: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
10
+ isOfficial: z.ZodOptional<z.ZodBoolean>;
11
+ version: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
12
+ publishedAt: z.ZodOptional<z.ZodString>;
13
+ changelog: z.ZodOptional<z.ZodString>;
14
+ gitCommit: z.ZodOptional<z.ZodString>;
15
+ }, "strict", z.ZodTypeAny, {
16
+ name: string;
17
+ slug?: string | undefined;
18
+ description?: string | null | undefined;
19
+ category?: "development" | "planning" | "custom" | undefined;
20
+ tags?: string[] | undefined;
21
+ authorName?: string | undefined;
22
+ minDevchainVersion?: string | undefined;
23
+ isOfficial?: boolean | undefined;
24
+ version?: string | undefined;
25
+ publishedAt?: string | undefined;
26
+ changelog?: string | undefined;
27
+ gitCommit?: string | undefined;
28
+ }, {
29
+ name: string;
30
+ slug?: string | undefined;
31
+ description?: string | null | undefined;
32
+ category?: "development" | "planning" | "custom" | undefined;
33
+ tags?: string[] | undefined;
34
+ authorName?: string | undefined;
35
+ minDevchainVersion?: string | undefined;
36
+ isOfficial?: boolean | undefined;
37
+ version?: string | undefined;
38
+ publishedAt?: string | undefined;
39
+ changelog?: string | undefined;
40
+ gitCommit?: string | undefined;
41
+ }>;
42
+ export type ManifestData = z.infer<typeof ManifestSchema>;
43
+ export declare const ExportSchema: z.ZodObject<{
44
+ version: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
45
+ exportedAt: z.ZodOptional<z.ZodString>;
46
+ prompts: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
47
+ id: z.ZodOptional<z.ZodString>;
48
+ title: z.ZodString;
49
+ content: z.ZodDefault<z.ZodString>;
50
+ version: z.ZodOptional<z.ZodNumber>;
51
+ tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
52
+ }, "strip", z.ZodTypeAny, {
53
+ tags: string[];
54
+ title: string;
55
+ content: string;
56
+ version?: number | undefined;
57
+ id?: string | undefined;
58
+ }, {
59
+ title: string;
60
+ tags?: string[] | undefined;
61
+ version?: number | undefined;
62
+ id?: string | undefined;
63
+ content?: string | undefined;
64
+ }>, "many">>>;
65
+ profiles: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
66
+ id: z.ZodOptional<z.ZodString>;
67
+ name: z.ZodString;
68
+ provider: z.ZodObject<{
69
+ id: z.ZodOptional<z.ZodString>;
70
+ name: z.ZodString;
71
+ }, "strip", z.ZodTypeAny, {
72
+ name: string;
73
+ id?: string | undefined;
74
+ }, {
75
+ name: string;
76
+ id?: string | undefined;
77
+ }>;
78
+ options: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
79
+ instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
80
+ temperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
81
+ maxTokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
82
+ }, "strip", z.ZodTypeAny, {
83
+ name: string;
84
+ provider: {
85
+ name: string;
86
+ id?: string | undefined;
87
+ };
88
+ options?: unknown;
89
+ id?: string | undefined;
90
+ instructions?: string | null | undefined;
91
+ temperature?: number | null | undefined;
92
+ maxTokens?: number | null | undefined;
93
+ }, {
94
+ name: string;
95
+ provider: {
96
+ name: string;
97
+ id?: string | undefined;
98
+ };
99
+ options?: unknown;
100
+ id?: string | undefined;
101
+ instructions?: string | null | undefined;
102
+ temperature?: number | null | undefined;
103
+ maxTokens?: number | null | undefined;
104
+ }>, "many">>>;
105
+ agents: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
106
+ id: z.ZodOptional<z.ZodString>;
107
+ name: z.ZodString;
108
+ profileId: z.ZodOptional<z.ZodString>;
109
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
110
+ }, "strip", z.ZodTypeAny, {
111
+ name: string;
112
+ description?: string | null | undefined;
113
+ id?: string | undefined;
114
+ profileId?: string | undefined;
115
+ }, {
116
+ name: string;
117
+ description?: string | null | undefined;
118
+ id?: string | undefined;
119
+ profileId?: string | undefined;
120
+ }>, "many">>>;
121
+ statuses: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
122
+ id: z.ZodOptional<z.ZodString>;
123
+ label: z.ZodString;
124
+ color: z.ZodString;
125
+ position: z.ZodNumber;
126
+ mcpHidden: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
127
+ }, "strip", z.ZodTypeAny, {
128
+ label: string;
129
+ color: string;
130
+ position: number;
131
+ mcpHidden: boolean;
132
+ id?: string | undefined;
133
+ }, {
134
+ label: string;
135
+ color: string;
136
+ position: number;
137
+ id?: string | undefined;
138
+ mcpHidden?: boolean | undefined;
139
+ }>, "many">>>;
140
+ initialPrompt: z.ZodOptional<z.ZodNullable<z.ZodObject<{
141
+ promptId: z.ZodOptional<z.ZodString>;
142
+ title: z.ZodOptional<z.ZodString>;
143
+ }, "strip", z.ZodTypeAny, {
144
+ title?: string | undefined;
145
+ promptId?: string | undefined;
146
+ }, {
147
+ title?: string | undefined;
148
+ promptId?: string | undefined;
149
+ }>>>;
150
+ projectSettings: z.ZodOptional<z.ZodObject<{
151
+ initialPromptTitle: z.ZodOptional<z.ZodString>;
152
+ autoCleanStatusLabels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
153
+ epicAssignedTemplate: z.ZodOptional<z.ZodString>;
154
+ messagePoolSettings: z.ZodOptional<z.ZodObject<{
155
+ enabled: z.ZodOptional<z.ZodBoolean>;
156
+ delayMs: z.ZodOptional<z.ZodNumber>;
157
+ maxWaitMs: z.ZodOptional<z.ZodNumber>;
158
+ maxMessages: z.ZodOptional<z.ZodNumber>;
159
+ separator: z.ZodOptional<z.ZodString>;
160
+ }, "strip", z.ZodTypeAny, {
161
+ enabled?: boolean | undefined;
162
+ delayMs?: number | undefined;
163
+ maxWaitMs?: number | undefined;
164
+ maxMessages?: number | undefined;
165
+ separator?: string | undefined;
166
+ }, {
167
+ enabled?: boolean | undefined;
168
+ delayMs?: number | undefined;
169
+ maxWaitMs?: number | undefined;
170
+ maxMessages?: number | undefined;
171
+ separator?: string | undefined;
172
+ }>>;
173
+ }, "strip", z.ZodTypeAny, {
174
+ initialPromptTitle?: string | undefined;
175
+ autoCleanStatusLabels?: string[] | undefined;
176
+ epicAssignedTemplate?: string | undefined;
177
+ messagePoolSettings?: {
178
+ enabled?: boolean | undefined;
179
+ delayMs?: number | undefined;
180
+ maxWaitMs?: number | undefined;
181
+ maxMessages?: number | undefined;
182
+ separator?: string | undefined;
183
+ } | undefined;
184
+ }, {
185
+ initialPromptTitle?: string | undefined;
186
+ autoCleanStatusLabels?: string[] | undefined;
187
+ epicAssignedTemplate?: string | undefined;
188
+ messagePoolSettings?: {
189
+ enabled?: boolean | undefined;
190
+ delayMs?: number | undefined;
191
+ maxWaitMs?: number | undefined;
192
+ maxMessages?: number | undefined;
193
+ separator?: string | undefined;
194
+ } | undefined;
195
+ }>>;
196
+ watchers: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
197
+ id: z.ZodOptional<z.ZodString>;
198
+ name: z.ZodString;
199
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
200
+ enabled: z.ZodBoolean;
201
+ scope: z.ZodEnum<["all", "agent", "profile", "provider"]>;
202
+ scopeFilterName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
203
+ pollIntervalMs: z.ZodNumber;
204
+ viewportLines: z.ZodNumber;
205
+ condition: z.ZodObject<{
206
+ type: z.ZodEnum<["contains", "regex", "not_contains"]>;
207
+ pattern: z.ZodString;
208
+ flags: z.ZodOptional<z.ZodString>;
209
+ }, "strip", z.ZodTypeAny, {
210
+ type: "contains" | "regex" | "not_contains";
211
+ pattern: string;
212
+ flags?: string | undefined;
213
+ }, {
214
+ type: "contains" | "regex" | "not_contains";
215
+ pattern: string;
216
+ flags?: string | undefined;
217
+ }>;
218
+ cooldownMs: z.ZodNumber;
219
+ cooldownMode: z.ZodEnum<["time", "until_clear"]>;
220
+ eventName: z.ZodString;
221
+ }, "strip", z.ZodTypeAny, {
222
+ name: string;
223
+ enabled: boolean;
224
+ scope: "provider" | "all" | "agent" | "profile";
225
+ pollIntervalMs: number;
226
+ viewportLines: number;
227
+ condition: {
228
+ type: "contains" | "regex" | "not_contains";
229
+ pattern: string;
230
+ flags?: string | undefined;
231
+ };
232
+ cooldownMs: number;
233
+ cooldownMode: "time" | "until_clear";
234
+ eventName: string;
235
+ description?: string | null | undefined;
236
+ id?: string | undefined;
237
+ scopeFilterName?: string | null | undefined;
238
+ }, {
239
+ name: string;
240
+ enabled: boolean;
241
+ scope: "provider" | "all" | "agent" | "profile";
242
+ pollIntervalMs: number;
243
+ viewportLines: number;
244
+ condition: {
245
+ type: "contains" | "regex" | "not_contains";
246
+ pattern: string;
247
+ flags?: string | undefined;
248
+ };
249
+ cooldownMs: number;
250
+ cooldownMode: "time" | "until_clear";
251
+ eventName: string;
252
+ description?: string | null | undefined;
253
+ id?: string | undefined;
254
+ scopeFilterName?: string | null | undefined;
255
+ }>, "many">>>;
256
+ subscribers: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
257
+ id: z.ZodOptional<z.ZodString>;
258
+ name: z.ZodString;
259
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
260
+ enabled: z.ZodBoolean;
261
+ eventName: z.ZodString;
262
+ eventFilter: z.ZodOptional<z.ZodNullable<z.ZodObject<{
263
+ field: z.ZodString;
264
+ operator: z.ZodEnum<["equals", "contains", "regex"]>;
265
+ value: z.ZodString;
266
+ }, "strip", z.ZodTypeAny, {
267
+ value: string;
268
+ field: string;
269
+ operator: "contains" | "regex" | "equals";
270
+ }, {
271
+ value: string;
272
+ field: string;
273
+ operator: "contains" | "regex" | "equals";
274
+ }>>>;
275
+ actionType: z.ZodString;
276
+ actionInputs: z.ZodRecord<z.ZodString, z.ZodObject<{
277
+ source: z.ZodEnum<["event_field", "custom"]>;
278
+ eventField: z.ZodOptional<z.ZodString>;
279
+ customValue: z.ZodOptional<z.ZodString>;
280
+ }, "strip", z.ZodTypeAny, {
281
+ source: "custom" | "event_field";
282
+ eventField?: string | undefined;
283
+ customValue?: string | undefined;
284
+ }, {
285
+ source: "custom" | "event_field";
286
+ eventField?: string | undefined;
287
+ customValue?: string | undefined;
288
+ }>>;
289
+ delayMs: z.ZodNumber;
290
+ cooldownMs: z.ZodNumber;
291
+ retryOnError: z.ZodBoolean;
292
+ groupName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
293
+ position: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
294
+ priority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
295
+ }, "strip", z.ZodTypeAny, {
296
+ name: string;
297
+ position: number;
298
+ enabled: boolean;
299
+ delayMs: number;
300
+ cooldownMs: number;
301
+ eventName: string;
302
+ actionType: string;
303
+ actionInputs: Record<string, {
304
+ source: "custom" | "event_field";
305
+ eventField?: string | undefined;
306
+ customValue?: string | undefined;
307
+ }>;
308
+ retryOnError: boolean;
309
+ priority: number;
310
+ description?: string | null | undefined;
311
+ id?: string | undefined;
312
+ eventFilter?: {
313
+ value: string;
314
+ field: string;
315
+ operator: "contains" | "regex" | "equals";
316
+ } | null | undefined;
317
+ groupName?: string | null | undefined;
318
+ }, {
319
+ name: string;
320
+ enabled: boolean;
321
+ delayMs: number;
322
+ cooldownMs: number;
323
+ eventName: string;
324
+ actionType: string;
325
+ actionInputs: Record<string, {
326
+ source: "custom" | "event_field";
327
+ eventField?: string | undefined;
328
+ customValue?: string | undefined;
329
+ }>;
330
+ retryOnError: boolean;
331
+ description?: string | null | undefined;
332
+ id?: string | undefined;
333
+ position?: number | undefined;
334
+ eventFilter?: {
335
+ value: string;
336
+ field: string;
337
+ operator: "contains" | "regex" | "equals";
338
+ } | null | undefined;
339
+ groupName?: string | null | undefined;
340
+ priority?: number | undefined;
341
+ }>, "many">>>;
342
+ _manifest: z.ZodOptional<z.ZodObject<{
343
+ slug: z.ZodOptional<z.ZodString>;
344
+ name: z.ZodString;
345
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
346
+ category: z.ZodOptional<z.ZodEnum<["development", "planning", "custom"]>>;
347
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
348
+ authorName: z.ZodOptional<z.ZodString>;
349
+ minDevchainVersion: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
350
+ isOfficial: z.ZodOptional<z.ZodBoolean>;
351
+ version: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
352
+ publishedAt: z.ZodOptional<z.ZodString>;
353
+ changelog: z.ZodOptional<z.ZodString>;
354
+ gitCommit: z.ZodOptional<z.ZodString>;
355
+ }, "strict", z.ZodTypeAny, {
356
+ name: string;
357
+ slug?: string | undefined;
358
+ description?: string | null | undefined;
359
+ category?: "development" | "planning" | "custom" | undefined;
360
+ tags?: string[] | undefined;
361
+ authorName?: string | undefined;
362
+ minDevchainVersion?: string | undefined;
363
+ isOfficial?: boolean | undefined;
364
+ version?: string | undefined;
365
+ publishedAt?: string | undefined;
366
+ changelog?: string | undefined;
367
+ gitCommit?: string | undefined;
368
+ }, {
369
+ name: string;
370
+ slug?: string | undefined;
371
+ description?: string | null | undefined;
372
+ category?: "development" | "planning" | "custom" | undefined;
373
+ tags?: string[] | undefined;
374
+ authorName?: string | undefined;
375
+ minDevchainVersion?: string | undefined;
376
+ isOfficial?: boolean | undefined;
377
+ version?: string | undefined;
378
+ publishedAt?: string | undefined;
379
+ changelog?: string | undefined;
380
+ gitCommit?: string | undefined;
381
+ }>>;
382
+ }, "strict", z.ZodTypeAny, {
383
+ version: number;
384
+ prompts: {
385
+ tags: string[];
386
+ title: string;
387
+ content: string;
388
+ version?: number | undefined;
389
+ id?: string | undefined;
390
+ }[];
391
+ profiles: {
392
+ name: string;
393
+ provider: {
394
+ name: string;
395
+ id?: string | undefined;
396
+ };
397
+ options?: unknown;
398
+ id?: string | undefined;
399
+ instructions?: string | null | undefined;
400
+ temperature?: number | null | undefined;
401
+ maxTokens?: number | null | undefined;
402
+ }[];
403
+ agents: {
404
+ name: string;
405
+ description?: string | null | undefined;
406
+ id?: string | undefined;
407
+ profileId?: string | undefined;
408
+ }[];
409
+ statuses: {
410
+ label: string;
411
+ color: string;
412
+ position: number;
413
+ mcpHidden: boolean;
414
+ id?: string | undefined;
415
+ }[];
416
+ watchers: {
417
+ name: string;
418
+ enabled: boolean;
419
+ scope: "provider" | "all" | "agent" | "profile";
420
+ pollIntervalMs: number;
421
+ viewportLines: number;
422
+ condition: {
423
+ type: "contains" | "regex" | "not_contains";
424
+ pattern: string;
425
+ flags?: string | undefined;
426
+ };
427
+ cooldownMs: number;
428
+ cooldownMode: "time" | "until_clear";
429
+ eventName: string;
430
+ description?: string | null | undefined;
431
+ id?: string | undefined;
432
+ scopeFilterName?: string | null | undefined;
433
+ }[];
434
+ subscribers: {
435
+ name: string;
436
+ position: number;
437
+ enabled: boolean;
438
+ delayMs: number;
439
+ cooldownMs: number;
440
+ eventName: string;
441
+ actionType: string;
442
+ actionInputs: Record<string, {
443
+ source: "custom" | "event_field";
444
+ eventField?: string | undefined;
445
+ customValue?: string | undefined;
446
+ }>;
447
+ retryOnError: boolean;
448
+ priority: number;
449
+ description?: string | null | undefined;
450
+ id?: string | undefined;
451
+ eventFilter?: {
452
+ value: string;
453
+ field: string;
454
+ operator: "contains" | "regex" | "equals";
455
+ } | null | undefined;
456
+ groupName?: string | null | undefined;
457
+ }[];
458
+ exportedAt?: string | undefined;
459
+ initialPrompt?: {
460
+ title?: string | undefined;
461
+ promptId?: string | undefined;
462
+ } | null | undefined;
463
+ projectSettings?: {
464
+ initialPromptTitle?: string | undefined;
465
+ autoCleanStatusLabels?: string[] | undefined;
466
+ epicAssignedTemplate?: string | undefined;
467
+ messagePoolSettings?: {
468
+ enabled?: boolean | undefined;
469
+ delayMs?: number | undefined;
470
+ maxWaitMs?: number | undefined;
471
+ maxMessages?: number | undefined;
472
+ separator?: string | undefined;
473
+ } | undefined;
474
+ } | undefined;
475
+ _manifest?: {
476
+ name: string;
477
+ slug?: string | undefined;
478
+ description?: string | null | undefined;
479
+ category?: "development" | "planning" | "custom" | undefined;
480
+ tags?: string[] | undefined;
481
+ authorName?: string | undefined;
482
+ minDevchainVersion?: string | undefined;
483
+ isOfficial?: boolean | undefined;
484
+ version?: string | undefined;
485
+ publishedAt?: string | undefined;
486
+ changelog?: string | undefined;
487
+ gitCommit?: string | undefined;
488
+ } | undefined;
489
+ }, {
490
+ version?: number | undefined;
491
+ exportedAt?: string | undefined;
492
+ prompts?: {
493
+ title: string;
494
+ tags?: string[] | undefined;
495
+ version?: number | undefined;
496
+ id?: string | undefined;
497
+ content?: string | undefined;
498
+ }[] | undefined;
499
+ profiles?: {
500
+ name: string;
501
+ provider: {
502
+ name: string;
503
+ id?: string | undefined;
504
+ };
505
+ options?: unknown;
506
+ id?: string | undefined;
507
+ instructions?: string | null | undefined;
508
+ temperature?: number | null | undefined;
509
+ maxTokens?: number | null | undefined;
510
+ }[] | undefined;
511
+ agents?: {
512
+ name: string;
513
+ description?: string | null | undefined;
514
+ id?: string | undefined;
515
+ profileId?: string | undefined;
516
+ }[] | undefined;
517
+ statuses?: {
518
+ label: string;
519
+ color: string;
520
+ position: number;
521
+ id?: string | undefined;
522
+ mcpHidden?: boolean | undefined;
523
+ }[] | undefined;
524
+ initialPrompt?: {
525
+ title?: string | undefined;
526
+ promptId?: string | undefined;
527
+ } | null | undefined;
528
+ projectSettings?: {
529
+ initialPromptTitle?: string | undefined;
530
+ autoCleanStatusLabels?: string[] | undefined;
531
+ epicAssignedTemplate?: string | undefined;
532
+ messagePoolSettings?: {
533
+ enabled?: boolean | undefined;
534
+ delayMs?: number | undefined;
535
+ maxWaitMs?: number | undefined;
536
+ maxMessages?: number | undefined;
537
+ separator?: string | undefined;
538
+ } | undefined;
539
+ } | undefined;
540
+ watchers?: {
541
+ name: string;
542
+ enabled: boolean;
543
+ scope: "provider" | "all" | "agent" | "profile";
544
+ pollIntervalMs: number;
545
+ viewportLines: number;
546
+ condition: {
547
+ type: "contains" | "regex" | "not_contains";
548
+ pattern: string;
549
+ flags?: string | undefined;
550
+ };
551
+ cooldownMs: number;
552
+ cooldownMode: "time" | "until_clear";
553
+ eventName: string;
554
+ description?: string | null | undefined;
555
+ id?: string | undefined;
556
+ scopeFilterName?: string | null | undefined;
557
+ }[] | undefined;
558
+ subscribers?: {
559
+ name: string;
560
+ enabled: boolean;
561
+ delayMs: number;
562
+ cooldownMs: number;
563
+ eventName: string;
564
+ actionType: string;
565
+ actionInputs: Record<string, {
566
+ source: "custom" | "event_field";
567
+ eventField?: string | undefined;
568
+ customValue?: string | undefined;
569
+ }>;
570
+ retryOnError: boolean;
571
+ description?: string | null | undefined;
572
+ id?: string | undefined;
573
+ position?: number | undefined;
574
+ eventFilter?: {
575
+ value: string;
576
+ field: string;
577
+ operator: "contains" | "regex" | "equals";
578
+ } | null | undefined;
579
+ groupName?: string | null | undefined;
580
+ priority?: number | undefined;
581
+ }[] | undefined;
582
+ _manifest?: {
583
+ name: string;
584
+ slug?: string | undefined;
585
+ description?: string | null | undefined;
586
+ category?: "development" | "planning" | "custom" | undefined;
587
+ tags?: string[] | undefined;
588
+ authorName?: string | undefined;
589
+ minDevchainVersion?: string | undefined;
590
+ isOfficial?: boolean | undefined;
591
+ version?: string | undefined;
592
+ publishedAt?: string | undefined;
593
+ changelog?: string | undefined;
594
+ gitCommit?: string | undefined;
595
+ } | undefined;
596
+ }>;
597
+ export type ExportData = z.infer<typeof ExportSchema>;
598
+ export type ExportDataInput = z.input<typeof ExportSchema>;
599
+ //# sourceMappingURL=export-schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"export-schema.d.ts","sourceRoot":"","sources":["../../src/schemas/export-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA8BxB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAehB,CAAC;AAGZ,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAM1D,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2Id,CAAC;AAGZ,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAGtD,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC"}