@akanjs/cli 3.1.1-rc.1 → 3.1.1-rc.10

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 (75) hide show
  1. package/.build-stamp +1 -1
  2. package/{CodeAgent-4pnxwptq.js → CodeAgent-8d5qs787.js} +2 -2
  3. package/{CodeTui-hhndze8h.js → CodeTui-z5vkm9ea.js} +1 -1
  4. package/TunnelShare-qkm8zp03.js +14 -0
  5. package/{agent.command-p02330r6.js → agent.command-ydftceda.js} +5 -5
  6. package/akanCode.js +2 -2
  7. package/{application.command-1117fgq9.js → application.command-wthg8nn9.js} +11 -11
  8. package/{applicationBuildRunner-9cnnsdm5.js → applicationBuildRunner-t2r84sz6.js} +72 -26
  9. package/buildBatch.proc.js +5 -5
  10. package/{cloud.command-ttb2s2x6.js → cloud.command-sz11hpre.js} +22 -17
  11. package/cloud.script-nqevg5qw.js +24 -0
  12. package/{code.command-16pm1p2v.js → code.command-9h3yrzhe.js} +6 -6
  13. package/{context.command-6ys86sqf.js → context.command-15j9b7c0.js} +16 -16
  14. package/context.runner-8gg030b0.js +25 -0
  15. package/{guideline.command-3zay3d8g.js → guideline.command-snh85ctf.js} +2 -2
  16. package/guidelines/agentRule/agentRule.instruction.md +21 -4
  17. package/guidelines/conventions/conventions.instruction.md +10 -7
  18. package/guidelines/pageRule/pageRule.instruction.md +8 -0
  19. package/guidelines/queryRule/queryRule.instruction.md +13 -1
  20. package/guidelines/runtimeRule/runtimeRule.instruction.md +12 -0
  21. package/guidelines/workspaceOnboarding/workspaceOnboarding.instruction.md +2 -1
  22. package/incrementalBuilder.proc.js +3 -3
  23. package/{index-jgs8z8xb.js → index-0fz95kxe.js} +1 -1
  24. package/{index-2ar6tffh.js → index-2azahjaw.js} +67 -19
  25. package/{index-vcpbrrf2.js → index-2mwc0g0d.js} +1 -1
  26. package/{index-qkcwsg6r.js → index-2xcc2ax5.js} +2 -2
  27. package/{index-sww1x1mv.js → index-301pdbzz.js} +56 -9
  28. package/{index-z6v7k9sb.js → index-31es1yev.js} +24 -2
  29. package/{index-p4dnj2wc.js → index-3wypz6xj.js} +59 -8
  30. package/{index-e9e9cebg.js → index-40brg4px.js} +3 -3
  31. package/{index-tk3jg2bm.js → index-42j4a8zq.js} +2 -2
  32. package/{index-1mfyyxh5.js → index-4vgbysa0.js} +3 -3
  33. package/{index-9hbhm6cs.js → index-55j120r8.js} +1 -1
  34. package/{index-7f0edwsj.js → index-6txx6a9p.js} +45 -4
  35. package/{index-zn6bn1s2.js → index-74tjjsnc.js} +4 -4
  36. package/{index-g2s33373.js → index-905qdgqp.js} +1 -1
  37. package/{index-1cq1hq12.js → index-9th4gszy.js} +17 -15
  38. package/{index-bb4hj03s.js → index-a58emady.js} +10 -10
  39. package/{index-4w3skd33.js → index-a5dhqkdr.js} +3 -3
  40. package/{index-sh9mmp5v.js → index-b70zct19.js} +7 -7
  41. package/{index-z9xepn8t.js → index-bt438yxm.js} +556 -142
  42. package/{index-ngpn9hzy.js → index-espk51ah.js} +2 -2
  43. package/{index-b5vptvnt.js → index-hmt54t45.js} +4 -4
  44. package/{index-qfzfaq96.js → index-j9vyj3dj.js} +3 -3
  45. package/{index-ekpp5tax.js → index-js6geqjn.js} +4 -97
  46. package/{index-fmder14z.js → index-pcwzkdqb.js} +1 -1
  47. package/{index-jaa81e9r.js → index-qfp55x1y.js} +4 -4
  48. package/{index-sng3vt0p.js → index-skk9zc1x.js} +2 -2
  49. package/{index-rr7jk14m.js → index-wcej7g4z.js} +13 -10
  50. package/{index-q8age5az.js → index-xb8809yb.js} +2 -2
  51. package/{index-ynqxpwx6.js → index-xjf5j657.js} +1 -1
  52. package/index.js +22 -22
  53. package/{library.command-a8n9h8j4.js → library.command-gycrwhf1.js} +3 -3
  54. package/{localRegistry.command-c2mxqf4h.js → localRegistry.command-jtd8gaes.js} +12 -12
  55. package/{module.command-b6f1p1xa.js → module.command-v6hgs1bc.js} +5 -5
  56. package/{package.command-tc27ftmy.js → package.command-shzpcfph.js} +3 -3
  57. package/package.json +2 -2
  58. package/{page.command-m5wyqfkd.js → page.command-ptxn5kqk.js} +3 -3
  59. package/{pipeline.command-4qxyafpz.js → pipeline.command-zz31pgax.js} +2 -2
  60. package/{primitive.command-9yaatk0d.js → primitive.command-a1vse91z.js} +6 -6
  61. package/{projectTypecheck-87k6z6ab.js → projectTypecheck-2ztky9cf.js} +1 -1
  62. package/{quality.command-fxn07zwp.js → quality.command-ah8qcakd.js} +2 -2
  63. package/{repair.command-evg9g911.js → repair.command-cvazbz99.js} +5 -5
  64. package/{scalar.command-xsejjeq1.js → scalar.command-0acvyp26.js} +4 -4
  65. package/{subspace.command-4mjjxgmf.js → subspace.command-822qx2bx.js} +8 -8
  66. package/templates/app/tsconfig.json.template +2 -7
  67. package/templates/env/_env.server.type.ts +10 -5
  68. package/templates/facetIndex/index.ts +2 -2
  69. package/templates/workspaceRoot/bunfig.toml.template +0 -4
  70. package/{tunnel.command-7f41pm7y.js → tunnel.command-ycmja19q.js} +7 -7
  71. package/{workflow.command-qpyq0ya5.js → workflow.command-abb1d5xy.js} +10 -10
  72. package/{workspace.command-qvwdqmnd.js → workspace.command-qm7cw29v.js} +33 -32
  73. package/TunnelShare-8qtffcex.js +0 -14
  74. package/cloud.script-fqp3zh02.js +0 -24
  75. package/context.runner-3jrypwe3.js +0 -25
