@akanjs/cli 3.1.0-rc.26 → 3.1.0-rc.27

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 (74) hide show
  1. package/.build-stamp +1 -1
  2. package/{CodeAgent-qrhqfc5s.js → CodeAgent-c53dm40p.js} +2 -2
  3. package/{CodeTui-k2c7wzhf.js → CodeTui-xz9jtrn3.js} +1 -1
  4. package/TunnelShare-59zd4j8n.js +14 -0
  5. package/{agent.command-8sma9jnd.js → agent.command-qawf7z4s.js} +5 -5
  6. package/akanCode.js +2 -2
  7. package/{application.command-v7xbe18e.js → application.command-jqrgqk6j.js} +9 -9
  8. package/{applicationBuildRunner-qaxt8try.js → applicationBuildRunner-grgrey5c.js} +7 -6
  9. package/buildBatch.proc.js +5 -5
  10. package/{cloud.command-gxspyqpr.js → cloud.command-p9067ssj.js} +13 -13
  11. package/cloud.script-f0r4ce7j.js +24 -0
  12. package/{code.command-ds7sr16b.js → code.command-t6j55sbk.js} +6 -6
  13. package/{context.command-ytr0n79h.js → context.command-eqbzbgth.js} +16 -16
  14. package/context.runner-1cs88ags.js +25 -0
  15. package/{guideline.command-6tnmtn4w.js → guideline.command-w905q73w.js} +2 -2
  16. package/guidelines/conventions/conventions.instruction.md +15 -11
  17. package/guidelines/modelDocument/modelDocument.instruction.md +2 -1
  18. package/guidelines/queryRule/queryRule.instruction.md +9 -7
  19. package/guidelines/runtimeRule/runtimeRule.instruction.md +4 -3
  20. package/guidelines/ssrRule/ssrRule.instruction.md +9 -9
  21. package/guidelines/transportRule/transportRule.instruction.md +5 -5
  22. package/guidelines/workspaceOnboarding/workspaceOnboarding.instruction.md +5 -3
  23. package/guidelines/workspaceRecipes/workspaceRecipes.instruction.md +6 -4
  24. package/incrementalBuilder.proc.js +3 -3
  25. package/{index-cj3md29d.js → index-0dd6z4b9.js} +3 -3
  26. package/{index-mt611jnw.js → index-1de5f0qq.js} +7 -7
  27. package/{index-zjfz6rvx.js → index-1enc9rga.js} +2 -2
  28. package/{index-c090a8wn.js → index-25ks6x4k.js} +2 -2
  29. package/{index-32hkenqb.js → index-3aynkpf8.js} +1 -1
  30. package/{index-6a64svwc.js → index-3hvmytbs.js} +1 -1
  31. package/{index-3xm8hm4f.js → index-45c0mxb6.js} +2 -2
  32. package/{index-mzenhe26.js → index-48n4yhm4.js} +3 -3
  33. package/{index-5q6tyqv5.js → index-64pjry21.js} +1 -1
  34. package/{index-0jxja6c2.js → index-aqwdjn4x.js} +2 -2
  35. package/{index-q3kddxxd.js → index-avjqbtkj.js} +3 -3
  36. package/{index-s2g91tgy.js → index-bs9yr4we.js} +1 -1
  37. package/{index-bm5ed553.js → index-cgexcnwd.js} +8 -8
  38. package/{index-vt87d6kx.js → index-dkfadmrx.js} +7 -7
  39. package/{index-gzjpj0sw.js → index-eabfsarf.js} +1 -1
  40. package/{index-hgeq1wpr.js → index-er62k6w3.js} +35 -9
  41. package/{index-d5kf5rct.js → index-f2gfq0yh.js} +2 -2
  42. package/{index-k8zer3t3.js → index-fbw3kmt5.js} +2 -2
  43. package/{index-tq0mjh8w.js → index-fnqj2d2w.js} +4 -4
  44. package/{index-arwtza6k.js → index-hqh4mpgt.js} +4 -4
  45. package/{index-khefnpqw.js → index-j4dzazmw.js} +4 -4
  46. package/{index-hzsmeevh.js → index-n8dsax1f.js} +10 -5
  47. package/{index-k1s1ps6r.js → index-nr8m4j21.js} +3 -3
  48. package/{index-60gryg73.js → index-qh73jnyb.js} +1 -1
  49. package/{index-37gfh3nw.js → index-vtj332gj.js} +36 -13
  50. package/{index-pkg6bhgc.js → index-wt7m1hfc.js} +3 -3
  51. package/{index-9f2bkqpf.js → index-yfy3t4kw.js} +2 -2
  52. package/{index-6tkzmfze.js → index-yyxy7aff.js} +1 -1
  53. package/{index-1g5atn4s.js → index-z5cxrbvv.js} +13 -10
  54. package/index.js +40 -22
  55. package/{library.command-d29mkrn1.js → library.command-z1v7zepj.js} +3 -3
  56. package/{localRegistry.command-e1d1sm2q.js → localRegistry.command-48n23bjy.js} +12 -12
  57. package/{module.command-7kgfp688.js → module.command-rv307dk7.js} +5 -5
  58. package/{package.command-9r2215cr.js → package.command-7xkzc8m1.js} +3 -3
  59. package/package.json +2 -2
  60. package/{page.command-2jhwcye7.js → page.command-34hpdt7v.js} +3 -3
  61. package/{pipeline.command-gcbxwwng.js → pipeline.command-ckvhrpyg.js} +2 -2
  62. package/{primitive.command-dzjh98t1.js → primitive.command-em0twr5a.js} +6 -6
  63. package/{projectTypecheck-wkbzjpry.js → projectTypecheck-fy6hn05y.js} +1 -1
  64. package/{quality.command-3yg6gt8j.js → quality.command-c6p2819k.js} +2 -2
  65. package/{repair.command-d1gm1hqc.js → repair.command-j6czdgrv.js} +5 -5
  66. package/{scalar.command-ntd52q4x.js → scalar.command-17e20sj2.js} +4 -4
  67. package/skills/akan-store/SKILL.md +2 -1
  68. package/{subspace.command-w7540907.js → subspace.command-n3j7vv0w.js} +8 -17
  69. package/{tunnel.command-61gd7btn.js → tunnel.command-cm578f4s.js} +7 -7
  70. package/{workflow.command-fykqj11r.js → workflow.command-h9vkr6jb.js} +10 -10
  71. package/{workspace.command-fabmw1hc.js → workspace.command-tp8ysvjs.js} +29 -27
  72. package/TunnelShare-necyr77h.js +0 -14
  73. package/cloud.script-0trnvgbv.js +0 -24
  74. package/context.runner-cjkadr7r.js +0 -25
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  runner,
4
4
  script
