@akanjs/devkit 3.2.0-rc.9 → 3.3.0-rc.0
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 +57 -516
- 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 +132 -3
- package/akanApp/akanApp.host.ts +146 -1216
- 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/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 +45 -17
- package/akanConfig/akanConfig.ts +10 -10
- package/akanConfig/akanWorkspaceConfig.ts +1 -1
- package/akanConfig/productionLockfile.ts +1 -1
- package/apiReport/apiReport.test.ts +34 -3
- package/apiReport/apiReportDiff.ts +35 -1
- package/apiReport/apiReportPolicy.ts +3 -2
- package/{applicationBuildReporter.ts → app/applicationBuildReporter.ts} +2 -49
- package/{applicationBuildRunner.test.ts → app/applicationBuildRunner.test.ts} +71 -8
- package/{applicationBuildRunner.ts → app/applicationBuildRunner.ts} +60 -21
- package/{applicationTestPreload.ts → app/applicationTestPreload.ts} +1 -1
- package/{routeJsBudget.test.ts → app/routeJsBudget.test.ts} +17 -1
- package/{routeJsBudget.ts → app/routeJsBudget.ts} +9 -3
- 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 +9 -3
- 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/AkanCodeServices.ts +23 -0
- package/codeAgent/agent/akanCodePaths.ts +1 -1
- package/codeAgent/agent/akanCodeServices.test.ts +54 -0
- package/codeAgent/agent/akanSystemPrompt.ts +1 -1
- package/codeAgent/agent/codeAgent.test.ts +1 -1
- package/codeAgent/skills/akan-debug/SKILL.md +8 -5
- package/codeAgent/skills/akan-err/SKILL.md +7 -0
- package/codeAgent/skills/akan-mcp/SKILL.md +19 -1
- package/codeAgent/skills/akan-scaffold/SKILL.md +1 -1
- package/codeAgent/skills/akan-validate/SKILL.md +3 -3
- package/codeAgent/tools/AkanCli.ts +1 -1
- package/codeAgent/tools/AkanToolPack.ts +2 -2
- package/codeAgent/tools/akanCodePlugins.test.ts +1 -1
- package/commandDecorators/command.ts +35 -6
- package/commandDecorators/commandBuilder.ts +1 -1
- package/commandDecorators/commandDecorators.test.ts +107 -6
- package/commandDecorators/targetMeta.ts +2 -0
- package/commandDecorators/workspaceVersionCheck.test.ts +70 -1
- package/commandDecorators/workspaceVersionCheck.ts +64 -14
- 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} +16 -256
- 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 +42 -0
- package/context/doctor/recipeIndexCheck.ts +87 -0
- package/context/doctor/rootShapeCheck.ts +55 -0
- package/context/doctor/workflowScope.ts +97 -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 +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 +3 -2
- 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 +1 -1
- 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 +19 -6
- 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} +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 +122 -2
- 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.proc.test.ts +101 -7
- package/incrementalBuilder/incrementalBuilder.proc.ts +81 -823
- package/incrementalBuilder/ssrRegistry.ts +282 -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/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 +173 -9
- 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/LinuxDockerTarget.ts +1 -1
- package/platformTest/PlatformTestRun.test.ts +1 -1
- package/platformTest/TestSnapshot.test.ts +1 -1
- package/platformTest/WindowsSshTarget.ts +1 -1
- package/preview/previewView.test.ts +23 -1
- 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} +41 -1
- package/{qualityScanner.ts → quality/qualityScanner.ts} +25 -91
- package/{storeAccessScanner.ts → quality/storeAccessScanner.ts} +15 -2
- package/quality/workspaceSourceFiles.ts +82 -0
- package/{subspace.test.ts → subspace/subspace.test.ts} +25 -4
- 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 +31 -10
- 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 +52 -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 +23 -1
- package/typecheck/projectTypecheck.ts +10 -2
- package/{typeChecker.test.ts → typecheck/typeChecker.test.ts} +1 -1
- package/{typeChecker.ts → typecheck/typeChecker.ts} +5 -4
- package/typecheck/typecheck.proc.ts +6 -2
- package/typecheck/typecheckFailure.ts +1 -1
- package/util/errorReport.ts +66 -0
- package/{jsonFormatter.test.ts → util/jsonFormatter.test.ts} +1 -1
- 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 +2 -1
- package/workflow/guardCatalog.test.ts +1 -1
- 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/plan.ts +2 -1
- 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 -1100
- 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} +1 -1
- package/{workspaceGraph.ts → workspace/workspaceGraph.ts} +1 -1
- package/{workspaceLayout.test.ts → workspace/workspaceLayout.test.ts} +1 -1
- package/{workspaceLayout.ts → workspace/workspaceLayout.ts} +3 -1
- package/akanContext.ts +0 -1083
- package/executors.ts +0 -1749
- /package/{applicationBuildReporter.test.ts → app/applicationBuildReporter.test.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/{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
package/CHANGELOG.md
CHANGED
|
@@ -1,533 +1,74 @@
|
|
|
1
1
|
# @akanjs/devkit
|
|
2
2
|
|
|
3
|
-
## 3.
|
|
3
|
+
## 3.3.0
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
7
|
+
- 038d918: Akan.js 3.2.0. Read **Upgrade notes** before deploying an app that runs 3.1.1: unguarded endpoints, log levels, the `Err` class, loaders, SQLite transactions, exit codes and a CLI version check change behaviour.
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
- Exit 2 (`refused`) stays what it was: a pack that needs a new store build, and a release the Akan Cloud project rejected.
|
|
11
|
-
- Exit 3 (`checkFailed`): `akan verify`, `akan typecheck` and the typecheck of `akan build`, `akan preview` and `akan agent install --check` when they found problems. These exited 1 before.
|
|
12
|
-
- Exit 130 (`interrupted`) for a prompt closed with Ctrl+C, which exited 1.
|
|
13
|
-
- Exit 1 (`failed`, or an `AkanError`'s own code) for anything else, as before.
|
|
14
|
-
- `akan pack-update`, `akan push-update` and `akan register-binary` keep exiting 1 for a usage or unknown-target failure, so their 2 still means only the store-build verdict or the project's refusal. `akan agent` exits 1 for one too, and `akan agent hook` never exits 2, saying on stderr why the hook failed: Claude Code reads a hook's exit 2 as a block.
|
|
9
|
+
**Highlights**
|
|
15
10
|
|
|
16
|
-
|
|
11
|
+
- **`agentService.loop`.** A server-side agent run over the `/mcp` tool catalogue, in-process, with `toolkits`, `remotes` (other MCP servers), `clientTools` (a screen the member has open), `ask` (a question parked between runs), `answer`, overflow retry, and a read rule that counts what a run reads as untrusted. `plug(AgentToolsRole)` runs the catalogue as a given account; `mcp: "agent"` keeps an entry off `/mcp` for the in-process agent only.
|
|
12
|
+
- **Akan Graph and Akan Studio.** `get_graph` (MCP) returns the Akan Graph, read from source with no dev server: models, scalars, slices, endpoints with guards, services, jobs, adaptors, routes, layouts, the framework itself, and the Change Map for `since: <revision>`. `akan start` serves Studio at `/_akan/studio`, and it opens from the CLI and the editor.
|
|
13
|
+
- **Editor support.** `@akanjs/language` resolves names Akan.js derives (`fetch.initMemoInPublic`, `st.do.setNameOnMemo`, `this.memoService.listByName`) and ships `akan-language-server`. The VS Code / Cursor extension opens a module side by side, runs `akan verify` and workflows, and publishes from CI to the VS Marketplace and Open VSX.
|
|
14
|
+
- **Secure defaults.** Signals, websocket rooms, MCP, OAuth, the agent relay, the server edge, the ops channel, native builds, `akan code`, the CLI's tunnels and workflows, and the in-page agent each take the narrower default. Every change names how to get the old behaviour back.
|
|
15
|
+
- **Faster pages.** Every SSR page loads 72K less framework JS (22K less Brotli); client modules preload from `<head>`; Link prefetch; Flight rows share inline scripts; one preloaded font face per family; faster RSC decoding and store writes; a route JS budget (`akan build --check-budget`).
|
|
16
|
+
- **Realtime.** Per-socket, per-caller and per-model room limits, subscribe budgets, gateway subscribe acks, per-model live-sync routing, Redis room sharding, resync after a Redis outage, and an outbox limit for a down socket.
|
|
17
|
+
- **Native.** `external-view` on Linux (Wayland and X11) with `sendKey`; Android 12 launch crash fixed; AppImage relaunch; tighter CSP, external-link, temp-folder and update defaults.
|
|
17
18
|
|
|
18
|
-
Upgrade
|
|
19
|
-
|
|
20
|
-
- 29756e1: `akan lint`, `akan lint-all` and `akan verify` now hold each package under a workspace's `pkgs/` to a structure budget, as they already hold apps and libs: a file up to 800 lines, a function up to 150 lines (`akan.size.function`) and a class up to 60 members (`akan.size.class`). Tests and their fixtures (`*.test`, `*.spec`, `*.fixture`, `*.instance` and `*.bench` files, and `test/`, `tests/`, `__tests__/`, `__fixtures__/` and `__mocks__/` folders), `.d.ts` files, re-export barrels and a package's `examples/` are left out, and a package in a git repository is listed through git, so ignored files are never measured. Each package keeps its own `akan.baseline.json`; `akan quality baseline` now seeds one for each package too, `akan quality scan` reports its exceptions, and packing a package that would publish one fails.
|
|
19
|
+
**Upgrade notes**
|
|
21
20
|
|
|
22
|
-
|
|
21
|
+
- **Guards.** An endpoint, slice query or pubsub room that declares no guards is refused with 403; open it with `[Public]`. Outside local operation a server whose signals declare a guardless endpoint stops at boot and names each one. `AKAN_UNGUARDED_ENDPOINTS=open` answers them as before. A slice whose `guards` leaves out `root` mounts no root list or insight. `guard(name)` refuses until `canPass` is overridden.
|
|
22
|
+
- **`Err`.** Every `Err` is one class, `Err` from `akanjs/common`, and an `AkanError`. `err.code` is always set (a generalized failure's code, else its status's code), so `{ ...err }` now holds it. `Err.NotFound.is(error)` also requires status 404. Check across a page bundle and the framework with `Err.is`, not `instanceof`. `setErrorConstructor`, `HttpClientOptions.ErrorCls` and `FetchClient.build`'s `Err` option are deprecated.
|
|
23
|
+
- **Coded failures.** The signal, service, server, route-tree, RSC and client facets throw coded `AkanError`s instead of a bare `Error`; messages and statuses are unchanged. A production 500 shows the status reason and code only. `bun run error:codes` lists the codes. A failed tool call and a failed agent turn carry a `code`.
|
|
24
|
+
- **Log levels.** A failure under 500 logs at `warn`, a 5xx is one `error` record with `type` and `stack`, a declared error, a 429 and a by-id read of a missing id log at `debug`, and a crashed RSC worker logs at `warn`. Alerts and `--level error` filters see fewer lines. A page `redirect()` is `ok` at `info` with its 3xx status, and `notFound()` is `warn` with 404. Every log record reaches ndjson stdout, and a request line is never folded.
|
|
25
|
+
- **Loaders.** A loader no longer shares a batch between a transaction and the requests outside it, and each caller gets its own document. A loader that keeps its keys forgets them when the model is written; a write by query clears every kept key of the model, and `cache: true` keeps the 10,000 most recent keys. A custom `DatabaseAdaptor` can implement `transactionKey()`; a `batchScheduleFn` must run its callback in the caller's async context.
|
|
26
|
+
- **SQLite.** Work outside an open `this.transaction()` no longer sees its uncommitted rows, on `:memory:` or a non-WAL file either. `SqliteDatabase.getMeta` and `listMeta` return promises, so await them. A reader pays one database copy per transaction on `:memory:`; past a few tens of megabytes, put the database in a file.
|
|
27
|
+
- **Indexes.** A boot keeps an index the release no longer declares and warns about it. After every instance runs this release, run `akan migrate <app> prune-indexes` once. `migrationActions` gains `indexes` and `prune-indexes`, so code that switches over every action needs the two cases.
|
|
28
|
+
- **Websockets.** A socket holds at most 256 rooms, a caller 2,000 per process, a model 50,000 evaluated live rooms; a subscribe past a limit gets a 429 frame coded `liveRoomLimit`. Subscribes are budgeted at 1,000 a minute per socket and 10,000 per caller. A `pubsub` room's `onResync` also runs after Redis returns; a custom `WebsocketAdaptor.onRecovered` handler now takes the held rooms. A down socket keeps at most 100 emits.
|
|
29
|
+
- **Gateway.** `/_akan/app/ready` answers 503 while no replica's RSC worker can render. A subscribe is acknowledged once the gateway routes the room.
|
|
30
|
+
- **CLI.** A CLI whose major.minor differs from the workspace's `akanjs` refuses every command that writes, with exit 2; run `akan update`, or set `AKAN_ALLOW_VERSION_MISMATCH=1`. Exit codes: 2 for usage and unknown targets, 3 for failed checks (`verify`, `typecheck`), 130 for an interrupted prompt; a script that tested for exit 1 tests for non-zero. With `--json`, a failure ends stdout with `{"ok":false,"error":"<message>","code":"<code>"}`. `akan doctor` exits 1 on `"status": "failed"`; `akan workflow plan`, `apply` and `validate` exit non-zero on failure. A shell `AKAN_PUBLIC_ENV` now outranks the workspace `.env`, and `akan build --env <env>` builds another environment.
|
|
31
|
+
- **Package budget.** `akan lint` and `akan verify` hold each package under `pkgs/` to the file, function and class budget. Run `akan quality baseline` once in a workspace whose packages are over it. `akan verify` also typechecks every app and lib that uses a changed lib.
|
|
32
|
+
- **Secure defaults.**
|
|
33
|
+
- Write tools in the in-page agent confirm by default (`submit`, `create`, `update`, `send`, `export` and the rest, not only `remove`); opt out with `{ confirm: false }`. Page text reaches the model fenced as data, and a transcript belongs to one account.
|
|
34
|
+
- A `FetchClient` sends its session token only to its own origin; pass `clone({ origin, jwt })` to send one elsewhere.
|
|
35
|
+
- A connection idle for 120 s closes (`AKAN_IDLE_TIMEOUT`), a body is capped at 128 MiB (`AKAN_MAX_UPLOAD_BODY`) and 16 MiB for a non-multipart one (`AKAN_MAX_REQUEST_BODY`), `akan start` binds 127.0.0.1 (`AKAN_LISTEN_HOST=*` restores it), and HTML carries `Cache-Control`, HSTS and a `frame-ancestors` policy.
|
|
36
|
+
- The dev server answers only `localhost`, `*.localhost` and IP hosts unless `AKAN_ALLOWED_HOSTS` is set.
|
|
37
|
+
- A 500 shows its message and stack only under `akan start`, `NODE_ENV` `development` or `test`, or `AKAN_ERROR_DETAIL=1`.
|
|
38
|
+
- `ops snapshot` outside local operation needs `AKAN_BACKUP_RECIPIENT` or `--allow-plaintext`; the ops key must differ from `AKAN_MACHINE_PUBLIC_KEY`.
|
|
39
|
+
- `/__rsc/manifest` is dev-only (`AKAN_EXPOSE_RSC_MANIFEST=1`), and health detail, metrics and devtools need a local dev runtime.
|
|
40
|
+
- Filter arguments are parsed against their declared type and an `Any` filter argument throws at declaration; `q.search()` text is capped at 32 terms and 1000 characters.
|
|
41
|
+
- The image optimizer refuses non-public remote hosts (`images.dangerouslyAllowLocalIP`).
|
|
42
|
+
- The CLI's tunnels listen on loopback and check the SSH host key, workflow commands run without a shell, `akan download-env` copies only env and secret files, a Dockerfile built with `AKAN_PUBLIC_ENV=local` needs `--build-arg AKAN_ALLOW_LOCAL_IMAGE=1`, and `akan code` asks before network access and trusts a repository's MCP servers and extensions only after one terminal approval.
|
|
43
|
+
- MCP rate-limits an unverified bearer by address, checks the browser Origin, and bounds client registration; the agent relay refuses a request past fixed limits with `agent.error.requestRefused` (413) unless a policy sets its own.
|
|
44
|
+
- Native builds ship a Content-Security-Policy, open only `https:`, `mailto:` and `tel:` links, and recheck a downloaded desktop update before installing it; `updates.windowsSigners` and `updates.expiresIn` are new.
|
|
45
|
+
- **UI.** `Field.Switch`'s on position is `primary` (pass `variant="accent"` for the old look), and two `Data.Item` status tags change color. `useCamera` and `useGeoLocation` no longer send the user to Settings after a denial. A page `.head()` can set `theme-color`, and a level that writes an image no longer inherits the image tags above it. `--akan-theme-color` drives the browser's `theme-color`.
|
|
46
|
+
- **Libraries.** The `shared` and `util` libraries `akan install-library` copies are refreshed; compare your copy. In `util`, `security` and `security.jwtSecret` are optional in `ModulesOptions`. `libs/shared` keeps its SSO and refresh cookies on `__Host-` names outside local.
|
|
47
|
+
- **Other.** `LLM` stream endings are read more completely: a cut tool call ends as `length`, and unparseable arguments in a finished answer get `argsError` and the code `invalidArgument`. `ConformanceEnv.has` fails instead of skipping when `AKAN_TEST_REQUIRE_BACKENDS=1`. A new workspace has no `patches/` folder, no `agent:sample:*` scripts and one `setup:agent` script; `create-akan-workspace` no longer hangs when `akan` is not on PATH.
|
|
48
|
+
|
|
49
|
+
**Features**
|
|
50
|
+
|
|
51
|
+
- **Agent.** `Agent.Chat` modals and toasts stack above the panel and its header takes a node; the tool row is the `AgentToolRow` override slot; a restored transcript that ends on an unanswered `askUser` reopens on it; a turn its caller stops is billed at what the provider plausibly charged, and every turn the quota passes is billed.
|
|
52
|
+
- **Rendering and navigation.** `{ static: true }` page apps answer a host that asks for script-less HTML; `i18n.localePrefix: "as-needed"` serves the default locale unprefixed; a route guard receives `{ path }` and `signedIn({ path })` adds `?redirect=`; a failed route level or `Load.Stream` draws a notice with "Try again" in its own place; `router.refresh()` in CSR no longer reloads the document; a lazy chunk the server no longer serves reloads the page once; `forwardVisitor: false` keeps a render cacheable; a query takes `signal` and identical in-flight queries share one request.
|
|
53
|
+
- **Data.** `create<Model>Many(rows)` runs every row through `_preCreate`, `_postCreate` and the document hooks; `bulkWrite` runs in one transaction; a cascade removes a long array's documents 200 ids at a time; `Binary` arguments are typed `Uint8Array<ArrayBuffer>`; a hidden `.optional()` field is optional in create inputs; store form setters and writes cost about one copy of the state; `onError` on store writes receives the failed request's dictionary error.
|
|
54
|
+
- **Server and ops.** `/_akan/app/ready`; `RestartSchedule` shared by every child-restart loop; a single-flight `cache` endpoint; stopped or failed starts tear down what they brought up; the Redis WebSocket adaptor shards channels per room and model and flushes publishes on shutdown; a log stream stops growing for a client that stops reading; missing assets answer `no-store`.
|
|
55
|
+
- **CLI.** `akan test --parallel=<n>`, `--junit <path>` and `--coverage`; `akan build --env`; a `rename-key` workflow; `akan remove-module pokedex:_billing` removes a service module; `akan create-workspace` works in an existing folder, without sample code, and without a git identity; `akan preview` opens `/_akan/studio`, `/openapi.json` and `/mcp` as written and restarts a dead browser; `akan verify` reports step durations and gives a dictionary hint for a missing key; commands without a terminal take the workspace's only app, lib or package, and remove commands never pick a target themselves; release candidates publish from CI with npm provenance.
|
|
56
|
+
- **Native.** `external-view` and `sendKey` on Linux; Android 12 and 12L launch fix; AppImage relaunch; a `single-instance` pipe that another account cannot own on Windows.
|
|
57
|
+
- **Types and styling.** A new app's default style is Pretendard with -3% letter spacing, even sizes from 12px, 150% line height for wrapping text and `leading-auto` for one line.
|
|
23
58
|
|
|
24
|
-
|
|
59
|
+
**Fixes**
|
|
25
60
|
|
|
26
|
-
|
|
61
|
+
- A dev page keeps its styles after a stylesheet change arrives with a pages rebuild; idle-suspended dev servers apply every save, stay awake when work arrives, and stop cleanly; `[BarrelAnalyzer] ERROR scan failed` is gone; a backend replica's builder answer no longer reaches its replacement.
|
|
62
|
+
- A page that renders a string of 1024 characters or more renders and hydrates whatever its lines say; a page cut off by a disconnected client, or one that streamed an error, is no longer cached; partial RSC commit (`AKAN_PUBLIC_RSC_PARTIAL_COMMIT=1`) patches real pages, replays patches from cache and cancels overtaken navigations.
|
|
63
|
+
- In production, a render error no longer reaches the browser as its message; reading the client address from a crafted forwarded header no longer stalls the server; `happy-dom` peers ask for `^21.0.4`; the pi agent packages move to 1.5.2, dropping undici and minimatch advisories.
|
|
64
|
+
- The build lock records its host and survives a dead remover, a Windows antivirus hold and a devcontainer; `akan` no longer rebuilds the dev CLI from a command it runs; the typecheck behind `akan verify` and `akan build` uses its incremental cache.
|
|
65
|
+
- Internal: the largest classes and methods in `akanjs`, `@akanjs/devkit` and `@akanjs/cli` are split by concern with unchanged public members, and the `akanjs` facets import sibling files instead of their own barrel and list every export by name.
|
|
27
66
|
|
|
28
67
|
### Patch Changes
|
|
29
68
|
|
|
30
|
-
-
|
|
31
|
-
|
|
32
|
-
-
|
|
33
|
-
- **`akan build` for the `local` environment** ends its summary with one line: such a build serves the dev routes to every caller, and a host others can reach needs `AKAN_PUBLIC_ENV=main`, `AKAN_PUBLIC_REPO_NAME` and `AKAN_PUBLIC_SERVE_DOMAIN`. A build for any other environment prints nothing new, and the check that refuses a deployed build with stand-in values is unchanged.
|
|
34
|
-
- **The `akan-page` skill** carries a one-screen API summary: a data-driven `<title>`, an async render, `router.notFound()` and a layout's `.notFound()` / `.error()`, `Link`, and a shallow `router.replace` for a client filter kept in the URL. The page rule names the shallow replace too.
|
|
35
|
-
- **The `akan-service` skill** carries a recipe for pages backed by an external HTTP API: an `adapt()` adapter in `srvkit/` that reads its base URL at boot, a `lib/_<service>` service, a `Public` `query(Any, { nullable: true })` endpoint and its dictionary label, and the page that calls it.
|
|
36
|
-
- **The README's "Inside an existing repository"** runs the creator through `npx -y bun@1.4.4 x …` on a host with only Node and npm, so nothing global is written. It also gives copy-ready `build` and `start` scripts, says a fresh clone builds without a committed env file, and says which environment a `.env`-less build is for and what a deployed host sets instead.
|
|
37
|
-
|
|
38
|
-
- 61fbd7d: `get_graph` takes `since`, a git revision, and returns the Change Map: the Akan Graph of what changed since HEAD forked from that revision, working tree and untracked files included. Every node, field and edge is marked `added`, `removed` or `changed`. The unchanged nodes a changed one calls, or is called by, stay in as context, and `unmapped` lists the changed files under `apps/` or `libs/` that no node covers, each marked the same way. `since: "HEAD"` maps uncommitted work only. Files `.gitignore` covers stay out, a renamed file reads as removed and added, and a CRLF checkout of an unchanged file reads as unchanged. A revision git does not know returns a `graph-since-unknown` diagnostic, and so does one HEAD shares no commit with (a shallow clone, say) instead of comparing with its tip. A revision that starts with `-` also returns it and never reaches git.
|
|
39
|
-
|
|
40
|
-
- **`AkanGraphDiff.between(base, head)`** in `@akanjs/language` diffs two graphs. `index.graph(readText, { digests: true })` gives each member, query, component and field a hash of its body text, so an edit inside a method, or to a field's options, marks it changed and moving it does not.
|
|
41
|
-
- **The change types** (`AkanGraphChange`, `AkanChangeMap`, `AkanChangedFile`) live in `akanjs/common`.
|
|
42
|
-
|
|
43
|
-
- a707354: Akan Studio maps the framework itself, and `pkgs/akanjs/ARCHITECTURE.md` keeps its tables from the source.
|
|
44
|
-
|
|
45
|
-
- **The Framework view** (`/_akan/studio?view=framework`, `akan studio <app> --view framework`) lays the `akanjs` facets and `@akanjs/devkit` out by layer, with their largest classes, and draws value, lazy and type-only imports apart. Under it, one table per process channel names who sends and who handles each message, each linked to its source. It reads `pkgs/akanjs` in this repository and the installed `akanjs` in a consumer workspace (without its bundled `vendor/` and `types/`), and never joins the app's own graph or `get_graph`. The dev builder rebuilds it only when the installed version changes or a save lands under `pkgs/`.
|
|
46
|
-
- **`FrameworkMapBuilder`, `FrameworkChannelReader` and `FrameworkMapDoc`** in `@akanjs/language` build the map with the TypeScript compiler API: facets and their import layers, and for each channel union the classes that write a message's `type` literal or branch on it.
|
|
47
|
-
- **`pkgs/akanjs/ARCHITECTURE.md`** pairs a hand-kept walk through the processes and a request with a generated part between markers. `akan sync-architecture` regenerates that part, and a devkit test fails when it is stale, when a channel is gone, when two facets load values from each other, when a message lacks a recognised sender or handler outside a short list whose other end lies beyond the framework source, or when the hand-kept part names a class the source no longer has.
|
|
48
|
-
- **`AkanIpcMessage` no longer lists `backend-ready`.** The gateway sends it to the dev host, which reads it as a `BuilderMessage`, where it stays; no gateway or child ever handled it.
|
|
49
|
-
|
|
50
|
-
- 4d61170: The Akan Graph follows an app's adaptor wiring further. `applyAdaptor(LlmAdaptorRole, ChatCompletionsLlm)` in an app's or lib's `option.ts` draws a `binds` edge from the role, `adaptor::LlmAdaptorRole`, to the implementation it binds, labelled with the app or lib and located at the call, so a method that calls a plugged role reaches the class that answers it. `get_graph` scoped to an app keeps that app's own bindings, and a lib's binding of a role the app does not bind itself; scoped to a lib or a module it keeps every binding of a role it reaches. A Change Map carries every binding of a role it shows, changed or not, so the binding an app runs stays in view; a binding the app removed no longer hides the lib binding it now runs; and Studio's Change Map for one app keeps only the bindings that app runs. An app service holds the fields its module's lib services plug (`...user.services`), so `this.notifier.getMemo()` in an app method links to the `Notifier` a lib's `MemoService` plugs, where it linked to the `memo` model; a service whose own builder declares the field (`notifier: use<…>()`) inherits nothing. A plug imported from a package outside the workspace, `plug(Stripe)` from `stripe-sdk`, or through a lib's re-export of it (`export { Stripe }`, `export { default as Stripe }`, or `export * from "stripe-sdk"` where the lib declares no `Stripe` itself), is `adaptor:stripe-sdk:Stripe` with the package in `detail`, where it linked to a same-name adaptor the app declares or to an unlocated `adaptor:libs/util:Stripe`. Two adaptors with the same class name in one app or lib are two nodes, each with its own location, digest and `plugs`, and a plug reaches the one its import names. A job's `detail` lists only the options its kind honours: `once` on an `initialize` job, `unlocked` on an `interval` job (`Bun.cron` never overlaps a cron job, so `lock: false` changes nothing there); `cron("0 * * * *" as const)` reads `0 * * * *`.
|
|
51
|
-
|
|
52
|
-
Ids and details that change for a saved graph or a Change Map base:
|
|
53
|
-
|
|
54
|
-
- While two adaptors of one owner share a class name, each is keyed by its file, `adaptor:apps/demo:srvkit/clockB.ts#Clock`; an adaptor whose name no other adaptor of its owner shares keeps `adaptor:<owner>:<Name>`. The Change Map treats the two forms of one declaration as one node, so a second same-name adaptor shows as one added node, not a removal of the first.
|
|
55
|
-
- A plug from a non-workspace package is `adaptor:<package>:<Name>` with the package as `detail`, where it was `adaptor::<Name>` or a workspace adaptor of that name.
|
|
56
|
-
- A job's `detail` drops `once` and `unlocked` where the runtime ignores them, and `as const` from a cron expression.
|
|
57
|
-
|
|
58
|
-
- **`binds`** joins `AkanGraphEdgeKind` in `akanjs/common`.
|
|
59
|
-
- **`FileFacts.adaptorBindings`** in `@akanjs/language`: each `applyAdaptor(role, adaptor)` call a file makes; `AkanIndex.setFile` also reads non-test files whose text mentions `applyAdaptor`. **`ServiceClassFact.fields`**: the names a service's builder declares.
|
|
60
|
-
|
|
61
|
-
- c723713: The Akan Graph keys a guard function by the file that declares it, locates more of a workspace's guards, and stops counting things that are not guards.
|
|
62
|
-
|
|
63
|
-
A guard function a route or layout imports is keyed by its file, as one the page declares already was: `guard:libs/shared:webkit/signedIn.ts#signedIn`. A `canEdit` in `webkit/` and one in `common/` are two nodes, each at its own declaration, and an edit to either marks only that one changed in the Change Map. A guard called through a namespace import (`auth.signedIn()`), or imported under a name a file re-exports (`export { signedIn as hasSession } from "./auth"`), reaches its declaration. A function the guard declares, or a parameter it binds, shadows an import of the same name only inside its own scope, so `[1].forEach((signedIn) => …)` no longer hides a real `signedIn()` beside it. A guard declared after another declarator (`export const ready = true, signedIn = …`) is found, and an overloaded guard's digest covers every signature. Only a file whose text declares or re-exports the name is parsed, so a guard that calls `usePage()` from the generated client no longer parses every page that names it.
|
|
64
|
-
|
|
65
|
-
A function is a guard factory only when it returns a guard, a class that implements `Guard` (also one handed to a wrapper, `withName(class implements Guard {…}, field)`) or a call to a factory, so `const guardCount = countGuards()` is no longer a guard. An import from a package outside the workspace (`@vendor/auth`) resolves to no guard: it no longer links a same-name workspace guard, and a vendor's `Public` no longer reads as the framework's. A factory imported from akanjs or a package makes no guard. A lib's `export *` chain, walked from the path the import names, is followed only when it reaches exactly one workspace lib declaring the name, none of its `export *` names a package, and the lib does not declare, destructure or export the name itself; otherwise the guard stays `guard:<lib>:<Name>` without a location, so a vendor shim no longer links another lib's guard. A class extending a base that is not a known guard is no guard, even when a lib declares a guard of that name.
|
|
66
|
-
|
|
67
|
-
More guards carry their location: a name a lib re-exports under another name (`export { Admin as AdminGuard }`) reaches the class, and one it re-exports from akanjs is `guard::Public`; `srvkit.SSO.Kakao` reads through the namespace to the lib's map; a map entry a factory makes (`SSO = { Kakao: ssoGuardOf("kakao") }`) is the guard `SSO.Kakao`; a local wrapper of an imported factory, a factory called through a namespace (`srvkit.resourceGuard("pin")`) and a class that extends a guard (`class DemoAdmin extends Admin`) and a factory a lib re-exports under another name (`export { resourceGuard as rg }`) make guards; a guard made in place, `guards: [canEdit("memo")]`, is a node at the call, keyed by its member, callee and ordinal so an edit to its arguments, or to another member's guards, keeps the id. Of two same-name guards in one owner, an import reaches the one its path names. A wrapper's digest covers every factory it can return, and an edit to a factory in another file marks the guards it makes changed instead of listing the file as unmapped.
|
|
68
|
-
|
|
69
|
-
In the Change Map, a declaration whose id moves between `kind:owner:Name` and `kind:owner:<file>#Name` at the same file is one node, so a second same-name guard shows as one addition, not the first one removed and re-added.
|
|
70
|
-
|
|
71
|
-
`get_graph` past the node limit names owners by the nodes it would answer with, changed pages included, so 650 changed routes no longer hide behind one changed lib method. A guard on `const route = page()…; export default route` is no longer read: `RouteSourceValidator` rejects that shape.
|
|
72
|
-
|
|
73
|
-
Ids and details that change for a saved graph or a Change Map base:
|
|
74
|
-
|
|
75
|
-
- An imported guard function's id names its file: `guard:libs/shared:signedIn` is now `guard:libs/shared:webkit/signedIn.ts#signedIn`.
|
|
76
|
-
- A guard name two files of one owner declare is keyed by file, `guard:apps/demo:srvkit/admin.ts#Admin`.
|
|
77
|
-
- A guard made in place is `guard:<owner>:<file>#<model>.<key>:<callee>@<n>`, the `n`th in-place call of that callee in that slice or endpoint key (`…/memo.signal.ts#memo.shareMemo:resourceGuard@1`). Its label, an endpoint's `detail` and the editor hover name the call: `resourceGuard("memo")` where `detail` read `resourceGuard`, or `allow(…)` when the arguments run past 32 characters or a line. A guard read through a namespace's map reads `srvkit.SSO.Kakao` where it read `Kakao`.
|
|
78
|
-
- A map entry a factory makes is `guard:libs/shared:SSO.Kakao` where it was `guard::Kakao` or `guard:<lib>:Kakao`, and a local map's `Roles.Owner` is `guard:apps/demo:Roles.Owner` where it linked `guard:apps/demo:Owner`.
|
|
79
|
-
- A guard a lib re-exports, under its own name or another, or from akanjs, takes the declaring owner's id (`guard:libs/util:Admin`, `guard::Public`) where it took the re-exporting lib's.
|
|
80
|
-
- A guard imported from an unknown package draws no edge.
|
|
81
|
-
- A name the old "sole visible lib" fallback linked through a lib that does not declare it (`guard:libs/billing:Admin` behind a vendor `export *`) now reads `guard:<lib>:<Name>` without a location, unless the lib's `export *` chain reaches exactly one workspace lib declaring it.
|
|
82
|
-
- A class extending a base that is not a known guard (`class Thing extends Base` with an ordinary `Base`) no longer has a guard node; an endpoint naming it in `guards` links an unlocated `guard:<owner>:Thing`.
|
|
83
|
-
|
|
84
|
-
- **`AkanGraphNode.sources`** in `akanjs/common`: the files besides `at.file` that a node's digest reads, set only with digests. The Change Map uses it to map those files and leaves it out of its answer.
|
|
85
|
-
- **The fact reader** in `@akanjs/language`: `GuardFactoryFact.via` is a list and gains `direct`; `GuardCallFact` gains `kind` (`call` or `extends`) and `scope`; `FileFacts` gains `guardLabels`, an in-place guard's name to its call. A slice's or endpoint's guard made in place is read as `<model>.<key>:<callee>@<n>`, and every in-place call is a `GuardCallFact`.
|
|
86
|
-
|
|
87
|
-
- 0351ad4: The Akan Graph keys each guard by the app or lib that declares it, `guard:libs/shared:Admin`, and follows the import that names it there, so `Admin as AdminGuard` reaches `Admin`, `srvkit.Admin` reaches the lib's class, and two libs' `Admin` stay two nodes. A guard read out of an object map, `SSO.Kakao`, resolves through the imports of the file that declares the map. A name a lib only re-exports reaches the class it re-exports. A guard a factory makes is a guard too, whether the factory sits in the same file, wraps another factory there, or is imported from another lib. A guard node carries its source location, `doc` (the comment above its declaration that says what it checks) and, in `detail`, its `scope` (`account` or `resource`). A factory-made guard takes the factory's scope, and takes its doc when no guard of that factory has its own. With digests, an edit to a guard or to the factory that makes it marks the guard changed in the Change Map. Every guard a workspace declares is a node, referenced or not. `Public` and `None` come from `akanjs`, carry no location and say what they do. Studio shows a node's `doc` in its tooltip.
|
|
88
|
-
|
|
89
|
-
Ids and details that change for a saved graph or a Change Map base:
|
|
90
|
-
|
|
91
|
-
- A guard id names its owner: `guard:Admin` is now `guard:libs/shared:Admin`, and the framework's `guard:Public` is `guard::Public`.
|
|
92
|
-
- An endpoint's `detail` names a guard as written: `srvkit.Admin` and `SSO.Kakao` where it read `Admin` and `Kakao`.
|
|
93
|
-
- A slice map entry that lists several guards, `cru: [Owner, None]`, now reads `cru Owner` and `cru None` in `detail`, and links each of them, where it read `cru ?` and linked none.
|
|
94
|
-
|
|
95
|
-
- **`FileFacts.imports`, `guards`, `guardFactories` and `guardCalls`** in `@akanjs/language`: the reader records each class that implements `Guard` (under any name it is imported as), each factory that returns one or calls such a factory in the same file, and each const that a factory makes, a local one or an imported one. `AkanIndex.setFile` reads them from every non-test `srvkit/` file and every other non-test file that names `Guard` and `canPass`.
|
|
96
|
-
- **`AkanGraphNode.doc`** in `akanjs/common`: an optional one-paragraph description.
|
|
97
|
-
|
|
98
|
-
- ba417c6: The Akan Graph draws a module's jobs and the adaptors its services plug. Each key of an `internal()` class is an `internal` node, `internal:apps/demo:memo.sweepMemos` labelled `MemoInternal.sweepMemos`, whose `detail` reads its type, its schedule (a cron expression, or an interval or timeout such as `5m`), its `serverMode` and `operationMode`, `disabled` for `enabled: false`, `once` for `once: true` and `unlocked` for `lock: false`; a job links to the service methods its `exec` calls, as an endpoint does. A `resolveField` is a field resolver, not a job, and stays out. Each `adapt()` or `dangerouslyAdapt()` class is an `adaptor` node keyed by the app or lib that declares it, with its registered name in `detail`, its location, the comment above it and a digest; anything a service plugs from `akanjs`, such as `DatabaseAdaptorRole`, is `adaptor::DatabaseAdaptorRole` with no location. A service method that calls a plugged field (`this.storageApi.deleteData(url)`) links to that adaptor rather than to whatever else shares the method's name, and a `plugs` edge runs from an adaptor to each adaptor it plugs. Studio's signals view shows jobs in its "Endpoints, slices & jobs" column and adaptors in "Queries, models & adaptors".
|
|
99
|
-
|
|
100
|
-
- **`internal`, `adaptor` and `plugs`** join `AkanGraphNodeKind` and `AkanGraphEdgeKind` in `akanjs/common`.
|
|
101
|
-
- **`FileFacts.internals` and `FileFacts.adaptors`** in `@akanjs/language`, with `ServiceClassFact.plugs`; `AkanIndex.setFile` also reads non-test files that call `adapt` or `dangerouslyAdapt`.
|
|
102
|
-
|
|
103
|
-
- bb40785: The Akan Graph maps `page/`. Each route file is a `route` node named by its URL pattern after the locale (`route:apps/demo:/memo/:memoId`, groups dropped as the router drops them), and each `_layout.tsx` is a `layout` node keyed by its folder (`layout:apps/demo:/(app)`, `root` for a `rootLayout()`). A `wraps` edge runs from each layout to the routes and layouts directly inside it, located at the wrapped file. A route or layout whose default export runs `.guard()` reads `guard` and links each function its guard calls that the file imports or declares: `.guard(() => signedIn())` reaches `signedIn` in `@libs/shared/webkit`, with its location and the comment above it, and a function declared in the page itself is keyed by that file (`guard:apps/demo:page/pin.tsx#isOwn`). A call to anything else (`Boolean`, akanjs's `redirect`, a package's `dayjs`) is looked through, a helper handed to a guard (`isOwn(isId(id))`) is not a guard, and an imported guard is looked up under its import path first. A layout's guard gates every route it wraps; the routes themselves do not repeat it, so a guard added to a layout marks only that layout changed in the Change Map. A route's default export, or the const it names (`const route = page()…; export default route`), is the route node itself, so the slices and actions a page uses hang off its URL. `_overrides.tsx` and the git-ignored `page/(libs)/` links are left out; a lib's own pages are its routes. A route's digest covers its whole file, so the Change Map marks an edited page changed instead of listing it as unmapped.
|
|
104
|
-
|
|
105
|
-
An unscoped `get_graph` still answers a graph of up to 600 nodes whole. Past that, it first drops the routes and layouts that neither changed nor use a change, and the route-only guards they leave unlinked, before it asks for a scope; an `app` or `module` scope brings them back. Studio's first column reads "Pages & components".
|
|
106
|
-
|
|
107
|
-
- **`route`, `layout` and `wraps`** join `AkanGraphNodeKind` and `AkanGraphEdgeKind` in `akanjs/common`.
|
|
108
|
-
- **The fact reader** in `@akanjs/language` now also exposes `importsIn`, `docOf` and `extentOf`.
|
|
109
|
-
|
|
110
|
-
- d2bd9b7: A new read-only MCP tool, `get_graph`, returns the Akan Graph, read from source with no dev server. It holds the models with their fields and relations, scalars and enums, slices and endpoints with their guards, and the service methods and queries each one calls. It also holds the store actions that fetch them and the components and pages that use them. Every node and edge carries its file, line and column. A workspace over 600 nodes asks for `app` and/or `module`; a scope keeps its own nodes and their direct neighbours. Files under `env/` are never read.
|
|
111
|
-
|
|
112
|
-
- **`AkanIndex.graph(readText)`** in `@akanjs/language` builds the graph from the same index that answers definitions. An app module that extends a lib module of the same name links to the app's own node. A component links only through `fetch`, `st` and `sig`, so `option.orgId` is not read as model `org`.
|
|
113
|
-
- **The graph types** (`AkanGraph`, `AkanGraphNode`, `AkanGraphEdge` and their kinds) live in `akanjs/common`.
|
|
114
|
-
|
|
115
|
-
- 2d357d6: Editors can now jump from a name Akan.js derives to the key it comes from. `fetch.initMemoInPublic`, `st.do.setNameOnMemo` and `this.memoService.listByName` had no definition before, because TypeScript drops the declaration of a key a mapped type renames. A new package, `@akanjs/language`, indexes those names from source text, and an editor extension serves them. The extension (`pkgs/@akanjs/vscode`) is not on a marketplace yet; build it with `bun pkgs/@akanjs/vscode/build.ts --vsix`.
|
|
116
|
-
|
|
117
|
-
- **`@akanjs/language`** is an editor-neutral reverse index over a workspace's constant, document, service, signal and store files. It needs no type checker, and the host passes in its own `typescript`. For a derived name it answers definition and hover; for a source key it answers references, the keys to put a CodeLens on, and the edits of a rename. It covers slice names (`initMemoInPublic`, `slice.memoInPublic`, `memoListInPublic`), Filter queries (`listByName`), model CRUD and state (`getMemo`, `viewMemo`, `memoForm`), form setters across the `via(...)` chain (`setNameOnMemo` lands on `MemoInput.name`), store state setters, `subscribe`/`listen` endpoints, and module references (`this.memoService`, `srv.memo`, `sig.memo`). A name resolves within its own app and every lib, never another app. It ships as ES module and CommonJS with no runtime dependency.
|
|
118
|
-
- **The extension** adds those definitions and hovers next to TypeScript's, with a `Go to slice` link in the hover. A CodeLens on each slice key, Filter query key, constant field, store state key and pubsub or message endpoint shows its use count, plus the guards and `live` of a slice. Find References from a source key lists every derived use. F2 on a slice or Filter query key (or `Akan: Rename the slice or query key with its derived names`) renames the key, every name derived from it and its dictionary entry; a use that could also be another model's is left for TypeScript to report, and F2 elsewhere stays TypeScript's. In a trusted workspace it loads the workspace's own `@akanjs/language` when one is installed, so its rules match the framework version.
|
|
119
|
-
- **One copy of the name rules.** The templates behind the names apps call now live in `akanjs/common` (`sliceNames`, `queryNames`, `modelNames`, `databaseStateNames`, `formSetterNames`, `stateSetterName`, `endpointNames`, `moduleNames`). The runtime, devkit's scanners and scaffolds, and `@akanjs/language` all read them, and a type test fails when a mapped type and its table disagree. `databaseStateNames` and `formSetterNames` now live in `akanjs/common`; `akanjs/store` keeps them as deprecated aliases.
|
|
120
|
-
- devkit's write-placement and SSR checks read signals through the same reader, and its form-setter check now builds `set<Field>On<Model>` names forward from each module's constant instead of matching a pattern, so a slice setter such as `setPageOfProductOnSale` no longer reads as a field setter.
|
|
121
|
-
|
|
122
|
-
- 69ed07e: Akan Studio draws the Change Map.
|
|
123
|
-
|
|
124
|
-
- **The Changes view** (`/_akan/studio?view=changes`) draws what changed since HEAD forked from the default branch, or since `since=<rev>`, uncommitted work included.
|
|
125
|
-
- Components, store actions, signals, service methods, queries, models, scalars, enums and guards are laid out in flow order and outlined as added, removed or changed. The fields that changed are listed inside their model.
|
|
126
|
-
- The unchanged nodes a change calls, or is called by, are drawn dimmed. The changed files no node covers are listed under the diagram, each marked added, removed or changed.
|
|
127
|
-
- Only this app's and the libraries' nodes are drawn. `module=` scopes the map to one module.
|
|
128
|
-
- A revision git does not know is shown as a message on the page. The `since` you picked stays when you switch views.
|
|
129
|
-
- The dev builder keeps the last map until the next save, so reloading the page does not read the workspace again.
|
|
130
|
-
- **`akan studio <app> --view changes [--since <rev>]`** prints its URL. `--since` without `--view changes` is an error.
|
|
131
|
-
- **Akan: Open the Change Map** in the VS Code / Cursor extension opens it beside the editor. The extension offers to start the app only when no dev server answers, not on any other `akan studio` failure.
|
|
132
|
-
|
|
133
|
-
- 3f231a7: `akan start` now serves Akan Studio at `/_akan/studio`, a read-only view of the Akan Graph for the running app and the libs it reaches.
|
|
134
|
-
|
|
135
|
-
- **ERD:** models, scalars and enums with their fields. Each relation is drawn from the field that names it, and each referenced type sits to the right of the model that names it.
|
|
136
|
-
- **Signals:** one module laid out from left to right: components and pages, store actions, endpoints and slices with their guards, service methods, then queries and models.
|
|
137
|
-
- **Interaction:**
|
|
138
|
-
- Hovering a box highlights its edges and neighbours, and clicking it pins the highlight.
|
|
139
|
-
- The filter dims boxes whose name doesn't match.
|
|
140
|
-
- Every name opens its source in VS Code or Cursor.
|
|
141
|
-
- `/_akan/studio/graph` returns the same graph as JSON.
|
|
142
|
-
- **How it's built:**
|
|
143
|
-
- The page is server-rendered SVG with a small inline script, and loads no client bundle.
|
|
144
|
-
- The dev builder draws the graph on request through a new `build-graph` builder RPC, and keeps it until the next save.
|
|
145
|
-
- It sits behind the same gate as the other `/_akan` devtools routes, and `akan tunnel` / `akan start --share` refuse it.
|
|
146
|
-
|
|
147
|
-
- 2d3b958: `ApiReportPolicy.check` counts a changeset that a branch adds in place of a similar one it deletes. git's rename detection paired the two, so the added changeset was not listed and its `minor` bump did not satisfy the check.
|
|
148
|
-
- 465ccb9: `@akanjs/devkit/apiReport/apiReport` renders a package's public API, one report per entry point, from its declaration emit. The akanjs repository now commits that report for `akanjs` and checks it in CI: a removed export or a changed declaration needs a `minor` changeset that says how to upgrade.
|
|
149
|
-
- 0504209: `akan build <app> --env <env>` builds for an environment other than the workspace `.env`'s, the way the desktop and mobile builds already do. Before, the shell's `AKAN_PUBLIC_ENV` lost to the `.env`, so a new workspace could only build `local` without editing it. The local-build notice, the image guard and the README now say what a `local` build changes in a built server: no endpoint rate limits, and local defaults for Redis and the database mode. They no longer say the dev routes are served, which a built server never does.
|
|
150
|
-
- bf872ce: A variable the shell sets now outranks the workspace `.env` when `akan` builds or runs an app, as dotenv and Bun's own `.env` loading do: `AKAN_PUBLIC_ENV=main akan build <app>` builds `main` where the `.env` says `local`. The order is `--env` (for `AKAN_PUBLIC_ENV`), then the process environment (the shell, and the `.env.local` and `.env.<NODE_ENV>` Bun loads into it), then the `.env`, then the defaults; an empty export counts as unset. The bundles, the bundled server env, `akan.env.json` and the Dockerfile still take one set of values. Where an exported value outranks the `.env`, `akan build` now warns with both values instead of the old warning that listed the values it ignored, and the server-env message, the `--env` help, the local-build notice, the README and the CLI reference state the new order.
|
|
151
|
-
|
|
152
|
-
**Behavior change:** where the shell exports a value the workspace `.env` also sets, such as `AKAN_PUBLIC_ENV`, `AKAN_PUBLIC_REPO_NAME` or `AKAN_PUBLIC_SERVE_DOMAIN`, `akan` now takes the shell's. Unset it, or match the `.env`, to build what you built before.
|
|
153
|
-
|
|
154
|
-
- af7c411: The five child-process restart loops now share one restart schedule, `RestartSchedule` from `akanjs/common`: the gateway's replicas, the RSC worker, the incremental builder, and `akan start`'s backend and builder recovery. It counts failed restarts, waits before the next one and cancels a pending one on stop. Each loop keeps its own delays (200ms–30s for the RSC worker, 2s–60s for `akan start`'s builder recovery, 1s–30s for the rest), its own give-up rule and its own log lines.
|
|
155
|
-
|
|
156
|
-
Two stop races in those loops are fixed:
|
|
157
|
-
|
|
158
|
-
- A replica whose restart timer had fired no longer respawns after the gateway stops.
|
|
159
|
-
- A builder `akan start` was still creating or booting when it stopped is now stopped too, instead of being started or retried after its ready timeout.
|
|
160
|
-
|
|
161
|
-
In `@akanjs/devkit`, `shouldAbandonBackendRecovery` is replaced by `backendRecoveryPolicy`, which gives up after five failed backend restarts as before.
|
|
162
|
-
|
|
163
|
-
- e65172d: The CLI refreshes a cloud sign-in once less than an hour, or half the token's lifetime, is left, whichever is shorter. Before, a token that lived an hour or less read as due the moment it arrived, so every command rotated the refresh token and then called the cloud unsigned. Any unexpired token is now sent with the request, except the refresh call, which carries none. `akan login` signs in again when a session is due for refresh and has no refresh token left.
|
|
164
|
-
- c3b5b3c: The framework no longer puts `@akanjs/native/core` on a web page. `isNativeApp()` and the other host checks read the platform the shell writes before the bundle runs, and a native shell still starts core with the page. A file that imports `akanjs/client/native` statically still brings core to every page that reaches it. On the minimal app this takes 15 KB raw (5.6 KB brotli) off the vendor floor and 20 KB raw (6.6 KB brotli) off every route entry. `akan build` also resolves the `production` export condition for the browser, SSR-client, CSR and MCP App view bundles, so a package such as Lexical ships its production build alone. On the minimal app the Agent editor chunk drops from 91 KB to 63 KB brotli. `akan start` is unchanged.
|
|
165
|
-
- 6d5b544: A database service now has `create<Model>Many(rows)`. It creates the rows on the same path as `create<Model>`: `_preCreate` and `_postCreate`, the document's save and create hooks, and the live and pubsub events each row's commit fires. Every row's `_preCreate` and document pre hooks run first, so a check there that queries the table does not see the batch's own rows. The rows are then written in one transaction, joining the caller's when one is open, with one multi-row INSERT per 500 rows instead of one statement per row; if the database refuses one row, none is written. Every row's `_postCreate` runs once the transaction commits, as `create<Model>`'s runs once its row is stored, so a `_postCreate` that throws leaves the rows written. A service that already declares a method of that name, itself or in a lib service it extends, keeps its own at runtime, but its signature no longer typechecks against the generated one: rename it.
|
|
166
|
-
|
|
167
|
-
A store can list actions in `static silent = ["refreshToken"] satisfies (keyof UserStore)[]`. When a silent action fails, it shows no toast and logs at verbose instead of error. It still rejects with the original error, so a background write such as a token refresh is awaited by its caller, which handles the failure. Generated actions can be listed, and a store built on a lib store keeps the lib's silent actions. A name in `static silent` that is not an action of the store is reported when the store registers.
|
|
168
|
-
|
|
169
|
-
`akan lint`'s `akan.service.call-in-loop` fix and the agent guidelines name `create<Model>Many` as the way to write a set once.
|
|
170
|
-
|
|
171
|
-
- cb44cc0: `akan create-workspace` and `bunx create-akan-workspace` can now create a workspace in a folder you already have, leave out the sample code, and make the first commit on a machine with no git identity. Before, a coding agent that had to put the workspace in a given folder created it elsewhere, copied it over and deleted the sample by hand.
|
|
172
|
-
|
|
173
|
-
- **In place.** Name the workspace `.` to create it in the current folder, or in `--dir` itself, instead of a new `<dir>/<name>` subfolder. The workspace takes that folder's name.
|
|
174
|
-
|
|
175
|
-
```bash
|
|
176
|
-
bunx create-akan-workspace . --app web # the current folder
|
|
177
|
-
bunx create-akan-workspace . --app web --dir app # ./app
|
|
178
|
-
```
|
|
179
|
-
|
|
180
|
-
The folder may already hold files the workspace does not write, such as `.git`, `.vscode/launch.json` or notes. When it holds one the workspace would overwrite, such as `package.json`, `README.md`, `.gitignore` or `apps/<app>`, the command writes nothing and lists them. The same check now guards `<dir>/<name>`, which was overwritten without a word before. It also refuses your home folder and a filesystem root, where the first commit would take in every file and the agent and MCP settings would overwrite your global ones. And it refuses a folder whose path ends the way a path it writes begins, such as `apps`, `patches`, or `apps/web` with `--app web`, since the files would land in the wrong place.
|
|
181
|
-
|
|
182
|
-
- **`--sample false`** creates the first app without the sample: the `task` module and its pages, the `_noti` service, the `workHistory` scalar, and the sample helpers in `common/`, `webkit/`, `srvkit/` and `ui/`. It defaults to `true`, as before.
|
|
183
|
-
|
|
184
|
-
```bash
|
|
185
|
-
bunx create-akan-workspace my-company --app web --sample false
|
|
186
|
-
```
|
|
187
|
-
|
|
188
|
-
- **Git.** When git has no identity configured, as in many containers and CI images, the first commit is made as `Akan.js <noreply@akanjs.com>` instead of failing; once `user.name` and `user.email` are set, `git commit --amend --reset-author` makes it yours. In a folder another git repository tracks, the scaffold no longer runs `git init`, which made the outer repository record a gitlink instead of the files, and it commits nothing there: the new files are left for you to commit in that repository. A folder that repository ignores, as `app/` or `app/*` does, still gets its own repository and commit.
|
|
189
|
-
- **`@akanjs/devkit`**: `applyTemplate` takes `dryRun` to list the files a template would write without writing them, and `WorkspaceExecutor.commit` takes an `identity` to commit under.
|
|
190
|
-
|
|
191
|
-
- 1870fcd: `akan verify` adds a `fix:` line to a module file's two-parent import that names the layer barrel to import from instead, such as `import from "@apps/<app>/common"`. The lint message itself now points at the layer barrel too.
|
|
192
|
-
- 76ab8d4: `akan doctor` exits with code 1 when its report says `"status": "failed"`, in text or JSON, with or without `--strict`, and for `--ios`, so the `agent:doctor` script (`akan doctor --strict --format json`) or a CI step fails on it. Before, it always exited 0. The full report still prints on stdout. A warning never changes the exit code: `--strict` still only decides which conventions count as errors, today a missing module abstract. Doctor's `dictionary-label-missing` now reads both a constant's fields and its dictionary's labels from their syntax, ignoring comments and strings. A field that appears only in a comment no longer asks for a label: a new `--sample` workspace no longer warns about `task`'s `priority`, `tags`, `assignee` and `completedAt` or `workHistory`'s `actor` and `previousStatus`, which its constants suggest only in comments. A label that exists only in a comment, or a `name:` inside a string, no longer counts, so a field whose label is commented out now warns.
|
|
193
|
-
- 245d318: A font declared on a root layout now gets its metric-adjusted fallback faces: `@font-face` rules named `"<font> fallback"` that draw a local system font with `size-adjust`, `ascent-override` and `descent-override` matched to the web font. The variable `--font-<name>` already named that family, but the build never wrote it, because fontaine's `readMetrics` takes a URL and returned nothing for the file path it was given. While a web font loaded (`font-display: swap`), text drew in the browser's default font, usually a serif, and moved when the web font arrived. The metrics are read from the source font, not the subset, so a subset without Latin letters (`subsets: ["ks-x-1001"]`, or only `subsetText`) still sizes the fallback correctly. A font whose metrics cannot be read keeps its face and gets no fallback, as before. Set `adjustFontFallback: false` on a font to keep the old output. Cached font output from `akan start` is regenerated once.
|
|
194
|
-
- 6f6cc2a: A fresh clone of a workspace now builds and starts after `bun install` alone. The env files that hold secrets stay gitignored, so a clone has none of them: before, `akan typecheck`, `akan build` and `akan verify` failed with `Cannot find module './env.server.local'`, and with no `.env` the CLI picked the `debug` environment, so `akan build` stopped asking for `AKAN_PUBLIC_REPO_NAME` and `AKAN_PUBLIC_SERVE_DOMAIN`.
|
|
195
|
-
|
|
196
|
-
- **Missing env files are written on sync.** `akan sync`, and every command that syncs first (`build`, `start`, `typecheck`, `verify`, `test`), writes each per-environment file that `env/env.server.ts` or `env/env.client.ts` imports and the checkout lacks, plus `env/env.server.testing.ts`, in apps and libs alike. A file comes from the folder's tracked `env.server.example.ts` or `env.client.example.ts` when there is one, otherwise with the defaults a new workspace starts with. A file that exists is never touched, and sync logs the files it wrote. Put this machine's values in them, or fetch the team's with `akan download-env`, which overwrites them.
|
|
197
|
-
- **No `.env` means the local environment.** A workspace command run where there is no `.env` takes `AKAN_PUBLIC_ENV=local`, the environment a new workspace's `.env` names and `env/env.server.ts` falls back to, unless the shell sets `AKAN_PUBLIC_ENV`. A `.env` that exists is read as before, so a CI job that writes one, or sets the variable, builds what it did.
|
|
198
|
-
- **New workspaces** also track `env.client.example.ts`: its `.gitignore` no longer ignores it, as it already did not ignore `env.server.example.ts`.
|
|
199
|
-
|
|
200
|
-
**For an existing workspace** nothing is required. To give a fresh clone values other than the empty defaults, commit an `env/env.server.example.ts` (and `env.client.example.ts`) without secrets in it; in an older workspace, add `!**/env.client.example.ts` to `.gitignore` for the client one. If you link env files into a new worktree, link them before the first `akan` command there, or replace the defaults it wrote.
|
|
201
|
-
|
|
202
|
-
- e2b809a: The typecheck behind `akan typecheck`, `akan verify` and `akan build` now uses its incremental cache. It wrote a `.tsbuildinfo` on every run, then checked every file again anyway, so a run with nothing changed cost as much as the first: about 8 seconds on a 2,400-file project. Now a run re-checks only the files that changed and the files they affect, and reads the rest from the cache. The same project's second run takes about 1.2 seconds. The diagnostics are the same, in the same order, as a full check: options, global, syntax, type and declaration errors, an edited file's new errors and the errors it causes in files that import it. `--clean` still clears the cache first.
|
|
203
|
-
- bf28968: An app can now serve its default locale at unprefixed paths. Set `i18n.localePrefix` to `"as-needed"` in `akan.config.ts`, and `/books/OL45804W` is the English page itself. Before, every page lived under `/<locale>/…`, and an unprefixed path answered with a 307 to the locale the browser asked for. An app with one language, or with URLs fixed from outside (OAuth callbacks, QR codes, links in mail, a migrated site), could only meet them with raw `<a href>`s, which reloaded the whole page and went through that 307 on every click.
|
|
204
|
-
|
|
205
|
-
```ts
|
|
206
|
-
const config: AppConfig = {
|
|
207
|
-
i18n: {
|
|
208
|
-
defaultLocale: "en",
|
|
209
|
-
locales: ["en", "ko"],
|
|
210
|
-
localePrefix: "as-needed",
|
|
211
|
-
},
|
|
212
|
-
};
|
|
213
|
-
```
|
|
214
|
-
|
|
215
|
-
- **The default stays `"always"`**, so an app that sets nothing serves and links exactly as before.
|
|
216
|
-
- **Under `"as-needed"` the default locale drops the prefix and the other locales keep it.** `<Link href="/types">` renders `/types` on an English page and `/ko/types` on a Korean one, and still navigates in place. So do `router.push`, a server `router.redirect()`, `setLang`, active-link matching, the 404 page's home link, `hreflang` alternates and `/sitemap.xml`. `setLang` to the default locale drops the prefix. A single-locale app has no prefix anywhere.
|
|
217
|
-
- **An unprefixed URL always means the default locale.** No Accept-Language redirect runs, so one URL is one locale for caches and search engines.
|
|
218
|
-
- **`/<defaultLocale>/x` answers with a 308 to `/x`**, so links from the `"always"` days keep working and land on the one canonical URL. The 308 is cached for a day, so an app that goes back to `"always"` stops redirecting within that time.
|
|
219
|
-
- **Native and CSR boots keep their locale paths.** Their routes match on the `/:lang` segment, so a `?csr=true` request without one is redirected to the default locale's prefixed path. An Android app link limited to a basePath lists the default locale's unprefixed path as well as its prefixed one, so links from before the switch still open the app.
|
|
220
|
-
- `akan preview` keeps an unprefixed path unprefixed under `"as-needed"`, except with `--csr`. The value reaches bundles as `AKAN_PUBLIC_LOCALE_PREFIX`, and the image env carries it when it is `"as-needed"`. `LocalePath` (`akanjs/common`) and a fourth `localePrefix` argument to `getPathInfo` build the same URLs in app code.
|
|
221
|
-
|
|
222
|
-
- 9b5bcee: Every SSR page now loads 72K less framework JavaScript (22K less after Brotli).
|
|
223
|
-
|
|
224
|
-
- **`akan build` narrows the vendor entries to the names the page code imports.** The `akanjs/*` and `tailwind-merge` entries in the page's import map used to re-export a whole facet. Each one now exports only the names the built route bundles import, lazy chunks included. On the minimal app, the framework floor, meaning the runtime plus the vendor entries every page loads, drops from 630.2K raw / 189.4K br to 558.4K raw / 167.4K br. `akan start` keeps whole facets, so a newly saved import never misses a name.
|
|
225
|
-
- **The agent runtime moved to `akanjs/store/agent`, which has its own vendor entry.** This covers `AgentContext`, `AgentVisual`, `AgentPrompts`, `StoreSurfaceSource`, the `Screen*` readers and the rest. A page now loads that entry (28.6K raw / 9.4K br) only when it mounts `Agent.Chat`, `Agent.Zone` or `Agent.Dock`. `akanjs/store` still re-exports these names for one minor, marked `@deprecated`. A build whose pages import none of them keeps the runtime out of the store entry. `ToolReturn`, `AgentAbort` and `AgentProgress` stay in `akanjs/store`.
|
|
226
|
-
- **A tab left open across a deploy loads its next page as a document when the import map changed.** Narrowed vendor entries differ from build to build, so a newer route chunk could import a name the tab's vendor entries lack. Each document now names its import map, and the server answers a navigation from another import map with 409. The client then loads the target as a document, with the current import map.
|
|
227
|
-
- **A narrowed build fails when route code imports a name its facet does not export**, and names the missing names. Before, the page threw a `SyntaxError` in the browser.
|
|
228
|
-
|
|
229
|
-
- 4561152: The skill examples now use one neutral domain, books from a public read-only API: a `BookApi` adapter in `srvkit/`, a `lib/_openlibrary/` service with a `book` query, `fetch.book(id)` and `/books/[id]` pages. This covers the `akan-service` external-API recipe, the `akan-page` API summary, the `akanApi` import block, the `config` rule's `localePrefix` example and the README's as-needed path. The recipes teach the same steps as before.
|
|
230
|
-
- 53eb6f1: A command whose app-or-lib target is left out no longer stops at a prompt error when stdin is not a terminal, as in a coding agent's shell or CI. In a workspace with a single app, lib or package, `akan sync`, `akan lint`, `akan test` and `akan create-module <name>` run on it and say so on stderr, so a new workspace's `bun run sync`, `bun run lint` and `bun run test` work there. Otherwise every target command (app, lib, package, module) exits at once with the valid targets and the line to rerun, such as `akan sync <app-or-lib>`. A terminal is asked as before.
|
|
231
|
-
- 44149b1: Without a terminal, a command that deletes nothing now takes the workspace's only library, package or module when none is named, as it already did for the only app or lib, and names it on stderr: `No lib named, so this runs on 'util', the only one in this workspace: akan sync-library util`. This covers `sync-library`, `sync-package`, `build-package`, `verify-dist-package`, `create-view`, `create-unit`, `create-template` and `create-crud-page`. Before, each refused and asked for the target to be named. The remove commands still never take one they were not given. A terminal is still asked, even when there is only one choice.
|
|
232
|
-
- b24fef3: An app that draws no Akan UI component now builds and runs without the UI's optional peers. Before, `akan build` failed with `Could not resolve: "react-icons/ai"` or `"react-spring"` in an app that imported nothing from `akanjs/ui`: the System UI every root layout mounts drew react-icons glyphs and reached the model, list and dialog components through the `Load` and `Button` modules, and the CSR build, on by default, bundled the whole `akanjs/ui` barrel.
|
|
233
|
-
|
|
234
|
-
**Upgrade note.** A workspace can drop `react-spring`, `@react-spring/web`, `@use-gesture/react`, `react-refresh`, `scheduler` and `tailwind-scrollbar` from its `package.json`, unless its own code imports them. `akanjs` now depends on `@react-spring/web`, `@use-gesture/react`, `react-refresh`, `scheduler` and `tailwind-scrollbar` itself, because the System UI, the dev runtime and `akanjs/ui/styles.css` always use them, and nothing uses `react-spring` any more. New workspaces no longer list them. A workspace whose own code keeps `react-spring` or `@react-spring/web` must move it to major 10: an older one installs a second copy under `akanjs`, and a spring value the app makes no longer typechecks on an `animated.*` element from `akanjs/ui`.
|
|
235
|
-
|
|
236
|
-
- **`react-icons` stays an optional peer.** Install it when the app draws a component that shows its icons, as most form, list and dialog components do. Under `akan start`, a CSR page (`?csr=true` or a native shell) of an app that imports anything from `akanjs/ui` still needs it: the dev module registry loads that barrel whole.
|
|
237
|
-
- **`chance`** stays an optional peer that only `akanjs/test` needs.
|
|
238
|
-
- **The System UI draws its own icons.** The Button's processing and done states, the toasts and the reconnect overlay render inline SVGs with the same markup react-icons drew.
|
|
239
|
-
- **The generated root layout and `_overrides.tsx` wrapper** import `System` and `UiOverrideProvider` from their own files instead of the `akanjs/ui` barrel.
|
|
240
|
-
- **The CSR build and its MCP App views** rewrite `akanjs/ui` imports to the components a file names, as the SSR route builds already did, so a page that imports `Link` no longer bundles every component.
|
|
241
|
-
- **Animations use `@react-spring/web`** instead of the `react-spring` umbrella package, which also installed the native, three.js, konva and zdog renderers.
|
|
242
|
-
|
|
243
|
-
- b516497: `akan create-package --name` takes `name` or `@scope/name`, each part lowercase letters, digits, `-`, `.` and `_` starting with a letter or digit, and refuses anything else before it touches a file: `"../x" is no package name; use name or @scope/name, each of lowercase letters, digits, -, . and _, starting with a letter or digit`. Before, `--name ../x` wrote `x/` beside `pkgs/` and added it to the root `tsconfig.json`. `akan create-ui`, `add-field` and `add-enum-field` refuse a `--module` that is not a module name with a `primitive-input-invalid` diagnostic in their report, as they already reported a missing one. Before, `create-ui --module ../x` wrote its component into the app root, and `add-field --module ../x` looked for the constant and dictionary outside the module folder. `plainNameProblem` returns the message `assertPlainName` throws, and `assertPackageName` sits beside it in `@akanjs/devkit/workflow/plainName`.
|
|
244
|
-
- 58b7329: `akan create-scalar`, `remove-scalar`, `create-module`, `create-service`, `create-application`, `create-library`, `install-library` and `create-workspace --app` refuse a name that is not one plain path segment before they touch a file, such as `"../.." is no scalar name; use letters, digits, - and _, starting with a letter`. Before, the name went into the path unchecked: `akan remove-scalar ../.. <app>` deleted `apps/<app>` and exited 0, and the create commands wrote their files outside `lib/`, `apps/` or `libs/`. A scalar, module or service name is checked as a workflow's `module` input already was, an app or lib name as its `app` input; both checks now live in `@akanjs/devkit/workflow/plainName`, with `assertPlainName`.
|
|
245
|
-
- 4e0a38e: A page preview starts a new browser when the one before it died. Bun refuses to start a new browser until a later event-loop turn has reaped the dead one. `akan preview` opens its pages back to back when the app's log socket does not answer. In that case, if Chrome died during one page, every page after it failed at once with `Failed to spawn Chrome (set BUN_CHROME_PATH, …)`. Now a preview whose browser fails to start for any reason other than running out of `startTimeoutMs` waits 100 ms and tries the start once more. A browser that cannot start at all still fails in about 100 ms, now with its own error, such as `Chrome process closed the pipe`.
|
|
246
|
-
- b4b8f85: `akan preview` and the code agent's page preview give a browser that died or was closed the full `startTimeoutMs` (120 s by default) for its next start. Before, after one page had run out of the start bound, a browser that then died while another page waited for it stayed marked as slow to start. The next page started a fresh browser within only its own `timeoutMs` (60 s for `akan preview`, 30 s for the code agent's check).
|
|
247
|
-
- 686e0b8: `akan preview` and the code agent's page preview bound a page only once the browser is up. Before, a process's first page shared its `timeoutMs` with starting the browser. On a cold machine where Chrome took longer than that to start, the first page failed as `Timed out loading …; the dev server may be rebuilding or stuck.`
|
|
248
|
-
|
|
249
|
-
Starting the browser now has its own bound of 120 s, `startTimeoutMs` on `PreviewView.probe`. Running out of it reads `Timed out starting the <engine> browser after 120 s.`, where the engine is `chrome` or `webkit`. A browser that misses its bound may still come up late, so later pages in that process try again, but each waits only its own `timeoutMs` for the browser. Once the browser answers, the full bound applies again. So a browser that never starts holds the first page for 120 s, where before it held it for `timeoutMs` (60 s for `akan preview`, 30 s for the code agent's check).
|
|
250
|
-
|
|
251
|
-
- eefd9cb: `akan preview <app> /_akan/studio` opens Studio instead of a 404. Preview added the default locale to every path, and the server routes `/_akan/*` without one, so `/en/_akan/studio` matched no page. A path under `/_akan`, `/__csr`, `/__rsc`, `/.well-known` or the app's API prefix, a file the app's `public/` holds, and the server's own `/favicon.ico`, `/robots.txt`, `/sitemap.xml` (at the root only, the one place the server answers it) and `manifest.webmanifest` now open as written: no locale, and no CSR boot query under `--csr`. Every other path, including one that already starts with a locale or ends in a dotted segment such as `/release/1.2.3`, is a page and gets the default locale as before. The `akan-debug` skill and the `akan preview` reference say so.
|
|
252
|
-
- 01ca04b: `akan preview` opens `/openapi.json` and the default `/mcp` as written, as the server mounts them outside `/:lang`; before, they got the default locale and opened a 404 page. A full URL (`http://localhost:<port>/oauth/token`) now opens exactly as written, with no locale and no CSR boot query, so an endpoint mounted outside the API prefix or a custom MCP path can be opened; before, a full URL was taken by its path and given the locale. A page `--changed` finds always gets the locale, even one at a server route's path such as `/mcp`. A screenshot's file name carries the page's query and a short hash of it, and a long path or query is cut with a hash, so `/_akan/studio?view=runtime` and `?view=signals` no longer overwrite one another and a long query no longer fails the page. The `akan-debug` skill, `akan preview --help` and the `akan preview` reference state the same rule.
|
|
253
|
-
- b101fcf: `akan remove-application`, `remove-library`, `remove-package`, `remove-module` and `remove-scalar` no longer delete a target they picked themselves. Left out, or named but not in the workspace, the target is refused in a terminal or not, with the choices and the line to rerun, such as `` Missing app: this command deletes files and never picks its target, so rerun it as `akan remove-application <app>` (choices: pokedex). `` Before, `akan remove-application` in a one-app workspace removed `apps/<app>` without asking, and without a terminal `akan remove-scalar <name>` removed the scalar from the only app or lib. A terminal is no longer offered a select for these commands. Other commands still take the only app, or the only app or lib without a terminal, as before. A command declares this with `destructive: true` on its target.
|
|
254
|
-
- 44149b1: `akan remove-module` now removes a service module named exactly, as in `akan remove-module pokedex:_billing` for `apps/pokedex/lib/_billing`. Before, no command could remove a service module: `remove-module` left out every `lib/_<name>` folder and refused one by name with `Invalid module name: _billing`. A service module left out or misnamed gets the same refusal as any target of a remove command, and its choices now list the service modules. `create-view`, `create-unit`, `create-template` and `create-crud-page` still take only a model module. A command opts in to service modules by taking `ModuleOrService` instead of `Module`.
|
|
255
|
-
- 4fcf44f: A new `rename-key` workflow renames a slice key or a Filter query key everywhere it is spelled. That covers the key itself, every name derived from it (`initMemoInPublic`, `memoListInPublic`, `queryByName`) in the app and every lib, and its module dictionary entry. It is the same rename the editor extension's F2 runs, so agents get it through `plan_workflow` / `apply_workflow` and the CLI through `akan workflow plan rename-key --app <app> --module <module> --slice <key> --to <newKey>` (or `--query <key>`). The plan lists each file it will change. A use that could also be another model's is left alone, and `akan verify` then reports it.
|
|
256
|
-
- 627dde4: The route JS budget stops failing deploy builds: a plain `akan build` reports an overage, `akan build --check-budget` fails on it, and CI runs that for `apps/minimal` and `apps/akan`, which now commit their `akan.budget.json`. The rc npm publish, which calls CI, skips that job, so an app's budget never holds a release.
|
|
257
|
-
|
|
258
|
-
- **Report by default:** a plain `akan build`, the one a deploy runs, prints a route over its entry or with none, or an unreadable `akan.budget.json`, as a warning under the route table and passes, as `akan verify` does. `--quiet` drops the rest of the summary but still prints the warning.
|
|
259
|
-
- **`--check-budget`** fails the build on an overage, a route with no entry (a new page records its entry with `--update-budget` in the same change), an unreadable file, or an app with no file, naming every overage and missing entry in one failure.
|
|
260
|
-
- **`--raise-budget`** re-records every route at its measured size and names the entries it raised, for the change that grows a route on purpose. An overage now names it with the app's own name, along with the file and section to edit by hand. `--check-budget`, `--update-budget` and `--raise-budget` exclude each other.
|
|
261
|
-
- **`System` counts as the SSR shell:** the generated root layout imports `System` whole because it serves SSR pages, the CSR shell and MCP App views. The measure now reads that import as `System/SSR.tsx` and leaves out `System`'s CSR and MCP App providers wherever an app imports `System`, since no server page renders them; every client entry is still built. On `apps/minimal` the median route drops from 342KB to 307.5KB brotli and the largest, `/:lang/explore`, from 499.1KB to 473.3KB. On `apps/akan` most routes drop about 1KB, because their other client entries load the providers' dependencies anyway.
|
|
262
|
-
|
|
263
|
-
- 9a9e1fa: A server page from `akan build` now preloads its client modules from `<head>`, so a cold load stops waiting on chains of imports.
|
|
264
|
-
|
|
265
|
-
- **What is preloaded:** the rsc client and the chunks it imports, the chunks every client reference row (`I` row) in the shell's flight names, and the importmap vendors those chunks import, each with its own chunks. A client URL that only the page's own text carries is never preloaded. Before, only the rsc client and the locale dictionary were preloaded. The browser found the rest one import level at a time, after the document finished.
|
|
266
|
-
- **Measured on `apps/minimal`:** `/en/explore` preloads 64 modules and its flight names 37 client chunks, all of them preloaded. `/en/lab/buttons` preloads 165 for 137. Preloading every client component each route's page and layouts import would have meant 274 modules for `/en/explore`, so the preloads follow the flight instead.
|
|
267
|
-
- **A boundary that resolves after the shell** still loads its chunks when its flight rows arrive. `akan start` preloads nothing new, because a dev page loads its client code from the SSR dev registry.
|
|
268
|
-
- `routes-manifest.json` carries the preload table as `modulePreloads`: the runtime chunks, each vendor's chunks, and the vendors each browser chunk imports.
|
|
269
|
-
|
|
270
|
-
- 9a9e1fa: `akan build` measures the JavaScript each server route loads, and reports a route that outgrows the budget the app commits; `akan build --check-budget` fails on it.
|
|
271
|
-
|
|
272
|
-
- **The measure:** the runtime, every client module statically reachable from the route's page and layouts, and their vendors, counted in the brotli bytes the server sends. A chunk loaded by a dynamic `import()` is left out, and so is the locale dictionary. A new `Measuring route JS` step names the largest route, and the summary lists the ten largest with their brotli and raw sizes. On `apps/minimal` the largest is `/:lang/explore` at 473.3KB brotli (1.2MB raw).
|
|
273
|
-
- **The budget:** `akan build <app> --update-budget` writes `apps/<app>/akan.budget.json` with the environment it built for and one `routeJsBrotliKB` entry per route. After that, a route that passes its entry by more than the larger of 1% and 4KB, as the bundle size gate allows, is an overage, named with its bytes and its limit. The slack absorbs the `AKAN_PUBLIC_*` values a build inlines, so a budget recorded for one environment holds for another, and an overage says when the file was recorded for another one. The update adds a new route, lowers an entry its route now fits under and drops a route that is gone. It never raises an entry: `--raise-budget` or a hand edit does, in the change that grows the route.
|
|
274
|
-
- **Where it fails:** only `akan build --check-budget`, on an overage, a route with no entry, an unreadable file or a missing one. A plain `akan build` warns of each but a missing file under its route table, and `--update-budget` rewrites an unreadable file. `akan verify` warns of each route over its entry or with none and of an unreadable file, one line each, but never fails on them. A mobile or desktop build skips the step.
|
|
275
|
-
- **Opt-in:** an app without the file gets the report and nothing fails, unless `--check-budget` asks for it. A route without an entry is reported, and fails only `--check-budget`. `akan sync` accepts `akan.budget.json` at an app root.
|
|
276
|
-
|
|
277
|
-
- 9055634: Partial RSC commit can now patch a real page, and it patches cleanly. It is still off by default behind `AKAN_PUBLIC_RSC_PARTIAL_COMMIT=1`. With the flag on:
|
|
278
|
-
|
|
279
|
-
- **Which pages render their head through `AkanRouteHead`.** Every page whose head is plain `title`, `meta` and `link` tags now renders it through a client component instead of plain head tags. That way any page can be the one a patch starts from. Patches still only land on pages that set `.config({ rscPatchHeadSafe: true })`.
|
|
280
|
-
- **A plain `.head()` is its own head snapshot.** A page no longer needs a hand-written snapshot. A head with anything else, such as a script or a component, keeps the full render.
|
|
281
|
-
- **React renders the head.** The old patch swapped `<head>` nodes behind React's back. That left a stale or broken head after the next full navigation or a back navigation.
|
|
282
|
-
- **A patch carries only the page's part of the head.** The layouts' part stays on the client, under the layouts the patch keeps. The page's part travels in the `X-Akan-Rsc-Patch-Head-Snapshot` header, which is now capped at 2 KB encoded, down from 12 KB. A larger page head renders whole, and the server logs that once per route.
|
|
283
|
-
- The cap leaves room under nginx's default 4 KB `proxy_buffer_size`, but it doesn't guarantee a fit: router state, trace headers and `Set-Cookie` share that buffer.
|
|
284
|
-
- The docs pages' part is about 1.1 KB, against about 5.7 KB for their whole head.
|
|
285
|
-
- **The layouts a patch keeps follow the new page.** `usePathCtx()` under an SSR page gives the patched page's path, pathname and query, so a menu's active item and a pager move with it.
|
|
286
|
-
- **A full commit after a patch goes straight to the new page's head, path and body.** It no longer shows the last full page for a frame first.
|
|
287
|
-
- **A patch falls back to a full render when the kept layouts would be wrong:**
|
|
288
|
-
- another route group's layout sits at the same URL prefix (`(guest)/account/login` to `(member)/account/settings`);
|
|
289
|
-
- the layouts' head would be different for the target, for example a layout `.head()` that reads a search arg. The router state carries a key of the layouts head its page rendered (`headKey`), and the server compares it with the target's. The key changes together with the rest of the router state, so a navigation started while the previous page is still committing sends that page's key;
|
|
290
|
-
- a route param differs (`/en` to `/ko`);
|
|
291
|
-
- a frame setting differs, such as `transition`;
|
|
292
|
-
- the page navigated from has no patchable head;
|
|
293
|
-
- its frame cannot be resolved.
|
|
294
|
-
- **A client built without the flag no longer asks for patches it cannot apply.** Before, a server running with the flag answered such a client with patches, and every sibling navigation made a second request. Such a client leaves the head key out of the router state it sends.
|
|
295
|
-
- **A refused head-safe patch runs each `.head()` once.** When a patch is refused after its head resolved, the full render reuses that head. Before, it ran every `.head()` a second time.
|
|
296
|
-
- **`@akanjs/devkit`: the SSR runtime manifest keeps every client export of the segment outlet module.** Before, it kept only one.
|
|
297
|
-
|
|
298
|
-
- 27440aa: A production build now runs without Docker: `cd dist/apps/<app> && bun main.js` serves the app with no env set. Until now the env the built server needs (the app and repo names, the serve domain, locales, route prefixes, database modes and the rest) existed only as `ENV` lines in the generated Dockerfile. On a host without the image, such as a PaaS or a test harness, the server stopped at boot with `getEnv() cannot run at build time` unless a start script copied every value by hand.
|
|
299
|
-
|
|
300
|
-
**Upgrade note.** Run `akan agent install` and commit what it writes: the `akan-runtime` skill, the `config` path rule and `runtimeRule` now say how to run a build without Docker.
|
|
301
|
-
|
|
302
|
-
- **`akan build` writes `akan.env.json` beside `main.js`**, with the same values as the Dockerfile's `ENV` lines. None of them is a secret.
|
|
303
|
-
- **`main.js` reads it before any other module loads** and fills in only the variables the process was not started with. A variable set in the environment wins, even an empty one, so `PORT=3000 bun main.js` and a host's own settings still apply, and an image built from the generated Dockerfile runs exactly as before. The file is found beside `main.js` from any working directory, but start the server from its own folder, because the runtime reads its artifacts and writes `runtime/` and SQLite files relative to the working directory.
|
|
304
|
-
- **An app that writes its own Dockerfile** (`docker` as a string) and copies the build into its image now gets these values too, for whatever its Dockerfile leaves unset: among them `NODE_ENV=production`, `AKAN_PUBLIC_OPERATION_MODE=cloud` and `AKAN_LOG_TO_FILE=0`, so set those in the Dockerfile if the image needs other values.
|
|
305
|
-
- **A desktop app's carried server leaves `akan.env.json` behind.** Its launcher hands it its env as before, and the file would otherwise set the `PORT` and `AKAN_LOG_TO_FILE` the launcher leaves out on purpose.
|
|
306
|
-
|
|
307
|
-
- e3de9ef: The CLI's MCP tools, tunnels, env download, local registry and generated Dockerfile now stay narrower by default. Each changed default below names how to get the old behaviour back.
|
|
308
|
-
|
|
309
|
-
- **Workflow and repair commands run without a shell.** A command taken from a plan file, a run report or an MCP argument now runs as `bun run akan <args>`. It runs only when it is an `akan` subcommand whose arguments are plain words or flags; anything else is not run and fails with exit code 2. `akan workflow validate` and `apply` (and the `apply_workflow` / `run_validation` MCP tools) rebuild the validation commands from the workflow's own spec instead of reading them from the file.
|
|
310
|
-
- **Workflow inputs are plain names.** An `app`, `module`, `scalar`, `field`, `slice`, `mutation` or `interaction` input may hold letters, digits, `-` and `_`, with no dots, slashes or spaces. Planning reports anything else as `workflow-input-invalid`, and `apply` refuses such a plan with `workflow-plan-inputs-invalid`. The `app` must be one of the workspace's apps or libraries (`workflow-target-missing`), and the `repair_*` tools check their target the same way (`repair-input-unknown`).
|
|
311
|
-
- **MCP workflow files stay in `.akan/workflows/`.** `plan_workflow`'s `out`, `apply_workflow`'s `planPath` and the `runIdOrPlan` of `run_validation` and `doctor_workspace` must resolve inside the workspace's `.akan/workflows/` folder. A path elsewhere, or a link that leads out of it, is refused. A bare run id still means `.akan/workflows/runs/<id>.json`.
|
|
312
|
-
- **The cluster database tunnel listens on loopback.** The Redis or Postgres tunnel `akan start` opens to a cluster environment now listens on `127.0.0.1` instead of every interface. Set `SSH_TUNNEL_BIND_HOST=0.0.0.0` to listen on every interface again; the tunnel then logs a warning on each start.
|
|
313
|
-
- **The tunnel checks the SSH host key.** When `SSH_TUNNEL_HOST_FINGERPRINT` lists `SHA256:` fingerprints (comma-separated), only those keys are accepted. Otherwise the first key a host shows is kept in `~/.akan/ssh_known_hosts.json`, written with mode 0600, and a different key from that host is refused. The refusal names the host and the file entry to remove after a rebuild. `SSH_TUNNEL_KNOWN_HOSTS` points at another file, and `SSH_TUNNEL_HOST_FINGERPRINT=*` accepts any key, as before.
|
|
314
|
-
- **The tunnel signs in with a key when given one.** `SSH_TUNNEL_PRIVATE_KEY_PATH` (with `SSH_TUNNEL_PASSPHRASE` if the key has one) or `SSH_TUNNEL_PASSWORD` sets how the tunnel signs in. Without either, it still uses the default shared credential, as before, and logs a warning.
|
|
315
|
-
- **A repository's dotenv file cannot loosen the tunnel or pick the registry.** `SSH_TUNNEL_HOST_FINGERPRINT`, `SSH_TUNNEL_KNOWN_HOSTS`, `SSH_TUNNEL_BIND_HOST`, `SSH_TUNNEL_PRIVATE_KEY_PATH`, `SSH_TUNNEL_PASSPHRASE` and `AKAN_NPM_REGISTRY` are ignored, with a warning, when a dotenv file in the working directory (`.env`, `.env.local`, `.env.<mode>`, `.env.<mode>.local`) names them, in `KEY=value` or `KEY: value` form, since Bun loads those files before the CLI runs; `create-akan-workspace` does the same for `AKAN_NPM_REGISTRY`. Export them in the shell instead. `SSH_TUNNEL_USERNAME`, `SSH_TUNNEL_PASSWORD` and `SSH_TUNNEL_PORT` are still read from a dotenv file, and `--registry` is unaffected.
|
|
316
|
-
- **`akan download-env` copies only env and secret files.** The archive is unpacked into a temporary folder under `local/`. Only `apps/<app>/env/env.{client,server}.*.ts`, `libs/<lib>/env/env.{client,server}.*.ts` and the files an app's `secrets` patterns name are copied into the workspace. Every other entry, links included, is left out and listed in a warning.
|
|
317
|
-
- **The local registry listens on loopback.** `akan start-registry` now publishes Verdaccio's port as `127.0.0.1:<port>`, taking the port from `--registry`. A registry URL with an IP address (`--registry http://0.0.0.0:4873`) binds to that address instead. A running `akan-verdaccio` container that already listens on every interface gets a warning naming the command that recreates it.
|
|
318
|
-
- **The local registry takes anonymous publishes for the akan packages only.** The bundled `verdaccio.yaml` still lets anyone publish the Akan.js packages. Every other name, the ones proxied from npm, now needs a signed-in user, and sign-up stays off, so a local publish cannot stand in for an npm package. Give those entries `publish: $all` again to restore anonymous publishing.
|
|
319
|
-
- **Subspace names are plain folder names.** A subspace `name` takes letters, digits, `.`, `_` and `-`, and starts with a letter or digit. Any other name is refused when the config is read and when the clone is set up.
|
|
320
|
-
- **A Dockerfile built for the `local` environment stops `docker build`.** The generated Dockerfile of an image built with `AKAN_PUBLIC_ENV=local` fails right after its `FROM` line unless `--build-arg AKAN_ALLOW_LOCAL_IMAGE=1` is passed. Images built for any other environment, and a Dockerfile given verbatim in `akan.config.ts`, are unchanged.
|
|
321
|
-
- **The sample app's task writes need a signed-in user outside local and testing.** The workspace sample's `task.signal.ts` now guards its create, update and task actions with a new `LocalOrSignedIn` guard in `srvkit/guards.ts`. A guest still writes under `AKAN_PUBLIC_ENV` `local` or `testing`, so the sample's own tests keep running. Existing workspaces are unchanged.
|
|
322
|
-
- **`akan login` prefers the device-code answer.** When the cloud answers both ways, the CLI takes the session answered for its device code. A cloud that answers only for the sign-in URL's id still signs you in, and the CLI logs a warning.
|
|
323
|
-
- **`akan tunnel` keeps the dev-only routes local.** On opening a share, the CLI now says that anyone with the URL reaches the app without signing in. Through the share, devtools (`/_akan/devtools`, `/_akan/signal`, `/_akan/constant`, `/_akan/deps`, `/_akan/dictionary`), the HMR socket `/_akan/hmr`, `/_akan/app/*`, `/_akan/ops/*` and every `*.map` file answer 404, and an `x-akan-debug` header is dropped. Pages, their assets and the app's websocket pass through unchanged. `akan start --share` opens its shares through the same filter and prints the same notice. `akan tunnel --dev-routes` (`-d`) shares everything, as before.
|
|
324
|
-
- **The `no-unguarded-endpoint` lint and the agent guidelines describe the new defaults.** The lint says an endpoint without guards is refused with 403 and stops the boot outside local operation, and the guidelines and skills cover the ops channel's limits, snapshot encryption, the agent's write confirmation and request caps.
|
|
325
|
-
|
|
326
|
-
- e3de9ef: `akan code` hardening:
|
|
327
|
-
|
|
328
|
-
- Every profile's deny list now also covers per-environment server env files (`env.server.{debug,develop,main,testing,local}*.ts`; the `env.server.ts` loader and the type file stay readable), Kubernetes and Jenkins credential files, `.akan/code/mcp.json` and `.akan/code/extensions/`, and the home credential stores `~/.akan`, `~/.ssh`, `~/.aws`, `~/.kube`, `~/.docker/config.json`, `~/.netrc` and `~/.git-credentials`, for read, write and the shell. A path is checked the way the engine reads it (`@`, `~`, `$HOME` and `file://` expand) and again through its real path, so a link cannot give a denied file another name. A profile passed to `CodeAgent.create` with its own `paths.deny` still decides its list.
|
|
329
|
-
- The `local` profile asks before a `web_fetch` to a host off a short list of documentation and registry hosts, and before a shell command that reaches the network (`curl`, `wget`, `ssh`, `scp`, `rsync`, `nc`, …); loopback is exempt. Where nobody can answer, such as a sub-agent or a one-shot run, the call is refused instead. `akan code --no-ask-network` turns the question off. A fetch the profile makes without asking follows a redirect only to a host it would also reach without asking. Other profiles are unchanged.
|
|
330
|
-
- `akan code` prints at start that the `local` profile is not a sandbox.
|
|
331
|
-
- A one-shot `akan code "<prompt>"` no longer offers approvals or questions, since nobody answers them during the run. `AKAN_CODE_CAN_PROMPT=1` restores them.
|
|
332
|
-
- MCP sign-in tokens in `~/.akan/code/mcpAuth.json` are bound to the server's origin instead of its name, so a server declared under a known name at another url gets no token. Tokens an older version stored by name move to the origin they were minted for; one whose origin cannot be read is dropped and signs in again.
|
|
333
|
-
- This repo's own `.akan/code/mcp.json` servers and `.akan/code/extensions/` start only after the user approves them once at a terminal. The approval is kept in `~/.akan/code/trust.json` (mode 0600) and asked again when that content changes. An extensions folder past 10,000 files or 64 MiB, or with a link that leads out of it, is not read through and its approval is not kept, so it is asked about at every start. With nobody to ask they are not started, and the start notice says why. `akan code --trust-workspace` (`-T`) starts them for one run without asking. Servers in `~/.akan/code/mcp.json`, where `/mcp add` writes, need no approval; `/mcp add --local` writes this repo's file and keeps the approval it had, so a server added while that file waits for approval waits with it.
|
|
334
|
-
- `akan code --rpc-listen tcp:…` asks each connection to open with `{"auth":"<token>"}` on its first line and answers `{"type":"reply","id":"auth","ok":true}`. The token is generated at start and written to `~/.akan/code/rpc/<port>.token` (mode 0600), or read from the file `AKAN_CODE_RPC_TOKEN_FILE` names. A connection whose first byte is not `{`, or that does not authenticate within five seconds, is closed, and it never displaces the client already attached. `--no-rpc-token` serves without a token. A non-loopback bind is refused unless `--rpc-bind-any` is given. A `unix:` socket is created with mode 0600 and asks for no token, though a client that sends one is answered. Without a token, under `--no-rpc-token` or on a `unix:` socket, a connection whose first byte is not `{`, or that sends nothing within five seconds, is still closed.
|
|
335
|
-
- `AKAN_CODE_HOME`, `AKAN_CODE_CAN_PROMPT`, `AKAN_CODE_PROXY_*` and `AKAN_CODE_RPC_TOKEN_FILE` are ignored, with a start warning, when a dotenv file in the working directory (`.env`, `.env.local`, `.env.<mode>`, `.env.<mode>.local`) names them, because Bun loads those files before the CLI runs. Export them in the shell instead. `~/.akan` and `~/.akan/code` are created with mode 0700, and an existing `~/.akan/code` the user owns with a looser mode is tightened.
|
|
336
|
-
|
|
337
|
-
- e3de9ef: Native and desktop builds now ship tighter defaults for page content, external links, temporary files and installed updates.
|
|
338
|
-
|
|
339
|
-
- **A content security policy by default.** An Akan app's native build puts a Content-Security-Policy in its `index.html`: scripts from `'self'` only (inline ones by hash), connections to `'self'` and any `https:` or `wss:` origin, `https:` images, media, fonts, stylesheets and frames, inline styles, and the plain-`http:` origins the build knows of (an `http:` `AKAN_PUBLIC_SERVER_URL`, `http://localhost:*` in local mode, the carried server's loopback port). The policy also sets `form-action 'self'`, `base-uri 'self'` and `object-src 'none'`, so a form that posts to another origin (an outside payment page, say) no longer submits, and `<object>`/`<embed>` content does not load; add the origin in a map (`{ "form-action": ["https://pay.example.com"] }`). A directive map in `native.csp` adds sources to that policy (`{ "script-src": ["https://cdn.example.com"] }`), a string replaces it, and `native.csp: false` ships no policy, as before; `native.csp: ""` is a build error. In a map, directive names ignore case, a `default-src` entry is added to every fetch directive of the policy but `object-src`, and a directive the policy lacks starts from the one CSP falls back to (`script-src-elem` from `script-src`, `manifest-src` from `default-src`). akan-native hashes inline scripts and styles into `script-src-elem` and `style-src-elem` too when a policy has them.
|
|
340
|
-
- **External links open `https:`, `mailto:` and `tel:` by default.** `opener.openUrl`, and the links and `window.open` calls the iOS, Android and desktop shells hand to the system, open only URLs that the app's `opener` permissions allow: plain `http:` links are not opened unless the app lists them, and an akan-native app whose `capabilities` grant no `opener` hands no link to the system. `native.openUrls` names the URL patterns; `native.openUrls: ["*"]` restores the previous scope. When the app refuses a link this way, `Link` and the router no longer retry it with `window.open`.
|
|
341
|
-
- **Private temporary folders on Linux.** `file-picker` copies, the `filesystem` plugin's `temp` folder and `external-view` captures live under `$XDG_CACHE_HOME/<appId>/tmp` (`~/.cache/<appId>/tmp` when unset), in folders only the user can open, instead of `/tmp/<appId>`. Unlike `/tmp`, nothing empties it at a restart: `file-picker` and `external-view` empty their own folders at launch, and a file an app writes to `temp` stays until the app removes it. macOS and Windows keep their per-user temporary folder. Set `XDG_CACHE_HOME` to move it.
|
|
342
|
-
- **single-instance on Linux without `XDG_RUNTIME_DIR`.** The socket and lock move into a per-user `akan-native-<uid>` folder that only the user can open, and an existing folder another user owns or others can read is not used. A private `XDG_RUNTIME_DIR` is used as before.
|
|
343
|
-
- **A downloaded desktop release is checked again before it is installed.** `updates.apply()` repeats the code-signature check (macOS) and the signer check (Windows) on the staged bundle. The install at quit installs a bundle only once that check passed in this run, outside the time the quit hooks share: as the release was downloaded or the app started, and again when a quit is asked for (Cmd+Q, the last window closed, a logout), which waits up to 10 s for it. A bundle that no longer passes is removed and has to be downloaded again; one whose check has not finished stays for the next quit.
|
|
344
|
-
- **`updates.windowsSigners`** (new, Windows): certificate thumbprints a release's executable must be signed by. Unset keeps the existing check that a release is signed by the same certificate as the running app.
|
|
345
|
-
- **`updates.expiresIn`** (new): `akan publish-update` signs an `expiresAt` that many seconds ahead (at least 3600) into the release manifest, and desktop, iOS and Android apps refuse a manifest past its `expiresAt`. Unset publishes no expiry, and a manifest without one is accepted as before.
|
|
346
|
-
- **`desktop.screenCapture: "auto"` on Windows denies camera and microphone requests**, which the setting would otherwise grant without asking. `"picker"`, the default, keeps the usual prompts.
|
|
347
|
-
- **`native.csp`, `native.openUrls`, `updates.windowsSigners` and `updates.expiresIn` are typed in `akan.config.ts`**, and `csp` and `openUrls` given in the `native` section reach the native build, as a target's own did.
|
|
348
|
-
- **A release build with `devtools` on prints a warning**, since the web inspector then reaches every plugin the page can call.
|
|
349
|
-
- **Paths with a `.` or `..` segment are answered by the app shell** on every platform, literal or percent-encoded, and a navigation to one is not loaded as a page, as `/__akan_native/*` paths already were.
|
|
350
|
-
- **A public env value holding a private key is refused** when the native build records its `AKAN_PUBLIC_*` values, as names with `SECRET`, `TOKEN`, `PASSWORD`, `PRIVATE` or `CREDENTIAL` already were.
|
|
351
|
-
- **akan-native only warns about `'unsafe-inline'` in `script-src`.** Inline styles under `style-src 'unsafe-inline'` no longer produce a warning; inline scripts are still left unhashed when `script-src` allows them.
|
|
352
|
-
|
|
353
|
-
- db5b284: An app using the `shared` and `util` libraries no longer loads `@akanjs/native/core` on its web pages. Their stores imported `akanjs/client/native` for `isNativeShell()` and for the push installation id. That put core and every native plugin wrapper on every page. Native SSO and `usePushNotification` now load the plugin they call on first use inside a shell. The `useCamera`, `useGeoLocation` and `usePurchase` hooks in `akanjs/webkit`, which `shared`'s `Field` and `User.Template` reach, import their plugin and the few core exports they use dynamically, when first called; inside a shell `useCamera` still reads the camera permission at mount. On the minimal app with `shared` merged into its store:
|
|
354
|
-
|
|
355
|
-
- a Link route drops from 148.7 KB raw (38.5 KB brotli) to 101.5 KB raw (23.3 KB brotli);
|
|
356
|
-
- a route drawing `Field` drops from 416.6 KB (113.8 KB brotli) to 370.2 KB (99.8 KB brotli);
|
|
357
|
-
- a route drawing `User.Template` drops from 526.8 KB (140.2 KB brotli) to 481.2 KB (126.3 KB brotli).
|
|
358
|
-
|
|
359
|
-
The runtime guideline and the `no-web-only-api-outside-webkit` message now name `akanjs/client` for `isNativeApp()`, and the native subpaths for push and haptics.
|
|
360
|
-
|
|
361
|
-
- 5e08722: A coding agent now finds the imports and signatures a first app needs in its skills, instead of reading the akanjs sources.
|
|
362
|
-
|
|
363
|
-
- **The `akan-service` and `akan-page` recipes** start each file with its import lines, and the `akan-service` rules say what `serverMode: "batch"` does: the module, endpoints included, mounts only in a `batch` or `all` process, so a page-facing service leaves it off.
|
|
364
|
-
- **A new `akanApi` guideline** lists every import path and the exact signatures of the route stages, `router`, `Link`, `serve`, `adapt`, the endpoint builders, `SignalOption`, `serviceDictionary`, and the keys of `akan.config.ts` with the `web` and `i18n` shapes. It is generated from the akanjs types of the same release, and a test fails when the two drift apart. `akan agent install` ships it as a reference of both skills, and `get_guideline` / `akan guideline show akanApi` print it.
|
|
365
|
-
- **`ServiceOptions.serverMode`** carries a doc comment, so an editor shows the same explanation on hover.
|
|
366
|
-
|
|
367
|
-
- 58f1c64: A route's client code no longer carries the UI of every module in the app and in each lib its store merges.
|
|
368
|
-
|
|
369
|
-
- **Bootstrap.** Each route's `"use client"` entry, every generated root layout and the SSR dev registry start with `import "@apps/<app>/lib/useClient"` and `import "@apps/<app>/lib/st"`, which load the client runtime and the store. They used to import `@apps/<app>/client` bare, and that bundled the whole barrel.
|
|
370
|
-
- **Narrowed barrel imports.** A named import from an app or lib `client` barrel is still narrowed to the files that define the names. This includes `import { st } from "@apps/<app>/client"` in a component and the generated `import { RootStore as <lib> } from "@libs/<lib>/client"` in `lib/st.ts`.
|
|
371
|
-
- What the rewrite keeps of the barrel is now the files that define its `usePage` and `st`, normally `lib/useClient` and `lib/st`. It used to keep a bare import of the barrel itself, which put every module's UI of the app and of each merged lib on every route.
|
|
372
|
-
- A barrel that lacks either name keeps its bare import, as before. One that defines only one of them is not the generated shape, so what else it runs on import is unknown.
|
|
373
|
-
- **Namespace re-exports.** A name the barrel re-exports as a namespace (`export * as cnst`, `export * as store`) is now narrowed too. `import { cnst } from "@libs/<lib>/client"` becomes `import * as cnst from "@libs/<lib>/lib/cnst"`, where it used to load the whole barrel.
|
|
374
|
-
- **`akan start`.** The dev module registry narrows app and lib barrels the same way, so a page loads in dev the module UI it loads in production. The narrowed imports are written as relative paths, so a save that adds a barrel import still updates the page without a full rebuild. `akanjs` barrels stay whole in dev: in an installed workspace their files are npm modules, and a save that reached a new one would rebuild the whole registry.
|
|
375
|
-
- On `apps/minimal`, the registry behind `/en/explore`, `/en/memo` and `/en/lab/data` holds 505 modules (2.5MB app, 1.2MB vendor), down from 949 (2.6MB app, 6.0MB vendor).
|
|
376
|
-
- Moving an export to another file of a barrel compiles again the importers whose names now point at that file, and only those. This works during `akan start` and on the next start after a move made while it was stopped.
|
|
377
|
-
- Client entry discovery under `akan start` reads a barrel again when one of its files changes. An export moved into a `"use client"` file is found without a restart.
|
|
378
|
-
- **CSR shell and MCP App views.** The single-file CSR build that native apps load, and each MCP App view, narrow app and lib barrels too; they used to narrow only `akanjs/ui`. On `apps/minimal` the CSR shell is 1.58MB raw / 411.9K br, down from 3.51MB / 828.8K, and its MCP App views are 20-29% smaller.
|
|
379
|
-
- **Discovery and Tailwind.** Client entry discovery and Tailwind's candidate scan follow the same imports. A lib `"use client"` component is no longer a client entry of every route, and a module UI file that no route imports is no longer scanned.
|
|
380
|
-
- **Size.** Production build of `apps/minimal`:
|
|
381
|
-
- A route that renders only `Link` ships 53.1K raw / 17.2K br of route code, down from 226.6K / 67.1K.
|
|
382
|
-
- With `libs/shared` merged into the store, the `Link` route ships 147.0K / 37.9K, down from 645.6K / 172.8K. A route rendering shared's `Field` ships 416.0K / 113.9K, down from 645.6K / 172.5K. A route rendering shared's `Banner.Zone` ships 454.3K / 123.2K, down from 658.9K / 175.7K.
|
|
383
|
-
- A route still carries whatever its UI imports. On minimal, whose only module is `memo`, the `Memo.Zone` route stays at 243.8K / 72K.
|
|
384
|
-
- **Evaluation order.** A module UI file now runs only on the pages that import it, and only when an import reaches it. It used to run up front, in barrel order, as soon as anything imported the barrel.
|
|
385
|
-
- A UI file whose top level registers something or writes a global must be imported where that side effect is needed.
|
|
386
|
-
- A UI file that reads another UI file's export at its top level, through an import cycle, can now find it uninitialised and throw a TDZ error. Move that read into the component.
|
|
387
|
-
- Generated module `index.ts` files only collect namespaces, so they are unaffected.
|
|
388
|
-
|
|
389
|
-
- 94d3673: Akan Studio lands on the Runtime view when `akan start`'s builder is stopped, not only when there is none or it never answers.
|
|
390
|
-
|
|
391
|
-
- **The dev host marks a reply no builder answered.** A builder request the dev host answers itself carries `kind: "unavailable"`: the builder is stopped, not started yet, failed to start, or exited or was stopped before answering. A failure the builder reports, such as a broken build, carries no kind and reads as before.
|
|
392
|
-
- **`BuilderRpc.isUnavailable(error)`** tells such a failure apart, as `BuilderRpc.isTimeout` does for a request that times out. A bare, empty or unknown `/_akan/studio` view then lands on Runtime, and a view asked for by name still answers 503 with the reason.
|
|
393
|
-
- **Mixed versions keep working.** A server reading a reply from an older dev host, with no kind, answers 503 as before, and an older server ignores the new field.
|
|
394
|
-
|
|
395
|
-
- 3b7247e: A failed tool call now names a code a client or a model can branch on, beside the text it already sent, which is unchanged. No upgrade step is needed: `AgentWireToolResult` and `use-agentic`'s `ToolCallResult` only gain an optional `code`, and `akanjs/common` adds `MCP_FAILURE_META`, `McpFailure` and `FailureCode`.
|
|
396
|
-
|
|
397
|
-
Every code is a bounded token, a dictionary key (`<module>.error.<key>`) or one camelCase identifier, never prose, so no text can pass for one.
|
|
398
|
-
|
|
399
|
-
- **An app's `/mcp`:**
|
|
400
|
-
- A tool error carries `_meta["akanjs/failure"]: { code, statusCode }`, beside the server's own `_meta` for a 2026-07-28 client. The code is the one an HTTP caller gets:
|
|
401
|
-
- a domain `Err` by its dictionary key, such as `base.error.documentNotFound`;
|
|
402
|
-
- an `AkanError` by its code, such as `invalidArgument` for an argument the call got wrong;
|
|
403
|
-
- a 401 or 403 by its status alone (`unauthorized`, `forbidden`);
|
|
404
|
-
- a 5xx by a dictionary key or this server's own `AkanError` code, else by its status (`internalError`, `serviceUnavailable`), never by a code a duck-typed error put in its body.
|
|
405
|
-
- A JSON-RPC error carries `data.code`, which tells apart what `-32602` covers:
|
|
406
|
-
- `unknownTool`, `unknownPrompt` (an unlisted page prompt included) and `unknownResource`;
|
|
407
|
-
- `invalidArgument` for bad arguments or a missing tool name, prompt name or resource uri;
|
|
408
|
-
- a refused screen's `forbidden` or `notFound`.
|
|
409
|
-
A rate-limited call names `tooManyRequests` and the catch-all names `internalError`.
|
|
410
|
-
- An MCP Apps view's call that fails without a domain `Err` restores as an error with that status and code, where it used to be a plain `Error`. A tool the view itself serves to the host names its code in the same `_meta` entry, without a `statusCode`.
|
|
411
|
-
- **`akan mcp`:** a tool error carries the same `_meta["akanjs/failure"]`, with one of these codes:
|
|
412
|
-
- `unknownTool` for a name no mode lists;
|
|
413
|
-
- `toolUnavailable` for a tool outside the server's mode;
|
|
414
|
-
- `invalidArgument` for a missing argument, an unknown guideline name, or a workflow path outside `.akan/workflows/`;
|
|
415
|
-
- `toolFailed` for anything else, with `statusCode` 500. A coded `AkanError` keeps its own code.
|
|
416
|
-
- **The code agent:** an MCP server's tool result keeps the code it named, from `_meta["akanjs/failure"]` or a JSON-RPC error's `data.code`, in the call's `details`.
|
|
417
|
-
- **The in-page agent:** a `toolResults` entry whose tool threw carries `code` beside `error` (see `use-agentic`'s WIRE.md): a dictionary `Err`'s key, else the thrown error's own `code`. A `taint: "source"` tool's result carries none, since its code would travel outside the page-content fence. The bundled Anthropic and OpenAI adaptors send `code` to the model inside the tool result, beside `error`.
|
|
418
|
-
|
|
419
|
-
- 44149b1: A module named in a library that lacks it, such as `akan create-view util:nope`, is refused at once, as one named in an app is. Before, it fell through to the module picker in a terminal, and without one it failed as if no module had been named. Both are now refused, terminal or not, with the modules there are and the line to rerun: `` Unknown module 'util:nope': util has no such module, so rerun it as `akan create-view <sys:module>` (choices: pokedex:card, util:photo). `` An app's used to say only `Invalid module name: nope`.
|
|
420
|
-
- 0d7294c: Narrowed vendor entries hold up during a rolling deploy and on very large builds.
|
|
421
|
-
|
|
422
|
-
- **A route chunk that fails to load during a rolling deploy now loads its page as a document.** A document from the new build can get a page from a replica the deploy has not reached yet, and that page's chunks can import a name the document's narrowed vendor entries lack. Before, the page broke, and React's Flight client kept the failed load, so retrying in the tab failed the same way. Now, if a navigation to another page has not committed, the tab loads its target as a document, which brings a matching import map. If the page is already on screen (a refresh of it counts), the tab reloads it at its current address, fragment and any later query-only change included, and only when the error is a module link or resolve error and the browser is online. A network, ad-blocker or evaluation error leaves the page in place. Only chunks that the latest page navigation's response imports count. The document's own chunks, an overtaken navigation's and a replaced response's do not trigger it. The exception is a refresh of the same page that imports a chunk the document is still loading, which takes that chunk over. Each chunk starts at most one document load per tab, so a chunk that always fails shows its error instead of reloading in a loop. While one document load is under way, another failure does not start a second; the page's next navigation, or its return from the back-forward cache, ends that wait. This applies to `akan build` output only.
|
|
423
|
-
- **A document fallback to the address the tab already shows now reloads it.** A failed refresh, or a back or forward move to a URL with a `#fragment`, fell back with `location.replace` to that same URL, which only scrolls to the fragment and loads nothing. It now calls `location.reload()`.
|
|
424
|
-
- **`akan build` fails when the vendor scan cannot find a route's client entry**, and names the entry. Before, a build that wrote its route bundles somewhere the scan did not look narrowed every vendor entry to nothing. The build passed, and pages threw in the browser.
|
|
425
|
-
- **The vendor scan no longer overflows the stack on large minified chunks.** A function body of about 20,000 statements, which a minifier folds into one comma chain, used to fail `akan build` with `Maximum call stack size exceeded`.
|
|
426
|
-
|
|
427
|
-
- bd4d45a: `akan verify` now fixes or explains three lint failures that were costly to resolve by hand.
|
|
428
|
-
|
|
429
|
-
- **A daisyUI component class your own CSS defines is no longer refused.**
|
|
430
|
-
- `no-daisyui-legacy-class` reports a component name such as `stat-value` or `card-body` as a warning, since the rule cannot read the app's CSS. `akan verify` drops the warning when a stylesheet in the app or a lib defines that class, as a selector or an `@utility`.
|
|
431
|
-
- A dropped daisyUI colour slot such as `bg-base-100` is still an error. In a string that carries both, the colour-slot error is reported first, so the warning cannot hide it.
|
|
432
|
-
- **`akan verify` renames `#private` methods in `*.{constant,document,service,store}.ts`.**
|
|
433
|
-
- `#name()` becomes `private name()`, and each call or other reference to it is renamed to match.
|
|
434
|
-
- A method is left to the diagnostic when its class already has a member with that name, or when a `#name in obj` check reads it.
|
|
435
|
-
- `#private` fields are not touched. A call on one, such as `this.#cache.get(key)`, is no longer reported as a private method call.
|
|
436
|
-
- The rule no longer suggests an underscore prefix: a service runs `_preCreate`-style names as lifecycle hooks.
|
|
437
|
-
- The rule's own rewrite is removed. Under `--unsafe` it renamed a `#field` where it was called but not where it was declared.
|
|
438
|
-
- **A raw `Error` in an `srvkit/` adapter names its fix.** `akan verify` prints the `Err` import path from that file, and where the key goes: the app's or lib's own service dictionary, `lib/_<name>/<name>.dictionary.ts`, as `<name>.error.<key>`.
|
|
439
|
-
|
|
440
|
-
- d4d84c6: `akan workflow validate` exits 0 when the only failures left are known baseline blockers (`overallStatus` `passed-with-baseline-blockers`); any other failed validation still exits 1. Over MCP, a passing `apply_workflow` dry run names `apply_workflow` with the same `planPath` and no `dryRun` as `next`, where it named `run_validation`, which had nothing to validate. A failed `akan workflow apply` reports no generated files queued for sync, no recommended validation command and no `akan verify` next action, and a failed field, mutation or slice write (`akan add-field` and its siblings) lists no generated file, validation command or next action; both used to list them as if the write had passed. With `-o json`, `akan workflow plan`, `apply`, `validate` and `report` print only the JSON report on stdout and send their log lines (`File Create:`, sync's warnings) to stderr; `create-module` and `create-scalar` applies used to print them before the report, so stdout did not parse. The text output is unchanged. `add-field` (the workflow and `akan add-field`) imports the type it writes: a scalar of the target from `../__scalar/<scalar>/<scalar>.constant`, a model from `../<model>/<model>.constant`, and `ID`, `Any` and the other `akanjs/base` types from `akanjs/base`, where it imported only `Int` and `Float` and wrote `field(Address)` with no import. A type that is not built in, not imported by the constant and not a scalar or model of the target is refused with `primitive-field-type-unknown`, at plan time and again at apply, before anything is written.
|
|
441
|
-
- d2b2291: A failed workflow no longer reports success to its caller. `akan workflow plan` exits 1 when the plan has an error, `akan workflow apply` when the apply or its `--dry-run` fails, and `akan workflow validate` when its status is `failed` (which includes `passed-with-baseline-blockers`); all three exited 0 before. A dry run of a plan with an error, such as `add-field --type Number`, reports `failed` and lists no changed or generated files, where it used to list the plan's edits under "Automatically Modified". Over MCP, `plan_workflow` names `apply_workflow` in `next` and `approval.canApplyWith` only for a plan without an error, and `apply_workflow` names `run_validation` only when the apply did not fail; a refused plan also drops its "apply this plan" and "validate the apply report" recommendations. The workflows that write into an existing module (`add-field`, `add-enum-field`, `add-mutation`, `add-slice`, `create-ui`, `rename-key`) now refuse a service module, or any folder without its `<module>.constant.ts`, at plan time and again at apply. The `workflow-module-not-database` error lists the target's database modules and points at `create-module`, and for a field at `create-scalar`. Before, `add-field` on a service module passed its plan and dry run and failed only at apply, and `create-ui` wrote a misnamed `_<service>.View.tsx` into it. The `workflow-module-missing` error now lists only database modules too, says a name that matches a service module (with or without its `_`) is one instead of asking "Did you mean \_<service>?", and points at another app or library only when it holds a database module of that name.
|
|
442
|
-
- adcdf3b: `akan workflow plan` and the `plan_workflow` MCP tool refuse a module the target app or library lacks, for every workflow that writes into an existing module (`add-field`, `add-enum-field`, `add-mutation`, `add-slice`, `create-ui`, `rename-key`). The `workflow-module-missing` error names the module, lists the modules the target has, and points at the module whose name differs only in case or by a leading `_`, at a scalar of that name, or at the app or library that holds it; only when none exists does it point at `create-module`. Before, the plan passed and its dry run reported `passed`. `add-mutation` used to plan a missing module with a warning so that a `create-module` plan could precede it; it now refuses too, so plan it after applying `create-module`. Every workflow now refuses an unknown `app` at plan time, listing the workspace's apps and libraries. `apply` and `--dry-run` check the target again before anything else, so a plan written earlier for a module that is gone fails instead of passing. `plan_workflow` now inspects the MCP server's workspace rather than the process directory.
|
|
443
|
-
- Updated dependencies [bd198af]
|
|
444
|
-
- Updated dependencies [bc792ab]
|
|
445
|
-
- Updated dependencies [31f7039]
|
|
446
|
-
- Updated dependencies [61fbd7d]
|
|
447
|
-
- Updated dependencies [b3f85fa]
|
|
448
|
-
- Updated dependencies [a707354]
|
|
449
|
-
- Updated dependencies [4d61170]
|
|
450
|
-
- Updated dependencies [c723713]
|
|
451
|
-
- Updated dependencies [0351ad4]
|
|
452
|
-
- Updated dependencies [ba417c6]
|
|
453
|
-
- Updated dependencies [bb40785]
|
|
454
|
-
- Updated dependencies [d2bd9b7]
|
|
455
|
-
- Updated dependencies [b391491]
|
|
456
|
-
- Updated dependencies [2d357d6]
|
|
457
|
-
- Updated dependencies [039ad3b]
|
|
458
|
-
- Updated dependencies [69ed07e]
|
|
459
|
-
- Updated dependencies [29ef72f]
|
|
460
|
-
- Updated dependencies [7c85c42]
|
|
461
|
-
- Updated dependencies [ddd3d96]
|
|
462
|
-
- Updated dependencies [3f231a7]
|
|
463
|
-
- Updated dependencies [96f9ff6]
|
|
464
|
-
- Updated dependencies [af7c411]
|
|
465
|
-
- Updated dependencies [1ebc57a]
|
|
466
|
-
- Updated dependencies [c3b5b3c]
|
|
467
|
-
- Updated dependencies [dcb7e61]
|
|
468
|
-
- Updated dependencies [6d5b544]
|
|
469
|
-
- Updated dependencies [73f8830]
|
|
470
|
-
- Updated dependencies [958f175]
|
|
471
|
-
- Updated dependencies [9f30e93]
|
|
472
|
-
- Updated dependencies [d9eaacc]
|
|
473
|
-
- Updated dependencies [d9eaacc]
|
|
474
|
-
- Updated dependencies [c334caf]
|
|
475
|
-
- Updated dependencies [170be15]
|
|
476
|
-
- Updated dependencies [e143263]
|
|
477
|
-
- Updated dependencies [e4f7876]
|
|
478
|
-
- Updated dependencies [cb0fd5b]
|
|
479
|
-
- Updated dependencies [256b6e3]
|
|
480
|
-
- Updated dependencies [c48d780]
|
|
481
|
-
- Updated dependencies [3537448]
|
|
482
|
-
- Updated dependencies [c882491]
|
|
483
|
-
- Updated dependencies [f3def22]
|
|
484
|
-
- Updated dependencies [8424863]
|
|
485
|
-
- Updated dependencies [bf28968]
|
|
486
|
-
- Updated dependencies [9b5bcee]
|
|
487
|
-
- Updated dependencies [4561152]
|
|
488
|
-
- Updated dependencies [73e833b]
|
|
489
|
-
- Updated dependencies [b24fef3]
|
|
490
|
-
- Updated dependencies [465ccb9]
|
|
491
|
-
- Updated dependencies [513e48d]
|
|
492
|
-
- Updated dependencies [5cd1fc3]
|
|
493
|
-
- Updated dependencies [f47cc82]
|
|
494
|
-
- Updated dependencies [7f0de74]
|
|
495
|
-
- Updated dependencies [c0b84d0]
|
|
496
|
-
- Updated dependencies [1f93507]
|
|
497
|
-
- Updated dependencies [5d3cb3e]
|
|
498
|
-
- Updated dependencies [9a9e1fa]
|
|
499
|
-
- Updated dependencies [9055634]
|
|
500
|
-
- Updated dependencies [3537448]
|
|
501
|
-
- Updated dependencies [a373d51]
|
|
502
|
-
- Updated dependencies [c723e7a]
|
|
503
|
-
- Updated dependencies [6c3a303]
|
|
504
|
-
- Updated dependencies [27440aa]
|
|
505
|
-
- Updated dependencies [e3de9ef]
|
|
506
|
-
- Updated dependencies [e3de9ef]
|
|
507
|
-
- Updated dependencies [e3de9ef]
|
|
508
|
-
- Updated dependencies [e3de9ef]
|
|
509
|
-
- Updated dependencies [e3de9ef]
|
|
510
|
-
- Updated dependencies [e3de9ef]
|
|
511
|
-
- Updated dependencies [e3de9ef]
|
|
512
|
-
- Updated dependencies [99fda20]
|
|
513
|
-
- Updated dependencies [db5b284]
|
|
514
|
-
- Updated dependencies [5e08722]
|
|
515
|
-
- Updated dependencies [df32c46]
|
|
516
|
-
- Updated dependencies [5f809e8]
|
|
517
|
-
- Updated dependencies [76705dd]
|
|
518
|
-
- Updated dependencies [206bb69]
|
|
519
|
-
- Updated dependencies [170be15]
|
|
520
|
-
- Updated dependencies [cfe50cb]
|
|
521
|
-
- Updated dependencies [94d3673]
|
|
522
|
-
- Updated dependencies [e4c7e5c]
|
|
523
|
-
- Updated dependencies [6291fec]
|
|
524
|
-
- Updated dependencies [0c480c6]
|
|
525
|
-
- Updated dependencies [3b7247e]
|
|
526
|
-
- Updated dependencies [e4c3009]
|
|
527
|
-
- Updated dependencies [0d7294c]
|
|
528
|
-
- Updated dependencies [d9eaacc]
|
|
529
|
-
- akanjs@3.2.0
|
|
530
|
-
- @akanjs/language@3.2.0
|
|
69
|
+
- Updated dependencies [038d918]
|
|
70
|
+
- akanjs@3.3.0
|
|
71
|
+
- @akanjs/language@3.3.0
|
|
531
72
|
|
|
532
73
|
## 3.1.1
|
|
533
74
|
|