@akanjs/cli 3.2.0-rc.8 → 3.2.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/.build-stamp +2 -2
- package/CodeAgent-fx6088tv.js +11 -0
- package/{CodeTui-qstk5vpj.js → CodeTui-zee8atsr.js} +822 -666
- package/README.ko.md +7 -0
- package/README.md +7 -0
- package/TunnelShare-9ry4vh0y.js +18 -0
- package/agent.command-x65f2ags.js +61 -0
- package/akanCode.js +12 -12
- package/appExecutor-79azsb2w.js +11 -0
- package/{application.command-m4rq4wc2.js → application.command-azbd1pb2.js} +83 -37
- package/{applicationBuildRunner-df7rx3ra.js → applicationBuildRunner-trfxv3pd.js} +49 -18
- package/buildBatch.proc.js +25 -11
- package/{cloud.command-a0gy0qq2.js → cloud.command-gapp4634.js} +33 -29
- package/cloud.script-3b401efv.js +35 -0
- package/{code.command-5rsdqw8s.js → code.command-5smx61yf.js} +13 -9
- package/context.command-ym5jbkny.js +64 -0
- package/context.runner-kctbfsde.js +34 -0
- package/{dependencyScanner-78sq8m4q.js → dependencyScanner-ge10gb52.js} +2 -2
- package/{devTui-h77zrjv5.js → devTui-rf374y2w.js} +1 -1
- package/{fileSys-zpvt5gtf.js → fileSys-q22646yc.js} +1 -1
- package/{guideline.command-mffxknbr.js → guideline.command-zwypaqsh.js} +9 -5
- package/guidelines/agentRule/agentRule.instruction.md +25 -9
- package/guidelines/akanApi/akanApi.instruction.md +6 -4
- package/guidelines/conventions/core.md +23 -5
- package/guidelines/conventions/rules/app.md +4 -1
- package/guidelines/conventions/rules/page.md +5 -4
- package/guidelines/conventions/rules/ts.md +3 -3
- package/guidelines/errorCodes/errorCodes.instruction.md +165 -0
- package/guidelines/fieldRule/fieldRule.instruction.md +2 -1
- package/guidelines/mcpRule/mcpRule.instruction.md +225 -5
- package/guidelines/pageRule/pageRule.instruction.md +10 -1
- package/guidelines/queryRule/queryRule.instruction.md +3 -1
- package/guidelines/runtimeRule/runtimeRule.instruction.md +14 -8
- package/guidelines/transportRule/transportRule.instruction.md +31 -1
- package/incrementalBuilder.proc.js +577 -411
- package/{index-w15mg3km.js → index-0dm25wvf.js} +1 -1
- package/{index-0gg15zwa.js → index-0s7w2085.js} +6 -6
- package/{index-hj6w4ka1.js → index-1p81ecbz.js} +1 -1
- package/{index-swwjakt0.js → index-275a4r3n.js} +11 -11
- package/{index-j6gc8n14.js → index-2jmvfa62.js} +11 -9
- package/{index-qd7xn2bk.js → index-2ny1e95c.js} +2 -2
- package/{index-exn38bzx.js → index-2yn3r67f.js} +116 -54
- package/{index-34792nh7.js → index-3txdtztz.js} +1 -1
- package/{index-28x1aszt.js → index-41a03gkj.js} +149 -53
- package/{index-2mf1aen9.js → index-4ss4gkv3.js} +2 -2
- package/{index-an76bdrv.js → index-612fdtbk.js} +1 -1
- package/{index-5radqwn2.js → index-67sd09ag.js} +12 -12
- package/{index-0hbtve0a.js → index-6dzjer7p.js} +32 -28
- package/{index-3ghdb7p5.js → index-71y6176j.js} +2777 -3676
- package/{index-xyn02k0w.js → index-78y75t0a.js} +662 -433
- package/index-7wf8snar.js +80 -0
- package/{index-skmtj8rm.js → index-8jtqfye2.js} +27 -10
- package/{index-2mrn1mrg.js → index-9f3reh2y.js} +1 -1
- package/{index-nmvhjn8c.js → index-9wh04mqy.js} +93 -82
- package/{index-xvk2a75m.js → index-a860mx0m.js} +3 -3
- package/{index-5zwr4n6k.js → index-baccvws5.js} +65 -8
- package/{index-yf9wc28h.js → index-bejy9zyc.js} +1 -1
- package/{index-bns3wcpc.js → index-by2tvsq6.js} +1 -1
- package/{index-r0a604h4.js → index-c669pbyb.js} +5 -4
- package/{index-x40bdsca.js → index-dadwp2aw.js} +33 -98
- package/{index-vm0dn0mt.js → index-dmcpetwe.js} +200 -138
- package/{index-43f4h4cm.js → index-ebn9kgea.js} +6 -6
- package/{index-hqv34wzq.js → index-gt8phqpt.js} +10 -10
- package/{index-yckz5t8b.js → index-h901f24n.js} +516 -434
- package/{index-j3v29pq7.js → index-j0wr4e32.js} +219 -175
- package/{index-gcx48get.js → index-j592zfqc.js} +2 -2
- package/{index-grxs6fts.js → index-j6jjmn2r.js} +57 -31
- package/{index-w8yasvpc.js → index-jek2re5k.js} +2136 -2175
- package/{index-ny2k80mv.js → index-jf4vk1s0.js} +9 -2
- package/{index-gxav1bjz.js → index-k6vwww45.js} +9 -9
- package/{index-99qvtff2.js → index-kfvjzk8r.js} +5 -5
- package/{index-j6eeh5d7.js → index-knpm8sdm.js} +5 -5
- package/{index-2r9ff9qm.js → index-nc3br31y.js} +2 -2
- package/{index-35j83zkd.js → index-p5zh7pmc.js} +2 -2
- package/{index-cmg5ngqa.js → index-p7beqww9.js} +2 -2
- package/{index-b4qq3rq0.js → index-rwgqba9p.js} +1 -1
- package/{index-rfzp4pqs.js → index-s885g0jj.js} +3 -3
- package/{index-9p260r4e.js → index-trffs83s.js} +538 -250
- package/{index-k92x3vne.js → index-v7ajmsh3.js} +1 -1
- package/index-w1zexzpx.js +127 -0
- package/{index-h7hehkw6.js → index-xczjdng6.js} +3 -1
- package/{index-39jz41jb.js → index-xs9a3ddt.js} +3 -3
- package/{index-rp4yf32g.js → index-xwwex8rf.js} +36 -29
- package/{index-ra9fvn7s.js → index-ybcb9wc8.js} +74 -38
- package/index-z92zm3wd.js +788 -0
- package/{index-j9790rhk.js → index-z96ks033.js} +1509 -1121
- package/index-zfnz878d.js +30 -0
- package/{index-2vgv7fs7.js → index-zmd9xxgd.js} +727 -693
- package/{index-ygdbn9jn.js → index-zyb0ebm4.js} +1 -1
- package/index.js +28 -24
- package/libExecutor-jc6f8hm6.js +10 -0
- package/{library.command-bmd7zc5m.js → library.command-nxvesvhb.js} +12 -5
- package/{localRegistry.command-y6en1599.js → localRegistry.command-xz62e4ng.js} +29 -24
- package/{module.command-7exfffqw.js → module.command-aaws9byg.js} +11 -7
- package/{package.command-adskw2rj.js → package.command-j7hv26p0.js} +14 -10
- package/package.json +8 -8
- package/{page.command-dw01272p.js → page.command-7yffs7n9.js} +8 -4
- package/{pipeline.command-0b1r3y5r.js → pipeline.command-7yk0zcng.js} +15 -9
- package/pkgExecutor-arxmvx4t.js +10 -0
- package/{primitive.command-byw6vc04.js → primitive.command-7a1pt715.js} +12 -8
- package/{projectTypecheck-kkrpq60a.js → projectTypecheck-f4qhbecd.js} +1 -1
- package/{prompter-qrwx1p17.js → prompter-qyggfhqd.js} +2 -2
- package/{quality.command-6rqnhzct.js → quality.command-c6mvrjh1.js} +25 -16
- package/{recipeScanner-4b69ybe0.js → recipeScanner-rrx69awy.js} +1 -1
- package/{repair.command-rw5zymak.js → repair.command-093adzt9.js} +12 -8
- package/{routeSourceValidator-4h947v7c.js → routeSourceValidator-8n6j1vn7.js} +4 -2
- package/{scalar.command-2dyp9nh9.js → scalar.command-2ex84spb.js} +10 -6
- package/skills/akan-debug/SKILL.md +8 -5
- package/skills/akan-err/SKILL.md +7 -0
- package/skills/akan-mcp/SKILL.md +19 -1
- package/skills/akan-scaffold/SKILL.md +1 -1
- package/skills/akan-validate/SKILL.md +3 -3
- package/{subspace.command-111ynwv1.js → subspace.command-4n4n4jpv.js} +32 -24
- package/templates/app/page/_layout.tsx +13 -0
- package/templates/app/page/styles.css.template +40 -0
- package/templates/appSample/page/_index.tsx +9 -9
- package/templates/appSample/page/_layout.tsx +1 -0
- package/templates/appSample/page/styles.css.template +40 -5
- package/templates/appSample/ui/Recipe/jellyButton.ts +1 -1
- package/templates/biomeForm.ts +1 -1
- package/templates/env/_env.server.type.ts +1 -1
- package/templates/facetIndex/index.ts +2 -37
- package/templates/lib/sig.ts +0 -4
- package/templates/lib/useClient.ts +1 -1
- package/templates/workspaceRoot/.devcontainer/devcontainer.json.template +1 -1
- package/templates/workspaceRoot/AGENTS.md.template +2 -1
- package/templates/workspaceRoot/README.ts +4 -2
- package/{tunnel.command-2gcpfbdj.js → tunnel.command-f7ep1qfa.js} +17 -13
- package/{typeChecker-s640r6c0.js → typeChecker-7jt6abrs.js} +1 -1
- package/typecheck.proc.js +3 -2
- package/{verify.command-djgs86ma.js → verify.command-zrkxnvct.js} +21 -17
- package/{workflow.command-n0k2mxr5.js → workflow.command-ks16jegk.js} +21 -14
- package/{workspace.command-fh1qwxfx.js → workspace.command-ahhfpaag.js} +60 -54
- package/CodeAgent-x2p3a3e0.js +0 -11
- package/TunnelShare-c4xsfzg5.js +0 -15
- package/agent.command-9et2e27p.js +0 -52
- package/cloud.script-xze4zh7n.js +0 -31
- package/context.command-rk1dwrg4.js +0 -57
- package/context.runner-83ky5m1b.js +0 -30
- /package/templates/{appSample → app}/public/fonts/Pretendard-Bold.woff2 +0 -0
- /package/templates/{appSample → app}/public/fonts/Pretendard-Medium.woff2 +0 -0
- /package/templates/{appSample → app}/public/fonts/Pretendard-Regular.woff2 +0 -0
- /package/templates/{appSample → app}/public/fonts/Pretendard-SemiBold.woff2 +0 -0
|
@@ -4,26 +4,30 @@ import {
|
|
|
4
4
|
runner,
|
|
5
5
|
script,
|
|
6
6
|
command
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-2yn3r67f.js";
|
|
8
8
|
import"./index-j4yvgfhr.js";
|
|
9
|
-
import"./index-
|
|
9
|
+
import"./index-71y6176j.js";
|
|
10
|
+
import"./index-by2tvsq6.js";
|
|
10
11
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./index-
|
|
12
|
+
AppExecutor2
|
|
13
|
+
} from "./index-z92zm3wd.js";
|
|
14
|
+
import"./index-zfnz878d.js";
|
|
15
|
+
import"./index-w1zexzpx.js";
|
|
13
16
|
import {
|
|
14
17
|
GlobalConfig,
|
|
15
18
|
CloudApi
|
|
16
|
-
} from "./index-
|
|
19
|
+
} from "./index-s885g0jj.js";
|
|
17
20
|
import"./index-m9jj544v.js";
|
|
18
|
-
import"./index-
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
21
|
+
import"./index-ebn9kgea.js";
|
|
22
|
+
import"./index-9wh04mqy.js";
|
|
23
|
+
import"./index-a860mx0m.js";
|
|
21
24
|
import {
|
|
22
25
|
TunnelShare2
|
|
23
|
-
} from "./index-
|
|
26
|
+
} from "./index-v7ajmsh3.js";
|
|
24
27
|
import {
|
|
25
28
|
writeClipboard
|
|
26
29
|
} from "./index-p6pbz9n5.js";
|
|
30
|
+
import"./index-7wf8snar.js";
|
|
27
31
|
|
|
28
32
|
// pkgs/@akanjs/cli/tunnel/tunnel.script.ts
|
|
29
33
|
import { select } from "@inquirer/prompts";
|
|
@@ -96,11 +100,11 @@ class TunnelScript extends script("tunnel", [TunnelRunner]) {
|
|
|
96
100
|
if (name && !appNames.includes(name))
|
|
97
101
|
throw new Error(`Unknown app: ${name}. Available: ${appNames.join(", ")}`);
|
|
98
102
|
if (name)
|
|
99
|
-
return
|
|
103
|
+
return AppExecutor2.from(workspace, name);
|
|
100
104
|
const only = appNames.length === 1 ? appNames[0] : null;
|
|
101
105
|
if (only)
|
|
102
|
-
return
|
|
103
|
-
return
|
|
106
|
+
return AppExecutor2.from(workspace, only);
|
|
107
|
+
return AppExecutor2.from(workspace, await select({ message: "Select the app to share", choices: appNames }));
|
|
104
108
|
}
|
|
105
109
|
async share(name, { workspace, host, port, ttl, devRoutes }) {
|
|
106
110
|
const app = await TunnelScript.resolveApp(workspace, name);
|
|
@@ -122,7 +126,7 @@ class TunnelScript extends script("tunnel", [TunnelRunner]) {
|
|
|
122
126
|
|
|
123
127
|
// pkgs/@akanjs/cli/tunnel/tunnel.command.ts
|
|
124
128
|
class TunnelCommand extends command("tunnel", [TunnelScript], ({ public: target }) => ({
|
|
125
|
-
tunnel: target({ desc: "Share a locally running app on a public URL" }).arg("app", String, { desc: "app to share", nullable: true }).option("list", Boolean, { desc: "list the shares this account is holding", default: false }).option("stop", String, { desc: "stop the share with this code", default: "" }).option("host", String, {
|
|
129
|
+
tunnel: target({ desc: "Share a locally running app on a public URL", readOnly: true }).arg("app", String, { desc: "app to share", nullable: true }).option("list", Boolean, { desc: "list the shares this account is holding", default: false }).option("stop", String, { desc: "stop the share with this code", default: "" }).option("host", String, {
|
|
126
130
|
desc: "host of the cloud (default: cloud.host of the root akan.config.ts, else Akan Cloud)",
|
|
127
131
|
nullable: true
|
|
128
132
|
}).option("port", Number, { desc: "local port to share (default: the app's dev port)", nullable: true }).option("ttl", Number, { desc: "minutes before the share expires", nullable: true }).option("devRoutes", Boolean, {
|
package/typecheck.proc.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
TypeChecker2
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-c669pbyb.js";
|
|
5
5
|
import {
|
|
6
6
|
TypecheckFailure
|
|
7
7
|
} from "./index-j4yvgfhr.js";
|
|
@@ -28,7 +28,8 @@ try {
|
|
|
28
28
|
const configPath = process.env.AKAN_TYPECHECK_TSCONFIG;
|
|
29
29
|
if (!configPath)
|
|
30
30
|
throw new Error("AKAN_TYPECHECK_TSCONFIG is required");
|
|
31
|
-
const
|
|
31
|
+
const tsBuildInfoFile = process.env.AKAN_TYPECHECK_BUILDINFO;
|
|
32
|
+
const result = TypeChecker2.checkProject(configPath, tsBuildInfoFile ? { noEmit: true, incremental: true, tsBuildInfoFile } : {});
|
|
32
33
|
if (process.env.AKAN_TYPECHECK_FORMAT === "json") {
|
|
33
34
|
const root = process.env.AKAN_TYPECHECK_ROOT ?? process.cwd();
|
|
34
35
|
process.stdout.write(JSON.stringify(TypeChecker2.toRecords(result.errors, root)));
|
|
@@ -4,37 +4,41 @@ import {
|
|
|
4
4
|
script,
|
|
5
5
|
markCliErrorPrinted,
|
|
6
6
|
command
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-2yn3r67f.js";
|
|
8
8
|
import {
|
|
9
9
|
CliError
|
|
10
10
|
} from "./index-j4yvgfhr.js";
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
11
|
+
import"./index-71y6176j.js";
|
|
12
|
+
import"./index-by2tvsq6.js";
|
|
13
|
+
import"./index-z92zm3wd.js";
|
|
14
|
+
import"./index-zfnz878d.js";
|
|
15
|
+
import"./index-w1zexzpx.js";
|
|
13
16
|
import {
|
|
14
17
|
ApplicationRunner,
|
|
15
18
|
VerifyScope
|
|
16
|
-
} from "./index-
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-
|
|
19
|
-
import"./index-
|
|
19
|
+
} from "./index-z96ks033.js";
|
|
20
|
+
import"./index-dmcpetwe.js";
|
|
21
|
+
import"./index-ebn9kgea.js";
|
|
22
|
+
import"./index-612fdtbk.js";
|
|
20
23
|
import"./index-m9jj544v.js";
|
|
21
|
-
import"./index-
|
|
22
|
-
import"./index-
|
|
24
|
+
import"./index-9wh04mqy.js";
|
|
25
|
+
import"./index-a860mx0m.js";
|
|
26
|
+
import"./index-1p81ecbz.js";
|
|
23
27
|
import"./index-62md4dwy.js";
|
|
28
|
+
import"./index-zyb0ebm4.js";
|
|
24
29
|
import {
|
|
25
30
|
WorkspaceRunner
|
|
26
|
-
} from "./index-
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
29
|
-
import"./index-
|
|
30
|
-
import"./index-hj6w4ka1.js";
|
|
31
|
-
import"./index-ny2k80mv.js";
|
|
31
|
+
} from "./index-78y75t0a.js";
|
|
32
|
+
import"./index-baccvws5.js";
|
|
33
|
+
import"./index-trffs83s.js";
|
|
34
|
+
import"./index-jf4vk1s0.js";
|
|
32
35
|
import"./index-t4d0ckde.js";
|
|
33
36
|
import {
|
|
34
37
|
VerifyPipeline,
|
|
35
38
|
VerifyReport
|
|
36
|
-
} from "./index-
|
|
37
|
-
import"./index-
|
|
39
|
+
} from "./index-ybcb9wc8.js";
|
|
40
|
+
import"./index-j592zfqc.js";
|
|
41
|
+
import"./index-7wf8snar.js";
|
|
38
42
|
|
|
39
43
|
// pkgs/@akanjs/cli/verify/verify.script.ts
|
|
40
44
|
import path from "path";
|
|
@@ -3,29 +3,33 @@ import {
|
|
|
3
3
|
Workspace,
|
|
4
4
|
script,
|
|
5
5
|
command
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-2yn3r67f.js";
|
|
7
7
|
import"./index-j4yvgfhr.js";
|
|
8
|
-
import"./index-
|
|
9
|
-
import"./index-
|
|
8
|
+
import"./index-71y6176j.js";
|
|
9
|
+
import"./index-by2tvsq6.js";
|
|
10
|
+
import"./index-z92zm3wd.js";
|
|
11
|
+
import"./index-zfnz878d.js";
|
|
12
|
+
import"./index-w1zexzpx.js";
|
|
10
13
|
import {
|
|
11
14
|
jsonText,
|
|
12
15
|
workflowStatus,
|
|
13
16
|
renderWorkflowPlan,
|
|
14
17
|
renderWorkflowApply,
|
|
15
18
|
renderWorkflowValidation
|
|
16
|
-
} from "./index-
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-
|
|
22
|
-
import"./index-
|
|
23
|
-
import"./index-
|
|
24
|
-
import"./index-
|
|
19
|
+
} from "./index-zmd9xxgd.js";
|
|
20
|
+
import"./index-trffs83s.js";
|
|
21
|
+
import"./index-h901f24n.js";
|
|
22
|
+
import"./index-1p81ecbz.js";
|
|
23
|
+
import"./index-3txdtztz.js";
|
|
24
|
+
import"./index-gt8phqpt.js";
|
|
25
|
+
import"./index-6dzjer7p.js";
|
|
26
|
+
import"./index-kfvjzk8r.js";
|
|
27
|
+
import"./index-4ss4gkv3.js";
|
|
25
28
|
import"./index-t4d0ckde.js";
|
|
26
29
|
import {
|
|
27
30
|
WorkflowRunner
|
|
28
|
-
} from "./index-
|
|
31
|
+
} from "./index-67sd09ag.js";
|
|
32
|
+
import"./index-7wf8snar.js";
|
|
29
33
|
|
|
30
34
|
// pkgs/@akanjs/cli/workflow/workflow.script.ts
|
|
31
35
|
import { Logger } from "akanjs/common";
|
|
@@ -97,7 +101,10 @@ class WorkflowScript extends script("workflow", [WorkflowRunner]) {
|
|
|
97
101
|
|
|
98
102
|
// pkgs/@akanjs/cli/workflow/workflow.command.ts
|
|
99
103
|
class WorkflowCommand extends command("workflow", [WorkflowScript], ({ public: target }) => ({
|
|
100
|
-
workflow: target({
|
|
104
|
+
workflow: target({
|
|
105
|
+
desc: "List, explain, plan, apply, validate, or report Akan workflows",
|
|
106
|
+
readOnly: ({ action, dryRun }) => action !== "apply" || dryRun === true
|
|
107
|
+
}).arg("action", String, {
|
|
101
108
|
desc: "list, explain, plan, apply, validate, or report",
|
|
102
109
|
enum: ["list", "explain", "plan", "apply", "validate", "report"]
|
|
103
110
|
}).arg("workflow", String, { desc: "workflow name, plan path, or run id", nullable: true }).with(Workspace).option("format", String, { desc: "output format", flag: "o", default: "markdown", enum: ["markdown", "json"] }).option("out", String, { flag: "w", desc: "write workflow plan JSON to this path", nullable: true }).option("dryRun", Boolean, { flag: "r", desc: "show predicted apply report without writing files", default: false }).option("app", String, { desc: "target app or library name", nullable: true }).option("module", String, { desc: "target module name", nullable: true }).option("field", String, { desc: "field name", nullable: true }).option("type", String, { desc: "field type or scalar name", nullable: true }).option("values", String, { flag: "l", desc: "comma-separated values", nullable: true }).option("default", String, { desc: "default value", nullable: true }).option("scalar", String, { flag: "c", desc: "scalar name", nullable: true }).option("surface", String, { flag: "u", desc: "UI surface name", nullable: true }).option("surfaces", String, {
|
|
@@ -4,76 +4,82 @@ import {
|
|
|
4
4
|
Workspace,
|
|
5
5
|
script,
|
|
6
6
|
command
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-2yn3r67f.js";
|
|
8
8
|
import"./index-j4yvgfhr.js";
|
|
9
|
-
import"./index-
|
|
9
|
+
import"./index-71y6176j.js";
|
|
10
|
+
import"./index-by2tvsq6.js";
|
|
10
11
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
AppExecutor2
|
|
13
|
+
} from "./index-z92zm3wd.js";
|
|
14
|
+
import {
|
|
15
|
+
LibExecutor2
|
|
16
|
+
} from "./index-zfnz878d.js";
|
|
17
|
+
import {
|
|
18
|
+
PkgExecutor2
|
|
19
|
+
} from "./index-w1zexzpx.js";
|
|
15
20
|
import {
|
|
16
21
|
npmRegistryFromEnv,
|
|
17
22
|
warnIgnoredNpmRegistry
|
|
18
|
-
} from "./index-
|
|
23
|
+
} from "./index-jf4vk1s0.js";
|
|
24
|
+
import"./index-1p81ecbz.js";
|
|
19
25
|
import"./index-62md4dwy.js";
|
|
26
|
+
import"./index-zyb0ebm4.js";
|
|
20
27
|
import {
|
|
21
28
|
defaultMaxDiagnostics,
|
|
22
29
|
WorkspaceRunner
|
|
23
|
-
} from "./index-
|
|
24
|
-
import"./index-
|
|
25
|
-
import"./index-
|
|
26
|
-
import"./index-9p260r4e.js";
|
|
27
|
-
import"./index-hj6w4ka1.js";
|
|
30
|
+
} from "./index-78y75t0a.js";
|
|
31
|
+
import"./index-baccvws5.js";
|
|
32
|
+
import"./index-trffs83s.js";
|
|
28
33
|
import"./index-t4d0ckde.js";
|
|
29
|
-
import"./index-
|
|
30
|
-
import"./index-
|
|
31
|
-
import"./index-
|
|
32
|
-
import"./index-
|
|
33
|
-
import"./index-
|
|
34
|
-
import"./index-
|
|
35
|
-
import"./index-
|
|
36
|
-
import"./index-
|
|
34
|
+
import"./index-zmd9xxgd.js";
|
|
35
|
+
import"./index-h901f24n.js";
|
|
36
|
+
import"./index-p5zh7pmc.js";
|
|
37
|
+
import"./index-knpm8sdm.js";
|
|
38
|
+
import"./index-z96ks033.js";
|
|
39
|
+
import"./index-dmcpetwe.js";
|
|
40
|
+
import"./index-ebn9kgea.js";
|
|
41
|
+
import"./index-612fdtbk.js";
|
|
37
42
|
import"./index-m9jj544v.js";
|
|
38
|
-
import"./index-
|
|
39
|
-
import"./index-
|
|
40
|
-
import"./index-
|
|
43
|
+
import"./index-9wh04mqy.js";
|
|
44
|
+
import"./index-a860mx0m.js";
|
|
45
|
+
import"./index-ybcb9wc8.js";
|
|
41
46
|
import {
|
|
42
47
|
AgentScript
|
|
43
|
-
} from "./index-
|
|
48
|
+
} from "./index-j6jjmn2r.js";
|
|
44
49
|
import {
|
|
45
50
|
LibraryScript
|
|
46
|
-
} from "./index-
|
|
47
|
-
import"./index-
|
|
51
|
+
} from "./index-2jmvfa62.js";
|
|
52
|
+
import"./index-rwgqba9p.js";
|
|
48
53
|
import {
|
|
49
54
|
ApplicationScript
|
|
50
|
-
} from "./index-
|
|
51
|
-
import"./index-
|
|
52
|
-
import"./index-
|
|
53
|
-
import"./index-
|
|
55
|
+
} from "./index-41a03gkj.js";
|
|
56
|
+
import"./index-s885g0jj.js";
|
|
57
|
+
import"./index-p7beqww9.js";
|
|
58
|
+
import"./index-2ny1e95c.js";
|
|
54
59
|
import {
|
|
55
60
|
PackageScript
|
|
56
|
-
} from "./index-
|
|
57
|
-
import"./index-
|
|
61
|
+
} from "./index-275a4r3n.js";
|
|
62
|
+
import"./index-xwwex8rf.js";
|
|
58
63
|
import {
|
|
59
64
|
CloudScript2
|
|
60
|
-
} from "./index-
|
|
61
|
-
import"./index-
|
|
62
|
-
import"./index-
|
|
63
|
-
import"./index-
|
|
64
|
-
import"./index-
|
|
65
|
-
import"./index-
|
|
66
|
-
import"./index-
|
|
67
|
-
import"./index-
|
|
68
|
-
import"./index-
|
|
65
|
+
} from "./index-k6vwww45.js";
|
|
66
|
+
import"./index-j0wr4e32.js";
|
|
67
|
+
import"./index-xs9a3ddt.js";
|
|
68
|
+
import"./index-kfvjzk8r.js";
|
|
69
|
+
import"./index-3txdtztz.js";
|
|
70
|
+
import"./index-gt8phqpt.js";
|
|
71
|
+
import"./index-6dzjer7p.js";
|
|
72
|
+
import"./index-4ss4gkv3.js";
|
|
73
|
+
import"./index-67sd09ag.js";
|
|
69
74
|
import {
|
|
70
75
|
ContextScript
|
|
71
|
-
} from "./index-
|
|
72
|
-
import"./index-
|
|
76
|
+
} from "./index-0s7w2085.js";
|
|
77
|
+
import"./index-j592zfqc.js";
|
|
73
78
|
import {
|
|
74
79
|
assertPlainName
|
|
75
80
|
} from "./index-va90m8nd.js";
|
|
76
81
|
import"./index-9bv479q5.js";
|
|
82
|
+
import"./index-7wf8snar.js";
|
|
77
83
|
|
|
78
84
|
// pkgs/@akanjs/cli/workspace/workspace.command.ts
|
|
79
85
|
import path from "path";
|
|
@@ -166,9 +172,9 @@ class WorkspaceScript extends script("workspace", [
|
|
|
166
172
|
AKAN_MACHINE_PUBLIC_KEY=${publicKey}`);
|
|
167
173
|
}
|
|
168
174
|
async lint(exec, workspace, { fix = true, maxDiagnostics } = {}) {
|
|
169
|
-
if (exec instanceof
|
|
175
|
+
if (exec instanceof AppExecutor2)
|
|
170
176
|
await this.applicationScript.sync(exec);
|
|
171
|
-
else if (exec instanceof
|
|
177
|
+
else if (exec instanceof LibExecutor2)
|
|
172
178
|
await this.libraryScript.syncLibrary(exec);
|
|
173
179
|
const spinner = workspace.spinning(`Linting${fix ? " with fix" : ""}...`);
|
|
174
180
|
try {
|
|
@@ -182,20 +188,20 @@ AKAN_MACHINE_PUBLIC_KEY=${publicKey}`);
|
|
|
182
188
|
async lintAll(workspace, { fix = true, maxDiagnostics } = {}) {
|
|
183
189
|
const [appNames, libNames, pkgNames] = await workspace.getExecs();
|
|
184
190
|
const options = { fix, maxDiagnostics };
|
|
185
|
-
await Promise.all(appNames.map((appName) => this.applicationScript.sync(
|
|
186
|
-
await Promise.all(libNames.map((libName) => this.libraryScript.syncLibrary(
|
|
191
|
+
await Promise.all(appNames.map((appName) => this.applicationScript.sync(AppExecutor2.from(workspace, appName))));
|
|
192
|
+
await Promise.all(libNames.map((libName) => this.libraryScript.syncLibrary(LibExecutor2.from(workspace, libName))));
|
|
187
193
|
await Promise.all([
|
|
188
|
-
...appNames.map((appName) => this.workspaceRunner.lint(
|
|
189
|
-
...libNames.map((libName) => this.workspaceRunner.lint(
|
|
190
|
-
...pkgNames.filter((pkgName) => pkgName !== "contract").map((pkgName) => this.workspaceRunner.lint(
|
|
194
|
+
...appNames.map((appName) => this.workspaceRunner.lint(AppExecutor2.from(workspace, appName), workspace, options)),
|
|
195
|
+
...libNames.map((libName) => this.workspaceRunner.lint(LibExecutor2.from(workspace, libName), workspace, options)),
|
|
196
|
+
...pkgNames.filter((pkgName) => pkgName !== "contract").map((pkgName) => this.workspaceRunner.lint(PkgExecutor2.from(workspace, pkgName), workspace, options))
|
|
191
197
|
]);
|
|
192
198
|
}
|
|
193
199
|
async syncAll(workspace) {
|
|
194
200
|
const [appNames, libNames] = await workspace.getExecs();
|
|
195
201
|
for (const libName of libNames)
|
|
196
|
-
await this.libraryScript.syncLibrary(
|
|
202
|
+
await this.libraryScript.syncLibrary(LibExecutor2.from(workspace, libName));
|
|
197
203
|
for (const appName of appNames)
|
|
198
|
-
await this.applicationScript.sync(
|
|
204
|
+
await this.applicationScript.sync(AppExecutor2.from(workspace, appName));
|
|
199
205
|
}
|
|
200
206
|
async init(devProjectId, workspace, { host } = {}) {
|
|
201
207
|
const [bunfigExists, packageJsonExists, tsconfigExists] = await Promise.all([
|
|
@@ -279,10 +285,10 @@ class WorkspaceCommand extends command("workspace", [WorkspaceScript], ({ public
|
|
|
279
285
|
}).option("overwrite", Boolean, { desc: "Overwrite existing agent rule files", default: false }).option("cursorRules", Boolean, { desc: "Generate .cursor/rules/akan.mdc", default: true }).with(Workspace).exec(async function(overwrite, cursorRules, workspace) {
|
|
280
286
|
await this.workspaceScript.generateAgentRules(workspace, { overwrite, cursorRules });
|
|
281
287
|
}),
|
|
282
|
-
lint: target({ desc: "Lint and fix code in a specific app/lib/pkg" }).with(Exec).option("fix", Boolean, { default: true }).option("maxDiagnostics", Number, maxDiagnosticsOption).with(Workspace).exec(async function(exec, fix, maxDiagnostics, workspace) {
|
|
288
|
+
lint: target({ desc: "Lint and fix code in a specific app/lib/pkg", readOnly: ({ fix }) => fix === false }).with(Exec).option("fix", Boolean, { default: true }).option("maxDiagnostics", Number, maxDiagnosticsOption).with(Workspace).exec(async function(exec, fix, maxDiagnostics, workspace) {
|
|
283
289
|
await this.workspaceScript.lint(exec, workspace, { fix, maxDiagnostics });
|
|
284
290
|
}),
|
|
285
|
-
lintAll: target({ desc: "Lint and fix code in all apps and libraries" }).option("fix", Boolean, { default: true }).option("maxDiagnostics", Number, maxDiagnosticsOption).with(Workspace).exec(async function(fix, maxDiagnostics, workspace) {
|
|
291
|
+
lintAll: target({ desc: "Lint and fix code in all apps and libraries", readOnly: ({ fix }) => fix === false }).option("fix", Boolean, { default: true }).option("maxDiagnostics", Number, maxDiagnosticsOption).with(Workspace).exec(async function(fix, maxDiagnostics, workspace) {
|
|
286
292
|
await this.workspaceScript.lintAll(workspace, { fix, maxDiagnostics });
|
|
287
293
|
}),
|
|
288
294
|
machineKeygen: target({
|
package/CodeAgent-x2p3a3e0.js
DELETED
package/TunnelShare-c4xsfzg5.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
TunnelShare2
|
|
4
|
-
} from "./index-k92x3vne.js";
|
|
5
|
-
import"./index-rfzp4pqs.js";
|
|
6
|
-
import"./index-43f4h4cm.js";
|
|
7
|
-
import"./index-m9jj544v.js";
|
|
8
|
-
import"./index-xvk2a75m.js";
|
|
9
|
-
import"./index-nmvhjn8c.js";
|
|
10
|
-
import"./index-3ghdb7p5.js";
|
|
11
|
-
import"./index-j4yvgfhr.js";
|
|
12
|
-
import"./index-bns3wcpc.js";
|
|
13
|
-
export {
|
|
14
|
-
TunnelShare2 as TunnelShare
|
|
15
|
-
};
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
Workspace,
|
|
4
|
-
command
|
|
5
|
-
} from "./index-exn38bzx.js";
|
|
6
|
-
import"./index-j4yvgfhr.js";
|
|
7
|
-
import"./index-bns3wcpc.js";
|
|
8
|
-
import"./index-3ghdb7p5.js";
|
|
9
|
-
import"./index-35j83zkd.js";
|
|
10
|
-
import"./index-j6eeh5d7.js";
|
|
11
|
-
import"./index-yckz5t8b.js";
|
|
12
|
-
import"./index-hj6w4ka1.js";
|
|
13
|
-
import"./index-2vgv7fs7.js";
|
|
14
|
-
import"./index-9p260r4e.js";
|
|
15
|
-
import"./index-j9790rhk.js";
|
|
16
|
-
import"./index-vm0dn0mt.js";
|
|
17
|
-
import"./index-43f4h4cm.js";
|
|
18
|
-
import"./index-an76bdrv.js";
|
|
19
|
-
import"./index-m9jj544v.js";
|
|
20
|
-
import"./index-nmvhjn8c.js";
|
|
21
|
-
import"./index-xvk2a75m.js";
|
|
22
|
-
import"./index-xyn02k0w.js";
|
|
23
|
-
import"./index-5zwr4n6k.js";
|
|
24
|
-
import"./index-62md4dwy.js";
|
|
25
|
-
import"./index-ygdbn9jn.js";
|
|
26
|
-
import"./index-ny2k80mv.js";
|
|
27
|
-
import"./index-t4d0ckde.js";
|
|
28
|
-
import"./index-ra9fvn7s.js";
|
|
29
|
-
import {
|
|
30
|
-
AgentScript
|
|
31
|
-
} from "./index-grxs6fts.js";
|
|
32
|
-
import"./index-gcx48get.js";
|
|
33
|
-
|
|
34
|
-
// pkgs/@akanjs/cli/agent/agent.command.ts
|
|
35
|
-
class AgentCommand extends command("agent", [AgentScript], ({ public: target }) => ({
|
|
36
|
-
agent: target({ desc: "Install Akan agent rules for editors and coding agents", stdio: true, usageExitCode: 1 }).arg("action", String, { desc: "install, or hook (run by Claude Code hooks)" }).arg("target", String, {
|
|
37
|
-
desc: "install: cursor, agents-md, claude, rules, skills, hooks, or all; hook: pre-edit, post-edit, stop",
|
|
38
|
-
nullable: true
|
|
39
|
-
}).option("force", Boolean, {
|
|
40
|
-
desc: "overwrite existing pointer files and generated files you took over",
|
|
41
|
-
default: false
|
|
42
|
-
}).option("check", Boolean, {
|
|
43
|
-
desc: "write nothing; exit 3 when install would create, change or remove a file",
|
|
44
|
-
default: false
|
|
45
|
-
}).with(Workspace).exec(async function(action, targetName, force, check, workspace) {
|
|
46
|
-
await this.agentScript.agent(workspace, action, targetName, { force, check });
|
|
47
|
-
})
|
|
48
|
-
})) {
|
|
49
|
-
}
|
|
50
|
-
export {
|
|
51
|
-
AgentCommand
|
|
52
|
-
};
|
package/cloud.script-xze4zh7n.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
CloudScript2
|
|
4
|
-
} from "./index-gxav1bjz.js";
|
|
5
|
-
import"./index-rp4yf32g.js";
|
|
6
|
-
import"./index-28x1aszt.js";
|
|
7
|
-
import"./index-j6gc8n14.js";
|
|
8
|
-
import"./index-swwjakt0.js";
|
|
9
|
-
import"./index-rfzp4pqs.js";
|
|
10
|
-
import"./index-ny2k80mv.js";
|
|
11
|
-
import"./index-j9790rhk.js";
|
|
12
|
-
import"./index-gcx48get.js";
|
|
13
|
-
import"./index-5zwr4n6k.js";
|
|
14
|
-
import"./index-an76bdrv.js";
|
|
15
|
-
import"./index-43f4h4cm.js";
|
|
16
|
-
import"./index-m9jj544v.js";
|
|
17
|
-
import"./index-exn38bzx.js";
|
|
18
|
-
import"./index-9bv479q5.js";
|
|
19
|
-
import"./index-b4qq3rq0.js";
|
|
20
|
-
import"./index-cmg5ngqa.js";
|
|
21
|
-
import"./index-9p260r4e.js";
|
|
22
|
-
import"./index-xvk2a75m.js";
|
|
23
|
-
import"./index-vm0dn0mt.js";
|
|
24
|
-
import"./index-nmvhjn8c.js";
|
|
25
|
-
import"./index-3ghdb7p5.js";
|
|
26
|
-
import"./index-j4yvgfhr.js";
|
|
27
|
-
import"./index-qd7xn2bk.js";
|
|
28
|
-
import"./index-bns3wcpc.js";
|
|
29
|
-
export {
|
|
30
|
-
CloudScript2 as CloudScript
|
|
31
|
-
};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
Workspace,
|
|
4
|
-
command
|
|
5
|
-
} from "./index-exn38bzx.js";
|
|
6
|
-
import"./index-j4yvgfhr.js";
|
|
7
|
-
import"./index-bns3wcpc.js";
|
|
8
|
-
import"./index-3ghdb7p5.js";
|
|
9
|
-
import"./index-yckz5t8b.js";
|
|
10
|
-
import"./index-hj6w4ka1.js";
|
|
11
|
-
import"./index-2vgv7fs7.js";
|
|
12
|
-
import"./index-9p260r4e.js";
|
|
13
|
-
import"./index-j3v29pq7.js";
|
|
14
|
-
import"./index-43f4h4cm.js";
|
|
15
|
-
import"./index-an76bdrv.js";
|
|
16
|
-
import"./index-m9jj544v.js";
|
|
17
|
-
import"./index-nmvhjn8c.js";
|
|
18
|
-
import"./index-xvk2a75m.js";
|
|
19
|
-
import"./index-j6eeh5d7.js";
|
|
20
|
-
import"./index-ygdbn9jn.js";
|
|
21
|
-
import"./index-39jz41jb.js";
|
|
22
|
-
import"./index-99qvtff2.js";
|
|
23
|
-
import"./index-34792nh7.js";
|
|
24
|
-
import"./index-hqv34wzq.js";
|
|
25
|
-
import"./index-0hbtve0a.js";
|
|
26
|
-
import"./index-2mf1aen9.js";
|
|
27
|
-
import"./index-t4d0ckde.js";
|
|
28
|
-
import"./index-5radqwn2.js";
|
|
29
|
-
import {
|
|
30
|
-
ContextScript
|
|
31
|
-
} from "./index-0gg15zwa.js";
|
|
32
|
-
|
|
33
|
-
// pkgs/@akanjs/cli/context/context.command.ts
|
|
34
|
-
class ContextCommand extends command("context", [ContextScript], ({ public: target }) => ({
|
|
35
|
-
context: target({ desc: "Print agent-readable Akan workspace context" }).option("format", String, { desc: "output format", default: "markdown", enum: ["markdown", "json"] }).option("app", String, { desc: "app name to include", nullable: true }).option("module", String, { desc: "module name to include with abstract content", nullable: true }).with(Workspace).exec(async function(format, app, module, workspace) {
|
|
36
|
-
await this.contextScript.context(workspace, { format, app, module });
|
|
37
|
-
}),
|
|
38
|
-
doctor: target({ desc: "Report Akan workspace convention diagnostics" }).option("format", String, { desc: "output format", default: "text", enum: ["text", "json"] }).option("strict", Boolean, { desc: "treat recommended conventions as errors", default: false }).option("ios", Boolean, {
|
|
39
|
-
desc: "report iOS/native config diagnostics (placeholder bundle ids, etc.)",
|
|
40
|
-
default: false
|
|
41
|
-
}).with(Workspace).exec(async function(format, strict, ios, workspace) {
|
|
42
|
-
await this.contextScript.doctor(workspace, { format, strict, ios });
|
|
43
|
-
}),
|
|
44
|
-
mcpInstall: target({ desc: "Install the Akan MCP server config for Cursor, Claude Code, and Codex" }).arg("target", String, { desc: "cursor, claude, codex, or all", nullable: true }).option("force", Boolean, { desc: "overwrite an existing Akan MCP server entry", default: false }).option("mode", String, { desc: "MCP permission mode", default: "apply", enum: ["readonly", "plan", "apply"] }).with(Workspace).exec(async function(targetName, force, mode, workspace) {
|
|
45
|
-
await this.contextScript.mcpInstall(workspace, targetName, { force, mode });
|
|
46
|
-
}),
|
|
47
|
-
mcp: target({ desc: "Start the Akan MCP server over stdio", stdio: true }).option("mode", String, { desc: "MCP permission mode", default: "readonly", enum: ["readonly", "plan", "apply"] }).with(Workspace).exec(async function(mode, workspace) {
|
|
48
|
-
await this.contextScript.mcp(workspace, { mode });
|
|
49
|
-
}),
|
|
50
|
-
mcpCall: target({ desc: "Call one Akan MCP tool for debugging without stdio JSON-RPC" }).arg("tool", String, { desc: "MCP tool name" }).option("mode", String, { desc: "MCP permission mode", default: "readonly", enum: ["readonly", "plan", "apply"] }).option("args", String, { desc: "JSON object to pass as MCP tool arguments", nullable: true }).option("format", String, { desc: "output format", default: "json", enum: ["json"] }).with(Workspace).exec(async function(tool, mode, args, format, workspace) {
|
|
51
|
-
await this.contextScript.mcpCall(workspace, tool, { mode, args, format });
|
|
52
|
-
})
|
|
53
|
-
})) {
|
|
54
|
-
}
|
|
55
|
-
export {
|
|
56
|
-
ContextCommand
|
|
57
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
ContextRunner2
|
|
4
|
-
} from "./index-j3v29pq7.js";
|
|
5
|
-
import"./index-5radqwn2.js";
|
|
6
|
-
import"./index-2mf1aen9.js";
|
|
7
|
-
import"./index-0hbtve0a.js";
|
|
8
|
-
import"./index-99qvtff2.js";
|
|
9
|
-
import"./index-hqv34wzq.js";
|
|
10
|
-
import"./index-34792nh7.js";
|
|
11
|
-
import"./index-t4d0ckde.js";
|
|
12
|
-
import"./index-yckz5t8b.js";
|
|
13
|
-
import"./index-2vgv7fs7.js";
|
|
14
|
-
import"./index-an76bdrv.js";
|
|
15
|
-
import"./index-j6eeh5d7.js";
|
|
16
|
-
import"./index-43f4h4cm.js";
|
|
17
|
-
import"./index-m9jj544v.js";
|
|
18
|
-
import"./index-exn38bzx.js";
|
|
19
|
-
import"./index-39jz41jb.js";
|
|
20
|
-
import"./index-ygdbn9jn.js";
|
|
21
|
-
import"./index-9p260r4e.js";
|
|
22
|
-
import"./index-xvk2a75m.js";
|
|
23
|
-
import"./index-nmvhjn8c.js";
|
|
24
|
-
import"./index-3ghdb7p5.js";
|
|
25
|
-
import"./index-j4yvgfhr.js";
|
|
26
|
-
import"./index-hj6w4ka1.js";
|
|
27
|
-
import"./index-bns3wcpc.js";
|
|
28
|
-
export {
|
|
29
|
-
ContextRunner2 as ContextRunner
|
|
30
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|