@akanjs/cli 3.0.0-alpha.7 → 3.0.0-alpha.70

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 (119) hide show
  1. package/.build-stamp +1 -1
  2. package/README.ko.md +1 -1
  3. package/README.md +1 -1
  4. package/{abstractCompactor-e5yq60qz.js → abstractCompactor-20e0cwbs.js} +2 -2
  5. package/{agent.command-pggr92jj.js → agent.command-964bf8qg.js} +9 -7
  6. package/{application.command-692yap1d.js → application.command-n45n18sc.js} +8 -6
  7. package/{applicationBuildRunner-ha3y8ew8.js → applicationBuildRunner-af0wtspv.js} +19 -14
  8. package/{applicationReleasePackager-gg8ccbeh.js → applicationReleasePackager-93nzdfsy.js} +1 -1
  9. package/buildBatch.proc.js +7 -5
  10. package/{capacitorApp-p0z5yab2.js → capacitorApp-vnvnvdhf.js} +29 -27
  11. package/{cloud.command-wqfsyzv2.js → cloud.command-kx1bh5yq.js} +12 -10
  12. package/{context.command-9bxtdn0w.js → context.command-g1a65x6j.js} +17 -15
  13. package/{dependencyScanner-f6grrep3.js → dependencyScanner-rbs2407b.js} +1 -1
  14. package/getDirname-ka11hm7e.js +8 -0
  15. package/{guideline.command-nfqahxex.js → guideline.command-xphyhvwh.js} +8 -6
  16. package/guidelines/agentRule/agentRule.generate.json +31 -0
  17. package/guidelines/agentRule/agentRule.instruction.md +525 -0
  18. package/guidelines/conventions/conventions.generate.json +25 -0
  19. package/guidelines/conventions/conventions.instruction.md +1020 -0
  20. package/guidelines/cssRule/cssRule.instruction.md +7 -0
  21. package/guidelines/framework/framework.instruction.md +1 -0
  22. package/guidelines/mcpRule/mcpRule.generate.json +25 -0
  23. package/guidelines/mcpRule/mcpRule.instruction.md +220 -0
  24. package/guidelines/workspaceOnboarding/workspaceOnboarding.generate.json +24 -0
  25. package/guidelines/workspaceOnboarding/workspaceOnboarding.instruction.md +638 -0
  26. package/incrementalBuilder.proc.js +8 -6
  27. package/{index-azv0xjb5.js → index-0ngvvgry.js} +8 -4
  28. package/index-1577bej2.js +7 -0
  29. package/{index-p3f4q532.js → index-4rw4qhe6.js} +14 -13
  30. package/{index-bjpxzr6s.js → index-5vy2jzar.js} +1 -1
  31. package/{index-js368gk9.js → index-8gybxemv.js} +6 -6
  32. package/{index-qb61h0k7.js → index-abyjt72y.js} +333 -540
  33. package/{index-4hek879p.js → index-bqqts262.js} +1 -1
  34. package/{index-6rhabeev.js → index-e31ghfp5.js} +5 -3
  35. package/index-f39512t6.js +255 -0
  36. package/{index-5pmx7bkg.js → index-fahkq20v.js} +3 -3
  37. package/{index-xhgtkekh.js → index-hee7egtm.js} +1 -1
  38. package/{index-7myvn0f0.js → index-j37qq1f2.js} +1 -1
  39. package/{index-5dw57f0d.js → index-mkn5qagt.js} +14 -14
  40. package/{index-ztpw544k.js → index-nj3w0r34.js} +3 -3
  41. package/{index-vg0sj9nc.js → index-nkwmnqwn.js} +257 -97
  42. package/{index-a1e0j63x.js → index-p681w089.js} +15 -7
  43. package/{index-j9cxndc0.js → index-qnv0aqmm.js} +9 -6
  44. package/{index-w6wbb612.js → index-qt4nfr0n.js} +13 -13
  45. package/{index-bz2sfzzt.js → index-rb65xnw9.js} +4 -4
  46. package/{index-gex7c8kd.js → index-rbnpe8cp.js} +37 -6
  47. package/{index-0cj2zxbm.js → index-sh01r3pm.js} +1 -1
  48. package/{index-gmy45vz2.js → index-v5fdxdre.js} +4 -4
  49. package/{index-mssqn2sq.js → index-va15r8h5.js} +54 -15
  50. package/{index-vtj3zps1.js → index-yg3hxk2k.js} +8 -8
  51. package/{index-2c3e2xh8.js → index-ytaqtc04.js} +1 -1
  52. package/index.js +21 -19
  53. package/{library.command-md9715jz.js → library.command-rfpd27yv.js} +6 -4
  54. package/{localRegistry.command-exkbamyj.js → localRegistry.command-pyxfe0fs.js} +11 -9
  55. package/{module.command-w5aaddxk.js → module.command-qhaxad0p.js} +10 -8
  56. package/{package.command-yfkrcy0z.js → package.command-2k22q9nt.js} +6 -4
  57. package/package.json +4 -5
  58. package/{page.command-echbavp4.js → page.command-ymk9dqh4.js} +6 -4
  59. package/{primitive.command-9fbhspw2.js → primitive.command-9k45zpc1.js} +11 -9
  60. package/{quality.command-3pnt9yep.js → quality.command-bf6vkxe5.js} +192 -97
  61. package/{recipeScanner-tghkzrrt.js → recipeScanner-zrzev25x.js} +3 -3
  62. package/{repair.command-carj4vax.js → repair.command-egvvm6xf.js} +8 -6
  63. package/{routeSourceValidator-e4jmbfcx.js → routeSourceValidator-7fycdqyv.js} +1 -1
  64. package/{scalar.command-51ryzypc.js → scalar.command-bt1facyj.js} +9 -7
  65. package/templates/app/env/env.client.debug.ts.template +1 -5
  66. package/templates/app/env/env.client.develop.ts.template +1 -5
  67. package/templates/app/env/env.client.local.ts.template +1 -5
  68. package/templates/app/env/env.client.main.ts.template +1 -5
  69. package/templates/app/env/env.client.testing.ts.template +1 -5
  70. package/templates/app/env/env.client.type.ts +2 -6
  71. package/templates/app/env/env.server.debug.ts.template +1 -5
  72. package/templates/app/env/env.server.develop.ts.template +1 -5
  73. package/templates/app/env/env.server.local.ts.template +1 -5
  74. package/templates/app/env/env.server.main.ts.template +1 -5
  75. package/templates/app/main.ts +3 -1
  76. package/templates/app/page/styles.css.template +3 -3
  77. package/templates/appSample/srvkit/AuthGuard.ts +9 -5
  78. package/templates/appSample/srvkit/SessionInternalArg.ts +4 -3
  79. package/templates/crudPages/[__model__Id]/edit/page.tsx +1 -1
  80. package/templates/crudPages/new/page.tsx +1 -1
  81. package/templates/crudSinglePage/page.tsx +1 -1
  82. package/templates/env/_env.server.type.ts +7 -5
  83. package/templates/lib/db.ts +1 -1
  84. package/templates/lib/dict.ts +1 -1
  85. package/templates/lib/sig.ts +1 -1
  86. package/templates/lib/srv.ts +6 -2
  87. package/templates/module/__Model__.Util.tsx +1 -1
  88. package/templates/module/__Model__.Zone.tsx +3 -5
  89. package/templates/workspaceRoot/AGENTS.md.template +0 -972
  90. package/templates/workspaceRoot/CLAUDE.md.template +19 -0
  91. package/templates/workspaceRoot/biome.json.template +4 -244
  92. package/templates/workspaceRoot/docs/AI-DEVELOPMENT.md.template +10 -14
  93. package/templates/workspaceRoot/docs/GENERATED.md.template +12 -10
  94. package/templates/workspaceRoot/package.json.template +1 -1
  95. package/{typeChecker-kravn7ns.js → typeChecker-g6bh0xfv.js} +1 -1
  96. package/typecheck.proc.js +1 -1
  97. package/{workflow.command-91wmvm8k.js → workflow.command-v1n3wg7v.js} +16 -14
  98. package/{workspace.command-wa10mfd9.js → workspace.command-yvvqvhzz.js} +71 -52
  99. package/templates/workspaceRoot/.cursor/rules/akan-page-routing.mdc.template +0 -43
  100. package/templates/workspaceRoot/.cursor/rules/akan-sync-conventions.mdc.template +0 -34
  101. package/templates/workspaceRoot/.cursor/rules/application-test-commands.mdc.template +0 -16
  102. package/templates/workspaceRoot/.cursor/rules/change-scope.mdc.template +0 -12
  103. package/templates/workspaceRoot/.cursor/rules/client-server-boundaries.mdc.template +0 -18
  104. package/templates/workspaceRoot/.cursor/rules/coding-comments.mdc.template +0 -25
  105. package/templates/workspaceRoot/.cursor/rules/coding-style.mdc.template +0 -44
  106. package/templates/workspaceRoot/.cursor/rules/domain-module-conventions.mdc.template +0 -17
  107. package/templates/workspaceRoot/.cursor/rules/format-lint.mdc.template +0 -12
  108. package/templates/workspaceRoot/.cursor/rules/lint-enforced-rules.mdc.template +0 -19
  109. package/templates/workspaceRoot/.cursor/rules/module-file-playbook.mdc.template +0 -62
  110. package/templates/workspaceRoot/.cursor/rules/naming-conventions.mdc.template +0 -15
  111. package/templates/workspaceRoot/.cursor/rules/react-component-style.mdc.template +0 -21
  112. package/templates/workspaceRoot/.cursor/rules/repo-overview.mdc.template +0 -17
  113. package/templates/workspaceRoot/.cursor/rules/scalar-modeling.mdc.template +0 -99
  114. package/templates/workspaceRoot/.cursor/rules/secrets-and-env.mdc.template +0 -13
  115. package/templates/workspaceRoot/.cursor/rules/service-signal-conventions.mdc.template +0 -83
  116. package/templates/workspaceRoot/.cursor/rules/srvkit-adapters-and-guards.mdc.template +0 -50
  117. package/templates/workspaceRoot/.cursor/rules/ssr-first.mdc.template +0 -59
  118. package/templates/workspaceRoot/.cursor/rules/typescript-imports.mdc.template +0 -16
  119. /package/{index-r24hmh0q.js → index-yb2wsc7f.js} +0 -0
