@akanjs/cli 3.2.0-rc.11 → 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.
Files changed (85) hide show
  1. package/.build-stamp +2 -2
  2. package/{CodeAgent-fk66n37w.js → CodeAgent-yd1f54yf.js} +2 -2
  3. package/{CodeTui-4rf1mqmv.js → CodeTui-h7mksphk.js} +1 -1
  4. package/TunnelShare-hrjed2jf.js +19 -0
  5. package/{agent.command-7g9czkkd.js → agent.command-hrc2dfas.js} +19 -15
  6. package/akanCode.js +2 -2
  7. package/appExecutor-0ssszyhf.js +11 -0
  8. package/{application.command-00spg55s.js → application.command-b2194cpv.js} +15 -11
  9. package/{applicationBuildRunner-f4yf0qyc.js → applicationBuildRunner-gg03kydg.js} +12 -8
  10. package/buildBatch.proc.js +14 -9
  11. package/{cloud.command-ab704p0g.js → cloud.command-d8ps1564.js} +20 -16
  12. package/cloud.script-7j7w4m0w.js +35 -0
  13. package/{code.command-m6c9xk56.js → code.command-6h6jr0s7.js} +10 -6
  14. package/{context.command-hgcgxtdk.js → context.command-t8akxhny.js} +20 -16
  15. package/context.runner-eawk1n8e.js +34 -0
  16. package/{guideline.command-6yz6d4hf.js → guideline.command-f41b5nv5.js} +6 -2
  17. package/guidelines/agentRule/agentRule.instruction.md +12 -2
  18. package/guidelines/akanApi/akanApi.instruction.md +1 -1
  19. package/guidelines/errorCodes/errorCodes.instruction.md +3 -0
  20. package/guidelines/pageRule/pageRule.instruction.md +6 -1
  21. package/guidelines/runtimeRule/runtimeRule.instruction.md +2 -1
  22. package/incrementalBuilder.proc.js +12 -7
  23. package/{index-c3r23w24.js → index-1b1p83vq.js} +3 -3
  24. package/index-1jzdengt.js +30 -0
  25. package/{index-aybfcx58.js → index-2z8mxgs7.js} +6 -6
  26. package/{index-t8h09yjs.js → index-37k5vshx.js} +10 -8
  27. package/{index-frvjq1rd.js → index-3fbmyb2r.js} +1 -1
  28. package/{index-6qtxs86x.js → index-3fn13v8p.js} +4 -4
  29. package/{index-6eptmk8z.js → index-3fpv5v0t.js} +15 -11
  30. package/{index-23d8gw08.js → index-3gmskeq2.js} +37 -29
  31. package/{index-bper31wr.js → index-5np8zpep.js} +12 -8
  32. package/{index-41mfhgq0.js → index-66jt3m30.js} +1 -1
  33. package/{index-097bjwvm.js → index-6dwk5aej.js} +8 -8
  34. package/{index-849qvd7t.js → index-71z3pdsn.js} +4 -4
  35. package/{index-p54s83sz.js → index-8bkbexcy.js} +1 -1
  36. package/{index-bxkx0x03.js → index-8rmg8c0y.js} +3 -3
  37. package/{index-6z57w95f.js → index-9w51aevd.js} +1 -1
  38. package/{index-5jwx4bf2.js → index-9yfssbgg.js} +25 -19
  39. package/{index-adj7qmz9.js → index-asfx2dhe.js} +13 -9
  40. package/index-b3h37zk3.js +787 -0
  41. package/{index-xfv2p7b5.js → index-bb7cm060.js} +10 -10
  42. package/{index-p4htjyvk.js → index-c0rnjeqn.js} +11 -9
  43. package/{index-apcr1qgk.js → index-c4k6e098.js} +19 -15
  44. package/{index-sq9d0jhj.js → index-crtscw7c.js} +2710 -3615
  45. package/{index-xy70tcv4.js → index-e599a0e4.js} +1 -1
  46. package/{index-6fnrhpn1.js → index-f5j09jnj.js} +5 -5
  47. package/{index-dsg50er9.js → index-g2ebpf0y.js} +6 -6
  48. package/{index-hf9nvwam.js → index-hbc0t3ng.js} +2 -2
  49. package/{index-hhagjhkh.js → index-hg8s6nae.js} +9 -9
  50. package/{index-b3pr4ee6.js → index-hpe12v1h.js} +1 -1
  51. package/{index-dfsa009c.js → index-j2me5hm4.js} +8 -6
  52. package/{index-e5f6czck.js → index-j33b0n38.js} +1 -1
  53. package/{index-4k9nv4m3.js → index-k081wv4r.js} +1428 -1106
  54. package/{index-rdx8cyv2.js → index-nx4q5rey.js} +3 -3
  55. package/index-rx8r0cbe.js +18 -0
  56. package/{index-k2r3hmbz.js → index-vb8gd135.js} +21 -15
  57. package/{index-z43wddce.js → index-vy50ec2q.js} +2 -2
  58. package/index-x2bj2vyz.js +127 -0
  59. package/{index-9xh4zvw3.js → index-xb1yh9km.js} +21 -11
  60. package/{index-7ky4brfy.js → index-xjj0h74q.js} +2 -2
  61. package/index.js +27 -23
  62. package/libExecutor-ex8jqksz.js +10 -0
  63. package/{library.command-kc1zahcg.js → library.command-a9p5yg4k.js} +7 -3
  64. package/{localRegistry.command-bz2df40m.js → localRegistry.command-zz64k5vy.js} +23 -18
  65. package/{module.command-cchwzz9r.js → module.command-1ht6dmxg.js} +9 -5
  66. package/{package.command-qcjajpv8.js → package.command-eabq20aq.js} +8 -4
  67. package/package.json +2 -2
  68. package/{page.command-1t86dx8a.js → page.command-xhmzmvjn.js} +7 -3
  69. package/{pipeline.command-2xx9z3d0.js → pipeline.command-wsbg3fpr.js} +11 -6
  70. package/pkgExecutor-d16x1xcb.js +10 -0
  71. package/{primitive.command-mc0x8txr.js → primitive.command-yyxtfhvq.js} +10 -6
  72. package/{projectTypecheck-tz497yx7.js → projectTypecheck-wcrt7sae.js} +1 -1
  73. package/{quality.command-11rayf5c.js → quality.command-n7hmt628.js} +16 -10
  74. package/{repair.command-8w41vy78.js → repair.command-pczdq4mv.js} +9 -5
  75. package/{scalar.command-rvwh98ny.js → scalar.command-cw3d32sv.js} +8 -4
  76. package/{subspace.command-0970n7kd.js → subspace.command-d8t8geyv.js} +17 -12
  77. package/templates/lib/sig.ts +0 -4
  78. package/templates/lib/useClient.ts +1 -1
  79. package/{tunnel.command-bcy0rtmh.js → tunnel.command-mhm64m9n.js} +15 -11
  80. package/{verify.command-ynaztxr2.js → verify.command-j4he0fbx.js} +16 -12
  81. package/{workflow.command-yp9ajthb.js → workflow.command-k064waza.js} +14 -10
  82. package/{workspace.command-e4wfxm86.js → workspace.command-pkpawft5.js} +47 -41
  83. package/TunnelShare-44er4e29.js +0 -15
  84. package/cloud.script-4p4y0s7e.js +0 -31
  85. package/context.runner-w071gmc3.js +0 -30
