@akanjs/cli 3.1.2-rc.3 → 3.2.0-rc.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 +1 -1
- package/{CodeAgent-n2tkg59z.js → CodeAgent-h6g8dg3a.js} +2 -2
- package/{CodeTui-9wsdx7ap.js → CodeTui-n9gacepn.js} +1 -1
- package/README.ko.md +9 -0
- package/README.md +9 -0
- package/TunnelShare-k3ja4w9x.js +14 -0
- package/{agent.command-tffz6wdn.js → agent.command-2f657613.js} +19 -17
- package/akanCode.js +2 -2
- package/{application.command-7bkxbrsp.js → application.command-yb8v177e.js} +45 -22
- package/{applicationBuildRunner-s13x3zqb.js → applicationBuildRunner-sctcmkyx.js} +57 -17
- package/buildBatch.proc.js +7 -7
- package/{cloud.command-a792bc10.js → cloud.command-et06ja22.js} +35 -18
- package/cloud.script-s6rbrwer.js +30 -0
- package/{code.command-ma8dtzww.js → code.command-7m67c7zc.js} +6 -6
- package/commandManifest.json +1 -1
- package/{context.command-80a1qhps.js → context.command-569z0rqf.js} +20 -19
- package/context.runner-ms8v1rxy.js +29 -0
- package/{guideline.command-195g0h9a.js → guideline.command-gnv3e8p8.js} +2 -2
- package/guidelines/akanApi/akanApi.instruction.md +317 -0
- package/guidelines/conventions/rules/app.md +5 -5
- package/guidelines/conventions/rules/config.md +1 -1
- package/guidelines/conventions/rules/gates.md +10 -5
- 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 +70 -14
- package/{index-tns543wd.js → index-0fb3cpbt.js} +3 -3
- package/{index-zbrwnmf1.js → index-1q1cjn8s.js} +21 -11
- package/{index-wrmq92vk.js → index-3wjbhj2n.js} +1 -1
- package/{index-361ex3rb.js → index-48d5qsj3.js} +4 -4
- package/{index-aayg4dqf.js → index-5w9my9qe.js} +8 -8
- package/{index-1h2jc0x3.js → index-6wpaq392.js} +61 -15
- package/{index-tp56652m.js → index-7xdpww43.js} +69 -12
- package/index-7y5yghjg.js +2969 -0
- package/{index-zttm13c3.js → index-8g7tdsk4.js} +249 -696
- package/{index-m02tdq8a.js → index-8pb9yvp8.js} +63 -21
- package/{index-gbp1q1b5.js → index-8ts9774g.js} +4 -4
- package/{index-9zy8479y.js → index-93ewzmp6.js} +43 -14
- package/{index-zdpte1pj.js → index-9tbgb4d8.js} +1 -1
- package/index-abgh0jve.js +126 -0
- package/{index-khk05tsf.js → index-aj3ehkcx.js} +1 -1
- package/{index-84h43kg6.js → index-d4n1wmrz.js} +37 -4
- package/{index-gr9thy79.js → index-drz9e84d.js} +22 -8
- package/{index-hapx5myy.js → index-e3vmjtph.js} +2 -2
- package/{index-k64mhwbw.js → index-eajbmk10.js} +2 -1
- package/{index-0j1t1h2b.js → index-ed6ea0qp.js} +1 -1
- package/{index-sjabnf7j.js → index-fjr4d6yd.js} +444 -368
- package/index-hqrkqxx2.js +176 -0
- package/{index-z7kbxdqg.js → index-jdamtr7e.js} +3 -3
- package/{index-scck6h6d.js → index-kpdv34rq.js} +4 -4
- package/{index-ppvqy5bc.js → index-ktb3wcqz.js} +73 -34
- package/{index-sveq36gh.js → index-mmym5xmb.js} +4 -2
- package/{index-y4kcmbt2.js → index-mqntfzv5.js} +2 -2
- package/{index-4am4dvmf.js → index-ny2k80mv.js} +15 -3
- package/index-p6hjwt2d.js +1668 -0
- package/{index-wwe9rsrx.js → index-r0a604h4.js} +12 -2
- package/{index-jb2sreps.js → index-rc5fvqj2.js} +18 -18
- package/{index-db2nqrad.js → index-ryrm5z2c.js} +71 -19
- package/{index-eft5c2mp.js → index-s2grpzef.js} +331 -27
- package/{index-g500c5j9.js → index-sr5da35e.js} +33 -10
- package/{index-defp4gmb.js → index-sy481q2x.js} +1 -1
- package/{index-j9d3mjx1.js → index-thckcabc.js} +2 -2
- package/{index-9z3egsmg.js → index-vkzfk7qt.js} +25 -23
- package/index-w639tvkd.js +166 -0
- package/index-ygdbn9jn.js +122 -0
- package/{index-sp0qsr7a.js → index-zpv14wpy.js} +3 -3
- package/{index-sx91nf4z.js → index-zxsygkda.js} +18 -9
- package/index.js +24 -23
- package/{library.command-63hgt9te.js → library.command-1gp5qe3r.js} +3 -3
- package/{localRegistry.command-343ksmn9.js → localRegistry.command-v3g21rex.js} +25 -16
- package/{module.command-2hce9m6k.js → module.command-4xz9he6h.js} +6 -6
- package/{package.command-96eheyvd.js → package.command-s7qpnn1g.js} +12 -3
- package/package.json +2 -2
- package/{page.command-gs6d841d.js → page.command-fan34c49.js} +3 -3
- package/{pipeline.command-wdfvdbfj.js → pipeline.command-ph4fnn9w.js} +2 -2
- package/{primitive.command-7tdj12wn.js → primitive.command-3fqh8emf.js} +7 -7
- package/{projectTypecheck-kqj1t6hb.js → projectTypecheck-vkb40hjc.js} +1 -1
- package/{quality.command-29bgarh1.js → quality.command-ecj6exsh.js} +15 -10
- package/{repair.command-yng4rf5d.js → repair.command-fe9jw719.js} +6 -6
- package/{scalar.command-1nk4329t.js → scalar.command-cnvfhk0n.js} +5 -5
- package/skills/akan-debug/SKILL.md +2 -1
- package/skills/akan-page/SKILL.md +30 -2
- package/skills/akan-service/SKILL.md +77 -1
- package/{subspace.command-5cehmcdd.js → subspace.command-yxtt3v3e.js} +8 -8
- package/templates/app/lib/___appName__/__appName__.abstract.md.template +6 -0
- package/templates/app/page/_index.tsx +4 -284
- package/templates/app/page/_layout.tsx +1 -26
- package/templates/app/page/styles.css.template +58 -318
- package/templates/appSample/page/_index.tsx +281 -0
- package/templates/appSample/page/_layout.tsx +55 -0
- package/templates/appSample/page/styles.css.template +327 -0
- package/templates/libRoot/lib/___libName__/__libName__.abstract.md.template +6 -0
- package/templates/workspaceRoot/package.json.template +1 -12
- package/{tunnel.command-yrd4atqy.js → tunnel.command-ggj38mqf.js} +7 -7
- package/{typeChecker-j2jdnqsr.js → typeChecker-s640r6c0.js} +1 -1
- package/typecheck.proc.js +1 -1
- package/{verify.command-kbq0fcg8.js → verify.command-w9ttxkdz.js} +16 -14
- package/{workflow.command-274qfa8z.js → workflow.command-ss8devj0.js} +12 -12
- package/{workspace.command-r6hgmawy.js → workspace.command-rw1p0xeq.js} +50 -38
- package/TunnelShare-6d7z36sr.js +0 -14
- package/cloud.script-t2n13gv6.js +0 -27
- package/context.runner-wxqb3qcy.js +0 -28
- package/index-j2dgmzbj.js +0 -1259
- package/index-p6x5b7hr.js +0 -839
- package/index-vzpnr12w.js +0 -65
- 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/templates/{app → appSample}/page/_overrides.tsx +0 -0
- /package/templates/{app → appSample}/public/fonts/Pretendard-Black.woff2 +0 -0
- /package/templates/{app → appSample}/public/fonts/Pretendard-Bold.woff2 +0 -0
- /package/templates/{app → appSample}/public/fonts/Pretendard-ExtraBold.woff2 +0 -0
- /package/templates/{app → appSample}/public/fonts/Pretendard-ExtraLight.woff2 +0 -0
- /package/templates/{app → appSample}/public/fonts/Pretendard-Light.woff2 +0 -0
- /package/templates/{app → appSample}/public/fonts/Pretendard-Medium.woff2 +0 -0
- /package/templates/{app → appSample}/public/fonts/Pretendard-Regular.woff2 +0 -0
- /package/templates/{app → appSample}/public/fonts/Pretendard-SemiBold.woff2 +0 -0
- /package/templates/{app → appSample}/public/fonts/Pretendard-Thin.woff2 +0 -0
- /package/templates/{app → appSample}/public/jelly/cloud.webp +0 -0
- /package/templates/{app → appSample}/public/jelly/comet.webp +0 -0
- /package/templates/{app → appSample}/public/jelly/moon.webp +0 -0
- /package/templates/{app → appSample}/public/jelly/planet.webp +0 -0
- /package/templates/{app → appSample}/public/jelly/rocket.webp +0 -0
- /package/templates/{app → appSample}/public/jelly/star.webp +0 -0
- /package/templates/{app → appSample}/public/jelly/sugar.webp +0 -0
- /package/templates/{app → appSample}/public/logo.png +0 -0
- /package/templates/{app → appSample}/ui/Recipe/index.ts +0 -0
- /package/templates/{app → appSample}/ui/Recipe/jellyButton.ts +0 -0
|
@@ -4,68 +4,71 @@ import {
|
|
|
4
4
|
Workspace,
|
|
5
5
|
script,
|
|
6
6
|
command
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-93ewzmp6.js";
|
|
8
8
|
import"./index-bns3wcpc.js";
|
|
9
9
|
import {
|
|
10
10
|
AppExecutor,
|
|
11
11
|
LibExecutor,
|
|
12
12
|
PkgExecutor
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-sr5da35e.js";
|
|
14
14
|
import {
|
|
15
15
|
npmRegistryFromEnv,
|
|
16
16
|
warnIgnoredNpmRegistry
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-ny2k80mv.js";
|
|
18
18
|
import"./index-62md4dwy.js";
|
|
19
19
|
import {
|
|
20
20
|
defaultMaxDiagnostics,
|
|
21
21
|
WorkspaceRunner
|
|
22
|
-
} from "./index-
|
|
23
|
-
import"./index-
|
|
22
|
+
} from "./index-fjr4d6yd.js";
|
|
23
|
+
import"./index-ygdbn9jn.js";
|
|
24
|
+
import"./index-hqrkqxx2.js";
|
|
25
|
+
import"./index-7y5yghjg.js";
|
|
24
26
|
import"./index-hj6w4ka1.js";
|
|
25
|
-
import"./index-
|
|
27
|
+
import"./index-eajbmk10.js";
|
|
26
28
|
import"./index-35j83zkd.js";
|
|
27
29
|
import"./index-j6eeh5d7.js";
|
|
28
|
-
import"./index-
|
|
29
|
-
import"./index-
|
|
30
|
-
import"./index-
|
|
31
|
-
import"./index-
|
|
32
|
-
import"./index-
|
|
33
|
-
import"./index-
|
|
30
|
+
import"./index-8pb9yvp8.js";
|
|
31
|
+
import"./index-thckcabc.js";
|
|
32
|
+
import"./index-ktb3wcqz.js";
|
|
33
|
+
import"./index-p6hjwt2d.js";
|
|
34
|
+
import"./index-zpv14wpy.js";
|
|
35
|
+
import"./index-ed6ea0qp.js";
|
|
34
36
|
import"./index-m9jj544v.js";
|
|
35
|
-
import"./index-
|
|
36
|
-
import"./index-
|
|
37
|
+
import"./index-1q1cjn8s.js";
|
|
38
|
+
import"./index-mmym5xmb.js";
|
|
39
|
+
import"./index-s2grpzef.js";
|
|
37
40
|
import {
|
|
38
41
|
AgentScript
|
|
39
|
-
} from "./index-
|
|
42
|
+
} from "./index-5w9my9qe.js";
|
|
40
43
|
import {
|
|
41
44
|
LibraryScript
|
|
42
|
-
} from "./index-
|
|
45
|
+
} from "./index-mqntfzv5.js";
|
|
43
46
|
import {
|
|
44
47
|
ApplicationScript
|
|
45
|
-
} from "./index-
|
|
48
|
+
} from "./index-ryrm5z2c.js";
|
|
46
49
|
import"./index-tenw3mah.js";
|
|
47
|
-
import"./index-
|
|
50
|
+
import"./index-drz9e84d.js";
|
|
48
51
|
import"./index-qd7xn2bk.js";
|
|
52
|
+
import"./index-abgh0jve.js";
|
|
49
53
|
import {
|
|
50
54
|
PackageScript
|
|
51
|
-
} from "./index-
|
|
52
|
-
import"./index-
|
|
55
|
+
} from "./index-d4n1wmrz.js";
|
|
56
|
+
import"./index-6wpaq392.js";
|
|
53
57
|
import {
|
|
54
58
|
CloudScript2
|
|
55
|
-
} from "./index-
|
|
56
|
-
import"./index-
|
|
57
|
-
import"./index-
|
|
58
|
-
import"./index-
|
|
59
|
-
import"./index-
|
|
60
|
-
import"./index-
|
|
61
|
-
import"./index-
|
|
62
|
-
import"./index-
|
|
63
|
-
import"./index-
|
|
59
|
+
} from "./index-zxsygkda.js";
|
|
60
|
+
import"./index-rc5fvqj2.js";
|
|
61
|
+
import"./index-w639tvkd.js";
|
|
62
|
+
import"./index-0fb3cpbt.js";
|
|
63
|
+
import"./index-aj3ehkcx.js";
|
|
64
|
+
import"./index-8ts9774g.js";
|
|
65
|
+
import"./index-48d5qsj3.js";
|
|
66
|
+
import"./index-e3vmjtph.js";
|
|
67
|
+
import"./index-vkzfk7qt.js";
|
|
64
68
|
import {
|
|
65
69
|
ContextScript
|
|
66
|
-
} from "./index-
|
|
67
|
-
import"./index-
|
|
68
|
-
import"./index-defp4gmb.js";
|
|
70
|
+
} from "./index-kpdv34rq.js";
|
|
71
|
+
import"./index-sy481q2x.js";
|
|
69
72
|
import"./index-9bv479q5.js";
|
|
70
73
|
|
|
71
74
|
// pkgs/@akanjs/cli/workspace/workspace.command.ts
|
|
@@ -91,7 +94,8 @@ class WorkspaceScript extends script("workspace", [
|
|
|
91
94
|
registryUrl,
|
|
92
95
|
owner,
|
|
93
96
|
mcpInstall = true,
|
|
94
|
-
agentInstall = true
|
|
97
|
+
agentInstall = true,
|
|
98
|
+
bunDependency
|
|
95
99
|
}) {
|
|
96
100
|
const akanVersion = await this.packageScript.version(null, { log: false });
|
|
97
101
|
const libs = installLibs ? ["util", "shared"] : [];
|
|
@@ -102,13 +106,14 @@ class WorkspaceScript extends script("workspace", [
|
|
|
102
106
|
akanVersion,
|
|
103
107
|
libs,
|
|
104
108
|
...registryUrl ? { registryUrl } : {},
|
|
105
|
-
...owner ? { owner } : {}
|
|
109
|
+
...owner ? { owner } : {},
|
|
110
|
+
...bunDependency ? { bunDependency } : {}
|
|
106
111
|
});
|
|
107
112
|
if (installLibs) {
|
|
108
113
|
await this.libraryScript.installLibrary(workspace, "util");
|
|
109
114
|
await this.libraryScript.installLibrary(workspace, "shared");
|
|
110
115
|
}
|
|
111
|
-
await this.applicationScript.createApplication(appName, workspace, { libs
|
|
116
|
+
await this.applicationScript.createApplication(appName, workspace, { libs });
|
|
112
117
|
if (sample)
|
|
113
118
|
await workspace.applyTemplate({
|
|
114
119
|
basePath: `apps/${appName}`,
|
|
@@ -134,7 +139,10 @@ class WorkspaceScript extends script("workspace", [
|
|
|
134
139
|
}
|
|
135
140
|
Logger.rawLog(`
|
|
136
141
|
\uD83C\uDF89 Welcome aboard! Workspace created in ${workspace.workspaceRoot}`);
|
|
137
|
-
|
|
142
|
+
if (bunDependency)
|
|
143
|
+
Logger.rawLog(`\uD83D\uDE80 Run \`cd ${workspace.workspaceRoot} && ${init ? "" : "npm install && "}npx akan start ${appName}\` to start the development server. Bun is not on your PATH, so the workspace runs bun ${bunDependency} from its dependencies: \`npm run build\` builds the app, \`npm start\` runs the build and \`npx akan <command>\` runs any other command.`);
|
|
144
|
+
else
|
|
145
|
+
Logger.rawLog(`\uD83D\uDE80 Run \`cd ${workspace.workspaceRoot} && akan start ${appName}\` to start the development server.`);
|
|
138
146
|
Logger.rawLog(`
|
|
139
147
|
\uD83D\uDC4B Happy coding!`);
|
|
140
148
|
}
|
|
@@ -240,7 +248,10 @@ class WorkspaceCommand extends command("workspace", [WorkspaceScript], ({ public
|
|
|
240
248
|
}).option("sample", Boolean, {
|
|
241
249
|
desc: "Generate the sample task module, pages and helpers in the first app?",
|
|
242
250
|
default: true
|
|
243
|
-
}).
|
|
251
|
+
}).option("bunDependency", String, {
|
|
252
|
+
desc: "Bun version to list in the workspace's dependencies, for a host whose Bun is not on PATH",
|
|
253
|
+
nullable: true
|
|
254
|
+
}).exec(async function(workspaceName, app, dir, libs, init, registry, owner, mcpInstall, agentInstall, sample, bun) {
|
|
244
255
|
warnIgnoredNpmRegistry();
|
|
245
256
|
const appName = app || "app";
|
|
246
257
|
const inPlace = workspaceName === ".";
|
|
@@ -254,7 +265,8 @@ class WorkspaceCommand extends command("workspace", [WorkspaceScript], ({ public
|
|
|
254
265
|
owner,
|
|
255
266
|
mcpInstall,
|
|
256
267
|
agentInstall,
|
|
257
|
-
...registry ? { registryUrl: registry } : {}
|
|
268
|
+
...registry ? { registryUrl: registry } : {},
|
|
269
|
+
...bun ? { bunDependency: bun } : {}
|
|
258
270
|
});
|
|
259
271
|
}),
|
|
260
272
|
generateAgentRules: target({
|
package/TunnelShare-6d7z36sr.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
TunnelShare2
|
|
4
|
-
} from "./index-zdpte1pj.js";
|
|
5
|
-
import"./index-gr9thy79.js";
|
|
6
|
-
import"./index-sp0qsr7a.js";
|
|
7
|
-
import"./index-m9jj544v.js";
|
|
8
|
-
import"./index-sveq36gh.js";
|
|
9
|
-
import"./index-zbrwnmf1.js";
|
|
10
|
-
import"./index-g500c5j9.js";
|
|
11
|
-
import"./index-bns3wcpc.js";
|
|
12
|
-
export {
|
|
13
|
-
TunnelShare2 as TunnelShare
|
|
14
|
-
};
|
package/cloud.script-t2n13gv6.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
CloudScript2
|
|
4
|
-
} from "./index-sx91nf4z.js";
|
|
5
|
-
import"./index-1h2jc0x3.js";
|
|
6
|
-
import"./index-db2nqrad.js";
|
|
7
|
-
import"./index-y4kcmbt2.js";
|
|
8
|
-
import"./index-84h43kg6.js";
|
|
9
|
-
import"./index-gr9thy79.js";
|
|
10
|
-
import"./index-4am4dvmf.js";
|
|
11
|
-
import"./index-ppvqy5bc.js";
|
|
12
|
-
import"./index-defp4gmb.js";
|
|
13
|
-
import"./index-0j1t1h2b.js";
|
|
14
|
-
import"./index-sp0qsr7a.js";
|
|
15
|
-
import"./index-m9jj544v.js";
|
|
16
|
-
import"./index-9zy8479y.js";
|
|
17
|
-
import"./index-9bv479q5.js";
|
|
18
|
-
import"./index-tenw3mah.js";
|
|
19
|
-
import"./index-sveq36gh.js";
|
|
20
|
-
import"./index-p6x5b7hr.js";
|
|
21
|
-
import"./index-zbrwnmf1.js";
|
|
22
|
-
import"./index-g500c5j9.js";
|
|
23
|
-
import"./index-qd7xn2bk.js";
|
|
24
|
-
import"./index-bns3wcpc.js";
|
|
25
|
-
export {
|
|
26
|
-
CloudScript2 as CloudScript
|
|
27
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
ContextRunner2
|
|
4
|
-
} from "./index-jb2sreps.js";
|
|
5
|
-
import"./index-9z3egsmg.js";
|
|
6
|
-
import"./index-hapx5myy.js";
|
|
7
|
-
import"./index-361ex3rb.js";
|
|
8
|
-
import"./index-tns543wd.js";
|
|
9
|
-
import"./index-gbp1q1b5.js";
|
|
10
|
-
import"./index-khk05tsf.js";
|
|
11
|
-
import"./index-k64mhwbw.js";
|
|
12
|
-
import"./index-j9d3mjx1.js";
|
|
13
|
-
import"./index-m02tdq8a.js";
|
|
14
|
-
import"./index-0j1t1h2b.js";
|
|
15
|
-
import"./index-j6eeh5d7.js";
|
|
16
|
-
import"./index-sp0qsr7a.js";
|
|
17
|
-
import"./index-m9jj544v.js";
|
|
18
|
-
import"./index-9zy8479y.js";
|
|
19
|
-
import"./index-vzpnr12w.js";
|
|
20
|
-
import"./index-j2dgmzbj.js";
|
|
21
|
-
import"./index-sveq36gh.js";
|
|
22
|
-
import"./index-zbrwnmf1.js";
|
|
23
|
-
import"./index-g500c5j9.js";
|
|
24
|
-
import"./index-hj6w4ka1.js";
|
|
25
|
-
import"./index-bns3wcpc.js";
|
|
26
|
-
export {
|
|
27
|
-
ContextRunner2 as ContextRunner
|
|
28
|
-
};
|