@akanjs/cli 3.0.0-alpha.1 → 3.0.0-alpha.100
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-byytxs22.js} +3 -5
- package/{agent.command-yv00p0s0.js → agent.command-v1a4746v.js} +11 -12
- package/{application.command-0qsczf4k.js → application.command-fzdcnzhg.js} +65 -37
- package/{applicationBuildRunner-ct2pxyvw.js → applicationBuildRunner-s4gsk728.js} +28 -24
- package/{applicationReleasePackager-gg8ccbeh.js → applicationReleasePackager-28v9vbzk.js} +8 -9
- package/buildBatch.proc.js +12 -13
- package/capacitorApp-8d6d4zkm.js +12 -0
- package/{cloud.command-dxfv18sa.js → cloud.command-wygy2z05.js} +15 -17
- package/commandManifest.json +1 -1
- package/{context.command-8d9e3k6b.js → context.command-4vdt1aqq.js} +19 -22
- package/dependencyScanner-shs82ynp.js +8 -0
- package/devTui-qnf1txdz.js +553 -0
- package/devTuiView-yzct2cq6.js +9 -0
- package/getDirname-dr3jz1xg.js +7 -0
- package/{guideline.command-3jbkxzh6.js → guideline.command-p92dq6ts.js} +16 -17
- package/guidelines/agentRule/agentRule.generate.json +31 -0
- package/guidelines/agentRule/agentRule.instruction.md +533 -0
- package/guidelines/conventions/conventions.generate.json +25 -0
- package/guidelines/conventions/conventions.instruction.md +908 -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/modelStore/modelStore.instruction.md +12 -0
- package/guidelines/modelTemplate/modelTemplate.instruction.md +5 -0
- package/guidelines/queryRule/queryRule.generate.json +31 -0
- package/guidelines/queryRule/queryRule.instruction.md +175 -0
- package/guidelines/runtimeRule/runtimeRule.generate.json +25 -0
- package/guidelines/runtimeRule/runtimeRule.instruction.md +220 -0
- package/guidelines/ssrRule/ssrRule.instruction.md +49 -5
- 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 +26 -24
- package/{index-mr5s7mqd.js → index-0amdxycf.js} +8 -8
- package/{index-t3723f99.js → index-1yxtbmbj.js} +111 -42
- package/{index-ej426mcr.js → index-29sxqfaw.js} +65 -38
- package/index-3d9y066c.js +76 -0
- package/{index-76rn3g2c.js → index-47pj3aee.js} +4 -4
- package/index-5svjba73.js +159 -0
- package/index-6wwzs1bc.js +7 -0
- package/{index-k95xkh4p.js → index-7d6vny25.js} +16 -12
- package/{index-ec09pws3.js → index-8p8p0cf8.js} +14 -14
- package/{index-wnp7hwq7.js → index-92zztqy1.js} +7 -7
- package/{index-fgc8r6dj.js → index-a5vmm6x4.js} +3 -1
- package/{index-xys926f2.js → index-by5gpp8x.js} +4 -4
- package/{index-0cj2zxbm.js → index-c69j78kk.js} +12 -11
- package/{index-rzwcpcc3.js → index-fc1bh0a7.js} +4 -4
- package/{index-7c6k4yvg.js → index-gq44bqjt.js} +58 -25
- package/{index-a00jg8x8.js → index-gtmz74tj.js} +79 -55
- package/{index-tdbas9r0.js → index-h7yw2z9n.js} +7 -7
- package/{index-bjpxzr6s.js → index-hwkygn9s.js} +51 -3
- package/{index-bbkek1bp.js → index-hyywke0f.js} +1 -1
- package/{index-46tjzh6s.js → index-kcxmv48c.js} +29 -29
- package/{index-xjd3rqzj.js → index-n68jx79w.js} +6 -15
- package/{index-pyt2b4nw.js → index-p5neav9b.js} +1129 -1356
- package/{index-67546d0j.js → index-q0y2jq9j.js} +14 -2
- package/{index-bekddz9q.js → index-qkk27bk6.js} +32 -32
- package/{index-hgna5rjy.js → index-qsq3q8fy.js} +1034 -257
- package/{index-2q1f5j9k.js → index-srdssqj7.js} +18 -18
- package/{index-rh16j3c7.js → index-w8kmx1b6.js} +23 -13
- package/{index-nm6wghb6.js → index-yks023mb.js} +13 -13
- package/{index-1pvex4az.js → index-yza7zkpt.js} +94 -61
- package/{index-yzmhasdb.js → index-zmjppp25.js} +57 -57
- package/{index-8hsbnyes.js → index-znynzt5w.js} +100 -30
- package/{index-zasydjxd.js → index-zxgr3s8s.js} +31 -30
- package/{index-e16gnn26.js → index-zz5jyd94.js} +1002 -128
- package/index.js +22 -24
- package/{library.command-ebdj1vnm.js → library.command-s4fszngs.js} +11 -9
- package/{localRegistry.command-gb178ne8.js → localRegistry.command-gyw4da9z.js} +20 -22
- package/{module.command-9c1bnsx4.js → module.command-6n7dwvav.js} +13 -15
- package/{package.command-t93p4jkj.js → package.command-gr82ypnr.js} +8 -9
- package/package.json +5 -7
- package/{page.command-k3k0meh2.js → page.command-7gvgb3jb.js} +7 -8
- package/{primitive.command-de6nktdt.js → primitive.command-tk5ckw38.js} +13 -15
- package/{quality.command-z5kth2wa.js → quality.command-38v81baf.js} +229 -138
- package/recipeScanner-fpagtgc1.js +11 -0
- package/{repair.command-ehf2g112.js → repair.command-5xbwvsxp.js} +12 -13
- package/{routeSourceValidator-cncd92fv.js → routeSourceValidator-ze6x894c.js} +2 -40
- package/{scalar.command-7a2jtv33.js → scalar.command-0epwcr5k.js} +11 -13
- package/subspace.command-e2t36xb2.js +755 -0
- 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/lib/task/task.signal.ts +11 -6
- package/templates/appSample/srvkit/AuthGuard.ts +9 -5
- package/templates/appSample/srvkit/SessionInternalArg.ts +4 -3
- package/templates/crudPages/[__model__Id]/edit/page.tsx +6 -6
- package/templates/crudPages/[__model__Id]/page.tsx +10 -13
- package/templates/crudPages/new/page.tsx +6 -6
- package/templates/crudPages/page.tsx +9 -9
- package/templates/crudSinglePage/page.tsx +11 -7
- package/templates/env/_env.server.type.ts +7 -5
- package/templates/lib/db.ts +4 -2
- package/templates/lib/dict.ts +1 -1
- package/templates/lib/sig.ts +5 -1
- package/templates/lib/srv.ts +6 -2
- package/templates/lib/useClient.ts +9 -3
- package/templates/module/__Model__.Util.tsx +1 -1
- package/templates/module/__Model__.Zone.tsx +3 -5
- package/templates/module/__model__.dictionary.ts +4 -1
- package/templates/module/__model__.signal.ts +2 -3
- package/templates/module/__model__.store.ts +1 -2
- package/templates/workspaceRoot/.gitignore.template +0 -1
- package/templates/workspaceRoot/.husky/pre-commit.template +16 -0
- package/templates/workspaceRoot/.vscode/settings.json.template +1 -1
- package/templates/workspaceRoot/AGENTS.md.template +4 -948
- package/templates/workspaceRoot/CLAUDE.md.template +19 -0
- package/templates/workspaceRoot/biome.json.template +4 -198
- package/templates/workspaceRoot/docs/AI-DEVELOPMENT.md.template +15 -16
- package/templates/workspaceRoot/docs/GENERATED.md.template +12 -10
- package/templates/workspaceRoot/package.json.template +2 -4
- package/typeChecker-3xgrzc2v.js +7 -0
- package/typecheck.proc.js +4 -5
- package/{workflow.command-e0tt0vk2.js → workflow.command-kphbr7eh.js} +21 -23
- package/{workspace.command-fpda0evj.js → workspace.command-j1gatz3d.js} +108 -91
- package/capacitorApp-4r9sm3qg.js +0 -58
- package/dependencyScanner-f6grrep3.js +0 -9
- package/index-mxvakhsm.js +0 -66
- package/index-r24hmh0q.js +0 -4
- package/recipeScanner-tghkzrrt.js +0 -12
- package/templates/libRoot/base/baseLogic.ts +0 -14
- package/templates/libRoot/base/index.ts +0 -8
- package/templates/workspaceRoot/.cursor/rules/akan-page-routing.mdc.template +0 -43
- package/templates/workspaceRoot/.cursor/rules/akan-sync-conventions.mdc.template +0 -33
- 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 -18
- package/templates/workspaceRoot/.cursor/rules/module-file-playbook.mdc.template +0 -61
- 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 -58
- 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/typeChecker-kravn7ns.js +0 -8
- /package/{index-0wae5ebk.js → index-meh558jy.js} +0 -0
- /package/{index-ss469dec.js → index-nz8prx9g.js} +0 -0
package/.build-stamp
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
660f8be823b788bf2ecd02a3c5e6ddf5f69299e441b1cb0dd9dbe76b49fbf618
|
package/README.ko.md
CHANGED
package/README.md
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
// @bun
|
|
2
|
+
import"./index-q0y2jq9j.js";
|
|
2
3
|
import {
|
|
3
4
|
AiSession
|
|
4
|
-
} from "./index-
|
|
5
|
+
} from "./index-c69j78kk.js";
|
|
5
6
|
import {
|
|
6
7
|
AbstractDoc
|
|
7
|
-
} from "./index-
|
|
8
|
-
import"./index-mxvakhsm.js";
|
|
9
|
-
import"./index-67546d0j.js";
|
|
10
|
-
import"./index-r24hmh0q.js";
|
|
8
|
+
} from "./index-meh558jy.js";
|
|
11
9
|
|
|
12
10
|
// pkgs/@akanjs/devkit/abstractCompactor.ts
|
|
13
11
|
import { Logger } from "akanjs/common";
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import {
|
|
3
|
-
AgentScript
|
|
4
|
-
} from "./index-ej426mcr.js";
|
|
5
|
-
import"./index-a00jg8x8.js";
|
|
6
|
-
import"./index-rzwcpcc3.js";
|
|
7
|
-
import"./index-tdbas9r0.js";
|
|
8
2
|
import {
|
|
9
3
|
Workspace,
|
|
10
4
|
command
|
|
11
|
-
} from "./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
15
|
-
import"./index-
|
|
16
|
-
import"./index-
|
|
5
|
+
} from "./index-znynzt5w.js";
|
|
6
|
+
import"./index-q0y2jq9j.js";
|
|
7
|
+
import"./index-qsq3q8fy.js";
|
|
8
|
+
import"./index-6wwzs1bc.js";
|
|
9
|
+
import"./index-by5gpp8x.js";
|
|
10
|
+
import"./index-fc1bh0a7.js";
|
|
11
|
+
import"./index-gtmz74tj.js";
|
|
12
|
+
import"./index-h7yw2z9n.js";
|
|
13
|
+
import {
|
|
14
|
+
AgentScript
|
|
15
|
+
} from "./index-29sxqfaw.js";
|
|
17
16
|
|
|
18
17
|
// pkgs/@akanjs/cli/agent/agent.command.ts
|
|
19
18
|
class AgentCommand extends command("agent", [AgentScript], ({ public: target }) => ({
|
|
@@ -1,31 +1,30 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import {
|
|
3
|
-
AbstractDoc
|
|
4
|
-
} from "./index-0wae5ebk.js";
|
|
5
|
-
import {
|
|
6
|
-
ApplicationScript
|
|
7
|
-
} from "./index-e16gnn26.js";
|
|
8
|
-
import {
|
|
9
|
-
getMobileTargetChoices
|
|
10
|
-
} from "./index-76rn3g2c.js";
|
|
11
|
-
import"./index-7c6k4yvg.js";
|
|
12
2
|
import {
|
|
13
3
|
App,
|
|
14
|
-
|
|
4
|
+
Apps,
|
|
15
5
|
Sys,
|
|
6
|
+
Exec,
|
|
16
7
|
Workspace,
|
|
17
8
|
command
|
|
18
|
-
} from "./index-
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-
|
|
22
|
-
import
|
|
23
|
-
|
|
24
|
-
|
|
9
|
+
} from "./index-znynzt5w.js";
|
|
10
|
+
import"./index-q0y2jq9j.js";
|
|
11
|
+
import"./index-qsq3q8fy.js";
|
|
12
|
+
import"./index-6wwzs1bc.js";
|
|
13
|
+
import {
|
|
14
|
+
ApplicationScript
|
|
15
|
+
} from "./index-zz5jyd94.js";
|
|
16
|
+
import"./index-gq44bqjt.js";
|
|
17
|
+
import"./index-hwkygn9s.js";
|
|
18
|
+
import {
|
|
19
|
+
AbstractDoc
|
|
20
|
+
} from "./index-meh558jy.js";
|
|
21
|
+
import"./index-5svjba73.js";
|
|
22
|
+
import {
|
|
23
|
+
getMobileTargetChoices
|
|
24
|
+
} from "./index-47pj3aee.js";
|
|
25
25
|
|
|
26
26
|
// pkgs/@akanjs/cli/application/application.command.ts
|
|
27
27
|
import { select } from "@inquirer/prompts";
|
|
28
|
-
var asMobileEnv = (env) => env;
|
|
29
28
|
var mobileTargetOption = {
|
|
30
29
|
desc: "mobile target name or all",
|
|
31
30
|
ask: "Select mobile target",
|
|
@@ -39,6 +38,9 @@ class ApplicationCommand extends command("application", [ApplicationScript], ({
|
|
|
39
38
|
removeApplication: target({ desc: "Remove an application from the workspace" }).with(App).exec(async function(app) {
|
|
40
39
|
await this.applicationScript.removeApplication(app);
|
|
41
40
|
}),
|
|
41
|
+
planSlice: target({ desc: "List the exact files an app needs to live in a workspace of its own" }).with(App).option("format", String, { desc: "output format", default: "text", enum: ["text", "json"] }).exec(async function(app, format) {
|
|
42
|
+
await this.applicationScript.planSlice(app, format);
|
|
43
|
+
}),
|
|
42
44
|
sync: target({ desc: "Sync dependencies and configuration for an app or library" }).with(Sys).exec(async function(sys) {
|
|
43
45
|
await this.applicationScript.sync(sys);
|
|
44
46
|
}),
|
|
@@ -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
|
}),
|
|
@@ -68,18 +93,21 @@ class ApplicationCommand extends command("application", [ApplicationScript], ({
|
|
|
68
93
|
enum: ["local", "debug", "develop", "main"],
|
|
69
94
|
desc: "backend environment",
|
|
70
95
|
default: "debug"
|
|
71
|
-
}).option("write", Boolean, { desc: "write code generation", default: true }).option("regenerate", Boolean, { flag: "g", desc: "delete and regenerate native project", default: false }).exec(async function(app,
|
|
72
|
-
await this.applicationScript.buildIos(app, { target
|
|
96
|
+
}).option("write", Boolean, { desc: "write code generation", default: true }).option("regenerate", Boolean, { flag: "g", desc: "delete and regenerate native project", default: false }).exec(async function(app, target, env, write, regenerate) {
|
|
97
|
+
await this.applicationScript.buildIos(app, { target, env, write, regenerate });
|
|
73
98
|
}),
|
|
74
99
|
buildAndroid: target({ short: true, desc: "Build Android app with Capacitor" }).with(App).option("target", String, mobileTargetOption).option("env", String, {
|
|
75
100
|
enum: ["local", "debug", "develop", "main"],
|
|
76
101
|
desc: "backend environment",
|
|
77
102
|
default: "debug"
|
|
78
|
-
}).option("write", Boolean, { desc: "write code generation", default: true }).option("regenerate", Boolean, { flag: "g", desc: "delete and regenerate native project", default: false }).exec(async function(app,
|
|
79
|
-
await this.applicationScript.buildAndroid(app, { target
|
|
103
|
+
}).option("write", Boolean, { desc: "write code generation", default: true }).option("regenerate", Boolean, { flag: "g", desc: "delete and regenerate native project", default: false }).exec(async function(app, target, env, write, regenerate) {
|
|
104
|
+
await this.applicationScript.buildAndroid(app, { target, env, write, regenerate });
|
|
80
105
|
}),
|
|
81
|
-
start: target({ short: true, desc: "Start development server (frontend SSR + backend)" }).with(
|
|
82
|
-
|
|
106
|
+
start: target({ short: true, desc: "Start development server(s) (frontend SSR + backend)" }).with(Apps).option("plain", Boolean, { desc: "print prefixed lines instead of the full-screen view", default: false }).option("kill", Boolean, { flag: "k", desc: "free the dev ports first, whoever is holding them", default: false }).option("concurrency", Number, {
|
|
107
|
+
desc: "apps to boot at a time (default: what this machine's memory and cores allow)",
|
|
108
|
+
nullable: true
|
|
109
|
+
}).option("dbup", Boolean, { desc: "start the local database first", default: true }).option("open", Boolean, { desc: "open web browser?", default: false }).option("write", Boolean, { desc: "write code generation", default: true }).exec(async function(apps, plain, kill, concurrency, dbup, open, write) {
|
|
110
|
+
await this.applicationScript.start(apps, { plain, kill, concurrency, dbup, open, write });
|
|
83
111
|
}),
|
|
84
112
|
startIos: target({ short: true, desc: "Start iOS app in simulator or device" }).with(App).option("target", String, mobileTargetOption).option("env", String, {
|
|
85
113
|
enum: ["local", "debug", "develop", "main"],
|
|
@@ -91,10 +119,10 @@ class ApplicationCommand extends command("application", [ApplicationScript], ({
|
|
|
91
119
|
}).option("device", String, {
|
|
92
120
|
desc: "run target to select non-interactively: udid, device name, or runtime (e.g. 'iPhone 16' or 'iOS 18')",
|
|
93
121
|
default: ""
|
|
94
|
-
}).exec(async function(app,
|
|
122
|
+
}).exec(async function(app, target, env, open, release, write, regenerate, noAllowProvisioningUpdates, device) {
|
|
95
123
|
await this.applicationScript.startIos(app, {
|
|
96
|
-
target
|
|
97
|
-
env
|
|
124
|
+
target,
|
|
125
|
+
env,
|
|
98
126
|
open,
|
|
99
127
|
operation: release ? "release" : "local",
|
|
100
128
|
write,
|
|
@@ -107,10 +135,10 @@ class ApplicationCommand extends command("application", [ApplicationScript], ({
|
|
|
107
135
|
enum: ["local", "debug", "develop", "main"],
|
|
108
136
|
desc: "backend environment",
|
|
109
137
|
default: "local"
|
|
110
|
-
}).option("release", Boolean, { desc: "release mode", default: false }).option("open", Boolean, { desc: "open android simulator", default: false }).option("write", Boolean, { desc: "write code generation", default: true }).option("regenerate", Boolean, { flag: "g", desc: "delete and regenerate native project", default: false }).exec(async function(app,
|
|
138
|
+
}).option("release", Boolean, { desc: "release mode", default: false }).option("open", Boolean, { desc: "open android simulator", default: false }).option("write", Boolean, { desc: "write code generation", default: true }).option("regenerate", Boolean, { flag: "g", desc: "delete and regenerate native project", default: false }).exec(async function(app, target, env, release, open, write, regenerate) {
|
|
111
139
|
await this.applicationScript.startAndroid(app, {
|
|
112
|
-
target
|
|
113
|
-
env
|
|
140
|
+
target,
|
|
141
|
+
env,
|
|
114
142
|
open,
|
|
115
143
|
operation: release ? "release" : "local",
|
|
116
144
|
write,
|
|
@@ -121,10 +149,10 @@ class ApplicationCommand extends command("application", [ApplicationScript], ({
|
|
|
121
149
|
enum: ["debug", "develop", "main", "local"],
|
|
122
150
|
desc: "backend environment",
|
|
123
151
|
default: "main"
|
|
124
|
-
}).option("write", Boolean, { desc: "write code generation", default: true }).option("regenerate", Boolean, { flag: "g", desc: "delete and regenerate native project", default: false }).option("allowLocalRelease", Boolean, { flag: "l", desc: "allow release with --env local", default: false }).exec(async function(app,
|
|
152
|
+
}).option("write", Boolean, { desc: "write code generation", default: true }).option("regenerate", Boolean, { flag: "g", desc: "delete and regenerate native project", default: false }).option("allowLocalRelease", Boolean, { flag: "l", desc: "allow release with --env local", default: false }).exec(async function(app, target, env, write, regenerate, allowLocalRelease) {
|
|
125
153
|
await this.applicationScript.releaseIos(app, {
|
|
126
|
-
target
|
|
127
|
-
env
|
|
154
|
+
target,
|
|
155
|
+
env,
|
|
128
156
|
write,
|
|
129
157
|
regenerate,
|
|
130
158
|
allowLocalRelease
|
|
@@ -134,10 +162,10 @@ class ApplicationCommand extends command("application", [ApplicationScript], ({
|
|
|
134
162
|
enum: ["debug", "develop", "main", "local"],
|
|
135
163
|
desc: "backend environment",
|
|
136
164
|
default: "main"
|
|
137
|
-
}).option("write", Boolean, { desc: "write code generation", default: true }).option("regenerate", Boolean, { flag: "g", desc: "delete and regenerate native project", default: false }).option("allowLocalRelease", Boolean, { flag: "l", desc: "allow release with --env local", default: false }).exec(async function(app, assembleType,
|
|
165
|
+
}).option("write", Boolean, { desc: "write code generation", default: true }).option("regenerate", Boolean, { flag: "g", desc: "delete and regenerate native project", default: false }).option("allowLocalRelease", Boolean, { flag: "l", desc: "allow release with --env local", default: false }).exec(async function(app, assembleType, target, env, write, regenerate, allowLocalRelease) {
|
|
138
166
|
await this.applicationScript.releaseAndroid(app, assembleType, {
|
|
139
|
-
target
|
|
140
|
-
env
|
|
167
|
+
target,
|
|
168
|
+
env,
|
|
141
169
|
write,
|
|
142
170
|
regenerate,
|
|
143
171
|
allowLocalRelease
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
// @bun
|
|
2
|
+
import {
|
|
3
|
+
Spinner
|
|
4
|
+
} from "./index-qsq3q8fy.js";
|
|
2
5
|
import {
|
|
3
6
|
AllRoutesBuilder,
|
|
4
7
|
CsrArtifactBuilder,
|
|
5
|
-
|
|
6
|
-
precompressArtifacts
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import"./index-
|
|
10
|
-
import"./index-
|
|
11
|
-
import
|
|
12
|
-
|
|
13
|
-
} from "./index-mxvakhsm.js";
|
|
14
|
-
import"./index-r24hmh0q.js";
|
|
8
|
+
FontPruner,
|
|
9
|
+
precompressArtifacts,
|
|
10
|
+
SsrBaseArtifactBuilder
|
|
11
|
+
} from "./index-p5neav9b.js";
|
|
12
|
+
import"./index-w8kmx1b6.js";
|
|
13
|
+
import"./index-q0y2jq9j.js";
|
|
14
|
+
import"./index-hwkygn9s.js";
|
|
15
|
+
import"./index-n68jx79w.js";
|
|
15
16
|
|
|
16
17
|
// pkgs/@akanjs/devkit/applicationBuildRunner.ts
|
|
17
18
|
import { mkdir, rm } from "fs/promises";
|
|
@@ -22,6 +23,7 @@ var BUILD_PHASE_EMOJIS = {
|
|
|
22
23
|
backend: "\uD83D\uDCE6",
|
|
23
24
|
ssr: "\uD83E\uDDED",
|
|
24
25
|
csr: "\uD83C\uDFA8",
|
|
26
|
+
assets: "\u2702\uFE0F",
|
|
25
27
|
compress: "\uD83D\uDDDC\uFE0F",
|
|
26
28
|
metadata: "\uD83D\uDCDD"
|
|
27
29
|
};
|
|
@@ -36,10 +38,10 @@ var SSR_RENDER_EXTERNALS = [
|
|
|
36
38
|
"react-server-dom-webpack/client.node",
|
|
37
39
|
"react-server-dom-webpack/client.browser"
|
|
38
40
|
];
|
|
41
|
+
var AKAN_BACKEND_MINIFY = { whitespace: true, syntax: true, identifiers: false };
|
|
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,15 +60,17 @@ 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);
|
|
69
|
-
await this.#runPhase("
|
|
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);
|
|
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
|
|
72
76
|
});
|
|
@@ -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())
|
|
@@ -124,33 +129,33 @@ class ApplicationBuildRunner {
|
|
|
124
129
|
entrypoints: backendEntryPoints,
|
|
125
130
|
outdir: this.#app.dist.cwdPath,
|
|
126
131
|
target: "bun",
|
|
127
|
-
minify:
|
|
132
|
+
minify: AKAN_BACKEND_MINIFY,
|
|
128
133
|
naming: { entry: "[name].[ext]", chunk: "chunk-[hash].[ext]" },
|
|
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",
|
|
136
|
-
minify:
|
|
141
|
+
minify: AKAN_BACKEND_MINIFY,
|
|
137
142
|
naming: { entry: "[name].[ext]", chunk: "chunk-[hash].[ext]" },
|
|
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,
|
|
145
150
|
target: "bun",
|
|
146
|
-
minify:
|
|
151
|
+
minify: AKAN_BACKEND_MINIFY,
|
|
147
152
|
naming: { entry: "console-runtime.[ext]", chunk: "chunk-[hash].[ext]" },
|
|
148
153
|
define: { "process.env.NODE_ENV": JSON.stringify("production") }
|
|
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,5 @@ void run().catch((error) => {
|
|
|
287
292
|
}
|
|
288
293
|
}
|
|
289
294
|
export {
|
|
290
|
-
ApplicationBuildRunner
|
|
291
|
-
AKAN_OPTIONAL_BACKEND_EXTERNALS
|
|
295
|
+
ApplicationBuildRunner
|
|
292
296
|
};
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import {
|
|
3
|
-
Spinner
|
|
4
|
-
} from "./index-mxvakhsm.js";
|
|
5
2
|
import {
|
|
6
3
|
FileSys
|
|
7
|
-
} from "./index-
|
|
8
|
-
import
|
|
4
|
+
} from "./index-q0y2jq9j.js";
|
|
5
|
+
import {
|
|
6
|
+
Spinner
|
|
7
|
+
} from "./index-qsq3q8fy.js";
|
|
9
8
|
|
|
10
9
|
// pkgs/@akanjs/devkit/applicationReleasePackager.ts
|
|
11
10
|
import { cp, mkdir, rm } from "fs/promises";
|
|
12
11
|
import path from "path";
|
|
13
12
|
|
|
14
13
|
// pkgs/@akanjs/devkit/uploadRelease.ts
|
|
15
|
-
import {
|
|
14
|
+
import { Logger, RestClient } from "akanjs/common";
|
|
16
15
|
var spinning = (message) => {
|
|
17
16
|
const spinner = new Spinner(message, { prefix: message, enableSpin: true }).start();
|
|
18
17
|
return spinner;
|
|
@@ -27,7 +26,7 @@ var uploadRelease = async (appName, {
|
|
|
27
26
|
}) => {
|
|
28
27
|
const logger = new Logger("uploadRelease");
|
|
29
28
|
const basePath = local ? "http://localhost:8282/backend" : "https://cloud.akanjs.com/backend";
|
|
30
|
-
const httpClient = new
|
|
29
|
+
const httpClient = new RestClient(basePath);
|
|
31
30
|
const buildPath = `${workspaceRoot}/releases/builds/${appName}-release.tar.gz`;
|
|
32
31
|
const appBuildPath = `${workspaceRoot}/releases/builds/${appName}-appBuild.zip`;
|
|
33
32
|
const sourcePath = `${workspaceRoot}/releases/sources/${appName}-source.tar.gz`;
|
|
@@ -54,7 +53,7 @@ var uploadRelease = async (appName, {
|
|
|
54
53
|
preparingFormSpinner.succeed("Preparing form data... done");
|
|
55
54
|
try {
|
|
56
55
|
const uploadingFilesSpinner = spinning("Uploading files to server...");
|
|
57
|
-
const [
|
|
56
|
+
const [buildFile, sourceFile, appBuildFile] = await httpClient.post("/file/addFiles", formData);
|
|
58
57
|
uploadingFilesSpinner.succeed("Uploading files to server... done");
|
|
59
58
|
const fetchingAppSpinner = spinning(`Fetching dev app information for ${appName}...`);
|
|
60
59
|
const major = platformVersion ? parseInt(platformVersion.split(".")[0]) : 1;
|
|
@@ -63,7 +62,7 @@ var uploadRelease = async (appName, {
|
|
|
63
62
|
const devApp = await httpClient.get(`/devApp/devAppInName/${appName}`);
|
|
64
63
|
fetchingAppSpinner.succeed(`Fetching dev app information for ${appName}... done`);
|
|
65
64
|
const pushingReleaseSpinner = spinning(`Pushing release to ${environment} environment...`);
|
|
66
|
-
const release = await httpClient.post(`/release/pushRelease/${devApp.id}/${environment}/${major}/${minor}/${patch}/${
|
|
65
|
+
const release = await httpClient.post(`/release/pushRelease/${devApp.id}/${environment}/${major}/${minor}/${patch}/${sourceFile.id}/${buildFile.id}/${appBuildFile.id}${os ? `/${os}` : ""}`);
|
|
67
66
|
pushingReleaseSpinner.succeed(`Pushing release to ${environment} environment... done`);
|
|
68
67
|
new Spinner(`Successfully pushed release to ${appName}-${environment} server. `, {
|
|
69
68
|
prefix: `Successfully pushed release to ${appName}-${environment} server. `,
|
package/buildBatch.proc.js
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
|
-
|
|
3
|
+
WorkspaceExecutor,
|
|
4
|
+
AppExecutor
|
|
5
|
+
} from "./index-qsq3q8fy.js";
|
|
6
|
+
import"./index-q0y2jq9j.js";
|
|
7
|
+
import"./index-6wwzs1bc.js";
|
|
8
|
+
import {
|
|
4
9
|
CssCompiler,
|
|
5
|
-
FontOptimizer,
|
|
6
10
|
PagesBundleBuilder,
|
|
11
|
+
CsrArtifactBuilder,
|
|
12
|
+
FontOptimizer,
|
|
7
13
|
SsrBaseArtifactBuilder
|
|
8
|
-
} from "./index-
|
|
9
|
-
import"./index-
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
12
|
-
import {
|
|
13
|
-
AppExecutor,
|
|
14
|
-
WorkspaceExecutor
|
|
15
|
-
} from "./index-hgna5rjy.js";
|
|
16
|
-
import"./index-mxvakhsm.js";
|
|
17
|
-
import"./index-67546d0j.js";
|
|
18
|
-
import"./index-r24hmh0q.js";
|
|
14
|
+
} from "./index-p5neav9b.js";
|
|
15
|
+
import"./index-w8kmx1b6.js";
|
|
16
|
+
import"./index-hwkygn9s.js";
|
|
17
|
+
import"./index-n68jx79w.js";
|
|
19
18
|
|
|
20
19
|
// pkgs/@akanjs/devkit/incrementalBuilder/buildBatch.proc.ts
|
|
21
20
|
import path from "path";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
isPlaceholderAppId2,
|
|
4
|
+
CapacitorApp2
|
|
5
|
+
} from "./index-1yxtbmbj.js";
|
|
6
|
+
import"./index-qsq3q8fy.js";
|
|
7
|
+
import"./index-6wwzs1bc.js";
|
|
8
|
+
import"./index-q0y2jq9j.js";
|
|
9
|
+
export {
|
|
10
|
+
CapacitorApp2 as CapacitorApp,
|
|
11
|
+
isPlaceholderAppId2 as isPlaceholderAppId
|
|
12
|
+
};
|
|
@@ -1,26 +1,24 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import
|
|
3
|
-
CloudScript
|
|
4
|
-
} from "./index-nm6wghb6.js";
|
|
5
|
-
import"./index-zasydjxd.js";
|
|
6
|
-
import"./index-k95xkh4p.js";
|
|
2
|
+
import"./index-q0y2jq9j.js";
|
|
7
3
|
import {
|
|
8
4
|
GlobalConfig
|
|
9
|
-
} from "./index-
|
|
10
|
-
import"./index-e16gnn26.js";
|
|
11
|
-
import"./index-76rn3g2c.js";
|
|
12
|
-
import"./index-7c6k4yvg.js";
|
|
5
|
+
} from "./index-c69j78kk.js";
|
|
13
6
|
import {
|
|
14
7
|
Workspace,
|
|
15
8
|
command
|
|
16
|
-
} from "./index-
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-
|
|
22
|
-
import"./index-
|
|
23
|
-
import"./index-
|
|
9
|
+
} from "./index-znynzt5w.js";
|
|
10
|
+
import"./index-qsq3q8fy.js";
|
|
11
|
+
import"./index-6wwzs1bc.js";
|
|
12
|
+
import"./index-zz5jyd94.js";
|
|
13
|
+
import"./index-gq44bqjt.js";
|
|
14
|
+
import"./index-hwkygn9s.js";
|
|
15
|
+
import"./index-kcxmv48c.js";
|
|
16
|
+
import"./index-7d6vny25.js";
|
|
17
|
+
import"./index-zxgr3s8s.js";
|
|
18
|
+
import {
|
|
19
|
+
CloudScript
|
|
20
|
+
} from "./index-yks023mb.js";
|
|
21
|
+
import"./index-5svjba73.js";
|
|
24
22
|
|
|
25
23
|
// pkgs/@akanjs/cli/cloud/cloud.command.ts
|
|
26
24
|
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","plan-slice":"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","library-status":"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","subspace":"subspace","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,26 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import {
|
|
3
|
-
ContextScript
|
|
4
|
-
} from "./index-1pvex4az.js";
|
|
5
|
-
import"./index-mr5s7mqd.js";
|
|
6
|
-
import"./index-2q1f5j9k.js";
|
|
7
|
-
import"./index-bekddz9q.js";
|
|
8
|
-
import"./index-yzmhasdb.js";
|
|
9
|
-
import"./index-bbkek1bp.js";
|
|
10
|
-
import"./index-ec09pws3.js";
|
|
11
|
-
import"./index-ss469dec.js";
|
|
12
|
-
import"./index-t3723f99.js";
|
|
13
|
-
import"./index-0cj2zxbm.js";
|
|
14
|
-
import"./index-a00jg8x8.js";
|
|
15
|
-
import"./index-rzwcpcc3.js";
|
|
16
|
-
import"./index-tdbas9r0.js";
|
|
17
|
-
import"./index-76rn3g2c.js";
|
|
18
2
|
import {
|
|
19
3
|
Workspace,
|
|
20
4
|
command
|
|
21
|
-
} from "./index-
|
|
22
|
-
import"./index-
|
|
23
|
-
import"./index-
|
|
24
|
-
import"./index-
|
|
25
|
-
import"./index-
|
|
26
|
-
import"./index-
|
|
5
|
+
} from "./index-znynzt5w.js";
|
|
6
|
+
import"./index-q0y2jq9j.js";
|
|
7
|
+
import"./index-qsq3q8fy.js";
|
|
8
|
+
import"./index-6wwzs1bc.js";
|
|
9
|
+
import"./index-by5gpp8x.js";
|
|
10
|
+
import"./index-fc1bh0a7.js";
|
|
11
|
+
import"./index-gtmz74tj.js";
|
|
12
|
+
import {
|
|
13
|
+
ContextScript
|
|
14
|
+
} from "./index-yza7zkpt.js";
|
|
15
|
+
import"./index-1yxtbmbj.js";
|
|
16
|
+
import"./index-h7yw2z9n.js";
|
|
17
|
+
import"./index-0amdxycf.js";
|
|
18
|
+
import"./index-srdssqj7.js";
|
|
19
|
+
import"./index-c69j78kk.js";
|
|
20
|
+
import"./index-zmjppp25.js";
|
|
21
|
+
import"./index-hyywke0f.js";
|
|
22
|
+
import"./index-qkk27bk6.js";
|
|
23
|
+
import"./index-8p8p0cf8.js";
|
|
27
24
|
|
|
28
25
|
// pkgs/@akanjs/cli/context/context.command.ts
|
|
29
26
|
class ContextCommand extends command("context", [ContextScript], ({ public: target }) => ({
|