@akanjs/cli 3.0.0-beta.27 → 3.0.0-beta.29

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 (63) hide show
  1. package/.build-stamp +1 -1
  2. package/{CodeAgent-h19atbr3.js → CodeAgent-86q8d13j.js} +2 -2
  3. package/{CodeTui-46zygq8p.js → CodeTui-r8tgxsyb.js} +1 -1
  4. package/{agent.command-rp505zxa.js → agent.command-q9bmqrag.js} +5 -5
  5. package/akanCode.js +2 -2
  6. package/{application.command-1p0cpt6y.js → application.command-712jd2z8.js} +70 -8
  7. package/{applicationBuildRunner-r6b9rkb8.js → applicationBuildRunner-ez37p161.js} +67 -22
  8. package/buildBatch.proc.js +3 -3
  9. package/{cloud.command-ps9dabbg.js → cloud.command-8eegwcsc.js} +9 -9
  10. package/cloud.script-55s1cmz9.js +20 -0
  11. package/{code.command-78qw3q3f.js → code.command-n0c2tyzx.js} +6 -6
  12. package/commandManifest.json +1 -1
  13. package/{context.command-x5f7t3gk.js → context.command-vxf6d7q2.js} +13 -13
  14. package/context.runner-70r2fmty.js +21 -0
  15. package/{guideline.command-d5qmxx29.js → guideline.command-ene55fkr.js} +2 -2
  16. package/guidelines/conventions/conventions.instruction.md +27 -7
  17. package/guidelines/runtimeRule/runtimeRule.instruction.md +116 -1
  18. package/incrementalBuilder.proc.js +2 -2
  19. package/{index-hzy4pe24.js → index-0pqzrbpr.js} +2 -2
  20. package/{index-w5pet0nq.js → index-16k7m3cs.js} +11 -9
  21. package/index-1hs6jrys.js +994 -0
  22. package/{index-6dt6zft6.js → index-20r2g1t3.js} +4 -4
  23. package/{index-xfgdmm5d.js → index-2ctqegdm.js} +2 -2
  24. package/{index-d65fzxvd.js → index-2s2e5qnd.js} +1 -1
  25. package/{index-j9z8vg2n.js → index-2yvy9ztj.js} +4 -4
  26. package/{index-t02g6dpn.js → index-2z30v4k5.js} +3 -3
  27. package/{index-vxqe24mp.js → index-8ej6r02m.js} +1 -1
  28. package/{index-58cyna2s.js → index-b68zfsvz.js} +1 -1
  29. package/{index-bp9b1g2r.js → index-fy42hyb9.js} +7 -3
  30. package/{index-tg09x14f.js → index-g44da4r2.js} +5 -5
  31. package/{index-zazvn45w.js → index-genegfnt.js} +4 -4
  32. package/{index-da72pfdv.js → index-h9ed99ax.js} +7 -7
  33. package/{index-per2kqy9.js → index-k7809wmg.js} +2 -2
  34. package/{index-2zcm7fjd.js → index-krwz9ek9.js} +3 -3
  35. package/{index-118vq9dh.js → index-n9gxx7bp.js} +247 -47
  36. package/{index-860zjnr1.js → index-nbg9bfnr.js} +1 -1
  37. package/{index-5mm3g24t.js → index-qtz88kh0.js} +2 -2
  38. package/{index-0n9q1f23.js → index-r8gp8zk3.js} +231 -98
  39. package/{index-ggfhz9ab.js → index-rbeahw6j.js} +3 -3
  40. package/{index-56xwsgyn.js → index-rrt9pnb4.js} +2 -2
  41. package/{index-v4hnkqz9.js → index-ss828r32.js} +1 -1
  42. package/{index-5kjsr2pg.js → index-ttn00pr3.js} +38 -3
  43. package/index.js +21 -21
  44. package/{library.command-sv6g1h2g.js → library.command-tz7vnwea.js} +3 -3
  45. package/{localRegistry.command-zppa6w7q.js → localRegistry.command-7dd85czz.js} +8 -8
  46. package/{module.command-ccdeder9.js → module.command-qhc9ns0s.js} +5 -5
  47. package/{package.command-xmw605b1.js → package.command-z3epnvas.js} +3 -3
  48. package/package.json +3 -3
  49. package/{page.command-ky7vafsn.js → page.command-exd2vakz.js} +3 -3
  50. package/{primitive.command-bh6j8nfs.js → primitive.command-0w6cha4j.js} +6 -6
  51. package/{quality.command-rqqrpe98.js → quality.command-je4kc9yv.js} +2 -2
  52. package/{repair.command-n9nsm9qe.js → repair.command-knvwfgtg.js} +5 -5
  53. package/{scalar.command-t09gmck8.js → scalar.command-60nxfchc.js} +4 -4
  54. package/{subspace.command-gx2cjpnv.js → subspace.command-683qxcw9.js} +4 -4
  55. package/templates/server.ts +1 -1
  56. package/{tunnel.command-4g95vhsn.js → tunnel.command-7m2kxtat.js} +2 -2
  57. package/{workflow.command-b91ph8sx.js → workflow.command-j5tk13ds.js} +10 -10
  58. package/{workspace.command-1r29qzzk.js → workspace.command-jxdm0wrb.js} +20 -20
  59. package/README.ko.md +0 -72
  60. package/README.md +0 -88
  61. package/cloud.script-wrw1kz6k.js +0 -20
  62. package/context.runner-nfs8ksh3.js +0 -21
  63. package/index-y736f42m.js +0 -556
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  runner,
4
4
  script
