@akanjs/cli 3.0.0-alpha.95 → 3.0.0-alpha.96

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/.build-stamp CHANGED
@@ -1 +1 @@
1
- 53ebdb9199af9078cc0851db522dc3f306a5336f448faaf9c22a95fec341b8d3
1
+ 97b04ea43cf58fa306823f262329027509339fbc8e621c950b73f9c701d2c2f5
@@ -12,7 +12,7 @@ import"./index-q8sn827n.js";
12
12
  import"./index-6wwzs1bc.js";
13
13
  import {
14
14
  ApplicationScript
15
- } from "./index-tr0e8s02.js";
15
+ } from "./index-hk3ms50t.js";
16
16
  import"./index-zkvpaggp.js";
17
17
  import"./index-9wtbw98m.js";
18
18
  import {
@@ -38,6 +38,7 @@ var SSR_RENDER_EXTERNALS = [
38
38
  "react-server-dom-webpack/client.node",
39
39
  "react-server-dom-webpack/client.browser"
40
40
  ];
41
+ var AKAN_BACKEND_MINIFY = { whitespace: true, syntax: true, identifiers: false };
41
42
  var AKAN_OPTIONAL_BACKEND_EXTERNALS = [
42
43
  "@libsql/client",
43
44
  "bullmq",
@@ -45,18 +46,6 @@ var AKAN_OPTIONAL_BACKEND_EXTERNALS = [
45
46
  "postgres",
46
47
  "protobufjs"
47
48
  ];
48
- var MINIFY_PROBE = (() => {
49
- const mode = process.env.AKAN_MINIFY_PROBE ?? "all";
50
- if (mode === "noident")
51
- return { minify: { whitespace: true, syntax: true, identifiers: false } };
52
- if (mode === "noident-map")
53
- return { minify: { whitespace: true, syntax: true, identifiers: false }, sourcemap: "linked" };
54
- if (mode === "syntax-map")
55
- return { minify: { whitespace: false, syntax: true, identifiers: false }, sourcemap: "linked" };
56
- if (mode === "none")
57
- return { minify: false, sourcemap: "linked" };
58
- return { minify: true };
59
- })();
60
49
 
61
50
  class ApplicationBuildRunner {
62
51
  #app;
@@ -140,7 +129,7 @@ class ApplicationBuildRunner {
140
129
  entrypoints: backendEntryPoints,
141
130
  outdir: this.#app.dist.cwdPath,
142
131
  target: "bun",
143
- ...MINIFY_PROBE,
132
+ minify: AKAN_BACKEND_MINIFY,
144
133
  naming: { entry: "[name].[ext]", chunk: "chunk-[hash].[ext]" },
145
134
  define: { "process.env.NODE_ENV": JSON.stringify("production") },
146
135
  plugins: backendExternals.length > 0 ? [this.#createExternalSpecifiersPlugin(backendExternals)] : []
@@ -149,7 +138,7 @@ class ApplicationBuildRunner {
149
138
  entrypoints: [this.#resolveRscWorkerBuildEntry()],
150
139
  outdir: this.#app.dist.cwdPath,
151
140
  target: "bun",
152
- ...MINIFY_PROBE,
141
+ minify: AKAN_BACKEND_MINIFY,
153
142
  naming: { entry: "[name].[ext]", chunk: "chunk-[hash].[ext]" },
154
143
  conditions: ["react-server"],
155
144
  define: { "process.env.NODE_ENV": JSON.stringify("production") },
@@ -159,7 +148,7 @@ class ApplicationBuildRunner {
159
148
  entrypoints: [this.#resolveConsoleRuntimeBuildEntry()],
160
149
  outdir: this.#app.dist.cwdPath,
161
150
  target: "bun",
162
- ...MINIFY_PROBE,
151
+ minify: AKAN_BACKEND_MINIFY,
163
152
  naming: { entry: "console-runtime.[ext]", chunk: "chunk-[hash].[ext]" },
164
153
  define: { "process.env.NODE_ENV": JSON.stringify("production") }
165
154
  });
@@ -9,15 +9,15 @@ import {
9
9
  } from "./index-cezy7yb3.js";
10
10
  import"./index-q8sn827n.js";
11
11
  import"./index-6wwzs1bc.js";
12
- import"./index-tr0e8s02.js";
12
+ import"./index-hk3ms50t.js";
13
13
  import"./index-zkvpaggp.js";
14
14
  import"./index-9wtbw98m.js";
15
15
  import"./index-kcxmv48c.js";
16
16
  import"./index-sjak5v5b.js";
17
- import"./index-nqcwcdyt.js";
17
+ import"./index-6y5sthxr.js";
18
18
  import {
19
19
  CloudScript
20
- } from "./index-7g8cqnjg.js";
20
+ } from "./index-tfz4faj3.js";
21
21
  import"./index-pvb4vdwr.js";
22
22
 
23
23
  // pkgs/@akanjs/cli/cloud/cloud.command.ts
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  openBrowser
4
- } from "./index-tr0e8s02.js";
4
+ } from "./index-hk3ms50t.js";
5
5
 
6
6
  // pkgs/@akanjs/cli/application/devTui.tsx
7
7
  import { render } from "ink";
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  // pkgs/@akanjs/cli/application/devTuiView.ts
3
3
  var createDevTuiView = async (supervisor) => {
4
- const { DevTui } = await import("./devTui-yhktg2ed.js");
4
+ const { DevTui } = await import("./devTui-m7a5gzet.js");
5
5
  return new DevTui(supervisor);
6
6
  };
7
7
  export {
@@ -14,7 +14,7 @@ import {
14
14
  } from "./index-cezy7yb3.js";
15
15
  import {
16
16
  openBrowser
17
- } from "./index-tr0e8s02.js";
17
+ } from "./index-hk3ms50t.js";
18
18
 
19
19
  // pkgs/@akanjs/cli/npmRegistry.ts
20
20
  var defaultNpmRegistry = "https://registry.npmjs.org";
@@ -1964,7 +1964,7 @@ ${uniqueCandidates.map((candidate) => ` - ${candidate}`).join(`
1964
1964
  // pkgs/@akanjs/cli/application/application.runner.ts
1965
1965
  import { Logger as Logger4 } from "akanjs/common";
1966
1966
  import ora from "ora";
1967
- var loadBuildRunner = async () => (await import("./applicationBuildRunner-qy18e4hq.js")).ApplicationBuildRunner;
1967
+ var loadBuildRunner = async () => (await import("./applicationBuildRunner-cpajk38f.js")).ApplicationBuildRunner;
1968
1968
  var loadReleasePackager = async () => (await import("./applicationReleasePackager-3wh58n2m.js")).ApplicationReleasePackager;
1969
1969
  var loadCapacitorApp = async () => (await import("./capacitorApp-gzcx6txb.js")).CapacitorApp;
1970
1970
  var loadAbstractCompactor = async () => (await import("./abstractCompactor-cefxzggj.js")).AbstractCompactor;
@@ -3040,7 +3040,7 @@ class ApplicationScript extends script("application", [ApplicationRunner, Librar
3040
3040
  throw new Error("No app selected to start");
3041
3041
  const startedDatabase = dbup ? await this.#prepareSharedDatabase(apps) : false;
3042
3042
  const supervisor = new DevSupervisor({ apps, mode, concurrency, open, write });
3043
- const view = mode === "tui" ? await (await import("./devTuiView-g7k4y0ej.js")).createDevTuiView(supervisor) : new DevStreamView(apps.map((app) => app.name));
3043
+ const view = mode === "tui" ? await (await import("./devTuiView-gb7ta8rv.js")).createDevTuiView(supervisor) : new DevStreamView(apps.map((app) => app.name));
3044
3044
  await supervisor.run(view);
3045
3045
  if (startedDatabase)
3046
3046
  await this.#stopDatabase(workspace);
@@ -12,13 +12,13 @@ import {
12
12
  } from "./index-cezy7yb3.js";
13
13
  import {
14
14
  ApplicationScript
15
- } from "./index-tr0e8s02.js";
15
+ } from "./index-hk3ms50t.js";
16
16
  import {
17
17
  PackageScript
18
18
  } from "./index-sjak5v5b.js";
19
19
  import {
20
20
  CloudRunner
21
- } from "./index-nqcwcdyt.js";
21
+ } from "./index-6y5sthxr.js";
22
22
 
23
23
  // pkgs/@akanjs/cli/cloud/cloud.script.ts
24
24
  import { Logger } from "akanjs/common";
package/index.js CHANGED
@@ -14,16 +14,16 @@ import path from "path";
14
14
 
15
15
  // pkgs/@akanjs/cli/commandModules.ts
16
16
  var commandModules = {
17
- workspace: async () => (await import("./workspace.command-zgb6dkpq.js")).WorkspaceCommand,
17
+ workspace: async () => (await import("./workspace.command-w7ennb3r.js")).WorkspaceCommand,
18
18
  agent: async () => (await import("./agent.command-r93wmq7m.js")).AgentCommand,
19
- application: async () => (await import("./application.command-x6e04avr.js")).ApplicationCommand,
19
+ application: async () => (await import("./application.command-b4jch2m8.js")).ApplicationCommand,
20
20
  library: async () => (await import("./library.command-em103wtn.js")).LibraryCommand,
21
- localRegistry: async () => (await import("./localRegistry.command-5n2wk16q.js")).LocalRegistryCommand,
21
+ localRegistry: async () => (await import("./localRegistry.command-bqpjr1ck.js")).LocalRegistryCommand,
22
22
  package: async () => (await import("./package.command-rfhyf38t.js")).PackageCommand,
23
23
  module: async () => (await import("./module.command-451pztkc.js")).ModuleCommand,
24
24
  page: async () => (await import("./page.command-kt19da5g.js")).PageCommand,
25
25
  context: async () => (await import("./context.command-qd8kqrnh.js")).ContextCommand,
26
- cloud: async () => (await import("./cloud.command-fpkmasax.js")).CloudCommand,
26
+ cloud: async () => (await import("./cloud.command-xgxxq49a.js")).CloudCommand,
27
27
  subspace: async () => (await import("./subspace.command-kqzqtk0p.js")).SubspaceCommand,
28
28
  guideline: async () => (await import("./guideline.command-f38x8jhw.js")).GuidelineCommand,
29
29
  scalar: async () => (await import("./scalar.command-jcf4e5sv.js")).ScalarCommand,
@@ -12,14 +12,14 @@ import {
12
12
  import"./index-6wwzs1bc.js";
13
13
  import {
14
14
  ApplicationScript
15
- } from "./index-tr0e8s02.js";
15
+ } from "./index-hk3ms50t.js";
16
16
  import"./index-zkvpaggp.js";
17
17
  import"./index-9wtbw98m.js";
18
18
  import"./index-n85fer99.js";
19
19
  import {
20
20
  getNpmRegistryUrl,
21
21
  CloudRunner
22
- } from "./index-nqcwcdyt.js";
22
+ } from "./index-6y5sthxr.js";
23
23
  import"./index-kcxmv48c.js";
24
24
  import {
25
25
  PackageScript
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akanjs/cli",
3
- "version": "3.0.0-alpha.95",
3
+ "version": "3.0.0-alpha.96",
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-alpha.95",
36
+ "akanjs": "3.0.0-alpha.96",
37
37
  "chalk": "^5.6.2",
38
38
  "commander": "^14.0.3",
39
39
  "dayjs": "^1.11.20",
@@ -40,7 +40,7 @@ import {
40
40
  } from "./index-rntcdss1.js";
41
41
  import {
42
42
  ApplicationScript
43
- } from "./index-tr0e8s02.js";
43
+ } from "./index-hk3ms50t.js";
44
44
  import {
45
45
  LibraryScript
46
46
  } from "./index-zkvpaggp.js";
@@ -52,10 +52,10 @@ import {
52
52
  import {
53
53
  getNpmRegistryUrl,
54
54
  getLatestPackageVersion
55
- } from "./index-nqcwcdyt.js";
55
+ } from "./index-6y5sthxr.js";
56
56
  import {
57
57
  CloudScript
58
- } from "./index-7g8cqnjg.js";
58
+ } from "./index-tfz4faj3.js";
59
59
  import {
60
60
  ContextScript
61
61
  } from "./index-r50qen0z.js";