@akanjs/cli 3.0.0-alpha.22 → 3.0.0-alpha.24

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
- 3e7239f205adf97e7963c9c815081694ccab1602ea91fb3ca264977690e1df04
1
+ 0fb579b02dc3022112bef8d3d36df4c2748660c6188e296548f8bd508e77deca
@@ -4,7 +4,7 @@ import {
4
4
  } from "./index-0wae5ebk.js";
5
5
  import {
6
6
  ApplicationScript
7
- } from "./index-dh9vdsrd.js";
7
+ } from "./index-8d2sv6pw.js";
8
8
  import"./index-73rnbwgg.js";
9
9
  import {
10
10
  getMobileTargetChoices
@@ -1,13 +1,13 @@
1
1
  // @bun
2
2
  import {
3
3
  CloudScript
4
- } from "./index-k93ep78g.js";
5
- import"./index-n0zdjawn.js";
4
+ } from "./index-becx1t0k.js";
5
+ import"./index-t71zvmt9.js";
6
6
  import"./index-33zce8gt.js";
7
7
  import {
8
8
  GlobalConfig
9
9
  } from "./index-sh01r3pm.js";
10
- import"./index-dh9vdsrd.js";
10
+ import"./index-8d2sv6pw.js";
11
11
  import"./index-73rnbwgg.js";
12
12
  import"./index-76rn3g2c.js";
13
13
  import {
@@ -648,8 +648,9 @@ libs never import it directly (`no-import-external-library`) — everything reac
648
648
  `AKAN_AGENT=false` takes it off — and negotiates streaming via `accept`, so assistant text arrives as it is
649
649
  generated with zero app code. The endpoint is a stateless relay and **never executes tools**: every tool runs in
650
650
  the caller's own browser session, gated by guards and the approval card. Its guard is `AgentRelayAccess`, which
651
- defaults to allow and **warns at boot while no policy is registered** — a product with accounts locks it in its
652
- `option.ts`, `option.setAgentAccess((ctx) => !!ctx.get("account"))`, or anonymous visitors spend the LLM key.
651
+ **refuses every call until a policy is registered** — the same answer `None` gives, with no boot warning. A
652
+ product with accounts locks it in its `option.ts`, `option.setAgentAccess((ctx) => !!ctx.get("account"))`;
653
+ without a policy the chat cannot spend the LLM key.
653
654
  `persist` keeps the transcript across reloads (sessionStorage; `{ storage: "local" }` to outlive the tab),
654
655
  default off. Re-skin through the `AgentChat` slot in `_overrides.tsx`.
655
656
  - **The LLM is configured in `option.ts`, never through the environment.** `option.setLlm({ apiKey, model, host })`
@@ -250,7 +250,7 @@ class IncrementalBuilder {
250
250
  return;
251
251
  this.#shuttingDown = true;
252
252
  const started = Date.now();
253
- this.#logger.info(`shutdown requested (${reason}); draining ${this.#inFlight} work item(s)`);
253
+ this.#logger.debug(`shutdown requested (${reason}); draining ${this.#inFlight} work item(s)`);
254
254
  if (this.#cssRebuildTimer) {
255
255
  clearTimeout(this.#cssRebuildTimer);
256
256
  this.#cssRebuildTimer = null;
@@ -263,7 +263,7 @@ class IncrementalBuilder {
263
263
  return;
264
264
  });
265
265
  const flushed = await BuilderChannel.drain();
266
- this.#logger.info(`drained in ${Date.now() - started}ms${flushed ? ` after flushing ${flushed} ipc write(s)` : ""}; exiting for recycle`);
266
+ this.#logger.debug(`drained in ${Date.now() - started}ms${flushed ? ` after flushing ${flushed} ipc write(s)` : ""}; exiting for recycle`);
267
267
  process.exit(0);
268
268
  }
269
269
  get shuttingDown() {
@@ -350,7 +350,7 @@ class IncrementalBuilderHost {
350
350
  return false;
351
351
  this.#recycleRequested = true;
352
352
  this.#status = "recycling";
353
- this.logger.info(`recycling builder pid=${proc.pid} (${reason})`);
353
+ this.logger.debug(`recycling builder pid=${proc.pid} (${reason})`);
354
354
  this.#recycleTimer = setTimeout(() => {
355
355
  this.#recycleTimer = null;
356
356
  if (this.#proc !== proc)
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  CloudRunner
4
- } from "./index-n0zdjawn.js";
4
+ } from "./index-t71zvmt9.js";
5
5
  import {
6
6
  PackageScript
7
7
  } from "./index-33zce8gt.js";
@@ -12,7 +12,7 @@ import {
12
12
  } from "./index-sh01r3pm.js";
13
13
  import {
14
14
  ApplicationScript
15
- } from "./index-dh9vdsrd.js";
15
+ } from "./index-8d2sv6pw.js";
16
16
  import {
17
17
  script
18
18
  } from "./index-n706txcv.js";
@@ -7,7 +7,7 @@ import {
7
7
  } from "./index-sh01r3pm.js";
8
8
  import {
9
9
  openBrowser
10
- } from "./index-dh9vdsrd.js";
10
+ } from "./index-8d2sv6pw.js";
11
11
  import {
12
12
  runner
13
13
  } from "./index-n706txcv.js";
package/index.js CHANGED
@@ -18,16 +18,16 @@ import path from "path";
18
18
 
19
19
  // pkgs/@akanjs/cli/commandModules.ts
20
20
  var commandModules = {
21
- workspace: async () => (await import("./workspace.command-5m3f02kd.js")).WorkspaceCommand,
21
+ workspace: async () => (await import("./workspace.command-f7jerqb2.js")).WorkspaceCommand,
22
22
  agent: async () => (await import("./agent.command-e835fjem.js")).AgentCommand,
23
- application: async () => (await import("./application.command-e2za636m.js")).ApplicationCommand,
23
+ application: async () => (await import("./application.command-sjtbk6tr.js")).ApplicationCommand,
24
24
  library: async () => (await import("./library.command-v5cyaw9t.js")).LibraryCommand,
25
- localRegistry: async () => (await import("./localRegistry.command-bsgg0jqq.js")).LocalRegistryCommand,
25
+ localRegistry: async () => (await import("./localRegistry.command-53t758pt.js")).LocalRegistryCommand,
26
26
  package: async () => (await import("./package.command-qkcs60ts.js")).PackageCommand,
27
27
  module: async () => (await import("./module.command-pq6w84xg.js")).ModuleCommand,
28
28
  page: async () => (await import("./page.command-qj5bfnh9.js")).PageCommand,
29
29
  context: async () => (await import("./context.command-vn87jb08.js")).ContextCommand,
30
- cloud: async () => (await import("./cloud.command-krea92t8.js")).CloudCommand,
30
+ cloud: async () => (await import("./cloud.command-y0e4eyqz.js")).CloudCommand,
31
31
  guideline: async () => (await import("./guideline.command-s4hn2bsy.js")).GuidelineCommand,
32
32
  scalar: async () => (await import("./scalar.command-rm6k3c65.js")).ScalarCommand,
33
33
  primitive: async () => (await import("./primitive.command-bw0nes6x.js")).PrimitiveCommand,
@@ -2,14 +2,14 @@
2
2
  import {
3
3
  CloudRunner,
4
4
  getNpmRegistryUrl
5
- } from "./index-n0zdjawn.js";
5
+ } from "./index-t71zvmt9.js";
6
6
  import {
7
7
  PackageScript
8
8
  } from "./index-33zce8gt.js";
9
9
  import"./index-sh01r3pm.js";
10
10
  import {
11
11
  ApplicationScript
12
- } from "./index-dh9vdsrd.js";
12
+ } from "./index-8d2sv6pw.js";
13
13
  import"./index-73rnbwgg.js";
