@getforgeai/protocol 0.1.0-beta.1

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 (54) hide show
  1. package/LICENSE +201 -0
  2. package/dist/constants/agent-status.d.ts +2 -0
  3. package/dist/constants/agent-status.js +8 -0
  4. package/dist/constants/cli-status.d.ts +2 -0
  5. package/dist/constants/cli-status.js +6 -0
  6. package/dist/constants/release-status.d.ts +5 -0
  7. package/dist/constants/release-status.js +10 -0
  8. package/dist/constants/task-status.d.ts +16 -0
  9. package/dist/constants/task-status.js +50 -0
  10. package/dist/constants/workflow-scope.d.ts +3 -0
  11. package/dist/constants/workflow-scope.js +7 -0
  12. package/dist/constants/workflow-type.d.ts +3 -0
  13. package/dist/constants/workflow-type.js +2 -0
  14. package/dist/events/index.d.ts +4 -0
  15. package/dist/events/index.js +2 -0
  16. package/dist/events/journal-events.d.ts +29 -0
  17. package/dist/events/journal-events.js +22 -0
  18. package/dist/events/socket-events.d.ts +513 -0
  19. package/dist/events/socket-events.js +3 -0
  20. package/dist/index.d.ts +19 -0
  21. package/dist/index.js +11 -0
  22. package/dist/types/agent.d.ts +12 -0
  23. package/dist/types/agent.js +2 -0
  24. package/dist/types/project.d.ts +2 -0
  25. package/dist/types/project.js +2 -0
  26. package/dist/types/release.d.ts +18 -0
  27. package/dist/types/release.js +2 -0
  28. package/dist/types/task.d.ts +15 -0
  29. package/dist/types/task.js +2 -0
  30. package/dist/types/workflow.d.ts +2 -0
  31. package/dist/types/workflow.js +2 -0
  32. package/dist/validation/cli-api.schema.d.ts +94 -0
  33. package/dist/validation/cli-api.schema.js +73 -0
  34. package/dist/validation/index.d.ts +19 -0
  35. package/dist/validation/index.js +19 -0
  36. package/dist/validation/mcp-tools.schema.d.ts +299 -0
  37. package/dist/validation/mcp-tools.schema.js +248 -0
  38. package/dist/validation/release.schema.d.ts +50 -0
  39. package/dist/validation/release.schema.js +29 -0
  40. package/dist/validation/skill-pull.schema.d.ts +94 -0
  41. package/dist/validation/skill-pull.schema.js +54 -0
  42. package/dist/validation/task-generation.schema.d.ts +63 -0
  43. package/dist/validation/task-generation.schema.js +39 -0
  44. package/dist/validation/task-worktree.schema.d.ts +32 -0
  45. package/dist/validation/task-worktree.schema.js +32 -0
  46. package/dist/validation/workflow-branch.schema.d.ts +26 -0
  47. package/dist/validation/workflow-branch.schema.js +26 -0
  48. package/dist/validation/workflow-dispatch.schema.d.ts +22 -0
  49. package/dist/validation/workflow-dispatch.schema.js +22 -0
  50. package/dist/validation/workflow-merge.schema.d.ts +65 -0
  51. package/dist/validation/workflow-merge.schema.js +61 -0
  52. package/dist/validation/workflow-stream.schema.d.ts +112 -0
  53. package/dist/validation/workflow-stream.schema.js +100 -0
  54. package/package.json +52 -0
