@akanjs/cli 3.0.0-alpha.79 → 3.0.0-alpha.80

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 (76) hide show
  1. package/.build-stamp +1 -1
  2. package/{abstractCompactor-8yjc9sj4.js → abstractCompactor-pwc6d6yk.js} +3 -5
  3. package/{agent.command-q2rgd8jz.js → agent.command-180hh0ye.js} +11 -14
  4. package/{application.command-kd5zj0k9.js → application.command-gmcgen9y.js} +29 -34
  5. package/{applicationBuildRunner-8tqhxjd0.js → applicationBuildRunner-tavpx3fv.js} +9 -12
  6. package/{applicationReleasePackager-0jf6ejr4.js → applicationReleasePackager-ktjt0erc.js} +6 -7
  7. package/buildBatch.proc.js +12 -15
  8. package/capacitorApp-kwa67kzs.js +12 -0
  9. package/{cloud.command-v60xnfdx.js → cloud.command-gpq7qxrc.js} +15 -21
  10. package/{context.command-hac3x83c.js → context.command-dk2m2sjx.js} +19 -24
  11. package/dependencyScanner-c64m6fxp.js +8 -0
  12. package/{fleet.command-jv24wcae.js → fleet.command-3bkyyd3a.js} +67 -24
  13. package/getDirname-dr3jz1xg.js +7 -0
  14. package/{guideline.command-85x1tvjb.js → guideline.command-w6ddv13r.js} +16 -19
  15. package/incrementalBuilder.proc.js +17 -20
  16. package/{index-yz8988we.js → index-1kzsn94d.js} +1 -1
  17. package/{index-dz1q44m8.js → index-3c9n3nt8.js} +21 -21
  18. package/{index-76rn3g2c.js → index-47pj3aee.js} +4 -4
  19. package/{index-dfn0kqj7.js → index-5n0hf8r9.js} +19 -19
  20. package/{index-w0g7hcr7.js → index-5y7qba1c.js} +19 -19
  21. package/{index-1577bej2.js → index-6wwzs1bc.js} +2 -2
  22. package/{index-94hdqqka.js → index-92zztqy1.js} +6 -6
  23. package/{index-ffrhjdwd.js → index-a8h184wr.js} +7 -7
  24. package/{index-67546d0j.js → index-ayy5ecax.js} +1 -1
  25. package/{index-zec5gcx0.js → index-b2nt0w0k.js} +7 -7
  26. package/{index-xys926f2.js → index-by5gpp8x.js} +4 -4
  27. package/{index-47zynjx7.js → index-cd5x18qh.js} +32 -32
  28. package/{index-pzsryyjv.js → index-dq6wq1tv.js} +39 -39
  29. package/{index-psx0z6hb.js → index-ee8z8adx.js} +13 -13
  30. package/{index-zp0cmfgd.js → index-f7wewj2v.js} +22 -25
  31. package/{index-1szrbtj9.js → index-ft1sfjz0.js} +20 -23
  32. package/{index-k7731a4v.js → index-h7yw2z9n.js} +3 -3
  33. package/{index-egng0kc4.js → index-j9vnq8tr.js} +18 -18
  34. package/{index-zkrzv21w.js → index-k1n0h7dk.js} +519 -123
  35. package/{index-pj3hk9kt.js → index-k86zc21w.js} +57 -57
  36. package/{index-h5sr2nnj.js → index-mfm35dhh.js} +5 -5
  37. package/{index-qwfwk8be.js → index-qcracvc9.js} +8 -8
  38. package/{index-6w77v5df.js → index-saheq2bs.js} +4 -4
  39. package/{index-ta1mk0xh.js → index-v0s24t8j.js} +15 -15
  40. package/{index-safgeq9a.js → index-wet2ytnr.js} +8 -8
  41. package/{index-jn9b717k.js → index-xnhf8tr9.js} +1 -1
  42. package/{index-7605ykh6.js → index-xxe90kqy.js} +6 -6
  43. package/{index-25qfm3at.js → index-z3c9mmw4.js} +14 -16
  44. package/index.js +22 -27
  45. package/{library.command-nvp0wetm.js → library.command-wpedct6c.js} +7 -11
  46. package/{localRegistry.command-dnefn893.js → localRegistry.command-pjdxa01g.js} +20 -26
  47. package/{module.command-xs6ded4j.js → module.command-8n4kct3e.js} +13 -17
  48. package/{package.command-af8sxhff.js → package.command-fcbd0b1d.js} +8 -11
  49. package/package.json +2 -2
  50. package/{page.command-gr6rbz17.js → page.command-x4379grq.js} +7 -10
  51. package/{primitive.command-qjf4mbth.js → primitive.command-8etmnqhq.js} +13 -17
  52. package/{quality.command-9xhaxzm1.js → quality.command-hfx7z8yr.js} +11 -14
  53. package/recipeScanner-fpagtgc1.js +11 -0
  54. package/{repair.command-a2z4d5a0.js → repair.command-j0fs5qkz.js} +12 -15
  55. package/{routeSourceValidator-7fycdqyv.js → routeSourceValidator-ze6x894c.js} +0 -2
  56. package/{scalar.command-ax8taqh1.js → scalar.command-2emk89eh.js} +11 -15
  57. package/templates/workspaceRoot/package.json.template +1 -3
  58. package/typeChecker-3xgrzc2v.js +7 -0
  59. package/typecheck.proc.js +4 -5
  60. package/{workflow.command-gwkw0jae.js → workflow.command-cvpmzwjg.js} +22 -26
  61. package/{workspace.command-53qpkgzp.js → workspace.command-mbb5s3wx.js} +57 -64
  62. package/capacitorApp-szqr3cxr.js +0 -62
  63. package/dependencyScanner-aqg3dkks.js +0 -9
  64. package/getDirname-ka11hm7e.js +0 -8
  65. package/index-dp66vwr6.js +0 -348
  66. package/index-mxvakhsm.js +0 -66
  67. package/index-yb2wsc7f.js +0 -4
  68. package/recipeScanner-zrzev25x.js +0 -12
  69. package/typeChecker-yhs4eht8.js +0 -8
  70. /package/{index-19nz5chq.js → index-3d9y066c.js} +0 -0
  71. /package/{index-ynf37b66.js → index-a5vmm6x4.js} +0 -0
  72. /package/{index-5vy2jzar.js → index-ctphds8v.js} +0 -0
  73. /package/{index-0wae5ebk.js → index-meh558jy.js} +0 -0
  74. /package/{index-scemmfpj.js → index-n68jx79w.js} +0 -0
  75. /package/{index-ss469dec.js → index-nz8prx9g.js} +0 -0
  76. /package/{index-jcm6zr20.js → index-x23688ar.js} +0 -0
