@akanjs/cli 3.2.0-rc.3 → 3.2.0-rc.31

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 (144) hide show
  1. package/.build-stamp +2 -1
  2. package/CodeAgent-c17abdbf.js +11 -0
  3. package/{CodeTui-wv9yf7eq.js → CodeTui-jed1nj82.js} +822 -666
  4. package/README.ko.md +26 -1
  5. package/README.md +26 -1
  6. package/TunnelShare-mbfcaqg0.js +18 -0
  7. package/agent.command-9whnc6vb.js +56 -0
  8. package/akanCode.js +12 -12
  9. package/appExecutor-020cyesq.js +11 -0
  10. package/{application.command-6515t682.js → application.command-4eqvyxkw.js} +77 -36
  11. package/{applicationBuildRunner-bqbyeg84.js → applicationBuildRunner-frtcrqfd.js} +18 -13
  12. package/buildBatch.proc.js +26 -11
  13. package/{cloud.command-32esk0v1.js → cloud.command-hbvmeezn.js} +31 -28
  14. package/cloud.script-9kmbr3d6.js +35 -0
  15. package/{code.command-xk7rwq2x.js → code.command-0ayrenk4.js} +14 -9
  16. package/{context.command-jwenkkf0.js → context.command-php852kf.js} +28 -23
  17. package/context.runner-nngmn7c0.js +34 -0
  18. package/{dependencyScanner-78sq8m4q.js → dependencyScanner-ge10gb52.js} +2 -2
  19. package/{devTui-cd03z4mx.js → devTui-rf374y2w.js} +1 -1
  20. package/{fileSys-zpvt5gtf.js → fileSys-q22646yc.js} +1 -1
  21. package/{guideline.command-w6yqpdec.js → guideline.command-w1grfwh7.js} +9 -4
  22. package/guidelines/agentRule/agentRule.instruction.md +29 -12
  23. package/guidelines/akanApi/akanApi.instruction.md +6 -4
  24. package/guidelines/conventions/core.md +23 -5
  25. package/guidelines/conventions/rules/app.md +4 -1
  26. package/guidelines/conventions/rules/page.md +5 -0
  27. package/guidelines/conventions/rules/ts.md +3 -3
  28. package/guidelines/errorCodes/errorCodes.instruction.md +164 -0
  29. package/guidelines/fieldRule/fieldRule.instruction.md +2 -1
  30. package/guidelines/mcpRule/mcpRule.instruction.md +171 -2
  31. package/guidelines/pageRule/pageRule.instruction.md +15 -1
  32. package/guidelines/runtimeRule/runtimeRule.instruction.md +12 -6
  33. package/guidelines/transportRule/transportRule.instruction.md +8 -1
  34. package/incrementalBuilder.proc.js +574 -410
  35. package/{index-w15mg3km.js → index-0dm25wvf.js} +1 -1
  36. package/{index-xrmrvafh.js → index-0gaj78wn.js} +808 -694
  37. package/{index-j1hjb477.js → index-11d7nh8a.js} +1 -1
  38. package/{index-hj6w4ka1.js → index-1p81ecbz.js} +1 -1
  39. package/{index-ygrdw6jw.js → index-1pjwsh2g.js} +65 -8
  40. package/{index-43acpsc7.js → index-28nk8w3j.js} +12 -12
  41. package/{index-qd7xn2bk.js → index-2ny1e95c.js} +2 -2
  42. package/{index-8gm4yag8.js → index-42jhx2ya.js} +6 -6
  43. package/{index-2rqyrvcy.js → index-4st0hq72.js} +62 -33
  44. package/{index-bak9f2br.js → index-5d57kx0s.js} +15 -11
  45. package/{index-bdmgqzb5.js → index-6469101k.js} +58 -29
  46. package/{index-7kmbqp0b.js → index-6pxmcaq8.js} +1 -1
  47. package/{index-54s6knqe.js → index-6zb17wcm.js} +12 -10
  48. package/{index-0ba8nj4d.js → index-7bs463x7.js} +50 -38
  49. package/{index-y725zb1a.js → index-7v7tvgt7.js} +196 -168
  50. package/{index-r0a604h4.js → index-99kjwyma.js} +1 -1
  51. package/{index-2mrn1mrg.js → index-9f3reh2y.js} +1 -1
  52. package/{index-386canwe.js → index-9rv2zt48.js} +186 -121
  53. package/{index-20wvskt8.js → index-9wab2ngg.js} +1 -1
  54. package/{index-2eym1yjb.js → index-9wjrwjgz.js} +288 -209
  55. package/{index-kcpk2d20.js → index-at6haq2x.js} +1474 -1139
  56. package/{index-6h775rv3.js → index-ba2xd32s.js} +53 -12
  57. package/{index-yf9wc28h.js → index-bejy9zyc.js} +1 -1
  58. package/{index-ngpt3zz3.js → index-bj8s07s7.js} +525 -440
  59. package/{index-bns3wcpc.js → index-by2tvsq6.js} +1 -1
  60. package/{index-vbhx60x5.js → index-cb91b6d8.js} +2140 -2165
  61. package/index-dss3ds74.js +127 -0
  62. package/{index-e22zedc2.js → index-f16kr6vj.js} +3 -3
  63. package/{index-ny2k80mv.js → index-ffa52fwf.js} +1 -1
  64. package/{index-djc5nxpy.js → index-fp5xf6ef.js} +6 -6
  65. package/{index-qrk06tfp.js → index-g45y5f3e.js} +2 -2
  66. package/{index-8jpc5fqv.js → index-g7jgd4xs.js} +2 -2
  67. package/index-j4yvgfhr.js +70 -0
  68. package/{index-ytpmk3pb.js → index-jgj31xvw.js} +18 -11
  69. package/{index-j6eeh5d7.js → index-knpm8sdm.js} +5 -5
  70. package/{index-s34v3y28.js → index-m3t28rt3.js} +11 -11
  71. package/{index-dpgywgeq.js → index-m5gg0wzv.js} +27 -16
  72. package/index-na8r4a27.js +30 -0
  73. package/{index-h0p6n4k1.js → index-nm7nt9vm.js} +3 -3
  74. package/{index-j4hkbzj6.js → index-p06kfhdf.js} +6 -6
  75. package/{index-35j83zkd.js → index-p5zh7pmc.js} +2 -2
  76. package/{index-cmg5ngqa.js → index-p7beqww9.js} +2 -2
  77. package/{index-zhkcab5a.js → index-prgvqqxe.js} +580 -364
  78. package/{index-wfmpxke3.js → index-qssq2d41.js} +2775 -3677
  79. package/{index-sc0g6zbm.js → index-rwgqba9p.js} +24 -11
  80. package/{index-zcdmnfrf.js → index-s3m89wt2.js} +9 -9
  81. package/{index-v50xjbbe.js → index-t4d0ckde.js} +1 -1
  82. package/{index-9p260r4e.js → index-trffs83s.js} +538 -250
  83. package/{index-ddk49ypz.js → index-v929w7j7.js} +133 -49
  84. package/index-va90m8nd.js +25 -0
  85. package/index-vjbne22r.js +80 -0
  86. package/{index-h7hehkw6.js → index-xczjdng6.js} +3 -1
  87. package/{index-39jz41jb.js → index-xs9a3ddt.js} +3 -3
  88. package/{index-84c2pgak.js → index-yvzm8mby.js} +94 -82
  89. package/{index-wr9magsr.js → index-yxkjsyx8.js} +3 -3
  90. package/index-ze48c0vd.js +788 -0
  91. package/{index-ygdbn9jn.js → index-zyb0ebm4.js} +1 -1
  92. package/index.js +29 -24
  93. package/libExecutor-tq994592.js +10 -0
  94. package/{library.command-qs8beggh.js → library.command-x219mhcx.js} +9 -4
  95. package/{localRegistry.command-hz4ged9n.js → localRegistry.command-zvdcejhn.js} +30 -24
  96. package/{module.command-z9js77m2.js → module.command-k6cwcm7g.js} +17 -8
  97. package/{package.command-zqenq8c0.js → package.command-vw7x09f8.js} +13 -8
  98. package/package.json +2 -2
  99. package/{page.command-t0nx1jat.js → page.command-gf06paq2.js} +9 -4
  100. package/{pipeline.command-2yjeas7m.js → pipeline.command-y07dgj9b.js} +14 -8
  101. package/pkgExecutor-stde3yc3.js +10 -0
  102. package/{primitive.command-v5kypwy4.js → primitive.command-edydvh07.js} +13 -8
  103. package/{projectTypecheck-s9hhe5sa.js → projectTypecheck-mk8wefvd.js} +2 -1
  104. package/{prompter-qrwx1p17.js → prompter-qyggfhqd.js} +2 -2
  105. package/{quality.command-q55j2htd.js → quality.command-mdb45vyr.js} +23 -16
  106. package/{recipeScanner-4b69ybe0.js → recipeScanner-rrx69awy.js} +1 -1
  107. package/{repair.command-7ssbbdq2.js → repair.command-kvtaeecy.js} +13 -8
  108. package/{routeSourceValidator-4h947v7c.js → routeSourceValidator-8n6j1vn7.js} +4 -2
  109. package/{scalar.command-p5jb7z57.js → scalar.command-sjt9p5e1.js} +11 -6
  110. package/skills/akan-debug/SKILL.md +10 -3
  111. package/skills/akan-err/SKILL.md +7 -0
  112. package/skills/akan-mcp/SKILL.md +17 -2
  113. package/skills/akan-scaffold/SKILL.md +2 -2
  114. package/skills/akan-transport/SKILL.md +2 -0
  115. package/skills/akan-validate/SKILL.md +1 -0
  116. package/{subspace.command-7wxy6ptj.js → subspace.command-mkkqync4.js} +29 -23
  117. package/templates/app/page/_layout.tsx +13 -0
  118. package/templates/app/page/styles.css.template +40 -0
  119. package/templates/appSample/page/_index.tsx +9 -9
  120. package/templates/appSample/page/_layout.tsx +1 -0
  121. package/templates/appSample/page/styles.css.template +40 -5
  122. package/templates/appSample/ui/Recipe/jellyButton.ts +1 -1
  123. package/templates/biomeForm.ts +1 -1
  124. package/templates/env/_env.server.type.ts +1 -1
  125. package/templates/facetIndex/index.ts +2 -37
  126. package/templates/lib/sig.ts +0 -4
  127. package/templates/lib/useClient.ts +1 -1
  128. package/templates/workspaceRoot/AGENTS.md.template +2 -1
  129. package/{tunnel.command-22g11n0x.js → tunnel.command-tr5b3030.js} +17 -12
  130. package/{typeChecker-s640r6c0.js → typeChecker-bfrd1n9n.js} +1 -1
  131. package/typecheck.proc.js +6 -3
  132. package/{verify.command-m0wnndd7.js → verify.command-0p9h8tpp.js} +26 -20
  133. package/{workflow.command-jx8dqs9n.js → workflow.command-9mfcwqzj.js} +37 -19
  134. package/{workspace.command-ca9kfyt3.js → workspace.command-5hjtmcfs.js} +61 -54
  135. package/CodeAgent-e9c712an.js +0 -11
  136. package/TunnelShare-zkfkrw8w.js +0 -14
  137. package/agent.command-9erafkcb.js +0 -51
  138. package/cloud.script-arsagnq6.js +0 -30
  139. package/context.runner-mqpp67br.js +0 -29
  140. package/index-x3x31df8.js +0 -14
  141. /package/templates/{appSample → app}/public/fonts/Pretendard-Bold.woff2 +0 -0
  142. /package/templates/{appSample → app}/public/fonts/Pretendard-Medium.woff2 +0 -0
  143. /package/templates/{appSample → app}/public/fonts/Pretendard-Regular.woff2 +0 -0
  144. /package/templates/{appSample → app}/public/fonts/Pretendard-SemiBold.woff2 +0 -0
