@adaptivemcp/spec 0.4.0 → 0.6.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/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/steps.d.ts +133 -0
- package/dist/steps.d.ts.map +1 -0
- package/dist/steps.js +29 -0
- package/dist/steps.js.map +1 -0
- package/dist/suspension.d.ts +54 -0
- package/dist/suspension.d.ts.map +1 -0
- package/dist/suspension.js +18 -0
- package/dist/suspension.js.map +1 -0
- package/dist/types.d.ts +45 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3,5 +3,7 @@ export * from "./result.js";
|
|
|
3
3
|
export * from "./extensions.js";
|
|
4
4
|
export * from "./events.js";
|
|
5
5
|
export * from "./execution-graph.js";
|
|
6
|
+
export * from "./suspension.js";
|
|
7
|
+
export * from "./steps.js";
|
|
6
8
|
export { SPEC_VERSION } from "./version.js";
|
|
7
9
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -3,5 +3,7 @@ export * from "./result.js";
|
|
|
3
3
|
export * from "./extensions.js";
|
|
4
4
|
export * from "./events.js";
|
|
5
5
|
export * from "./execution-graph.js";
|
|
6
|
+
export * from "./suspension.js";
|
|
7
|
+
export * from "./steps.js";
|
|
6
8
|
export { SPEC_VERSION } from "./version.js";
|
|
7
9
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC"}
|
package/dist/steps.d.ts
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The durable half of two archetype components
|
|
3
|
+
* ([ADR-004](../../../docs/adr/004-archetype-component-ownership.md)): the
|
|
4
|
+
* **shared task list** and the **typed memory steps** a planning pass records.
|
|
5
|
+
*
|
|
6
|
+
* Both are *shapes* here and *policy* in the host. A host decides what to plan,
|
|
7
|
+
* who a task is assigned to, when to re-plan and what a status transition means;
|
|
8
|
+
* this module only fixes what the record looks like, so two hosts record the
|
|
9
|
+
* same thing the same way, and `memory` can persist one history a reader can
|
|
10
|
+
* replay in order.
|
|
11
|
+
*
|
|
12
|
+
* Modelled on two references:
|
|
13
|
+
*
|
|
14
|
+
* - `agno`'s `team/task.py` — `Task` with `status`, `assignee`, `parent_id`,
|
|
15
|
+
* `dependencies`, `result`, `notes`, and the `coordinate`/`route`/`tasks`
|
|
16
|
+
* modes built on it (`TaskStatus` is its five states plus `cancelled`, which a
|
|
17
|
+
* host that can *pause* also needs a word for);
|
|
18
|
+
* - `smolagents`' `memory.py` — one `AgentMemory` holding typed, replayable
|
|
19
|
+
* steps, of which `TaskStep`/`ActionStep`/`PlanningStep` are the three this
|
|
20
|
+
* keeps. The other two there (`SystemPromptStep`, `FinalAnswerStep`) are
|
|
21
|
+
* conversation, not work, and are already covered by messages.
|
|
22
|
+
*
|
|
23
|
+
* Deliberately **not** here: a graph, a scheduler, a coordinator, or a mode
|
|
24
|
+
* enum. Those need a host's session lifecycle and model, which is exactly the
|
|
25
|
+
* line ADR-004 draws — `orchestration` owns *execution composition*, and this is
|
|
26
|
+
* only what gets recorded about it.
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* Where a task is in its lifecycle.
|
|
30
|
+
*
|
|
31
|
+
* The five from `agno`, plus `cancelled`: a host that can suspend a run also
|
|
32
|
+
* needs to say a task was *given up on* rather than failed.
|
|
33
|
+
*/
|
|
34
|
+
export type TaskStatus = "pending" | "in_progress" | "blocked" | "completed" | "failed" | "cancelled";
|
|
35
|
+
/**
|
|
36
|
+
* One entry in the shared task list — what someone *intends* to do.
|
|
37
|
+
*
|
|
38
|
+
* Also the task step of a session's history: `getSteps` returns these alongside
|
|
39
|
+
* action and plan steps, so "what was intended" reads back in the same order as
|
|
40
|
+
* "what was planned" and "what was done".
|
|
41
|
+
*/
|
|
42
|
+
export interface Task {
|
|
43
|
+
id: string;
|
|
44
|
+
/** The session (run) the task belongs to. */
|
|
45
|
+
sessionId: string;
|
|
46
|
+
kind: "task";
|
|
47
|
+
title: string;
|
|
48
|
+
description?: string;
|
|
49
|
+
status: TaskStatus;
|
|
50
|
+
/**
|
|
51
|
+
* Who is doing it — a delegated agent, a role, a human. Host vocabulary: this
|
|
52
|
+
* package never interprets it.
|
|
53
|
+
*/
|
|
54
|
+
assignee?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Ids of tasks that must be `completed` before this one can start;
|
|
57
|
+
* `readyTasks` is the read that applies this. An id that matches no task
|
|
58
|
+
* **blocks** rather than unblocks, so a typo fails closed.
|
|
59
|
+
*/
|
|
60
|
+
dependencies: string[];
|
|
61
|
+
/** Groups a task under a parent (a sub-task). */
|
|
62
|
+
parentId?: string;
|
|
63
|
+
/** What the task produced, once it is done. */
|
|
64
|
+
result?: string;
|
|
65
|
+
/** Free-form notes a host appends as it goes. */
|
|
66
|
+
notes?: string;
|
|
67
|
+
createdAt: string;
|
|
68
|
+
updatedAt?: string;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* A step where something was *done*: a tool ran, or trying to run one failed.
|
|
72
|
+
*
|
|
73
|
+
* This is the intent-and-outcome view a run replays from, not a second copy of
|
|
74
|
+
* telemetry: when a host records the same call in the execution graph it sets
|
|
75
|
+
* `correlationId`, and the bodies stay where they already live. `summary` is
|
|
76
|
+
* written by the host, already redacted — this package never inspects inputs or
|
|
77
|
+
* outputs.
|
|
78
|
+
*/
|
|
79
|
+
export interface ActionStep {
|
|
80
|
+
id: string;
|
|
81
|
+
sessionId: string;
|
|
82
|
+
kind: "action";
|
|
83
|
+
/** What was attempted, in the host's words (already safe to display). */
|
|
84
|
+
summary: string;
|
|
85
|
+
/** The tool the step ran, when it ran one. */
|
|
86
|
+
toolName?: string;
|
|
87
|
+
/** Set when the step failed. */
|
|
88
|
+
error?: string;
|
|
89
|
+
durationMs?: number;
|
|
90
|
+
/** Ties this step to the execution graph / telemetry event it describes. */
|
|
91
|
+
correlationId?: string;
|
|
92
|
+
createdAt: string;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* A step where a *plan* was produced — one message from the model, kept as
|
|
96
|
+
* replayable state rather than conversation.
|
|
97
|
+
*
|
|
98
|
+
* This is what makes a planning interval meaningful: the plan is a record, so
|
|
99
|
+
* re-planning reads the recorded state instead of re-deriving it.
|
|
100
|
+
*/
|
|
101
|
+
export interface PlanStep {
|
|
102
|
+
id: string;
|
|
103
|
+
sessionId: string;
|
|
104
|
+
kind: "plan";
|
|
105
|
+
/** The plan as ordered intents, in the model's words. */
|
|
106
|
+
steps: string[];
|
|
107
|
+
/** Why this plan was produced — a trigger, a failure, a new fact. */
|
|
108
|
+
reasoning?: string;
|
|
109
|
+
createdAt: string;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* One entry in a session's history: what was intended (`Task`), planned
|
|
113
|
+
* (`PlanStep`) or done (`ActionStep`).
|
|
114
|
+
*/
|
|
115
|
+
export type StepRecord = Task | ActionStep | PlanStep;
|
|
116
|
+
/** The discriminator of {@link StepRecord}. */
|
|
117
|
+
export type StepKind = StepRecord["kind"];
|
|
118
|
+
/** Narrowing a session's tasks. */
|
|
119
|
+
export interface TaskFilter {
|
|
120
|
+
status?: TaskStatus;
|
|
121
|
+
assignee?: string;
|
|
122
|
+
parentId?: string;
|
|
123
|
+
}
|
|
124
|
+
/** Narrowing a session's history. */
|
|
125
|
+
export interface StepFilter {
|
|
126
|
+
kind?: StepKind;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* A partial update to a task. Identity (`id`, `sessionId`, `kind`, `createdAt`)
|
|
130
|
+
* is not patchable; `updateTask` stamps `updatedAt`.
|
|
131
|
+
*/
|
|
132
|
+
export type TaskPatch = Omit<Partial<Task>, "id" | "sessionId" | "kind" | "createdAt">;
|
|
133
|
+
//# sourceMappingURL=steps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"steps.d.ts","sourceRoot":"","sources":["../src/steps.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AAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,yDAAyD;IACzD,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,qEAAqE;IACrE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,UAAU,GAAG,QAAQ,CAAC;AAEtD,+CAA+C;AAC/C,MAAM,MAAM,QAAQ,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC;AAE1C,mCAAmC;AACnC,MAAM,WAAW,UAAU;IACzB,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,qCAAqC;AACrC,MAAM,WAAW,UAAU;IACzB,IAAI,CAAC,EAAE,QAAQ,CAAC;CACjB;AAED;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,IAAI,GAAG,WAAW,GAAG,MAAM,GAAG,WAAW,CAAC,CAAC"}
|
package/dist/steps.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The durable half of two archetype components
|
|
3
|
+
* ([ADR-004](../../../docs/adr/004-archetype-component-ownership.md)): the
|
|
4
|
+
* **shared task list** and the **typed memory steps** a planning pass records.
|
|
5
|
+
*
|
|
6
|
+
* Both are *shapes* here and *policy* in the host. A host decides what to plan,
|
|
7
|
+
* who a task is assigned to, when to re-plan and what a status transition means;
|
|
8
|
+
* this module only fixes what the record looks like, so two hosts record the
|
|
9
|
+
* same thing the same way, and `memory` can persist one history a reader can
|
|
10
|
+
* replay in order.
|
|
11
|
+
*
|
|
12
|
+
* Modelled on two references:
|
|
13
|
+
*
|
|
14
|
+
* - `agno`'s `team/task.py` — `Task` with `status`, `assignee`, `parent_id`,
|
|
15
|
+
* `dependencies`, `result`, `notes`, and the `coordinate`/`route`/`tasks`
|
|
16
|
+
* modes built on it (`TaskStatus` is its five states plus `cancelled`, which a
|
|
17
|
+
* host that can *pause* also needs a word for);
|
|
18
|
+
* - `smolagents`' `memory.py` — one `AgentMemory` holding typed, replayable
|
|
19
|
+
* steps, of which `TaskStep`/`ActionStep`/`PlanningStep` are the three this
|
|
20
|
+
* keeps. The other two there (`SystemPromptStep`, `FinalAnswerStep`) are
|
|
21
|
+
* conversation, not work, and are already covered by messages.
|
|
22
|
+
*
|
|
23
|
+
* Deliberately **not** here: a graph, a scheduler, a coordinator, or a mode
|
|
24
|
+
* enum. Those need a host's session lifecycle and model, which is exactly the
|
|
25
|
+
* line ADR-004 draws — `orchestration` owns *execution composition*, and this is
|
|
26
|
+
* only what gets recorded about it.
|
|
27
|
+
*/
|
|
28
|
+
export {};
|
|
29
|
+
//# sourceMappingURL=steps.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"steps.js","sourceRoot":"","sources":["../src/steps.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A **suspension**: the durable record of a run that stopped to wait for a
|
|
3
|
+
* human.
|
|
4
|
+
*
|
|
5
|
+
* This is the durable half of the pause/resume contract
|
|
6
|
+
* ([ADR-004](../../../docs/adr/004-archetype-component-ownership.md)): the
|
|
7
|
+
* *shape* lives here so every host records a pause the same way, `memory`
|
|
8
|
+
* persists it, and the **host** owns the policy — what may suspend, who may
|
|
9
|
+
* answer, how a resume is applied. The host half is the loop's job; this type
|
|
10
|
+
* deliberately contains nothing about graphs, threads or schedulers.
|
|
11
|
+
*
|
|
12
|
+
* Modelled on two references: `langgraph`'s `interrupt`/`Command` pair (pause
|
|
13
|
+
* with a value, resume with an answer — but no graph is required here, since a
|
|
14
|
+
* host can suspend a plain run), and `agno`'s `HumanReview`, whose primitive
|
|
15
|
+
* set the three `kind`s mirror.
|
|
16
|
+
*/
|
|
17
|
+
/** Why the host stopped. Mirrors the human-review primitives seen in the wild. */
|
|
18
|
+
export type SuspensionKind = "confirmation" | "input" | "review";
|
|
19
|
+
/** Where a suspension is in its lifecycle. */
|
|
20
|
+
export type SuspensionStatus = "pending" | "answered" | "cancelled" | "expired";
|
|
21
|
+
export interface Suspension {
|
|
22
|
+
id: string;
|
|
23
|
+
/** The session (run) the suspension belongs to. */
|
|
24
|
+
sessionId: string;
|
|
25
|
+
kind: SuspensionKind;
|
|
26
|
+
/** The question to show a human — already safe to display; the host redacts. */
|
|
27
|
+
question: string;
|
|
28
|
+
/**
|
|
29
|
+
* Advisory JSON schema for the expected answer. The host validates; nothing
|
|
30
|
+
* here enforces it, so a host that ignores this still works.
|
|
31
|
+
*/
|
|
32
|
+
responseSchema?: Record<string, unknown>;
|
|
33
|
+
/**
|
|
34
|
+
* Opaque host state needed to continue the run — a step id, a cursor, a plan.
|
|
35
|
+
* Never interpreted by this package, so the shape stays host-agnostic.
|
|
36
|
+
*/
|
|
37
|
+
resumeState?: Record<string, unknown>;
|
|
38
|
+
status: SuspensionStatus;
|
|
39
|
+
/** The answer, once one was given. */
|
|
40
|
+
answer?: unknown;
|
|
41
|
+
/** Why it was not answered (a refusal, a timeout), when it was not. */
|
|
42
|
+
reason?: string;
|
|
43
|
+
createdAt: string;
|
|
44
|
+
resolvedAt?: string;
|
|
45
|
+
}
|
|
46
|
+
/** How a suspension is resolved. */
|
|
47
|
+
export interface SuspensionResolution {
|
|
48
|
+
status: Extract<SuspensionStatus, "answered" | "cancelled" | "expired">;
|
|
49
|
+
/** Required for `answered`; ignored otherwise. */
|
|
50
|
+
answer?: unknown;
|
|
51
|
+
/** Free-form explanation (a refusal reason, a timeout). */
|
|
52
|
+
reason?: string;
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=suspension.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"suspension.d.ts","sourceRoot":"","sources":["../src/suspension.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,kFAAkF;AAClF,MAAM,MAAM,cAAc,GACtB,cAAc,GACd,OAAO,GACP,QAAQ,CAAC;AAEb,8CAA8C;AAC9C,MAAM,MAAM,gBAAgB,GACxB,SAAS,GACT,UAAU,GACV,WAAW,GACX,SAAS,CAAC;AAEd,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,mDAAmD;IACnD,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,cAAc,CAAC;IACrB,gFAAgF;IAChF,QAAQ,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACtC,MAAM,EAAE,gBAAgB,CAAC;IACzB,sCAAsC;IACtC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,uEAAuE;IACvE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,oCAAoC;AACpC,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,OAAO,CAAC,gBAAgB,EAAE,UAAU,GAAG,WAAW,GAAG,SAAS,CAAC,CAAC;IACxE,kDAAkD;IAClD,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,2DAA2D;IAC3D,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A **suspension**: the durable record of a run that stopped to wait for a
|
|
3
|
+
* human.
|
|
4
|
+
*
|
|
5
|
+
* This is the durable half of the pause/resume contract
|
|
6
|
+
* ([ADR-004](../../../docs/adr/004-archetype-component-ownership.md)): the
|
|
7
|
+
* *shape* lives here so every host records a pause the same way, `memory`
|
|
8
|
+
* persists it, and the **host** owns the policy — what may suspend, who may
|
|
9
|
+
* answer, how a resume is applied. The host half is the loop's job; this type
|
|
10
|
+
* deliberately contains nothing about graphs, threads or schedulers.
|
|
11
|
+
*
|
|
12
|
+
* Modelled on two references: `langgraph`'s `interrupt`/`Command` pair (pause
|
|
13
|
+
* with a value, resume with an answer — but no graph is required here, since a
|
|
14
|
+
* host can suspend a plain run), and `agno`'s `HumanReview`, whose primitive
|
|
15
|
+
* set the three `kind`s mirror.
|
|
16
|
+
*/
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=suspension.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"suspension.js","sourceRoot":"","sources":["../src/suspension.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG"}
|
package/dist/types.d.ts
CHANGED
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
* They intentionally avoid coupling to shell commands, filesystems, processes,
|
|
6
6
|
* sockets, or HTTP requests — those remain implementation details of MCP servers.
|
|
7
7
|
*/
|
|
8
|
+
import type { Suspension, SuspensionResolution, SuspensionStatus } from "./suspension.js";
|
|
9
|
+
import type { ActionStep, PlanStep, StepFilter, StepRecord, Task, TaskFilter, TaskPatch } from "./steps.js";
|
|
8
10
|
export type ToolStatus = "started" | "completed" | "failed" | "cancelled";
|
|
9
11
|
export interface CostInfo {
|
|
10
12
|
inputTokens?: number;
|
|
@@ -466,5 +468,48 @@ export interface Store {
|
|
|
466
468
|
getLeafNodes?(sessionId: string): ExecutionNode[];
|
|
467
469
|
/** Update children IDs of a parent node. */
|
|
468
470
|
updateChildrenIds?(parentId: string, childrenIds: string[]): void;
|
|
471
|
+
/** Persist a suspension (a run paused awaiting a human). */
|
|
472
|
+
recordSuspension?(suspension: Suspension): Suspension;
|
|
473
|
+
/** Read one suspension by id. */
|
|
474
|
+
getSuspension?(id: string): Suspension | undefined;
|
|
475
|
+
/** Every suspension for a session, newest first; filtered by status when given. */
|
|
476
|
+
getSuspensions?(sessionId: string, status?: SuspensionStatus): Suspension[];
|
|
477
|
+
/**
|
|
478
|
+
* Resolve a suspension — with an answer, or with a reason it was not answered.
|
|
479
|
+
* Returns the updated record, or `undefined` for an unknown id. Resolving is
|
|
480
|
+
* **idempotent**: an already-resolved suspension is returned unchanged rather
|
|
481
|
+
* than overwritten, because a resume may be replayed (`langgraph` re-executes
|
|
482
|
+
* the node it resumed into, so the same answer can arrive twice).
|
|
483
|
+
*/
|
|
484
|
+
resolveSuspension?(id: string, resolution: SuspensionResolution): Suspension | undefined;
|
|
485
|
+
/** Persist a task (an upsert; `updateTask` is the transition helper). */
|
|
486
|
+
recordTask?(task: Task): Task;
|
|
487
|
+
/** Read one task by id. */
|
|
488
|
+
getTask?(id: string): Task | undefined;
|
|
489
|
+
/** A session's tasks, oldest first; filtered when given. */
|
|
490
|
+
getTasks?(sessionId: string, filter?: TaskFilter): Task[];
|
|
491
|
+
/**
|
|
492
|
+
* Merge a partial update into a task and stamp `updatedAt`. Returns the
|
|
493
|
+
* updated record, or `undefined` for an unknown id. Moving `status` is
|
|
494
|
+
* allowed from any state: **transitions are the host's policy**, not the
|
|
495
|
+
* store's.
|
|
496
|
+
*/
|
|
497
|
+
updateTask?(id: string, patch: TaskPatch): Task | undefined;
|
|
498
|
+
/**
|
|
499
|
+
* Tasks that are ready to start: `pending` ones whose every dependency is
|
|
500
|
+
* `completed`, oldest first. This is the dependency-ordering read — a
|
|
501
|
+
* dependency that matches no task blocks, rather than silently unblocking.
|
|
502
|
+
*/
|
|
503
|
+
readyTasks?(sessionId: string): Task[];
|
|
504
|
+
/** Append a typed memory step — an action or a plan. */
|
|
505
|
+
recordStep?<T extends ActionStep | PlanStep>(step: T): T;
|
|
506
|
+
/** Read one step by id. */
|
|
507
|
+
getStep?(id: string): StepRecord | undefined;
|
|
508
|
+
/**
|
|
509
|
+
* A session's history in order: tasks, action steps and plan steps merged,
|
|
510
|
+
* oldest first — so a host can read back what was intended, planned and done
|
|
511
|
+
* as one sequence. Narrowed by `kind` when given.
|
|
512
|
+
*/
|
|
513
|
+
getSteps?(sessionId: string, filter?: StepFilter): StepRecord[];
|
|
469
514
|
}
|
|
470
515
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,WAAW,CAAC;AAE1E,MAAM,WAAW,QAAQ;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,uEAAuE;IACvE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,UAAU,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB;;;;OAIG;IACH,QAA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AAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,GAAG,IAAI,GAAG,SAAS,CAAC;IAC5D;;;;OAIG;IACH,UAAU,CAAC,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,CAAC;IAEvC,wDAAwD;IACxD,UAAU,CAAC,CAAC,CAAC,SAAS,UAAU,GAAG,QAAQ,EAAE,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC;IACzD,2BAA2B;IAC3B,OAAO,CAAC,CAAC,EAAE,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAAC;IAC7C;;;;OAIG;IACH,QAAQ,CAAC,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,UAAU,GAAG,UAAU,EAAE,CAAC;CACjE"}
|
package/dist/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AA8FH;;;;;;;;;GASG;AACH,MAAM,UAAU,qBAAqB,CAAC,IAAgB;IACpD,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,MAAM;YACT,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC;QACxD,KAAK,QAAQ;YACX,OAAO,EAAE,cAAc,EAAE,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC;QACxD,KAAK,KAAK;YACR,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC;QAChC;YACE,OAAO,EAAE,CAAC;IACd,CAAC;AACH,CAAC"}
|