@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,34 +1,34 @@
1
1
  // @bun
2
2
  import {
3
- pluralizeName
4
- } from "./index-ss469dec.js";
5
- import {
6
- PageScript
7
- } from "./index-yz8988we.js";
3
+ FileSys
4
+ } from "./index-ayy5ecax.js";
8
5
  import {
9
6
  AiSession
10
- } from "./index-safgeq9a.js";
11
- import {
12
- Prompter
13
- } from "./index-k7731a4v.js";
7
+ } from "./index-wet2ytnr.js";
14
8
  import {
15
- bilingualDescriptionForField,
16
- bilingualLabelForField,
17
- createPassedPrimitiveReport,
18
- generatedFilesForSync,
19
- moduleSourcePaths,
20
- sourceFile
21
- } from "./index-6w77v5df.js";
9
+ ModuleExecutor
10
+ } from "./index-k1n0h7dk.js";
22
11
  import {
23
12
  runner,
24
13
  script
25
- } from "./index-1szrbtj9.js";
14
+ } from "./index-ft1sfjz0.js";
26
15
  import {
27
- ModuleExecutor
28
- } from "./index-zkrzv21w.js";
16
+ sourceFile,
17
+ moduleSourcePaths,
18
+ generatedFilesForSync,
19
+ createPassedPrimitiveReport,
20
+ bilingualLabelForField,
21
+ bilingualDescriptionForField
22
+ } from "./index-saheq2bs.js";
29
23
  import {
30
- FileSys
31
- } from "./index-67546d0j.js";
24
+ PageScript
25
+ } from "./index-1kzsn94d.js";
26
+ import {
27
+ Prompter
28
+ } from "./index-h7yw2z9n.js";
29
+ import {
30
+ pluralizeName
31
+ } from "./index-nz8prx9g.js";
32
32
 
33
33
  // pkgs/@akanjs/devkit/getRelatedCnsts.ts
34
34
  import { readFileSync, realpathSync } from "fs";
@@ -662,39 +662,39 @@ class ModuleRunner extends runner("module") {
662
662
  }
663
663
 
664
664
  // pkgs/@akanjs/cli/module/module.script.ts
665
- var moduleChangedFiles = (sys2, moduleName, files) => Object.values(files).map((file) => sourceFile(sys2, `lib/${moduleName}/${file.filename}`, "create", "Module source file was created."));
665
+ var moduleChangedFiles = (sys, moduleName, files) => Object.values(files).map((file) => sourceFile(sys, `lib/${moduleName}/${file.filename}`, "create", "Module source file was created."));
666
666
 