@@ -6,29 +6,31 @@ import {
6
6
  CloudApi,
7
7
  CloudUpdates,
8
8
  PipelineSecrets
9
- } from "./index-e22zedc2.js";
9
+ } from "./index-f16kr6vj.js";
10
10
  import {
11
11
  resolveMobileTargets
12
12
  } from "./index-m9jj544v.js";
13
13
  import {
14
- WorkspaceExecutor,
15
- AppExecutor
16
- } from "./index-wfmpxke3.js";
14
+ WorkspaceExecutor
15
+ } from "./index-qssq2d41.js";
16
+ import {
17
+ AppExecutor2
18
+ } from "./index-ze48c0vd.js";
17
19
  import {
18
20
  NativeApp
19
- } from "./index-djc5nxpy.js";
21
+ } from "./index-fp5xf6ef.js";
20
22
  import {
21
23
  runner,
22
24
  assertPromptable
23
- } from "./index-386canwe.js";
25
+ } from "./index-9rv2zt48.js";
24
26
  import {
25
27
  getNpmRegistryUrl,
26
28
  getPublishedVersions,
27
29
  getLatestPackageVersion
28
- } from "./index-ny2k80mv.js";
30
+ } from "./index-ffa52fwf.js";
29
31
  import {
30
32
  SubspaceConfig
31
- } from "./index-h7hehkw6.js";
33
+ } from "./index-xczjdng6.js";
32
34
  import {
33
35
  openBrowser
34
36
  } from "./index-9dp031by.js";
