@akanjs/cli 3.2.0-rc.19 → 3.2.0-rc.20

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 (86) hide show
  1. package/.build-stamp +2 -2
  2. package/{CodeAgent-q0xkt4at.js → CodeAgent-faqv7t4g.js} +2 -2
  3. package/{CodeTui-n56kpaca.js → CodeTui-vqck9tet.js} +1 -1
  4. package/TunnelShare-bwe3ddv7.js +18 -0
  5. package/{agent.command-k07raqft.js → agent.command-p75jvgrd.js} +21 -21
  6. package/akanCode.js +2 -2
  7. package/{appExecutor-xav1zemr.js → appExecutor-020cyesq.js} +3 -3
  8. package/{application.command-dv8y8r12.js → application.command-ta2knqxm.js} +15 -15
  9. package/{applicationBuildRunner-vhx7zq97.js → applicationBuildRunner-gkh82j2b.js} +9 -9
  10. package/buildBatch.proc.js +10 -10
  11. package/{cloud.command-0vjy3x96.js → cloud.command-v3jhfvm5.js} +22 -22
  12. package/cloud.script-be9s1432.js +35 -0
  13. package/{code.command-xc5exq4b.js → code.command-mh7dh1st.js} +10 -10
  14. package/{context.command-etsat8yk.js → context.command-1ycfjkdd.js} +23 -23
  15. package/context.runner-333jkz86.js +34 -0
  16. package/{guideline.command-zqkntk7b.js → guideline.command-w1grfwh7.js} +7 -7
  17. package/guidelines/conventions/core.md +4 -4
  18. package/guidelines/errorCodes/errorCodes.instruction.md +9 -0
  19. package/incrementalBuilder.proc.js +20 -12
  20. package/{index-gh741qft.js → index-013n6z7m.js} +8 -8
  21. package/{index-6rrh0ffr.js → index-0hj82f9w.js} +11 -11
  22. package/{index-81qt1jyj.js → index-1c0mjc2b.js} +1 -1
  23. package/{index-pkgha3rt.js → index-1jk52ffq.js} +6 -6
  24. package/{index-syn4vm3y.js → index-1pjwsh2g.js} +1 -1
  25. package/{index-g541mhzw.js → index-22g3jq43.js} +3 -3
  26. package/{index-fgp04fh7.js → index-2d9nm03s.js} +17 -8
  27. package/{index-c9hd79py.js → index-2k6mve6a.js} +4 -4
  28. package/{index-6pzncry1.js → index-52w4jb87.js} +4 -4
  29. package/{index-c1vym3gx.js → index-5h888r6j.js} +2 -2
  30. package/{index-a05ewnnp.js → index-6pxmcaq8.js} +1 -1
  31. package/{index-nxcmgqk3.js → index-6zb17wcm.js} +3 -3
  32. package/{index-dz7z9n9t.js → index-7a07tdap.js} +6 -6
  33. package/{index-7jr9mfp2.js → index-7ehdht84.js} +20 -10
  34. package/{index-s5gvwvkb.js → index-7v7tvgt7.js} +20 -3
  35. package/{index-m6r3pvf5.js → index-88s746ns.js} +2 -2
  36. package/{index-sh3yzse2.js → index-9rv2zt48.js} +5 -5
  37. package/{index-dasa0kbj.js → index-9zswcze5.js} +2 -2
  38. package/{index-ean2tff1.js → index-a41vv4cy.js} +4 -4
  39. package/{index-zk1gjk46.js → index-bket1068.js} +4 -4
  40. package/{index-q2t2w996.js → index-czf94w8c.js} +1 -1
  41. package/{index-e4vna9dn.js → index-d3178asw.js} +4 -4
  42. package/{index-cc9pevta.js → index-dss3ds74.js} +1 -1
  43. package/{index-my17308p.js → index-eyfty8kk.js} +7 -7
  44. package/{index-12js5pj4.js → index-g7jgd4xs.js} +1 -1
  45. package/{index-ddc2zjj5.js → index-gwsesvqc.js} +1 -1
  46. package/{index-c9mnfy9r.js → index-h1w4wqgd.js} +23 -15
  47. package/{index-y8mqkhcf.js → index-hp2c7xc2.js} +1 -1
  48. package/{index-rj2n5kfk.js → index-jx2jcw1r.js} +1 -1
  49. package/{index-89x8tp7z.js → index-knpm8sdm.js} +1 -1
  50. package/{index-wxr3941g.js → index-mpp4aas6.js} +27 -12
  51. package/{index-t00xrkey.js → index-na8r4a27.js} +1 -1
  52. package/{index-6bryy19d.js → index-nmxszh6x.js} +4 -4
  53. package/{index-12vv4g80.js → index-pt0agdck.js} +1 -1
  54. package/{index-bxevbjw7.js → index-q444k260.js} +4 -4
  55. package/{index-v72mh89f.js → index-qssq2d41.js} +5 -5
  56. package/{index-4zqebbqb.js → index-vjbne22r.js} +1 -1
  57. package/{index-wq8pnev4.js → index-w23tf30e.js} +3 -3
  58. package/{index-qtqhsb33.js → index-wa01phm9.js} +10 -10
  59. package/{index-t0g6jgrc.js → index-xczjdng6.js} +2 -0
  60. package/{index-k51718xz.js → index-xwe7y0gf.js} +3 -3
  61. package/{index-cet2s7xk.js → index-ze48c0vd.js} +2 -2
  62. package/{index-nd8bq17n.js → index-zttyg7tg.js} +9 -6
  63. package/index.js +27 -27
  64. package/{libExecutor-mr3vxtnr.js → libExecutor-tq994592.js} +2 -2
  65. package/{library.command-ps9q5t37.js → library.command-x219mhcx.js} +7 -7
  66. package/{localRegistry.command-rszxmvd0.js → localRegistry.command-4p17wa9t.js} +21 -21
  67. package/{module.command-fcybnn1a.js → module.command-tjthnvvr.js} +10 -10
  68. package/{package.command-zen3rhye.js → package.command-c6df2hxx.js} +10 -10
  69. package/package.json +2 -2
  70. package/{page.command-gwrxymms.js → page.command-gf06paq2.js} +7 -7
  71. package/{pipeline.command-m1brkqqw.js → pipeline.command-y07dgj9b.js} +6 -6
  72. package/{pkgExecutor-x51agavp.js → pkgExecutor-stde3yc3.js} +2 -2
  73. package/{primitive.command-5vkxvvmk.js → primitive.command-0enfygxn.js} +11 -11
  74. package/{projectTypecheck-9dzfah37.js → projectTypecheck-mk8wefvd.js} +1 -1
  75. package/{prompter-w58rvzb9.js → prompter-qyggfhqd.js} +1 -1
  76. package/{quality.command-gqry7eas.js → quality.command-dkbdztad.js} +9 -9
  77. package/{repair.command-qs4ejcrg.js → repair.command-g5vd95ax.js} +10 -10
  78. package/{scalar.command-ny0vchqq.js → scalar.command-7909pg0d.js} +9 -9
  79. package/{subspace.command-5pxqjgmw.js → subspace.command-at4jt1fb.js} +17 -17
  80. package/{tunnel.command-ndajt0xk.js → tunnel.command-91h92dwr.js} +11 -11
  81. package/{verify.command-m59ashc7.js → verify.command-pzky05ts.js} +17 -17
  82. package/{workflow.command-jchqey88.js → workflow.command-mqqe4n12.js} +15 -15
  83. package/{workspace.command-g0gzxkpd.js → workspace.command-y4rznvhx.js} +37 -37
  84. package/TunnelShare-844s9te4.js +0 -18
  85. package/cloud.script-jp48r0kw.js +0 -35
  86. package/context.runner-e52ak0cx.js +0 -34
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  resolveSsrPageEntriesForApp
4
- } from "./index-cet2s7xk.js";
4
+ } from "./index-ze48c0vd.js";
5
5
  import {
6
6
  createBarrelImportsPlugin,
7
7
  workspaceBarrels,
@@ -10,7 +10,7 @@ import {
10
10
  CsrEntryFiles,
11
11
  PagesEntrySourceGenerator,
12
12
  PagesBundleBuilder
13
- } from "./index-rj2n5kfk.js";
13
+ } from "./index-jx2jcw1r.js";
14
14
 
