@akanjs/cli 3.2.0-rc.12 → 3.2.0-rc.14

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.
Files changed (82) hide show
  1. package/.build-stamp +2 -2
  2. package/{CodeAgent-cr8pvdmv.js → CodeAgent-yd1f54yf.js} +2 -2
  3. package/{CodeTui-89ssa9rr.js → CodeTui-h7mksphk.js} +1 -1
  4. package/TunnelShare-hrjed2jf.js +19 -0
  5. package/{agent.command-rp9hpf0v.js → agent.command-hrc2dfas.js} +19 -15
  6. package/akanCode.js +2 -2
  7. package/appExecutor-0ssszyhf.js +11 -0
  8. package/{application.command-fydjdvce.js → application.command-b2194cpv.js} +15 -11
  9. package/{applicationBuildRunner-68sph7t4.js → applicationBuildRunner-gg03kydg.js} +12 -8
  10. package/buildBatch.proc.js +14 -9
  11. package/{cloud.command-0y1gg3sb.js → cloud.command-d8ps1564.js} +20 -16
  12. package/cloud.script-7j7w4m0w.js +35 -0
  13. package/{code.command-63fcz7a3.js → code.command-6h6jr0s7.js} +10 -6
  14. package/{context.command-pgwcx0na.js → context.command-t8akxhny.js} +20 -16
  15. package/context.runner-eawk1n8e.js +34 -0
  16. package/{guideline.command-6yz6d4hf.js → guideline.command-f41b5nv5.js} +6 -2
  17. package/guidelines/agentRule/agentRule.instruction.md +12 -2
  18. package/guidelines/akanApi/akanApi.instruction.md +1 -1
  19. package/guidelines/pageRule/pageRule.instruction.md +6 -1
  20. package/guidelines/runtimeRule/runtimeRule.instruction.md +2 -1
  21. package/incrementalBuilder.proc.js +12 -7
  22. package/{index-c3r23w24.js → index-1b1p83vq.js} +3 -3
  23. package/index-1jzdengt.js +30 -0
  24. package/{index-aybfcx58.js → index-2z8mxgs7.js} +6 -6
  25. package/{index-t8h09yjs.js → index-37k5vshx.js} +10 -8
  26. package/{index-frvjq1rd.js → index-3fbmyb2r.js} +1 -1
  27. package/{index-h0s3cjm0.js → index-3fn13v8p.js} +4 -4
  28. package/{index-axe04yqm.js → index-3fpv5v0t.js} +15 -11
  29. package/{index-23d8gw08.js → index-3gmskeq2.js} +37 -29
  30. package/{index-bper31wr.js → index-5np8zpep.js} +12 -8
  31. package/{index-41mfhgq0.js → index-66jt3m30.js} +1 -1
  32. package/{index-097bjwvm.js → index-6dwk5aej.js} +8 -8
  33. package/{index-qwzwzmvf.js → index-71z3pdsn.js} +4 -4
  34. package/{index-p54s83sz.js → index-8bkbexcy.js} +1 -1
  35. package/{index-cqrndcq0.js → index-8rmg8c0y.js} +3 -3
  36. package/{index-s0w78805.js → index-9w51aevd.js} +1 -1
  37. package/{index-bmscnt1t.js → index-9yfssbgg.js} +25 -19
  38. package/{index-adj7qmz9.js → index-asfx2dhe.js} +13 -9
  39. package/index-b3h37zk3.js +787 -0
  40. package/{index-wm4385pm.js → index-bb7cm060.js} +10 -10
  41. package/{index-6r5f768n.js → index-c0rnjeqn.js} +11 -9
  42. package/{index-apcr1qgk.js → index-c4k6e098.js} +19 -15
  43. package/{index-sq9d0jhj.js → index-crtscw7c.js} +2710 -3615
  44. package/{index-ahk6rvth.js → index-e599a0e4.js} +1 -1
  45. package/{index-6fnrhpn1.js → index-f5j09jnj.js} +5 -5
  46. package/{index-3m2cd8mm.js → index-g2ebpf0y.js} +6 -6
  47. package/{index-hf9nvwam.js → index-hbc0t3ng.js} +2 -2
  48. package/{index-cswgczrv.js → index-hg8s6nae.js} +9 -9
  49. package/{index-pcprf7ft.js → index-hpe12v1h.js} +1 -1
  50. package/{index-dfsa009c.js → index-j2me5hm4.js} +8 -6
  51. package/{index-e5f6czck.js → index-j33b0n38.js} +1 -1
  52. package/{index-mmgtnh44.js → index-k081wv4r.js} +1428 -1106
  53. package/{index-bgp0h8rx.js → index-nx4q5rey.js} +3 -3
  54. package/index-rx8r0cbe.js +18 -0
  55. package/{index-k2r3hmbz.js → index-vb8gd135.js} +21 -15
  56. package/{index-6js9ek5c.js → index-vy50ec2q.js} +2 -2
  57. package/index-x2bj2vyz.js +127 -0
  58. package/{index-wpgtyek3.js → index-xb1yh9km.js} +1 -1
  59. package/{index-70jkxbf6.js → index-xjj0h74q.js} +2 -2
  60. package/index.js +27 -23
  61. package/libExecutor-ex8jqksz.js +10 -0
  62. package/{library.command-kc1zahcg.js → library.command-a9p5yg4k.js} +7 -3
  63. package/{localRegistry.command-yz150pcw.js → localRegistry.command-zz64k5vy.js} +23 -18
  64. package/{module.command-cchwzz9r.js → module.command-1ht6dmxg.js} +9 -5
  65. package/{package.command-qcjajpv8.js → package.command-eabq20aq.js} +8 -4
  66. package/package.json +2 -2
  67. package/{page.command-1t86dx8a.js → page.command-xhmzmvjn.js} +7 -3
  68. package/{pipeline.command-2xx9z3d0.js → pipeline.command-wsbg3fpr.js} +11 -6
  69. package/pkgExecutor-d16x1xcb.js +10 -0
  70. package/{primitive.command-mc0x8txr.js → primitive.command-yyxtfhvq.js} +10 -6
  71. package/{projectTypecheck-tz497yx7.js → projectTypecheck-wcrt7sae.js} +1 -1
  72. package/{quality.command-11rayf5c.js → quality.command-n7hmt628.js} +16 -10
  73. package/{repair.command-8w41vy78.js → repair.command-pczdq4mv.js} +9 -5
  74. package/{scalar.command-rvwh98ny.js → scalar.command-cw3d32sv.js} +8 -4
  75. package/{subspace.command-ykxertx8.js → subspace.command-d8t8geyv.js} +17 -12
  76. package/{tunnel.command-qbcbj0vq.js → tunnel.command-mhm64m9n.js} +15 -11
  77. package/{verify.command-gvveq05z.js → verify.command-j4he0fbx.js} +16 -12
  78. package/{workflow.command-yp9ajthb.js → workflow.command-k064waza.js} +14 -10
  79. package/{workspace.command-jm7emxjh.js → workspace.command-pkpawft5.js} +47 -41
  80. package/TunnelShare-ndb5cts1.js +0 -15
  81. package/cloud.script-ewk72b3g.js +0 -31
  82. package/context.runner-5s2ytkjj.js +0 -30
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
- AppExecutor
4
- } from "./index-sq9d0jhj.js";
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-bper31wr.js";
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-dfsa009c.js";
21
+ } from "./index-j2me5hm4.js";
22
22
  import {
23
23
  runner
24
- } from "./index-23d8gw08.js";
24
+ } from "./index-3gmskeq2.js";
25
25
  import {
26
26
  NativeApp
27
- } from "./index-3m2cd8mm.js";
27
+ } from "./index-g2ebpf0y.js";
28
28
  import {
29
29
  isPlaceholderAppId
30
- } from "./index-s0w78805.js";
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-c3r23w24.js";
43
+ } from "./index-1b1p83vq.js";
44
44
  import {
45
45
  WorkflowRunner
46
- } from "./index-097bjwvm.js";
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 = AppExecutor.from(workspace, appName);
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-70jkxbf6.js";
9
+ } from "./index-xjj0h74q.js";
10
10
  import {
11
11
  resolveMobileTargets
12
12
  } from "./index-m9jj544v.js";