@@ -10,7 +10,7 @@ import {
10
10
  LibExecutor,
11
11
  PkgExecutor,
12
12
  ModuleExecutor
13
- } from "./index-rr7jk14m.js";
13
+ } from "./index-wcej7g4z.js";
14
14
 
15
15
  // pkgs/@akanjs/devkit/commandDecorators/camelToKebabCase.ts
16
16
  var camelToKebabCase = (str) => str.replace(/([A-Z])/g, "-$1").toLowerCase();
@@ -60,7 +60,7 @@ var Pkg = createInternalArgToken("Pkg");
60
60
  var Module = createInternalArgToken("Module");
61
61
  var Workspace = createInternalArgToken("Workspace");
62
62
  // pkgs/@akanjs/devkit/commandDecorators/command.ts
63
- import path2 from "path";
63
+ import path3 from "path";
64
64
  import { Logger } from "akanjs/common";
65
65
  import chalk2 from "chalk";
66
66
  import { program } from "commander";
@@ -299,6 +299,59 @@ var formatCommandHelp = (command, key) => {
299
299
  `);
300
300
  };
301
301
 
302
+ // pkgs/@akanjs/devkit/commandDecorators/workspaceVersionCheck.ts
303
+ import { existsSync, readFileSync, realpathSync } from "fs";
304
+ import path2 from "path";
305
+
306
+ class WorkspaceVersionCheck {
307
+ static #exemptCommands = new Set(["update", "create-workspace"]);
308
+ static #infoFlags = new Set(["--help", "-h", "--version", "-V"]);
309
+ static #updateTags = new Set(["dev", "canary", "beta", "rc", "alpha"]);
310
+ static warning(cliVersion, argv, workspaceRoot) {
311
+ const args = argv.slice(2);
312
+ if (!cliVersion || WorkspaceVersionCheck.#exemptCommands.has(args[0] ?? ""))
313
+ return null;
314
+ if (args.some((arg) => WorkspaceVersionCheck.#infoFlags.has(arg)))
315
+ return null;
316
+ const installed = WorkspaceVersionCheck.installedAkanVersion(workspaceRoot);
317
+ if (!installed || installed === cliVersion)
318
+ return null;
319
+ const pinnedCli = WorkspaceVersionCheck.#versionAt(path2.join(workspaceRoot, "node_modules/@akanjs/cli"));
320
+ const runner = pinnedCli === installed ? ["bunx"] : ["bunx", "-p", `@akanjs/cli@${installed}`];
321
+ const rerun = [...runner, "akan", ...args].map(WorkspaceVersionCheck.#quote).join(" ");
322
+ const [, prerelease = ""] = cliVersion.split("-");
323
+ const tag = prerelease.split(".")[0];
324
+ const update = `akan update${WorkspaceVersionCheck.#updateTags.has(tag) ? ` --tag ${tag}` : ""}`;
325
+ const lines = [
326
+ `This akan is @akanjs/cli ${cliVersion}, but this workspace has akanjs ${installed}: what it generates may not match the installed framework.`,
327
+ `Run the matching CLI: ${rerun}`
328
+ ];
329
+ if (Bun.semver.order(cliVersion, installed) > 0)
330
+ lines.push(`Or move the workspace and this CLI to the newest release of the line together: ${update}`);
331
+ else if (pinnedCli !== installed)
332
+ lines.push(`Pin it so \`bunx akan\` runs it: bun add -d @akanjs/cli@${installed}`);
333
+ return lines.join(`
334
+ `);
335
+ }
336
+ static installedAkanVersion(workspaceRoot) {
337
+ const packageDir = path2.join(workspaceRoot, "node_modules", "akanjs");
338
+ if (!existsSync(packageDir))
339
+ return null;
340
+ if (!realpathSync(packageDir).split(path2.sep).includes("node_modules"))
341
+ return null;
342
+ return WorkspaceVersionCheck.#versionAt(packageDir);
343
+ }
344
+ static #versionAt(packageDir) {
345
+ const packageJsonPath = path2.join(packageDir, "package.json");
346
+ if (!existsSync(packageJsonPath))
347
+ return null;
348
+ return JSON.parse(readFileSync(packageJsonPath, "utf8")).version ?? null;
349
+ }
350
+ static #quote(arg) {
351
+ return /^[\w@%+=:,./-]+$/.test(arg) ? arg : `'${arg.replaceAll("'", `'\\''`)}'`;
352
+ }
353
+ }
354
+
302
355
  // pkgs/@akanjs/devkit/commandDecorators/command.ts
303
356
  var loggedCliErrorObjects = new WeakSet;
304
357
  var loggedCliErrorMessages = new Set;
@@ -607,7 +660,7 @@ var runCommands = async (...commands) => {
607
660
  process.exit(ExitCodeError.codeOf(error) ?? failureExitCode);
608
661
  });
609
662
  const __dirname2 = getDirname2(import.meta.url);
610
- const packageJsonCandidates = [`${path2.dirname(Bun.main)}/package.json`, `${__dirname2}/../package.json`];
663
+ const packageJsonCandidates = [`${path3.dirname(Bun.main)}/package.json`, `${__dirname2}/../package.json`];
611
664
  let cliPackageJson = null;
612
665
  for (const packageJsonPath of packageJsonCandidates) {
613
666
  if (!await FileSys2.fileExists(packageJsonPath))
@@ -627,12 +680,10 @@ var runCommands = async (...commands) => {
627
680
  program.version(process.env.AKAN_VERSION).description("Akan CLI").configureHelp({
628
681
  helpWidth: 100
629
682
  });
630
- const installedAkanPackageJson = await FileSys2.fileExists("./node_modules/akanjs/package.json") ? await FileSys2.readJson("./node_modules/akanjs/package.json") : null;
631
- if (installedAkanPackageJson && installedAkanPackageJson.version !== process.env.AKAN_VERSION) {
683
+ const versionWarning = WorkspaceVersionCheck.warning(cliPackageJson?.version, process.argv, process.cwd());
684
+ if (versionWarning)
632
685
  Logger.rawLog(chalk2.yellow(`