15
15
  // pkgs/@akanjs/devkit/frontendBuild/csrArtifactBuilder.ts
16
16
  import { mkdir as mkdir2, rm as rm2, unlink as unlink2 } from "fs/promises";
@@ -1,21 +1,21 @@
1
1
  // @bun
2
2
  import {
3
3
  AppExecutor2
4
- } from "./index-cet2s7xk.js";
4
+ } from "./index-ze48c0vd.js";
5
5
  import {
6
6
  LibExecutor2
7
- } from "./index-t00xrkey.js";
7
+ } from "./index-na8r4a27.js";
8
8
  import {
9
9
  createAst,
10
10
  AkanIndex
11
- } from "./index-7jr9mfp2.js";
11
+ } from "./index-7ehdht84.js";
12
12
  import {
13
13
  sysNamePattern,
14
14
  identifierPattern
15
15
  } from "./index-va90m8nd.js";
16
16
  import {
17
17
  camelToKebabCase
18
- } from "./index-sh3yzse2.js";
18
+ } from "./index-9rv2zt48.js";
19
19
 
20
20
  // pkgs/@akanjs/devkit/workflow/artifacts.ts
21
21
  import { capitalize as capitalize2 } from "akanjs/common";
@@ -3,7 +3,7 @@ import {
3
3
  ROOT_LAYOUT_SYSTEM,
4
4
  isImplicitRootLayoutKey,
5
5
  resolveSsrPageEntriesForApp
6
- } from "./index-cet2s7xk.js";
6
+ } from "./index-ze48c0vd.js";
7
7
  import {
8
8
  computeRouteSeedIndex,
9
9
  saveRouteSeedIndex,
@@ -11,12 +11,12 @@ import {
11
11
  ClientEntriesBundler,
12
12
  VENDOR_SPECIFIERS,
13
13
  RouteClientBuilder
14
- } from "./index-k51718xz.js";
14
+ } from "./index-xwe7y0gf.js";
15
15
  import {
16
16
  SOURCE_EXTS,
17
17
  FontOptimizer,
18
18
  FontPruner
19
- } from "./index-s5gvwvkb.js";
19
+ } from "./index-7v7tvgt7.js";
20
20
  import {
21
21
  BarrelAnalyzer,
22
22
  createTsconfigPackageResolver,
@@ -24,7 +24,7 @@ import {
24
24
  CsrEntryFiles,
25
25
  toClientReferencePath,
26
26
  PagesBundleBuilder
27
- } from "./index-rj2n5kfk.js";
27
+ } from "./index-jx2jcw1r.js";
28
28
  import {
29
29
  CssBlockParser
30
30
  } from "./index-62md4dwy.js";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  FrameworkMapBuilder,
