@akanjs/cli 3.0.0-alpha.15 → 3.0.0-alpha.17

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 (57) hide show
  1. package/.build-stamp +1 -1
  2. package/README.ko.md +1 -1
  3. package/README.md +1 -1
  4. package/{abstractCompactor-e5yq60qz.js → abstractCompactor-khr60389.js} +1 -1
  5. package/{agent.command-h6tc0pzh.js → agent.command-e835fjem.js} +6 -6
  6. package/{application.command-kphnfwyg.js → application.command-bexm4597.js} +5 -5
  7. package/{applicationBuildRunner-9ps10a0h.js → applicationBuildRunner-sgr3aq5b.js} +5 -6
  8. package/{applicationReleasePackager-gg8ccbeh.js → applicationReleasePackager-93nzdfsy.js} +1 -1
  9. package/buildBatch.proc.js +4 -4
  10. package/{capacitorApp-9ejk3k7q.js → capacitorApp-qv7g3dp2.js} +27 -27
  11. package/{cloud.command-zn6mfscb.js → cloud.command-v44fdp23.js} +8 -8
  12. package/{context.command-pkbccyys.js → context.command-q8r0tge3.js} +13 -13
  13. package/{dependencyScanner-f6grrep3.js → dependencyScanner-rbs2407b.js} +1 -1
  14. package/{getDirname-m9s0cmhq.js → getDirname-ka11hm7e.js} +1 -1
  15. package/{guideline.command-0jj2k77g.js → guideline.command-pye36g73.js} +3 -3
  16. package/guidelines/conventions/conventions.instruction.md +122 -43
  17. package/guidelines/workspaceOnboarding/workspaceOnboarding.instruction.md +1 -3
  18. package/incrementalBuilder.proc.js +3 -3
  19. package/{index-xwfkgss0.js → index-33zce8gt.js} +8 -4
  20. package/{index-w7farjxd.js → index-3dp7x6rc.js} +3 -3
  21. package/{index-p42te6qb.js → index-73rnbwgg.js} +14 -6
  22. package/{index-1twehz1x.js → index-8vkkm7v0.js} +8 -18
  23. package/{index-g3brq942.js → index-9djnsdgf.js} +5 -5
  24. package/{index-b9m84bjp.js → index-d4d3q2r8.js} +10 -10
  25. package/{index-96vpa123.js → index-fb2wa7j3.js} +3 -3
  26. package/{index-djh5gpb7.js → index-g9e2fhw2.js} +2 -2
  27. package/{index-4v0wvt37.js → index-hxp90q94.js} +4 -4
  28. package/{index-7ecpft60.js → index-k6fvbcj1.js} +3 -3
  29. package/{index-aak9cctp.js → index-myy6xy5w.js} +4 -4
  30. package/{index-gz91pc3p.js → index-mz5jtaq7.js} +1 -1
  31. package/{index-bkwnr08k.js → index-n706txcv.js} +2 -2
  32. package/{index-gyvrhtpm.js → index-qc0tnhs2.js} +1 -1
  33. package/{index-j9cxndc0.js → index-qyffprfs.js} +7 -5
  34. package/{index-8d9r0df5.js → index-sn71brf9.js} +2 -2
  35. package/{index-9s991k9v.js → index-tsmjxph2.js} +1 -1
  36. package/{index-2m11t9ek.js → index-v5vmgh0z.js} +3 -208
  37. package/{index-rv16ck4r.js → index-x2w0y8sz.js} +8 -8
  38. package/{index-4agbdds8.js → index-xyrb7pk5.js} +3 -3
  39. package/index.js +19 -19
  40. package/{library.command-wbptp6q3.js → library.command-v5cyaw9t.js} +4 -4
  41. package/{localRegistry.command-6ea3pgq0.js → localRegistry.command-tqnh5g77.js} +7 -7
  42. package/{module.command-ghkf919z.js → module.command-wxsvyadc.js} +6 -6
  43. package/{package.command-ph2m34tv.js → package.command-qkcs60ts.js} +4 -4
  44. package/package.json +3 -4
  45. package/{page.command-atnzfn88.js → page.command-qj5bfnh9.js} +4 -4
  46. package/{primitive.command-7qbdhfc2.js → primitive.command-c5jtk3e9.js} +7 -7
  47. package/{quality.command-1ff2xcra.js → quality.command-f8drhx6c.js} +91 -362
  48. package/{recipeScanner-tghkzrrt.js → recipeScanner-zrzev25x.js} +3 -3
  49. package/{repair.command-weakn0yr.js → repair.command-mzwtejpk.js} +6 -6
  50. package/{routeSourceValidator-e4jmbfcx.js → routeSourceValidator-7fycdqyv.js} +1 -1
  51. package/{scalar.command-xdjhvsgb.js → scalar.command-0yvwfv8m.js} +5 -5
  52. package/templates/appSample/srvkit/AuthGuard.ts +2 -2
  53. package/{typeChecker-kravn7ns.js → typeChecker-g6bh0xfv.js} +1 -1
  54. package/typecheck.proc.js +1 -1
  55. package/{workflow.command-msm2tjee.js → workflow.command-ak6at7nz.js} +10 -10
  56. package/{workspace.command-gr8z82z9.js → workspace.command-9ncr56g4.js} +19 -20
  57. /package/{index-r24hmh0q.js → index-yb2wsc7f.js} +0 -0
