@akanjs/cli 3.2.0-rc.3 → 3.2.0-rc.30
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 -1
- package/CodeAgent-c17abdbf.js +11 -0
- package/{CodeTui-wv9yf7eq.js → CodeTui-jed1nj82.js} +822 -666
- package/README.ko.md +26 -1
- package/README.md +26 -1
- package/TunnelShare-mbfcaqg0.js +18 -0
- package/agent.command-9whnc6vb.js +56 -0
- package/akanCode.js +12 -12
- package/appExecutor-020cyesq.js +11 -0
- package/{application.command-6515t682.js → application.command-4eqvyxkw.js} +77 -36
- package/{applicationBuildRunner-bqbyeg84.js → applicationBuildRunner-frtcrqfd.js} +18 -13
- package/buildBatch.proc.js +26 -11
- package/{cloud.command-32esk0v1.js → cloud.command-hbvmeezn.js} +31 -28
- package/cloud.script-9kmbr3d6.js +35 -0
- package/{code.command-xk7rwq2x.js → code.command-0ayrenk4.js} +14 -9
- package/{context.command-jwenkkf0.js → context.command-php852kf.js} +28 -23
- package/context.runner-nngmn7c0.js +34 -0
- package/{dependencyScanner-78sq8m4q.js → dependencyScanner-ge10gb52.js} +2 -2
- package/{devTui-cd03z4mx.js → devTui-rf374y2w.js} +1 -1
- package/{fileSys-zpvt5gtf.js → fileSys-q22646yc.js} +1 -1
- package/{guideline.command-w6yqpdec.js → guideline.command-w1grfwh7.js} +9 -4
- package/guidelines/agentRule/agentRule.instruction.md +29 -12
- package/guidelines/akanApi/akanApi.instruction.md +5 -3
- package/guidelines/conventions/core.md +23 -5
- package/guidelines/conventions/rules/app.md +4 -1
- package/guidelines/conventions/rules/page.md +5 -0
- package/guidelines/conventions/rules/ts.md +3 -3
- package/guidelines/errorCodes/errorCodes.instruction.md +158 -0
- package/guidelines/fieldRule/fieldRule.instruction.md +2 -1
- package/guidelines/mcpRule/mcpRule.instruction.md +96 -2
- package/guidelines/pageRule/pageRule.instruction.md +15 -1
- package/guidelines/runtimeRule/runtimeRule.instruction.md +12 -6
- package/guidelines/transportRule/transportRule.instruction.md +8 -1
- package/incrementalBuilder.proc.js +574 -410
- package/{index-w15mg3km.js → index-0dm25wvf.js} +1 -1
- package/{index-xrmrvafh.js → index-0gaj78wn.js} +808 -694
- package/{index-j1hjb477.js → index-11d7nh8a.js} +1 -1
- package/{index-hj6w4ka1.js → index-1p81ecbz.js} +1 -1
- package/{index-ygrdw6jw.js → index-1pjwsh2g.js} +65 -8
- package/{index-43acpsc7.js → index-28nk8w3j.js} +12 -12
- package/{index-qd7xn2bk.js → index-2ny1e95c.js} +2 -2
- package/{index-8gm4yag8.js → index-42jhx2ya.js} +6 -6
- package/{index-2rqyrvcy.js → index-4st0hq72.js} +62 -33
- package/{index-bak9f2br.js → index-5d57kx0s.js} +15 -11
- package/{index-bdmgqzb5.js → index-6469101k.js} +58 -29
- package/{index-7kmbqp0b.js → index-6pxmcaq8.js} +1 -1
- package/{index-54s6knqe.js → index-6zb17wcm.js} +12 -10
- package/{index-0ba8nj4d.js → index-7bs463x7.js} +50 -38
- package/{index-y725zb1a.js → index-7v7tvgt7.js} +196 -168
- package/{index-r0a604h4.js → index-99kjwyma.js} +1 -1
- package/{index-2mrn1mrg.js → index-9f3reh2y.js} +1 -1
- package/{index-386canwe.js → index-9rv2zt48.js} +186 -121
- package/{index-20wvskt8.js → index-9wab2ngg.js} +1 -1
- package/{index-2eym1yjb.js → index-9wjrwjgz.js} +288 -209
- package/{index-kcpk2d20.js → index-at6haq2x.js} +1474 -1139
- package/{index-6h775rv3.js → index-ba2xd32s.js} +53 -12
- package/{index-yf9wc28h.js → index-bejy9zyc.js} +1 -1
- package/{index-ngpt3zz3.js → index-bj8s07s7.js} +525 -440
- package/{index-bns3wcpc.js → index-by2tvsq6.js} +1 -1
- package/{index-vbhx60x5.js → index-cb91b6d8.js} +2140 -2165
- package/index-dss3ds74.js +127 -0
- package/{index-e22zedc2.js → index-f16kr6vj.js} +3 -3
- package/{index-ny2k80mv.js → index-ffa52fwf.js} +1 -1
- package/{index-djc5nxpy.js → index-fp5xf6ef.js} +6 -6
- package/{index-qrk06tfp.js → index-g45y5f3e.js} +2 -2
- package/{index-8jpc5fqv.js → index-g7jgd4xs.js} +2 -2
- package/index-j4yvgfhr.js +70 -0
- package/{index-ytpmk3pb.js → index-jgj31xvw.js} +18 -11
- package/{index-j6eeh5d7.js → index-knpm8sdm.js} +5 -5
- package/{index-s34v3y28.js → index-m3t28rt3.js} +11 -11
- package/{index-dpgywgeq.js → index-m5gg0wzv.js} +27 -16
- package/index-na8r4a27.js +30 -0
- package/{index-h0p6n4k1.js → index-nm7nt9vm.js} +3 -3
- package/{index-j4hkbzj6.js → index-p06kfhdf.js} +6 -6
- package/{index-35j83zkd.js → index-p5zh7pmc.js} +2 -2
- package/{index-cmg5ngqa.js → index-p7beqww9.js} +2 -2
- package/{index-zhkcab5a.js → index-prgvqqxe.js} +580 -364
- package/{index-wfmpxke3.js → index-qssq2d41.js} +2775 -3677
- package/{index-sc0g6zbm.js → index-rwgqba9p.js} +24 -11
- package/{index-zcdmnfrf.js → index-s3m89wt2.js} +9 -9
- package/{index-v50xjbbe.js → index-t4d0ckde.js} +1 -1
- package/{index-9p260r4e.js → index-trffs83s.js} +538 -250
- package/{index-ddk49ypz.js → index-v929w7j7.js} +133 -49
- package/index-va90m8nd.js +25 -0
- package/index-vjbne22r.js +80 -0
- package/{index-h7hehkw6.js → index-xczjdng6.js} +3 -1
- package/{index-39jz41jb.js → index-xs9a3ddt.js} +3 -3
- package/{index-84c2pgak.js → index-yvzm8mby.js} +94 -82
- package/{index-wr9magsr.js → index-yxkjsyx8.js} +3 -3
- package/index-ze48c0vd.js +788 -0
- package/{index-ygdbn9jn.js → index-zyb0ebm4.js} +1 -1
- package/index.js +29 -24
- package/libExecutor-tq994592.js +10 -0
- package/{library.command-qs8beggh.js → library.command-x219mhcx.js} +9 -4
- package/{localRegistry.command-hz4ged9n.js → localRegistry.command-zvdcejhn.js} +30 -24
- package/{module.command-z9js77m2.js → module.command-k6cwcm7g.js} +17 -8
- package/{package.command-zqenq8c0.js → package.command-vw7x09f8.js} +13 -8
- package/package.json +2 -2
- package/{page.command-t0nx1jat.js → page.command-gf06paq2.js} +9 -4
- package/{pipeline.command-2yjeas7m.js → pipeline.command-y07dgj9b.js} +14 -8
- package/pkgExecutor-stde3yc3.js +10 -0
- package/{primitive.command-v5kypwy4.js → primitive.command-edydvh07.js} +13 -8
- package/{projectTypecheck-s9hhe5sa.js → projectTypecheck-mk8wefvd.js} +2 -1
- package/{prompter-qrwx1p17.js → prompter-qyggfhqd.js} +2 -2
- package/{quality.command-q55j2htd.js → quality.command-mdb45vyr.js} +23 -16
- package/{recipeScanner-4b69ybe0.js → recipeScanner-rrx69awy.js} +1 -1
- package/{repair.command-7ssbbdq2.js → repair.command-kvtaeecy.js} +13 -8
- package/{routeSourceValidator-4h947v7c.js → routeSourceValidator-8n6j1vn7.js} +4 -2
- package/{scalar.command-p5jb7z57.js → scalar.command-sjt9p5e1.js} +11 -6
- package/skills/akan-debug/SKILL.md +10 -3
- package/skills/akan-err/SKILL.md +7 -0
- package/skills/akan-mcp/SKILL.md +14 -2
- package/skills/akan-scaffold/SKILL.md +2 -2
- package/skills/akan-transport/SKILL.md +2 -0
- package/skills/akan-validate/SKILL.md +1 -0
- package/{subspace.command-7wxy6ptj.js → subspace.command-mkkqync4.js} +29 -23
- 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/AGENTS.md.template +2 -1
- package/{tunnel.command-22g11n0x.js → tunnel.command-tr5b3030.js} +17 -12
- package/{typeChecker-s640r6c0.js → typeChecker-bfrd1n9n.js} +1 -1
- package/typecheck.proc.js +6 -3
- package/{verify.command-m0wnndd7.js → verify.command-0p9h8tpp.js} +26 -20
- package/{workflow.command-jx8dqs9n.js → workflow.command-9mfcwqzj.js} +37 -19
- package/{workspace.command-ca9kfyt3.js → workspace.command-5hjtmcfs.js} +61 -54
- package/CodeAgent-e9c712an.js +0 -11
- package/TunnelShare-zkfkrw8w.js +0 -14
- package/agent.command-9erafkcb.js +0 -51
- package/cloud.script-arsagnq6.js +0 -30
- package/context.runner-mqpp67br.js +0 -29
- package/index-x3x31df8.js +0 -14
- /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
|
@@ -2,37 +2,43 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Workspace,
|
|
4
4
|
script,
|
|
5
|
-
ExitCodeError,
|
|
6
5
|
markCliErrorPrinted,
|
|
7
6
|
command
|
|
8
|
-
} from "./index-
|
|
9
|
-
import
|
|
10
|
-
|
|
7
|
+
} from "./index-9rv2zt48.js";
|
|
8
|
+
import {
|
|
9
|
+
CliError
|
|
10
|
+
} from "./index-j4yvgfhr.js";
|
|
11
|
+
import"./index-qssq2d41.js";
|
|
12
|
+
import"./index-by2tvsq6.js";
|
|
13
|
+
import"./index-ze48c0vd.js";
|
|
14
|
+
import"./index-na8r4a27.js";
|
|
15
|
+
import"./index-dss3ds74.js";
|
|
11
16
|
import {
|
|
12
17
|
ApplicationRunner,
|
|
13
18
|
VerifyScope
|
|
14
|
-
} from "./index-
|
|
15
|
-
import"./index-
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
19
|
+
} from "./index-at6haq2x.js";
|
|
20
|
+
import"./index-7v7tvgt7.js";
|
|
21
|
+
import"./index-fp5xf6ef.js";
|
|
22
|
+
import"./index-9wab2ngg.js";
|
|
18
23
|
import"./index-m9jj544v.js";
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
24
|
+
import"./index-yvzm8mby.js";
|
|
25
|
+
import"./index-yxkjsyx8.js";
|
|
26
|
+
import"./index-1p81ecbz.js";
|
|
21
27
|
import"./index-62md4dwy.js";
|
|
28
|
+
import"./index-zyb0ebm4.js";
|
|
22
29
|
import {
|
|
23
30
|
WorkspaceRunner
|
|
24
|
-
} from "./index-
|
|
25
|
-
import"./index-
|
|
26
|
-
import"./index-
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
29
|
-
import"./index-ny2k80mv.js";
|
|
30
|
-
import"./index-v50xjbbe.js";
|
|
31
|
+
} from "./index-prgvqqxe.js";
|
|
32
|
+
import"./index-1pjwsh2g.js";
|
|
33
|
+
import"./index-trffs83s.js";
|
|
34
|
+
import"./index-ffa52fwf.js";
|
|
35
|
+
import"./index-t4d0ckde.js";
|
|
31
36
|
import {
|
|
32
37
|
VerifyPipeline,
|
|
33
38
|
VerifyReport
|
|
34
|
-
} from "./index-
|
|
35
|
-
import"./index-
|
|
39
|
+
} from "./index-m5gg0wzv.js";
|
|
40
|
+
import"./index-g7jgd4xs.js";
|
|
41
|
+
import"./index-vjbne22r.js";
|
|
36
42
|
|
|
37
43
|
// pkgs/@akanjs/cli/verify/verify.script.ts
|
|
38
44
|
import path from "path";
|
|
@@ -51,7 +57,7 @@ class VerifyScript extends script("verify", [WorkspaceRunner, ApplicationRunner]
|
|
|
51
57
|
Logger.rawLog(options.format === "json" ? VerifyReport.json(result) : VerifyReport.text(result, { max: options.max }));
|
|
52
58
|
if (result.ok)
|
|
53
59
|
return;
|
|
54
|
-
const failure = new
|
|
60
|
+
const failure = new CliError("checkFailed", "verify failed");
|
|
55
61
|
markCliErrorPrinted(failure);
|
|
56
62
|
throw failure;
|
|
57
63
|
}
|
|
@@ -3,28 +3,33 @@ import {
|
|
|
3
3
|
Workspace,
|
|
4
4
|
script,
|
|
5
5
|
command
|
|
6
|
-
} from "./index-
|
|
7
|
-
import"./index-
|
|
8
|
-
import"./index-
|
|
6
|
+
} from "./index-9rv2zt48.js";
|
|
7
|
+
import"./index-j4yvgfhr.js";
|
|
8
|
+
import"./index-qssq2d41.js";
|
|
9
|
+
import"./index-by2tvsq6.js";
|
|
10
|
+
import"./index-ze48c0vd.js";
|
|
11
|
+
import"./index-na8r4a27.js";
|
|
12
|
+
import"./index-dss3ds74.js";
|
|
9
13
|
import {
|
|
10
14
|
jsonText,
|
|
11
15
|
workflowStatus,
|
|
12
16
|
renderWorkflowPlan,
|
|
13
17
|
renderWorkflowApply,
|
|
14
18
|
renderWorkflowValidation
|
|
15
|
-
} from "./index-
|
|
16
|
-
import"./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-0gaj78wn.js";
|
|
20
|
+
import"./index-trffs83s.js";
|
|
21
|
+
import"./index-bj8s07s7.js";
|
|
22
|
+
import"./index-1p81ecbz.js";
|
|
23
|
+
import"./index-6pxmcaq8.js";
|
|
24
|
+
import"./index-m3t28rt3.js";
|
|
25
|
+
import"./index-7bs463x7.js";
|
|
26
|
+
import"./index-42jhx2ya.js";
|
|
27
|
+
import"./index-nm7nt9vm.js";
|
|
28
|
+
import"./index-t4d0ckde.js";
|
|
25
29
|
import {
|
|
26
30
|
WorkflowRunner
|
|
27
|
-
} from "./index-
|
|
31
|
+
} from "./index-28nk8w3j.js";
|
|
32
|
+
import"./index-vjbne22r.js";
|
|
28
33
|
|
|
29
34
|
// pkgs/@akanjs/cli/workflow/workflow.script.ts
|
|
30
35
|
import { Logger } from "akanjs/common";
|
|
@@ -46,7 +51,7 @@ class WorkflowScript extends script("workflow", [WorkflowRunner]) {
|
|
|
46
51
|
return;
|
|
47
52
|
}
|
|
48
53
|
if (action === "plan") {
|
|
49
|
-
const plan = await this.workflowRunner.planReport(workflow, inputs, { out, workspace });
|
|
54
|
+
const plan = await WorkflowScript.#reportOnly(format, () => this.workflowRunner.planReport(workflow, inputs, { out, workspace }));
|
|
50
55
|
Logger.rawLog(format === "json" ? jsonText(plan) : renderWorkflowPlan(plan));
|
|
51
56
|
if (workflowStatus(plan.diagnostics) === "failed")
|
|
52
57
|
process.exitCode = 1;
|
|
@@ -56,7 +61,7 @@ class WorkflowScript extends script("workflow", [WorkflowRunner]) {
|
|
|
56
61
|
if (!workspace)
|
|
57
62
|
throw new Error("Workspace is required for workflow apply.");
|
|
58
63
|
const registry = WorkflowRunner.stepRegistry(workspace);
|
|
59
|
-
const report = await this.workflowRunner.applyReport(workflow, { dryRun, workspace, registry });
|
|
64
|
+
const report = await WorkflowScript.#reportOnly(format, () => this.workflowRunner.applyReport(workflow, { dryRun, workspace, registry }));
|
|
60
65
|
Logger.rawLog(renderWorkflowApply(report, format));
|
|
61
66
|
if (report.status === "failed")
|
|
62
67
|
process.exitCode = 1;
|
|
@@ -65,20 +70,33 @@ class WorkflowScript extends script("workflow", [WorkflowRunner]) {
|
|
|
65
70
|
if (action === "validate") {
|
|
66
71
|
if (!workspace)
|
|
67
72
|
throw new Error("Workspace is required for workflow validate.");
|
|
68
|
-
const report = await this.workflowRunner.validateReport(workflow, { workspace });
|
|
73
|
+
const report = await WorkflowScript.#reportOnly(format, () => this.workflowRunner.validateReport(workflow, { workspace }));
|
|
69
74
|
Logger.rawLog(renderWorkflowValidation(report, format));
|
|
70
|
-
if (report.status === "failed")
|
|
75
|
+
if (report.status === "failed" && report.overallStatus !== "passed-with-baseline-blockers")
|
|
71
76
|
process.exitCode = 1;
|
|
72
77
|
return;
|
|
73
78
|
}
|
|
74
79
|
if (action === "report") {
|
|
75
80
|
if (!workspace)
|
|
76
81
|
throw new Error("Workspace is required for workflow report.");
|
|
77
|
-
Logger.rawLog(await this.workflowRunner.report(workflow, { format, workspace }));
|
|
82
|
+
Logger.rawLog(await WorkflowScript.#reportOnly(format, () => this.workflowRunner.report(workflow, { format, workspace })));
|
|
78
83
|
return;
|
|
79
84
|
}
|
|
80
85
|
throw new Error(`Unknown workflow action: ${action}. Use list, explain, plan, apply, validate, or report.`);
|
|
81
86
|
}
|
|
87
|
+
static async#reportOnly(format, run) {
|
|
88
|
+
if (format !== "json")
|
|
89
|
+
return await run();
|
|
90
|
+
const consoleOutput = Logger.consoleOutput;
|
|
91
|
+
Logger.consoleOutput = false;
|
|
92
|
+
const removeSink = Logger.addSink((entry) => void process.stderr.write(entry.message), { minLevel: Logger.level });
|
|
93
|
+
try {
|
|
94
|
+
return await run();
|
|
95
|
+
} finally {
|
|
96
|
+
removeSink();
|
|
97
|
+
Logger.consoleOutput = consoleOutput;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
82
100
|
}
|
|
83
101
|
|
|
84
102
|
// pkgs/@akanjs/cli/workflow/workflow.command.ts
|
|
@@ -4,75 +4,82 @@ import {
|
|
|
4
4
|
Workspace,
|
|
5
5
|
script,
|
|
6
6
|
command
|
|
7
|
-
} from "./index-
|
|
8
|
-
import"./index-
|
|
7
|
+
} from "./index-9rv2zt48.js";
|
|
8
|
+
import"./index-j4yvgfhr.js";
|
|
9
|
+
import"./index-qssq2d41.js";
|
|
10
|
+
import"./index-by2tvsq6.js";
|
|
9
11
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
AppExecutor2
|
|
13
|
+
} from "./index-ze48c0vd.js";
|
|
14
|
+
import {
|
|
15
|
+
LibExecutor2
|
|
16
|
+
} from "./index-na8r4a27.js";
|
|
17
|
+
import {
|
|
18
|
+
PkgExecutor2
|
|
19
|
+
} from "./index-dss3ds74.js";
|
|
14
20
|
import {
|
|
15
21
|
npmRegistryFromEnv,
|
|
16
22
|
warnIgnoredNpmRegistry
|
|
17
|
-
} from "./index-
|
|
23
|
+
} from "./index-ffa52fwf.js";
|
|
24
|
+
import"./index-1p81ecbz.js";
|
|
18
25
|
import"./index-62md4dwy.js";
|
|
26
|
+
import"./index-zyb0ebm4.js";
|
|
19
27
|
import {
|
|
20
28
|
defaultMaxDiagnostics,
|
|
21
29
|
WorkspaceRunner
|
|
22
|
-
} from "./index-
|
|
23
|
-
import"./index-
|
|
24
|
-
import"./index-
|
|
25
|
-
import"./index-
|
|
26
|
-
import"./index-
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
29
|
-
import"./index-
|
|
30
|
-
import"./index-
|
|
31
|
-
import"./index-
|
|
32
|
-
import"./index-
|
|
33
|
-
import"./index-
|
|
34
|
-
import"./index-djc5nxpy.js";
|
|
35
|
-
import"./index-20wvskt8.js";
|
|
30
|
+
} from "./index-prgvqqxe.js";
|
|
31
|
+
import"./index-1pjwsh2g.js";
|
|
32
|
+
import"./index-trffs83s.js";
|
|
33
|
+
import"./index-t4d0ckde.js";
|
|
34
|
+
import"./index-0gaj78wn.js";
|
|
35
|
+
import"./index-bj8s07s7.js";
|
|
36
|
+
import"./index-p5zh7pmc.js";
|
|
37
|
+
import"./index-knpm8sdm.js";
|
|
38
|
+
import"./index-at6haq2x.js";
|
|
39
|
+
import"./index-7v7tvgt7.js";
|
|
40
|
+
import"./index-fp5xf6ef.js";
|
|
41
|
+
import"./index-9wab2ngg.js";
|
|
36
42
|
import"./index-m9jj544v.js";
|
|
37
|
-
import"./index-
|
|
38
|
-
import"./index-
|
|
39
|
-
import"./index-
|
|
43
|
+
import"./index-yvzm8mby.js";
|
|
44
|
+
import"./index-yxkjsyx8.js";
|
|
45
|
+
import"./index-m5gg0wzv.js";
|
|
40
46
|
import {
|
|
41
47
|
AgentScript
|
|
42
|
-
} from "./index-
|
|
48
|
+
} from "./index-4st0hq72.js";
|
|
43
49
|
import {
|
|
44
50
|
LibraryScript
|
|
45
|
-
} from "./index-
|
|
46
|
-
import"./index-
|
|
51
|
+
} from "./index-6zb17wcm.js";
|
|
52
|
+
import"./index-rwgqba9p.js";
|
|
47
53
|
import {
|
|
48
54
|
ApplicationScript
|
|
49
|
-
} from "./index-
|
|
50
|
-
import"./index-
|
|
51
|
-
import"./index-
|
|
52
|
-
import"./index-
|
|
55
|
+
} from "./index-v929w7j7.js";
|
|
56
|
+
import"./index-f16kr6vj.js";
|
|
57
|
+
import"./index-p7beqww9.js";
|
|
58
|
+
import"./index-2ny1e95c.js";
|
|
53
59
|
import {
|
|
54
60
|
PackageScript
|
|
55
|
-
} from "./index-
|
|
56
|
-
import"./index-
|
|
61
|
+
} from "./index-5d57kx0s.js";
|
|
62
|
+
import"./index-ba2xd32s.js";
|
|
57
63
|
import {
|
|
58
64
|
CloudScript2
|
|
59
|
-
} from "./index-
|
|
60
|
-
import"./index-
|
|
61
|
-
import"./index-
|
|
62
|
-
import"./index-
|
|
63
|
-
import"./index-
|
|
64
|
-
import"./index-
|
|
65
|
-
import"./index-
|
|
66
|
-
import"./index-
|
|
67
|
-
import"./index-
|
|
65
|
+
} from "./index-s3m89wt2.js";
|
|
66
|
+
import"./index-9wjrwjgz.js";
|
|
67
|
+
import"./index-xs9a3ddt.js";
|
|
68
|
+
import"./index-42jhx2ya.js";
|
|
69
|
+
import"./index-6pxmcaq8.js";
|
|
70
|
+
import"./index-m3t28rt3.js";
|
|
71
|
+
import"./index-7bs463x7.js";
|
|
72
|
+
import"./index-nm7nt9vm.js";
|
|
73
|
+
import"./index-28nk8w3j.js";
|
|
68
74
|
import {
|
|
69
75
|
ContextScript
|
|
70
|
-
} from "./index-
|
|
71
|
-
import"./index-
|
|
76
|
+
} from "./index-p06kfhdf.js";
|
|
77
|
+
import"./index-g7jgd4xs.js";
|
|
72
78
|
import {
|
|
73
79
|
assertPlainName
|
|
74
|
-
} from "./index-
|
|
80
|
+
} from "./index-va90m8nd.js";
|
|
75
81
|
import"./index-9bv479q5.js";
|
|
82
|
+
import"./index-vjbne22r.js";
|
|
76
83
|
|
|
77
84
|
// pkgs/@akanjs/cli/workspace/workspace.command.ts
|
|
78
85
|
import path from "path";
|
|
@@ -165,9 +172,9 @@ class WorkspaceScript extends script("workspace", [
|
|
|
165
172
|
AKAN_MACHINE_PUBLIC_KEY=${publicKey}`);
|
|
166
173
|
}
|
|
167
174
|
async lint(exec, workspace, { fix = true, maxDiagnostics } = {}) {
|
|
168
|
-
if (exec instanceof
|
|
175
|
+
if (exec instanceof AppExecutor2)
|
|
169
176
|
await this.applicationScript.sync(exec);
|
|
170
|
-
else if (exec instanceof
|
|
177
|
+
else if (exec instanceof LibExecutor2)
|
|
171
178
|
await this.libraryScript.syncLibrary(exec);
|
|
172
179
|
const spinner = workspace.spinning(`Linting${fix ? " with fix" : ""}...`);
|
|
173
180
|
try {
|
|
@@ -181,20 +188,20 @@ AKAN_MACHINE_PUBLIC_KEY=${publicKey}`);
|
|
|
181
188
|
async lintAll(workspace, { fix = true, maxDiagnostics } = {}) {
|
|
182
189
|
const [appNames, libNames, pkgNames] = await workspace.getExecs();
|
|
183
190
|
const options = { fix, maxDiagnostics };
|
|
184
|
-
await Promise.all(appNames.map((appName) => this.applicationScript.sync(
|
|
185
|
-
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))));
|
|
186
193
|
await Promise.all([
|
|
187
|
-
...appNames.map((appName) => this.workspaceRunner.lint(
|
|
188
|
-
...libNames.map((libName) => this.workspaceRunner.lint(
|
|
189
|
-
...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))
|
|
190
197
|
]);
|
|
191
198
|
}
|
|
192
199
|
async syncAll(workspace) {
|
|
193
200
|
const [appNames, libNames] = await workspace.getExecs();
|
|
194
201
|
for (const libName of libNames)
|
|
195
|
-
await this.libraryScript.syncLibrary(
|
|
202
|
+
await this.libraryScript.syncLibrary(LibExecutor2.from(workspace, libName));
|
|
196
203
|
for (const appName of appNames)
|
|
197
|
-
await this.applicationScript.sync(
|
|
204
|
+
await this.applicationScript.sync(AppExecutor2.from(workspace, appName));
|
|
198
205
|
}
|
|
199
206
|
async init(devProjectId, workspace, { host } = {}) {
|
|
200
207
|
const [bunfigExists, packageJsonExists, tsconfigExists] = await Promise.all([
|
package/CodeAgent-e9c712an.js
DELETED
package/TunnelShare-zkfkrw8w.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
TunnelShare2
|
|
4
|
-
} from "./index-j1hjb477.js";
|
|
5
|
-
import"./index-e22zedc2.js";
|
|
6
|
-
import"./index-djc5nxpy.js";
|
|
7
|
-
import"./index-m9jj544v.js";
|
|
8
|
-
import"./index-wr9magsr.js";
|
|
9
|
-
import"./index-84c2pgak.js";
|
|
10
|
-
import"./index-wfmpxke3.js";
|
|
11
|
-
import"./index-bns3wcpc.js";
|
|
12
|
-
export {
|
|
13
|
-
TunnelShare2 as TunnelShare
|
|
14
|
-
};
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
Workspace,
|
|
4
|
-
command
|
|
5
|
-
} from "./index-386canwe.js";
|
|
6
|
-
import"./index-bns3wcpc.js";
|
|
7
|
-
import"./index-wfmpxke3.js";
|
|
8
|
-
import"./index-35j83zkd.js";
|
|
9
|
-
import"./index-j6eeh5d7.js";
|
|
10
|
-
import"./index-ngpt3zz3.js";
|
|
11
|
-
import"./index-hj6w4ka1.js";
|
|
12
|
-
import"./index-xrmrvafh.js";
|
|
13
|
-
import"./index-9p260r4e.js";
|
|
14
|
-
import"./index-kcpk2d20.js";
|
|
15
|
-
import"./index-y725zb1a.js";
|
|
16
|
-
import"./index-djc5nxpy.js";
|
|
17
|
-
import"./index-20wvskt8.js";
|
|
18
|
-
import"./index-m9jj544v.js";
|
|
19
|
-
import"./index-84c2pgak.js";
|
|
20
|
-
import"./index-wr9magsr.js";
|
|
21
|
-
import"./index-zhkcab5a.js";
|
|
22
|
-
import"./index-ygrdw6jw.js";
|
|
23
|
-
import"./index-62md4dwy.js";
|
|
24
|
-
import"./index-ygdbn9jn.js";
|
|
25
|
-
import"./index-ny2k80mv.js";
|
|
26
|
-
import"./index-v50xjbbe.js";
|
|
27
|
-
import"./index-dpgywgeq.js";
|
|
28
|
-
import {
|
|
29
|
-
AgentScript
|
|
30
|
-
} from "./index-2rqyrvcy.js";
|
|
31
|
-
import"./index-8jpc5fqv.js";
|
|
32
|
-
|
|
33
|
-
// pkgs/@akanjs/cli/agent/agent.command.ts
|
|
34
|
-
class AgentCommand extends command("agent", [AgentScript], ({ public: target }) => ({
|
|
35
|
-
agent: target({ desc: "Install Akan agent rules for editors and coding agents", stdio: true }).arg("action", String, { desc: "install, or hook (run by Claude Code hooks)" }).arg("target", String, {
|
|
36
|
-
desc: "install: cursor, agents-md, claude, rules, skills, hooks, or all; hook: pre-edit, post-edit, stop",
|
|
37
|
-
nullable: true
|
|
38
|
-
}).option("force", Boolean, {
|
|
39
|
-
desc: "overwrite existing pointer files and generated files you took over",
|
|
40
|
-
default: false
|
|
41
|
-
}).option("check", Boolean, {
|
|
42
|
-
desc: "write nothing; exit 1 when install would create, change or remove a file",
|
|
43
|
-
default: false
|
|
44
|
-
}).with(Workspace).exec(async function(action, targetName, force, check, workspace) {
|
|
45
|
-
await this.agentScript.agent(workspace, action, targetName, { force, check });
|
|
46
|
-
})
|
|
47
|
-
})) {
|
|
48
|
-
}
|
|
49
|
-
export {
|
|
50
|
-
AgentCommand
|
|
51
|
-
};
|
package/cloud.script-arsagnq6.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
CloudScript2
|
|
4
|
-
} from "./index-zcdmnfrf.js";
|
|
5
|
-
import"./index-6h775rv3.js";
|
|
6
|
-
import"./index-ddk49ypz.js";
|
|
7
|
-
import"./index-54s6knqe.js";
|
|
8
|
-
import"./index-bak9f2br.js";
|
|
9
|
-
import"./index-e22zedc2.js";
|
|
10
|
-
import"./index-ny2k80mv.js";
|
|
11
|
-
import"./index-kcpk2d20.js";
|
|
12
|
-
import"./index-8jpc5fqv.js";
|
|
13
|
-
import"./index-ygrdw6jw.js";
|
|
14
|
-
import"./index-20wvskt8.js";
|
|
15
|
-
import"./index-djc5nxpy.js";
|
|
16
|
-
import"./index-m9jj544v.js";
|
|
17
|
-
import"./index-386canwe.js";
|
|
18
|
-
import"./index-9bv479q5.js";
|
|
19
|
-
import"./index-sc0g6zbm.js";
|
|
20
|
-
import"./index-cmg5ngqa.js";
|
|
21
|
-
import"./index-9p260r4e.js";
|
|
22
|
-
import"./index-wr9magsr.js";
|
|
23
|
-
import"./index-y725zb1a.js";
|
|
24
|
-
import"./index-84c2pgak.js";
|
|
25
|
-
import"./index-wfmpxke3.js";
|
|
26
|
-
import"./index-qd7xn2bk.js";
|
|
27
|
-
import"./index-bns3wcpc.js";
|
|
28
|
-
export {
|
|
29
|
-
CloudScript2 as CloudScript
|
|
30
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
ContextRunner2
|
|
4
|
-
} from "./index-2eym1yjb.js";
|
|
5
|
-
import"./index-43acpsc7.js";
|
|
6
|
-
import"./index-h0p6n4k1.js";
|
|
7
|
-
import"./index-0ba8nj4d.js";
|
|
8
|
-
import"./index-8gm4yag8.js";
|
|
9
|
-
import"./index-s34v3y28.js";
|
|
10
|
-
import"./index-7kmbqp0b.js";
|
|
11
|
-
import"./index-v50xjbbe.js";
|
|
12
|
-
import"./index-ngpt3zz3.js";
|
|
13
|
-
import"./index-xrmrvafh.js";
|
|
14
|
-
import"./index-20wvskt8.js";
|
|
15
|
-
import"./index-j6eeh5d7.js";
|
|
16
|
-
import"./index-djc5nxpy.js";
|
|
17
|
-
import"./index-m9jj544v.js";
|
|
18
|
-
import"./index-386canwe.js";
|
|
19
|
-
import"./index-39jz41jb.js";
|
|
20
|
-
import"./index-ygdbn9jn.js";
|
|
21
|
-
import"./index-9p260r4e.js";
|
|
22
|
-
import"./index-wr9magsr.js";
|
|
23
|
-
import"./index-84c2pgak.js";
|
|
24
|
-
import"./index-wfmpxke3.js";
|
|
25
|
-
import"./index-hj6w4ka1.js";
|
|
26
|
-
import"./index-bns3wcpc.js";
|
|
27
|
-
export {
|
|
28
|
-
ContextRunner2 as ContextRunner
|
|
29
|
-
};
|
package/index-x3x31df8.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
// pkgs/@akanjs/devkit/workflow/plainName.ts
|
|
3
|
-
var sysNamePattern = /^[a-z0-9][a-zA-Z0-9_-]*$/;
|
|
4
|
-
var identifierPattern = /^_{0,2}[a-zA-Z][a-zA-Z0-9_-]*$/;
|
|
5
|
-
var isWorkflowSysName = (value) => typeof value === "string" && sysNamePattern.test(value);
|
|
6
|
-
var isWorkflowModuleName = (value) => typeof value === "string" && identifierPattern.test(value);
|
|
7
|
-
var assertPlainName = (kind, name) => {
|
|
8
|
-
const isSys = kind === "app" || kind === "lib";
|
|
9
|
-
if (isSys ? isWorkflowSysName(name) : isWorkflowModuleName(name))
|
|
10
|
-
return;
|
|
11
|
-
throw new Error(`${JSON.stringify(name)} is no ${kind} name; use letters, digits, - and _, starting with ${isSys ? "a lowercase letter or digit" : "a letter"}`);
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export { sysNamePattern, identifierPattern, isWorkflowSysName, isWorkflowModuleName, assertPlainName };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|