@akanjs/cli 3.0.0-alpha.87 → 3.0.0-alpha.89

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 (58) hide show
  1. package/.build-stamp +1 -1
  2. package/{abstractCompactor-pwc6d6yk.js → abstractCompactor-cefxzggj.js} +2 -2
  3. package/{agent.command-180hh0ye.js → agent.command-r93wmq7m.js} +6 -6
  4. package/{application.command-v8dywdqh.js → application.command-5nqfqgdn.js} +9 -8
  5. package/{applicationBuildRunner-27wyznpv.js → applicationBuildRunner-b21m07fs.js} +4 -3
  6. package/{applicationReleasePackager-ktjt0erc.js → applicationReleasePackager-3wh58n2m.js} +2 -2
  7. package/buildBatch.proc.js +4 -4
  8. package/{capacitorApp-kwa67kzs.js → capacitorApp-gzcx6txb.js} +3 -3
  9. package/{cloud.command-12k4wy4x.js → cloud.command-g0pk0k60.js} +11 -11
  10. package/{context.command-dk2m2sjx.js → context.command-qd8kqrnh.js} +14 -14
  11. package/{dependencyScanner-c64m6fxp.js → dependencyScanner-shs82ynp.js} +2 -2
  12. package/devTui-2xf0meaq.js +552 -0
  13. package/devTuiView-7jy8f30g.js +9 -0
  14. package/{guideline.command-w6ddv13r.js → guideline.command-f38x8jhw.js} +4 -4
  15. package/guidelines/agentRule/agentRule.instruction.md +9 -1
  16. package/guidelines/conventions/conventions.instruction.md +30 -0
  17. package/guidelines/modelStore/modelStore.instruction.md +12 -0
  18. package/guidelines/modelTemplate/modelTemplate.instruction.md +5 -0
  19. package/guidelines/runtimeRule/runtimeRule.instruction.md +37 -0
  20. package/incrementalBuilder.proc.js +8 -5
  21. package/{index-5y7qba1c.js → index-0emb9eat.js} +3 -3
  22. package/{index-cd5x18qh.js → index-3vvbv974.js} +4 -4
  23. package/{index-v0s24t8j.js → index-5xdqxbn9.js} +3 -3
  24. package/{index-k86zc21w.js → index-9bwhxrqf.js} +6 -6
  25. package/{index-ft1sfjz0.js → index-cezy7yb3.js} +66 -7
  26. package/{index-a6c5pc4p.js → index-d61rcfa2.js} +614 -62
  27. package/{index-gz0c482j.js → index-deekbtkj.js} +6 -6
  28. package/{index-saheq2bs.js → index-e82dyeqy.js} +1 -1
  29. package/{index-j9vnq8tr.js → index-h759vjfa.js} +3 -3
  30. package/{index-z3c9mmw4.js → index-jydtyzva.js} +2 -2
  31. package/{index-mfm35dhh.js → index-kcxmv48c.js} +1 -1
  32. package/{index-6c3ex9qw.js → index-kfnr6c19.js} +4 -4
  33. package/{index-1kzsn94d.js → index-mpmyqm1y.js} +1 -1
  34. package/{index-wet2ytnr.js → index-n85fer99.js} +2 -2
  35. package/{index-b2nt0w0k.js → index-pgsswppj.js} +1 -1
  36. package/{index-m9c7k0gm.js → index-pvb4vdwr.js} +1 -1
  37. package/{index-ayy5ecax.js → index-q0y2jq9j.js} +13 -1
  38. package/{index-k1n0h7dk.js → index-q8sn827n.js} +254 -126
  39. package/{index-dq6wq1tv.js → index-r50qen0z.js} +10 -10
  40. package/{index-5n0hf8r9.js → index-rntcdss1.js} +3 -3
  41. package/{index-a8h184wr.js → index-sjak5v5b.js} +6 -6
  42. package/{index-x23688ar.js → index-w8kmx1b6.js} +8 -4
  43. package/{index-qcracvc9.js → index-y74k5anj.js} +3 -3
  44. package/{index-xxe90kqy.js → index-zkvpaggp.js} +2 -2
  45. package/index.js +20 -20
  46. package/{library.command-wpedct6c.js → library.command-em103wtn.js} +4 -4
  47. package/{localRegistry.command-3cew8f75.js → localRegistry.command-gz8apn4y.js} +10 -10
  48. package/{module.command-8n4kct3e.js → module.command-451pztkc.js} +7 -7
  49. package/{package.command-fcbd0b1d.js → package.command-rfhyf38t.js} +5 -5
  50. package/package.json +2 -2
  51. package/{page.command-x4379grq.js → page.command-kt19da5g.js} +4 -4
  52. package/{primitive.command-8etmnqhq.js → primitive.command-pgy69ere.js} +8 -8
  53. package/{quality.command-hfx7z8yr.js → quality.command-gpe2vqb5.js} +3 -3
  54. package/{repair.command-j0fs5qkz.js → repair.command-2sbrz187.js} +6 -6
  55. package/{scalar.command-2emk89eh.js → scalar.command-jcf4e5sv.js} +6 -6
  56. package/{subspace.command-nr32nm35.js → subspace.command-kqzqtk0p.js} +6 -6
  57. package/{workflow.command-cvpmzwjg.js → workflow.command-m4z25a2p.js} +11 -11
  58. package/{workspace.command-rqnms515.js → workspace.command-dqgj9zbk.js} +22 -22
