@akanjs/cli 3.1.0-rc.21 → 3.1.0-rc.22
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-gzfc5t52.js → CodeAgent-fee0pnwp.js} +2 -2
- package/{CodeTui-bpsjs8wz.js → CodeTui-xh71b2k8.js} +1 -1
- package/TunnelShare-s7bpe55e.js +14 -0
- package/{agent.command-67ysh3n6.js → agent.command-tge9rvmt.js} +5 -5
- package/akanCode.js +2 -2
- package/{application.command-q0tqw5pc.js → application.command-j5b8yrcf.js} +9 -9
- package/{applicationBuildRunner-wsszr305.js → applicationBuildRunner-s41mgz21.js} +21 -7
- package/buildBatch.proc.js +9 -9
- package/{cloud.command-e7tkxyx6.js → cloud.command-q9srng6e.js} +13 -13
- package/cloud.script-vfsd4gxs.js +24 -0
- package/{code.command-ttk8tje2.js → code.command-n6r6zt97.js} +6 -6
- package/{context.command-bdsk2z2r.js → context.command-1je84w1b.js} +16 -16
- package/context.runner-xg0ngz93.js +25 -0
- package/{guideline.command-man90n70.js → guideline.command-0e0sx2vg.js} +2 -2
- package/guidelines/conventions/conventions.instruction.md +18 -12
- package/guidelines/mcpRule/mcpRule.instruction.md +88 -47
- package/guidelines/pageRule/pageRule.instruction.md +53 -8
- package/guidelines/runtimeRule/runtimeRule.instruction.md +8 -1
- package/guidelines/ssrRule/ssrRule.instruction.md +8 -5
- package/guidelines/workspaceRecipes/workspaceRecipes.instruction.md +1 -1
- package/incrementalBuilder.proc.js +3 -3
- package/{index-p2r64bpa.js → index-1bhv9dh4.js} +4 -4
- package/{index-h6czey01.js → index-1xqq3va9.js} +9 -9
- package/{index-27y8t17p.js → index-3xhak9e0.js} +1 -1
- package/{index-ta1dychm.js → index-4fe4qqgn.js} +3 -3
- package/{index-35m6bzm7.js → index-551gh8h2.js} +5 -5
- package/{index-033wne2j.js → index-5m0s0gdv.js} +1 -1
- package/index-6mprvdt8.js +566 -0
- package/{index-h3r3nr9y.js → index-6nqnqzv1.js} +1 -1
- package/{index-cae9m5jz.js → index-73esn3y2.js} +1 -1
- package/{index-8jehkey8.js → index-7xy30jev.js} +4 -4
- package/{index-75n5q4ph.js → index-85h3dhe0.js} +7 -7
- package/{index-54wc2phm.js → index-8abyrfw8.js} +5 -4
- package/{index-g9ks2k8c.js → index-94jq9cbz.js} +2 -2
- package/{index-jrmzcp66.js → index-9h0z0tjr.js} +2 -2
- package/{index-844q7f8z.js → index-c9rfak6r.js} +7 -7
- package/{index-1r5a8bzx.js → index-cgyqx6q1.js} +2 -2
- package/{index-zv5s8x58.js → index-cq5x7a9k.js} +8 -8
- package/{index-ebarbgba.js → index-deckcwbg.js} +2 -2
- package/{index-4v43h00g.js → index-ex35dg39.js} +2 -1
- package/{index-xsd96yzw.js → index-f9118j70.js} +1 -1
- package/{index-vkb9m4z7.js → index-g5px5pxd.js} +1 -1
- package/{index-g6ax17x4.js → index-gxqvev8w.js} +28 -8
- package/{index-rc51f9ht.js → index-hagw9c94.js} +3 -3
- package/{index-9mt4smfy.js → index-p44jnjfr.js} +2 -2
- package/{index-4393nb4b.js → index-rp9anyeb.js} +4 -4
- package/{index-pg1t468s.js → index-t8npm331.js} +3 -3
- package/{index-nv79n88g.js → index-tbmtmkhx.js} +2 -2
- package/{index-2w8j2fnv.js → index-vyh8kemm.js} +3 -3
- package/{index-48edp6q4.js → index-x7bny3wv.js} +1 -1
- package/index.js +22 -22
- package/{library.command-6amzsrb8.js → library.command-ys9s0mtc.js} +3 -3
- package/{localRegistry.command-yqc0nyhh.js → localRegistry.command-kmp3sd47.js} +12 -12
- package/{module.command-10x6jv6c.js → module.command-5sx9453y.js} +5 -5
- package/{package.command-pwfvecjf.js → package.command-s0d3417k.js} +3 -3
- package/package.json +2 -2
- package/{page.command-ahhgx9y1.js → page.command-zsa03pmc.js} +3 -3
- package/{pipeline.command-1ptr3e9y.js → pipeline.command-j8h6qsha.js} +2 -2
- package/{primitive.command-g5xwv6tj.js → primitive.command-n2978nmw.js} +6 -6
- package/{projectTypecheck-fx8x7cat.js → projectTypecheck-qg2jf80j.js} +1 -1
- package/{quality.command-fw9ck061.js → quality.command-7kgz46st.js} +2 -2
- package/{repair.command-g8kecj96.js → repair.command-2sszcckw.js} +5 -5
- package/{routeSourceValidator-7ycnfz0e.js → routeSourceValidator-6jd0q6r6.js} +47 -14
- package/{scalar.command-fprap51w.js → scalar.command-230jrhzf.js} +4 -4
- package/{subspace.command-sc0t527y.js → subspace.command-y5v4ypd3.js} +8 -8
- package/{tunnel.command-mqnsqbwf.js → tunnel.command-ja29zghd.js} +7 -7
- package/{workflow.command-j0jgkr13.js → workflow.command-0eg8czt5.js} +10 -10
- package/{workspace.command-1r9hvvw0.js → workspace.command-zcym1dk5.js} +24 -24
- package/TunnelShare-tfrnftgr.js +0 -14
- package/cloud.script-krzh3d7k.js +0 -24
- package/context.runner-bxzv0gm0.js +0 -25
- package/index-nx64dz92.js +0 -271
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import {
|
|
3
3
|
runner,
|
|
4
4
|
script
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-g5px5pxd.js";
|
|
6
6
|
import {
|
|
7
7
|
generatedFilesForSync,
|
|
8
8
|
createPassedPrimitiveReport,
|
|
9
9
|
scalarChangedFiles
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-5m0s0gdv.js";
|
|
11
11
|
import {
|
|
12
12
|
pluralizeName
|
|
13
13
|
} from "./index-nz8prx9g.js";
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
NativePublicEnv,
|
|
10
10
|
UpdatePackFolder,
|
|
11
11
|
NativeApp
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-551gh8h2.js";
|
|
13
13
|
import {
|
|
14
14
|
ExitCodeError
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-g5px5pxd.js";
|
|
16
16
|
import {
|
|
17
17
|
ConfigLock
|
|
18
18
|
} from "./index-bqbf654f.js";
|
|
@@ -4,26 +4,26 @@ import {
|
|
|
4
4
|
CloudApi,
|
|
5
5
|
CloudUpdates,
|
|
6
6
|
PipelineSecrets
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-9h0z0tjr.js";
|
|
8
8
|
import {
|
|
9
9
|
PkgExecutor
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-gxqvev8w.js";
|
|
11
11
|
import {
|
|
12
12
|
NativePublicEnv,
|
|
13
13
|
UpdatePackFolder
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-551gh8h2.js";
|
|
15
15
|
import {
|
|
16
16
|
script
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-g5px5pxd.js";
|
|
18
18
|
import {
|
|
19
19
|
ApplicationScript
|
|
20
|
-
} from "./index-
|
|
20
|
+
} from "./index-1xqq3va9.js";
|
|
21
21
|
import {
|
|
22
22
|
PackageScript
|
|
23
|
-
} from "./index-
|
|
23
|
+
} from "./index-deckcwbg.js";
|
|
24
24
|
import {
|
|
25
25
|
CloudRunner
|
|
26
|
-
} from "./index-
|
|
26
|
+
} from "./index-hagw9c94.js";
|
|
27
27
|
|
|
28
28
|
// pkgs/@akanjs/cli/cloud/cloud.script.ts
|
|
29
29
|
import { Logger } from "akanjs/common";
|
|
@@ -19,11 +19,11 @@ import {
|
|
|
19
19
|
CsrDevPaths,
|
|
20
20
|
PagesEntrySourceGenerator,
|
|
21
21
|
PagesBundleBuilder
|
|
22
|
-
} from "./index-
|
|
22
|
+
} from "./index-6nqnqzv1.js";
|
|
23
23
|
import {
|
|
24
24
|
AsyncDefaultExportDetector,
|
|
25
25
|
resolveSsrPageEntriesForApp
|
|
26
|
-
} from "./index-
|
|
26
|
+
} from "./index-gxqvev8w.js";
|
|
27
27
|
|
|
28
28
|
// pkgs/@akanjs/devkit/frontendBuild/autoImportSync.ts
|
|
29
29
|
import { readdir, readFile, stat } from "fs/promises";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
AppExecutor
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-gxqvev8w.js";
|
|
5
5
|
import {
|
|
6
6
|
jsonText,
|
|
7
7
|
createWorkflowBaselineSummary,
|
|
8
8
|
buildAkanModuleContextIndex,
|
|
9
9
|
toolingRolloutGate
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-5m0s0gdv.js";
|
|
11
11
|
import {
|
|
12
12
|
buildResourceList,
|
|
13
13
|
codexMcpConfigPath,
|
|
@@ -17,29 +17,29 @@ import {
|
|
|
17
17
|
upsertCodexMcpServerBlock,
|
|
18
18
|
renderDoctorText,
|
|
19
19
|
AkanContextAnalyzer
|
|
20
|
-
} from "./index-
|
|
20
|
+
} from "./index-tbmtmkhx.js";
|
|
21
21
|
import {
|
|
22
22
|
runner
|
|
23
|
-
} from "./index-
|
|
23
|
+
} from "./index-g5px5pxd.js";
|
|
24
24
|
import {
|
|
25
25
|
isPlaceholderAppId
|
|
26
|
-
} from "./index-
|
|
26
|
+
} from "./index-ex35dg39.js";
|
|
27
27
|
import {
|
|
28
28
|
getMobileTargets,
|
|
29
29
|
appIdsOf
|
|
30
30
|
} from "./index-m9jj544v.js";
|
|
31
31
|
import {
|
|
32
32
|
NativeApp
|
|
33
|
-
} from "./index-
|
|
33
|
+
} from "./index-551gh8h2.js";
|
|
34
34
|
import {
|
|
35
35
|
Prompter2
|
|
36
36
|
} from "./index-zzvvc845.js";
|
|
37
37
|
import {
|
|
38
38
|
RepairRunner
|
|
39
|
-
} from "./index-
|
|
39
|
+
} from "./index-t8npm331.js";
|
|
40
40
|
import {
|
|
41
41
|
WorkflowRunner
|
|
42
|
-
} from "./index-
|
|
42
|
+
} from "./index-85h3dhe0.js";
|
|
43
43
|
|
|
44
44
|
// pkgs/@akanjs/devkit/akanMcpContract.ts
|
|
45
45
|
import path from "path";
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import {
|
|
3
3
|
runner,
|
|
4
4
|
script
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-g5px5pxd.js";
|
|
6
6
|
import {
|
|
7
7
|
FileSys2
|
|
8
8
|
} from "./index-52w0fvh8.js";
|
|
9
9
|
import {
|
|
10
10
|
PkgExecutor
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-gxqvev8w.js";
|
|
12
12
|
import {
|
|
13
13
|
TypeScriptDependencyScanner2
|
|
14
14
|
} from "./index-tvehn2sp.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
DesktopBin,
|
|
4
4
|
UpdatePackFolder
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-551gh8h2.js";
|
|
6
6
|
// pkgs/@akanjs/devkit/mobile/desktopServerStage.ts
|
|
7
7
|
import { cp, mkdir, readdir, rm, writeFile } from "fs/promises";
|
|
8
8
|
import path from "path";
|
|
@@ -16,6 +16,7 @@ class DesktopServerStage {
|
|
|
16
16
|
"console.js",
|
|
17
17
|
"console-runtime.js",
|
|
18
18
|
"csr",
|
|
19
|
+
"mcp-apps",
|
|
19
20
|
"public",
|
|
20
21
|
".akan"
|
|
21
22
|
]);
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
LibExecutor,
|
|
11
11
|
PkgExecutor,
|
|
12
12
|
ModuleExecutor
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-gxqvev8w.js";
|
|
14
14
|
|
|
15
15
|
// pkgs/@akanjs/devkit/commandDecorators/camelToKebabCase.ts
|
|
16
16
|
var camelToKebabCase = (str) => str.replace(/([A-Z])/g, "-$1").toLowerCase();
|
|
@@ -1344,8 +1344,9 @@ var IMPLICIT_LAYOUT_DIR = path6.join(".akan", "generated", "root-layouts");
|
|
|
1344
1344
|
var IMPLICIT_DICT_DIR = path6.join(".akan", "generated", "dict");
|
|
1345
1345
|
var IMPLICIT_OVERRIDES_DIR = path6.join(".akan", "generated", "overrides");
|
|
1346
1346
|
var OVERRIDES_KEY_RE = /^\.\/(.+\/)?_overrides\.(tsx|ts|jsx|js)$/;
|
|
1347
|
+
var posixRelative = (fromDir, toAbsPath) => path6.relative(fromDir, toAbsPath).split(path6.sep).join("/");
|
|
1347
1348
|
var importSpecifier = (fromAbsPath, toAbsPath) => {
|
|
1348
|
-
const rel =
|
|
1349
|
+
const rel = posixRelative(path6.dirname(fromAbsPath), toAbsPath);
|
|
1349
1350
|
return rel.startsWith(".") ? rel : `./${rel}`;
|
|
1350
1351
|
};
|
|
1351
1352
|
async function writeGeneratedOverridesLayoutFile(opts) {
|
|
@@ -1449,15 +1450,15 @@ async function writeGeneratedRootLayoutFile(opts) {
|
|
|
1449
1450
|
void st;
|
|
1450
1451
|
` : `import "@apps/${opts.appName}/client";
|
|
1451
1452
|
`;
|
|
1452
|
-
const inheritedLabel = inheritedSourceAbsPath ?
|
|
1453
|
+
const inheritedLabel = inheritedSourceAbsPath ? posixRelative(opts.appCwdPath, inheritedSourceAbsPath) : "";
|
|
1453
1454
|
const inheritedImport = inheritedSourceSpecifier ? `import * as inheritedModule from ${JSON.stringify(inheritedSourceSpecifier)};
|
|
1454
|
-
const inheritedLayout = resolveRouteModule(inheritedModule as never, ${JSON.stringify(inheritedLabel)}).module as LayoutModule;
|
|
1455
|
+
const inheritedLayout = assertGuardOnChain(${JSON.stringify(inheritedLabel)}, resolveRouteModule(inheritedModule as never, ${JSON.stringify(inheritedLabel)})).module as LayoutModule;
|
|
1455
1456
|
` : `const inheritedLayout: LayoutModule = {};
|
|
1456
1457
|
`;
|
|
1457
1458
|
const prefix = opts.boundary.segments.find((segment) => !/^\(.+\)$/.test(segment)) ?? null;
|
|
1458
|
-
const userLabel = opts.boundary.sourceAbsPath ?
|
|
1459
|
+
const userLabel = opts.boundary.sourceAbsPath ? posixRelative(opts.appCwdPath, opts.boundary.sourceAbsPath) : "";
|
|
1459
1460
|
const userImport = sourceSpecifier ? `import * as userModule from ${JSON.stringify(sourceSpecifier)};
|
|
1460
|
-
const userLayout = resolveRouteModule(userModule as never, ${JSON.stringify(userLabel)}).module as LayoutModule;
|
|
1461
|
+
const userLayout = assertGuardOnChain(${JSON.stringify(userLabel)}, resolveRouteModule(userModule as never, ${JSON.stringify(userLabel)})).module as LayoutModule;
|
|
1461
1462
|
const UserLayout = userLayout.default as (props: LayoutProps) => ReactNode | Promise<ReactNode>;
|
|
1462
1463
|
` : `const UserLayout = ({ children }: LayoutProps) => children;
|
|
1463
1464
|
const userLayout: LayoutModule = {};
|
|
@@ -1473,6 +1474,7 @@ const userLayout: LayoutModule = {};
|
|
|
1473
1474
|
const layoutChild = isAsyncUserLayout ? "{layout}" : userLayoutElement;
|
|
1474
1475
|
const layoutReturn = isAsyncUserLayout ? "layout" : userLayoutElement;
|
|
1475
1476
|
const headLayouts = opts.includeSystemProvider ? "[inheritedLayout, userLayout]" : "[userLayout]";
|
|
1477
|
+
const guardExport = opts.includeSystemProvider ? "export const guard = RouteGuards.compose(inheritedLayout.guard, userLayout.guard);" : "export const guard = userLayout.guard;";
|
|
1476
1478
|
const layoutExports = `export async function generateHead(props: PageProps) {
|
|
1477
1479
|
const heads = await Promise.all(
|
|
1478
1480
|
${headLayouts}.map((layout) => (layout.generateHead ? layout.generateHead(props) : layout.head)),
|
|
@@ -1484,13 +1486,15 @@ export const NotFound = userLayout.NotFound ?? inheritedLayout.NotFound;
|
|
|
1484
1486
|
export const Error = userLayout.Error ?? inheritedLayout.Error;
|
|
1485
1487
|
export const pageConfig = userLayout.pageConfig ?? inheritedLayout.pageConfig;
|
|
1486
1488
|
export const Loading = userLayout.Loading;
|
|
1489
|
+
${guardExport}
|
|
1487
1490
|
|
|
1488
1491
|
${layoutSignature}({ children, params, searchParams }: LayoutProps) {
|
|
1489
1492
|
${layoutBinding} return `;
|
|
1490
1493
|
const source = opts.includeSystemProvider ? `import type { LayoutModule, LayoutProps, PageProps } from "akanjs/client";
|
|
1491
|
-
import { loadFonts, resolveRouteModule, RouteHead } from "akanjs/client";
|
|
1494
|
+
import { assertGuardOnChain, loadFonts, RouteGuards, resolveRouteModule, RouteHead } from "akanjs/client";
|
|
1492
1495
|
import type { ReactNode } from "react";
|
|
1493
1496
|
import { System } from "akanjs/ui";
|
|
1497
|
+
import type { McpAppRootProps } from "akanjs/webkit";
|
|
1494
1498
|
import { env } from "@apps/${opts.appName}/env/env.client";
|
|
1495
1499
|
import { allDictionary } from ${JSON.stringify(dictMacroSpecifier)};
|
|
1496
1500
|
${clientImport}${inheritedImport}${userImport}
|
|
@@ -1524,8 +1528,24 @@ ${layoutExports}(
|
|
|
1524
1528
|
</System.Provider>
|
|
1525
1529
|
);
|
|
1526
1530
|
}
|
|
1531
|
+
|
|
1532
|
+
export function McpAppRoot({ children, params, path }: McpAppRootProps) {
|
|
1533
|
+
return (
|
|
1534
|
+
<System.App
|
|
1535
|
+
params={params}
|
|
1536
|
+
path={path}
|
|
1537
|
+
env={env}
|
|
1538
|
+
theme={theme}
|
|
1539
|
+
viewport={viewport}
|
|
1540
|
+
fonts={loadFonts(userFonts)}
|
|
1541
|
+
className={defaultFontClassName}
|
|
1542
|
+
>
|
|
1543
|
+
{children}
|
|
1544
|
+
</System.App>
|
|
1545
|
+
);
|
|
1546
|
+
}
|
|
1527
1547
|
` : `import type { LayoutModule, LayoutProps, PageProps } from "akanjs/client";
|
|
1528
|
-
import { resolveRouteModule, RouteHead } from "akanjs/client";
|
|
1548
|
+
import { assertGuardOnChain, resolveRouteModule, RouteHead } from "akanjs/client";
|
|
1529
1549
|
import type { ReactNode } from "react";
|
|
1530
1550
|
${inheritedImport}${userImport}
|
|
1531
1551
|
${layoutExports}${layoutReturn};
|
|
@@ -3761,7 +3781,7 @@ class SysExecutor extends Executor {
|
|
|
3761
3781
|
class AppExecutor extends SysExecutor {
|
|
3762
3782
|
static #routeSourceValidator = null;
|
|
3763
3783
|
static async#getRouteSourceValidator() {
|
|
3764
|
-
AppExecutor.#routeSourceValidator ??= (await import("./routeSourceValidator-
|
|
3784
|
+
AppExecutor.#routeSourceValidator ??= (await import("./routeSourceValidator-6jd0q6r6.js")).RouteSourceValidator;
|
|
3765
3785
|
return AppExecutor.#routeSourceValidator;
|
|
3766
3786
|
}
|
|
3767
3787
|
dist;
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
CloudApi,
|
|
6
6
|
CloudUpdates,
|
|
7
7
|
PipelineSecrets
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-9h0z0tjr.js";
|
|
9
9
|
import {
|
|
10
10
|
WorkspaceExecutor,
|
|
11
11
|
AppExecutor
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-gxqvev8w.js";
|
|
13
13
|
import {
|
|
14
14
|
runner,
|
|
15
15
|
assertPromptable
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-g5px5pxd.js";
|
|
17
17
|
import {
|
|
18
18
|
SubspaceConfig
|
|
19
19
|
} from "./index-4pf8g7ff.js";
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import {
|
|
3
3
|
runner,
|
|
4
4
|
script
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-g5px5pxd.js";
|
|
6
6
|
import {
|
|
7
7
|
LibSource,
|
|
8
8
|
formatLibStatuses,
|
|
9
9
|
LibExecutor
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-gxqvev8w.js";
|
|
11
11
|
|
|
12
12
|
// pkgs/@akanjs/cli/library/library.script.ts
|
|
13
13
|
import { Logger } from "akanjs/common";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
script
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-g5px5pxd.js";
|
|
5
5
|
import {
|
|
6
6
|
AppExecutor,
|
|
7
7
|
LibExecutor,
|
|
8
8
|
ModuleExecutor
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-gxqvev8w.js";
|
|
10
10
|
import {
|
|
11
11
|
workflowStatus,
|
|
12
12
|
compactDiagnostics,
|
|
@@ -41,10 +41,10 @@ import {
|
|
|
41
41
|
hasSignalFactoryEntry,
|
|
42
42
|
insertSignalFactoryEntry,
|
|
43
43
|
addFieldUiPolicyForType
|
|
44
|
-
} from "./index-
|
|
44
|
+
} from "./index-5m0s0gdv.js";
|
|
45
45
|
import {
|
|
46
46
|
ModuleScript
|
|
47
|
-
} from "./index-
|
|
47
|
+
} from "./index-1bhv9dh4.js";
|
|
48
48
|
|
|
49
49
|
// pkgs/@akanjs/cli/primitive/primitive.script.ts
|
|
50
50
|
import { capitalize, lowerlize } from "akanjs/common";
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
writeGeneratedSyncState,
|
|
6
6
|
createRepairReport,
|
|
7
7
|
renderRepairReport
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-5m0s0gdv.js";
|
|
9
9
|
import {
|
|
10
10
|
AkanContextAnalyzer
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-tbmtmkhx.js";
|
|
12
12
|
import {
|
|
13
13
|
runner
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-g5px5pxd.js";
|
|
15
15
|
|
|
16
16
|
// pkgs/@akanjs/cli/repair/repair.runner.ts
|
|
17
17
|
var spawnShell = async (workspace, command) => await workspace.spawn("bash", ["-lc", command.startsWith("akan ") ? `bun run ${command}` : command], {
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
isScannedRootEntry,
|
|
11
11
|
AppExecutor,
|
|
12
12
|
LibExecutor
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-gxqvev8w.js";
|
|
14
14
|
import {
|
|
15
15
|
FileSys2
|
|
16
16
|
} from "./index-52w0fvh8.js";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
workflowPathsForPlan,
|
|
24
24
|
workflowRunArtifactPath,
|
|
25
25
|
workflowSyncDir
|
|
26
|
-
} from "./index-
|
|
26
|
+
} from "./index-5m0s0gdv.js";
|
|
27
27
|
|
|
28
28
|
// pkgs/@akanjs/devkit/akanContext.ts
|
|
29
29
|
import { readdir } from "fs/promises";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
McpServerConfig,
|
|
6
6
|
McpSignIn,
|
|
7
7
|
AkanCodeCompaction2
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-73esn3y2.js";
|
|
9
9
|
import {
|
|
10
10
|
stripAnsi
|
|
11
11
|
} from "./index-7md2g9vw.js";
|
|
@@ -809,7 +809,7 @@ class AkanToolPack2 {
|
|
|
809
809
|
return { name: "akan-tools", factory: async (pi) => await this.#register(pi) };
|
|
810
810
|
}
|
|
811
811
|
async names() {
|
|
812
|
-
const { ContextRunner } = await import("./context.runner-
|
|
812
|
+
const { ContextRunner } = await import("./context.runner-xg0ngz93.js");
|
|
813
813
|
return [
|
|
814
814
|
...new ContextRunner().listMcpTools(this.#options.mode).map((tool) => tool.name),
|
|
815
815
|
AkanToolPack2.verifyToolName
|
|
@@ -817,7 +817,7 @@ class AkanToolPack2 {
|
|
|
817
817
|
}
|
|
818
818
|
static verifyToolName = "akan_verify";
|
|
819
819
|
async#register(pi) {
|
|
820
|
-
const { ContextRunner } = await import("./context.runner-
|
|
820
|
+
const { ContextRunner } = await import("./context.runner-xg0ngz93.js");
|
|
821
821
|
const runner = new ContextRunner;
|
|
822
822
|
const guidelineNames = await AkanToolPack2.#guidelineNames();
|
|
823
823
|
for (const tool of runner.listMcpTools(this.#options.mode, { guidelineNames })) {
|
package/index.js
CHANGED
|
@@ -4,35 +4,35 @@ import {
|
|
|
4
4
|
getTargetMetas,
|
|
5
5
|
getTargetCommandNames,
|
|
6
6
|
runCommands
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-g5px5pxd.js";
|
|
8
8
|
import"./index-52w0fvh8.js";
|
|
9
|
-
import"./index-
|
|
9
|
+
import"./index-gxqvev8w.js";
|
|
10
10
|
|
|
11
11
|
// pkgs/@akanjs/cli/commandManifest.ts
|
|
12
12
|
import path from "path";
|
|
13
13
|
|
|
14
14
|
// pkgs/@akanjs/cli/commandModules.ts
|
|
15
15
|
var commandModules = {
|
|
16
|
-
workspace: async () => (await import("./workspace.command-
|
|
17
|
-
agent: async () => (await import("./agent.command-
|
|
18
|
-
code: async () => (await import("./code.command-
|
|
19
|
-
application: async () => (await import("./application.command-
|
|
20
|
-
library: async () => (await import("./library.command-
|
|
21
|
-
localRegistry: async () => (await import("./localRegistry.command-
|
|
22
|
-
package: async () => (await import("./package.command-
|
|
23
|
-
module: async () => (await import("./module.command-
|
|
24
|
-
page: async () => (await import("./page.command-
|
|
25
|
-
context: async () => (await import("./context.command-
|
|
26
|
-
cloud: async () => (await import("./cloud.command-
|
|
27
|
-
subspace: async () => (await import("./subspace.command-
|
|
28
|
-
guideline: async () => (await import("./guideline.command-
|
|
29
|
-
scalar: async () => (await import("./scalar.command-
|
|
30
|
-
primitive: async () => (await import("./primitive.command-
|
|
31
|
-
quality: async () => (await import("./quality.command-
|
|
32
|
-
repair: async () => (await import("./repair.command-
|
|
33
|
-
workflow: async () => (await import("./workflow.command-
|
|
34
|
-
pipeline: async () => (await import("./pipeline.command-
|
|
35
|
-
tunnel: async () => (await import("./tunnel.command-
|
|
16
|
+
workspace: async () => (await import("./workspace.command-zcym1dk5.js")).WorkspaceCommand,
|
|
17
|
+
agent: async () => (await import("./agent.command-tge9rvmt.js")).AgentCommand,
|
|
18
|
+
code: async () => (await import("./code.command-n6r6zt97.js")).CodeCommand,
|
|
19
|
+
application: async () => (await import("./application.command-j5b8yrcf.js")).ApplicationCommand,
|
|
20
|
+
library: async () => (await import("./library.command-ys9s0mtc.js")).LibraryCommand,
|
|
21
|
+
localRegistry: async () => (await import("./localRegistry.command-kmp3sd47.js")).LocalRegistryCommand,
|
|
22
|
+
package: async () => (await import("./package.command-s0d3417k.js")).PackageCommand,
|
|
23
|
+
module: async () => (await import("./module.command-5sx9453y.js")).ModuleCommand,
|
|
24
|
+
page: async () => (await import("./page.command-zsa03pmc.js")).PageCommand,
|
|
25
|
+
context: async () => (await import("./context.command-1je84w1b.js")).ContextCommand,
|
|
26
|
+
cloud: async () => (await import("./cloud.command-q9srng6e.js")).CloudCommand,
|
|
27
|
+
subspace: async () => (await import("./subspace.command-y5v4ypd3.js")).SubspaceCommand,
|
|
28
|
+
guideline: async () => (await import("./guideline.command-0e0sx2vg.js")).GuidelineCommand,
|
|
29
|
+
scalar: async () => (await import("./scalar.command-230jrhzf.js")).ScalarCommand,
|
|
30
|
+
primitive: async () => (await import("./primitive.command-n2978nmw.js")).PrimitiveCommand,
|
|
31
|
+
quality: async () => (await import("./quality.command-7kgz46st.js")).QualityCommand,
|
|
32
|
+
repair: async () => (await import("./repair.command-2sszcckw.js")).RepairCommand,
|
|
33
|
+
workflow: async () => (await import("./workflow.command-0eg8czt5.js")).WorkflowCommand,
|
|
34
|
+
pipeline: async () => (await import("./pipeline.command-j8h6qsha.js")).PipelineCommand,
|
|
35
|
+
tunnel: async () => (await import("./tunnel.command-ja29zghd.js")).TunnelCommand
|
|
36
36
|
};
|
|
37
37
|
var commandModuleIds = Object.keys(commandModules);
|
|
38
38
|
|
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
Lib,
|
|
4
4
|
Workspace,
|
|
5
5
|
command
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-g5px5pxd.js";
|
|
7
7
|
import"./index-52w0fvh8.js";
|
|
8
|
-
import"./index-
|
|
8
|
+
import"./index-gxqvev8w.js";
|
|
9
9
|
import {
|
|
10
10
|
LibraryScript
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-p44jnjfr.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-g5px5pxd.js";
|
|
8
8
|
import"./index-52w0fvh8.js";
|
|
9
9
|
import {
|
|
10
10
|
PkgExecutor
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-gxqvev8w.js";
|
|
12
12
|
import"./index-5nd1wtkv.js";
|
|
13
|
-
import"./index-
|
|
13
|
+
import"./index-ex35dg39.js";
|
|
14
14
|
import"./index-m9jj544v.js";
|
|
15
|
-
import"./index-
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
15
|
+
import"./index-551gh8h2.js";
|
|
16
|
+
import"./index-6mprvdt8.js";
|
|
17
|
+
import"./index-6nqnqzv1.js";
|
|
18
|
+
import"./index-p44jnjfr.js";
|
|
18
19
|
import {
|
|
19
20
|
ApplicationScript
|
|
20
|
-
} from "./index-
|
|
21
|
+
} from "./index-1xqq3va9.js";
|
|
21
22
|
import"./index-7md2g9vw.js";
|
|
22
|
-
import"./index-
|
|
23
|
+
import"./index-9h0z0tjr.js";
|
|
23
24
|
import {
|
|
24
25
|
getNpmRegistryUrl,
|
|
25
26
|
CloudRunner
|
|
26
|
-
} from "./index-
|
|
27
|
+
} from "./index-hagw9c94.js";
|
|
27
28
|
import"./index-tvehn2sp.js";
|
|
28
29
|
import {
|
|
29
30
|
PackageScript
|
|
30
|
-
} from "./index-
|
|
31
|
-
import"./index-
|
|
32
|
-
import"./index-nx64dz92.js";
|
|
31
|
+
} from "./index-deckcwbg.js";
|
|
32
|
+
import"./index-f9118j70.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-g5px5pxd.js";
|
|
7
7
|
import"./index-52w0fvh8.js";
|
|
8
|
-
import"./index-
|
|
8
|
+
import"./index-gxqvev8w.js";
|
|
9
9
|
import {
|
|
10
10
|
renderPrimitiveReport
|
|
11
|
-
} from "./index-
|
|
12
|
-
import"./index-
|
|
11
|
+
} from "./index-5m0s0gdv.js";
|
|
12
|
+
import"./index-3xhak9e0.js";
|
|
13
13
|
import {
|
|
14
14
|
ModuleScript
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-1bhv9dh4.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-g5px5pxd.js";
|
|
7
7
|
import"./index-52w0fvh8.js";
|
|
8
|
-
import"./index-
|
|
8
|
+
import"./index-gxqvev8w.js";
|
|
9
9
|
import"./index-tvehn2sp.js";
|
|
10
10
|
import {
|
|
11
11
|
PackageScript
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-deckcwbg.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.0-rc.
|
|
3
|
+
"version": "3.1.0-rc.22",
|
|
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.0-rc.
|
|
42
|
+
"akanjs": "3.1.0-rc.22",
|
|
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-g5px5pxd.js";
|
|
7
7
|
import"./index-52w0fvh8.js";
|
|
8
|
-
import"./index-
|
|
8
|
+
import"./index-gxqvev8w.js";
|
|
9
9
|
import {
|
|
10
10
|
PageScript
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-3xhak9e0.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-g5px5pxd.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-gxqvev8w.js";
|
|
16
16
|
import {
|
|
17
17
|
resolveMobileTargets
|
|
18
18
|
} from "./index-m9jj544v.js";
|