@akanjs/cli 3.0.0-beta.7 → 3.0.0-beta.9

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 (41) hide show
  1. package/.build-stamp +1 -1
  2. package/{abstractCompactor-mjh5ppsq.js → abstractCompactor-gmkc0z8j.js} +2 -1
  3. package/{agent.command-d2gfxfck.js → agent.command-0q17pnrs.js} +2 -2
  4. package/{application.command-pj2m7584.js → application.command-18y0s485.js} +3 -3
  5. package/{cloud.command-jshwdq22.js → cloud.command-av97ndh6.js} +10 -9
  6. package/cloud.script-cm11xjdz.js +20 -0
  7. package/{context.command-ez8a0zyz.js → context.command-5v37ef3n.js} +10 -9
  8. package/{devTui-40ggmd99.js → devTui-m1atgkc9.js} +1 -1
  9. package/{devTuiView-c08ccbat.js → devTuiView-0hc2emhe.js} +1 -1
  10. package/{guideline.command-xmqwx8zm.js → guideline.command-4pz9g1rt.js} +3 -2
  11. package/guidelines/agentRule/agentRule.instruction.md +37 -0
  12. package/{index-fz5q3gd7.js → index-04bk599g.js} +1 -1
  13. package/{index-zry5nz81.js → index-2xp0kfkt.js} +22 -13
  14. package/{index-8pm30m73.js → index-5ystnsd5.js} +5 -5
  15. package/{index-ws5e0j51.js → index-9077wzd2.js} +1 -1
  16. package/{index-rwg2aa4f.js → index-a17x49vg.js} +2 -2
  17. package/{index-4edzf1gr.js → index-d43r08tf.js} +2 -2
  18. package/{index-7737gxcp.js → index-ffvk10zz.js} +1 -1
  19. package/{index-ne2qy0nk.js → index-k2j1hc4r.js} +1 -1
  20. package/index-m0xccmmm.js +228 -0
  21. package/{index-2hq52jq3.js → index-rtxxan88.js} +24 -18
  22. package/{index-v0qh106m.js → index-sj5vxr8f.js} +4 -4
  23. package/{index-kn1h7p1x.js → index-te54x9zm.js} +3 -225
  24. package/{index-259dsnz3.js → index-vxtad5bd.js} +1 -1
  25. package/{index-pnqbkf5p.js → index-vyvre9en.js} +1 -1
  26. package/{index-600zhnve.js → index-y6n8nmny.js} +6 -6
  27. package/index.js +18 -18
  28. package/{library.command-nbsky672.js → library.command-qzzbj6d8.js} +2 -2
  29. package/{localRegistry.command-yeq57wjr.js → localRegistry.command-vyrgg4xw.js} +7 -6
  30. package/{module.command-29vqzrh8.js → module.command-rq5hq3ax.js} +5 -4
  31. package/{package.command-axv0abmn.js → package.command-d9hd6v9n.js} +2 -2
  32. package/package.json +2 -2
  33. package/{page.command-vs9s3zrh.js → page.command-126d56te.js} +2 -2
  34. package/{primitive.command-cbxmqbtc.js → primitive.command-taxd1538.js} +6 -5
  35. package/{quality.command-gmbs7nws.js → quality.command-6gsna0a3.js} +1 -1
  36. package/{repair.command-bqsjptsj.js → repair.command-tq2dgy72.js} +2 -2
  37. package/{scalar.command-6k1vhe9s.js → scalar.command-3bcmrrkv.js} +4 -3
  38. package/{subspace.command-fwjfcts7.js → subspace.command-eddzqpx3.js} +90 -10
  39. package/{workflow.command-nwpcdc8p.js → workflow.command-gtdnzvbz.js} +8 -7
  40. package/{workspace.command-8s050m0h.js → workspace.command-06wvstgr.js} +18 -17
  41. package/{index-mak3cd28.js → index-0g7r8xz3.js} +24 -24
@@ -2,19 +2,28 @@
2
2
  import {
3
3
  getDefaultHostConfig,
4
4
  GlobalConfig,
5
- CloudApi,
6
- AiSession
7
- } from "./index-kn1h7p1x.js";
5
+ CloudApi
6
+ } from "./index-m0xccmmm.js";
8
7
  import {
9
8
  WorkspaceExecutor,
10
9
  AppExecutor
11
10
  } from "./index-2tv3fdx4.js";