@@ -1,31 +1,37 @@
1
1
  // @bun
2
2
  import {
3
3
  ApplicationBuildReporter
4
- } from "./index-41mfhgq0.js";
4
+ } from "./index-66jt3m30.js";
5
5
  import {
6
6
  script,
7
7
  markCliErrorPrinted,
8
8
  assertPromptable
9
- } from "./index-23d8gw08.js";
9
+ } from "./index-3gmskeq2.js";
10
10
  import {
11
11
  CliError
12
12
  } from "./index-j4yvgfhr.js";
13
13
  import {
14
- SysExecutor,
15
- AppExecutor,
16
- LibExecutor,
17
- PkgExecutor
18
- } from "./index-sq9d0jhj.js";
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-6z57w95f.js";
27
+ } from "./index-9w51aevd.js";
22
28
  import {
23
29
  LibraryScript
24
- } from "./index-t8h09yjs.js";
30
+ } from "./index-37k5vshx.js";
25
31
  import {
26
32
  ApplicationRunner,
27
33
  VerifyScope
28
- } from "./index-4k9nv4m3.js";
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-frvjq1rd.js";
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 AppExecutor) && !(exec instanceof LibExecutor))
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 AppExecutor)
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 LibExecutor)
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 LibExecutor) {
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 PkgExecutor)
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 PkgExecutor ? exec.workspace.workspaceRoot : null;
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 AppExecutor.from(workspace, appName).getConfig()).database.modes)).then((modes) => [...new Set(modes.flat())]);
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-44er4e29.js");
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-23d8gw08.js";
4
+ } from "./index-3gmskeq2.js";
5
5
  import {
6
- AppExecutor,
7
- LibExecutor,
8
- ModuleExecutor
9
- } from "./index-sq9d0jhj.js";
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-dfsa009c.js";
49
+ } from "./index-j2me5hm4.js";
49
50
  import {
50
51
  ModuleScript
51
- } from "./index-aybfcx58.js";
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 AppExecutor.from(workspace, target);
68
+ return AppExecutor2.from(workspace, target);
65
69
  if (libs.includes(target))
66
- return LibExecutor.from(workspace, target);
70
+ return LibExecutor2.from(workspace, target);
67
71
  return null;
68
72
  }
69
73
  async createUi(workspace, input) {