package/.build-stamp CHANGED
@@ -1 +1 @@
1
- 7e53f9980ed629762c149212472004d3e97479ef84329a8316470ebfddbfb52d
1
+ a28e1153bab4e1e1e981a92cbd3a49ffbf5137997da979da9cf3ad9f5d1f54ba
package/README.ko.md CHANGED
@@ -64,7 +64,7 @@ metadata를 검증합니다.
64
64
 
65
65
  ## 요구사항
66
66
 
67
- - [Bun](https://bun.sh) `>=1.3.13`
67
+ - [Bun](https://bun.sh) `>=1.4.0`
68
68
  - TypeScript 기반 Akan 워크스페이스
69
69
 
70
70
  ## 라이선스
package/README.md CHANGED
@@ -77,7 +77,7 @@ artifact is built last and is not overwritten by the root `akan` bootstrap scrip
77
77
 
78
78
  ## Requirements
79
79
 
80
- - [Bun](https://bun.sh) `>=1.3.13`
80
+ - [Bun](https://bun.sh) `>=1.4.0`
81
81
  - A TypeScript Akan workspace
82
82
 
83
83
  ## License
@@ -1,13 +1,13 @@
1
1
  // @bun
2
2
  import {
3
3
  AiSession
4
- } from "./index-0cj2zxbm.js";
4
+ } from "./index-sh01r3pm.js";
5
5
  import {
6
6
  AbstractDoc
7
7
  } from "./index-0wae5ebk.js";
8
8
  import"./index-mxvakhsm.js";
9
9
  import"./index-67546d0j.js";
10
- import"./index-r24hmh0q.js";
10
+ import"./index-yb2wsc7f.js";
11
11
 
12
12
  // pkgs/@akanjs/devkit/abstractCompactor.ts
13
13
  import { Logger } from "akanjs/common";
@@ -1,19 +1,21 @@
1
1
  // @bun
2
2
  import {
3
3
  AgentScript
4
- } from "./index-gex7c8kd.js";
5
- import"./index-mssqn2sq.js";
6
- import"./index-2c3e2xh8.js";
7
- import"./index-7myvn0f0.js";
4
+ } from "./index-rbnpe8cp.js";
5
+ import"./index-va15r8h5.js";
6
+ import"./index-ytaqtc04.js";
7
+ import"./index-j37qq1f2.js";
8
8
  import {
9
9
  Workspace,
10
10
  command
11
- } from "./index-6rhabeev.js";
12
- import"./index-vg0sj9nc.js";
11
+ } from "./index-e31ghfp5.js";
12
+ import"./index-nkwmnqwn.js";
13
+ import"./index-f39512t6.js";
13
14
  import"./index-mxvakhsm.js";
14
15
  import"./index-xys926f2.js";
16
+ import"./index-1577bej2.js";
15
17
  import"./index-67546d0j.js";
16
- import"./index-r24hmh0q.js";
18
+ import"./index-yb2wsc7f.js";
17
19
 
18
20
  // pkgs/@akanjs/cli/agent/agent.command.ts
19
21
  class AgentCommand extends command("agent", [AgentScript], ({ public: target }) => ({
@@ -4,24 +4,26 @@ import {
4
4
  } from "./index-0wae5ebk.js";
5
5
  import {
6
6
  ApplicationScript
7
- } from "./index-5dw57f0d.js";
7
+ } from "./index-mkn5qagt.js";
8
+ import"./index-p681w089.js";
8
9
  import {
9
10
  getMobileTargetChoices
10
11
  } from "./index-76rn3g2c.js";
11
- import"./index-a1e0j63x.js";
12
12
  import {
13
13
  App,
14
14
  Exec,
15
15
  Sys,
16
16
  Workspace,
17
17
  command
18
- } from "./index-6rhabeev.js";
18
+ } from "./index-e31ghfp5.js";
19
19
  import"./index-fgc8r6dj.js";
20
- import"./index-bjpxzr6s.js";
21
- import"./index-vg0sj9nc.js";
20
+ import"./index-5vy2jzar.js";
21
+ import"./index-nkwmnqwn.js";
22
+ import"./index-f39512t6.js";
22
23
  import"./index-mxvakhsm.js";
24
+ import"./index-1577bej2.js";
23
25
  import"./index-67546d0j.js";
24
- import"./index-r24hmh0q.js";
26
+ import"./index-yb2wsc7f.js";
25
27
 
26
28
  // pkgs/@akanjs/cli/application/application.command.ts
27
29
  import { select } from "@inquirer/prompts";
@@ -2,16 +2,18 @@
2
2
  import {
3
3
  AllRoutesBuilder,
4
4
  CsrArtifactBuilder,
5
+ FontPruner,
5
6
  SsrBaseArtifactBuilder,
6
7
  precompressArtifacts
7
- } from "./index-qb61h0k7.js";
8
+ } from "./index-abyjt72y.js";
8
9
  import"./index-xjd3rqzj.js";
9
- import"./index-j9cxndc0.js";
10
- import"./index-bjpxzr6s.js";
10
+ import"./index-qnv0aqmm.js";
11
+ import"./index-5vy2jzar.js";
12
+ import"./index-f39512t6.js";
11
13
  import {
12
14
  Spinner
13
15
  } from "./index-mxvakhsm.js";
14
- import"./index-r24hmh0q.js";
16
+ import"./index-yb2wsc7f.js";
15
17
 
16
18
  // pkgs/@akanjs/devkit/applicationBuildRunner.ts
17
19
  import { mkdir, rm } from "fs/promises";
@@ -22,6 +24,7 @@ var BUILD_PHASE_EMOJIS = {
22
24
  backend: "\uD83D\uDCE6",
23
25
  ssr: "\uD83E\uDDED",
24
26
  csr: "\uD83C\uDFA8",
27
+ assets: "\u2702\uFE0F",
25
28
  compress: "\uD83D\uDDDC\uFE0F",
26
29
  metadata: "\uD83D\uDCDD"
27
30
  };
@@ -39,7 +42,6 @@ var SSR_RENDER_EXTERNALS = [
39
42
  var AKAN_OPTIONAL_BACKEND_EXTERNALS = [
40
43
  "@libsql/client",
41
44
  "bullmq",
42
- "croner",
43
45
  "ioredis",
44
46
  "postgres",
45
47
  "protobufjs"
@@ -58,14 +60,16 @@ class ApplicationBuildRunner {
58
60
  }
59
61
  async build({ spinner = false } = {}) {
60
62
  const phaseOptions = { spinner };
63
+ const { web, assets } = await this.#app.getConfig();
61
64
  await this.#runPhase("prepare", "Preparing output directory", () => this.#app.prepareCommand("build"), undefined, {
62
65
  spinner
63
66
  });
64
67
  if (!this.#fast)
65
68
  await this.#runPhase("typecheck", "Typechecking", () => this.typecheck(), undefined, phaseOptions);
66
69
  await this.#runPhase("backend", "Compiling backend", () => this.#buildBackend(), (result) => `${result.entrypoints} entrypoints, ${result.outputs} outputs`, phaseOptions);
67
- await this.#runPhase("ssr", "Building SSR route artifacts", () => this.#buildSsr(), (result) => result ? `${result.allRoutes.manifest.routeIds.length} routes, ${result.allRoutes.manifest.knownEntries.length} entries` : "skipped", phaseOptions);
68
- await this.#runPhase("csr", "Building CSR assets", () => this.#buildCsr(), (result) => result?.outputDir ?? "skipped", phaseOptions);
70
+ await this.#runPhase("ssr", "Building SSR route artifacts", async () => web.ssr ? await this.#buildSsr() : null, (result) => result ? `${result.allRoutes.manifest.routeIds.length} routes, ${result.allRoutes.manifest.knownEntries.length} entries` : web.ssr ? "skipped" : "disabled by akan.config.ts web.ssr", phaseOptions);
71
+ await this.#runPhase("csr", "Building CSR assets", async () => web.csr ? await this.#buildCsr() : null, (result) => result?.outputDir ?? (web.csr ? "skipped" : "disabled by akan.config.ts web.csr"), phaseOptions);
72
+ await this.#runPhase("assets", "Trimming unread static assets", async () => assets.pruneFonts ? await new FontPruner(this.#app, assets).prune() : null, (result) => result ? `${result.removed.length} font file(s) dropped, ${ApplicationBuildRunner.formatBytes(result.freedBytes)} freed; ${result.kept.length} kept` : "disabled by akan.config.ts assets.pruneFonts", phaseOptions);
69
73
  await this.#runPhase("compress", "Compressing static assets", () => precompressArtifacts(this.#app), (result) => result.files > 0 ? `${result.files} files, ${ApplicationBuildRunner.formatBytes(result.inputBytes)} -> gzip ${ApplicationBuildRunner.formatBytes(result.outputBytes)} / br ${ApplicationBuildRunner.formatBytes(result.brotliBytes)}` : "no files", phaseOptions);
70
74
  await this.#runPhase("metadata", "Writing production metadata", () => this.#buildAppMeta(), undefined, {
71
75
  spinner
@@ -107,7 +111,7 @@ class ApplicationBuildRunner {
107
111
  const akanConfig = await this.#app.getConfig();
108
112
  await Promise.all([
109
113
  this.#app.dist.writeJson("package.json", akanConfig.getProductionPackageJson()),
110
- this.#app.dist.writeFile(`${this.#app.dist.cwdPath}/Dockerfile`, akanConfig.docker.content)
114
+ this.#app.dist.writeFile(`${this.#app.dist.cwdPath}/Dockerfile`, akanConfig.dockerfile)
111
115
  ]);
112
116
  }
113
117
  async#buildBackend() {
@@ -115,6 +119,7 @@ class ApplicationBuildRunner {
115
119
  const backendExternals = [
116
120
  ...new Set([...akanConfig.externalLibs, ...SSR_RENDER_EXTERNALS, ...AKAN_OPTIONAL_BACKEND_EXTERNALS])
117
121
  ];
122
+ const { web } = akanConfig;
118
123
  const backendEntryPoints = [`${this.#app.cwdPath}/main.ts`, `${this.#app.cwdPath}/server.ts`];
119
124
  for (const entrypoint of backendEntryPoints) {
120
125
  if (!await Bun.file(entrypoint).exists())
@@ -129,7 +134,7 @@ class ApplicationBuildRunner {
129
134
  define: { "process.env.NODE_ENV": JSON.stringify("production") },
130
135
  plugins: backendExternals.length > 0 ? [this.#createExternalSpecifiersPlugin(backendExternals)] : []
131
136
  });
132
- const rscWorkerResult = await this.#buildOrThrow("rsc-worker", {
137
+ const rscWorkerResult = web.ssr ? await this.#buildOrThrow("rsc-worker", {
133
138
  entrypoints: [this.#resolveRscWorkerBuildEntry()],
134
139
  outdir: this.#app.dist.cwdPath,
135
140
  target: "bun",
@@ -138,7 +143,7 @@ class ApplicationBuildRunner {
138
143
  conditions: ["react-server"],
139
144
  define: { "process.env.NODE_ENV": JSON.stringify("production") },
140
145
  plugins: backendExternals.length > 0 ? [this.#createExternalSpecifiersPlugin(backendExternals)] : []
141
- });
146
+ }) : null;
142
147
  const consoleRuntimeResult = await this.#buildOrThrow("console-runtime", {
143
148
  entrypoints: [this.#resolveConsoleRuntimeBuildEntry()],
144
149
  outdir: this.#app.dist.cwdPath,
@@ -149,8 +154,8 @@ class ApplicationBuildRunner {
149
154
  });
150
155
  await this.#writeConsoleShim();
151
156
  return {
152
- entrypoints: backendEntryPoints.length + 2,
153
- outputs: backendResult.outputs.length + rscWorkerResult.outputs.length + consoleRuntimeResult.outputs.length + 1
157
+ entrypoints: backendEntryPoints.length + (rscWorkerResult ? 2 : 1),
158
+ outputs: backendResult.outputs.length + (rscWorkerResult?.outputs.length ?? 0) + consoleRuntimeResult.outputs.length + 1
154
159
  };
155
160
  }
156
161
  async#writeConsoleShim() {
@@ -287,6 +292,6 @@ void run().catch((error) => {
287
292
  }
288
293
  }
289
294
  export {
290
- ApplicationBuildRunner,
291
- AKAN_OPTIONAL_BACKEND_EXTERNALS
295
+ AKAN_OPTIONAL_BACKEND_EXTERNALS,
296
+ ApplicationBuildRunner
292
297
  };
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  FileSys
7
7
  } from "./index-67546d0j.js";
8
- import"./index-r24hmh0q.js";
8
+ import"./index-yb2wsc7f.js";
9
9
 
10
10
  // pkgs/@akanjs/devkit/applicationReleasePackager.ts
11
11
  import { cp, mkdir, rm } from "fs/promises";
@@ -5,17 +5,19 @@ import {
5
5
  FontOptimizer,
6
6
  PagesBundleBuilder,
7
7
  SsrBaseArtifactBuilder
8
- } from "./index-qb61h0k7.js";
8
+ } from "./index-abyjt72y.js";
9
9
  import"./index-xjd3rqzj.js";
10
- import"./index-j9cxndc0.js";
11
- import"./index-bjpxzr6s.js";
10
+ import"./index-qnv0aqmm.js";
11
+ import"./index-5vy2jzar.js";
12
12
  import {
13
13
  AppExecutor,
14
14
  WorkspaceExecutor
15
- } from "./index-vg0sj9nc.js";
15
+ } from "./index-nkwmnqwn.js";
16
+ import"./index-f39512t6.js";
16
17
  import"./index-mxvakhsm.js";
