@akanjs/cli 3.3.0-rc.6 → 3.3.0-rc.8

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 (90) hide show
  1. package/.build-stamp +2 -2
  2. package/{CodeAgent-277k8f4q.js → CodeAgent-cqbf9gsv.js} +2 -2
  3. package/{CodeAgentRpcHost-6dzfkvsc.js → CodeAgentRpcHost-pwps2d67.js} +1 -1
  4. package/{CodeTui-rk7zw5mx.js → CodeTui-ehdr4hgw.js} +43 -3
  5. package/TunnelShare-0p4dy89e.js +16 -0
  6. package/{agent.command-m6scv9dh.js → agent.command-x55ncdjm.js} +17 -17
  7. package/akanCode.js +4 -4
  8. package/{appExecutor-qt1nm242.js → appExecutor-1ctzymwa.js} +3 -3
  9. package/{application.command-rdjx4678.js → application.command-xpntxnh8.js} +14 -14
  10. package/{applicationBuildRunner-6jkbfzmm.js → applicationBuildRunner-19c76791.js} +9 -9
  11. package/buildBatch.proc.js +10 -11
  12. package/{cloud.command-4kw1vbs0.js → cloud.command-p3ybjes7.js} +18 -18
  13. package/cloud.script-0dsyd10v.js +30 -0
  14. package/{code.command-87btt2a0.js → code.command-m6skj1kj.js} +31 -16
  15. package/{context.command-bbq2tdj4.js → context.command-3c3nv0d6.js} +18 -18
  16. package/context.runner-yyp7a112.js +32 -0
  17. package/{csrArtifactBuilder-wrqsfn1s.js → csrArtifactBuilder-mdh9ykn2.js} +2 -2
  18. package/{guideline.command-v2daz21k.js → guideline.command-725fq5p0.js} +6 -6
  19. package/guidelines/agentRule/agentRule.instruction.md +46 -7
  20. package/guidelines/conventions/rules/config.md +2 -1
  21. package/guidelines/errorCodes/errorCodes.instruction.md +4 -0
  22. package/guidelines/mcpRule/mcpRule.instruction.md +11 -4
  23. package/guidelines/runtimeRule/runtimeRule.instruction.md +68 -4
  24. package/incrementalBuilder.proc.js +8 -8
  25. package/{index-5ptvewmq.js → index-22bwg8hy.js} +1 -1
  26. package/{index-9f3reh2y.js → index-2v38x3ad.js} +12 -1
  27. package/{index-fqhr7j56.js → index-3a3vy2xy.js} +8 -8
  28. package/{index-eap5y4w5.js → index-3mj5trqc.js} +2 -2
  29. package/{index-zfmc4380.js → index-3r1crbct.js} +1 -1
  30. package/{index-sxnszzh7.js → index-3zkhg65e.js} +11 -11
  31. package/{index-m4s4tzjr.js → index-4r8dgm4x.js} +3 -3
  32. package/{index-94h6dxc3.js → index-4yvtqcme.js} +7 -7
  33. package/{index-vq0y1vr4.js → index-5ahe641t.js} +8 -8
  34. package/{index-w18qdjyf.js → index-8bta5pnr.js} +2 -2
  35. package/{index-cfzqdsam.js → index-9a9t77hz.js} +2 -2
  36. package/{index-bjg9thz8.js → index-9gjcbp2g.js} +1 -1
  37. package/{index-k29kg5c1.js → index-a4gcdffy.js} +485 -50
  38. package/{index-zas8gm0a.js → index-cbm9gzgx.js} +5 -5
  39. package/{index-bwhja4dj.js → index-ckcc9ab3.js} +8 -8
  40. package/{index-2t7jnfg5.js → index-crd99zqs.js} +1 -1
  41. package/{index-ewp82tjf.js → index-f4jydw2x.js} +1 -1
  42. package/{index-0vv0a5h8.js → index-fagjtk6m.js} +2 -2
  43. package/{index-8a4mnn65.js → index-fjqapyex.js} +31 -5
  44. package/{index-ghs8gtvp.js → index-h8w1n11r.js} +4 -4
  45. package/{index-999e5kp4.js → index-hxg6ctk2.js} +5 -5
  46. package/{index-0vtpxfx6.js → index-j2wq064m.js} +5 -5
  47. package/{index-2ktpwjgf.js → index-kbnvyhy4.js} +3 -3
  48. package/{index-jzwdwse0.js → index-m303nhv6.js} +6 -6
  49. package/{index-hfqc5n8e.js → index-nmdmkjt2.js} +4 -4
  50. package/{index-vznyyaf8.js → index-nnmw56fz.js} +5 -5
  51. package/{index-nd7tzzd9.js → index-pr9nypg7.js} +2 -2
  52. package/{index-4gxaerb7.js → index-pyjkbg8e.js} +2 -2
  53. package/{index-g7hm77j6.js → index-q63nbpv7.js} +3 -3
  54. package/{index-9jm7t0h5.js → index-qecrqpt6.js} +4 -21
  55. package/{index-6yefp97x.js → index-rdcgz02t.js} +4 -4
  56. package/{index-zx3bv21b.js → index-rt7q20sj.js} +1 -1
  57. package/{index-bsew0a12.js → index-se7n78fh.js} +1 -1
  58. package/{index-s4nvxpzm.js → index-sxbsrndq.js} +1 -1
  59. package/{index-nd69pk6t.js → index-t23dgyaf.js} +7 -7
  60. package/{index-609zbjve.js → index-v16gj2as.js} +83 -63
  61. package/{index-c1t41tk8.js → index-vnk1qwgr.js} +4 -4
  62. package/{index-8zxkjybr.js → index-wkwe91sn.js} +27 -17
  63. package/{index-3h0zqg41.js → index-wxqp1amd.js} +7 -7
  64. package/{index-c67vjafa.js → index-yey1envc.js} +1 -1
  65. package/index.js +27 -27
  66. package/{libExecutor-p21kkayq.js → libExecutor-n8hpm8s7.js} +2 -2
  67. package/{library.command-m4gw18qq.js → library.command-8abb26pg.js} +7 -7
  68. package/{localRegistry.command-edtbn4cy.js → localRegistry.command-sa211m1z.js} +17 -17
  69. package/{module.command-9vfdxapr.js → module.command-z3cwjf0p.js} +9 -9
  70. package/{package.command-rt4y8xaf.js → package.command-akynhtee.js} +8 -8
  71. package/package.json +2 -2
  72. package/{page.command-4zc20rnv.js → page.command-3fpdavk9.js} +7 -7
  73. package/{pipeline.command-4ekd9xgb.js → pipeline.command-ca95n8rd.js} +6 -6
  74. package/{pkgExecutor-mh903rz9.js → pkgExecutor-a73q41vx.js} +2 -2
  75. package/{primitive.command-5g3xe4mf.js → primitive.command-xwe9ggnf.js} +10 -10
  76. package/{projectTypecheck-bz6smek9.js → projectTypecheck-7g542ymk.js} +1 -1
  77. package/{quality.command-zf8dyc9w.js → quality.command-7wz7y8z1.js} +8 -8
  78. package/{repair.command-sx0eyq4w.js → repair.command-dej1qtfq.js} +9 -9
  79. package/{scalar.command-4bvzmbbh.js → scalar.command-z9qfxnvm.js} +8 -8
  80. package/skills/akan-agent/SKILL.md +8 -1
  81. package/skills/akan-code/SKILL.md +38 -3
  82. package/{subspace.command-tg85k9ry.js → subspace.command-9wekm4gn.js} +10 -10
  83. package/templates/localDev/docker-compose.yaml.template +2 -2
  84. package/{tunnel.command-t629kcm0.js → tunnel.command-cxc4h3j8.js} +9 -9
  85. package/{verify.command-837mthft.js → verify.command-j0w9dr5c.js} +14 -14
  86. package/{workflow.command-42p9g0w8.js → workflow.command-yt4sz04b.js} +14 -14
  87. package/{workspace.command-12egv8xq.js → workspace.command-8mp4mcp2.js} +31 -31
  88. package/TunnelShare-8pejh5jk.js +0 -16
  89. package/cloud.script-af2js02g.js +0 -30
  90. package/context.runner-ma47t32x.js +0 -32
