@akanjs/cli 3.2.0-rc.17 → 3.2.0-rc.19
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 +2 -2
- package/{CodeAgent-18qg03re.js → CodeAgent-q0xkt4at.js} +2 -2
- package/{CodeTui-zkm51zf3.js → CodeTui-n56kpaca.js} +819 -663
- package/TunnelShare-844s9te4.js +18 -0
- package/{agent.command-5k2zegmj.js → agent.command-k07raqft.js} +20 -20
- package/akanCode.js +8 -8
- package/{appExecutor-1bgs9a69.js → appExecutor-xav1zemr.js} +3 -3
- package/{application.command-ge27047n.js → application.command-dv8y8r12.js} +52 -25
- package/{applicationBuildRunner-7skfg8zn.js → applicationBuildRunner-vhx7zq97.js} +9 -10
- package/buildBatch.proc.js +20 -11
- package/{cloud.command-d18qj1v2.js → cloud.command-0vjy3x96.js} +22 -22
- package/cloud.script-jp48r0kw.js +35 -0
- package/{code.command-tz4x5zm6.js → code.command-xc5exq4b.js} +10 -10
- package/{context.command-x1smtm5q.js → context.command-etsat8yk.js} +22 -22
- package/context.runner-e52ak0cx.js +34 -0
- package/{guideline.command-rdcwxf8g.js → guideline.command-zqkntk7b.js} +6 -6
- package/guidelines/agentRule/agentRule.instruction.md +5 -4
- package/guidelines/conventions/core.md +18 -0
- package/guidelines/errorCodes/errorCodes.instruction.md +6 -0
- package/guidelines/mcpRule/mcpRule.instruction.md +4 -2
- package/guidelines/transportRule/transportRule.instruction.md +3 -1
- package/incrementalBuilder.proc.js +559 -409
- package/{index-gh4brxzn.js → index-12js5pj4.js} +1 -1
- package/{index-jfkh776h.js → index-12vv4g80.js} +1 -1
- package/index-4zqebbqb.js +80 -0
- package/{index-er2ja34m.js → index-6bryy19d.js} +500 -422
- package/{index-3641r8q0.js → index-6pzncry1.js} +4 -4
- package/{index-fcrr79gh.js → index-6rrh0ffr.js} +44 -32
- package/{index-nd39rssn.js → index-7jr9mfp2.js} +286 -144
- package/{index-sp331bww.js → index-81qt1jyj.js} +1 -1
- package/{index-2mrn1mrg.js → index-9f3reh2y.js} +1 -1
- package/{index-e82xwj3x.js → index-a05ewnnp.js} +1 -1
- package/{index-bjnebzzc.js → index-bxevbjw7.js} +8 -8
- package/{index-vm6pr11y.js → index-c1vym3gx.js} +2 -2
- package/{index-t8tysbxv.js → index-c9hd79py.js} +4 -4
- package/{index-j2eqe3jk.js → index-c9mnfy9r.js} +38 -23
- package/{index-dtpeyts6.js → index-cc9pevta.js} +1 -1
- package/{index-trp7jdr1.js → index-cet2s7xk.js} +7 -6
- package/{index-yr5jv8yd.js → index-dasa0kbj.js} +3 -3
- package/{index-bxqbt5p3.js → index-ddc2zjj5.js} +1 -1
- package/{index-g7e58wz2.js → index-dz7z9n9t.js} +25 -25
- package/{index-z7t6neq1.js → index-e4vna9dn.js} +4 -4
- package/{index-669sg3yp.js → index-ean2tff1.js} +723 -691
- package/{index-ttfz2sc7.js → index-fgp04fh7.js} +6 -6
- package/{index-bzdq8wfw.js → index-g541mhzw.js} +3 -3
- package/{index-t329y8am.js → index-gh741qft.js} +8 -8
- package/{index-d2r762fk.js → index-k51718xz.js} +2136 -2175
- package/{index-39byv35b.js → index-m6r3pvf5.js} +2 -2
- package/{index-emf3wzvh.js → index-my17308p.js} +7 -7
- package/{index-xywq95wk.js → index-nd8bq17n.js} +6 -6
- package/{index-q4e18ne4.js → index-nxcmgqk3.js} +3 -3
- package/{index-b2sptt87.js → index-pkgha3rt.js} +5 -5
- package/{index-s75h0455.js → index-q2t2w996.js} +1 -1
- package/{index-6p02be7n.js → index-qtqhsb33.js} +204 -160
- package/{index-h7yd92c8.js → index-rj2n5kfk.js} +67 -67
- package/{index-1ts8vfsk.js → index-s5gvwvkb.js} +103 -138
- package/{index-neassptx.js → index-sh3yzse2.js} +8 -7
- package/{index-f482h2hj.js → index-syn4vm3y.js} +1 -1
- package/{index-n8mxyy3f.js → index-t00xrkey.js} +1 -1
- package/{index-g56xae1n.js → index-v72mh89f.js} +7 -8
- package/{index-q57rsax4.js → index-wq8pnev4.js} +3 -3
- package/{index-dp7sht3v.js → index-wxr3941g.js} +8 -8
- package/{index-0c8zj1da.js → index-y8mqkhcf.js} +1 -1
- package/{index-9mx3b3zh.js → index-zk1gjk46.js} +4 -4
- package/index.js +27 -27
- package/{libExecutor-hxe5eqfh.js → libExecutor-mr3vxtnr.js} +2 -2
- package/{library.command-83shs8fw.js → library.command-ps9q5t37.js} +7 -7
- package/{localRegistry.command-sz713jg3.js → localRegistry.command-rszxmvd0.js} +21 -21
- package/{module.command-jhhm0nmw.js → module.command-fcybnn1a.js} +10 -10
- package/{package.command-42syy96v.js → package.command-zen3rhye.js} +10 -10
- package/package.json +2 -2
- package/{page.command-jkv29zzs.js → page.command-gwrxymms.js} +7 -7
- package/{pipeline.command-6sg9g4hq.js → pipeline.command-m1brkqqw.js} +6 -6
- package/{pkgExecutor-6p82w5y1.js → pkgExecutor-x51agavp.js} +2 -2
- package/{primitive.command-tt6aq7m9.js → primitive.command-5vkxvvmk.js} +11 -11
- package/{projectTypecheck-wfrz0cxr.js → projectTypecheck-9dzfah37.js} +1 -1
- package/{quality.command-tqar7ss5.js → quality.command-gqry7eas.js} +9 -9
- package/{repair.command-qkcn329t.js → repair.command-qs4ejcrg.js} +10 -10
- package/{routeSourceValidator-8aph1dsr.js → routeSourceValidator-8n6j1vn7.js} +3 -1
- package/{scalar.command-6nvq11ag.js → scalar.command-ny0vchqq.js} +9 -9
- package/skills/akan-scaffold/SKILL.md +1 -1
- package/{subspace.command-dvwds4cv.js → subspace.command-5pxqjgmw.js} +12 -12
- package/templates/biomeForm.ts +1 -1
- package/templates/env/_env.server.type.ts +1 -1
- package/templates/facetIndex/index.ts +2 -37
- package/templates/workspaceRoot/AGENTS.md.template +2 -1
- package/{tunnel.command-h8r69a7v.js → tunnel.command-ndajt0xk.js} +11 -11
- package/{verify.command-ynec8kt2.js → verify.command-m59ashc7.js} +17 -17
- package/{workflow.command-f70fx73a.js → workflow.command-jchqey88.js} +15 -15
- package/{workspace.command-vagjy1q9.js → workspace.command-g0gzxkpd.js} +36 -36
- package/TunnelShare-6t4rwyc0.js +0 -19
- package/cloud.script-0hbhm3mw.js +0 -35
- package/context.runner-vb7jc0k8.js +0 -34
- package/index-dqsc1b5t.js +0 -18
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
TunnelShare2
|
|
4
|
+
} from "./index-y8mqkhcf.js";
|
|
5
|
+
import"./index-c1vym3gx.js";
|
|
6
|
+
import"./index-wq8pnev4.js";
|
|
7
|
+
import"./index-m9jj544v.js";
|
|
8
|
+
import"./index-dasa0kbj.js";
|
|
9
|
+
import"./index-rj2n5kfk.js";
|
|
10
|
+
import"./index-cet2s7xk.js";
|
|
11
|
+
import"./index-t00xrkey.js";
|
|
12
|
+
import"./index-cc9pevta.js";
|
|
13
|
+
import"./index-v72mh89f.js";
|
|
14
|
+
import"./index-j4yvgfhr.js";
|
|
15
|
+
import"./index-by2tvsq6.js";
|
|
16
|
+
export {
|
|
17
|
+
TunnelShare2 as TunnelShare
|
|
18
|
+
};
|
|
@@ -2,38 +2,38 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Workspace,
|
|
4
4
|
command
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-sh3yzse2.js";
|
|
6
6
|
import"./index-j4yvgfhr.js";
|
|
7
|
-
import"./index-
|
|
7
|
+
import"./index-v72mh89f.js";
|
|
8
8
|
import"./index-by2tvsq6.js";
|
|
9
|
-
import"./index-
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
9
|
+
import"./index-cet2s7xk.js";
|
|
10
|
+
import"./index-t00xrkey.js";
|
|
11
|
+
import"./index-cc9pevta.js";
|
|
12
|
+
import"./index-ean2tff1.js";
|
|
13
|
+
import"./index-7jr9mfp2.js";
|
|
14
|
+
import"./index-6bryy19d.js";
|
|
15
15
|
import"./index-1p81ecbz.js";
|
|
16
16
|
import"./index-p5zh7pmc.js";
|
|
17
17
|
import"./index-89x8tp7z.js";
|
|
18
|
-
import"./index-
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-
|
|
18
|
+
import"./index-c9mnfy9r.js";
|
|
19
|
+
import"./index-s5gvwvkb.js";
|
|
20
|
+
import"./index-wq8pnev4.js";
|
|
21
|
+
import"./index-12vv4g80.js";
|
|
22
22
|
import"./index-m9jj544v.js";
|
|
23
|
-
import"./index-
|
|
24
|
-
import"./index-
|
|
25
|
-
import"./index-
|
|
26
|
-
import"./index-
|
|
23
|
+
import"./index-rj2n5kfk.js";
|
|
24
|
+
import"./index-dasa0kbj.js";
|
|
25
|
+
import"./index-fgp04fh7.js";
|
|
26
|
+
import"./index-syn4vm3y.js";
|
|
27
27
|
import"./index-62md4dwy.js";
|
|
28
28
|
import"./index-zyb0ebm4.js";
|
|
29
29
|
import"./index-ffa52fwf.js";
|
|
30
30
|
import"./index-t4d0ckde.js";
|
|
31
|
-
import"./index-
|
|
31
|
+
import"./index-nd8bq17n.js";
|
|
32
32
|
import {
|
|
33
33
|
AgentScript
|
|
34
|
-
} from "./index-
|
|
35
|
-
import"./index-
|
|
36
|
-
import"./index-
|
|
34
|
+
} from "./index-wxr3941g.js";
|
|
35
|
+
import"./index-12js5pj4.js";
|
|
36
|
+
import"./index-4zqebbqb.js";
|
|
37
37
|
|
|
38
38
|
// pkgs/@akanjs/cli/agent/agent.command.ts
|
|
39
39
|
class AgentCommand extends command("agent", [AgentScript], ({ public: target }) => ({
|
package/akanCode.js
CHANGED
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
CodeMailbox2,
|
|
35
35
|
CodeSessionFork2,
|
|
36
36
|
CodeAgent2
|
|
37
|
-
} from "./index-
|
|
37
|
+
} from "./index-c9hd79py.js";
|
|
38
38
|
import {
|
|
39
39
|
akanCodeDefaultModel2,
|
|
40
40
|
akanCodeModel2,
|
|
@@ -45,20 +45,20 @@ import {
|
|
|
45
45
|
import {
|
|
46
46
|
SubagentPool2,
|
|
47
47
|
AkanCodeCompaction2
|
|
48
|
-
} from "./index-
|
|
48
|
+
} from "./index-ddc2zjj5.js";
|
|
49
49
|
import {
|
|
50
50
|
CodeAgentRpcHost2
|
|
51
51
|
} from "./index-s4nvxpzm.js";
|
|
52
52
|
import {
|
|
53
|
-
CodeTuiLines2,
|
|
54
|
-
CodeTuiAgents2,
|
|
55
|
-
CodeTuiClipboard2,
|
|
56
53
|
CodeTuiCommands2,
|
|
54
|
+
CodeTuiLines2,
|
|
57
55
|
CodeTuiEditor2,
|
|
58
|
-
|
|
56
|
+
CodeTuiAgents2,
|
|
59
57
|
CodeTuiMarkdown2,
|
|
60
|
-
CodeTuiParts2
|
|
61
|
-
|
|
58
|
+
CodeTuiParts2,
|
|
59
|
+
CodeTuiClipboard2,
|
|
60
|
+
CodeTuiFiles2
|
|
61
|
+
} from "./index-9f3reh2y.js";
|
|
62
62
|
import"./index-9bv479q5.js";
|
|
63
63
|
export {
|
|
64
64
|
AkanCli2 as AkanCli,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
AppExecutor2
|
|
4
|
-
} from "./index-
|
|
5
|
-
import"./index-
|
|
6
|
-
import"./index-
|
|
4
|
+
} from "./index-cet2s7xk.js";
|
|
5
|
+
import"./index-t00xrkey.js";
|
|
6
|
+
import"./index-v72mh89f.js";
|
|
7
7
|
import"./index-j4yvgfhr.js";
|
|
8
8
|
import"./index-by2tvsq6.js";
|
|
9
9
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
RouteJsBudget
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-s5gvwvkb.js";
|
|
5
5
|
import {
|
|
6
6
|
App,
|
|
7
7
|
Apps,
|
|
@@ -10,26 +10,26 @@ import {
|
|
|
10
10
|
Exec,
|
|
11
11
|
Workspace,
|
|
12
12
|
command
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-sh3yzse2.js";
|
|
14
14
|
import {
|
|
15
15
|
CliError
|
|
16
16
|
} from "./index-j4yvgfhr.js";
|
|
17
|
-
import"./index-
|
|
17
|
+
import"./index-v72mh89f.js";
|
|
18
18
|
import"./index-by2tvsq6.js";
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-
|
|
22
|
-
import"./index-
|
|
23
|
-
import"./index-
|
|
19
|
+
import"./index-cet2s7xk.js";
|
|
20
|
+
import"./index-t00xrkey.js";
|
|
21
|
+
import"./index-cc9pevta.js";
|
|
22
|
+
import"./index-wq8pnev4.js";
|
|
23
|
+
import"./index-12vv4g80.js";
|
|
24
24
|
import"./index-m9jj544v.js";
|
|
25
|
-
import"./index-
|
|
26
|
-
import"./index-
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
25
|
+
import"./index-rj2n5kfk.js";
|
|
26
|
+
import"./index-dasa0kbj.js";
|
|
27
|
+
import"./index-nxcmgqk3.js";
|
|
28
|
+
import"./index-c9mnfy9r.js";
|
|
29
29
|
import"./index-rwgqba9p.js";
|
|
30
30
|
import {
|
|
31
31
|
ApplicationScript
|
|
32
|
-
} from "./index-
|
|
32
|
+
} from "./index-6rrh0ffr.js";
|
|
33
33
|
import {
|
|
34
34
|
writeOption,
|
|
35
35
|
nativeTargetOption,
|
|
@@ -37,9 +37,9 @@ import {
|
|
|
37
37
|
allowLocalOption,
|
|
38
38
|
publicEnvOption
|
|
39
39
|
} from "./index-mdjc93e1.js";
|
|
40
|
-
import"./index-
|
|
40
|
+
import"./index-12js5pj4.js";
|
|
41
41
|
import"./index-9bv479q5.js";
|
|
42
|
-
import"./index-
|
|
42
|
+
import"./index-4zqebbqb.js";
|
|
43
43
|
|
|
44
44
|
// pkgs/@akanjs/cli/application/application.command.ts
|
|
45
45
|
import { MigrationCommand } from "akanjs/server/migration/migrationCommand";
|
|
@@ -67,8 +67,7 @@ var startEnvOption = {
|
|
|
67
67
|
default: "local"
|
|
68
68
|
};
|
|
69
69
|
var listOf = (value) => (value ?? "").split(",").map((entry) => entry.trim()).filter(Boolean);
|
|
70
|
-
|
|
71
|
-
class ApplicationCommand extends command("application", [ApplicationScript], ({ public: target }) => ({
|
|
70
|
+
var workspaceTargets = ({ public: target }) => ({
|
|
72
71
|
createApplication: target({ desc: "Create a new application in the workspace" }).arg("appName", String, { desc: "name of application" }).option("start", Boolean, { desc: "start application", default: false }).with(Workspace).exec(async function(appName, start, workspace) {
|
|
73
72
|
await this.applicationScript.createApplication(appName.toLowerCase().replace(/ /g, "-"), workspace, { start });
|
|
74
73
|
}),
|
|
@@ -83,7 +82,9 @@ class ApplicationCommand extends command("application", [ApplicationScript], ({
|
|
|
83
82
|
}),
|
|
84
83
|
script: target({ desc: "Run a custom script in the application" }).with(App).arg("filename", String, { desc: "name of script", nullable: true }).exec(async function(app, filename) {
|
|
85
84
|
await this.applicationScript.script(app, filename);
|
|
86
|
-
})
|
|
85
|
+
})
|
|
86
|
+
});
|
|
87
|
+
var migrationTargets = ({ public: target }) => ({
|
|
87
88
|
migrate: target({
|
|
88
89
|
desc: "List, plan, apply, verify or roll back the app's data migrations in script/migration",
|
|
89
90
|
stdio: true,
|
|
@@ -106,7 +107,9 @@ class ApplicationCommand extends command("application", [ApplicationScript], ({
|
|
|
106
107
|
}),
|
|
107
108
|
createMigration: target({ desc: "Create a data migration in the app's script/migration" }).arg("migrationName", String, { desc: "what it does, in camelCase", example: "bizLicenseOwnership" }).with(App).exec(async function(migrationName, app) {
|
|
108
109
|
await this.applicationScript.createMigration(app, migrationName);
|
|
109
|
-
})
|
|
110
|
+
})
|
|
111
|
+
});
|
|
112
|
+
var inspectTargets = ({ public: target }) => ({
|
|
110
113
|
preview: target({
|
|
111
114
|
desc: "Open pages of the app's dev server in a headless browser and print what broke, starting a server if none runs",
|
|
112
115
|
stdio: true
|
|
@@ -194,7 +197,9 @@ class ApplicationCommand extends command("application", [ApplicationScript], ({
|
|
|
194
197
|
follow,
|
|
195
198
|
runtimeDir
|
|
196
199
|
});
|
|
197
|
-
})
|
|
200
|
+
})
|
|
201
|
+
});
|
|
202
|
+
var buildAndTestTargets = ({ public: target }) => ({
|
|
198
203
|
build: target({ short: true, desc: "Build the application for production (frontend + backend)" }).with(App).option("write", Boolean, writeOption).option("fast", Boolean, { desc: "fast build", default: false }).option("quiet", Boolean, { desc: "hide build progress output", default: false }).option("profile", String, {
|
|
199
204
|
desc: "server env profile: bundle env/env.server.<env>.<profile>.ts in place of the environment's own file",
|
|
200
205
|
nullable: true
|
|
@@ -221,7 +226,9 @@ class ApplicationCommand extends command("application", [ApplicationScript], ({
|
|
|
221
226
|
nullable: true
|
|
222
227
|
}).option("write", Boolean, writeOption).option("coverage", Boolean, { desc: "measure coverage; lcov goes under local/coverage/<target>", default: false }).exec(async function(exec, files, write, coverage) {
|
|
223
228
|
await this.applicationScript.test(exec, { write, files: listOf(files), coverage });
|
|
224
|
-
})
|
|
229
|
+
})
|
|
230
|
+
});
|
|
231
|
+
var nativeBuildTargets = ({ public: target }) => ({
|
|
225
232
|
buildIos: target({ short: true, desc: "Build the iOS app on the native runtime" }).with(App).option("target", String, nativeTargetOption).option("env", String, buildEnvOption).option("debug", Boolean, { desc: "debug build instead of release", default: false }).option("write", Boolean, writeOption).exec(async function(app, target, env, debug, write) {
|
|
226
233
|
await this.applicationScript.buildIos(app, { target, env, profile: debug ? "debug" : "release", write });
|
|
227
234
|
}),
|
|
@@ -246,7 +253,9 @@ class ApplicationCommand extends command("application", [ApplicationScript], ({
|
|
|
246
253
|
...notarize ? { notarize } : {},
|
|
247
254
|
...arch ? { arch } : {}
|
|
248
255
|
});
|
|
249
|
-
})
|
|
256
|
+
})
|
|
257
|
+
});
|
|
258
|
+
var startTargets = ({ public: target }) => ({
|
|
250
259
|
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, {
|
|
251
260
|
desc: "apps to boot at a time (default: what this machine's memory and cores allow)",
|
|
252
261
|
nullable: true
|
|
@@ -285,7 +294,9 @@ class ApplicationCommand extends command("application", [ApplicationScript], ({
|
|
|
285
294
|
operation: release ? "release" : "local",
|
|
286
295
|
write
|
|
287
296
|
});
|
|
288
|
-
})
|
|
297
|
+
})
|
|
298
|
+
});
|
|
299
|
+
var releaseTargets = ({ public: target }) => ({
|
|
289
300
|
releaseIos: target({ desc: "Build and sign the iOS app for the App Store (.ipa)" }).with(App).option("target", String, nativeTargetOption).option("env", String, releaseEnvOption).option("team", String, teamOption).option("adHoc", Boolean, { desc: "sign with an ad-hoc profile instead of app-store", default: false }).option("write", Boolean, writeOption).option("allowLocalRelease", Boolean, allowLocalOption("release")).option("publicEnv", String, publicEnvOption("the release")).exec(async function(app, target, env, team, adHoc, write, allowLocalRelease, publicEnv) {
|
|
290
301
|
await this.applicationScript.releaseIos(app, {
|
|
291
302
|
target,
|
|
@@ -305,7 +316,9 @@ class ApplicationCommand extends command("application", [ApplicationScript], ({
|
|
|
305
316
|
allowLocalRelease,
|
|
306
317
|
publicEnv: publicEnv ?? undefined
|
|
307
318
|
});
|
|
308
|
-
})
|
|
319
|
+
})
|
|
320
|
+
});
|
|
321
|
+
var updateTargets = ({ public: target }) => ({
|
|
309
322
|
packUpdate: target({ desc: packUpdateDesc, usageExitCode: 1 }).with(App).option("platform", String, { enum: ["ios", "android"], desc: "the app it updates" }).option("target", String, nativeTargetOption).option("env", String, releaseEnvOption).option("out", String, {
|
|
310
323
|
desc: "output folder (default: dist/native/<app>/<target>/updates/<platform>)",
|
|
311
324
|
nullable: true
|
|
@@ -369,7 +382,9 @@ class ApplicationCommand extends command("application", [ApplicationScript], ({
|
|
|
369
382
|
write,
|
|
370
383
|
allowLocalRelease
|
|
371
384
|
});
|
|
372
|
-
})
|
|
385
|
+
})
|
|
386
|
+
});
|
|
387
|
+
var databaseTargets = ({ public: target }) => ({
|
|
373
388
|
dbup: target({ desc: "Start local database services for a database mode" }).with(Workspace).option("mode", String, {
|
|
374
389
|
desc: "database mode; left out, every mode the workspace's apps declare",
|
|
375
390
|
enum: ["single", "multiple", "cluster"],
|
|
@@ -386,6 +401,18 @@ class ApplicationCommand extends command("application", [ApplicationScript], ({
|
|
|
386
401
|
dbdown: target({ desc: "Stop local database services" }).with(Workspace).exec(async function(workspace) {
|
|
387
402
|
await this.applicationScript.dbdown(workspace);
|
|
388
403
|
})
|
|
404
|
+
});
|
|
405
|
+
|
|
406
|
+
class ApplicationCommand extends command("application", [ApplicationScript], (context) => ({
|
|
407
|
+
...workspaceTargets(context),
|
|
408
|
+
...migrationTargets(context),
|
|
409
|
+
...inspectTargets(context),
|
|
410
|
+
...buildAndTestTargets(context),
|
|
411
|
+
...nativeBuildTargets(context),
|
|
412
|
+
...startTargets(context),
|
|
413
|
+
...releaseTargets(context),
|
|
414
|
+
...updateTargets(context),
|
|
415
|
+
...databaseTargets(context)
|
|
389
416
|
})) {
|
|
390
417
|
}
|
|
391
418
|
export {
|
|
@@ -5,31 +5,30 @@ import {
|
|
|
5
5
|
parseEnvFile,
|
|
6
6
|
WorkspaceExecutor,
|
|
7
7
|
ServerEnvProfile
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-v72mh89f.js";
|
|
9
9
|
import"./index-by2tvsq6.js";
|
|
10
10
|
import"./index-j4yvgfhr.js";
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
11
|
+
import"./index-cet2s7xk.js";
|
|
12
|
+
import"./index-t00xrkey.js";
|
|
13
|
+
import"./index-cc9pevta.js";
|
|
14
14
|
import {
|
|
15
15
|
NARROWABLE_VENDOR_SPECIFIERS
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-k51718xz.js";
|
|
17
17
|
import {
|
|
18
18
|
FontPruner,
|
|
19
19
|
RouteJsBudget
|
|
20
|
-
} from "./index-
|
|
21
|
-
import"./index-
|
|
20
|
+
} from "./index-s5gvwvkb.js";
|
|
21
|
+
import"./index-rj2n5kfk.js";
|
|
22
22
|
import {
|
|
23
23
|
AllRoutesBuilder,
|
|
24
24
|
precompressArtifacts,
|
|
25
25
|
SsrBaseArtifactBuilder,
|
|
26
26
|
VendorImportScanner
|
|
27
|
-
} from "./index-
|
|
27
|
+
} from "./index-zk1gjk46.js";
|
|
28
28
|
import {
|
|
29
29
|
CsrArtifactBuilder
|
|
30
|
-
} from "./index-
|
|
30
|
+
} from "./index-dasa0kbj.js";
|
|
31
31
|
import"./index-62md4dwy.js";
|
|
32
|
-
import"./index-dqsc1b5t.js";
|
|
33
32
|
|
|
34
33
|
// pkgs/@akanjs/devkit/app/applicationBuildRunner.ts
|
|
35
34
|
import path3 from "path";
|
package/buildBatch.proc.js
CHANGED
|
@@ -2,37 +2,37 @@
|
|
|
2
2
|
import {
|
|
3
3
|
FontOptimizer,
|
|
4
4
|
ApplicationBuildReporter
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-s5gvwvkb.js";
|
|
6
6
|
import {
|
|
7
7
|
resolveSsrPageEntriesForApp,
|
|
8
8
|
AppExecutor2
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-cet2s7xk.js";
|
|
10
10
|
import {
|
|
11
11
|
computeRouteSeedIndex,
|
|
12
12
|
saveRouteSeedIndex,
|
|
13
13
|
CsrDevBundler,
|
|
14
14
|
SsrDevBundler
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-k51718xz.js";
|
|
16
16
|
import {
|
|
17
17
|
WorkspaceExecutor
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-v72mh89f.js";
|
|
19
19
|
import"./index-by2tvsq6.js";
|
|
20
20
|
import"./index-j4yvgfhr.js";
|
|
21
|
-
import"./index-
|
|
22
|
-
import"./index-
|
|
21
|
+
import"./index-t00xrkey.js";
|
|
22
|
+
import"./index-cc9pevta.js";
|
|
23
23
|
import {
|
|
24
24
|
ServerGraphFile,
|
|
25
25
|
PagesBundleBuilder
|
|
26
|
-
} from "./index-
|
|
26
|
+
} from "./index-rj2n5kfk.js";
|
|
27
27
|
import {
|
|
28
28
|
CssCompiler,
|
|
29
29
|
SsrBaseArtifactBuilder
|
|
30
|
-
} from "./index-
|
|
30
|
+
} from "./index-zk1gjk46.js";
|
|
31
31
|
import {
|
|
32
32
|
CsrArtifactBuilder
|
|
33
|
-
} from "./index-
|
|
33
|
+
} from "./index-dasa0kbj.js";
|
|
34
34
|
import"./index-62md4dwy.js";
|
|
35
|
-
import"./index-
|
|
35
|
+
import"./index-4zqebbqb.js";
|
|
36
36
|
|
|
37
37
|
// pkgs/@akanjs/devkit/incrementalBuilder/buildBatch.proc.ts
|
|
38
38
|
import path from "path";
|
|
@@ -278,6 +278,15 @@ ${cssText}`).toString(36);
|
|
|
278
278
|
return previous.files.some((fontFile) => path.resolve(fontFile) === normalized);
|
|
279
279
|
});
|
|
280
280
|
}
|
|
281
|
+
static #report(result) {
|
|
282
|
+
if (!process.send)
|
|
283
|
+
return Promise.resolve();
|
|
284
|
+
return new Promise((resolve) => {
|
|
285
|
+
process.once("disconnect", () => resolve());
|
|
286
|
+
process.send?.({ type: "build-batch-result", data: result });
|
|
287
|
+
setTimeout(() => process.disconnect?.(), 5000).unref();
|
|
288
|
+
});
|
|
289
|
+
}
|
|
281
290
|
static async main() {
|
|
282
291
|
const raw = process.argv[2];
|
|
283
292
|
if (!raw)
|
|
@@ -297,8 +306,8 @@ ${cssText}`).toString(36);
|
|
|
297
306
|
const orphaned = () => process.exit(1);
|
|
298
307
|
process.on("disconnect", orphaned);
|
|
299
308
|
const result = await new BuildBatch(request, app).run();
|
|
300
|
-
process.send?.({ type: "build-batch-result", data: result });
|
|
301
309
|
process.off("disconnect", orphaned);
|
|
310
|
+
await BuildBatch.#report(result);
|
|
302
311
|
}
|
|
303
312
|
}
|
|
304
313
|
await BuildBatch.main().catch((err) => {
|
|
@@ -3,39 +3,39 @@ import {
|
|
|
3
3
|
App,
|
|
4
4
|
Workspace,
|
|
5
5
|
command
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-sh3yzse2.js";
|
|
7
7
|
import"./index-j4yvgfhr.js";
|
|
8
|
-
import"./index-
|
|
8
|
+
import"./index-v72mh89f.js";
|
|
9
9
|
import"./index-by2tvsq6.js";
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
10
|
+
import"./index-cet2s7xk.js";
|
|
11
|
+
import"./index-t00xrkey.js";
|
|
12
|
+
import"./index-cc9pevta.js";
|
|
13
|
+
import"./index-c1vym3gx.js";
|
|
14
14
|
import {
|
|
15
15
|
PlatformTestRun
|
|
16
|
-
} from "./index-
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-
|
|
16
|
+
} from "./index-pkgha3rt.js";
|
|
17
|
+
import"./index-wq8pnev4.js";
|
|
18
|
+
import"./index-12vv4g80.js";
|
|
19
19
|
import"./index-m9jj544v.js";
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-
|
|
20
|
+
import"./index-rj2n5kfk.js";
|
|
21
|
+
import"./index-dasa0kbj.js";
|
|
22
22
|
import {
|
|
23
23
|
npmRegistryFromEnv,
|
|
24
24
|
warnIgnoredNpmRegistry
|
|
25
25
|
} from "./index-ffa52fwf.js";
|
|
26
|
-
import"./index-
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
26
|
+
import"./index-s5gvwvkb.js";
|
|
27
|
+
import"./index-nxcmgqk3.js";
|
|
28
|
+
import"./index-c9mnfy9r.js";
|
|
29
29
|
import"./index-rwgqba9p.js";
|
|
30
|
-
import"./index-
|
|
31
|
-
import"./index-
|
|
32
|
-
import"./index-
|
|
33
|
-
import"./index-
|
|
30
|
+
import"./index-6rrh0ffr.js";
|
|
31
|
+
import"./index-7jr9mfp2.js";
|
|
32
|
+
import"./index-q2t2w996.js";
|
|
33
|
+
import"./index-syn4vm3y.js";
|
|
34
34
|
import"./index-2ny1e95c.js";
|
|
35
|
-
import"./index-
|
|
35
|
+
import"./index-e4vna9dn.js";
|
|
36
36
|
import {
|
|
37
37
|
CloudScript2
|
|
38
|
-
} from "./index-
|
|
38
|
+
} from "./index-my17308p.js";
|
|
39
39
|
import {
|
|
40
40
|
writeOption,
|
|
41
41
|
oneNativeTargetOption,
|
|
@@ -46,9 +46,9 @@ import {
|
|
|
46
46
|
hostOption,
|
|
47
47
|
subspaceOption
|
|
48
48
|
} from "./index-mdjc93e1.js";
|
|
49
|
-
import"./index-
|
|
49
|
+
import"./index-12js5pj4.js";
|
|
50
50
|
import"./index-9bv479q5.js";
|
|
51
|
-
import"./index-
|
|
51
|
+
import"./index-4zqebbqb.js";
|
|
52
52
|
|
|
53
53
|
// pkgs/@akanjs/cli/cloud/cloud.command.ts
|
|
54
54
|
var localRegistryUrl = () => npmRegistryFromEnv() ?? "http://127.0.0.1:4873";
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
CloudScript2
|
|
4
|
+
} from "./index-my17308p.js";
|
|
5
|
+
import"./index-pkgha3rt.js";
|
|
6
|
+
import"./index-6rrh0ffr.js";
|
|
7
|
+
import"./index-nxcmgqk3.js";
|
|
8
|
+
import"./index-e4vna9dn.js";
|
|
9
|
+
import"./index-c1vym3gx.js";
|
|
10
|
+
import"./index-ffa52fwf.js";
|
|
11
|
+
import"./index-c9mnfy9r.js";
|
|
12
|
+
import"./index-12js5pj4.js";
|
|
13
|
+
import"./index-syn4vm3y.js";
|
|
14
|
+
import"./index-12vv4g80.js";
|
|
15
|
+
import"./index-wq8pnev4.js";
|
|
16
|
+
import"./index-m9jj544v.js";
|
|
17
|
+
import"./index-2ny1e95c.js";
|
|
18
|
+
import"./index-sh3yzse2.js";
|
|
19
|
+
import"./index-9bv479q5.js";
|
|
20
|
+
import"./index-rwgqba9p.js";
|
|
21
|
+
import"./index-q2t2w996.js";
|
|
22
|
+
import"./index-7jr9mfp2.js";
|
|
23
|
+
import"./index-dasa0kbj.js";
|
|
24
|
+
import"./index-s5gvwvkb.js";
|
|
25
|
+
import"./index-rj2n5kfk.js";
|
|
26
|
+
import"./index-4zqebbqb.js";
|
|
27
|
+
import"./index-cet2s7xk.js";
|
|
28
|
+
import"./index-t00xrkey.js";
|
|
29
|
+
import"./index-cc9pevta.js";
|
|
30
|
+
import"./index-v72mh89f.js";
|
|
31
|
+
import"./index-j4yvgfhr.js";
|
|
32
|
+
import"./index-by2tvsq6.js";
|
|
33
|
+
export {
|
|
34
|
+
CloudScript2 as CloudScript
|
|
35
|
+
};
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
runner,
|
|
5
5
|
script,
|
|
6
6
|
command
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-sh3yzse2.js";
|
|
8
8
|
import"./index-j4yvgfhr.js";
|
|
9
|
-
import"./index-
|
|
9
|
+
import"./index-v72mh89f.js";
|
|
10
10
|
import"./index-by2tvsq6.js";
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
11
|
+
import"./index-cet2s7xk.js";
|
|
12
|
+
import"./index-t00xrkey.js";
|
|
13
|
+
import"./index-cc9pevta.js";
|
|
14
14
|
import {
|
|
15
15
|
AkanCodeEnv,
|
|
16
16
|
akanCodePaths2
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
CodeAgentStreamPrinter2,
|
|
21
21
|
WorkspaceTrust
|
|
22
22
|
} from "./index-0dm25wvf.js";
|
|
23
|
-
import"./index-
|
|
23
|
+
import"./index-4zqebbqb.js";
|
|
24
24
|
|
|
25
25
|
// pkgs/@akanjs/cli/code/code.runner.ts
|
|
26
26
|
import { randomBytes } from "crypto";
|
|
@@ -82,7 +82,7 @@ class CodeRunner extends runner("code") {
|
|
|
82
82
|
async serve(options, listen) {
|
|
83
83
|
await import("./consoleToStderr-h5bryj94.js");
|
|
84
84
|
const [{ CodeAgent }, { CodeAgentRpcHost }, { CodeAgentRpcListener }] = await Promise.all([
|
|
85
|
-
import("./CodeAgent-
|
|
85
|
+
import("./CodeAgent-q0xkt4at.js"),
|
|
86
86
|
import("./CodeAgentRpcHost-6dzfkvsc.js"),
|
|
87
87
|
import("./CodeAgentRpcListener-tcwrdvst.js")
|
|
88
88
|
]);
|
|
@@ -116,8 +116,8 @@ class CodeRunner extends runner("code") {
|
|
|
116
116
|
}
|
|
117
117
|
async tui(options, seed) {
|
|
118
118
|
const [{ CodeAgent }, { CodeTui }] = await Promise.all([
|
|
119
|
-
import("./CodeAgent-
|
|
120
|
-
import("./CodeTui-
|
|
119
|
+
import("./CodeAgent-q0xkt4at.js"),
|
|
120
|
+
import("./CodeTui-n56kpaca.js")
|
|
121
121
|
]);
|
|
122
122
|
const start = await CodeRunner.#start(options, { hostAttached: false, interactive: true, ask: true });
|
|
123
123
|
const agentOptions = start.agent;
|
|
@@ -153,7 +153,7 @@ class CodeRunner extends runner("code") {
|
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
async run(prompt, options) {
|
|
156
|
-
const { CodeAgent } = await import("./CodeAgent-
|
|
156
|
+
const { CodeAgent } = await import("./CodeAgent-q0xkt4at.js");
|
|
157
157
|
const ask = !!process.stdin.isTTY && !!process.stderr.isTTY;
|
|
158
158
|
const start = await CodeRunner.#start(options, { hostAttached: false, interactive: false, ask });
|
|
159
159
|
for (const warning of start.warnings)
|
|
@@ -2,37 +2,37 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Workspace,
|
|
4
4
|
command
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-sh3yzse2.js";
|
|
6
6
|
import"./index-j4yvgfhr.js";
|
|
7
|
-
import"./index-
|
|
7
|
+
import"./index-v72mh89f.js";
|
|
8
8
|
import"./index-by2tvsq6.js";
|
|
9
|
-
import"./index-
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
9
|
+
import"./index-cet2s7xk.js";
|
|
10
|
+
import"./index-t00xrkey.js";
|
|
11
|
+
import"./index-cc9pevta.js";
|
|
12
|
+
import"./index-ean2tff1.js";
|
|
13
|
+
import"./index-7jr9mfp2.js";
|
|
14
|
+
import"./index-6bryy19d.js";
|
|
15
15
|
import"./index-1p81ecbz.js";
|
|
16
|
-
import"./index-
|
|
16
|
+
import"./index-qtqhsb33.js";
|
|
17
17
|
import"./index-89x8tp7z.js";
|
|
18
|
-
import"./index-
|
|
19
|
-
import"./index-
|
|
18
|
+
import"./index-wq8pnev4.js";
|
|
19
|
+
import"./index-12vv4g80.js";
|
|
20
20
|
import"./index-m9jj544v.js";
|
|
21
|
-
import"./index-
|
|
22
|
-
import"./index-
|
|
21
|
+
import"./index-rj2n5kfk.js";
|
|
22
|
+
import"./index-dasa0kbj.js";
|
|
23
23
|
import"./index-zyb0ebm4.js";
|
|
24
|
-
import"./index-
|
|
25
|
-
import"./index-
|
|
26
|
-
import"./index-
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
29
|
-
import"./index-
|
|
24
|
+
import"./index-81qt1jyj.js";
|
|
25
|
+
import"./index-g541mhzw.js";
|
|
26
|
+
import"./index-a05ewnnp.js";
|
|
27
|
+
import"./index-bxevbjw7.js";
|
|
28
|
+
import"./index-dz7z9n9t.js";
|
|
29
|
+
import"./index-m6r3pvf5.js";
|
|
30
30
|
import"./index-t4d0ckde.js";
|
|
31
|
-
import"./index-
|
|
31
|
+
import"./index-gh741qft.js";
|
|
32
32
|
import {
|
|
33
33
|
ContextScript
|
|
34
|
-
} from "./index-
|
|
35
|
-
import"./index-
|
|
34
|
+
} from "./index-6pzncry1.js";
|
|
35
|
+
import"./index-4zqebbqb.js";
|
|
36
36
|
|
|
37
37
|
// pkgs/@akanjs/cli/context/context.command.ts
|
|
38
38
|
class ContextCommand extends command("context", [ContextScript], ({ public: target }) => ({
|