667
667
  class ModuleScript extends script("module", [ModuleRunner, PageScript]) {
668
- async createModuleTemplate(sys2, name, { page = false } = {}) {
669
- const mod = ModuleExecutor.from(sys2, name);
668
+ async createModuleTemplate(sys, name, { page = false } = {}) {
669
+ const mod = ModuleExecutor.from(sys, name);
670
670
  const files = await this.moduleRunner.createModuleTemplate(mod);
671
- if (page && sys2.type === "app")
672
- await this.pageScript.createCrudPage(mod, { app: sys2, basePath: null, single: false });
673
- await sys2.scan();
671
+ if (page && sys.type === "app")
672
+ await this.pageScript.createCrudPage(mod, { app: sys, basePath: null, single: false });
673
+ await sys.scan();
674
674
  return createPassedPrimitiveReport({
675
675
  command: "create-module",
676
- changedFiles: moduleChangedFiles(sys2, name, files),
677
- generatedFiles: generatedFilesForSync(sys2, "Generated files were refreshed after module creation."),
678
- target: sys2.name
676
+ changedFiles: moduleChangedFiles(sys, name, files),
677
+ generatedFiles: generatedFilesForSync(sys, "Generated files were refreshed after module creation."),
678
+ target: sys.name
679
679
  });
680
680
  }
681
- async createModule(sys2, name, {
681
+ async createModule(sys, name, {
682
682
  page = false,
683
683
  description,
684
684
  schemaDescription
685
685
  } = {}) {
686
- const isContinued = await sys2.exists(`lib/${name}/${name}.constant.ts`);
687
- const session = new AiSession("createModule", { workspace: sys2.workspace, cacheKey: name, isContinued });
688
- const moduleConstantExampleFiles = await sys2.workspace.getConstantFiles();
689
- const executor = ModuleExecutor.from(sys2, name);
686
+ const isContinued = await sys.exists(`lib/${name}/${name}.constant.ts`);
687
+ const session = new AiSession("createModule", { workspace: sys.workspace, cacheKey: name, isContinued });
688
+ const moduleConstantExampleFiles = await sys.workspace.getConstantFiles();
689
+ const executor = ModuleExecutor.from(sys, name);
690
690
  const files = await this.moduleRunner.createModuleTemplate(executor);
691
691
  const { constant, dictionary } = files;
692
- if (page && sys2.type === "app")
693
- await this.pageScript.createCrudPage(executor, { app: sys2, basePath: null, single: false });
692
+ if (page && sys.type === "app")
693
+ await this.pageScript.createCrudPage(executor, { app: sys, basePath: null, single: false });
694
694
  const modelDesc = description ?? await input({ message: "description of module" });
695
695
  const modelSchemaDesign = schemaDescription ?? await input({ message: "schema description of module" });
696
- const config = await sys2.getConfig();
697
- const moduleRequest = new ModuleRequest({ sysType: sys2.type, sysName: sys2.name, modelName: name, config });
696
+ const config = await sys.getConfig();
697
+ const moduleRequest = new ModuleRequest({ sysType: sys.type, sysName: sys.name, modelName: name, config });
698
698
  const constantRequestPrompt = await moduleRequest.requestModelConstant({
699
699
  modelDesc,
700
700
  modelSchemaDesign,
@@ -702,38 +702,38 @@ class ModuleScript extends script("module", [ModuleRunner, PageScript]) {
702
702
  exampleFiles: randomPicks(moduleConstantExampleFiles, Math.min(10, moduleConstantExampleFiles.length))
703
703
  });
704
704
  const constantGuide = await ModuleRequest.getGuideJson("modelConstant");
705
- const constantWrites = await session.writeTypescripts(constantRequestPrompt, sys2, {
705
+ const constantWrites = await session.writeTypescripts(constantRequestPrompt, sys, {
706
706
  validate: constantGuide.update.rules
707
707
  });
708
708
  for (const scalarName of this.#getCreatedScalarNames(constantWrites.map(({ filePath }) => filePath))) {
709
- await sys2.applyTemplate({
709
+ await sys.applyTemplate({
710
710
  basePath: "./lib/__scalar",
711
711
  template: "__scalar",
712
- dict: { model: scalarName, models: pluralizeName(scalarName), sysName: sys2.name },
712
+ dict: { model: scalarName, models: pluralizeName(scalarName), sysName: sys.name },
713
713
  overwrite: false
714
714
  });
715
715
  }
716
- const constantContent = await sys2.readFile(`lib/${name}/${name}.constant.ts`);
716
+ const constantContent = await sys.readFile(`lib/${name}/${name}.constant.ts`);
717
717
  const dictionaryGuide = await ModuleRequest.getGuideJson("modelDictionary");
718
718
  await session.writeTypescripts(requestDictionary({
719
- sysName: sys2.name,
719
+ sysName: sys.name,
720
720
  modelName: name,
721
721
  constant: constantContent,
722
722
  modelDesc,
723
723
  modelSchemaDesign,
724
724
  boilerplate: dictionary.content,
725
725
  exampleFiles: randomPicks(moduleConstantExampleFiles, Math.min(10, moduleConstantExampleFiles.length))
726
- }), sys2, { validate: dictionaryGuide.update.rules });
727
- await sys2.scan();
728
- sys2.log(`Module ${name} created in ${sys2.type}s/${sys2.name}/lib/${name}`);
726
+ }), sys, { validate: dictionaryGuide.update.rules });
727
+ await sys.scan();
728
+ sys.log(`Module ${name} created in ${sys.type}s/${sys.name}/lib/${name}`);
729
729
  return createPassedPrimitiveReport({
730
730
  command: "create-module",
731
731
  changedFiles: [
732
- ...moduleChangedFiles(sys2, name, files),
733
- ...constantWrites.map((write) => sourceFile(sys2, write.filePath, "modify", "AI-assisted module constant source was updated."))
732
+ ...moduleChangedFiles(sys, name, files),
733
+ ...constantWrites.map((write) => sourceFile(sys, write.filePath, "modify", "AI-assisted module constant source was updated."))
734
734
  ],
735
- generatedFiles: generatedFilesForSync(sys2, "Generated files were refreshed after module creation."),
736
- target: sys2.name
735
+ generatedFiles: generatedFilesForSync(sys, "Generated files were refreshed after module creation."),
736
+ target: sys.name
737
737
  });
738
738
  }
739
739
  #getCreatedScalarNames(filePaths) {
@@ -744,15 +744,15 @@ class ModuleScript extends script("module", [ModuleRunner, PageScript]) {
744
744
  async removeModule(mod) {
745
745
  await this.moduleRunner.removeModule(mod);
746
746
  }
747
- async createService(sys2, name) {
748
- const service = ModuleExecutor.from(sys2, `_${name}`);
747
+ async createService(sys, name) {
748
+ const service = ModuleExecutor.from(sys, `_${name}`);
749
749
  const files = await this.moduleRunner.createService(service);
750
- await sys2.scan();
750
+ await sys.scan();
751
751
  return createPassedPrimitiveReport({
752
752
  command: "create-service",
753
- changedFiles: moduleChangedFiles(sys2, `_${name}`, files),
754
- generatedFiles: generatedFilesForSync(sys2, "Generated files were refreshed after service creation."),
755
- target: sys2.name
753
+ changedFiles: moduleChangedFiles(sys, `_${name}`, files),
754
+ generatedFiles: generatedFilesForSync(sys, "Generated files were refreshed after service creation."),
755
+ target: sys.name
756
756
  });
757
757
  }
758
758
  async createTest(workspace, name) {}
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  FileSys
4
- } from "./index-67546d0j.js";
4
+ } from "./index-ayy5ecax.js";
5
5
 
6
6
  // pkgs/@akanjs/devkit/dependencyScanner.ts
7
7
  import { builtinModules } from "module";
@@ -14,7 +14,7 @@ var isSkippedPath = (filePath) => skipDirs.some((dir) => filePath.includes(`/${d
14
14
  var builtinModuleSet = new Set([...builtinModules, ...builtinModules.map((mod) => `node:${mod}`)]);
15
15
  var stripShebang = (source) => source.replace(/^#!.*(?:\r?\n|$)/, "");
16
16
 
17
- class TypeScriptDependencyScanner {
17
+ class TypeScriptDependencyScanner2 {
18
18
  #fileDependencies = new Map;
19
19
  #fileRuntimeDependencies = new Map;
20
20
  #fileTypeDependencies = new Map;
@@ -43,7 +43,7 @@ class TypeScriptDependencyScanner {
43
43
  const [npmDepSet, pkgPathDepSet, libPathDepSet] = this.#getImportSetsFromDependencies([npmSet, pkgPathSet, libPathSet], this.#fileRuntimeDependencies);
44
44
  const [npmDevDepSet] = this.#getImportSetsFromDependencies([npmSet], this.#fileTypeDependencies);
45
45
  const pkgDeps = [...pkgPathDepSet];
46
- const libDeps = [...libPathDepSet].map((path2) => path2.replace("@libs/", "")).filter((libName) => libName !== projectName);
46
+ const libDeps = [...libPathDepSet].map((path) => path.replace("@libs/", "")).filter((libName) => libName !== projectName);
47
47
  return {
48
48
  pkgDeps,
49
49
  libDeps,
@@ -289,7 +289,7 @@ class TypeScriptDependencyScanner {
289
289
  exec.workspace.getPackageJson(),
290
290
  exec.workspace.getGitignorePatterns()
291
291
  ]);
292
- return new TypeScriptDependencyScanner(exec.cwdPath, {
292
+ return new TypeScriptDependencyScanner2(exec.cwdPath, {
293
293
  workspaceRoot: exec.workspace.cwdPath,
294
294
  tsconfig,
295
295
  rootPackageJson,
@@ -298,4 +298,4 @@ class TypeScriptDependencyScanner {
298
298
  }
299
299
  }
300
300
 
301
- export { TypeScriptDependencyScanner };
301
+ export { TypeScriptDependencyScanner2 };
@@ -1,17 +1,17 @@
1
1
  // @bun
2
2
  import {
3
- AkanContextAnalyzer
4
- } from "./index-w0g7hcr7.js";
5
- import {
6
- createRepairReport,
3
+ writeWorkflowRunArtifact,
7
4
  generatedFilePathsForTarget,
8
- renderRepairReport,
9
5
  writeGeneratedSyncState,
10
- writeWorkflowRunArtifact
11
- } from "./index-6w77v5df.js";
6
+ createRepairReport,
7
+ renderRepairReport
8
+ } from "./index-saheq2bs.js";
9
+ import {
10
+ AkanContextAnalyzer
11
+ } from "./index-5y7qba1c.js";
12
12
  import {
13
13
  runner
14
- } from "./index-1szrbtj9.js";
14
+ } from "./index-ft1sfjz0.js";
15
15
 
16
16
  // pkgs/@akanjs/cli/repair/repair.runner.ts
17
17
  var commandForShell = (command) => command.startsWith("akan ") ? `bun run ${command}` : command;
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  AppExecutor,
4
4
  LibExecutor
5
- } from "./index-zkrzv21w.js";
5
+ } from "./index-k1n0h7dk.js";
6
6
 
7
7
  // pkgs/@akanjs/devkit/workflow/utils.ts
8
8
  var jsonText = (value, { trailingNewline = true } = {}) => `${JSON.stringify(value, null, 2)}${trailingNewline ? `
@@ -914,9 +914,9 @@ ${options.closingIndent}}`);
914
914
  const beforeField = locator.fields[insertIndex];
915
915
  if (beforeField) {
916
916
  const leadingComments = ts.getLeadingCommentRanges(content, beforeField.fullStart) ?? [];
917
- const insertAt2 = lineStartAt(content, leadingComments[0]?.pos ?? beforeField.start);
918
- const indent2 = lineIndentAt(content, beforeField.start) || options.fieldIndent;
919
- return spliceText(content, insertAt2, insertAt2, `${indent2}${formattedLine}
917
+ const insertAt = lineStartAt(content, leadingComments[0]?.pos ?? beforeField.start);
918
+ const indent = lineIndentAt(content, beforeField.start) || options.fieldIndent;
919
+ return spliceText(content, insertAt, insertAt, `${indent}${formattedLine}
920
920
  `);
921
921
  }
922
922
  const afterField = locator.fields[locator.fields.length - 1];
@@ -1,22 +1,22 @@
1
1
  // @bun
2
2
  import {
3
- pluralizeName
4
- } from "./index-ss469dec.js";
3
+ runner,
4
+ script
5
+ } from "./index-ft1sfjz0.js";
6
+ import {
7
+ generatedFilesForSync,
8
+ createPassedPrimitiveReport,
9
+ scalarChangedFiles
10
+ } from "./index-saheq2bs.js";
5
11
  import {
6
12
  AiSession
7
- } from "./index-safgeq9a.js";
13
+ } from "./index-wet2ytnr.js";
8
14
  import {
9
15
  Prompter
10
- } from "./index-k7731a4v.js";
16
+ } from "./index-h7yw2z9n.js";
11
17
  import {
12
- createPassedPrimitiveReport,
13
- generatedFilesForSync,
14
- scalarChangedFiles
15
- } from "./index-6w77v5df.js";
16
- import {
17
- runner,
18
- script
19
- } from "./index-1szrbtj9.js";
18
+ pluralizeName
19
+ } from "./index-nz8prx9g.js";
20
20
 
21
21
  // pkgs/@akanjs/cli/scalar/scalar.prompt.ts
22
22
  import { input } from "@inquirer/prompts";
@@ -192,9 +192,9 @@ class ScalarRunner extends runner("scalar") {
192
192
  const { request, validate } = await prompt.requestUpdateDictonaryWithInstruction();
193
193
  await session.writeTypescripts(request, sys, { validate });
194
194
  for (const scalarName of followingScalarNames) {
195
- const prompt2 = new ScalarPrompt(sys, scalarName);
196
- const { request: request2, validate: validate2 } = await prompt2.requestUpdateDictonaryWithFollowing();
197
- await session.writeTypescripts(request2, sys, { validate: validate2 });
195
+ const prompt = new ScalarPrompt(sys, scalarName);
196
+ const { request, validate } = await prompt.requestUpdateDictonaryWithFollowing();
197
+ await session.writeTypescripts(request, sys, { validate });
198
198
  }
199
199
  }
200
200
  }
@@ -1,10 +1,10 @@
1
1
  // @bun
2
- import {
3
- Spinner
4
- } from "./index-mxvakhsm.js";
5
2
  import {
6
3
  FileSys
7
- } from "./index-67546d0j.js";
4
+ } from "./index-ayy5ecax.js";
5
+ import {
6
+ Spinner
7
+ } from "./index-k1n0h7dk.js";
8
8
 
9
9
  // pkgs/@akanjs/devkit/cloud/globalConfig.ts
10
10
  import { chmod, mkdir } from "fs/promises";
@@ -276,10 +276,10 @@ class AiSession {
276
276
  static #chat = null;
277
277
  static async init({ temperature = 0, useExisting = true } = {}) {
278
278
  if (useExisting) {
279
- const llmConfig2 = await AiSession.getLlmConfig();
280
- if (llmConfig2) {
281
- AiSession.#setChatModel(llmConfig2.model, llmConfig2.apiKey);
282
- Logger.rawLog(chalk.dim(`\uD83E\uDD16akan editor uses existing LLM config (${llmConfig2.model})`));
279
+ const llmConfig = await AiSession.getLlmConfig();
280
+ if (llmConfig) {
281
+ AiSession.#setChatModel(llmConfig.model, llmConfig.apiKey);
282
+ Logger.rawLog(chalk.dim(`\uD83E\uDD16akan editor uses existing LLM config (${llmConfig.model})`));
283
283
  return AiSession;
284
284
  }
285
285
  } else
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  AppInfo
4
- } from "./index-zkrzv21w.js";
4
+ } from "./index-k1n0h7dk.js";
5
5
 
6
6
  // pkgs/@akanjs/devkit/slicePlanner.ts
7
7
  class SlicePlanner {
@@ -1,15 +1,15 @@
1
1
  // @bun
2
- import {
3
- LibSource,
4
- formatLibStatuses
5
- } from "./index-19nz5chq.js";
6
2
  import {
7
3
  runner,
8
4
  script
9
- } from "./index-1szrbtj9.js";
5
+ } from "./index-ft1sfjz0.js";
10
6
  import {
11
7
  LibExecutor
12
- } from "./index-zkrzv21w.js";
8
+ } from "./index-k1n0h7dk.js";
9
+ import {
10
+ LibSource,
11
+ formatLibStatuses
12
+ } from "./index-3d9y066c.js";
13
13
 
14
14
  // pkgs/@akanjs/cli/library/library.script.ts
15
15
  import { Logger } from "akanjs/common";
@@ -1,22 +1,20 @@
1
1
  // @bun
2
+ import {
3
+ AsyncDefaultExportDetector,
4
+ resolveSsrPageEntriesForApp
5
+ } from "./index-k1n0h7dk.js";
2
6
  import {
3
7
  BarrelAnalyzer,
4
- ClientEntriesBundler,
5
- GraphClientEntryDiscovery,
6
- RouteClientBuilder,
7
- VENDOR_SPECIFIERS,
8
8
  createBarrelImportsPlugin,
9
9
  createTsconfigPackageResolver,
10
10
  rewriteBarrelImports,
11
- transformUseClient
12
- } from "./index-jcm6zr20.js";
13
- import {
14
- AsyncDefaultExportDetector,
15
- resolveSsrPageEntriesForApp
16
- } from "./index-dp66vwr6.js";
17
- import {
18
- __require
19
- } from "./index-yb2wsc7f.js";
11
+ GraphClientEntryDiscovery,
12
+ transformUseClient,
13
+ ClientEntriesBundler,
14
+ VENDOR_SPECIFIERS,
15
+ RouteClientBuilder
16
+ } from "./index-x23688ar.js";
17
+ var __require = import.meta.require;
20
18
 
21
19
  // pkgs/@akanjs/devkit/frontendBuild/allRoutesBuilder.ts
22
20
  import path3 from "path";
@@ -644,13 +642,13 @@ class CssCompiler {
644
642
  const compilers = await Promise.all(cssPaths.map(async (cssPath) => {
645
643
  const css = await Bun.file(cssPath).text();
646
644
  const base = path5.dirname(cssPath);
647
- const imported2 = new Map;
645
+ const imported = new Map;
648
646
  const compiler = await compile(css, {
649
647
  base,
650
- loadStylesheet: (id, fromBase) => this.#loadStylesheet(id, fromBase, imported2),
648
+ loadStylesheet: (id, fromBase) => this.#loadStylesheet(id, fromBase, imported),
651
649
  loadModule: (id, fromBase) => this.#loadModule(id, fromBase)
652
650
  });
653
- return { cssPath, compiler, imported: imported2 };
651
+ return { cssPath, compiler, imported };
654
652
  }));
655
653
  const sourceDirs = new Set;
656
654
  for (const entry of compilers) {
package/index.js CHANGED
@@ -1,41 +1,36 @@
1
1
  #!/usr/bin/env bun
2
2
  // @bun
3
3
  import {
4
- getTargetCommandNames,
5
4
  getTargetMetas,
5
+ getTargetCommandNames,
6
6
  runCommands
7
- } from "./index-1szrbtj9.js";
8
- import"./index-zkrzv21w.js";
9
- import"./index-dp66vwr6.js";
10
- import"./index-mxvakhsm.js";
11
- import"./index-1577bej2.js";
12
- import"./index-67546d0j.js";
13
- import {
14
- __require
15
- } from "./index-yb2wsc7f.js";
7
+ } from "./index-ft1sfjz0.js";
8
+ import"./index-k1n0h7dk.js";
9
+ import"./index-ayy5ecax.js";
10
+ import"./index-6wwzs1bc.js";
16
11
 
17
12
  // pkgs/@akanjs/cli/commandManifest.ts
18
13
  import path from "path";
19
14
 
20
15
  // pkgs/@akanjs/cli/commandModules.ts
21
16
  var commandModules = {
22
- workspace: async () => (await import("./workspace.command-53qpkgzp.js")).WorkspaceCommand,
23
- agent: async () => (await import("./agent.command-q2rgd8jz.js")).AgentCommand,
24
- application: async () => (await import("./application.command-kd5zj0k9.js")).ApplicationCommand,
25
- library: async () => (await import("./library.command-nvp0wetm.js")).LibraryCommand,
26
- localRegistry: async () => (await import("./localRegistry.command-dnefn893.js")).LocalRegistryCommand,
27
- package: async () => (await import("./package.command-af8sxhff.js")).PackageCommand,
28
- module: async () => (await import("./module.command-xs6ded4j.js")).ModuleCommand,
29
- page: async () => (await import("./page.command-gr6rbz17.js")).PageCommand,
30
- context: async () => (await import("./context.command-hac3x83c.js")).ContextCommand,
31
- cloud: async () => (await import("./cloud.command-v60xnfdx.js")).CloudCommand,
32
- fleet: async () => (await import("./fleet.command-jv24wcae.js")).FleetCommand,
33
- guideline: async () => (await import("./guideline.command-85x1tvjb.js")).GuidelineCommand,
34
- scalar: async () => (await import("./scalar.command-ax8taqh1.js")).ScalarCommand,
35
- primitive: async () => (await import("./primitive.command-qjf4mbth.js")).PrimitiveCommand,
36
- quality: async () => (await import("./quality.command-9xhaxzm1.js")).QualityCommand,
37
- repair: async () => (await import("./repair.command-a2z4d5a0.js")).RepairCommand,
38
- workflow: async () => (await import("./workflow.command-gwkw0jae.js")).WorkflowCommand
17
+ workspace: async () => (await import("./workspace.command-mbb5s3wx.js")).WorkspaceCommand,
18
+ agent: async () => (await import("./agent.command-180hh0ye.js")).AgentCommand,
19
+ application: async () => (await import("./application.command-gmcgen9y.js")).ApplicationCommand,
20
+ library: async () => (await import("./library.command-wpedct6c.js")).LibraryCommand,
21
+ localRegistry: async () => (await import("./localRegistry.command-pjdxa01g.js")).LocalRegistryCommand,
22
+ package: async () => (await import("./package.command-fcbd0b1d.js")).PackageCommand,
23
+ module: async () => (await import("./module.command-8n4kct3e.js")).ModuleCommand,
24
+ page: async () => (await import("./page.command-x4379grq.js")).PageCommand,
25
+ context: async () => (await import("./context.command-dk2m2sjx.js")).ContextCommand,
26
+ cloud: async () => (await import("./cloud.command-gpq7qxrc.js")).CloudCommand,
27
+ fleet: async () => (await import("./fleet.command-3bkyyd3a.js")).FleetCommand,
28
+ guideline: async () => (await import("./guideline.command-w6ddv13r.js")).GuidelineCommand,
29
+ scalar: async () => (await import("./scalar.command-2emk89eh.js")).ScalarCommand,
30
+ primitive: async () => (await import("./primitive.command-8etmnqhq.js")).PrimitiveCommand,
31
+ quality: async () => (await import("./quality.command-hfx7z8yr.js")).QualityCommand,
32
+ repair: async () => (await import("./repair.command-j0fs5qkz.js")).RepairCommand,
33
+ workflow: async () => (await import("./workflow.command-cvpmzwjg.js")).WorkflowCommand
39
34
  };
40
35
  var commandModuleIds = Object.keys(commandModules);
41
36
 
@@ -1,19 +1,15 @@
1
1
  // @bun
2
- import {
3
- LibraryScript
4
- } from "./index-7605ykh6.js";
5
- import"./index-19nz5chq.js";
6
2
  import {
7
3
  Lib,
8
4
  Workspace,
9
5
  command
10
- } from "./index-1szrbtj9.js";
11
- import"./index-zkrzv21w.js";
12
- import"./index-dp66vwr6.js";
13
- import"./index-mxvakhsm.js";
14
- import"./index-1577bej2.js";
15
- import"./index-67546d0j.js";
16
- import"./index-yb2wsc7f.js";
6
+ } from "./index-ft1sfjz0.js";
7
+ import"./index-k1n0h7dk.js";
8
+ import"./index-ayy5ecax.js";
9
+ import"./index-6wwzs1bc.js";
10
+ import {
11
+ LibraryScript
12
+ } from "./index-xxe90kqy.js";
17
13
 
18
14
  // pkgs/@akanjs/cli/library/library.command.ts
19
15
  class LibraryCommand extends command("library", [LibraryScript], ({ public: target }) => ({
@@ -1,36 +1,30 @@
1
1
  // @bun
2
2
  import {
3
- CloudRunner,
4
- getNpmRegistryUrl
5
- } from "./index-dz1q44m8.js";
3
+ Workspace,
4
+ runner,
5
+ script,
6
+ command
7
+ } from "./index-ft1sfjz0.js";
6
8
  import {
7
- PackageScript
8
- } from "./index-ffrhjdwd.js";
9
- import"./index-safgeq9a.js";
9
+ PkgExecutor
10
+ } from "./index-k1n0h7dk.js";
11
+ import"./index-ayy5ecax.js";
12
+ import"./index-6wwzs1bc.js";
10
13
  import {
11
14
  ApplicationScript
12
- } from "./index-zp0cmfgd.js";
13
- import"./index-7605ykh6.js";
14
- import"./index-jn9b717k.js";
15
- import"./index-19nz5chq.js";
16
- import"./index-76rn3g2c.js";
15
+ } from "./index-f7wewj2v.js";
16
+ import"./index-xxe90kqy.js";
17
+ import"./index-ctphds8v.js";
18
+ import"./index-wet2ytnr.js";
17
19
  import {
18
- Workspace,
19
- command,
20
- runner,
21
- script
22
- } from "./index-1szrbtj9.js";
23
- import"./index-ynf37b66.js";
24
- import"./index-5vy2jzar.js";
20
+ getNpmRegistryUrl,
21
+ CloudRunner
22
+ } from "./index-3c9n3nt8.js";
23
+ import"./index-mfm35dhh.js";
25
24
  import {
26
- PkgExecutor
27
- } from "./index-zkrzv21w.js";
28
- import"./index-dp66vwr6.js";
29
- import"./index-mxvakhsm.js";
30
- import"./index-1577bej2.js";
31
- import"./index-h5sr2nnj.js";
32
- import"./index-67546d0j.js";
33
- import"./index-yb2wsc7f.js";
25
+ PackageScript
26
+ } from "./index-a8h184wr.js";
27
+ import"./index-xnhf8tr9.js";
34
28
 
35
29
  // pkgs/@akanjs/cli/localRegistry/localRegistry.runner.ts
36
30
  import { mkdir, rm } from "fs/promises";
@@ -1,25 +1,21 @@
1
1
  // @bun
2
2
  import {
3
- ModuleScript
4
- } from "./index-pj3hk9kt.js";
5
- import"./index-ss469dec.js";
6
- import"./index-yz8988we.js";
7
- import"./index-safgeq9a.js";
8
- import"./index-k7731a4v.js";
3
+ Sys,
4
+ Module,
5
+ command
6
+ } from "./index-ft1sfjz0.js";
7
+ import"./index-k1n0h7dk.js";
8
+ import"./index-ayy5ecax.js";
9
+ import"./index-6wwzs1bc.js";
9
10
  import {
10
11
  renderPrimitiveReport
11
- } from "./index-6w77v5df.js";
12
+ } from "./index-saheq2bs.js";
13
+ import"./index-wet2ytnr.js";
12
14
  import {
13
- Module,
14
- Sys,
15
- command
16
- } from "./index-1szrbtj9.js";
17
- import"./index-zkrzv21w.js";
18
- import"./index-dp66vwr6.js";
19
- import"./index-mxvakhsm.js";
20
- import"./index-1577bej2.js";
21
- import"./index-67546d0j.js";
22
- import"./index-yb2wsc7f.js";
15
+ ModuleScript
16
+ } from "./index-k86zc21w.js";
17
+ import"./index-1kzsn94d.js";
18
+ import"./index-h7yw2z9n.js";
23
19
 
24
20
  // pkgs/@akanjs/cli/module/module.command.ts
25
21
  import { Logger, lowerlize } from "akanjs/common";