@@ -0,0 +1,94 @@
1
+ import { z } from "zod";
2
+ export declare const HeartbeatRequestSchema: z.ZodObject<{
3
+ cliId: z.ZodString;
4
+ agentSlots: z.ZodNumber;
5
+ activeAgents: z.ZodNumber;
6
+ }, z.core.$strip>;
7
+ export type HeartbeatRequest = z.infer<typeof HeartbeatRequestSchema>;
8
+ export declare const HeartbeatResponseSchema: z.ZodObject<{
9
+ status: z.ZodLiteral<"ok">;
10
+ serverTime: z.ZodString;
11
+ }, z.core.$strip>;
12
+ export type HeartbeatResponse = z.infer<typeof HeartbeatResponseSchema>;
13
+ export declare const TaskSubStatusUpdateSchema: z.ZodObject<{
14
+ taskId: z.ZodString;
15
+ kanbanSubStatus: z.ZodString;
16
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
17
+ agentQuestion: z.ZodOptional<z.ZodString>;
18
+ }, z.core.$strip>;
19
+ export type TaskSubStatusUpdate = z.infer<typeof TaskSubStatusUpdateSchema>;
20
+ export declare const TaskDispatchAckSchema: z.ZodObject<{
21
+ taskId: z.ZodString;
22
+ acknowledged: z.ZodLiteral<true>;
23
+ }, z.core.$strip>;
24
+ export type TaskDispatchAck = z.infer<typeof TaskDispatchAckSchema>;
25
+ export declare const TaskPostBodySchema: z.ZodUnion<readonly [z.ZodObject<{
26
+ taskId: z.ZodString;
27
+ kanbanSubStatus: z.ZodString;
28
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
29
+ agentQuestion: z.ZodOptional<z.ZodString>;
30
+ }, z.core.$strip>, z.ZodObject<{
31
+ taskId: z.ZodString;
32
+ acknowledged: z.ZodLiteral<true>;
33
+ }, z.core.$strip>]>;
34
+ export type TaskPostBody = z.infer<typeof TaskPostBodySchema>;
35
+ export declare const TaskItemSchema: z.ZodObject<{
36
+ id: z.ZodString;
37
+ completed: z.ZodBoolean;
38
+ kanbanSubStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
+ }, z.core.$strip>;
40
+ export type TaskItem = z.infer<typeof TaskItemSchema>;
41
+ export declare const TaskResponseSchema: z.ZodObject<{
42
+ tasks: z.ZodArray<z.ZodObject<{
43
+ id: z.ZodString;
44
+ completed: z.ZodBoolean;
45
+ kanbanSubStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
46
+ }, z.core.$strip>>;
47
+ }, z.core.$strip>;
48
+ export type TaskResponse = z.infer<typeof TaskResponseSchema>;
49
+ export declare const SyncEventSchema: z.ZodObject<{
50
+ eventId: z.ZodUUID;
51
+ type: z.ZodString;
52
+ timestamp: z.ZodString;
53
+ cliId: z.ZodOptional<z.ZodString>;
54
+ orgId: z.ZodOptional<z.ZodString>;
55
+ projectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
56
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
57
+ }, z.core.$strip>;
58
+ export type SyncEvent = z.infer<typeof SyncEventSchema>;
59
+ export declare const SyncRequestSchema: z.ZodObject<{
60
+ cliId: z.ZodString;
61
+ projectId: z.ZodOptional<z.ZodString>;
62
+ events: z.ZodArray<z.ZodObject<{
63
+ eventId: z.ZodUUID;
64
+ type: z.ZodString;
65
+ timestamp: z.ZodString;
66
+ cliId: z.ZodOptional<z.ZodString>;
67
+ orgId: z.ZodOptional<z.ZodString>;
68
+ projectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
69
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
70
+ }, z.core.$strip>>;
71
+ cursor: z.ZodOptional<z.ZodString>;
72
+ }, z.core.$strip>;
73
+ export type SyncRequest = z.infer<typeof SyncRequestSchema>;
74
+ export declare const SyncResponseSchema: z.ZodObject<{
75
+ accepted: z.ZodNumber;
76
+ cursor: z.ZodString;
77
+ lastProcessedEventId: z.ZodOptional<z.ZodString>;
78
+ }, z.core.$strip>;
79
+ export type SyncResponse = z.infer<typeof SyncResponseSchema>;
80
+ export declare const TaskResumePayloadSchema: z.ZodObject<{
81
+ orgId: z.ZodString;
82
+ projectId: z.ZodOptional<z.ZodString>;
83
+ timestamp: z.ZodString;
84
+ taskId: z.ZodString;
85
+ response: z.ZodOptional<z.ZodString>;
86
+ reassignedFrom: z.ZodOptional<z.ZodString>;
87
+ skillSlug: z.ZodOptional<z.ZodString>;
88
+ taskSlug: z.ZodOptional<z.ZodString>;
89
+ projectSlug: z.ZodOptional<z.ZodString>;
90
+ taskBranch: z.ZodOptional<z.ZodString>;
91
+ repoUrl: z.ZodOptional<z.ZodString>;
92
+ }, z.core.$strip>;
93
+ export type TaskResumePayload = z.infer<typeof TaskResumePayloadSchema>;
94
+ //# sourceMappingURL=cli-api.schema.d.ts.map
@@ -0,0 +1,73 @@
1
+ import { z } from "zod";
2
+ // --- Heartbeat ---
3
+ export const HeartbeatRequestSchema = z.object({
4
+ cliId: z.string(),
5
+ agentSlots: z.number().int().min(0),
6
+ activeAgents: z.number().int().min(0),
7
+ });
8
+ export const HeartbeatResponseSchema = z.object({
9
+ status: z.literal("ok"),
10
+ serverTime: z.string(),
11
+ });
12
+ // --- Task Sub-Status Update ---
13
+ export const TaskSubStatusUpdateSchema = z.object({
14
+ taskId: z.string(),
15
+ kanbanSubStatus: z.string(),
16
+ metadata: z.record(z.string(), z.unknown()).optional(),
17
+ agentQuestion: z.string().optional(),
18
+ });
19
+ // --- Task Dispatch Acknowledgment ---
20
+ export const TaskDispatchAckSchema = z.object({
21
+ taskId: z.string(),
22
+ acknowledged: z.literal(true),
23
+ });
24
+ // --- Task POST body: union of status update or dispatch ack ---
25
+ export const TaskPostBodySchema = z.union([
26
+ TaskSubStatusUpdateSchema,
27
+ TaskDispatchAckSchema,
28
+ ]);
29
+ // --- Task GET response ---
30
+ export const TaskItemSchema = z.object({
31
+ id: z.string(),
32
+ completed: z.boolean(),
33
+ kanbanSubStatus: z.string().nullable().optional(),
34
+ });
35
+ export const TaskResponseSchema = z.object({
36
+ tasks: z.array(TaskItemSchema),
37
+ });
38
+ // --- Sync ---
39
+ export const SyncEventSchema = z.object({
40
+ eventId: z.uuid(),
41
+ type: z.string(),
42
+ timestamp: z.string(),
43
+ cliId: z.string().optional(),
44
+ orgId: z.string().optional(),
45
+ projectId: z.string().nullable().optional(),
46
+ payload: z.record(z.string(), z.unknown()),
47
+ });
48
+ export const SyncRequestSchema = z.object({
49
+ cliId: z.string(),
50
+ projectId: z.string().optional(),
51
+ events: z.array(SyncEventSchema).min(1),
52
+ cursor: z.string().optional(),
53
+ });
54
+ export const SyncResponseSchema = z.object({
55
+ accepted: z.number().int().min(0),
56
+ cursor: z.string(),
57
+ lastProcessedEventId: z.string().optional(),
58
+ });
59
+ // --- Task Resume (Story 6.4) ---
60
+ export const TaskResumePayloadSchema = z.object({
61
+ orgId: z.string(),
62
+ projectId: z.string().optional(),
63
+ timestamp: z.string(),
64
+ taskId: z.string(),
65
+ response: z.string().optional(),
66
+ reassignedFrom: z.string().optional(),
67
+ skillSlug: z.string().optional(),
68
+ taskSlug: z.string().optional(),
69
+ projectSlug: z.string().optional(),
70
+ taskBranch: z.string().optional(),
71
+ repoUrl: z.string().optional(),
72
+ });
73
+ //# sourceMappingURL=cli-api.schema.js.map
@@ -0,0 +1,19 @@
1
+ export { HeartbeatRequestSchema, HeartbeatResponseSchema, TaskSubStatusUpdateSchema, TaskDispatchAckSchema, TaskPostBodySchema, TaskItemSchema, TaskResponseSchema, SyncEventSchema, SyncRequestSchema, SyncResponseSchema, TaskResumePayloadSchema, } from "./cli-api.schema.js";
2
+ export type { HeartbeatRequest, HeartbeatResponse, TaskSubStatusUpdate, TaskDispatchAck, TaskPostBody, TaskItem, TaskResponse, SyncEvent, SyncRequest, SyncResponse, TaskResumePayload, } from "./cli-api.schema.js";
3
+ export { GeneratedTaskGroupSchema, GeneratedTaskSchema, TaskGenerationResultSchema, TaskGenerationRequestSchema, } from "./task-generation.schema.js";
4
+ export type { GeneratedTaskGroup, GeneratedTask, TaskGenerationResult, TaskGenerationRequest, } from "./task-generation.schema.js";
5
+ export { WorkflowBranchCreateSchema, WorkflowBranchCreatedSchema, WorkflowBranchListRequestSchema, WorkflowBranchListResponseSchema, } from "./workflow-branch.schema.js";
6
+ export type { WorkflowBranchCreate, WorkflowBranchCreated, WorkflowBranchListRequest, WorkflowBranchListResponse, } from "./workflow-branch.schema.js";
7
+ export { TaskWorktreeCreateSchema, TaskWorktreeCreatedSchema, TaskWorktreeCleanupSchema, TaskWorktreeCleanedSchema, } from "./task-worktree.schema.js";
8
+ export type { TaskWorktreeCreate, TaskWorktreeCreated, TaskWorktreeCleanup, TaskWorktreeCleaned, } from "./task-worktree.schema.js";
9
+ export { WORKFLOW_APPLICABILITY_VALUES, WORKFLOW_APPLICABILITY_LABELS, WorkflowApplicabilitySchema, SkillWorkflowStepSchema, SkillWorkflowPipelineColumnSchema, SkillWorkflowSchema, SkillPullResponseSchema, } from "./skill-pull.schema.js";
10
+ export type { WorkflowApplicability, SkillWorkflowStep, SkillWorkflowPipelineColumn, SkillWorkflow, SkillPullResponse, } from "./skill-pull.schema.js";
11
+ export { WorkflowStepDispatchPayloadSchema } from "./workflow-dispatch.schema.js";
12
+ export type { WorkflowStepDispatchPayload as WorkflowStepDispatchPayloadValidated } from "./workflow-dispatch.schema.js";
13
+ export { WorkflowStreamPayloadSchema, WorkflowStreamEndPayloadSchema, WorkflowMessagePayloadSchema, WorkflowAgentIdlePayloadSchema, WorkflowAgentTimeoutPayloadSchema, WorkflowAgentDismissPayloadSchema, WorkflowQuestionOptionSchema, WorkflowQuestionSchema, WorkflowQuestionPayloadSchema, WorkflowToolActivityPayloadSchema, WorkflowTokenUsagePayloadSchema, } from "./workflow-stream.schema.js";
14
+ export type { WorkflowStreamPayloadValidated, WorkflowStreamEndPayloadValidated, WorkflowMessagePayloadValidated, WorkflowAgentIdlePayloadValidated, WorkflowAgentTimeoutPayloadValidated, WorkflowAgentDismissPayloadValidated, WorkflowQuestionPayloadValidated, WorkflowToolActivityPayloadValidated, WorkflowTokenUsagePayloadValidated, } from "./workflow-stream.schema.js";
15
+ export { CreateReleaseSchema, UpdateReleaseStatusSchema, ReleaseMergeProgressSchema, ReleaseReadySchema, ReleaseFinalizedSchema, } from "./release.schema.js";
16
+ export type { CreateRelease, UpdateReleaseStatus, ReleaseMergeProgress, ReleaseReady, ReleaseFinalized, } from "./release.schema.js";
17
+ export { ForgeGetTaskInputSchema, ForgeGetTaskOutputSchema, ForgeUpdateStatusInputSchema, ForgeUpdateStatusOutputSchema, ForgeAskHumanInputSchema, ForgeAskHumanOutputSchema, ForgeRequeueInputSchema, TaskRequeueResponseSchema, TaskAskHumanPayloadSchema, AgentStatusPayloadSchema, AgentStreamPayloadSchema, AgentToolActivityPayloadSchema, ForgeCompleteStepDeliverableSchema, ForgeCompleteStepInputSchema, ForgeCompleteStepPayloadSchema, ForgeCreateTaskGroupInputSchema, ForgeCreateTaskGroupPayloadSchema, ForgeAddGroupDependencyInputSchema, ForgeAddGroupDependencyPayloadSchema, ForgeCreateTaskInputSchema, ForgeCreateTaskPayloadSchema, ForgeAddTaskDependencyInputSchema, ForgeAddTaskDependencyPayloadSchema, ForgeUpdateTaskInputSchema, ForgeUpdateTaskPayloadSchema, ForgeDeleteTaskInputSchema, ForgeDeleteTaskPayloadSchema, ForgeUpdateTaskGroupInputSchema, ForgeUpdateTaskGroupPayloadSchema, ForgeDeleteTaskGroupInputSchema, ForgeDeleteTaskGroupPayloadSchema, ForgeRemoveTaskDependencyInputSchema, ForgeRemoveTaskDependencyPayloadSchema, ForgeRemoveGroupDependencyInputSchema, ForgeRemoveGroupDependencyPayloadSchema, } from "./mcp-tools.schema.js";
18
+ export type { ForgeGetTaskInput, ForgeGetTaskOutput, ForgeUpdateStatusInput, ForgeUpdateStatusOutput, ForgeAskHumanInput, ForgeAskHumanOutput, ForgeRequeueInput, TaskRequeueResponse, TaskAskHumanPayload, AgentStatusPayloadValidated, AgentStreamPayloadValidated, AgentToolActivityPayloadValidated, ForgeCompleteStepDeliverable, ForgeCompleteStepInput, ForgeCompleteStepPayload, ForgeCreateTaskGroupInput, ForgeCreateTaskGroupPayload, ForgeAddGroupDependencyInput, ForgeAddGroupDependencyPayload, ForgeCreateTaskInput, ForgeCreateTaskPayload, ForgeAddTaskDependencyInput, ForgeAddTaskDependencyPayload, ForgeUpdateTaskInput, ForgeUpdateTaskPayload, ForgeDeleteTaskInput, ForgeDeleteTaskPayload, ForgeUpdateTaskGroupInput, ForgeUpdateTaskGroupPayload, ForgeDeleteTaskGroupInput, ForgeDeleteTaskGroupPayload, ForgeRemoveTaskDependencyInput, ForgeRemoveTaskDependencyPayload, ForgeRemoveGroupDependencyInput, ForgeRemoveGroupDependencyPayload, } from "./mcp-tools.schema.js";
19
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,19 @@
1
+ // CLI REST API schemas
2
+ export { HeartbeatRequestSchema, HeartbeatResponseSchema, TaskSubStatusUpdateSchema, TaskDispatchAckSchema, TaskPostBodySchema, TaskItemSchema, TaskResponseSchema, SyncEventSchema, SyncRequestSchema, SyncResponseSchema, TaskResumePayloadSchema, } from "./cli-api.schema.js";
3
+ // Task generation schemas (Story 5.2 + 5b-4 group extension)
4
+ export { GeneratedTaskGroupSchema, GeneratedTaskSchema, TaskGenerationResultSchema, TaskGenerationRequestSchema, } from "./task-generation.schema.js";
5
+ // Workflow branch schemas (Story 5c.1)
6
+ export { WorkflowBranchCreateSchema, WorkflowBranchCreatedSchema, WorkflowBranchListRequestSchema, WorkflowBranchListResponseSchema, } from "./workflow-branch.schema.js";
7
+ // Task worktree schemas (Story 5c.2)
8
+ export { TaskWorktreeCreateSchema, TaskWorktreeCreatedSchema, TaskWorktreeCleanupSchema, TaskWorktreeCleanedSchema, } from "./task-worktree.schema.js";
9
+ // Skill pull schemas (Story 5d.2, updated Story 6b.1)
10
+ export { WORKFLOW_APPLICABILITY_VALUES, WORKFLOW_APPLICABILITY_LABELS, WorkflowApplicabilitySchema, SkillWorkflowStepSchema, SkillWorkflowPipelineColumnSchema, SkillWorkflowSchema, SkillPullResponseSchema, } from "./skill-pull.schema.js";
11
+ // Workflow step dispatch schemas (Story 6b.7)
12
+ export { WorkflowStepDispatchPayloadSchema } from "./workflow-dispatch.schema.js";
13
+ // Workflow stream schemas (Story 6b.8)
14
+ export { WorkflowStreamPayloadSchema, WorkflowStreamEndPayloadSchema, WorkflowMessagePayloadSchema, WorkflowAgentIdlePayloadSchema, WorkflowAgentTimeoutPayloadSchema, WorkflowAgentDismissPayloadSchema, WorkflowQuestionOptionSchema, WorkflowQuestionSchema, WorkflowQuestionPayloadSchema, WorkflowToolActivityPayloadSchema, WorkflowTokenUsagePayloadSchema, } from "./workflow-stream.schema.js";
15
+ // Release schemas
16
+ export { CreateReleaseSchema, UpdateReleaseStatusSchema, ReleaseMergeProgressSchema, ReleaseReadySchema, ReleaseFinalizedSchema, } from "./release.schema.js";
17
+ // MCP tool schemas (Story 6.1 + 6.4b + 6.5)
18
+ export { ForgeGetTaskInputSchema, ForgeGetTaskOutputSchema, ForgeUpdateStatusInputSchema, ForgeUpdateStatusOutputSchema, ForgeAskHumanInputSchema, ForgeAskHumanOutputSchema, ForgeRequeueInputSchema, TaskRequeueResponseSchema, TaskAskHumanPayloadSchema, AgentStatusPayloadSchema, AgentStreamPayloadSchema, AgentToolActivityPayloadSchema, ForgeCompleteStepDeliverableSchema, ForgeCompleteStepInputSchema, ForgeCompleteStepPayloadSchema, ForgeCreateTaskGroupInputSchema, ForgeCreateTaskGroupPayloadSchema, ForgeAddGroupDependencyInputSchema, ForgeAddGroupDependencyPayloadSchema, ForgeCreateTaskInputSchema, ForgeCreateTaskPayloadSchema, ForgeAddTaskDependencyInputSchema, ForgeAddTaskDependencyPayloadSchema, ForgeUpdateTaskInputSchema, ForgeUpdateTaskPayloadSchema, ForgeDeleteTaskInputSchema, ForgeDeleteTaskPayloadSchema, ForgeUpdateTaskGroupInputSchema, ForgeUpdateTaskGroupPayloadSchema, ForgeDeleteTaskGroupInputSchema, ForgeDeleteTaskGroupPayloadSchema, ForgeRemoveTaskDependencyInputSchema, ForgeRemoveTaskDependencyPayloadSchema, ForgeRemoveGroupDependencyInputSchema, ForgeRemoveGroupDependencyPayloadSchema, } from "./mcp-tools.schema.js";
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,299 @@
1
+ import { z } from "zod";
2
+ export declare const ForgeGetTaskInputSchema: z.ZodObject<{
3
+ taskId: z.ZodString;
4
+ }, z.core.$strip>;
5
+ export type ForgeGetTaskInput = z.infer<typeof ForgeGetTaskInputSchema>;
6
+ export declare const ForgeGetTaskOutputSchema: z.ZodObject<{
7
+ id: z.ZodString;
8
+ title: z.ZodString;
9
+ description: z.ZodString;
10
+ completed: z.ZodBoolean;
11
+ kanbanSubStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ acceptanceCriteria: z.ZodOptional<z.ZodString>;
13
+ checkpoints: z.ZodOptional<z.ZodArray<z.ZodString>>;
14
+ handoffContext: z.ZodOptional<z.ZodString>;
15
+ assigneeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ cliDeviceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ }, z.core.$strip>;
18
+ export type ForgeGetTaskOutput = z.infer<typeof ForgeGetTaskOutputSchema>;
19
+ export declare const ForgeUpdateStatusInputSchema: z.ZodObject<{
20
+ taskId: z.ZodString;
21
+ kanbanSubStatus: z.ZodEnum<{
22
+ DONE: "DONE";
23
+ WAITING: "WAITING";
24
+ ACTIVE: "ACTIVE";
25
+ AWAITING_HUMAN: "AWAITING_HUMAN";
26
+ PENDING_CORRECTION: "PENDING_CORRECTION";
27
+ }>;
28
+ }, z.core.$strip>;
29
+ export type ForgeUpdateStatusInput = z.infer<typeof ForgeUpdateStatusInputSchema>;
30
+ export declare const ForgeUpdateStatusOutputSchema: z.ZodObject<{
31
+ taskId: z.ZodString;
32
+ previousStatus: z.ZodString;
33
+ newStatus: z.ZodString;
34
+ success: z.ZodBoolean;
35
+ }, z.core.$strip>;
36
+ export type ForgeUpdateStatusOutput = z.infer<typeof ForgeUpdateStatusOutputSchema>;
37
+ export declare const ForgeAskHumanInputSchema: z.ZodObject<{
38
+ taskId: z.ZodString;
39
+ question: z.ZodString;
40
+ context: z.ZodOptional<z.ZodString>;
41
+ }, z.core.$strip>;
42
+ export type ForgeAskHumanInput = z.infer<typeof ForgeAskHumanInputSchema>;
43
+ export declare const ForgeAskHumanOutputSchema: z.ZodObject<{
44
+ taskId: z.ZodString;
45
+ status: z.ZodLiteral<"waiting">;
46
+ message: z.ZodString;
47
+ }, z.core.$strip>;
48
+ export type ForgeAskHumanOutput = z.infer<typeof ForgeAskHumanOutputSchema>;
49
+ export declare const ForgeRequeueInputSchema: z.ZodObject<{
50
+ taskId: z.ZodString;
51
+ reason: z.ZodOptional<z.ZodString>;
52
+ }, z.core.$strip>;
53
+ export type ForgeRequeueInput = z.infer<typeof ForgeRequeueInputSchema>;
54
+ export declare const TaskRequeueResponseSchema: z.ZodObject<{
55
+ allowed: z.ZodBoolean;
56
+ count: z.ZodNumber;
57
+ max: z.ZodNumber;
58
+ reason: z.ZodOptional<z.ZodString>;
59
+ }, z.core.$strip>;
60
+ export type TaskRequeueResponse = z.infer<typeof TaskRequeueResponseSchema>;
61
+ export declare const ForgeCompleteStepDeliverableSchema: z.ZodObject<{
62
+ filePath: z.ZodString;
63
+ label: z.ZodString;
64
+ content: z.ZodOptional<z.ZodString>;
65
+ }, z.core.$strip>;
66
+ export type ForgeCompleteStepDeliverable = z.infer<typeof ForgeCompleteStepDeliverableSchema>;
67
+ export declare const ForgeCompleteStepInputSchema: z.ZodObject<{
68
+ deliverables: z.ZodArray<z.ZodObject<{
69
+ filePath: z.ZodString;
70
+ label: z.ZodString;
71
+ content: z.ZodOptional<z.ZodString>;
72
+ }, z.core.$strip>>;
73
+ }, z.core.$strip>;
74
+ export type ForgeCompleteStepInput = z.infer<typeof ForgeCompleteStepInputSchema>;
75
+ export declare const ForgeCompleteStepPayloadSchema: z.ZodObject<{
76
+ orgId: z.ZodString;
77
+ projectId: z.ZodString;
78
+ workflowId: z.ZodString;
79
+ stepId: z.ZodString;
80
+ deliverables: z.ZodArray<z.ZodObject<{
81
+ filePath: z.ZodString;
82
+ label: z.ZodString;
83
+ content: z.ZodOptional<z.ZodString>;
84
+ }, z.core.$strip>>;
85
+ timestamp: z.ZodString;
86
+ }, z.core.$strip>;
87
+ export type ForgeCompleteStepPayload = z.infer<typeof ForgeCompleteStepPayloadSchema>;
88
+ export declare const AgentStatusPayloadSchema: z.ZodObject<{
89
+ agentId: z.ZodString;
90
+ status: z.ZodEnum<{
91
+ RUNNING: "RUNNING";
92
+ COMPLETED: "COMPLETED";
93
+ ERROR: "ERROR";
94
+ QUEUED: "QUEUED";
95
+ }>;
96
+ orgId: z.ZodString;
97
+ projectId: z.ZodOptional<z.ZodString>;
98
+ timestamp: z.ZodString;
99
+ }, z.core.$strip>;
100
+ export type AgentStatusPayloadValidated = z.infer<typeof AgentStatusPayloadSchema>;
101
+ export declare const AgentStreamPayloadSchema: z.ZodObject<{
102
+ agentId: z.ZodString;
103
+ chunk: z.ZodString;
104
+ turnIndex: z.ZodOptional<z.ZodNumber>;
105
+ orgId: z.ZodString;
106
+ projectId: z.ZodOptional<z.ZodString>;
107
+ timestamp: z.ZodString;
108
+ }, z.core.$strip>;
109
+ export declare const AgentToolActivityPayloadSchema: z.ZodObject<{
110
+ agentId: z.ZodString;
111
+ toolName: z.ZodString;
112
+ toolDetail: z.ZodString;
113
+ toolUseId: z.ZodOptional<z.ZodString>;
114
+ parentToolUseId: z.ZodOptional<z.ZodString>;
115
+ orgId: z.ZodString;
116
+ projectId: z.ZodString;
117
+ timestamp: z.ZodString;
118
+ }, z.core.$strip>;
119
+ export type AgentToolActivityPayloadValidated = z.infer<typeof AgentToolActivityPayloadSchema>;
120
+ export type AgentStreamPayloadValidated = z.infer<typeof AgentStreamPayloadSchema>;
121
+ export declare const TaskAskHumanPayloadSchema: z.ZodObject<{
122
+ orgId: z.ZodString;
123
+ projectId: z.ZodOptional<z.ZodString>;
124
+ timestamp: z.ZodString;
125
+ taskId: z.ZodString;
126
+ question: z.ZodString;
127
+ agentId: z.ZodOptional<z.ZodString>;
128
+ context: z.ZodOptional<z.ZodString>;
129
+ }, z.core.$strip>;
130
+ export type TaskAskHumanPayload = z.infer<typeof TaskAskHumanPayloadSchema>;
131
+ export declare const ForgeCreateTaskGroupInputSchema: z.ZodObject<{
132
+ name: z.ZodString;
133
+ description: z.ZodOptional<z.ZodString>;
134
+ order: z.ZodOptional<z.ZodNumber>;
135
+ }, z.core.$strip>;
136
+ export type ForgeCreateTaskGroupInput = z.infer<typeof ForgeCreateTaskGroupInputSchema>;
137
+ export declare const ForgeCreateTaskGroupPayloadSchema: z.ZodObject<{
138
+ orgId: z.ZodString;
139
+ projectId: z.ZodString;
140
+ workflowId: z.ZodOptional<z.ZodString>;
141
+ name: z.ZodString;
142
+ description: z.ZodOptional<z.ZodString>;
143
+ order: z.ZodOptional<z.ZodNumber>;
144
+ timestamp: z.ZodString;
145
+ }, z.core.$strip>;
146
+ export type ForgeCreateTaskGroupPayload = z.infer<typeof ForgeCreateTaskGroupPayloadSchema>;
147
+ export declare const ForgeAddGroupDependencyInputSchema: z.ZodObject<{
148
+ blockingGroupName: z.ZodString;
149
+ blockedGroupName: z.ZodString;
150
+ }, z.core.$strip>;
151
+ export type ForgeAddGroupDependencyInput = z.infer<typeof ForgeAddGroupDependencyInputSchema>;
152
+ export declare const ForgeAddGroupDependencyPayloadSchema: z.ZodObject<{
153
+ orgId: z.ZodString;
154
+ projectId: z.ZodString;
155
+ workflowId: z.ZodOptional<z.ZodString>;
156
+ blockingGroupName: z.ZodString;
157
+ blockedGroupName: z.ZodString;
158
+ timestamp: z.ZodString;
159
+ }, z.core.$strip>;
160
+ export type ForgeAddGroupDependencyPayload = z.infer<typeof ForgeAddGroupDependencyPayloadSchema>;
161
+ export declare const ForgeCreateTaskInputSchema: z.ZodObject<{
162
+ title: z.ZodString;
163
+ description: z.ZodString;
164
+ priority: z.ZodEnum<{
165
+ LOW: "LOW";
166
+ MEDIUM: "MEDIUM";
167
+ HIGH: "HIGH";
168
+ CRITICAL: "CRITICAL";
169
+ }>;
170
+ storyPoints: z.ZodNumber;
171
+ groupName: z.ZodOptional<z.ZodString>;
172
+ order: z.ZodOptional<z.ZodNumber>;
173
+ }, z.core.$strip>;
174
+ export type ForgeCreateTaskInput = z.infer<typeof ForgeCreateTaskInputSchema>;
175
+ export declare const ForgeCreateTaskPayloadSchema: z.ZodObject<{
176
+ orgId: z.ZodString;
177
+ projectId: z.ZodString;
178
+ workflowId: z.ZodOptional<z.ZodString>;
179
+ title: z.ZodString;
180
+ description: z.ZodString;
181
+ priority: z.ZodEnum<{
182
+ LOW: "LOW";
183
+ MEDIUM: "MEDIUM";
184
+ HIGH: "HIGH";
185
+ CRITICAL: "CRITICAL";
186
+ }>;
187
+ storyPoints: z.ZodNumber;
188
+ groupName: z.ZodOptional<z.ZodString>;
189
+ order: z.ZodOptional<z.ZodNumber>;
190
+ timestamp: z.ZodString;
191
+ }, z.core.$strip>;
192
+ export type ForgeCreateTaskPayload = z.infer<typeof ForgeCreateTaskPayloadSchema>;
193
+ export declare const ForgeAddTaskDependencyInputSchema: z.ZodObject<{
194
+ blockingTaskTitle: z.ZodString;
195
+ blockedTaskTitle: z.ZodString;
196
+ }, z.core.$strip>;
197
+ export type ForgeAddTaskDependencyInput = z.infer<typeof ForgeAddTaskDependencyInputSchema>;
198
+ export declare const ForgeAddTaskDependencyPayloadSchema: z.ZodObject<{
199
+ orgId: z.ZodString;
200
+ projectId: z.ZodString;
201
+ workflowId: z.ZodOptional<z.ZodString>;
202
+ blockingTaskTitle: z.ZodString;
203
+ blockedTaskTitle: z.ZodString;
204
+ timestamp: z.ZodString;
205
+ }, z.core.$strip>;
206
+ export type ForgeAddTaskDependencyPayload = z.infer<typeof ForgeAddTaskDependencyPayloadSchema>;
207
+ export declare const ForgeUpdateTaskInputSchema: z.ZodObject<{
208
+ name: z.ZodString;
209
+ title: z.ZodOptional<z.ZodString>;
210
+ description: z.ZodOptional<z.ZodString>;
211
+ priority: z.ZodOptional<z.ZodEnum<{
212
+ LOW: "LOW";
213
+ MEDIUM: "MEDIUM";
214
+ HIGH: "HIGH";
215
+ CRITICAL: "CRITICAL";
216
+ }>>;
217
+ storyPoints: z.ZodOptional<z.ZodNumber>;
218
+ }, z.core.$strip>;
219
+ export type ForgeUpdateTaskInput = z.infer<typeof ForgeUpdateTaskInputSchema>;
220
+ export declare const ForgeUpdateTaskPayloadSchema: z.ZodObject<{
221
+ orgId: z.ZodString;
222
+ projectId: z.ZodString;
223
+ name: z.ZodString;
224
+ title: z.ZodOptional<z.ZodString>;
225
+ description: z.ZodOptional<z.ZodString>;
226
+ priority: z.ZodOptional<z.ZodEnum<{
227
+ LOW: "LOW";
228
+ MEDIUM: "MEDIUM";
229
+ HIGH: "HIGH";
230
+ CRITICAL: "CRITICAL";
231
+ }>>;
232
+ storyPoints: z.ZodOptional<z.ZodNumber>;
233
+ timestamp: z.ZodString;
234
+ }, z.core.$strip>;
235
+ export type ForgeUpdateTaskPayload = z.infer<typeof ForgeUpdateTaskPayloadSchema>;
236
+ export declare const ForgeDeleteTaskInputSchema: z.ZodObject<{
237
+ name: z.ZodString;
238
+ }, z.core.$strip>;
239
+ export type ForgeDeleteTaskInput = z.infer<typeof ForgeDeleteTaskInputSchema>;
240
+ export declare const ForgeDeleteTaskPayloadSchema: z.ZodObject<{
241
+ orgId: z.ZodString;
242
+ projectId: z.ZodString;
243
+ name: z.ZodString;
244
+ timestamp: z.ZodString;
245
+ }, z.core.$strip>;
246
+ export type ForgeDeleteTaskPayload = z.infer<typeof ForgeDeleteTaskPayloadSchema>;
247
+ export declare const ForgeUpdateTaskGroupInputSchema: z.ZodObject<{
248
+ name: z.ZodString;
249
+ newName: z.ZodOptional<z.ZodString>;
250
+ description: z.ZodOptional<z.ZodString>;
251
+ }, z.core.$strip>;
252
+ export type ForgeUpdateTaskGroupInput = z.infer<typeof ForgeUpdateTaskGroupInputSchema>;
253
+ export declare const ForgeUpdateTaskGroupPayloadSchema: z.ZodObject<{
254
+ orgId: z.ZodString;
255
+ projectId: z.ZodString;
256
+ name: z.ZodString;
257
+ newName: z.ZodOptional<z.ZodString>;
258
+ description: z.ZodOptional<z.ZodString>;
259
+ timestamp: z.ZodString;
260
+ }, z.core.$strip>;
261
+ export type ForgeUpdateTaskGroupPayload = z.infer<typeof ForgeUpdateTaskGroupPayloadSchema>;
262
+ export declare const ForgeDeleteTaskGroupInputSchema: z.ZodObject<{
263
+ name: z.ZodString;
264
+ }, z.core.$strip>;
265
+ export type ForgeDeleteTaskGroupInput = z.infer<typeof ForgeDeleteTaskGroupInputSchema>;
266
+ export declare const ForgeDeleteTaskGroupPayloadSchema: z.ZodObject<{
267
+ orgId: z.ZodString;
268
+ projectId: z.ZodString;
269
+ name: z.ZodString;
270
+ timestamp: z.ZodString;
271
+ }, z.core.$strip>;
272
+ export type ForgeDeleteTaskGroupPayload = z.infer<typeof ForgeDeleteTaskGroupPayloadSchema>;
273
+ export declare const ForgeRemoveTaskDependencyInputSchema: z.ZodObject<{
274
+ taskName: z.ZodString;
275
+ dependsOnTaskName: z.ZodString;
276
+ }, z.core.$strip>;
277
+ export type ForgeRemoveTaskDependencyInput = z.infer<typeof ForgeRemoveTaskDependencyInputSchema>;
278
+ export declare const ForgeRemoveTaskDependencyPayloadSchema: z.ZodObject<{
279
+ orgId: z.ZodString;
280
+ projectId: z.ZodString;
281
+ taskName: z.ZodString;
282
+ dependsOnTaskName: z.ZodString;
283
+ timestamp: z.ZodString;
284
+ }, z.core.$strip>;
285
+ export type ForgeRemoveTaskDependencyPayload = z.infer<typeof ForgeRemoveTaskDependencyPayloadSchema>;
286
+ export declare const ForgeRemoveGroupDependencyInputSchema: z.ZodObject<{
287
+ groupName: z.ZodString;
288
+ dependsOnGroupName: z.ZodString;
289
+ }, z.core.$strip>;
290
+ export type ForgeRemoveGroupDependencyInput = z.infer<typeof ForgeRemoveGroupDependencyInputSchema>;
291
+ export declare const ForgeRemoveGroupDependencyPayloadSchema: z.ZodObject<{
292
+ orgId: z.ZodString;
293
+ projectId: z.ZodString;
294
+ groupName: z.ZodString;
295
+ dependsOnGroupName: z.ZodString;
296
+ timestamp: z.ZodString;
297
+ }, z.core.$strip>;
298
+ export type ForgeRemoveGroupDependencyPayload = z.infer<typeof ForgeRemoveGroupDependencyPayloadSchema>;
299
+ //# sourceMappingURL=mcp-tools.schema.d.ts.map