@@ -459,9 +459,7 @@ is convention that keeps hand-written code reading like generated code.
459
459
  generated. Never `import type { RootStore } from "../st"` — it crashes `akan build` with a Bun SSR segfault.
460
460
  - **`dictionary.ts`** — fixed chain with empty stages still written:
461
461
  `.of() → .model() → .insight() → .query() → .sort() → .enum() → .slice() → .endpoint() → .error() → .translate()`.
462
- Every label is `t(["English", "한국어"])`, and nearly every one also carries `.desc([en, ko])`. One optional stage,
463
- `.store()`, sits between `.endpoint()` and `.error()` for custom store actions whose name differs from the
464
- endpoint they call — omit it rather than writing it empty.
462
+ Every label is `t(["English", "한국어"])`, and nearly every one also carries `.desc([en, ko])`.
465
463
  - **`srvkit/` adapters** — an injected singleton is an `adapt("name" as const, ({ use, env, plug, memory }) => ({…}))`
466
464
  class, injected with `plug(TheClass)`. It self-registers, so do not add it to `lib/option.ts`. `this.logger` is
467
465
  provided; lifecycle work goes in `override async onInit()`. A per-use value object stays a plain class you `new` at
@@ -8,7 +8,7 @@ import {
8
8
  DevGeneratedIndexSync,
9
9
  GraphClientEntryDiscovery,
10
10
  RouteClientBuilder
11
- } from "./index-j9cxndc0.js";
11
+ } from "./index-qyffprfs.js";
12
12
  import {
13
13
  HmrWatcher,
14
14
  WatchRootResolver
@@ -16,11 +16,11 @@ import {
16
16
  import {
17
17
  AppExecutor,
18
18
  WorkspaceExecutor
19
- } from "./index-1twehz1x.js";
19
+ } from "./index-8vkkm7v0.js";
20
20
  import"./index-mxvakhsm.js";
21
21
  import"./index-1577bej2.js";
22
22
  import"./index-67546d0j.js";
23
- import"./index-r24hmh0q.js";
23
+ import"./index-yb2wsc7f.js";
24
24
 
25
25
  // pkgs/@akanjs/devkit/incrementalBuilder/incrementalBuilder.proc.ts
26
26
  import path2 from "path";
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  runner,
4
4
  script
5
- } from "./index-bkwnr08k.js";
5
+ } from "./index-n706txcv.js";
6
6
  import {
7
7
  PkgExecutor
8
- } from "./index-1twehz1x.js";
8
+ } from "./index-8vkkm7v0.js";
9
9
  import {
10
10
  TypeScriptDependencyScanner
11
11
  } from "./index-46tjzh6s.js";
@@ -163,13 +163,17 @@ class PackageRunner extends runner("package") {
163
163
  "tailwind-scrollbar"
164
164
  ].filter((dep) => dep !== "akanjs" && dep !== "@akanjs/devkit");
165
165
  }