18
+ import"./index-1577bej2.js";
17
19
  import"./index-67546d0j.js";
18
- import"./index-r24hmh0q.js";
20
+ import"./index-yb2wsc7f.js";
19
21
 
20
22
  // pkgs/@akanjs/devkit/incrementalBuilder/buildBatch.proc.ts
21
23
  import path from "path";
@@ -25,36 +25,38 @@ import {
25
25
  selectLocalDevHost,
26
26
  sortIosRunTargets,
27
27
  writeRootCapacitorConfig
28
- } from "./index-xhgtkekh.js";
28
+ } from "./index-hee7egtm.js";
29
29
  import"./index-76rn3g2c.js";
30
- import"./index-vg0sj9nc.js";
30
+ import"./index-nkwmnqwn.js";
31
+ import"./index-f39512t6.js";
31
32
  import"./index-mxvakhsm.js";
33
+ import"./index-1577bej2.js";
32
34
  import"./index-67546d0j.js";
33
- import"./index-r24hmh0q.js";
35
+ import"./index-yb2wsc7f.js";
34
36
  export {
35
- writeRootCapacitorConfig,
36
- sortIosRunTargets,
37
- selectLocalDevHost,
38
- sanitizeIosNativeRunEnv,
39
- rootCapacitorConfigPaths,
40
- rootCapacitorConfigFilenames,
41
- raiseGradleMinSdkVersion,
42
- parseSimctlDevices,
43
- parseIosRuntimeMajor,
44
- parseDevicectlDevices,
45
- materializeCapacitorConfig,
46
- isPlaceholderAppId,
47
- getMissingAndroidReleaseSigningKeys,
48
- getAndroidLocalServerHost,
49
- getAdbDeviceStateIssues,
50
- formatIosRunFailureMessage,
51
- formatAndroidReleaseSigningError,
52
- clearRootCapacitorConfigs,
53
- classifyIosRunFailure,
54
- buildIosNativeRunCommand,
55
- assertJsonSerializable,
56
- SWIFTUICORE_MIN_IOS_MAJOR,
57
- PLACEHOLDER_APP_IDS,
37
+ ANDROID_MIN_SDK_VERSION,
58
38
  CapacitorApp,
59
- ANDROID_MIN_SDK_VERSION
39
+ PLACEHOLDER_APP_IDS,
40
+ SWIFTUICORE_MIN_IOS_MAJOR,
41
+ assertJsonSerializable,
42
+ buildIosNativeRunCommand,
43
+ classifyIosRunFailure,
44
+ clearRootCapacitorConfigs,
45
+ formatAndroidReleaseSigningError,
46
+ formatIosRunFailureMessage,
47
+ getAdbDeviceStateIssues,
48
+ getAndroidLocalServerHost,
49
+ getMissingAndroidReleaseSigningKeys,
50
+ isPlaceholderAppId,
51
+ materializeCapacitorConfig,
52
+ parseDevicectlDevices,
53
+ parseIosRuntimeMajor,
54
+ parseSimctlDevices,
55
+ raiseGradleMinSdkVersion,
56
+ rootCapacitorConfigFilenames,
57
+ rootCapacitorConfigPaths,
58
+ sanitizeIosNativeRunEnv,
59
+ selectLocalDevHost,
60
+ sortIosRunTargets,
61
+ writeRootCapacitorConfig
60
62
  };