5
- } from "./index-k8zer3t3.js";
5
+ } from "./index-fbw3kmt5.js";
6
6
  import {
7
7
  AGENT_BLOCK_START,
8
8
  AGENT_BLOCK_END,
@@ -13,14 +13,14 @@ import {
13
13
  CLAUDE_COMMENT_RULE,
14
14
  AppExecutor,
15
15
  LibExecutor
16
- } from "./index-hzsmeevh.js";
16
+ } from "./index-n8dsax1f.js";
17
17
  import {
18
18
  collectRecipeSources2,
19
19
  scanRecipes2
20
20
  } from "./index-hj6w4ka1.js";
21
21
  import {
22
22
  AkanContextAnalyzer
23
- } from "./index-0jxja6c2.js";
23
+ } from "./index-aqwdjn4x.js";
24
24
  import {
25
25
  Prompter2
26
26
  } from "./index-zzvvc845.js";
@@ -9,10 +9,10 @@ import {
9
9
  NativePublicEnv,
10
10
  UpdatePackFolder,
11
11
  NativeApp
12
- } from "./index-k1s1ps6r.js";
12
+ } from "./index-nr8m4j21.js";
13
13
  import {
14
14
  ExitCodeError
15
- } from "./index-k8zer3t3.js";
15
+ } from "./index-fbw3kmt5.js";
16
16
  import {
17
17
  ConfigLock
18
18
  } from "./index-bqbf654f.js";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  AppExecutor,
4
4
  LibExecutor
5
- } from "./index-hzsmeevh.js";
5
+ } from "./index-n8dsax1f.js";
6
6
 
7
7
  // pkgs/@akanjs/devkit/workflow/artifacts.ts
8
8
  import { capitalize } from "akanjs/common";
@@ -41,7 +41,7 @@ import {
41
41
  script,
42
42
  markCliErrorPrinted,
43
43
  assertPromptable
44
- } from "./index-k8zer3t3.js";
44
+ } from "./index-fbw3kmt5.js";
45
45
  import {
46
46
  AppInfo,
47
47
  CommandExecutionError,
@@ -49,11 +49,11 @@ import {
49
49
  AppExecutor,
50
50
  LibExecutor,
51
51
  PkgExecutor
52
- } from "./index-hzsmeevh.js";
52
+ } from "./index-n8dsax1f.js";
53
53
  import {
54
54
  DesktopServerStage,
55
55
  UpdateUploader
56
- } from "./index-6a64svwc.js";
56
+ } from "./index-3hvmytbs.js";
57
57
  import {
58
58
  resolveMobileTargets,
59
59
  resolveAppId
@@ -62,17 +62,17 @@ import {
62
62
  NativePublicEnv,
63
63
  UpdatePackFolder,
64
64
  NativeApp
65
- } from "./index-k1s1ps6r.js";
65
+ } from "./index-nr8m4j21.js";
66
66
  import {
67
67
  LibraryScript
68
- } from "./index-hgeq1wpr.js";
68
+ } from "./index-er62k6w3.js";
69
69
  import {
70
70
  stripAnsi
71
71
  } from "./index-7md2g9vw.js";