@@ -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);
@@ -1067,6 +1069,7 @@ ${run.format(results)}
1067
1069
  if (!interactive)
1068
1070
  continue;
1069
1071
  assertPromptable(`${result.platform} did not pass (${reason}) \u2014 ${run.logDir}`, {
1072
+ code: "failed",
1070
1073
  remedy: "leave it out of --platforms to publish without it, or run it in a terminal to be asked"
1071
1074
  });
1072
1075
  const proceed = await confirm({
@@ -1169,6 +1172,44 @@ ${run.format(results)}
1169
1172
  Logger3.info(`${library}@${nextVersion} is published to ${registry ?? "npm"}`);
1170
1173
  }
1171
1174
  Logger3.info(`All libraries are published to ${registry ?? "npm"}`);
1175
+ if (!registry && isOfficialRelease)
1176
+ await this.releaseEditorExtension(workspace);
1177
+ }
1178
+ async releaseEditorExtension(workspace) {
1179
+ const repo = "akan-team/akanjs";
1180
+ const bundled = [
1181
+ "pkgs/@akanjs/vscode",
1182
+ "pkgs/@akanjs/language",
1183
+ ":(exclude)pkgs/@akanjs/language/package.json",
1184
+ ":(exclude)pkgs/@akanjs/language/CHANGELOG.md",
1185
+ "pkgs/akanjs/common/akanNames.ts",
1186
+ "pkgs/akanjs/common/akanGraph.ts",
1187
+ "pkgs/akanjs/common/capitalize.ts",
1188
+ "apps/akan/public/icon-512x512.png",
1189
+ "bun.lock"
1190
+ ];
1191
+ try {
1192
+ if ((await workspace.spawn("git", ["status", "--porcelain", "--", ...bundled])).trim())
1193
+ throw new Error("files the extension bundles have uncommitted changes, such as the version `changeset version` wrote");
1194
+ const sha = (await workspace.spawn("git", ["rev-parse", "HEAD"])).trim();
1195
+ const onMain = (await workspace.spawn("gh", ["api", `repos/${repo}/compare/${sha}...main`, "--jq", ".status"])).trim();
1196
+ if (onMain !== "identical" && onMain !== "ahead")
1197
+ throw new Error(`${sha.slice(0, 9)} is not on main`);
1198
+ await workspace.spawn("gh", [
1199
+ "workflow",
1200
+ "run",
1201
+ "vscode-publish.yml",
1202
+ "--repo",
1203
+ repo,
1204
+ "--ref",
1205
+ "main",
1206
+ "-f",
1207
+ `sha=${sha}`
1208
+ ]);
1209
+ Logger3.info(`CI is releasing the editor extension from ${sha.slice(0, 9)}: https://github.com/${repo}/actions/workflows/vscode-publish.yml`);
1210
+ } catch (error) {
1211
+ Logger3.warn(`The editor extension was not released: ${error instanceof Error ? error.message : String(error)}. Commit and push the release to main, then run from that commit \`gh workflow run vscode-publish.yml --repo ${repo} --ref main -f sha=$(git rev-parse HEAD)\``);
1212
+ }
1172
1213
  }