5
- } from "./index-58cyna2s.js";
5
+ } from "./index-b68zfsvz.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-0n9q1f23.js";
16
+ } from "./index-r8gp8zk3.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-hzy4pe24.js";
23
+ } from "./index-0pqzrbpr.js";
24
24
  import {
25
25
  Prompter2
26
26
  } from "./index-zzvvc845.js";
@@ -6,11 +6,11 @@ import {
6
6
  } from "./index-94s080qm.js";
7
7
  import {
8
8
  runner
9
- } from "./index-58cyna2s.js";
9
+ } from "./index-b68zfsvz.js";
10
10
  import {
11
11
  WorkspaceExecutor,
12
12
  AppExecutor
13
- } from "./index-0n9q1f23.js";
13
+ } from "./index-r8gp8zk3.js";
14
14
  import {
15
15
  openBrowser
16
16
  } from "./index-9dp031by.js";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  runner,
4
4
  script
5
- } from "./index-58cyna2s.js";
5
+ } from "./index-b68zfsvz.js";
6
6
 
7
7
  // pkgs/@akanjs/cli/page/page.runner.ts
8
8
  class PageRunner extends runner("page") {
@@ -9,7 +9,7 @@ import {
9
9
  import {
10
10
  AsyncDefaultExportDetector,
11
11
  resolveSsrPageEntriesForApp
12
- } from "./index-0n9q1f23.js";
12
+ } from "./index-r8gp8zk3.js";
13
13
 
14
14
  // pkgs/@akanjs/devkit/artifact/routeSeedIndex.ts
15
15
  import path from "path";
@@ -3396,6 +3396,7 @@ class CsrDevFactoryCheck {
3396
3396
  // pkgs/@akanjs/devkit/frontendBuild/csrDevModuleCompiler.ts
3397
3397
  class CsrDevModuleCompiler {
3398
3398
  static #storeRoot = /(?:^|\/)lib\/st\.ts$/;
3399
+ static #macroImport = /\b(?:with|assert)\s*\{\s*type\s*:\s*["']macro["']/;
3399
3400
  static #factoryArgument = /(?<![\w$.])(?:require|module|exports|__akanImport|\$RefreshReg\$|\$RefreshSig\$)(?![\w$]|\s*:)/;
3400
3401
  static #helperPatches = [
3401
3402
  ["__toESM", "(mod, isNodeMode, target)", "toESM"],
@@ -3475,6 +3476,7 @@ class CsrDevModuleCompiler {
3475
3476
  const mtimes = new Map(files.map((file) => [CsrDevPaths.realpath(file), CsrDevPaths.mtimeOf(file)]));
3476
3477
  const hashes = new Map(await Promise.all(files.map(async (file) => [CsrDevPaths.realpath(file), vendor ? "" : await CsrDevPaths.hashOf(file)])));
3477
3478
  const misses = [];
3479
+ const macroOutputs = vendor ? new Map : await this.#evaluateMacros(files);
3478
3480
  let result;
3479
3481
  try {
3480
3482
  result = await Bun.build({
@@ -3490,7 +3492,7 @@ class CsrDevModuleCompiler {
3490
3492
  env: "AKAN_PUBLIC_*",
3491
3493
  define: { ...this.#context.define, "import.meta": "__akanMeta" },
3492
3494
  optimizeImports: this.#context.optimizeImports,
3493
- plugins: [this.#registryPlugin(vendor, misses)]
3495
+ plugins: [this.#registryPlugin(vendor, misses, macroOutputs)]
3494
3496
  });
3495
3497
  } catch (error) {
3496
3498
  if (vendor && error instanceof AggregateError)
@@ -3580,11 +3582,44 @@ class CsrDevModuleCompiler {
3580
3582
  hash: ""
3581
3583
  };
3582
3584
  }
3583
- #registryPlugin(vendor, misses) {
3585
+ async#evaluateMacros(files) {
3586
+ const sources = await Promise.all(files.map(async (file) => [file, await Bun.file(file).text()]));
3587
+ const importers = sources.filter(([, source]) => CsrDevModuleCompiler.#macroImport.test(source));
3588
+ const outputs = await Promise.all(importers.map(async ([file]) => {
3589
+ const result = await Bun.build({
3590
+ entrypoints: [file],
3591
+ target: "browser",
3592
+ format: "esm",
3593
+ plugins: [
3594
+ {
3595
+ name: "akan-csr-macro-pass",
3596
+ setup: (build) => void build.onResolve({ filter: /.*/ }, (args) => args.importer ? { path: args.path, external: true } : undefined)
3597
+ }
3598
+ ]
3599
+ });
3600
+ const [output] = result.outputs;
3601
+ if (!output)
3602
+ throw new Error(`[csr-dev] ${this.#paths.idOf(file)}: its macro pass wrote no output`);
3603
+ const text = await output.text();
3604
+ return [
3605
+ [file, text],
3606
+ [CsrDevPaths.realpath(file), text]
3607
+ ];
3608
+ }));
3609
+ return new Map(outputs.flat());
3610
+ }
3611
+ #registryPlugin(vendor, misses, macroOutputs) {
3584
3612
  return {
3585
3613
  name: "akan-csr-registry",
3586
3614
  setup: (build) => {
3587
3615
  build.onLoad({ filter: /\.css$/ }, () => ({ contents: "", loader: "js" }));
3616
+ if (macroOutputs.size > 0) {
3617
+ const exact = [...macroOutputs.keys()].map((file) => file.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"));
3618
+ build.onLoad({ filter: new RegExp(`^(?:${exact.join("|")})$`) }, (args) => {
3619
+ const contents = macroOutputs.get(args.path);
3620
+ return contents === undefined ? undefined : { contents, loader: "js" };
3621
+ });
3622
+ }
3588
3623
  if (!vendor)
3589
3624
  build.onLoad({ filter: /\.tsx$/ }, async (args) => {
3590
3625
  if (CsrDevPaths.isVendorFile(args.path))
package/index.js CHANGED
@@ -4,34 +4,34 @@ import {
4
4
  getTargetMetas,
5
5
  getTargetCommandNames,
6
6
  runCommands
7
- } from "./index-58cyna2s.js";
7
+ } from "./index-b68zfsvz.js";
8
8
  import"./index-52w0fvh8.js";
9
- import"./index-0n9q1f23.js";
9
+ import"./index-r8gp8zk3.js";
10
10
 
11
11
  // pkgs/@akanjs/cli/commandManifest.ts
12
12
  import path from "path";
13
13
 
14
14
  // pkgs/@akanjs/cli/commandModules.ts
15
15
  var commandModules = {
16
- workspace: async () => (await import("./workspace.command-1r29qzzk.js")).WorkspaceCommand,
17
- agent: async () => (await import("./agent.command-rp505zxa.js")).AgentCommand,
18
- code: async () => (await import("./code.command-78qw3q3f.js")).CodeCommand,
19
- application: async () => (await import("./application.command-1p0cpt6y.js")).ApplicationCommand,
20
- library: async () => (await import("./library.command-sv6g1h2g.js")).LibraryCommand,
21
- localRegistry: async () => (await import("./localRegistry.command-zppa6w7q.js")).LocalRegistryCommand,
22
- package: async () => (await import("./package.command-xmw605b1.js")).PackageCommand,
23
- module: async () => (await import("./module.command-ccdeder9.js")).ModuleCommand,
24
- page: async () => (await import("./page.command-ky7vafsn.js")).PageCommand,
25
- context: async () => (await import("./context.command-x5f7t3gk.js")).ContextCommand,
26
- cloud: async () => (await import("./cloud.command-ps9dabbg.js")).CloudCommand,
27
- subspace: async () => (await import("./subspace.command-gx2cjpnv.js")).SubspaceCommand,
28
- guideline: async () => (await import("./guideline.command-d5qmxx29.js")).GuidelineCommand,
29
- scalar: async () => (await import("./scalar.command-t09gmck8.js")).ScalarCommand,
30
- primitive: async () => (await import("./primitive.command-bh6j8nfs.js")).PrimitiveCommand,
31
- quality: async () => (await import("./quality.command-rqqrpe98.js")).QualityCommand,
32
- repair: async () => (await import("./repair.command-n9nsm9qe.js")).RepairCommand,
33
- workflow: async () => (await import("./workflow.command-b91ph8sx.js")).WorkflowCommand,
34
- tunnel: async () => (await import("./tunnel.command-4g95vhsn.js")).TunnelCommand
16
+ workspace: async () => (await import("./workspace.command-jxdm0wrb.js")).WorkspaceCommand,
17
+ agent: async () => (await import("./agent.command-q9bmqrag.js")).AgentCommand,
18
+ code: async () => (await import("./code.command-n0c2tyzx.js")).CodeCommand,
19
+ application: async () => (await import("./application.command-712jd2z8.js")).ApplicationCommand,
20
+ library: async () => (await import("./library.command-tz7vnwea.js")).LibraryCommand,
21
+ localRegistry: async () => (await import("./localRegistry.command-7dd85czz.js")).LocalRegistryCommand,
22
+ package: async () => (await import("./package.command-z3epnvas.js")).PackageCommand,
23
+ module: async () => (await import("./module.command-qhc9ns0s.js")).ModuleCommand,
24
+ page: async () => (await import("./page.command-exd2vakz.js")).PageCommand,
25
+ context: async () => (await import("./context.command-vxf6d7q2.js")).ContextCommand,
26
+ cloud: async () => (await import("./cloud.command-8eegwcsc.js")).CloudCommand,
27
+ subspace: async () => (await import("./subspace.command-683qxcw9.js")).SubspaceCommand,
28
+ guideline: async () => (await import("./guideline.command-ene55fkr.js")).GuidelineCommand,
29
+ scalar: async () => (await import("./scalar.command-60nxfchc.js")).ScalarCommand,
30
+ primitive: async () => (await import("./primitive.command-0w6cha4j.js")).PrimitiveCommand,
31
+ quality: async () => (await import("./quality.command-je4kc9yv.js")).QualityCommand,
32
+ repair: async () => (await import("./repair.command-knvwfgtg.js")).RepairCommand,
33
+ workflow: async () => (await import("./workflow.command-j5tk13ds.js")).WorkflowCommand,
34
+ tunnel: async () => (await import("./tunnel.command-7m2kxtat.js")).TunnelCommand
35
35
  };
36
36
  var commandModuleIds = Object.keys(commandModules);
37
37
 
@@ -3,12 +3,12 @@ import {
3
3
  Lib,
4
4
  Workspace,
5
5
  command
6
- } from "./index-58cyna2s.js";
6
+ } from "./index-b68zfsvz.js";
7
7
  import"./index-52w0fvh8.js";
8
- import"./index-0n9q1f23.js";
8
+ import"./index-r8gp8zk3.js";
9
9
  import {
10
10
  LibraryScript
11
- } from "./index-5mm3g24t.js";
11
+ } from "./index-qtz88kh0.js";
12
12
 
13
13
  // pkgs/@akanjs/cli/library/library.command.ts
14
14
  class LibraryCommand extends command("library", [LibraryScript], ({ public: target }) => ({
@@ -4,28 +4,28 @@ import {
4
4
  runner,
5
5
  script,
6
6
  command
7
- } from "./index-58cyna2s.js";
7
+ } from "./index-b68zfsvz.js";
8
8
  import"./index-52w0fvh8.js";
9
9
  import {
10
10
  PkgExecutor
11
- } from "./index-0n9q1f23.js";
11
+ } from "./index-r8gp8zk3.js";
12
12
  import"./index-48k96p55.js";
13
- import"./index-5mm3g24t.js";
13
+ import"./index-1hs6jrys.js";
14
+ import"./index-qtz88kh0.js";
14
15
  import {
15
16
  ApplicationScript
16
- } from "./index-118vq9dh.js";
17
- import"./index-y736f42m.js";
17
+ } from "./index-n9gxx7bp.js";
18
18
  import"./index-7md2g9vw.js";
19
19
  import"./index-94s080qm.js";
20
20
  import {
21
21
  getNpmRegistryUrl,
22
22
  CloudRunner
23
- } from "./index-56xwsgyn.js";
23
+ } from "./index-rrt9pnb4.js";
24
24
  import"./index-2ahj896a.js";
25
25
  import {
26
26
  PackageScript
27
- } from "./index-per2kqy9.js";
28
- import"./index-860zjnr1.js";
27
+ } from "./index-k7809wmg.js";
28
+ import"./index-nbg9bfnr.js";
29
29
 
30
30
  // pkgs/@akanjs/cli/localRegistry/localRegistry.runner.ts
31
31
  import { mkdir, rm } from "fs/promises";
@@ -3,16 +3,16 @@ import {
3
3
  Sys,
4
4
  Module,
5
5
  command
6
- } from "./index-58cyna2s.js";
6
+ } from "./index-b68zfsvz.js";
7
7
  import"./index-52w0fvh8.js";
8
- import"./index-0n9q1f23.js";
8
+ import"./index-r8gp8zk3.js";
9
9
  import {
10
10
  renderPrimitiveReport
11
- } from "./index-d65fzxvd.js";
12
- import"./index-v4hnkqz9.js";
11
+ } from "./index-2s2e5qnd.js";
12
+ import"./index-ss828r32.js";
13
13
  import {
14
14
  ModuleScript
15
- } from "./index-zazvn45w.js";
15
+ } from "./index-genegfnt.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-58cyna2s.js";
6
+ } from "./index-b68zfsvz.js";
7
7
  import"./index-52w0fvh8.js";
8
- import"./index-0n9q1f23.js";
8
+ import"./index-r8gp8zk3.js";
9
9
  import"./index-2ahj896a.js";
10
10
  import {
11
11
  PackageScript
12
- } from "./index-per2kqy9.js";
12
+ } from "./index-k7809wmg.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.0.0-beta.27",
3
+ "version": "3.0.0-beta.29",
4
4
  "sourceType": "module",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -39,7 +39,7 @@
39
39
  "@earendil-works/pi-tui": "0.86.1",
40
40
  "@inquirer/prompts": "^8.4.3",
41
41
  "@tailwindcss/node": "^4.3.0",
42
- "akanjs": "3.0.0-beta.27",
42
+ "akanjs": "3.0.0-beta.29",
43
43
  "chalk": "^5.6.2",
44
44
  "commander": "^14.0.3",
45
45
  "dayjs": "^1.11.20",
@@ -62,4 +62,4 @@
62
62
  "bun": {
63
63
  "platform": "bun"
64
64
  }
65
- }
65
+ }
@@ -3,12 +3,12 @@ import {
3
3
  App,
4
4
  Module,
5
5
  command
6
- } from "./index-58cyna2s.js";
6
+ } from "./index-b68zfsvz.js";
7
7
  import"./index-52w0fvh8.js";
