@akanjs/cli 3.2.0-rc.1 → 3.2.0-rc.11

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 (99) hide show
  1. package/.build-stamp +2 -1
  2. package/{CodeAgent-vmd9k4ak.js → CodeAgent-fk66n37w.js} +3 -3
  3. package/{CodeTui-zka44v52.js → CodeTui-4rf1mqmv.js} +1 -1
  4. package/README.ko.md +26 -1
  5. package/README.md +26 -1
  6. package/TunnelShare-44er4e29.js +15 -0
  7. package/{agent.command-2f657613.js → agent.command-7g9czkkd.js} +20 -19
  8. package/akanCode.js +3 -3
  9. package/{application.command-q6skd3am.js → application.command-00spg55s.js} +31 -24
  10. package/{applicationBuildRunner-sctcmkyx.js → applicationBuildRunner-f4yf0qyc.js} +9 -7
  11. package/buildBatch.proc.js +7 -6
  12. package/{cloud.command-7642pks6.js → cloud.command-ab704p0g.js} +24 -25
  13. package/cloud.script-4p4y0s7e.js +31 -0
  14. package/{code.command-7s4ndq2k.js → code.command-m6c9xk56.js} +7 -6
  15. package/{context.command-569z0rqf.js → context.command-hgcgxtdk.js} +20 -19
  16. package/context.runner-w071gmc3.js +30 -0
  17. package/{devTui-w38ch13a.js → devTui-h77zrjv5.js} +1 -1
  18. package/{guideline.command-gnv3e8p8.js → guideline.command-6yz6d4hf.js} +3 -2
  19. package/guidelines/agentRule/agentRule.instruction.md +4 -3
  20. package/guidelines/akanApi/akanApi.instruction.md +2 -0
  21. package/guidelines/conventions/core.md +1 -1
  22. package/guidelines/conventions/rules/app.md +3 -0
  23. package/guidelines/conventions/rules/page.md +5 -0
  24. package/guidelines/errorCodes/errorCodes.instruction.md +140 -0
  25. package/guidelines/fieldRule/fieldRule.instruction.md +2 -1
  26. package/guidelines/mcpRule/mcpRule.instruction.md +72 -2
  27. package/guidelines/pageRule/pageRule.instruction.md +5 -0
  28. package/guidelines/runtimeRule/runtimeRule.instruction.md +5 -1
  29. package/guidelines/transportRule/transportRule.instruction.md +5 -0
  30. package/incrementalBuilder.proc.js +8 -7
  31. package/{index-vkzfk7qt.js → index-097bjwvm.js} +40 -30
  32. package/{index-93ewzmp6.js → index-23d8gw08.js} +165 -102
  33. package/{index-p6hjwt2d.js → index-41mfhgq0.js} +72 -26
  34. package/{index-ktb3wcqz.js → index-4k9nv4m3.js} +71 -81
  35. package/{index-vr68mxj5.js → index-5jwx4bf2.js} +69 -33
  36. package/{index-5w9my9qe.js → index-6eptmk8z.js} +30 -20
  37. package/{index-d4n1wmrz.js → index-6fnrhpn1.js} +8 -4
  38. package/{index-kpdv34rq.js → index-6qtxs86x.js} +10 -7
  39. package/{index-ed6ea0qp.js → index-6z57w95f.js} +1 -1
  40. package/{index-drz9e84d.js → index-7ky4brfy.js} +2 -2
  41. package/{index-8g7tdsk4.js → index-849qvd7t.js} +58 -29
  42. package/{index-1q1cjn8s.js → index-9xh4zvw3.js} +94 -53
  43. package/{index-48d5qsj3.js → index-adj7qmz9.js} +23 -15
  44. package/{index-fjr4d6yd.js → index-apcr1qgk.js} +458 -304
  45. package/{index-8ts9774g.js → index-aybfcx58.js} +9 -4
  46. package/{index-8kczhnmv.js → index-b3pr4ee6.js} +1 -1
  47. package/{index-23860fej.js → index-b4qq3rq0.js} +23 -8
  48. package/{index-thckcabc.js → index-bper31wr.js} +24 -6
  49. package/{index-a8a9ede9.js → index-bxkx0x03.js} +14 -7
  50. package/{index-0fb3cpbt.js → index-c3r23w24.js} +9 -7
  51. package/{index-8pb9yvp8.js → index-dfsa009c.js} +148 -31
  52. package/{index-zpv14wpy.js → index-dsg50er9.js} +3 -3
  53. package/{index-hqrkqxx2.js → index-e5f6czck.js} +46 -7
  54. package/{index-sy481q2x.js → index-frvjq1rd.js} +1 -1
  55. package/{index-abgh0jve.js → index-grt0e6kk.js} +1 -1
  56. package/{index-e3vmjtph.js → index-hf9nvwam.js} +7 -2
  57. package/{index-v4p1zye8.js → index-hhagjhkh.js} +7 -7
  58. package/index-j4yvgfhr.js +70 -0
  59. package/{index-s2grpzef.js → index-k2r3hmbz.js} +6 -4
  60. package/{index-7y5yghjg.js → index-nd39rssn.js} +1162 -435
  61. package/{index-6wpaq392.js → index-p4htjyvk.js} +44 -5
  62. package/{index-aj3ehkcx.js → index-p54s83sz.js} +1 -1
  63. package/{index-7xdpww43.js → index-rdx8cyv2.js} +342 -134
  64. package/{index-sr5da35e.js → index-sq9d0jhj.js} +21 -18
  65. package/{index-eajbmk10.js → index-t4d0ckde.js} +2 -2
  66. package/{index-mqntfzv5.js → index-t8h09yjs.js} +7 -2
  67. package/index-va90m8nd.js +25 -0
  68. package/{index-rc5fvqj2.js → index-xfv2p7b5.js} +95 -58
  69. package/{index-w639tvkd.js → index-xgqz3kak.js} +29 -8
  70. package/{index-9tbgb4d8.js → index-xy70tcv4.js} +1 -1
  71. package/{index-mmym5xmb.js → index-z43wddce.js} +5 -3
  72. package/index.js +24 -23
  73. package/{library.command-1gp5qe3r.js → library.command-kc1zahcg.js} +5 -4
  74. package/{localRegistry.command-x7jptkd3.js → localRegistry.command-bz2df40m.js} +19 -18
  75. package/{module.command-4xz9he6h.js → module.command-cchwzz9r.js} +12 -7
  76. package/{package.command-s7qpnn1g.js → package.command-qcjajpv8.js} +8 -7
  77. package/package.json +2 -2
  78. package/{page.command-fan34c49.js → page.command-1t86dx8a.js} +4 -3
  79. package/{pipeline.command-ph4fnn9w.js → pipeline.command-2xx9z3d0.js} +3 -2
  80. package/{primitive.command-3fqh8emf.js → primitive.command-mc0x8txr.js} +8 -7
  81. package/{projectTypecheck-vkb40hjc.js → projectTypecheck-tz497yx7.js} +2 -1
  82. package/{quality.command-ecj6exsh.js → quality.command-11rayf5c.js} +7 -6
  83. package/{repair.command-fe9jw719.js → repair.command-8w41vy78.js} +7 -6
  84. package/{scalar.command-cnvfhk0n.js → scalar.command-rvwh98ny.js} +7 -6
  85. package/skills/akan-debug/SKILL.md +7 -3
  86. package/skills/akan-err/SKILL.md +7 -0
  87. package/skills/akan-mcp/SKILL.md +10 -1
  88. package/skills/akan-scaffold/SKILL.md +3 -2
  89. package/skills/akan-transport/SKILL.md +2 -0
  90. package/skills/akan-validate/SKILL.md +1 -0
  91. package/{subspace.command-qw5ddd6y.js → subspace.command-0970n7kd.js} +9 -8
  92. package/{tunnel.command-ggj38mqf.js → tunnel.command-bcy0rtmh.js} +8 -7
  93. package/typecheck.proc.js +5 -2
  94. package/{verify.command-w9ttxkdz.js → verify.command-ynaztxr2.js} +18 -16
  95. package/{workflow.command-ss8devj0.js → workflow.command-yp9ajthb.js} +45 -16
  96. package/{workspace.command-6z2rh8ze.js → workspace.command-e4wfxm86.js} +39 -34
  97. package/TunnelShare-k3ja4w9x.js +0 -14
  98. package/cloud.script-1sfseznn.js +0 -30
  99. package/context.runner-ms8v1rxy.js +0 -29