166
- const bundledRuntimeDeps = new Set(pkg.name === "@akanjs/cli" ? ["@akanjs/devkit"] : []);
166
+ const packageBundledRuntimeDependencies = {
167
+ "@akanjs/cli": ["@akanjs/devkit"],
168
+ akanjs: ["use-agentic"]
169
+ };
170
+ const bundledRuntimeDeps = new Set(packageBundledRuntimeDependencies[pkg.name] ?? []);
167
171
  const forcedRuntimeDeps = packageRuntimeDependencies[pkg.name] ?? [];
168
172
  const forcedRuntimeDevDeps = packageRuntimeDevDependencies[pkg.name] ?? [];
169
173
  const [rootPackageJson, pkgJson] = await Promise.all([pkg.workspace.getPackageJson(), pkg.getPackageJson()]);
170
174
  const optionalPeerDeps = new Set(Object.entries(pkgJson.peerDependenciesMeta ?? {}).filter(([, meta]) => meta.optional).map(([dep]) => dep));
171
175
  const packageRuntimeDeps = [...new Set([...npmDeps, ...forcedRuntimeDeps])].filter((dep) => !optionalPeerDeps.has(dep) && !bundledRuntimeDeps.has(dep));
172
- const packageRuntimeDevDeps = [...new Set([...npmDevDeps, ...forcedRuntimeDevDeps])].filter((dep) => !optionalPeerDeps.has(dep));
176
+ const packageRuntimeDevDeps = [...new Set([...npmDevDeps, ...forcedRuntimeDevDeps])].filter((dep) => !optionalPeerDeps.has(dep) && !bundledRuntimeDeps.has(dep));
173
177
  const rootDeps = { ...rootPackageJson.dependencies, ...rootPackageJson.devDependencies };
174
178
  const missingForcedDeps = forcedRuntimeDeps.filter((dep) => !rootDeps[dep]);
175
179
  const missingForcedDevDeps = forcedRuntimeDevDeps.filter((dep) => !rootDeps[dep]);
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  AkanContextAnalyzer
4
- } from "./index-djh5gpb7.js";
4
+ } from "./index-g9e2fhw2.js";
5
5
  import {
6
6
  WorkflowExecutor,
7
7
  compactWorkflowInputs,
@@ -23,10 +23,10 @@ import {
23
23
  workflowCommandsForPlan,
24
24
  workflowPlanApproval,
25
25
  writeWorkflowRunArtifact
26
- } from "./index-9s991k9v.js";
26
+ } from "./index-tsmjxph2.js";
27
27
  import {
28
28
  runner
29
- } from "./index-bkwnr08k.js";
29
+ } from "./index-n706txcv.js";
30
30
 
31
31
  // pkgs/@akanjs/cli/workflow/workflow.runner.ts
32
32
  import { mkdir, readFile, writeFile } from "fs/promises";
@@ -2,16 +2,17 @@
2
2
  import {
3
3
  runner,
4
4
  script
5
- } from "./index-bkwnr08k.js";
5
+ } from "./index-n706txcv.js";
6
6
  import {
7
7
  LibExecutor
8
- } from "./index-1twehz1x.js";
8
+ } from "./index-8vkkm7v0.js";
9
9
 
10
10
  // pkgs/@akanjs/cli/semver.ts
11
- function parseVersion(version) {
11
+ var stripRangeOperator = (version) => version.replace(/^[\s^~>=<v]+/, "").trim();
12
+ var parseVersion = (version) => {
12
13
  return version.replace(/^[^\d]*/, "").split(/[.-]/).map((part) => Number.parseInt(part, 10)).map((part) => Number.isFinite(part) ? part : 0);
13
- }
14
- function compareSemver(a, b) {
14
+ };
15
+ var compareNumeric = (a, b) => {
15
16
  const left = parseVersion(a);
16
17
  const right = parseVersion(b);
17
18
  const length = Math.max(left.length, right.length);
@@ -21,7 +22,14 @@ function compareSemver(a, b) {
21
22
  return diff > 0 ? 1 : -1;
22
23
  }
23
24
  return 0;
24
- }
25
+ };
26
+ var compareSemver = (a, b) => {
27
+ try {
28
+ return Bun.semver.order(stripRangeOperator(a), stripRangeOperator(b));
29
+ } catch {
30
+ return compareNumeric(a, b);
31
+ }
32
+ };
25
33
 