1173
1214
  #dependenciesFirst(libraries, dependencies) {
1174
1215
  const ordered = [];
@@ -1244,7 +1285,7 @@ ${run.format(results)}
1244
1285
  async downloadEnv(cloudApi, workspace, workspaceId) {
1245
1286
  await workspace.mkdir("local");
1246
1287
  const localPath = await cloudApi.downloadEnv(workspaceId).catch((error) => {
1247
- throw CloudApi.refusal(error, "downloading its env archive takes the project owner's own `akan login`");
1288
+ throw CloudApi.refusal(error, "only the repository owner, or an owner or operator they allowed on the project's settings page, can download its env archive; sign in as one of them with `akan login`");
1248
1289
  });
1249
1290
  await EnvArchive.extract(workspace, localPath);
1250
1291
  await workspace.remove(localPath);
@@ -1316,7 +1357,7 @@ ${run.format(results)}
1316
1357
  }
1317
1358
  async#gatherCustomSecretFiles(workspace, appNames) {
1318
1359
  const secretPaths = await Promise.all(appNames.map(async (appName) => {
1319
- const config = await AppExecutor.from(workspace, appName).getConfig();
1360
+ const config = await AppExecutor2.from(workspace, appName).getConfig();
1320
1361
  const secretGlobs = config.secrets ?? [];
1321
1362
  if (secretGlobs.length === 0)
1322
1363
  return [];
@@ -1400,7 +1441,7 @@ ${run.format(results)}
1400
1441
  }
1401
1442
  async#syncSecretGitignore(workspace, appNames) {
1402
1443
  const patterns = (await Promise.all(appNames.map(async (appName) => {
1403
- const config = await AppExecutor.from(workspace, appName).getConfig();
1444
+ const config = await AppExecutor2.from(workspace, appName).getConfig();
1404
1445
  return (config.secrets ?? []).map((pattern) => `apps/${appName}/${pattern.replace(/^\/+/, "")}`);
1405
1446
  }))).flat();
1406
1447
  const uniquePatterns = [...new Set(patterns)].sort();
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- // pkgs/@akanjs/devkit/shellOnlyEnv.ts
2
+ // pkgs/@akanjs/devkit/util/shellOnlyEnv.ts
3
3
  import { existsSync, readFileSync } from "fs";
4
4
  import path from "path";
5
5
  var dotenvFiles = [