4
4
  FrameworkMapDoc
5
- } from "./index-7jr9mfp2.js";
5
+ } from "./index-7ehdht84.js";
6
6
 
7
7
  // pkgs/@akanjs/devkit/docs/frameworkGraph.ts
8
8
  import { readdir, readFile, realpath, stat } from "fs/promises";
@@ -2,19 +2,19 @@
2
2
  import {
3
3
  runner,
4
4
  script
5
- } from "./index-sh3yzse2.js";
5
+ } from "./index-9rv2zt48.js";
6
6
  import {
7
7
  FileSys2
8
8
  } from "./index-by2tvsq6.js";
9
9
  import {
10
10
  PkgExecutor2
11
- } from "./index-cc9pevta.js";
11
+ } from "./index-dss3ds74.js";
12
12
  import {
13
13
  FrameworkGraph
14
- } from "./index-q2t2w996.js";
14
+ } from "./index-czf94w8c.js";
15
15
  import {
16
16
  MaintainabilityBaseline
17
- } from "./index-syn4vm3y.js";
17
+ } from "./index-1pjwsh2g.js";
18
18
  import {
19
19
  TypeScriptDependencyScanner2
20
20
  } from "./index-2ny1e95c.js";
@@ -4,7 +4,7 @@ import {
4
4
  Executor,
5
5
  PkgInfo,
6
6
  WorkspaceExecutor
7
- } from "./index-v72mh89f.js";
7
+ } from "./index-qssq2d41.js";
8
8
 
9
9
  // pkgs/@akanjs/devkit/executors/pkgExecutor.ts
10
10
  import path from "path";
@@ -4,27 +4,27 @@ import {
4
4
  CloudApi,
5
5
  CloudUpdates,
6
6
  PipelineSecrets
7
- } from "./index-c1vym3gx.js";
7
+ } from "./index-5h888r6j.js";
8
8
  import {
9
9
  PkgExecutor2
10
- } from "./index-cc9pevta.js";
10
+ } from "./index-dss3ds74.js";
11
11
  import {
12
12
  UpdatePackFolder,
13
13
  NativePublicEnv,
14
14
  NativeApp
15
- } from "./index-wq8pnev4.js";
15
+ } from "./index-w23tf30e.js";
16
16
  import {
17
17
  script
18
- } from "./index-sh3yzse2.js";
18
+ } from "./index-9rv2zt48.js";
19
19
  import {
20
20
  ApplicationScript
21
- } from "./index-6rrh0ffr.js";
21
+ } from "./index-0hj82f9w.js";
22
22
  import {
23
23
  PackageScript
24
- } from "./index-e4vna9dn.js";
24
+ } from "./index-d3178asw.js";
25
25
  import {
26
26
  CloudRunner
27
- } from "./index-pkgha3rt.js";
27
+ } from "./index-1jk52ffq.js";
28
28
 
29
29
  // pkgs/@akanjs/cli/cloud/cloud.script.ts