633
- Akan CLI version is mismatch with installed package. ${process.env.AKAN_VERSION} (global) vs ${installedAkanPackageJson.version} (akanjs)
634
- It may cause unexpected behavior. Run \`akan update\` to update latest akanjs.`), undefined, "error");
635
- }
686
+ ${versionWarning}`), undefined, "error");
636
687
  for (const command of commands) {
637
688
  const targetMetas = getTargetMetas(command);
638
689
  for (const targetMeta of targetMetas) {
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  resolveSsrPageEntriesForApp
4
- } from "./index-rr7jk14m.js";
4
+ } from "./index-wcej7g4z.js";
5
5
  import {
6
6
  computeRouteSeedIndex,
7
7
  saveRouteSeedIndex,
@@ -9,7 +9,7 @@ import {
9
9
  ClientEntriesBundler,
10
10
  VENDOR_SPECIFIERS,
11
11
  RouteClientBuilder
12
- } from "./index-ngpn9hzy.js";
12
+ } from "./index-espk51ah.js";
13
13
  import {
14
14
  SOURCE_EXTS
15
15
  } from "./index-5nd1wtkv.js";
@@ -19,7 +19,7 @@ import {
19
19
  createTsconfigPackageResolver,
20
20
  rewriteBarrelImports,
21
21
  PagesBundleBuilder
22
- } from "./index-jgs8z8xb.js";
22
+ } from "./index-0fz95kxe.js";
23
23
  import {
24
24
  CssBlockParser
25
25
  } from "./index-62md4dwy.js";
@@ -2,13 +2,13 @@
2
2
  import {
3
3
  runner,
4
4
  script
5
- } from "./index-p4dnj2wc.js";
5
+ } from "./index-3wypz6xj.js";
6
6
  import {
7
7
  FileSys2
8
8
  } from "./index-52w0fvh8.js";
9
9
  import {
10
10
  PkgExecutor
11
- } from "./index-rr7jk14m.js";
11
+ } from "./index-wcej7g4z.js";
12
12
  import {
13
13
  TypeScriptDependencyScanner2
14
14
  } from "./index-tvehn2sp.js";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  runner,
4
4
  script
5
- } from "./index-p4dnj2wc.js";
5
+ } from "./index-3wypz6xj.js";
6
6
  import {
7
7
  AGENT_BLOCK_START,
8
8
  AGENT_BLOCK_END,
@@ -13,14 +13,14 @@ import {
13
13
  CLAUDE_COMMENT_RULE,
14
14
  AppExecutor,
15
15
  LibExecutor
16
- } from "./index-rr7jk14m.js";
16
+ } from "./index-wcej7g4z.js";
17
17
  import {
18
18
  collectRecipeSources2,
19
19
  scanRecipes2
20
20
  } from "./index-hj6w4ka1.js";
21
21
  import {
22
22
  AkanContextAnalyzer
23
- } from "./index-z6v7k9sb.js";
23
+ } from "./index-31es1yev.js";
24
24
  import {
25
25
  Prompter2
26
26
  } from "./index-zzvvc845.js";
@@ -179,7 +179,7 @@ class SubagentPool2 {
179
179
  }
180
180
  }
181
181
  async#run(id, kind, prompt, signal) {
182
- const { CodeAgent } = await import("./CodeAgent-4pnxwptq.js");
182
+ const { CodeAgent } = await import("./CodeAgent-8d5qs787.js");
183
183
  const budget = this.#options.parent.tools.subagent;
184
184
  const child = SubagentPool2.childOf(this.#options.parent, kind);
185
185
  const agent = await CodeAgent.create({
@@ -6,15 +6,21 @@ import {
6
6
  CloudApi,
7
7
  CloudUpdates,
8
8
  PipelineSecrets
9
- } from "./index-2ar6tffh.js";
9
+ } from "./index-2azahjaw.js";
10
+ import {
11
+ resolveMobileTargets
12
+ } from "./index-m9jj544v.js";
10
13
  import {
11
14
  WorkspaceExecutor,
12
15
  AppExecutor
13
- } from "./index-rr7jk14m.js";
16
+ } from "./index-wcej7g4z.js";
17
+ import {
18
+ NativeApp
19
+ } from "./index-bt438yxm.js";
14
20
  import {
15
21
  runner,
16
22
  assertPromptable
17
- } from "./index-p4dnj2wc.js";
23
+ } from "./index-3wypz6xj.js";
18
24
  import {
19
25
  SubspaceConfig
20
26
  } from "./index-4pf8g7ff.js";
@@ -1098,7 +1104,7 @@ ${run.format(results)}
1098
1104
  const rootPackageJson = await workspace.getPackageJson();
1099
1105
  if (!rootPackageJson.dependencies)
1100
1106
  throw new Error("No dependencies found in package.json");
1101
- for (const name of ["akanjs", "@akanjs/devkit"]) {
1107
+ for (const name of ["akanjs", "@akanjs/devkit", "@akanjs/cli"]) {
1102
1108
  if (rootPackageJson.dependencies[name])
1103
1109
  rootPackageJson.dependencies[name] = latestPublishedVersion;
1104
1110
  if (rootPackageJson.devDependencies?.[name])
@@ -1242,6 +1248,41 @@ ${run.format(results)}
1242
1248
  async pushUpdate(cloudApi, devProjectId, pack, options) {
1243
1249
  return await new CloudUpdates(cloudApi, devProjectId).push(pack, options);
1244
1250
  }
1251
+ async readRelease(app, {
1252
+ platform,
1253
+ arch,
1254
+ target,
1255
+ env,
1256
+ channel
1257
+ }) {
1258
+ const targets = await resolveMobileTargets(app, target ?? undefined);
1259
+ const [mobileTarget] = targets;
1260
+ if (!mobileTarget || targets.length > 1)
1261
+ throw new Error("push-update uploads one native target's release at a time; pass --target <name>.");
1262
+ const { release, url, exeName } = await new NativeApp(app, mobileTarget, env).publishedRelease(platform, {
1263
+ arch,
1264
+ channel
1265
+ });
1266
+ const { signer, unread } = await release.signer({ exeName });
1267
+ if (unread)
1268
+ app.logger.warn(`release.json names no signer: ${unread}.`);
1269
+ return { release, url, signer, target: mobileTarget.name };
1270
+ }
1271
+ async pushRelease(cloudApi, devProjectId, app, {
1272
+ release,
1273
+ url,
1274
+ signer,
1275
+ target,
1276
+ notes
1277
+ }) {
1278
+ return await new CloudUpdates(cloudApi, devProjectId).pushRelease(release, {
1279
+ appName: app.name,
1280
+ target,
1281
+ notes,
1282
+ signer,
1283
+ url
1284
+ });
1285
+ }
1245
1286
  async registerBinary(cloudApi, devProjectId, app, pack, options) {
1246
1287
  return await new CloudUpdates(cloudApi, devProjectId).registerBinary(app, pack, options);
1247
1288
  }
@@ -1,12 +1,12 @@
1
1
  // @bun
2
2
  import {
3
3
  script
4
- } from "./index-p4dnj2wc.js";
4
+ } from "./index-3wypz6xj.js";
5
5
  import {
6
6
  AppExecutor,
7
7
  LibExecutor,
8
8
  ModuleExecutor
9
- } from "./index-rr7jk14m.js";
9
+ } from "./index-wcej7g4z.js";
10
10
  import {
11
11
  workflowStatus,
12
12
  compactDiagnostics,
@@ -41,10 +41,10 @@ import {
41
41
  hasSignalFactoryEntry,
42
42
  insertSignalFactoryEntry,
43
43
  addFieldUiPolicyForType
44
- } from "./index-ynqxpwx6.js";
44
+ } from "./index-xjf5j657.js";
45
45
  import {
46
46
  ModuleScript
47
- } from "./index-b5vptvnt.js";
47
+ } from "./index-hmt54t45.js";
48
48
 
49
49
  // pkgs/@akanjs/cli/primitive/primitive.script.ts
50
50
  import { capitalize, lowerlize } from "akanjs/common";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  runner,
4
4
  script
5
- } from "./index-p4dnj2wc.js";
5
+ } from "./index-3wypz6xj.js";
6
6
 
7
7
  // pkgs/@akanjs/cli/page/page.runner.ts
8
8
  class PageRunner extends runner("page") {
@@ -41,7 +41,7 @@ import {
41
41
  script,
42
42
  markCliErrorPrinted,
43
43
  assertPromptable
44
- } from "./index-p4dnj2wc.js";
44
+ } from "./index-3wypz6xj.js";
45
45
  import {
46
46
  AppInfo,
47
47
  CommandExecutionError,
@@ -50,30 +50,30 @@ import {
50
50
  AppExecutor,
51
51
  LibExecutor,
52
52
  PkgExecutor
53
- } from "./index-rr7jk14m.js";
53
+ } from "./index-wcej7g4z.js";
54
54
  import {
55
- DesktopServerStage,
56
- UpdateUploader
57
- } from "./index-ekpp5tax.js";
55
+ UpdatePackFolder,
56
+ UpdateUploader,
57
+ NativePublicEnv,
58
+ NativeApp
59
+ } from "./index-bt438yxm.js";
60
+ import {
61
+ DesktopServerStage
62
+ } from "./index-js6geqjn.js";
58
63
  import {
59
64
  resolveMobileTargets,
60
65
  resolveAppId
61
66
  } from "./index-m9jj544v.js";
62
- import {
63
- NativePublicEnv,
64
- UpdatePackFolder,
65
- NativeApp
66
- } from "./index-z9xepn8t.js";
67
67
  import {
68
68
  LibraryScript
69
- } from "./index-qkcwsg6r.js";
69
+ } from "./index-2xcc2ax5.js";
70
70
  import {
71
71
  stripAnsi
72
72
  } from "./index-7md2g9vw.js";
73
73
  import {
74
74
  SlicePlanner,
75
75
  formatSlicePlan
76
- } from "./index-fmder14z.js";
76
+ } from "./index-pcwzkdqb.js";
77
77
  import {
78
78
  openBrowser
79
79
  } from "./index-9dp031by.js";
@@ -1900,7 +1900,7 @@ ${uniqueCandidates.map((candidate) => ` - ${candidate}`).join(`
1900
1900
 
