@akanjs/cli 3.2.0-rc.16 → 3.2.0-rc.18
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-w96z7fm7.js} +2 -2
- package/{CodeTui-zkm51zf3.js → CodeTui-496f55hh.js} +1 -1
- package/TunnelShare-tyj8nb0z.js +19 -0
- package/{agent.command-5k2zegmj.js → agent.command-81h65wcv.js} +20 -20
- package/akanCode.js +2 -2
- package/{appExecutor-1bgs9a69.js → appExecutor-g4wq24v1.js} +3 -3
- package/{application.command-ge27047n.js → application.command-rcw4h1gh.js} +15 -15
- package/{applicationBuildRunner-7skfg8zn.js → applicationBuildRunner-emhp6rh0.js} +10 -10
- package/buildBatch.proc.js +10 -10
- package/{cloud.command-d18qj1v2.js → cloud.command-k47h3kma.js} +22 -22
- package/cloud.script-b4smdpa5.js +35 -0
- package/{code.command-tz4x5zm6.js → code.command-dam01a2f.js} +10 -10
- package/{context.command-x1smtm5q.js → context.command-44carkt5.js} +22 -22
- package/context.runner-xtr9ngpa.js +34 -0
- package/{guideline.command-rdcwxf8g.js → guideline.command-ccxs69br.js} +6 -6
- package/incrementalBuilder.proc.js +11 -11
- package/{index-dp7sht3v.js → index-1j1jmmac.js} +8 -8
- package/{index-39byv35b.js → index-286djj0d.js} +2 -2
- package/{index-3641r8q0.js → index-2hwjhe8r.js} +4 -4
- package/{index-trp7jdr1.js → index-4279crca.js} +7 -6
- package/{index-nd39rssn.js → index-a42cf737.js} +58 -46
- package/{index-dtpeyts6.js → index-a85n83t6.js} +1 -1
- package/{index-gh4brxzn.js → index-aw7at6j6.js} +1 -1
- package/{index-6p02be7n.js → index-b061e6fn.js} +9 -9
- package/{index-neassptx.js → index-bbd1727m.js} +5 -5
- package/{index-bzdq8wfw.js → index-cef0fxf2.js} +3 -3
- package/{index-9mx3b3zh.js → index-ctrx7asj.js} +4 -4
- package/{index-0c8zj1da.js → index-e4w015qt.js} +1 -1
- package/{index-vm6pr11y.js → index-g95rbz83.js} +2 -2
- package/{index-b2sptt87.js → index-gd9tkq2k.js} +5 -5
- package/{index-669sg3yp.js → index-ggmwp14t.js} +4 -4
- package/{index-n8mxyy3f.js → index-gkfpqdm8.js} +1 -1
- package/{index-e82xwj3x.js → index-h9356zmz.js} +1 -1
- package/{index-q4e18ne4.js → index-her656ng.js} +3 -3
- package/{index-g56xae1n.js → index-hw2eammf.js} +6 -6
- package/{index-fcrr79gh.js → index-jeqq717b.js} +11 -11
- package/{index-yr5jv8yd.js → index-k1p29hdp.js} +3 -3
- package/{index-dqsc1b5t.js → index-k2kr1wd4.js} +1 -1
- package/{index-emf3wzvh.js → index-kqf2s304.js} +7 -7
- package/{index-1ts8vfsk.js → index-ktvyva62.js} +1 -1
- package/{index-z7t6neq1.js → index-mgvvtjp1.js} +4 -4
- package/{index-h7yd92c8.js → index-nwbdpnna.js} +1 -1
- package/{index-sp331bww.js → index-pcqr0r0m.js} +1 -1
- package/{index-xywq95wk.js → index-pqf6d5ff.js} +6 -6
- package/{index-bjnebzzc.js → index-ptpdd9hw.js} +4 -4
- package/{index-q57rsax4.js → index-qrh7kdb1.js} +3 -3
- package/{index-g7e58wz2.js → index-r790hx48.js} +6 -6
- package/{index-t329y8am.js → index-rj406y9n.js} +8 -8
- package/{index-er2ja34m.js → index-rxxjkbj2.js} +5 -5
- package/{index-ttfz2sc7.js → index-s21zxj7p.js} +6 -6
- package/{index-d2r762fk.js → index-sa8g94se.js} +8 -47
- package/{index-s75h0455.js → index-tkrg58qv.js} +1 -1
- package/{index-jfkh776h.js → index-tpr9nqkj.js} +1 -1
- package/{index-t8tysbxv.js → index-vh8q7mrq.js} +3 -3
- package/{index-j2eqe3jk.js → index-wy7qcqsd.js} +11 -11
- package/{index-bxqbt5p3.js → index-y27cxjd6.js} +1 -1
- package/{index-f482h2hj.js → index-y71v7grx.js} +1 -1
- package/index.js +27 -27
- package/{libExecutor-hxe5eqfh.js → libExecutor-mmrzd606.js} +2 -2
- package/{library.command-83shs8fw.js → library.command-brkcat13.js} +7 -7
- package/{localRegistry.command-sz713jg3.js → localRegistry.command-qwzy3t7w.js} +21 -21
- package/{module.command-jhhm0nmw.js → module.command-t5emqxkr.js} +10 -10
- package/{package.command-42syy96v.js → package.command-xv04dbxf.js} +10 -10
- package/package.json +2 -2
- package/{page.command-jkv29zzs.js → page.command-yhgq9tj8.js} +7 -7
- package/{pipeline.command-6sg9g4hq.js → pipeline.command-x3nkf9kc.js} +6 -6
- package/{pkgExecutor-6p82w5y1.js → pkgExecutor-4cbe3sgr.js} +2 -2
- package/{primitive.command-tt6aq7m9.js → primitive.command-jv60b759.js} +11 -11
- package/{projectTypecheck-wfrz0cxr.js → projectTypecheck-fbfq9rm9.js} +1 -1
- package/{quality.command-tqar7ss5.js → quality.command-mdjardf1.js} +9 -9
- package/{repair.command-qkcn329t.js → repair.command-s22j5xbe.js} +10 -10
- package/{routeSourceValidator-8aph1dsr.js → routeSourceValidator-8n6j1vn7.js} +3 -1
- package/{scalar.command-6nvq11ag.js → scalar.command-a6qs7012.js} +9 -9
- package/{subspace.command-dvwds4cv.js → subspace.command-26hkjqf9.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/{tunnel.command-h8r69a7v.js → tunnel.command-83sfgz5z.js} +11 -11
- package/{verify.command-ynec8kt2.js → verify.command-krm1rrf1.js} +17 -17
- package/{workflow.command-f70fx73a.js → workflow.command-z05y7amj.js} +15 -15
- package/{workspace.command-vagjy1q9.js → workspace.command-qga6cn1n.js} +36 -36
- package/TunnelShare-6t4rwyc0.js +0 -19
- package/cloud.script-0hbhm3mw.js +0 -35
- package/context.runner-vb7jc0k8.js +0 -34
|
@@ -121,6 +121,7 @@ import { createHash } from "crypto";
|
|
|
121
121
|
import path3 from "path";
|
|
122
122
|
|
|
123
123
|
// pkgs/@akanjs/devkit/workspace/workspaceLayout.ts
|
|
124
|
+
import { barrelFacetDirs } from "akanjs/common";
|
|
124
125
|
var appRootAllowedFiles = new Set([
|
|
125
126
|
"AGENTS.md",
|
|
126
127
|
"CLAUDE.md",
|
|
@@ -197,7 +198,6 @@ var testSuffix = /\.(test|spec)(\.tsx?)$/;
|
|
|
197
198
|
var libFacetRootHintOf = (filename) => testSuffix.test(filename) ? "a test beside the generated barrels; move it into the module folder it covers " + "(lib/<model>/<model>.signal.test.ts), or into srvkit/ when it drives several modules" : null;
|
|
198
199
|
var moduleTestTargetOf = (filename) => testSuffix.test(filename) ? filename.replace(testSuffix, "$2") : null;
|
|
199
200
|
var moduleTestHint = "a module test is named after the one module file it covers (<model>.<role>.test.ts); add a describe block to " + "that file's suite instead, or move a suite that drives several modules into srvkit/";
|
|
200
|
-
var barrelFacetDirs = ["ui", "webkit", "srvkit", "common", "plugin"];
|
|
201
201
|
var barrelShadowingIndexFiles = new Set(["index.tsx", "index.jsx", "index.mts"]);
|
|
202
202
|
var facetIndexShadowOf = (sysRelativePath) => {
|
|
203
203
|
const [facet, filename = "", ...nested] = sysRelativePath.split("/");
|
|
@@ -217,7 +217,7 @@ var rootEntryHintOf = (type, name) => type === "app" && retiredAppRootEntries.ha
|
|
|
217
217
|
var isScannedRootEntry = (type, name) => !name.startsWith(".") || rootAllowedDirs[type].has(name);
|
|
218
218
|
|
|
219
219
|
// pkgs/@akanjs/devkit/workspace/scanInfo.ts
|
|
220
|
-
var loadLibExecutor = () => import("./libExecutor-
|
|
220
|
+
var loadLibExecutor = () => import("./libExecutor-mmrzd606.js");
|
|
221
221
|
var serviceFileTypes = [
|
|
222
222
|
"dictionary",
|
|
223
223
|
"service",
|
|
@@ -624,9 +624,9 @@ class WorkspaceInfo {
|
|
|
624
624
|
return existingWorkspaceInfo;
|
|
625
625
|
const [appNames, libNames, pkgNames] = await Promise.all([exec.getApps(), exec.getLibs(), exec.getPkgs()]);
|
|
626
626
|
const [appModule, libModule, pkgModule] = await Promise.all([
|
|
627
|
-
import("./appExecutor-
|
|
627
|
+
import("./appExecutor-g4wq24v1.js"),
|
|
628
628
|
loadLibExecutor(),
|
|
629
|
-
import("./pkgExecutor-
|
|
629
|
+
import("./pkgExecutor-4cbe3sgr.js")
|
|
630
630
|
]);
|
|
631
631
|
const [appInfos, libInfos, pkgInfos] = await Promise.all([
|
|
632
632
|
Promise.all(appNames.map(async (appName) => await appModule.AppExecutor.from(exec, appName).scan())),
|
|
@@ -3384,7 +3384,7 @@ CMD [${command.map((c) => `"${c}"`).join(",")}]`;
|
|
|
3384
3384
|
return new AkanAppConfig(app, libs, rootPackageJson, config, baseDevEnv, plugins ?? [], libContributions);
|
|
3385
3385
|
}
|
|
3386
3386
|
static async#collectLibContributions(app, libs, bustImportCache) {
|
|
3387
|
-
const { LibExecutor } = await import("./libExecutor-
|
|
3387
|
+
const { LibExecutor } = await import("./libExecutor-mmrzd606.js");
|
|
3388
3388
|
const libConfigs = await Promise.all(libs.map(async (libName) => AkanLibConfig.from(LibExecutor.from(app, libName), { bustImportCache }).catch((error) => {
|
|
3389
3389
|
if (error instanceof LibConfigRefusal)
|
|
3390
3390
|
throw error;
|
|
@@ -3604,4 +3604,4 @@ class AkanWorkspaceConfig {
|
|
|
3604
3604
|
return `${url.origin}${url.pathname.replace(/\/+$/, "")}`;
|
|
3605
3605
|
}
|
|
3606
3606
|
}
|
|
3607
|
-
export { binPlatforms, rootAllowedFiles, rootAllowedDirs, isAllowedLibFacetRootFile, libFacetRootHintOf,
|
|
3607
|
+
export { binPlatforms, barrelFacetDirs, rootAllowedFiles, rootAllowedDirs, isAllowedLibFacetRootFile, libFacetRootHintOf, facetIndexShadowOf, rootEntryHintOf, isScannedRootEntry, parseBiomeReport, Linter, ProjectTypecheck2, JsonFormatter, Spinner, CommandExecutionError, execEmoji, Executor, AGENT_BLOCK_START, AGENT_BLOCK_END, stampBlockVersion, extractBlockVersion, readDevkitVersion, upsertAgentBlock, extractAgentBlock, renderRecipeEntries, collectScopeRecipeSources, renderScopeAgentBlock, CLAUDE_COMMENT_RULE, CodegenLock, LibSource, formatLibStatuses, SysExecutor, AppInfo, PkgInfo, parseEnvFile, WorkspaceExecutor, ServerEnvProfile, AkanAppConfig, AkanLibConfig, increaseBuildNum, decreaseBuildNum, AkanWorkspaceConfig };
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
ApplicationBuildReporter
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-ktvyva62.js";
|
|
5
5
|
import {
|
|
6
6
|
script,
|
|
7
7
|
markCliErrorPrinted,
|
|
8
8
|
assertPromptable
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-bbd1727m.js";
|
|
10
10
|
import {
|
|
11
11
|
CliError
|
|
12
12
|
} from "./index-j4yvgfhr.js";
|
|
13
13
|
import {
|
|
14
14
|
SysExecutor
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-hw2eammf.js";
|
|
16
16
|
import {
|
|
17
17
|
AppExecutor2
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-4279crca.js";
|
|
19
19
|
import {
|
|
20
20
|
LibExecutor2
|
|
21
|
-
} from "./index-
|
|
21
|
+
} from "./index-gkfpqdm8.js";
|
|
22
22
|
import {
|
|
23
23
|
PkgExecutor2
|
|
24
|
-
} from "./index-
|
|
24
|
+
} from "./index-a85n83t6.js";
|
|
25
25
|
import {
|
|
26
26
|
DesktopServerStage
|
|
27
|
-
} from "./index-
|
|
27
|
+
} from "./index-tpr9nqkj.js";
|
|
28
28
|
import {
|
|
29
29
|
LibraryScript
|
|
30
|
-
} from "./index-
|
|
30
|
+
} from "./index-her656ng.js";
|
|
31
31
|
import {
|
|
32
32
|
ApplicationRunner,
|
|
33
33
|
VerifyScope
|
|
34
|
-
} from "./index-
|
|
34
|
+
} from "./index-wy7qcqsd.js";
|
|
35
35
|
import {
|
|
36
36
|
PreviewChrome2,
|
|
37
37
|
PreviewView2,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
} from "./index-rwgqba9p.js";
|
|
40
40
|
import {
|
|
41
41
|
formatSlicePlan
|
|
42
|
-
} from "./index-
|
|
42
|
+
} from "./index-aw7at6j6.js";
|
|
43
43
|
import {
|
|
44
44
|
assertPlainName
|
|
45
45
|
} from "./index-va90m8nd.js";
|
|
@@ -1723,7 +1723,7 @@ class ApplicationScript extends script("application", [ApplicationRunner, Librar
|
|
|
1723
1723
|
await Promise.all(shares.map(async (share) => await share.close()));
|
|
1724
1724
|
}, "Abandoning the tunnel release; the shares expire on their own.");
|
|
1725
1725
|
await Promise.all(apps.map(async (app) => {
|
|
1726
|
-
const { TunnelShare } = await import("./TunnelShare-
|
|
1726
|
+
const { TunnelShare } = await import("./TunnelShare-tyj8nb0z.js");
|
|
1727
1727
|
const share = await TunnelShare.open(app, { workspace: app.workspace });
|
|
1728
1728
|
shares.push(share);
|
|
1729
1729
|
urls.set(app.name, share.url);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
resolveSsrPageEntriesForApp
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-4279crca.js";
|
|
5
5
|
import {
|
|
6
6
|
createBarrelImportsPlugin,
|
|
7
7
|
workspaceBarrels,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
CsrEntryFiles,
|
|
11
11
|
PagesEntrySourceGenerator,
|
|
12
12
|
PagesBundleBuilder
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-nwbdpnna.js";
|
|
14
14
|
|
|
15
15
|
// pkgs/@akanjs/devkit/frontendBuild/csrArtifactBuilder.ts
|
|
16
16
|
import { mkdir as mkdir2, rm as rm2, unlink as unlink2 } from "fs/promises";
|
|
@@ -269,7 +269,7 @@ ${logs}` : ""}`);
|
|
|
269
269
|
await rm(stagingDir, { recursive: true, force: true });
|
|
270
270
|
}
|
|
271
271
|
static async discover(pageEntries, basePaths) {
|
|
272
|
-
const { RouteSourceValidator } = await import("./routeSourceValidator-
|
|
272
|
+
const { RouteSourceValidator } = await import("./routeSourceValidator-8n6j1vn7.js");
|
|
273
273
|
const roots = pageEntries.filter((entry) => parseRouteModuleKey(entry.key).isInternalRootLayout);
|
|
274
274
|
const overrides = pageEntries.filter((entry) => parseRouteModuleKey(entry.key).kind === "overrides");
|
|
275
275
|
const layoutNodes = new Set(pageEntries.flatMap((entry) => {
|
|
@@ -4,27 +4,27 @@ import {
|
|
|
4
4
|
CloudApi,
|
|
5
5
|
CloudUpdates,
|
|
6
6
|
PipelineSecrets
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-g95rbz83.js";
|
|
8
8
|
import {
|
|
9
9
|
PkgExecutor2
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-a85n83t6.js";
|
|
11
11
|
import {
|
|
12
12
|
UpdatePackFolder,
|
|
13
13
|
NativePublicEnv,
|
|
14
14
|
NativeApp
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-qrh7kdb1.js";
|
|
16
16
|
import {
|
|
17
17
|
script
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-bbd1727m.js";
|
|
19
19
|
import {
|
|
20
20
|
ApplicationScript
|
|
21
|
-
} from "./index-
|
|
21
|
+
} from "./index-jeqq717b.js";
|
|
22
22
|
import {
|
|
23
23
|
PackageScript
|
|
24
|
-
} from "./index-
|
|
24
|
+
} from "./index-mgvvtjp1.js";
|
|
25
25
|
import {
|
|
26
26
|
CloudRunner
|
|
27
|
-
} from "./index-
|
|
27
|
+
} from "./index-gd9tkq2k.js";
|
|
28
28
|
|
|
29
29
|
// pkgs/@akanjs/cli/cloud/cloud.script.ts
|
|
30
30
|
import { Logger } from "akanjs/common";
|
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
import {
|
|
3
3
|
runner,
|
|
4
4
|
script
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-bbd1727m.js";
|
|
6
6
|
import {
|
|
7
7
|
FileSys2
|
|
8
8
|
} from "./index-by2tvsq6.js";
|
|
9
9
|
import {
|
|
10
10
|
PkgExecutor2
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-a85n83t6.js";
|
|
12
12
|
import {
|
|
13
13
|
FrameworkGraph
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-tkrg58qv.js";
|
|
15
15
|
import {
|
|
16
16
|
MaintainabilityBaseline
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-y71v7grx.js";
|
|
18
18
|
import {
|
|
19
19
|
TypeScriptDependencyScanner2
|
|
20
20
|
} from "./index-2ny1e95c.js";
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
ApplicationBuildReporter
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-ktvyva62.js";
|
|
5
5
|
import {
|
|
6
6
|
parseBiomeReport,
|
|
7
7
|
Linter,
|
|
8
8
|
ProjectTypecheck2
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-hw2eammf.js";
|
|
10
10
|
import {
|
|
11
11
|
TypecheckFailure
|
|
12
12
|
} from "./index-j4yvgfhr.js";
|
|
13
13
|
import {
|
|
14
14
|
AppExecutor2
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-4279crca.js";
|
|
16
16
|
import {
|
|
17
17
|
LibExecutor2
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-gkfpqdm8.js";
|
|
19
19
|
import {
|
|
20
20
|
PkgExecutor2
|
|
21
|
-
} from "./index-
|
|
21
|
+
} from "./index-a85n83t6.js";
|
|
22
22
|
import {
|
|
23
23
|
WorkspaceRunner,
|
|
24
24
|
AkanQualityScanner
|
|
25
|
-
} from "./index-
|
|
25
|
+
} from "./index-s21zxj7p.js";
|
|
26
26
|
|
|
27
27
|
// pkgs/@akanjs/cli/verify/verifyComments.ts
|
|
28
28
|
import { existsSync } from "fs";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
runner,
|
|
4
4
|
script
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-bbd1727m.js";
|
|
6
6
|
import {
|
|
7
7
|
sourceFile,
|
|
8
8
|
moduleSourcePaths,
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
createPassedPrimitiveReport,
|
|
11
11
|
bilingualLabelForField,
|
|
12
12
|
bilingualDescriptionForField
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-ggmwp14t.js";
|
|
14
14
|
import {
|
|
15
15
|
PageScript
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-h9356zmz.js";
|
|
17
17
|
import {
|
|
18
18
|
pluralizeName
|
|
19
19
|
} from "./index-nz8prx9g.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
} from "./index-va90m8nd.js";
|
|
23
23
|
import {
|
|
24
24
|
ModuleExecutor
|
|
25
|
-
} from "./index-
|
|
25
|
+
} from "./index-k2kr1wd4.js";
|
|
26
26
|
|
|
27
27
|
// pkgs/@akanjs/cli/module/module.script.ts
|
|
28
28
|
import { capitalize as capitalize2 } from "akanjs/common";
|
|
@@ -5,17 +5,17 @@ import {
|
|
|
5
5
|
WorkspaceExecutor,
|
|
6
6
|
ServerEnvProfile,
|
|
7
7
|
AkanAppConfig
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-hw2eammf.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-k1p29hdp.js";
|
|
16
16
|
import {
|
|
17
17
|
ExitCodeError
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-bbd1727m.js";
|
|
19
19
|
|
|
20
20
|
// pkgs/@akanjs/devkit/mobile/desktopBin.ts
|
|
21
21
|
import { chmod, mkdir, rename, rm, writeFile } from "fs/promises";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
script
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-bbd1727m.js";
|
|
5
5
|
import {
|
|
6
6
|
AppExecutor2
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-4279crca.js";
|
|
8
8
|
import {
|
|
9
9
|
LibExecutor2
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-gkfpqdm8.js";
|
|
11
11
|
import {
|
|
12
12
|
InteractionScaffold,
|
|
13
13
|
workflowStatus,
|
|
@@ -46,16 +46,16 @@ import {
|
|
|
46
46
|
withFieldTypeImport,
|
|
47
47
|
KeyRename,
|
|
48
48
|
MutationScaffold
|
|
49
|
-
} from "./index-
|
|
49
|
+
} from "./index-ggmwp14t.js";
|
|
50
50
|
import {
|
|
51
51
|
ModuleScript
|
|
52
|
-
} from "./index-
|
|
52
|
+
} from "./index-ptpdd9hw.js";
|
|
53
53
|
import {
|
|
54
54
|
plainNameProblem
|
|
55
55
|
} from "./index-va90m8nd.js";
|
|
56
56
|
import {
|
|
57
57
|
ModuleExecutor
|
|
58
|
-
} from "./index-
|
|
58
|
+
} from "./index-k2kr1wd4.js";
|
|
59
59
|
|
|
60
60
|
// pkgs/@akanjs/cli/primitive/primitive.script.ts
|
|
61
61
|
import { capitalize, lowerlize } from "akanjs/common";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
CommandContainer,
|
|
4
4
|
runner
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-bbd1727m.js";
|
|
6
6
|
import {
|
|
7
7
|
WorkspaceExecutor
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-hw2eammf.js";
|
|
9
9
|
import {
|
|
10
10
|
jsonText,
|
|
11
11
|
workflowPlanApproval,
|
|
@@ -31,23 +31,23 @@ import {
|
|
|
31
31
|
renderWorkflowApply,
|
|
32
32
|
renderWorkflowValidation,
|
|
33
33
|
renderWorkflowRunArtifact
|
|
34
|
-
} from "./index-
|
|
34
|
+
} from "./index-ggmwp14t.js";
|
|
35
35
|
import {
|
|
36
36
|
AkanContextAnalyzer
|
|
37
|
-
} from "./index-
|
|
37
|
+
} from "./index-rxxjkbj2.js";
|
|
38
38
|
import {
|
|
39
39
|
ModuleScript
|
|
40
|
-
} from "./index-
|
|
40
|
+
} from "./index-ptpdd9hw.js";
|
|
41
41
|
import {
|
|
42
42
|
PrimitiveScript
|
|
43
|
-
} from "./index-
|
|
43
|
+
} from "./index-r790hx48.js";
|
|
44
44
|
import {
|
|
45
45
|
spawnAkan,
|
|
46
46
|
isWorkspaceTarget
|
|
47
|
-
} from "./index-
|
|
47
|
+
} from "./index-cef0fxf2.js";
|
|
48
48
|
import {
|
|
49
49
|
ScalarScript
|
|
50
|
-
} from "./index-
|
|
50
|
+
} from "./index-286djj0d.js";
|
|
51
51
|
import {
|
|
52
52
|
workflowSpecs
|
|
53
53
|
} from "./index-t4d0ckde.js";
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
|
+
barrelFacetDirs,
|
|
3
4
|
rootAllowedFiles,
|
|
4
5
|
rootAllowedDirs,
|
|
5
|
-
barrelFacetDirs,
|
|
6
6
|
facetIndexShadowOf,
|
|
7
7
|
rootEntryHintOf,
|
|
8
8
|
isScannedRootEntry,
|
|
9
9
|
extractBlockVersion,
|
|
10
10
|
readDevkitVersion
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-hw2eammf.js";
|
|
12
12
|
import {
|
|
13
13
|
FileSys2
|
|
14
14
|
} from "./index-by2tvsq6.js";
|
|
15
15
|
import {
|
|
16
16
|
AppExecutor2
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-4279crca.js";
|
|
18
18
|
import {
|
|
19
19
|
LibExecutor2
|
|
20
|
-
} from "./index-
|
|
20
|
+
} from "./index-gkfpqdm8.js";
|
|
21
21
|
import {
|
|
22
22
|
workflowPathsForPlan,
|
|
23
23
|
workflowRunArtifactPath,
|
|
24
24
|
workflowSyncDir
|
|
25
|
-
} from "./index-
|
|
25
|
+
} from "./index-ggmwp14t.js";
|
|
26
26
|
import {
|
|
27
27
|
collectRecipeSources2,
|
|
28
28
|
scanRecipes2,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
camelToKebabCase,
|
|
4
4
|
runner
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-bbd1727m.js";
|
|
6
6
|
import {
|
|
7
7
|
rootAllowedFiles,
|
|
8
8
|
rootAllowedDirs,
|
|
@@ -16,16 +16,16 @@ import {
|
|
|
16
16
|
renderScopeAgentBlock,
|
|
17
17
|
SysExecutor,
|
|
18
18
|
WorkspaceExecutor
|
|
19
|
-
} from "./index-
|
|
19
|
+
} from "./index-hw2eammf.js";
|
|
20
20
|
import {
|
|
21
21
|
FileSys2
|
|
22
22
|
} from "./index-by2tvsq6.js";
|
|
23
23
|
import {
|
|
24
24
|
LibExecutor2
|
|
25
|
-
} from "./index-
|
|
25
|
+
} from "./index-gkfpqdm8.js";
|
|
26
26
|
import {
|
|
27
27
|
PkgExecutor2
|
|
28
|
-
} from "./index-
|
|
28
|
+
} from "./index-a85n83t6.js";
|
|
29
29
|
import {
|
|
30
30
|
collectRecipeSources2,
|
|
31
31
|
scanRecipes2
|
|
@@ -40,11 +40,11 @@ import {
|
|
|
40
40
|
} from "./index-zyb0ebm4.js";
|
|
41
41
|
import {
|
|
42
42
|
MaintainabilityBaseline
|
|
43
|
-
} from "./index-
|
|
43
|
+
} from "./index-y71v7grx.js";
|
|
44
44
|
import {
|
|
45
45
|
createFactReader,
|
|
46
46
|
createAst
|
|
47
|
-
} from "./index-
|
|
47
|
+
} from "./index-a42cf737.js";
|
|
48
48
|
import {
|
|
49
49
|
getNpmRegistryUrl,
|
|
50
50
|
getLatestPackageVersion
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
SOURCE_EXTS,
|
|
7
7
|
WatchRootResolver
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-ktvyva62.js";
|
|
9
9
|
import {
|
|
10
10
|
loaderFor,
|
|
11
11
|
BarrelAnalyzer,
|
|
@@ -21,12 +21,12 @@ import {
|
|
|
21
21
|
CsrDevPaths,
|
|
22
22
|
PagesEntrySourceGenerator,
|
|
23
23
|
PagesBundleBuilder
|
|
24
|
-
} from "./index-
|
|
24
|
+
} from "./index-nwbdpnna.js";
|
|
25
25
|
import {
|
|
26
26
|
AsyncDefaultExportDetector,
|
|
27
27
|
StoreBootstrap,
|
|
28
28
|
resolveSsrPageEntriesForApp
|
|
29
|
-
} from "./index-
|
|
29
|
+
} from "./index-4279crca.js";
|
|
30
30
|
|
|
31
31
|
// pkgs/@akanjs/devkit/frontendBuild/autoImportSync.ts
|
|
32
32
|
import { readdir, readFile, stat } from "fs/promises";
|
|
@@ -3168,12 +3168,8 @@ var uniqueResolved = (files) => [...new Set(files.map((file) => path13.resolve(f
|
|
|
3168
3168
|
// pkgs/@akanjs/devkit/frontendBuild/devGeneratedIndexSync.ts
|
|
3169
3169
|
import { mkdir as mkdir4, readdir as readdir3, readFile as readFile2, rm as rm2, stat as stat2 } from "fs/promises";
|
|
3170
3170
|
import path14 from "path";
|
|
3171
|
-
import { capitalize } from "akanjs/common";
|
|
3172
|
-
var BARREL_FACETS2 = new Set(
|
|
3173
|
-
var FACET_SOURCE_FILE_RE = /\.(ts|tsx)$/;
|
|
3174
|
-
var FACET_EXCLUDED_FILE_RE = /(^index\.tsx?$|\.d\.ts$|\.(test|spec)\.(ts|tsx)$|\.css$|\.scss$|\.sass$)/;
|
|
3175
|
-
var FACET_PASCAL_CASE_RE = /^[A-Z][A-Za-z0-9]*$/;
|
|
3176
|
-
var FACET_CAMEL_CASE_RE = /^[a-z][A-Za-z0-9]*$/;
|
|
3171
|
+
import { barrelFacetDirs, capitalize, facetBarrelOf } from "akanjs/common";
|
|
3172
|
+
var BARREL_FACETS2 = new Set(barrelFacetDirs);
|
|
3177
3173
|
var MODULE_UI_TYPES = ["Template", "Unit", "Util", "View", "Zone"];
|
|
3178
3174
|
var SERVICE_UI_TYPES = ["Util", "Zone"];
|
|
3179
3175
|
var SCALAR_UI_TYPES = ["Template", "Unit"];
|
|
@@ -3270,29 +3266,12 @@ class DevGeneratedIndexSync {
|
|
|
3270
3266
|
return this.#moduleContent(path14.dirname(indexPath));
|
|
3271
3267
|
}
|
|
3272
3268
|
async#facetContent(dir) {
|
|
3273
|
-
const nameCasePattern = path14.basename(dir) === "ui" ? FACET_PASCAL_CASE_RE : FACET_CAMEL_CASE_RE;
|
|
3274
3269
|
const entries = await readdir3(dir, { withFileTypes: true }).catch(() => null);
|
|
3275
3270
|
if (!entries)
|
|
3276
3271
|
return null;
|
|
3277
|
-
const
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
return [];
|
|
3281
|
-
if (entry.isDirectory())
|
|
3282
|
-
return nameCasePattern.test(name) ? [name] : [];
|
|
3283
|
-
if (!entry.isFile())
|
|
3284
|
-
return [];
|
|
3285
|
-
if (!FACET_SOURCE_FILE_RE.test(name) || FACET_EXCLUDED_FILE_RE.test(name))
|
|
3286
|
-
return [];
|
|
3287
|
-
const exportName = name.replace(FACET_SOURCE_FILE_RE, "");
|
|
3288
|
-
return nameCasePattern.test(exportName) ? [exportName] : [];
|
|
3289
|
-
}).sort(compareExportNames);
|
|
3290
|
-
if (exportNames.length === 0)
|
|
3291
|
-
return `export {};
|
|
3292
|
-
`;
|
|
3293
|
-
return `${exportNames.map((name) => `export * from "./${name}";`).join(`
|
|
3294
|
-
`)}
|
|
3295
|
-
`;
|
|
3272
|
+
const files = entries.filter((entry) => entry.isFile()).map((entry) => entry.name);
|
|
3273
|
+
const dirs = entries.filter((entry) => entry.isDirectory()).map((entry) => entry.name);
|
|
3274
|
+
return facetBarrelOf(path14.basename(dir), files, dirs);
|
|
3296
3275
|
}
|
|
3297
3276
|
async#moduleContent(dir) {
|
|
3298
3277
|
const rel = path14.relative(this.#workspaceRoot, dir);
|
|
@@ -3320,24 +3299,6 @@ export const ${modelName} = { ${fileTypes.join(", ")} };
|
|
|
3320
3299
|
`;
|
|
3321
3300
|
}
|
|
3322
3301
|
}
|
|
3323
|
-
var letterRankOf = (char) => char.toLowerCase().charCodeAt(0) * 2 + (char === char.toLowerCase() ? 1 : 0);
|
|
3324
|
-
var digitRunAt = (name, idx) => /^\d+/.exec(name.slice(idx))?.[0] ?? "";
|
|
3325
|
-
var compareExportNames = (a, b) => {
|
|
3326
|
-
for (let idx = 0;idx < a.length && idx < b.length; ) {
|
|
3327
|
-
const [runA, runB] = [digitRunAt(a, idx), digitRunAt(b, idx)];
|
|
3328
|
-
if (runA && runB && runA !== runB)
|
|
3329
|
-
return runA.length - runB.length || (runA < runB ? -1 : 1);
|
|
3330
|
-
if (runA && runB)
|
|
3331
|
-
idx += runA.length;
|
|
3332
|
-
else if (runA || runB)
|
|
3333
|
-
return runA ? -1 : 1;
|
|
3334
|
-
else if (a.charAt(idx) !== b.charAt(idx))
|
|
3335
|
-
return letterRankOf(a.charAt(idx)) - letterRankOf(b.charAt(idx));
|
|
3336
|
-
else
|
|
3337
|
-
idx++;
|
|
3338
|
-
}
|
|
3339
|
-
return a.length - b.length;
|
|
3340
|
-
};
|
|
3341
3302
|
var exists = async (file) => stat2(file).then(() => true).catch(() => false);
|
|
3342
3303
|
var formatError2 = (err) => err instanceof Error ? err.message : String(err);
|
|
3343
3304
|
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
SubagentPool2,
|
|
20
20
|
McpSignIn,
|
|
21
21
|
AkanCodeCompaction2
|
|
22
|
-
} from "./index-
|
|
22
|
+
} from "./index-y27cxjd6.js";
|
|
23
23
|
import {
|
|
24
24
|
codeAgentIsLoopback,
|
|
25
25
|
codeAgentHostListed,
|
|
@@ -659,7 +659,7 @@ class AkanToolPack2 {
|
|
|
659
659
|
return { name: "akan-tools", factory: async (pi) => await this.#register(pi) };
|
|
660
660
|
}
|
|
661
661
|
async names() {
|
|
662
|
-
const { ContextRunner } = await import("./context.runner-
|
|
662
|
+
const { ContextRunner } = await import("./context.runner-xtr9ngpa.js");
|
|
663
663
|
return [
|
|
664
664
|
...new ContextRunner().listMcpTools(this.#options.mode).map((tool) => tool.name),
|
|
665
665
|
AkanToolPack2.verifyToolName
|
|
@@ -667,7 +667,7 @@ class AkanToolPack2 {
|
|
|
667
667
|
}
|
|
668
668
|
static verifyToolName = "akan_verify";
|
|
669
669
|
async#register(pi) {
|
|
670
|
-
const { ContextRunner } = await import("./context.runner-
|
|
670
|
+
const { ContextRunner } = await import("./context.runner-xtr9ngpa.js");
|
|
671
671
|
const runner = new ContextRunner;
|
|
672
672
|
const guidelineNames = await AkanToolPack2.#guidelineNames();
|
|
673
673
|
for (const tool of runner.listMcpTools(this.#options.mode, { guidelineNames })) {
|