26
34
  // pkgs/@akanjs/cli/library/library.runner.ts
27
35
  class LibraryRunner extends runner("library") {
@@ -10,7 +10,7 @@ import {
10
10
  } from "./index-67546d0j.js";
11
11
  import {
12
12
  __require
13
- } from "./index-r24hmh0q.js";
13
+ } from "./index-yb2wsc7f.js";
14
14
 
15
15
  // pkgs/@akanjs/devkit/executors.ts
16
16
  import {
@@ -44,7 +44,7 @@ import chalk2 from "chalk";
44
44
 
45
45
  // pkgs/@akanjs/devkit/agentsIndex.ts
46
46
  var recipeScannerLoad = null;
47
- var loadRecipeScanner = () => recipeScannerLoad ??= import("./recipeScanner-tghkzrrt.js");
47
+ var loadRecipeScanner = () => recipeScannerLoad ??= import("./recipeScanner-zrzev25x.js");
48
48
  var AGENT_BLOCK_START = "<!-- akan:agent:start -->";
49
49
  var AGENT_BLOCK_END = "<!-- akan:agent:end -->";
50
50
  var AGENT_VERSION_PREFIX = "<!-- akan:agent:version ";
@@ -54,7 +54,7 @@ ${block}`;
54
54
  var extractBlockVersion = (content) => content.match(/<!-- akan:agent:version ([^\s]+) -->/)?.[1] ?? null;
55
55
  var readDevkitVersion = async () => {
56
56
  const { readFile } = await import("fs/promises");
57
- const { getDirname: getDirname2 } = await import("./getDirname-m9s0cmhq.js");
57
+ const { getDirname: getDirname2 } = await import("./getDirname-ka11hm7e.js");
58
58
  try {
59
59
  const raw = await readFile(`${getDirname2(import.meta.url)}/package.json`, "utf-8");
60
60
  return JSON.parse(raw).version ?? null;
@@ -220,8 +220,6 @@ var DEFAULT_OPTIMIZE_IMPORTS = [
220
220
  ];
221
221
  var WORKSPACE_BARREL_FACETS = ["ui", "webkit", "common", "client", "server"];
222
222
  var SSR_RUNTIME_PACKAGES = ["react", "react-dom", "react-server-dom-webpack"];
223
- var NATIVE_RUNTIME_PACKAGES = ["sharp"];
224
- var DEFAULT_BACKEND_RUNTIME_PACKAGES = ["croner"];
225
223
  var MOBILE_RUNTIME_PACKAGES = [
226
224
  "@capacitor/cli",
227
225
  "@capacitor/core",
@@ -250,8 +248,6 @@ var DATABASE_MODE_RUNTIME_PACKAGES = {
250
248
  };
251
249
  var AKAN_RUNTIME_PACKAGES = new Set([
252
250
  ...SSR_RUNTIME_PACKAGES,
253
- ...NATIVE_RUNTIME_PACKAGES,
254
- ...DEFAULT_BACKEND_RUNTIME_PACKAGES,
255
251
  ...MOBILE_RUNTIME_PACKAGES,
256
252
  ...Object.values(DATABASE_MODE_RUNTIME_PACKAGES).flat()
257
253
  ]);
@@ -543,13 +539,7 @@ CMD [${command.map((c) => `"${c}"`).join(",")}]`;
543
539
  return akanPackageJson.dependencies?.[lib] ?? akanPackageJson.peerDependencies?.[lib];
544
540
  }
545
541
  #getProductionRuntimePackages() {
546
- return [
547
- ...this.externalLibs,
548
- ...SSR_RUNTIME_PACKAGES,
549
- ...NATIVE_RUNTIME_PACKAGES,
550
- ...DEFAULT_BACKEND_RUNTIME_PACKAGES,
551
- ...this.getDatabaseModeRuntimePackages()
552
- ];
542
+ return [...this.externalLibs, ...SSR_RUNTIME_PACKAGES, ...this.getDatabaseModeRuntimePackages()];
553
543
  }