30
30
  import { Logger } from "akanjs/common";
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  AppInfo
4
- } from "./index-v72mh89f.js";
4
+ } from "./index-qssq2d41.js";
5
5
 
6
6
  // pkgs/@akanjs/devkit/workspace/slicePlanner.ts
7
7
  class SlicePlanner {
@@ -157,7 +157,7 @@ class SubagentPool2 {
157
157
  }
158
158
  }
159
159
  async#run(id, kind, prompt, signal) {
160
- const { CodeAgent } = await import("./CodeAgent-q0xkt4at.js");
160
+ const { CodeAgent } = await import("./CodeAgent-faqv7t4g.js");
161
161
  const budget = this.#options.parent.tools.subagent;
162
162
  const child = SubagentPool2.childOf(this.#options.parent, kind);
163
163
  const model = this.#options.model?.();
@@ -4,7 +4,7 @@ import {
4
4
  SysExecutor,
5
5
  AppInfo,
6
6
  WorkspaceExecutor
7
- } from "./index-v72mh89f.js";
7
+ } from "./index-qssq2d41.js";
8
8
  import {
9
9
  FileSys2
10
10
  } from "./index-by2tvsq6.js";
@@ -13,13 +13,13 @@ import {
13
13
  } from "./index-j4yvgfhr.js";
14
14
  import {
15
15
  AppExecutor2
16
- } from "./index-cet2s7xk.js";
16
+ } from "./index-ze48c0vd.js";
17
17
  import {
18
18
  LibExecutor2
19
- } from "./index-t00xrkey.js";
19
+ } from "./index-na8r4a27.js";
20
20
  import {
21
21
  PkgExecutor2
22
- } from "./index-cc9pevta.js";
22
+ } from "./index-dss3ds74.js";
23
23
  import {
24
24
  UNAVAILABLE_REDIS_HOST,
25
25
  redisTunnelPolicy,
@@ -55,27 +55,27 @@ import {
55
55
  filesChangedSince,
56
56
  HmrWatcher,
57
57
  WatchRootResolver
58
- } from "./index-s5gvwvkb.js";
58
+ } from "./index-7v7tvgt7.js";
59
59
  import {
60
60
  runner,
61
61
  assertPromptable
62
- } from "./index-sh3yzse2.js";
62
+ } from "./index-9rv2zt48.js";
63
63
  import {
64
64
  UpdatePackFolder,
65
65
  UpdateUploader,
66
66
  NativePublicEnv,
67
67
  NativeApp
68
- } from "./index-wq8pnev4.js";
68
+ } from "./index-w23tf30e.js";
69
69
  import {
70
70
  DesktopServerStage
71
- } from "./index-12vv4g80.js";
71
+ } from "./index-pt0agdck.js";
72
72
  import {
73
73
  resolveMobileTargets,
74
74
  resolveAppId
75
75
  } from "./index-m9jj544v.js";
76
76
  import {
77
77
  SlicePlanner
78
- } from "./index-12js5pj4.js";
78
+ } from "./index-g7jgd4xs.js";
79
79
  import {
80
80
  openBrowser
81
81
  } from "./index-9dp031by.js";