@@ -1,24 +1,24 @@
1
1
  // @bun
2
2
  import {
3
- CloudRunner
4
- } from "./index-dz1q44m8.js";
3
+ GlobalConfig,
4
+ CloudApi,
5
+ AiSession
6
+ } from "./index-wet2ytnr.js";
5
7
  import {
6
- PackageScript
7
- } from "./index-ffrhjdwd.js";
8
+ PkgExecutor
9
+ } from "./index-k1n0h7dk.js";
8
10
  import {
9
- AiSession,
10
- CloudApi,
11
- GlobalConfig
12
- } from "./index-safgeq9a.js";
11
+ script
12
+ } from "./index-ft1sfjz0.js";
13
13
  import {
14
14
  ApplicationScript
15
- } from "./index-zp0cmfgd.js";
15
+ } from "./index-f7wewj2v.js";
16
16
  import {
17
- script
18
- } from "./index-1szrbtj9.js";
17
+ PackageScript
18
+ } from "./index-a8h184wr.js";
19
19
  import {
20
- PkgExecutor
21
- } from "./index-zkrzv21w.js";
20
+ CloudRunner
21
+ } from "./index-3c9n3nt8.js";
22
22
 
23
23
  // pkgs/@akanjs/cli/cloud/cloud.script.ts
24
24
  import { Logger } from "akanjs/common";
@@ -1,31 +1,28 @@
1
1
  // @bun
2
- import {
3
- LibraryScript
4
- } from "./index-7605ykh6.js";
5
- import {
6
- SlicePlanner,
7
- formatSlicePlan
8
- } from "./index-jn9b717k.js";
9
- import {
10
- resolveMobileTargets
11
- } from "./index-76rn3g2c.js";
12
2
  import {
13
3
  runner,
14
4
  script
15
- } from "./index-1szrbtj9.js";
5
+ } from "./index-ft1sfjz0.js";
6
+ import {
7
+ WorkspaceExecutor,
8
+ AppExecutor,
9
+ LibExecutor,
10
+ PkgExecutor
11
+ } from "./index-k1n0h7dk.js";
12
+ import {
13
+ LibraryScript
14
+ } from "./index-xxe90kqy.js";
16
15
  import {
17
16
  HmrWatcher,
18
17
  WatchRootResolver
19
- } from "./index-5vy2jzar.js";
18
+ } from "./index-ctphds8v.js";
20
19
  import {
21
- AppExecutor,
22
- LibExecutor,
23
- PkgExecutor,
24
- WorkspaceExecutor
25
- } from "./index-zkrzv21w.js";
20
+ SlicePlanner,
21
+ formatSlicePlan
22
+ } from "./index-xnhf8tr9.js";
26
23
  import {
27
- __require
28
- } from "./index-yb2wsc7f.js";
24
+ resolveMobileTargets
25
+ } from "./index-47pj3aee.js";
29
26
 
