@akanjs/cli 3.1.1-rc.1 → 3.1.1-rc.11
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/{CodeAgent-4pnxwptq.js → CodeAgent-5t8m16w8.js} +2 -2
- package/{CodeTui-hhndze8h.js → CodeTui-drgacyvs.js} +1 -1
- package/TunnelShare-26ty9skr.js +14 -0
- package/{agent.command-p02330r6.js → agent.command-h82gepwn.js} +5 -5
- package/akanCode.js +2 -2
- package/{application.command-1117fgq9.js → application.command-j1reb9p1.js} +11 -11
- package/{applicationBuildRunner-9cnnsdm5.js → applicationBuildRunner-w20x63mz.js} +74 -26
- package/buildBatch.proc.js +5 -5
- package/{cloud.command-ttb2s2x6.js → cloud.command-zd2mfkm0.js} +22 -17
- package/cloud.script-vdj8ymch.js +24 -0
- package/{code.command-16pm1p2v.js → code.command-w1rt357h.js} +6 -6
- package/{context.command-6ys86sqf.js → context.command-d35ppstw.js} +16 -16
- package/context.runner-azvkkzdr.js +25 -0
- package/{guideline.command-3zay3d8g.js → guideline.command-xwkskvky.js} +2 -2
- package/guidelines/agentRule/agentRule.instruction.md +21 -4
- package/guidelines/conventions/conventions.instruction.md +10 -7
- package/guidelines/pageRule/pageRule.instruction.md +9 -0
- package/guidelines/queryRule/queryRule.instruction.md +13 -1
- package/guidelines/runtimeRule/runtimeRule.instruction.md +12 -0
- package/guidelines/workspaceOnboarding/workspaceOnboarding.instruction.md +2 -1
- package/incrementalBuilder.proc.js +3 -3
- package/{index-rr7jk14m.js → index-1e2955yd.js} +23 -10
- package/{index-z9xepn8t.js → index-2qzzp0c9.js} +557 -142
- package/{index-e9e9cebg.js → index-4rwfh2de.js} +3 -3
- package/{index-fmder14z.js → index-553xyb55.js} +1 -1
- package/{index-9hbhm6cs.js → index-657908e5.js} +1 -1
- package/{index-1mfyyxh5.js → index-6pzt55w3.js} +3 -3
- package/{index-4w3skd33.js → index-6y1991s6.js} +3 -3
- package/{index-zn6bn1s2.js → index-7abjzny1.js} +4 -4
- package/{index-2ar6tffh.js → index-7ktk2hnz.js} +67 -19
- package/{index-bb4hj03s.js → index-7yzcaymm.js} +10 -10
- package/{index-ngpn9hzy.js → index-8jb5ep2e.js} +2 -2
- package/{index-ekpp5tax.js → index-8rvwgd1r.js} +4 -97
- package/{index-sww1x1mv.js → index-brpk7gd8.js} +56 -9
- package/{index-7f0edwsj.js → index-ch1sv7ke.js} +57 -12
- package/{index-jgs8z8xb.js → index-cz9g85xh.js} +1 -1
- package/{index-tk3jg2bm.js → index-hdzjaq7s.js} +4 -3
- package/{index-sng3vt0p.js → index-kbbyzs6j.js} +2 -2
- package/{index-z6v7k9sb.js → index-kr62ph5a.js} +24 -2
- package/{index-b5vptvnt.js → index-nmy1rana.js} +4 -4
- package/{index-ynqxpwx6.js → index-pqdz7rat.js} +1 -1
- package/{index-p4dnj2wc.js → index-qmeh0s05.js} +63 -8
- package/{index-qkcwsg6r.js → index-rshwdv9w.js} +2 -2
- package/{index-jaa81e9r.js → index-trvk51ht.js} +4 -4
- package/{index-1cq1hq12.js → index-tzzs52h0.js} +26 -15
- package/{index-qfzfaq96.js → index-wvvwdzfw.js} +3 -3
- package/{index-vcpbrrf2.js → index-xeh7m2j5.js} +1 -1
- package/{index-sh9mmp5v.js → index-y5m4j2w6.js} +7 -7
- package/{index-g2s33373.js → index-ygy8c12j.js} +1 -1
- package/{index-q8age5az.js → index-yknrmkmt.js} +2 -2
- package/index.js +22 -22
- package/{library.command-a8n9h8j4.js → library.command-td8t85kb.js} +3 -3
- package/{localRegistry.command-c2mxqf4h.js → localRegistry.command-jx9zkmxf.js} +12 -12
- package/{module.command-b6f1p1xa.js → module.command-j70mqgpp.js} +5 -5
- package/{package.command-tc27ftmy.js → package.command-1b1v6k5v.js} +3 -3
- package/package.json +2 -2
- package/{page.command-m5wyqfkd.js → page.command-m31w2tsz.js} +3 -3
- package/{pipeline.command-4qxyafpz.js → pipeline.command-q7b8wy55.js} +2 -2
- package/{primitive.command-9yaatk0d.js → primitive.command-4zrbhkb9.js} +6 -6
- package/{projectTypecheck-87k6z6ab.js → projectTypecheck-synx6qff.js} +1 -1
- package/{quality.command-fxn07zwp.js → quality.command-cy0pgqjz.js} +3 -3
- package/{repair.command-evg9g911.js → repair.command-98n6zxg7.js} +5 -5
- package/{scalar.command-xsejjeq1.js → scalar.command-rak5pjk3.js} +4 -4
- package/{subspace.command-4mjjxgmf.js → subspace.command-ej0rk116.js} +8 -8
- package/templates/app/tsconfig.json.template +2 -7
- package/templates/env/_env.server.type.ts +10 -5
- package/templates/facetIndex/index.ts +2 -2
- package/templates/workspaceRoot/bunfig.toml.template +0 -4
- package/{tunnel.command-7f41pm7y.js → tunnel.command-kdx3amrc.js} +7 -7
- package/{workflow.command-qpyq0ya5.js → workflow.command-gffk9nj9.js} +10 -10
- package/{workspace.command-qvwdqmnd.js → workspace.command-j1680trm.js} +33 -32
- package/TunnelShare-8qtffcex.js +0 -14
- package/cloud.script-fqp3zh02.js +0 -24
- package/context.runner-3jrypwe3.js +0 -25
package/index.js
CHANGED
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
getTargetMetas,
|
|
5
5
|
getTargetCommandNames,
|
|
6
6
|
runCommands
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-qmeh0s05.js";
|
|
8
8
|
import"./index-52w0fvh8.js";
|
|
9
|
-
import"./index-
|
|
9
|
+
import"./index-1e2955yd.js";
|
|
10
10
|
|
|
11
11
|
// pkgs/@akanjs/cli/bunVersionGuard.ts
|
|
12
12
|
class BunVersionGuard {
|
|
@@ -22,26 +22,26 @@ import path from "path";
|
|
|
22
22
|
|
|
23
23
|
// pkgs/@akanjs/cli/commandModules.ts
|
|
24
24
|
var commandModules = {
|
|
25
|
-
workspace: async () => (await import("./workspace.command-
|
|
26
|
-
agent: async () => (await import("./agent.command-
|
|
27
|
-
code: async () => (await import("./code.command-
|
|
28
|
-
application: async () => (await import("./application.command-
|
|
29
|
-
library: async () => (await import("./library.command-
|
|
30
|
-
localRegistry: async () => (await import("./localRegistry.command-
|
|
31
|
-
package: async () => (await import("./package.command-
|
|
32
|
-
module: async () => (await import("./module.command-
|
|
33
|
-
page: async () => (await import("./page.command-
|
|
34
|
-
context: async () => (await import("./context.command-
|
|
35
|
-
cloud: async () => (await import("./cloud.command-
|
|
36
|
-
subspace: async () => (await import("./subspace.command-
|
|
37
|
-
guideline: async () => (await import("./guideline.command-
|
|
38
|
-
scalar: async () => (await import("./scalar.command-
|
|
39
|
-
primitive: async () => (await import("./primitive.command-
|
|
40
|
-
quality: async () => (await import("./quality.command-
|
|
41
|
-
repair: async () => (await import("./repair.command-
|
|
42
|
-
workflow: async () => (await import("./workflow.command-
|
|
43
|
-
pipeline: async () => (await import("./pipeline.command-
|
|
44
|
-
tunnel: async () => (await import("./tunnel.command-
|
|
25
|
+
workspace: async () => (await import("./workspace.command-j1680trm.js")).WorkspaceCommand,
|
|
26
|
+
agent: async () => (await import("./agent.command-h82gepwn.js")).AgentCommand,
|
|
27
|
+
code: async () => (await import("./code.command-w1rt357h.js")).CodeCommand,
|
|
28
|
+
application: async () => (await import("./application.command-j1reb9p1.js")).ApplicationCommand,
|
|
29
|
+
library: async () => (await import("./library.command-td8t85kb.js")).LibraryCommand,
|
|
30
|
+
localRegistry: async () => (await import("./localRegistry.command-jx9zkmxf.js")).LocalRegistryCommand,
|
|
31
|
+
package: async () => (await import("./package.command-1b1v6k5v.js")).PackageCommand,
|
|
32
|
+
module: async () => (await import("./module.command-j70mqgpp.js")).ModuleCommand,
|
|
33
|
+
page: async () => (await import("./page.command-m31w2tsz.js")).PageCommand,
|
|
34
|
+
context: async () => (await import("./context.command-d35ppstw.js")).ContextCommand,
|
|
35
|
+
cloud: async () => (await import("./cloud.command-zd2mfkm0.js")).CloudCommand,
|
|
36
|
+
subspace: async () => (await import("./subspace.command-ej0rk116.js")).SubspaceCommand,
|
|
37
|
+
guideline: async () => (await import("./guideline.command-xwkskvky.js")).GuidelineCommand,
|
|
38
|
+
scalar: async () => (await import("./scalar.command-rak5pjk3.js")).ScalarCommand,
|
|
39
|
+
primitive: async () => (await import("./primitive.command-4zrbhkb9.js")).PrimitiveCommand,
|
|
40
|
+
quality: async () => (await import("./quality.command-cy0pgqjz.js")).QualityCommand,
|
|
41
|
+
repair: async () => (await import("./repair.command-98n6zxg7.js")).RepairCommand,
|
|
42
|
+
workflow: async () => (await import("./workflow.command-gffk9nj9.js")).WorkflowCommand,
|
|
43
|
+
pipeline: async () => (await import("./pipeline.command-q7b8wy55.js")).PipelineCommand,
|
|
44
|
+
tunnel: async () => (await import("./tunnel.command-kdx3amrc.js")).TunnelCommand
|
|
45
45
|
};
|
|
46
46
|
var commandModuleIds = Object.keys(commandModules);
|
|
47
47
|
|
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
Lib,
|
|
4
4
|
Workspace,
|
|
5
5
|
command
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-qmeh0s05.js";
|
|
7
7
|
import"./index-52w0fvh8.js";
|
|
8
|
-
import"./index-
|
|
8
|
+
import"./index-1e2955yd.js";
|
|
9
9
|
import {
|
|
10
10
|
LibraryScript
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-rshwdv9w.js";
|
|
12
12
|
|
|
13
13
|
// pkgs/@akanjs/cli/library/library.command.ts
|
|
14
14
|
class LibraryCommand extends command("library", [LibraryScript], ({ public: target }) => ({
|
|
@@ -4,32 +4,32 @@ import {
|
|
|
4
4
|
runner,
|
|
5
5
|
script,
|
|
6
6
|
command
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-qmeh0s05.js";
|
|
8
8
|
import"./index-52w0fvh8.js";
|
|
9
9
|
import {
|
|
10
10
|
PkgExecutor
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-1e2955yd.js";
|
|
12
12
|
import"./index-5nd1wtkv.js";
|
|
13
|
-
import"./index-
|
|
13
|
+
import"./index-2qzzp0c9.js";
|
|
14
|
+
import"./index-8rvwgd1r.js";
|
|
14
15
|
import"./index-m9jj544v.js";
|
|
15
|
-
import"./index-
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-qkcwsg6r.js";
|
|
16
|
+
import"./index-yknrmkmt.js";
|
|
17
|
+
import"./index-cz9g85xh.js";
|
|
18
|
+
import"./index-rshwdv9w.js";
|
|
19
19
|
import {
|
|
20
20
|
ApplicationScript
|
|
21
|
-
} from "./index-
|
|
21
|
+
} from "./index-tzzs52h0.js";
|
|
22
22
|
import"./index-7md2g9vw.js";
|
|
23
|
-
import"./index-
|
|
23
|
+
import"./index-7ktk2hnz.js";
|
|
24
24
|
import {
|
|
25
25
|
getNpmRegistryUrl,
|
|
26
26
|
CloudRunner
|
|
27
|
-
} from "./index-
|
|
27
|
+
} from "./index-ch1sv7ke.js";
|
|
28
28
|
import"./index-tvehn2sp.js";
|
|
29
29
|
import {
|
|
30
30
|
PackageScript
|
|
31
|
-
} from "./index-
|
|
32
|
-
import"./index-
|
|
31
|
+
} from "./index-hdzjaq7s.js";
|
|
32
|
+
import"./index-553xyb55.js";
|
|
33
33
|
|
|
34
34
|
// pkgs/@akanjs/cli/localRegistry/localRegistry.runner.ts
|
|
35
35
|
import { mkdir, rm } from "fs/promises";
|
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
Sys,
|
|
4
4
|
Module,
|
|
5
5
|
command
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-qmeh0s05.js";
|
|
7
7
|
import"./index-52w0fvh8.js";
|
|
8
|
-
import"./index-
|
|
8
|
+
import"./index-1e2955yd.js";
|
|
9
9
|
import {
|
|
10
10
|
renderPrimitiveReport
|
|
11
|
-
} from "./index-
|
|
12
|
-
import"./index-
|
|
11
|
+
} from "./index-pqdz7rat.js";
|
|
12
|
+
import"./index-ygy8c12j.js";
|
|
13
13
|
import {
|
|
14
14
|
ModuleScript
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-nmy1rana.js";
|
|
16
16
|
|
|
17
17
|
// pkgs/@akanjs/cli/module/module.command.ts
|
|
18
18
|
import { Logger, lowerlize } from "akanjs/common";
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
Pkg,
|
|
4
4
|
Workspace,
|
|
5
5
|
command
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-qmeh0s05.js";
|
|
7
7
|
import"./index-52w0fvh8.js";
|
|
8
|
-
import"./index-
|
|
8
|
+
import"./index-1e2955yd.js";
|
|
9
9
|
import"./index-tvehn2sp.js";
|
|
10
10
|
import {
|
|
11
11
|
PackageScript
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-hdzjaq7s.js";
|
|
13
13
|
|
|
14
14
|
// pkgs/@akanjs/cli/package/package.command.ts
|
|
15
15
|
class PackageCommand extends command("package", [PackageScript], ({ public: target }) => ({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akanjs/cli",
|
|
3
|
-
"version": "3.1.1-rc.
|
|
3
|
+
"version": "3.1.1-rc.11",
|
|
4
4
|
"sourceType": "module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@earendil-works/pi-tui": "1.3.0",
|
|
40
40
|
"@inquirer/prompts": "^8.7.3",
|
|
41
41
|
"@tailwindcss/node": "^4.3.3",
|
|
42
|
-
"akanjs": "3.1.1-rc.
|
|
42
|
+
"akanjs": "3.1.1-rc.11",
|
|
43
43
|
"chalk": "^6.0.1",
|
|
44
44
|
"commander": "^15.0.0",
|
|
45
45
|
"dayjs": "^1.11.23",
|
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
App,
|
|
4
4
|
Module,
|
|
5
5
|
command
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-qmeh0s05.js";
|
|
7
7
|
import"./index-52w0fvh8.js";
|
|
8
|
-
import"./index-
|
|
8
|
+
import"./index-1e2955yd.js";
|
|
9
9
|
import {
|
|
10
10
|
PageScript
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-ygy8c12j.js";
|
|
12
12
|
|
|
13
13
|
// pkgs/@akanjs/cli/page/page.command.ts
|
|
14
14
|
class PageCommand extends command("page", [PageScript], ({ public: target }) => ({
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
runner,
|
|
5
5
|
script,
|
|
6
6
|
command
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-qmeh0s05.js";
|
|
8
8
|
import {
|
|
9
9
|
FileSys2
|
|
10
10
|
} from "./index-52w0fvh8.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
AkanAppConfig,
|
|
13
13
|
AkanWorkspaceConfig,
|
|
14
14
|
AppExecutor
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-1e2955yd.js";
|
|
16
16
|
import {
|
|
17
17
|
resolveMobileTargets
|
|
18
18
|
} from "./index-m9jj544v.js";
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Workspace,
|
|
4
4
|
command
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-qmeh0s05.js";
|
|
6
6
|
import"./index-52w0fvh8.js";
|
|
7
|
-
import"./index-
|
|
7
|
+
import"./index-1e2955yd.js";
|
|
8
8
|
import {
|
|
9
9
|
renderPrimitiveReport
|
|
10
|
-
} from "./index-
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
10
|
+
} from "./index-pqdz7rat.js";
|
|
11
|
+
import"./index-ygy8c12j.js";
|
|
12
|
+
import"./index-nmy1rana.js";
|
|
13
13
|
import {
|
|
14
14
|
PrimitiveScript
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-7abjzny1.js";
|
|
16
16
|
|
|
17
17
|
// pkgs/@akanjs/cli/primitive/primitive.command.ts
|
|
18
18
|
import { Logger } from "akanjs/common";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
Workspace,
|
|
4
4
|
script,
|
|
5
5
|
command
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-qmeh0s05.js";
|
|
7
7
|
import"./index-52w0fvh8.js";
|
|
8
8
|
import {
|
|
9
9
|
rootAllowedFiles,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
libFacetRootHintOf,
|
|
13
13
|
facetIndexShadowOf,
|
|
14
14
|
rootEntryHintOf
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-1e2955yd.js";
|
|
16
16
|
|
|
17
17
|
// pkgs/@akanjs/devkit/qualityScanner.ts
|
|
18
18
|
import { createHash } from "crypto";
|
|
@@ -368,7 +368,7 @@ class SignalMutationIndex {
|
|
|
368
368
|
}
|
|
369
369
|
#shapeOf(consumerFile, name) {
|
|
370
370
|
const [root, owner] = consumerFile.split("/");
|
|
371
|
-
const own =
|
|
371
|
+
const own = this.#shapesByOwner.get(`${root}/${owner}`)?.get(name);
|
|
372
372
|
if (own)
|
|
373
373
|
return own;
|
|
374
374
|
for (const [key, shapes] of this.#shapesByOwner) {
|
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
Workspace,
|
|
4
4
|
script,
|
|
5
5
|
command
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-qmeh0s05.js";
|
|
7
7
|
import"./index-52w0fvh8.js";
|
|
8
|
-
import"./index-
|
|
8
|
+
import"./index-1e2955yd.js";
|
|
9
9
|
import"./index-hj6w4ka1.js";
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
10
|
+
import"./index-pqdz7rat.js";
|
|
11
|
+
import"./index-kr62ph5a.js";
|
|
12
12
|
import {
|
|
13
13
|
RepairRunner
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-wvvwdzfw.js";
|
|
15
15
|
|
|
16
16
|
// pkgs/@akanjs/cli/repair/repair.script.ts
|
|
17
17
|
import { Logger } from "akanjs/common";
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Sys,
|
|
4
4
|
command
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-qmeh0s05.js";
|
|
6
6
|
import"./index-52w0fvh8.js";
|
|
7
|
-
import"./index-
|
|
7
|
+
import"./index-1e2955yd.js";
|
|
8
8
|
import {
|
|
9
9
|
renderPrimitiveReport
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-pqdz7rat.js";
|
|
11
11
|
import {
|
|
12
12
|
ScalarScript
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-kbbyzs6j.js";
|
|
14
14
|
|
|
15
15
|
// pkgs/@akanjs/cli/scalar/scalar.command.ts
|
|
16
16
|
import { Logger, lowerlize } from "akanjs/common";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
runner,
|
|
6
6
|
script,
|
|
7
7
|
command
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-qmeh0s05.js";
|
|
9
9
|
import {
|
|
10
10
|
FileSys2
|
|
11
11
|
} from "./index-52w0fvh8.js";
|
|
@@ -14,20 +14,20 @@ import {
|
|
|
14
14
|
Executor,
|
|
15
15
|
WorkspaceExecutor,
|
|
16
16
|
AppExecutor
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-1e2955yd.js";
|
|
18
18
|
import {
|
|
19
19
|
GlobalConfig
|
|
20
|
-
} from "./index-
|
|
20
|
+
} from "./index-7ktk2hnz.js";
|
|
21
21
|
import"./index-m9jj544v.js";
|
|
22
|
-
import"./index-
|
|
23
|
-
import"./index-
|
|
24
|
-
import"./index-
|
|
22
|
+
import"./index-2qzzp0c9.js";
|
|
23
|
+
import"./index-yknrmkmt.js";
|
|
24
|
+
import"./index-cz9g85xh.js";
|
|
25
25
|
import {
|
|
26
26
|
SubspaceConfig
|
|
27
27
|
} from "./index-4pf8g7ff.js";
|
|
28
28
|
import {
|
|
29
29
|
SlicePlanner
|
|
30
|
-
} from "./index-
|
|
30
|
+
} from "./index-553xyb55.js";
|
|
31
31
|
|
|
32
32
|
// pkgs/@akanjs/devkit/subspace.ts
|
|
33
33
|
import { mkdir as mkdir2 } from "fs/promises";
|
|
@@ -816,7 +816,7 @@ class SubspaceRunner extends runner("subspace") {
|
|
|
816
816
|
if (!asked)
|
|
817
817
|
return { name: subspace.name, workspaceId, host, apps, libs: [], outcome: "cancelled", files: [] };
|
|
818
818
|
const { libs } = await subspace.slice();
|
|
819
|
-
const { CloudScript } = await import("./cloud.script-
|
|
819
|
+
const { CloudScript } = await import("./cloud.script-vdj8ymch.js");
|
|
820
820
|
const { files } = await CommandContainer.get(CloudScript).uploadEnv(workspace, {
|
|
821
821
|
host,
|
|
822
822
|
workspaceId,
|
|
@@ -5,12 +5,7 @@
|
|
|
5
5
|
"noEmit": true,
|
|
6
6
|
"incremental": true,
|
|
7
7
|
"resolveJsonModule": true,
|
|
8
|
-
"jsx": "preserve"
|
|
9
|
-
"plugins": [
|
|
10
|
-
{
|
|
11
|
-
"name": "next"
|
|
12
|
-
}
|
|
13
|
-
]
|
|
8
|
+
"jsx": "preserve"
|
|
14
9
|
},
|
|
15
|
-
"include": ["./**/*.ts", "./**/*.tsx"
|
|
10
|
+
"include": ["./**/*.ts", "./**/*.tsx"]
|
|
16
11
|
}
|
|
@@ -1,18 +1,23 @@
|
|
|
1
1
|
import type { AppInfo, LibInfo } from "akanjs";
|
|
2
|
+
import { compareExportNames } from "../facetIndex";
|
|
2
3
|
|
|
3
4
|
export default function getContent(scanInfo: AppInfo | LibInfo | null, dict: { [key: string]: string } = {}) {
|
|
4
5
|
if (!scanInfo) return null;
|
|
5
6
|
const libs = scanInfo.getLibs();
|
|
7
|
+
//? Imports in Biome's order, since `akan lint` lints this gitignored file; the spreads keep getLibs()'s dependency
|
|
8
|
+
//? order, because a later spread overrides an earlier lib's keys.
|
|
9
|
+
const imports = libs
|
|
10
|
+
.toSorted(compareExportNames)
|
|
11
|
+
.map((lib) => `import { env as ${lib}Option } from "@libs/${lib}/server";`);
|
|
6
12
|
return {
|
|
7
13
|
filename: "env.server.type.ts",
|
|
8
14
|
content: libs.length
|
|
9
|
-
?
|
|
10
|
-
${libs.map((lib) => `import { env as ${lib}Option } from "@libs/${lib}/server";`).join("\n")}
|
|
15
|
+
? `${imports.join("\n")}
|
|
11
16
|
|
|
12
17
|
export const libEnv = {
|
|
13
18
|
${libs.map((lib) => ` ...${lib}Option,`).join("\n")}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export const libEnv = {}
|
|
19
|
+
};
|
|
20
|
+
`
|
|
21
|
+
: "export const libEnv = {};\n",
|
|
17
22
|
};
|
|
18
23
|
}
|
|
@@ -18,10 +18,10 @@ const pascalCasePattern = /^[A-Z][A-Za-z0-9]*$/;
|
|
|
18
18
|
const camelCasePattern = /^[a-z][A-Za-z0-9]*$/;
|
|
19
19
|
const nameCasePatternForFacet = (facet: string) => (facet === "ui" ? pascalCasePattern : camelCasePattern);
|
|
20
20
|
//? Biome's organizeImports order, or `akan lint` reorders the barrel: A < a < B < b, a digit before a letter, and a
|
|
21
|
-
//? run of digits compared by its length first. DevGeneratedIndexSync sorts the same way.
|
|
21
|
+
//? run of digits compared by its length first. DevGeneratedIndexSync sorts the same way; the env template imports it.
|
|
22
22
|
const letterRankOf = (char: string) => char.toLowerCase().charCodeAt(0) * 2 + (char === char.toLowerCase() ? 1 : 0);
|
|
23
23
|
const digitRunAt = (name: string, idx: number) => /^\d+/.exec(name.slice(idx))?.[0] ?? "";
|
|
24
|
-
const compareExportNames = (a: string, b: string) => {
|
|
24
|
+
export const compareExportNames = (a: string, b: string) => {
|
|
25
25
|
for (let idx = 0; idx < a.length && idx < b.length; ) {
|
|
26
26
|
const [runA, runB] = [digitRunAt(a, idx), digitRunAt(b, idx)];
|
|
27
27
|
if (runA && runB && runA !== runB) return runA.length - runB.length || (runA < runB ? -1 : 1);
|
|
@@ -4,22 +4,22 @@ import {
|
|
|
4
4
|
runner,
|
|
5
5
|
script,
|
|
6
6
|
command
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-qmeh0s05.js";
|
|
8
8
|
import"./index-52w0fvh8.js";
|
|
9
9
|
import {
|
|
10
10
|
AppExecutor
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-1e2955yd.js";
|
|
12
12
|
import {
|
|
13
13
|
GlobalConfig,
|
|
14
14
|
CloudApi
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-7ktk2hnz.js";
|
|
16
16
|
import"./index-m9jj544v.js";
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-
|
|
19
|
-
import"./index-
|
|
17
|
+
import"./index-2qzzp0c9.js";
|
|
18
|
+
import"./index-yknrmkmt.js";
|
|
19
|
+
import"./index-cz9g85xh.js";
|
|
20
20
|
import {
|
|
21
21
|
TunnelShare2
|
|
22
|
-
} from "./index-
|
|
22
|
+
} from "./index-xeh7m2j5.js";
|
|
23
23
|
import {
|
|
24
24
|
writeClipboard
|
|
25
25
|
} from "./index-p6pbz9n5.js";
|
|
@@ -3,20 +3,20 @@ import {
|
|
|
3
3
|
Workspace,
|
|
4
4
|
script,
|
|
5
5
|
command
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-qmeh0s05.js";
|
|
7
7
|
import"./index-52w0fvh8.js";
|
|
8
|
-
import"./index-
|
|
8
|
+
import"./index-1e2955yd.js";
|
|
9
9
|
import"./index-hj6w4ka1.js";
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
15
|
-
import"./index-
|
|
16
|
-
import"./index-
|
|
10
|
+
import"./index-pqdz7rat.js";
|
|
11
|
+
import"./index-kr62ph5a.js";
|
|
12
|
+
import"./index-ygy8c12j.js";
|
|
13
|
+
import"./index-nmy1rana.js";
|
|
14
|
+
import"./index-7abjzny1.js";
|
|
15
|
+
import"./index-wvvwdzfw.js";
|
|
16
|
+
import"./index-kbbyzs6j.js";
|
|
17
17
|
import {
|
|
18
18
|
WorkflowRunner
|
|
19
|
-
} from "./index-
|
|
19
|
+
} from "./index-y5m4j2w6.js";
|
|
20
20
|
|
|
21
21
|
// pkgs/@akanjs/cli/workflow/workflow.script.ts
|
|
22
22
|
import { Logger } from "akanjs/common";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
runner,
|
|
6
6
|
script,
|
|
7
7
|
command
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-qmeh0s05.js";
|
|
9
9
|
import {
|
|
10
10
|
FileSys2
|
|
11
11
|
} from "./index-52w0fvh8.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
AppExecutor,
|
|
20
20
|
LibExecutor,
|
|
21
21
|
PkgExecutor
|
|
22
|
-
} from "./index-
|
|
22
|
+
} from "./index-1e2955yd.js";
|
|
23
23
|
import {
|
|
24
24
|
countBlocking,
|
|
25
25
|
formatStyleContract,
|
|
@@ -29,48 +29,48 @@ import {
|
|
|
29
29
|
collectRecipeSources2,
|
|
30
30
|
scanRecipes2
|
|
31
31
|
} from "./index-hj6w4ka1.js";
|
|
32
|
-
import"./index-
|
|
33
|
-
import"./index-
|
|
32
|
+
import"./index-pqdz7rat.js";
|
|
33
|
+
import"./index-kr62ph5a.js";
|
|
34
34
|
import"./index-zzvvc845.js";
|
|
35
35
|
import {
|
|
36
36
|
AgentScript
|
|
37
|
-
} from "./index-
|
|
37
|
+
} from "./index-6pzt55w3.js";
|
|
38
38
|
import"./index-5nd1wtkv.js";
|
|
39
|
-
import"./index-
|
|
39
|
+
import"./index-2qzzp0c9.js";
|
|
40
|
+
import"./index-8rvwgd1r.js";
|
|
40
41
|
import"./index-m9jj544v.js";
|
|
41
|
-
import"./index-
|
|
42
|
-
import"./index-
|
|
43
|
-
import"./index-jgs8z8xb.js";
|
|
42
|
+
import"./index-yknrmkmt.js";
|
|
43
|
+
import"./index-cz9g85xh.js";
|
|
44
44
|
import {
|
|
45
45
|
LibraryScript
|
|
46
|
-
} from "./index-
|
|
46
|
+
} from "./index-rshwdv9w.js";
|
|
47
47
|
import {
|
|
48
48
|
ApplicationScript
|
|
49
|
-
} from "./index-
|
|
49
|
+
} from "./index-tzzs52h0.js";
|
|
50
50
|
import"./index-7md2g9vw.js";
|
|
51
|
-
import"./index-
|
|
51
|
+
import"./index-7ktk2hnz.js";
|
|
52
52
|
import"./index-tvehn2sp.js";
|
|
53
53
|
import {
|
|
54
54
|
PackageScript
|
|
55
|
-
} from "./index-
|
|
55
|
+
} from "./index-hdzjaq7s.js";
|
|
56
56
|
import {
|
|
57
57
|
getNpmRegistryUrl,
|
|
58
58
|
getLatestPackageVersion
|
|
59
|
-
} from "./index-
|
|
59
|
+
} from "./index-ch1sv7ke.js";
|
|
60
60
|
import {
|
|
61
61
|
CloudScript2
|
|
62
|
-
} from "./index-
|
|
63
|
-
import"./index-
|
|
64
|
-
import"./index-
|
|
65
|
-
import"./index-
|
|
66
|
-
import"./index-
|
|
67
|
-
import"./index-
|
|
68
|
-
import"./index-
|
|
69
|
-
import"./index-
|
|
62
|
+
} from "./index-brpk7gd8.js";
|
|
63
|
+
import"./index-7yzcaymm.js";
|
|
64
|
+
import"./index-wvvwdzfw.js";
|
|
65
|
+
import"./index-ygy8c12j.js";
|
|
66
|
+
import"./index-nmy1rana.js";
|
|
67
|
+
import"./index-7abjzny1.js";
|
|
68
|
+
import"./index-kbbyzs6j.js";
|
|
69
|
+
import"./index-y5m4j2w6.js";
|
|
70
70
|
import {
|
|
71
71
|
ContextScript
|
|
72
|
-
} from "./index-
|
|
73
|
-
import"./index-
|
|
72
|
+
} from "./index-trvk51ht.js";
|
|
73
|
+
import"./index-553xyb55.js";
|
|
74
74
|
|
|
75
75
|
// pkgs/@akanjs/cli/workspace/workspace.runner.ts
|
|
76
76
|
import { mkdir, writeFile } from "fs/promises";
|
|
@@ -134,10 +134,10 @@ class WorkspaceRunner extends runner("workspace") {
|
|
|
134
134
|
owner = ""
|
|
135
135
|
}) {
|
|
136
136
|
const cwdPath = process.cwd();
|
|
137
|
-
const workspaceRoot = path.
|
|
137
|
+
const workspaceRoot = path.resolve(cwdPath, dirname, repoName);
|
|
138
138
|
const normalizedRegistryUrl = registryUrl ? getNpmRegistryUrl(registryUrl) : undefined;
|
|
139
139
|
const workspace = WorkspaceExecutor.fromRoot({ workspaceRoot, repoName });
|
|
140
|
-
const templateSpinner = workspace.spinning(`Creating workspace template files in ${
|
|
140
|
+
const templateSpinner = workspace.spinning(`Creating workspace template files in ${workspaceRoot}...`);
|
|
141
141
|
const latestTypesBunVersion = await getLatestPackageVersion("@types/bun", "latest", normalizedRegistryUrl);
|
|
142
142
|
await workspace.applyTemplate({
|
|
143
143
|
basePath: ".",
|
|
@@ -147,7 +147,7 @@ class WorkspaceRunner extends runner("workspace") {
|
|
|
147
147
|
if (normalizedRegistryUrl)
|
|
148
148
|
await workspace.writeFile(".npmrc", `registry=${normalizedRegistryUrl}/
|
|
149
149
|
`);
|
|
150
|
-
templateSpinner.succeed(`Workspace files created in ${
|
|
150
|
+
templateSpinner.succeed(`Workspace files created in ${workspaceRoot}`);
|
|
151
151
|
const [rootPackageJson, peerDependencies] = await Promise.all([
|
|
152
152
|
workspace.getPackageJson(),
|
|
153
153
|
this.#getAkanPeerDependencies()
|
|
@@ -166,6 +166,7 @@ class WorkspaceRunner extends runner("workspace") {
|
|
|
166
166
|
"@types/bun": latestTypesBunVersion,
|
|
167
167
|
...defaultWorkspaceTypeDependencies,
|
|
168
168
|
"@akanjs/devkit": akanVersion,
|
|
169
|
+
"@akanjs/cli": akanVersion,
|
|
169
170
|
...typescript ? { typescript } : {}
|
|
170
171
|
}
|
|
171
172
|
};
|
|
@@ -227,7 +228,9 @@ class WorkspaceRunner extends runner("workspace") {
|
|
|
227
228
|
}
|
|
228
229
|
async lint(exec, workspace, { fix = true, maxDiagnostics = defaultMaxDiagnostics } = {}) {
|
|
229
230
|
const configPath = await WorkspaceRunner.resolveBiomeConfigPath(workspace);
|
|
230
|
-
|
|
231
|
+
const [biome, ...biomeArgs] = Linter.biomeCommand(workspace.workspaceRoot);
|
|
232
|
+
await workspace.spawn(biome, [
|
|
233
|
+
...biomeArgs,
|
|
231
234
|
"check",
|
|
232
235
|
...fix ? ["--write"] : [],
|
|
233
236
|
"--no-errors-on-unmatched",
|
|
@@ -317,7 +320,6 @@ AKAN_PUBLIC_LOG_LEVEL=debug
|
|
|
317
320
|
}
|
|
318
321
|
|
|
319
322
|
// pkgs/@akanjs/cli/workspace/workspace.script.ts
|
|
320
|
-
import path2 from "path";
|
|
321
323
|
import { Logger } from "akanjs/common";
|
|
322
324
|
class WorkspaceScript extends script("workspace", [
|
|
323
325
|
WorkspaceRunner,
|
|
@@ -370,10 +372,9 @@ class WorkspaceScript extends script("workspace", [
|
|
|
370
372
|
} catch (_) {
|
|
371
373
|
gitSpinner.fail("Git repository initialization failed. It's not fatal, you can commit manually");
|
|
372
374
|
}
|
|
373
|
-
const workspacePath = path2.join(dirname, repoName);
|
|
374
375
|
Logger.rawLog(`
|
|
375
|
-
\uD83C\uDF89 Welcome aboard! Workspace created in ${
|
|
376
|
-
Logger.rawLog(`\uD83D\uDE80 Run \`cd ${
|
|
376
|
+
\uD83C\uDF89 Welcome aboard! Workspace created in ${workspace.workspaceRoot}`);
|
|
377
|
+
Logger.rawLog(`\uD83D\uDE80 Run \`cd ${workspace.workspaceRoot} && akan start ${appName}\` to start the development server.`);
|
|
377
378
|
Logger.rawLog(`
|
|
378
379
|
\uD83D\uDC4B Happy coding!`);
|
|
379
380
|
}
|