@akanjs/cli 3.2.0-rc.11 → 3.2.0-rc.13
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-fk66n37w.js → CodeAgent-yd1f54yf.js} +2 -2
- package/{CodeTui-4rf1mqmv.js → CodeTui-h7mksphk.js} +1 -1
- package/TunnelShare-hrjed2jf.js +19 -0
- package/{agent.command-7g9czkkd.js → agent.command-hrc2dfas.js} +19 -15
- package/akanCode.js +2 -2
- package/appExecutor-0ssszyhf.js +11 -0
- package/{application.command-00spg55s.js → application.command-b2194cpv.js} +15 -11
- package/{applicationBuildRunner-f4yf0qyc.js → applicationBuildRunner-gg03kydg.js} +12 -8
- package/buildBatch.proc.js +14 -9
- package/{cloud.command-ab704p0g.js → cloud.command-d8ps1564.js} +20 -16
- package/cloud.script-7j7w4m0w.js +35 -0
- package/{code.command-m6c9xk56.js → code.command-6h6jr0s7.js} +10 -6
- package/{context.command-hgcgxtdk.js → context.command-t8akxhny.js} +20 -16
- package/context.runner-eawk1n8e.js +34 -0
- package/{guideline.command-6yz6d4hf.js → guideline.command-f41b5nv5.js} +6 -2
- package/guidelines/agentRule/agentRule.instruction.md +12 -2
- package/guidelines/akanApi/akanApi.instruction.md +1 -1
- package/guidelines/errorCodes/errorCodes.instruction.md +3 -0
- package/guidelines/pageRule/pageRule.instruction.md +6 -1
- package/guidelines/runtimeRule/runtimeRule.instruction.md +2 -1
- package/incrementalBuilder.proc.js +12 -7
- package/{index-c3r23w24.js → index-1b1p83vq.js} +3 -3
- package/index-1jzdengt.js +30 -0
- package/{index-aybfcx58.js → index-2z8mxgs7.js} +6 -6
- package/{index-t8h09yjs.js → index-37k5vshx.js} +10 -8
- package/{index-frvjq1rd.js → index-3fbmyb2r.js} +1 -1
- package/{index-6qtxs86x.js → index-3fn13v8p.js} +4 -4
- package/{index-6eptmk8z.js → index-3fpv5v0t.js} +15 -11
- package/{index-23d8gw08.js → index-3gmskeq2.js} +37 -29
- package/{index-bper31wr.js → index-5np8zpep.js} +12 -8
- package/{index-41mfhgq0.js → index-66jt3m30.js} +1 -1
- package/{index-097bjwvm.js → index-6dwk5aej.js} +8 -8
- package/{index-849qvd7t.js → index-71z3pdsn.js} +4 -4
- package/{index-p54s83sz.js → index-8bkbexcy.js} +1 -1
- package/{index-bxkx0x03.js → index-8rmg8c0y.js} +3 -3
- package/{index-6z57w95f.js → index-9w51aevd.js} +1 -1
- package/{index-5jwx4bf2.js → index-9yfssbgg.js} +25 -19
- package/{index-adj7qmz9.js → index-asfx2dhe.js} +13 -9
- package/index-b3h37zk3.js +787 -0
- package/{index-xfv2p7b5.js → index-bb7cm060.js} +10 -10
- package/{index-p4htjyvk.js → index-c0rnjeqn.js} +11 -9
- package/{index-apcr1qgk.js → index-c4k6e098.js} +19 -15
- package/{index-sq9d0jhj.js → index-crtscw7c.js} +2710 -3615
- package/{index-xy70tcv4.js → index-e599a0e4.js} +1 -1
- package/{index-6fnrhpn1.js → index-f5j09jnj.js} +5 -5
- package/{index-dsg50er9.js → index-g2ebpf0y.js} +6 -6
- package/{index-hf9nvwam.js → index-hbc0t3ng.js} +2 -2
- package/{index-hhagjhkh.js → index-hg8s6nae.js} +9 -9
- package/{index-b3pr4ee6.js → index-hpe12v1h.js} +1 -1
- package/{index-dfsa009c.js → index-j2me5hm4.js} +8 -6
- package/{index-e5f6czck.js → index-j33b0n38.js} +1 -1
- package/{index-4k9nv4m3.js → index-k081wv4r.js} +1428 -1106
- package/{index-rdx8cyv2.js → index-nx4q5rey.js} +3 -3
- package/index-rx8r0cbe.js +18 -0
- package/{index-k2r3hmbz.js → index-vb8gd135.js} +21 -15
- package/{index-z43wddce.js → index-vy50ec2q.js} +2 -2
- package/index-x2bj2vyz.js +127 -0
- package/{index-9xh4zvw3.js → index-xb1yh9km.js} +21 -11
- package/{index-7ky4brfy.js → index-xjj0h74q.js} +2 -2
- package/index.js +27 -23
- package/libExecutor-ex8jqksz.js +10 -0
- package/{library.command-kc1zahcg.js → library.command-a9p5yg4k.js} +7 -3
- package/{localRegistry.command-bz2df40m.js → localRegistry.command-zz64k5vy.js} +23 -18
- package/{module.command-cchwzz9r.js → module.command-1ht6dmxg.js} +9 -5
- package/{package.command-qcjajpv8.js → package.command-eabq20aq.js} +8 -4
- package/package.json +2 -2
- package/{page.command-1t86dx8a.js → page.command-xhmzmvjn.js} +7 -3
- package/{pipeline.command-2xx9z3d0.js → pipeline.command-wsbg3fpr.js} +11 -6
- package/pkgExecutor-d16x1xcb.js +10 -0
- package/{primitive.command-mc0x8txr.js → primitive.command-yyxtfhvq.js} +10 -6
- package/{projectTypecheck-tz497yx7.js → projectTypecheck-wcrt7sae.js} +1 -1
- package/{quality.command-11rayf5c.js → quality.command-n7hmt628.js} +16 -10
- package/{repair.command-8w41vy78.js → repair.command-pczdq4mv.js} +9 -5
- package/{scalar.command-rvwh98ny.js → scalar.command-cw3d32sv.js} +8 -4
- package/{subspace.command-0970n7kd.js → subspace.command-d8t8geyv.js} +17 -12
- package/templates/lib/sig.ts +0 -4
- package/templates/lib/useClient.ts +1 -1
- package/{tunnel.command-bcy0rtmh.js → tunnel.command-mhm64m9n.js} +15 -11
- package/{verify.command-ynaztxr2.js → verify.command-j4he0fbx.js} +16 -12
- package/{workflow.command-yp9ajthb.js → workflow.command-k064waza.js} +14 -10
- package/{workspace.command-e4wfxm86.js → workspace.command-pkpawft5.js} +47 -41
- package/TunnelShare-44er4e29.js +0 -15
- package/cloud.script-4p4y0s7e.js +0 -31
- package/context.runner-w071gmc3.js +0 -30
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "./index-
|
|
3
|
+
AppExecutor2
|
|
4
|
+
} from "./index-b3h37zk3.js";
|
|
5
5
|
import {
|
|
6
6
|
buildResourceList,
|
|
7
7
|
codexMcpConfigPath,
|
|
@@ -11,23 +11,23 @@ import {
|
|
|
11
11
|
upsertCodexMcpServerBlock,
|
|
12
12
|
renderDoctorText,
|
|
13
13
|
AkanContextAnalyzer
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-5np8zpep.js";
|
|
15
15
|
import {
|
|
16
16
|
jsonText,
|
|
17
17
|
workflowStatus,
|
|
18
18
|
createWorkflowBaselineSummary,
|
|
19
19
|
buildAkanModuleContextIndex,
|
|
20
20
|
toolingRolloutGate
|
|
21
|
-
} from "./index-
|
|
21
|
+
} from "./index-j2me5hm4.js";
|
|
22
22
|
import {
|
|
23
23
|
runner
|
|
24
|
-
} from "./index-
|
|
24
|
+
} from "./index-3gmskeq2.js";
|
|
25
25
|
import {
|
|
26
26
|
NativeApp
|
|
27
|
-
} from "./index-
|
|
27
|
+
} from "./index-g2ebpf0y.js";
|
|
28
28
|
import {
|
|
29
29
|
isPlaceholderAppId
|
|
30
|
-
} from "./index-
|
|
30
|
+
} from "./index-9w51aevd.js";
|
|
31
31
|
import {
|
|
32
32
|
getMobileTargets,
|
|
33
33
|
appIdsOf
|
|
@@ -40,10 +40,10 @@ import {
|
|
|
40
40
|
} from "./index-xgqz3kak.js";
|
|
41
41
|
import {
|
|
42
42
|
RepairRunner
|
|
43
|
-
} from "./index-
|
|
43
|
+
} from "./index-1b1p83vq.js";
|
|
44
44
|
import {
|
|
45
45
|
WorkflowRunner
|
|
46
|
-
} from "./index-
|
|
46
|
+
} from "./index-6dwk5aej.js";
|
|
47
47
|
|
|
48
48
|
// pkgs/@akanjs/devkit/akanMcpContract.ts
|
|
49
49
|
import { lstatSync, realpathSync } from "fs";
|
|
@@ -672,7 +672,7 @@ class ContextRunner2 extends runner("context") {
|
|
|
672
672
|
const diagnostics = [];
|
|
673
673
|
let toolchainChecked = false;
|
|
674
674
|
for (const appName of appNames) {
|
|
675
|
-
const app =
|
|
675
|
+
const app = AppExecutor2.from(workspace, appName);
|
|
676
676
|
const config = await app.getConfig();
|
|
677
677
|
if (!config.hasNativeConfig)
|
|
678
678
|
continue;
|
|
@@ -6,21 +6,23 @@ import {
|
|
|
6
6
|
CloudApi,
|
|
7
7
|
CloudUpdates,
|
|
8
8
|
PipelineSecrets
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-xjj0h74q.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveMobileTargets
|
|
12
12
|
} from "./index-m9jj544v.js";
|
|
13
13
|
import {
|
|
14
|
-
WorkspaceExecutor
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
WorkspaceExecutor
|
|
15
|
+
} from "./index-crtscw7c.js";
|
|
16
|
+
import {
|
|
17
|
+
AppExecutor2
|
|
18
|
+
} from "./index-b3h37zk3.js";
|
|
17
19
|
import {
|
|
18
20
|
NativeApp
|
|
19
|
-
} from "./index-
|
|
21
|
+
} from "./index-g2ebpf0y.js";
|
|
20
22
|
import {
|
|
21
23
|
runner,
|
|
22
24
|
assertPromptable
|
|
23
|
-
} from "./index-
|
|
25
|
+
} from "./index-3gmskeq2.js";
|
|
24
26
|
import {
|
|
25
27
|
getNpmRegistryUrl,
|
|
26
28
|
getPublishedVersions,
|
|
@@ -715,7 +717,7 @@ class EnvArchive {
|
|
|
715
717
|
static async#secretGlobs(workspace) {
|
|
716
718
|
const [appNames] = await workspace.getExecs();
|
|
717
719
|
const entries = await Promise.all(appNames.map(async (appName) => {
|
|
718
|
-
const { secrets = [] } = await
|
|
720
|
+
const { secrets = [] } = await AppExecutor2.from(workspace, appName).getConfig();
|
|
719
721
|
return [appName, secrets.map((pattern) => new Bun.Glob(pattern))];
|
|
720
722
|
}));
|
|
721
723
|
return new Map(entries);
|
|
@@ -1355,7 +1357,7 @@ ${run.format(results)}
|
|
|
1355
1357
|
}
|
|
1356
1358
|
async#gatherCustomSecretFiles(workspace, appNames) {
|
|
1357
1359
|
const secretPaths = await Promise.all(appNames.map(async (appName) => {
|
|
1358
|
-
const config = await
|
|
1360
|
+
const config = await AppExecutor2.from(workspace, appName).getConfig();
|
|
1359
1361
|
const secretGlobs = config.secrets ?? [];
|
|
1360
1362
|
if (secretGlobs.length === 0)
|
|
1361
1363
|
return [];
|
|
@@ -1439,7 +1441,7 @@ ${run.format(results)}
|
|
|
1439
1441
|
}
|
|
1440
1442
|
async#syncSecretGitignore(workspace, appNames) {
|
|
1441
1443
|
const patterns = (await Promise.all(appNames.map(async (appName) => {
|
|
1442
|
-
const config = await
|
|
1444
|
+
const config = await AppExecutor2.from(workspace, appName).getConfig();
|
|
1443
1445
|
return (config.secrets ?? []).map((pattern) => `apps/${appName}/${pattern.replace(/^\/+/, "")}`);
|
|
1444
1446
|
}))).flat();
|
|
1445
1447
|
const uniquePatterns = [...new Set(patterns)].sort();
|
|
@@ -2,26 +2,30 @@
|
|
|
2
2
|
import {
|
|
3
3
|
camelToKebabCase,
|
|
4
4
|
runner
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-3gmskeq2.js";
|
|
6
6
|
import {
|
|
7
7
|
FileSys2
|
|
8
8
|
} from "./index-bns3wcpc.js";
|
|
9
9
|
import {
|
|
10
|
-
extractAgentBlock,
|
|
11
|
-
collectScopeRecipeSources,
|
|
12
|
-
renderScopeAgentBlock,
|
|
13
|
-
Linter,
|
|
14
10
|
rootAllowedFiles,
|
|
15
11
|
rootAllowedDirs,
|
|
16
12
|
isAllowedLibFacetRootFile,
|
|
17
13
|
libFacetRootHintOf,
|
|
18
14
|
facetIndexShadowOf,
|
|
19
15
|
rootEntryHintOf,
|
|
20
|
-
|
|
16
|
+
Linter,
|
|
17
|
+
extractAgentBlock,
|
|
18
|
+
collectScopeRecipeSources,
|
|
19
|
+
renderScopeAgentBlock,
|
|
21
20
|
SysExecutor,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
WorkspaceExecutor
|
|
22
|
+
} from "./index-crtscw7c.js";
|
|
23
|
+
import {
|
|
24
|
+
LibExecutor2
|
|
25
|
+
} from "./index-1jzdengt.js";
|
|
26
|
+
import {
|
|
27
|
+
PkgExecutor2
|
|
28
|
+
} from "./index-x2bj2vyz.js";
|
|
25
29
|
import {
|
|
26
30
|
countBlocking,
|
|
27
31
|
formatStyleContract,
|
|
@@ -32,7 +36,7 @@ import {
|
|
|
32
36
|
} from "./index-ygdbn9jn.js";
|
|
33
37
|
import {
|
|
34
38
|
MaintainabilityBaseline
|
|
35
|
-
} from "./index-
|
|
39
|
+
} from "./index-j33b0n38.js";
|
|
36
40
|
import {
|
|
37
41
|
createFactReader,
|
|
38
42
|
createAst
|
|
@@ -1986,7 +1990,7 @@ class WorkspaceRunner extends runner("workspace") {
|
|
|
1986
1990
|
() => this.#enforceAgentsIndex(exec)
|
|
1987
1991
|
])
|
|
1988
1992
|
await gate().catch((error) => messages.push(error instanceof Error ? error.message : String(error)));
|
|
1989
|
-
if (!(exec instanceof SysExecutor) && !(exec instanceof
|
|
1993
|
+
if (!(exec instanceof SysExecutor) && !(exec instanceof PkgExecutor2))
|
|
1990
1994
|
return { messages, maintainability: [] };
|
|
1991
1995
|
const contract = await this.maintainabilityContractOf(exec);
|
|
1992
1996
|
const failures = await contract.enforce({ fix });
|
|
@@ -1994,7 +1998,7 @@ class WorkspaceRunner extends runner("workspace") {
|
|
|
1994
1998
|
return { messages, maintainability };
|
|
1995
1999
|
}
|
|
1996
2000
|
async maintainabilityContractOf(exec) {
|
|
1997
|
-
if (exec instanceof
|
|
2001
|
+
if (exec instanceof PkgExecutor2)
|
|
1998
2002
|
return new MaintainabilityContract(exec.workspace.workspaceRoot, { type: "pkg", name: exec.name });
|
|
1999
2003
|
const libNames = new Set;
|
|
2000
2004
|
const visit = async (sys) => {
|
|
@@ -2002,7 +2006,7 @@ class WorkspaceRunner extends runner("workspace") {
|
|
|
2002
2006
|
if (libNames.has(libName))
|
|
2003
2007
|
continue;
|
|
2004
2008
|
libNames.add(libName);
|
|
2005
|
-
await visit(
|
|
2009
|
+
await visit(LibExecutor2.from(exec, libName));
|
|
2006
2010
|
}
|
|
2007
2011
|
};
|
|
2008
2012
|
await visit(exec);
|
|
@@ -2032,7 +2036,7 @@ class WorkspaceRunner extends runner("workspace") {
|
|
|
2032
2036
|
throw new Error(`[agentsIndex] The recipe index in ${scope.type}s/${scope.name}/AGENTS.md is stale: it differs from the recipe ` + `sources. Run \`akan sync ${scope.name}\` to regenerate it.`);
|
|
2033
2037
|
}
|
|
2034
2038
|
async#enforceMaintainability(exec, fix) {
|
|
2035
|
-
if (!(exec instanceof SysExecutor) && !(exec instanceof
|
|
2039
|
+
if (!(exec instanceof SysExecutor) && !(exec instanceof PkgExecutor2))
|
|
2036
2040
|
return;
|
|
2037
2041
|
const contract = await this.maintainabilityContractOf(exec);
|
|
2038
2042
|
const failures = await contract.enforce({ fix });
|
|
@@ -2040,7 +2044,7 @@ class WorkspaceRunner extends runner("workspace") {
|
|
|
2040
2044
|
throw new Error(contract.describe(failures, WorkspaceRunner.#maintainabilityCommandsOf(exec)));
|
|
2041
2045
|
}
|
|
2042
2046
|
static #maintainabilityCommandsOf(exec) {
|
|
2043
|
-
return exec instanceof
|
|
2047
|
+
return exec instanceof PkgExecutor2 ? {} : new MaintainabilityPaths().commandsOf(exec.name);
|
|
2044
2048
|
}
|
|
2045
2049
|
async#enforceRecipeGate(exec) {
|
|
2046
2050
|
const cwdPath = exec.cwdPath;
|