@@ -6,23 +6,23 @@ import {
6
6
  CloudApi,
7
7
  CloudUpdates,
8
8
  PipelineSecrets
9
- } from "./index-4gxaerb7.js";
9
+ } from "./index-pyjkbg8e.js";
10
10
  import {
11
11
  resolveMobileTargets
12
12
  } from "./index-m9jj544v.js";
13
13
  import {
14
14
  WorkspaceExecutor
15
- } from "./index-609zbjve.js";
15
+ } from "./index-v16gj2as.js";
16
16
  import {
17
17
  AppExecutor2
18
- } from "./index-cfzqdsam.js";
18
+ } from "./index-9a9t77hz.js";
19
19
  import {
20
20
  NativeApp
21
- } from "./index-8a4mnn65.js";
21
+ } from "./index-fjqapyex.js";
22
22
  import {
23
23
  runner,
24
24
  assertPromptable
25
- } from "./index-vznyyaf8.js";
25
+ } from "./index-nnmw56fz.js";
26
26
  import {
27
27
  getNpmRegistryUrl,
28
28
  getPublishedVersions,
@@ -4,7 +4,7 @@ import {
4
4
  script,
5
5
  WorkspaceVersionCheck,
6
6
  markCliErrorPrinted
7
- } from "./index-vznyyaf8.js";
7
+ } from "./index-nnmw56fz.js";
8
8
  import {
9
9
  CliError
10
10
  } from "./index-j4yvgfhr.js";
