@akanjs/devkit 3.2.0-rc.14 → 3.2.0-rc.16

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 (249) hide show
  1. package/CHANGELOG.md +19 -1
  2. package/README.ko.md +3 -2
  3. package/README.md +4 -2
  4. package/akanApp/BackendImportGraph.test.ts +1 -1
  5. package/akanApp/akanApp.host.test.ts +1 -1
  6. package/akanApp/akanApp.host.ts +1 -1
  7. package/akanConfig/akanConfig.test.ts +1 -1
  8. package/akanConfig/akanConfig.ts +1 -1
  9. package/akanConfig/akanWorkspaceConfig.ts +1 -1
  10. package/akanConfig/productionLockfile.ts +1 -1
  11. package/apiReport/apiReport.test.ts +1 -1
  12. package/{applicationBuildRunner.test.ts → app/applicationBuildRunner.test.ts} +8 -8
  13. package/{applicationBuildRunner.ts → app/applicationBuildRunner.ts} +14 -14
  14. package/{applicationTestPreload.ts → app/applicationTestPreload.ts} +1 -1
  15. package/{routeJsBudget.test.ts → app/routeJsBudget.test.ts} +1 -1
  16. package/{routeJsBudget.ts → app/routeJsBudget.ts} +2 -2
  17. package/artifact/implicitRootLayout.test.ts +1 -1
  18. package/cloud/cloudApi.test.ts +1 -1
  19. package/cloud/configLock.test.ts +1 -1
  20. package/cloud/globalConfig.test.ts +1 -1
  21. package/cloud/globalConfig.ts +1 -1
  22. package/cloud/updatePackUpload.test.ts +1 -1
  23. package/codeAgent/agent/AkanCodeEnv.ts +1 -1
  24. package/codeAgent/agent/akanCodePaths.ts +1 -1
  25. package/codeAgent/agent/codeAgent.test.ts +1 -1
  26. package/codeAgent/skills/akan-debug/SKILL.md +8 -5
  27. package/codeAgent/tools/AkanCli.ts +1 -1
  28. package/codeAgent/tools/AkanToolPack.ts +1 -1
  29. package/codeAgent/tools/akanCodePlugins.test.ts +1 -1
  30. package/commandDecorators/command.ts +3 -3
  31. package/commandDecorators/commandDecorators.test.ts +1 -1
  32. package/commandDecorators/workspaceVersionCheck.test.ts +1 -1
  33. package/commandDecorators/workspaceVersionCheck.ts +1 -1
  34. package/{akanContext.ts → context/akanContext.ts} +8 -8
  35. package/{akanMcpContract.test.ts → context/akanMcpContract.test.ts} +1 -1
  36. package/{akanMcpContract.ts → context/akanMcpContract.ts} +5 -5
  37. package/{recipeScanner.test.ts → context/recipeScanner.test.ts} +1 -1
  38. package/devkitUtils.test.ts +5 -5
  39. package/{apiReference.test.ts → docs/apiReference.test.ts} +4 -4
  40. package/{apiReference.ts → docs/apiReference.ts} +2 -2
  41. package/{errorCodeReference.test.ts → docs/errorCodeReference.test.ts} +4 -4
  42. package/{errorCodeReference.ts → docs/errorCodeReference.ts} +2 -2
  43. package/{errorCodeScan.ts → docs/errorCodeScan.ts} +1 -1
  44. package/{frameworkGraph.test.ts → docs/frameworkGraph.test.ts} +1 -1
  45. package/executors/appExecutor.ts +5 -5
  46. package/executors/executor.ts +9 -9
  47. package/{executors.linkFallback.test.ts → executors/executors.linkFallback.test.ts} +1 -1
  48. package/{executors.test.ts → executors/executors.test.ts} +11 -18
  49. package/executors/index.ts +8 -0
  50. package/executors/pkgExecutor.ts +2 -2
  51. package/executors/sysExecutor.ts +8 -8
  52. package/executors/workspaceExecutor.ts +4 -4
  53. package/frontendBuild/allRoutesBuilder.test.ts +1 -1
  54. package/frontendBuild/autoImportSync.test.ts +1 -1
  55. package/frontendBuild/autoImportSync.ts +1 -1
  56. package/frontendBuild/buildRouteClient.test.ts +1 -1
  57. package/frontendBuild/clientEntriesBundler.test.ts +1 -1
  58. package/frontendBuild/csrArtifactBuilder.test.ts +1 -1
  59. package/frontendBuild/csrDevArtifactWriter.ts +1 -1
  60. package/frontendBuild/cssCompiler.test.ts +1 -1
  61. package/frontendBuild/devGeneratedIndexSync.test.ts +1 -1
  62. package/frontendBuild/devGeneratedIndexSync.ts +1 -1
  63. package/frontendBuild/dictionaryAssetBuilder.test.ts +1 -1
  64. package/frontendBuild/fontOptimizer.test.ts +1 -1
  65. package/frontendBuild/fontPruner.test.ts +1 -1
  66. package/frontendBuild/frontendBuild.test.ts +1 -1
  67. package/frontendBuild/hmrWatcher.test.ts +1 -1
  68. package/frontendBuild/mcpAppViewBuilder.test.ts +1 -1
  69. package/frontendBuild/mcpAppViewBuilder.ts +1 -1
  70. package/frontendBuild/nativeCore.test.ts +1 -1
  71. package/frontendBuild/optionalPeers.test.ts +1 -1
  72. package/frontendBuild/precompressArtifacts.test.ts +1 -1
  73. package/frontendBuild/serverGraphFile.ts +1 -1
  74. package/frontendBuild/sourceMtimeIndex.test.ts +1 -1
  75. package/frontendBuild/ssrDevBundler.test.ts +1 -1
  76. package/frontendBuild/vendorImportScanner.test.ts +1 -1
  77. package/frontendBuild/vendorNarrowing.test.ts +1 -1
  78. package/frontendBuild/watchRootResolver.test.ts +1 -1
  79. package/{agentAssets.test.ts → guideline/agentAssets.test.ts} +1 -1
  80. package/{agentAssets.ts → guideline/agentAssets.ts} +1 -1
  81. package/{agentsIndex.test.ts → guideline/agentsIndex.test.ts} +2 -2
  82. package/{agentsIndex.ts → guideline/agentsIndex.ts} +12 -9
  83. package/{conventionSet.test.ts → guideline/conventionSet.test.ts} +3 -3
  84. package/{prompter.ts → guideline/prompter.ts} +2 -3
  85. package/incrementalBuilder/buildBatch.proc.ts +1 -1
  86. package/incrementalBuilder/buildBatchRunner.test.ts +1 -1
  87. package/incrementalBuilder/builderChannel.test.ts +1 -1
  88. package/incrementalBuilder/builderGraphPayloads.ts +3 -3
  89. package/incrementalBuilder/incrementalBuilder.proc.test.ts +1 -1
  90. package/incrementalBuilder/incrementalBuilder.proc.ts +2 -2
  91. package/index.ts +22 -22
  92. package/integration/devStabilityHarness.test.ts +1 -1
  93. package/{biomeBase.test.ts → lint/biomeBase.test.ts} +1 -1
  94. package/lint/gritRules.test.ts +1 -1
  95. package/{linter.test.ts → lint/linter.test.ts} +1 -1
  96. package/mobile/desktopBin.test.ts +1 -1
  97. package/mobile/desktopRelease.test.ts +1 -1
  98. package/mobile/desktopServerStage.test.ts +2 -2
  99. package/mobile/desktopServerStage.ts +1 -1
  100. package/mobile/nativeApi.test.ts +1 -1
  101. package/mobile/nativeApp.test.ts +1 -1
  102. package/mobile/nativeConfig.test.ts +1 -1
  103. package/mobile/nativePluginFolders.test.ts +1 -1
  104. package/mobile/nativePublicEnv.test.ts +1 -1
  105. package/mobile/nativeWebDir.test.ts +1 -1
  106. package/mobile/serverBundleSecrets.test.ts +1 -1
  107. package/mobile/tarWriter.test.ts +1 -1
  108. package/mobile/updatePackFolder.test.ts +1 -1
  109. package/package.json +167 -3
  110. package/packageExports.test.ts +20 -2
  111. package/piDependencyPins.test.ts +1 -1
  112. package/pipeline/PipelineDefinition.ts +1 -1
  113. package/platformTest/IdleWatchedProcess.test.ts +1 -1
  114. package/platformTest/PlatformTestRun.test.ts +1 -1
  115. package/platformTest/TestSnapshot.test.ts +1 -1
  116. package/{abstractDoc.test.ts → quality/abstractDoc.test.ts} +2 -2
  117. package/{abstractDoc.ts → quality/abstractDoc.ts} +1 -1
  118. package/{maintainabilityBaseline.test.ts → quality/maintainabilityBaseline.test.ts} +24 -0
  119. package/{maintainabilityBaseline.ts → quality/maintainabilityBaseline.ts} +24 -1
  120. package/{maintainabilityContract.test.ts → quality/maintainabilityContract.test.ts} +82 -2
  121. package/{maintainabilityContract.ts → quality/maintainabilityContract.ts} +65 -8
  122. package/{maintainabilityExceptionScanner.test.ts → quality/maintainabilityExceptionScanner.test.ts} +1 -1
  123. package/{qualityScanner.test.ts → quality/qualityScanner.test.ts} +1 -1
  124. package/{qualityScanner.ts → quality/qualityScanner.ts} +8 -8
  125. package/{subspace.test.ts → subspace/subspace.test.ts} +3 -3
  126. package/{subspace.ts → subspace/subspace.ts} +4 -4
  127. package/{subspaceClone.ts → subspace/subspaceClone.ts} +5 -5
  128. package/{subspaceConfig.ts → subspace/subspaceConfig.ts} +1 -1
  129. package/{testHelpers.ts → test/testHelpers.ts} +1 -1
  130. package/transforms/browserDirnamePlugin.test.ts +1 -1
  131. package/transforms/externalizeFrameworkPlugin.test.ts +1 -1
  132. package/transforms/mcpAppPageTrimmer.test.ts +1 -1
  133. package/transforms/pureLazyMarker.test.ts +1 -1
  134. package/transforms/serverEnvPlugin.test.ts +1 -1
  135. package/transforms/serverEnvProfile.test.ts +1 -1
  136. package/transforms/sideEffectImportOrder.test.ts +1 -1
  137. package/transforms/transforms.test.ts +2 -2
  138. package/transforms/tsconfigPackageResolver.test.ts +1 -1
  139. package/{createTunnel.test.ts → tunnel/createTunnel.test.ts} +1 -1
  140. package/{createTunnel.ts → tunnel/createTunnel.ts} +2 -2
  141. package/{sshHostKeys.ts → tunnel/sshHostKeys.ts} +2 -2
  142. package/typecheck/projectTypecheck.test.ts +1 -1
  143. package/typecheck/projectTypecheck.ts +1 -1
  144. package/{typeChecker.test.ts → typecheck/typeChecker.test.ts} +1 -1
  145. package/{typeChecker.ts → typecheck/typeChecker.ts} +1 -1
  146. package/typecheck/typecheck.proc.ts +1 -1
  147. package/typecheck/typecheckFailure.ts +1 -1
  148. package/{jsonFormatter.test.ts → util/jsonFormatter.test.ts} +1 -1
  149. package/workflow/executor.ts +1 -1
  150. package/workflow/guardCatalog.test.ts +1 -1
  151. package/workflow/moduleIndex.test.ts +2 -2
  152. package/workflow/moduleIndex.ts +1 -1
  153. package/workflow/rolloutGate.test.ts +1 -1
  154. package/workflow/rolloutGate.ts +1 -1
  155. package/{appSelectionMemory.ts → workspace/appSelectionMemory.ts} +1 -1
  156. package/{codegenLock.test.ts → workspace/codegenLock.test.ts} +1 -1
  157. package/{dependencyScanner.test.ts → workspace/dependencyScanner.test.ts} +1 -1
  158. package/{dependencyScanner.ts → workspace/dependencyScanner.ts} +2 -2
  159. package/{envSeed.test.ts → workspace/envSeed.test.ts} +2 -2
  160. package/{envSeed.ts → workspace/envSeed.ts} +1 -1
  161. package/{libSource.test.ts → workspace/libSource.test.ts} +2 -2
  162. package/{libSource.ts → workspace/libSource.ts} +1 -1
  163. package/{scanInfo.ts → workspace/scanInfo.ts} +7 -7
  164. package/{slicePlanner.test.ts → workspace/slicePlanner.test.ts} +2 -2
  165. package/{slicePlanner.ts → workspace/slicePlanner.ts} +1 -1
  166. package/{workspaceGraph.test.ts → workspace/workspaceGraph.test.ts} +1 -1
  167. package/{workspaceGraph.ts → workspace/workspaceGraph.ts} +1 -1
  168. package/{workspaceLayout.test.ts → workspace/workspaceLayout.test.ts} +1 -1
  169. package/executors.ts +0 -8
  170. /package/{applicationBuildReporter.test.ts → app/applicationBuildReporter.test.ts} +0 -0
  171. /package/{applicationBuildReporter.ts → app/applicationBuildReporter.ts} +0 -0
  172. /package/{routeSourceValidator.test.ts → app/routeSourceValidator.test.ts} +0 -0
  173. /package/{routeSourceValidator.ts → app/routeSourceValidator.ts} +0 -0
  174. /package/{akanMcpToolError.ts → context/akanMcpToolError.ts} +0 -0
  175. /package/{moduleFieldNames.test.ts → context/moduleFieldNames.test.ts} +0 -0
  176. /package/{moduleFieldNames.ts → context/moduleFieldNames.ts} +0 -0
  177. /package/{recipeScanner.ts → context/recipeScanner.ts} +0 -0
  178. /package/{declarationReader.ts → docs/declarationReader.ts} +0 -0
  179. /package/{frameworkGraph.ts → docs/frameworkGraph.ts} +0 -0
  180. /package/{conventionSet.ts → guideline/conventionSet.ts} +0 -0
  181. /package/{biomeBase.ts → lint/biomeBase.ts} +0 -0
  182. /package/{linter.ts → lint/linter.ts} +0 -0
  183. /package/{bareErrorScanner.ts → quality/bareErrorScanner.ts} +0 -0
  184. /package/{commentDensityScanner.test.ts → quality/commentDensityScanner.test.ts} +0 -0
  185. /package/{commentDensityScanner.ts → quality/commentDensityScanner.ts} +0 -0
  186. /package/{componentSizeScanner.test.ts → quality/componentSizeScanner.test.ts} +0 -0
  187. /package/{componentSizeScanner.ts → quality/componentSizeScanner.ts} +0 -0
  188. /package/{componentWriteChainScanner.test.ts → quality/componentWriteChainScanner.test.ts} +0 -0
  189. /package/{componentWriteChainScanner.ts → quality/componentWriteChainScanner.ts} +0 -0
  190. /package/{deprecatedCommentScanner.test.ts → quality/deprecatedCommentScanner.test.ts} +0 -0
  191. /package/{deprecatedCommentScanner.ts → quality/deprecatedCommentScanner.ts} +0 -0
  192. /package/{endpointReach.test.ts → quality/endpointReach.test.ts} +0 -0
  193. /package/{endpointReach.ts → quality/endpointReach.ts} +0 -0
  194. /package/{formSetterScanner.test.ts → quality/formSetterScanner.test.ts} +0 -0
  195. /package/{formSetterScanner.ts → quality/formSetterScanner.ts} +0 -0
  196. /package/{kindBranchScanner.test.ts → quality/kindBranchScanner.test.ts} +0 -0
  197. /package/{kindBranchScanner.ts → quality/kindBranchScanner.ts} +0 -0
  198. /package/{maintainabilityExceptionScanner.ts → quality/maintainabilityExceptionScanner.ts} +0 -0
  199. /package/{maintainabilityLimits.ts → quality/maintainabilityLimits.ts} +0 -0
  200. /package/{maintainabilityReport.test.ts → quality/maintainabilityReport.test.ts} +0 -0
  201. /package/{maintainabilityReport.ts → quality/maintainabilityReport.ts} +0 -0
  202. /package/{renderMutationScanner.test.ts → quality/renderMutationScanner.test.ts} +0 -0
  203. /package/{renderMutationScanner.ts → quality/renderMutationScanner.ts} +0 -0
  204. /package/{serviceLoopCallScanner.test.ts → quality/serviceLoopCallScanner.test.ts} +0 -0
  205. /package/{serviceLoopCallScanner.ts → quality/serviceLoopCallScanner.ts} +0 -0
  206. /package/{signalMutationIndex.test.ts → quality/signalMutationIndex.test.ts} +0 -0
  207. /package/{signalMutationIndex.ts → quality/signalMutationIndex.ts} +0 -0
  208. /package/{sourceComments.test.ts → quality/sourceComments.test.ts} +0 -0
  209. /package/{sourceComments.ts → quality/sourceComments.ts} +0 -0
  210. /package/{ssrScanner.test.ts → quality/ssrScanner.test.ts} +0 -0
  211. /package/{ssrScanner.ts → quality/ssrScanner.ts} +0 -0
  212. /package/{storeAccessScanner.test.ts → quality/storeAccessScanner.test.ts} +0 -0
  213. /package/{storeAccessScanner.ts → quality/storeAccessScanner.ts} +0 -0
  214. /package/{storeSource.ts → quality/storeSource.ts} +0 -0
  215. /package/{storeWriteScanner.test.ts → quality/storeWriteScanner.test.ts} +0 -0
  216. /package/{storeWriteScanner.ts → quality/storeWriteScanner.ts} +0 -0
  217. /package/{structureScanner.test.ts → quality/structureScanner.test.ts} +0 -0
  218. /package/{structureScanner.ts → quality/structureScanner.ts} +0 -0
  219. /package/{testOnlyExportScanner.test.ts → quality/testOnlyExportScanner.test.ts} +0 -0
  220. /package/{testOnlyExportScanner.ts → quality/testOnlyExportScanner.ts} +0 -0
  221. /package/{writePath.test.ts → quality/writePath.test.ts} +0 -0
  222. /package/{writePath.ts → quality/writePath.ts} +0 -0
  223. /package/{writePlacementScanner.test.ts → quality/writePlacementScanner.test.ts} +0 -0
  224. /package/{writePlacementScanner.ts → quality/writePlacementScanner.ts} +0 -0
  225. /package/{writingActionIndex.test.ts → quality/writingActionIndex.test.ts} +0 -0
  226. /package/{writingActionIndex.ts → quality/writingActionIndex.ts} +0 -0
  227. /package/{subspaceReport.ts → subspace/subspaceReport.ts} +0 -0
  228. /package/{sshTunnel.ts → tunnel/sshTunnel.ts} +0 -0
  229. /package/{fileEditor.ts → util/fileEditor.ts} +0 -0
  230. /package/{fileSys.test.ts → util/fileSys.test.ts} +0 -0
  231. /package/{fileSys.ts → util/fileSys.ts} +0 -0
  232. /package/{jsonFormatter.ts → util/jsonFormatter.ts} +0 -0
  233. /package/{selectModel.ts → util/selectModel.ts} +0 -0
  234. /package/{semver.test.ts → util/semver.test.ts} +0 -0
  235. /package/{semver.ts → util/semver.ts} +0 -0
  236. /package/{shellOnlyEnv.test.ts → util/shellOnlyEnv.test.ts} +0 -0
  237. /package/{shellOnlyEnv.ts → util/shellOnlyEnv.ts} +0 -0
  238. /package/{spinner.test.ts → util/spinner.test.ts} +0 -0
  239. /package/{spinner.ts → util/spinner.ts} +0 -0
  240. /package/{stripAnsi.ts → util/stripAnsi.ts} +0 -0
  241. /package/{codegenLock.ts → workspace/codegenLock.ts} +0 -0
  242. /package/{getRelatedCnsts.ts → workspace/getRelatedCnsts.ts} +0 -0
  243. /package/{gitRevision.test.ts → workspace/gitRevision.test.ts} +0 -0
  244. /package/{gitRevision.ts → workspace/gitRevision.ts} +0 -0
  245. /package/{manifestDependencies.ts → workspace/manifestDependencies.ts} +0 -0
  246. /package/{packageExportsMap.ts → workspace/packageExportsMap.ts} +0 -0
  247. /package/{repoIdentity.ts → workspace/repoIdentity.ts} +0 -0
  248. /package/{types.ts → workspace/types.ts} +0 -0
  249. /package/{workspaceLayout.ts → workspace/workspaceLayout.ts} +0 -0
