@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.
- package/CHANGELOG.md +19 -1
- package/README.ko.md +3 -2
- package/README.md +4 -2
- package/akanApp/BackendImportGraph.test.ts +1 -1
- package/akanApp/akanApp.host.test.ts +1 -1
- package/akanApp/akanApp.host.ts +1 -1
- package/akanConfig/akanConfig.test.ts +1 -1
- package/akanConfig/akanConfig.ts +1 -1
- package/akanConfig/akanWorkspaceConfig.ts +1 -1
- package/akanConfig/productionLockfile.ts +1 -1
- package/apiReport/apiReport.test.ts +1 -1
- package/{applicationBuildRunner.test.ts → app/applicationBuildRunner.test.ts} +8 -8
- package/{applicationBuildRunner.ts → app/applicationBuildRunner.ts} +14 -14
- package/{applicationTestPreload.ts → app/applicationTestPreload.ts} +1 -1
- package/{routeJsBudget.test.ts → app/routeJsBudget.test.ts} +1 -1
- package/{routeJsBudget.ts → app/routeJsBudget.ts} +2 -2
- package/artifact/implicitRootLayout.test.ts +1 -1
- package/cloud/cloudApi.test.ts +1 -1
- package/cloud/configLock.test.ts +1 -1
- package/cloud/globalConfig.test.ts +1 -1
- package/cloud/globalConfig.ts +1 -1
- package/cloud/updatePackUpload.test.ts +1 -1
- package/codeAgent/agent/AkanCodeEnv.ts +1 -1
- package/codeAgent/agent/akanCodePaths.ts +1 -1
- package/codeAgent/agent/codeAgent.test.ts +1 -1
- package/codeAgent/skills/akan-debug/SKILL.md +8 -5
- package/codeAgent/tools/AkanCli.ts +1 -1
- package/codeAgent/tools/AkanToolPack.ts +1 -1
- package/codeAgent/tools/akanCodePlugins.test.ts +1 -1
- package/commandDecorators/command.ts +3 -3
- package/commandDecorators/commandDecorators.test.ts +1 -1
- package/commandDecorators/workspaceVersionCheck.test.ts +1 -1
- package/commandDecorators/workspaceVersionCheck.ts +1 -1
- package/{akanContext.ts → context/akanContext.ts} +8 -8
- package/{akanMcpContract.test.ts → context/akanMcpContract.test.ts} +1 -1
- package/{akanMcpContract.ts → context/akanMcpContract.ts} +5 -5
- package/{recipeScanner.test.ts → context/recipeScanner.test.ts} +1 -1
- package/devkitUtils.test.ts +5 -5
- package/{apiReference.test.ts → docs/apiReference.test.ts} +4 -4
- package/{apiReference.ts → docs/apiReference.ts} +2 -2
- package/{errorCodeReference.test.ts → docs/errorCodeReference.test.ts} +4 -4
- package/{errorCodeReference.ts → docs/errorCodeReference.ts} +2 -2
- package/{errorCodeScan.ts → docs/errorCodeScan.ts} +1 -1
- package/{frameworkGraph.test.ts → docs/frameworkGraph.test.ts} +1 -1
- package/executors/appExecutor.ts +5 -5
- package/executors/executor.ts +9 -9
- package/{executors.linkFallback.test.ts → executors/executors.linkFallback.test.ts} +1 -1
- package/{executors.test.ts → executors/executors.test.ts} +11 -18
- package/executors/index.ts +8 -0
- package/executors/pkgExecutor.ts +2 -2
- package/executors/sysExecutor.ts +8 -8
- package/executors/workspaceExecutor.ts +4 -4
- package/frontendBuild/allRoutesBuilder.test.ts +1 -1
- package/frontendBuild/autoImportSync.test.ts +1 -1
- package/frontendBuild/autoImportSync.ts +1 -1
- package/frontendBuild/buildRouteClient.test.ts +1 -1
- package/frontendBuild/clientEntriesBundler.test.ts +1 -1
- package/frontendBuild/csrArtifactBuilder.test.ts +1 -1
- package/frontendBuild/csrDevArtifactWriter.ts +1 -1
- package/frontendBuild/cssCompiler.test.ts +1 -1
- package/frontendBuild/devGeneratedIndexSync.test.ts +1 -1
- package/frontendBuild/devGeneratedIndexSync.ts +1 -1
- package/frontendBuild/dictionaryAssetBuilder.test.ts +1 -1
- package/frontendBuild/fontOptimizer.test.ts +1 -1
- package/frontendBuild/fontPruner.test.ts +1 -1
- package/frontendBuild/frontendBuild.test.ts +1 -1
- package/frontendBuild/hmrWatcher.test.ts +1 -1
- package/frontendBuild/mcpAppViewBuilder.test.ts +1 -1
- package/frontendBuild/mcpAppViewBuilder.ts +1 -1
- package/frontendBuild/nativeCore.test.ts +1 -1
- package/frontendBuild/optionalPeers.test.ts +1 -1
- package/frontendBuild/precompressArtifacts.test.ts +1 -1
- package/frontendBuild/serverGraphFile.ts +1 -1
- package/frontendBuild/sourceMtimeIndex.test.ts +1 -1
- package/frontendBuild/ssrDevBundler.test.ts +1 -1
- package/frontendBuild/vendorImportScanner.test.ts +1 -1
- package/frontendBuild/vendorNarrowing.test.ts +1 -1
- package/frontendBuild/watchRootResolver.test.ts +1 -1
- package/{agentAssets.test.ts → guideline/agentAssets.test.ts} +1 -1
- package/{agentAssets.ts → guideline/agentAssets.ts} +1 -1
- package/{agentsIndex.test.ts → guideline/agentsIndex.test.ts} +2 -2
- package/{agentsIndex.ts → guideline/agentsIndex.ts} +12 -9
- package/{conventionSet.test.ts → guideline/conventionSet.test.ts} +3 -3
- package/{prompter.ts → guideline/prompter.ts} +2 -3
- package/incrementalBuilder/buildBatch.proc.ts +1 -1
- package/incrementalBuilder/buildBatchRunner.test.ts +1 -1
- package/incrementalBuilder/builderChannel.test.ts +1 -1
- package/incrementalBuilder/builderGraphPayloads.ts +3 -3
- package/incrementalBuilder/incrementalBuilder.proc.test.ts +1 -1
- package/incrementalBuilder/incrementalBuilder.proc.ts +2 -2
- package/index.ts +22 -22
- package/integration/devStabilityHarness.test.ts +1 -1
- package/{biomeBase.test.ts → lint/biomeBase.test.ts} +1 -1
- package/lint/gritRules.test.ts +1 -1
- package/{linter.test.ts → lint/linter.test.ts} +1 -1
- package/mobile/desktopBin.test.ts +1 -1
- package/mobile/desktopRelease.test.ts +1 -1
- package/mobile/desktopServerStage.test.ts +2 -2
- package/mobile/desktopServerStage.ts +1 -1
- package/mobile/nativeApi.test.ts +1 -1
- package/mobile/nativeApp.test.ts +1 -1
- package/mobile/nativeConfig.test.ts +1 -1
- package/mobile/nativePluginFolders.test.ts +1 -1
- package/mobile/nativePublicEnv.test.ts +1 -1
- package/mobile/nativeWebDir.test.ts +1 -1
- package/mobile/serverBundleSecrets.test.ts +1 -1
- package/mobile/tarWriter.test.ts +1 -1
- package/mobile/updatePackFolder.test.ts +1 -1
- package/package.json +167 -3
- package/packageExports.test.ts +20 -2
- package/piDependencyPins.test.ts +1 -1
- package/pipeline/PipelineDefinition.ts +1 -1
- package/platformTest/IdleWatchedProcess.test.ts +1 -1
- package/platformTest/PlatformTestRun.test.ts +1 -1
- package/platformTest/TestSnapshot.test.ts +1 -1
- package/{abstractDoc.test.ts → quality/abstractDoc.test.ts} +2 -2
- package/{abstractDoc.ts → quality/abstractDoc.ts} +1 -1
- package/{maintainabilityBaseline.test.ts → quality/maintainabilityBaseline.test.ts} +24 -0
- package/{maintainabilityBaseline.ts → quality/maintainabilityBaseline.ts} +24 -1
- package/{maintainabilityContract.test.ts → quality/maintainabilityContract.test.ts} +82 -2
- package/{maintainabilityContract.ts → quality/maintainabilityContract.ts} +65 -8
- package/{maintainabilityExceptionScanner.test.ts → quality/maintainabilityExceptionScanner.test.ts} +1 -1
- package/{qualityScanner.test.ts → quality/qualityScanner.test.ts} +1 -1
- package/{qualityScanner.ts → quality/qualityScanner.ts} +8 -8
- package/{subspace.test.ts → subspace/subspace.test.ts} +3 -3
- package/{subspace.ts → subspace/subspace.ts} +4 -4
- package/{subspaceClone.ts → subspace/subspaceClone.ts} +5 -5
- package/{subspaceConfig.ts → subspace/subspaceConfig.ts} +1 -1
- package/{testHelpers.ts → test/testHelpers.ts} +1 -1
- package/transforms/browserDirnamePlugin.test.ts +1 -1
- package/transforms/externalizeFrameworkPlugin.test.ts +1 -1
- package/transforms/mcpAppPageTrimmer.test.ts +1 -1
- package/transforms/pureLazyMarker.test.ts +1 -1
- package/transforms/serverEnvPlugin.test.ts +1 -1
- package/transforms/serverEnvProfile.test.ts +1 -1
- package/transforms/sideEffectImportOrder.test.ts +1 -1
- package/transforms/transforms.test.ts +2 -2
- package/transforms/tsconfigPackageResolver.test.ts +1 -1
- package/{createTunnel.test.ts → tunnel/createTunnel.test.ts} +1 -1
- package/{createTunnel.ts → tunnel/createTunnel.ts} +2 -2
- package/{sshHostKeys.ts → tunnel/sshHostKeys.ts} +2 -2
- package/typecheck/projectTypecheck.test.ts +1 -1
- package/typecheck/projectTypecheck.ts +1 -1
- package/{typeChecker.test.ts → typecheck/typeChecker.test.ts} +1 -1
- package/{typeChecker.ts → typecheck/typeChecker.ts} +1 -1
- package/typecheck/typecheck.proc.ts +1 -1
- package/typecheck/typecheckFailure.ts +1 -1
- package/{jsonFormatter.test.ts → util/jsonFormatter.test.ts} +1 -1
- package/workflow/executor.ts +1 -1
- package/workflow/guardCatalog.test.ts +1 -1
- package/workflow/moduleIndex.test.ts +2 -2
- package/workflow/moduleIndex.ts +1 -1
- package/workflow/rolloutGate.test.ts +1 -1
- package/workflow/rolloutGate.ts +1 -1
- package/{appSelectionMemory.ts → workspace/appSelectionMemory.ts} +1 -1
- package/{codegenLock.test.ts → workspace/codegenLock.test.ts} +1 -1
- package/{dependencyScanner.test.ts → workspace/dependencyScanner.test.ts} +1 -1
- package/{dependencyScanner.ts → workspace/dependencyScanner.ts} +2 -2
- package/{envSeed.test.ts → workspace/envSeed.test.ts} +2 -2
- package/{envSeed.ts → workspace/envSeed.ts} +1 -1
- package/{libSource.test.ts → workspace/libSource.test.ts} +2 -2
- package/{libSource.ts → workspace/libSource.ts} +1 -1
- package/{scanInfo.ts → workspace/scanInfo.ts} +7 -7
- package/{slicePlanner.test.ts → workspace/slicePlanner.test.ts} +2 -2
- package/{slicePlanner.ts → workspace/slicePlanner.ts} +1 -1
- package/{workspaceGraph.test.ts → workspace/workspaceGraph.test.ts} +1 -1
- package/{workspaceGraph.ts → workspace/workspaceGraph.ts} +1 -1
- package/{workspaceLayout.test.ts → workspace/workspaceLayout.test.ts} +1 -1
- package/executors.ts +0 -8
- /package/{applicationBuildReporter.test.ts → app/applicationBuildReporter.test.ts} +0 -0
- /package/{applicationBuildReporter.ts → app/applicationBuildReporter.ts} +0 -0
- /package/{routeSourceValidator.test.ts → app/routeSourceValidator.test.ts} +0 -0
- /package/{routeSourceValidator.ts → app/routeSourceValidator.ts} +0 -0
- /package/{akanMcpToolError.ts → context/akanMcpToolError.ts} +0 -0
- /package/{moduleFieldNames.test.ts → context/moduleFieldNames.test.ts} +0 -0
- /package/{moduleFieldNames.ts → context/moduleFieldNames.ts} +0 -0
- /package/{recipeScanner.ts → context/recipeScanner.ts} +0 -0
- /package/{declarationReader.ts → docs/declarationReader.ts} +0 -0
- /package/{frameworkGraph.ts → docs/frameworkGraph.ts} +0 -0
- /package/{conventionSet.ts → guideline/conventionSet.ts} +0 -0
- /package/{biomeBase.ts → lint/biomeBase.ts} +0 -0
- /package/{linter.ts → lint/linter.ts} +0 -0
- /package/{bareErrorScanner.ts → quality/bareErrorScanner.ts} +0 -0
- /package/{commentDensityScanner.test.ts → quality/commentDensityScanner.test.ts} +0 -0
- /package/{commentDensityScanner.ts → quality/commentDensityScanner.ts} +0 -0
- /package/{componentSizeScanner.test.ts → quality/componentSizeScanner.test.ts} +0 -0
- /package/{componentSizeScanner.ts → quality/componentSizeScanner.ts} +0 -0
- /package/{componentWriteChainScanner.test.ts → quality/componentWriteChainScanner.test.ts} +0 -0
- /package/{componentWriteChainScanner.ts → quality/componentWriteChainScanner.ts} +0 -0
- /package/{deprecatedCommentScanner.test.ts → quality/deprecatedCommentScanner.test.ts} +0 -0
- /package/{deprecatedCommentScanner.ts → quality/deprecatedCommentScanner.ts} +0 -0
- /package/{endpointReach.test.ts → quality/endpointReach.test.ts} +0 -0
- /package/{endpointReach.ts → quality/endpointReach.ts} +0 -0
- /package/{formSetterScanner.test.ts → quality/formSetterScanner.test.ts} +0 -0
- /package/{formSetterScanner.ts → quality/formSetterScanner.ts} +0 -0
- /package/{kindBranchScanner.test.ts → quality/kindBranchScanner.test.ts} +0 -0
- /package/{kindBranchScanner.ts → quality/kindBranchScanner.ts} +0 -0
- /package/{maintainabilityExceptionScanner.ts → quality/maintainabilityExceptionScanner.ts} +0 -0
- /package/{maintainabilityLimits.ts → quality/maintainabilityLimits.ts} +0 -0
- /package/{maintainabilityReport.test.ts → quality/maintainabilityReport.test.ts} +0 -0
- /package/{maintainabilityReport.ts → quality/maintainabilityReport.ts} +0 -0
- /package/{renderMutationScanner.test.ts → quality/renderMutationScanner.test.ts} +0 -0
- /package/{renderMutationScanner.ts → quality/renderMutationScanner.ts} +0 -0
- /package/{serviceLoopCallScanner.test.ts → quality/serviceLoopCallScanner.test.ts} +0 -0
- /package/{serviceLoopCallScanner.ts → quality/serviceLoopCallScanner.ts} +0 -0
- /package/{signalMutationIndex.test.ts → quality/signalMutationIndex.test.ts} +0 -0
- /package/{signalMutationIndex.ts → quality/signalMutationIndex.ts} +0 -0
- /package/{sourceComments.test.ts → quality/sourceComments.test.ts} +0 -0
- /package/{sourceComments.ts → quality/sourceComments.ts} +0 -0
- /package/{ssrScanner.test.ts → quality/ssrScanner.test.ts} +0 -0
- /package/{ssrScanner.ts → quality/ssrScanner.ts} +0 -0
- /package/{storeAccessScanner.test.ts → quality/storeAccessScanner.test.ts} +0 -0
- /package/{storeAccessScanner.ts → quality/storeAccessScanner.ts} +0 -0
- /package/{storeSource.ts → quality/storeSource.ts} +0 -0
- /package/{storeWriteScanner.test.ts → quality/storeWriteScanner.test.ts} +0 -0
- /package/{storeWriteScanner.ts → quality/storeWriteScanner.ts} +0 -0
- /package/{structureScanner.test.ts → quality/structureScanner.test.ts} +0 -0
- /package/{structureScanner.ts → quality/structureScanner.ts} +0 -0
- /package/{testOnlyExportScanner.test.ts → quality/testOnlyExportScanner.test.ts} +0 -0
- /package/{testOnlyExportScanner.ts → quality/testOnlyExportScanner.ts} +0 -0
- /package/{writePath.test.ts → quality/writePath.test.ts} +0 -0
- /package/{writePath.ts → quality/writePath.ts} +0 -0
- /package/{writePlacementScanner.test.ts → quality/writePlacementScanner.test.ts} +0 -0
- /package/{writePlacementScanner.ts → quality/writePlacementScanner.ts} +0 -0
- /package/{writingActionIndex.test.ts → quality/writingActionIndex.test.ts} +0 -0
- /package/{writingActionIndex.ts → quality/writingActionIndex.ts} +0 -0
- /package/{subspaceReport.ts → subspace/subspaceReport.ts} +0 -0
- /package/{sshTunnel.ts → tunnel/sshTunnel.ts} +0 -0
- /package/{fileEditor.ts → util/fileEditor.ts} +0 -0
- /package/{fileSys.test.ts → util/fileSys.test.ts} +0 -0
- /package/{fileSys.ts → util/fileSys.ts} +0 -0
- /package/{jsonFormatter.ts → util/jsonFormatter.ts} +0 -0
- /package/{selectModel.ts → util/selectModel.ts} +0 -0
- /package/{semver.test.ts → util/semver.test.ts} +0 -0
- /package/{semver.ts → util/semver.ts} +0 -0
- /package/{shellOnlyEnv.test.ts → util/shellOnlyEnv.test.ts} +0 -0
- /package/{shellOnlyEnv.ts → util/shellOnlyEnv.ts} +0 -0
- /package/{spinner.test.ts → util/spinner.test.ts} +0 -0
- /package/{spinner.ts → util/spinner.ts} +0 -0
- /package/{stripAnsi.ts → util/stripAnsi.ts} +0 -0
- /package/{codegenLock.ts → workspace/codegenLock.ts} +0 -0
- /package/{getRelatedCnsts.ts → workspace/getRelatedCnsts.ts} +0 -0
- /package/{gitRevision.test.ts → workspace/gitRevision.test.ts} +0 -0
- /package/{gitRevision.ts → workspace/gitRevision.ts} +0 -0
- /package/{manifestDependencies.ts → workspace/manifestDependencies.ts} +0 -0
- /package/{packageExportsMap.ts → workspace/packageExportsMap.ts} +0 -0
- /package/{repoIdentity.ts → workspace/repoIdentity.ts} +0 -0
- /package/{types.ts → workspace/types.ts} +0 -0
- /package/{workspaceLayout.ts → workspace/workspaceLayout.ts} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { describe, expect, test } from "bun:test";
|
|
2
2
|
import fsPromise from "node:fs/promises";
|
|
3
3
|
import path from "node:path";
|
|
4
|
+
import { MaintainabilityContract } from "../quality/maintainabilityContract";
|
|
5
|
+
import { MaintainabilityLimits } from "../quality/maintainabilityLimits";
|
|
4
6
|
import { ConventionSet } from "./conventionSet";
|
|
5
|
-
import { MaintainabilityContract } from "./maintainabilityContract";
|
|
6
|
-
import { MaintainabilityLimits } from "./maintainabilityLimits";
|
|
7
7
|
import { Prompter } from "./prompter";
|
|
8
8
|
|
|
9
9
|
describe("ConventionSet", () => {
|
|
@@ -57,7 +57,7 @@ describe("ConventionSet", () => {
|
|
|
57
57
|
[...text.matchAll(/`([^`\s]+)`/g)].map((match) => match[1] ?? ""),
|
|
58
58
|
),
|
|
59
59
|
);
|
|
60
|
-
const plugins = (await fsPromise.readdir(path.join(import.meta.dir, "lint")))
|
|
60
|
+
const plugins = (await fsPromise.readdir(path.join(import.meta.dir, "../lint")))
|
|
61
61
|
.filter((file) => file.endsWith(".grit"))
|
|
62
62
|
.map((file) => file.slice(0, -".grit".length));
|
|
63
63
|
const gates: readonly string[] = MaintainabilityContract.ruleIds.filter(
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import fsPromise from "node:fs/promises";
|
|
2
2
|
import { input, select } from "@inquirer/prompts";
|
|
3
|
-
|
|
3
|
+
import { getDirname } from "../util/fileSys";
|
|
4
4
|
import { ConventionSet } from "./conventionSet";
|
|
5
|
-
import { getDirname } from "./fileSys";
|
|
6
5
|
|
|
7
6
|
interface FileUpdateRequestProps {
|
|
8
7
|
context: string;
|
|
@@ -11,7 +10,7 @@ interface FileUpdateRequestProps {
|
|
|
11
10
|
export class Prompter {
|
|
12
11
|
static async #getGuidelineRoot() {
|
|
13
12
|
const dirname = getDirname(import.meta.url);
|
|
14
|
-
const candidates = [`${dirname}/guidelines`, `${dirname}
|
|
13
|
+
const candidates = [`${dirname}/guidelines`, `${dirname}/../../cli/guidelines`];
|
|
15
14
|
for (const candidate of candidates) {
|
|
16
15
|
try {
|
|
17
16
|
await fsPromise.access(candidate);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
|
-
import { ApplicationBuildReporter } from "@akanjs/devkit/applicationBuildReporter";
|
|
2
|
+
import { ApplicationBuildReporter } from "@akanjs/devkit/app/applicationBuildReporter";
|
|
3
3
|
import { resolveSsrPageEntriesForApp } from "@akanjs/devkit/artifact/implicitRootLayout";
|
|
4
4
|
import { computeRouteSeedIndex, saveRouteSeedIndex } from "@akanjs/devkit/artifact/routeSeedIndex";
|
|
5
5
|
import type { App } from "@akanjs/devkit/commandDecorators";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { describe, expect, test } from "bun:test";
|
|
2
2
|
import path from "node:path";
|
|
3
|
-
import { createTempApp, tempRoots, writeText } from "../testHelpers";
|
|
3
|
+
import { createTempApp, tempRoots, writeText } from "../test/testHelpers";
|
|
4
4
|
import { BuildBatchRunner } from "./buildBatchRunner";
|
|
5
5
|
|
|
6
6
|
const track = tempRoots();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { describe, expect, test } from "bun:test";
|
|
2
2
|
import path from "node:path";
|
|
3
|
-
import { tempDirs } from "../testHelpers";
|
|
3
|
+
import { tempDirs } from "../test/testHelpers";
|
|
4
4
|
import { BuilderChannel } from "./builderChannel";
|
|
5
5
|
|
|
6
6
|
const tempDir = tempDirs("builder-channel-");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { App } from "@akanjs/devkit/commandDecorators";
|
|
2
|
-
import { FrameworkGraph } from "@akanjs/devkit/frameworkGraph";
|
|
3
|
-
import { GitRevision } from "@akanjs/devkit/gitRevision";
|
|
4
|
-
import { WorkspaceGraph } from "@akanjs/devkit/workspaceGraph";
|
|
2
|
+
import { FrameworkGraph } from "@akanjs/devkit/docs/frameworkGraph";
|
|
3
|
+
import { GitRevision } from "@akanjs/devkit/workspace/gitRevision";
|
|
4
|
+
import { WorkspaceGraph } from "@akanjs/devkit/workspace/workspaceGraph";
|
|
5
5
|
import type { BuildChangesPayload, BuilderGraphReq, BuildFrameworkPayload, BuildGraphPayload } from "akanjs/server";
|
|
6
6
|
|
|
7
7
|
export class BuilderGraphPayloads {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { describe, expect, test } from "bun:test";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import type { BuilderMessage, BuilderReq } from "akanjs/server";
|
|
4
|
-
import { createTempApp, tempRoots, writeText } from "../testHelpers";
|
|
4
|
+
import { createTempApp, tempRoots, writeText } from "../test/testHelpers";
|
|
5
5
|
|
|
6
6
|
const track = tempRoots();
|
|
7
7
|
|
|
@@ -2,8 +2,7 @@ import { rm } from "node:fs/promises";
|
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
// Module paths, never a barrel: the devkit and `frontendBuild` barrels would hold tailwindcss (~40MB), ssh2, ink
|
|
4
4
|
// and the cloud stack for the whole dev session (`entryModuleGraph.test.ts` enforces it).
|
|
5
|
-
import { ApplicationBuildReporter } from "@akanjs/devkit/applicationBuildReporter";
|
|
6
|
-
import { CodegenLock } from "@akanjs/devkit/codegenLock";
|
|
5
|
+
import { ApplicationBuildReporter } from "@akanjs/devkit/app/applicationBuildReporter";
|
|
7
6
|
import type { App } from "@akanjs/devkit/commandDecorators";
|
|
8
7
|
import { AppExecutor, type PageRoot, WorkspaceExecutor } from "@akanjs/devkit/executors";
|
|
9
8
|
import { AutoImportSync } from "@akanjs/devkit/frontendBuild/autoImportSync";
|
|
@@ -18,6 +17,7 @@ import { RouteClientBuilder } from "@akanjs/devkit/frontendBuild/routeClientBuil
|
|
|
18
17
|
import { ServerGraphFile } from "@akanjs/devkit/frontendBuild/serverGraphFile";
|
|
19
18
|
import { SsrDevBundler } from "@akanjs/devkit/frontendBuild/ssrDevBundler";
|
|
20
19
|
import { WatchRootResolver } from "@akanjs/devkit/frontendBuild/watchRootResolver";
|
|
20
|
+
import { CodegenLock } from "@akanjs/devkit/workspace/codegenLock";
|
|
21
21
|
import { Logger } from "akanjs/common";
|
|
22
22
|
import type {
|
|
23
23
|
BaseBuildArtifact,
|
package/index.ts
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
// XXX: types only. A value import from this barrel loads every facet (ink, typescript, ssh2, …) into the process;
|
|
2
|
-
// `export type *` erases at runtime. Import values from the owning facet (`@akanjs/devkit/fileSys`) and never
|
|
3
|
-
// TS1362 by widening an entry back to `export *`.
|
|
2
|
+
// `export type *` erases at runtime. Import values from the owning facet (`@akanjs/devkit/util/fileSys`) and never
|
|
3
|
+
// "fix" a TS1362 by widening an entry back to `export *`.
|
|
4
4
|
export type * from "./akanApp";
|
|
5
5
|
export type * from "./akanConfig";
|
|
6
|
-
export type * from "./
|
|
7
|
-
export type * from "./
|
|
8
|
-
export type * from "./
|
|
9
|
-
export type * from "./applicationBuildRunner";
|
|
10
|
-
export type * from "./applicationTestPreload";
|
|
6
|
+
export type * from "./app/applicationBuildReporter";
|
|
7
|
+
export type * from "./app/applicationBuildRunner";
|
|
8
|
+
export type * from "./app/applicationTestPreload";
|
|
11
9
|
export type * from "./artifact";
|
|
12
10
|
export type * from "./cloud";
|
|
13
11
|
export type * from "./codeAgent";
|
|
14
12
|
export type * from "./commandDecorators";
|
|
15
|
-
export type * from "./
|
|
16
|
-
export type * from "./
|
|
13
|
+
export type * from "./context/akanContext";
|
|
14
|
+
export type * from "./context/akanMcpContract";
|
|
15
|
+
export type * from "./context/recipeScanner";
|
|
17
16
|
export type * from "./executors";
|
|
18
|
-
export type * from "./fileSys";
|
|
19
17
|
export type * from "./frontendBuild";
|
|
20
|
-
export type * from "./
|
|
18
|
+
export type * from "./guideline/prompter";
|
|
21
19
|
export type * from "./incrementalBuilder";
|
|
22
|
-
export type * from "./maintainabilityContract";
|
|
23
20
|
export type * from "./mobile";
|
|
24
|
-
export type * from "./
|
|
25
|
-
export type * from "./
|
|
26
|
-
export type * from "./qualityScanner";
|
|
27
|
-
export type * from "./recipeScanner";
|
|
28
|
-
export type * from "./scanInfo";
|
|
29
|
-
export type * from "./selectModel";
|
|
30
|
-
export type * from "./spinner";
|
|
31
|
-
export type * from "./stripAnsi";
|
|
21
|
+
export type * from "./quality/maintainabilityContract";
|
|
22
|
+
export type * from "./quality/qualityScanner";
|
|
32
23
|
export type * from "./transforms";
|
|
33
|
-
export type * from "./
|
|
34
|
-
export type * from "./
|
|
24
|
+
export type * from "./tunnel/createTunnel";
|
|
25
|
+
export type * from "./typecheck/typeChecker";
|
|
26
|
+
export type * from "./util/fileSys";
|
|
27
|
+
export type * from "./util/selectModel";
|
|
28
|
+
export type * from "./util/spinner";
|
|
29
|
+
export type * from "./util/stripAnsi";
|
|
35
30
|
export type * from "./workflow";
|
|
31
|
+
export type * from "./workspace/dependencyScanner";
|
|
32
|
+
export type * from "./workspace/getRelatedCnsts";
|
|
33
|
+
export type * from "./workspace/packageExportsMap";
|
|
34
|
+
export type * from "./workspace/scanInfo";
|
|
35
|
+
export type * from "./workspace/types";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { afterEach, describe, expect, test } from "bun:test";
|
|
2
2
|
import { mkdir, readdir, writeFile } from "node:fs/promises";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import { tempDirs } from "../testHelpers";
|
|
4
|
+
import { tempDirs } from "../test/testHelpers";
|
|
5
5
|
import { DevStabilityHarness } from "./devStabilityHarness.fixture";
|
|
6
6
|
|
|
7
7
|
const servers: Bun.Server<undefined>[] = [];
|
|
@@ -6,7 +6,7 @@ import path from "node:path";
|
|
|
6
6
|
import { biomeBaseConfig } from "./biomeBase";
|
|
7
7
|
import { Linter, parseBiomeReport } from "./linter";
|
|
8
8
|
|
|
9
|
-
const devkitDir = import.meta.dir;
|
|
9
|
+
const devkitDir = path.resolve(import.meta.dir, "..");
|
|
10
10
|
const [biome, ...biomeArgs] = Linter.biomeCommand(path.resolve(devkitDir, "../../.."));
|
|
11
11
|
|
|
12
12
|
const hookProbe = `export const Early = ({ id }: { id?: string }) => {
|
package/lint/gritRules.test.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { existsSync } from "node:fs";
|
|
|
4
4
|
import { mkdir, mkdtemp, readdir, readFile, rm, writeFile } from "node:fs/promises";
|
|
5
5
|
import os from "node:os";
|
|
6
6
|
import path from "node:path";
|
|
7
|
-
import { Linter } from "
|
|
7
|
+
import { Linter } from "./linter";
|
|
8
8
|
|
|
9
9
|
//? A rule that stops matching reports zero diagnostics, not an error, so a biome upgrade can retire one silently.
|
|
10
10
|
//? Each rule runs alone against a config written here; the path scoping in biome.base.json is deliberately not tested.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { describe, expect, test } from "bun:test";
|
|
2
2
|
import { tmpdir } from "node:os";
|
|
3
3
|
import path from "node:path";
|
|
4
|
+
import { hasBiome } from "../test/testHelpers";
|
|
4
5
|
import { type BiomeReport, Linter, parseBiomeReport } from "./linter";
|
|
5
|
-
import { hasBiome } from "./testHelpers";
|
|
6
6
|
|
|
7
7
|
const reportOf = (diagnostics: BiomeReport["diagnostics"]): string =>
|
|
8
8
|
JSON.stringify({ summary: { errors: diagnostics?.length ?? 0, warnings: 0 }, diagnostics });
|
|
@@ -2,7 +2,7 @@ import { afterAll, describe, expect, test } from "bun:test";
|
|
|
2
2
|
import { mkdirSync, readdirSync, readFileSync, statSync, writeFileSync } from "node:fs";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import type { AkanBinConfig, BinPlatform } from "../akanConfig";
|
|
5
|
-
import { tempDirs } from "../testHelpers";
|
|
5
|
+
import { tempDirs } from "../test/testHelpers";
|
|
6
6
|
import { DesktopBin } from "./desktopBin";
|
|
7
7
|
|
|
8
8
|
const makeTempRoot = tempDirs("akan-desktop-bin-");
|
|
@@ -4,7 +4,7 @@ import { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import * as nativeApi from "akanjs/native/api";
|
|
6
6
|
import { AkanAppConfig } from "../akanConfig";
|
|
7
|
-
import { tempDirs } from "../testHelpers";
|
|
7
|
+
import { tempDirs } from "../test/testHelpers";
|
|
8
8
|
import type { DesktopArch } from "./desktopBin";
|
|
9
9
|
import { DesktopRelease, type SignatureTool } from "./desktopRelease";
|
|
10
10
|
import type { DesktopPlatform } from "./mobileTarget";
|
|
@@ -3,8 +3,8 @@ import { mkdir, writeFile } from "node:fs/promises";
|
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { AkanAppConfig } from "../akanConfig";
|
|
5
5
|
import type { App } from "../commandDecorators";
|
|
6
|
-
import { tempDirs, writeText as write } from "../testHelpers";
|
|
7
|
-
import type { PackageJson } from "../types";
|
|
6
|
+
import { tempDirs, writeText as write } from "../test/testHelpers";
|
|
7
|
+
import type { PackageJson } from "../workspace/types";
|
|
8
8
|
import { DesktopServerStage } from "./desktopServerStage";
|
|
9
9
|
import { NativeApi } from "./nativeApi";
|
|
10
10
|
import { NativeApp } from "./nativeApp";
|
|
@@ -5,7 +5,7 @@ import type { ServerPolicy } from "akanjs/native/api";
|
|
|
5
5
|
import { BUILD_ENV_FILE } from "akanjs/server/lifecycle/buildEnv";
|
|
6
6
|
import type { AkanAppConfig, NativeEnv } from "../akanConfig";
|
|
7
7
|
import type { App } from "../commandDecorators";
|
|
8
|
-
import type { PackageJson } from "../types";
|
|
8
|
+
import type { PackageJson } from "../workspace/types";
|
|
9
9
|
import { DesktopBin } from "./desktopBin";
|
|
10
10
|
|
|
11
11
|
/** What a desktop build hands the native runtime as `desktop.server`. */
|
package/mobile/nativeApi.test.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { describe, expect, test } from "bun:test";
|
|
2
2
|
import { mkdir, realpath, writeFile } from "node:fs/promises";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import { tempDirs } from "../testHelpers";
|
|
4
|
+
import { tempDirs } from "../test/testHelpers";
|
|
5
5
|
import { NativeApi } from "./nativeApi";
|
|
6
6
|
|
|
7
7
|
const makeTempRoot = tempDirs("akan-native-api-");
|
package/mobile/nativeApp.test.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { AkanPlugin } from "akanjs";
|
|
|
4
4
|
import type { AkanNativeTarget } from "../akanConfig";
|
|
5
5
|
import type { App } from "../commandDecorators";
|
|
6
6
|
import { CsrArtifactBuilder } from "../frontendBuild/csrArtifactBuilder";
|
|
7
|
-
import { tempDirs, writeText } from "../testHelpers";
|
|
7
|
+
import { tempDirs, writeText } from "../test/testHelpers";
|
|
8
8
|
import { NativeApp } from "./nativeApp";
|
|
9
9
|
import { NativeConfig } from "./nativeConfig";
|
|
10
10
|
import { NativePublicEnv } from "./nativePublicEnv";
|
|
@@ -5,7 +5,7 @@ import path from "node:path";
|
|
|
5
5
|
import { buildCsp, cspHash, parseCsp } from "../../native/packages/cli/src/lib/csp";
|
|
6
6
|
import { rewriteDevHtml } from "../../native/packages/cli/src/lib/hmr";
|
|
7
7
|
import type { AkanNativeTarget } from "../akanConfig";
|
|
8
|
-
import { tempDirs } from "../testHelpers";
|
|
8
|
+
import { tempDirs } from "../test/testHelpers";
|
|
9
9
|
import { NativeApi } from "./nativeApi";
|
|
10
10
|
import { NativeConfig } from "./nativeConfig";
|
|
11
11
|
|
|
@@ -2,7 +2,7 @@ import { describe, expect, test } from "bun:test";
|
|
|
2
2
|
import { mkdir, writeFile } from "node:fs/promises";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import type { App } from "../commandDecorators";
|
|
5
|
-
import { tempDirs } from "../testHelpers";
|
|
5
|
+
import { tempDirs } from "../test/testHelpers";
|
|
6
6
|
import { NativePluginFolders } from "./nativePluginFolders";
|
|
7
7
|
|
|
8
8
|
const makeTempRoot = tempDirs("akan-native-plugin-folders-");
|
|
@@ -2,7 +2,7 @@ import { afterEach, describe, expect, test } from "bun:test";
|
|
|
2
2
|
import { createHash } from "node:crypto";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { WorkspaceExecutor } from "../executors";
|
|
5
|
-
import { tempDirs, writeText } from "../testHelpers";
|
|
5
|
+
import { tempDirs, writeText } from "../test/testHelpers";
|
|
6
6
|
import { NativePublicEnv } from "./nativePublicEnv";
|
|
7
7
|
|
|
8
8
|
const makeTempRoot = tempDirs("akan-native-public-env-");
|
|
@@ -2,7 +2,7 @@ import { describe, expect, test } from "bun:test";
|
|
|
2
2
|
import { mkdir, writeFile } from "node:fs/promises";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import type { AkanNativeTarget } from "../akanConfig";
|
|
5
|
-
import { tempDirs } from "../testHelpers";
|
|
5
|
+
import { tempDirs } from "../test/testHelpers";
|
|
6
6
|
import { NativeWebDir } from "./nativeWebDir";
|
|
7
7
|
|
|
8
8
|
const makeTempRoot = tempDirs("akan-native-web-");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { describe, expect, test } from "bun:test";
|
|
2
2
|
import path from "node:path";
|
|
3
|
-
import { tempDirs, writeText as write } from "../testHelpers";
|
|
3
|
+
import { tempDirs, writeText as write } from "../test/testHelpers";
|
|
4
4
|
import { ServerBundleSecrets } from "./serverBundleSecrets";
|
|
5
5
|
|
|
6
6
|
const makeTempRoot = tempDirs("akan-devkit-server-bundle-secrets-");
|
package/mobile/tarWriter.test.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { describe, expect, test } from "bun:test";
|
|
|
2
2
|
import { createHash } from "node:crypto";
|
|
3
3
|
import { mkdir, readFile } from "node:fs/promises";
|
|
4
4
|
import path from "node:path";
|
|
5
|
-
import { tempDirs } from "../testHelpers";
|
|
5
|
+
import { tempDirs } from "../test/testHelpers";
|
|
6
6
|
import { TarWriter } from "./tarWriter";
|
|
7
7
|
|
|
8
8
|
const makeDir = tempDirs("akan-tar-writer-");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { describe, expect, test } from "bun:test";
|
|
2
2
|
import path from "node:path";
|
|
3
|
-
import { tempDirs, writeText } from "../testHelpers";
|
|
3
|
+
import { tempDirs, writeText } from "../test/testHelpers";
|
|
4
4
|
import { UpdatePackFolder } from "./updatePackFolder";
|
|
5
5
|
|
|
6
6
|
const makeTempRoot = tempDirs("akan-update-pack-");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akanjs/devkit",
|
|
3
|
-
"version": "3.2.0-rc.
|
|
3
|
+
"version": "3.2.0-rc.16",
|
|
4
4
|
"sourceType": "module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -37,11 +37,175 @@
|
|
|
37
37
|
"./preview": "./preview/index.ts",
|
|
38
38
|
"./transforms": "./transforms/index.ts",
|
|
39
39
|
"./workflow": "./workflow/index.ts",
|
|
40
|
+
"./abstractDoc": "./quality/abstractDoc.ts",
|
|
41
|
+
"./abstractDoc.ts": "./quality/abstractDoc.ts",
|
|
42
|
+
"./agentAssets": "./guideline/agentAssets.ts",
|
|
43
|
+
"./agentAssets.ts": "./guideline/agentAssets.ts",
|
|
44
|
+
"./agentsIndex": "./guideline/agentsIndex.ts",
|
|
45
|
+
"./agentsIndex.ts": "./guideline/agentsIndex.ts",
|
|
46
|
+
"./akanContext": "./context/akanContext.ts",
|
|
47
|
+
"./akanContext.ts": "./context/akanContext.ts",
|
|
48
|
+
"./akanMcpContract": "./context/akanMcpContract.ts",
|
|
49
|
+
"./akanMcpContract.ts": "./context/akanMcpContract.ts",
|
|
50
|
+
"./akanMcpToolError": "./context/akanMcpToolError.ts",
|
|
51
|
+
"./akanMcpToolError.ts": "./context/akanMcpToolError.ts",
|
|
52
|
+
"./apiReference": "./docs/apiReference.ts",
|
|
53
|
+
"./apiReference.ts": "./docs/apiReference.ts",
|
|
54
|
+
"./appSelectionMemory": "./workspace/appSelectionMemory.ts",
|
|
55
|
+
"./appSelectionMemory.ts": "./workspace/appSelectionMemory.ts",
|
|
56
|
+
"./applicationBuildReporter": "./app/applicationBuildReporter.ts",
|
|
57
|
+
"./applicationBuildReporter.ts": "./app/applicationBuildReporter.ts",
|
|
58
|
+
"./applicationBuildRunner": "./app/applicationBuildRunner.ts",
|
|
59
|
+
"./applicationBuildRunner.ts": "./app/applicationBuildRunner.ts",
|
|
60
|
+
"./applicationTestPreload": "./app/applicationTestPreload.ts",
|
|
61
|
+
"./applicationTestPreload.ts": "./app/applicationTestPreload.ts",
|
|
62
|
+
"./bareErrorScanner": "./quality/bareErrorScanner.ts",
|
|
63
|
+
"./bareErrorScanner.ts": "./quality/bareErrorScanner.ts",
|
|
64
|
+
"./biomeBase": "./lint/biomeBase.ts",
|
|
65
|
+
"./biomeBase.ts": "./lint/biomeBase.ts",
|
|
66
|
+
"./codegenLock": "./workspace/codegenLock.ts",
|
|
67
|
+
"./codegenLock.ts": "./workspace/codegenLock.ts",
|
|
68
|
+
"./commentDensityScanner": "./quality/commentDensityScanner.ts",
|
|
69
|
+
"./commentDensityScanner.ts": "./quality/commentDensityScanner.ts",
|
|
70
|
+
"./componentSizeScanner": "./quality/componentSizeScanner.ts",
|
|
71
|
+
"./componentSizeScanner.ts": "./quality/componentSizeScanner.ts",
|
|
72
|
+
"./componentWriteChainScanner": "./quality/componentWriteChainScanner.ts",
|
|
73
|
+
"./componentWriteChainScanner.ts": "./quality/componentWriteChainScanner.ts",
|
|
74
|
+
"./conventionSet": "./guideline/conventionSet.ts",
|
|
75
|
+
"./conventionSet.ts": "./guideline/conventionSet.ts",
|
|
76
|
+
"./createTunnel": "./tunnel/createTunnel.ts",
|
|
77
|
+
"./createTunnel.ts": "./tunnel/createTunnel.ts",
|
|
78
|
+
"./declarationReader": "./docs/declarationReader.ts",
|
|
79
|
+
"./declarationReader.ts": "./docs/declarationReader.ts",
|
|
80
|
+
"./dependencyScanner": "./workspace/dependencyScanner.ts",
|
|
81
|
+
"./dependencyScanner.ts": "./workspace/dependencyScanner.ts",
|
|
82
|
+
"./deprecatedCommentScanner": "./quality/deprecatedCommentScanner.ts",
|
|
83
|
+
"./deprecatedCommentScanner.ts": "./quality/deprecatedCommentScanner.ts",
|
|
84
|
+
"./endpointReach": "./quality/endpointReach.ts",
|
|
85
|
+
"./endpointReach.ts": "./quality/endpointReach.ts",
|
|
86
|
+
"./envSeed": "./workspace/envSeed.ts",
|
|
87
|
+
"./envSeed.ts": "./workspace/envSeed.ts",
|
|
88
|
+
"./errorCodeReference": "./docs/errorCodeReference.ts",
|
|
89
|
+
"./errorCodeReference.ts": "./docs/errorCodeReference.ts",
|
|
90
|
+
"./errorCodeScan": "./docs/errorCodeScan.ts",
|
|
91
|
+
"./errorCodeScan.ts": "./docs/errorCodeScan.ts",
|
|
92
|
+
"./executors": "./executors/index.ts",
|
|
93
|
+
"./executors.ts": "./executors/index.ts",
|
|
94
|
+
"./fileEditor": "./util/fileEditor.ts",
|
|
95
|
+
"./fileEditor.ts": "./util/fileEditor.ts",
|
|
96
|
+
"./fileSys": "./util/fileSys.ts",
|
|
97
|
+
"./fileSys.ts": "./util/fileSys.ts",
|
|
98
|
+
"./formSetterScanner": "./quality/formSetterScanner.ts",
|
|
99
|
+
"./formSetterScanner.ts": "./quality/formSetterScanner.ts",
|
|
100
|
+
"./frameworkGraph": "./docs/frameworkGraph.ts",
|
|
101
|
+
"./frameworkGraph.ts": "./docs/frameworkGraph.ts",
|
|
102
|
+
"./getRelatedCnsts": "./workspace/getRelatedCnsts.ts",
|
|
103
|
+
"./getRelatedCnsts.ts": "./workspace/getRelatedCnsts.ts",
|
|
104
|
+
"./gitRevision": "./workspace/gitRevision.ts",
|
|
105
|
+
"./gitRevision.ts": "./workspace/gitRevision.ts",
|
|
106
|
+
"./jsonFormatter": "./util/jsonFormatter.ts",
|
|
107
|
+
"./jsonFormatter.ts": "./util/jsonFormatter.ts",
|
|
108
|
+
"./kindBranchScanner": "./quality/kindBranchScanner.ts",
|
|
109
|
+
"./kindBranchScanner.ts": "./quality/kindBranchScanner.ts",
|
|
110
|
+
"./libSource": "./workspace/libSource.ts",
|
|
111
|
+
"./libSource.ts": "./workspace/libSource.ts",
|
|
112
|
+
"./linter": "./lint/linter.ts",
|
|
113
|
+
"./linter.ts": "./lint/linter.ts",
|
|
114
|
+
"./maintainabilityBaseline": "./quality/maintainabilityBaseline.ts",
|
|
115
|
+
"./maintainabilityBaseline.ts": "./quality/maintainabilityBaseline.ts",
|
|
116
|
+
"./maintainabilityContract": "./quality/maintainabilityContract.ts",
|
|
117
|
+
"./maintainabilityContract.ts": "./quality/maintainabilityContract.ts",
|
|
118
|
+
"./maintainabilityExceptionScanner": "./quality/maintainabilityExceptionScanner.ts",
|
|
119
|
+
"./maintainabilityExceptionScanner.ts": "./quality/maintainabilityExceptionScanner.ts",
|
|
120
|
+
"./maintainabilityLimits": "./quality/maintainabilityLimits.ts",
|
|
121
|
+
"./maintainabilityLimits.ts": "./quality/maintainabilityLimits.ts",
|
|
122
|
+
"./maintainabilityReport": "./quality/maintainabilityReport.ts",
|
|
123
|
+
"./maintainabilityReport.ts": "./quality/maintainabilityReport.ts",
|
|
124
|
+
"./manifestDependencies": "./workspace/manifestDependencies.ts",
|
|
125
|
+
"./manifestDependencies.ts": "./workspace/manifestDependencies.ts",
|
|
126
|
+
"./moduleFieldNames": "./context/moduleFieldNames.ts",
|
|
127
|
+
"./moduleFieldNames.ts": "./context/moduleFieldNames.ts",
|
|
128
|
+
"./packageExportsMap": "./workspace/packageExportsMap.ts",
|
|
129
|
+
"./packageExportsMap.ts": "./workspace/packageExportsMap.ts",
|
|
130
|
+
"./prompter": "./guideline/prompter.ts",
|
|
131
|
+
"./prompter.ts": "./guideline/prompter.ts",
|
|
132
|
+
"./qualityScanner": "./quality/qualityScanner.ts",
|
|
133
|
+
"./qualityScanner.ts": "./quality/qualityScanner.ts",
|
|
134
|
+
"./recipeScanner": "./context/recipeScanner.ts",
|
|
135
|
+
"./recipeScanner.ts": "./context/recipeScanner.ts",
|
|
136
|
+
"./renderMutationScanner": "./quality/renderMutationScanner.ts",
|
|
137
|
+
"./renderMutationScanner.ts": "./quality/renderMutationScanner.ts",
|
|
138
|
+
"./repoIdentity": "./workspace/repoIdentity.ts",
|
|
139
|
+
"./repoIdentity.ts": "./workspace/repoIdentity.ts",
|
|
140
|
+
"./routeJsBudget": "./app/routeJsBudget.ts",
|
|
141
|
+
"./routeJsBudget.ts": "./app/routeJsBudget.ts",
|
|
142
|
+
"./routeSourceValidator": "./app/routeSourceValidator.ts",
|
|
143
|
+
"./routeSourceValidator.ts": "./app/routeSourceValidator.ts",
|
|
144
|
+
"./scanInfo": "./workspace/scanInfo.ts",
|
|
145
|
+
"./scanInfo.ts": "./workspace/scanInfo.ts",
|
|
146
|
+
"./selectModel": "./util/selectModel.ts",
|
|
147
|
+
"./selectModel.ts": "./util/selectModel.ts",
|
|
148
|
+
"./semver": "./util/semver.ts",
|
|
149
|
+
"./semver.ts": "./util/semver.ts",
|
|
150
|
+
"./serviceLoopCallScanner": "./quality/serviceLoopCallScanner.ts",
|
|
151
|
+
"./serviceLoopCallScanner.ts": "./quality/serviceLoopCallScanner.ts",
|
|
152
|
+
"./shellOnlyEnv": "./util/shellOnlyEnv.ts",
|
|
153
|
+
"./shellOnlyEnv.ts": "./util/shellOnlyEnv.ts",
|
|
154
|
+
"./signalMutationIndex": "./quality/signalMutationIndex.ts",
|
|
155
|
+
"./signalMutationIndex.ts": "./quality/signalMutationIndex.ts",
|
|
156
|
+
"./slicePlanner": "./workspace/slicePlanner.ts",
|
|
157
|
+
"./slicePlanner.ts": "./workspace/slicePlanner.ts",
|
|
158
|
+
"./sourceComments": "./quality/sourceComments.ts",
|
|
159
|
+
"./sourceComments.ts": "./quality/sourceComments.ts",
|
|
160
|
+
"./spinner": "./util/spinner.ts",
|
|
161
|
+
"./spinner.ts": "./util/spinner.ts",
|
|
162
|
+
"./sshHostKeys": "./tunnel/sshHostKeys.ts",
|
|
163
|
+
"./sshHostKeys.ts": "./tunnel/sshHostKeys.ts",
|
|
164
|
+
"./sshTunnel": "./tunnel/sshTunnel.ts",
|
|
165
|
+
"./sshTunnel.ts": "./tunnel/sshTunnel.ts",
|
|
166
|
+
"./ssrScanner": "./quality/ssrScanner.ts",
|
|
167
|
+
"./ssrScanner.ts": "./quality/ssrScanner.ts",
|
|
168
|
+
"./storeAccessScanner": "./quality/storeAccessScanner.ts",
|
|
169
|
+
"./storeAccessScanner.ts": "./quality/storeAccessScanner.ts",
|
|
170
|
+
"./storeSource": "./quality/storeSource.ts",
|
|
171
|
+
"./storeSource.ts": "./quality/storeSource.ts",
|
|
172
|
+
"./storeWriteScanner": "./quality/storeWriteScanner.ts",
|
|
173
|
+
"./storeWriteScanner.ts": "./quality/storeWriteScanner.ts",
|
|
174
|
+
"./stripAnsi": "./util/stripAnsi.ts",
|
|
175
|
+
"./stripAnsi.ts": "./util/stripAnsi.ts",
|
|
176
|
+
"./structureScanner": "./quality/structureScanner.ts",
|
|
177
|
+
"./structureScanner.ts": "./quality/structureScanner.ts",
|
|
178
|
+
"./subspace": "./subspace/subspace.ts",
|
|
179
|
+
"./subspace.ts": "./subspace/subspace.ts",
|
|
180
|
+
"./subspaceClone": "./subspace/subspaceClone.ts",
|
|
181
|
+
"./subspaceClone.ts": "./subspace/subspaceClone.ts",
|
|
182
|
+
"./subspaceConfig": "./subspace/subspaceConfig.ts",
|
|
183
|
+
"./subspaceConfig.ts": "./subspace/subspaceConfig.ts",
|
|
184
|
+
"./subspaceReport": "./subspace/subspaceReport.ts",
|
|
185
|
+
"./subspaceReport.ts": "./subspace/subspaceReport.ts",
|
|
186
|
+
"./testHelpers": "./test/testHelpers.ts",
|
|
187
|
+
"./testHelpers.ts": "./test/testHelpers.ts",
|
|
188
|
+
"./testOnlyExportScanner": "./quality/testOnlyExportScanner.ts",
|
|
189
|
+
"./testOnlyExportScanner.ts": "./quality/testOnlyExportScanner.ts",
|
|
190
|
+
"./typeChecker": "./typecheck/typeChecker.ts",
|
|
191
|
+
"./typeChecker.ts": "./typecheck/typeChecker.ts",
|
|
192
|
+
"./types": "./workspace/types.ts",
|
|
193
|
+
"./types.ts": "./workspace/types.ts",
|
|
194
|
+
"./workspaceGraph": "./workspace/workspaceGraph.ts",
|
|
195
|
+
"./workspaceGraph.ts": "./workspace/workspaceGraph.ts",
|
|
196
|
+
"./workspaceLayout": "./workspace/workspaceLayout.ts",
|
|
197
|
+
"./workspaceLayout.ts": "./workspace/workspaceLayout.ts",
|
|
198
|
+
"./writePath": "./quality/writePath.ts",
|
|
199
|
+
"./writePath.ts": "./quality/writePath.ts",
|
|
200
|
+
"./writePlacementScanner": "./quality/writePlacementScanner.ts",
|
|
201
|
+
"./writePlacementScanner.ts": "./quality/writePlacementScanner.ts",
|
|
202
|
+
"./writingActionIndex": "./quality/writingActionIndex.ts",
|
|
203
|
+
"./writingActionIndex.ts": "./quality/writingActionIndex.ts",
|
|
40
204
|
"./*.ts": "./*.ts",
|
|
41
205
|
"./*": "./*.ts"
|
|
42
206
|
},
|
|
43
207
|
"dependencies": {
|
|
44
|
-
"@akanjs/language": "3.2.0-rc.
|
|
208
|
+
"@akanjs/language": "3.2.0-rc.16",
|
|
45
209
|
"@earendil-works/pi-agent-core": "1.3.0",
|
|
46
210
|
"@earendil-works/pi-ai": "1.3.0",
|
|
47
211
|
"@earendil-works/pi-codemode": "1.3.0",
|
|
@@ -50,7 +214,7 @@
|
|
|
50
214
|
"@earendil-works/pi-tui": "1.3.0",
|
|
51
215
|
"@inquirer/prompts": "^8.7.3",
|
|
52
216
|
"@tailwindcss/node": "^4.3.3",
|
|
53
|
-
"akanjs": "3.2.0-rc.
|
|
217
|
+
"akanjs": "3.2.0-rc.16",
|
|
54
218
|
"chalk": "^6.0.1",
|
|
55
219
|
"commander": "^15.0.0",
|
|
56
220
|
"dayjs": "^1.11.23",
|
package/packageExports.test.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { describe, expect, test } from "bun:test";
|
|
2
2
|
import { existsSync } from "node:fs";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import { PackageExportsMap } from "@akanjs/devkit/packageExportsMap";
|
|
4
|
+
import { PackageExportsMap } from "@akanjs/devkit/workspace/packageExportsMap";
|
|
5
5
|
|
|
6
6
|
//? The monorepo resolves subpaths through tsconfig `paths`, which probe extensions; a published consumer goes through
|
|
7
7
|
//? the exports map, matched exactly — so `"./*": "./*"` passed every test here and broke every installed subpath.
|
|
@@ -41,7 +41,9 @@ describe("published exports map", () => {
|
|
|
41
41
|
|
|
42
42
|
test("covers both facet shapes and keeps explicit extensions intact", () => {
|
|
43
43
|
// One wildcard cannot serve bare files, directory facets and already-suffixed specifiers (no `.ts.ts`) at once.
|
|
44
|
-
expect(exportsMap.resolve("./executors")).toBe("./executors.ts");
|
|
44
|
+
expect(exportsMap.resolve("./executors")).toBe("./executors/index.ts");
|
|
45
|
+
expect(exportsMap.resolve("./fileSys")).toBe("./util/fileSys.ts");
|
|
46
|
+
expect(exportsMap.resolve("./workspaceLayout.ts")).toBe("./workspace/workspaceLayout.ts");
|
|
45
47
|
expect(exportsMap.resolve("./frontendBuild")).toBe("./frontendBuild/index.ts");
|
|
46
48
|
expect(exportsMap.resolve("./cloud/cloudApi.ts")).toBe("./cloud/cloudApi.ts");
|
|
47
49
|
expect(exportsMap.resolve("./package.json")).toBe("./package.json");
|
|
@@ -55,4 +57,20 @@ describe("published exports map", () => {
|
|
|
55
57
|
);
|
|
56
58
|
expect(missing).toEqual([]);
|
|
57
59
|
});
|
|
60
|
+
|
|
61
|
+
test("points every literal entry at a file, so a subpath the root once held still loads from its folder", async () => {
|
|
62
|
+
const manifest = (await Bun.file(path.join(packageDir, "package.json")).json()) as {
|
|
63
|
+
exports: Record<string, unknown>;
|
|
64
|
+
};
|
|
65
|
+
const literals = Object.keys(manifest.exports).filter((subpath) => !subpath.includes("*"));
|
|
66
|
+
expect(literals.length).toBeGreaterThan(100);
|
|
67
|
+
expect(exportsMap.findUnreachable(literals)).toEqual([]);
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
test("keeps every source out of the package root but its type barrel", () => {
|
|
71
|
+
const loose = [...new Bun.Glob("*.{ts,tsx}").scanSync({ cwd: packageDir })].filter(
|
|
72
|
+
(file) => file !== "index.ts" && !file.endsWith(".test.ts"),
|
|
73
|
+
);
|
|
74
|
+
expect(loose).toEqual([]);
|
|
75
|
+
});
|
|
58
76
|
});
|
package/piDependencyPins.test.ts
CHANGED
|
@@ -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 "@akanjs/devkit/types";
|
|
3
|
+
import type { PackageJson } from "@akanjs/devkit/workspace/types";
|
|
4
4
|
|
|
5
5
|
//? PackageRunner re-declares pi's sibling pins because neither our `overrides` nor pi's own ranges reach a
|
|
6
6
|
//? consumer's install. The source of truth is pi's `dependencies`: since 1.3.0 it pins every sibling exactly, where
|
|
@@ -5,8 +5,8 @@ import type { PipelineDiagnostic, PipelinePlanContext, PipelinePlanResult } from
|
|
|
5
5
|
import { toError } from "akanjs/common";
|
|
6
6
|
import { AkanAppConfig, AkanWorkspaceConfig } from "../akanConfig";
|
|
7
7
|
import { AppExecutor, type WorkspaceExecutor } from "../executors";
|
|
8
|
-
import { FileSys } from "../fileSys";
|
|
9
8
|
import { resolveMobileTargets } from "../mobile/mobileTarget";
|
|
9
|
+
import { FileSys } from "../util/fileSys";
|
|
10
10
|
import { PipelineCompiler, type PipelineNativeTargets, type PipelineSourceFile } from "./PipelineCompiler";
|
|
11
11
|
|
|
12
12
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
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 } from "../testHelpers";
|
|
4
|
+
import { tempDirs } from "../test/testHelpers";
|
|
5
5
|
import { IdleWatchedProcess } from "./IdleWatchedProcess";
|
|
6
6
|
|
|
7
7
|
const makeRoot = tempDirs("akan-idle-watch-");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { describe, expect, test } from "bun:test";
|
|
2
2
|
import { writeFile } from "node:fs/promises";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import { tempDirs } from "../testHelpers";
|
|
4
|
+
import { tempDirs } from "../test/testHelpers";
|
|
5
5
|
import { BunTestReport } from "./BunTestReport";
|
|
6
6
|
import { PlatformTestRun } from "./PlatformTestRun";
|
|
7
7
|
import type { PackageTestResult, PlatformTestResult } from "./PlatformTestTarget";
|