@akanjs/cli 3.3.0-rc.7 → 3.3.0-rc.8
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 +2 -2
- package/{CodeAgent-277k8f4q.js → CodeAgent-cqbf9gsv.js} +2 -2
- package/{CodeAgentRpcHost-6dzfkvsc.js → CodeAgentRpcHost-pwps2d67.js} +1 -1
- package/{CodeTui-rk7zw5mx.js → CodeTui-ehdr4hgw.js} +43 -3
- package/TunnelShare-0p4dy89e.js +16 -0
- package/{agent.command-m6scv9dh.js → agent.command-x55ncdjm.js} +17 -17
- package/akanCode.js +4 -4
- package/{appExecutor-qt1nm242.js → appExecutor-1ctzymwa.js} +3 -3
- package/{application.command-rdjx4678.js → application.command-xpntxnh8.js} +14 -14
- package/{applicationBuildRunner-6jkbfzmm.js → applicationBuildRunner-19c76791.js} +9 -9
- package/buildBatch.proc.js +10 -11
- package/{cloud.command-4kw1vbs0.js → cloud.command-p3ybjes7.js} +18 -18
- package/cloud.script-0dsyd10v.js +30 -0
- package/{code.command-87btt2a0.js → code.command-m6skj1kj.js} +31 -16
- package/{context.command-bbq2tdj4.js → context.command-3c3nv0d6.js} +18 -18
- package/context.runner-yyp7a112.js +32 -0
- package/{csrArtifactBuilder-wrqsfn1s.js → csrArtifactBuilder-mdh9ykn2.js} +2 -2
- package/{guideline.command-v2daz21k.js → guideline.command-725fq5p0.js} +6 -6
- package/guidelines/agentRule/agentRule.instruction.md +46 -7
- package/guidelines/conventions/rules/config.md +2 -1
- package/guidelines/errorCodes/errorCodes.instruction.md +4 -0
- package/guidelines/mcpRule/mcpRule.instruction.md +11 -4
- package/guidelines/runtimeRule/runtimeRule.instruction.md +68 -4
- package/incrementalBuilder.proc.js +8 -8
- package/{index-5ptvewmq.js → index-22bwg8hy.js} +1 -1
- package/{index-9f3reh2y.js → index-2v38x3ad.js} +12 -1
- package/{index-fqhr7j56.js → index-3a3vy2xy.js} +8 -8
- package/{index-eap5y4w5.js → index-3mj5trqc.js} +2 -2
- package/{index-zfmc4380.js → index-3r1crbct.js} +1 -1
- package/{index-sxnszzh7.js → index-3zkhg65e.js} +11 -11
- package/{index-m4s4tzjr.js → index-4r8dgm4x.js} +3 -3
- package/{index-94h6dxc3.js → index-4yvtqcme.js} +7 -7
- package/{index-vq0y1vr4.js → index-5ahe641t.js} +8 -8
- package/{index-w18qdjyf.js → index-8bta5pnr.js} +2 -2
- package/{index-cfzqdsam.js → index-9a9t77hz.js} +2 -2
- package/{index-bjg9thz8.js → index-9gjcbp2g.js} +1 -1
- package/{index-k29kg5c1.js → index-a4gcdffy.js} +485 -50
- package/{index-zas8gm0a.js → index-cbm9gzgx.js} +5 -5
- package/{index-bwhja4dj.js → index-ckcc9ab3.js} +8 -8
- package/{index-2t7jnfg5.js → index-crd99zqs.js} +1 -1
- package/{index-ewp82tjf.js → index-f4jydw2x.js} +1 -1
- package/{index-0vv0a5h8.js → index-fagjtk6m.js} +2 -2
- package/{index-8a4mnn65.js → index-fjqapyex.js} +31 -5
- package/{index-ghs8gtvp.js → index-h8w1n11r.js} +4 -4
- package/{index-999e5kp4.js → index-hxg6ctk2.js} +5 -5
- package/{index-0vtpxfx6.js → index-j2wq064m.js} +5 -5
- package/{index-2ktpwjgf.js → index-kbnvyhy4.js} +3 -3
- package/{index-jzwdwse0.js → index-m303nhv6.js} +6 -6
- package/{index-hfqc5n8e.js → index-nmdmkjt2.js} +4 -4
- package/{index-vznyyaf8.js → index-nnmw56fz.js} +5 -5
- package/{index-nd7tzzd9.js → index-pr9nypg7.js} +2 -2
- package/{index-4gxaerb7.js → index-pyjkbg8e.js} +2 -2
- package/{index-g7hm77j6.js → index-q63nbpv7.js} +3 -3
- package/{index-9jm7t0h5.js → index-qecrqpt6.js} +4 -21
- package/{index-6yefp97x.js → index-rdcgz02t.js} +4 -4
- package/{index-zx3bv21b.js → index-rt7q20sj.js} +1 -1
- package/{index-bsew0a12.js → index-se7n78fh.js} +1 -1
- package/{index-s4nvxpzm.js → index-sxbsrndq.js} +1 -1
- package/{index-nd69pk6t.js → index-t23dgyaf.js} +7 -7
- package/{index-609zbjve.js → index-v16gj2as.js} +83 -63
- package/{index-c1t41tk8.js → index-vnk1qwgr.js} +4 -4
- package/{index-8zxkjybr.js → index-wkwe91sn.js} +27 -17
- package/{index-3h0zqg41.js → index-wxqp1amd.js} +7 -7
- package/{index-c67vjafa.js → index-yey1envc.js} +1 -1
- package/index.js +27 -27
- package/{libExecutor-p21kkayq.js → libExecutor-n8hpm8s7.js} +2 -2
- package/{library.command-m4gw18qq.js → library.command-8abb26pg.js} +7 -7
- package/{localRegistry.command-edtbn4cy.js → localRegistry.command-sa211m1z.js} +17 -17
- package/{module.command-9vfdxapr.js → module.command-z3cwjf0p.js} +9 -9
- package/{package.command-rt4y8xaf.js → package.command-akynhtee.js} +8 -8
- package/package.json +2 -2
- package/{page.command-4zc20rnv.js → page.command-3fpdavk9.js} +7 -7
- package/{pipeline.command-4ekd9xgb.js → pipeline.command-ca95n8rd.js} +6 -6
- package/{pkgExecutor-mh903rz9.js → pkgExecutor-a73q41vx.js} +2 -2
- package/{primitive.command-5g3xe4mf.js → primitive.command-xwe9ggnf.js} +10 -10
- package/{projectTypecheck-bz6smek9.js → projectTypecheck-7g542ymk.js} +1 -1
- package/{quality.command-zf8dyc9w.js → quality.command-7wz7y8z1.js} +8 -8
- package/{repair.command-sx0eyq4w.js → repair.command-dej1qtfq.js} +9 -9
- package/{scalar.command-4bvzmbbh.js → scalar.command-z9qfxnvm.js} +8 -8
- package/skills/akan-agent/SKILL.md +8 -1
- package/skills/akan-code/SKILL.md +38 -3
- package/{subspace.command-tg85k9ry.js → subspace.command-9wekm4gn.js} +10 -10
- package/templates/localDev/docker-compose.yaml.template +2 -2
- package/{tunnel.command-t629kcm0.js → tunnel.command-cxc4h3j8.js} +9 -9
- package/{verify.command-837mthft.js → verify.command-j0w9dr5c.js} +14 -14
- package/{workflow.command-42p9g0w8.js → workflow.command-yt4sz04b.js} +14 -14
- package/{workspace.command-12egv8xq.js → workspace.command-8mp4mcp2.js} +31 -31
- package/TunnelShare-8pejh5jk.js +0 -16
- package/cloud.script-af2js02g.js +0 -30
- package/context.runner-ma47t32x.js +0 -32
package/.build-stamp
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
db2d796416da71f90249192d7cde66c22d2d4be08781dfcc173256798d3bace0
|
|
2
|
+
12d73d6c-fdc9-4ba2-8bbf-95f68f462446
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
McpTokenStore,
|
|
5
5
|
McpSignIn,
|
|
6
6
|
AkanCodeCompaction2
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-22bwg8hy.js";
|
|
8
8
|
import"./index-zyjztrvc.js";
|
|
9
9
|
import"./index-xv3pvdw4.js";
|
|
10
10
|
import {
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
CodeTuiParts2,
|
|
21
21
|
CodeTuiClipboard2,
|
|
22
22
|
CodeTuiFiles2
|
|
23
|
-
} from "./index-
|
|
23
|
+
} from "./index-2v38x3ad.js";
|
|
24
24
|
import {
|
|
25
25
|
openBrowser
|
|
26
26
|
} from "./index-9dp031by.js";
|
|
@@ -213,6 +213,8 @@ var CodeTuiApp = ({ actions }) => {
|
|
|
213
213
|
return actions.answerConfirm(true);
|
|
214
214
|
if (input === "n" || input === "N")
|
|
215
215
|
return actions.answerConfirm(false);
|
|
216
|
+
if (input === "a" || input === "A")
|
|
217
|
+
return actions.allowForSession();
|
|
216
218
|
return;
|
|
217
219
|
}
|
|
218
220
|
if (snapshot.mode === "select") {
|
|
@@ -626,6 +628,33 @@ class CodeTuiCommandRunner {
|
|
|
626
628
|
this.#host.fail(error);
|
|
627
629
|
}
|
|
628
630
|
}
|
|
631
|
+
allowed(argument) {
|
|
632
|
+
if (argument === "clear") {
|
|
633
|
+
const count = this.#agent.allowed.clear();
|
|
634
|
+
return this.#host.say(count ? "nothing is allowed any more \xB7 every command is asked about again" : "nothing was allowed");
|
|
635
|
+
}
|
|
636
|
+
if (argument)
|
|
637
|
+
return this.#overlay.open("allowed", "Usage: /allowed [clear]");
|
|
638
|
+
this.#overlay.open("allowed", CodeTuiCommandRunner.allowedList(this.#agent.allowed.names));
|
|
639
|
+
}
|
|
640
|
+
static allowedList(names) {
|
|
641
|
+
const always = "A networking command, a push or publish, rm and a command that runs another (sudo, xargs, sh \u2026) are asked about every time.";
|
|
642
|
+
if (!names.length)
|
|
643
|
+
return [
|
|
644
|
+
"Nothing is allowed for this session yet.",
|
|
645
|
+
"",
|
|
646
|
+
"Answer a at an approval to stop being asked about that command until the session ends.",
|
|
647
|
+
always
|
|
648
|
+
].join(`
|
|
649
|
+
`);
|
|
650
|
+
return [
|
|
651
|
+
...names,
|
|
652
|
+
"",
|
|
653
|
+
"These run without asking until this session ends. /allowed clear forgets them.",
|
|
654
|
+
always
|
|
655
|
+
].join(`
|
|
656
|
+
`);
|
|
657
|
+
}
|
|
629
658
|
#mcpAuth(verb, name) {
|
|
630
659
|
const root = this.#agent.workspaceRoot;
|
|
631
660
|
if (!name)
|
|
@@ -1238,12 +1267,15 @@ class CodeTuiQuestion {
|
|
|
1238
1267
|
}
|
|
1239
1268
|
static promptOf(question, approval) {
|
|
1240
1269
|
if (approval)
|
|
1241
|
-
return `approve? ${approval.summary} [y/n]`;
|
|
1270
|
+
return `approve? ${approval.summary} ${approval.remember?.length ? "[y/n/a]" : "[y/n]"}`;
|
|
1242
1271
|
return question ? `? ${question.prompt}` : "";
|
|
1243
1272
|
}
|
|
1244
1273
|
hint(mode, multiSelect) {
|
|
1245
1274
|
if (this.#typing)
|
|
1246
1275
|
return "enter answer \xB7 esc back to the choices";
|
|
1276
|
+
const remember = this.#transcript.approval?.remember;
|
|
1277
|
+
if (mode === "confirm" && remember?.length)
|
|
1278
|
+
return `y yes \xB7 n no \xB7 esc no \xB7 a yes, and stop asking about ${remember.join(", ")} this session`;
|
|
1247
1279
|
if (mode === "confirm")
|
|
1248
1280
|
return "y yes \xB7 n no \xB7 esc no";
|
|
1249
1281
|
if (mode === "select")
|
|
@@ -1279,6 +1311,11 @@ class CodeTuiQuestion {
|
|
|
1279
1311
|
if (question)
|
|
1280
1312
|
this.answer(question.questionId, { text: value ? "yes" : "no" });
|
|
1281
1313
|
};
|
|
1314
|
+
allowForSession = () => {
|
|
1315
|
+
const approval = this.#transcript.approval;
|
|
1316
|
+
if (approval?.remember?.length)
|
|
1317
|
+
this.#agent.approve(approval.approvalId, true, "session");
|
|
1318
|
+
};
|
|
1282
1319
|
open(question) {
|
|
1283
1320
|
this.#typing = false;
|
|
1284
1321
|
this.#checked = [];
|
|
@@ -1395,6 +1432,7 @@ class CodeTui {
|
|
|
1395
1432
|
move: this.#move,
|
|
1396
1433
|
toggle: this.#question.toggle,
|
|
1397
1434
|
answerConfirm: this.#question.answerConfirm,
|
|
1435
|
+
allowForSession: this.#question.allowForSession,
|
|
1398
1436
|
cancel: this.#cancel,
|
|
1399
1437
|
interrupt: this.#interrupt
|
|
1400
1438
|
}
|
|
@@ -1642,6 +1680,8 @@ ${tools.join(" \xB7 ")}`);
|
|
|
1642
1680
|
return this.#overlay.open("agents", this.#runner.agentList());
|
|
1643
1681
|
case "mcp":
|
|
1644
1682
|
return this.#runner.mcp(argument);
|
|
1683
|
+
case "allowed":
|
|
1684
|
+
return this.#runner.allowed(argument);
|
|
1645
1685
|
case "name":
|
|
1646
1686
|
if (!argument)
|
|
1647
1687
|
return this.#overlay.open("name", "Usage: /name <what this session is about>");
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
TunnelShare2
|
|
4
|
+
} from "./index-qecrqpt6.js";
|
|
5
|
+
import"./index-pyjkbg8e.js";
|
|
6
|
+
import"./index-fjqapyex.js";
|
|
7
|
+
import"./index-m9jj544v.js";
|
|
8
|
+
import"./index-9a9t77hz.js";
|
|
9
|
+
import"./index-yey1envc.js";
|
|
10
|
+
import"./index-crd99zqs.js";
|
|
11
|
+
import"./index-v16gj2as.js";
|
|
12
|
+
import"./index-j4yvgfhr.js";
|
|
13
|
+
import"./index-zyjztrvc.js";
|
|
14
|
+
export {
|
|
15
|
+
TunnelShare2 as TunnelShare
|
|
16
|
+
};
|
|
@@ -2,36 +2,36 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Workspace,
|
|
4
4
|
command
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-nnmw56fz.js";
|
|
6
6
|
import"./index-j4yvgfhr.js";
|
|
7
|
-
import"./index-
|
|
7
|
+
import"./index-v16gj2as.js";
|
|
8
8
|
import"./index-zyjztrvc.js";
|
|
9
|
-
import"./index-
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
9
|
+
import"./index-9a9t77hz.js";
|
|
10
|
+
import"./index-yey1envc.js";
|
|
11
|
+
import"./index-crd99zqs.js";
|
|
12
|
+
import"./index-q63nbpv7.js";
|
|
13
13
|
import"./index-trffs83s.js";
|
|
14
|
-
import"./index-
|
|
14
|
+
import"./index-h8w1n11r.js";
|
|
15
15
|
import"./index-1p81ecbz.js";
|
|
16
16
|
import"./index-xv3pvdw4.js";
|
|
17
17
|
import"./index-j3fqs8rc.js";
|
|
18
|
-
import"./index-
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-
|
|
18
|
+
import"./index-wkwe91sn.js";
|
|
19
|
+
import"./index-8bta5pnr.js";
|
|
20
|
+
import"./index-fjqapyex.js";
|
|
21
|
+
import"./index-f4jydw2x.js";
|
|
22
22
|
import"./index-m9jj544v.js";
|
|
23
|
-
import"./index-
|
|
24
|
-
import"./index-
|
|
23
|
+
import"./index-j2wq064m.js";
|
|
24
|
+
import"./index-se7n78fh.js";
|
|
25
25
|
import"./index-62md4dwy.js";
|
|
26
26
|
import"./index-zyb0ebm4.js";
|
|
27
27
|
import"./index-jf4vk1s0.js";
|
|
28
28
|
import"./index-t4d0ckde.js";
|
|
29
|
-
import"./index-
|
|
29
|
+
import"./index-wxqp1amd.js";
|
|
30
30
|
import {
|
|
31
31
|
AgentScript
|
|
32
|
-
} from "./index-
|
|
33
|
-
import"./index-
|
|
34
|
-
import"./index-
|
|
32
|
+
} from "./index-ckcc9ab3.js";
|
|
33
|
+
import"./index-rt7q20sj.js";
|
|
34
|
+
import"./index-3r1crbct.js";
|
|
35
35
|
|
|
36
36
|
// pkgs/@akanjs/cli/agent/agent.command.ts
|
|
37
37
|
class AgentCommand extends command("agent", [AgentScript], ({ public: target }) => ({
|
package/akanCode.js
CHANGED
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
CodeMailbox2,
|
|
35
35
|
CodeSessionFork2,
|
|
36
36
|
CodeAgent2
|
|
37
|
-
} from "./index-
|
|
37
|
+
} from "./index-a4gcdffy.js";
|
|
38
38
|
import {
|
|
39
39
|
akanCodeDefaultModel2,
|
|
40
40
|
akanCodeModel2,
|
|
@@ -45,10 +45,10 @@ import {
|
|
|
45
45
|
import {
|
|
46
46
|
SubagentPool2,
|
|
47
47
|
AkanCodeCompaction2
|
|
48
|
-
} from "./index-
|
|
48
|
+
} from "./index-22bwg8hy.js";
|
|
49
49
|
import {
|
|
50
50
|
CodeAgentRpcHost2
|
|
51
|
-
} from "./index-
|
|
51
|
+
} from "./index-sxbsrndq.js";
|
|
52
52
|
import {
|
|
53
53
|
CodeTuiCommands2,
|
|
54
54
|
CodeTuiLines2,
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
CodeTuiParts2,
|
|
59
59
|
CodeTuiClipboard2,
|
|
60
60
|
CodeTuiFiles2
|
|
61
|
-
} from "./index-
|
|
61
|
+
} from "./index-2v38x3ad.js";
|
|
62
62
|
import"./index-9bv479q5.js";
|
|
63
63
|
export {
|
|
64
64
|
AkanCli2 as AkanCli,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
AppExecutor2
|
|
4
|
-
} from "./index-
|
|
5
|
-
import"./index-
|
|
6
|
-
import"./index-
|
|
4
|
+
} from "./index-9a9t77hz.js";
|
|
5
|
+
import"./index-yey1envc.js";
|
|
6
|
+
import"./index-v16gj2as.js";
|
|
7
7
|
import"./index-j4yvgfhr.js";
|
|
8
8
|
import"./index-zyjztrvc.js";
|
|
9
9
|
export {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import"./index-zyjztrvc.js";
|
|
3
|
-
import"./index-
|
|
3
|
+
import"./index-v16gj2as.js";
|
|
4
4
|
import {
|
|
5
5
|
CliError
|
|
6
6
|
} from "./index-j4yvgfhr.js";
|
|
7
7
|
import {
|
|
8
8
|
RouteJsBudget
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-8bta5pnr.js";
|
|
10
10
|
import {
|
|
11
11
|
App,
|
|
12
12
|
Apps,
|
|
@@ -15,19 +15,19 @@ import {
|
|
|
15
15
|
Exec,
|
|
16
16
|
Workspace,
|
|
17
17
|
command
|
|
18
|
-
} from "./index-
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-
|
|
22
|
-
import"./index-
|
|
23
|
-
import"./index-
|
|
18
|
+
} from "./index-nnmw56fz.js";
|
|
19
|
+
import"./index-9a9t77hz.js";
|
|
20
|
+
import"./index-yey1envc.js";
|
|
21
|
+
import"./index-crd99zqs.js";
|
|
22
|
+
import"./index-fjqapyex.js";
|
|
23
|
+
import"./index-f4jydw2x.js";
|
|
24
24
|
import"./index-m9jj544v.js";
|
|
25
|
-
import"./index-
|
|
26
|
-
import"./index-
|
|
25
|
+
import"./index-4r8dgm4x.js";
|
|
26
|
+
import"./index-wkwe91sn.js";
|
|
27
27
|
import"./index-rwgqba9p.js";
|
|
28
28
|
import {
|
|
29
29
|
ApplicationScript
|
|
30
|
-
} from "./index-
|
|
30
|
+
} from "./index-3zkhg65e.js";
|
|
31
31
|
import {
|
|
32
32
|
writeOption,
|
|
33
33
|
nativeTargetOption,
|
|
@@ -35,9 +35,9 @@ import {
|
|
|
35
35
|
allowLocalOption,
|
|
36
36
|
publicEnvOption
|
|
37
37
|
} from "./index-mdjc93e1.js";
|
|
38
|
-
import"./index-
|
|
38
|
+
import"./index-rt7q20sj.js";
|
|
39
39
|
import"./index-9bv479q5.js";
|
|
40
|
-
import"./index-
|
|
40
|
+
import"./index-3r1crbct.js";
|
|
41
41
|
|
|
42
42
|
// pkgs/@akanjs/cli/application/application.command.ts
|
|
43
43
|
import { MigrationCommand } from "akanjs/server/migration/migrationCommand";
|
|
@@ -177,7 +177,7 @@ var inspectTargets = ({ public: target }) => ({
|
|
|
177
177
|
}).with(App).option("level", String, { desc: "minimum level: trace, verbose, debug, info, warn, error", nullable: true }).option("grep", String, { desc: "substring the message must contain", nullable: true }).option("endpoint", String, {
|
|
178
178
|
desc: "endpoint glob(s), comma-separated: mutation:*, query:userList",
|
|
179
179
|
nullable: true
|
|
180
|
-
}).option("trace", String, { desc: "one request's traceId", nullable: true }).option("child", String, { desc: "replica index(es), comma-separated", nullable: true }).option("role", String, {
|
|
180
|
+
}).option("trace", String, { desc: "one request's traceId, or the id its caller sent", nullable: true }).option("child", String, { desc: "replica index(es), comma-separated", nullable: true }).option("role", String, {
|
|
181
181
|
flag: "R",
|
|
182
182
|
desc: "process role(s): gateway, federation, batch, all, rsc-worker",
|
|
183
183
|
nullable: true
|
|
@@ -5,29 +5,29 @@ import {
|
|
|
5
5
|
parseEnvFile,
|
|
6
6
|
WorkspaceExecutor,
|
|
7
7
|
ServerEnvProfile
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-v16gj2as.js";
|
|
9
9
|
import"./index-zyjztrvc.js";
|
|
10
10
|
import"./index-j4yvgfhr.js";
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
11
|
+
import"./index-9a9t77hz.js";
|
|
12
|
+
import"./index-yey1envc.js";
|
|
13
|
+
import"./index-crd99zqs.js";
|
|
14
14
|
import {
|
|
15
15
|
NARROWABLE_VENDOR_SPECIFIERS
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-4yvtqcme.js";
|
|
17
17
|
import {
|
|
18
18
|
FontPruner,
|
|
19
19
|
precompressArtifacts,
|
|
20
20
|
RouteJsBudget
|
|
21
|
-
} from "./index-
|
|
22
|
-
import"./index-
|
|
21
|
+
} from "./index-8bta5pnr.js";
|
|
22
|
+
import"./index-3mj5trqc.js";
|
|
23
23
|
import {
|
|
24
24
|
AllRoutesBuilder,
|
|
25
25
|
SsrBaseArtifactBuilder,
|
|
26
26
|
VendorImportScanner
|
|
27
|
-
} from "./index-
|
|
27
|
+
} from "./index-nmdmkjt2.js";
|
|
28
28
|
import {
|
|
29
29
|
CsrArtifactBuilder2
|
|
30
|
-
} from "./index-
|
|
30
|
+
} from "./index-pr9nypg7.js";
|
|
31
31
|
import"./index-62md4dwy.js";
|
|
32
32
|
|
|
33
33
|
// pkgs/@akanjs/devkit/app/applicationBuildRunner.ts
|
package/buildBatch.proc.js
CHANGED
|
@@ -2,43 +2,42 @@
|
|
|
2
2
|
import"./index-zyjztrvc.js";
|
|
3
3
|
import {
|
|
4
4
|
WorkspaceExecutor
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-v16gj2as.js";
|
|
6
6
|
import"./index-j4yvgfhr.js";
|
|
7
7
|
import {
|
|
8
8
|
FontOptimizer,
|
|
9
9
|
ApplicationBuildReporter
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-8bta5pnr.js";
|
|
11
11
|
import {
|
|
12
12
|
resolveSsrPageEntriesForApp,
|
|
13
13
|
AppExecutor2
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-9a9t77hz.js";
|
|
15
15
|
import {
|
|
16
16
|
computeRouteSeedIndex,
|
|
17
17
|
saveRouteSeedIndex,
|
|
18
18
|
CsrDevBundler,
|
|
19
19
|
SsrDevBundler
|
|
20
|
-
} from "./index-
|
|
21
|
-
import"./index-
|
|
22
|
-
import"./index-
|
|
20
|
+
} from "./index-4yvtqcme.js";
|
|
21
|
+
import"./index-yey1envc.js";
|
|
22
|
+
import"./index-crd99zqs.js";
|
|
23
23
|
import {
|
|
24
24
|
ServerGraphFile,
|
|
25
25
|
PagesBundleBuilder
|
|
26
|
-
} from "./index-
|
|
26
|
+
} from "./index-3mj5trqc.js";
|
|
27
27
|
import {
|
|
28
28
|
CssCompiler,
|
|
29
29
|
SsrBaseArtifactBuilder
|
|
30
|
-
} from "./index-
|
|
30
|
+
} from "./index-nmdmkjt2.js";
|
|
31
31
|
import {
|
|
32
32
|
CsrArtifactBuilder2
|
|
33
|
-
} from "./index-
|
|
33
|
+
} from "./index-pr9nypg7.js";
|
|
34
34
|
import"./index-62md4dwy.js";
|
|
35
|
-
import"./index-
|
|
35
|
+
import"./index-3r1crbct.js";
|
|
36
36
|
|
|
37
37
|
// pkgs/@akanjs/devkit/incrementalBuilder/buildBatch.proc.ts
|
|
38
38
|
import path from "path";
|
|
39
39
|
import { Logger } from "akanjs/common";
|
|
40
40
|
import { resolveDevCsrMode } from "akanjs/server/hmr/csrDevManifest";
|
|
41
|
-
|
|
42
41
|
class BuildBatch {
|
|
43
42
|
#logger = new Logger("BuildBatch");
|
|
44
43
|
#request;
|
|
@@ -3,34 +3,34 @@ import {
|
|
|
3
3
|
App,
|
|
4
4
|
Workspace,
|
|
5
5
|
command
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-nnmw56fz.js";
|
|
7
7
|
import"./index-j4yvgfhr.js";
|
|
8
|
-
import"./index-
|
|
8
|
+
import"./index-v16gj2as.js";
|
|
9
9
|
import"./index-zyjztrvc.js";
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
10
|
+
import"./index-9a9t77hz.js";
|
|
11
|
+
import"./index-yey1envc.js";
|
|
12
|
+
import"./index-crd99zqs.js";
|
|
13
|
+
import"./index-pyjkbg8e.js";
|
|
14
14
|
import {
|
|
15
15
|
PlatformTestRun
|
|
16
|
-
} from "./index-
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-
|
|
16
|
+
} from "./index-cbm9gzgx.js";
|
|
17
|
+
import"./index-fjqapyex.js";
|
|
18
|
+
import"./index-f4jydw2x.js";
|
|
19
19
|
import"./index-m9jj544v.js";
|
|
20
20
|
import {
|
|
21
21
|
npmRegistryFromEnv,
|
|
22
22
|
warnIgnoredNpmRegistry
|
|
23
23
|
} from "./index-jf4vk1s0.js";
|
|
24
|
-
import"./index-
|
|
25
|
-
import"./index-
|
|
26
|
-
import"./index-
|
|
24
|
+
import"./index-8bta5pnr.js";
|
|
25
|
+
import"./index-4r8dgm4x.js";
|
|
26
|
+
import"./index-wkwe91sn.js";
|
|
27
27
|
import"./index-rwgqba9p.js";
|
|
28
|
-
import"./index-
|
|
29
|
-
import"./index-
|
|
30
|
-
import"./index-
|
|
28
|
+
import"./index-3zkhg65e.js";
|
|
29
|
+
import"./index-se7n78fh.js";
|
|
30
|
+
import"./index-hxg6ctk2.js";
|
|
31
31
|
import {
|
|
32
32
|
CloudScript2
|
|
33
|
-
} from "./index-
|
|
33
|
+
} from "./index-t23dgyaf.js";
|
|
34
34
|
import {
|
|
35
35
|
writeOption,
|
|
36
36
|
oneNativeTargetOption,
|
|
@@ -41,9 +41,9 @@ import {
|
|
|
41
41
|
hostOption,
|
|
42
42
|
subspaceOption
|
|
43
43
|
} from "./index-mdjc93e1.js";
|
|
44
|
-
import"./index-
|
|
44
|
+
import"./index-rt7q20sj.js";
|
|
45
45
|
import"./index-9bv479q5.js";
|
|
46
|
-
import"./index-
|
|
46
|
+
import"./index-3r1crbct.js";
|
|
47
47
|
|
|
48
48
|
// pkgs/@akanjs/cli/cloud/cloud.command.ts
|
|
49
49
|
var localRegistryUrl = () => npmRegistryFromEnv() ?? "http://127.0.0.1:4873";
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
CloudScript2
|
|
4
|
+
} from "./index-t23dgyaf.js";
|
|
5
|
+
import"./index-cbm9gzgx.js";
|
|
6
|
+
import"./index-hxg6ctk2.js";
|
|
7
|
+
import"./index-3zkhg65e.js";
|
|
8
|
+
import"./index-4r8dgm4x.js";
|
|
9
|
+
import"./index-pyjkbg8e.js";
|
|
10
|
+
import"./index-jf4vk1s0.js";
|
|
11
|
+
import"./index-se7n78fh.js";
|
|
12
|
+
import"./index-wkwe91sn.js";
|
|
13
|
+
import"./index-rt7q20sj.js";
|
|
14
|
+
import"./index-f4jydw2x.js";
|
|
15
|
+
import"./index-fjqapyex.js";
|
|
16
|
+
import"./index-m9jj544v.js";
|
|
17
|
+
import"./index-nnmw56fz.js";
|
|
18
|
+
import"./index-9bv479q5.js";
|
|
19
|
+
import"./index-rwgqba9p.js";
|
|
20
|
+
import"./index-8bta5pnr.js";
|
|
21
|
+
import"./index-3r1crbct.js";
|
|
22
|
+
import"./index-9a9t77hz.js";
|
|
23
|
+
import"./index-yey1envc.js";
|
|
24
|
+
import"./index-crd99zqs.js";
|
|
25
|
+
import"./index-v16gj2as.js";
|
|
26
|
+
import"./index-j4yvgfhr.js";
|
|
27
|
+
import"./index-zyjztrvc.js";
|
|
28
|
+
export {
|
|
29
|
+
CloudScript2 as CloudScript
|
|
30
|
+
};
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
runner,
|
|
5
5
|
script,
|
|
6
6
|
command
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-nnmw56fz.js";
|
|
8
8
|
import"./index-j4yvgfhr.js";
|
|
9
|
-
import"./index-
|
|
9
|
+
import"./index-v16gj2as.js";
|
|
10
10
|
import"./index-zyjztrvc.js";
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
11
|
+
import"./index-9a9t77hz.js";
|
|
12
|
+
import"./index-yey1envc.js";
|
|
13
|
+
import"./index-crd99zqs.js";
|
|
14
14
|
import {
|
|
15
15
|
AkanCodeEnv,
|
|
16
16
|
akanCodePaths2
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
CodeAgentStreamPrinter2,
|
|
21
21
|
WorkspaceTrust
|
|
22
22
|
} from "./index-7ssr7wq4.js";
|
|
23
|
-
import"./index-
|
|
23
|
+
import"./index-3r1crbct.js";
|
|
24
24
|
|
|
25
25
|
// pkgs/@akanjs/cli/code/code.runner.ts
|
|
26
26
|
import { randomBytes } from "crypto";
|
|
@@ -82,8 +82,8 @@ class CodeRunner extends runner("code") {
|
|
|
82
82
|
async serve(options, listen) {
|
|
83
83
|
await import("./consoleToStderr-h5bryj94.js");
|
|
84
84
|
const [{ CodeAgent }, { CodeAgentRpcHost }, { CodeAgentRpcListener }] = await Promise.all([
|
|
85
|
-
import("./CodeAgent-
|
|
86
|
-
import("./CodeAgentRpcHost-
|
|
85
|
+
import("./CodeAgent-cqbf9gsv.js"),
|
|
86
|
+
import("./CodeAgentRpcHost-pwps2d67.js"),
|
|
87
87
|
import("./CodeAgentRpcListener-tcwrdvst.js")
|
|
88
88
|
]);
|
|
89
89
|
const address = listen ? CodeAgentRpcListener.parse(listen, { anyHost: !!options.rpcBindAny }) : null;
|
|
@@ -116,8 +116,8 @@ class CodeRunner extends runner("code") {
|
|
|
116
116
|
}
|
|
117
117
|
async tui(options, seed) {
|
|
118
118
|
const [{ CodeAgent }, { CodeTui }] = await Promise.all([
|
|
119
|
-
import("./CodeAgent-
|
|
120
|
-
import("./CodeTui-
|
|
119
|
+
import("./CodeAgent-cqbf9gsv.js"),
|
|
120
|
+
import("./CodeTui-ehdr4hgw.js")
|
|
121
121
|
]);
|
|
122
122
|
const start = await CodeRunner.#start(options, { hostAttached: false, interactive: true, ask: true });
|
|
123
123
|
const agentOptions = start.agent;
|
|
@@ -153,7 +153,7 @@ class CodeRunner extends runner("code") {
|
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
async run(prompt, options) {
|
|
156
|
-
const { CodeAgent } = await import("./CodeAgent-
|
|
156
|
+
const { CodeAgent } = await import("./CodeAgent-cqbf9gsv.js");
|
|
157
157
|
const ask = !!process.stdin.isTTY && !!process.stderr.isTTY;
|
|
158
158
|
const start = await CodeRunner.#start(options, { hostAttached: false, interactive: false, ask });
|
|
159
159
|
for (const warning of start.warnings)
|
|
@@ -185,7 +185,7 @@ class CodeRunner extends runner("code") {
|
|
|
185
185
|
model: CodeRunner.modelOf(options.model),
|
|
186
186
|
...options.compactAt !== undefined ? { autoCompactAt: options.compactAt } : {}
|
|
187
187
|
};
|
|
188
|
-
return { agent, warnings: [...CodeRunner.startWarnings(profile), ...trust] };
|
|
188
|
+
return { agent, warnings: [...CodeRunner.startWarnings(profile, options.ask === false), ...trust] };
|
|
189
189
|
}
|
|
190
190
|
static profileOf(options, { hostAttached, interactive = true }) {
|
|
191
191
|
if (!isCodeAgentPresetName(options.profile))
|
|
@@ -193,9 +193,12 @@ class CodeRunner extends runner("code") {
|
|
|
193
193
|
const root = options.app ? `${options.workspace.workspaceRoot}/apps/${options.app}` : options.workspace.workspaceRoot;
|
|
194
194
|
const profile = codeAgentPresets[options.profile](root);
|
|
195
195
|
const { askOutside: _ask, ...network } = profile.network;
|
|
196
|
+
const askNetwork = options.ask !== false && options.askNetwork !== false;
|
|
197
|
+
const askCommands = options.ask !== false && options.askCommands !== false;
|
|
196
198
|
return {
|
|
197
199
|
...profile,
|
|
198
|
-
...
|
|
200
|
+
...askNetwork ? {} : { network },
|
|
201
|
+
...!askCommands && profile.approval === "commands" ? { approval: "never" } : {},
|
|
199
202
|
ui: { ...profile.ui, canPrompt: CodeRunner.canPrompt(profile, hostAttached, interactive) }
|
|
200
203
|
};
|
|
201
204
|
}
|
|
@@ -207,11 +210,11 @@ class CodeRunner extends runner("code") {
|
|
|
207
210
|
return false;
|
|
208
211
|
return hostAttached || interactive && profile.ui.canPrompt;
|
|
209
212
|
}
|
|
210
|
-
static startWarnings(profile) {
|
|
213
|
+
static startWarnings(profile, unasked = false) {
|
|
211
214
|
return [
|
|
212
215
|
...AkanCodeEnv.ignored(),
|
|
213
216
|
...profile.name === "local" ? [
|
|
214
|
-
"The local profile is not a sandbox: it refuses known secret files and asks before an unlisted host, but a command
|
|
217
|
+
unasked ? "--no-ask: this session runs shell commands and network requests without asking. The local profile is not a sandbox: it refuses known secret files, but a command can read anything you can. Use --profile pod inside a container to isolate it." : "The local profile is not a sandbox: it refuses known secret files and asks before a shell command and an unlisted host, but a command you approve can read anything you can. Use --profile pod inside a container to isolate it."
|
|
215
218
|
] : []
|
|
216
219
|
];
|
|
217
220
|
}
|
|
@@ -278,6 +281,8 @@ class CodeScript extends script("code", [CodeRunner]) {
|
|
|
278
281
|
...options.resume ? { resume: options.resume } : {},
|
|
279
282
|
trustWorkspace: options.trustWorkspace,
|
|
280
283
|
askNetwork: options.askNetwork,
|
|
284
|
+
askCommands: options.askCommands,
|
|
285
|
+
ask: options.ask,
|
|
281
286
|
rpcBindAny: options.rpcBindAny,
|
|
282
287
|
rpcToken: options.rpcToken
|
|
283
288
|
};
|
|
@@ -316,6 +321,14 @@ class CodeCommand extends command("code", [CodeScript], ({ public: target }) =>
|
|
|
316
321
|
desc: "ask before fetching an unlisted host or running a networking command (local profile)",
|
|
317
322
|
flag: "N",
|
|
318
323
|
default: true
|
|
324
|
+
}).option("askCommands", Boolean, {
|
|
325
|
+
desc: "ask before running a shell command (local profile)",
|
|
326
|
+
flag: "C",
|
|
327
|
+
default: true
|
|
328
|
+
}).option("ask", Boolean, {
|
|
329
|
+
desc: "ask before a shell command or a network request; --no-ask runs this session without asking (local profile)",
|
|
330
|
+
flag: "A",
|
|
331
|
+
default: true
|
|
319
332
|
}).option("rpcBindAny", Boolean, {
|
|
320
333
|
desc: "let --rpc-listen bind an address other machines can reach",
|
|
321
334
|
flag: "B",
|
|
@@ -324,7 +337,7 @@ class CodeCommand extends command("code", [CodeScript], ({ public: target }) =>
|
|
|
324
337
|
desc: "make a --rpc-listen tcp: connection open with its token",
|
|
325
338
|
flag: "K",
|
|
326
339
|
default: true
|
|
327
|
-
}).with(Workspace).exec(async function(prompt, app, profile, model, compactAt, json, thinking, rpc, rpcListen, resume, interactive, trustWorkspace, askNetwork, rpcBindAny, rpcToken, workspace) {
|
|
340
|
+
}).with(Workspace).exec(async function(prompt, app, profile, model, compactAt, json, thinking, rpc, rpcListen, resume, interactive, trustWorkspace, askNetwork, askCommands, ask, rpcBindAny, rpcToken, workspace) {
|
|
328
341
|
const options = {
|
|
329
342
|
app,
|
|
330
343
|
profile,
|
|
@@ -338,6 +351,8 @@ class CodeCommand extends command("code", [CodeScript], ({ public: target }) =>
|
|
|
338
351
|
resume,
|
|
339
352
|
trustWorkspace,
|
|
340
353
|
askNetwork,
|
|
354
|
+
askCommands,
|
|
355
|
+
ask,
|
|
341
356
|
rpcBindAny,
|
|
342
357
|
rpcToken
|
|
343
358
|
};
|