72
72
  import {
73
73
  SlicePlanner,
74
74
  formatSlicePlan
75
- } from "./index-gzjpj0sw.js";
75
+ } from "./index-eabfsarf.js";
76
76
  import {
77
77
  openBrowser
78
78
  } from "./index-9dp031by.js";
@@ -1899,7 +1899,7 @@ ${uniqueCandidates.map((candidate) => ` - ${candidate}`).join(`
1899
1899
 
1900
1900
  // pkgs/@akanjs/cli/application/application.runner.ts
1901
1901
  import { Logger as Logger3, toError } from "akanjs/common";
1902
- var loadBuildRunner = async () => (await import("./applicationBuildRunner-qaxt8try.js")).ApplicationBuildRunner;
1902
+ var loadBuildRunner = async () => (await import("./applicationBuildRunner-grgrey5c.js")).ApplicationBuildRunner;
1903
1903
  var loadPrompts = async () => await import("@inquirer/prompts");
1904
1904
 
1905
1905
  class ApplicationRunner extends runner("application") {
@@ -2100,7 +2100,7 @@ if (loaded) process.exitCode = await loaded.migrations.command(loaded.server, ar
2100
2100
  await new (await loadBuildRunner())(app).typecheck(options);
2101
2101
  }
2102
2102
  async typecheckLibrary(lib, options = {}) {
2103
- const { ProjectTypecheck } = await import("./projectTypecheck-wkbzjpry.js");
2103
+ const { ProjectTypecheck } = await import("./projectTypecheck-fy6hn05y.js");
2104
2104
  const root = lib.workspace.workspaceRoot;
2105
2105
  await new ProjectTypecheck(lib.cwdPath, root, { ...process.env, AKAN_WORKSPACE_ROOT: root }).run([
2106
2106
  "../../server.ts",
@@ -3439,7 +3439,10 @@ class ApplicationScript extends script("application", [ApplicationRunner, Librar
3439
3439
  }
3440
3440
  async test(exec, { write = true } = {}) {
3441
3441
  if (exec instanceof LibExecutor) {
3442
- await this.libraryScript.syncLibrary(exec);
3442
+ if (write)
3443
+ await this.libraryScript.syncLibrary(exec);
3444
+ else
3445
+ await exec.scan({ write: false });
3443
3446
  exec.spinning(`Preparing ${exec.name}...`).succeed(`${exec.name} prepared`);
3444
3447
  await this.applicationRunner.test(exec);
3445
3448
  return;
@@ -3688,7 +3691,7 @@ class ApplicationScript extends script("application", [ApplicationRunner, Librar
3688
3691
  await Promise.all(shares.map(async (share) => await share.close()));
3689
3692
  }, "Abandoning the tunnel release; the shares expire on their own.");
3690
3693
  await Promise.all(apps.map(async (app) => {
3691
- const { TunnelShare } = await import("./TunnelShare-necyr77h.js");
3694
+ const { TunnelShare } = await import("./TunnelShare-59zd4j8n.js");
3692
3695
  const share = await TunnelShare.open(app, { workspace: app.workspace });
3693
3696
  shares.push(share);
3694
3697
  urls.set(app.name, share.url);
package/index.js CHANGED
@@ -4,35 +4,44 @@ import {
4
4
  getTargetMetas,
5
5
  getTargetCommandNames,
6
6
  runCommands
7
- } from "./index-k8zer3t3.js";
7
+ } from "./index-fbw3kmt5.js";
8
8
  import"./index-52w0fvh8.js";
9
- import"./index-hzsmeevh.js";
9
+ import"./index-n8dsax1f.js";
10
+
11
+ // pkgs/@akanjs/cli/bunVersionGuard.ts
12
+ class BunVersionGuard {
13
+ static refusal(bunVersion, range) {
14
+ if (Bun.semver.satisfies(bunVersion.replace(/-.*$/, ""), range))
15
+ return null;
16
+ return `akan requires Bun ${range}, but this is Bun ${bunVersion}. Run \`bun upgrade\`, then try again.`;
17
+ }
18
+ }
10
19
 