8
- import"./index-0n9q1f23.js";
8
+ import"./index-r8gp8zk3.js";
9
9
  import {
10
10
  PageScript
11
- } from "./index-v4hnkqz9.js";
11
+ } from "./index-ss828r32.js";
12
12
 
13
13
  // pkgs/@akanjs/cli/page/page.command.ts
14
14
  class PageCommand extends command("page", [PageScript], ({ public: target }) => ({
@@ -2,17 +2,17 @@
2
2
  import {
3
3
  Workspace,
4
4
  command
5
- } from "./index-58cyna2s.js";
5
+ } from "./index-b68zfsvz.js";
6
6
  import"./index-52w0fvh8.js";
7
- import"./index-0n9q1f23.js";
7
+ import"./index-r8gp8zk3.js";
8
8
  import {
9
9
  renderPrimitiveReport
10
- } from "./index-d65fzxvd.js";
11
- import"./index-v4hnkqz9.js";
12
- import"./index-zazvn45w.js";
10
+ } from "./index-2s2e5qnd.js";
11
+ import"./index-ss828r32.js";
12
+ import"./index-genegfnt.js";
13
13
  import {
14
14
  PrimitiveScript
15
- } from "./index-6dt6zft6.js";
15
+ } from "./index-20r2g1t3.js";
16
16
 
17
17
  // pkgs/@akanjs/cli/primitive/primitive.command.ts
18
18
  import { Logger } from "akanjs/common";
@@ -3,14 +3,14 @@ import {
3
3
  Workspace,
4
4
  script,
5
5
  command
6
- } from "./index-58cyna2s.js";
6
+ } from "./index-b68zfsvz.js";
7
7
  import"./index-52w0fvh8.js";
8
8
  import {
9
9
  rootAllowedFiles,
10
10
  rootAllowedDirs,
11
11
  isAllowedLibFacetRootFile,
12
12
  rootEntryHintOf
13
- } from "./index-0n9q1f23.js";
13
+ } from "./index-r8gp8zk3.js";
14
14
 
15
15
  // pkgs/@akanjs/devkit/qualityScanner.ts
16
16
  import { createHash } from "crypto";
@@ -3,15 +3,15 @@ import {
3
3
  Workspace,
4
4
  script,
5
5
  command
6
- } from "./index-58cyna2s.js";
6
+ } from "./index-b68zfsvz.js";
7
7
  import"./index-52w0fvh8.js";
8
- import"./index-0n9q1f23.js";
8
+ import"./index-r8gp8zk3.js";
9
9
  import"./index-hj6w4ka1.js";
10
- import"./index-d65fzxvd.js";
11
- import"./index-hzy4pe24.js";
10
+ import"./index-2s2e5qnd.js";
11
+ import"./index-0pqzrbpr.js";
12
12
  import {
13
13
  RepairRunner
14
- } from "./index-t02g6dpn.js";
14
+ } from "./index-2z30v4k5.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-58cyna2s.js";
5
+ } from "./index-b68zfsvz.js";
6
6
  import"./index-52w0fvh8.js";
7
- import"./index-0n9q1f23.js";
7
+ import"./index-r8gp8zk3.js";
8
8
  import {
9
9
  renderPrimitiveReport
10
- } from "./index-d65fzxvd.js";
10
+ } from "./index-2s2e5qnd.js";
11
11
  import {
12
12
  ScalarScript
13
- } from "./index-xfgdmm5d.js";
13
+ } from "./index-2ctqegdm.js";
14
14
 
15
15
  // pkgs/@akanjs/cli/scalar/scalar.command.ts
16
16
  import { Logger, lowerlize } from "akanjs/common";
@@ -11,15 +11,15 @@ import {
11
11
  runner,
12
12
  script,
13
13
  command
14
- } from "./index-58cyna2s.js";
14
+ } from "./index-b68zfsvz.js";
15
15
  import {
16
16
  Executor,
17
17
  WorkspaceExecutor,
18
18
  AppExecutor
19
- } from "./index-0n9q1f23.js";
19
+ } from "./index-r8gp8zk3.js";
20
20
  import {
21
21
  SlicePlanner
22
- } from "./index-860zjnr1.js";
22
+ } from "./index-nbg9bfnr.js";
23
23
  import {
24
24
  LibSource
25
25
  } from "./index-bjwxs904.js";
@@ -716,7 +716,7 @@ class SubspaceRunner extends runner("subspace") {
716
716
  if (!asked)
717
717
  return { name: subspace.name, workspaceId, host, apps, libs: [], outcome: "cancelled", files: [] };
718
718
  const { libs } = await subspace.slice();
719
- const { CloudScript } = await import("./cloud.script-wrw1kz6k.js");
719
+ const { CloudScript } = await import("./cloud.script-55s1cmz9.js");
720
720
  const { files } = await CommandContainer.get(CloudScript).uploadEnv(workspace, {
721
721
  host,
722
722
  workspaceId,
@@ -30,7 +30,7 @@ ${scalarModules.map(([model]) => ` { constant: cnst.${model}, database: db.${
30
30
 
31
31
  ${scanInfo.type === "app" ? `export const server = new AkanServer("${scanInfo.name}", env, undefined${libs.length ? `, ${libs.join(", ")}` : ""}, lib);` : ""}
32
32
 
33
- export { env } from "./env/env.server.testing";
33
+ ${scanInfo.type === "lib" ? `export { env } from "./env/env.server.testing";` : ""}
34
34
  export * as db from "./lib/db";
35
35
  export * as srv from "./lib/srv";
36
36
  export * as sig from "./lib/sig";
@@ -9,10 +9,10 @@ import {
9
9
  runner,
10
10
  script,
11
11
  command
12
- } from "./index-58cyna2s.js";
12
+ } from "./index-b68zfsvz.js";
13
13
  import {
14
14
  AppExecutor
15
- } from "./index-0n9q1f23.js";
15
+ } from "./index-r8gp8zk3.js";
16
16
  import {
17
17
  TunnelShare2
18
18
  } from "./index-2wc41k5w.js";
@@ -3,20 +3,20 @@ import {
3
3
  Workspace,
4
4
  script,
5
5
  command
6
- } from "./index-58cyna2s.js";
6
+ } from "./index-b68zfsvz.js";
7
7
  import"./index-52w0fvh8.js";
8
- import"./index-0n9q1f23.js";
8
+ import"./index-r8gp8zk3.js";
9
9
  import"./index-hj6w4ka1.js";
10
- import"./index-d65fzxvd.js";
11
- import"./index-hzy4pe24.js";
12
- import"./index-v4hnkqz9.js";
13
- import"./index-zazvn45w.js";
14
- import"./index-6dt6zft6.js";
15
- import"./index-t02g6dpn.js";
16
- import"./index-xfgdmm5d.js";
10
+ import"./index-2s2e5qnd.js";
11
+ import"./index-0pqzrbpr.js";
12
+ import"./index-ss828r32.js";
13
+ import"./index-genegfnt.js";
14
+ import"./index-20r2g1t3.js";
15
+ import"./index-2z30v4k5.js";
16
+ import"./index-2ctqegdm.js";
17
17
  import {
18
18
  WorkflowRunner
19
- } from "./index-da72pfdv.js";
19
+ } from "./index-h9ed99ax.js";
20
20
 
21
21
  // pkgs/@akanjs/cli/workflow/workflow.script.ts
22
22
  import { Logger } from "akanjs/common";
@@ -11,7 +11,7 @@ import {
11
11
  runner,
12
12
  script,
13
13
  command
14
- } from "./index-58cyna2s.js";
14
+ } from "./index-b68zfsvz.js";
15
15
  import {
16
16
  extractAgentBlock,
17
17
  collectScopeRecipeSources,
@@ -22,7 +22,7 @@ import {
22
22
  AppExecutor,
23
23
  LibExecutor,
24
24
  PkgExecutor
25
- } from "./index-0n9q1f23.js";
25
+ } from "./index-r8gp8zk3.js";
26
26
  import {
27
27
  countBlocking,
28
28
  formatStyleContract,
@@ -32,43 +32,43 @@ import {
32
32
  collectRecipeSources2,
33
33
  scanRecipes2
34
34
  } from "./index-hj6w4ka1.js";
35
- import"./index-d65fzxvd.js";
36
- import"./index-hzy4pe24.js";
35
+ import"./index-2s2e5qnd.js";
36
+ import"./index-0pqzrbpr.js";
37
37
  import"./index-zzvvc845.js";
38
38
  import {
39
39
  AgentScript
40
- } from "./index-ggfhz9ab.js";
40
+ } from "./index-rbeahw6j.js";
41
41
  import"./index-48k96p55.js";
42
+ import"./index-1hs6jrys.js";
42
43
  import {
43
44
  LibraryScript
44
- } from "./index-5mm3g24t.js";
45
+ } from "./index-qtz88kh0.js";
45
46
  import {
46
47
  ApplicationScript
47
- } from "./index-118vq9dh.js";
48
- import"./index-y736f42m.js";
48
+ } from "./index-n9gxx7bp.js";
49
49
  import"./index-7md2g9vw.js";
50
50
  import"./index-2ahj896a.js";
51
51
  import {
52
52
  PackageScript
53
- } from "./index-per2kqy9.js";
53
+ } from "./index-k7809wmg.js";
54
54
  import {
55
55
  getNpmRegistryUrl,
56
56
  getLatestPackageVersion
57
- } from "./index-56xwsgyn.js";
57
+ } from "./index-rrt9pnb4.js";
58
58
  import {
59
59
  CloudScript2
60
- } from "./index-tg09x14f.js";
61
- import"./index-w5pet0nq.js";
62
- import"./index-t02g6dpn.js";
63
- import"./index-v4hnkqz9.js";
64
- import"./index-zazvn45w.js";
65
- import"./index-6dt6zft6.js";
66
- import"./index-xfgdmm5d.js";
67
- import"./index-da72pfdv.js";
60
+ } from "./index-g44da4r2.js";
61
+ import"./index-16k7m3cs.js";
62
+ import"./index-2z30v4k5.js";
63
+ import"./index-ss828r32.js";
64
+ import"./index-genegfnt.js";
65
+ import"./index-20r2g1t3.js";
66
+ import"./index-2ctqegdm.js";
67
+ import"./index-h9ed99ax.js";
68
68
  import {
69
69
  ContextScript
70
- } from "./index-j9z8vg2n.js";
71
- import"./index-860zjnr1.js";
70
+ } from "./index-2yvy9ztj.js";
71
+ import"./index-nbg9bfnr.js";
72
72
 
73
73
  // pkgs/@akanjs/cli/workspace/workspace.runner.ts
74
74
  import path from "path";
package/README.ko.md DELETED
@@ -1,72 +0,0 @@
1
- # @akanjs/cli
2
-
3
- [문서](https://akanjs.com/docs) | [npm](https://www.npmjs.com/package/@akanjs/cli) | [런타임](https://www.npmjs.com/package/akanjs)
4
-
5
- Akan.js 워크스페이스를 위한 command-line tooling입니다.
6
-
7
- `@akanjs/cli`는 Akan 애플리케이션, 라이브러리, 프레임워크 패키지를 생성, 빌드, 테스트, 린트,
8
- 릴리즈, 유지보수하는 데 사용하는 `akan` 실행 파일을 제공합니다. Bun-first CLI 패키지이며 Akan
9
- 개발 tooling을 내부에 번들링하므로, 애플리케이션 런타임은 더 작은 `akanjs` 패키지에만 의존할 수
10
- 있습니다.
11
-
12
- ## 설치
13
-
14
- 새 워크스페이스를 바로 만들 수 있습니다.
15
-
16
- ```bash
17
- bunx create-akan-workspace@latest
18
- ```
19
-
20
- 또는 CLI를 전역으로 설치할 수 있습니다.
21
-
22
- ```bash
23
- bun install -g @akanjs/cli@latest
24
- akan --help
25
- ```
26
-
27
- ## 자주 쓰는 명령
28
-
29
- ```bash
30
- akan create-workspace <workspace-name>
31
- akan start <app-name>
32
- akan build <app-name>
33
- akan test <app-or-lib-or-pkg>
34
- akan lint <app-or-lib-or-pkg>
35
- akan create-application <app-name>
36
- akan create-library <lib-name>
37
- akan create-module <module-name>
38
- akan create-scalar <scalar-name>
39
- ```
40
-
41
- 패키지 유지보수 명령도 같은 실행 파일에서 제공합니다.
42
-
43
- ```bash
44
- akan build-package akanjs
45
- akan build-package @akanjs/cli
46
- akan build-package @akanjs/devkit
47
- akan build-package create-akan-workspace
48
- akan verify-akan-publish-packages
49
- akan smoke-registry --test=true --tag=rc
50
- ```
51
-
52
- Akan framework 패키지는 반드시 `dist/pkgs/*` 산출물 기준으로 publish합니다. `verify-akan-publish-packages`는
53
- 빌드된 패키지에 `npm pack --dry-run --json`을 실행하고, `deploy-akan` 또는 local registry smoke 전에 필요한
54
- metadata를 검증합니다.
55
- 저장소 릴리즈에서는 root `akan` bootstrap script가 CLI dist를 덮어쓰지 않도록
56
- `bun run release:build-packages && bun run release:verify-packages`를 우선 사용합니다.
57
-
58
- ## 패키지 경계
59
-
60
- - 애플리케이션과 런타임 코드는 `akanjs`를 사용합니다.
61
- - 사용자-facing 실행 패키지는 `@akanjs/cli`입니다.
62
- - `@akanjs/devkit`은 published CLI 사용을 위해 CLI 안에 번들링됩니다. 일반 CLI 사용자가 별도의
63
- runtime dependency로 설치할 필요는 없습니다.
64
-
65
- ## 요구사항
66
-
67
- - [Bun](https://bun.sh) `>=1.4.0`
68
- - TypeScript 기반 Akan 워크스페이스
69
-
70
- ## 라이선스
71
-
72
- MIT