@@ -1,26 +1,28 @@
1
1
  // @bun
2
2
  import {
3
3
  CloudScript
4
- } from "./index-js368gk9.js";
5
- import"./index-p3f4q532.js";
6
- import"./index-azv0xjb5.js";
4
+ } from "./index-8gybxemv.js";
5
+ import"./index-4rw4qhe6.js";
6
+ import"./index-0ngvvgry.js";
7
7
  import {
8
8
  GlobalConfig
9
- } from "./index-0cj2zxbm.js";
10
- import"./index-5dw57f0d.js";
9
+ } from "./index-sh01r3pm.js";
10
+ import"./index-mkn5qagt.js";
11
+ import"./index-p681w089.js";
11
12
  import"./index-76rn3g2c.js";
12
- import"./index-a1e0j63x.js";
13
13
  import {
14
14
  Workspace,
15
15
  command
16
- } from "./index-6rhabeev.js";
16
+ } from "./index-e31ghfp5.js";
17
17
  import"./index-fgc8r6dj.js";
18
- import"./index-bjpxzr6s.js";
19
- import"./index-vg0sj9nc.js";
18
+ import"./index-5vy2jzar.js";
19
+ import"./index-nkwmnqwn.js";
20
+ import"./index-f39512t6.js";
20
21
  import"./index-mxvakhsm.js";