30
27
  // pkgs/@akanjs/devkit/applicationBuildReporter.ts
31
28
  import { Logger } from "akanjs/common";
@@ -1919,10 +1916,10 @@ function openBrowser(url) {
1919
1916
  }
1920
1917
 
1921
1918
  // pkgs/@akanjs/cli/application/application.runner.ts
1922
- var loadBuildRunner = async () => (await import("./applicationBuildRunner-8tqhxjd0.js")).ApplicationBuildRunner;
1923
- var loadReleasePackager = async () => (await import("./applicationReleasePackager-0jf6ejr4.js")).ApplicationReleasePackager;
1924
- var loadCapacitorApp = async () => (await import("./capacitorApp-szqr3cxr.js")).CapacitorApp;
1925
- var loadAbstractCompactor = async () => (await import("./abstractCompactor-8yjc9sj4.js")).AbstractCompactor;
1919
+ var loadBuildRunner = async () => (await import("./applicationBuildRunner-tavpx3fv.js")).ApplicationBuildRunner;
1920
+ var loadReleasePackager = async () => (await import("./applicationReleasePackager-ktjt0erc.js")).ApplicationReleasePackager;
1921
+ var loadCapacitorApp = async () => (await import("./capacitorApp-kwa67kzs.js")).CapacitorApp;
1922
+ var loadAbstractCompactor = async () => (await import("./abstractCompactor-pwc6d6yk.js")).AbstractCompactor;
1926
1923
  var loadPrompts = async () => await import("@inquirer/prompts");
1927
1924
 
1928
1925
  class ApplicationRunner extends runner("application") {
@@ -2481,8 +2478,8 @@ class ApplicationScript extends script("application", [ApplicationRunner, Librar
2481
2478
  async test(exec, { write = true } = {}) {
2482
2479
  if (exec instanceof LibExecutor) {
2483
2480
  await this.libraryScript.syncLibrary(exec);
2484
- const spinner2 = exec.spinning(`Preparing ${exec.name}...`);
2485
- spinner2.succeed(`${exec.name} prepared`);
2481
+ const spinner = exec.spinning(`Preparing ${exec.name}...`);
2482
+ spinner.succeed(`${exec.name} prepared`);
2486
2483
  await this.applicationRunner.test(exec);
2487
2484
  return;
2488
2485
  }
@@ -1,21 +1,18 @@
1
1
  // @bun
2
2
  import {
3
- AppExecutor,
4
3
  Executor,
4
+ WorkspaceExecutor,
5
+ AppExecutor,
5
6
  LibExecutor,
6
- ModuleExecutor,
7
7
  PkgExecutor,
8
- WorkspaceExecutor
9
- } from "./index-zkrzv21w.js";
10
- import {
11
- getDirname
12
- } from "./index-1577bej2.js";
8
+ ModuleExecutor
9
+ } from "./index-k1n0h7dk.js";
13
10
  import {
14
11
  FileSys
15
- } from "./index-67546d0j.js";
12
+ } from "./index-ayy5ecax.js";
16
13
  import {
17
- __require
18
- } from "./index-yb2wsc7f.js";
14
+ getDirname2
15
+ } from "./index-6wwzs1bc.js";
19
16
 
20
17
  // pkgs/@akanjs/devkit/commandDecorators/targetMeta.ts
21
18
  var COMMAND_META = Symbol("akan.command.meta");
@@ -540,36 +537,36 @@ var getInternalArgumentValue = async (argMeta, value, workspace) => {
540
537
  return PkgExecutor.from(workspace, pkgName);
541
538
  } else if (sysType === "module") {
542
539
  if (value) {
543
- const [sysName, moduleName2] = value.split(":");
544
- if (!sysName || !moduleName2)
540
+ const [sysName, moduleName] = value.split(":");
541
+ if (!sysName || !moduleName)
545
542
  throw new Error(`Invalid module name: ${value}`);
546
543
  if (appNames.includes(sysName)) {
547
544
  const app = AppExecutor.from(workspace, sysName);
548
- const modules2 = await app.getModules();
549
- if (modules2.includes(moduleName2))
550
- return ModuleExecutor.from(app, moduleName2);
545
+ const modules = await app.getModules();
546
+ if (modules.includes(moduleName))
547
+ return ModuleExecutor.from(app, moduleName);
551
548
  else
552
- throw new Error(`Invalid module name: ${moduleName2}`);
549
+ throw new Error(`Invalid module name: ${moduleName}`);
553
550
  } else if (libNames.includes(sysName)) {
554
551
  const lib = LibExecutor.from(workspace, sysName);
555
- const modules2 = await lib.getModules();
556
- if (modules2.includes(moduleName2))
557
- return ModuleExecutor.from(lib, moduleName2);
552
+ const modules = await lib.getModules();
553
+ if (modules.includes(moduleName))
554
+ return ModuleExecutor.from(lib, moduleName);
558
555
  } else
559
556
  throw new Error(`Invalid system name: ${sysName}`);
560
557
  }
561
558
  const { type, name } = await select({
562
559
  message: `select the App or Lib name`,
563
560
  choices: [
564
- ...appNames.map((name2) => ({ name: name2, value: { type: "app", name: name2 } })),
565
- ...libNames.map((name2) => ({ name: name2, value: { type: "lib", name: name2 } }))
561
+ ...appNames.map((name) => ({ name, value: { type: "app", name } })),
562
+ ...libNames.map((name) => ({ name, value: { type: "lib", name } }))
566
563
  ]
567
564
  });
568
565
  const executor = type === "app" ? AppExecutor.from(workspace, name) : LibExecutor.from(workspace, name);
569
566
  const modules = await executor.getModules();
570
567
  const moduleName = await select({
571
568
  message: `Select the module name`,
572
- choices: modules.map((name2) => ({ name: `${executor.name}:${name2}`, value: name2 }))
569
+ choices: modules.map((name) => ({ name: `${executor.name}:${name}`, value: name }))
573
570
  });
574
571
  return ModuleExecutor.from(executor, moduleName);
575
572
  } else
@@ -580,7 +577,7 @@ var runCommands = async (...commands) => {
580
577
  printCliError(error);
581
578
  process.exit(1);
582
579
  });
