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

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
- 46684e220ad3b25561e71ed37a2ec4586818c4546d7eae1414ac8ad9dbdcd064
1
+ 53ebdb9199af9078cc0851db522dc3f306a5336f448faaf9c22a95fec341b8d3
@@ -12,7 +12,7 @@ import"./index-q8sn827n.js";
12
12
  import"./index-6wwzs1bc.js";
13
13
  import {
14
14
  ApplicationScript
15
- } from "./index-d61rcfa2.js";
15
+ } from "./index-tr0e8s02.js";
16
16
  import"./index-zkvpaggp.js";
17
17
  import"./index-9wtbw98m.js";
18
18
  import {
@@ -45,6 +45,18 @@ var AKAN_OPTIONAL_BACKEND_EXTERNALS = [
45
45
  "postgres",
46
46
  "protobufjs"
47
47
  ];
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
+ })();
48
60
 
49
61
  class ApplicationBuildRunner {
50
62
  #app;
@@ -128,7 +140,7 @@ class ApplicationBuildRunner {
128
140
  entrypoints: backendEntryPoints,
129
141
  outdir: this.#app.dist.cwdPath,
130
142
  target: "bun",
131
- minify: true,
143
+ ...MINIFY_PROBE,
132
144
  naming: { entry: "[name].[ext]", chunk: "chunk-[hash].[ext]" },
133
145
  define: { "process.env.NODE_ENV": JSON.stringify("production") },
134
146
  plugins: backendExternals.length > 0 ? [this.#createExternalSpecifiersPlugin(backendExternals)] : []
@@ -137,7 +149,7 @@ class ApplicationBuildRunner {
137
149
  entrypoints: [this.#resolveRscWorkerBuildEntry()],
138
150
  outdir: this.#app.dist.cwdPath,
139
151
  target: "bun",
140
- minify: true,
152
+ ...MINIFY_PROBE,
141
153
  naming: { entry: "[name].[ext]", chunk: "chunk-[hash].[ext]" },
142
154
  conditions: ["react-server"],
143
155
  define: { "process.env.NODE_ENV": JSON.stringify("production") },
@@ -147,7 +159,7 @@ class ApplicationBuildRunner {
147
159
  entrypoints: [this.#resolveConsoleRuntimeBuildEntry()],
148
160
  outdir: this.#app.dist.cwdPath,
149
161
  target: "bun",
150
- minify: true,
162
+ ...MINIFY_PROBE,
151
163
  naming: { entry: "console-runtime.[ext]", chunk: "chunk-[hash].[ext]" },
152
164
  define: { "process.env.NODE_ENV": JSON.stringify("production") }
153
165
  });
@@ -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-d61rcfa2.js";
12
+ import"./index-tr0e8s02.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-kfnr6c19.js";
17
+ import"./index-nqcwcdyt.js";
18
18
  import {
19
19
  CloudScript
20
- } from "./index-deekbtkj.js";
20
+ } from "./index-7g8cqnjg.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-d61rcfa2.js";
4
+ } from "./index-tr0e8s02.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-2xf0meaq.js");
4
+ const { DevTui } = await import("./devTui-yhktg2ed.js");
5
5
  return new DevTui(supervisor);
6
6
  };
7
7
  export {
@@ -12,13 +12,13 @@ import {
12
12
  } from "./index-cezy7yb3.js";
13
13
  import {
14
14
  ApplicationScript
15
- } from "./index-d61rcfa2.js";
15
+ } from "./index-tr0e8s02.js";
16
16
  import {
17
17
  PackageScript
18
18
  } from "./index-sjak5v5b.js";
19
19
  import {
20
20
  CloudRunner
21
- } from "./index-kfnr6c19.js";
21
+ } from "./index-nqcwcdyt.js";
22
22
 
23
23
  // pkgs/@akanjs/cli/cloud/cloud.script.ts
24
24
  import { Logger } from "akanjs/common";
@@ -14,7 +14,7 @@ import {
14
14
  } from "./index-cezy7yb3.js";
15
15
  import {
16
16
  openBrowser
17
- } from "./index-d61rcfa2.js";
17
+ } from "./index-tr0e8s02.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-b21m07fs.js")).ApplicationBuildRunner;
1967
+ var loadBuildRunner = async () => (await import("./applicationBuildRunner-qy18e4hq.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-7jy8f30g.js")).createDevTuiView(supervisor) : new DevStreamView(apps.map((app) => app.name));
3043
+ const view = mode === "tui" ? await (await import("./devTuiView-g7k4y0ej.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);
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-dqgj9zbk.js")).WorkspaceCommand,
17
+ workspace: async () => (await import("./workspace.command-zgb6dkpq.js")).WorkspaceCommand,
18
18
  agent: async () => (await import("./agent.command-r93wmq7m.js")).AgentCommand,
19
- application: async () => (await import("./application.command-5nqfqgdn.js")).ApplicationCommand,
19
+ application: async () => (await import("./application.command-x6e04avr.js")).ApplicationCommand,
20
20
  library: async () => (await import("./library.command-em103wtn.js")).LibraryCommand,
21
- localRegistry: async () => (await import("./localRegistry.command-gz8apn4y.js")).LocalRegistryCommand,
21
+ localRegistry: async () => (await import("./localRegistry.command-5n2wk16q.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-g0pk0k60.js")).CloudCommand,
26
+ cloud: async () => (await import("./cloud.command-fpkmasax.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-d61rcfa2.js";
15
+ } from "./index-tr0e8s02.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-kfnr6c19.js";
22
+ } from "./index-nqcwcdyt.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.93",
3
+ "version": "3.0.0-alpha.95",
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.93",
36
+ "akanjs": "3.0.0-alpha.95",
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-d61rcfa2.js";
43
+ } from "./index-tr0e8s02.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-kfnr6c19.js";
55
+ } from "./index-nqcwcdyt.js";
56
56
  import {
57
57
  CloudScript
58
- } from "./index-deekbtkj.js";
58
+ } from "./index-7g8cqnjg.js";
59
59
  import {
60
60
  ContextScript
61
61
  } from "./index-r50qen0z.js";