@@ -16,16 +16,16 @@ import {
16
16
  upsertAgentBlock,
17
17
  renderRecipeEntries,
18
18
  CLAUDE_COMMENT_RULE
19
- } from "./index-609zbjve.js";
19
+ } from "./index-v16gj2as.js";
20
20
  import {
21
21
  AppExecutor2
22
- } from "./index-cfzqdsam.js";
22
+ } from "./index-9a9t77hz.js";
23
23
  import {
24
24
  LibExecutor2
25
- } from "./index-c67vjafa.js";
25
+ } from "./index-yey1envc.js";
26
26
  import {
27
27
  AkanContextAnalyzer
28
- } from "./index-ghs8gtvp.js";
28
+ } from "./index-h8w1n11r.js";
29
29
  import {
30
30
  collectRecipeSources2,
31
31
  scanRecipes2
@@ -40,15 +40,15 @@ import {
40
40
  import {
41
41
  ApplicationRunner,
42
42
  VerifyScope
43
- } from "./index-8zxkjybr.js";
43
+ } from "./index-wkwe91sn.js";
44
44
  import {
45
45
  WorkspaceRunner
46
- } from "./index-0vtpxfx6.js";
46
+ } from "./index-j2wq064m.js";
47
47
  import {
48
48
  VerifyComments,
49
49
  VerifyPipeline,
50
50
  VerifyReport
51
- } from "./index-3h0zqg41.js";
51
+ } from "./index-wxqp1amd.js";
52
52
 
53
53
  // pkgs/@akanjs/cli/agent/agent.script.ts
54
54
  import { Logger as Logger3 } from "akanjs/common";
@@ -4,7 +4,7 @@ import {
4
4
  Executor,
5
5
  PkgInfo,
6
6
  WorkspaceExecutor
7
- } from "./index-609zbjve.js";
7
+ } from "./index-v16gj2as.js";
8
8
 
9
9
  // pkgs/@akanjs/devkit/executors/pkgExecutor.ts
10
10
  import path from "path";
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  DesktopBin
4
- } from "./index-8a4mnn65.js";
4
+ } from "./index-fjqapyex.js";
5
5
  // pkgs/@akanjs/devkit/mobile/desktopServerStage.ts
6
6
  import { cp, mkdir, readdir, rm, writeFile } from "fs/promises";
7
7
  import path from "path";
@@ -2,12 +2,12 @@
2
2
  import {
3
3
  runner,
4
4
  script
5
- } from "./index-vznyyaf8.js";
5
+ } from "./index-nnmw56fz.js";
6
6
  import {
7
7
  generatedFilesForSync,
8
8
  createPassedPrimitiveReport,
9
9
  scalarChangedFiles
10
- } from "./index-g7hm77j6.js";
10
+ } from "./index-q63nbpv7.js";
11
11
  import {
12
12
  pluralizeName
13
13
  } from "./index-nz8prx9g.js";
@@ -5,14 +5,14 @@ import {
5
5
  WorkspaceExecutor,
6
6
  ServerEnvProfile,
7
7
  AkanAppConfig
8
- } from "./index-609zbjve.js";
8
+ } from "./index-v16gj2as.js";
9
9
  import {
10
10
  resolveAppId,
11
11
  targetHtmlFilename
12
12
  } from "./index-m9jj544v.js";
13
13
  import {
14
14
  ExitCodeError
15
- } from "./index-vznyyaf8.js";
15
+ } from "./index-nnmw56fz.js";
16
16
 