1901
1901
  // pkgs/@akanjs/cli/application/application.runner.ts
1902
1902
  import { Logger as Logger3, toError } from "akanjs/common";
1903
- var loadBuildRunner = async () => (await import("./applicationBuildRunner-9cnnsdm5.js")).ApplicationBuildRunner;
1903
+ var loadBuildRunner = async () => (await import("./applicationBuildRunner-t2r84sz6.js")).ApplicationBuildRunner;
1904
1904
  var loadPrompts = async () => await import("@inquirer/prompts");
1905
1905
 
1906
1906
  class ApplicationRunner extends runner("application") {
@@ -2101,7 +2101,7 @@ if (loaded) process.exitCode = await loaded.migrations.command(loaded.server, ar
2101
2101
  await new (await loadBuildRunner())(app).typecheck(options);
2102
2102
  }
2103
2103
  async typecheckLibrary(lib, options = {}) {
2104
- const { ProjectTypecheck } = await import("./projectTypecheck-87k6z6ab.js");
2104
+ const { ProjectTypecheck } = await import("./projectTypecheck-2ztky9cf.js");
2105
2105
  const root = lib.workspace.workspaceRoot;
2106
2106
  await new ProjectTypecheck(lib.cwdPath, root, { ...process.env, AKAN_WORKSPACE_ROOT: root }).run([
2107
2107
  "../../server.ts",
@@ -2309,6 +2309,8 @@ if (loaded) process.exitCode = await loaded.migrations.command(loaded.server, ar
2309
2309
  const { publicKey, keyId, keyPath, created } = await new NativeApp(app, mobileTarget).updateKeygen(nativePlatform);
2310
2310
  app.log(`${appId}: ${created ? "made" : "read"} ${keyPath}${created ? " (keep it private and backed up: without it, installed apps take no more updates)" : ""}`);
2311
2311
  app.log(` native: { updates: { url: "https://\u2026/${app.name}", publicKeys: [${JSON.stringify(publicKey)}] } }`);
2312
+ if (platform === "desktop")
2313
+ app.log(" url: hosted on Akan Cloud, register this public key as an external key on the release screen and use the URL it gives; self-hosted, the public address you upload the release to");
2312
2314
  app.log(` keyId ${keyId}: what publish-update --revoke and updates.revokedKeys name this key by`);
2313
2315
  const { publicKey: one, publicKeys } = mobileTarget.config.updates ?? {};
2314
2316
  const declared = publicKeys ?? (one ? [one] : null);
@@ -3706,7 +3708,7 @@ class ApplicationScript extends script("application", [ApplicationRunner, Librar
3706
3708
  await Promise.all(shares.map(async (share) => await share.close()));
3707
3709
  }, "Abandoning the tunnel release; the shares expire on their own.");
3708
3710
  await Promise.all(apps.map(async (app) => {
3709
- const { TunnelShare } = await import("./TunnelShare-8qtffcex.js");
3711
+ const { TunnelShare } = await import("./TunnelShare-qkm8zp03.js");
3710
3712
  const share = await TunnelShare.open(app, { workspace: app.workspace });
3711
3713
  shares.push(share);
3712
3714
  urls.set(app.name, share.url);
@@ -1,13 +1,13 @@
1
1
  // @bun
2
2
  import {
3
3
  AppExecutor
4
- } from "./index-rr7jk14m.js";
4
+ } from "./index-wcej7g4z.js";
5
5
  import {
6
6
  jsonText,
7
7
  createWorkflowBaselineSummary,
8
8
  buildAkanModuleContextIndex,
9
9
  toolingRolloutGate
10
- } from "./index-ynqxpwx6.js";
10
+ } from "./index-xjf5j657.js";
11
11
  import {
12
12
  buildResourceList,
13
13
  codexMcpConfigPath,
@@ -17,29 +17,29 @@ import {
17
17
  upsertCodexMcpServerBlock,
18
18
  renderDoctorText,
19
19
  AkanContextAnalyzer
20
- } from "./index-z6v7k9sb.js";
20
+ } from "./index-31es1yev.js";
21
21
  import {
22
22
  runner
23
- } from "./index-p4dnj2wc.js";
23
+ } from "./index-3wypz6xj.js";
24
+ import {
25
+ NativeApp
26
+ } from "./index-bt438yxm.js";
24
27
  import {
25
28
  isPlaceholderAppId
26
- } from "./index-ekpp5tax.js";
29
+ } from "./index-js6geqjn.js";
27
30
  import {
28
31
  getMobileTargets,
29
32
  appIdsOf
30
33
  } from "./index-m9jj544v.js";
31
- import {
32
- NativeApp
33
- } from "./index-z9xepn8t.js";
34
34
  import {
35
35
  Prompter2
36
36
  } from "./index-zzvvc845.js";
37
37
  import {
38
38
  RepairRunner
39
- } from "./index-qfzfaq96.js";
39
+ } from "./index-j9vyj3dj.js";
40
40
  import {
41
41
  WorkflowRunner
42
- } from "./index-sh9mmp5v.js";
42
+ } from "./index-b70zct19.js";
43
43
 
44
44
  // pkgs/@akanjs/devkit/akanMcpContract.ts
45
45
  import path from "path";
@@ -5,7 +5,7 @@ import {
5
5
  McpServerConfig,
6
6
  McpSignIn,
7
7
  AkanCodeCompaction2
8
- } from "./index-9hbhm6cs.js";
8
+ } from "./index-55j120r8.js";
9
9
  import {
10
10
  stripAnsi
11
11
  } from "./index-7md2g9vw.js";
@@ -809,7 +809,7 @@ class AkanToolPack2 {
809
809
  return { name: "akan-tools", factory: async (pi) => await this.#register(pi) };
810
810
  }
811
811
  async names() {
812
- const { ContextRunner } = await import("./context.runner-3jrypwe3.js");
812
+ const { ContextRunner } = await import("./context.runner-8gg030b0.js");
813
813
  return [
814
814
  ...new ContextRunner().listMcpTools(this.#options.mode).map((tool) => tool.name),
815
815
  AkanToolPack2.verifyToolName
@@ -817,7 +817,7 @@ class AkanToolPack2 {
817
817
  }
818
818
  static verifyToolName = "akan_verify";
819
819
  async#register(pi) {
820
- const { ContextRunner } = await import("./context.runner-3jrypwe3.js");
820
+ const { ContextRunner } = await import("./context.runner-8gg030b0.js");
821
821
  const runner = new ContextRunner;
822
822
  const guidelineNames = await AkanToolPack2.#guidelineNames();
823
823
  for (const tool of runner.listMcpTools(this.#options.mode, { guidelineNames })) {
@@ -22,26 +22,26 @@ import {
22
22
  renderWorkflowApply,
23
23
  renderWorkflowValidation,
24
24
  renderWorkflowRunArtifact
25
- } from "./index-ynqxpwx6.js";
25
+ } from "./index-xjf5j657.js";
26
26
  import {
27
27
  AkanContextAnalyzer
28
- } from "./index-z6v7k9sb.js";
28
+ } from "./index-31es1yev.js";
29
29
  import {
30
30
  CommandContainer,
31
31
  runner
32
- } from "./index-p4dnj2wc.js";
32
+ } from "./index-3wypz6xj.js";
33
33
  import {
34
34
  ModuleScript
35
- } from "./index-b5vptvnt.js";
35
+ } from "./index-hmt54t45.js";
36
36
  import {
37
37
  PrimitiveScript
38
- } from "./index-zn6bn1s2.js";
38
+ } from "./index-74tjjsnc.js";
39
39
  import {
40
40
  spawnShell
41
- } from "./index-qfzfaq96.js";
41
+ } from "./index-j9vyj3dj.js";
42
42
  import {
43
43
  ScalarScript
44
- } from "./index-sng3vt0p.js";
44
+ } from "./index-skk9zc1x.js";
45
45
 
46
46
  // pkgs/@akanjs/cli/workflow/workflow.runner.ts
47
47
  import { mkdir, readFile, writeFile } from "fs/promises";