554
544
  getDatabaseModeRuntimePackages(databaseMode = this.defaultDatabaseMode) {
555
545
  return [...DATABASE_MODE_RUNTIME_PACKAGES[databaseMode]];
@@ -1048,7 +1038,7 @@ var moduleUiFileTypes = {
1048
1038
  };
1049
1039
  var testFilePattern = /\.(test|spec)\.(ts|tsx)$/;
1050
1040
  var rootSignalTestFilePattern = /^[A-Za-z][A-Za-z0-9_-]*\.signal\.(test|spec)\.(ts|tsx)$/;
1051
- var createDependencyScanner = async (exec) => (await import("./dependencyScanner-f6grrep3.js")).TypeScriptDependencyScanner.from(exec);
1041
+ var createDependencyScanner = async (exec) => (await import("./dependencyScanner-rbs2407b.js")).TypeScriptDependencyScanner.from(exec);
1052
1042
  var isAllowedTestFile = (filename) => testFilePattern.test(filename);
1053
1043
  var isAllowedLibRootFile = (filename) => libFacetRootAllowedFiles.has(filename) || rootSignalTestFilePattern.test(filename);
1054
1044
  var getScanPath = (exec, relativePath) => path4.posix.join(`${exec.type}s`, exec.name, relativePath.split(path4.sep).join("/"));
@@ -2089,7 +2079,7 @@ class Executor {
2089
2079
  return this._applyTemplate({ ...options, dict });
2090
2080
  }
2091
2081
  async getTypeChecker() {
2092
- const { TypeChecker } = await import("./typeChecker-kravn7ns.js");
2082
+ const { TypeChecker } = await import("./typeChecker-g6bh0xfv.js");
2093
2083
  this.typeChecker ??= new TypeChecker(this);
2094
2084
  return this.typeChecker;
2095
2085
  }
@@ -2546,7 +2536,7 @@ class SysExecutor extends Executor {
2546
2536
  class AppExecutor extends SysExecutor {
2547
2537
  static #routeSourceValidator = null;
2548
2538
  static async#getRouteSourceValidator() {
2549
- AppExecutor.#routeSourceValidator ??= (await import("./routeSourceValidator-e4jmbfcx.js")).RouteSourceValidator;
2539
+ AppExecutor.#routeSourceValidator ??= (await import("./routeSourceValidator-7fycdqyv.js")).RouteSourceValidator;
2550
2540
  return AppExecutor.#routeSourceValidator;
2551
2541
  }
2552
2542
  dist;
@@ -3029,7 +3019,7 @@ class PkgExecutor extends Executor {
3029
3019
  default: "./index.ts"
3030
3020
  }
3031
3021
  },
3032
- engines: { bun: ">=1.3.13" },
3022
+ engines: { bun: ">=1.4.0" },
3033
3023
  ...dependencyMaps
3034
3024
  };
3035
3025
  await Promise.all([this.dist.writeJson("package.json", distPkgJson), this.writeJson("package.json", distPkgJson)]);
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  CloudRunner
4
- } from "./index-96vpa123.js";
4
+ } from "./index-fb2wa7j3.js";
5
5
  import {
6
6
  PackageScript
7
- } from "./index-xwfkgss0.js";
7
+ } from "./index-33zce8gt.js";
8
8
  import {
9
9
  AiSession,
10
10
  CloudApi,
@@ -12,13 +12,13 @@ import {
12
12
  } from "./index-0cj2zxbm.js";
13
13
  import {
14
14
  ApplicationScript
15
- } from "./index-rv16ck4r.js";
15
+ } from "./index-x2w0y8sz.js";
16
16
  import {
17
17
  script
18
- } from "./index-bkwnr08k.js";
18
+ } from "./index-n706txcv.js";
19
19
  import {
20
20
  PkgExecutor
21
- } from "./index-1twehz1x.js";
21
+ } from "./index-8vkkm7v0.js";
22
22
 
23
23
  // pkgs/@akanjs/cli/cloud/cloud.script.ts
24
24
  import { Logger } from "akanjs/common";
@@ -1,22 +1,22 @@
1
1
  // @bun