17
17
  // pkgs/@akanjs/devkit/mobile/desktopBin.ts
18
18
  import { chmod, mkdir, rename, rm, writeFile } from "fs/promises";
@@ -885,7 +885,7 @@ class NativeConfig {
885
885
  {
886
886
  identifier: "app",
887
887
  description: `The plugins ${target.appName} ships, each with its default permissions`,
888
- permissions: pluginIds.map((id) => id === "opener" && !openUrls.includes("*") ? { identifier: "opener:default", allow: openUrls.map((url) => ({ url })) } : `${id}:default`)
888
+ permissions: NativeConfig.#permissions(pluginIds, target, openUrls, warnings)
889
889
  }
890
890
  ],
891
891
  ...csp ? { security: { csp } } : {},
@@ -950,6 +950,32 @@ class NativeConfig {
950
950
  }
951
951
  return policy;
952
952
  }
953
+ static #permissions(pluginIds, target, openUrls, warnings) {
954
+ return pluginIds.flatMap((id) => {
955
+ if (id === "opener" && !openUrls.includes("*"))
956
+ return [{ identifier: "opener:default", allow: openUrls.map((url) => ({ url })) }];
957
+ if (id === "external-view")
958
+ return NativeConfig.#externalView(target, warnings);
959
+ return [`${id}:default`];
960
+ });
961
+ }
962
+ static #externalView({ name, desktop }, warnings) {
963
+ const { allowOrigins = [], evaluate, sendKey } = desktop?.externalView ?? {};
964
+ const origins = allowOrigins.map((origin) => NativeConfig.#exactOrigin(name, origin));
965
+ if (!origins.length)
966
+ warnings.push(`Native target '${name}': external-view opens no origin until native.desktop.externalView.allowOrigins lists one.`);
967
+ return [
968
+ { identifier: "external-view:default", allow: origins.map((origin) => ({ origin })) },
969
+ ...evaluate ? ["external-view:allow-evaluate"] : [],
970
+ ...sendKey ? ["external-view:allow-sendKey"] : []
971
+ ];
972
+ }
973
+ static #exactOrigin(name, origin) {
974
+ const url = URL.canParse(origin) ? new URL(origin) : null;
975
+ if (!url || !/^https?:$/.test(url.protocol) || url.hostname.includes("*") || url.href !== `${url.origin}/`)
976
+ throw new Error(`Native target '${name}': native.desktop.externalView.allowOrigins holds "${origin}", which is not an exact http(s) origin such as "https://board.example".`);
977
+ return url.origin;
978
+ }
953
979
  static #plainOrigins(publicEnv, env, carried) {
954
980
  const origins = new Set;
955
981
  const pinned = publicEnv.AKAN_PUBLIC_SERVER_URL;
@@ -1127,14 +1153,14 @@ class NativePublicEnv {
1127
1153
  return [...new Set([...Object.keys(a), ...Object.keys(b)])].filter((key) => a[key] !== b[key]).sort((x, y) => x < y ? -1 : x > y ? 1 : 0);
1128
1154
  }
1129
1155
  static async built(app) {
1130
- const { CsrArtifactBuilder } = await import("./csrArtifactBuilder-wrqsfn1s.js");
1156
+ const { CsrArtifactBuilder } = await import("./csrArtifactBuilder-mdh9ykn2.js");
1131
1157
  const file = Bun.file(CsrArtifactBuilder.publicEnvPath(app));
1132
1158
  if (!await file.exists())
1133
1159
  return null;
1134
1160
  return NativePublicEnv.of(await file.json());
1135
1161
  }
1136
1162
  static async inlined(app) {
1137
- const { CsrArtifactBuilder } = await import("./csrArtifactBuilder-wrqsfn1s.js");
1163
+ const { CsrArtifactBuilder } = await import("./csrArtifactBuilder-mdh9ykn2.js");
1138
1164
  const file = Bun.file(CsrArtifactBuilder.publicEnvPath(app));
1139
1165
  const env = await file.exists() ? await file.json() : process.env;
1140
1166
  return Object.fromEntries(Object.entries(env).flatMap(([key, value]) => key.startsWith("AKAN_PUBLIC_") && typeof value === "string" ? [[key, value]] : []));
@@ -8,21 +8,21 @@ import {
8
8
  isScannedRootEntry,
9
9
  extractBlockVersion,
10
10
  readDevkitVersion
11
- } from "./index-609zbjve.js";
11
+ } from "./index-v16gj2as.js";
12
12
  import {
13
13
  FileSys2
14
14
  } from "./index-zyjztrvc.js";