11
+ import {
12
+ AiSession
13
+ } from "./index-te54x9zm.js";
12
14
  import {
13
15
  runner
14
- } from "./index-mak3cd28.js";
16
+ } from "./index-0g7r8xz3.js";
15
17
  import {
16
18
  openBrowser
17
- } from "./index-v0qh106m.js";
19
+ } from "./index-sj5vxr8f.js";
20
+
21
+ // pkgs/@akanjs/cli/cloud/cloud.runner.ts
22
+ import path from "path";
23
+ import { confirm, input, select } from "@inquirer/prompts";
24
+ import { Logger, sleep } from "akanjs/common";
25
+ import chalk from "chalk";
26
+ import * as QRcode from "qrcode";
18
27
 
19
28
  // pkgs/@akanjs/cli/npmRegistry.ts
20
29
  var defaultNpmRegistry = "https://registry.npmjs.org";
@@ -33,11 +42,6 @@ async function getLatestPackageVersion(packageName, tag = "latest", registryUrl)
33
42
  }
34
43
 
35
44
  // pkgs/@akanjs/cli/cloud/cloud.runner.ts
36
- import path from "path";
37
- import { confirm, input, select } from "@inquirer/prompts";
38
- import { Logger, sleep } from "akanjs/common";
39
- import chalk from "chalk";
40
- import * as QRcode from "qrcode";
41
45
  var addRemoteEnvServerValue = "__addRemoteEnvServer";
42
46
  var removeRemoteEnvServerValue = "__removeRemoteEnvServer";
43
47
 