583
- const __dirname2 = getDirname(import.meta.url);
580
+ const __dirname2 = getDirname2(import.meta.url);
584
581
  const packageJsonCandidates = [`${path.dirname(Bun.main)}/package.json`, `${__dirname2}/../package.json`];
585
582
  let cliPackageJson = null;
586
583
  for (const packageJsonPath of packageJsonCandidates) {
@@ -1,14 +1,14 @@
1
1
  // @bun
2
2
  import {
3
- getDirname
4
- } from "./index-1577bej2.js";
3
+ getDirname2
4
+ } from "./index-6wwzs1bc.js";
5
5
 
6
6
  // pkgs/@akanjs/devkit/prompter.ts
7
7
  import fsPromise from "fs/promises";
8
8
  import { input, select } from "@inquirer/prompts";
9
9
  class Prompter {
10
10
  static async#getGuidelineRoot() {
11
- const dirname = getDirname(import.meta.url);
11
+ const dirname = getDirname2(import.meta.url);
12
12
  const candidates = [`${dirname}/guidelines`, `${dirname}/../cli/guidelines`];
13
13
  for (const candidate of candidates) {
14
14
  try {
@@ -1,32 +1,32 @@
1
1
  // @bun
2
2
  import {
3
- AkanContextAnalyzer
4
- } from "./index-w0g7hcr7.js";
5
- import {
6
- WorkflowExecutor,
7
- compactWorkflowInputs,
8
- createDryRunWorkflowApplyReport,
3
+ jsonText,
4
+ workflowPlanApproval,
9
5
  createWorkflowApplyReport,
6
+ workflowCommandsForPlan,
7
+ writeWorkflowRunArtifact,
8
+ readWorkflowRunArtifact,
10
9
  createWorkflowBaselineSummary,
11
- createWorkflowPlan,
12
10
  createWorkflowValidationRunReport,
13
- getWorkflowSpec,
14
- jsonText,
11
+ createDryRunWorkflowApplyReport,
12
+ WorkflowExecutor,
15
13
  listWorkflowSpecs,
16
- readWorkflowRunArtifact,
17
- renderWorkflowApply,
18
- renderWorkflowExplain,
14
+ getWorkflowSpec,
15
+ compactWorkflowInputs,
16
+ createWorkflowPlan,
19
17
  renderWorkflowList,
18
+ renderWorkflowExplain,
20
19
  renderWorkflowPlan,
21
- renderWorkflowRunArtifact,
20
+ renderWorkflowApply,
22
21
  renderWorkflowValidation,
23
- workflowCommandsForPlan,
24
- workflowPlanApproval,
25
- writeWorkflowRunArtifact
26
- } from "./index-6w77v5df.js";
22
+ renderWorkflowRunArtifact
23
+ } from "./index-saheq2bs.js";
24
+ import {
25
+ AkanContextAnalyzer
26
+ } from "./index-5y7qba1c.js";
27
27
  import {
28
28
  runner
29
- } from "./index-1szrbtj9.js";
29
+ } from "./index-ft1sfjz0.js";
30
30
 
31
31
  // pkgs/@akanjs/cli/workflow/workflow.runner.ts
32
32
  import { mkdir, readFile, writeFile } from "fs/promises";