22
+ import"./index-1577bej2.js";
21
23
  import"./index-46tjzh6s.js";
22
24
  import"./index-67546d0j.js";
23
- import"./index-r24hmh0q.js";
25
+ import"./index-yb2wsc7f.js";
24
26
 
25
27
  // pkgs/@akanjs/cli/cloud/cloud.command.ts
26
28
  var localRegistryUrl = () => process.env.AKAN_NPM_REGISTRY ?? "http://127.0.0.1:4873";
@@ -1,29 +1,31 @@
1
1
  // @bun
2
2
  import {
3
3
  ContextScript
4
- } from "./index-w6wbb612.js";
5
- import"./index-ztpw544k.js";
6
- import"./index-5pmx7bkg.js";
7
- import"./index-bz2sfzzt.js";
8
- import"./index-vtj3zps1.js";
9
- import"./index-4hek879p.js";
10
- import"./index-gmy45vz2.js";
4
+ } from "./index-qt4nfr0n.js";
5
+ import"./index-nj3w0r34.js";
6
+ import"./index-fahkq20v.js";
7
+ import"./index-v5fdxdre.js";
8
+ import"./index-rb65xnw9.js";
9
+ import"./index-yg3hxk2k.js";
11
10
  import"./index-ss469dec.js";
12
- import"./index-xhgtkekh.js";
13
- import"./index-0cj2zxbm.js";
14
- import"./index-mssqn2sq.js";
15
- import"./index-2c3e2xh8.js";
16
- import"./index-7myvn0f0.js";
11
+ import"./index-bqqts262.js";
12
+ import"./index-hee7egtm.js";
13
+ import"./index-sh01r3pm.js";
14
+ import"./index-va15r8h5.js";
15
+ import"./index-ytaqtc04.js";
16
+ import"./index-j37qq1f2.js";
17
17
  import"./index-76rn3g2c.js";