15
15
  import {
16
16
  AppExecutor2
17
- } from "./index-cfzqdsam.js";
17
+ } from "./index-9a9t77hz.js";
18
18
  import {
19
19
  LibExecutor2
20
- } from "./index-c67vjafa.js";
20
+ } from "./index-yey1envc.js";
21
21
  import {
22
22
  workflowPathsForPlan,
23
23
  workflowRunArtifactPath,
24
24
  workflowSyncDir
25
- } from "./index-g7hm77j6.js";
25
+ } from "./index-q63nbpv7.js";
26
26
  import {
27
27
  collectRecipeSources2,
28
28
  scanRecipes2,
@@ -2,16 +2,16 @@
2
2
  import {
3
3
  runner,
4
4
  script
5
- } from "./index-vznyyaf8.js";
5
+ } from "./index-nnmw56fz.js";
6
6
  import {
7
7
  FileSys2
8
8
  } from "./index-zyjztrvc.js";
9
9
  import {
10
10
  PkgExecutor2
11
- } from "./index-2t7jnfg5.js";
11
+ } from "./index-crd99zqs.js";
12
12
  import {
13
13
  MaintainabilityBaseline
14
- } from "./index-bsew0a12.js";
14
+ } from "./index-se7n78fh.js";
15
15
  import {
16
16
  assertPackageName
17
17
  } from "./index-va90m8nd.js";
@@ -242,7 +242,7 @@ class PackageRunner extends runner("package") {
242
242
  const relative = scanned.split(path2.sep).join("/");
243
243
  if (relative.includes("node_modules/") || relative.endsWith(".d.ts"))
244
244
  continue;
245
- if (/\.(test|spec)\.[a-z]+$/.test(relative))
245
+ if (/\.(test|spec)\.[a-z]+$/.test(relative) || relative.includes("__fixtures__/"))
246
246
  continue;
247
247
  const source = await Bun.file(`${distPath}/${relative}`).text();
248
248
  for (const line of source.split(`
@@ -283,7 +283,7 @@ class PackageRunner extends runner("package") {
283
283
  throw new Error(`[package] ${pkg.name} dist imports ${failures.length} subpath(s) no consumer can resolve:
284
284
  ${failures.sort((a, b) => a < b ? -1 : a > b ? 1 : 0).join(`
285
285
  `)}
286
- Add the missing "exports" entries: a bare file facet needs "./*": "./*.ts", a directory facet needs its own "./name": "./name/index.ts", and "./*.ts": "./*.ts" keeps an already-suffixed specifier from gaining a second extension.`);
286
+ Import a named entry instead, or add one: a file needs "./dir/name": "./dir/name.ts" and a directory facet "./name": "./name/index.ts". A wildcard would publish every file behind it.`);
287
287
  }
288
288
  async#verifyDistImportsPublished(pkg) {
289
289
  const imports = await this.#collectDistAkanImports(pkg.dist.cwdPath, PackageRunner.#unpublishedPackages);
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  camelToKebabCase,
4
4
  runner
5
- } from "./index-vznyyaf8.js";
5
+ } from "./index-nnmw56fz.js";
6
6
  import {
7
7
  rootAllowedFiles,
8
8
  rootAllowedDirs,
@@ -16,16 +16,16 @@ import {
16
16
  renderScopeAgentBlock,
17
17
  SysExecutor,
18
18
  WorkspaceExecutor
19
- } from "./index-609zbjve.js";
19
+ } from "./index-v16gj2as.js";
20
20
  import {
21
21
  FileSys2
22
22
  } from "./index-zyjztrvc.js";