@@ -1,7 +1,7 @@
1
1
  import { capitalize } from "akanjs/common";
2
2
  import ts from "typescript";
3
- import type { AkanModuleContext } from "../akanContext";
4
3
  import type { Sys, Workspace } from "../commandDecorators";
4
+ import type { AkanModuleContext } from "../context/akanContext";
5
5
  import { AppExecutor, LibExecutor } from "../executors";
6
6
  import { createWorkflowApplyReport, workflowCommandsForPlan } from "./artifacts";
7
7
  import { buildAkanModuleContextIndex } from "./moduleIndex";
@@ -1,6 +1,6 @@
1
1
  import { describe, expect, test } from "bun:test";
2
2
  import path from "node:path";
3
- import { createTempApp, tempRoots, writeJson, writeText } from "../testHelpers";
3
+ import { createTempApp, tempRoots, writeJson, writeText } from "../test/testHelpers";
4
4
  import { GuardCatalog } from "./guardCatalog";
5
5
 
6
6
  const track = tempRoots();
@@ -1,8 +1,8 @@
1
1
  import { describe, expect, test } from "bun:test";
2
2
  import path from "node:path";
3
- import type { AkanModuleContext } from "../akanContext";
4
3
  import type { Workspace } from "../commandDecorators";
5
- import { tempDirs, writeText } from "../testHelpers";
4
+ import type { AkanModuleContext } from "../context/akanContext";
5
+ import { tempDirs, writeText } from "../test/testHelpers";
6
6
  import { buildAkanModuleContextIndex } from "./moduleIndex";
