@akanjs/cli 2.4.1-rc.0 → 2.4.1-rc.1

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.
package/README.ko.md ADDED
@@ -0,0 +1,72 @@
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.3.13`
68
+ - TypeScript 기반 Akan 워크스페이스
69
+
70
+ ## 라이선스
71
+
72
+ MIT
package/README.md ADDED
@@ -0,0 +1,85 @@
1
+ # @akanjs/cli
2
+
3
+ [Docs](https://akanjs.com/docs) | [npm](https://www.npmjs.com/package/@akanjs/cli) | [Runtime](https://www.npmjs.com/package/akanjs)
4
+
5
+ Command-line tooling for Akan.js workspaces.
6
+
7
+ `@akanjs/cli` provides the `akan` executable used to create, build, test, lint, release, and maintain Akan
8
+ applications, libraries, and framework packages. It is a Bun-first CLI package and bundles Akan development
9
+ tooling internally so application runtimes can depend on the smaller `akanjs` package.
10
+
11
+ ## Install
12
+
13
+ Create a new workspace:
14
+
15
+ ```bash
16
+ bunx create-akan-workspace@latest
17
+ ```
18
+
19
+ Or install the CLI globally:
20
+
21
+ ```bash
22
+ bun install -g @akanjs/cli@latest
23
+ akan --help
24
+ ```
25
+
26
+ ## Common Commands
27
+
28
+ ```bash
29
+ akan create-workspace <workspace-name>
30
+ akan start <app-name>
31
+ akan build <app-name>
32
+ akan test <app-or-lib-or-pkg>
33
+ akan lint <app-or-lib-or-pkg>
34
+ akan create-application <app-name>
35
+ akan create-library <lib-name>
36
+ akan create-module <module-name>
37
+ akan create-scalar <scalar-name>
38
+ ```
39
+
40
+ ## Agent And MCP Commands
41
+
42
+ ```bash
43
+ akan context --format markdown
44
+ akan context --format json --module <module-name>
45
+ akan doctor --format json
46
+ akan guideline list
47
+ akan guideline show framework
48
+ akan agent install cursor
49
+ akan mcp
50
+ ```
51
+
52
+ These commands expose Akan workspace structure, module abstracts, diagnostics, and guideline instructions for
53
+ coding agents. The MCP server is read-only and is intended to provide context rather than edit files directly.
54
+
55
+ Package maintenance commands are also exposed through the same executable:
56
+
57
+ ```bash
58
+ akan build-package akanjs
59
+ akan build-package @akanjs/cli
60
+ akan build-package @akanjs/devkit
61
+ akan build-package create-akan-workspace
62
+ akan verify-akan-publish-packages
63
+ akan smoke-registry --test=true --tag=rc
64
+ ```
65
+
66
+ Publish Akan framework packages from `dist/pkgs/*` only. `verify-akan-publish-packages` runs `npm pack --dry-run --json`
67
+ against the built packages and checks metadata that must be correct before `deploy-akan` or local registry smoke.
68
+ For repository releases, prefer `bun run release:build-packages && bun run release:verify-packages` so the CLI package
69
+ artifact is built last and is not overwritten by the root `akan` bootstrap script.
70
+
71
+ ## Package Boundary
72
+
73
+ - Use `akanjs` from application and runtime code.
74
+ - Use `@akanjs/cli` as the user-facing executable package.
75
+ - `@akanjs/devkit` is bundled into the CLI for published CLI usage; it is not required as a separate
76
+ runtime dependency for ordinary CLI users.
77
+
78
+ ## Requirements
79
+
80
+ - [Bun](https://bun.sh) `>=1.3.13`
81
+ - A TypeScript Akan workspace
82
+
83
+ ## License
84
+
85
+ MIT
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  ApplicationScript
4
- } from "./index-9sp6fsc5.js";
4
+ } from "./index-77crfweb.js";
5
5
  import {
6
6
  getMobileTargetChoices
7
7
  } from "./index-76rn3g2c.js";
@@ -4,7 +4,7 @@ import {
4
4
  CsrArtifactBuilder,
5
5
  SsrBaseArtifactBuilder,
6
6
  precompressArtifacts
7
- } from "./index-xmc2w32q.js";
7
+ } from "./index-a5rmdgy4.js";
8
8
  import {
9
9
  Spinner
10
10
  } from "./index-6pz1j0zj.js";
@@ -1,9 +1,9 @@
1
1
  // @bun
2
2
  import {
3
3
  CloudScript
4
- } from "./index-b0brjbp3.js";
5
- import"./index-w7fyqjrw.js";
6
- import"./index-9sp6fsc5.js";
4
+ } from "./index-z9gvz7b0.js";
5
+ import"./index-sgmas1fc.js";
6
+ import"./index-77crfweb.js";
7
7
  import"./index-76rn3g2c.js";
8
8
  import"./index-pmm9e2jf.js";
9
9
  import"./index-wq8jwx8z.js";
@@ -18,7 +18,7 @@ import {
18
18
  RouteClientBuilder,
19
19
  SsrBaseArtifactBuilder,
20
20
  WatchRootResolver
21
- } from "./index-xmc2w32q.js";
21
+ } from "./index-a5rmdgy4.js";
22
22
  import"./index-61keag0s.js";
23
23
  import"./index-6pz1j0zj.js";
24
24
  import"./index-r24hmh0q.js";
@@ -1259,7 +1259,7 @@ function openBrowser(url) {
1259
1259
  }
1260
1260
 
1261
1261
  // pkgs/@akanjs/cli/application/application.runner.ts
1262
- var loadBuildRunner = async () => (await import("./applicationBuildRunner-esa1kj7v.js")).ApplicationBuildRunner;
1262
+ var loadBuildRunner = async () => (await import("./applicationBuildRunner-yz144508.js")).ApplicationBuildRunner;
1263
1263
  var loadReleasePackager = async () => (await import("./applicationReleasePackager-brvth6rs.js")).ApplicationReleasePackager;
1264
1264
  var loadCapacitorApp = async () => (await import("./capacitorApp-y0h6cgft.js")).CapacitorApp;
1265
1265
  var loadPrompts = async () => await import("@inquirer/prompts");
@@ -915,7 +915,7 @@ class ClientEntriesBundler {
915
915
  };
916
916
  }
917
917
  #getDefine() {
918
- const nodeEnv = this.#command === "build" ? "production" : "test";
918
+ const nodeEnv = this.#command === "build" ? "production" : "development";
919
919
  return {
920
920
  "process.env.NODE_ENV": JSON.stringify(nodeEnv),
921
921
  "process.env.AKAN_PUBLIC_RENDER_ENV": JSON.stringify("ssr"),
@@ -2477,7 +2477,7 @@ ${logs}` : ""}`);
2477
2477
  return path13.join(this.#command === "build" ? this.#app.dist.cwdPath : this.#app.cwdPath, this.#command === "build" ? "csr" : ".akan/artifact/csr");
2478
2478
  }
2479
2479
  #define() {
2480
- const nodeEnv = this.#command === "build" ? "production" : "test";
2480
+ const nodeEnv = this.#command === "build" ? "production" : "development";
2481
2481
  return {
2482
2482
  "process.env.NODE_ENV": JSON.stringify(nodeEnv),
2483
2483
  "process.env.AKAN_PUBLIC_RENDER_ENV": JSON.stringify("csr"),
@@ -3674,7 +3674,7 @@ class PagesBundleBuilder {
3674
3674
  return process.env.AKAN_SERVER_PAGES_SPLITTING === "1";
3675
3675
  }
3676
3676
  #define() {
3677
- const nodeEnv = this.#command === "build" ? "production" : "test";
3677
+ const nodeEnv = this.#command === "build" ? "production" : "development";
3678
3678
  return {
3679
3679
  "process.env.NODE_ENV": JSON.stringify(nodeEnv),
3680
3680
  "process.env.AKAN_PUBLIC_RENDER_ENV": JSON.stringify("ssr"),
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  openBrowser
4
- } from "./index-9sp6fsc5.js";
4
+ } from "./index-77crfweb.js";
5
5
  import {
6
6
  AiSession,
7
7
  CloudApi,
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  CloudRunner
4
- } from "./index-w7fyqjrw.js";
4
+ } from "./index-sgmas1fc.js";
5
5
  import {
6
6
  ApplicationScript
7
- } from "./index-9sp6fsc5.js";
7
+ } from "./index-77crfweb.js";
8
8
  import {
9
9
  PackageScript
10
10
  } from "./index-wq8jwx8z.js";
package/index.js CHANGED
@@ -17,16 +17,16 @@ import path from "path";
17
17
 
18
18
  // pkgs/@akanjs/cli/commandModules.ts
19
19
  var commandModules = {
20
- workspace: async () => (await import("./workspace.command-vrws0rgx.js")).WorkspaceCommand,
20
+ workspace: async () => (await import("./workspace.command-xk68sd6c.js")).WorkspaceCommand,
21
21
  agent: async () => (await import("./agent.command-h4afc69n.js")).AgentCommand,
22
- application: async () => (await import("./application.command-4ctkfdan.js")).ApplicationCommand,
22
+ application: async () => (await import("./application.command-47mj9qsy.js")).ApplicationCommand,
23
23
  library: async () => (await import("./library.command-r15zdqvp.js")).LibraryCommand,
24
- localRegistry: async () => (await import("./localRegistry.command-5tcahs3f.js")).LocalRegistryCommand,
24
+ localRegistry: async () => (await import("./localRegistry.command-p1pgxw78.js")).LocalRegistryCommand,
25
25
  package: async () => (await import("./package.command-r8sq5kzp.js")).PackageCommand,
26
26
  module: async () => (await import("./module.command-qrj3kmyz.js")).ModuleCommand,
27
27
  page: async () => (await import("./page.command-c6xdx0xm.js")).PageCommand,
28
28
  context: async () => (await import("./context.command-nqbtak4f.js")).ContextCommand,
29
- cloud: async () => (await import("./cloud.command-rpztn4fh.js")).CloudCommand,
29
+ cloud: async () => (await import("./cloud.command-qgjxja3n.js")).CloudCommand,
30
30
  guideline: async () => (await import("./guideline.command-ya0dh44f.js")).GuidelineCommand,
31
31
  scalar: async () => (await import("./scalar.command-kabkd6wd.js")).ScalarCommand,
32
32
  primitive: async () => (await import("./primitive.command-pv9ssmtf.js")).PrimitiveCommand,
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  CloudRunner,
4
4
  getNpmRegistryUrl
5
- } from "./index-w7fyqjrw.js";
5
+ } from "./index-sgmas1fc.js";
6
6
  import {
7
7
  ApplicationScript
8
- } from "./index-9sp6fsc5.js";
8
+ } from "./index-77crfweb.js";
9
9
  import"./index-76rn3g2c.js";
10
10
  import"./index-pmm9e2jf.js";
11
11
  import {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akanjs/cli",
3
- "version": "2.4.1-rc.0",
3
+ "version": "2.4.1-rc.1",
4
4
  "sourceType": "module",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -34,7 +34,7 @@
34
34
  "@langchain/openai": "^1.4.6",
35
35
  "@tailwindcss/node": "^4.3.0",
36
36
  "@trapezedev/project": "^7.1.4",
37
- "akanjs": "2.4.1-rc.0",
37
+ "akanjs": "2.4.1-rc.1",
38
38
  "chalk": "^5.6.2",
39
39
  "commander": "^14.0.3",
40
40
  "daisyui": "5.5.23",
@@ -5,7 +5,7 @@ import {
5
5
  import"./index-45aj5ry0.js";
6
6
  import {
7
7
  CloudScript
8
- } from "./index-b0brjbp3.js";
8
+ } from "./index-z9gvz7b0.js";
9
9
  import"./index-y3hdhy4p.js";
10
10
  import"./index-73pr2cmy.js";
11
11
  import"./index-85msc0wg.js";
@@ -17,10 +17,10 @@ import"./index-8rc0bm04.js";
17
17
  import {
18
18
  getLatestPackageVersion,
19
19
  getNpmRegistryUrl
20
- } from "./index-w7fyqjrw.js";
20
+ } from "./index-sgmas1fc.js";
21
21
  import {
22
22
  ApplicationScript
23
- } from "./index-9sp6fsc5.js";
23
+ } from "./index-77crfweb.js";
24
24
  import"./index-76rn3g2c.js";
25
25
  import {
26
26
  LibraryScript