11
20
  // pkgs/@akanjs/cli/commandManifest.ts
12
21
  import path from "path";
13
22
 
14
23
  // pkgs/@akanjs/cli/commandModules.ts
15
24
  var commandModules = {
16
- workspace: async () => (await import("./workspace.command-fabmw1hc.js")).WorkspaceCommand,
17
- agent: async () => (await import("./agent.command-8sma9jnd.js")).AgentCommand,
18
- code: async () => (await import("./code.command-ds7sr16b.js")).CodeCommand,
19
- application: async () => (await import("./application.command-v7xbe18e.js")).ApplicationCommand,
20
- library: async () => (await import("./library.command-d29mkrn1.js")).LibraryCommand,
21
- localRegistry: async () => (await import("./localRegistry.command-e1d1sm2q.js")).LocalRegistryCommand,
22
- package: async () => (await import("./package.command-9r2215cr.js")).PackageCommand,
23
- module: async () => (await import("./module.command-7kgfp688.js")).ModuleCommand,
24
- page: async () => (await import("./page.command-2jhwcye7.js")).PageCommand,
25
- context: async () => (await import("./context.command-ytr0n79h.js")).ContextCommand,
26
- cloud: async () => (await import("./cloud.command-gxspyqpr.js")).CloudCommand,
27
- subspace: async () => (await import("./subspace.command-w7540907.js")).SubspaceCommand,
28
- guideline: async () => (await import("./guideline.command-6tnmtn4w.js")).GuidelineCommand,
29
- scalar: async () => (await import("./scalar.command-ntd52q4x.js")).ScalarCommand,
30
- primitive: async () => (await import("./primitive.command-dzjh98t1.js")).PrimitiveCommand,
31
- quality: async () => (await import("./quality.command-3yg6gt8j.js")).QualityCommand,
32
- repair: async () => (await import("./repair.command-d1gm1hqc.js")).RepairCommand,
33
- workflow: async () => (await import("./workflow.command-fykqj11r.js")).WorkflowCommand,
34
- pipeline: async () => (await import("./pipeline.command-gcbxwwng.js")).PipelineCommand,
35
- tunnel: async () => (await import("./tunnel.command-61gd7btn.js")).TunnelCommand
25
+ workspace: async () => (await import("./workspace.command-tp8ysvjs.js")).WorkspaceCommand,
26
+ agent: async () => (await import("./agent.command-qawf7z4s.js")).AgentCommand,
27
+ code: async () => (await import("./code.command-t6j55sbk.js")).CodeCommand,
28
+ application: async () => (await import("./application.command-jqrgqk6j.js")).ApplicationCommand,
29
+ library: async () => (await import("./library.command-z1v7zepj.js")).LibraryCommand,
30
+ localRegistry: async () => (await import("./localRegistry.command-48n23bjy.js")).LocalRegistryCommand,
31
+ package: async () => (await import("./package.command-7xkzc8m1.js")).PackageCommand,
32
+ module: async () => (await import("./module.command-rv307dk7.js")).ModuleCommand,
33
+ page: async () => (await import("./page.command-34hpdt7v.js")).PageCommand,
34
+ context: async () => (await import("./context.command-eqbzbgth.js")).ContextCommand,
35
+ cloud: async () => (await import("./cloud.command-p9067ssj.js")).CloudCommand,
36
+ subspace: async () => (await import("./subspace.command-n3j7vv0w.js")).SubspaceCommand,
37
+ guideline: async () => (await import("./guideline.command-w905q73w.js")).GuidelineCommand,
38
+ scalar: async () => (await import("./scalar.command-17e20sj2.js")).ScalarCommand,
39
+ primitive: async () => (await import("./primitive.command-em0twr5a.js")).PrimitiveCommand,
40
+ quality: async () => (await import("./quality.command-c6p2819k.js")).QualityCommand,
41
+ repair: async () => (await import("./repair.command-j6czdgrv.js")).RepairCommand,
42
+ workflow: async () => (await import("./workflow.command-h9vkr6jb.js")).WorkflowCommand,
43
+ pipeline: async () => (await import("./pipeline.command-ckvhrpyg.js")).PipelineCommand,
44
+ tunnel: async () => (await import("./tunnel.command-cm578f4s.js")).TunnelCommand
36
45
  };
37
46
  var commandModuleIds = Object.keys(commandModules);
38
47
 
@@ -66,8 +75,17 @@ class CommandManifest {
66
75
  return id ? [id] : null;
67
76
  }
68
77
  }
