@akanjs/cli 3.1.2-rc.2 → 3.1.2-rc.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.build-stamp +1 -1
- package/{CodeAgent-nkk70v5h.js → CodeAgent-z34p8m91.js} +2 -2
- package/{CodeTui-sdqz2gxb.js → CodeTui-nvd9fk3g.js} +1 -1
- package/TunnelShare-jwbb50kz.js +14 -0
- package/{agent.command-5gfrfh8d.js → agent.command-962mp3kg.js} +15 -15
- package/akanCode.js +2 -2
- package/{application.command-nd0fshsk.js → application.command-1nr0bqq1.js} +35 -11
- package/{applicationBuildRunner-s13x3zqb.js → applicationBuildRunner-xy7hnfzq.js} +7 -6
- package/buildBatch.proc.js +6 -6
- package/{cloud.command-8kbddsz9.js → cloud.command-cj7b3m6y.js} +15 -15
- package/cloud.script-8kr7qgfa.js +27 -0
- package/{code.command-5djp5c0n.js → code.command-asq7xrr6.js} +6 -6
- package/commandManifest.json +1 -1
- package/{context.command-5d0bscv6.js → context.command-fw4g2pw1.js} +18 -17
- package/context.runner-p6m5cxk3.js +28 -0
- package/{guideline.command-195g0h9a.js → guideline.command-43gfjsjv.js} +2 -2
- package/guidelines/conventions/rules/page.md +4 -2
- package/guidelines/conventions/rules/server.md +2 -0
- package/guidelines/conventions/rules/style.md +3 -1
- package/guidelines/conventions/rules/ts.md +2 -1
- package/guidelines/cssRule/cssRule.instruction.md +3 -1
- package/guidelines/pageRule/pageRule.instruction.md +3 -0
- package/incrementalBuilder.proc.js +52 -6
- package/{index-ms1am2wr.js → index-0tkj05cz.js} +3 -3
- package/{index-00a7j05x.js → index-2yan1ajk.js} +7 -7
- package/{index-g500c5j9.js → index-38by07nw.js} +1 -1
- package/{index-zttm13c3.js → index-38patcx6.js} +4 -4
- package/{index-f6zrhcnk.js → index-53h0053j.js} +23 -8
- package/{index-zbrwnmf1.js → index-6t7fkx73.js} +1 -1
- package/{index-pqdyyxz0.js → index-6zgt7zmx.js} +4 -4
- package/{index-y4kcmbt2.js → index-8d9r465x.js} +2 -2
- package/{index-yep9xcz0.js → index-90q0w90q.js} +1 -1
- package/{index-q9q6jjk1.js → index-ampz4vgv.js} +4 -4
- package/{index-chjaw222.js → index-ap6ac70m.js} +3 -3
- package/{index-dbxac7mz.js → index-ck64kxrn.js} +2 -2
- package/{index-p6x5b7hr.js → index-d894868w.js} +3 -0
- package/{index-sveq36gh.js → index-dcm66hss.js} +2 -2
- package/{index-84h43kg6.js → index-demt944k.js} +2 -2
- package/{index-0j1t1h2b.js → index-g0yds382.js} +1 -1
- package/{index-pnk67cqd.js → index-gfh90r3t.js} +2 -2
- package/{index-19cspack.js → index-hmj94es2.js} +4 -4
- package/{index-3q4kkyd4.js → index-jzpeny42.js} +3 -3
- package/{index-tw27n941.js → index-jzz6ye8x.js} +296 -24
- package/{index-2mwjshz5.js → index-kc6ffq0s.js} +16 -13
- package/{index-tp56652m.js → index-kc871vpc.js} +3 -3
- package/{index-1404hqcj.js → index-kdswbvys.js} +3 -3
- package/{index-defp4gmb.js → index-qev8p5wp.js} +1 -1
- package/{index-1h2jc0x3.js → index-qwe079ww.js} +4 -4
- package/{index-wwe9rsrx.js → index-r0a604h4.js} +12 -2
- package/{index-9zy8479y.js → index-r0q2ka2b.js} +1 -1
- package/{index-ewbmfarf.js → index-r8t5sq7z.js} +31 -8
- package/{index-gf4fcw1n.js → index-re2kfscb.js} +495 -8
- package/{index-gr9thy79.js → index-sra1a5f8.js} +2 -2
- package/{index-khk05tsf.js → index-t0hk1kxq.js} +1 -1
- package/index-vkpqe29t.js +267 -0
- package/{index-sp0qsr7a.js → index-w60zxxye.js} +3 -3
- package/{index-mzjwq4dd.js → index-wymcdsas.js} +8 -8
- package/{index-t78230d7.js → index-y0y0pnx8.js} +3 -2
- package/{index-tyt7cw99.js → index-z47rw9ez.js} +6 -6
- package/index.js +23 -23
- package/{library.command-63hgt9te.js → library.command-zh29tjdd.js} +3 -3
- package/{localRegistry.command-g3f8k25t.js → localRegistry.command-k9pn9ahj.js} +14 -14
- package/{module.command-myykfb6s.js → module.command-dgpqs9fz.js} +6 -6
- package/{package.command-96eheyvd.js → package.command-1je4hsca.js} +3 -3
- package/package.json +2 -2
- package/{page.command-gs6d841d.js → page.command-cgsasanh.js} +3 -3
- package/{pipeline.command-wdfvdbfj.js → pipeline.command-tb46sa8v.js} +2 -2
- package/{primitive.command-eg2c3m97.js → primitive.command-bzsy23x5.js} +7 -7
- package/{projectTypecheck-kqj1t6hb.js → projectTypecheck-h8rgaczy.js} +1 -1
- package/{quality.command-b840977n.js → quality.command-120m9h6v.js} +4 -4
- package/{repair.command-r7z709yf.js → repair.command-6m4wd0qv.js} +6 -6
- package/{scalar.command-t6hhty3f.js → scalar.command-3dn5hsc6.js} +5 -5
- package/skills/akan-page/SKILL.md +19 -0
- package/skills/akan-service/SKILL.md +47 -0
- package/{subspace.command-a1sf9n5a.js → subspace.command-s8nyfqbn.js} +8 -8
- package/{tunnel.command-dcb0wg93.js → tunnel.command-8mwrqkr3.js} +7 -7
- package/{typeChecker-j2jdnqsr.js → typeChecker-s640r6c0.js} +1 -1
- package/typecheck.proc.js +1 -1
- package/{verify.command-07fqhpak.js → verify.command-2pspfy7k.js} +12 -12
- package/{workflow.command-c2jhzf7v.js → workflow.command-7sy5vnsj.js} +11 -11
- package/{workspace.command-gv20zq1z.js → workspace.command-x518tdv4.js} +30 -29
- package/TunnelShare-hdq9h1hr.js +0 -14
- package/cloud.script-hgvvajm3.js +0 -27
- package/context.runner-2v5pq18d.js +0 -27
- package/templates/workspaceRoot/patches/zod@3.25.76.patch.template +0 -22
- package/templates/workspaceRoot/patches/zod@4.4.3.patch.template +0 -11
package/.build-stamp
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
1a38eb8d8398f32d4195d35dd0a21da5d96c9106b41ac32dc008da90c1837f19
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
TunnelShare2
|
|
4
|
+
} from "./index-y0y0pnx8.js";
|
|
5
|
+
import"./index-sra1a5f8.js";
|
|
6
|
+
import"./index-w60zxxye.js";
|
|
7
|
+
import"./index-m9jj544v.js";
|
|
8
|
+
import"./index-dcm66hss.js";
|
|
9
|
+
import"./index-6t7fkx73.js";
|
|
10
|
+
import"./index-38by07nw.js";
|
|
11
|
+
import"./index-bns3wcpc.js";
|
|
12
|
+
export {
|
|
13
|
+
TunnelShare2 as TunnelShare
|
|
14
|
+
};
|
|
@@ -2,31 +2,31 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Workspace,
|
|
4
4
|
command
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-r0q2ka2b.js";
|
|
6
6
|
import"./index-bns3wcpc.js";
|
|
7
|
-
import"./index-
|
|
7
|
+
import"./index-38by07nw.js";
|
|
8
8
|
import"./index-35j83zkd.js";
|
|
9
9
|
import"./index-j6eeh5d7.js";
|
|
10
10
|
import"./index-hj6w4ka1.js";
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
15
|
-
import"./index-
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
11
|
+
import"./index-kdswbvys.js";
|
|
12
|
+
import"./index-re2kfscb.js";
|
|
13
|
+
import"./index-ck64kxrn.js";
|
|
14
|
+
import"./index-kc6ffq0s.js";
|
|
15
|
+
import"./index-d894868w.js";
|
|
16
|
+
import"./index-w60zxxye.js";
|
|
17
|
+
import"./index-g0yds382.js";
|
|
18
18
|
import"./index-m9jj544v.js";
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-
|
|
19
|
+
import"./index-6t7fkx73.js";
|
|
20
|
+
import"./index-dcm66hss.js";
|
|
21
|
+
import"./index-ap6ac70m.js";
|
|
22
22
|
import"./index-62md4dwy.js";
|
|
23
23
|
import"./index-4am4dvmf.js";
|
|
24
24
|
import"./index-k64mhwbw.js";
|
|
25
|
+
import"./index-jzz6ye8x.js";
|
|
25
26
|
import {
|
|
26
27
|
AgentScript
|
|
27
|
-
} from "./index-
|
|
28
|
-
import"./index-
|
|
29
|
-
import"./index-defp4gmb.js";
|
|
28
|
+
} from "./index-z47rw9ez.js";
|
|
29
|
+
import"./index-qev8p5wp.js";
|
|
30
30
|
|
|
31
31
|
// pkgs/@akanjs/cli/agent/agent.command.ts
|
|
32
32
|
class AgentCommand extends command("agent", [AgentScript], ({ public: target }) => ({
|
package/akanCode.js
CHANGED
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
CodeMailbox2,
|
|
31
31
|
CodeSessionFork2,
|
|
32
32
|
CodeAgent2
|
|
33
|
-
} from "./index-
|
|
33
|
+
} from "./index-jzpeny42.js";
|
|
34
34
|
import {
|
|
35
35
|
akanCodeDefaultModel2,
|
|
36
36
|
akanCodeModel2,
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
import {
|
|
42
42
|
SubagentPool2,
|
|
43
43
|
AkanCodeCompaction2
|
|
44
|
-
} from "./index-
|
|
44
|
+
} from "./index-90q0w90q.js";
|
|
45
45
|
import {
|
|
46
46
|
PreviewChrome2,
|
|
47
47
|
PreviewView2
|
|
@@ -7,20 +7,20 @@ import {
|
|
|
7
7
|
Exec,
|
|
8
8
|
Workspace,
|
|
9
9
|
command
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-r0q2ka2b.js";
|
|
11
11
|
import"./index-bns3wcpc.js";
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
15
|
-
import"./index-
|
|
12
|
+
import"./index-38by07nw.js";
|
|
13
|
+
import"./index-d894868w.js";
|
|
14
|
+
import"./index-w60zxxye.js";
|
|
15
|
+
import"./index-g0yds382.js";
|
|
16
16
|
import"./index-m9jj544v.js";
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
17
|
+
import"./index-6t7fkx73.js";
|
|
18
|
+
import"./index-dcm66hss.js";
|
|
19
|
+
import"./index-8d9r465x.js";
|
|
20
|
+
import"./index-kc6ffq0s.js";
|
|
21
21
|
import {
|
|
22
22
|
ApplicationScript
|
|
23
|
-
} from "./index-
|
|
23
|
+
} from "./index-r8t5sq7z.js";
|
|
24
24
|
import"./index-tenw3mah.js";
|
|
25
25
|
import {
|
|
26
26
|
writeOption,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
allowLocalOption,
|
|
30
30
|
publicEnvOption
|
|
31
31
|
} from "./index-mdjc93e1.js";
|
|
32
|
-
import"./index-
|
|
32
|
+
import"./index-qev8p5wp.js";
|
|
33
33
|
import"./index-9bv479q5.js";
|
|
34
34
|
|
|
35
35
|
// pkgs/@akanjs/cli/application/application.command.ts
|
|
@@ -121,6 +121,30 @@ class ApplicationCommand extends command("application", [ApplicationScript], ({
|
|
|
121
121
|
format: format === "json" ? "json" : "text"
|
|
122
122
|
});
|
|
123
123
|
}),
|
|
124
|
+
studio: target({
|
|
125
|
+
desc: "Print the Akan Studio URL of the app's running dev server: its ERD, each module's signals and the Change Map"
|
|
126
|
+
}).with(App).option("module", String, { desc: "the module to show", nullable: true }).option("view", String, {
|
|
127
|
+
flag: "w",
|
|
128
|
+
desc: "the view to open",
|
|
129
|
+
default: "erd",
|
|
130
|
+
enum: ["erd", "signals", "changes"]
|
|
131
|
+
}).option("since", String, {
|
|
132
|
+
desc: "the git revision the Change Map compares with (default: where HEAD forked from the default branch)",
|
|
133
|
+
nullable: true
|
|
134
|
+
}).option("editor", String, {
|
|
135
|
+
desc: "the editor source links open in",
|
|
136
|
+
default: "vscode",
|
|
137
|
+
enum: ["vscode", "cursor"]
|
|
138
|
+
}).option("open", Boolean, { desc: "also open it in the browser", default: false }).option("format", String, { desc: "output format", default: "text", enum: ["text", "json"] }).exec(async function(app, module, view, since, editor, open, format) {
|
|
139
|
+
await this.applicationScript.studio(app, {
|
|
140
|
+
module,
|
|
141
|
+
view: view === "signals" || view === "changes" ? view : "erd",
|
|
142
|
+
since,
|
|
143
|
+
editor: editor === "cursor" ? "cursor" : "vscode",
|
|
144
|
+
open,
|
|
145
|
+
format: format === "json" ? "json" : "text"
|
|
146
|
+
});
|
|
147
|
+
}),
|
|
124
148
|
console: target({ desc: "Open an interactive server console for the application" }).with(App).exec(async function(app) {
|
|
125
149
|
await this.applicationScript.console(app);
|
|
126
150
|
}),
|
|
@@ -4,19 +4,19 @@ import {
|
|
|
4
4
|
Spinner,
|
|
5
5
|
ProjectTypecheck2,
|
|
6
6
|
WorkspaceExecutor
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-38by07nw.js";
|
|
8
8
|
import"./index-bns3wcpc.js";
|
|
9
|
-
import"./index-
|
|
10
|
-
import"./index-
|
|
9
|
+
import"./index-kc871vpc.js";
|
|
10
|
+
import"./index-6t7fkx73.js";
|
|
11
11
|
import {
|
|
12
12
|
AllRoutesBuilder,
|
|
13
13
|
FontPruner,
|
|
14
14
|
precompressArtifacts,
|
|
15
15
|
SsrBaseArtifactBuilder
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-38patcx6.js";
|
|
17
17
|
import {
|
|
18
18
|
CsrArtifactBuilder
|
|
19
|
-
} from "./index-
|
|
19
|
+
} from "./index-dcm66hss.js";
|
|
20
20
|
import"./index-62md4dwy.js";
|
|
21
21
|
|
|
22
22
|
// pkgs/@akanjs/devkit/applicationBuildRunner.ts
|
|
@@ -195,7 +195,8 @@ class ApplicationBuildRunner {
|
|
|
195
195
|
phases: this.#phases,
|
|
196
196
|
durationMs: Date.now() - this.#startedAt,
|
|
197
197
|
outputDir: this.#app.dist.cwdPath,
|
|
198
|
-
artifactDir: path3.join(this.#app.dist.cwdPath, ".akan/artifact")
|
|
198
|
+
artifactDir: path3.join(this.#app.dist.cwdPath, ".akan/artifact"),
|
|
199
|
+
environment
|
|
199
200
|
};
|
|
200
201
|
}
|
|
201
202
|
async typecheck(options = {}) {
|
package/buildBatch.proc.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
ApplicationBuildReporter
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-d894868w.js";
|
|
5
5
|
import {
|
|
6
6
|
resolveSsrPageEntriesForApp,
|
|
7
7
|
WorkspaceExecutor,
|
|
8
8
|
AppExecutor
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-38by07nw.js";
|
|
10
10
|
import {
|
|
11
11
|
computeRouteSeedIndex,
|
|
12
12
|
saveRouteSeedIndex,
|
|
13
13
|
CsrDevBundler,
|
|
14
14
|
SsrDevBundler
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-kc871vpc.js";
|
|
16
16
|
import"./index-bns3wcpc.js";
|
|
17
17
|
import {
|
|
18
18
|
ServerGraphFile,
|
|
19
19
|
PagesBundleBuilder
|
|
20
|
-
} from "./index-
|
|
20
|
+
} from "./index-6t7fkx73.js";
|
|
21
21
|
import {
|
|
22
22
|
CssCompiler,
|
|
23
23
|
FontOptimizer,
|
|
24
24
|
SsrBaseArtifactBuilder
|
|
25
|
-
} from "./index-
|
|
25
|
+
} from "./index-38patcx6.js";
|
|
26
26
|
import {
|
|
27
27
|
CsrArtifactBuilder
|
|
28
|
-
} from "./index-
|
|
28
|
+
} from "./index-dcm66hss.js";
|
|
29
29
|
import"./index-62md4dwy.js";
|
|
30
30
|
|
|
31
31
|
// pkgs/@akanjs/devkit/incrementalBuilder/buildBatch.proc.ts
|
|
@@ -3,32 +3,32 @@ import {
|
|
|
3
3
|
App,
|
|
4
4
|
Workspace,
|
|
5
5
|
command
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-r0q2ka2b.js";
|
|
7
7
|
import"./index-bns3wcpc.js";
|
|
8
|
-
import"./index-
|
|
9
|
-
import"./index-
|
|
8
|
+
import"./index-38by07nw.js";
|
|
9
|
+
import"./index-sra1a5f8.js";
|
|
10
10
|
import {
|
|
11
11
|
PlatformTestRun
|
|
12
|
-
} from "./index-
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
12
|
+
} from "./index-qwe079ww.js";
|
|
13
|
+
import"./index-w60zxxye.js";
|
|
14
|
+
import"./index-g0yds382.js";
|
|
15
15
|
import"./index-m9jj544v.js";
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
16
|
+
import"./index-6t7fkx73.js";
|
|
17
|
+
import"./index-dcm66hss.js";
|
|
18
18
|
import {
|
|
19
19
|
npmRegistryFromEnv,
|
|
20
20
|
warnIgnoredNpmRegistry
|
|
21
21
|
} from "./index-4am4dvmf.js";
|
|
22
|
-
import"./index-
|
|
23
|
-
import"./index-
|
|
24
|
-
import"./index-
|
|
25
|
-
import"./index-
|
|
22
|
+
import"./index-d894868w.js";
|
|
23
|
+
import"./index-8d9r465x.js";
|
|
24
|
+
import"./index-kc6ffq0s.js";
|
|
25
|
+
import"./index-r8t5sq7z.js";
|
|
26
26
|
import"./index-tenw3mah.js";
|
|
27
27
|
import"./index-qd7xn2bk.js";
|
|
28
|
-
import"./index-
|
|
28
|
+
import"./index-demt944k.js";
|
|
29
29
|
import {
|
|
30
30
|
CloudScript2
|
|
31
|
-
} from "./index-
|
|
31
|
+
} from "./index-2yan1ajk.js";
|
|
32
32
|
import {
|
|
33
33
|
writeOption,
|
|
34
34
|
oneNativeTargetOption,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
hostOption,
|
|
40
40
|
subspaceOption
|
|
41
41
|
} from "./index-mdjc93e1.js";
|
|
42
|
-
import"./index-
|
|
42
|
+
import"./index-qev8p5wp.js";
|
|
43
43
|
import"./index-9bv479q5.js";
|
|
44
44
|
|
|
45
45
|
// pkgs/@akanjs/cli/cloud/cloud.command.ts
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
CloudScript2
|
|
4
|
+
} from "./index-2yan1ajk.js";
|
|
5
|
+
import"./index-qwe079ww.js";
|
|
6
|
+
import"./index-r8t5sq7z.js";
|
|
7
|
+
import"./index-8d9r465x.js";
|
|
8
|
+
import"./index-demt944k.js";
|
|
9
|
+
import"./index-sra1a5f8.js";
|
|
10
|
+
import"./index-4am4dvmf.js";
|
|
11
|
+
import"./index-kc6ffq0s.js";
|
|
12
|
+
import"./index-qev8p5wp.js";
|
|
13
|
+
import"./index-g0yds382.js";
|
|
14
|
+
import"./index-w60zxxye.js";
|
|
15
|
+
import"./index-m9jj544v.js";
|
|
16
|
+
import"./index-r0q2ka2b.js";
|
|
17
|
+
import"./index-9bv479q5.js";
|
|
18
|
+
import"./index-tenw3mah.js";
|
|
19
|
+
import"./index-dcm66hss.js";
|
|
20
|
+
import"./index-d894868w.js";
|
|
21
|
+
import"./index-6t7fkx73.js";
|
|
22
|
+
import"./index-38by07nw.js";
|
|
23
|
+
import"./index-qd7xn2bk.js";
|
|
24
|
+
import"./index-bns3wcpc.js";
|
|
25
|
+
export {
|
|
26
|
+
CloudScript2 as CloudScript
|
|
27
|
+
};
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
runner,
|
|
5
5
|
script,
|
|
6
6
|
command
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-r0q2ka2b.js";
|
|
8
8
|
import"./index-bns3wcpc.js";
|
|
9
|
-
import"./index-
|
|
9
|
+
import"./index-38by07nw.js";
|
|
10
10
|
import {
|
|
11
11
|
AkanCodeEnv,
|
|
12
12
|
akanCodePaths2
|
|
@@ -77,7 +77,7 @@ class CodeRunner extends runner("code") {
|
|
|
77
77
|
async serve(options, listen) {
|
|
78
78
|
await import("./consoleToStderr-h5bryj94.js");
|
|
79
79
|
const [{ CodeAgent }, { CodeAgentRpcHost }, { CodeAgentRpcListener }] = await Promise.all([
|
|
80
|
-
import("./CodeAgent-
|
|
80
|
+
import("./CodeAgent-z34p8m91.js"),
|
|
81
81
|
import("./CodeAgentRpcHost-6dzfkvsc.js"),
|
|
82
82
|
import("./CodeAgentRpcListener-tcwrdvst.js")
|
|
83
83
|
]);
|
|
@@ -111,8 +111,8 @@ class CodeRunner extends runner("code") {
|
|
|
111
111
|
}
|
|
112
112
|
async tui(options, seed) {
|
|
113
113
|
const [{ CodeAgent }, { CodeTui }] = await Promise.all([
|
|
114
|
-
import("./CodeAgent-
|
|
115
|
-
import("./CodeTui-
|
|
114
|
+
import("./CodeAgent-z34p8m91.js"),
|
|
115
|
+
import("./CodeTui-nvd9fk3g.js")
|
|
116
116
|
]);
|
|
117
117
|
const start = await CodeRunner.#start(options, { hostAttached: false, interactive: true, ask: true });
|
|
118
118
|
const agentOptions = start.agent;
|
|
@@ -148,7 +148,7 @@ class CodeRunner extends runner("code") {
|
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
async run(prompt, options) {
|
|
151
|
-
const { CodeAgent } = await import("./CodeAgent-
|
|
151
|
+
const { CodeAgent } = await import("./CodeAgent-z34p8m91.js");
|
|
152
152
|
const ask = !!process.stdin.isTTY && !!process.stderr.isTTY;
|
|
153
153
|
const start = await CodeRunner.#start(options, { hostAttached: false, interactive: false, ask });
|
|
154
154
|
for (const warning of start.warnings)
|
package/commandManifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"byCommand":{"create-workspace":"workspace","generate-agent-rules":"workspace","lint":"workspace","lint-all":"workspace","machine-keygen":"workspace","sync-all":"workspace","init":"workspace","agent":"agent","code":"code","create-application":"application","remove-application":"application","plan-slice":"application","sync":"application","script":"application","migrate":"application","create-migration":"application","preview":"application","console":"application","logs":"application","build":"application","b":"application","typecheck":"application","t":"application","test":"application","build-ios":"application","bi":"application","build-android":"application","ba":"application","build-desktop":"application","bd":"application","start":"application","s":"application","start-ios":"application","si":"application","start-android":"application","sa":"application","start-desktop":"application","sd":"application","release-ios":"application","release-android":"application","pack-update":"application","update-keygen":"application","publish-update":"application","dbup":"application","db-export":"application","db-import":"application","dbdown":"application","create-library":"library","remove-library":"library","sync-library":"library","library-status":"library","install-library":"library","start-registry":"localRegistry","reset-registry":"localRegistry","smoke-registry":"localRegistry","version":"package","create-package":"package","remove-package":"package","sync-package":"package","build-package":"package","verify-dist-package":"package","verify-akan-publish-packages":"package","create-module":"module","remove-module":"module","create-service":"module","create-view":"module","create-unit":"module","create-template":"module","create-crud-page":"page","context":"context","doctor":"context","mcp-install":"context","mcp":"context","mcp-call":"context","login":"cloud","logout":"cloud","deploy-akan":"cloud","test-platforms":"cloud","update":"cloud","push-update":"cloud","register-binary":"cloud","upload-secret":"cloud","list-secrets":"cloud","remove-secret":"cloud","download-env":"cloud","upload-env":"cloud","subspace":"subspace","guideline":"guideline","create-scalar":"scalar","remove-scalar":"scalar","create-ui":"primitive","add-field":"primitive","add-enum-field":"primitive","quality":"quality","verify":"verify","repair":"repair","workflow":"workflow","pipeline":"pipeline","tunnel":"tunnel"}}
|
|
1
|
+
{"byCommand":{"create-workspace":"workspace","generate-agent-rules":"workspace","lint":"workspace","lint-all":"workspace","machine-keygen":"workspace","sync-all":"workspace","init":"workspace","agent":"agent","code":"code","create-application":"application","remove-application":"application","plan-slice":"application","sync":"application","script":"application","migrate":"application","create-migration":"application","preview":"application","studio":"application","console":"application","logs":"application","build":"application","b":"application","typecheck":"application","t":"application","test":"application","build-ios":"application","bi":"application","build-android":"application","ba":"application","build-desktop":"application","bd":"application","start":"application","s":"application","start-ios":"application","si":"application","start-android":"application","sa":"application","start-desktop":"application","sd":"application","release-ios":"application","release-android":"application","pack-update":"application","update-keygen":"application","publish-update":"application","dbup":"application","db-export":"application","db-import":"application","dbdown":"application","create-library":"library","remove-library":"library","sync-library":"library","library-status":"library","install-library":"library","start-registry":"localRegistry","reset-registry":"localRegistry","smoke-registry":"localRegistry","version":"package","create-package":"package","remove-package":"package","sync-package":"package","build-package":"package","verify-dist-package":"package","verify-akan-publish-packages":"package","create-module":"module","remove-module":"module","create-service":"module","create-view":"module","create-unit":"module","create-template":"module","create-crud-page":"page","context":"context","doctor":"context","mcp-install":"context","mcp":"context","mcp-call":"context","login":"cloud","logout":"cloud","deploy-akan":"cloud","test-platforms":"cloud","update":"cloud","push-update":"cloud","register-binary":"cloud","upload-secret":"cloud","list-secrets":"cloud","remove-secret":"cloud","download-env":"cloud","upload-env":"cloud","subspace":"subspace","guideline":"guideline","create-scalar":"scalar","remove-scalar":"scalar","create-ui":"primitive","add-field":"primitive","add-enum-field":"primitive","quality":"quality","verify":"verify","repair":"repair","workflow":"workflow","pipeline":"pipeline","tunnel":"tunnel"}}
|
|
@@ -2,30 +2,31 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Workspace,
|
|
4
4
|
command
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-r0q2ka2b.js";
|
|
6
6
|
import"./index-bns3wcpc.js";
|
|
7
|
-
import"./index-
|
|
7
|
+
import"./index-38by07nw.js";
|
|
8
8
|
import"./index-hj6w4ka1.js";
|
|
9
|
-
import"./index-
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
9
|
+
import"./index-kdswbvys.js";
|
|
10
|
+
import"./index-re2kfscb.js";
|
|
11
|
+
import"./index-ck64kxrn.js";
|
|
12
|
+
import"./index-53h0053j.js";
|
|
13
|
+
import"./index-w60zxxye.js";
|
|
14
|
+
import"./index-g0yds382.js";
|
|
15
15
|
import"./index-m9jj544v.js";
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
16
|
+
import"./index-6t7fkx73.js";
|
|
17
|
+
import"./index-dcm66hss.js";
|
|
18
18
|
import"./index-j6eeh5d7.js";
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-
|
|
22
|
-
import"./index-
|
|
23
|
-
import"./index-
|
|
19
|
+
import"./index-vkpqe29t.js";
|
|
20
|
+
import"./index-0tkj05cz.js";
|
|
21
|
+
import"./index-t0hk1kxq.js";
|
|
22
|
+
import"./index-hmj94es2.js";
|
|
23
|
+
import"./index-6zgt7zmx.js";
|
|
24
|
+
import"./index-gfh90r3t.js";
|
|
24
25
|
import"./index-k64mhwbw.js";
|
|
25
|
-
import"./index-
|
|
26
|
+
import"./index-wymcdsas.js";
|
|
26
27
|
import {
|
|
27
28
|
ContextScript
|
|
28
|
-
} from "./index-
|
|
29
|
+
} from "./index-ampz4vgv.js";
|
|
29
30
|
|
|
30
31
|
// pkgs/@akanjs/cli/context/context.command.ts
|
|
31
32
|
class ContextCommand extends command("context", [ContextScript], ({ public: target }) => ({
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
ContextRunner2
|
|
4
|
+
} from "./index-53h0053j.js";
|
|
5
|
+
import"./index-wymcdsas.js";
|
|
6
|
+
import"./index-gfh90r3t.js";
|
|
7
|
+
import"./index-6zgt7zmx.js";
|
|
8
|
+
import"./index-0tkj05cz.js";
|
|
9
|
+
import"./index-hmj94es2.js";
|
|
10
|
+
import"./index-t0hk1kxq.js";
|
|
11
|
+
import"./index-k64mhwbw.js";
|
|
12
|
+
import"./index-ck64kxrn.js";
|
|
13
|
+
import"./index-kdswbvys.js";
|
|
14
|
+
import"./index-g0yds382.js";
|
|
15
|
+
import"./index-j6eeh5d7.js";
|
|
16
|
+
import"./index-w60zxxye.js";
|
|
17
|
+
import"./index-m9jj544v.js";
|
|
18
|
+
import"./index-r0q2ka2b.js";
|
|
19
|
+
import"./index-vkpqe29t.js";
|
|
20
|
+
import"./index-re2kfscb.js";
|
|
21
|
+
import"./index-dcm66hss.js";
|
|
22
|
+
import"./index-6t7fkx73.js";
|
|
23
|
+
import"./index-38by07nw.js";
|
|
24
|
+
import"./index-hj6w4ka1.js";
|
|
25
|
+
import"./index-bns3wcpc.js";
|
|
26
|
+
export {
|
|
27
|
+
ContextRunner2 as ContextRunner
|
|
28
|
+
};
|
|
@@ -16,9 +16,11 @@ Full contract — guards, apps, heads, CSR root layouts, typed params, lib pages
|
|
|
16
16
|
`.notFound` / `.error` on layouts; `.fonts` / `.theme` / `.manifest` / … on the root; `.prompt` / `.app` on a page).
|
|
17
17
|
A named export beside it fails the build.
|
|
18
18
|
- **Name every `[x]` segment with `.param("x", Type)`** and read query keys only via `.search("k", Type)`; values
|
|
19
|
-
arrive typed. `lang` is never declared — every stage receives it.
|
|
19
|
+
arrive typed. `lang` is never declared — every stage receives it. A client filter writes its key back with
|
|
20
|
+
`router.replace(href, { shallow: true })`, which keeps the page on screen.
|
|
20
21
|
- `.head()` takes JSX or a function returning it — never a metadata object; deeper heads replace by tag identity,
|
|
21
|
-
and a canonical link / `og:url` comes only from the page's own `.head()`.
|
|
22
|
+
and a canonical link / `og:url` comes only from the page's own `.head()`. A 404's title is the `<title>` a layout's
|
|
23
|
+
`.notFound()` returns at its top: `.notFound(() => <><title>Not found</title>…</>)`, except below a `.loading()`.
|
|
22
24
|
- In a CSR bundle a root layout's own markup is hidden: what a person must see from it renders through
|
|
23
25
|
`createPortal(…, document.body)`.
|
|
24
26
|
- `_overrides.tsx` is one `export default override({ Slot: AppComponent })` (`akanjs/ui`), no logic, no
|
|
@@ -84,6 +84,8 @@ paths:
|
|
|
84
84
|
option, with keys its dictionary defines and never `base.error.*`. That is the status's OpenAPI response and a line
|
|
85
85
|
of the MCP tool's description; outside production a thrown key it leaves out warns once. A caller narrows with
|
|
86
86
|
`Err.is(error, "ticket.error.locked")`.
|
|
87
|
+
- An `srvkit/` adapter belongs to no module: its keys go in the app's or lib's own service dictionary,
|
|
88
|
+
`lib/_<name>/<name>.dictionary.ts`, thrown as `new Err("<name>.error.<key>")` with `Err` from `"../lib/dict"`.
|
|
87
89
|
- `try/catch` turns an exception into a decision: guards → `logger.warn` → `false`; adapters → `logger.error` →
|
|
88
90
|
`null`; UI `try/finally` resets a spinner. A bodyless `catch {}` needs a one-line reason.
|
|
89
91
|
- Store actions do not `try/catch` (the framework toasts the `Err`); one no screen waits on (a token refresh) is
|
|
@@ -14,7 +14,9 @@ paths:
|
|
|
14
14
|
`no-daisyui-legacy-class`, `no-inline-color`): no raw palette (`bg-blue-500`), arbitrary or interpolated color classes
|
|
15
15
|
(`bg-[#3b82f6]`), daisyUI classes or slots (`btn-primary`, `bg-base-100`), or color literals in `style={{}}` — they
|
|
16
16
|
render no CSS. Use semantic tokens (`bg-primary`, `text-foreground/70`); a legitimate fixed color takes
|
|
17
|
-
`// biome-ignore lint/plugin: <reason>`.
|
|
17
|
+
`// biome-ignore lint/plugin: <reason>`. A daisyUI component name (`stat-value`) is only a warning, which
|
|
18
|
+
`akan verify` drops once the app's or a lib's CSS defines that class. Slot replacements, SVG / `el.style` warnings,
|
|
19
|
+
legal values: `cssRule`.
|
|
18
20
|
|
|
19
21
|
- Static class strings stay plain. `cn` (from `akanjs/client`) only for a conditional or to merge an incoming
|
|
20
22
|
`className`, caller last: `cn("base", cond && "extra", className)` — the only combiner: no `clsx`, raw `twMerge`,
|
|
@@ -43,7 +43,8 @@ paths:
|
|
|
43
43
|
|
|
44
44
|
- **`#private` is banned in exactly `*.constant.ts`, `*.document.ts`, `*.service.ts`, `*.store.ts`**
|
|
45
45
|
(`no-js-private-class-method`, by path, so it stays the house style everywhere else, `srvkit/` and `adapt()` classes
|
|
46
|
-
included).
|
|
46
|
+
included). A `#method` there becomes `private method()`, never `_method` (a service runs `_preCreate`-style names as
|
|
47
|
+
hooks); `akan verify` renames it and its calls unless the class already has that name.
|
|
47
48
|
|
|
48
49
|
## TypeScript And Imports
|
|
49
50
|
|
|
@@ -14,10 +14,12 @@ Use TailwindCSS with Akan's semantic design-token layer and the `akanjs/ui` prim
|
|
|
14
14
|
## Color Vocabulary — What Lint Refuses
|
|
15
15
|
- Vocabulary closure strips the raw Tailwind palette, so these render as no CSS and fail lint: raw palette classes
|
|
16
16
|
(`bg-blue-500`, `text-gray-400`), arbitrary color values (`bg-[#3b82f6]`), an arbitrary class built by
|
|
17
|
-
interpolation, daisyUI
|
|
17
|
+
interpolation, daisyUI's dropped color slots (`bg-base-100`,
|
|
18
18
|
`text-base-content`, `text-primary-content`, `bg-error` — use `background`/`muted`/`border`, `foreground`,
|
|
19
19
|
`<color>-foreground`, `destructive`), and color literals in `style={{...}}` (`no-raw-palette-class`,
|
|
20
20
|
`no-arbitrary-color`, `no-daisyui-legacy-class`, `no-inline-color`, `no-interpolated-arbitrary-class`).
|
|
21
|
+
- daisyUI component classes (`btn-primary`, `card-body`) render no CSS unless the app defines them, so lint only warns;
|
|
22
|
+
`akan verify` drops the warning once the app's or a lib's stylesheet defines the class.
|
|
21
23
|
- A legitimate fixed color (OS-chrome mockups, data-viz) takes a `// biome-ignore lint/plugin: <reason>`.
|
|
22
24
|
- Color literals in SVG color attributes (`fill`, `stroke`, `stopColor`, `floodColor`, `lightingColor`, `color`) and
|
|
23
25
|
in `el.style.<prop> = …` / `el.style.setProperty(…)` writes are flagged as warnings for now; `currentColor`,
|
|
@@ -114,6 +114,9 @@ body shape — this is the full contract behind them. Before changing route beha
|
|
|
114
114
|
`property`, and a canonical / manifest / icon link, and keeps the rest — so a page states only what it changes.
|
|
115
115
|
- A canonical link and `og:url` each name one URL, so a page carries them only from its own `.head()`, never from a
|
|
116
116
|
layout's.
|
|
117
|
+
- **A not-found or error view titles itself**: the `<title>` and `<meta>` at the top of what a layout's `.notFound()`
|
|
118
|
+
/ `.error()` returns replace the layouts' head, and the page's own head is dropped. Under a `.loading()` the head is
|
|
119
|
+
already out, so they stay in the view.
|
|
117
120
|
|
|
118
121
|
## A Root Layout Inside A CSR Bundle
|
|
119
122
|
|