14
14
  import"./index-76rn3g2c.js";
15
15
  import {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akanjs/cli",
3
- "version": "3.0.0-alpha.22",
3
+ "version": "3.0.0-alpha.24",
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": "3.0.0-alpha.22",
37
+ "akanjs": "3.0.0-alpha.24",
38
38
  "chalk": "^5.6.2",
39
39
  "commander": "^14.0.3",
40
40
  "dayjs": "^1.11.20",
@@ -1,6 +1,3 @@
1
1
  import type { ModulesOptions } from "../lib/option";
2
- import { libEnv } from "./env.server.type";
3
2
 
4
- export const env: ModulesOptions = {
5
- ...libEnv,
6
- };
3
+ export const env: ModulesOptions = {};
@@ -1,6 +1,3 @@
1
1
  import type { ModulesOptions } from "../lib/option";
2
- import { libEnv } from "./env.server.type";
3
2
 
4
- export const env: ModulesOptions = {
5
- ...libEnv,
6
- };
3
+ export const env: ModulesOptions = {};
@@ -1,6 +1,3 @@
1
1
  import type { ModulesOptions } from "../lib/option";
2
- import { libEnv } from "./env.server.type";
3
2
 
4
- export const env: ModulesOptions = {
5
- ...libEnv,
6
- };
3
+ export const env: ModulesOptions = {};
@@ -1,6 +1,3 @@
1
1
  import type { ModulesOptions } from "../lib/option";
2
- import { libEnv } from "./env.server.type";
3
2
 
4
- export const env: ModulesOptions = {
5
- ...libEnv,
6
- };
3
+ export const env: ModulesOptions = {};
@@ -11,11 +11,11 @@ import"./index-ss469dec.js";
11
11
  import"./index-qc0tnhs2.js";
12
12
  import {
13
13
  CloudScript
14
- } from "./index-k93ep78g.js";
14
+ } from "./index-becx1t0k.js";
15
15
  import {
16
16
  getLatestPackageVersion,
17
17
  getNpmRegistryUrl
18
- } from "./index-n0zdjawn.js";
18
+ } from "./index-t71zvmt9.js";
19
19
  import {
20
20
  PackageScript
21
21
  } from "./index-33zce8gt.js";
@@ -31,7 +31,7 @@ import"./index-tsmjxph2.js";
31
31
  import"./index-j37qq1f2.js";
32
32
  import {
33
33
  ApplicationScript
34
- } from "./index-dh9vdsrd.js";
34
+ } from "./index-8d2sv6pw.js";
35
35
  import {
36
36
  LibraryScript
37
37
  } from "./index-73rnbwgg.js";