78
+ // pkgs/@akanjs/cli/package.json
79
+ var engines = {
80
+ bun: ">=1.4.4"
81
+ };
69
82
 
70
83
  // pkgs/@akanjs/cli/index.ts
84
+ var bunRefusal = BunVersionGuard.refusal(Bun.version, engines.bun);
85
+ if (bunRefusal) {
86
+ console.error(bunRefusal);
87
+ process.exit(1);
88
+ }
71
89
  var ids = CommandManifest.resolve(await CommandManifest.read(), process.argv) ?? commandModuleIds;
72
90
  var commands = await Promise.all(ids.map(async (id) => await commandModules[id]()));
73
91
  await runCommands(...commands);
@@ -3,12 +3,12 @@ import {
3
3
  Lib,
4
4
  Workspace,
5
5
  command
6
- } from "./index-k8zer3t3.js";
6
+ } from "./index-fbw3kmt5.js";
7
7
  import"./index-52w0fvh8.js";
8
- import"./index-hzsmeevh.js";
8
+ import"./index-n8dsax1f.js";
9
9
  import {
10
10
  LibraryScript
11
- } from "./index-hgeq1wpr.js";
11
+ } from "./index-er62k6w3.js";
12
12
 
13
13
  // pkgs/@akanjs/cli/library/library.command.ts
14
14
  class LibraryCommand extends command("library", [LibraryScript], ({ public: target }) => ({
@@ -4,32 +4,32 @@ import {
4
4
  runner,
5
5
  script,
6
6
  command
7
- } from "./index-k8zer3t3.js";
7
+ } from "./index-fbw3kmt5.js";
8
8
  import"./index-52w0fvh8.js";
9
9
  import {
10
10
  PkgExecutor
11
- } from "./index-hzsmeevh.js";
11
+ } from "./index-n8dsax1f.js";
12
12
  import"./index-5nd1wtkv.js";
13
- import"./index-6a64svwc.js";
13
+ import"./index-3hvmytbs.js";
14
14
  import"./index-m9jj544v.js";
15
- import"./index-k1s1ps6r.js";
16
- import"./index-c090a8wn.js";
17
- import"./index-5q6tyqv5.js";
18
- import"./index-hgeq1wpr.js";
15
+ import"./index-nr8m4j21.js";
16
+ import"./index-25ks6x4k.js";
17
+ import"./index-64pjry21.js";
18
+ import"./index-er62k6w3.js";
19
19
  import {
20
20
  ApplicationScript
21
- } from "./index-1g5atn4s.js";
21
+ } from "./index-z5cxrbvv.js";
22
22
  import"./index-7md2g9vw.js";
23
- import"./index-9f2bkqpf.js";
23
+ import"./index-yfy3t4kw.js";
24
24
  import {
25
25
  getNpmRegistryUrl,
26
26
  CloudRunner
27
- } from "./index-mzenhe26.js";
27
+ } from "./index-48n4yhm4.js";
28
28
  import"./index-tvehn2sp.js";
29
29
  import {
30
30
  PackageScript
31
- } from "./index-zjfz6rvx.js";
32
- import"./index-gzjpj0sw.js";
31
+ } from "./index-1enc9rga.js";
32
+ import"./index-eabfsarf.js";
33
33
 
34
34
  // pkgs/@akanjs/cli/localRegistry/localRegistry.runner.ts
35
35
  import { mkdir, rm } from "fs/promises";
@@ -3,16 +3,16 @@ import {
3
3
  Sys,
4
4
  Module,
5
5
  command
6
- } from "./index-k8zer3t3.js";
6
+ } from "./index-fbw3kmt5.js";
7
7
  import"./index-52w0fvh8.js";
8
- import"./index-hzsmeevh.js";
8
+ import"./index-n8dsax1f.js";
9
9
  import {
10
10
  renderPrimitiveReport
11
- } from "./index-6tkzmfze.js";
12
- import"./index-60gryg73.js";
11
+ } from "./index-yyxy7aff.js";
12
+ import"./index-qh73jnyb.js";
13
13
  import {
14
14
  ModuleScript
15
- } from "./index-khefnpqw.js";
15
+ } from "./index-j4dzazmw.js";
16
16
 
17
17
  // pkgs/@akanjs/cli/module/module.command.ts
18
18
  import { Logger, lowerlize } from "akanjs/common";
@@ -3,13 +3,13 @@ import {
3
3
  Pkg,
4
4
  Workspace,
5
5
  command
6
- } from "./index-k8zer3t3.js";
6
+ } from "./index-fbw3kmt5.js";
7
7
  import"./index-52w0fvh8.js";