18
18
  import {
19
19
  Workspace,
20
20
  command
21
- } from "./index-6rhabeev.js";
22
- import"./index-vg0sj9nc.js";
21
+ } from "./index-e31ghfp5.js";
22
+ import"./index-nkwmnqwn.js";
23
+ import"./index-f39512t6.js";
23
24
  import"./index-mxvakhsm.js";
24
25
  import"./index-xys926f2.js";
26
+ import"./index-1577bej2.js";
25
27
  import"./index-67546d0j.js";
26
- import"./index-r24hmh0q.js";
28
+ import"./index-yb2wsc7f.js";
27
29
 
28
30
  // pkgs/@akanjs/cli/context/context.command.ts
29
31
  class ContextCommand extends command("context", [ContextScript], ({ public: target }) => ({
@@ -3,7 +3,7 @@ import {
3
3
  TypeScriptDependencyScanner
4
4
  } from "./index-46tjzh6s.js";
5
5
  import"./index-67546d0j.js";
6
- import"./index-r24hmh0q.js";
6
+ import"./index-yb2wsc7f.js";
7
7
  export {
8
8
  TypeScriptDependencyScanner
9
9
  };
@@ -0,0 +1,8 @@
1
+ // @bun
2
+ import {
3
+ getDirname
4
+ } from "./index-1577bej2.js";
5
+ import"./index-yb2wsc7f.js";
6
+ export {
7
+ getDirname
8
+ };
@@ -1,24 +1,26 @@
1
1
  // @bun
2
2
  import {
3
3
  AiSession
4
- } from "./index-0cj2zxbm.js";
4
+ } from "./index-sh01r3pm.js";
5
5
  import {
6
6
  Prompter
7
- } from "./index-7myvn0f0.js";
7
+ } from "./index-j37qq1f2.js";
8
8
  import {
9
9
  Workspace,
10
10
  command,
11
11
  runner,
12
12
  script
13
- } from "./index-6rhabeev.js";
13
+ } from "./index-e31ghfp5.js";
14
+ import"./index-nkwmnqwn.js";
15
+ import"./index-f39512t6.js";
16
+ import"./index-mxvakhsm.js";
14
17
  import {
15
18
  getDirname
16
- } from "./index-vg0sj9nc.js";
17
- import"./index-mxvakhsm.js";
19
+ } from "./index-1577bej2.js";
18
20
  import {
19
21
  FileSys
20
22
  } from "./index-67546d0j.js";
