@akanjs/devkit 3.2.0-rc.2 → 3.2.0-rc.21
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 +350 -11
- package/DEV_RUNTIME_KNOBS.md +4 -3
- package/README.ko.md +3 -2
- package/README.md +4 -2
- package/akanApp/BackendImportGraph.test.ts +1 -1
- package/akanApp/akanApp.host.test.ts +257 -1
- package/akanApp/akanApp.host.ts +146 -1223
- package/akanApp/akanApp.host.wiring.test.ts +727 -0
- package/akanApp/builderGap.ts +68 -0
- package/akanApp/builderRequestRelay.test.ts +93 -0
- package/akanApp/builderRequestRelay.ts +100 -0
- package/akanApp/builderRssRecycler.ts +182 -0
- package/akanApp/devBackend.ts +392 -0
- package/akanApp/devBuildStatusBoard.ts +128 -0
- package/akanApp/devBuilder.ts +196 -0
- package/akanApp/devHostPolicy.test.ts +11 -11
- package/akanApp/devHostPolicy.ts +2 -4
- package/akanApp/devIdleSuspend.test.ts +221 -0
- package/akanApp/devIdleSuspend.ts +192 -0
- package/akanApp/devIdleSuspend.watcher.test.ts +120 -0
- package/akanApp/devRecycler.test.ts +66 -0
- package/akanApp/devRecycler.ts +305 -0
- package/akanApp/processRss.ts +61 -0
- package/akanConfig/akanConfig.test.ts +24 -1
- package/akanConfig/akanConfig.ts +10 -10
- package/akanConfig/akanWorkspaceConfig.ts +1 -1
- package/akanConfig/productionLockfile.ts +1 -1
- package/apiReport/apiDeclarationPrinter.ts +120 -0
- package/apiReport/apiReport.test.ts +526 -0
- package/apiReport/apiReport.ts +232 -0
- package/apiReport/apiReportDiff.ts +160 -0
- package/apiReport/apiReportPolicy.ts +65 -0
- package/apiReport/apiTargets.ts +311 -0
- package/apiReport/changesetBump.ts +19 -0
- package/{applicationBuildReporter.test.ts → app/applicationBuildReporter.test.ts} +21 -0
- package/{applicationBuildReporter.ts → app/applicationBuildReporter.ts} +10 -49
- package/{applicationBuildRunner.test.ts → app/applicationBuildRunner.test.ts} +74 -7
- package/{applicationBuildRunner.ts → app/applicationBuildRunner.ts} +20 -15
- package/{applicationTestPreload.ts → app/applicationTestPreload.ts} +1 -1
- package/{routeJsBudget.test.ts → app/routeJsBudget.test.ts} +48 -12
- package/{routeJsBudget.ts → app/routeJsBudget.ts} +90 -27
- package/{routeSourceValidator.test.ts → app/routeSourceValidator.test.ts} +17 -0
- package/{routeSourceValidator.ts → app/routeSourceValidator.ts} +5 -1
- package/artifact/implicitRootLayout.test.ts +71 -3
- package/artifact/implicitRootLayout.ts +21 -4
- package/artifact/implicitRootLayoutRender.test.tsx +297 -0
- package/biome.base.json +2 -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/akanSystemPrompt.ts +1 -1
- package/codeAgent/agent/codeAgent.test.ts +1 -1
- package/codeAgent/skills/akan-debug/SKILL.md +10 -3
- package/codeAgent/skills/akan-err/SKILL.md +7 -0
- package/codeAgent/skills/akan-mcp/SKILL.md +13 -2
- package/codeAgent/skills/akan-scaffold/SKILL.md +2 -2
- package/codeAgent/skills/akan-transport/SKILL.md +2 -0
- package/codeAgent/skills/akan-validate/SKILL.md +1 -0
- package/codeAgent/tools/AkanCli.ts +1 -1
- package/codeAgent/tools/AkanToolPack.ts +1 -1
- package/codeAgent/tools/McpClient.ts +28 -6
- package/codeAgent/tools/McpToolPack.ts +1 -1
- package/codeAgent/tools/akanCodePlugins.test.ts +14 -2
- package/commandDecorators/argMeta.ts +4 -0
- package/commandDecorators/cliError.ts +72 -0
- package/commandDecorators/command.ts +165 -91
- package/commandDecorators/commandBuilder.ts +1 -1
- package/commandDecorators/commandDecorators.test.ts +191 -16
- package/commandDecorators/exitCodeError.ts +6 -7
- package/commandDecorators/index.ts +1 -0
- package/commandDecorators/targetMeta.ts +1 -0
- package/commandDecorators/workspaceVersionCheck.test.ts +1 -1
- package/commandDecorators/workspaceVersionCheck.ts +1 -1
- package/context/akanContext.ts +576 -0
- package/context/akanContextInspection.ts +296 -0
- package/{akanMcpContract.test.ts → context/akanMcpContract.test.ts} +1 -1
- package/{akanMcpContract.ts → context/akanMcpContract.ts} +33 -263
- package/context/akanMcpToolError.ts +16 -0
- package/context/doctor/agentGuideCheck.ts +81 -0
- package/context/doctor/configLeftoverCheck.ts +35 -0
- package/context/doctor/doctorFindings.ts +70 -0
- package/context/doctor/generatedFreshness.ts +56 -0
- package/context/doctor/moduleShapeCheck.ts +88 -0
- package/context/doctor/recipeDuplicateCheck.ts +39 -0
- package/context/doctor/recipeIndexCheck.ts +87 -0
- package/context/doctor/rootShapeCheck.ts +55 -0
- package/context/doctor/workflowScope.ts +97 -0
- package/{constantFieldNames.test.ts → context/moduleFieldNames.test.ts} +24 -2
- package/context/moduleFieldNames.ts +25 -0
- package/{recipeScanner.test.ts → context/recipeScanner.test.ts} +1 -1
- package/context/safeRead.ts +9 -0
- package/csrE2e/csrE2eHarness.fixture.ts +1 -1
- package/devkitUtils.test.ts +39 -5
- package/{apiReference.test.ts → docs/apiReference.test.ts} +4 -4
- package/{apiReference.ts → docs/apiReference.ts} +2 -2
- package/docs/errorCodeReference.test.ts +282 -0
- package/docs/errorCodeReference.ts +71 -0
- package/docs/errorCodeScan.ts +551 -0
- package/{frameworkGraph.test.ts → docs/frameworkGraph.test.ts} +1 -1
- package/executors/appExecutor.ts +448 -0
- package/executors/commandExecutionError.ts +53 -0
- package/executors/executor.ts +527 -0
- package/{executors.linkFallback.test.ts → executors/executors.linkFallback.test.ts} +1 -1
- package/{executors.test.ts → executors/executors.test.ts} +76 -15
- package/executors/index.ts +8 -0
- package/executors/libExecutor.ts +23 -0
- package/executors/moduleExecutor.ts +18 -0
- package/executors/pkgExecutor.ts +129 -0
- package/executors/sysExecutor.ts +301 -0
- package/executors/workspaceExecutor.ts +277 -0
- package/frontendBuild/allRoutesBuilder.test.ts +17 -5
- package/frontendBuild/allRoutesBuilder.ts +24 -6
- package/frontendBuild/autoImportSync.test.ts +1 -1
- package/frontendBuild/autoImportSync.ts +1 -1
- package/frontendBuild/buildRouteClient.test.ts +1 -1
- package/frontendBuild/bundleDefine.ts +2 -0
- package/frontendBuild/clientBuildTypes.ts +5 -2
- package/frontendBuild/clientEntriesBundler.test.ts +1 -1
- package/frontendBuild/clientEntryDiscovery.test.ts +58 -0
- package/frontendBuild/clientEntryDiscovery.ts +25 -6
- 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 +7 -38
- 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 +3 -3
- package/frontendBuild/hmrWatcher.stop.test.ts +63 -0
- package/frontendBuild/hmrWatcher.test.ts +1 -1
- package/frontendBuild/hmrWatcher.ts +22 -1
- package/frontendBuild/mcpAppViewBuilder.test.ts +1 -1
- package/frontendBuild/mcpAppViewBuilder.ts +1 -1
- package/frontendBuild/nativeCore.test.ts +148 -0
- package/frontendBuild/optionalPeers.test.ts +36 -8
- package/frontendBuild/pagesBundleBuilder.test.ts +2 -3
- package/frontendBuild/pagesBundleBuilder.ts +1 -1
- package/frontendBuild/precompressArtifacts.test.ts +1 -1
- package/frontendBuild/precompressArtifacts.ts +1 -1
- package/frontendBuild/serverGraphFile.ts +1 -1
- package/frontendBuild/sourceMtimeIndex.test.ts +1 -1
- package/frontendBuild/ssrBaseArtifactBuilder.test.ts +26 -0
- package/frontendBuild/ssrBaseArtifactBuilder.ts +23 -19
- package/frontendBuild/ssrDevBundler.test.ts +1 -1
- package/frontendBuild/vendorImportScanner.test.ts +25 -4
- package/frontendBuild/vendorImportScanner.ts +25 -10
- 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} +2 -2
- package/{agentsIndex.test.ts → guideline/agentsIndex.test.ts} +2 -2
- package/{agentsIndex.ts → guideline/agentsIndex.ts} +13 -10
- package/{conventionSet.test.ts → guideline/conventionSet.test.ts} +7 -4
- package/{conventionSet.ts → guideline/conventionSet.ts} +1 -1
- package/{prompter.ts → guideline/prompter.ts} +2 -3
- package/incrementalBuilder/buildBatch.proc.ts +14 -4
- package/incrementalBuilder/buildBatchProtocol.ts +2 -0
- package/incrementalBuilder/buildBatchRunner.test.ts +108 -1
- package/incrementalBuilder/buildBatchRunner.ts +17 -4
- package/incrementalBuilder/builderBoot.ts +106 -0
- package/incrementalBuilder/builderBuildStatus.ts +23 -0
- package/incrementalBuilder/builderChannel.test.ts +1 -1
- package/incrementalBuilder/builderChannel.ts +11 -0
- package/incrementalBuilder/builderGraphPayloads.ts +3 -3
- package/incrementalBuilder/builderLanes.ts +157 -0
- package/incrementalBuilder/builderWatch.ts +213 -0
- package/incrementalBuilder/csrRegistry.ts +234 -0
- package/incrementalBuilder/incrementalBuilder.host.test.ts +30 -1
- package/incrementalBuilder/incrementalBuilder.host.ts +10 -22
- package/incrementalBuilder/incrementalBuilder.proc.test.ts +93 -2
- package/incrementalBuilder/incrementalBuilder.proc.ts +81 -823
- package/incrementalBuilder/ssrRegistry.ts +278 -0
- package/index.ts +22 -22
- package/integration/devStability.integration.test.ts +62 -56
- package/integration/devStabilityHarness.test.ts +1 -1
- package/lint/__fixtures__/no-import-common-err/bad.tsx +13 -0
- package/lint/__fixtures__/no-import-common-err/good.tsx +12 -0
- 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/lint/no-import-common-err.grit +31 -0
- package/lint/no-init-fetch-in-client.grit +1 -1
- package/lint/no-web-only-api-outside-webkit.grit +3 -3
- 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/preview/PreviewView.ts +32 -11
- package/preview/previewView.test.ts +76 -9
- package/{abstractDoc.test.ts → quality/abstractDoc.test.ts} +2 -2
- package/{abstractDoc.ts → quality/abstractDoc.ts} +1 -1
- package/quality/bareErrorScanner.ts +126 -0
- package/{maintainabilityBaseline.test.ts → quality/maintainabilityBaseline.test.ts} +73 -0
- package/{maintainabilityBaseline.ts → quality/maintainabilityBaseline.ts} +97 -9
- package/{maintainabilityContract.test.ts → quality/maintainabilityContract.test.ts} +383 -2
- package/{maintainabilityContract.ts → quality/maintainabilityContract.ts} +151 -29
- package/{maintainabilityExceptionScanner.test.ts → quality/maintainabilityExceptionScanner.test.ts} +15 -1
- package/{maintainabilityExceptionScanner.ts → quality/maintainabilityExceptionScanner.ts} +5 -1
- package/{maintainabilityLimits.ts → quality/maintainabilityLimits.ts} +12 -0
- package/{maintainabilityReport.ts → quality/maintainabilityReport.ts} +20 -3
- package/{qualityScanner.test.ts → quality/qualityScanner.test.ts} +1 -1
- package/{qualityScanner.ts → quality/qualityScanner.ts} +8 -8
- package/{storeAccessScanner.ts → quality/storeAccessScanner.ts} +15 -2
- package/{subspace.test.ts → subspace/subspace.test.ts} +9 -3
- package/{subspace.ts → subspace/subspace.ts} +5 -5
- package/{subspaceClone.ts → subspace/subspaceClone.ts} +8 -8
- package/{subspaceConfig.ts → subspace/subspaceConfig.ts} +5 -1
- package/{testHelpers.ts → test/testHelpers.ts} +37 -1
- package/transforms/barrelAnalyzer.ts +26 -8
- 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 +29 -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 +6 -2
- package/{typeChecker.test.ts → typecheck/typeChecker.test.ts} +1 -1
- package/{typeChecker.ts → typecheck/typeChecker.ts} +1 -1
- package/typecheck/typecheck.proc.ts +4 -3
- package/typecheck/typecheckFailure.ts +7 -2
- package/util/errorReport.ts +66 -0
- package/{jsonFormatter.test.ts → util/jsonFormatter.test.ts} +1 -1
- package/workflow/artifacts.ts +8 -7
- package/workflow/constantSource.ts +187 -0
- package/workflow/dictionarySource.ts +184 -0
- package/workflow/executor.ts +6 -9
- package/workflow/fieldExpression.ts +153 -0
- package/workflow/fieldLabel.ts +61 -0
- package/workflow/fieldOrder.ts +117 -0
- package/workflow/fieldType.ts +93 -0
- package/workflow/guardCatalog.test.ts +1 -1
- package/workflow/index.ts +2 -0
- package/workflow/keyRename.ts +1 -1
- package/workflow/moduleIndex.test.ts +2 -2
- package/workflow/moduleIndex.ts +2 -2
- package/workflow/modulePaths.ts +27 -0
- package/workflow/mutationScaffold.ts +7 -15
- package/workflow/mutationSource.ts +2 -1
- package/workflow/plainName.ts +28 -0
- package/workflow/plan.ts +15 -9
- package/workflow/primitiveReport.ts +78 -0
- package/workflow/rolloutGate.test.ts +1 -1
- package/workflow/rolloutGate.ts +1 -1
- package/workflow/serviceSource.ts +33 -0
- package/workflow/signalSource.ts +96 -0
- package/workflow/source.ts +50 -1105
- package/workflow/sourceAst.ts +30 -0
- package/workflow/sourceImports.ts +105 -0
- package/workflow/sourceText.ts +13 -0
- package/workflow/templateSource.ts +30 -0
- package/workflow/testSource.ts +31 -0
- package/workflow/types.ts +1 -1
- package/workflow/uiPolicy.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} +21 -10
- 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} +85 -1
- package/{workspaceGraph.ts → workspace/workspaceGraph.ts} +41 -6
- package/{workspaceLayout.test.ts → workspace/workspaceLayout.test.ts} +1 -1
- package/{workspaceLayout.ts → workspace/workspaceLayout.ts} +3 -1
- package/akanContext.ts +0 -1084
- package/constantFieldNames.ts +0 -18
- package/executors.ts +0 -1749
- /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/{biomeBase.ts → lint/biomeBase.ts} +0 -0
- /package/{linter.ts → lint/linter.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/{maintainabilityReport.test.ts → quality/maintainabilityReport.test.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/{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
|
@@ -13,7 +13,7 @@ or {
|
|
|
13
13
|
$access <: or { `navigator.share`, `navigator.canShare` },
|
|
14
14
|
register_diagnostic(
|
|
15
15
|
span = $access,
|
|
16
|
-
message = "Android's WebView has no Web Share, so this does nothing in the app. Move it into a `webkit/` hook that branches on `isNativeApp()` from `akanjs/client
|
|
16
|
+
message = "Android's WebView has no Web Share, so this does nothing in the app. Move it into a `webkit/` hook that branches on `isNativeApp()` from `akanjs/client`; the runtime's `share` plugin is the app side.",
|
|
17
17
|
severity = "warn"
|
|
18
18
|
)
|
|
19
19
|
},
|
|
@@ -21,7 +21,7 @@ or {
|
|
|
21
21
|
$access <: or { `navigator.serviceWorker`, `Notification.requestPermission`, `Notification.permission` },
|
|
22
22
|
register_diagnostic(
|
|
23
23
|
span = $access,
|
|
24
|
-
message = "A native app page has no service worker or Notification API. Keep this in a `webkit/` hook behind `isNativeApp()`; native push is `push` from `akanjs/client/native`, and `usePushNotification` in libs/util wraps both.",
|
|
24
|
+
message = "A native app page has no service worker or Notification API. Keep this in a `webkit/` hook behind `isNativeApp()`; native push is `push` from `akanjs/client/native/push`, and `usePushNotification` in libs/util wraps both.",
|
|
25
25
|
severity = "warn"
|
|
26
26
|
)
|
|
27
27
|
},
|
|
@@ -37,7 +37,7 @@ or {
|
|
|
37
37
|
$access <: `navigator.vibrate`,
|
|
38
38
|
register_diagnostic(
|
|
39
39
|
span = $access,
|
|
40
|
-
message = "iOS has no `navigator.vibrate`. Use `haptics` from `akanjs/client/native` in a `webkit/` hook.",
|
|
40
|
+
message = "iOS has no `navigator.vibrate`. Use `haptics` from `akanjs/client/native/haptics` in a `webkit/` hook.",
|
|
41
41
|
severity = "warn"
|
|
42
42
|
)
|
|
43
43
|
}
|
|
@@ -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.21",
|
|
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.21",
|
|
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.21",
|
|
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";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { describe, expect, test } from "bun:test";
|
|
2
2
|
import { unlink } from "node:fs/promises";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import { tempDirs, writeText } from "../testHelpers";
|
|
4
|
+
import { tempDirs, writeText } from "../test/testHelpers";
|
|
5
5
|
import { TestSnapshot } from "./TestSnapshot";
|
|
6
6
|
|
|
7
7
|
const makeRoot = tempDirs("akan-snapshot-");
|
package/preview/PreviewView.ts
CHANGED
|
@@ -77,18 +77,12 @@ export class PreviewView {
|
|
|
77
77
|
}: PreviewProbeOptions = {},
|
|
78
78
|
): Promise<PreviewProbeResult> {
|
|
79
79
|
const logs: string[] = [];
|
|
80
|
-
const view = PreviewView.#
|
|
80
|
+
const view = await PreviewView.#start(
|
|
81
|
+
() => PreviewView.#open({ width, height, engine, onConsole: (line) => logs.push(line) }),
|
|
82
|
+
engine,
|
|
83
|
+
{ startTimeoutMs, timeoutMs },
|
|
84
|
+
);
|
|
81
85
|
try {
|
|
82
|
-
//? A browser that missed its start bound may still come up, so a later page retries it within only its own bound.
|
|
83
|
-
const startMs = PreviewView.#stalled.has(engine) ? Math.min(startTimeoutMs, timeoutMs) : startTimeoutMs;
|
|
84
|
-
const stalled = new Error(`Timed out starting the ${engine} browser after ${startMs / 1_000} s.`);
|
|
85
|
-
await PreviewView.#within(view.navigate("about:blank"), Date.now() + startMs, stalled).then(
|
|
86
|
-
() => PreviewView.#stalled.delete(engine),
|
|
87
|
-
(error: unknown) => {
|
|
88
|
-
if (error === stalled) PreviewView.#stalled.add(engine);
|
|
89
|
-
throw error;
|
|
90
|
-
},
|
|
91
|
-
);
|
|
92
86
|
const deadline = Date.now() + timeoutMs;
|
|
93
87
|
const within = <T>(work: Promise<T>, what: string) =>
|
|
94
88
|
PreviewView.#within(
|
|
@@ -120,6 +114,33 @@ export class PreviewView {
|
|
|
120
114
|
}
|
|
121
115
|
}
|
|
122
116
|
|
|
117
|
+
static async #start(
|
|
118
|
+
open: () => WebViewLike,
|
|
119
|
+
engine: PreviewEngine,
|
|
120
|
+
{ startTimeoutMs, timeoutMs }: { startTimeoutMs: number; timeoutMs: number },
|
|
121
|
+
) {
|
|
122
|
+
for (let attempt = 1; ; attempt++) {
|
|
123
|
+
//? A browser that missed its start bound may still come up, so a later page retries it within only its own bound.
|
|
124
|
+
//? One that died or was closed instead is spawned afresh by the next view, which gets the full bound.
|
|
125
|
+
const startMs = PreviewView.#stalled.has(engine) ? Math.min(startTimeoutMs, timeoutMs) : startTimeoutMs;
|
|
126
|
+
const stalled = new Error(`Timed out starting the ${engine} browser after ${startMs / 1_000} s.`);
|
|
127
|
+
let view: WebViewLike | undefined;
|
|
128
|
+
try {
|
|
129
|
+
view = open();
|
|
130
|
+
await PreviewView.#within(view.navigate("about:blank"), Date.now() + startMs, stalled);
|
|
131
|
+
PreviewView.#stalled.delete(engine);
|
|
132
|
+
return view;
|
|
133
|
+
} catch (error) {
|
|
134
|
+
await view?.close();
|
|
135
|
+
if (error === stalled) PreviewView.#stalled.add(engine);
|
|
136
|
+
else PreviewView.#stalled.delete(engine);
|
|
137
|
+
if (error === stalled || attempt > 1) throw error;
|
|
138
|
+
//? Bun reaps a browser that died only on a later timer turn; until then `new Bun.WebView()` throws "Failed to spawn Chrome".
|
|
139
|
+
await Bun.sleep(100);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
123
144
|
static async #load(
|
|
124
145
|
view: WebViewLike,
|
|
125
146
|
url: string,
|