8
- import"./index-hzsmeevh.js";
8
+ import"./index-n8dsax1f.js";
9
9
  import"./index-tvehn2sp.js";
10
10
  import {
11
11
  PackageScript
12
- } from "./index-zjfz6rvx.js";
12
+ } from "./index-1enc9rga.js";
13
13
 
14
14
  // pkgs/@akanjs/cli/package/package.command.ts
15
15
  class PackageCommand extends command("package", [PackageScript], ({ public: target }) => ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akanjs/cli",
3
- "version": "3.1.0-rc.26",
3
+ "version": "3.1.0-rc.27",
4
4
  "sourceType": "module",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -39,7 +39,7 @@
39
39
  "@earendil-works/pi-tui": "1.3.0",
40
40
  "@inquirer/prompts": "^8.7.3",
41
41
  "@tailwindcss/node": "^4.3.3",
42
- "akanjs": "3.1.0-rc.26",
42
+ "akanjs": "3.1.0-rc.27",
43
43
  "chalk": "^6.0.1",
44
44
  "commander": "^15.0.0",
45
45
  "dayjs": "^1.11.23",
@@ -3,12 +3,12 @@ import {
3
3
  App,
4
4
  Module,
5
5
  command
6
- } from "./index-k8zer3t3.js";
6
+ } from "./index-fbw3kmt5.js";
7
7
  import"./index-52w0fvh8.js";
8
- import"./index-hzsmeevh.js";
8
+ import"./index-n8dsax1f.js";
9
9
  import {
10
10
  PageScript
11
- } from "./index-60gryg73.js";
11
+ } from "./index-qh73jnyb.js";
12
12
 
13
13
  // pkgs/@akanjs/cli/page/page.command.ts
14
14
  class PageCommand extends command("page", [PageScript], ({ public: target }) => ({
@@ -4,7 +4,7 @@ import {
4
4
  runner,
5
5
  script,
6
6
  command
7
- } from "./index-k8zer3t3.js";
7
+ } from "./index-fbw3kmt5.js";
8
8
  import {
9
9
  FileSys2
10
10
  } from "./index-52w0fvh8.js";
@@ -12,7 +12,7 @@ import {
12
12
  AkanAppConfig,
13
13
  AkanWorkspaceConfig,
14
14
  AppExecutor
15
- } from "./index-hzsmeevh.js";
15
+ } from "./index-n8dsax1f.js";
16
16
  import {
17
17
  resolveMobileTargets
18
18
  } from "./index-m9jj544v.js";
@@ -2,17 +2,17 @@
2
2
  import {
3
3
  Workspace,
4
4
  command
5
- } from "./index-k8zer3t3.js";
5
+ } from "./index-fbw3kmt5.js";
6
6
  import"./index-52w0fvh8.js";
7
- import"./index-hzsmeevh.js";
7
+ import"./index-n8dsax1f.js";
8
8
  import {
9
9
  renderPrimitiveReport
10
- } from "./index-6tkzmfze.js";
11
- import"./index-60gryg73.js";
12
- import"./index-khefnpqw.js";
10
+ } from "./index-yyxy7aff.js";
11
+ import"./index-qh73jnyb.js";
12
+ import"./index-j4dzazmw.js";
13
13
  import {
14
14
  PrimitiveScript
15
- } from "./index-arwtza6k.js";
15
+ } from "./index-hqh4mpgt.js";
16
16
 
17
17
  // pkgs/@akanjs/cli/primitive/primitive.command.ts
18
18
  import { Logger } from "akanjs/common";
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  ProjectTypecheck2
4
- } from "./index-hzsmeevh.js";
4
+ } from "./index-n8dsax1f.js";
5
5
  export {
6
6
  ProjectTypecheck2 as ProjectTypecheck
7
7
  };
@@ -3,7 +3,7 @@ import {
3
3
  Workspace,
4
4
  script,
5
5
  command
6
- } from "./index-k8zer3t3.js";
6
+ } from "./index-fbw3kmt5.js";
7
7
  import"./index-52w0fvh8.js";
8
8
  import {
9
9
  rootAllowedFiles,
@@ -12,7 +12,7 @@ import {
12
12
  libFacetRootHintOf,
13
13
  facetIndexShadowOf,
14
14
  rootEntryHintOf
15
- } from "./index-hzsmeevh.js";
15
+ } from "./index-n8dsax1f.js";
16
16
 
17
17
  // pkgs/@akanjs/devkit/qualityScanner.ts
18
18
  import { createHash } from "crypto";