@@ -393,26 +397,28 @@ ${chalk.green("\u27A4")} Authentication Required`));
393
397
  throw new Error(`Failed to upload env archive to remote server "${remoteServer.name}"`, { cause: error });
394
398
  }
395
399
  }
396
- async gatherEnvFiles(workspace) {
400
+ async gatherEnvFiles(workspace, { scope, archivePath = "local/env.tar" } = {}) {
397
401
  const envFilePattern = /^env\.(client|server)\.(?!(type|example)\.ts$).+\.ts$/;
398
- const [appNames, libNames] = await workspace.getExecs();
402
+ const [workspaceAppNames, workspaceLibNames] = await workspace.getExecs();
403
+ const appNames = scope?.apps ?? workspaceAppNames;
404
+ const libNames = scope?.libs ?? workspaceLibNames;
399
405
  const envDirs = [
400
406
  ...appNames.map((appName) => `apps/${appName}/env`),
401
407
  ...libNames.map((libName) => `libs/${libName}/env`)
402
408
  ];
403
409
  const defaultEnvFilePaths = (await Promise.all(envDirs.map(async (envDir) => (await workspace.readdir(envDir)).filter((fileName) => envFilePattern.test(fileName)).map((fileName) => `${envDir}/${fileName}`)))).flat();
404
- await this.#syncSecretGitignore(workspace, appNames);
410
+ await this.#syncSecretGitignore(workspace, workspaceAppNames);
405
411
  const customSecretPaths = await this.#gatherCustomSecretFiles(workspace, appNames);
406
412
  const envFilePaths = [...new Set([...defaultEnvFilePaths, ...customSecretPaths])].sort();
407
413
  await workspace.mkdir("local");
408
- await workspace.remove("local/env.tar");
414
+ await workspace.remove(archivePath);
409
415
  if (envFilePaths.length === 0)
410
- throw new Error("No environment files found to archive");
411
- await workspace.spawn("tar", ["-cf", "local/env.tar", ...envFilePaths], {
416
+ throw new Error(scope ? `No environment files found to archive for ${appNames.join(", ") || "(no apps)"}` : "No environment files found to archive");
417
+ await workspace.spawn("tar", ["-cf", archivePath, ...envFilePaths], {
412
418
  cwd: workspace.workspaceRoot
413
419
  });
414
- Logger.info(`Archived ${envFilePaths.length} environment files to local/env.tar`);
415
- return { files: envFilePaths, path: "local/env.tar" };
420
+ Logger.info(`Archived ${envFilePaths.length} environment files to ${archivePath}`);
421
+ return { files: envFilePaths, path: archivePath };
416
422
  }
417
423
  async#gatherCustomSecretFiles(workspace, appNames) {
418
424
  const secretPaths = await Promise.all(appNames.map(async (appName) => {
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  runner,
4
4
  script
5
- } from "./index-mak3cd28.js";
5
+ } from "./index-0g7r8xz3.js";
6
6
  import {
7
7
  WorkspaceExecutor,
8
8
  AppExecutor,
@@ -11,7 +11,7 @@ import {
11
11
  } from "./index-2tv3fdx4.js";
12
12
  import {
13
13
  LibraryScript
14
- } from "./index-259dsnz3.js";
14
+ } from "./index-vxtad5bd.js";
15
15
  import {
16
16
  HmrWatcher,
17
17
  WatchRootResolver
@@ -2052,7 +2052,7 @@ import ora from "ora";
2052
2052
  var loadBuildRunner = async () => (await import("./applicationBuildRunner-kxwbssgn.js")).ApplicationBuildRunner;
2053
2053
  var loadReleasePackager = async () => (await import("./applicationReleasePackager-4yasxwv9.js")).ApplicationReleasePackager;
2054
2054
  var loadCapacitorApp = async () => (await import("./capacitorApp-36rbr858.js")).CapacitorApp;
2055
- var loadAbstractCompactor = async () => (await import("./abstractCompactor-mjh5ppsq.js")).AbstractCompactor;
2055
+ var loadAbstractCompactor = async () => (await import("./abstractCompactor-gmkc0z8j.js")).AbstractCompactor;
2056
2056
  var loadPrompts = async () => await import("@inquirer/prompts");
2057
2057
 
2058
2058
  class ApplicationRunner extends runner("application") {
@@ -3283,7 +3283,7 @@ class ApplicationScript extends script("application", [ApplicationRunner, Librar
3283
3283
  throw new Error("No app selected to start");
3284
3284
  const startedDatabase = dbup ? await this.#prepareSharedDatabase(apps) : false;
3285
3285
  const supervisor = new DevSupervisor({ apps, mode, concurrency, open, write });
3286
- const view = mode === "tui" ? await (await import("./devTuiView-c08ccbat.js")).createDevTuiView(supervisor) : new DevStreamView(apps.map((app) => app.name));
3286
+ const view = mode === "tui" ? await (await import("./devTuiView-0hc2emhe.js")).createDevTuiView(supervisor) : new DevStreamView(apps.map((app) => app.name));
3287
3287
  await supervisor.run(view);
3288
3288
  if (startedDatabase)
3289
3289
  await this.#stopDatabase(workspace);
@@ -1,233 +1,11 @@
1
1
  // @bun
2
2
  import {
3
- FileSys
4
- } from "./index-q0y2jq9j.js";
3
+ GlobalConfig
4
+ } from "./index-m0xccmmm.js";
5
5
  import {
6
6
  Spinner
7
7
  } from "./index-2tv3fdx4.js";
8
8
 
9
- // pkgs/@akanjs/devkit/cloud/globalConfig.ts
10
- import { chmod, mkdir } from "fs/promises";
11
- import dayjs from "dayjs";
12
-
13
- // pkgs/@akanjs/devkit/cloud/constants.ts
14
- var basePath = `${Bun.env.HOME ?? Bun.env.USERPROFILE}/.akan`;
15
- var configPath = `${basePath}/config.json`;
16
- var getDefaultHostConfig = (host = GlobalConfig.akanCloudHost) => ({ host });
17
- var defaultAkanGlobalConfig = {
18
- cloudHost: {},
19
- remoteEnvServers: {},
20
- llm: null
21
- };
22
-
23
- // pkgs/@akanjs/devkit/cloud/globalConfig.ts
24
- class GlobalConfig {
25
- static akanCloudHost = process.env.USE_AKANJS_PKGS === "true" ? `http://localhost:${process.env.CLOUD_HOST_PORT ?? 8283}` : "https://cloud.akanjs.com";
26
- static async#getAkanGlobalConfig() {
27
- const exists = await FileSys.fileExists(configPath);
28
- const akanConfig = exists ? await FileSys.readJson(configPath) : {};
29
- return {
30
- ...defaultAkanGlobalConfig,
31
- ...akanConfig,
32
- cloudHost: akanConfig.cloudHost ?? defaultAkanGlobalConfig.cloudHost,
33
- remoteEnvServers: akanConfig.remoteEnvServers ?? defaultAkanGlobalConfig.remoteEnvServers
34
- };
35
- }
36
- static async#setAkanGlobalConfig(akanConfig) {
37
- await mkdir(basePath, { recursive: true, mode: 448 });
38
- await Bun.write(configPath, JSON.stringify(akanConfig, null, 2));
39
- await chmod(configPath, 384);
40
- }
41
- static async getHostConfig(host = GlobalConfig.akanCloudHost) {
42
- const akanConfig = await GlobalConfig.#getAkanGlobalConfig();
43
- return GlobalConfig.toHostConfig(akanConfig.cloudHost[host] ?? getDefaultHostConfig(host));
44
- }
45
- static async setHostConfig(config = getDefaultHostConfig()) {
46
- const akanConfig = await GlobalConfig.#getAkanGlobalConfig();
47
- akanConfig.cloudHost[config.host] = GlobalConfig.toHostConfigDto(config);
48
- await GlobalConfig.#setAkanGlobalConfig(akanConfig);
49
- }
50
- static async getLlmConfig() {
51
- const akanConfig = await GlobalConfig.#getAkanGlobalConfig();
52
- return akanConfig.llm ?? null;
53
- }
54
- static async setLlmConfig(llmConfig) {
55
- const akanConfig = await GlobalConfig.#getAkanGlobalConfig();
56
- await GlobalConfig.#setAkanGlobalConfig({ ...akanConfig, llm: llmConfig });
57
- }
58
- static async getRemoteEnvServers() {
59
- const akanConfig = await GlobalConfig.#getAkanGlobalConfig();
60
- return akanConfig.remoteEnvServers;
61
- }
62
- static async setRemoteEnvServer(name, config) {
63
- const akanConfig = await GlobalConfig.#getAkanGlobalConfig();
64
- await GlobalConfig.#setAkanGlobalConfig({
65
- ...akanConfig,
66
- remoteEnvServers: {
67
- ...akanConfig.remoteEnvServers,
68
- [name]: config
69
- }
70
- });
71
- }
72
- static async removeRemoteEnvServer(name) {
73
- const akanConfig = await GlobalConfig.#getAkanGlobalConfig();
74
- const { [name]: _, ...remoteEnvServers } = akanConfig.remoteEnvServers;
75
- await GlobalConfig.#setAkanGlobalConfig({
76
- ...akanConfig,
77
- remoteEnvServers
78
- });
79
- }
80
- static needRefreshToken(accessToken) {
81
- return !!accessToken?.expiresAt?.isBefore(dayjs().add(1, "hour"));
82
- }
83
- static toAccessToken(accessToken) {
84
- return {
85
- jwt: accessToken.jwt,
86
- refreshToken: accessToken.refreshToken ?? null,
87
- expiresAt: accessToken.expiresAt ? dayjs(accessToken.expiresAt) : null
88
- };
89
- }
90
- static toAccessTokenDto(accessToken) {
91
- return {
92
- jwt: accessToken.jwt,
93
- refreshToken: accessToken.refreshToken ?? null,
94
- expiresAt: accessToken.expiresAt?.toString() ?? null
95
- };
96
- }
97
- static toHostConfigDto(hostConfig) {
98
- return {
99
- host: hostConfig.host,
100
- auth: {
101
- accessToken: hostConfig.auth?.accessToken ? GlobalConfig.toAccessTokenDto(hostConfig.auth.accessToken) : undefined,
102
- self: hostConfig.auth?.self
103
- }
104
- };
105
- }
106
- static toHostConfig(hostConfigDto) {
107
- return {
108
- host: hostConfigDto.host,
109
- auth: {
110
- accessToken: hostConfigDto.auth?.accessToken ? GlobalConfig.toAccessToken(hostConfigDto.auth.accessToken) : undefined,
111
- self: hostConfigDto.auth?.self
112
- }
113
- };
114
- }
115
- }
116
-
117
- // pkgs/@akanjs/devkit/cloud/cloudApi.ts
118
- class HttpClient {
119
- baseUrl;
120
- headers = {};
121
- constructor(baseUrl, headers = {}) {
122
- this.baseUrl = baseUrl;
123
- this.headers = headers;
124
- }
125
- async get(url, { headers } = {}) {
126
- const response = await fetch(`${this.baseUrl}${url}`, {
127
- headers: {
128
- "Content-Type": "application/json",
129
- ...this.headers,
130
- ...headers
131
- }
132
- });
133
- return await response.json();
134
- }
135
- async getFile(url, localPath, headers) {
136
- const response = await fetch(`${this.baseUrl}${url}`, {
137
- headers: { ...this.headers, ...headers }
138
- });
139
- if (!response.ok)
140
- throw new Error(`Failed to download file: ${response.status} ${response.statusText}`);
141
- await Bun.write(localPath, response);
142
- }
143
- async post(url, data, { headers } = {}) {
144
- const isFormData = data instanceof FormData;
145
- const response = await fetch(`${this.baseUrl}${url}`, {
146
- method: "POST",
147
- body: isFormData ? data : JSON.stringify(data),
148
- headers: isFormData ? { ...this.headers, ...headers } : { "Content-Type": "application/json", ...this.headers, ...headers }
149
- });
150
- return await response.json();
151
- }
152
- setHeaders(headers) {
153
- Object.assign(this.headers, headers);
154
- return this;
155
- }
156
- }
157
-
158
- class CloudApi {
159
- #api;
160
- #accessToken = null;
161
- #workspace;
162
- host;
163
- url;
164
- static async fromHost(workspace, host) {
165
- const hostConfig = await GlobalConfig.getHostConfig(host);
166
- return new CloudApi(workspace, hostConfig);
167
- }
168
- constructor(workspace, hostConfig) {
169
- this.#workspace = workspace;
170
- this.#accessToken = hostConfig.auth?.accessToken ?? null;
171
- this.host = hostConfig.host;
172
- this.url = `${this.host}/api`;
173
- this.#api = new HttpClient(this.url);
174
- if (this.#accessToken && !GlobalConfig.needRefreshToken(this.#accessToken))
175
- this.#api.setHeaders({
176
- Authorization: `Bearer ${this.#accessToken.jwt}`
177
- });
178
- }
179
- async uploadEnv(devProjectId, file) {
180
- const formData = new FormData;
181
- formData.append("devProjectId", devProjectId);
182
- formData.append("file", file);
183
- const data = await this.#api.post(`/uploadEnv/${devProjectId}`, formData);
184
- return data;
185
- }
186
- async downloadEnv(devProjectId) {
187
- const localPath = `${this.#workspace.workspaceRoot}/local/env.tar`;
188
- await this.#api.getFile(`/downloadEnv/${devProjectId}`, localPath);
189
- return localPath;
190
- }
191
- async getRemoteAuthToken(remoteId) {
192
- try {
193
- const accessToken = await this.#api.get(`/getRemoteAuthToken/${remoteId}`);
194
- this.#accessToken = GlobalConfig.toAccessToken(accessToken);
195
- this.#api.setHeaders({
196
- Authorization: `Bearer ${this.#accessToken.jwt}`
197
- });
198
- return this.#accessToken;
199
- } catch (_) {
200
- return null;
201
- }
202
- }
203
- async#ensureAccessTokenLive({
204
- allowUnauthorized = false
205
- } = {}) {
206
- if (!this.#accessToken)
207
- throw new Error("No access token");
208
- const needRefresh = GlobalConfig.needRefreshToken(this.#accessToken);
209
- if (!needRefresh)
210
- return this.#accessToken;
211
- const refreshToken = this.#accessToken?.refreshToken;
212
- if (!refreshToken)
213
- throw new Error("No refresh token");
214
- return await this.refreshAuthToken(refreshToken);
215
- }
216
- async refreshAuthToken(refreshToken) {
217
- const response = await this.#api.post(`/refreshAuthToken`, { refreshToken });
218
- this.#accessToken = GlobalConfig.toAccessToken(response);
219
- this.#api.setHeaders({ Authorization: `Bearer ${this.#accessToken.jwt}` });
220
- return this.#accessToken;
221
- }
222
- async getRemoteSelf() {
223
- try {
224
- const data = await this.#api.get(`/getRemoteSelf`);
225
- return data;
226
- } catch {
227
- return null;
228
- }
229
- }
230
- }
231
9
  // pkgs/@akanjs/devkit/aiEditor.ts
232
10
  import { input, select } from "@inquirer/prompts";
233
11
  import {
@@ -557,4 +335,4 @@ ${fileCheck.lintResult.message}`);
557
335
  }
558
336
  }
559
337
 
560
- export { getDefaultHostConfig, GlobalConfig, CloudApi, AiSession };
338
+ export { AiSession };
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  runner,
4
4
  script
5
- } from "./index-mak3cd28.js";
5
+ } from "./index-0g7r8xz3.js";
6
6
  import {
7
7
  LibExecutor
8
8
  } from "./index-2tv3fdx4.js";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  runner,
4
4
  script
5
- } from "./index-mak3cd28.js";
5
+ } from "./index-0g7r8xz3.js";
6
6
 
7
7
  // pkgs/@akanjs/cli/page/page.runner.ts
8
8
  class PageRunner extends runner("page") {
@@ -24,7 +24,7 @@ import {
24
24
  CommandContainer,
25
25
  runner,
26
26
  script
27
- } from "./index-mak3cd28.js";
27
+ } from "./index-0g7r8xz3.js";
28
28
  import {
29
29
  isPlaceholderAppId2
30
30
  } from "./index-wt7qrtd4.js";
@@ -33,19 +33,19 @@ import {
33
33
  } from "./index-h7yw2z9n.js";
34
34
  import {
35
35
  RepairRunner
36
- } from "./index-fz5q3gd7.js";
36
+ } from "./index-04bk599g.js";
37
37
  import {
38
38
  WorkflowRunner
39
- } from "./index-7737gxcp.js";
39
+ } from "./index-ffvk10zz.js";
40
40
  import {
41
41
  ModuleScript
42
- } from "./index-8pm30m73.js";
42
+ } from "./index-5ystnsd5.js";
43
43
  import {
44
44
  PrimitiveScript
45
- } from "./index-4edzf1gr.js";
45
+ } from "./index-d43r08tf.js";
46
46
  import {
47
47
  ScalarScript
48
- } from "./index-rwg2aa4f.js";
48
+ } from "./index-a17x49vg.js";
49
49
  import {
50
50
  getMobileTargets
51
51
  } from "./index-47pj3aee.js";
package/index.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  getTargetMetas,
5
5
  getTargetCommandNames,
6
6
  runCommands
7
- } from "./index-mak3cd28.js";
7
+ } from "./index-0g7r8xz3.js";
8
8
  import"./index-q0y2jq9j.js";
9
9
  import"./index-2tv3fdx4.js";
10
10
  import"./index-6wwzs1bc.js";
@@ -14,23 +14,23 @@ import path from "path";
14
14
 
15
15
  // pkgs/@akanjs/cli/commandModules.ts
16
16
  var commandModules = {
17
- workspace: async () => (await import("./workspace.command-8s050m0h.js")).WorkspaceCommand,
18
- agent: async () => (await import("./agent.command-d2gfxfck.js")).AgentCommand,
19
- application: async () => (await import("./application.command-pj2m7584.js")).ApplicationCommand,
20
- library: async () => (await import("./library.command-nbsky672.js")).LibraryCommand,
21
- localRegistry: async () => (await import("./localRegistry.command-yeq57wjr.js")).LocalRegistryCommand,
22
- package: async () => (await import("./package.command-axv0abmn.js")).PackageCommand,
23
- module: async () => (await import("./module.command-29vqzrh8.js")).ModuleCommand,
24
- page: async () => (await import("./page.command-vs9s3zrh.js")).PageCommand,
25
- context: async () => (await import("./context.command-ez8a0zyz.js")).ContextCommand,
26
- cloud: async () => (await import("./cloud.command-jshwdq22.js")).CloudCommand,
27
- subspace: async () => (await import("./subspace.command-fwjfcts7.js")).SubspaceCommand,
28
- guideline: async () => (await import("./guideline.command-xmqwx8zm.js")).GuidelineCommand,
29
- scalar: async () => (await import("./scalar.command-6k1vhe9s.js")).ScalarCommand,
30
- primitive: async () => (await import("./primitive.command-cbxmqbtc.js")).PrimitiveCommand,
31
- quality: async () => (await import("./quality.command-gmbs7nws.js")).QualityCommand,
32
- repair: async () => (await import("./repair.command-bqsjptsj.js")).RepairCommand,
33
- workflow: async () => (await import("./workflow.command-nwpcdc8p.js")).WorkflowCommand
17
+ workspace: async () => (await import("./workspace.command-06wvstgr.js")).WorkspaceCommand,
18
+ agent: async () => (await import("./agent.command-0q17pnrs.js")).AgentCommand,
19
+ application: async () => (await import("./application.command-18y0s485.js")).ApplicationCommand,
20
+ library: async () => (await import("./library.command-qzzbj6d8.js")).LibraryCommand,
21
+ localRegistry: async () => (await import("./localRegistry.command-vyrgg4xw.js")).LocalRegistryCommand,
22
+ package: async () => (await import("./package.command-d9hd6v9n.js")).PackageCommand,
23
+ module: async () => (await import("./module.command-rq5hq3ax.js")).ModuleCommand,
24
+ page: async () => (await import("./page.command-126d56te.js")).PageCommand,
25
+ context: async () => (await import("./context.command-5v37ef3n.js")).ContextCommand,
26
+ cloud: async () => (await import("./cloud.command-av97ndh6.js")).CloudCommand,
27
+ subspace: async () => (await import("./subspace.command-eddzqpx3.js")).SubspaceCommand,
28
+ guideline: async () => (await import("./guideline.command-4pz9g1rt.js")).GuidelineCommand,
29
+ scalar: async () => (await import("./scalar.command-3bcmrrkv.js")).ScalarCommand,
30
+ primitive: async () => (await import("./primitive.command-taxd1538.js")).PrimitiveCommand,
31
+ quality: async () => (await import("./quality.command-6gsna0a3.js")).QualityCommand,
32
+ repair: async () => (await import("./repair.command-tq2dgy72.js")).RepairCommand,
33
+ workflow: async () => (await import("./workflow.command-gtdnzvbz.js")).WorkflowCommand
34
34
  };
35
35
  var commandModuleIds = Object.keys(commandModules);
36
36
 
@@ -3,13 +3,13 @@ import {
3
3
  Lib,
4
4
  Workspace,
5
5
  command
6
- } from "./index-mak3cd28.js";
6
+ } from "./index-0g7r8xz3.js";
7
7
  import"./index-q0y2jq9j.js";
8
8
  import"./index-2tv3fdx4.js";
9
9
  import"./index-6wwzs1bc.js";
10
10
  import {
11
11
  LibraryScript
12
- } from "./index-259dsnz3.js";
12
+ } from "./index-vxtad5bd.js";
13
13
 
14
14
  // pkgs/@akanjs/cli/library/library.command.ts
15
15
  class LibraryCommand extends command("library", [LibraryScript], ({ public: target }) => ({
@@ -4,7 +4,7 @@ import {
4
4
  runner,
5
5
  script,
6
6
  command
7
- } from "./index-mak3cd28.js";
7
+ } from "./index-0g7r8xz3.js";
8
8
  import"./index-q0y2jq9j.js";
9
9
  import {
10
10
  PkgExecutor
@@ -12,18 +12,19 @@ import {
12
12
  import"./index-6wwzs1bc.js";
13
13
  import {
14
14
  ApplicationScript
15
- } from "./index-v0qh106m.js";
16
- import"./index-259dsnz3.js";
15
+ } from "./index-sj5vxr8f.js";
16
+ import"./index-vxtad5bd.js";
17
17
  import"./index-hwkygn9s.js";
18
- import"./index-kn1h7p1x.js";
18
+ import"./index-m0xccmmm.js";
19
+ import"./index-te54x9zm.js";
19
20
  import {
20
21
  getNpmRegistryUrl,
21
22
  CloudRunner
22
- } from "./index-2hq52jq3.js";
23
+ } from "./index-rtxxan88.js";
23
24
  import"./index-kcxmv48c.js";
24
25
  import {
25
26
  PackageScript
26
- } from "./index-ws5e0j51.js";
27
+ } from "./index-9077wzd2.js";
27
28
  import"./index-j9yhg404.js";
28
29
 
29
30
  // pkgs/@akanjs/cli/localRegistry/localRegistry.runner.ts
@@ -3,18 +3,19 @@ import {
3
3
  Sys,
4
4
  Module,
5
5
  command
6
- } from "./index-mak3cd28.js";
6
+ } from "./index-0g7r8xz3.js";
7
7
  import"./index-q0y2jq9j.js";
8
8
  import"./index-2tv3fdx4.js";
9
9
  import"./index-6wwzs1bc.js";
10
10
  import {
11
11
  renderPrimitiveReport
12
12
  } from "./index-gyd220p2.js";
13
- import"./index-kn1h7p1x.js";
13
+ import"./index-m0xccmmm.js";
14
+ import"./index-te54x9zm.js";
14
15
  import {
15
16
  ModuleScript
16
- } from "./index-8pm30m73.js";
17
- import"./index-pnqbkf5p.js";
17
+ } from "./index-5ystnsd5.js";
18
+ import"./index-vyvre9en.js";
18
19
  import"./index-h7yw2z9n.js";
19
20
 
20
21
  // pkgs/@akanjs/cli/module/module.command.ts
@@ -3,14 +3,14 @@ import {
3
3
  Pkg,
4
4
  Workspace,
5
5
  command
6
- } from "./index-mak3cd28.js";
6
+ } from "./index-0g7r8xz3.js";
7
7
  import"./index-q0y2jq9j.js";
8
8
  import"./index-2tv3fdx4.js";
9
9
  import"./index-6wwzs1bc.js";
10
10
  import"./index-kcxmv48c.js";
11
11
  import {
12
12
  PackageScript
13
- } from "./index-ws5e0j51.js";
13
+ } from "./index-9077wzd2.js";
14
14
 
15
15
  // pkgs/@akanjs/cli/package/package.command.ts
16
16
  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.7",
3
+ "version": "3.0.0-beta.9",
4
4
  "sourceType": "module",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -33,7 +33,7 @@
33
33
  "@langchain/openai": "^1.4.6",
34
34
  "@tailwindcss/node": "^4.3.0",
35
35
  "@trapezedev/project": "^7.1.4",
36
- "akanjs": "3.0.0-beta.7",
36
+ "akanjs": "3.0.0-beta.9",
37
37
  "chalk": "^5.6.2",
38
38
  "commander": "^14.0.3",
39
39
  "dayjs": "^1.11.20",
@@ -3,13 +3,13 @@ import {
3
3
  App,
4
4
  Module,
5
5
  command
6
- } from "./index-mak3cd28.js";
6
+ } from "./index-0g7r8xz3.js";
7
7
  import"./index-q0y2jq9j.js";
8
8
  import"./index-2tv3fdx4.js";
9
9
  import"./index-6wwzs1bc.js";
10
10
  import {
11
11
  PageScript
12
- } from "./index-pnqbkf5p.js";
12
+ } from "./index-vyvre9en.js";
13
13
 
14
14
  // pkgs/@akanjs/cli/page/page.command.ts
15
15
  class PageCommand extends command("page", [PageScript], ({ public: target }) => ({
@@ -2,20 +2,21 @@
2
2
  import {
3
3
  Workspace,
4
4
  command
5
- } from "./index-mak3cd28.js";
5
+ } from "./index-0g7r8xz3.js";
6
6
  import"./index-q0y2jq9j.js";
7
7
  import"./index-2tv3fdx4.js";
8
8
  import"./index-6wwzs1bc.js";
9
9
  import {
10
10
  renderPrimitiveReport
11
11
  } from "./index-gyd220p2.js";
12
- import"./index-kn1h7p1x.js";
13
- import"./index-8pm30m73.js";
14
- import"./index-pnqbkf5p.js";
12
+ import"./index-m0xccmmm.js";
13
+ import"./index-te54x9zm.js";
14
+ import"./index-5ystnsd5.js";
15
+ import"./index-vyvre9en.js";
15
16
  import"./index-h7yw2z9n.js";
16
17
  import {
17
18
  PrimitiveScript
18
- } from "./index-4edzf1gr.js";
19
+ } from "./index-d43r08tf.js";
19
20
 
20
21
  // pkgs/@akanjs/cli/primitive/primitive.command.ts
21
22
  import { Logger } from "akanjs/common";
@@ -4,7 +4,7 @@ import {
4
4
  runner,
5
5
  script,
6
6
  command
7
- } from "./index-mak3cd28.js";
7
+ } from "./index-0g7r8xz3.js";
8
8
  import"./index-q0y2jq9j.js";
9
9
  import {
10
10
  rootAllowedFiles,
@@ -3,7 +3,7 @@ import {
3
3
  Workspace,
4
4
  script,
5
5
  command
6
- } from "./index-mak3cd28.js";
6
+ } from "./index-0g7r8xz3.js";
7
7
  import"./index-q0y2jq9j.js";
8
8
  import"./index-2tv3fdx4.js";
9
9
  import"./index-6wwzs1bc.js";
@@ -12,7 +12,7 @@ import"./index-gyd220p2.js";
12
12
  import"./index-ktb5njgy.js";
13
13
  import {
14
14
  RepairRunner
15
- } from "./index-fz5q3gd7.js";
15
+ } from "./index-04bk599g.js";
16
16
 
17
17
  // pkgs/@akanjs/cli/repair/repair.script.ts
18
18
  import { Logger } from "akanjs/common";