@@ -3,22 +3,22 @@ import {
3
3
  GlobalConfig,
4
4
  CloudApi,
5
5
  AiSession
6
- } from "./index-wet2ytnr.js";
6
+ } from "./index-n85fer99.js";
7
7
  import {
8
8
  PkgExecutor
9
- } from "./index-k1n0h7dk.js";
9
+ } from "./index-q8sn827n.js";
10
10
  import {
11
11
  script
12
- } from "./index-ft1sfjz0.js";
12
+ } from "./index-cezy7yb3.js";
13
13
  import {
14
14
  ApplicationScript
15
- } from "./index-a6c5pc4p.js";
15
+ } from "./index-d61rcfa2.js";
16
16
  import {
17
17
  PackageScript
18
- } from "./index-a8h184wr.js";
18
+ } from "./index-sjak5v5b.js";
19
19
  import {
20
20
  CloudRunner
21
- } from "./index-6c3ex9qw.js";
21
+ } from "./index-kfnr6c19.js";
22
22
 
23
23
  // pkgs/@akanjs/cli/cloud/cloud.script.ts
24
24
  import { Logger } from "akanjs/common";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  AppExecutor,
4
4
  LibExecutor
5
- } from "./index-k1n0h7dk.js";
5
+ } from "./index-q8sn827n.js";
6
6
 
7
7
  // pkgs/@akanjs/devkit/workflow/utils.ts
8
8
  var jsonText = (value, { trailingNewline = true } = {}) => `${JSON.stringify(value, null, 2)}${trailingNewline ? `
@@ -20,13 +20,13 @@ import {
20
20
  renderWorkflowApply,
21
21
  renderWorkflowValidation,
22
22
  renderWorkflowRunArtifact
23
- } from "./index-saheq2bs.js";
23
+ } from "./index-e82dyeqy.js";
24
24
  import {
25
25
  AkanContextAnalyzer
26
- } from "./index-5y7qba1c.js";
26
+ } from "./index-0emb9eat.js";
27
27
  import {
28
28
  runner
29
- } from "./index-ft1sfjz0.js";
29
+ } from "./index-cezy7yb3.js";
30
30
 
31
31
  // pkgs/@akanjs/cli/workflow/workflow.runner.ts
32
32
  import { mkdir, readFile, writeFile } from "fs/promises";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  AsyncDefaultExportDetector,
4
4
  resolveSsrPageEntriesForApp