7
7
 
8
8
  const tempRoot = tempDirs("akan-module-index-");
@@ -1,8 +1,8 @@
1
1
  import { access } from "node:fs/promises";
2
2
  import path from "node:path";
3
3
  import ts from "typescript";
4
- import type { AkanModuleContext } from "../akanContext";
5
4
  import type { Workspace } from "../commandDecorators";
5
+ import type { AkanModuleContext } from "../context/akanContext";
6
6
  import { moduleComponentName, moduleSourcePaths } from "./source";
7
7
  import {
8
8
  callExpressionName,
@@ -1,6 +1,6 @@
1
1
  import { describe, expect, test } from "bun:test";
2
2
  import path from "node:path";
3
- import type { PackageJson } from "../types";
3
+ import type { PackageJson } from "../workspace/types";
4
4
  import { findToolingRolloutViolations } from "./rolloutGate";
5
5
 
6
6
  const manifest = (overrides: Partial<PackageJson>): PackageJson => ({
@@ -1,4 +1,4 @@
1
- import type { PackageJson } from "../types";
1
+ import type { PackageJson } from "../workspace/types";
2
2
 
3
3
  export type ToolingRolloutDependencySection =
4
4
  | "dependencies"
@@ -1,5 +1,5 @@
1
1
  import path from "node:path";
2
- import { FileSys } from "./fileSys";
2
+ import { FileSys } from "../util/fileSys";
3
3
 
4
4
  interface StoredSelection {
5
5
  apps: string[];
@@ -1,8 +1,8 @@
1
1
  import { describe, expect, test } from "bun:test";
2
2
  import { readFile, stat, utimes, writeFile } from "node:fs/promises";
3
3
  import path from "node:path";
4
+ import { tempDirs } from "../test/testHelpers";
4
5
  import { CodegenLock } from "./codegenLock";
5
- import { tempDirs } from "./testHelpers";
6
6
 
7
7
  const makeRoot = tempDirs("akan-codegen-lock-");
8
8
  const seedHolder = async (root: string, holder: unknown) => {
@@ -1,7 +1,7 @@
1
1
  import { describe, expect, test } from "bun:test";
2
2
  import path from "node:path";
3
+ import { tempDirs, writeText } from "../test/testHelpers";
3
4
  import { TypeScriptDependencyScanner } from "./dependencyScanner";
4
- import { tempDirs, writeText } from "./testHelpers";
5
5
  import type { PackageJson } from "./types";
6
6
 
7
7
  const makeTempRoot = tempDirs("akan-devkit-depscan-");
@@ -2,8 +2,8 @@ import { builtinModules } from "node:module";
2
2
  import * as path from "node:path";
3
3
  import ignore from "ignore";
4
4
  import ts from "typescript";
5
- import type { App, Lib, Pkg } from "./commandDecorators";
6
- import { FileSys } from "./fileSys";
5
+ import type { App, Lib, Pkg } from "../commandDecorators";
6
+ import { FileSys } from "../util/fileSys";
7
7
  import type { PackageJson, TsConfigJson } from "./types";
8
8
 
9
9
  const testFileRegex = /\.(?:test|spec)\.[cm]?[tj]sx?$/;
@@ -1,11 +1,11 @@
1
1
  import { describe, expect, test } from "bun:test";
2
2
  import { readFile } from "node:fs/promises";
3
3
  import path from "node:path";
4
+ import { tempDirs, writeText } from "../test/testHelpers";
4
5
  import { EnvSeed } from "./envSeed";
5
- import { tempDirs, writeText } from "./testHelpers";
6
6
 
7
7
  const makeEnvDir = tempDirs("akan-env-seed-");
8
- const templates = path.resolve(import.meta.dir, "../cli/templates");
8
+ const templates = path.resolve(import.meta.dir, "../../cli/templates");
9
9
  const template = async (file: string) => await readFile(path.join(templates, file), "utf8");
10
10
 
11
11
  const selector = (side: "server" | "client", names: string[]) =>
@@ -1,5 +1,5 @@
1
1
  import path from "node:path";
2
- import { FileSys } from "./fileSys";
2
+ import { FileSys } from "../util/fileSys";
3
3
 
4
4
  export interface EnvSeedFile {
5
5
  fileName: string;
@@ -1,8 +1,8 @@
1
1
  import { describe, expect, test } from "bun:test";
2
2
  import path from "node:path";
3
- import { Executor, LibExecutor, WorkspaceExecutor } from "./executors";
3
+ import { Executor, LibExecutor, WorkspaceExecutor } from "../executors";
4
+ import { tempDirs, writeText as write } from "../test/testHelpers";
4
5
  import { formatLibStatuses, LibSource } from "./libSource";
5
- import { tempDirs, writeText as write } from "./testHelpers";
6
6
 
7
7
  const makeTempRoot = tempDirs("akan-libsource-");
8
8
 
@@ -1,4 +1,4 @@
1
- import type { LibExecutor } from "./executors";
1
+ import type { LibExecutor } from "../executors";
2
2
  import type { PackageJson } from "./types";
3
3
 
4
4
  export interface LibSourceStamp {
@@ -8,10 +8,10 @@ import type {
8
8
  LibScanResult,
9
9
  PkgScanResult,
10
10
  ScanResult,
11
- } from "./akanConfig";
12
- import { AkanAppConfig } from "./akanConfig";
13
- import type { AppExecutor, LibExecutor, PkgExecutor } from "./executors";
14
- import { WorkspaceExecutor } from "./executors/workspaceExecutor";
11
+ } from "../akanConfig";
12
+ import { AkanAppConfig } from "../akanConfig";
13
+ import type { AppExecutor, LibExecutor, PkgExecutor } from "../executors";
14
+ import { WorkspaceExecutor } from "../executors/workspaceExecutor";
15
15
  import {
16
16
  barrelFacetDirs,
17
17
  facetIndexShadowOf,
@@ -25,7 +25,7 @@ import {
25
25
  } from "./workspaceLayout";
26
26
 
27
27
  //? Imported on use: sysExecutor.ts imports this file, so a static import would load a SysExecutor subclass first.
28
- const loadLibExecutor = () => import("./executors/libExecutor");
28
+ const loadLibExecutor = () => import("../executors/libExecutor");
29
29
 
30
30
  const scalarFileTypes = ["constant", "dictionary", "document", "template", "unit", "util", "view", "zone"] as const;
31
31
  type ScalarFileType = (typeof scalarFileTypes)[number];
@@ -519,9 +519,9 @@ export class WorkspaceInfo {
519
519
 
520
520
  const [appNames, libNames, pkgNames] = await Promise.all([exec.getApps(), exec.getLibs(), exec.getPkgs()]);
521
521
  const [appModule, libModule, pkgModule] = await Promise.all([
522
- import("./executors/appExecutor"),
522
+ import("../executors/appExecutor"),
523
523
  loadLibExecutor(),
524
- import("./executors/pkgExecutor"),
524
+ import("../executors/pkgExecutor"),
525
525
  ]);
526
526
  // TODO: prevent duplicate scan by resolving the dependency graph
527
527
  const [appInfos, libInfos, pkgInfos] = await Promise.all([
@@ -1,9 +1,9 @@
1
1
  import { describe, expect, test } from "bun:test";
2
2
  import { mkdir, rm } from "node:fs/promises";
3
3
  import path from "node:path";
4
- import { AppExecutor, Executor, WorkspaceExecutor } from "./executors";
4
+ import { AppExecutor, Executor, WorkspaceExecutor } from "../executors";
5
+ import { isolateEnv, tempDirs, writeText as write } from "../test/testHelpers";
5
6
  import { formatSlicePlan, SlicePlanner } from "./slicePlanner";
6
- import { isolateEnv, tempDirs, writeText as write } from "./testHelpers";
7
7
  import type { PackageJson } from "./types";
8
8
 
9
9
  isolateEnv({ AKAN_PUBLIC_REPO_NAME: "workspace", AKAN_PUBLIC_SERVE_DOMAIN: "example.com", AKAN_PUBLIC_ENV: "local" });
@@ -1,4 +1,4 @@
1
- import type { AppExecutor, WorkspaceExecutor } from "./executors";
1
+ import type { AppExecutor, WorkspaceExecutor } from "../executors";
2
2
  import { AppInfo } from "./scanInfo";
3
3
  import type { PackageJson } from "./types";
4
4
 
@@ -4,7 +4,7 @@ import { tmpdir } from "node:os";
4
4
  import path from "node:path";
5
5
  import type { AkanChangeMap, AkanGraphEdge, AkanGraphNode } from "@akanjs/language";
6
6
  import { AkanGraphDiff } from "@akanjs/language";
7
- import type { Workspace } from "./commandDecorators";
7
+ import type { Workspace } from "../commandDecorators";
8
8
  import { WorkspaceGraph } from "./workspaceGraph";
9
9
 
10
10
  const roots: string[] = [];
@@ -9,7 +9,7 @@ import {
9
9
  AkanIndex,
10
10
  } from "@akanjs/language";
11
11
  import ts from "typescript";
12
- import type { Workspace } from "./commandDecorators";
12
+ import type { Workspace } from "../commandDecorators";
13
13
  import { GitRevision } from "./gitRevision";
14
14
 
15
15
  export interface GraphScope {
@@ -140,7 +140,7 @@ describe("module test target", () => {
140
140
  });
141
141
  });
142
142
 
143
- const templatesDir = path.join(import.meta.dir, "..", "cli", "templates");
143
+ const templatesDir = path.join(import.meta.dir, "..", "..", "cli", "templates");
144
144
 
145
145
  type TsConfig = { references?: { path: string }[] };
146
146
 
package/executors.ts DELETED
@@ -1,8 +0,0 @@
1
- export { AppExecutor, type AppRouteSource, type PageRoot } from "./executors/appExecutor";
2
- export { CommandExecutionError, type CommandExecutionErrorOptions } from "./executors/commandExecutionError";
3
- export { Executor, execEmoji, type WrittenFileContent } from "./executors/executor";
4
- export { LibExecutor } from "./executors/libExecutor";
5
- export { ModuleExecutor } from "./executors/moduleExecutor";
6
- export { PkgExecutor } from "./executors/pkgExecutor";
7
- export { SysExecutor } from "./executors/sysExecutor";
8
- export { parseEnvFile, WorkspaceExecutor } from "./executors/workspaceExecutor";
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes