@akanjs/cli 3.2.0-rc.1 → 3.2.0-rc.3
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-vmd9k4ak.js → CodeAgent-e9c712an.js} +3 -3
- package/{CodeTui-zka44v52.js → CodeTui-wv9yf7eq.js} +1 -1
- package/TunnelShare-zkfkrw8w.js +14 -0
- package/{agent.command-2f657613.js → agent.command-9erafkcb.js} +17 -17
- package/akanCode.js +3 -3
- package/{application.command-q6skd3am.js → application.command-6515t682.js} +13 -13
- package/{applicationBuildRunner-sctcmkyx.js → applicationBuildRunner-bqbyeg84.js} +6 -6
- package/buildBatch.proc.js +6 -6
- package/{cloud.command-7642pks6.js → cloud.command-32esk0v1.js} +19 -19
- package/cloud.script-arsagnq6.js +30 -0
- package/{code.command-7s4ndq2k.js → code.command-xk7rwq2x.js} +6 -6
- package/{context.command-569z0rqf.js → context.command-jwenkkf0.js} +19 -19
- package/context.runner-mqpp67br.js +29 -0
- package/{devTui-w38ch13a.js → devTui-cd03z4mx.js} +1 -1
- package/{guideline.command-gnv3e8p8.js → guideline.command-w6yqpdec.js} +2 -2
- package/incrementalBuilder.proc.js +7 -7
- package/{index-48d5qsj3.js → index-0ba8nj4d.js} +4 -4
- package/{index-ed6ea0qp.js → index-20wvskt8.js} +1 -1
- package/{index-rc5fvqj2.js → index-2eym1yjb.js} +29 -27
- package/{index-5w9my9qe.js → index-2rqyrvcy.js} +8 -8
- package/{index-93ewzmp6.js → index-386canwe.js} +21 -14
- package/{index-w639tvkd.js → index-39jz41jb.js} +29 -8
- package/{index-vkzfk7qt.js → index-43acpsc7.js} +40 -30
- package/{index-mqntfzv5.js → index-54s6knqe.js} +7 -2
- package/{index-6wpaq392.js → index-6h775rv3.js} +4 -4
- package/{index-aj3ehkcx.js → index-7kmbqp0b.js} +1 -1
- package/{index-1q1cjn8s.js → index-84c2pgak.js} +93 -53
- package/{index-0fb3cpbt.js → index-8gm4yag8.js} +9 -7
- package/{index-sy481q2x.js → index-8jpc5fqv.js} +1 -1
- package/{index-7y5yghjg.js → index-9p260r4e.js} +1000 -409
- package/{index-d4n1wmrz.js → index-bak9f2br.js} +4 -4
- package/{index-8g7tdsk4.js → index-bdmgqzb5.js} +4 -4
- package/{index-abgh0jve.js → index-cmg5ngqa.js} +1 -1
- package/{index-vr68mxj5.js → index-ddk49ypz.js} +14 -10
- package/{index-zpv14wpy.js → index-djc5nxpy.js} +3 -3
- package/{index-s2grpzef.js → index-dpgywgeq.js} +3 -3
- package/{index-drz9e84d.js → index-e22zedc2.js} +2 -2
- package/{index-e3vmjtph.js → index-h0p6n4k1.js} +7 -2
- package/{index-9tbgb4d8.js → index-j1hjb477.js} +1 -1
- package/{index-kpdv34rq.js → index-j4hkbzj6.js} +10 -7
- package/{index-ktb3wcqz.js → index-kcpk2d20.js} +8 -8
- package/{index-thckcabc.js → index-ngpt3zz3.js} +18 -3
- package/{index-8kczhnmv.js → index-qrk06tfp.js} +1 -1
- package/{index-8ts9774g.js → index-s34v3y28.js} +9 -4
- package/{index-23860fej.js → index-sc0g6zbm.js} +2 -0
- package/{index-eajbmk10.js → index-v50xjbbe.js} +1 -1
- package/{index-7xdpww43.js → index-vbhx60x5.js} +323 -129
- package/{index-sr5da35e.js → index-wfmpxke3.js} +2 -2
- package/{index-mmym5xmb.js → index-wr9magsr.js} +5 -3
- package/index-x3x31df8.js +14 -0
- package/{index-8pb9yvp8.js → index-xrmrvafh.js} +54 -17
- package/{index-p6hjwt2d.js → index-y725zb1a.js} +1 -1
- package/{index-hqrkqxx2.js → index-ygrdw6jw.js} +1 -1
- package/{index-a8a9ede9.js → index-ytpmk3pb.js} +4 -4
- package/{index-v4p1zye8.js → index-zcdmnfrf.js} +7 -7
- package/{index-fjr4d6yd.js → index-zhkcab5a.js} +5 -5
- package/index.js +23 -23
- package/{library.command-1gp5qe3r.js → library.command-qs8beggh.js} +4 -4
- package/{localRegistry.command-x7jptkd3.js → localRegistry.command-hz4ged9n.js} +18 -18
- package/{module.command-4xz9he6h.js → module.command-z9js77m2.js} +7 -7
- package/{package.command-s7qpnn1g.js → package.command-zqenq8c0.js} +7 -7
- package/package.json +2 -2
- package/{page.command-fan34c49.js → page.command-t0nx1jat.js} +3 -3
- package/{pipeline.command-ph4fnn9w.js → pipeline.command-2yjeas7m.js} +2 -2
- package/{primitive.command-3fqh8emf.js → primitive.command-v5kypwy4.js} +7 -7
- package/{projectTypecheck-vkb40hjc.js → projectTypecheck-s9hhe5sa.js} +1 -1
- package/{quality.command-ecj6exsh.js → quality.command-q55j2htd.js} +6 -6
- package/{repair.command-fe9jw719.js → repair.command-7ssbbdq2.js} +6 -6
- package/{scalar.command-cnvfhk0n.js → scalar.command-p5jb7z57.js} +6 -6
- package/skills/akan-scaffold/SKILL.md +2 -1
- package/{subspace.command-qw5ddd6y.js → subspace.command-7wxy6ptj.js} +8 -8
- package/{tunnel.command-ggj38mqf.js → tunnel.command-22g11n0x.js} +7 -7
- package/{verify.command-w9ttxkdz.js → verify.command-m0wnndd7.js} +14 -14
- package/{workflow.command-ss8devj0.js → workflow.command-jx8dqs9n.js} +30 -15
- package/{workspace.command-6z2rh8ze.js → workspace.command-ca9kfyt3.js} +38 -34
- package/TunnelShare-k3ja4w9x.js +0 -14
- package/cloud.script-1sfseznn.js +0 -30
- package/context.runner-ms8v1rxy.js +0 -29
|
@@ -2,22 +2,22 @@
|
|
|
2
2
|
import {
|
|
3
3
|
runner,
|
|
4
4
|
script
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-386canwe.js";
|
|
6
6
|
import {
|
|
7
7
|
FileSys2
|
|
8
8
|
} from "./index-bns3wcpc.js";
|
|
9
9
|
import {
|
|
10
10
|
PkgExecutor
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-wfmpxke3.js";
|
|
12
12
|
import {
|
|
13
13
|
TypeScriptDependencyScanner2
|
|
14
14
|
} from "./index-qd7xn2bk.js";
|
|
15
15
|
import {
|
|
16
16
|
FrameworkGraph
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-cmg5ngqa.js";
|
|
18
18
|
import {
|
|
19
19
|
MaintainabilityBaseline
|
|
20
|
-
} from "./index-
|
|
20
|
+
} from "./index-ygrdw6jw.js";
|
|
21
21
|
|
|
22
22
|
// pkgs/@akanjs/cli/package/package.runner.ts
|
|
23
23
|
import path2 from "path";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
resolveSsrPageEntriesForApp
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-wfmpxke3.js";
|
|
5
5
|
import {
|
|
6
6
|
computeRouteSeedIndex,
|
|
7
7
|
saveRouteSeedIndex,
|
|
@@ -9,12 +9,12 @@ import {
|
|
|
9
9
|
ClientEntriesBundler,
|
|
10
10
|
VENDOR_SPECIFIERS,
|
|
11
11
|
RouteClientBuilder
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-vbhx60x5.js";
|
|
13
13
|
import {
|
|
14
14
|
SOURCE_EXTS,
|
|
15
15
|
FontOptimizer,
|
|
16
16
|
FontPruner
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-y725zb1a.js";
|
|
18
18
|
import {
|
|
19
19
|
BarrelAnalyzer,
|
|
20
20
|
createTsconfigPackageResolver,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
CsrEntryFiles,
|
|
23
23
|
toClientReferencePath,
|
|
24
24
|
PagesBundleBuilder
|
|
25
|
-
} from "./index-
|
|
25
|
+
} from "./index-84c2pgak.js";
|
|
26
26
|
import {
|
|
27
27
|
CssBlockParser
|
|
28
28
|
} from "./index-62md4dwy.js";
|
|
@@ -1,37 +1,40 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
ApplicationBuildReporter
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-y725zb1a.js";
|
|
5
5
|
import {
|
|
6
6
|
script,
|
|
7
7
|
ExitCodeError,
|
|
8
8
|
markCliErrorPrinted,
|
|
9
9
|
assertPromptable
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-386canwe.js";
|
|
11
11
|
import {
|
|
12
12
|
SysExecutor,
|
|
13
13
|
AppExecutor,
|
|
14
14
|
LibExecutor,
|
|
15
15
|
PkgExecutor
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-wfmpxke3.js";
|
|
17
17
|
import {
|
|
18
18
|
DesktopServerStage
|
|
19
|
-
} from "./index-
|
|
19
|
+
} from "./index-20wvskt8.js";
|
|
20
20
|
import {
|
|
21
21
|
LibraryScript
|
|
22
|
-
} from "./index-
|
|
22
|
+
} from "./index-54s6knqe.js";
|
|
23
23
|
import {
|
|
24
24
|
ApplicationRunner,
|
|
25
25
|
VerifyScope
|
|
26
|
-
} from "./index-
|
|
26
|
+
} from "./index-kcpk2d20.js";
|
|
27
27
|
import {
|
|
28
28
|
PreviewChrome2,
|
|
29
29
|
PreviewView2,
|
|
30
30
|
stripAnsi
|
|
31
|
-
} from "./index-
|
|
31
|
+
} from "./index-sc0g6zbm.js";
|
|
32
32
|
import {
|
|
33
33
|
formatSlicePlan
|
|
34
|
-
} from "./index-
|
|
34
|
+
} from "./index-8jpc5fqv.js";
|
|
35
|
+
import {
|
|
36
|
+
assertPlainName
|
|
37
|
+
} from "./index-x3x31df8.js";
|
|
35
38
|
import {
|
|
36
39
|
openBrowser
|
|
37
40
|
} from "./index-9dp031by.js";
|
|
@@ -1258,6 +1261,7 @@ class ApplicationScript extends script("application", [ApplicationRunner, Librar
|
|
|
1258
1261
|
}
|
|
1259
1262
|
}
|
|
1260
1263
|
async createApplication(appName, workspace, { start = false, libs = [] } = {}) {
|
|
1264
|
+
assertPlainName("app", appName);
|
|
1261
1265
|
const spinner = workspace.spinning("Creating application...");
|
|
1262
1266
|
const app = await this.applicationRunner.createApplication(appName, workspace, libs);
|
|
1263
1267
|
spinner.succeed(`Application created in apps/${app.name}`);
|
|
@@ -1483,7 +1487,7 @@ class ApplicationScript extends script("application", [ApplicationRunner, Librar
|
|
|
1483
1487
|
throw new Error("No app selected to start");
|
|
1484
1488
|
const startedDatabase = dbup ? await this.#prepareSharedDatabase(apps) : false;
|
|
1485
1489
|
const supervisor = new DevSupervisor({ apps, mode, concurrency, open, write, shares });
|
|
1486
|
-
const view = mode === "tui" ? new (await import("./devTui-
|
|
1490
|
+
const view = mode === "tui" ? new (await import("./devTui-cd03z4mx.js")).DevTui(supervisor) : new DevStreamView(apps.map((app) => app.name));
|
|
1487
1491
|
await supervisor.run(view);
|
|
1488
1492
|
if (startedDatabase)
|
|
1489
1493
|
await this.#stopDatabase(workspace);
|
|
@@ -1647,7 +1651,7 @@ class ApplicationScript extends script("application", [ApplicationRunner, Librar
|
|
|
1647
1651
|
await Promise.all(shares.map(async (share) => await share.close()));
|
|
1648
1652
|
}, "Abandoning the tunnel release; the shares expire on their own.");
|
|
1649
1653
|
await Promise.all(apps.map(async (app) => {
|
|
1650
|
-
const { TunnelShare } = await import("./TunnelShare-
|
|
1654
|
+
const { TunnelShare } = await import("./TunnelShare-zkfkrw8w.js");
|
|
1651
1655
|
const share = await TunnelShare.open(app, { workspace: app.workspace });
|
|
1652
1656
|
shares.push(share);
|
|
1653
1657
|
urls.set(app.name, share.url);
|
|
@@ -5,17 +5,17 @@ import {
|
|
|
5
5
|
AkanAppConfig,
|
|
6
6
|
Executor,
|
|
7
7
|
WorkspaceExecutor
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-wfmpxke3.js";
|
|
9
9
|
import {
|
|
10
10
|
resolveAppId,
|
|
11
11
|
targetHtmlFilename
|
|
12
12
|
} from "./index-m9jj544v.js";
|
|
13
13
|
import {
|
|
14
14
|
CsrArtifactBuilder
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-wr9magsr.js";
|
|
16
16
|
import {
|
|
17
17
|
ExitCodeError
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-386canwe.js";
|
|
19
19
|
|
|
20
20
|
// pkgs/@akanjs/devkit/mobile/desktopBin.ts
|
|
21
21
|
import { chmod, mkdir, rename, rm, writeFile } from "fs/promises";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
ApplicationBuildReporter
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-y725zb1a.js";
|
|
5
5
|
import {
|
|
6
6
|
parseBiomeReport,
|
|
7
7
|
Linter,
|
|
@@ -10,11 +10,11 @@ import {
|
|
|
10
10
|
AppExecutor,
|
|
11
11
|
LibExecutor,
|
|
12
12
|
PkgExecutor
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-wfmpxke3.js";
|
|
14
14
|
import {
|
|
15
15
|
WorkspaceRunner,
|
|
16
16
|
AkanQualityScanner
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-zhkcab5a.js";
|
|
18
18
|
|
|
19
19
|
// pkgs/@akanjs/cli/verify/verifyComments.ts
|
|
20
20
|
import { existsSync } from "fs";
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
UpdatePackFolder,
|
|
10
10
|
NativePublicEnv,
|
|
11
11
|
NativeApp
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-djc5nxpy.js";
|
|
13
13
|
import {
|
|
14
14
|
ExitCodeError
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-386canwe.js";
|
|
16
16
|
import {
|
|
17
17
|
ConfigLock
|
|
18
18
|
} from "./index-bqbf654f.js";
|
|
@@ -2,15 +2,18 @@
|
|
|
2
2
|
import {
|
|
3
3
|
runner,
|
|
4
4
|
script
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-386canwe.js";
|
|
6
6
|
import {
|
|
7
7
|
generatedFilesForSync,
|
|
8
8
|
createPassedPrimitiveReport,
|
|
9
9
|
scalarChangedFiles
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-xrmrvafh.js";
|
|
11
11
|
import {
|
|
12
12
|
pluralizeName
|
|
13
13
|
} from "./index-nz8prx9g.js";
|
|
14
|
+
import {
|
|
15
|
+
assertPlainName
|
|
16
|
+
} from "./index-x3x31df8.js";
|
|
14
17
|
|
|
15
18
|
// pkgs/@akanjs/cli/scalar/scalar.runner.ts
|
|
16
19
|
class ScalarRunner extends runner("scalar") {
|
|
@@ -37,6 +40,7 @@ class ScalarRunner extends runner("scalar") {
|
|
|
37
40
|
// pkgs/@akanjs/cli/scalar/scalar.script.ts
|
|
38
41
|
class ScalarScript extends script("scalar", [ScalarRunner]) {
|
|
39
42
|
async createScalar(sys, scalarName) {
|
|
43
|
+
assertPlainName("scalar", scalarName);
|
|
40
44
|
const files = await this.scalarRunner.applyScalarTemplate(sys, scalarName);
|
|
41
45
|
return createPassedPrimitiveReport({
|
|
42
46
|
command: "create-scalar",
|
|
@@ -46,6 +50,7 @@ class ScalarScript extends script("scalar", [ScalarRunner]) {
|
|
|
46
50
|
});
|
|
47
51
|
}
|
|
48
52
|
async removeScalar(sys, scalarName) {
|
|
53
|
+
assertPlainName("scalar", scalarName);
|
|
49
54
|
await sys.removeDir(`lib/__scalar/${scalarName}`);
|
|
50
55
|
}
|
|
51
56
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import {
|
|
3
|
-
jsonText
|
|
4
|
-
} from "./index-8pb9yvp8.js";
|
|
5
2
|
import {
|
|
6
3
|
akanMcpInstallTargets
|
|
7
|
-
} from "./index-
|
|
4
|
+
} from "./index-ngpt3zz3.js";
|
|
5
|
+
import {
|
|
6
|
+
jsonText
|
|
7
|
+
} from "./index-xrmrvafh.js";
|
|
8
8
|
import {
|
|
9
9
|
script
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-386canwe.js";
|
|
11
11
|
import {
|
|
12
12
|
ContextRunner2
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-2eym1yjb.js";
|
|
14
14
|
|
|
15
15
|
// pkgs/@akanjs/cli/context/context.script.ts
|
|
16
16
|
import { Logger } from "akanjs/common";
|
|
@@ -32,7 +32,10 @@ class ContextScript extends script("context", [ContextRunner2]) {
|
|
|
32
32
|
Logger.rawLog(await this.contextRunner.getContext(workspace, options));
|
|
33
33
|
}
|
|
34
34
|
async doctor(workspace, options = {}) {
|
|
35
|
-
|
|
35
|
+
const { status, output } = await this.contextRunner.doctor(workspace, options);
|
|
36
|
+
Logger.rawLog(output);
|
|
37
|
+
if (status === "failed")
|
|
38
|
+
process.exitCode = 1;
|
|
36
39
|
}
|
|
37
40
|
async mcpInstall(workspace, target, { force = false, mode = "apply" } = {}) {
|
|
38
41
|
const targets = resolveMcpInstallTargets(target);
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
AppExecutor,
|
|
8
8
|
LibExecutor,
|
|
9
9
|
PkgExecutor
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-wfmpxke3.js";
|
|
11
11
|
import {
|
|
12
12
|
FileSys2
|
|
13
13
|
} from "./index-bns3wcpc.js";
|
|
@@ -46,28 +46,28 @@ import {
|
|
|
46
46
|
filesChangedSince,
|
|
47
47
|
HmrWatcher,
|
|
48
48
|
WatchRootResolver
|
|
49
|
-
} from "./index-
|
|
49
|
+
} from "./index-y725zb1a.js";
|
|
50
50
|
import {
|
|
51
51
|
runner,
|
|
52
52
|
ExitCodeError,
|
|
53
53
|
assertPromptable
|
|
54
|
-
} from "./index-
|
|
54
|
+
} from "./index-386canwe.js";
|
|
55
55
|
import {
|
|
56
56
|
UpdatePackFolder,
|
|
57
57
|
UpdateUploader,
|
|
58
58
|
NativePublicEnv,
|
|
59
59
|
NativeApp
|
|
60
|
-
} from "./index-
|
|
60
|
+
} from "./index-djc5nxpy.js";
|
|
61
61
|
import {
|
|
62
62
|
DesktopServerStage
|
|
63
|
-
} from "./index-
|
|
63
|
+
} from "./index-20wvskt8.js";
|
|
64
64
|
import {
|
|
65
65
|
resolveMobileTargets,
|
|
66
66
|
resolveAppId
|
|
67
67
|
} from "./index-m9jj544v.js";
|
|
68
68
|
import {
|
|
69
69
|
SlicePlanner
|
|
70
|
-
} from "./index-
|
|
70
|
+
} from "./index-8jpc5fqv.js";
|
|
71
71
|
import {
|
|
72
72
|
openBrowser
|
|
73
73
|
} from "./index-9dp031by.js";
|
|
@@ -2038,7 +2038,7 @@ var reportsNoTestFile = (exec) => {
|
|
|
2038
2038
|
};
|
|
2039
2039
|
|
|
2040
2040
|
// pkgs/@akanjs/cli/application/application.runner.ts
|
|
2041
|
-
var loadBuildRunner = async () => (await import("./applicationBuildRunner-
|
|
2041
|
+
var loadBuildRunner = async () => (await import("./applicationBuildRunner-bqbyeg84.js")).ApplicationBuildRunner;
|
|
2042
2042
|
var loadPrompts = async () => await import("@inquirer/prompts");
|
|
2043
2043
|
|
|
2044
2044
|
class ApplicationRunner extends runner("application") {
|
|
@@ -2239,7 +2239,7 @@ if (loaded) process.exitCode = await loaded.migrations.command(loaded.server, ar
|
|
|
2239
2239
|
await new (await loadBuildRunner())(app).typecheck(options);
|
|
2240
2240
|
}
|
|
2241
2241
|
async typecheckLibrary(lib, options = {}) {
|
|
2242
|
-
const { ProjectTypecheck } = await import("./projectTypecheck-
|
|
2242
|
+
const { ProjectTypecheck } = await import("./projectTypecheck-s9hhe5sa.js");
|
|
2243
2243
|
const root = lib.workspace.workspaceRoot;
|
|
2244
2244
|
await new ProjectTypecheck(lib.cwdPath, root, { ...process.env, AKAN_WORKSPACE_ROOT: root }).run([
|
|
2245
2245
|
"../../server.ts",
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
isScannedRootEntry,
|
|
11
11
|
AppExecutor,
|
|
12
12
|
LibExecutor
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-wfmpxke3.js";
|
|
14
14
|
import {
|
|
15
15
|
FileSys2
|
|
16
16
|
} from "./index-bns3wcpc.js";
|
|
@@ -23,12 +23,28 @@ import {
|
|
|
23
23
|
workflowPathsForPlan,
|
|
24
24
|
workflowRunArtifactPath,
|
|
25
25
|
workflowSyncDir
|
|
26
|
-
} from "./index-
|
|
26
|
+
} from "./index-xrmrvafh.js";
|
|
27
27
|
|
|
28
28
|
// pkgs/@akanjs/devkit/akanContext.ts
|
|
29
29
|
import { readdir } from "fs/promises";
|
|
30
30
|
import path from "path";
|
|
31
31
|
import { capitalize, isRecord, parseRouteModuleKey } from "akanjs/common";
|
|
32
|
+
|
|
33
|
+
// pkgs/@akanjs/devkit/constantFieldNames.ts
|
|
34
|
+
import ts from "typescript";
|
|
35
|
+
var isFieldCall = (node) => ts.isCallExpression(node) && (ts.isIdentifier(node.expression) ? node.expression.text === "field" : ts.isPropertyAccessExpression(node.expression) && isFieldCall(node.expression.expression));
|
|
36
|
+
var constantFieldNames = (content) => {
|
|
37
|
+
const names = [];
|
|
38
|
+
const visit = (node) => {
|
|
39
|
+
if (ts.isPropertyAssignment(node) && ts.isIdentifier(node.name) && isFieldCall(node.initializer))
|
|
40
|
+
names.push(node.name.text);
|
|
41
|
+
ts.forEachChild(node, visit);
|
|
42
|
+
};
|
|
43
|
+
visit(ts.createSourceFile("constant.ts", content, ts.ScriptTarget.Latest));
|
|
44
|
+
return names;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
// pkgs/@akanjs/devkit/akanContext.ts
|
|
32
48
|
var guidelineResourceUri = (name) => `akan://guidelines/${name}`;
|
|
33
49
|
var staticResourceList = [
|
|
34
50
|
{ uri: "akan://docs/framework", name: "Akan framework guide", mimeType: "text/markdown" },
|
|
@@ -165,7 +181,6 @@ var moduleShapeFiles = (module) => {
|
|
|
165
181
|
`${module.name}.signal.ts`
|
|
166
182
|
];
|
|
167
183
|
};
|
|
168
|
-
var constantFieldNames = (content) => [...content.matchAll(/\b([A-Za-z_$][\w$]*)\s*:\s*field\(/g)].map((match) => match[1]).filter(Boolean);
|
|
169
184
|
var safeReadDir = async (dirPath) => (await readdir(dirPath, { withFileTypes: true }).catch(() => [])).sort((a, b) => a.name.localeCompare(b.name));
|
|
170
185
|
var safeReadText = (filePath) => FileSys2.readText(filePath).catch(() => null);
|
|
171
186
|
var safeReadJson = (filePath) => FileSys2.readJson(filePath).catch(() => null);
|
|
@@ -157,7 +157,7 @@ class SubagentPool2 {
|
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
159
|
async#run(id, kind, prompt, signal) {
|
|
160
|
-
const { CodeAgent } = await import("./CodeAgent-
|
|
160
|
+
const { CodeAgent } = await import("./CodeAgent-e9c712an.js");
|
|
161
161
|
const budget = this.#options.parent.tools.subagent;
|
|
162
162
|
const child = SubagentPool2.childOf(this.#options.parent, kind);
|
|
163
163
|
const model = this.#options.model?.();
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
runner,
|
|
4
4
|
script
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-386canwe.js";
|
|
6
6
|
import {
|
|
7
7
|
ModuleExecutor
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-wfmpxke3.js";
|
|
9
9
|
import {
|
|
10
10
|
sourceFile,
|
|
11
11
|
moduleSourcePaths,
|
|
@@ -13,13 +13,16 @@ import {
|
|
|
13
13
|
createPassedPrimitiveReport,
|
|
14
14
|
bilingualLabelForField,
|
|
15
15
|
bilingualDescriptionForField
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-xrmrvafh.js";
|
|
17
17
|
import {
|
|
18
18
|
PageScript
|
|
19
|
-
} from "./index-
|
|
19
|
+
} from "./index-7kmbqp0b.js";
|
|
20
20
|
import {
|
|
21
21
|
pluralizeName
|
|
22
22
|
} from "./index-nz8prx9g.js";
|
|
23
|
+
import {
|
|
24
|
+
assertPlainName
|
|
25
|
+
} from "./index-x3x31df8.js";
|
|
23
26
|
|
|
24
27
|
// pkgs/@akanjs/cli/module/module.script.ts
|
|
25
28
|
import { capitalize as capitalize2 } from "akanjs/common";
|
|
@@ -137,6 +140,7 @@ var moduleChangedFiles = (sys, moduleName, files) => Object.values(files).map((f
|
|
|
137
140
|
|
|
138
141
|
class ModuleScript extends script("module", [ModuleRunner, PageScript]) {
|
|
139
142
|
async createModuleTemplate(sys, name, { page = false } = {}) {
|
|
143
|
+
assertPlainName("module", name);
|
|
140
144
|
const mod = ModuleExecutor.from(sys, name);
|
|
141
145
|
const files = await this.moduleRunner.createModuleTemplate(mod);
|
|
142
146
|
if (page && sys.type === "app")
|
|
@@ -153,6 +157,7 @@ class ModuleScript extends script("module", [ModuleRunner, PageScript]) {
|
|
|
153
157
|
await this.moduleRunner.removeModule(mod);
|
|
154
158
|
}
|
|
155
159
|
async createService(sys, name) {
|
|
160
|
+
assertPlainName("service", name);
|
|
156
161
|
const service = ModuleExecutor.from(sys, `_${name}`);
|
|
157
162
|
const files = await this.moduleRunner.createService(service);
|
|
158
163
|
await sys.scan();
|
|
@@ -109,6 +109,8 @@ class PreviewView2 {
|
|
|
109
109
|
await PreviewView2.#within(view.navigate("about:blank"), Date.now() + startMs, stalled).then(() => PreviewView2.#stalled.delete(engine), (error) => {
|
|
110
110
|
if (error === stalled)
|
|
111
111
|
PreviewView2.#stalled.add(engine);
|
|
112
|
+
else
|
|
113
|
+
PreviewView2.#stalled.delete(engine);
|
|
112
114
|
throw error;
|
|
113
115
|
});
|
|
114
116
|
const deadline = Date.now() + timeoutMs;
|
|
@@ -11,7 +11,7 @@ var moduleInput = {
|
|
|
11
11
|
module: {
|
|
12
12
|
type: "string",
|
|
13
13
|
required: true,
|
|
14
|
-
description: "
|
|
14
|
+
description: "An existing database module, one with lib/<module>/<module>.constant.ts; not a service or scalar module.",
|
|
15
15
|
mustExist: true
|
|
16
16
|
}
|
|
17
17
|
};
|