2
2
  import {
3
3
  RepairRunner
4
- } from "./index-4agbdds8.js";
4
+ } from "./index-xyrb7pk5.js";
5
5
  import {
6
6
  WorkflowRunner
7
- } from "./index-w7farjxd.js";
7
+ } from "./index-3dp7x6rc.js";
8
8
  import {
9
9
  ScalarScript
10
- } from "./index-8d9r0df5.js";
10
+ } from "./index-sn71brf9.js";
11
11
  import {
12
12
  PrimitiveScript
13
- } from "./index-4v0wvt37.js";
13
+ } from "./index-hxp90q94.js";
14
14
  import {
15
15
  ModuleScript
16
- } from "./index-aak9cctp.js";
16
+ } from "./index-myy6xy5w.js";
17
17
  import {
18
18
  isPlaceholderAppId
19
- } from "./index-gz91pc3p.js";
19
+ } from "./index-mz5jtaq7.js";
20
20
  import {
21
21
  AkanContextAnalyzer,
22
22
  akanMcpInstallConfigPaths,
@@ -27,14 +27,14 @@ import {
27
27
  renderDoctorText,
28
28
  resourceList,
29
29
  upsertCodexMcpServerBlock
30
- } from "./index-djh5gpb7.js";
30
+ } from "./index-g9e2fhw2.js";
31
31
  import {
32
32
  buildAkanModuleContextIndex,
33
33
  createWorkflowBaselineSummary,
34
34
  createWorkflowStepRegistry,
35
35
  jsonText,
36
36
  toolingRolloutGate
37
- } from "./index-9s991k9v.js";
37
+ } from "./index-tsmjxph2.js";
38
38
  import {
39
39
  Prompter
40
40
  } from "./index-j37qq1f2.js";
@@ -45,10 +45,10 @@ import {
45
45
  CommandContainer,
46
46
  runner,
47
47
  script
48
- } from "./index-bkwnr08k.js";
48
+ } from "./index-n706txcv.js";
49
49
  import {
50
50
  AppExecutor
51
- } from "./index-1twehz1x.js";
51
+ } from "./index-8vkkm7v0.js";
52
52
 
53
53
  // pkgs/@akanjs/cli/context/context.script.ts
54
54
  import { Logger } from "akanjs/common";
@@ -7,14 +7,14 @@ import {
7
7
  } from "./index-0cj2zxbm.js";
8
8
  import {
9
9
  openBrowser
10
- } from "./index-rv16ck4r.js";
10
+ } from "./index-x2w0y8sz.js";
11
11
  import {
12
12
  runner
13
- } from "./index-bkwnr08k.js";
13
+ } from "./index-n706txcv.js";
14
14
  import {
15
15
  AppExecutor,
16
16
  WorkspaceExecutor
17
- } from "./index-1twehz1x.js";
17
+ } from "./index-8vkkm7v0.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
  workflowRunArtifactPath,
4
4
  workflowSyncDir
5
- } from "./index-9s991k9v.js";
5
+ } from "./index-tsmjxph2.js";
6
6
  import {
7
7
  AppExecutor,
8
8
  LibExecutor,
@@ -11,7 +11,7 @@ import {
11
11
  extractBlockVersion,
12
12
  isScannedAppRootEntry,
13
13
  readDevkitVersion
14
- } from "./index-1twehz1x.js";
14
+ } from "./index-8vkkm7v0.js";
15
15
  import {
16
16
  collectRecipeSources,
17
17
  findInlineRecipeDuplicates,
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  ModuleScript
4
- } from "./index-aak9cctp.js";
4
+ } from "./index-myy6xy5w.js";
5
5
  import {
6
6
  addFieldUiPolicyForType,
7
7
  coerceFieldDefault,
@@ -34,15 +34,15 @@ import {
34
34
  sourceFile,
35
35
  validationCommandsForTarget,
36
36
  viaBuilderParameterName
37
- } from "./index-9s991k9v.js";
37
+ } from "./index-tsmjxph2.js";
38
38
  import {
39
39
  script
40
- } from "./index-bkwnr08k.js";
40
+ } from "./index-n706txcv.js";
41
41
  import {
42
42
  AppExecutor,
43
43
  LibExecutor,
44
44
  ModuleExecutor
45
- } from "./index-1twehz1x.js";
45
+ } from "./index-8vkkm7v0.js";
46
46
 
