@akanjs/cli 3.1.1-rc.11 → 3.1.1-rc.12
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/.build-stamp +1 -1
- package/{CodeAgent-5t8m16w8.js → CodeAgent-eaazb526.js} +2 -2
- package/{CodeTui-drgacyvs.js → CodeTui-e7nh3rv9.js} +1 -1
- package/akanCode.js +2 -2
- package/{code.command-w1rt357h.js → code.command-at39gpkg.js} +4 -4
- package/{index-657908e5.js → index-8wd5r2xv.js} +3 -1
- package/{index-6y1991s6.js → index-qsz6w3d6.js} +6 -1
- package/index.js +1 -1
- package/package.json +2 -2
- package/skills/akan-code/SKILL.md +1 -0
package/.build-stamp
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
5628eeacfe012ab2f51a9f9b30841ef68e770d67b4789aaf207d8e9a5d15f035
|
package/akanCode.js
CHANGED
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
CodeMailbox2,
|
|
29
29
|
CodeSessionFork2,
|
|
30
30
|
CodeAgent2
|
|
31
|
-
} from "./index-
|
|
31
|
+
} from "./index-qsz6w3d6.js";
|
|
32
32
|
import {
|
|
33
33
|
akanCodeDefaultModel2,
|
|
34
34
|
akanCodeModel2,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
SubagentPool2,
|
|
41
41
|
akanCodePaths2,
|
|
42
42
|
AkanCodeCompaction2
|
|
43
|
-
} from "./index-
|
|
43
|
+
} from "./index-8wd5r2xv.js";
|
|
44
44
|
import"./index-7md2g9vw.js";
|
|
45
45
|
import {
|
|
46
46
|
CodeAgentRpcHost2
|
|
@@ -19,7 +19,7 @@ class CodeRunner extends runner("code") {
|
|
|
19
19
|
async serve(options, listen) {
|
|
20
20
|
await import("./consoleToStderr-h5bryj94.js");
|
|
21
21
|
const [{ CodeAgent }, { CodeAgentRpcHost }, { CodeAgentRpcListener }] = await Promise.all([
|
|
22
|
-
import("./CodeAgent-
|
|
22
|
+
import("./CodeAgent-eaazb526.js"),
|
|
23
23
|
import("./CodeAgentRpcHost-9g27hmer.js"),
|
|
24
24
|
import("./CodeAgentRpcListener-7p7z5dd7.js")
|
|
25
25
|
]);
|
|
@@ -34,8 +34,8 @@ class CodeRunner extends runner("code") {
|
|
|
34
34
|
}
|
|
35
35
|
async tui(options, seed) {
|
|
36
36
|
const [{ CodeAgent }, { CodeTui }] = await Promise.all([
|
|
37
|
-
import("./CodeAgent-
|
|
38
|
-
import("./CodeTui-
|
|
37
|
+
import("./CodeAgent-eaazb526.js"),
|
|
38
|
+
import("./CodeTui-e7nh3rv9.js")
|
|
39
39
|
]);
|
|
40
40
|
const agentOptions = await CodeRunner.#agentOptions(options, false);
|
|
41
41
|
let resume = options.resume;
|
|
@@ -67,7 +67,7 @@ class CodeRunner extends runner("code") {
|
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
async run(prompt, options) {
|
|
70
|
-
const { CodeAgent } = await import("./CodeAgent-
|
|
70
|
+
const { CodeAgent } = await import("./CodeAgent-eaazb526.js");
|
|
71
71
|
const agent = await CodeAgent.create(await CodeRunner.#agentOptions(options, false));
|
|
72
72
|
const printer = new CodeAgentStreamPrinter2({ json: options.json, thinking: options.thinking });
|
|
73
73
|
agent.on((event) => printer.print(event));
|
|
@@ -179,13 +179,15 @@ class SubagentPool2 {
|
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
async#run(id, kind, prompt, signal) {
|
|
182
|
-
const { CodeAgent } = await import("./CodeAgent-
|
|
182
|
+
const { CodeAgent } = await import("./CodeAgent-eaazb526.js");
|
|
183
183
|
const budget = this.#options.parent.tools.subagent;
|
|
184
184
|
const child = SubagentPool2.childOf(this.#options.parent, kind);
|
|
185
|
+
const model = this.#options.model?.();
|
|
185
186
|
const agent = await CodeAgent.create({
|
|
186
187
|
workspace: this.#options.workspace,
|
|
187
188
|
cwd: this.#options.cwd,
|
|
188
189
|
profile: child,
|
|
190
|
+
...model ? { model } : {},
|
|
189
191
|
apps: [],
|
|
190
192
|
depth: this.#options.depth + 1,
|
|
191
193
|
subagentSpend: this.#spend
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
McpServerConfig,
|
|
6
6
|
McpSignIn,
|
|
7
7
|
AkanCodeCompaction2
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-8wd5r2xv.js";
|
|
9
9
|
import {
|
|
10
10
|
stripAnsi
|
|
11
11
|
} from "./index-7md2g9vw.js";
|
|
@@ -1765,6 +1765,7 @@ class AkanCodePlugins2 {
|
|
|
1765
1765
|
workspace: options.workspace,
|
|
1766
1766
|
cwd: options.cwd,
|
|
1767
1767
|
parent: options.profile,
|
|
1768
|
+
...options.model ? { model: options.model } : {},
|
|
1768
1769
|
depth: options.depth,
|
|
1769
1770
|
...options.subagentSpend ? { spend: options.subagentSpend } : {},
|
|
1770
1771
|
...options.onNotice ? { onNotice: options.onNotice } : {},
|
|
@@ -2529,6 +2530,10 @@ class CodeAgent2 {
|
|
|
2529
2530
|
profile: options.profile,
|
|
2530
2531
|
apps: options.apps ?? [],
|
|
2531
2532
|
canSeeImages: akanCodeModelSupportsImages2(model),
|
|
2533
|
+
model: () => {
|
|
2534
|
+
const current = agent.#session?.model;
|
|
2535
|
+
return current ? { provider: current.provider, id: current.id } : undefined;
|
|
2536
|
+
},
|
|
2532
2537
|
deepseek: await DeepSeekWeb.fromRuntime(modelRuntime, !!proxy),
|
|
2533
2538
|
depth: options.depth ?? 0,
|
|
2534
2539
|
...options.subagentSpend ? { subagentSpend: options.subagentSpend } : {},
|
package/index.js
CHANGED
|
@@ -24,7 +24,7 @@ import path from "path";
|
|
|
24
24
|
var commandModules = {
|
|
25
25
|
workspace: async () => (await import("./workspace.command-j1680trm.js")).WorkspaceCommand,
|
|
26
26
|
agent: async () => (await import("./agent.command-h82gepwn.js")).AgentCommand,
|
|
27
|
-
code: async () => (await import("./code.command-
|
|
27
|
+
code: async () => (await import("./code.command-at39gpkg.js")).CodeCommand,
|
|
28
28
|
application: async () => (await import("./application.command-j1reb9p1.js")).ApplicationCommand,
|
|
29
29
|
library: async () => (await import("./library.command-td8t85kb.js")).LibraryCommand,
|
|
30
30
|
localRegistry: async () => (await import("./localRegistry.command-jx9zkmxf.js")).LocalRegistryCommand,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akanjs/cli",
|
|
3
|
-
"version": "3.1.1-rc.
|
|
3
|
+
"version": "3.1.1-rc.12",
|
|
4
4
|
"sourceType": "module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@earendil-works/pi-tui": "1.3.0",
|
|
40
40
|
"@inquirer/prompts": "^8.7.3",
|
|
41
41
|
"@tailwindcss/node": "^4.3.3",
|
|
42
|
-
"akanjs": "3.1.1-rc.
|
|
42
|
+
"akanjs": "3.1.1-rc.12",
|
|
43
43
|
"chalk": "^6.0.1",
|
|
44
44
|
"commander": "^15.0.0",
|
|
45
45
|
"dayjs": "^1.11.23",
|
|
@@ -85,6 +85,7 @@ Stored under `.akan/code/sessions` — project history, so a second checkout of
|
|
|
85
85
|
## Model, effort, keys
|
|
86
86
|
|
|
87
87
|
- `/model <provider>/<id>`, e.g. `/model deepseek/deepseek-v4-pro`. `/effort <level>` for how hard it thinks.
|
|
88
|
+
A `task` sub-agent starts on the model the session is on at that moment.
|
|
88
89
|
- A provider is authorized by **`<PROVIDER>_API_KEY`** — `DEEPSEEK_API_KEY`, `ANTHROPIC_API_KEY`. The
|
|
89
90
|
workspace's own `.env` is read as well as the environment, and a key found there is used for the run and
|
|
90
91
|
never copied anywhere.
|