devchain-cli 0.6.0 → 0.7.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/dist/drizzle/0024_review_tables.sql +71 -0
- package/dist/drizzle/0025_reviews_mode_and_nullable_shas.sql +80 -0
- package/dist/drizzle/0026_review_comments_edited_at.sql +2 -0
- package/dist/drizzle/meta/_journal.json +22 -1
- package/dist/node_modules/@devchain/shared/tsconfig.tsbuildinfo +1 -1
- package/dist/server/common/errors/error-types.d.ts +3 -0
- package/dist/server/common/errors/error-types.js +7 -1
- package/dist/server/common/errors/error-types.js.map +1 -1
- package/dist/server/common/validation/path-validation.d.ts +11 -0
- package/dist/server/common/validation/path-validation.js +197 -0
- package/dist/server/common/validation/path-validation.js.map +1 -0
- package/dist/server/modules/chat/dtos/chat.dto.d.ts +13 -13
- package/dist/server/modules/core/core.module.js +3 -2
- package/dist/server/modules/core/core.module.js.map +1 -1
- package/dist/server/modules/core/services/preflight.service.d.ts +1 -3
- package/dist/server/modules/core/services/preflight.service.js +2 -28
- package/dist/server/modules/core/services/preflight.service.js.map +1 -1
- package/dist/server/modules/core/services/provider-mcp-ensure.service.d.ts +26 -0
- package/dist/server/modules/core/services/provider-mcp-ensure.service.js +224 -0
- package/dist/server/modules/core/services/provider-mcp-ensure.service.js.map +1 -0
- package/dist/server/modules/epics/controllers/epics.controller.d.ts +3 -2
- package/dist/server/modules/epics/controllers/epics.controller.js +16 -6
- package/dist/server/modules/epics/controllers/epics.controller.js.map +1 -1
- package/dist/server/modules/events/catalog/epic.created.d.ts +2 -2
- package/dist/server/modules/events/catalog/index.d.ts +340 -2
- package/dist/server/modules/events/catalog/index.js +12 -0
- package/dist/server/modules/events/catalog/index.js.map +1 -1
- package/dist/server/modules/events/catalog/review.comment.created.d.ts +69 -0
- package/dist/server/modules/events/catalog/review.comment.created.js +30 -0
- package/dist/server/modules/events/catalog/review.comment.created.js.map +1 -0
- package/dist/server/modules/events/catalog/review.comment.deleted.d.ts +30 -0
- package/dist/server/modules/events/catalog/review.comment.deleted.js +17 -0
- package/dist/server/modules/events/catalog/review.comment.deleted.js.map +1 -0
- package/dist/server/modules/events/catalog/review.comment.resolved.d.ts +30 -0
- package/dist/server/modules/events/catalog/review.comment.resolved.js +17 -0
- package/dist/server/modules/events/catalog/review.comment.resolved.js.map +1 -0
- package/dist/server/modules/events/catalog/review.comment.updated.d.ts +39 -0
- package/dist/server/modules/events/catalog/review.comment.updated.js +20 -0
- package/dist/server/modules/events/catalog/review.comment.updated.js.map +1 -0
- package/dist/server/modules/events/catalog/review.created.d.ts +90 -0
- package/dist/server/modules/events/catalog/review.created.js +40 -0
- package/dist/server/modules/events/catalog/review.created.js.map +1 -0
- package/dist/server/modules/events/catalog/review.updated.d.ts +110 -0
- package/dist/server/modules/events/catalog/review.updated.js +35 -0
- package/dist/server/modules/events/catalog/review.updated.js.map +1 -0
- package/dist/server/modules/events/subscribers/index.js +4 -0
- package/dist/server/modules/events/subscribers/index.js.map +1 -1
- package/dist/server/modules/events/subscribers/review-broadcaster.subscriber.d.ts +16 -0
- package/dist/server/modules/events/subscribers/review-broadcaster.subscriber.js +163 -0
- package/dist/server/modules/events/subscribers/review-broadcaster.subscriber.js.map +1 -0
- package/dist/server/modules/events/subscribers/review-comment-notifier.subscriber.d.ts +23 -0
- package/dist/server/modules/events/subscribers/review-comment-notifier.subscriber.js +217 -0
- package/dist/server/modules/events/subscribers/review-comment-notifier.subscriber.js.map +1 -0
- package/dist/server/modules/git/controllers/git.controller.d.ts +24 -0
- package/dist/server/modules/git/controllers/git.controller.js +230 -0
- package/dist/server/modules/git/controllers/git.controller.js.map +1 -0
- package/dist/server/modules/git/dtos/git.dto.d.ts +86 -0
- package/dist/server/modules/git/dtos/git.dto.js +36 -0
- package/dist/server/modules/git/dtos/git.dto.js.map +1 -0
- package/dist/server/modules/git/git.module.d.ts +2 -0
- package/dist/server/modules/git/git.module.js +25 -0
- package/dist/server/modules/git/git.module.js.map +1 -0
- package/dist/server/modules/git/services/git.service.d.ts +71 -0
- package/dist/server/modules/git/services/git.service.js +550 -0
- package/dist/server/modules/git/services/git.service.js.map +1 -0
- package/dist/server/modules/mcp/controllers/mcp-http.controller.js +17 -562
- package/dist/server/modules/mcp/controllers/mcp-http.controller.js.map +1 -1
- package/dist/server/modules/mcp/controllers/mcp-sdk.controller.js +9 -568
- package/dist/server/modules/mcp/controllers/mcp-sdk.controller.js.map +1 -1
- package/dist/server/modules/mcp/dtos/mcp.dto.d.ts +226 -36
- package/dist/server/modules/mcp/dtos/mcp.dto.js +158 -50
- package/dist/server/modules/mcp/dtos/mcp.dto.js.map +1 -1
- package/dist/server/modules/mcp/dtos/schema-registry.d.ts +7 -0
- package/dist/server/modules/mcp/dtos/schema-registry.js +56 -0
- package/dist/server/modules/mcp/dtos/schema-registry.js.map +1 -0
- package/dist/server/modules/mcp/mcp.module.js +2 -0
- package/dist/server/modules/mcp/mcp.module.js.map +1 -1
- package/dist/server/modules/mcp/services/mcp.service.d.ts +9 -1
- package/dist/server/modules/mcp/services/mcp.service.js +702 -33
- package/dist/server/modules/mcp/services/mcp.service.js.map +1 -1
- package/dist/server/modules/mcp/tool-definitions.d.ts +2438 -0
- package/dist/server/modules/mcp/tool-definitions.js +727 -0
- package/dist/server/modules/mcp/tool-definitions.js.map +1 -0
- package/dist/server/modules/mcp/utils/param-suggestion.d.ts +3 -0
- package/dist/server/modules/mcp/utils/param-suggestion.js +95 -0
- package/dist/server/modules/mcp/utils/param-suggestion.js.map +1 -0
- package/dist/server/modules/providers/controllers/providers.controller.d.ts +7 -6
- package/dist/server/modules/providers/controllers/providers.controller.js +12 -107
- package/dist/server/modules/providers/controllers/providers.controller.js.map +1 -1
- package/dist/server/modules/reviews/controllers/reviews.controller.d.ts +28 -0
- package/dist/server/modules/reviews/controllers/reviews.controller.js +369 -0
- package/dist/server/modules/reviews/controllers/reviews.controller.js.map +1 -0
- package/dist/server/modules/reviews/dtos/review.dto.d.ts +195 -0
- package/dist/server/modules/reviews/dtos/review.dto.js +92 -0
- package/dist/server/modules/reviews/dtos/review.dto.js.map +1 -0
- package/dist/server/modules/reviews/reviews.module.d.ts +2 -0
- package/dist/server/modules/reviews/reviews.module.js +27 -0
- package/dist/server/modules/reviews/reviews.module.js.map +1 -0
- package/dist/server/modules/reviews/services/reviews.service.d.ts +86 -0
- package/dist/server/modules/reviews/services/reviews.service.js +464 -0
- package/dist/server/modules/reviews/services/reviews.service.js.map +1 -0
- package/dist/server/modules/reviews/utils/notification-formatter.d.ts +12 -0
- package/dist/server/modules/reviews/utils/notification-formatter.js +60 -0
- package/dist/server/modules/reviews/utils/notification-formatter.js.map +1 -0
- package/dist/server/modules/sessions/services/sessions.service.d.ts +3 -1
- package/dist/server/modules/sessions/services/sessions.service.js +32 -2
- package/dist/server/modules/sessions/services/sessions.service.js.map +1 -1
- package/dist/server/modules/storage/db/schema.d.ts +697 -0
- package/dist/server/modules/storage/db/schema.js +71 -1
- package/dist/server/modules/storage/db/schema.js.map +1 -1
- package/dist/server/modules/storage/interfaces/storage.interface.d.ts +23 -1
- package/dist/server/modules/storage/interfaces/storage.interface.js.map +1 -1
- package/dist/server/modules/storage/local/local-storage.service.d.ts +15 -2
- package/dist/server/modules/storage/local/local-storage.service.js +396 -7
- package/dist/server/modules/storage/local/local-storage.service.js.map +1 -1
- package/dist/server/modules/storage/models/domain.models.d.ts +62 -0
- package/dist/server/templates/claude-codex-advanced-swe.json +139 -0
- package/dist/server/templates/claude-codex-advanced.json +82 -82
- package/dist/server/templates/claude-opus.json +99 -99
- package/dist/server/templates/claude-swe-single.json +105 -0
- package/dist/server/templates/simple-codex.json +70 -70
- package/dist/server/test-setup.js +45 -0
- package/dist/server/test-setup.js.map +1 -1
- package/dist/server/tsconfig.tsbuildinfo +1 -1
- package/dist/server/ui/assets/ReviewDetailPage-I54h-2L-.js +6 -0
- package/dist/server/ui/assets/ReviewsPage-B4ua5hiX.js +19 -0
- package/dist/server/ui/assets/index-CqcmnFBh.css +32 -0
- package/dist/server/ui/assets/index-JbUMpbg7.js +858 -0
- package/dist/server/ui/assets/useReviewSubscription-C0GEsiRw.js +83 -0
- package/dist/server/ui/assets/useReviewSubscription-T3uj2-aP.css +1 -0
- package/dist/server/ui/index.html +2 -2
- package/dist/templates/claude-codex-advanced-swe.json +139 -0
- package/dist/templates/claude-codex-advanced.json +82 -82
- package/dist/templates/claude-opus.json +99 -99
- package/dist/templates/claude-swe-single.json +105 -0
- package/dist/templates/simple-codex.json +70 -70
- package/package.json +16 -3
- package/prebuilds/node-pty/darwin-arm64/pty.node +0 -0
- package/prebuilds/node-pty/darwin-arm64/spawn-helper +0 -0
- package/prebuilds/node-pty/darwin-x64/pty.node +0 -0
- package/prebuilds/node-pty/darwin-x64/spawn-helper +0 -0
- package/prebuilds/node-pty/linux-arm64/pty.node +0 -0
- package/prebuilds/node-pty/linux-x64/pty.node +0 -0
- package/prebuilds/node-pty/win32-arm64/conpty/OpenConsole.exe +0 -0
- package/prebuilds/node-pty/win32-arm64/conpty/conpty.dll +0 -0
- package/prebuilds/node-pty/win32-arm64/conpty.node +0 -0
- package/prebuilds/node-pty/win32-arm64/conpty.pdb +0 -0
- package/prebuilds/node-pty/win32-arm64/conpty_console_list.node +0 -0
- package/prebuilds/node-pty/win32-arm64/conpty_console_list.pdb +0 -0
- package/prebuilds/node-pty/win32-arm64/pty.node +0 -0
- package/prebuilds/node-pty/win32-arm64/pty.pdb +0 -0
- package/prebuilds/node-pty/win32-arm64/winpty-agent.exe +0 -0
- package/prebuilds/node-pty/win32-arm64/winpty-agent.pdb +0 -0
- package/prebuilds/node-pty/win32-arm64/winpty.dll +0 -0
- package/prebuilds/node-pty/win32-arm64/winpty.pdb +0 -0
- package/prebuilds/node-pty/win32-x64/conpty/OpenConsole.exe +0 -0
- package/prebuilds/node-pty/win32-x64/conpty/conpty.dll +0 -0
- package/prebuilds/node-pty/win32-x64/conpty.node +0 -0
- package/prebuilds/node-pty/win32-x64/conpty.pdb +0 -0
- package/prebuilds/node-pty/win32-x64/conpty_console_list.node +0 -0
- package/prebuilds/node-pty/win32-x64/conpty_console_list.pdb +0 -0
- package/prebuilds/node-pty/win32-x64/pty.node +0 -0
- package/prebuilds/node-pty/win32-x64/pty.pdb +0 -0
- package/prebuilds/node-pty/win32-x64/winpty-agent.exe +0 -0
- package/prebuilds/node-pty/win32-x64/winpty-agent.pdb +0 -0
- package/prebuilds/node-pty/win32-x64/winpty.dll +0 -0
- package/prebuilds/node-pty/win32-x64/winpty.pdb +0 -0
- package/scripts/postinstall.js +51 -1
- package/dist/server/ui/assets/index-BoDZOB7c.css +0 -32
- package/dist/server/ui/assets/index-hB0e02VB.js +0 -735
|
@@ -20,8 +20,8 @@ export declare const eventCatalog: {
|
|
|
20
20
|
parentId?: string | null | undefined;
|
|
21
21
|
agentId?: string | null | undefined;
|
|
22
22
|
projectName?: string | undefined;
|
|
23
|
-
statusName?: string | undefined;
|
|
24
23
|
agentName?: string | undefined;
|
|
24
|
+
statusName?: string | undefined;
|
|
25
25
|
parentTitle?: string | undefined;
|
|
26
26
|
}, {
|
|
27
27
|
projectId: string;
|
|
@@ -31,8 +31,8 @@ export declare const eventCatalog: {
|
|
|
31
31
|
parentId?: string | null | undefined;
|
|
32
32
|
agentId?: string | null | undefined;
|
|
33
33
|
projectName?: string | undefined;
|
|
34
|
-
statusName?: string | undefined;
|
|
35
34
|
agentName?: string | undefined;
|
|
35
|
+
statusName?: string | undefined;
|
|
36
36
|
parentTitle?: string | undefined;
|
|
37
37
|
}>;
|
|
38
38
|
readonly "epic.updated": z.ZodObject<{
|
|
@@ -326,6 +326,344 @@ export declare const eventCatalog: {
|
|
|
326
326
|
guestId: string;
|
|
327
327
|
reason: "tmux_session_died" | "manual";
|
|
328
328
|
}>;
|
|
329
|
+
readonly "review.created": z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
|
|
330
|
+
reviewId: z.ZodString;
|
|
331
|
+
projectId: z.ZodString;
|
|
332
|
+
epicId: z.ZodNullable<z.ZodString>;
|
|
333
|
+
title: z.ZodString;
|
|
334
|
+
status: z.ZodEnum<["draft", "pending", "changes_requested", "approved", "closed"]>;
|
|
335
|
+
mode: z.ZodLiteral<"commit">;
|
|
336
|
+
baseRef: z.ZodString;
|
|
337
|
+
headRef: z.ZodString;
|
|
338
|
+
baseSha: z.ZodString;
|
|
339
|
+
headSha: z.ZodString;
|
|
340
|
+
createdBy: z.ZodEnum<["user", "agent"]>;
|
|
341
|
+
createdByAgentId: z.ZodNullable<z.ZodString>;
|
|
342
|
+
projectName: z.ZodOptional<z.ZodString>;
|
|
343
|
+
}, "strip", z.ZodTypeAny, {
|
|
344
|
+
status: "draft" | "pending" | "changes_requested" | "approved" | "closed";
|
|
345
|
+
projectId: string;
|
|
346
|
+
title: string;
|
|
347
|
+
epicId: string | null;
|
|
348
|
+
mode: "commit";
|
|
349
|
+
baseRef: string;
|
|
350
|
+
headRef: string;
|
|
351
|
+
baseSha: string;
|
|
352
|
+
headSha: string;
|
|
353
|
+
createdBy: "agent" | "user";
|
|
354
|
+
createdByAgentId: string | null;
|
|
355
|
+
reviewId: string;
|
|
356
|
+
projectName?: string | undefined;
|
|
357
|
+
}, {
|
|
358
|
+
status: "draft" | "pending" | "changes_requested" | "approved" | "closed";
|
|
359
|
+
projectId: string;
|
|
360
|
+
title: string;
|
|
361
|
+
epicId: string | null;
|
|
362
|
+
mode: "commit";
|
|
363
|
+
baseRef: string;
|
|
364
|
+
headRef: string;
|
|
365
|
+
baseSha: string;
|
|
366
|
+
headSha: string;
|
|
367
|
+
createdBy: "agent" | "user";
|
|
368
|
+
createdByAgentId: string | null;
|
|
369
|
+
reviewId: string;
|
|
370
|
+
projectName?: string | undefined;
|
|
371
|
+
}>, z.ZodObject<{
|
|
372
|
+
reviewId: z.ZodString;
|
|
373
|
+
projectId: z.ZodString;
|
|
374
|
+
epicId: z.ZodNullable<z.ZodString>;
|
|
375
|
+
title: z.ZodString;
|
|
376
|
+
status: z.ZodEnum<["draft", "pending", "changes_requested", "approved", "closed"]>;
|
|
377
|
+
mode: z.ZodLiteral<"working_tree">;
|
|
378
|
+
baseRef: z.ZodString;
|
|
379
|
+
headRef: z.ZodString;
|
|
380
|
+
baseSha: z.ZodNull;
|
|
381
|
+
headSha: z.ZodNull;
|
|
382
|
+
createdBy: z.ZodEnum<["user", "agent"]>;
|
|
383
|
+
createdByAgentId: z.ZodNullable<z.ZodString>;
|
|
384
|
+
projectName: z.ZodOptional<z.ZodString>;
|
|
385
|
+
}, "strip", z.ZodTypeAny, {
|
|
386
|
+
status: "draft" | "pending" | "changes_requested" | "approved" | "closed";
|
|
387
|
+
projectId: string;
|
|
388
|
+
title: string;
|
|
389
|
+
epicId: string | null;
|
|
390
|
+
mode: "working_tree";
|
|
391
|
+
baseRef: string;
|
|
392
|
+
headRef: string;
|
|
393
|
+
baseSha: null;
|
|
394
|
+
headSha: null;
|
|
395
|
+
createdBy: "agent" | "user";
|
|
396
|
+
createdByAgentId: string | null;
|
|
397
|
+
reviewId: string;
|
|
398
|
+
projectName?: string | undefined;
|
|
399
|
+
}, {
|
|
400
|
+
status: "draft" | "pending" | "changes_requested" | "approved" | "closed";
|
|
401
|
+
projectId: string;
|
|
402
|
+
title: string;
|
|
403
|
+
epicId: string | null;
|
|
404
|
+
mode: "working_tree";
|
|
405
|
+
baseRef: string;
|
|
406
|
+
headRef: string;
|
|
407
|
+
baseSha: null;
|
|
408
|
+
headSha: null;
|
|
409
|
+
createdBy: "agent" | "user";
|
|
410
|
+
createdByAgentId: string | null;
|
|
411
|
+
reviewId: string;
|
|
412
|
+
projectName?: string | undefined;
|
|
413
|
+
}>]>;
|
|
414
|
+
readonly "review.updated": z.ZodObject<{
|
|
415
|
+
reviewId: z.ZodString;
|
|
416
|
+
projectId: z.ZodString;
|
|
417
|
+
version: z.ZodNumber;
|
|
418
|
+
title: z.ZodString;
|
|
419
|
+
projectName: z.ZodOptional<z.ZodString>;
|
|
420
|
+
changes: z.ZodObject<{
|
|
421
|
+
title: z.ZodOptional<z.ZodObject<{
|
|
422
|
+
previous: z.ZodString;
|
|
423
|
+
current: z.ZodString;
|
|
424
|
+
}, "strip", z.ZodTypeAny, {
|
|
425
|
+
previous: string;
|
|
426
|
+
current: string;
|
|
427
|
+
}, {
|
|
428
|
+
previous: string;
|
|
429
|
+
current: string;
|
|
430
|
+
}>>;
|
|
431
|
+
status: z.ZodOptional<z.ZodObject<{
|
|
432
|
+
previous: z.ZodEnum<["draft", "pending", "changes_requested", "approved", "closed"]>;
|
|
433
|
+
current: z.ZodEnum<["draft", "pending", "changes_requested", "approved", "closed"]>;
|
|
434
|
+
}, "strip", z.ZodTypeAny, {
|
|
435
|
+
previous: "draft" | "pending" | "changes_requested" | "approved" | "closed";
|
|
436
|
+
current: "draft" | "pending" | "changes_requested" | "approved" | "closed";
|
|
437
|
+
}, {
|
|
438
|
+
previous: "draft" | "pending" | "changes_requested" | "approved" | "closed";
|
|
439
|
+
current: "draft" | "pending" | "changes_requested" | "approved" | "closed";
|
|
440
|
+
}>>;
|
|
441
|
+
headSha: z.ZodOptional<z.ZodObject<{
|
|
442
|
+
previous: z.ZodNullable<z.ZodString>;
|
|
443
|
+
current: z.ZodNullable<z.ZodString>;
|
|
444
|
+
}, "strip", z.ZodTypeAny, {
|
|
445
|
+
previous: string | null;
|
|
446
|
+
current: string | null;
|
|
447
|
+
}, {
|
|
448
|
+
previous: string | null;
|
|
449
|
+
current: string | null;
|
|
450
|
+
}>>;
|
|
451
|
+
}, "strip", z.ZodTypeAny, {
|
|
452
|
+
status?: {
|
|
453
|
+
previous: "draft" | "pending" | "changes_requested" | "approved" | "closed";
|
|
454
|
+
current: "draft" | "pending" | "changes_requested" | "approved" | "closed";
|
|
455
|
+
} | undefined;
|
|
456
|
+
title?: {
|
|
457
|
+
previous: string;
|
|
458
|
+
current: string;
|
|
459
|
+
} | undefined;
|
|
460
|
+
headSha?: {
|
|
461
|
+
previous: string | null;
|
|
462
|
+
current: string | null;
|
|
463
|
+
} | undefined;
|
|
464
|
+
}, {
|
|
465
|
+
status?: {
|
|
466
|
+
previous: "draft" | "pending" | "changes_requested" | "approved" | "closed";
|
|
467
|
+
current: "draft" | "pending" | "changes_requested" | "approved" | "closed";
|
|
468
|
+
} | undefined;
|
|
469
|
+
title?: {
|
|
470
|
+
previous: string;
|
|
471
|
+
current: string;
|
|
472
|
+
} | undefined;
|
|
473
|
+
headSha?: {
|
|
474
|
+
previous: string | null;
|
|
475
|
+
current: string | null;
|
|
476
|
+
} | undefined;
|
|
477
|
+
}>;
|
|
478
|
+
}, "strip", z.ZodTypeAny, {
|
|
479
|
+
projectId: string;
|
|
480
|
+
version: number;
|
|
481
|
+
title: string;
|
|
482
|
+
reviewId: string;
|
|
483
|
+
changes: {
|
|
484
|
+
status?: {
|
|
485
|
+
previous: "draft" | "pending" | "changes_requested" | "approved" | "closed";
|
|
486
|
+
current: "draft" | "pending" | "changes_requested" | "approved" | "closed";
|
|
487
|
+
} | undefined;
|
|
488
|
+
title?: {
|
|
489
|
+
previous: string;
|
|
490
|
+
current: string;
|
|
491
|
+
} | undefined;
|
|
492
|
+
headSha?: {
|
|
493
|
+
previous: string | null;
|
|
494
|
+
current: string | null;
|
|
495
|
+
} | undefined;
|
|
496
|
+
};
|
|
497
|
+
projectName?: string | undefined;
|
|
498
|
+
}, {
|
|
499
|
+
projectId: string;
|
|
500
|
+
version: number;
|
|
501
|
+
title: string;
|
|
502
|
+
reviewId: string;
|
|
503
|
+
changes: {
|
|
504
|
+
status?: {
|
|
505
|
+
previous: "draft" | "pending" | "changes_requested" | "approved" | "closed";
|
|
506
|
+
current: "draft" | "pending" | "changes_requested" | "approved" | "closed";
|
|
507
|
+
} | undefined;
|
|
508
|
+
title?: {
|
|
509
|
+
previous: string;
|
|
510
|
+
current: string;
|
|
511
|
+
} | undefined;
|
|
512
|
+
headSha?: {
|
|
513
|
+
previous: string | null;
|
|
514
|
+
current: string | null;
|
|
515
|
+
} | undefined;
|
|
516
|
+
};
|
|
517
|
+
projectName?: string | undefined;
|
|
518
|
+
}>;
|
|
519
|
+
readonly "review.comment.created": z.ZodObject<{
|
|
520
|
+
commentId: z.ZodString;
|
|
521
|
+
reviewId: z.ZodString;
|
|
522
|
+
projectId: z.ZodString;
|
|
523
|
+
content: z.ZodString;
|
|
524
|
+
commentType: z.ZodEnum<["comment", "suggestion", "issue", "approval"]>;
|
|
525
|
+
status: z.ZodEnum<["open", "resolved", "wont_fix"]>;
|
|
526
|
+
authorType: z.ZodEnum<["user", "agent"]>;
|
|
527
|
+
authorAgentId: z.ZodNullable<z.ZodString>;
|
|
528
|
+
filePath: z.ZodNullable<z.ZodString>;
|
|
529
|
+
lineStart: z.ZodNullable<z.ZodNumber>;
|
|
530
|
+
lineEnd: z.ZodNullable<z.ZodNumber>;
|
|
531
|
+
parentId: z.ZodNullable<z.ZodString>;
|
|
532
|
+
targetAgentIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
533
|
+
projectName: z.ZodOptional<z.ZodString>;
|
|
534
|
+
reviewTitle: z.ZodOptional<z.ZodString>;
|
|
535
|
+
reviewMode: z.ZodOptional<z.ZodEnum<["working_tree", "commit"]>>;
|
|
536
|
+
baseRef: z.ZodOptional<z.ZodString>;
|
|
537
|
+
headRef: z.ZodOptional<z.ZodString>;
|
|
538
|
+
baseSha: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
539
|
+
headSha: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
540
|
+
}, "strip", z.ZodTypeAny, {
|
|
541
|
+
status: "open" | "resolved" | "wont_fix";
|
|
542
|
+
content: string;
|
|
543
|
+
projectId: string;
|
|
544
|
+
parentId: string | null;
|
|
545
|
+
reviewId: string;
|
|
546
|
+
filePath: string | null;
|
|
547
|
+
lineStart: number | null;
|
|
548
|
+
lineEnd: number | null;
|
|
549
|
+
commentType: "comment" | "suggestion" | "issue" | "approval";
|
|
550
|
+
authorType: "agent" | "user";
|
|
551
|
+
authorAgentId: string | null;
|
|
552
|
+
commentId: string;
|
|
553
|
+
baseRef?: string | undefined;
|
|
554
|
+
headRef?: string | undefined;
|
|
555
|
+
baseSha?: string | null | undefined;
|
|
556
|
+
headSha?: string | null | undefined;
|
|
557
|
+
projectName?: string | undefined;
|
|
558
|
+
targetAgentIds?: string[] | undefined;
|
|
559
|
+
reviewTitle?: string | undefined;
|
|
560
|
+
reviewMode?: "working_tree" | "commit" | undefined;
|
|
561
|
+
}, {
|
|
562
|
+
status: "open" | "resolved" | "wont_fix";
|
|
563
|
+
content: string;
|
|
564
|
+
projectId: string;
|
|
565
|
+
parentId: string | null;
|
|
566
|
+
reviewId: string;
|
|
567
|
+
filePath: string | null;
|
|
568
|
+
lineStart: number | null;
|
|
569
|
+
lineEnd: number | null;
|
|
570
|
+
commentType: "comment" | "suggestion" | "issue" | "approval";
|
|
571
|
+
authorType: "agent" | "user";
|
|
572
|
+
authorAgentId: string | null;
|
|
573
|
+
commentId: string;
|
|
574
|
+
baseRef?: string | undefined;
|
|
575
|
+
headRef?: string | undefined;
|
|
576
|
+
baseSha?: string | null | undefined;
|
|
577
|
+
headSha?: string | null | undefined;
|
|
578
|
+
projectName?: string | undefined;
|
|
579
|
+
targetAgentIds?: string[] | undefined;
|
|
580
|
+
reviewTitle?: string | undefined;
|
|
581
|
+
reviewMode?: "working_tree" | "commit" | undefined;
|
|
582
|
+
}>;
|
|
583
|
+
readonly "review.comment.resolved": z.ZodObject<{
|
|
584
|
+
commentId: z.ZodString;
|
|
585
|
+
reviewId: z.ZodString;
|
|
586
|
+
projectId: z.ZodString;
|
|
587
|
+
status: z.ZodEnum<["resolved", "wont_fix"]>;
|
|
588
|
+
version: z.ZodNumber;
|
|
589
|
+
projectName: z.ZodOptional<z.ZodString>;
|
|
590
|
+
reviewTitle: z.ZodOptional<z.ZodString>;
|
|
591
|
+
}, "strip", z.ZodTypeAny, {
|
|
592
|
+
status: "resolved" | "wont_fix";
|
|
593
|
+
projectId: string;
|
|
594
|
+
version: number;
|
|
595
|
+
reviewId: string;
|
|
596
|
+
commentId: string;
|
|
597
|
+
projectName?: string | undefined;
|
|
598
|
+
reviewTitle?: string | undefined;
|
|
599
|
+
}, {
|
|
600
|
+
status: "resolved" | "wont_fix";
|
|
601
|
+
projectId: string;
|
|
602
|
+
version: number;
|
|
603
|
+
reviewId: string;
|
|
604
|
+
commentId: string;
|
|
605
|
+
projectName?: string | undefined;
|
|
606
|
+
reviewTitle?: string | undefined;
|
|
607
|
+
}>;
|
|
608
|
+
readonly "review.comment.deleted": z.ZodObject<{
|
|
609
|
+
commentId: z.ZodString;
|
|
610
|
+
reviewId: z.ZodString;
|
|
611
|
+
projectId: z.ZodString;
|
|
612
|
+
filePath: z.ZodNullable<z.ZodString>;
|
|
613
|
+
parentId: z.ZodNullable<z.ZodString>;
|
|
614
|
+
projectName: z.ZodOptional<z.ZodString>;
|
|
615
|
+
reviewTitle: z.ZodOptional<z.ZodString>;
|
|
616
|
+
}, "strip", z.ZodTypeAny, {
|
|
617
|
+
projectId: string;
|
|
618
|
+
parentId: string | null;
|
|
619
|
+
reviewId: string;
|
|
620
|
+
filePath: string | null;
|
|
621
|
+
commentId: string;
|
|
622
|
+
projectName?: string | undefined;
|
|
623
|
+
reviewTitle?: string | undefined;
|
|
624
|
+
}, {
|
|
625
|
+
projectId: string;
|
|
626
|
+
parentId: string | null;
|
|
627
|
+
reviewId: string;
|
|
628
|
+
filePath: string | null;
|
|
629
|
+
commentId: string;
|
|
630
|
+
projectName?: string | undefined;
|
|
631
|
+
reviewTitle?: string | undefined;
|
|
632
|
+
}>;
|
|
633
|
+
readonly "review.comment.updated": z.ZodObject<{
|
|
634
|
+
commentId: z.ZodString;
|
|
635
|
+
reviewId: z.ZodString;
|
|
636
|
+
projectId: z.ZodString;
|
|
637
|
+
content: z.ZodString;
|
|
638
|
+
previousContent: z.ZodString;
|
|
639
|
+
version: z.ZodNumber;
|
|
640
|
+
editedAt: z.ZodNullable<z.ZodString>;
|
|
641
|
+
filePath: z.ZodNullable<z.ZodString>;
|
|
642
|
+
projectName: z.ZodOptional<z.ZodString>;
|
|
643
|
+
reviewTitle: z.ZodOptional<z.ZodString>;
|
|
644
|
+
}, "strip", z.ZodTypeAny, {
|
|
645
|
+
content: string;
|
|
646
|
+
projectId: string;
|
|
647
|
+
version: number;
|
|
648
|
+
editedAt: string | null;
|
|
649
|
+
reviewId: string;
|
|
650
|
+
filePath: string | null;
|
|
651
|
+
commentId: string;
|
|
652
|
+
previousContent: string;
|
|
653
|
+
projectName?: string | undefined;
|
|
654
|
+
reviewTitle?: string | undefined;
|
|
655
|
+
}, {
|
|
656
|
+
content: string;
|
|
657
|
+
projectId: string;
|
|
658
|
+
version: number;
|
|
659
|
+
editedAt: string | null;
|
|
660
|
+
reviewId: string;
|
|
661
|
+
filePath: string | null;
|
|
662
|
+
commentId: string;
|
|
663
|
+
previousContent: string;
|
|
664
|
+
projectName?: string | undefined;
|
|
665
|
+
reviewTitle?: string | undefined;
|
|
666
|
+
}>;
|
|
329
667
|
};
|
|
330
668
|
export type EventName = keyof typeof eventCatalog;
|
|
331
669
|
export type EventSchema<TName extends EventName> = (typeof eventCatalog)[TName];
|
|
@@ -10,6 +10,12 @@ const terminal_watcher_triggered_1 = require("./terminal.watcher.triggered");
|
|
|
10
10
|
const settings_terminal_changed_1 = require("./settings.terminal.changed");
|
|
11
11
|
const guest_registered_1 = require("./guest.registered");
|
|
12
12
|
const guest_unregistered_1 = require("./guest.unregistered");
|
|
13
|
+
const review_created_1 = require("./review.created");
|
|
14
|
+
const review_updated_1 = require("./review.updated");
|
|
15
|
+
const review_comment_created_1 = require("./review.comment.created");
|
|
16
|
+
const review_comment_resolved_1 = require("./review.comment.resolved");
|
|
17
|
+
const review_comment_deleted_1 = require("./review.comment.deleted");
|
|
18
|
+
const review_comment_updated_1 = require("./review.comment.updated");
|
|
13
19
|
var settings_terminal_changed_2 = require("./settings.terminal.changed");
|
|
14
20
|
Object.defineProperty(exports, "settingsTerminalChangedEvent", { enumerable: true, get: function () { return settings_terminal_changed_2.settingsTerminalChangedEvent; } });
|
|
15
21
|
exports.eventCatalog = {
|
|
@@ -22,6 +28,12 @@ exports.eventCatalog = {
|
|
|
22
28
|
[settings_terminal_changed_1.settingsTerminalChangedEvent.name]: settings_terminal_changed_1.settingsTerminalChangedEvent.schema,
|
|
23
29
|
[guest_registered_1.guestRegisteredEvent.name]: guest_registered_1.guestRegisteredEvent.schema,
|
|
24
30
|
[guest_unregistered_1.guestUnregisteredEvent.name]: guest_unregistered_1.guestUnregisteredEvent.schema,
|
|
31
|
+
[review_created_1.reviewCreatedEvent.name]: review_created_1.reviewCreatedEvent.schema,
|
|
32
|
+
[review_updated_1.reviewUpdatedEvent.name]: review_updated_1.reviewUpdatedEvent.schema,
|
|
33
|
+
[review_comment_created_1.reviewCommentCreatedEvent.name]: review_comment_created_1.reviewCommentCreatedEvent.schema,
|
|
34
|
+
[review_comment_resolved_1.reviewCommentResolvedEvent.name]: review_comment_resolved_1.reviewCommentResolvedEvent.schema,
|
|
35
|
+
[review_comment_deleted_1.reviewCommentDeletedEvent.name]: review_comment_deleted_1.reviewCommentDeletedEvent.schema,
|
|
36
|
+
[review_comment_updated_1.reviewCommentUpdatedEvent.name]: review_comment_updated_1.reviewCommentUpdatedEvent.schema,
|
|
25
37
|
};
|
|
26
38
|
exports.eventNames = Object.keys(exports.eventCatalog);
|
|
27
39
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/events/catalog/index.ts"],"names":[],"mappings":";;;AACA,iDAAkD;AAClD,iDAAkD;AAClD,uDAAwD;AACxD,uDAAwD;AACxD,uDAAwD;AACxD,6EAA6E;AAC7E,2EAA2E;AAC3E,yDAA0D;AAC1D,6DAA8D;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/events/catalog/index.ts"],"names":[],"mappings":";;;AACA,iDAAkD;AAClD,iDAAkD;AAClD,uDAAwD;AACxD,uDAAwD;AACxD,uDAAwD;AACxD,6EAA6E;AAC7E,2EAA2E;AAC3E,yDAA0D;AAC1D,6DAA8D;AAC9D,qDAAsD;AACtD,qDAAsD;AACtD,qEAAqE;AACrE,uEAAuE;AACvE,qEAAqE;AACrE,qEAAqE;AAGrE,yEAA2E;AAAlE,yIAAA,4BAA4B,OAAA;AAExB,QAAA,YAAY,GAAG;IAC1B,CAAC,+BAAgB,CAAC,IAAI,CAAC,EAAE,+BAAgB,CAAC,MAAM;IAChD,CAAC,+BAAgB,CAAC,IAAI,CAAC,EAAE,+BAAgB,CAAC,MAAM;IAChD,CAAC,qCAAmB,CAAC,IAAI,CAAC,EAAE,qCAAmB,CAAC,MAAM;IACtD,CAAC,qCAAmB,CAAC,IAAI,CAAC,EAAE,qCAAmB,CAAC,MAAM;IACtD,CAAC,qCAAmB,CAAC,IAAI,CAAC,EAAE,qCAAmB,CAAC,MAAM;IACtD,CAAC,0DAA6B,CAAC,IAAI,CAAC,EAAE,0DAA6B,CAAC,MAAM;IAC1E,CAAC,wDAA4B,CAAC,IAAI,CAAC,EAAE,wDAA4B,CAAC,MAAM;IACxE,CAAC,uCAAoB,CAAC,IAAI,CAAC,EAAE,uCAAoB,CAAC,MAAM;IACxD,CAAC,2CAAsB,CAAC,IAAI,CAAC,EAAE,2CAAsB,CAAC,MAAM;IAC5D,CAAC,mCAAkB,CAAC,IAAI,CAAC,EAAE,mCAAkB,CAAC,MAAM;IACpD,CAAC,mCAAkB,CAAC,IAAI,CAAC,EAAE,mCAAkB,CAAC,MAAM;IACpD,CAAC,kDAAyB,CAAC,IAAI,CAAC,EAAE,kDAAyB,CAAC,MAAM;IAClE,CAAC,oDAA0B,CAAC,IAAI,CAAC,EAAE,oDAA0B,CAAC,MAAM;IACpE,CAAC,kDAAyB,CAAC,IAAI,CAAC,EAAE,kDAAyB,CAAC,MAAM;IAClE,CAAC,kDAAyB,CAAC,IAAI,CAAC,EAAE,kDAAyB,CAAC,MAAM;CAC1D,CAAC;AAKE,QAAA,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,oBAAY,CAAgB,CAAC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const reviewCommentCreatedEvent: {
|
|
3
|
+
readonly name: "review.comment.created";
|
|
4
|
+
readonly schema: z.ZodObject<{
|
|
5
|
+
commentId: z.ZodString;
|
|
6
|
+
reviewId: z.ZodString;
|
|
7
|
+
projectId: z.ZodString;
|
|
8
|
+
content: z.ZodString;
|
|
9
|
+
commentType: z.ZodEnum<["comment", "suggestion", "issue", "approval"]>;
|
|
10
|
+
status: z.ZodEnum<["open", "resolved", "wont_fix"]>;
|
|
11
|
+
authorType: z.ZodEnum<["user", "agent"]>;
|
|
12
|
+
authorAgentId: z.ZodNullable<z.ZodString>;
|
|
13
|
+
filePath: z.ZodNullable<z.ZodString>;
|
|
14
|
+
lineStart: z.ZodNullable<z.ZodNumber>;
|
|
15
|
+
lineEnd: z.ZodNullable<z.ZodNumber>;
|
|
16
|
+
parentId: z.ZodNullable<z.ZodString>;
|
|
17
|
+
targetAgentIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
18
|
+
projectName: z.ZodOptional<z.ZodString>;
|
|
19
|
+
reviewTitle: z.ZodOptional<z.ZodString>;
|
|
20
|
+
reviewMode: z.ZodOptional<z.ZodEnum<["working_tree", "commit"]>>;
|
|
21
|
+
baseRef: z.ZodOptional<z.ZodString>;
|
|
22
|
+
headRef: z.ZodOptional<z.ZodString>;
|
|
23
|
+
baseSha: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
headSha: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
status: "open" | "resolved" | "wont_fix";
|
|
27
|
+
content: string;
|
|
28
|
+
projectId: string;
|
|
29
|
+
parentId: string | null;
|
|
30
|
+
reviewId: string;
|
|
31
|
+
filePath: string | null;
|
|
32
|
+
lineStart: number | null;
|
|
33
|
+
lineEnd: number | null;
|
|
34
|
+
commentType: "comment" | "suggestion" | "issue" | "approval";
|
|
35
|
+
authorType: "agent" | "user";
|
|
36
|
+
authorAgentId: string | null;
|
|
37
|
+
commentId: string;
|
|
38
|
+
baseRef?: string | undefined;
|
|
39
|
+
headRef?: string | undefined;
|
|
40
|
+
baseSha?: string | null | undefined;
|
|
41
|
+
headSha?: string | null | undefined;
|
|
42
|
+
projectName?: string | undefined;
|
|
43
|
+
targetAgentIds?: string[] | undefined;
|
|
44
|
+
reviewTitle?: string | undefined;
|
|
45
|
+
reviewMode?: "working_tree" | "commit" | undefined;
|
|
46
|
+
}, {
|
|
47
|
+
status: "open" | "resolved" | "wont_fix";
|
|
48
|
+
content: string;
|
|
49
|
+
projectId: string;
|
|
50
|
+
parentId: string | null;
|
|
51
|
+
reviewId: string;
|
|
52
|
+
filePath: string | null;
|
|
53
|
+
lineStart: number | null;
|
|
54
|
+
lineEnd: number | null;
|
|
55
|
+
commentType: "comment" | "suggestion" | "issue" | "approval";
|
|
56
|
+
authorType: "agent" | "user";
|
|
57
|
+
authorAgentId: string | null;
|
|
58
|
+
commentId: string;
|
|
59
|
+
baseRef?: string | undefined;
|
|
60
|
+
headRef?: string | undefined;
|
|
61
|
+
baseSha?: string | null | undefined;
|
|
62
|
+
headSha?: string | null | undefined;
|
|
63
|
+
projectName?: string | undefined;
|
|
64
|
+
targetAgentIds?: string[] | undefined;
|
|
65
|
+
reviewTitle?: string | undefined;
|
|
66
|
+
reviewMode?: "working_tree" | "commit" | undefined;
|
|
67
|
+
}>;
|
|
68
|
+
};
|
|
69
|
+
export type ReviewCommentCreatedEventPayload = z.infer<typeof reviewCommentCreatedEvent.schema>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.reviewCommentCreatedEvent = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.reviewCommentCreatedEvent = {
|
|
6
|
+
name: 'review.comment.created',
|
|
7
|
+
schema: zod_1.z.object({
|
|
8
|
+
commentId: zod_1.z.string().uuid(),
|
|
9
|
+
reviewId: zod_1.z.string().uuid(),
|
|
10
|
+
projectId: zod_1.z.string().uuid(),
|
|
11
|
+
content: zod_1.z.string().min(1),
|
|
12
|
+
commentType: zod_1.z.enum(['comment', 'suggestion', 'issue', 'approval']),
|
|
13
|
+
status: zod_1.z.enum(['open', 'resolved', 'wont_fix']),
|
|
14
|
+
authorType: zod_1.z.enum(['user', 'agent']),
|
|
15
|
+
authorAgentId: zod_1.z.string().uuid().nullable(),
|
|
16
|
+
filePath: zod_1.z.string().nullable(),
|
|
17
|
+
lineStart: zod_1.z.number().int().positive().nullable(),
|
|
18
|
+
lineEnd: zod_1.z.number().int().positive().nullable(),
|
|
19
|
+
parentId: zod_1.z.string().uuid().nullable(),
|
|
20
|
+
targetAgentIds: zod_1.z.array(zod_1.z.string().uuid()).optional(),
|
|
21
|
+
projectName: zod_1.z.string().min(1).optional(),
|
|
22
|
+
reviewTitle: zod_1.z.string().min(1).optional(),
|
|
23
|
+
reviewMode: zod_1.z.enum(['working_tree', 'commit']).optional(),
|
|
24
|
+
baseRef: zod_1.z.string().optional(),
|
|
25
|
+
headRef: zod_1.z.string().optional(),
|
|
26
|
+
baseSha: zod_1.z.string().nullable().optional(),
|
|
27
|
+
headSha: zod_1.z.string().nullable().optional(),
|
|
28
|
+
}),
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=review.comment.created.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"review.comment.created.js","sourceRoot":"","sources":["../../../../src/modules/events/catalog/review.comment.created.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,yBAAyB,GAAG;IACvC,IAAI,EAAE,wBAAwB;IAC9B,MAAM,EAAE,OAAC,CAAC,MAAM,CAAC;QACf,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;QAC5B,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;QAC3B,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;QAC5B,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;QAC1B,WAAW,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,YAAY,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;QACnE,MAAM,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,UAAU,CAAC,CAAC;QAChD,UAAU,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QACrC,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;QAC3C,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC/B,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QACjD,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QAC/C,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;QACtC,cAAc,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE;QAErD,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;QACzC,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;QAEzC,UAAU,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,cAAc,EAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,EAAE;QACzD,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC9B,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC9B,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QACzC,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;KAC1C,CAAC;CACM,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const reviewCommentDeletedEvent: {
|
|
3
|
+
readonly name: "review.comment.deleted";
|
|
4
|
+
readonly schema: z.ZodObject<{
|
|
5
|
+
commentId: z.ZodString;
|
|
6
|
+
reviewId: z.ZodString;
|
|
7
|
+
projectId: z.ZodString;
|
|
8
|
+
filePath: z.ZodNullable<z.ZodString>;
|
|
9
|
+
parentId: z.ZodNullable<z.ZodString>;
|
|
10
|
+
projectName: z.ZodOptional<z.ZodString>;
|
|
11
|
+
reviewTitle: z.ZodOptional<z.ZodString>;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
projectId: string;
|
|
14
|
+
parentId: string | null;
|
|
15
|
+
reviewId: string;
|
|
16
|
+
filePath: string | null;
|
|
17
|
+
commentId: string;
|
|
18
|
+
projectName?: string | undefined;
|
|
19
|
+
reviewTitle?: string | undefined;
|
|
20
|
+
}, {
|
|
21
|
+
projectId: string;
|
|
22
|
+
parentId: string | null;
|
|
23
|
+
reviewId: string;
|
|
24
|
+
filePath: string | null;
|
|
25
|
+
commentId: string;
|
|
26
|
+
projectName?: string | undefined;
|
|
27
|
+
reviewTitle?: string | undefined;
|
|
28
|
+
}>;
|
|
29
|
+
};
|
|
30
|
+
export type ReviewCommentDeletedEventPayload = z.infer<typeof reviewCommentDeletedEvent.schema>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.reviewCommentDeletedEvent = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.reviewCommentDeletedEvent = {
|
|
6
|
+
name: 'review.comment.deleted',
|
|
7
|
+
schema: zod_1.z.object({
|
|
8
|
+
commentId: zod_1.z.string().uuid(),
|
|
9
|
+
reviewId: zod_1.z.string().uuid(),
|
|
10
|
+
projectId: zod_1.z.string().uuid(),
|
|
11
|
+
filePath: zod_1.z.string().nullable(),
|
|
12
|
+
parentId: zod_1.z.string().uuid().nullable(),
|
|
13
|
+
projectName: zod_1.z.string().min(1).optional(),
|
|
14
|
+
reviewTitle: zod_1.z.string().min(1).optional(),
|
|
15
|
+
}),
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=review.comment.deleted.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"review.comment.deleted.js","sourceRoot":"","sources":["../../../../src/modules/events/catalog/review.comment.deleted.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,yBAAyB,GAAG;IACvC,IAAI,EAAE,wBAAwB;IAC9B,MAAM,EAAE,OAAC,CAAC,MAAM,CAAC;QACf,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;QAC5B,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;QAC3B,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;QAC5B,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC/B,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;QAEtC,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;QACzC,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;KAC1C,CAAC;CACM,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const reviewCommentResolvedEvent: {
|
|
3
|
+
readonly name: "review.comment.resolved";
|
|
4
|
+
readonly schema: z.ZodObject<{
|
|
5
|
+
commentId: z.ZodString;
|
|
6
|
+
reviewId: z.ZodString;
|
|
7
|
+
projectId: z.ZodString;
|
|
8
|
+
status: z.ZodEnum<["resolved", "wont_fix"]>;
|
|
9
|
+
version: z.ZodNumber;
|
|
10
|
+
projectName: z.ZodOptional<z.ZodString>;
|
|
11
|
+
reviewTitle: z.ZodOptional<z.ZodString>;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
status: "resolved" | "wont_fix";
|
|
14
|
+
projectId: string;
|
|
15
|
+
version: number;
|
|
16
|
+
reviewId: string;
|
|
17
|
+
commentId: string;
|
|
18
|
+
projectName?: string | undefined;
|
|
19
|
+
reviewTitle?: string | undefined;
|
|
20
|
+
}, {
|
|
21
|
+
status: "resolved" | "wont_fix";
|
|
22
|
+
projectId: string;
|
|
23
|
+
version: number;
|
|
24
|
+
reviewId: string;
|
|
25
|
+
commentId: string;
|
|
26
|
+
projectName?: string | undefined;
|
|
27
|
+
reviewTitle?: string | undefined;
|
|
28
|
+
}>;
|
|
29
|
+
};
|
|
30
|
+
export type ReviewCommentResolvedEventPayload = z.infer<typeof reviewCommentResolvedEvent.schema>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.reviewCommentResolvedEvent = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.reviewCommentResolvedEvent = {
|
|
6
|
+
name: 'review.comment.resolved',
|
|
7
|
+
schema: zod_1.z.object({
|
|
8
|
+
commentId: zod_1.z.string().uuid(),
|
|
9
|
+
reviewId: zod_1.z.string().uuid(),
|
|
10
|
+
projectId: zod_1.z.string().uuid(),
|
|
11
|
+
status: zod_1.z.enum(['resolved', 'wont_fix']),
|
|
12
|
+
version: zod_1.z.number().int().positive(),
|
|
13
|
+
projectName: zod_1.z.string().min(1).optional(),
|
|
14
|
+
reviewTitle: zod_1.z.string().min(1).optional(),
|
|
15
|
+
}),
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=review.comment.resolved.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"review.comment.resolved.js","sourceRoot":"","sources":["../../../../src/modules/events/catalog/review.comment.resolved.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,0BAA0B,GAAG;IACxC,IAAI,EAAE,yBAAyB;IAC/B,MAAM,EAAE,OAAC,CAAC,MAAM,CAAC;QACf,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;QAC5B,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;QAC3B,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;QAC5B,MAAM,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;QACxC,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;QAEpC,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;QACzC,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;KAC1C,CAAC;CACM,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const reviewCommentUpdatedEvent: {
|
|
3
|
+
readonly name: "review.comment.updated";
|
|
4
|
+
readonly schema: z.ZodObject<{
|
|
5
|
+
commentId: z.ZodString;
|
|
6
|
+
reviewId: z.ZodString;
|
|
7
|
+
projectId: z.ZodString;
|
|
8
|
+
content: z.ZodString;
|
|
9
|
+
previousContent: z.ZodString;
|
|
10
|
+
version: z.ZodNumber;
|
|
11
|
+
editedAt: z.ZodNullable<z.ZodString>;
|
|
12
|
+
filePath: z.ZodNullable<z.ZodString>;
|
|
13
|
+
projectName: z.ZodOptional<z.ZodString>;
|
|
14
|
+
reviewTitle: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
content: string;
|
|
17
|
+
projectId: string;
|
|
18
|
+
version: number;
|
|
19
|
+
editedAt: string | null;
|
|
20
|
+
reviewId: string;
|
|
21
|
+
filePath: string | null;
|
|
22
|
+
commentId: string;
|
|
23
|
+
previousContent: string;
|
|
24
|
+
projectName?: string | undefined;
|
|
25
|
+
reviewTitle?: string | undefined;
|
|
26
|
+
}, {
|
|
27
|
+
content: string;
|
|
28
|
+
projectId: string;
|
|
29
|
+
version: number;
|
|
30
|
+
editedAt: string | null;
|
|
31
|
+
reviewId: string;
|
|
32
|
+
filePath: string | null;
|
|
33
|
+
commentId: string;
|
|
34
|
+
previousContent: string;
|
|
35
|
+
projectName?: string | undefined;
|
|
36
|
+
reviewTitle?: string | undefined;
|
|
37
|
+
}>;
|
|
38
|
+
};
|
|
39
|
+
export type ReviewCommentUpdatedEventPayload = z.infer<typeof reviewCommentUpdatedEvent.schema>;
|