47
47
  // pkgs/@akanjs/cli/primitive/primitive.script.ts
48
48
  import { capitalize } from "akanjs/common";
@@ -1,14 +1,14 @@
1
1
  // @bun
2
2
  import {
3
3
  AkanContextAnalyzer
4
- } from "./index-djh5gpb7.js";
4
+ } from "./index-g9e2fhw2.js";
5
5
  import {
6
6
  Prompter
7
7
  } from "./index-j37qq1f2.js";
8
8
  import {
9
9
  runner,
10
10
  script
11
- } from "./index-bkwnr08k.js";
11
+ } from "./index-n706txcv.js";
12
12
  import {
13
13
  AGENT_BLOCK_END,
14
14
  AGENT_BLOCK_START,
@@ -19,7 +19,7 @@ import {
19
19
  renderRecipeEntries,
20
20
  stampBlockVersion,
21
21
  upsertAgentBlock
22
- } from "./index-1twehz1x.js";
22
+ } from "./index-8vkkm7v0.js";
23
23
  import {
24
24
  collectRecipeSources,
25
25
  scanRecipes
@@ -4,7 +4,7 @@ import {
4
4
  } from "./index-ss469dec.js";
5
5
  import {
6
6
  PageScript
7
- } from "./index-gyvrhtpm.js";
7
+ } from "./index-qc0tnhs2.js";
8
8
  import {
9
9
  AiSession
10
10
  } from "./index-0cj2zxbm.js";
@@ -15,17 +15,17 @@ import {
15
15
  generatedFilesForSync,
16
16
  moduleSourcePaths,
17
17
  sourceFile
18
- } from "./index-9s991k9v.js";
18
+ } from "./index-tsmjxph2.js";
19
19
  import {
20
20
  Prompter
21
21
  } from "./index-j37qq1f2.js";
22
22
  import {
23
23
  runner,
24
24
  script
25
- } from "./index-bkwnr08k.js";
25
+ } from "./index-n706txcv.js";
26
26
  import {
27
27
  ModuleExecutor
28
- } from "./index-1twehz1x.js";
28
+ } from "./index-8vkkm7v0.js";
29
29
  import {
30
30
  FileSys
31
31
  } from "./index-67546d0j.js";
@@ -5,7 +5,7 @@ import {
5
5
  } from "./index-76rn3g2c.js";
6
6
  import {
7
7
  CommandExecutionError
8
- } from "./index-1twehz1x.js";
8
+ } from "./index-8vkkm7v0.js";
9
9
 
10
10
  // pkgs/@akanjs/devkit/capacitorApp.ts
11
11
  import { cp, mkdir, readFile, rm, writeFile } from "fs/promises";
@@ -6,7 +6,7 @@ import {
6
6
  ModuleExecutor,
7
7
  PkgExecutor,
8
8
  WorkspaceExecutor
9
- } from "./index-1twehz1x.js";
9
+ } from "./index-8vkkm7v0.js";
10
10
  import {
11
11
  getDirname
12
12
  } from "./index-1577bej2.js";
@@ -15,7 +15,7 @@ import {
15
15
  } from "./index-67546d0j.js";
16
16
  import {
17
17
  __require
18
- } from "./index-r24hmh0q.js";
18
+ } from "./index-yb2wsc7f.js";
19
19
 
20
20
  // pkgs/@akanjs/devkit/commandDecorators/targetMeta.ts
21
21
  var COMMAND_META = Symbol("akan.command.meta");
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  runner,
4
4
  script
5
- } from "./index-bkwnr08k.js";
5
+ } from "./index-n706txcv.js";
6
6
 
7
7
  // pkgs/@akanjs/cli/page/page.runner.ts
