@maiaos/cli 0.1.0-canary.47 → 0.1.0-canary.49
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/import/input.d.ts
CHANGED
|
@@ -14,6 +14,6 @@ export declare const readAdopt: (parsed: ParsedOptions) => {
|
|
|
14
14
|
commandId?: string | undefined;
|
|
15
15
|
hostAuthority?: true | undefined;
|
|
16
16
|
workspaceId: string;
|
|
17
|
-
permission?: "acceptEdits" | "bypassPermissions" | "default" | "dontAsk" | "never" | "on-
|
|
17
|
+
permission?: "acceptEdits" | "bypassPermissions" | "default" | "dontAsk" | "never" | "on-request" | "plan" | "untrusted" | undefined;
|
|
18
18
|
};
|
|
19
19
|
//# sourceMappingURL=input.d.ts.map
|
|
@@ -167,6 +167,8 @@ export declare const makeRunLedgerClient: (node: CliNodeOperations) => {
|
|
|
167
167
|
readonly state: "completed";
|
|
168
168
|
readonly tokenUsage?: {
|
|
169
169
|
readonly cachedInputTokens: number;
|
|
170
|
+
readonly contextTokens?: number | undefined;
|
|
171
|
+
readonly contextWindow?: number | undefined;
|
|
170
172
|
readonly inputTokens: number;
|
|
171
173
|
readonly modelCallCount?: number | undefined;
|
|
172
174
|
readonly outputTokens: number;
|
|
@@ -34,9 +34,12 @@ export const formatTurnQueue = ({ result }) => {
|
|
|
34
34
|
headers: ["POSITION", "STATE", "TURN", "REVISION", "INPUT"],
|
|
35
35
|
});
|
|
36
36
|
};
|
|
37
|
+
const formatContext = (usage) => usage.contextTokens === undefined || usage.contextWindow === undefined
|
|
38
|
+
? ""
|
|
39
|
+
: `context: ${String(usage.contextTokens)} of ${String(usage.contextWindow)} tokens (${String(Math.round((100 * usage.contextTokens) / usage.contextWindow))}%)\n`;
|
|
37
40
|
const formatUsage = (usage) => usage === undefined
|
|
38
41
|
? ""
|
|
39
|
-
: `tokens: input ${String(usage.inputTokens)} (cached ${String(usage.cachedInputTokens)}), output ${String(usage.outputTokens)} (reasoning ${String(usage.reasoningOutputTokens)}), total ${String(usage.totalTokens)}${usage.modelCallCount === undefined ? "" : `, model calls ${String(usage.modelCallCount)}`}\n`;
|
|
42
|
+
: `tokens: input ${String(usage.inputTokens)} (cached ${String(usage.cachedInputTokens)}), output ${String(usage.outputTokens)} (reasoning ${String(usage.reasoningOutputTokens)}), total ${String(usage.totalTokens)}${usage.modelCallCount === undefined ? "" : `, model calls ${String(usage.modelCallCount)}`}\n${formatContext(usage)}`;
|
|
40
43
|
const formatContent = (turn) => `input:\n${block(turn.input.text)}\n${turn.state === "completed" ? `response:\n${block(turn.responseText)}\n` : ""}`;
|
|
41
44
|
const shownContent = (result) => result.contentIncluded && result.turn !== undefined
|
|
42
45
|
? formatContent(result.turn)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maiaos/cli",
|
|
3
|
-
"version": "0.1.0-canary.
|
|
3
|
+
"version": "0.1.0-canary.49",
|
|
4
4
|
"description": "The maia CLI and MCP server: start, drive, observe and stop swarms of Claude Code and Codex agents from a terminal, a script or another agent.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"maia",
|
|
@@ -64,9 +64,9 @@
|
|
|
64
64
|
"dependencies": {
|
|
65
65
|
"@earendil-works/pi-tui": "1.0.0",
|
|
66
66
|
"@effect/platform-node-shared": "4.0.0",
|
|
67
|
-
"@maiaos/agent": "0.1.0-canary.
|
|
68
|
-
"@maiaos/client-core": "0.1.0-canary.
|
|
69
|
-
"@maiaos/sdk": "0.1.0-canary.
|
|
67
|
+
"@maiaos/agent": "0.1.0-canary.49",
|
|
68
|
+
"@maiaos/client-core": "0.1.0-canary.49",
|
|
69
|
+
"@maiaos/sdk": "0.1.0-canary.49",
|
|
70
70
|
"effect": "4.0.0"
|
|
71
71
|
},
|
|
72
72
|
"scripts": {
|