@akanjs/cli 3.0.0-alpha.7 → 3.0.0-alpha.71
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/README.ko.md +1 -1
- package/README.md +1 -1
- package/{abstractCompactor-e5yq60qz.js → abstractCompactor-20e0cwbs.js} +2 -2
- package/{agent.command-pggr92jj.js → agent.command-xdvw642m.js} +9 -7
- package/{application.command-692yap1d.js → application.command-g3f7xj25.js} +31 -6
- package/{applicationBuildRunner-ha3y8ew8.js → applicationBuildRunner-af0wtspv.js} +19 -14
- package/{applicationReleasePackager-gg8ccbeh.js → applicationReleasePackager-93nzdfsy.js} +1 -1
- package/buildBatch.proc.js +7 -5
- package/{capacitorApp-p0z5yab2.js → capacitorApp-b0ppke3m.js} +29 -27
- package/{cloud.command-wqfsyzv2.js → cloud.command-0hmsv44q.js} +12 -10
- package/commandManifest.json +1 -1
- package/{context.command-9bxtdn0w.js → context.command-x92afrnf.js} +17 -15
- package/{dependencyScanner-f6grrep3.js → dependencyScanner-rbs2407b.js} +1 -1
- package/getDirname-ka11hm7e.js +8 -0
- package/{guideline.command-nfqahxex.js → guideline.command-hpq08q66.js} +8 -6
- package/guidelines/agentRule/agentRule.generate.json +31 -0
- package/guidelines/agentRule/agentRule.instruction.md +525 -0
- package/guidelines/conventions/conventions.generate.json +25 -0
- package/guidelines/conventions/conventions.instruction.md +839 -0
- package/guidelines/cssRule/cssRule.instruction.md +7 -0
- package/guidelines/framework/framework.generate.json +3 -2
- package/guidelines/framework/framework.instruction.md +1 -9
- package/guidelines/mcpRule/mcpRule.generate.json +25 -0
- package/guidelines/mcpRule/mcpRule.instruction.md +217 -0
- package/guidelines/queryRule/queryRule.generate.json +31 -0
- package/guidelines/queryRule/queryRule.instruction.md +143 -0
- package/guidelines/runtimeRule/runtimeRule.generate.json +25 -0
- package/guidelines/runtimeRule/runtimeRule.instruction.md +176 -0
- package/guidelines/transportRule/transportRule.generate.json +31 -0
- package/guidelines/transportRule/transportRule.instruction.md +60 -0
- package/guidelines/workspaceOnboarding/workspaceOnboarding.generate.json +24 -0
- package/guidelines/workspaceOnboarding/workspaceOnboarding.instruction.md +263 -0
- package/guidelines/workspaceRecipes/workspaceRecipes.generate.json +33 -0
- package/guidelines/workspaceRecipes/workspaceRecipes.instruction.md +402 -0
- package/incrementalBuilder.proc.js +8 -6
- package/index-1577bej2.js +7 -0
- package/{index-vg0sj9nc.js → index-5f4gnt4c.js} +258 -97
- package/{index-bjpxzr6s.js → index-5vy2jzar.js} +1 -1
- package/{index-mssqn2sq.js → index-6d5r8q6k.js} +54 -15
- package/{index-p3f4q532.js → index-737aj4fm.js} +14 -13
- package/{index-2c3e2xh8.js → index-8besc14m.js} +1 -1
- package/{index-qb61h0k7.js → index-abyjt72y.js} +333 -540
- package/{index-xhgtkekh.js → index-cbfp5wyp.js} +1 -1
- package/{index-5dw57f0d.js → index-cp00yns2.js} +80 -14
- package/{index-ztpw544k.js → index-ety6takb.js} +3 -3
- package/index-f39512t6.js +255 -0
- package/{index-6rhabeev.js → index-gvq17wqn.js} +5 -3
- package/{index-js368gk9.js → index-hs70d8ed.js} +6 -6
- package/{index-7myvn0f0.js → index-j37qq1f2.js} +1 -1
- package/{index-azv0xjb5.js → index-jybbmwed.js} +8 -4
- package/{index-4hek879p.js → index-m5gfc86a.js} +1 -1
- package/{index-w6wbb612.js → index-nq3avsf6.js} +13 -13
- package/{index-vtj3zps1.js → index-p27h7535.js} +8 -8
- package/{index-5pmx7bkg.js → index-pehn44hr.js} +3 -3
- package/{index-j9cxndc0.js → index-qnv0aqmm.js} +9 -6
- package/{index-gmy45vz2.js → index-r691v756.js} +4 -4
- package/{index-0cj2zxbm.js → index-sh01r3pm.js} +1 -1
- package/{index-a1e0j63x.js → index-sqsfv8wg.js} +15 -7
- package/{index-gex7c8kd.js → index-wbbswwqt.js} +51 -24
- package/{index-bz2sfzzt.js → index-wybbcgxn.js} +4 -4
- package/index.js +21 -19
- package/{library.command-md9715jz.js → library.command-8vgrdtwy.js} +6 -4
- package/{localRegistry.command-exkbamyj.js → localRegistry.command-0gtqj0r0.js} +11 -9
- package/{module.command-w5aaddxk.js → module.command-rama4zya.js} +10 -8
- package/{package.command-yfkrcy0z.js → package.command-6jxapdsg.js} +6 -4
- package/package.json +4 -5
- package/{page.command-echbavp4.js → page.command-hxy7x525.js} +6 -4
- package/{primitive.command-9fbhspw2.js → primitive.command-4bf6xcc3.js} +11 -9
- package/{quality.command-3pnt9yep.js → quality.command-h5edwegz.js} +192 -97
- package/{recipeScanner-tghkzrrt.js → recipeScanner-zrzev25x.js} +3 -3
- package/{repair.command-carj4vax.js → repair.command-rgqf6px6.js} +8 -6
- package/{routeSourceValidator-e4jmbfcx.js → routeSourceValidator-7fycdqyv.js} +1 -1
- package/{scalar.command-51ryzypc.js → scalar.command-6krkz6tw.js} +9 -7
- package/templates/app/env/env.client.debug.ts.template +1 -5
- package/templates/app/env/env.client.develop.ts.template +1 -5
- package/templates/app/env/env.client.local.ts.template +1 -5
- package/templates/app/env/env.client.main.ts.template +1 -5
- package/templates/app/env/env.client.testing.ts.template +1 -5
- package/templates/app/env/env.client.type.ts +2 -6
- package/templates/app/env/env.server.debug.ts.template +1 -5
- package/templates/app/env/env.server.develop.ts.template +1 -5
- package/templates/app/env/env.server.local.ts.template +1 -5
- package/templates/app/env/env.server.main.ts.template +1 -5
- package/templates/app/main.ts +3 -1
- package/templates/app/page/styles.css.template +3 -3
- package/templates/appSample/srvkit/AuthGuard.ts +9 -5
- package/templates/appSample/srvkit/SessionInternalArg.ts +4 -3
- package/templates/crudPages/[__model__Id]/edit/page.tsx +1 -1
- package/templates/crudPages/new/page.tsx +1 -1
- package/templates/crudSinglePage/page.tsx +1 -1
- package/templates/env/_env.server.type.ts +7 -5
- package/templates/lib/db.ts +1 -1
- package/templates/lib/dict.ts +1 -1
- package/templates/lib/sig.ts +1 -1
- package/templates/lib/srv.ts +6 -2
- package/templates/module/__Model__.Util.tsx +1 -1
- package/templates/module/__Model__.Zone.tsx +3 -5
- package/templates/workspaceRoot/AGENTS.md.template +4 -972
- package/templates/workspaceRoot/CLAUDE.md.template +19 -0
- package/templates/workspaceRoot/biome.json.template +4 -244
- package/templates/workspaceRoot/docs/AI-DEVELOPMENT.md.template +10 -14
- package/templates/workspaceRoot/docs/GENERATED.md.template +12 -10
- package/templates/workspaceRoot/package.json.template +1 -1
- package/{typeChecker-kravn7ns.js → typeChecker-g6bh0xfv.js} +1 -1
- package/typecheck.proc.js +1 -1
- package/{workflow.command-91wmvm8k.js → workflow.command-dwhwrqhd.js} +16 -14
- package/{workspace.command-wa10mfd9.js → workspace.command-f5h11gjn.js} +71 -52
- package/templates/workspaceRoot/.cursor/rules/akan-page-routing.mdc.template +0 -43
- package/templates/workspaceRoot/.cursor/rules/akan-sync-conventions.mdc.template +0 -34
- package/templates/workspaceRoot/.cursor/rules/application-test-commands.mdc.template +0 -16
- package/templates/workspaceRoot/.cursor/rules/change-scope.mdc.template +0 -12
- package/templates/workspaceRoot/.cursor/rules/client-server-boundaries.mdc.template +0 -18
- package/templates/workspaceRoot/.cursor/rules/coding-comments.mdc.template +0 -25
- package/templates/workspaceRoot/.cursor/rules/coding-style.mdc.template +0 -44
- package/templates/workspaceRoot/.cursor/rules/domain-module-conventions.mdc.template +0 -17
- package/templates/workspaceRoot/.cursor/rules/format-lint.mdc.template +0 -12
- package/templates/workspaceRoot/.cursor/rules/lint-enforced-rules.mdc.template +0 -19
- package/templates/workspaceRoot/.cursor/rules/module-file-playbook.mdc.template +0 -62
- package/templates/workspaceRoot/.cursor/rules/naming-conventions.mdc.template +0 -15
- package/templates/workspaceRoot/.cursor/rules/react-component-style.mdc.template +0 -21
- package/templates/workspaceRoot/.cursor/rules/repo-overview.mdc.template +0 -17
- package/templates/workspaceRoot/.cursor/rules/scalar-modeling.mdc.template +0 -99
- package/templates/workspaceRoot/.cursor/rules/secrets-and-env.mdc.template +0 -13
- package/templates/workspaceRoot/.cursor/rules/service-signal-conventions.mdc.template +0 -83
- package/templates/workspaceRoot/.cursor/rules/srvkit-adapters-and-guards.mdc.template +0 -50
- package/templates/workspaceRoot/.cursor/rules/ssr-first.mdc.template +0 -59
- package/templates/workspaceRoot/.cursor/rules/typescript-imports.mdc.template +0 -16
- /package/{index-r24hmh0q.js → index-yb2wsc7f.js} +0 -0
package/.build-stamp
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
c08012757b2708a1699f9196c5c763ff7548b2c2eee46b18086317b4d1be2eef
|
package/README.ko.md
CHANGED
package/README.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
AiSession
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-sh01r3pm.js";
|
|
5
5
|
import {
|
|
6
6
|
AbstractDoc
|
|
7
7
|
} from "./index-0wae5ebk.js";
|
|
8
8
|
import"./index-mxvakhsm.js";
|
|
9
9
|
import"./index-67546d0j.js";
|
|
10
|
-
import"./index-
|
|
10
|
+
import"./index-yb2wsc7f.js";
|
|
11
11
|
|
|
12
12
|
// pkgs/@akanjs/devkit/abstractCompactor.ts
|
|
13
13
|
import { Logger } from "akanjs/common";
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
AgentScript
|
|
4
|
-
} from "./index-
|
|
5
|
-
import"./index-
|
|
6
|
-
import"./index-
|
|
7
|
-
import"./index-
|
|
4
|
+
} from "./index-wbbswwqt.js";
|
|
5
|
+
import"./index-6d5r8q6k.js";
|
|
6
|
+
import"./index-8besc14m.js";
|
|
7
|
+
import"./index-j37qq1f2.js";
|
|
8
8
|
import {
|
|
9
9
|
Workspace,
|
|
10
10
|
command
|
|
11
|
-
} from "./index-
|
|
12
|
-
import"./index-
|
|
11
|
+
} from "./index-gvq17wqn.js";
|
|
12
|
+
import"./index-5f4gnt4c.js";
|
|
13
|
+
import"./index-f39512t6.js";
|
|
13
14
|
import"./index-mxvakhsm.js";
|
|
14
15
|
import"./index-xys926f2.js";
|
|
16
|
+
import"./index-1577bej2.js";
|
|
15
17
|
import"./index-67546d0j.js";
|
|
16
|
-
import"./index-
|
|
18
|
+
import"./index-yb2wsc7f.js";
|
|
17
19
|
|
|
18
20
|
// pkgs/@akanjs/cli/agent/agent.command.ts
|
|
19
21
|
class AgentCommand extends command("agent", [AgentScript], ({ public: target }) => ({
|
|
@@ -4,24 +4,26 @@ import {
|
|
|
4
4
|
} from "./index-0wae5ebk.js";
|
|
5
5
|
import {
|
|
6
6
|
ApplicationScript
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-cp00yns2.js";
|
|
8
|
+
import"./index-sqsfv8wg.js";
|
|
8
9
|
import {
|
|
9
10
|
getMobileTargetChoices
|
|
10
11
|
} from "./index-76rn3g2c.js";
|
|
11
|
-
import"./index-a1e0j63x.js";
|
|
12
12
|
import {
|
|
13
13
|
App,
|
|
14
14
|
Exec,
|
|
15
15
|
Sys,
|
|
16
16
|
Workspace,
|
|
17
17
|
command
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-gvq17wqn.js";
|
|
19
19
|
import"./index-fgc8r6dj.js";
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-
|
|
20
|
+
import"./index-5vy2jzar.js";
|
|
21
|
+
import"./index-5f4gnt4c.js";
|
|
22
|
+
import"./index-f39512t6.js";
|
|
22
23
|
import"./index-mxvakhsm.js";
|
|
24
|
+
import"./index-1577bej2.js";
|
|
23
25
|
import"./index-67546d0j.js";
|
|
24
|
-
import"./index-
|
|
26
|
+
import"./index-yb2wsc7f.js";
|
|
25
27
|
|
|
26
28
|
// pkgs/@akanjs/cli/application/application.command.ts
|
|
27
29
|
import { select } from "@inquirer/prompts";
|
|
@@ -55,6 +57,29 @@ class ApplicationCommand extends command("application", [ApplicationScript], ({
|
|
|
55
57
|
console: target({ desc: "Open an interactive server console for the application" }).with(App).exec(async function(app) {
|
|
56
58
|
await this.applicationScript.console(app);
|
|
57
59
|
}),
|
|
60
|
+
logs: target({ desc: "Tail the running application's logs, filtered (attaches to akan-control.sock)" }).with(App).option("level", String, { desc: "minimum level: trace, verbose, debug, info, warn, error", nullable: true }).option("grep", String, { desc: "substring the message must contain", nullable: true }).option("endpoint", String, {
|
|
61
|
+
desc: "endpoint glob(s), comma-separated: mutation:*, query:userList",
|
|
62
|
+
nullable: true
|
|
63
|
+
}).option("trace", String, { desc: "one request's traceId", nullable: true }).option("child", String, { desc: "replica index(es), comma-separated", nullable: true }).option("role", String, { flag: "R", desc: "process role(s): gateway, all, batch, rsc-worker", nullable: true }).option("origin", String, { desc: "call origin(s): http, websocket, mcp, internal, page", nullable: true }).option("since", String, { desc: "only records newer than this: 5m, 30s, or epoch ms", nullable: true }).option("replay", Number, { flag: "n", desc: "records to replay from the buffer before following", default: 0 }).option("json", Boolean, { desc: "print NDJSON records instead of rendered lines", default: false }).option("follow", Boolean, { desc: "keep streaming; pass --follow false for history only", default: true }).option("runtimeDir", String, {
|
|
64
|
+
flag: "d",
|
|
65
|
+
desc: "runtime dir holding akan-control.sock (default: local/apps/<app>/runtime)",
|
|
66
|
+
nullable: true
|
|
67
|
+
}).exec(async function(app, level, grep, endpoint, trace, child, role, origin, since, replay, json, follow, runtimeDir) {
|
|
68
|
+
await this.applicationScript.logs(app, {
|
|
69
|
+
level,
|
|
70
|
+
grep,
|
|
71
|
+
endpoint,
|
|
72
|
+
trace,
|
|
73
|
+
child,
|
|
74
|
+
role,
|
|
75
|
+
origin,
|
|
76
|
+
since,
|
|
77
|
+
replay,
|
|
78
|
+
json,
|
|
79
|
+
follow,
|
|
80
|
+
runtimeDir
|
|
81
|
+
});
|
|
82
|
+
}),
|
|
58
83
|
build: target({ short: true, desc: "Build the application for production (frontend + backend)" }).with(App).option("write", Boolean, { desc: "write code generation", default: true }).option("fast", Boolean, { desc: "fast build", default: false }).option("quiet", Boolean, { desc: "hide build progress output", default: false }).exec(async function(app, write, fast, quiet) {
|
|
59
84
|
await this.applicationScript.build(app, { write, fast, quiet });
|
|
60
85
|
}),
|
|
@@ -2,16 +2,18 @@
|
|
|
2
2
|
import {
|
|
3
3
|
AllRoutesBuilder,
|
|
4
4
|
CsrArtifactBuilder,
|
|
5
|
+
FontPruner,
|
|
5
6
|
SsrBaseArtifactBuilder,
|
|
6
7
|
precompressArtifacts
|
|
7
|
-
} from "./index-
|
|
8
|
+
} from "./index-abyjt72y.js";
|
|
8
9
|
import"./index-xjd3rqzj.js";
|
|
9
|
-
import"./index-
|
|
10
|
-
import"./index-
|
|
10
|
+
import"./index-qnv0aqmm.js";
|
|
11
|
+
import"./index-5vy2jzar.js";
|
|
12
|
+
import"./index-f39512t6.js";
|
|
11
13
|
import {
|
|
12
14
|
Spinner
|
|
13
15
|
} from "./index-mxvakhsm.js";
|
|
14
|
-
import"./index-
|
|
16
|
+
import"./index-yb2wsc7f.js";
|
|
15
17
|
|
|
16
18
|
// pkgs/@akanjs/devkit/applicationBuildRunner.ts
|
|
17
19
|
import { mkdir, rm } from "fs/promises";
|
|
@@ -22,6 +24,7 @@ var BUILD_PHASE_EMOJIS = {
|
|
|
22
24
|
backend: "\uD83D\uDCE6",
|
|
23
25
|
ssr: "\uD83E\uDDED",
|
|
24
26
|
csr: "\uD83C\uDFA8",
|
|
27
|
+
assets: "\u2702\uFE0F",
|
|
25
28
|
compress: "\uD83D\uDDDC\uFE0F",
|
|
26
29
|
metadata: "\uD83D\uDCDD"
|
|
27
30
|
};
|
|
@@ -39,7 +42,6 @@ var SSR_RENDER_EXTERNALS = [
|
|
|
39
42
|
var AKAN_OPTIONAL_BACKEND_EXTERNALS = [
|
|
40
43
|
"@libsql/client",
|
|
41
44
|
"bullmq",
|
|
42
|
-
"croner",
|
|
43
45
|
"ioredis",
|
|
44
46
|
"postgres",
|
|
45
47
|
"protobufjs"
|
|
@@ -58,14 +60,16 @@ class ApplicationBuildRunner {
|
|
|
58
60
|
}
|
|
59
61
|
async build({ spinner = false } = {}) {
|
|
60
62
|
const phaseOptions = { spinner };
|
|
63
|
+
const { web, assets } = await this.#app.getConfig();
|
|
61
64
|
await this.#runPhase("prepare", "Preparing output directory", () => this.#app.prepareCommand("build"), undefined, {
|
|
62
65
|
spinner
|
|
63
66
|
});
|
|
64
67
|
if (!this.#fast)
|
|
65
68
|
await this.#runPhase("typecheck", "Typechecking", () => this.typecheck(), undefined, phaseOptions);
|
|
66
69
|
await this.#runPhase("backend", "Compiling backend", () => this.#buildBackend(), (result) => `${result.entrypoints} entrypoints, ${result.outputs} outputs`, phaseOptions);
|
|
67
|
-
await this.#runPhase("ssr", "Building SSR route artifacts", () => this.#buildSsr(), (result) => result ? `${result.allRoutes.manifest.routeIds.length} routes, ${result.allRoutes.manifest.knownEntries.length} entries` : "skipped", phaseOptions);
|
|
68
|
-
await this.#runPhase("csr", "Building CSR assets", () => this.#buildCsr(), (result) => result?.outputDir ?? "skipped", phaseOptions);
|
|
70
|
+
await this.#runPhase("ssr", "Building SSR route artifacts", async () => web.ssr ? await this.#buildSsr() : null, (result) => result ? `${result.allRoutes.manifest.routeIds.length} routes, ${result.allRoutes.manifest.knownEntries.length} entries` : web.ssr ? "skipped" : "disabled by akan.config.ts web.ssr", phaseOptions);
|
|
71
|
+
await this.#runPhase("csr", "Building CSR assets", async () => web.csr ? await this.#buildCsr() : null, (result) => result?.outputDir ?? (web.csr ? "skipped" : "disabled by akan.config.ts web.csr"), phaseOptions);
|
|
72
|
+
await this.#runPhase("assets", "Trimming unread static assets", async () => assets.pruneFonts ? await new FontPruner(this.#app, assets).prune() : null, (result) => result ? `${result.removed.length} font file(s) dropped, ${ApplicationBuildRunner.formatBytes(result.freedBytes)} freed; ${result.kept.length} kept` : "disabled by akan.config.ts assets.pruneFonts", phaseOptions);
|
|
69
73
|
await this.#runPhase("compress", "Compressing static assets", () => precompressArtifacts(this.#app), (result) => result.files > 0 ? `${result.files} files, ${ApplicationBuildRunner.formatBytes(result.inputBytes)} -> gzip ${ApplicationBuildRunner.formatBytes(result.outputBytes)} / br ${ApplicationBuildRunner.formatBytes(result.brotliBytes)}` : "no files", phaseOptions);
|
|
70
74
|
await this.#runPhase("metadata", "Writing production metadata", () => this.#buildAppMeta(), undefined, {
|
|
71
75
|
spinner
|
|
@@ -107,7 +111,7 @@ class ApplicationBuildRunner {
|
|
|
107
111
|
const akanConfig = await this.#app.getConfig();
|
|
108
112
|
await Promise.all([
|
|
109
113
|
this.#app.dist.writeJson("package.json", akanConfig.getProductionPackageJson()),
|
|
110
|
-
this.#app.dist.writeFile(`${this.#app.dist.cwdPath}/Dockerfile`, akanConfig.
|
|
114
|
+
this.#app.dist.writeFile(`${this.#app.dist.cwdPath}/Dockerfile`, akanConfig.dockerfile)
|
|
111
115
|
]);
|
|
112
116
|
}
|
|
113
117
|
async#buildBackend() {
|
|
@@ -115,6 +119,7 @@ class ApplicationBuildRunner {
|
|
|
115
119
|
const backendExternals = [
|
|
116
120
|
...new Set([...akanConfig.externalLibs, ...SSR_RENDER_EXTERNALS, ...AKAN_OPTIONAL_BACKEND_EXTERNALS])
|
|
117
121
|
];
|
|
122
|
+
const { web } = akanConfig;
|
|
118
123
|
const backendEntryPoints = [`${this.#app.cwdPath}/main.ts`, `${this.#app.cwdPath}/server.ts`];
|
|
119
124
|
for (const entrypoint of backendEntryPoints) {
|
|
120
125
|
if (!await Bun.file(entrypoint).exists())
|
|
@@ -129,7 +134,7 @@ class ApplicationBuildRunner {
|
|
|
129
134
|
define: { "process.env.NODE_ENV": JSON.stringify("production") },
|
|
130
135
|
plugins: backendExternals.length > 0 ? [this.#createExternalSpecifiersPlugin(backendExternals)] : []
|
|
131
136
|
});
|
|
132
|
-
const rscWorkerResult = await this.#buildOrThrow("rsc-worker", {
|
|
137
|
+
const rscWorkerResult = web.ssr ? await this.#buildOrThrow("rsc-worker", {
|
|
133
138
|
entrypoints: [this.#resolveRscWorkerBuildEntry()],
|
|
134
139
|
outdir: this.#app.dist.cwdPath,
|
|
135
140
|
target: "bun",
|
|
@@ -138,7 +143,7 @@ class ApplicationBuildRunner {
|
|
|
138
143
|
conditions: ["react-server"],
|
|
139
144
|
define: { "process.env.NODE_ENV": JSON.stringify("production") },
|
|
140
145
|
plugins: backendExternals.length > 0 ? [this.#createExternalSpecifiersPlugin(backendExternals)] : []
|
|
141
|
-
});
|
|
146
|
+
}) : null;
|
|
142
147
|
const consoleRuntimeResult = await this.#buildOrThrow("console-runtime", {
|
|
143
148
|
entrypoints: [this.#resolveConsoleRuntimeBuildEntry()],
|
|
144
149
|
outdir: this.#app.dist.cwdPath,
|
|
@@ -149,8 +154,8 @@ class ApplicationBuildRunner {
|
|
|
149
154
|
});
|
|
150
155
|
await this.#writeConsoleShim();
|
|
151
156
|
return {
|
|
152
|
-
entrypoints: backendEntryPoints.length + 2,
|
|
153
|
-
outputs: backendResult.outputs.length + rscWorkerResult
|
|
157
|
+
entrypoints: backendEntryPoints.length + (rscWorkerResult ? 2 : 1),
|
|
158
|
+
outputs: backendResult.outputs.length + (rscWorkerResult?.outputs.length ?? 0) + consoleRuntimeResult.outputs.length + 1
|
|
154
159
|
};
|
|
155
160
|
}
|
|
156
161
|
async#writeConsoleShim() {
|
|
@@ -287,6 +292,6 @@ void run().catch((error) => {
|
|
|
287
292
|
}
|
|
288
293
|
}
|
|
289
294
|
export {
|
|
290
|
-
|
|
291
|
-
|
|
295
|
+
AKAN_OPTIONAL_BACKEND_EXTERNALS,
|
|
296
|
+
ApplicationBuildRunner
|
|
292
297
|
};
|
package/buildBatch.proc.js
CHANGED
|
@@ -5,17 +5,19 @@ import {
|
|
|
5
5
|
FontOptimizer,
|
|
6
6
|
PagesBundleBuilder,
|
|
7
7
|
SsrBaseArtifactBuilder
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-abyjt72y.js";
|
|
9
9
|
import"./index-xjd3rqzj.js";
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
10
|
+
import"./index-qnv0aqmm.js";
|
|
11
|
+
import"./index-5vy2jzar.js";
|
|
12
12
|
import {
|
|
13
13
|
AppExecutor,
|
|
14
14
|
WorkspaceExecutor
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-5f4gnt4c.js";
|
|
16
|
+
import"./index-f39512t6.js";
|
|
16
17
|
import"./index-mxvakhsm.js";
|
|
18
|
+
import"./index-1577bej2.js";
|
|
17
19
|
import"./index-67546d0j.js";
|
|
18
|
-
import"./index-
|
|
20
|
+
import"./index-yb2wsc7f.js";
|
|
19
21
|
|
|
20
22
|
// pkgs/@akanjs/devkit/incrementalBuilder/buildBatch.proc.ts
|
|
21
23
|
import path from "path";
|
|
@@ -25,36 +25,38 @@ import {
|
|
|
25
25
|
selectLocalDevHost,
|
|
26
26
|
sortIosRunTargets,
|
|
27
27
|
writeRootCapacitorConfig
|
|
28
|
-
} from "./index-
|
|
28
|
+
} from "./index-cbfp5wyp.js";
|
|
29
29
|
import"./index-76rn3g2c.js";
|
|
30
|
-
import"./index-
|
|
30
|
+
import"./index-5f4gnt4c.js";
|
|
31
|
+
import"./index-f39512t6.js";
|
|
31
32
|
import"./index-mxvakhsm.js";
|
|
33
|
+
import"./index-1577bej2.js";
|
|
32
34
|
import"./index-67546d0j.js";
|
|
33
|
-
import"./index-
|
|
35
|
+
import"./index-yb2wsc7f.js";
|
|
34
36
|
export {
|
|
35
|
-
|
|
36
|
-
sortIosRunTargets,
|
|
37
|
-
selectLocalDevHost,
|
|
38
|
-
sanitizeIosNativeRunEnv,
|
|
39
|
-
rootCapacitorConfigPaths,
|
|
40
|
-
rootCapacitorConfigFilenames,
|
|
41
|
-
raiseGradleMinSdkVersion,
|
|
42
|
-
parseSimctlDevices,
|
|
43
|
-
parseIosRuntimeMajor,
|
|
44
|
-
parseDevicectlDevices,
|
|
45
|
-
materializeCapacitorConfig,
|
|
46
|
-
isPlaceholderAppId,
|
|
47
|
-
getMissingAndroidReleaseSigningKeys,
|
|
48
|
-
getAndroidLocalServerHost,
|
|
49
|
-
getAdbDeviceStateIssues,
|
|
50
|
-
formatIosRunFailureMessage,
|
|
51
|
-
formatAndroidReleaseSigningError,
|
|
52
|
-
clearRootCapacitorConfigs,
|
|
53
|
-
classifyIosRunFailure,
|
|
54
|
-
buildIosNativeRunCommand,
|
|
55
|
-
assertJsonSerializable,
|
|
56
|
-
SWIFTUICORE_MIN_IOS_MAJOR,
|
|
57
|
-
PLACEHOLDER_APP_IDS,
|
|
37
|
+
ANDROID_MIN_SDK_VERSION,
|
|
58
38
|
CapacitorApp,
|
|
59
|
-
|
|
39
|
+
PLACEHOLDER_APP_IDS,
|
|
40
|
+
SWIFTUICORE_MIN_IOS_MAJOR,
|
|
41
|
+
assertJsonSerializable,
|
|
42
|
+
buildIosNativeRunCommand,
|
|
43
|
+
classifyIosRunFailure,
|
|
44
|
+
clearRootCapacitorConfigs,
|
|
45
|
+
formatAndroidReleaseSigningError,
|
|
46
|
+
formatIosRunFailureMessage,
|
|
47
|
+
getAdbDeviceStateIssues,
|
|
48
|
+
getAndroidLocalServerHost,
|
|
49
|
+
getMissingAndroidReleaseSigningKeys,
|
|
50
|
+
isPlaceholderAppId,
|
|
51
|
+
materializeCapacitorConfig,
|
|
52
|
+
parseDevicectlDevices,
|
|
53
|
+
parseIosRuntimeMajor,
|
|
54
|
+
parseSimctlDevices,
|
|
55
|
+
raiseGradleMinSdkVersion,
|
|
56
|
+
rootCapacitorConfigFilenames,
|
|
57
|
+
rootCapacitorConfigPaths,
|
|
58
|
+
sanitizeIosNativeRunEnv,
|
|
59
|
+
selectLocalDevHost,
|
|
60
|
+
sortIosRunTargets,
|
|
61
|
+
writeRootCapacitorConfig
|
|
60
62
|
};
|
|
@@ -1,26 +1,28 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
CloudScript
|
|
4
|
-
} from "./index-
|
|
5
|
-
import"./index-
|
|
6
|
-
import"./index-
|
|
4
|
+
} from "./index-hs70d8ed.js";
|
|
5
|
+
import"./index-737aj4fm.js";
|
|
6
|
+
import"./index-jybbmwed.js";
|
|
7
7
|
import {
|
|
8
8
|
GlobalConfig
|
|
9
|
-
} from "./index-
|
|
10
|
-
import"./index-
|
|
9
|
+
} from "./index-sh01r3pm.js";
|
|
10
|
+
import"./index-cp00yns2.js";
|
|
11
|
+
import"./index-sqsfv8wg.js";
|
|
11
12
|
import"./index-76rn3g2c.js";
|
|
12
|
-
import"./index-a1e0j63x.js";
|
|
13
13
|
import {
|
|
14
14
|
Workspace,
|
|
15
15
|
command
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-gvq17wqn.js";
|
|
17
17
|
import"./index-fgc8r6dj.js";
|
|
18
|
-
import"./index-
|
|
19
|
-
import"./index-
|
|
18
|
+
import"./index-5vy2jzar.js";
|
|
19
|
+
import"./index-5f4gnt4c.js";
|
|
20
|
+
import"./index-f39512t6.js";
|
|
20
21
|
import"./index-mxvakhsm.js";
|
|
22
|
+
import"./index-1577bej2.js";
|
|
21
23
|
import"./index-46tjzh6s.js";
|
|
22
24
|
import"./index-67546d0j.js";
|
|
23
|
-
import"./index-
|
|
25
|
+
import"./index-yb2wsc7f.js";
|
|
24
26
|
|
|
25
27
|
// pkgs/@akanjs/cli/cloud/cloud.command.ts
|
|
26
28
|
var localRegistryUrl = () => process.env.AKAN_NPM_REGISTRY ?? "http://127.0.0.1:4873";
|
package/commandManifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"byCommand":{"create-workspace":"workspace","generate-agent-rules":"workspace","lint":"workspace","lint-all":"workspace","sync-all":"workspace","init":"workspace","agent":"agent","create-application":"application","remove-application":"application","sync":"application","compact":"application","script":"application","console":"application","build":"application","b":"application","typecheck":"application","t":"application","test":"application","build-ios":"application","bi":"application","build-android":"application","ba":"application","start":"application","s":"application","start-ios":"application","si":"application","start-android":"application","sa":"application","release-ios":"application","release-android":"application","release-source":"application","codepush":"application","dbup":"application","dbdown":"application","configure-app":"application","create-library":"library","remove-library":"library","sync-library":"library","install-library":"library","start-registry":"localRegistry","reset-registry":"localRegistry","smoke-registry":"localRegistry","version":"package","create-package":"package","remove-package":"package","sync-package":"package","build-package":"package","verify-dist-package":"package","verify-akan-publish-packages":"package","create-module":"module","remove-module":"module","create-service":"module","create-view":"module","create-unit":"module","create-template":"module","create-crud-page":"page","context":"context","doctor":"context","mcp-install":"context","mcp":"context","mcp-call":"context","login":"cloud","logout":"cloud","set-llm":"cloud","reset-llm":"cloud","ask":"cloud","deploy-akan":"cloud","update":"cloud","download-env":"cloud","upload-env":"cloud","guideline":"guideline","generate-instruction":"guideline","update-instruction":"guideline","generate-document":"guideline","reapply-instruction":"guideline","create-scalar":"scalar","remove-scalar":"scalar","create-ui":"primitive","add-field":"primitive","add-enum-field":"primitive","quality":"quality","repair":"repair","workflow":"workflow"}}
|
|
1
|
+
{"byCommand":{"create-workspace":"workspace","generate-agent-rules":"workspace","lint":"workspace","lint-all":"workspace","sync-all":"workspace","init":"workspace","agent":"agent","create-application":"application","remove-application":"application","sync":"application","compact":"application","script":"application","console":"application","logs":"application","build":"application","b":"application","typecheck":"application","t":"application","test":"application","build-ios":"application","bi":"application","build-android":"application","ba":"application","start":"application","s":"application","start-ios":"application","si":"application","start-android":"application","sa":"application","release-ios":"application","release-android":"application","release-source":"application","codepush":"application","dbup":"application","dbdown":"application","configure-app":"application","create-library":"library","remove-library":"library","sync-library":"library","install-library":"library","start-registry":"localRegistry","reset-registry":"localRegistry","smoke-registry":"localRegistry","version":"package","create-package":"package","remove-package":"package","sync-package":"package","build-package":"package","verify-dist-package":"package","verify-akan-publish-packages":"package","create-module":"module","remove-module":"module","create-service":"module","create-view":"module","create-unit":"module","create-template":"module","create-crud-page":"page","context":"context","doctor":"context","mcp-install":"context","mcp":"context","mcp-call":"context","login":"cloud","logout":"cloud","set-llm":"cloud","reset-llm":"cloud","ask":"cloud","deploy-akan":"cloud","update":"cloud","download-env":"cloud","upload-env":"cloud","guideline":"guideline","generate-instruction":"guideline","update-instruction":"guideline","generate-document":"guideline","reapply-instruction":"guideline","create-scalar":"scalar","remove-scalar":"scalar","create-ui":"primitive","add-field":"primitive","add-enum-field":"primitive","quality":"quality","repair":"repair","workflow":"workflow"}}
|
|
@@ -1,29 +1,31 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
ContextScript
|
|
4
|
-
} from "./index-
|
|
5
|
-
import"./index-
|
|
6
|
-
import"./index-
|
|
7
|
-
import"./index-
|
|
8
|
-
import"./index-
|
|
9
|
-
import"./index-
|
|
10
|
-
import"./index-gmy45vz2.js";
|
|
4
|
+
} from "./index-nq3avsf6.js";
|
|
5
|
+
import"./index-ety6takb.js";
|
|
6
|
+
import"./index-pehn44hr.js";
|
|
7
|
+
import"./index-r691v756.js";
|
|
8
|
+
import"./index-wybbcgxn.js";
|
|
9
|
+
import"./index-p27h7535.js";
|
|
11
10
|
import"./index-ss469dec.js";
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
15
|
-
import"./index-
|
|
16
|
-
import"./index-
|
|
11
|
+
import"./index-m5gfc86a.js";
|
|
12
|
+
import"./index-cbfp5wyp.js";
|
|
13
|
+
import"./index-sh01r3pm.js";
|
|
14
|
+
import"./index-6d5r8q6k.js";
|
|
15
|
+
import"./index-8besc14m.js";
|
|
16
|
+
import"./index-j37qq1f2.js";
|
|
17
17
|
import"./index-76rn3g2c.js";
|
|
18
18
|
import {
|
|
19
19
|
Workspace,
|
|
20
20
|
command
|
|
21
|
-
} from "./index-
|
|
22
|
-
import"./index-
|
|
21
|
+
} from "./index-gvq17wqn.js";
|
|
22
|
+
import"./index-5f4gnt4c.js";
|
|
23
|
+
import"./index-f39512t6.js";
|
|
23
24
|
import"./index-mxvakhsm.js";
|
|
24
25
|
import"./index-xys926f2.js";
|
|
26
|
+
import"./index-1577bej2.js";
|
|
25
27
|
import"./index-67546d0j.js";
|
|
26
|
-
import"./index-
|
|
28
|
+
import"./index-yb2wsc7f.js";
|
|
27
29
|
|
|
28
30
|
// pkgs/@akanjs/cli/context/context.command.ts
|
|
29
31
|
class ContextCommand extends command("context", [ContextScript], ({ public: target }) => ({
|
|
@@ -1,24 +1,26 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
AiSession
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-sh01r3pm.js";
|
|
5
5
|
import {
|
|
6
6
|
Prompter
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-j37qq1f2.js";
|
|
8
8
|
import {
|
|
9
9
|
Workspace,
|
|
10
10
|
command,
|
|
11
11
|
runner,
|
|
12
12
|
script
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-gvq17wqn.js";
|
|
14
|
+
import"./index-5f4gnt4c.js";
|
|
15
|
+
import"./index-f39512t6.js";
|
|
16
|
+
import"./index-mxvakhsm.js";
|
|
14
17
|
import {
|
|
15
18
|
getDirname
|
|
16
|
-
} from "./index-
|
|
17
|
-
import"./index-mxvakhsm.js";
|
|
19
|
+
} from "./index-1577bej2.js";
|
|
18
20
|
import {
|
|
19
21
|
FileSys
|
|
20
22
|
} from "./index-67546d0j.js";
|
|
21
|
-
import"./index-
|
|
23
|
+
import"./index-yb2wsc7f.js";
|
|
22
24
|
|
|
23
25
|
// pkgs/@akanjs/cli/guideline/guideline.script.ts
|
|
24
26
|
import { Logger } from "akanjs/common";
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "In-Page Agent Rule",
|
|
3
|
+
"description": "How an akan screen exposes itself to an in-page agent — st.tool, subscribed keys, built-ins, and the chat",
|
|
4
|
+
"group": "core",
|
|
5
|
+
"codegenPriority": 4,
|
|
6
|
+
"deprecated": false,
|
|
7
|
+
"scans": [
|
|
8
|
+
{
|
|
9
|
+
"type": "example",
|
|
10
|
+
"description": "Components publishing an agent tool beside the control that already performs the action",
|
|
11
|
+
"path": "{apps,libs}/*/**/*.tsx",
|
|
12
|
+
"sample": 4
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"update": {
|
|
16
|
+
"filePath": "./agentRule.instruction.md",
|
|
17
|
+
"contents": [
|
|
18
|
+
"what a declaration publishes",
|
|
19
|
+
"mounting the chat",
|
|
20
|
+
"publishing a tool",
|
|
21
|
+
"forms and reading state",
|
|
22
|
+
"built-in tools"
|
|
23
|
+
],
|
|
24
|
+
"rules": [
|
|
25
|
+
"Use current Akan APIs only",
|
|
26
|
+
"State the rule before the reason, and keep the reason to one clause",
|
|
27
|
+
"Never describe a store class as an exposure surface — only st.tool and subscribed keys publish",
|
|
28
|
+
"Keep it workspace-neutral — no app or repo names"
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
}
|