@@ -3,15 +3,15 @@ import {
3
3
  Workspace,
4
4
  script,
5
5
  command
6
- } from "./index-k8zer3t3.js";
6
+ } from "./index-fbw3kmt5.js";
7
7
  import"./index-52w0fvh8.js";
8
- import"./index-hzsmeevh.js";
8
+ import"./index-n8dsax1f.js";
9
9
  import"./index-hj6w4ka1.js";
10
- import"./index-6tkzmfze.js";
11
- import"./index-0jxja6c2.js";
10
+ import"./index-yyxy7aff.js";
11
+ import"./index-aqwdjn4x.js";
12
12
  import {
13
13
  RepairRunner
14
- } from "./index-cj3md29d.js";
14
+ } from "./index-0dd6z4b9.js";
15
15
 
16
16
  // pkgs/@akanjs/cli/repair/repair.script.ts
17
17
  import { Logger } from "akanjs/common";
@@ -2,15 +2,15 @@
2
2
  import {
3
3
  Sys,
4
4
  command
5
- } from "./index-k8zer3t3.js";
5
+ } from "./index-fbw3kmt5.js";
6
6
  import"./index-52w0fvh8.js";
7
- import"./index-hzsmeevh.js";
7
+ import"./index-n8dsax1f.js";
8
8
  import {
9
9
  renderPrimitiveReport
10
- } from "./index-6tkzmfze.js";
10
+ } from "./index-yyxy7aff.js";
11
11
  import {
12
12
  ScalarScript
13
- } from "./index-d5kf5rct.js";
13
+ } from "./index-f2gfq0yh.js";
14
14
 
15
15
  // pkgs/@akanjs/cli/scalar/scalar.command.ts
16
16
  import { Logger, lowerlize } from "akanjs/common";
@@ -19,7 +19,8 @@ For a model `comment` (`<Slice>` is a signal slice suffix, e.g. `InPublic`):
19
19
  `add<Field>OnComment(value)` / `sub<Field>OnComment(idx)` for arrays, `upload<Field>OnComment(fileList)`
20
20
  for file fields, `checkCommentSubmitable()`, `submitComment()`, `createCommentInForm()`,
21
21
  `updateCommentInForm()`
22
- - single: `viewComment(model)`, `mergeComment(model, data)`, `setComment(...models)`, `resetComment()`
22
+ - single: `viewComment(model)`, `mergeComment(model, data)`, `setComment(...models)`, `resetComment()`,
23
+ `invalidateComment()` (marks every slice stale after a custom mutation, so the next mount refetches)
23
24
  - per slice: `initComment<Slice>(...args)`, `refreshComment<Slice>()`, `selectComment<Slice>(model)`,
24
25
  `setPageOfComment<Slice>(page)`, `loadMoreOfComment<Slice>()`, `setLimitOfComment<Slice>(limit)`,
25
26
  `setQueryArgsOfComment<Slice>(...)`, `setSortOfComment<Slice>(sort)`
@@ -5,7 +5,7 @@ import {
5
5
  runner,
6
6
  script,
7
7
  command
8
- } from "./index-k8zer3t3.js";
8
+ } from "./index-fbw3kmt5.js";
9
9
  import {
10
10
  FileSys2
11
11
  } from "./index-52w0fvh8.js";
@@ -14,20 +14,20 @@ import {
14
14
  Executor,
15
15
  WorkspaceExecutor,
16
16
  AppExecutor
17
- } from "./index-hzsmeevh.js";
17
+ } from "./index-n8dsax1f.js";
18
18
  import {
19
19
  GlobalConfig
20
- } from "./index-9f2bkqpf.js";
20
+ } from "./index-yfy3t4kw.js";
21
21
  import"./index-m9jj544v.js";
22
- import"./index-k1s1ps6r.js";
23
- import"./index-c090a8wn.js";
24
- import"./index-5q6tyqv5.js";
22
+ import"./index-nr8m4j21.js";
23
+ import"./index-25ks6x4k.js";
24
+ import"./index-64pjry21.js";
25
25
  import {
26
26
  SubspaceConfig
27
27
  } from "./index-4pf8g7ff.js";
28
28
  import {
29
29
  SlicePlanner
30
- } from "./index-gzjpj0sw.js";
30
+ } from "./index-eabfsarf.js";
31
31
 
32
32
  // pkgs/@akanjs/devkit/subspace.ts
33
33
  import { mkdir as mkdir2 } from "fs/promises";
@@ -67,9 +67,6 @@ class SubspaceClone {
67
67
  this.#clonePath = path.join(workspace.workspaceRoot, ".akan/subspace", declaration.name);
68
68
  this.#clone = new Executor(`subspace-${declaration.name}`, this.#clonePath);
69
69
  }