@@ -6,21 +6,21 @@ import {
6
6
  CloudApi,
7
7
  CloudUpdates,
8
8
  PipelineSecrets
9
- } from "./index-drz9e84d.js";
9
+ } from "./index-7ky4brfy.js";
10
10
  import {
11
11
  resolveMobileTargets
12
12
  } from "./index-m9jj544v.js";
13
13
  import {
14
14
  WorkspaceExecutor,
15
15
  AppExecutor
16
- } from "./index-sr5da35e.js";
16
+ } from "./index-sq9d0jhj.js";
17
17
  import {
18
18
  NativeApp
19
- } from "./index-zpv14wpy.js";
19
+ } from "./index-dsg50er9.js";
20
20
  import {
21
21
  runner,
22
22
  assertPromptable
23
- } from "./index-93ewzmp6.js";
23
+ } from "./index-23d8gw08.js";
24
24
  import {
25
25
  getNpmRegistryUrl,
26
26
  getPublishedVersions,
@@ -1067,6 +1067,7 @@ ${run.format(results)}
1067
1067
  if (!interactive)
1068
1068
  continue;
1069
1069
  assertPromptable(`${result.platform} did not pass (${reason}) \u2014 ${run.logDir}`, {
1070
+ code: "failed",
1070
1071
  remedy: "leave it out of --platforms to publish without it, or run it in a terminal to be asked"
1071
1072
  });
1072
1073
  const proceed = await confirm({
@@ -1169,6 +1170,44 @@ ${run.format(results)}
1169
1170
  Logger3.info(`${library}@${nextVersion} is published to ${registry ?? "npm"}`);
1170
1171
  }
1171
1172
  Logger3.info(`All libraries are published to ${registry ?? "npm"}`);
1173
+ if (!registry && isOfficialRelease)
1174
+ await this.releaseEditorExtension(workspace);
1175
+ }
1176
+ async releaseEditorExtension(workspace) {
1177
+ const repo = "akan-team/akanjs";
1178
+ const bundled = [
1179
+ "pkgs/@akanjs/vscode",
1180
+ "pkgs/@akanjs/language",
1181
+ ":(exclude)pkgs/@akanjs/language/package.json",
1182
+ ":(exclude)pkgs/@akanjs/language/CHANGELOG.md",
1183
+ "pkgs/akanjs/common/akanNames.ts",
1184
+ "pkgs/akanjs/common/akanGraph.ts",
1185
+ "pkgs/akanjs/common/capitalize.ts",
1186
+ "apps/akan/public/icon-512x512.png",
1187
+ "bun.lock"
1188
+ ];
1189
+ try {
1190
+ if ((await workspace.spawn("git", ["status", "--porcelain", "--", ...bundled])).trim())
1191
+ throw new Error("files the extension bundles have uncommitted changes, such as the version `changeset version` wrote");
1192
+ const sha = (await workspace.spawn("git", ["rev-parse", "HEAD"])).trim();
1193
+ const onMain = (await workspace.spawn("gh", ["api", `repos/${repo}/compare/${sha}...main`, "--jq", ".status"])).trim();
1194
+ if (onMain !== "identical" && onMain !== "ahead")
1195
+ throw new Error(`${sha.slice(0, 9)} is not on main`);
1196
+ await workspace.spawn("gh", [
1197
+ "workflow",
1198
+ "run",
1199
+ "vscode-publish.yml",
1200
+ "--repo",
1201
+ repo,
1202
+ "--ref",
1203
+ "main",
1204
+ "-f",
1205
+ `sha=${sha}`
1206
+ ]);
1207
+ Logger3.info(`CI is releasing the editor extension from ${sha.slice(0, 9)}: https://github.com/${repo}/actions/workflows/vscode-publish.yml`);
1208
+ } catch (error) {
1209
+ 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)\``);
1210
+ }
1172
1211
  }
1173
1212
  #dependenciesFirst(libraries, dependencies) {
1174
1213
  const ordered = [];
@@ -1244,7 +1283,7 @@ ${run.format(results)}
1244
1283
  async downloadEnv(cloudApi, workspace, workspaceId) {
1245
1284
  await workspace.mkdir("local");
1246
1285
  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`");
1286
+ 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
1287
  });
1249
1288
  await EnvArchive.extract(workspace, localPath);
1250
1289
  await workspace.remove(localPath);
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  runner,
4
4
  script
5
- } from "./index-93ewzmp6.js";
5
+ } from "./index-23d8gw08.js";
6
6
 
7
7
  // pkgs/@akanjs/cli/page/page.runner.ts
8
8
  class PageRunner extends runner("page") {