@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 +1 -1
- package/{application.command-e2za636m.js → application.command-sjtbk6tr.js} +1 -1
- package/{cloud.command-krea92t8.js → cloud.command-y0e4eyqz.js} +3 -3
- package/guidelines/conventions/conventions.instruction.md +3 -2
- package/incrementalBuilder.proc.js +2 -2
- package/{index-dh9vdsrd.js → index-8d2sv6pw.js} +1 -1
- package/{index-k93ep78g.js → index-becx1t0k.js} +2 -2
- package/{index-n0zdjawn.js → index-t71zvmt9.js} +1 -1
- package/index.js +4 -4
- package/{localRegistry.command-bsgg0jqq.js → localRegistry.command-53t758pt.js} +2 -2
- package/package.json +2 -2
- package/templates/app/env/env.server.debug.ts.template +1 -4
- package/templates/app/env/env.server.develop.ts.template +1 -4
- package/templates/app/env/env.server.local.ts.template +1 -4
- package/templates/app/env/env.server.main.ts.template +1 -4
- package/{workspace.command-5m3f02kd.js → workspace.command-f7jerqb2.js} +3 -3
package/.build-stamp
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
0fb579b02dc3022112bef8d3d36df4c2748660c6188e296548f8bd508e77deca
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
CloudScript
|
|
4
|
-
} from "./index-
|
|
5
|
-
import"./index-
|
|
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-
|
|
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
|
-
|
|
652
|
-
`option.ts`, `option.setAgentAccess((ctx) => !!ctx.get("account"))
|
|
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.
|
|
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.
|
|
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.
|
|
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-
|
|
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-
|
|
15
|
+
} from "./index-8d2sv6pw.js";
|
|
16
16
|
import {
|
|
17
17
|
script
|
|
18
18
|
} 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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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.
|
|
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.
|
|
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",
|
|
@@ -11,11 +11,11 @@ import"./index-ss469dec.js";
|
|
|
11
11
|
import"./index-qc0tnhs2.js";
|
|
12
12
|
import {
|
|
13
13
|
CloudScript
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-becx1t0k.js";
|
|
15
15
|
import {
|
|
16
16
|
getLatestPackageVersion,
|
|
17
17
|
getNpmRegistryUrl
|
|
18
|
-
} from "./index-
|
|
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-
|
|
34
|
+
} from "./index-8d2sv6pw.js";
|
|
35
35
|
import {
|
|
36
36
|
LibraryScript
|
|
37
37
|
} from "./index-73rnbwgg.js";
|