@concord-ai/concord-mcp 0.5.0 → 0.6.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.
- package/README.md +148 -61
- package/dist/artifacts/handoff-md.js +5 -1
- package/dist/artifacts/handoff-md.js.map +1 -1
- package/dist/artifacts/work-state-json.js +4 -0
- package/dist/artifacts/work-state-json.js.map +1 -1
- package/dist/artifacts/work-state-view.d.ts +12 -0
- package/dist/artifacts/work-state-view.js +26 -2
- package/dist/artifacts/work-state-view.js.map +1 -1
- package/dist/cli/commands/check.js +2 -1
- package/dist/cli/commands/check.js.map +1 -1
- package/dist/cli/commands/doctor.js +42 -4
- package/dist/cli/commands/doctor.js.map +1 -1
- package/dist/cli/commands/hook.d.ts +3 -3
- package/dist/cli/commands/hook.js +4 -4
- package/dist/cli/commands/hook.js.map +1 -1
- package/dist/cli/commands/setup.d.ts +21 -0
- package/dist/cli/commands/setup.js +117 -0
- package/dist/cli/commands/setup.js.map +1 -0
- package/dist/cli/commands/status.js +5 -1
- package/dist/cli/commands/status.js.map +1 -1
- package/dist/cli/commands/tasks.js +8 -4
- package/dist/cli/commands/tasks.js.map +1 -1
- package/dist/cli/commands/who.js +7 -2
- package/dist/cli/commands/who.js.map +1 -1
- package/dist/cli/context.d.ts +3 -2
- package/dist/cli/context.js +5 -4
- package/dist/cli/context.js.map +1 -1
- package/dist/cli/dashboard/app.js +2 -2
- package/dist/cli/dashboard/app.js.map +1 -1
- package/dist/cli/index.js +18 -7
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/workspace-options.d.ts +21 -0
- package/dist/cli/workspace-options.js +36 -0
- package/dist/cli/workspace-options.js.map +1 -0
- package/dist/config/paths.d.ts +17 -3
- package/dist/config/paths.js +80 -10
- package/dist/config/paths.js.map +1 -1
- package/dist/db/index.d.ts +10 -1
- package/dist/db/index.js +6 -0
- package/dist/db/index.js.map +1 -1
- package/dist/db/repositories/agent-endpoints.d.ts +22 -0
- package/dist/db/repositories/agent-endpoints.js +87 -0
- package/dist/db/repositories/agent-endpoints.js.map +1 -0
- package/dist/db/repositories/agent-messages.d.ts +25 -0
- package/dist/db/repositories/agent-messages.js +151 -0
- package/dist/db/repositories/agent-messages.js.map +1 -0
- package/dist/db/repositories/handoffs.d.ts +9 -1
- package/dist/db/repositories/handoffs.js +38 -3
- package/dist/db/repositories/handoffs.js.map +1 -1
- package/dist/db/repositories/ownership-events.d.ts +19 -0
- package/dist/db/repositories/ownership-events.js +43 -0
- package/dist/db/repositories/ownership-events.js.map +1 -0
- package/dist/db/repositories/tasks.d.ts +12 -0
- package/dist/db/repositories/tasks.js +33 -5
- package/dist/db/repositories/tasks.js.map +1 -1
- package/dist/db/rows.d.ts +84 -3
- package/dist/db/rows.js +191 -2
- package/dist/db/rows.js.map +1 -1
- package/dist/db/schema.js +100 -0
- package/dist/db/schema.js.map +1 -1
- package/dist/domain/adoption.d.ts +3 -3
- package/dist/domain/adoption.js +2 -2
- package/dist/domain/adoption.js.map +1 -1
- package/dist/domain/operations.d.ts +42 -0
- package/dist/domain/operations.js +2 -0
- package/dist/domain/operations.js.map +1 -0
- package/dist/domain/presence.js +1 -1
- package/dist/domain/presence.js.map +1 -1
- package/dist/domain/schemas.d.ts +42 -251
- package/dist/domain/schemas.js +128 -98
- package/dist/domain/schemas.js.map +1 -1
- package/dist/index.js +12 -8
- package/dist/index.js.map +1 -1
- package/dist/install/agent-communications.d.ts +28 -0
- package/dist/install/agent-communications.js +61 -0
- package/dist/install/agent-communications.js.map +1 -0
- package/dist/install/codex-config.d.ts +21 -0
- package/dist/install/codex-config.js +68 -0
- package/dist/install/codex-config.js.map +1 -0
- package/dist/install/instructions.d.ts +6 -2
- package/dist/install/instructions.js +28 -34
- package/dist/install/instructions.js.map +1 -1
- package/dist/install/mcp-config.d.ts +24 -0
- package/dist/install/mcp-config.js +66 -0
- package/dist/install/mcp-config.js.map +1 -0
- package/dist/relay/adapters.d.ts +33 -0
- package/dist/relay/adapters.js +70 -0
- package/dist/relay/adapters.js.map +1 -0
- package/dist/relay/index.d.ts +4 -0
- package/dist/relay/index.js +5 -0
- package/dist/relay/index.js.map +1 -0
- package/dist/relay/protocol.d.ts +64 -0
- package/dist/relay/protocol.js +38 -0
- package/dist/relay/protocol.js.map +1 -0
- package/dist/relay/server.d.ts +40 -0
- package/dist/relay/server.js +196 -0
- package/dist/relay/server.js.map +1 -0
- package/dist/relay/socket-dispatcher.d.ts +9 -0
- package/dist/relay/socket-dispatcher.js +74 -0
- package/dist/relay/socket-dispatcher.js.map +1 -0
- package/dist/server.d.ts +9 -3
- package/dist/server.js +12 -15
- package/dist/server.js.map +1 -1
- package/dist/tools/agent-messages.d.ts +45 -0
- package/dist/tools/agent-messages.js +158 -0
- package/dist/tools/agent-messages.js.map +1 -0
- package/dist/tools/claim-work.d.ts +1 -19
- package/dist/tools/claim-work.js +8 -63
- package/dist/tools/claim-work.js.map +1 -1
- package/dist/tools/get-task-context.d.ts +5 -4
- package/dist/tools/get-task-context.js +4 -51
- package/dist/tools/get-task-context.js.map +1 -1
- package/dist/tools/get-work-state.d.ts +5 -6
- package/dist/tools/get-work-state.js +18 -36
- package/dist/tools/get-work-state.js.map +1 -1
- package/dist/tools/handoff-lifecycle.d.ts +10 -0
- package/dist/tools/handoff-lifecycle.js +151 -0
- package/dist/tools/handoff-lifecycle.js.map +1 -0
- package/dist/tools/handoff.d.ts +5 -9
- package/dist/tools/handoff.js +56 -93
- package/dist/tools/handoff.js.map +1 -1
- package/dist/tools/register-agent.d.ts +1 -4
- package/dist/tools/register-agent.js +0 -52
- package/dist/tools/register-agent.js.map +1 -1
- package/dist/tools/review-ready.d.ts +2 -4
- package/dist/tools/review-ready.js +36 -45
- package/dist/tools/review-ready.js.map +1 -1
- package/dist/tools/task-lifecycle.d.ts +12 -0
- package/dist/tools/task-lifecycle.js +200 -0
- package/dist/tools/task-lifecycle.js.map +1 -0
- package/dist/tools/update-task.d.ts +1 -4
- package/dist/tools/update-task.js +14 -29
- package/dist/tools/update-task.js.map +1 -1
- package/dist/tools/workflow.d.ts +47 -0
- package/dist/tools/workflow.js +566 -0
- package/dist/tools/workflow.js.map +1 -0
- package/dist/tools/workspace-routing.d.ts +8 -0
- package/dist/tools/workspace-routing.js +15 -0
- package/dist/tools/workspace-routing.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/workspaces/manager.d.ts +43 -0
- package/dist/workspaces/manager.js +124 -0
- package/dist/workspaces/manager.js.map +1 -0
- package/package.json +9 -3
- package/dist/cli/commands/init.d.ts +0 -6
- package/dist/cli/commands/init.js +0 -33
- package/dist/cli/commands/init.js.map +0 -1
- package/dist/cli/commands/install.d.ts +0 -2
- package/dist/cli/commands/install.js +0 -24
- package/dist/cli/commands/install.js.map +0 -1
package/dist/db/schema.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/db/schema.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,MAAM,UAAU,GAAsB;IAC3C,iDAAiD;IACjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CC;IACD,iDAAiD;IACjD;;;;;;;;;;;;;;;GAeC;IACD,6EAA6E;IAC7E,wDAAwD;IACxD;;GAEC;IACD,uEAAuE;IACvE;;;;;;;;;;;GAWC;IACD,yEAAyE;IACzE,4EAA4E;IAC5E,8EAA8E;IAC9E;;;;;;;;;;;;;;;;;GAiBC;IACD,yEAAyE;IACzE,4EAA4E;IAC5E,kEAAkE;IAClE;;GAEC;CACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/db/schema.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,MAAM,UAAU,GAAsB;IAC3C,iDAAiD;IACjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CC;IACD,iDAAiD;IACjD;;;;;;;;;;;;;;;GAeC;IACD,6EAA6E;IAC7E,wDAAwD;IACxD;;GAEC;IACD,uEAAuE;IACvE;;;;;;;;;;;GAWC;IACD,yEAAyE;IACzE,4EAA4E;IAC5E,8EAA8E;IAC9E;;;;;;;;;;;;;;;;;GAiBC;IACD,yEAAyE;IACzE,4EAA4E;IAC5E,kEAAkE;IAClE;;GAEC;IACD,yEAAyE;IACzE,8EAA8E;IAC9E,iEAAiE;IACjE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCC;IACD,qEAAqE;IACrE,0EAA0E;IAC1E,0EAA0E;IAC1E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DC;CACF,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { EventRecord } from '../db/index.js';
|
|
2
|
-
/** Which
|
|
2
|
+
/** Which required workflow stages are present in the compatible event history. */
|
|
3
3
|
export interface TaskAdoption {
|
|
4
4
|
taskId: string;
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
startWork: boolean;
|
|
6
|
+
finishWork: boolean;
|
|
7
7
|
reviewReady: boolean;
|
|
8
8
|
}
|
|
9
9
|
/**
|
package/dist/domain/adoption.js
CHANGED
|
@@ -14,8 +14,8 @@ export function buildAdoption(events) {
|
|
|
14
14
|
}
|
|
15
15
|
return [...byTask.entries()].map(([taskId, tools]) => ({
|
|
16
16
|
taskId,
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
startWork: tools.has('claim_work'),
|
|
18
|
+
finishWork: tools.has('handoff'),
|
|
19
19
|
reviewReady: tools.has('review_ready'),
|
|
20
20
|
}));
|
|
21
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adoption.js","sourceRoot":"","sources":["../../src/domain/adoption.ts"],"names":[],"mappings":"AAUA;;;GAGG;AACH,MAAM,UAAU,aAAa,CAAC,MAA8B;IAC1D,MAAM,MAA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AC,CAAC,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC;QACrD,MAAM;QACN,SAAS,EAAE,KAAK,CAAC,GAAG,CAAC,YAAY,CAAC;QAClC,UAAU,EAAE,KAAK,CAAC,GAAG,CAAC,SAAS,CAAC;QAChC,WAAW,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC;KACvC,CAAC,CAAC,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { AgentStatus } from '../db/index.js';
|
|
2
|
+
import type { FinishWorkInput, InspectWorkInput, StartWorkInput, TransferWorkInput, UpdateWorkInput } from './schemas.js';
|
|
3
|
+
type Require<T, Keys extends keyof T> = Omit<T, Keys> & {
|
|
4
|
+
[Key in Keys]-?: NonNullable<T[Key]>;
|
|
5
|
+
};
|
|
6
|
+
export type RegisterAgentInput = Pick<StartWorkInput, 'agent_id' | 'kind' | 'owner' | 'model' | 'summary' | 'branch' | 'worktree' | 'cwd' | 'pid'> & {
|
|
7
|
+
status?: AgentStatus | undefined;
|
|
8
|
+
};
|
|
9
|
+
export type ClaimWorkInput = Pick<StartWorkInput, 'task_id' | 'title' | 'owner' | 'agent_id' | 'branch' | 'worktree' | 'parent_task_id' | 'expected_files' | 'modules' | 'domains' | 'risk_tags' | 'notes'> & {
|
|
10
|
+
agent?: string | undefined;
|
|
11
|
+
};
|
|
12
|
+
export interface GetTaskContextInput {
|
|
13
|
+
task_id: NonNullable<InspectWorkInput['task_id']>;
|
|
14
|
+
}
|
|
15
|
+
export type UpdateTaskInput = Require<Pick<UpdateWorkInput, 'task_id' | 'kind' | 'content' | 'agent_id'>, 'task_id' | 'kind'> & {
|
|
16
|
+
agent?: string | undefined;
|
|
17
|
+
};
|
|
18
|
+
type FinishEvidenceInput = Pick<FinishWorkInput, 'task_id' | 'what_changed' | 'changed_files' | 'tests_run' | 'known_risks' | 'assumptions' | 'decisions' | 'guardrails_checked' | 'needs_review_from' | 'next_steps' | 'diff_size' | 'open_questions' | 'provenance'>;
|
|
19
|
+
export type HandoffInput = FinishEvidenceInput & {
|
|
20
|
+
status: string;
|
|
21
|
+
ready_for_review?: boolean | undefined;
|
|
22
|
+
agent_id?: string | undefined;
|
|
23
|
+
expected_version?: number | undefined;
|
|
24
|
+
};
|
|
25
|
+
export type ReviewReadyInput = Pick<FinishWorkInput, 'task_id' | 'tests_run' | 'diff_size' | 'guardrails_checked' | 'assumptions' | 'open_questions' | 'provenance'> & {
|
|
26
|
+
plan_summary: string;
|
|
27
|
+
expected_version?: number | undefined;
|
|
28
|
+
};
|
|
29
|
+
type TransferActorInput = Pick<TransferWorkInput, 'task_id' | 'agent_id' | 'expected_version'>;
|
|
30
|
+
export type AssignTaskInput = Require<TransferActorInput & Pick<TransferWorkInput, 'to_agent_id' | 'lease_seconds' | 'reason'>, 'to_agent_id'>;
|
|
31
|
+
export type AcceptTaskInput = TransferActorInput;
|
|
32
|
+
export type ReleaseTaskInput = TransferActorInput & Pick<TransferWorkInput, 'reason'>;
|
|
33
|
+
export type ReassignTaskInput = Require<TransferActorInput & Pick<TransferWorkInput, 'to_agent_id' | 'lease_seconds' | 'reason' | 'force'>, 'to_agent_id' | 'reason'>;
|
|
34
|
+
export type CloseTaskInput = TransferActorInput & {
|
|
35
|
+
reason: string;
|
|
36
|
+
outcome?: Extract<FinishWorkInput['outcome'], 'complete' | 'closed'>;
|
|
37
|
+
};
|
|
38
|
+
export type ReopenTaskInput = Require<TransferActorInput & Pick<TransferWorkInput, 'reason'>, 'reason'>;
|
|
39
|
+
export type OfferHandoffInput = Require<TransferActorInput & Pick<TransferWorkInput, 'to_agent_id' | 'what_changed' | 'changed_files' | 'tests_run' | 'known_risks' | 'assumptions' | 'decisions' | 'guardrails_checked' | 'next_steps' | 'expires_seconds'>, 'to_agent_id' | 'what_changed'>;
|
|
40
|
+
export type AcceptHandoffInput = Require<TransferActorInput & Pick<TransferWorkInput, 'handoff_id'>, 'handoff_id'>;
|
|
41
|
+
export type DeclineHandoffInput = Require<AcceptHandoffInput & Pick<TransferWorkInput, 'reason'>, 'reason'>;
|
|
42
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../src/domain/operations.ts"],"names":[],"mappings":""}
|
package/dist/domain/presence.js
CHANGED
|
@@ -38,7 +38,7 @@ export function detectStaleClaims(tasks, agents, now, thresholds = DEFAULT_PRESE
|
|
|
38
38
|
const byId = new Map(agents.map((agent) => [agent.agentId, agent]));
|
|
39
39
|
const stale = [];
|
|
40
40
|
for (const task of tasks) {
|
|
41
|
-
if (
|
|
41
|
+
if (!['active', 'blocked', 'handoff_offered'].includes(task.status) || task.agentId === null) {
|
|
42
42
|
continue;
|
|
43
43
|
}
|
|
44
44
|
const agent = byId.get(task.agentId);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presence.js","sourceRoot":"","sources":["../../src/domain/presence.ts"],"names":[],"mappings":"AAgBA,wDAAwD;AACxD,MAAM,CAAC,MAAM,2BAA2B,GAAuB;IAC7D,WAAW,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI;IAC1B,WAAW,EAAE,EAAE,GAAG,EAAE,GAAG,IAAI;CAC5B,CAAC;AAeF;2DAC2D;AAC3D,MAAM,UAAU,cAAc,CAC5B,QAAgB,EAChB,GAAW,EACX,aAAiC,2BAA2B;IAE5D,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IAClC,IAAI,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC;QACvB,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,MAAM,GAAG,GAAG,GAAG,GAAG,IAAI,CAAC;IACvB,IAAI,GAAG,IAAI,UAAU,CAAC,WAAW,EAAE,CAAC;QAClC,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,IAAI,GAAG,IAAI,UAAU,CAAC,WAAW,EAAE,CAAC;QAClC,OAAO,MA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ACpB,QAAQ,EAAE,cAAc,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,UAAU,CAAC;QACzD,QAAQ,EAAE,KAAK,CAAC,QAAQ;QACxB,UAAU,EAAE,YAAY,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,CAAC;KAC9C,CAAC,CAAC;SACF,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;QACb,MAAM,UAAU,GAAG,cAAc,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;QAC3E,IAAI,UAAU,KAAK,CAAC,EAAE,CAAC;YACrB,OAAO,UAAU,CAAC;QACpB,CAAC;QACD,OAAO,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;IAC9C,CAAC,CAAC,CAAC;AACP,CAAC"}
|
package/dist/domain/schemas.d.ts
CHANGED
|
@@ -1,161 +1,69 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const
|
|
3
|
-
readonly
|
|
2
|
+
export declare const startWorkInputShape: {
|
|
3
|
+
readonly task_id: z.ZodString;
|
|
4
|
+
readonly title: z.ZodString;
|
|
4
5
|
readonly kind: z.ZodString;
|
|
5
|
-
readonly owner: z.ZodOptional<z.ZodString>;
|
|
6
|
-
readonly model: z.ZodOptional<z.ZodString>;
|
|
7
|
-
readonly summary: z.ZodOptional<z.ZodString>;
|
|
8
|
-
readonly status: z.ZodOptional<z.ZodEnum<["active", "blocked", "waiting_review", "done"]>>;
|
|
9
|
-
readonly branch: z.ZodOptional<z.ZodString>;
|
|
10
|
-
readonly worktree: z.ZodOptional<z.ZodString>;
|
|
11
|
-
readonly cwd: z.ZodOptional<z.ZodString>;
|
|
12
|
-
readonly pid: z.ZodOptional<z.ZodNumber>;
|
|
13
|
-
};
|
|
14
|
-
export declare const registerAgentInputSchema: z.ZodObject<{
|
|
15
6
|
readonly agent_id: z.ZodOptional<z.ZodString>;
|
|
16
|
-
readonly kind: z.ZodString;
|
|
17
7
|
readonly owner: z.ZodOptional<z.ZodString>;
|
|
18
8
|
readonly model: z.ZodOptional<z.ZodString>;
|
|
19
9
|
readonly summary: z.ZodOptional<z.ZodString>;
|
|
20
|
-
readonly status: z.ZodOptional<z.ZodEnum<["active", "blocked", "waiting_review", "done"]>>;
|
|
21
10
|
readonly branch: z.ZodOptional<z.ZodString>;
|
|
22
11
|
readonly worktree: z.ZodOptional<z.ZodString>;
|
|
23
12
|
readonly cwd: z.ZodOptional<z.ZodString>;
|
|
24
13
|
readonly pid: z.ZodOptional<z.ZodNumber>;
|
|
25
|
-
}, "strip", z.ZodTypeAny, {
|
|
26
|
-
kind: string;
|
|
27
|
-
status?: "active" | "blocked" | "waiting_review" | "done" | undefined;
|
|
28
|
-
owner?: string | undefined;
|
|
29
|
-
branch?: string | undefined;
|
|
30
|
-
worktree?: string | undefined;
|
|
31
|
-
agent_id?: string | undefined;
|
|
32
|
-
model?: string | undefined;
|
|
33
|
-
pid?: number | undefined;
|
|
34
|
-
cwd?: string | undefined;
|
|
35
|
-
summary?: string | undefined;
|
|
36
|
-
}, {
|
|
37
|
-
kind: string;
|
|
38
|
-
status?: "active" | "blocked" | "waiting_review" | "done" | undefined;
|
|
39
|
-
owner?: string | undefined;
|
|
40
|
-
branch?: string | undefined;
|
|
41
|
-
worktree?: string | undefined;
|
|
42
|
-
agent_id?: string | undefined;
|
|
43
|
-
model?: string | undefined;
|
|
44
|
-
pid?: number | undefined;
|
|
45
|
-
cwd?: string | undefined;
|
|
46
|
-
summary?: string | undefined;
|
|
47
|
-
}>;
|
|
48
|
-
export type RegisterAgentInput = z.infer<typeof registerAgentInputSchema>;
|
|
49
|
-
export declare const claimWorkInputShape: {
|
|
50
|
-
readonly task_id: z.ZodString;
|
|
51
|
-
readonly title: z.ZodString;
|
|
52
|
-
readonly owner: z.ZodOptional<z.ZodString>;
|
|
53
|
-
readonly agent: z.ZodOptional<z.ZodString>;
|
|
54
|
-
readonly branch: z.ZodOptional<z.ZodString>;
|
|
55
|
-
readonly worktree: z.ZodOptional<z.ZodString>;
|
|
56
14
|
readonly parent_task_id: z.ZodOptional<z.ZodString>;
|
|
57
15
|
readonly expected_files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
58
16
|
readonly modules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
59
17
|
readonly domains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
60
18
|
readonly risk_tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
61
19
|
readonly notes: z.ZodOptional<z.ZodString>;
|
|
62
|
-
readonly
|
|
20
|
+
readonly workspace_id: z.ZodOptional<z.ZodString>;
|
|
63
21
|
};
|
|
64
|
-
export
|
|
65
|
-
|
|
66
|
-
readonly
|
|
67
|
-
readonly owner: z.ZodOptional<z.ZodString>;
|
|
68
|
-
readonly agent: z.ZodOptional<z.ZodString>;
|
|
69
|
-
readonly branch: z.ZodOptional<z.ZodString>;
|
|
70
|
-
readonly worktree: z.ZodOptional<z.ZodString>;
|
|
71
|
-
readonly parent_task_id: z.ZodOptional<z.ZodString>;
|
|
72
|
-
readonly expected_files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
73
|
-
readonly modules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
74
|
-
readonly domains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
75
|
-
readonly risk_tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
76
|
-
readonly notes: z.ZodOptional<z.ZodString>;
|
|
77
|
-
readonly agent_id: z.ZodOptional<z.ZodString>;
|
|
78
|
-
}, "strip", z.ZodTypeAny, {
|
|
79
|
-
task_id: string;
|
|
80
|
-
title: string;
|
|
81
|
-
owner?: string | undefined;
|
|
82
|
-
agent?: string | undefined;
|
|
83
|
-
branch?: string | undefined;
|
|
84
|
-
worktree?: string | undefined;
|
|
85
|
-
expected_files?: string[] | undefined;
|
|
86
|
-
modules?: string[] | undefined;
|
|
87
|
-
domains?: string[] | undefined;
|
|
88
|
-
risk_tags?: string[] | undefined;
|
|
89
|
-
notes?: string | undefined;
|
|
90
|
-
parent_task_id?: string | undefined;
|
|
91
|
-
agent_id?: string | undefined;
|
|
92
|
-
}, {
|
|
93
|
-
task_id: string;
|
|
94
|
-
title: string;
|
|
95
|
-
owner?: string | undefined;
|
|
96
|
-
agent?: string | undefined;
|
|
97
|
-
branch?: string | undefined;
|
|
98
|
-
worktree?: string | undefined;
|
|
99
|
-
expected_files?: string[] | undefined;
|
|
100
|
-
modules?: string[] | undefined;
|
|
101
|
-
domains?: string[] | undefined;
|
|
102
|
-
risk_tags?: string[] | undefined;
|
|
103
|
-
notes?: string | undefined;
|
|
104
|
-
parent_task_id?: string | undefined;
|
|
105
|
-
agent_id?: string | undefined;
|
|
106
|
-
}>;
|
|
107
|
-
export type ClaimWorkInput = z.infer<typeof claimWorkInputSchema>;
|
|
108
|
-
export declare const updateTaskInputShape: {
|
|
109
|
-
readonly task_id: z.ZodString;
|
|
110
|
-
readonly kind: z.ZodEnum<["intent", "progress", "assumption", "decision", "question", "answer", "blocker", "finding"]>;
|
|
111
|
-
readonly content: z.ZodString;
|
|
112
|
-
readonly agent: z.ZodOptional<z.ZodString>;
|
|
22
|
+
export type StartWorkInput = z.infer<z.ZodObject<typeof startWorkInputShape>>;
|
|
23
|
+
export declare const inspectWorkInputShape: {
|
|
24
|
+
readonly task_id: z.ZodOptional<z.ZodString>;
|
|
113
25
|
readonly agent_id: z.ZodOptional<z.ZodString>;
|
|
26
|
+
readonly message_id: z.ZodOptional<z.ZodString>;
|
|
27
|
+
readonly workspace_id: z.ZodOptional<z.ZodString>;
|
|
114
28
|
};
|
|
115
|
-
export
|
|
116
|
-
|
|
117
|
-
readonly
|
|
29
|
+
export type InspectWorkInput = z.infer<z.ZodObject<typeof inspectWorkInputShape>>;
|
|
30
|
+
export declare const updateWorkInputShape: {
|
|
31
|
+
readonly operation: z.ZodOptional<z.ZodEnum<["record", "prompt", "reply"]>>;
|
|
32
|
+
readonly task_id: z.ZodOptional<z.ZodString>;
|
|
33
|
+
readonly kind: z.ZodOptional<z.ZodEnum<["intent", "progress", "assumption", "decision", "question", "answer", "blocker", "finding"]>>;
|
|
118
34
|
readonly content: z.ZodString;
|
|
119
|
-
readonly agent: z.ZodOptional<z.ZodString>;
|
|
120
35
|
readonly agent_id: z.ZodOptional<z.ZodString>;
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
agent_id?: string | undefined;
|
|
127
|
-
}, {
|
|
128
|
-
task_id: string;
|
|
129
|
-
kind: "intent" | "progress" | "assumption" | "decision" | "question" | "answer" | "blocker" | "finding";
|
|
130
|
-
content: string;
|
|
131
|
-
agent?: string | undefined;
|
|
132
|
-
agent_id?: string | undefined;
|
|
133
|
-
}>;
|
|
134
|
-
export type UpdateTaskInput = z.infer<typeof updateTaskInputSchema>;
|
|
135
|
-
export declare const getTaskContextInputShape: {
|
|
136
|
-
readonly task_id: z.ZodString;
|
|
36
|
+
readonly to_agent_id: z.ZodOptional<z.ZodString>;
|
|
37
|
+
readonly reply_to_message_id: z.ZodOptional<z.ZodString>;
|
|
38
|
+
readonly idempotency_key: z.ZodOptional<z.ZodString>;
|
|
39
|
+
readonly delivery_mode: z.ZodOptional<z.ZodLiteral<"steer">>;
|
|
40
|
+
readonly workspace_id: z.ZodOptional<z.ZodString>;
|
|
137
41
|
};
|
|
138
|
-
export
|
|
139
|
-
|
|
140
|
-
}, "strip", z.ZodTypeAny, {
|
|
141
|
-
task_id: string;
|
|
142
|
-
}, {
|
|
143
|
-
task_id: string;
|
|
144
|
-
}>;
|
|
145
|
-
export type GetTaskContextInput = z.infer<typeof getTaskContextInputSchema>;
|
|
146
|
-
export declare const handoffInputShape: {
|
|
42
|
+
export type UpdateWorkInput = z.infer<z.ZodObject<typeof updateWorkInputShape>>;
|
|
43
|
+
export declare const transferWorkInputShape: {
|
|
147
44
|
readonly task_id: z.ZodString;
|
|
148
|
-
readonly
|
|
149
|
-
readonly
|
|
45
|
+
readonly action: z.ZodEnum<["assign", "accept", "decline", "release", "reassign", "offer", "reopen"]>;
|
|
46
|
+
readonly agent_id: z.ZodString;
|
|
47
|
+
readonly expected_version: z.ZodNumber;
|
|
48
|
+
readonly to_agent_id: z.ZodOptional<z.ZodString>;
|
|
49
|
+
readonly handoff_id: z.ZodOptional<z.ZodNumber>;
|
|
50
|
+
readonly lease_seconds: z.ZodOptional<z.ZodNumber>;
|
|
51
|
+
readonly expires_seconds: z.ZodOptional<z.ZodNumber>;
|
|
52
|
+
readonly force: z.ZodOptional<z.ZodBoolean>;
|
|
53
|
+
readonly reason: z.ZodOptional<z.ZodString>;
|
|
54
|
+
readonly what_changed: z.ZodOptional<z.ZodString>;
|
|
150
55
|
readonly changed_files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
151
56
|
readonly tests_run: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
152
57
|
readonly known_risks: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
153
58
|
readonly assumptions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
154
59
|
readonly decisions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
155
60
|
readonly guardrails_checked: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
156
|
-
readonly needs_review_from: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
157
61
|
readonly next_steps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
158
|
-
readonly
|
|
62
|
+
readonly workspace_id: z.ZodOptional<z.ZodString>;
|
|
63
|
+
};
|
|
64
|
+
export type TransferWorkInput = z.infer<z.ZodObject<typeof transferWorkInputShape>>;
|
|
65
|
+
export declare const finishWorkInputShape: {
|
|
66
|
+
readonly needs_review_from: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
159
67
|
readonly diff_size: z.ZodOptional<z.ZodString>;
|
|
160
68
|
readonly open_questions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
161
69
|
readonly provenance: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -168,11 +76,8 @@ export declare const handoffInputShape: {
|
|
|
168
76
|
field: string;
|
|
169
77
|
source: string;
|
|
170
78
|
}>, "many">>;
|
|
171
|
-
readonly
|
|
172
|
-
|
|
173
|
-
export declare const handoffInputSchema: z.ZodObject<{
|
|
174
|
-
readonly task_id: z.ZodString;
|
|
175
|
-
readonly status: z.ZodString;
|
|
79
|
+
readonly reason: z.ZodOptional<z.ZodString>;
|
|
80
|
+
readonly workspace_id: z.ZodOptional<z.ZodString>;
|
|
176
81
|
readonly what_changed: z.ZodString;
|
|
177
82
|
readonly changed_files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
178
83
|
readonly tests_run: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -180,124 +85,10 @@ export declare const handoffInputSchema: z.ZodObject<{
|
|
|
180
85
|
readonly assumptions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
181
86
|
readonly decisions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
182
87
|
readonly guardrails_checked: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
183
|
-
readonly needs_review_from: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
184
88
|
readonly next_steps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
185
|
-
readonly ready_for_review: z.ZodOptional<z.ZodBoolean>;
|
|
186
|
-
readonly diff_size: z.ZodOptional<z.ZodString>;
|
|
187
|
-
readonly open_questions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
188
|
-
readonly provenance: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
189
|
-
field: z.ZodString;
|
|
190
|
-
source: z.ZodString;
|
|
191
|
-
}, "strip", z.ZodTypeAny, {
|
|
192
|
-
field: string;
|
|
193
|
-
source: string;
|
|
194
|
-
}, {
|
|
195
|
-
field: string;
|
|
196
|
-
source: string;
|
|
197
|
-
}>, "many">>;
|
|
198
|
-
readonly agent_id: z.ZodOptional<z.ZodString>;
|
|
199
|
-
}, "strip", z.ZodTypeAny, {
|
|
200
|
-
status: string;
|
|
201
|
-
task_id: string;
|
|
202
|
-
what_changed: string;
|
|
203
|
-
agent_id?: string | undefined;
|
|
204
|
-
changed_files?: string[] | undefined;
|
|
205
|
-
tests_run?: string[] | undefined;
|
|
206
|
-
known_risks?: string[] | undefined;
|
|
207
|
-
assumptions?: string[] | undefined;
|
|
208
|
-
decisions?: string[] | undefined;
|
|
209
|
-
guardrails_checked?: string[] | undefined;
|
|
210
|
-
needs_review_from?: string[] | undefined;
|
|
211
|
-
next_steps?: string[] | undefined;
|
|
212
|
-
diff_size?: string | undefined;
|
|
213
|
-
open_questions?: string[] | undefined;
|
|
214
|
-
provenance?: {
|
|
215
|
-
field: string;
|
|
216
|
-
source: string;
|
|
217
|
-
}[] | undefined;
|
|
218
|
-
ready_for_review?: boolean | undefined;
|
|
219
|
-
}, {
|
|
220
|
-
status: string;
|
|
221
|
-
task_id: string;
|
|
222
|
-
what_changed: string;
|
|
223
|
-
agent_id?: string | undefined;
|
|
224
|
-
changed_files?: string[] | undefined;
|
|
225
|
-
tests_run?: string[] | undefined;
|
|
226
|
-
known_risks?: string[] | undefined;
|
|
227
|
-
assumptions?: string[] | undefined;
|
|
228
|
-
decisions?: string[] | undefined;
|
|
229
|
-
guardrails_checked?: string[] | undefined;
|
|
230
|
-
needs_review_from?: string[] | undefined;
|
|
231
|
-
next_steps?: string[] | undefined;
|
|
232
|
-
diff_size?: string | undefined;
|
|
233
|
-
open_questions?: string[] | undefined;
|
|
234
|
-
provenance?: {
|
|
235
|
-
field: string;
|
|
236
|
-
source: string;
|
|
237
|
-
}[] | undefined;
|
|
238
|
-
ready_for_review?: boolean | undefined;
|
|
239
|
-
}>;
|
|
240
|
-
export type HandoffInput = z.infer<typeof handoffInputSchema>;
|
|
241
|
-
export declare const reviewReadyInputShape: {
|
|
242
89
|
readonly task_id: z.ZodString;
|
|
243
|
-
readonly
|
|
244
|
-
readonly
|
|
245
|
-
readonly
|
|
246
|
-
readonly guardrails_checked: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
247
|
-
readonly assumptions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
248
|
-
readonly open_questions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
249
|
-
readonly provenance: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
250
|
-
field: z.ZodString;
|
|
251
|
-
source: z.ZodString;
|
|
252
|
-
}, "strip", z.ZodTypeAny, {
|
|
253
|
-
field: string;
|
|
254
|
-
source: string;
|
|
255
|
-
}, {
|
|
256
|
-
field: string;
|
|
257
|
-
source: string;
|
|
258
|
-
}>, "many">>;
|
|
90
|
+
readonly agent_id: z.ZodString;
|
|
91
|
+
readonly expected_version: z.ZodNumber;
|
|
92
|
+
readonly outcome: z.ZodDefault<z.ZodEnum<["handoff", "review_ready", "complete", "closed"]>>;
|
|
259
93
|
};
|
|
260
|
-
export
|
|
261
|
-
readonly task_id: z.ZodString;
|
|
262
|
-
readonly plan_summary: z.ZodString;
|
|
263
|
-
readonly tests_run: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
264
|
-
readonly diff_size: z.ZodOptional<z.ZodString>;
|
|
265
|
-
readonly guardrails_checked: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
266
|
-
readonly assumptions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
267
|
-
readonly open_questions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
268
|
-
readonly provenance: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
269
|
-
field: z.ZodString;
|
|
270
|
-
source: z.ZodString;
|
|
271
|
-
}, "strip", z.ZodTypeAny, {
|
|
272
|
-
field: string;
|
|
273
|
-
source: string;
|
|
274
|
-
}, {
|
|
275
|
-
field: string;
|
|
276
|
-
source: string;
|
|
277
|
-
}>, "many">>;
|
|
278
|
-
}, "strip", z.ZodTypeAny, {
|
|
279
|
-
task_id: string;
|
|
280
|
-
plan_summary: string;
|
|
281
|
-
tests_run?: string[] | undefined;
|
|
282
|
-
assumptions?: string[] | undefined;
|
|
283
|
-
guardrails_checked?: string[] | undefined;
|
|
284
|
-
diff_size?: string | undefined;
|
|
285
|
-
open_questions?: string[] | undefined;
|
|
286
|
-
provenance?: {
|
|
287
|
-
field: string;
|
|
288
|
-
source: string;
|
|
289
|
-
}[] | undefined;
|
|
290
|
-
}, {
|
|
291
|
-
task_id: string;
|
|
292
|
-
plan_summary: string;
|
|
293
|
-
tests_run?: string[] | undefined;
|
|
294
|
-
assumptions?: string[] | undefined;
|
|
295
|
-
guardrails_checked?: string[] | undefined;
|
|
296
|
-
diff_size?: string | undefined;
|
|
297
|
-
open_questions?: string[] | undefined;
|
|
298
|
-
provenance?: {
|
|
299
|
-
field: string;
|
|
300
|
-
source: string;
|
|
301
|
-
}[] | undefined;
|
|
302
|
-
}>;
|
|
303
|
-
export type ReviewReadyInput = z.infer<typeof reviewReadyInputSchema>;
|
|
94
|
+
export type FinishWorkInput = z.infer<z.ZodObject<typeof finishWorkInputShape>>;
|