70
- async#cloneGit(args) {
71
- return await this.#workspace.spawn("git", ["-C", this.#clonePath, ...args]);
72
- }
73
70
  async#ensure(branch) {
74
71
  if (!await FileSys2.dirExists(path.join(this.#clonePath, ".git"))) {
75
72
  await rm(this.#clonePath, { recursive: true, force: true });
@@ -171,8 +168,6 @@ class SubspaceClone {
171
168
  const from = path.join(this.#clonePath, entry);
172
169
  if (!await FileSys2.entryExists(from))
173
170
  continue;
174
- if (await this.#isPushedCopy(entry))
175
- continue;
176
171
  await mkdir(holdRoot, { recursive: true });
177
172
  await rename(from, path.join(holdRoot, entry));
178
173
  held.push(entry);
@@ -188,10 +183,6 @@ class SubspaceClone {
188
183
  await rename(path.join(holdRoot, entry), target);
189
184
  }
190
185
  }
191
- async#isPushedCopy(entry) {
192
- const subject = await this.#cloneGit(["log", "-1", "--format=%s", "--", entry]).catch(() => "");
193
- return subject.trim().startsWith(SubspaceClone.syncSubjectPrefix);
194
- }
195
186
  static async#copyMissing(from, to) {
196
187
  await mkdir(to, { recursive: true });
197
188
  for (const entry of await readdir(from, { withFileTypes: true })) {
@@ -825,7 +816,7 @@ class SubspaceRunner extends runner("subspace") {
825
816
  if (!asked)
826
817
  return { name: subspace.name, workspaceId, host, apps, libs: [], outcome: "cancelled", files: [] };
827
818
  const { libs } = await subspace.slice();
828
- const { CloudScript } = await import("./cloud.script-0trnvgbv.js");
819
+ const { CloudScript } = await import("./cloud.script-f0r4ce7j.js");
829
820
  const { files } = await CommandContainer.get(CloudScript).uploadEnv(workspace, {
830
821
  host,
831
822
  workspaceId,
@@ -4,22 +4,22 @@ import {
4
4
  runner,
5
5
  script,
6
6
  command
7
- } from "./index-k8zer3t3.js";
7
+ } from "./index-fbw3kmt5.js";
8
8
  import"./index-52w0fvh8.js";
9
9
  import {
10
10
  AppExecutor
11
- } from "./index-hzsmeevh.js";
11
+ } from "./index-n8dsax1f.js";
12
12
  import {
13
13
  GlobalConfig,
14
14
  CloudApi
15
- } from "./index-9f2bkqpf.js";
15
+ } from "./index-yfy3t4kw.js";
16
16
  import"./index-m9jj544v.js";
17
- import"./index-k1s1ps6r.js";
18
- import"./index-c090a8wn.js";
19
- import"./index-5q6tyqv5.js";
17
+ import"./index-nr8m4j21.js";
18
+ import"./index-25ks6x4k.js";
19
+ import"./index-64pjry21.js";
20
20
  import {
21
21
  TunnelShare2
22
- } from "./index-32hkenqb.js";
22
+ } from "./index-3aynkpf8.js";
23
23
  import {
24
24
  writeClipboard
25
25
  } from "./index-p6pbz9n5.js";
@@ -3,20 +3,20 @@ import {
3
3
  Workspace,
4
4
  script,
5
5
  command
6
- } from "./index-k8zer3t3.js";
6
+ } from "./index-fbw3kmt5.js";
7
7
  import"./index-52w0fvh8.js";
8
- import"./index-hzsmeevh.js";
8
+ import"./index-n8dsax1f.js";
9
9
  import"./index-hj6w4ka1.js";
10
- import"./index-6tkzmfze.js";
11
- import"./index-0jxja6c2.js";
12
- import"./index-60gryg73.js";
13
- import"./index-khefnpqw.js";
14
- import"./index-arwtza6k.js";
15
- import"./index-cj3md29d.js";
16
- import"./index-d5kf5rct.js";
10
+ import"./index-yyxy7aff.js";
11
+ import"./index-aqwdjn4x.js";
12
+ import"./index-qh73jnyb.js";
13
+ import"./index-j4dzazmw.js";
14
+ import"./index-hqh4mpgt.js";
15
+ import"./index-0dd6z4b9.js";
16
+ import"./index-f2gfq0yh.js";
17
17
  import {
18
18
  WorkflowRunner
19
- } from "./index-vt87d6kx.js";
19
+ } from "./index-dkfadmrx.js";
20
20
 
21
21
  // pkgs/@akanjs/cli/workflow/workflow.script.ts
22
22
  import { Logger } from "akanjs/common";