@akanjs/cli 3.1.2-rc.3 → 3.1.2-rc.4
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-n2tkg59z.js → CodeAgent-z34p8m91.js} +2 -2
- package/{CodeTui-9wsdx7ap.js → CodeTui-nvd9fk3g.js} +1 -1
- package/TunnelShare-jwbb50kz.js +14 -0
- package/{agent.command-tffz6wdn.js → agent.command-962mp3kg.js} +15 -15
- package/akanCode.js +2 -2
- package/{application.command-7bkxbrsp.js → application.command-1nr0bqq1.js} +24 -15
- package/{applicationBuildRunner-s13x3zqb.js → applicationBuildRunner-xy7hnfzq.js} +7 -6
- package/buildBatch.proc.js +6 -6
- package/{cloud.command-a792bc10.js → cloud.command-cj7b3m6y.js} +15 -15
- package/cloud.script-8kr7qgfa.js +27 -0
- package/{code.command-ma8dtzww.js → code.command-asq7xrr6.js} +6 -6
- package/{context.command-80a1qhps.js → context.command-fw4g2pw1.js} +18 -18
- package/context.runner-p6m5cxk3.js +28 -0
- package/{guideline.command-195g0h9a.js → guideline.command-43gfjsjv.js} +2 -2
- package/guidelines/conventions/rules/page.md +4 -2
- package/guidelines/conventions/rules/server.md +2 -0
- package/guidelines/conventions/rules/style.md +3 -1
- package/guidelines/conventions/rules/ts.md +2 -1
- package/guidelines/cssRule/cssRule.instruction.md +3 -1
- package/guidelines/pageRule/pageRule.instruction.md +3 -0
- package/incrementalBuilder.proc.js +39 -13
- package/{index-tns543wd.js → index-0tkj05cz.js} +3 -3
- package/{index-sx91nf4z.js → index-2yan1ajk.js} +7 -7
- package/{index-g500c5j9.js → index-38by07nw.js} +1 -1
- package/{index-zttm13c3.js → index-38patcx6.js} +4 -4
- package/{index-jb2sreps.js → index-53h0053j.js} +16 -14
- package/{index-zbrwnmf1.js → index-6t7fkx73.js} +1 -1
- package/{index-361ex3rb.js → index-6zgt7zmx.js} +4 -4
- package/{index-y4kcmbt2.js → index-8d9r465x.js} +2 -2
- package/{index-wrmq92vk.js → index-90q0w90q.js} +1 -1
- package/{index-scck6h6d.js → index-ampz4vgv.js} +4 -4
- package/{index-sjabnf7j.js → index-ap6ac70m.js} +3 -3
- package/{index-j9d3mjx1.js → index-ck64kxrn.js} +2 -2
- package/{index-p6x5b7hr.js → index-d894868w.js} +3 -0
- package/{index-sveq36gh.js → index-dcm66hss.js} +2 -2
- package/{index-84h43kg6.js → index-demt944k.js} +2 -2
- package/{index-0j1t1h2b.js → index-g0yds382.js} +1 -1
- package/{index-hapx5myy.js → index-gfh90r3t.js} +2 -2
- package/{index-gbp1q1b5.js → index-hmj94es2.js} +4 -4
- package/{index-z7kbxdqg.js → index-jzpeny42.js} +3 -3
- package/{index-eft5c2mp.js → index-jzz6ye8x.js} +296 -24
- package/{index-ppvqy5bc.js → index-kc6ffq0s.js} +8 -8
- package/{index-tp56652m.js → index-kc871vpc.js} +3 -3
- package/{index-m02tdq8a.js → index-kdswbvys.js} +3 -3
- package/{index-defp4gmb.js → index-qev8p5wp.js} +1 -1
- package/{index-1h2jc0x3.js → index-qwe079ww.js} +4 -4
- package/{index-wwe9rsrx.js → index-r0a604h4.js} +12 -2
- package/{index-9zy8479y.js → index-r0q2ka2b.js} +1 -1
- package/{index-db2nqrad.js → index-r8t5sq7z.js} +13 -8
- package/{index-j2dgmzbj.js → index-re2kfscb.js} +122 -18
- package/{index-gr9thy79.js → index-sra1a5f8.js} +2 -2
- package/{index-khk05tsf.js → index-t0hk1kxq.js} +1 -1
- package/index-vkpqe29t.js +267 -0
- package/{index-sp0qsr7a.js → index-w60zxxye.js} +3 -3
- package/{index-9z3egsmg.js → index-wymcdsas.js} +8 -8
- package/{index-zdpte1pj.js → index-y0y0pnx8.js} +1 -1
- package/{index-aayg4dqf.js → index-z47rw9ez.js} +6 -6
- package/index.js +23 -23
- package/{library.command-63hgt9te.js → library.command-zh29tjdd.js} +3 -3
- package/{localRegistry.command-343ksmn9.js → localRegistry.command-k9pn9ahj.js} +14 -14
- package/{module.command-2hce9m6k.js → module.command-dgpqs9fz.js} +6 -6
- package/{package.command-96eheyvd.js → package.command-1je4hsca.js} +3 -3
- package/package.json +2 -2
- package/{page.command-gs6d841d.js → page.command-cgsasanh.js} +3 -3
- package/{pipeline.command-wdfvdbfj.js → pipeline.command-tb46sa8v.js} +2 -2
- package/{primitive.command-7tdj12wn.js → primitive.command-bzsy23x5.js} +7 -7
- package/{projectTypecheck-kqj1t6hb.js → projectTypecheck-h8rgaczy.js} +1 -1
- package/{quality.command-29bgarh1.js → quality.command-120m9h6v.js} +4 -4
- package/{repair.command-yng4rf5d.js → repair.command-6m4wd0qv.js} +6 -6
- package/{scalar.command-1nk4329t.js → scalar.command-3dn5hsc6.js} +5 -5
- package/skills/akan-page/SKILL.md +19 -0
- package/skills/akan-service/SKILL.md +47 -0
- package/{subspace.command-5cehmcdd.js → subspace.command-s8nyfqbn.js} +8 -8
- package/{tunnel.command-yrd4atqy.js → tunnel.command-8mwrqkr3.js} +7 -7
- package/{typeChecker-j2jdnqsr.js → typeChecker-s640r6c0.js} +1 -1
- package/typecheck.proc.js +1 -1
- package/{verify.command-kbq0fcg8.js → verify.command-2pspfy7k.js} +12 -12
- package/{workflow.command-274qfa8z.js → workflow.command-7sy5vnsj.js} +11 -11
- package/{workspace.command-r6hgmawy.js → workspace.command-x518tdv4.js} +30 -30
- package/TunnelShare-6d7z36sr.js +0 -14
- package/cloud.script-t2n13gv6.js +0 -27
- package/context.runner-wxqb3qcy.js +0 -28
- package/index-vzpnr12w.js +0 -65
- package/templates/workspaceRoot/patches/zod@3.25.76.patch.template +0 -22
- package/templates/workspaceRoot/patches/zod@4.4.3.patch.template +0 -11
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
Workspace,
|
|
5
5
|
script,
|
|
6
6
|
command
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-r0q2ka2b.js";
|
|
8
8
|
import"./index-bns3wcpc.js";
|
|
9
9
|
import {
|
|
10
10
|
AppExecutor,
|
|
11
11
|
LibExecutor,
|
|
12
12
|
PkgExecutor
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-38by07nw.js";
|
|
14
14
|
import {
|
|
15
15
|
npmRegistryFromEnv,
|
|
16
16
|
warnIgnoredNpmRegistry
|
|
@@ -19,53 +19,53 @@ import"./index-62md4dwy.js";
|
|
|
19
19
|
import {
|
|
20
20
|
defaultMaxDiagnostics,
|
|
21
21
|
WorkspaceRunner
|
|
22
|
-
} from "./index-
|
|
23
|
-
import"./index-
|
|
22
|
+
} from "./index-ap6ac70m.js";
|
|
23
|
+
import"./index-re2kfscb.js";
|
|
24
24
|
import"./index-hj6w4ka1.js";
|
|
25
25
|
import"./index-k64mhwbw.js";
|
|
26
26
|
import"./index-35j83zkd.js";
|
|
27
27
|
import"./index-j6eeh5d7.js";
|
|
28
|
-
import"./index-
|
|
29
|
-
import"./index-
|
|
30
|
-
import"./index-
|
|
31
|
-
import"./index-
|
|
32
|
-
import"./index-
|
|
33
|
-
import"./index-
|
|
28
|
+
import"./index-kdswbvys.js";
|
|
29
|
+
import"./index-ck64kxrn.js";
|
|
30
|
+
import"./index-kc6ffq0s.js";
|
|
31
|
+
import"./index-d894868w.js";
|
|
32
|
+
import"./index-w60zxxye.js";
|
|
33
|
+
import"./index-g0yds382.js";
|
|
34
34
|
import"./index-m9jj544v.js";
|
|
35
|
-
import"./index-
|
|
36
|
-
import"./index-
|
|
35
|
+
import"./index-6t7fkx73.js";
|
|
36
|
+
import"./index-dcm66hss.js";
|
|
37
|
+
import"./index-jzz6ye8x.js";
|
|
37
38
|
import {
|
|
38
39
|
AgentScript
|
|
39
|
-
} from "./index-
|
|
40
|
+
} from "./index-z47rw9ez.js";
|
|
40
41
|
import {
|
|
41
42
|
LibraryScript
|
|
42
|
-
} from "./index-
|
|
43
|
+
} from "./index-8d9r465x.js";
|
|
43
44
|
import {
|
|
44
45
|
ApplicationScript
|
|
45
|
-
} from "./index-
|
|
46
|
+
} from "./index-r8t5sq7z.js";
|
|
46
47
|
import"./index-tenw3mah.js";
|
|
47
|
-
import"./index-
|
|
48
|
+
import"./index-sra1a5f8.js";
|
|
48
49
|
import"./index-qd7xn2bk.js";
|
|
49
50
|
import {
|
|
50
51
|
PackageScript
|
|
51
|
-
} from "./index-
|
|
52
|
-
import"./index-
|
|
52
|
+
} from "./index-demt944k.js";
|
|
53
|
+
import"./index-qwe079ww.js";
|
|
53
54
|
import {
|
|
54
55
|
CloudScript2
|
|
55
|
-
} from "./index-
|
|
56
|
-
import"./index-
|
|
57
|
-
import"./index-
|
|
58
|
-
import"./index-
|
|
59
|
-
import"./index-
|
|
60
|
-
import"./index-
|
|
61
|
-
import"./index-
|
|
62
|
-
import"./index-
|
|
63
|
-
import"./index-
|
|
56
|
+
} from "./index-2yan1ajk.js";
|
|
57
|
+
import"./index-53h0053j.js";
|
|
58
|
+
import"./index-vkpqe29t.js";
|
|
59
|
+
import"./index-0tkj05cz.js";
|
|
60
|
+
import"./index-t0hk1kxq.js";
|
|
61
|
+
import"./index-hmj94es2.js";
|
|
62
|
+
import"./index-6zgt7zmx.js";
|
|
63
|
+
import"./index-gfh90r3t.js";
|
|
64
|
+
import"./index-wymcdsas.js";
|
|
64
65
|
import {
|
|
65
66
|
ContextScript
|
|
66
|
-
} from "./index-
|
|
67
|
-
import"./index-
|
|
68
|
-
import"./index-defp4gmb.js";
|
|
67
|
+
} from "./index-ampz4vgv.js";
|
|
68
|
+
import"./index-qev8p5wp.js";
|
|
69
69
|
import"./index-9bv479q5.js";
|
|
70
70
|
|
|
71
71
|
// pkgs/@akanjs/cli/workspace/workspace.command.ts
|
package/TunnelShare-6d7z36sr.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
TunnelShare2
|
|
4
|
-
} from "./index-zdpte1pj.js";
|
|
5
|
-
import"./index-gr9thy79.js";
|
|
6
|
-
import"./index-sp0qsr7a.js";
|
|
7
|
-
import"./index-m9jj544v.js";
|
|
8
|
-
import"./index-sveq36gh.js";
|
|
9
|
-
import"./index-zbrwnmf1.js";
|
|
10
|
-
import"./index-g500c5j9.js";
|
|
11
|
-
import"./index-bns3wcpc.js";
|
|
12
|
-
export {
|
|
13
|
-
TunnelShare2 as TunnelShare
|
|
14
|
-
};
|
package/cloud.script-t2n13gv6.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
CloudScript2
|
|
4
|
-
} from "./index-sx91nf4z.js";
|
|
5
|
-
import"./index-1h2jc0x3.js";
|
|
6
|
-
import"./index-db2nqrad.js";
|
|
7
|
-
import"./index-y4kcmbt2.js";
|
|
8
|
-
import"./index-84h43kg6.js";
|
|
9
|
-
import"./index-gr9thy79.js";
|
|
10
|
-
import"./index-4am4dvmf.js";
|
|
11
|
-
import"./index-ppvqy5bc.js";
|
|
12
|
-
import"./index-defp4gmb.js";
|
|
13
|
-
import"./index-0j1t1h2b.js";
|
|
14
|
-
import"./index-sp0qsr7a.js";
|
|
15
|
-
import"./index-m9jj544v.js";
|
|
16
|
-
import"./index-9zy8479y.js";
|
|
17
|
-
import"./index-9bv479q5.js";
|
|
18
|
-
import"./index-tenw3mah.js";
|
|
19
|
-
import"./index-sveq36gh.js";
|
|
20
|
-
import"./index-p6x5b7hr.js";
|
|
21
|
-
import"./index-zbrwnmf1.js";
|
|
22
|
-
import"./index-g500c5j9.js";
|
|
23
|
-
import"./index-qd7xn2bk.js";
|
|
24
|
-
import"./index-bns3wcpc.js";
|
|
25
|
-
export {
|
|
26
|
-
CloudScript2 as CloudScript
|
|
27
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
ContextRunner2
|
|
4
|
-
} from "./index-jb2sreps.js";
|
|
5
|
-
import"./index-9z3egsmg.js";
|
|
6
|
-
import"./index-hapx5myy.js";
|
|
7
|
-
import"./index-361ex3rb.js";
|
|
8
|
-
import"./index-tns543wd.js";
|
|
9
|
-
import"./index-gbp1q1b5.js";
|
|
10
|
-
import"./index-khk05tsf.js";
|
|
11
|
-
import"./index-k64mhwbw.js";
|
|
12
|
-
import"./index-j9d3mjx1.js";
|
|
13
|
-
import"./index-m02tdq8a.js";
|
|
14
|
-
import"./index-0j1t1h2b.js";
|
|
15
|
-
import"./index-j6eeh5d7.js";
|
|
16
|
-
import"./index-sp0qsr7a.js";
|
|
17
|
-
import"./index-m9jj544v.js";
|
|
18
|
-
import"./index-9zy8479y.js";
|
|
19
|
-
import"./index-vzpnr12w.js";
|
|
20
|
-
import"./index-j2dgmzbj.js";
|
|
21
|
-
import"./index-sveq36gh.js";
|
|
22
|
-
import"./index-zbrwnmf1.js";
|
|
23
|
-
import"./index-g500c5j9.js";
|
|
24
|
-
import"./index-hj6w4ka1.js";
|
|
25
|
-
import"./index-bns3wcpc.js";
|
|
26
|
-
export {
|
|
27
|
-
ContextRunner2 as ContextRunner
|
|
28
|
-
};
|
package/index-vzpnr12w.js
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
AkanIndex
|
|
4
|
-
} from "./index-j2dgmzbj.js";
|
|
5
|
-
|
|
6
|
-
// pkgs/@akanjs/devkit/workspaceGraph.ts
|
|
7
|
-
import { readFile } from "fs/promises";
|
|
8
|
-
import path from "path";
|
|
9
|
-
import ts from "typescript";
|
|
10
|
-
var indexedPath = /^(apps|libs)\/(?!(?:.*\/)?(?:node_modules|dist|\.akan|env)\/).*\.tsx?$/;
|
|
11
|
-
var unscopedNodeLimit = 600;
|
|
12
|
-
var slashed = (fileName) => fileName.replace(/\\/g, "/");
|
|
13
|
-
|
|
14
|
-
class WorkspaceGraph {
|
|
15
|
-
static async build(workspace) {
|
|
16
|
-
const root = workspace.workspaceRoot;
|
|
17
|
-
const index = new AkanIndex({ ts, root });
|
|
18
|
-
const texts = new Map;
|
|
19
|
-
const files = (await workspace.getAllFiles("{apps,libs}/**/*.{ts,tsx}")).map(slashed).filter((file) => indexedPath.test(file));
|
|
20
|
-
await Promise.all(files.map(async (file) => {
|
|
21
|
-
const fileName = slashed(path.join(root, file));
|
|
22
|
-
const text = await readFile(fileName, "utf8");
|
|
23
|
-
texts.set(fileName, text);
|
|
24
|
-
index.setFile(fileName, text);
|
|
25
|
-
}));
|
|
26
|
-
return index.graph((fileName) => texts.get(fileName));
|
|
27
|
-
}
|
|
28
|
-
static scope(graph, { app, module }) {
|
|
29
|
-
if (!app && !module)
|
|
30
|
-
return graph;
|
|
31
|
-
const owners = app ? new Set([`apps/${app}`, `libs/${app}`]) : null;
|
|
32
|
-
const seeds = new Set(graph.nodes.filter((node) => (!owners || owners.has(node.owner ?? "")) && (!module || node.module === module)).map((node) => node.id));
|
|
33
|
-
const edges = graph.edges.filter((edge) => seeds.has(edge.from) || seeds.has(edge.to));
|
|
34
|
-
const ids = new Set([...seeds, ...edges.flatMap((edge) => [edge.from, edge.to])]);
|
|
35
|
-
return { version: 1, nodes: graph.nodes.filter((node) => ids.has(node.id)), edges };
|
|
36
|
-
}
|
|
37
|
-
static visibleTo(graph, app) {
|
|
38
|
-
const appOwner = `apps/${app}`;
|
|
39
|
-
const isVisible = ({ owner }) => !owner || owner === appOwner || owner.startsWith("libs/");
|
|
40
|
-
const nodes = graph.nodes.filter(isVisible);
|
|
41
|
-
const ids = new Set(nodes.map((node) => node.id));
|
|
42
|
-
return { version: 1, nodes, edges: graph.edges.filter((edge) => ids.has(edge.from) && ids.has(edge.to)) };
|
|
43
|
-
}
|
|
44
|
-
static answer(graph, scope) {
|
|
45
|
-
if (scope.app || scope.module || graph.nodes.length <= unscopedNodeLimit)
|
|
46
|
-
return WorkspaceGraph.scope(graph, scope);
|
|
47
|
-
const owners = new Map;
|
|
48
|
-
for (const node of graph.nodes)
|
|
49
|
-
if (node.owner)
|
|
50
|
-
owners.set(node.owner, (owners.get(node.owner) ?? 0) + 1);
|
|
51
|
-
return {
|
|
52
|
-
diagnostics: [
|
|
53
|
-
{
|
|
54
|
-
severity: "error",
|
|
55
|
-
code: "graph-scope-required",
|
|
56
|
-
message: `The graph has ${graph.nodes.length} nodes. Pass app, module or both to scope it.`,
|
|
57
|
-
input: "app"
|
|
58
|
-
}
|
|
59
|
-
],
|
|
60
|
-
owners: Object.fromEntries([...owners].sort(([a], [b]) => a < b ? -1 : 1))
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export { WorkspaceGraph };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
diff --git a/v4/classic/schemas.js b/v4/classic/schemas.js
|
|
2
|
-
index 2decc914b2e35eb540fcc3625095c1413bda7c8c..9dd258ad2b6f5144337f814e4adf30e1025ed0a7 100644
|
|
3
|
-
--- a/v4/classic/schemas.js
|
|
4
|
-
+++ b/v4/classic/schemas.js
|
|
5
|
-
@@ -1,5 +1,5 @@
|
|
6
|
-
import * as core from "../core/index.js";
|
|
7
|
-
-import { util } from "../core/index.js";
|
|
8
|
-
+import * as util from "../core/util.js";
|
|
9
|
-
import * as checks from "./checks.js";
|
|
10
|
-
import * as iso from "./iso.js";
|
|
11
|
-
import * as parse from "./parse.js";
|
|
12
|
-
diff --git a/v4/mini/schemas.js b/v4/mini/schemas.js
|
|
13
|
-
index 3a142d1924630f6d7004da255e3f5cb9a8eefa5c..1c6c7afaf49dfc48c18c56a63743fcd48145d30a 100644
|
|
14
|
-
--- a/v4/mini/schemas.js
|
|
15
|
-
+++ b/v4/mini/schemas.js
|
|
16
|
-
@@ -1,5 +1,5 @@
|
|
17
|
-
import * as core from "../core/index.js";
|
|
18
|
-
-import { util } from "../core/index.js";
|
|
19
|
-
+import * as util from "../core/util.js";
|
|
20
|
-
import * as parse from "./parse.js";
|
|
21
|
-
export const ZodMiniType = /*@__PURE__*/ core.$constructor("ZodMiniType", (inst, def) => {
|
|
22
|
-
if (!inst._zod)
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
diff --git a/v4/classic/schemas.js b/v4/classic/schemas.js
|
|
2
|
-
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
|
3
|
-
--- a/v4/classic/schemas.js
|
|
4
|
-
+++ b/v4/classic/schemas.js
|
|
5
|
-
@@ -1,5 +1,5 @@
|
|
6
|
-
import * as core from "../core/index.js";
|
|
7
|
-
-import { util } from "../core/index.js";
|
|
8
|
-
+import * as util from "../core/util.js";
|
|
9
|
-
import * as processors from "../core/json-schema-processors.js";
|
|
10
|
-
import { createStandardJSONSchemaMethod, createToJSONSchemaMethod } from "../core/to-json-schema.js";
|
|
11
|
-
import * as checks from "./checks.js";
|