8
8
  class PageRunner extends runner("page") {
@@ -849,6 +849,7 @@ class ClientEntriesBundler {
849
849
  #externalSubpaths;
850
850
  #externalAliases;
851
851
  #command;
852
+ #target;
852
853
  #outputSubdir;
853
854
  #reactFastRefresh;
854
855
  #artifactDir;
@@ -870,6 +871,7 @@ class ClientEntriesBundler {
870
871
  this.#externalSubpaths = options.externalSubpaths ?? [];
871
872
  this.#externalAliases = options.externalAliases ?? {};
872
873
  this.#command = options.command ?? "start";
874
+ this.#target = options.target ?? "browser";
873
875
  this.#outputSubdir = options.outputSubdir ?? "client";
874
876
  this.#reactFastRefresh = options.reactFastRefresh ?? false;
875
877
  this.#artifactDir = `${this.#command === "build" ? this.#app.dist.cwdPath : this.#app.cwdPath}/.akan/artifact`;
@@ -883,7 +885,7 @@ class ClientEntriesBundler {
883
885
  entrypoints: this.#opaqueEntries.entries,
884
886
  outdir: this.#outdir,
885
887
  splitting: true,
886
- target: "browser",
888
+ target: this.#target,
887
889
  format: "esm",
888
890
  naming: CLIENT_BUNDLE_NAMING,
889
891
  metafile: true,
@@ -1226,12 +1228,11 @@ class RouteClientBuilder {
1226
1228
  }).bundle();
1227
1229
  }
1228
1230
  async#buildSsrBundle(bootstrapEntries) {
1229
- const externalOptions = RouteClientBuilder.resolveSsrClientExternalOptions(this.#command);
1230
1231
  return new ClientEntriesBundler({
1231
1232
  app: this.#app,
1232
1233
  entries: bootstrapEntries.buildEntries,
1233
1234
  plugins: [await createBarrelImportsPlugin(this.#app)],
1234
- ...externalOptions,
1235
+ ...RouteClientBuilder.resolveSsrClientBundleOptions(this.#command),
1235
1236
  outputSubdir: "client-ssr",
1236
1237
  command: this.#command
1237
1238
  }).bundle();
@@ -1293,15 +1294,16 @@ ${defaultNames.map((name) => `export default ${name};`).join(`
1293
1294
  const serverEntry = RouteClientBuilder.resolveAkanServerEntry();
1294
1295
  return { [Bun.resolveSync("akanjs/fetch", serverEntry)]: "akanjs/fetch" };
1295
1296
  }
1296
- static resolveSsrClientExternalOptions(command) {
1297
+ static resolveSsrClientBundleOptions(command) {
1297
1298
  if (command === "start") {
1298
1299
  return {
1300
+ target: "bun",
1299
1301
  external: SSR_CLIENT_EXTERNALS,
1300
1302
  externalSubpaths: ["akanjs/fetch"],
1301
1303
  externalAliases: RouteClientBuilder.resolveSsrClientRuntimeAliases()
1302
1304
  };
1303
1305
  }
1304
- return { external: SSR_CLIENT_ALIAS_EXTERNALS };
1306
+ return { target: "bun", external: SSR_CLIENT_ALIAS_EXTERNALS };
1305
1307
  }
1306
1308
  static resolveAkanServerEntry() {
1307
1309
  try {
@@ -9,14 +9,14 @@ import {
9
9
  createPassedPrimitiveReport,
10
10
  generatedFilesForSync,
11
11
  scalarChangedFiles
12
- } from "./index-9s991k9v.js";
12
+ } from "./index-tsmjxph2.js";
13
13
  import {
14
14
  Prompter
15
15
  } from "./index-j37qq1f2.js";
16
16
  import {
17
17
  runner,
18
18
  script
19
- } from "./index-bkwnr08k.js";
19
+ } from "./index-n706txcv.js";
20
20
 
21
21
  // pkgs/@akanjs/cli/scalar/scalar.prompt.ts
22
22
  import { input } from "@inquirer/prompts";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  AppExecutor,
4
4
  LibExecutor
5
- } from "./index-1twehz1x.js";
5
+ } from "./index-8vkkm7v0.js";
6
6
 
7
7
  // pkgs/@akanjs/devkit/workflow/utils.ts
8
8
  var jsonText = (value, { trailingNewline = true } = {}) => `${JSON.stringify(value, null, 2)}${trailingNewline ? `