@akanjs/cli 3.2.0-rc.12 → 3.2.0-rc.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.build-stamp +2 -2
- package/{CodeAgent-cr8pvdmv.js → CodeAgent-yd1f54yf.js} +2 -2
- package/{CodeTui-89ssa9rr.js → CodeTui-h7mksphk.js} +1 -1
- package/TunnelShare-hrjed2jf.js +19 -0
- package/{agent.command-rp9hpf0v.js → agent.command-hrc2dfas.js} +19 -15
- package/akanCode.js +2 -2
- package/appExecutor-0ssszyhf.js +11 -0
- package/{application.command-fydjdvce.js → application.command-b2194cpv.js} +15 -11
- package/{applicationBuildRunner-68sph7t4.js → applicationBuildRunner-gg03kydg.js} +12 -8
- package/buildBatch.proc.js +14 -9
- package/{cloud.command-0y1gg3sb.js → cloud.command-d8ps1564.js} +20 -16
- package/cloud.script-7j7w4m0w.js +35 -0
- package/{code.command-63fcz7a3.js → code.command-6h6jr0s7.js} +10 -6
- package/{context.command-pgwcx0na.js → context.command-t8akxhny.js} +20 -16
- package/context.runner-eawk1n8e.js +34 -0
- package/{guideline.command-6yz6d4hf.js → guideline.command-f41b5nv5.js} +6 -2
- package/guidelines/agentRule/agentRule.instruction.md +12 -2
- package/guidelines/akanApi/akanApi.instruction.md +1 -1
- package/guidelines/pageRule/pageRule.instruction.md +6 -1
- package/guidelines/runtimeRule/runtimeRule.instruction.md +2 -1
- package/incrementalBuilder.proc.js +12 -7
- package/{index-c3r23w24.js → index-1b1p83vq.js} +3 -3
- package/index-1jzdengt.js +30 -0
- package/{index-aybfcx58.js → index-2z8mxgs7.js} +6 -6
- package/{index-t8h09yjs.js → index-37k5vshx.js} +10 -8
- package/{index-frvjq1rd.js → index-3fbmyb2r.js} +1 -1
- package/{index-h0s3cjm0.js → index-3fn13v8p.js} +4 -4
- package/{index-axe04yqm.js → index-3fpv5v0t.js} +15 -11
- package/{index-23d8gw08.js → index-3gmskeq2.js} +37 -29
- package/{index-bper31wr.js → index-5np8zpep.js} +12 -8
- package/{index-41mfhgq0.js → index-66jt3m30.js} +1 -1
- package/{index-097bjwvm.js → index-6dwk5aej.js} +8 -8
- package/{index-qwzwzmvf.js → index-71z3pdsn.js} +4 -4
- package/{index-p54s83sz.js → index-8bkbexcy.js} +1 -1
- package/{index-cqrndcq0.js → index-8rmg8c0y.js} +3 -3
- package/{index-s0w78805.js → index-9w51aevd.js} +1 -1
- package/{index-bmscnt1t.js → index-9yfssbgg.js} +25 -19
- package/{index-adj7qmz9.js → index-asfx2dhe.js} +13 -9
- package/index-b3h37zk3.js +787 -0
- package/{index-wm4385pm.js → index-bb7cm060.js} +10 -10
- package/{index-6r5f768n.js → index-c0rnjeqn.js} +11 -9
- package/{index-apcr1qgk.js → index-c4k6e098.js} +19 -15
- package/{index-sq9d0jhj.js → index-crtscw7c.js} +2710 -3615
- package/{index-ahk6rvth.js → index-e599a0e4.js} +1 -1
- package/{index-6fnrhpn1.js → index-f5j09jnj.js} +5 -5
- package/{index-3m2cd8mm.js → index-g2ebpf0y.js} +6 -6
- package/{index-hf9nvwam.js → index-hbc0t3ng.js} +2 -2
- package/{index-cswgczrv.js → index-hg8s6nae.js} +9 -9
- package/{index-pcprf7ft.js → index-hpe12v1h.js} +1 -1
- package/{index-dfsa009c.js → index-j2me5hm4.js} +8 -6
- package/{index-e5f6czck.js → index-j33b0n38.js} +1 -1
- package/{index-mmgtnh44.js → index-k081wv4r.js} +1428 -1106
- package/{index-bgp0h8rx.js → index-nx4q5rey.js} +3 -3
- package/index-rx8r0cbe.js +18 -0
- package/{index-k2r3hmbz.js → index-vb8gd135.js} +21 -15
- package/{index-6js9ek5c.js → index-vy50ec2q.js} +2 -2
- package/index-x2bj2vyz.js +127 -0
- package/{index-wpgtyek3.js → index-xb1yh9km.js} +1 -1
- package/{index-70jkxbf6.js → index-xjj0h74q.js} +2 -2
- package/index.js +27 -23
- package/libExecutor-ex8jqksz.js +10 -0
- package/{library.command-kc1zahcg.js → library.command-a9p5yg4k.js} +7 -3
- package/{localRegistry.command-yz150pcw.js → localRegistry.command-zz64k5vy.js} +23 -18
- package/{module.command-cchwzz9r.js → module.command-1ht6dmxg.js} +9 -5
- package/{package.command-qcjajpv8.js → package.command-eabq20aq.js} +8 -4
- package/package.json +2 -2
- package/{page.command-1t86dx8a.js → page.command-xhmzmvjn.js} +7 -3
- package/{pipeline.command-2xx9z3d0.js → pipeline.command-wsbg3fpr.js} +11 -6
- package/pkgExecutor-d16x1xcb.js +10 -0
- package/{primitive.command-mc0x8txr.js → primitive.command-yyxtfhvq.js} +10 -6
- package/{projectTypecheck-tz497yx7.js → projectTypecheck-wcrt7sae.js} +1 -1
- package/{quality.command-11rayf5c.js → quality.command-n7hmt628.js} +16 -10
- package/{repair.command-8w41vy78.js → repair.command-pczdq4mv.js} +9 -5
- package/{scalar.command-rvwh98ny.js → scalar.command-cw3d32sv.js} +8 -4
- package/{subspace.command-ykxertx8.js → subspace.command-d8t8geyv.js} +17 -12
- package/{tunnel.command-qbcbj0vq.js → tunnel.command-mhm64m9n.js} +15 -11
- package/{verify.command-gvveq05z.js → verify.command-j4he0fbx.js} +16 -12
- package/{workflow.command-yp9ajthb.js → workflow.command-k064waza.js} +14 -10
- package/{workspace.command-jm7emxjh.js → workspace.command-pkpawft5.js} +47 -41
- package/TunnelShare-ndb5cts1.js +0 -15
- package/cloud.script-ewk72b3g.js +0 -31
- package/context.runner-5s2ytkjj.js +0 -30
|
@@ -1,31 +1,37 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
ApplicationBuildReporter
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-66jt3m30.js";
|
|
5
5
|
import {
|
|
6
6
|
script,
|
|
7
7
|
markCliErrorPrinted,
|
|
8
8
|
assertPromptable
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-3gmskeq2.js";
|
|
10
10
|
import {
|
|
11
11
|
CliError
|
|
12
12
|
} from "./index-j4yvgfhr.js";
|
|
13
13
|
import {
|
|
14
|
-
SysExecutor
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
} from "./index-
|
|
14
|
+
SysExecutor
|
|
15
|
+
} from "./index-crtscw7c.js";
|
|
16
|
+
import {
|
|
17
|
+
AppExecutor2
|
|
18
|
+
} from "./index-b3h37zk3.js";
|
|
19
|
+
import {
|
|
20
|
+
LibExecutor2
|
|
21
|
+
} from "./index-1jzdengt.js";
|
|
22
|
+
import {
|
|
23
|
+
PkgExecutor2
|
|
24
|
+
} from "./index-x2bj2vyz.js";
|
|
19
25
|
import {
|
|
20
26
|
DesktopServerStage
|
|
21
|
-
} from "./index-
|
|
27
|
+
} from "./index-9w51aevd.js";
|
|
22
28
|
import {
|
|
23
29
|
LibraryScript
|
|
24
|
-
} from "./index-
|
|
30
|
+
} from "./index-37k5vshx.js";
|
|
25
31
|
import {
|
|
26
32
|
ApplicationRunner,
|
|
27
33
|
VerifyScope
|
|
28
|
-
} from "./index-
|
|
34
|
+
} from "./index-k081wv4r.js";
|
|
29
35
|
import {
|
|
30
36
|
PreviewChrome2,
|
|
31
37
|
PreviewView2,
|
|
@@ -33,7 +39,7 @@ import {
|
|
|
33
39
|
} from "./index-b4qq3rq0.js";
|
|
34
40
|
import {
|
|
35
41
|
formatSlicePlan
|
|
36
|
-
} from "./index-
|
|
42
|
+
} from "./index-3fbmyb2r.js";
|
|
37
43
|
import {
|
|
38
44
|
assertPlainName
|
|
39
45
|
} from "./index-va90m8nd.js";
|
|
@@ -1400,9 +1406,9 @@ class ApplicationScript extends script("application", [ApplicationRunner, Librar
|
|
|
1400
1406
|
}
|
|
1401
1407
|
}
|
|
1402
1408
|
async typecheck(exec, { write = true, clean = false, incremental = true, tests = false } = {}) {
|
|
1403
|
-
if (!(exec instanceof
|
|
1409
|
+
if (!(exec instanceof AppExecutor2) && !(exec instanceof LibExecutor2))
|
|
1404
1410
|
throw new Error(`akan typecheck takes an app or a library; ${exec.name} is a package, checked by its own tsconfig.`);
|
|
1405
|
-
if (exec instanceof
|
|
1411
|
+
if (exec instanceof AppExecutor2)
|
|
1406
1412
|
await exec.scanSync({ write });
|
|
1407
1413
|
else if (write)
|
|
1408
1414
|
await this.libraryScript.syncLibrary(exec);
|
|
@@ -1410,7 +1416,7 @@ class ApplicationScript extends script("application", [ApplicationRunner, Librar
|
|
|
1410
1416
|
await exec.scan({ write: false });
|
|
1411
1417
|
const spinner = exec.spinning(`Typechecking ${exec.name}${tests ? " with its tests" : ""}...`);
|
|
1412
1418
|
try {
|
|
1413
|
-
if (exec instanceof
|
|
1419
|
+
if (exec instanceof LibExecutor2)
|
|
1414
1420
|
await this.applicationRunner.typecheckLibrary(exec, { clean, incremental, tests });
|
|
1415
1421
|
else
|
|
1416
1422
|
await this.applicationRunner.typecheck(exec, { clean, incremental, tests });
|
|
@@ -1425,7 +1431,7 @@ class ApplicationScript extends script("application", [ApplicationRunner, Librar
|
|
|
1425
1431
|
async test(exec, { write = true, files = [], coverage = false } = {}) {
|
|
1426
1432
|
const testPaths = this.applicationRunner.resolveTestPaths(exec, files);
|
|
1427
1433
|
const flags = coverage ? ApplicationScript.#coverageFlagsOf(exec) : [];
|
|
1428
|
-
if (exec instanceof
|
|
1434
|
+
if (exec instanceof LibExecutor2) {
|
|
1429
1435
|
if (write)
|
|
1430
1436
|
await this.libraryScript.syncLibrary(exec);
|
|
1431
1437
|
else
|
|
@@ -1436,7 +1442,7 @@ class ApplicationScript extends script("application", [ApplicationRunner, Librar
|
|
|
1436
1442
|
}
|
|
1437
1443
|
const spinner = exec.spinning(`Preparing ${exec.name}...`);
|
|
1438
1444
|
try {
|
|
1439
|
-
if (exec instanceof
|
|
1445
|
+
if (exec instanceof PkgExecutor2)
|
|
1440
1446
|
await exec.scan({ refresh: true });
|
|
1441
1447
|
else
|
|
1442
1448
|
await exec.scanSync({ write });
|
|
@@ -1448,7 +1454,7 @@ class ApplicationScript extends script("application", [ApplicationRunner, Librar
|
|
|
1448
1454
|
await this.applicationRunner.test(exec, testPaths, flags);
|
|
1449
1455
|
}
|
|
1450
1456
|
static #coverageFlagsOf(exec) {
|
|
1451
|
-
const root = exec instanceof SysExecutor || exec instanceof
|
|
1457
|
+
const root = exec instanceof SysExecutor || exec instanceof PkgExecutor2 ? exec.workspace.workspaceRoot : null;
|
|
1452
1458
|
const dir = root ? path3.join(root, "local", "coverage", path3.relative(root, exec.cwdPath)) : "local/coverage";
|
|
1453
1459
|
return ["--coverage", "--coverage-reporter=text", "--coverage-reporter=lcov", `--coverage-dir=${dir}`];
|
|
1454
1460
|
}
|
|
@@ -1651,7 +1657,7 @@ class ApplicationScript extends script("application", [ApplicationRunner, Librar
|
|
|
1651
1657
|
await this.applicationRunner.transferDatabase(app, direction, dir);
|
|
1652
1658
|
}
|
|
1653
1659
|
async dbupDeclared(workspace, mode) {
|
|
1654
|
-
const declared = mode ? [mode] : await Promise.all((await workspace.getApps()).map(async (appName) => (await
|
|
1660
|
+
const declared = mode ? [mode] : await Promise.all((await workspace.getApps()).map(async (appName) => (await AppExecutor2.from(workspace, appName).getConfig()).database.modes)).then((modes) => [...new Set(modes.flat())]);
|
|
1655
1661
|
const needing = declared.filter((each) => each !== "single");
|
|
1656
1662
|
if (!needing.length) {
|
|
1657
1663
|
workspace.log("No app here declares a database mode that runs on local services; single needs none.");
|
|
@@ -1683,7 +1689,7 @@ class ApplicationScript extends script("application", [ApplicationRunner, Librar
|
|
|
1683
1689
|
await Promise.all(shares.map(async (share) => await share.close()));
|
|
1684
1690
|
}, "Abandoning the tunnel release; the shares expire on their own.");
|
|
1685
1691
|
await Promise.all(apps.map(async (app) => {
|
|
1686
|
-
const { TunnelShare } = await import("./TunnelShare-
|
|
1692
|
+
const { TunnelShare } = await import("./TunnelShare-hrjed2jf.js");
|
|
1687
1693
|
const share = await TunnelShare.open(app, { workspace: app.workspace });
|
|
1688
1694
|
shares.push(share);
|
|
1689
1695
|
urls.set(app.name, share.url);
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
script
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-3gmskeq2.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
AppExecutor2
|
|
7
|
+
} from "./index-b3h37zk3.js";
|
|
8
|
+
import {
|
|
9
|
+
LibExecutor2
|
|
10
|
+
} from "./index-1jzdengt.js";
|
|
10
11
|
import {
|
|
11
12
|
InteractionScaffold,
|
|
12
13
|
workflowStatus,
|
|
@@ -45,13 +46,16 @@ import {
|
|
|
45
46
|
withFieldTypeImport,
|
|
46
47
|
KeyRename,
|
|
47
48
|
MutationScaffold
|
|
48
|
-
} from "./index-
|
|
49
|
+
} from "./index-j2me5hm4.js";
|
|
49
50
|
import {
|
|
50
51
|
ModuleScript
|
|
51
|
-
} from "./index-
|
|
52
|
+
} from "./index-2z8mxgs7.js";
|
|
52
53
|
import {
|
|
53
54
|
plainNameProblem
|
|
54
55
|
} from "./index-va90m8nd.js";
|
|
56
|
+
import {
|
|
57
|
+
ModuleExecutor
|
|
58
|
+
} from "./index-rx8r0cbe.js";
|
|
55
59
|
|
|
56
60
|
// pkgs/@akanjs/cli/primitive/primitive.script.ts
|
|
57
61
|
import { capitalize, lowerlize } from "akanjs/common";
|
|
@@ -61,9 +65,9 @@ class PrimitiveScript extends script("primitive", [ModuleScript]) {
|
|
|
61
65
|
return null;
|
|
62
66
|
const [apps, libs] = await workspace.getSyss();
|
|
63
67
|
if (apps.includes(target))
|
|
64
|
-
return
|
|
68
|
+
return AppExecutor2.from(workspace, target);
|
|
65
69
|
if (libs.includes(target))
|
|
66
|
-
return
|
|
70
|
+
return LibExecutor2.from(workspace, target);
|
|
67
71
|
return null;
|
|
68
72
|
}
|
|
69
73
|
async createUi(workspace, input) {
|