23
23
  import {
24
24
  LibExecutor2
25
- } from "./index-c67vjafa.js";
25
+ } from "./index-yey1envc.js";
26
26
  import {
27
27
  PkgExecutor2
28
- } from "./index-2t7jnfg5.js";
28
+ } from "./index-crd99zqs.js";
29
29
  import {
30
30
  collectRecipeSources2,
31
31
  scanRecipes2
@@ -40,7 +40,7 @@ import {
40
40
  } from "./index-zyb0ebm4.js";
41
41
  import {
42
42
  MaintainabilityBaseline
43
- } from "./index-bsew0a12.js";
43
+ } from "./index-se7n78fh.js";
44
44
  import {
45
45
  createFactReader,
46
46
  createAst
@@ -1,17 +1,17 @@
1
1
  // @bun
2
2
  import {
3
3
  runner
4
- } from "./index-vznyyaf8.js";
4
+ } from "./index-nnmw56fz.js";
5
5
  import {
6
6
  writeWorkflowRunArtifact,
7
7
  generatedFilePathsForTarget,
8
8
  writeGeneratedSyncState,
9
9
  createRepairReport,
10
10
  renderRepairReport
11
- } from "./index-g7hm77j6.js";
11
+ } from "./index-q63nbpv7.js";
12
12
  import {
13
13
  AkanContextAnalyzer
14
- } from "./index-ghs8gtvp.js";
14
+ } from "./index-h8w1n11r.js";
15
15
  import {
16
16
  isWorkflowSysName,
17
17
  isWorkflowModuleName
@@ -1,13 +1,13 @@
1
1
  // @bun
2
2
  import {
3
3
  script
4
- } from "./index-vznyyaf8.js";
4
+ } from "./index-nnmw56fz.js";
5
5
  import {
6
6
  AppExecutor2
7
- } from "./index-cfzqdsam.js";
7
+ } from "./index-9a9t77hz.js";
8
8
  import {
9
9
  LibExecutor2
10
- } from "./index-c67vjafa.js";
10
+ } from "./index-yey1envc.js";
11
11
  import {
12
12
  InteractionScaffold,
13
13
  workflowStatus,
@@ -46,16 +46,16 @@ import {
46
46
  nextActionsForTarget,
47
47
  createPrimitiveWriteReport,
48
48
  insertTemplateField
49
- } from "./index-g7hm77j6.js";
49
+ } from "./index-q63nbpv7.js";
50
50
  import {
51
51
  ModuleScript
52
- } from "./index-6yefp97x.js";
52
+ } from "./index-rdcgz02t.js";
53
53
  import {
54
54
  plainNameProblem
55
55
  } from "./index-va90m8nd.js";
56
56
  import {
57
57
  ModuleExecutor
58
- } from "./index-zfmc4380.js";
58
+ } from "./index-3r1crbct.js";
59
59
 
60
60
  // pkgs/@akanjs/cli/primitive/primitive.script.ts
61
61
  import { capitalize, lowerlize } from "akanjs/common";
@@ -3,7 +3,7 @@ import {
3
3
  ROOT_LAYOUT_SYSTEM,
4
4
  isImplicitRootLayoutKey,
5
5
  resolveSsrPageEntriesForApp
6
- } from "./index-cfzqdsam.js";
6
+ } from "./index-9a9t77hz.js";
7
7
  import {
8
8
  computeRouteSeedIndex,
9
9
  saveRouteSeedIndex,
@@ -11,13 +11,13 @@ import {
11
11
  ClientEntriesBundler,
12
12
  VENDOR_SPECIFIERS,
13
13
  RouteClientBuilder
14
- } from "./index-94h6dxc3.js";
14
+ } from "./index-4yvtqcme.js";
15
15
  import {
16
16
  SOURCE_EXTS,
17
17
  buildCacheStamp,
18
18
  isBuildCacheStamp,
19
19
  FontOptimizer
20
- } from "./index-w18qdjyf.js";
20
+ } from "./index-8bta5pnr.js";
21
21
  import {
22
22
  BarrelAnalyzer,
23
23
  createTsconfigPackageResolver,
@@ -25,7 +25,7 @@ import {
25
25
  CsrEntryFiles,
26
26
  toClientReferencePath,
27
27
  PagesBundleBuilder
28
- } from "./index-eap5y4w5.js";
28
+ } from "./index-3mj5trqc.js";
29
29
  import {
30
30
  FileSys2
31
31
  } from "./index-zyjztrvc.js";
@@ -5,24 +5,24 @@ import {
5
5
  import {
6
6
  Executor,
7
7
  WorkspaceExecutor
8
- } from "./index-609zbjve.js";
8
+ } from "./index-v16gj2as.js";
9
9
  import {
10
10
  getDirname2,
11
11
  FileSys2
12
12
  } from "./index-zyjztrvc.js";
