@akanjs/cli 3.3.0-rc.1 → 3.3.0-rc.10
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-cqbf9gsv.js +11 -0
- package/{CodeAgentRpcHost-6dzfkvsc.js → CodeAgentRpcHost-pwps2d67.js} +1 -1
- package/{CodeTui-zee8atsr.js → CodeTui-ehdr4hgw.js} +46 -6
- package/TunnelShare-0p4dy89e.js +16 -0
- package/{agent.command-x65f2ags.js → agent.command-x55ncdjm.js} +20 -22
- package/akanCode.js +7 -7
- package/appExecutor-1ctzymwa.js +11 -0
- package/{application.command-azbd1pb2.js → application.command-xpntxnh8.js} +18 -20
- package/{applicationBuildRunner-trfxv3pd.js → applicationBuildRunner-19c76791.js} +16 -13
- package/buildBatch.proc.js +19 -19
- package/{cloud.command-gapp4634.js → cloud.command-p3ybjes7.js} +19 -24
- package/cloud.script-0dsyd10v.js +30 -0
- package/{code.command-5smx61yf.js → code.command-m6skj1kj.js} +34 -19
- package/{context.command-ym5jbkny.js → context.command-3c3nv0d6.js} +20 -22
- package/context.runner-yyp7a112.js +32 -0
- package/csrArtifactBuilder-mdh9ykn2.js +9 -0
- package/{index-2ny1e95c.js → dependencyScanner-93g8tk0r.js} +6 -5
- package/{fileSys-q22646yc.js → fileSys-e5mwt73x.js} +1 -1
- package/frameworkGraph-aneq2nwy.js +8 -0
- package/{guideline.command-zwypaqsh.js → guideline.command-725fq5p0.js} +8 -8
- package/guidelines/agentRule/agentRule.instruction.md +46 -7
- package/guidelines/akanApi/akanApi.instruction.md +7 -2
- package/guidelines/conventions/core.md +6 -11
- package/guidelines/conventions/rules/app.md +1 -2
- package/guidelines/conventions/rules/auth.md +18 -27
- package/guidelines/conventions/rules/config.md +15 -46
- package/guidelines/conventions/rules/page.md +19 -34
- package/guidelines/conventions/rules/server.md +1 -4
- package/guidelines/conventions/rules/ssr.md +3 -4
- package/guidelines/conventions/rules/ts.md +2 -1
- package/guidelines/cssRule/cssRule.instruction.md +3 -0
- package/guidelines/errorCodes/errorCodes.instruction.md +4 -0
- package/guidelines/mcpRule/mcpRule.instruction.md +11 -4
- package/guidelines/pageRule/pageRule.instruction.md +6 -53
- package/guidelines/runtimeRule/runtimeRule.instruction.md +68 -4
- package/incrementalBuilder.proc.js +24 -18
- package/{index-nc3br31y.js → index-22bwg8hy.js} +2 -2
- package/{index-9f3reh2y.js → index-2v38x3ad.js} +12 -1
- package/{index-67sd09ag.js → index-3a3vy2xy.js} +8 -8
- package/{index-p7beqww9.js → index-3fmzz9sf.js} +18 -18
- package/{index-9wh04mqy.js → index-3mj5trqc.js} +65 -11
- package/{index-7wf8snar.js → index-3r1crbct.js} +1 -1
- package/{index-41a03gkj.js → index-3zkhg65e.js} +19 -19
- package/{index-2jmvfa62.js → index-4r8dgm4x.js} +3 -3
- package/{index-jek2re5k.js → index-4yvtqcme.js} +8 -8
- package/{index-j0wr4e32.js → index-5ahe641t.js} +9 -9
- package/{index-0dm25wvf.js → index-7ssr7wq4.js} +1 -1
- package/{index-dmcpetwe.js → index-8bta5pnr.js} +98 -23
- package/{index-z92zm3wd.js → index-9a9t77hz.js} +29 -11
- package/{index-3txdtztz.js → index-9gjcbp2g.js} +1 -1
- package/{index-8jtqfye2.js → index-a4gcdffy.js} +488 -53
- package/{index-xwwex8rf.js → index-cbm9gzgx.js} +5 -5
- package/{index-j6jjmn2r.js → index-ckcc9ab3.js} +62 -21
- package/{index-w1zexzpx.js → index-crd99zqs.js} +1 -1
- package/{index-612fdtbk.js → index-f4jydw2x.js} +1 -1
- package/{index-4ss4gkv3.js → index-fagjtk6m.js} +2 -2
- package/{index-ebn9kgea.js → index-fjqapyex.js} +45 -16
- package/{index-h901f24n.js → index-h8w1n11r.js} +5 -5
- package/{index-275a4r3n.js → index-hxg6ctk2.js} +12 -16
- package/{index-78y75t0a.js → index-j2wq064m.js} +6 -7
- package/{index-knpm8sdm.js → index-j3fqs8rc.js} +1 -1
- package/{index-kfvjzk8r.js → index-kbnvyhy4.js} +3 -3
- package/{index-6dzjer7p.js → index-m303nhv6.js} +6 -6
- package/{index-dadwp2aw.js → index-nmdmkjt2.js} +271 -39
- package/{index-2yn3r67f.js → index-nnmw56fz.js} +6 -6
- package/{index-a860mx0m.js → index-pr9nypg7.js} +24 -24
- package/{index-s885g0jj.js → index-pyjkbg8e.js} +3 -3
- package/{index-zmd9xxgd.js → index-q63nbpv7.js} +3 -3
- package/{index-v7ajmsh3.js → index-qecrqpt6.js} +4 -21
- package/{index-gt8phqpt.js → index-rdcgz02t.js} +4 -4
- package/{index-j592zfqc.js → index-rt7q20sj.js} +1 -1
- package/{index-baccvws5.js → index-se7n78fh.js} +1 -1
- package/{index-s4nvxpzm.js → index-sxbsrndq.js} +1 -1
- package/{index-k6vwww45.js → index-t23dgyaf.js} +7 -7
- package/{index-71y6176j.js → index-v16gj2as.js} +86 -66
- package/{index-0s7w2085.js → index-vnk1qwgr.js} +4 -4
- package/{index-z96ks033.js → index-wkwe91sn.js} +169 -51
- package/{index-ybcb9wc8.js → index-wxqp1amd.js} +9 -9
- package/{index-p5zh7pmc.js → index-xv3pvdw4.js} +1 -1
- package/{index-zfnz878d.js → index-yey1envc.js} +1 -1
- package/{index-by2tvsq6.js → index-zyjztrvc.js} +1 -1
- package/index.js +30 -28
- package/{libExecutor-jc6f8hm6.js → libExecutor-n8hpm8s7.js} +3 -3
- package/{library.command-nxvesvhb.js → library.command-8abb26pg.js} +8 -8
- package/{localRegistry.command-xz62e4ng.js → localRegistry.command-sa211m1z.js} +18 -23
- package/{module.command-aaws9byg.js → module.command-z3cwjf0p.js} +10 -10
- package/{package.command-j7hv26p0.js → package.command-akynhtee.js} +9 -12
- package/package.json +3 -2
- package/{page.command-7yffs7n9.js → page.command-3fpdavk9.js} +8 -8
- package/{pipeline.command-7yk0zcng.js → pipeline.command-ca95n8rd.js} +7 -7
- package/{pkgExecutor-arxmvx4t.js → pkgExecutor-a73q41vx.js} +3 -3
- package/{primitive.command-7a1pt715.js → primitive.command-xwe9ggnf.js} +11 -11
- package/{projectTypecheck-f4qhbecd.js → projectTypecheck-7g542ymk.js} +1 -1
- package/{prompter-qyggfhqd.js → prompter-d33wmdpa.js} +2 -2
- package/{quality.command-c6mvrjh1.js → quality.command-7wz7y8z1.js} +9 -9
- package/{repair.command-093adzt9.js → repair.command-dej1qtfq.js} +10 -10
- package/{scalar.command-2ex84spb.js → scalar.command-z9qfxnvm.js} +9 -9
- package/skills/akan-agent/SKILL.md +8 -1
- package/skills/akan-code/SKILL.md +38 -3
- package/skills/akan-page/SKILL.md +18 -13
- package/skills/akan-runtime/SKILL.md +21 -16
- package/skills/akan-service/SKILL.md +2 -2
- package/{subspace.command-4n4n4jpv.js → subspace.command-9wekm4gn.js} +11 -13
- package/templates/localDev/docker-compose.yaml.template +2 -2
- package/{tunnel.command-f7ep1qfa.js → tunnel.command-cxc4h3j8.js} +10 -12
- package/{verify.command-zrkxnvct.js → verify.command-j0w9dr5c.js} +15 -17
- package/{workflow.command-ks16jegk.js → workflow.command-yt4sz04b.js} +15 -15
- package/{workspace.command-ahhfpaag.js → workspace.command-8mp4mcp2.js} +34 -38
- package/CodeAgent-fx6088tv.js +0 -11
- package/TunnelShare-9ry4vh0y.js +0 -18
- package/appExecutor-79azsb2w.js +0 -11
- package/cloud.script-3b401efv.js +0 -35
- package/context.runner-kctbfsde.js +0 -34
- package/dependencyScanner-ge10gb52.js +0 -8
package/.build-stamp
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
984cbdba94dde6966611d879a86121ced462c91a2060fd6621b4b3bff85734b0
|
|
2
|
+
298221b3-4275-4aa5-b781-a5f2d86cc98b
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
McpTokenStore,
|
|
5
5
|
McpSignIn,
|
|
6
6
|
AkanCodeCompaction2
|
|
7
|
-
} from "./index-
|
|
8
|
-
import"./index-
|
|
9
|
-
import"./index-
|
|
7
|
+
} from "./index-22bwg8hy.js";
|
|
8
|
+
import"./index-zyjztrvc.js";
|
|
9
|
+
import"./index-xv3pvdw4.js";
|
|
10
10
|
import {
|
|
11
11
|
McpServerConfig,
|
|
12
12
|
WorkspaceTrust
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-7ssr7wq4.js";
|
|
14
14
|
import {
|
|
15
15
|
CodeTuiCommands2,
|
|
16
16
|
CodeTuiLines2,
|
|
@@ -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,38 +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-
|
|
8
|
-
import"./index-
|
|
9
|
-
import"./index-
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
7
|
+
import"./index-v16gj2as.js";
|
|
8
|
+
import"./index-zyjztrvc.js";
|
|
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
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-
|
|
16
|
+
import"./index-xv3pvdw4.js";
|
|
17
|
+
import"./index-j3fqs8rc.js";
|
|
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-
|
|
25
|
-
import"./index-78y75t0a.js";
|
|
26
|
-
import"./index-baccvws5.js";
|
|
23
|
+
import"./index-j2wq064m.js";
|
|
24
|
+
import"./index-se7n78fh.js";
|
|
27
25
|
import"./index-62md4dwy.js";
|
|
28
26
|
import"./index-zyb0ebm4.js";
|
|
29
27
|
import"./index-jf4vk1s0.js";
|
|
30
28
|
import"./index-t4d0ckde.js";
|
|
31
|
-
import"./index-
|
|
29
|
+
import"./index-wxqp1amd.js";
|
|
32
30
|
import {
|
|
33
31
|
AgentScript
|
|
34
|
-
} from "./index-
|
|
35
|
-
import"./index-
|
|
36
|
-
import"./index-
|
|
32
|
+
} from "./index-ckcc9ab3.js";
|
|
33
|
+
import"./index-rt7q20sj.js";
|
|
34
|
+
import"./index-3r1crbct.js";
|
|
37
35
|
|
|
38
36
|
// pkgs/@akanjs/cli/agent/agent.command.ts
|
|
39
37
|
class AgentCommand extends command("agent", [AgentScript], ({ public: target }) => ({
|
package/akanCode.js
CHANGED
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
PreviewChrome2,
|
|
4
4
|
PreviewView2
|
|
5
5
|
} from "./index-rwgqba9p.js";
|
|
6
|
-
import"./index-
|
|
6
|
+
import"./index-zyjztrvc.js";
|
|
7
7
|
import {
|
|
8
8
|
akanCodePaths2
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-xv3pvdw4.js";
|
|
10
10
|
import {
|
|
11
11
|
AkanEditScope2,
|
|
12
12
|
DevLogFeedback2,
|
|
@@ -34,21 +34,21 @@ 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,
|
|
41
41
|
akanCodeModelSupportsImages2,
|
|
42
42
|
akanCodeModelWarnings2,
|
|
43
43
|
CodeAgentStreamPrinter2
|
|
44
|
-
} from "./index-
|
|
44
|
+
} from "./index-7ssr7wq4.js";
|
|
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,7 +1,12 @@
|
|
|
1
1
|
// @bun
|
|
2
|
+
import"./index-zyjztrvc.js";
|
|
3
|
+
import"./index-v16gj2as.js";
|
|
4
|
+
import {
|
|
5
|
+
CliError
|
|
6
|
+
} from "./index-j4yvgfhr.js";
|
|
2
7
|
import {
|
|
3
8
|
RouteJsBudget
|
|
4
|
-
} from "./index-
|
|
9
|
+
} from "./index-8bta5pnr.js";
|
|
5
10
|
import {
|
|
6
11
|
App,
|
|
7
12
|
Apps,
|
|
@@ -10,26 +15,19 @@ import {
|
|
|
10
15
|
Exec,
|
|
11
16
|
Workspace,
|
|
12
17
|
command
|
|
13
|
-
} from "./index-
|
|
14
|
-
import
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-
|
|
19
|
-
import"./index-z92zm3wd.js";
|
|
20
|
-
import"./index-zfnz878d.js";
|
|
21
|
-
import"./index-w1zexzpx.js";
|
|
22
|
-
import"./index-ebn9kgea.js";
|
|
23
|
-
import"./index-612fdtbk.js";
|
|
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-
|
|
27
|
-
import"./index-2jmvfa62.js";
|
|
28
|
-
import"./index-z96ks033.js";
|
|
25
|
+
import"./index-4r8dgm4x.js";
|
|
26
|
+
import"./index-wkwe91sn.js";
|
|
29
27
|
import"./index-rwgqba9p.js";
|
|
30
28
|
import {
|
|
31
29
|
ApplicationScript
|
|
32
|
-
} from "./index-
|
|
30
|
+
} from "./index-3zkhg65e.js";
|
|
33
31
|
import {
|
|
34
32
|
writeOption,
|
|
35
33
|
nativeTargetOption,
|
|
@@ -37,9 +35,9 @@ import {
|
|
|
37
35
|
allowLocalOption,
|
|
38
36
|
publicEnvOption
|
|
39
37
|
} from "./index-mdjc93e1.js";
|
|
40
|
-
import"./index-
|
|
38
|
+
import"./index-rt7q20sj.js";
|
|
41
39
|
import"./index-9bv479q5.js";
|
|
42
|
-
import"./index-
|
|
40
|
+
import"./index-3r1crbct.js";
|
|
43
41
|
|
|
44
42
|
// pkgs/@akanjs/cli/application/application.command.ts
|
|
45
43
|
import { MigrationCommand } from "akanjs/server/migration/migrationCommand";
|
|
@@ -179,7 +177,7 @@ var inspectTargets = ({ public: target }) => ({
|
|
|
179
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, {
|
|
180
178
|
desc: "endpoint glob(s), comma-separated: mutation:*, query:userList",
|
|
181
179
|
nullable: true
|
|
182
|
-
}).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, {
|
|
183
181
|
flag: "R",
|
|
184
182
|
desc: "process role(s): gateway, federation, batch, all, rsc-worker",
|
|
185
183
|
nullable: true
|
|
@@ -5,29 +5,29 @@ import {
|
|
|
5
5
|
parseEnvFile,
|
|
6
6
|
WorkspaceExecutor,
|
|
7
7
|
ServerEnvProfile
|
|
8
|
-
} from "./index-
|
|
9
|
-
import"./index-
|
|
8
|
+
} from "./index-v16gj2as.js";
|
|
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
|
-
|
|
30
|
-
} from "./index-
|
|
29
|
+
CsrArtifactBuilder2
|
|
30
|
+
} from "./index-pr9nypg7.js";
|
|
31
31
|
import"./index-62md4dwy.js";
|
|
32
32
|
|
|
33
33
|
// pkgs/@akanjs/devkit/app/applicationBuildRunner.ts
|
|
@@ -202,6 +202,8 @@ class ApplicationBuildRunner {
|
|
|
202
202
|
}
|
|
203
203
|
async build({ spinner = false } = {}) {
|
|
204
204
|
this.#spinner = spinner;
|
|
205
|
+
if (this.#verify)
|
|
206
|
+
this.#app.useVerifyDist();
|
|
205
207
|
const { web, assets, baseDevEnv } = await this.#app.getConfig();
|
|
206
208
|
const environment = this.#environment ?? baseDevEnv.env;
|
|
207
209
|
WorkspaceExecutor.assertDeployableEnv(baseDevEnv, environment, "akan build");
|
|
@@ -218,7 +220,7 @@ class ApplicationBuildRunner {
|
|
|
218
220
|
await this.#app.dist.writeJson("akan.build.json", { profile: "verify", builtAt: new Date().toISOString() });
|
|
219
221
|
return this.#resultOf(environment, routeJs);
|
|
220
222
|
}
|
|
221
|
-
await this.#runPhase("csr", "Building CSR assets", async () => web.csr ? await new
|
|
223
|
+
await this.#runPhase("csr", "Building CSR assets", async () => web.csr ? await new CsrArtifactBuilder2(this.#app, "build").build() : null, (result) => result?.outputDir ?? (web.csr ? "skipped" : "disabled by akan.config.ts web.csr"));
|
|
222
224
|
await this.#runPhase("assets", "Trimming unread static assets", async () => assets.pruneFonts ? await new FontPruner(this.#app, assets).prune() : null, (result) => result ? `${result.removed.length} font file(s) dropped, ${ApplicationBuildRunner.formatBytes(result.freedBytes)} freed; ${result.kept.length} kept` : "disabled by akan.config.ts assets.pruneFonts");
|
|
223
225
|
await this.#runPhase("compress", "Compressing static assets", () => precompressArtifacts(this.#app), (result) => result.files > 0 ? `${result.files} files, ${ApplicationBuildRunner.formatBytes(result.inputBytes)} -> gzip ${ApplicationBuildRunner.formatBytes(result.outputBytes)} / br ${ApplicationBuildRunner.formatBytes(result.brotliBytes)}` : "no files");
|
|
224
226
|
const routeJs = await this.#runBudgetPhase(environment);
|
|
@@ -334,7 +336,8 @@ class ApplicationBuildRunner {
|
|
|
334
336
|
return this.#serverEnv;
|
|
335
337
|
}
|
|
336
338
|
#verifyBanner() {
|
|
337
|
-
const
|
|
339
|
+
const { name, dist, workspace } = this.#app;
|
|
340
|
+
const message = `${path3.relative(workspace.workspaceRoot, dist.cwdPath)} holds the partial output of akan verify, not a build. Run \`akan build ${name}\` and start dist/apps/${name}.`;
|
|
338
341
|
return `console.error(${JSON.stringify(message)});process.exit(1);`;
|
|
339
342
|
}
|
|
340
343
|
async#buildBackend() {
|
package/buildBatch.proc.js
CHANGED
|
@@ -1,44 +1,43 @@
|
|
|
1
1
|
// @bun
|
|
2
|
+
import"./index-zyjztrvc.js";
|
|
3
|
+
import {
|
|
4
|
+
WorkspaceExecutor
|
|
5
|
+
} from "./index-v16gj2as.js";
|
|
6
|
+
import"./index-j4yvgfhr.js";
|
|
2
7
|
import {
|
|
3
8
|
FontOptimizer,
|
|
4
9
|
ApplicationBuildReporter
|
|
5
|
-
} from "./index-
|
|
10
|
+
} from "./index-8bta5pnr.js";
|
|
6
11
|
import {
|
|
7
12
|
resolveSsrPageEntriesForApp,
|
|
8
13
|
AppExecutor2
|
|
9
|
-
} from "./index-
|
|
14
|
+
} from "./index-9a9t77hz.js";
|
|
10
15
|
import {
|
|
11
16
|
computeRouteSeedIndex,
|
|
12
17
|
saveRouteSeedIndex,
|
|
13
18
|
CsrDevBundler,
|
|
14
19
|
SsrDevBundler
|
|
15
|
-
} from "./index-
|
|
16
|
-
import
|
|
17
|
-
|
|
18
|
-
} from "./index-71y6176j.js";
|
|
19
|
-
import"./index-by2tvsq6.js";
|
|
20
|
-
import"./index-j4yvgfhr.js";
|
|
21
|
-
import"./index-zfnz878d.js";
|
|
22
|
-
import"./index-w1zexzpx.js";
|
|
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
|
-
|
|
33
|
-
} from "./index-
|
|
32
|
+
CsrArtifactBuilder2
|
|
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;
|
|
@@ -99,9 +98,10 @@ class BuildBatch {
|
|
|
99
98
|
async#buildBase() {
|
|
100
99
|
const started = Date.now();
|
|
101
100
|
try {
|
|
102
|
-
const { artifact, optimizedFonts } = await new SsrBaseArtifactBuilder(this.#app).build();
|
|
101
|
+
const { artifact, optimizedFonts, phaseMs } = await new SsrBaseArtifactBuilder(this.#app).build();
|
|
103
102
|
this.#result.artifact = artifact;
|
|
104
103
|
this.#result.optimizedFonts = optimizedFonts;
|
|
104
|
+
this.#result.basePhaseMs = phaseMs;
|
|
105
105
|
this.#logger.verbose(`base-artifact ok buildId=${artifact.pagesBundleBuildId} (${Date.now() - started}ms)`);
|
|
106
106
|
} catch (err) {
|
|
107
107
|
this.#fail("base", "base-artifact", err);
|
|
@@ -122,7 +122,7 @@ class BuildBatch {
|
|
|
122
122
|
async#buildShell() {
|
|
123
123
|
const started = Date.now();
|
|
124
124
|
try {
|
|
125
|
-
await new
|
|
125
|
+
await new CsrArtifactBuilder2(this.#app, "start", "en", { cssAssets: this.#request.cssAssets }).buildMcpAppViews();
|
|
126
126
|
this.#logger.verbose(`mcp-app-views ok (${Date.now() - started}ms)`);
|
|
127
127
|
} catch (err) {
|
|
128
128
|
this.#fail("shell", "mcp-app-views", err);
|
|
@@ -130,7 +130,7 @@ class BuildBatch {
|
|
|
130
130
|
}
|
|
131
131
|
async#rebuildCsrArtifact(started) {
|
|
132
132
|
const cssAssets = this.#result.cssAssets ?? this.#request.cssAssets;
|
|
133
|
-
await new
|
|
133
|
+
await new CsrArtifactBuilder2(this.#app, "start", "en", { cssAssets }).build();
|
|
134
134
|
this.#logger.verbose(`csr-rebundle ok (${Date.now() - started}ms)`);
|
|
135
135
|
if (this.#request.changedFiles.length === 0)
|
|
136
136
|
return;
|
|
@@ -3,39 +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-
|
|
9
|
-
import"./index-
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
8
|
+
import"./index-v16gj2as.js";
|
|
9
|
+
import"./index-zyjztrvc.js";
|
|
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
|
-
import"./index-9wh04mqy.js";
|
|
21
|
-
import"./index-a860mx0m.js";
|
|
22
20
|
import {
|
|
23
21
|
npmRegistryFromEnv,
|
|
24
22
|
warnIgnoredNpmRegistry
|
|
25
23
|
} from "./index-jf4vk1s0.js";
|
|
26
|
-
import"./index-
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
24
|
+
import"./index-8bta5pnr.js";
|
|
25
|
+
import"./index-4r8dgm4x.js";
|
|
26
|
+
import"./index-wkwe91sn.js";
|
|
29
27
|
import"./index-rwgqba9p.js";
|
|
30
|
-
import"./index-
|
|
31
|
-
import"./index-
|
|
32
|
-
import"./index-
|
|
33
|
-
import"./index-baccvws5.js";
|
|
34
|
-
import"./index-2ny1e95c.js";
|
|
35
|
-
import"./index-275a4r3n.js";
|
|
28
|
+
import"./index-3zkhg65e.js";
|
|
29
|
+
import"./index-se7n78fh.js";
|
|
30
|
+
import"./index-hxg6ctk2.js";
|
|
36
31
|
import {
|
|
37
32
|
CloudScript2
|
|
38
|
-
} from "./index-
|
|
33
|
+
} from "./index-t23dgyaf.js";
|
|
39
34
|
import {
|
|
40
35
|
writeOption,
|
|
41
36
|
oneNativeTargetOption,
|
|
@@ -46,9 +41,9 @@ import {
|
|
|
46
41
|
hostOption,
|
|
47
42
|
subspaceOption
|
|
48
43
|
} from "./index-mdjc93e1.js";
|
|
49
|
-
import"./index-
|
|
44
|
+
import"./index-rt7q20sj.js";
|
|
50
45
|
import"./index-9bv479q5.js";
|
|
51
|
-
import"./index-
|
|
46
|
+
import"./index-3r1crbct.js";
|
|
52
47
|
|
|
53
48
|
// pkgs/@akanjs/cli/cloud/cloud.command.ts
|
|
54
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
|
+
};
|