@multiclawcli/core 0.6.2 → 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/config/toolsPolicy.d.ts +10 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2060 -1859
- package/dist/types/config.d.ts +15 -0
- package/dist/types/runtime.d.ts +8 -1
- package/dist/utils/toolSummary.d.ts +9 -0
- package/package.json +1 -1
package/dist/types/config.d.ts
CHANGED
|
@@ -14,6 +14,21 @@ export interface TurnRecord {
|
|
|
14
14
|
requirement: string;
|
|
15
15
|
/** How the turn ended in words, when it ended that way. */
|
|
16
16
|
reply?: LeaderMessage;
|
|
17
|
+
/** Observed execution and acceptance facts; absent in older caller-provided history. */
|
|
18
|
+
outcome?: TurnOutcome;
|
|
19
|
+
}
|
|
20
|
+
/** Compact facts for the next leader turn, not a model-generated summary or retry instruction. */
|
|
21
|
+
export interface TurnOutcome {
|
|
22
|
+
execution: "success" | "failed" | "cancelled" | "interrupted" | "unknown";
|
|
23
|
+
completedAgents: string[];
|
|
24
|
+
failedAgents: {
|
|
25
|
+
agentId: string;
|
|
26
|
+
reason?: string;
|
|
27
|
+
}[];
|
|
28
|
+
acceptance?: {
|
|
29
|
+
status: AcceptanceResult["status"];
|
|
30
|
+
reason?: string;
|
|
31
|
+
};
|
|
17
32
|
}
|
|
18
33
|
export interface ReviewPolicy {
|
|
19
34
|
/** Configured agent reserved for final review, outside the normal pipeline. */
|
package/dist/types/runtime.d.ts
CHANGED
|
@@ -28,7 +28,14 @@ export type RuntimeEvent = (RuntimeEventBase & {
|
|
|
28
28
|
type: "message";
|
|
29
29
|
role: "agent" | "thought" | "user";
|
|
30
30
|
text: string;
|
|
31
|
-
})
|
|
31
|
+
})
|
|
32
|
+
/**
|
|
33
|
+
* A tool call. The same `id` may arrive more than once: providers announce a
|
|
34
|
+
* call before its arguments have streamed, so the first event can carry an
|
|
35
|
+
* empty `input` and a later one the completed arguments. Consumers should key
|
|
36
|
+
* on `id` and render a row once.
|
|
37
|
+
*/
|
|
38
|
+
| (RuntimeEventBase & {
|
|
32
39
|
type: "tool_call";
|
|
33
40
|
id: string;
|
|
34
41
|
name: string;
|
|
@@ -7,6 +7,15 @@
|
|
|
7
7
|
* truncated line and are deliberately total — a summary is diagnostics and must
|
|
8
8
|
* never be the reason a run fails.
|
|
9
9
|
*/
|
|
10
|
+
/**
|
|
11
|
+
* Whether a tool call was given any arguments.
|
|
12
|
+
*
|
|
13
|
+
* "No arguments yet" reaches us as `{}` (or missing) rather than as
|
|
14
|
+
* `undefined`: ACP announces a call before its input has finished streaming.
|
|
15
|
+
* Both mean the same thing to a reader — there is nothing to show yet — so the
|
|
16
|
+
* two are collapsed here instead of at every call site.
|
|
17
|
+
*/
|
|
18
|
+
export declare function hasToolArgs(input: unknown): boolean;
|
|
10
19
|
/** One-line summary of a tool call's input. `input` is untrusted and may be circular. */
|
|
11
20
|
export declare function summarizeToolInput(input: unknown): string;
|
|
12
21
|
/** One-line summary of a tool result's output, which may be a string or a value. */
|