@@ -600,7 +600,8 @@ class BuilderRequestRelay {
600
600
  const status = builder?.status ?? "stopped";
601
601
  if (shouldHoldForReturningBuilder({ status, heldCount: this.#held.length })) {
602
602
  this.#held.push(message);
603
- this.#logger.verbose(`[builder] holding ${message.type} until the builder is ready (${this.#held.length} waiting)`);
603
+ const request = message.type === "build-route" ? `build-route ${message.routeId}` : message.type;
604
+ this.#logger.verbose(`[builder] holding ${request} until the builder is ready (${this.#held.length} waiting)`);
604
605
  return;
605
606
  }
606
607
  if (this.#failRequest(message, `builder is ${status}; reload after the builder is ready`))
@@ -1779,12 +1780,19 @@ class DevIdleSuspend {
1779
1780
  return;
1780
1781
  this.#waking = true;
1781
1782
  this.#cancel();
1782
- this.#stopWatcher();
1783
- const batch = this.#suspendedChanges;
1784
- this.#suspendedChanges = null;
1785
1783
  const startedAtMono = performance.now();
1786
1784
  this.#logger.info(`[idle-suspend] waking (${reason})`);
1785
+ const watcher = this.#watcher;
1786
+ this.#watcher = null;
1787
+ let batch = null;
1787
1788
  try {
1789
+ const unreported = await watcher?.close();
1790
+ if (unreported)
1791
+ this.#recordSuspendedChange(unreported);
1792
+ batch = this.#suspendedChanges;
1793
+ this.#suspendedChanges = null;
1794
+ if (this.#stopped)
1795
+ return;
1788
1796
  await this.#links.wake(batch);
1789
1797
  this.#logger.info(`[idle-suspend] awake in ${Math.round(performance.now() - startedAtMono)}ms`);
1790
1798
  } catch (err) {
@@ -2365,7 +2373,7 @@ var reportsNoTestFile = (exec) => {
2365
2373
  };
2366
2374
 
2367
2375
  // pkgs/@akanjs/cli/application/application.runner.ts
2368
- var loadBuildRunner = async () => (await import("./applicationBuildRunner-vhx7zq97.js")).ApplicationBuildRunner;
2376
+ var loadBuildRunner = async () => (await import("./applicationBuildRunner-gkh82j2b.js")).ApplicationBuildRunner;
2369
2377
  var loadPrompts = async () => await import("@inquirer/prompts");
2370
2378
 
2371
2379
  class ApplicationRunner extends runner("application") {
@@ -2566,7 +2574,7 @@ if (loaded) process.exitCode = await loaded.migrations.command(loaded.server, ar
2566
2574
  await new (await loadBuildRunner())(app).typecheck(options);
2567
2575
  }
2568
2576
  async typecheckLibrary(lib, options = {}) {
2569
- const { ProjectTypecheck } = await import("./projectTypecheck-9dzfah37.js");
2577
+ const { ProjectTypecheck } = await import("./projectTypecheck-mk8wefvd.js");
2570
2578
  const root = lib.workspace.workspaceRoot;
2571
2579
  await new ProjectTypecheck(lib.cwdPath, root, { ...process.env, AKAN_WORKSPACE_ROOT: root }).run([
2572
2580
  "../../server.ts",
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  GlobalConfig,
4
4
  CloudApi
5
- } from "./index-c1vym3gx.js";
5
+ } from "./index-5h888r6j.js";
6
6
 
7
7
  // pkgs/@akanjs/cli/tunnel/TunnelShare.ts
8
8
  import { TunnelAgent } from "akanjs/server/tunnel";
@@ -3,7 +3,7 @@ import {
3
3
  AsyncDefaultExportDetector,
4
4
  StoreBootstrap,
5
5
  resolveSsrPageEntriesForApp
6
- } from "./index-cet2s7xk.js";
6
+ } from "./index-ze48c0vd.js";
7
7
  import {
8
8
  FileSys2
9
9
  } from "./index-by2tvsq6.js";
@@ -25,7 +25,7 @@ class ConventionSet {
25
25
  if (!match)
26
26
  throw new Error(`Convention rule ${name} has no frontmatter`);
27
27
  const front = match[1] ?? "";
28
- const described = /^description:\s*(.+)$/m.exec(front);
28
+ const described = /^description:(.*)$/m.exec(front);
29
29
  const description = described?.[1]?.trim() ?? "";
30
30
  const paths = [...front.matchAll(/^\s+-\s+"([^"]+)"$/gm)].map((entry) => entry[1] ?? "");
31
31
  if (!description || paths.length === 0)
@@ -3,7 +3,7 @@ import {
3
3
  runner,
4
4
  script,
5
5
  markCliErrorPrinted
6
- } from "./index-sh3yzse2.js";
6
+ } from "./index-9rv2zt48.js";
7
7
  import {
8
8
  CliError
9
9
  } from "./index-j4yvgfhr.js";
@@ -15,16 +15,16 @@ import {
15
15
  upsertAgentBlock,
16
16
  renderRecipeEntries,
17
17
  CLAUDE_COMMENT_RULE
18
- } from "./index-v72mh89f.js";
18
+ } from "./index-qssq2d41.js";
19
19
  import {
20
20
  AppExecutor2
21
- } from "./index-cet2s7xk.js";
21
+ } from "./index-ze48c0vd.js";
22
22
  import {
23
23
  LibExecutor2
24
- } from "./index-t00xrkey.js";
24
+ } from "./index-na8r4a27.js";
25
25
  import {
26
26
  AkanContextAnalyzer
27
- } from "./index-6bryy19d.js";
27
+ } from "./index-nmxszh6x.js";
28
28
  import {
29
29
  collectRecipeSources2,
30
30
  scanRecipes2
@@ -35,19 +35,19 @@ import {
35
35
  import {
36
36
  ConventionSet,
37
37
  Prompter2
38
- } from "./index-89x8tp7z.js";
38
+ } from "./index-knpm8sdm.js";
39
39
  import {
40
40
  ApplicationRunner,
41
41
  VerifyScope
42
- } from "./index-c9mnfy9r.js";
42
+ } from "./index-h1w4wqgd.js";
43
43
  import {
44
44
  WorkspaceRunner
45
- } from "./index-fgp04fh7.js";
45
+ } from "./index-2d9nm03s.js";
46
46
  import {
47
47
  VerifyComments,
48
48
  VerifyPipeline,
49
49
  VerifyReport
50
- } from "./index-nd8bq17n.js";
50
+ } from "./index-zttyg7tg.js";
51
51
 
52
52
  // pkgs/@akanjs/cli/agent/agent.script.ts
53
53
  import { Logger as Logger3 } from "akanjs/common";
@@ -438,6 +438,21 @@ ${Object.keys(AgentAssets.skillReferences).map((name) => `\`${name}\``).join(",
438
438
  guideline.
439
439
 
440
440
  `;
441
+ var maxListedChars = 160;
442
+ var renderNames = (names) => {
443
+ if (!names.length)
444
+ return "none";
445
+ const shown = [];
446
+ let length = 0;
447
+ for (const name of names) {
448
+ if (shown.length && length + name.length > maxListedChars)
449
+ break;
450
+ shown.push(name);
451
+ length += name.length + 2;
452
+ }
453
+ const rest = names.length - shown.length;
454
+ return rest ? `${shown.join(", ")}, and ${rest} more` : shown.join(", ");
455
+ };
441
456
  var renderManagedBlock = async (workspace) => {
442
457
  const context = await AkanContextAnalyzer.analyze(workspace);
443
458
  const conventions = await Prompter2.getConventionSet();
@@ -447,9 +462,9 @@ var renderManagedBlock = async (workspace) => {
447
462
  const block = `## Workspace
448
463
 
449
464
  - Repo: ${context.repoName}
450
- - Apps: ${appNames.join(", ") || "none"}
451
- - Libraries: ${context.libs.map((lib) => lib.name).join(", ") || "none"}
452
- - Packages: ${context.pkgs.map((pkg) => pkg.name).join(", ") || "none"}
465
+ - Apps: ${renderNames(appNames)}
466
+ - Libraries: ${renderNames(context.libs.map((lib) => lib.name))}
467
+ - Packages: ${renderNames(context.pkgs.map((pkg) => pkg.name))}
453
468
 
454
469
  ${conventions.core}
455
470
 
@@ -5,7 +5,7 @@ import {
5
5
  SysExecutor,
6
6
  WorkspaceExecutor,
7
7
  AkanLibConfig
8
- } from "./index-v72mh89f.js";
8
+ } from "./index-qssq2d41.js";
9
9
 
10
10
  // pkgs/@akanjs/devkit/executors/libExecutor.ts
11
11
  class LibExecutor2 extends SysExecutor {
@@ -8,21 +8,21 @@ import {
8
8
  isScannedRootEntry,
9
9
  extractBlockVersion,
10
10
  readDevkitVersion
11
- } from "./index-v72mh89f.js";
11
+ } from "./index-qssq2d41.js";
12
12
  import {
13
13
  FileSys2
14
14
  } from "./index-by2tvsq6.js";
15
15
  import {
16
16
  AppExecutor2
17
- } from "./index-cet2s7xk.js";
17
+ } from "./index-ze48c0vd.js";
18
18
  import {
19
19
  LibExecutor2
20
- } from "./index-t00xrkey.js";
20
+ } from "./index-na8r4a27.js";
21
21
  import {
22
22
  workflowPathsForPlan,
23
23
  workflowRunArtifactPath,
24
24
  workflowSyncDir
25
- } from "./index-ean2tff1.js";
25
+ } from "./index-a41vv4cy.js";
26
26
  import {
27
27
  collectRecipeSources2,
28
28
  scanRecipes2,
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  DesktopBin
4
- } from "./index-wq8pnev4.js";
4
+ } from "./index-w23tf30e.js";
5
5
  // pkgs/@akanjs/devkit/mobile/desktopServerStage.ts