13
13
  import {
14
- WorkspaceExecutor,
15
- AppExecutor
16
- } from "./index-sq9d0jhj.js";
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-3m2cd8mm.js";
21
+ } from "./index-g2ebpf0y.js";
20
22
  import {
21
23
  runner,
22
24
  assertPromptable
23
- } from "./index-23d8gw08.js";
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 AppExecutor.from(workspace, appName).getConfig();
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 AppExecutor.from(workspace, appName).getConfig();
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 AppExecutor.from(workspace, appName).getConfig();
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-23d8gw08.js";
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
- WorkspaceExecutor,
16
+ Linter,
17
+ extractAgentBlock,
18
+ collectScopeRecipeSources,
19
+ renderScopeAgentBlock,
21
20
  SysExecutor,
22
- LibExecutor,
23
- PkgExecutor
24
- } from "./index-sq9d0jhj.js";
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-e5f6czck.js";
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 PkgExecutor))
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 PkgExecutor)
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(LibExecutor.from(exec, libName));
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 PkgExecutor))
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 PkgExecutor ? {} : new MaintainabilityPaths().commandsOf(exec.name);
2047
+ return exec instanceof PkgExecutor2 ? {} : new MaintainabilityPaths().commandsOf(exec.name);
2044
2048
  }
2045
2049
  async#enforceRecipeGate(exec) {
2046
2050
  const cwdPath = exec.cwdPath;