5
- } from "./index-k1n0h7dk.js";
5
+ } from "./index-q8sn827n.js";
6
6
  import {
7
7
  BarrelAnalyzer,
8
8
  createBarrelImportsPlugin,
@@ -13,7 +13,7 @@ import {
13
13
  ClientEntriesBundler,
14
14
  VENDOR_SPECIFIERS,
15
15
  RouteClientBuilder
16
- } from "./index-x23688ar.js";
16
+ } from "./index-w8kmx1b6.js";
17
17
  var __require = import.meta.require;
18
18
 
19
19
  // pkgs/@akanjs/devkit/frontendBuild/allRoutesBuilder.ts
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  FileSys
4
- } from "./index-ayy5ecax.js";
4
+ } from "./index-q0y2jq9j.js";
5
5
 
6
6
  // pkgs/@akanjs/devkit/dependencyScanner.ts
7
7
  import { builtinModules } from "module";
@@ -4,17 +4,17 @@ import {
4
4
  GlobalConfig,
5
5
  CloudApi,
6
6
  AiSession
7
- } from "./index-wet2ytnr.js";
7
+ } from "./index-n85fer99.js";
8
8
  import {
9
9
  WorkspaceExecutor,
10
10
  AppExecutor
11
- } from "./index-k1n0h7dk.js";
11
+ } from "./index-q8sn827n.js";
12
12
  import {
13
13
  runner
14
- } from "./index-ft1sfjz0.js";
14
+ } from "./index-cezy7yb3.js";
15
15
  import {
16
16
  openBrowser
17
- } from "./index-a6c5pc4p.js";
17
+ } from "./index-d61rcfa2.js";
18
18
 
19
19
  // pkgs/@akanjs/cli/npmRegistry.ts
20
20
  var defaultNpmRegistry = "https://registry.npmjs.org";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  runner,
4
4
  script
5
- } from "./index-ft1sfjz0.js";
5
+ } from "./index-cezy7yb3.js";
6
6
 
7
7
  // pkgs/@akanjs/cli/page/page.runner.ts
8
8
  class PageRunner extends runner("page") {
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  FileSys
4
- } from "./index-ayy5ecax.js";
4
+ } from "./index-q0y2jq9j.js";
5
5
  import {
6
6
  Spinner
7
- } from "./index-k1n0h7dk.js";
7
+ } from "./index-q8sn827n.js";
8
8
 
9
9
  // pkgs/@akanjs/devkit/cloud/globalConfig.ts
10
10
  import { chmod, mkdir } from "fs/promises";
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  CommandExecutionError
4
- } from "./index-k1n0h7dk.js";
4
+ } from "./index-q8sn827n.js";
5
5
  import {
6
6
  resolveMobilePath,
7
7
  targetHtmlFilename
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  AppInfo
4
- } from "./index-k1n0h7dk.js";
4
+ } from "./index-q8sn827n.js";
5
5
 
6
6
  // pkgs/@akanjs/devkit/slicePlanner.ts
7
7
  class SlicePlanner {
@@ -1,6 +1,6 @@
1
1
  // @bun
2
2
  // pkgs/@akanjs/devkit/fileSys.ts
3
- import { lstat, stat } from "fs/promises";
3
+ import { lstat, rename, rm, stat } from "fs/promises";
4
4
  import { Logger } from "akanjs/common";
5
5
 
6
6
  class FileSys {
@@ -34,6 +34,18 @@ class FileSys {
34
34
  static async writeText(path, content) {
35
35
  return await Bun.file(path).write(content);
36
36
  }
37
+ static async writeTextAtomic(filePath, content) {
38
+ const temp = `${filePath}.${process.pid}.${Date.now().toString(36)}.tmp`;
39
+ try {
40
+ await Bun.write(temp, content);
41
+ await rename(temp, filePath);
42
+ } catch (error) {
43
+ await rm(temp, { force: true }).catch(() => {
44
+ return;
45
+ });
46
+ throw error;
47
+ }
48
+ }
37
49
  static async writeJson(path, content) {
38
50
  return await Bun.file(path).write(`${JSON.stringify(content, null, 2)}
39
51
  `);