6
6
  import { cp, mkdir, readdir, rm, writeFile } from "fs/promises";
7
7
  import path from "path";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  runner,
4
4
  script
5
- } from "./index-sh3yzse2.js";
5
+ } from "./index-9rv2zt48.js";
6
6
  import {
7
7
  bilingualLabelForField,
8
8
  bilingualDescriptionForField,
@@ -10,10 +10,10 @@ import {
10
10
  sourceFile,
11
11
  generatedFilesForSync,
12
12
  createPassedPrimitiveReport
13
- } from "./index-ean2tff1.js";
13
+ } from "./index-a41vv4cy.js";
14
14
  import {
15
15
  PageScript
16
- } from "./index-a05ewnnp.js";
16
+ } from "./index-6pxmcaq8.js";
17
17
  import {
18
18
  pluralizeName
19
19
  } from "./index-nz8prx9g.js";
@@ -22,7 +22,7 @@ import {
22
22
  } from "./index-va90m8nd.js";
23
23
  import {
24
24
  ModuleExecutor
25
- } from "./index-4zqebbqb.js";
25
+ } from "./index-vjbne22r.js";
26
26
 
27
27
  // pkgs/@akanjs/cli/module/module.script.ts
28
28
  import { capitalize as capitalize2 } from "akanjs/common";