13
13
  import {
14
14
  AppExecutor2
15
- } from "./index-cfzqdsam.js";
15
+ } from "./index-9a9t77hz.js";
16
16
  import {
17
17
  LibExecutor2
18
- } from "./index-c67vjafa.js";
18
+ } from "./index-yey1envc.js";
19
19
  import {
20
20
  PkgExecutor2
21
- } from "./index-2t7jnfg5.js";
21
+ } from "./index-crd99zqs.js";
22
22
  import {
23
23
  ModuleExecutor,
24
24
  ErrorReport
25
- } from "./index-zfmc4380.js";
25
+ } from "./index-3r1crbct.js";
26
26
 
27
27
  // pkgs/@akanjs/devkit/commandDecorators/camelToKebabCase.ts
28
28
  var camelToKebabCase = (str) => str.replace(/([A-Z])/g, "-$1").toLowerCase();
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  resolveSsrPageEntriesForApp
4
- } from "./index-cfzqdsam.js";
4
+ } from "./index-9a9t77hz.js";
5
5
  import {
6
6
  createBarrelImportsPlugin,
7
7
  workspaceBarrels,
@@ -10,7 +10,7 @@ import {
10
10
  CsrEntryFiles,
11
11
  PagesEntrySourceGenerator,
12
12
  PagesBundleBuilder
13
- } from "./index-eap5y4w5.js";
13
+ } from "./index-3mj5trqc.js";
14
14
 
15
15
  // pkgs/@akanjs/devkit/frontendBuild/csrArtifactBuilder.ts
16
16
  import { mkdir as mkdir2, rm as rm2, unlink as unlink2 } from "fs/promises";
@@ -9,10 +9,10 @@ import {
9
9
  UpdatePackFolder,
10
10
  NativePublicEnv,
11
11
  NativeApp
12
- } from "./index-8a4mnn65.js";
12
+ } from "./index-fjqapyex.js";
13
13
  import {
14
14
  ExitCodeError
15
- } from "./index-vznyyaf8.js";
15
+ } from "./index-nnmw56fz.js";
16
16
  import {
17
17
  ConfigLock
18
18
  } from "./index-bqbf654f.js";
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  AppExecutor2
4
- } from "./index-cfzqdsam.js";
4
+ } from "./index-9a9t77hz.js";
5
5
  import {
6
6
  LibExecutor2
7
- } from "./index-c67vjafa.js";
7
+ } from "./index-yey1envc.js";
8
8
  import {
9
9
  createAst,
10
10
  AkanIndex
@@ -15,7 +15,7 @@ import {
15
15
  } from "./index-va90m8nd.js";
16
16
  import {
17
17
  camelToKebabCase
18
- } from "./index-vznyyaf8.js";
18
+ } from "./index-nnmw56fz.js";
19
19
 
20
20
  // pkgs/@akanjs/devkit/workflow/artifacts.ts
21
21
  import { capitalize as capitalize2 } from "akanjs/common";
@@ -2,23 +2,13 @@
2
2
  import {
3
3
  GlobalConfig,
4
4
  CloudApi
5
- } from "./index-4gxaerb7.js";
5
+ } from "./index-pyjkbg8e.js";
6
6
 
7
7
  // pkgs/@akanjs/cli/tunnel/TunnelShare.ts
8
8
  import { TunnelAgent } from "akanjs/server/tunnel";
9
9
 
10
10
  // pkgs/@akanjs/cli/tunnel/TunnelGate.ts
