@akanjs/cli 3.0.0-beta.19 → 3.0.0-beta.20
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-6cm97kay.js → CodeAgent-awv258wb.js} +2 -2
- package/{CodeTui-za4jsm41.js → CodeTui-1nqh35ez.js} +20 -22
- package/TunnelShare-scf4e4pd.js +9 -0
- package/{agent.command-e0wpbbyg.js → agent.command-1s9ag7sb.js} +8 -9
- package/akanCode.js +4 -4
- package/{application.command-8wyxqc8q.js → application.command-49hwy6va.js} +25 -56
- package/{applicationBuildRunner-n9gzaxd0.js → applicationBuildRunner-ybyp97pv.js} +33 -59
- package/{applicationReleasePackager-vpggfqgq.js → applicationReleasePackager-esnrphw8.js} +40 -60
- package/buildBatch.proc.js +19 -24
- package/{capacitorApp-q3z0qht0.js → capacitorApp-1synz4en.js} +3 -4
- package/{cloud.command-4zwa5dsx.js → cloud.command-d7rqtzt9.js} +16 -26
- package/cloud.script-bkbpcr96.js +19 -0
- package/{code.command-468c9d7s.js → code.command-nn48xzej.js} +22 -37
- package/context.command-s3mcmvpa.js +48 -0
- package/context.runner-k99nb5pk.js +21 -0
- package/{dependencyScanner-0z2h2tks.js → dependencyScanner-ye2e6pdz.js} +2 -2
- package/{devTui-ffjsarqa.js → devTui-q7k7bakd.js} +5 -9
- package/fileSys-5ngz93ga.js +9 -0
- package/{guideline.command-vhw13pqr.js → guideline.command-sct4qnt5.js} +4 -5
- package/guidelines/conventions/conventions.instruction.md +5 -1
- package/guidelines/mcpRule/mcpRule.instruction.md +7 -5
- package/incrementalBuilder.proc.js +30 -48
- package/{index-s5rhm04y.js → index-0bq14vr1.js} +1 -1
- package/{index-10dkrrww.js → index-13ffe9wp.js} +4 -4
- package/{index-srmay5jw.js → index-22d57v4c.js} +84 -67
- package/{index-53176s7j.js → index-31yr441d.js} +10 -17
- package/index-3hx1z96c.js +87 -0
- package/{index-4m929vvn.js → index-3sq321ak.js} +10 -18
- package/{index-bhtmj233.js → index-3t7g9e4r.js} +41 -78
- package/{index-q0y2jq9j.js → index-5b6tavv3.js} +6 -3
- package/{index-47pj3aee.js → index-5e0n4hqx.js} +11 -12
- package/{index-7ep8qtvp.js → index-5pc1qrbv.js} +5 -8
- package/{index-esk82rvk.js → index-8mna0947.js} +34 -71
- package/{index-sq2dzkzm.js → index-8sf7wmdr.js} +6 -6
- package/{index-crmeqnmf.js → index-9d9bgcx4.js} +283 -722
- package/{index-bwf965h6.js → index-ahemdr5n.js} +6 -6
- package/{index-ab0c38ea.js → index-as7xmyz8.js} +20 -20
- package/{index-bc88j1ry.js → index-axzjaqve.js} +94 -142
- package/{index-3d9y066c.js → index-bjwxs904.js} +9 -8
- package/{index-667w0yah.js → index-c6eggbee.js} +2 -5
- package/{index-a1w6934z.js → index-ddxvdd1p.js} +169 -305
- package/{index-92zztqy1.js → index-dy0jx9ay.js} +2 -17
- package/{index-22xtgmhn.js → index-dzf3r49a.js} +1 -1
- package/{index-89hy31kf.js → index-fgq75haa.js} +172 -287
- package/{index-by5gpp8x.js → index-hj6w4ka1.js} +2 -1
- package/{index-hwkygn9s.js → index-khpfpcsd.js} +302 -33
- package/{index-vqx8bdxz.js → index-mxav6j3c.js} +78 -231
- package/{index-2446k7b4.js → index-myhc3c1j.js} +512 -588
- package/{index-3jrp517k.js → index-nv5976x3.js} +45 -128
- package/{index-zqgj2rt2.js → index-przybvy5.js} +69 -147
- package/{index-n3cv0tm4.js → index-smme4r47.js} +1 -1
- package/{index-qdgzsnhg.js → index-w2zdcw3k.js} +110 -231
- package/{index-14zrtgfa.js → index-wa5jbxj1.js} +6 -39
- package/{index-bftkz6cp.js → index-ww4z397j.js} +198 -555
- package/{index-kwaq3n9n.js → index-xqjwd384.js} +4 -7
- package/{index-txr7dj2g.js → index-xqpzbab5.js} +106 -240
- package/{index-e4v6vhxq.js → index-xsjh6nzh.js} +178 -165
- package/{index-18zybgkc.js → index-ygn77a5w.js} +47 -99
- package/{index-9d6nvkz2.js → index-ztp3e73t.js} +79 -35
- package/index.js +23 -24
- package/{library.command-cqr175dy.js → library.command-1gx04jgn.js} +4 -5
- package/{localRegistry.command-49z55qqz.js → localRegistry.command-zndxj1q6.js} +21 -42
- package/{module.command-9p8mm3b0.js → module.command-3waddk95.js} +6 -7
- package/{package.command-wxyz909t.js → package.command-zrc7br1y.js} +5 -6
- package/package.json +2 -2
- package/{page.command-gsrsfqqs.js → page.command-vpjgardh.js} +4 -5
- package/{primitive.command-ns1mptje.js → primitive.command-sz84tk4t.js} +9 -20
- package/{prompter-1f8d9pcc.js → prompter-ptaa3nk0.js} +2 -2
- package/{quality.command-e76k2q9k.js → quality.command-g869hafs.js} +129 -363
- package/{recipeScanner-fpagtgc1.js → recipeScanner-4b69ybe0.js} +1 -1
- package/{repair.command-pkrsm3cw.js → repair.command-chsnjvvv.js} +11 -35
- package/{scalar.command-0cpt3fc8.js → scalar.command-2v21newx.js} +5 -6
- package/skills/akan-code/SKILL.md +12 -4
- package/{subspace.command-fktpwp0g.js → subspace.command-ckcbwfp1.js} +39 -58
- package/templates/appSample/srvkit/{AuthGuard.ts → guards.ts} +3 -3
- package/templates/appSample/srvkit/{SessionInternalArg.ts → internalArgs.ts} +3 -3
- package/templates/client.ts +7 -30
- package/templates/lib/__lib/lib.dictionary.ts +0 -2
- package/templates/lib/__lib/lib.document.ts +0 -2
- package/templates/lib/sig.ts +8 -30
- package/templates/server.ts +0 -2
- package/{tunnel.command-d5jy9gk8.js → tunnel.command-kd2yr4fx.js} +5 -6
- package/{typeChecker-3xgrzc2v.js → typeChecker-px49mezc.js} +1 -1
- package/typecheck.proc.js +1 -1
- package/workflow.command-44252cqv.js +79 -0
- package/{workspace.command-gv84eh1p.js → workspace.command-fqcztt5p.js} +72 -107
- package/TunnelShare-2j6s511d.js +0 -9
- package/cloud.script-fwx3vb34.js +0 -20
- package/context.command-dsnw0jby.js +0 -80
- package/context.runner-rs4rj15d.js +0 -22
- package/devTuiView-1q1mdgrv.js +0 -9
- package/getDirname-dr3jz1xg.js +0 -7
- package/index-6wwzs1bc.js +0 -7
- package/workflow.command-6tkcysmx.js +0 -105
|
@@ -4,28 +4,27 @@ import {
|
|
|
4
4
|
runner,
|
|
5
5
|
script,
|
|
6
6
|
command
|
|
7
|
-
} from "./index-
|
|
8
|
-
import"./index-
|
|
7
|
+
} from "./index-w2zdcw3k.js";
|
|
8
|
+
import"./index-5b6tavv3.js";
|
|
9
9
|
import {
|
|
10
10
|
PkgExecutor
|
|
11
|
-
} from "./index-
|
|
12
|
-
import"./index-
|
|
11
|
+
} from "./index-9d9bgcx4.js";
|
|
12
|
+
import"./index-khpfpcsd.js";
|
|
13
|
+
import"./index-5pc1qrbv.js";
|
|
13
14
|
import {
|
|
14
15
|
ApplicationScript
|
|
15
|
-
} from "./index-
|
|
16
|
-
import"./index-7ep8qtvp.js";
|
|
17
|
-
import"./index-hwkygn9s.js";
|
|
16
|
+
} from "./index-ww4z397j.js";
|
|
18
17
|
import"./index-7md2g9vw.js";
|
|
19
|
-
import"./index-
|
|
18
|
+
import"./index-22d57v4c.js";
|
|
20
19
|
import {
|
|
21
20
|
getNpmRegistryUrl,
|
|
22
21
|
CloudRunner
|
|
23
|
-
} from "./index-
|
|
24
|
-
import"./index-
|
|
22
|
+
} from "./index-axzjaqve.js";
|
|
23
|
+
import"./index-3t7g9e4r.js";
|
|
25
24
|
import {
|
|
26
25
|
PackageScript
|
|
27
|
-
} from "./index-
|
|
28
|
-
import"./index-
|
|
26
|
+
} from "./index-as7xmyz8.js";
|
|
27
|
+
import"./index-xqjwd384.js";
|
|
29
28
|
|
|
30
29
|
// pkgs/@akanjs/cli/localRegistry/localRegistry.runner.ts
|
|
31
30
|
import { mkdir, rm } from "fs/promises";
|
|
@@ -78,6 +77,7 @@ class LocalRegistryRunner extends runner("localRegistry") {
|
|
|
78
77
|
const registry = this.getRegistryUrl(registryUrl);
|
|
79
78
|
const smokeRoot = path.join(workspace.workspaceRoot, ".akan/e2e");
|
|
80
79
|
await rm(path.join(smokeRoot, smokeRepoName), { recursive: true, force: true });
|
|
80
|
+
const env = { ...process.env, AKAN_NPM_REGISTRY: registry, NPM_CONFIG_REGISTRY: registry };
|
|
81
81
|
await workspace.spawn(process.execPath, [
|
|
82
82
|
"dist/pkgs/create-akan-workspace/index.js",
|
|
83
83
|
smokeRepoName,
|
|
@@ -89,20 +89,13 @@ class LocalRegistryRunner extends runner("localRegistry") {
|
|
|
89
89
|
"true",
|
|
90
90
|
"--registry",
|
|
91
91
|
registry
|
|
92
|
-
], {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
stdio: "inherit"
|
|
100
|
-
});
|
|
101
|
-
await workspace.spawn("akan", ["build", smokeAppName], {
|
|
102
|
-
cwd: path.join(smokeRoot, smokeRepoName),
|
|
103
|
-
env: { ...process.env, AKAN_NPM_REGISTRY: registry, NPM_CONFIG_REGISTRY: registry },
|
|
104
|
-
stdio: "inherit"
|
|
105
|
-
});
|
|
92
|
+
], { env, stdio: "inherit" });
|
|
93
|
+
for (const command of ["typecheck", "build"])
|
|
94
|
+
await workspace.spawn("akan", [command, smokeAppName], {
|
|
95
|
+
cwd: path.join(smokeRoot, smokeRepoName),
|
|
96
|
+
env,
|
|
97
|
+
stdio: "inherit"
|
|
98
|
+
});
|
|
106
99
|
Logger.info(`Local registry smoke test completed for ${smokeRepoName}/${smokeAppName}`);
|
|
107
100
|
}
|
|
108
101
|
}
|
|
@@ -128,11 +121,7 @@ class LocalRegistryScript extends script("localRegistry", [
|
|
|
128
121
|
const registry = await this.localRegistryRunner.start(workspace, { registryUrl });
|
|
129
122
|
const akanPkgs = await this.cloudRunner.getAkanPkgs(workspace);
|
|
130
123
|
await this.#preparePackages(workspace, akanPkgs, { test });
|
|
131
|
-
await this.cloudRunner.deployAkan(workspace, akanPkgs, {
|
|
132
|
-
registryUrl: registry,
|
|
133
|
-
confirmPublish: false,
|
|
134
|
-
tag
|
|
135
|
-
});
|
|
124
|
+
await this.cloudRunner.deployAkan(workspace, akanPkgs, { registryUrl: registry, confirmPublish: false, tag });
|
|
136
125
|
await this.localRegistryRunner.smoke(workspace, { registryUrl: registry });
|
|
137
126
|
}
|
|
138
127
|
async#preparePackages(workspace, akanPkgs, { test = true } = {}) {
|
|
@@ -158,17 +147,7 @@ class LocalRegistryCommand extends command("local-registry", [LocalRegistryScrip
|
|
|
158
147
|
resetRegistry: target({ devOnly: true, desc: "Stop and clear the local Verdaccio npm registry" }).with(Workspace).exec(async function(workspace) {
|
|
159
148
|
await this.localRegistryScript.reset(workspace);
|
|
160
149
|
}),
|
|
161
|
-
smokeRegistry: target({ devOnly: true, desc: "Publish to local registry and build a generated workspace" }).with(Workspace).option("tag", String, {
|
|
162
|
-
flag: "g",
|
|
163
|
-
desc: "dist-tag for local registry publish",
|
|
164
|
-
default: "rc"
|
|
165
|
-
}).option("test", Boolean, {
|
|
166
|
-
desc: "run package tests before publishing",
|
|
167
|
-
default: true
|
|
168
|
-
}).option("registry", String, {
|
|
169
|
-
desc: "local npm registry URL",
|
|
170
|
-
default: process.env.AKAN_NPM_REGISTRY
|
|
171
|
-
}).exec(async function(workspace, tag, test, registry) {
|
|
150
|
+
smokeRegistry: target({ devOnly: true, desc: "Publish to local registry and build a generated workspace" }).with(Workspace).option("tag", String, { flag: "g", desc: "dist-tag for local registry publish", default: "rc" }).option("test", Boolean, { desc: "run package tests before publishing", default: true }).option("registry", String, { desc: "local npm registry URL", default: process.env.AKAN_NPM_REGISTRY }).exec(async function(workspace, tag, test, registry) {
|
|
172
151
|
await this.localRegistryScript.smoke(workspace, { tag, test, registryUrl: registry });
|
|
173
152
|
})
|
|
174
153
|
})) {
|
|
@@ -3,17 +3,16 @@ import {
|
|
|
3
3
|
Sys,
|
|
4
4
|
Module,
|
|
5
5
|
command
|
|
6
|
-
} from "./index-
|
|
7
|
-
import"./index-
|
|
8
|
-
import"./index-
|
|
9
|
-
import"./index-6wwzs1bc.js";
|
|
6
|
+
} from "./index-w2zdcw3k.js";
|
|
7
|
+
import"./index-5b6tavv3.js";
|
|
8
|
+
import"./index-9d9bgcx4.js";
|
|
10
9
|
import {
|
|
11
10
|
renderPrimitiveReport
|
|
12
|
-
} from "./index-
|
|
13
|
-
import"./index-
|
|
11
|
+
} from "./index-myhc3c1j.js";
|
|
12
|
+
import"./index-dzf3r49a.js";
|
|
14
13
|
import {
|
|
15
14
|
ModuleScript
|
|
16
|
-
} from "./index-
|
|
15
|
+
} from "./index-8mna0947.js";
|
|
17
16
|
|
|
18
17
|
// pkgs/@akanjs/cli/module/module.command.ts
|
|
19
18
|
import { Logger, lowerlize } from "akanjs/common";
|
|
@@ -3,14 +3,13 @@ import {
|
|
|
3
3
|
Pkg,
|
|
4
4
|
Workspace,
|
|
5
5
|
command
|
|
6
|
-
} from "./index-
|
|
7
|
-
import"./index-
|
|
8
|
-
import"./index-
|
|
9
|
-
import"./index-
|
|
10
|
-
import"./index-bhtmj233.js";
|
|
6
|
+
} from "./index-w2zdcw3k.js";
|
|
7
|
+
import"./index-5b6tavv3.js";
|
|
8
|
+
import"./index-9d9bgcx4.js";
|
|
9
|
+
import"./index-3t7g9e4r.js";
|
|
11
10
|
import {
|
|
12
11
|
PackageScript
|
|
13
|
-
} from "./index-
|
|
12
|
+
} from "./index-as7xmyz8.js";
|
|
14
13
|
|
|
15
14
|
// pkgs/@akanjs/cli/package/package.command.ts
|
|
16
15
|
class PackageCommand extends command("package", [PackageScript], ({ public: target }) => ({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akanjs/cli",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.20",
|
|
4
4
|
"sourceType": "module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@inquirer/prompts": "^8.4.3",
|
|
41
41
|
"@tailwindcss/node": "^4.3.0",
|
|
42
42
|
"@trapezedev/project": "^7.1.4",
|
|
43
|
-
"akanjs": "3.0.0-beta.
|
|
43
|
+
"akanjs": "3.0.0-beta.20",
|
|
44
44
|
"chalk": "^5.6.2",
|
|
45
45
|
"commander": "^14.0.3",
|
|
46
46
|
"dayjs": "^1.11.20",
|
|
@@ -3,13 +3,12 @@ import {
|
|
|
3
3
|
App,
|
|
4
4
|
Module,
|
|
5
5
|
command
|
|
6
|
-
} from "./index-
|
|
7
|
-
import"./index-
|
|
8
|
-
import"./index-
|
|
9
|
-
import"./index-6wwzs1bc.js";
|
|
6
|
+
} from "./index-w2zdcw3k.js";
|
|
7
|
+
import"./index-5b6tavv3.js";
|
|
8
|
+
import"./index-9d9bgcx4.js";
|
|
10
9
|
import {
|
|
11
10
|
PageScript
|
|
12
|
-
} from "./index-
|
|
11
|
+
} from "./index-dzf3r49a.js";
|
|
13
12
|
|
|
14
13
|
// pkgs/@akanjs/cli/page/page.command.ts
|
|
15
14
|
class PageCommand extends command("page", [PageScript], ({ public: target }) => ({
|
|
@@ -2,18 +2,17 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Workspace,
|
|
4
4
|
command
|
|
5
|
-
} from "./index-
|
|
6
|
-
import"./index-
|
|
7
|
-
import"./index-
|
|
8
|
-
import"./index-6wwzs1bc.js";
|
|
5
|
+
} from "./index-w2zdcw3k.js";
|
|
6
|
+
import"./index-5b6tavv3.js";
|
|
7
|
+
import"./index-9d9bgcx4.js";
|
|
9
8
|
import {
|
|
10
9
|
renderPrimitiveReport
|
|
11
|
-
} from "./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
10
|
+
} from "./index-myhc3c1j.js";
|
|
11
|
+
import"./index-dzf3r49a.js";
|
|
12
|
+
import"./index-8mna0947.js";
|
|
14
13
|
import {
|
|
15
14
|
PrimitiveScript
|
|
16
|
-
} from "./index-
|
|
15
|
+
} from "./index-przybvy5.js";
|
|
17
16
|
|
|
18
17
|
// pkgs/@akanjs/cli/primitive/primitive.command.ts
|
|
19
18
|
import { Logger } from "akanjs/common";
|
|
@@ -24,11 +23,7 @@ class PrimitiveCommand extends command("primitive", [PrimitiveScript], ({ public
|
|
|
24
23
|
default: "template",
|
|
25
24
|
enum: ["view", "unit", "template"]
|
|
26
25
|
}).option("format", String, { flag: "o", desc: "output format", default: "markdown", enum: ["markdown", "json"] }).exec(async function(workspace, app, module, surface, format) {
|
|
27
|
-
const report = await this.primitiveScript.createUi(workspace, {
|
|
28
|
-
app,
|
|
29
|
-
module,
|
|
30
|
-
surface
|
|
31
|
-
});
|
|
26
|
+
const report = await this.primitiveScript.createUi(workspace, { app, module, surface });
|
|
32
27
|
Logger.rawLog(renderPrimitiveReport(report, format));
|
|
33
28
|
}),
|
|
34
29
|
addField: target({ desc: "Add a source-limited field to a module constant and dictionary" }).with(Workspace).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("default", String, { desc: "default value", nullable: true }).option("format", String, { flag: "o", desc: "output format", default: "markdown", enum: ["markdown", "json"] }).exec(async function(workspace, app, module, field, typeName, defaultValue, format) {
|
|
@@ -42,13 +37,7 @@ class PrimitiveCommand extends command("primitive", [PrimitiveScript], ({ public
|
|
|
42
37
|
Logger.rawLog(renderPrimitiveReport(report, format));
|
|
43
38
|
}),
|
|
44
39
|
addEnumField: target({ desc: "Add a source-limited enum field to a module constant and dictionary" }).with(Workspace).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("values", String, { flag: "l", desc: "comma-separated enum values", nullable: true }).option("default", String, { desc: "default value", nullable: true }).option("format", String, { flag: "o", desc: "output format", default: "markdown", enum: ["markdown", "json"] }).exec(async function(workspace, app, module, field, values, defaultValue, format) {
|
|
45
|
-
const report = await this.primitiveScript.addEnumField(workspace, {
|
|
46
|
-
app,
|
|
47
|
-
module,
|
|
48
|
-
field,
|
|
49
|
-
values,
|
|
50
|
-
defaultValue
|
|
51
|
-
});
|
|
40
|
+
const report = await this.primitiveScript.addEnumField(workspace, { app, module, field, values, defaultValue });
|
|
52
41
|
Logger.rawLog(renderPrimitiveReport(report, format));
|
|
53
42
|
})
|
|
54
43
|
})) {
|