@@ -216,7 +216,7 @@ var rootEntryHintOf = (type, name) => type === "app" && retiredAppRootEntries.ha
216
216
  var isScannedRootEntry = (type, name) => !name.startsWith(".") || rootAllowedDirs[type].has(name);
217
217
 
218
218
  // pkgs/@akanjs/devkit/workspace/scanInfo.ts
219
- var loadLibExecutor = () => import("./libExecutor-mr3vxtnr.js");
219
+ var loadLibExecutor = () => import("./libExecutor-tq994592.js");
220
220
  var serviceFileTypes = [
221
221
  "dictionary",
222
222
  "service",
@@ -623,9 +623,9 @@ class WorkspaceInfo {
623
623
  return existingWorkspaceInfo;
624
624
  const [appNames, libNames, pkgNames] = await Promise.all([exec.getApps(), exec.getLibs(), exec.getPkgs()]);
625
625
  const [appModule, libModule, pkgModule] = await Promise.all([
626
- import("./appExecutor-xav1zemr.js"),
626
+ import("./appExecutor-020cyesq.js"),
627
627
  loadLibExecutor(),
628
- import("./pkgExecutor-x51agavp.js")
628
+ import("./pkgExecutor-stde3yc3.js")
629
629
  ]);
630
630
  const [appInfos, libInfos, pkgInfos] = await Promise.all([
631
631
  Promise.all(appNames.map(async (appName) => await appModule.AppExecutor.from(exec, appName).scan())),
@@ -1733,7 +1733,7 @@ ${AGENT_BLOCK_END}`;
1733
1733
  if (startIndex >= 0 && endIndex > startIndex) {
1734
1734
  return `${existing.slice(0, startIndex)}${managed}${existing.slice(endIndex + AGENT_BLOCK_END.length)}`;
1735
1735
  }
1736
- return `${existing.replace(/\s*$/, "")}
1736
+ return `${existing.trimEnd()}
1737
1737
 
1738
1738
  ${managed}
1739
1739
  `;
@@ -3383,7 +3383,7 @@ CMD [${command.map((c) => `"${c}"`).join(",")}]`;
3383
3383
  return new AkanAppConfig(app, libs, rootPackageJson, config, baseDevEnv, plugins ?? [], libContributions);
3384
3384
  }
3385
3385
  static async#collectLibContributions(app, libs, bustImportCache) {
3386
- const { LibExecutor } = await import("./libExecutor-mr3vxtnr.js");
3386
+ const { LibExecutor } = await import("./libExecutor-tq994592.js");
3387
3387
  const libConfigs = await Promise.all(libs.map(async (libName) => AkanLibConfig.from(LibExecutor.from(app, libName), { bustImportCache }).catch((error) => {
3388
3388
  if (error instanceof LibConfigRefusal)
3389
3389
  throw error;
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  execEmoji,
4
4
  Executor
5
- } from "./index-v72mh89f.js";
5
+ } from "./index-qssq2d41.js";
6
6
  // pkgs/@akanjs/devkit/executors/moduleExecutor.ts
7
7
  class ModuleExecutor extends Executor {
8
8
  sys;
@@ -5,17 +5,17 @@ import {
5
5
  WorkspaceExecutor,
6
6
  ServerEnvProfile,
7
7
  AkanAppConfig
8
- } from "./index-v72mh89f.js";
8
+ } from "./index-qssq2d41.js";
9
9
  import {
10
10
  resolveAppId,
11
11
  targetHtmlFilename
12
12
  } from "./index-m9jj544v.js";
13
13
  import {
14
14
  CsrArtifactBuilder
15
- } from "./index-dasa0kbj.js";
15
+ } from "./index-9zswcze5.js";
16
16
  import {
17
17
  ExitCodeError
18
- } from "./index-sh3yzse2.js";
18
+ } from "./index-9rv2zt48.js";
19
19
 
20
20
  // pkgs/@akanjs/devkit/mobile/desktopBin.ts
21
21
  import { chmod, mkdir, rename, rm, writeFile } from "fs/promises";
@@ -1,17 +1,17 @@
1
1
  // @bun
2
2
  import {
3
3
  runner
4
- } from "./index-sh3yzse2.js";
4
+ } from "./index-9rv2zt48.js";
5
5
  import {
6
6
  AppExecutor2
7
- } from "./index-cet2s7xk.js";
7
+ } from "./index-ze48c0vd.js";
8
8
  import {
9
9
  jsonText,
10
10
  workflowStatus,
11
11
  createWorkflowBaselineSummary,
12
12
  buildAkanModuleContextIndex,
13
13
  toolingRolloutGate
14
- } from "./index-ean2tff1.js";
14
+ } from "./index-a41vv4cy.js";
15
15
  import {
16
16
  buildResourceList,
17
17
  codexMcpConfigPath,
@@ -21,29 +21,29 @@ import {
21
21
  upsertCodexMcpServerBlock,
22
22
  renderDoctorText,
23
23
  AkanContextAnalyzer
24
- } from "./index-6bryy19d.js";
24
+ } from "./index-nmxszh6x.js";
25
25
  import {
26
26
  Prompter2
27
- } from "./index-89x8tp7z.js";
27
+ } from "./index-knpm8sdm.js";
28
28
  import {
29
29
  NativeApp
30
- } from "./index-wq8pnev4.js";
30
+ } from "./index-w23tf30e.js";
31
31
  import {
32
32
  isPlaceholderAppId
33
- } from "./index-12vv4g80.js";
33
+ } from "./index-pt0agdck.js";
34
34
  import {
35
35
  getMobileTargets,
36
36
  appIdsOf
37
37
  } from "./index-m9jj544v.js";
38
38
  import {
39
39
  WorkspaceGraph
40
- } from "./index-81qt1jyj.js";
40
+ } from "./index-1c0mjc2b.js";
41
41
  import {
42
42
  RepairRunner
43
- } from "./index-g541mhzw.js";
43
+ } from "./index-22g3jq43.js";
44
44
  import {
45
45
  WorkflowRunner
46
- } from "./index-gh741qft.js";
46
+ } from "./index-013n6z7m.js";
47
47
 
48
48
  // pkgs/@akanjs/devkit/context/akanMcpContract.ts
49
49
  import { lstatSync, realpathSync } from "fs";
@@ -24,6 +24,8 @@ class SubspaceConfig {
24
24
  for (const subspace of this.subspaces) {
25
25
  if (!subspace.name || !subspace.repo)
26
26
  throw new Error(`${SubspaceConfig.source}: every subspace needs a name and a repo`);
27
+ if (subspace.repo.startsWith("-"))
28
+ throw new Error(`${SubspaceConfig.source}: subspace "${subspace.name}" repo "${subspace.repo}" reads as a git option`);
27
29
  if (!SubspaceConfig.namePattern.test(subspace.name))
28
30
  throw new Error(`${SubspaceConfig.source}: subspace name "${subspace.name}" takes letters, digits, ".", "_" and "-", starting with a letter or digit`);
29
31
  if (seenNames.has(subspace.name))
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  SOURCE_EXTS,
4
4
  WatchRootResolver
5
- } from "./index-s5gvwvkb.js";
5
+ } from "./index-7v7tvgt7.js";
6
6
  import {
7
7
  loaderFor,
8
8
  BarrelAnalyzer,
@@ -18,7 +18,7 @@ import {
18
18
  CsrDevPaths,
19
19
  PagesEntrySourceGenerator,
20
20
  PagesBundleBuilder
21
- } from "./index-rj2n5kfk.js";
21
+ } from "./index-jx2jcw1r.js";
22
22
  import {
23
23
  FileSys2
24
24
  } from "./index-by2tvsq6.js";
@@ -26,7 +26,7 @@ import {
26
26
  AsyncDefaultExportDetector,
27
27
  StoreBootstrap,
28
28
  resolveSsrPageEntriesForApp
29
- } from "./index-cet2s7xk.js";
29
+ } from "./index-ze48c0vd.js";
30
30
 
31
31
  // pkgs/@akanjs/devkit/frontendBuild/clientEntryDiscovery.ts
32
32
  import fs from "fs";
@@ -7,13 +7,13 @@ import {
7
7
  AkanAppConfig,
8
8
  increaseBuildNum,
9
9
  decreaseBuildNum
10
- } from "./index-v72mh89f.js";
10
+ } from "./index-qssq2d41.js";
11
11
  import {
12
12
  FileSys2
13
13
  } from "./index-by2tvsq6.js";
14
14
  import {
15
15
  LibExecutor2
16
- } from "./index-t00xrkey.js";
16
+ } from "./index-na8r4a27.js";
17
17
 
18
18
  // pkgs/@akanjs/devkit/executors/appExecutor.ts
19
19
  import { cp as cpEntry, lstat, mkdir, readdir as readDirEntries, realpath, symlink } from "fs/promises";