21
- import"./index-r24hmh0q.js";
23
+ import"./index-yb2wsc7f.js";
22
24
 
23
25
  // pkgs/@akanjs/cli/guideline/guideline.script.ts
24
26
  import { Logger } from "akanjs/common";
@@ -0,0 +1,31 @@
1
+ {
2
+ "title": "In-Page Agent Rule",
3
+ "description": "How an akan screen exposes itself to an in-page agent — st.tool, subscribed keys, built-ins, and the chat",
4
+ "group": "core",
5
+ "codegenPriority": 4,
6
+ "deprecated": false,
7
+ "scans": [
8
+ {
9
+ "type": "example",
10
+ "description": "Components publishing an agent tool beside the control that already performs the action",
11
+ "path": "{apps,libs}/*/**/*.tsx",
12
+ "sample": 4
13
+ }
14
+ ],
15
+ "update": {
16
+ "filePath": "./agentRule.instruction.md",
17
+ "contents": [
18
+ "what a declaration publishes",
19
+ "mounting the chat",
20
+ "publishing a tool",
21
+ "forms and reading state",
22
+ "built-in tools"
23
+ ],
24
+ "rules": [
25
+ "Use current Akan APIs only",
26
+ "State the rule before the reason, and keep the reason to one clause",
27
+ "Never describe a store class as an exposure surface — only st.tool and subscribed keys publish",
28
+ "Keep it workspace-neutral — no app or repo names"
29
+ ]
30
+ }
31
+ }