11
- var devRoutePrefixes = [
12
- "/_akan/devtools",
13
- "/_akan/signal",
14
- "/_akan/constant",
15
- "/_akan/deps",
16
- "/_akan/dictionary",
17
- "/_akan/hmr",
18
- "/_akan/app",
19
- "/_akan/ops",
20
- "/_akan/studio"
21
- ];
11
+ import { DevSurfaces } from "akanjs/server/routing/devSurfaces";
22
12
  var handshakeHeaders = new Set([
23
13
  "upgrade",
24
14
  "connection",
@@ -32,14 +22,7 @@ var relayableCloseCode = (code) => code >= 3000 && code <= 4999 || code >= 1000
32
22
 
33
23
  class TunnelGate {
34
24
  static isDevRoute(pathname) {
35
- let decoded;
36
- try {
37
- decoded = decodeURIComponent(pathname);
38
- } catch {
39
- return true;
40
- }
41
- const route = decoded.replace(/\/{2,}/g, "/").toLowerCase();
42
- return route.endsWith(".map") || devRoutePrefixes.some((prefix) => route === prefix || route.startsWith(`${prefix}/`));
25
+ return DevSurfaces.refusedThroughTunnel(pathname);
43
26
  }
44
27
  #target;
45
28
  #server;
@@ -78,7 +61,7 @@ class TunnelGate {
78
61
  const url = new URL(req.url);
79
62
  if (TunnelGate.isDevRoute(url.pathname))
80
63
  return new Response("Not Found", { status: 404 });
81
- const target = `${this.#target}${url.pathname}${url.search}`;
64
+ const target = `${this.#target}${url.pathname}${DevSurfaces.searchThroughTunnel(url.search)}`;
82
65
  if (req.headers.get("upgrade")?.toLowerCase() === "websocket")
83
66
  return await this.#upgrade(req, server, target);
84
67
  const headers = new Headers(req.headers);
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  runner,
4
4
  script
5
- } from "./index-vznyyaf8.js";
5
+ } from "./index-nnmw56fz.js";
6
6
  import {
7
7
  bilingualLabelForField,
8
8
  bilingualDescriptionForField,
@@ -10,10 +10,10 @@ import {
10
10
  sourceFile,
11
11
  generatedFilesForSync,
12
12
  createPassedPrimitiveReport
13
- } from "./index-g7hm77j6.js";
13
+ } from "./index-q63nbpv7.js";
14
14
  import {
15
15
  PageScript
16
- } from "./index-bjg9thz8.js";
16
+ } from "./index-9gjcbp2g.js";
17
17
  import {
18
18
  pluralizeName
19
19
  } from "./index-nz8prx9g.js";
@@ -22,7 +22,7 @@ import {
22
22
  } from "./index-va90m8nd.js";
23
23
  import {
24
24
  ModuleExecutor
25
- } from "./index-zfmc4380.js";
25
+ } from "./index-3r1crbct.js";
26
26
 
27
27
  // pkgs/@akanjs/cli/module/module.script.ts
28
28
  import { capitalize as capitalize2 } from "akanjs/common";
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  AppInfo
4
- } from "./index-609zbjve.js";
4
+ } from "./index-v16gj2as.js";
5
5
 
6
6
  // pkgs/@akanjs/devkit/workspace/slicePlanner.ts
7
7
  class SlicePlanner {
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  JsonFormatter
4
- } from "./index-609zbjve.js";
4
+ } from "./index-v16gj2as.js";
5
5
 
6
6
  // pkgs/@akanjs/devkit/quality/maintainabilityBaseline.ts
7
7
  class MaintainabilityBaseline {
@@ -69,7 +69,7 @@ class CodeAgentRpcHost2 {
69
69
  case "answer":
70
70
  return { handled: await this.#agent.answer(command.questionId, command.answer) };
71
71
  case "approve":
72
- return { handled: await this.#agent.approve(command.approvalId, command.approved) };
72
+ return { handled: await this.#agent.approve(command.approvalId, command.approved, command.remember) };
73
73
  case "abort":
74
74
  await this.#agent.abort();
75
75
  return { aborted: true };
@@ -4,27 +4,27 @@ import {
4
4
  CloudApi,
5
5
  CloudUpdates,
6
6
  PipelineSecrets
7
- } from "./index-4gxaerb7.js";
7
+ } from "./index-pyjkbg8e.js";
8
8
  import {
9
9
  PkgExecutor2
10
- } from "./index-2t7jnfg5.js";
10
+ } from "./index-crd99zqs.js";
11
11
  import {
12
12
  UpdatePackFolder,
13
13
  NativePublicEnv,
14
14
  NativeApp
15
- } from "./index-8a4mnn65.js";
15
+ } from "./index-fjqapyex.js";
16
16
  import {
17
17
  script
18
- } from "./index-vznyyaf8.js";
18
+ } from "./index-nnmw56fz.js";
19
19
  import {
20
20
  ApplicationScript
21
- } from "./index-sxnszzh7.js";
21
+ } from "./index-3zkhg65e.js";
22
22
  import {
23
23
  PackageScript
24
- } from "./index-999e5kp4.js";
24
+ } from "./index-hxg6ctk2.js";
25
25
  import {
26
26
  CloudRunner
27
- } from "./index-zas8gm0a.js";
27
+ } from "./index-cbm9gzgx.js";
28
28
 
29
29
  // pkgs/@akanjs/cli/cloud/cloud.script.ts
30
30
  import { Logger } from "akanjs/common";