@intlayer/engine 9.0.0-canary.12
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/README.md +330 -0
- package/dist/assets/initConfig/templates/cjs.txt +140 -0
- package/dist/assets/initConfig/templates/json.txt +98 -0
- package/dist/assets/initConfig/templates/mjs.txt +140 -0
- package/dist/assets/initConfig/templates/ts.txt +139 -0
- package/dist/assets/installSkills/LICENCE.md +201 -0
- package/dist/assets/installSkills/skills/angular.md +159 -0
- package/dist/assets/installSkills/skills/astro.md +40 -0
- package/dist/assets/installSkills/skills/cli.md +68 -0
- package/dist/assets/installSkills/skills/compiler.md +32 -0
- package/dist/assets/installSkills/skills/config.md +63 -0
- package/dist/assets/installSkills/skills/content.md +377 -0
- package/dist/assets/installSkills/skills/next-js.md +130 -0
- package/dist/assets/installSkills/skills/preact.md +83 -0
- package/dist/assets/installSkills/skills/react.md +105 -0
- package/dist/assets/installSkills/skills/remote-content.md +31 -0
- package/dist/assets/installSkills/skills/solid.md +90 -0
- package/dist/assets/installSkills/skills/svelte.md +84 -0
- package/dist/assets/installSkills/skills/usage.md +44 -0
- package/dist/assets/installSkills/skills/vue.md +56 -0
- package/dist/cjs/_virtual/_rolldown/runtime.cjs +29 -0
- package/dist/cjs/_virtual/_utils_asset.cjs +98 -0
- package/dist/cjs/build.cjs +60 -0
- package/dist/cjs/buildIntlayerDictionary/buildIntlayerDictionary.cjs +80 -0
- package/dist/cjs/buildIntlayerDictionary/buildIntlayerDictionary.cjs.map +1 -0
- package/dist/cjs/buildIntlayerDictionary/index.cjs +6 -0
- package/dist/cjs/buildIntlayerDictionary/processContentDeclaration.cjs +27 -0
- package/dist/cjs/buildIntlayerDictionary/processContentDeclaration.cjs.map +1 -0
- package/dist/cjs/buildIntlayerDictionary/writeDynamicDictionary.cjs +206 -0
- package/dist/cjs/buildIntlayerDictionary/writeDynamicDictionary.cjs.map +1 -0
- package/dist/cjs/buildIntlayerDictionary/writeFetchDictionary.cjs +59 -0
- package/dist/cjs/buildIntlayerDictionary/writeFetchDictionary.cjs.map +1 -0
- package/dist/cjs/buildIntlayerDictionary/writeMergedDictionary.cjs +49 -0
- package/dist/cjs/buildIntlayerDictionary/writeMergedDictionary.cjs.map +1 -0
- package/dist/cjs/buildIntlayerDictionary/writeRemoteDictionary.cjs +51 -0
- package/dist/cjs/buildIntlayerDictionary/writeRemoteDictionary.cjs.map +1 -0
- package/dist/cjs/buildIntlayerDictionary/writeUnmergedDictionary.cjs +62 -0
- package/dist/cjs/buildIntlayerDictionary/writeUnmergedDictionary.cjs.map +1 -0
- package/dist/cjs/cleanOutputDir.cjs +31 -0
- package/dist/cjs/cleanOutputDir.cjs.map +1 -0
- package/dist/cjs/cleanRemovedContentDeclaration.cjs +97 -0
- package/dist/cjs/cleanRemovedContentDeclaration.cjs.map +1 -0
- package/dist/cjs/cli.cjs +48 -0
- package/dist/cjs/createDictionaryEntryPoint/createDictionaryEntryPoint.cjs +71 -0
- package/dist/cjs/createDictionaryEntryPoint/createDictionaryEntryPoint.cjs.map +1 -0
- package/dist/cjs/createDictionaryEntryPoint/generateDictionaryListContent.cjs +43 -0
- package/dist/cjs/createDictionaryEntryPoint/generateDictionaryListContent.cjs.map +1 -0
- package/dist/cjs/createDictionaryEntryPoint/getBuiltDictionariesPath.cjs +25 -0
- package/dist/cjs/createDictionaryEntryPoint/getBuiltDictionariesPath.cjs.map +1 -0
- package/dist/cjs/createDictionaryEntryPoint/getBuiltDynamicDictionariesPath.cjs +26 -0
- package/dist/cjs/createDictionaryEntryPoint/getBuiltDynamicDictionariesPath.cjs.map +1 -0
- package/dist/cjs/createDictionaryEntryPoint/getBuiltFetchDictionariesPath.cjs +26 -0
- package/dist/cjs/createDictionaryEntryPoint/getBuiltFetchDictionariesPath.cjs.map +1 -0
- package/dist/cjs/createDictionaryEntryPoint/getBuiltRemoteDictionariesPath.cjs +25 -0
- package/dist/cjs/createDictionaryEntryPoint/getBuiltRemoteDictionariesPath.cjs.map +1 -0
- package/dist/cjs/createDictionaryEntryPoint/getBuiltUnmergedDictionariesPath.cjs +25 -0
- package/dist/cjs/createDictionaryEntryPoint/getBuiltUnmergedDictionariesPath.cjs.map +1 -0
- package/dist/cjs/createDictionaryEntryPoint/index.cjs +16 -0
- package/dist/cjs/createType/createModuleAugmentation.cjs +126 -0
- package/dist/cjs/createType/createModuleAugmentation.cjs.map +1 -0
- package/dist/cjs/createType/createType.cjs +30 -0
- package/dist/cjs/createType/createType.cjs.map +1 -0
- package/dist/cjs/createType/index.cjs +8 -0
- package/dist/cjs/detectFormatCommand.cjs +33 -0
- package/dist/cjs/detectFormatCommand.cjs.map +1 -0
- package/dist/cjs/docReview/alignBlocks.cjs +79 -0
- package/dist/cjs/docReview/alignBlocks.cjs.map +1 -0
- package/dist/cjs/docReview/computeSimilarity.cjs +42 -0
- package/dist/cjs/docReview/computeSimilarity.cjs.map +1 -0
- package/dist/cjs/docReview/fingerprintBlock.cjs +35 -0
- package/dist/cjs/docReview/fingerprintBlock.cjs.map +1 -0
- package/dist/cjs/docReview/index.cjs +25 -0
- package/dist/cjs/docReview/mapChangedLinesToBlocks.cjs +27 -0
- package/dist/cjs/docReview/mapChangedLinesToBlocks.cjs.map +1 -0
- package/dist/cjs/docReview/normalizeBlock.cjs +34 -0
- package/dist/cjs/docReview/normalizeBlock.cjs.map +1 -0
- package/dist/cjs/docReview/pipeline.cjs +144 -0
- package/dist/cjs/docReview/pipeline.cjs.map +1 -0
- package/dist/cjs/docReview/planActions.cjs +58 -0
- package/dist/cjs/docReview/planActions.cjs.map +1 -0
- package/dist/cjs/docReview/rebuildDocument.cjs +65 -0
- package/dist/cjs/docReview/rebuildDocument.cjs.map +1 -0
- package/dist/cjs/docReview/reviewReport.cjs +200 -0
- package/dist/cjs/docReview/reviewReport.cjs.map +1 -0
- package/dist/cjs/docReview/segmentDocument.cjs +134 -0
- package/dist/cjs/docReview/segmentDocument.cjs.map +1 -0
- package/dist/cjs/docReview/types.cjs +0 -0
- package/dist/cjs/fetchDistantDictionaries.cjs +53 -0
- package/dist/cjs/fetchDistantDictionaries.cjs.map +1 -0
- package/dist/cjs/filterInvalidDictionaries.cjs +57 -0
- package/dist/cjs/filterInvalidDictionaries.cjs.map +1 -0
- package/dist/cjs/formatDictionary.cjs +60 -0
- package/dist/cjs/formatDictionary.cjs.map +1 -0
- package/dist/cjs/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.cjs +83 -0
- package/dist/cjs/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.cjs.map +1 -0
- package/dist/cjs/getContentDeclarationFileTemplate/index.cjs +4 -0
- package/dist/cjs/handleAdditionalContentDeclarationFile.cjs +35 -0
- package/dist/cjs/handleAdditionalContentDeclarationFile.cjs.map +1 -0
- package/dist/cjs/handleContentDeclarationFileChange.cjs +56 -0
- package/dist/cjs/handleContentDeclarationFileChange.cjs.map +1 -0
- package/dist/cjs/handleContentDeclarationFileMoved.cjs +25 -0
- package/dist/cjs/handleContentDeclarationFileMoved.cjs.map +1 -0
- package/dist/cjs/handleUnlinkedContentDeclarationFile.cjs +38 -0
- package/dist/cjs/handleUnlinkedContentDeclarationFile.cjs.map +1 -0
- package/dist/cjs/init/cms.cjs +140 -0
- package/dist/cjs/init/cms.cjs.map +1 -0
- package/dist/cjs/init/frameworkSetup/index.cjs +27 -0
- package/dist/cjs/init/frameworkSetup/index.cjs.map +1 -0
- package/dist/cjs/init/frameworkSetup/nextAppRouter/detect.cjs +56 -0
- package/dist/cjs/init/frameworkSetup/nextAppRouter/detect.cjs.map +1 -0
- package/dist/cjs/init/frameworkSetup/nextAppRouter/index.cjs +107 -0
- package/dist/cjs/init/frameworkSetup/nextAppRouter/index.cjs.map +1 -0
- package/dist/cjs/init/frameworkSetup/nextAppRouter/restructure.cjs +163 -0
- package/dist/cjs/init/frameworkSetup/nextAppRouter/restructure.cjs.map +1 -0
- package/dist/cjs/init/frameworkSetup/nextAppRouter/templates.cjs +122 -0
- package/dist/cjs/init/frameworkSetup/nextAppRouter/templates.cjs.map +1 -0
- package/dist/cjs/init/frameworkSetup/nextAppRouter/transforms.cjs +196 -0
- package/dist/cjs/init/frameworkSetup/nextAppRouter/transforms.cjs.map +1 -0
- package/dist/cjs/init/frameworkSetup/tanstackStart/detect.cjs +31 -0
- package/dist/cjs/init/frameworkSetup/tanstackStart/detect.cjs.map +1 -0
- package/dist/cjs/init/frameworkSetup/tanstackStart/index.cjs +76 -0
- package/dist/cjs/init/frameworkSetup/tanstackStart/index.cjs.map +1 -0
- package/dist/cjs/init/frameworkSetup/tanstackStart/restructure.cjs +116 -0
- package/dist/cjs/init/frameworkSetup/tanstackStart/restructure.cjs.map +1 -0
- package/dist/cjs/init/frameworkSetup/tanstackStart/templates.cjs +106 -0
- package/dist/cjs/init/frameworkSetup/tanstackStart/templates.cjs.map +1 -0
- package/dist/cjs/init/frameworkSetup/tanstackStart/transforms.cjs +141 -0
- package/dist/cjs/init/frameworkSetup/tanstackStart/transforms.cjs.map +1 -0
- package/dist/cjs/init/frameworkSetup/types.cjs +0 -0
- package/dist/cjs/init/index.cjs +521 -0
- package/dist/cjs/init/index.cjs.map +1 -0
- package/dist/cjs/init/utils/astImports.cjs +56 -0
- package/dist/cjs/init/utils/astImports.cjs.map +1 -0
- package/dist/cjs/init/utils/configManipulation.cjs +516 -0
- package/dist/cjs/init/utils/configManipulation.cjs.map +1 -0
- package/dist/cjs/init/utils/fileSystem.cjs +231 -0
- package/dist/cjs/init/utils/fileSystem.cjs.map +1 -0
- package/dist/cjs/init/utils/githubActions.cjs +159 -0
- package/dist/cjs/init/utils/githubActions.cjs.map +1 -0
- package/dist/cjs/init/utils/index.cjs +51 -0
- package/dist/cjs/init/utils/jsonParser.cjs +43 -0
- package/dist/cjs/init/utils/jsonParser.cjs.map +1 -0
- package/dist/cjs/init/utils/nextCompilerBabel.cjs +119 -0
- package/dist/cjs/init/utils/nextCompilerBabel.cjs.map +1 -0
- package/dist/cjs/init/utils/packageManager.cjs +303 -0
- package/dist/cjs/init/utils/packageManager.cjs.map +1 -0
- package/dist/cjs/init/utils/tsConfig.cjs +19 -0
- package/dist/cjs/init/utils/tsConfig.cjs.map +1 -0
- package/dist/cjs/initConfig/index.cjs +49 -0
- package/dist/cjs/initConfig/index.cjs.map +1 -0
- package/dist/cjs/installLSP.cjs +58 -0
- package/dist/cjs/installLSP.cjs.map +1 -0
- package/dist/cjs/installMCP/installMCP.cjs +51 -0
- package/dist/cjs/installMCP/installMCP.cjs.map +1 -0
- package/dist/cjs/installSkills/index.cjs +307 -0
- package/dist/cjs/installSkills/index.cjs.map +1 -0
- package/dist/cjs/listDictionariesPath.cjs +43 -0
- package/dist/cjs/listDictionariesPath.cjs.map +1 -0
- package/dist/cjs/listGitFiles.cjs +105 -0
- package/dist/cjs/listGitFiles.cjs.map +1 -0
- package/dist/cjs/listProjects.cjs +48 -0
- package/dist/cjs/listProjects.cjs.map +1 -0
- package/dist/cjs/loadDictionaries/getIntlayerBundle.cjs +56 -0
- package/dist/cjs/loadDictionaries/getIntlayerBundle.cjs.map +1 -0
- package/dist/cjs/loadDictionaries/index.cjs +14 -0
- package/dist/cjs/loadDictionaries/loadContentDeclaration.cjs +133 -0
- package/dist/cjs/loadDictionaries/loadContentDeclaration.cjs.map +1 -0
- package/dist/cjs/loadDictionaries/loadDictionaries.cjs +128 -0
- package/dist/cjs/loadDictionaries/loadDictionaries.cjs.map +1 -0
- package/dist/cjs/loadDictionaries/loadLocalDictionaries.cjs +28 -0
- package/dist/cjs/loadDictionaries/loadLocalDictionaries.cjs.map +1 -0
- package/dist/cjs/loadDictionaries/loadMarkdownContentDeclaration.cjs +45 -0
- package/dist/cjs/loadDictionaries/loadMarkdownContentDeclaration.cjs.map +1 -0
- package/dist/cjs/loadDictionaries/loadRemoteDictionaries.cjs +63 -0
- package/dist/cjs/loadDictionaries/loadRemoteDictionaries.cjs.map +1 -0
- package/dist/cjs/loadDictionaries/loadYamlContentDeclaration.cjs +27 -0
- package/dist/cjs/loadDictionaries/loadYamlContentDeclaration.cjs.map +1 -0
- package/dist/cjs/loadDictionaries/log.cjs +138 -0
- package/dist/cjs/loadDictionaries/log.cjs.map +1 -0
- package/dist/cjs/loadDictionaries/logTypeScriptErrors.cjs +64 -0
- package/dist/cjs/loadDictionaries/logTypeScriptErrors.cjs.map +1 -0
- package/dist/cjs/logConfigDetails.cjs +40 -0
- package/dist/cjs/logConfigDetails.cjs.map +1 -0
- package/dist/cjs/prepareIntlayer.cjs +104 -0
- package/dist/cjs/prepareIntlayer.cjs.map +1 -0
- package/dist/cjs/reduceDictionaryContent/applyMask.cjs +31 -0
- package/dist/cjs/reduceDictionaryContent/applyMask.cjs.map +1 -0
- package/dist/cjs/reduceDictionaryContent/reduceDictionaryContent.cjs +13 -0
- package/dist/cjs/reduceDictionaryContent/reduceDictionaryContent.cjs.map +1 -0
- package/dist/cjs/scan/analyzeBundleContent.cjs +182 -0
- package/dist/cjs/scan/analyzeBundleContent.cjs.map +1 -0
- package/dist/cjs/scan/calculateScore.cjs +65 -0
- package/dist/cjs/scan/calculateScore.cjs.map +1 -0
- package/dist/cjs/scan/checks.cjs +274 -0
- package/dist/cjs/scan/checks.cjs.map +1 -0
- package/dist/cjs/scan/index.cjs +31 -0
- package/dist/cjs/scan/parseHtml.cjs +127 -0
- package/dist/cjs/scan/parseHtml.cjs.map +1 -0
- package/dist/cjs/scan/scanWebsite.cjs +205 -0
- package/dist/cjs/scan/scanWebsite.cjs.map +1 -0
- package/dist/cjs/scan/types.cjs +0 -0
- package/dist/cjs/utils/autoDecorateContent.cjs +90 -0
- package/dist/cjs/utils/autoDecorateContent.cjs.map +1 -0
- package/dist/cjs/utils/buildComponentFilesList.cjs +94 -0
- package/dist/cjs/utils/buildComponentFilesList.cjs.map +1 -0
- package/dist/cjs/utils/buildFilesList.cjs +84 -0
- package/dist/cjs/utils/buildFilesList.cjs.map +1 -0
- package/dist/cjs/utils/chunkJSON.cjs +337 -0
- package/dist/cjs/utils/chunkJSON.cjs.map +1 -0
- package/dist/cjs/utils/formatter.cjs +18 -0
- package/dist/cjs/utils/formatter.cjs.map +1 -0
- package/dist/cjs/utils/getChunk.cjs +35 -0
- package/dist/cjs/utils/getChunk.cjs.map +1 -0
- package/dist/cjs/utils/getContentExtension.cjs +30 -0
- package/dist/cjs/utils/getContentExtension.cjs.map +1 -0
- package/dist/cjs/utils/getFormatFromExtension.cjs +41 -0
- package/dist/cjs/utils/getFormatFromExtension.cjs.map +1 -0
- package/dist/cjs/utils/getPathHash.cjs +22 -0
- package/dist/cjs/utils/getPathHash.cjs.map +1 -0
- package/dist/cjs/utils/index.cjs +50 -0
- package/dist/cjs/utils/mergeChunks.cjs +29 -0
- package/dist/cjs/utils/mergeChunks.cjs.map +1 -0
- package/dist/cjs/utils/pLimit.cjs +134 -0
- package/dist/cjs/utils/pLimit.cjs.map +1 -0
- package/dist/cjs/utils/parallelize.cjs +12 -0
- package/dist/cjs/utils/parallelize.cjs.map +1 -0
- package/dist/cjs/utils/parallelizeGlobal.cjs +30 -0
- package/dist/cjs/utils/parallelizeGlobal.cjs.map +1 -0
- package/dist/cjs/utils/readDictionariesFromDisk.cjs +25 -0
- package/dist/cjs/utils/readDictionariesFromDisk.cjs.map +1 -0
- package/dist/cjs/utils/reduceObjectFormat.cjs +70 -0
- package/dist/cjs/utils/reduceObjectFormat.cjs.map +1 -0
- package/dist/cjs/utils/resolveObjectPromises.cjs +22 -0
- package/dist/cjs/utils/resolveObjectPromises.cjs.map +1 -0
- package/dist/cjs/utils/resolveRelativePath.cjs +22 -0
- package/dist/cjs/utils/resolveRelativePath.cjs.map +1 -0
- package/dist/cjs/utils/runOnce.cjs +96 -0
- package/dist/cjs/utils/runOnce.cjs.map +1 -0
- package/dist/cjs/utils/runParallel/bin.cjs +55 -0
- package/dist/cjs/utils/runParallel/bin.cjs.map +1 -0
- package/dist/cjs/utils/runParallel/bootstrap.cjs +25 -0
- package/dist/cjs/utils/runParallel/bootstrap.cjs.map +1 -0
- package/dist/cjs/utils/runParallel/index.cjs +102 -0
- package/dist/cjs/utils/runParallel/index.cjs.map +1 -0
- package/dist/cjs/utils/runParallel/pidTree.cjs +146 -0
- package/dist/cjs/utils/runParallel/pidTree.cjs.map +1 -0
- package/dist/cjs/utils/runParallel/ps.cjs +50 -0
- package/dist/cjs/utils/runParallel/ps.cjs.map +1 -0
- package/dist/cjs/utils/runParallel/runTask.cjs +155 -0
- package/dist/cjs/utils/runParallel/runTask.cjs.map +1 -0
- package/dist/cjs/utils/runParallel/spawnPosix.cjs +49 -0
- package/dist/cjs/utils/runParallel/spawnPosix.cjs.map +1 -0
- package/dist/cjs/utils/runParallel/spawnWin32.cjs +44 -0
- package/dist/cjs/utils/runParallel/spawnWin32.cjs.map +1 -0
- package/dist/cjs/utils/runParallel/wmic.cjs +53 -0
- package/dist/cjs/utils/runParallel/wmic.cjs.map +1 -0
- package/dist/cjs/utils/sortAlphabetically.cjs +8 -0
- package/dist/cjs/utils/sortAlphabetically.cjs.map +1 -0
- package/dist/cjs/utils/splitTextByLine.cjs +12 -0
- package/dist/cjs/utils/splitTextByLine.cjs.map +1 -0
- package/dist/cjs/utils/verifyIdenticObjectFormat.cjs +66 -0
- package/dist/cjs/utils/verifyIdenticObjectFormat.cjs.map +1 -0
- package/dist/cjs/watcher.cjs +230 -0
- package/dist/cjs/watcher.cjs.map +1 -0
- package/dist/cjs/writeConfiguration/generateConfigurationContent.cjs +35 -0
- package/dist/cjs/writeConfiguration/generateConfigurationContent.cjs.map +1 -0
- package/dist/cjs/writeConfiguration/index.cjs +25 -0
- package/dist/cjs/writeConfiguration/index.cjs.map +1 -0
- package/dist/cjs/writeContentDeclaration/detectExportedComponentName.cjs +29 -0
- package/dist/cjs/writeContentDeclaration/detectExportedComponentName.cjs.map +1 -0
- package/dist/cjs/writeContentDeclaration/dictionaryStatus.cjs +0 -0
- package/dist/cjs/writeContentDeclaration/index.cjs +10 -0
- package/dist/cjs/writeContentDeclaration/processContentDeclarationContent.cjs +95 -0
- package/dist/cjs/writeContentDeclaration/processContentDeclarationContent.cjs.map +1 -0
- package/dist/cjs/writeContentDeclaration/transformJSFile.cjs +417 -0
- package/dist/cjs/writeContentDeclaration/transformJSFile.cjs.map +1 -0
- package/dist/cjs/writeContentDeclaration/transformJSONFile.cjs +128 -0
- package/dist/cjs/writeContentDeclaration/transformJSONFile.cjs.map +1 -0
- package/dist/cjs/writeContentDeclaration/writeContentDeclaration.cjs +164 -0
- package/dist/cjs/writeContentDeclaration/writeContentDeclaration.cjs.map +1 -0
- package/dist/cjs/writeContentDeclaration/writeJSFile.cjs +93 -0
- package/dist/cjs/writeContentDeclaration/writeJSFile.cjs.map +1 -0
- package/dist/cjs/writeContentDeclaration/writeMarkdownFile.cjs +66 -0
- package/dist/cjs/writeContentDeclaration/writeMarkdownFile.cjs.map +1 -0
- package/dist/cjs/writeContentDeclaration/writeYamlFile.cjs +44 -0
- package/dist/cjs/writeContentDeclaration/writeYamlFile.cjs.map +1 -0
- package/dist/cjs/writeFileIfChanged.cjs +51 -0
- package/dist/cjs/writeFileIfChanged.cjs.map +1 -0
- package/dist/cjs/writeJsonIfChanged.cjs +18 -0
- package/dist/cjs/writeJsonIfChanged.cjs.map +1 -0
- package/dist/esm/_virtual/_rolldown/runtime.mjs +8 -0
- package/dist/esm/_virtual/_utils_asset.mjs +97 -0
- package/dist/esm/build.mjs +26 -0
- package/dist/esm/buildIntlayerDictionary/buildIntlayerDictionary.mjs +78 -0
- package/dist/esm/buildIntlayerDictionary/buildIntlayerDictionary.mjs.map +1 -0
- package/dist/esm/buildIntlayerDictionary/index.mjs +4 -0
- package/dist/esm/buildIntlayerDictionary/processContentDeclaration.mjs +25 -0
- package/dist/esm/buildIntlayerDictionary/processContentDeclaration.mjs.map +1 -0
- package/dist/esm/buildIntlayerDictionary/writeDynamicDictionary.mjs +201 -0
- package/dist/esm/buildIntlayerDictionary/writeDynamicDictionary.mjs.map +1 -0
- package/dist/esm/buildIntlayerDictionary/writeFetchDictionary.mjs +56 -0
- package/dist/esm/buildIntlayerDictionary/writeFetchDictionary.mjs.map +1 -0
- package/dist/esm/buildIntlayerDictionary/writeMergedDictionary.mjs +47 -0
- package/dist/esm/buildIntlayerDictionary/writeMergedDictionary.mjs.map +1 -0
- package/dist/esm/buildIntlayerDictionary/writeRemoteDictionary.mjs +49 -0
- package/dist/esm/buildIntlayerDictionary/writeRemoteDictionary.mjs.map +1 -0
- package/dist/esm/buildIntlayerDictionary/writeUnmergedDictionary.mjs +59 -0
- package/dist/esm/buildIntlayerDictionary/writeUnmergedDictionary.mjs.map +1 -0
- package/dist/esm/cleanOutputDir.mjs +29 -0
- package/dist/esm/cleanOutputDir.mjs.map +1 -0
- package/dist/esm/cleanRemovedContentDeclaration.mjs +94 -0
- package/dist/esm/cleanRemovedContentDeclaration.mjs.map +1 -0
- package/dist/esm/cli.mjs +20 -0
- package/dist/esm/createDictionaryEntryPoint/createDictionaryEntryPoint.mjs +69 -0
- package/dist/esm/createDictionaryEntryPoint/createDictionaryEntryPoint.mjs.map +1 -0
- package/dist/esm/createDictionaryEntryPoint/generateDictionaryListContent.mjs +41 -0
- package/dist/esm/createDictionaryEntryPoint/generateDictionaryListContent.mjs.map +1 -0
- package/dist/esm/createDictionaryEntryPoint/getBuiltDictionariesPath.mjs +22 -0
- package/dist/esm/createDictionaryEntryPoint/getBuiltDictionariesPath.mjs.map +1 -0
- package/dist/esm/createDictionaryEntryPoint/getBuiltDynamicDictionariesPath.mjs +23 -0
- package/dist/esm/createDictionaryEntryPoint/getBuiltDynamicDictionariesPath.mjs.map +1 -0
- package/dist/esm/createDictionaryEntryPoint/getBuiltFetchDictionariesPath.mjs +23 -0
- package/dist/esm/createDictionaryEntryPoint/getBuiltFetchDictionariesPath.mjs.map +1 -0
- package/dist/esm/createDictionaryEntryPoint/getBuiltRemoteDictionariesPath.mjs +22 -0
- package/dist/esm/createDictionaryEntryPoint/getBuiltRemoteDictionariesPath.mjs.map +1 -0
- package/dist/esm/createDictionaryEntryPoint/getBuiltUnmergedDictionariesPath.mjs +22 -0
- package/dist/esm/createDictionaryEntryPoint/getBuiltUnmergedDictionariesPath.mjs.map +1 -0
- package/dist/esm/createDictionaryEntryPoint/index.mjs +9 -0
- package/dist/esm/createType/createModuleAugmentation.mjs +122 -0
- package/dist/esm/createType/createModuleAugmentation.mjs.map +1 -0
- package/dist/esm/createType/createType.mjs +27 -0
- package/dist/esm/createType/createType.mjs.map +1 -0
- package/dist/esm/createType/index.mjs +4 -0
- package/dist/esm/detectFormatCommand.mjs +31 -0
- package/dist/esm/detectFormatCommand.mjs.map +1 -0
- package/dist/esm/docReview/alignBlocks.mjs +78 -0
- package/dist/esm/docReview/alignBlocks.mjs.map +1 -0
- package/dist/esm/docReview/computeSimilarity.mjs +39 -0
- package/dist/esm/docReview/computeSimilarity.mjs.map +1 -0
- package/dist/esm/docReview/fingerprintBlock.mjs +32 -0
- package/dist/esm/docReview/fingerprintBlock.mjs.map +1 -0
- package/dist/esm/docReview/index.mjs +12 -0
- package/dist/esm/docReview/mapChangedLinesToBlocks.mjs +25 -0
- package/dist/esm/docReview/mapChangedLinesToBlocks.mjs.map +1 -0
- package/dist/esm/docReview/normalizeBlock.mjs +32 -0
- package/dist/esm/docReview/normalizeBlock.mjs.map +1 -0
- package/dist/esm/docReview/pipeline.mjs +142 -0
- package/dist/esm/docReview/pipeline.mjs.map +1 -0
- package/dist/esm/docReview/planActions.mjs +56 -0
- package/dist/esm/docReview/planActions.mjs.map +1 -0
- package/dist/esm/docReview/rebuildDocument.mjs +62 -0
- package/dist/esm/docReview/rebuildDocument.mjs.map +1 -0
- package/dist/esm/docReview/reviewReport.mjs +196 -0
- package/dist/esm/docReview/reviewReport.mjs.map +1 -0
- package/dist/esm/docReview/segmentDocument.mjs +131 -0
- package/dist/esm/docReview/segmentDocument.mjs.map +1 -0
- package/dist/esm/docReview/types.mjs +0 -0
- package/dist/esm/fetchDistantDictionaries.mjs +51 -0
- package/dist/esm/fetchDistantDictionaries.mjs.map +1 -0
- package/dist/esm/filterInvalidDictionaries.mjs +53 -0
- package/dist/esm/filterInvalidDictionaries.mjs.map +1 -0
- package/dist/esm/formatDictionary.mjs +55 -0
- package/dist/esm/formatDictionary.mjs.map +1 -0
- package/dist/esm/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.mjs +81 -0
- package/dist/esm/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.mjs.map +1 -0
- package/dist/esm/getContentDeclarationFileTemplate/index.mjs +3 -0
- package/dist/esm/handleAdditionalContentDeclarationFile.mjs +33 -0
- package/dist/esm/handleAdditionalContentDeclarationFile.mjs.map +1 -0
- package/dist/esm/handleContentDeclarationFileChange.mjs +54 -0
- package/dist/esm/handleContentDeclarationFileChange.mjs.map +1 -0
- package/dist/esm/handleContentDeclarationFileMoved.mjs +23 -0
- package/dist/esm/handleContentDeclarationFileMoved.mjs.map +1 -0
- package/dist/esm/handleUnlinkedContentDeclarationFile.mjs +36 -0
- package/dist/esm/handleUnlinkedContentDeclarationFile.mjs.map +1 -0
- package/dist/esm/init/cms.mjs +131 -0
- package/dist/esm/init/cms.mjs.map +1 -0
- package/dist/esm/init/frameworkSetup/index.mjs +26 -0
- package/dist/esm/init/frameworkSetup/index.mjs.map +1 -0
- package/dist/esm/init/frameworkSetup/nextAppRouter/detect.mjs +52 -0
- package/dist/esm/init/frameworkSetup/nextAppRouter/detect.mjs.map +1 -0
- package/dist/esm/init/frameworkSetup/nextAppRouter/index.mjs +104 -0
- package/dist/esm/init/frameworkSetup/nextAppRouter/index.mjs.map +1 -0
- package/dist/esm/init/frameworkSetup/nextAppRouter/restructure.mjs +157 -0
- package/dist/esm/init/frameworkSetup/nextAppRouter/restructure.mjs.map +1 -0
- package/dist/esm/init/frameworkSetup/nextAppRouter/templates.mjs +113 -0
- package/dist/esm/init/frameworkSetup/nextAppRouter/templates.mjs.map +1 -0
- package/dist/esm/init/frameworkSetup/nextAppRouter/transforms.mjs +193 -0
- package/dist/esm/init/frameworkSetup/nextAppRouter/transforms.mjs.map +1 -0
- package/dist/esm/init/frameworkSetup/tanstackStart/detect.mjs +28 -0
- package/dist/esm/init/frameworkSetup/tanstackStart/detect.mjs.map +1 -0
- package/dist/esm/init/frameworkSetup/tanstackStart/index.mjs +73 -0
- package/dist/esm/init/frameworkSetup/tanstackStart/index.mjs.map +1 -0
- package/dist/esm/init/frameworkSetup/tanstackStart/restructure.mjs +108 -0
- package/dist/esm/init/frameworkSetup/tanstackStart/restructure.mjs.map +1 -0
- package/dist/esm/init/frameworkSetup/tanstackStart/templates.mjs +102 -0
- package/dist/esm/init/frameworkSetup/tanstackStart/templates.mjs.map +1 -0
- package/dist/esm/init/frameworkSetup/tanstackStart/transforms.mjs +139 -0
- package/dist/esm/init/frameworkSetup/tanstackStart/transforms.mjs.map +1 -0
- package/dist/esm/init/frameworkSetup/types.mjs +0 -0
- package/dist/esm/init/index.mjs +518 -0
- package/dist/esm/init/index.mjs.map +1 -0
- package/dist/esm/init/utils/astImports.mjs +51 -0
- package/dist/esm/init/utils/astImports.mjs.map +1 -0
- package/dist/esm/init/utils/configManipulation.mjs +499 -0
- package/dist/esm/init/utils/configManipulation.mjs.map +1 -0
- package/dist/esm/init/utils/fileSystem.mjs +222 -0
- package/dist/esm/init/utils/fileSystem.mjs.map +1 -0
- package/dist/esm/init/utils/githubActions.mjs +155 -0
- package/dist/esm/init/utils/githubActions.mjs.map +1 -0
- package/dist/esm/init/utils/index.mjs +10 -0
- package/dist/esm/init/utils/jsonParser.mjs +41 -0
- package/dist/esm/init/utils/jsonParser.mjs.map +1 -0
- package/dist/esm/init/utils/nextCompilerBabel.mjs +115 -0
- package/dist/esm/init/utils/nextCompilerBabel.mjs.map +1 -0
- package/dist/esm/init/utils/packageManager.mjs +294 -0
- package/dist/esm/init/utils/packageManager.mjs.map +1 -0
- package/dist/esm/init/utils/tsConfig.mjs +17 -0
- package/dist/esm/init/utils/tsConfig.mjs.map +1 -0
- package/dist/esm/initConfig/index.mjs +47 -0
- package/dist/esm/initConfig/index.mjs.map +1 -0
- package/dist/esm/installLSP.mjs +55 -0
- package/dist/esm/installLSP.mjs.map +1 -0
- package/dist/esm/installMCP/installMCP.mjs +47 -0
- package/dist/esm/installMCP/installMCP.mjs.map +1 -0
- package/dist/esm/installSkills/index.mjs +299 -0
- package/dist/esm/installSkills/index.mjs.map +1 -0
- package/dist/esm/listDictionariesPath.mjs +39 -0
- package/dist/esm/listDictionariesPath.mjs.map +1 -0
- package/dist/esm/listGitFiles.mjs +101 -0
- package/dist/esm/listGitFiles.mjs.map +1 -0
- package/dist/esm/listProjects.mjs +44 -0
- package/dist/esm/listProjects.mjs.map +1 -0
- package/dist/esm/loadDictionaries/getIntlayerBundle.mjs +54 -0
- package/dist/esm/loadDictionaries/getIntlayerBundle.mjs.map +1 -0
- package/dist/esm/loadDictionaries/index.mjs +6 -0
- package/dist/esm/loadDictionaries/loadContentDeclaration.mjs +128 -0
- package/dist/esm/loadDictionaries/loadContentDeclaration.mjs.map +1 -0
- package/dist/esm/loadDictionaries/loadDictionaries.mjs +125 -0
- package/dist/esm/loadDictionaries/loadDictionaries.mjs.map +1 -0
- package/dist/esm/loadDictionaries/loadLocalDictionaries.mjs +26 -0
- package/dist/esm/loadDictionaries/loadLocalDictionaries.mjs.map +1 -0
- package/dist/esm/loadDictionaries/loadMarkdownContentDeclaration.mjs +43 -0
- package/dist/esm/loadDictionaries/loadMarkdownContentDeclaration.mjs.map +1 -0
- package/dist/esm/loadDictionaries/loadRemoteDictionaries.mjs +60 -0
- package/dist/esm/loadDictionaries/loadRemoteDictionaries.mjs.map +1 -0
- package/dist/esm/loadDictionaries/loadYamlContentDeclaration.mjs +25 -0
- package/dist/esm/loadDictionaries/loadYamlContentDeclaration.mjs.map +1 -0
- package/dist/esm/loadDictionaries/log.mjs +135 -0
- package/dist/esm/loadDictionaries/log.mjs.map +1 -0
- package/dist/esm/loadDictionaries/logTypeScriptErrors.mjs +62 -0
- package/dist/esm/loadDictionaries/logTypeScriptErrors.mjs.map +1 -0
- package/dist/esm/logConfigDetails.mjs +37 -0
- package/dist/esm/logConfigDetails.mjs.map +1 -0
- package/dist/esm/prepareIntlayer.mjs +100 -0
- package/dist/esm/prepareIntlayer.mjs.map +1 -0
- package/dist/esm/reduceDictionaryContent/applyMask.mjs +29 -0
- package/dist/esm/reduceDictionaryContent/applyMask.mjs.map +1 -0
- package/dist/esm/reduceDictionaryContent/reduceDictionaryContent.mjs +11 -0
- package/dist/esm/reduceDictionaryContent/reduceDictionaryContent.mjs.map +1 -0
- package/dist/esm/scan/analyzeBundleContent.mjs +180 -0
- package/dist/esm/scan/analyzeBundleContent.mjs.map +1 -0
- package/dist/esm/scan/calculateScore.mjs +61 -0
- package/dist/esm/scan/calculateScore.mjs.map +1 -0
- package/dist/esm/scan/checks.mjs +265 -0
- package/dist/esm/scan/checks.mjs.map +1 -0
- package/dist/esm/scan/index.mjs +7 -0
- package/dist/esm/scan/parseHtml.mjs +115 -0
- package/dist/esm/scan/parseHtml.mjs.map +1 -0
- package/dist/esm/scan/scanWebsite.mjs +203 -0
- package/dist/esm/scan/scanWebsite.mjs.map +1 -0
- package/dist/esm/scan/types.mjs +0 -0
- package/dist/esm/utils/autoDecorateContent.mjs +87 -0
- package/dist/esm/utils/autoDecorateContent.mjs.map +1 -0
- package/dist/esm/utils/buildComponentFilesList.mjs +91 -0
- package/dist/esm/utils/buildComponentFilesList.mjs.map +1 -0
- package/dist/esm/utils/buildFilesList.mjs +80 -0
- package/dist/esm/utils/buildFilesList.mjs.map +1 -0
- package/dist/esm/utils/chunkJSON.mjs +334 -0
- package/dist/esm/utils/chunkJSON.mjs.map +1 -0
- package/dist/esm/utils/formatter.mjs +14 -0
- package/dist/esm/utils/formatter.mjs.map +1 -0
- package/dist/esm/utils/getChunk.mjs +34 -0
- package/dist/esm/utils/getChunk.mjs.map +1 -0
- package/dist/esm/utils/getContentExtension.mjs +28 -0
- package/dist/esm/utils/getContentExtension.mjs.map +1 -0
- package/dist/esm/utils/getFormatFromExtension.mjs +38 -0
- package/dist/esm/utils/getFormatFromExtension.mjs.map +1 -0
- package/dist/esm/utils/getPathHash.mjs +20 -0
- package/dist/esm/utils/getPathHash.mjs.map +1 -0
- package/dist/esm/utils/index.mjs +22 -0
- package/dist/esm/utils/mergeChunks.mjs +27 -0
- package/dist/esm/utils/mergeChunks.mjs.map +1 -0
- package/dist/esm/utils/pLimit.mjs +131 -0
- package/dist/esm/utils/pLimit.mjs.map +1 -0
- package/dist/esm/utils/parallelize.mjs +11 -0
- package/dist/esm/utils/parallelize.mjs.map +1 -0
- package/dist/esm/utils/parallelizeGlobal.mjs +27 -0
- package/dist/esm/utils/parallelizeGlobal.mjs.map +1 -0
- package/dist/esm/utils/readDictionariesFromDisk.mjs +23 -0
- package/dist/esm/utils/readDictionariesFromDisk.mjs.map +1 -0
- package/dist/esm/utils/reduceObjectFormat.mjs +67 -0
- package/dist/esm/utils/reduceObjectFormat.mjs.map +1 -0
- package/dist/esm/utils/resolveObjectPromises.mjs +20 -0
- package/dist/esm/utils/resolveObjectPromises.mjs.map +1 -0
- package/dist/esm/utils/resolveRelativePath.mjs +20 -0
- package/dist/esm/utils/resolveRelativePath.mjs.map +1 -0
- package/dist/esm/utils/runOnce.mjs +93 -0
- package/dist/esm/utils/runOnce.mjs.map +1 -0
- package/dist/esm/utils/runParallel/bin.mjs +53 -0
- package/dist/esm/utils/runParallel/bin.mjs.map +1 -0
- package/dist/esm/utils/runParallel/bootstrap.mjs +23 -0
- package/dist/esm/utils/runParallel/bootstrap.mjs.map +1 -0
- package/dist/esm/utils/runParallel/index.mjs +100 -0
- package/dist/esm/utils/runParallel/index.mjs.map +1 -0
- package/dist/esm/utils/runParallel/pidTree.mjs +143 -0
- package/dist/esm/utils/runParallel/pidTree.mjs.map +1 -0
- package/dist/esm/utils/runParallel/ps.mjs +47 -0
- package/dist/esm/utils/runParallel/ps.mjs.map +1 -0
- package/dist/esm/utils/runParallel/runTask.mjs +153 -0
- package/dist/esm/utils/runParallel/runTask.mjs.map +1 -0
- package/dist/esm/utils/runParallel/spawnPosix.mjs +47 -0
- package/dist/esm/utils/runParallel/spawnPosix.mjs.map +1 -0
- package/dist/esm/utils/runParallel/spawnWin32.mjs +42 -0
- package/dist/esm/utils/runParallel/spawnWin32.mjs.map +1 -0
- package/dist/esm/utils/runParallel/wmic.mjs +50 -0
- package/dist/esm/utils/runParallel/wmic.mjs.map +1 -0
- package/dist/esm/utils/sortAlphabetically.mjs +6 -0
- package/dist/esm/utils/sortAlphabetically.mjs.map +1 -0
- package/dist/esm/utils/splitTextByLine.mjs +10 -0
- package/dist/esm/utils/splitTextByLine.mjs.map +1 -0
- package/dist/esm/utils/verifyIdenticObjectFormat.mjs +64 -0
- package/dist/esm/utils/verifyIdenticObjectFormat.mjs.map +1 -0
- package/dist/esm/watcher.mjs +226 -0
- package/dist/esm/watcher.mjs.map +1 -0
- package/dist/esm/writeConfiguration/generateConfigurationContent.mjs +33 -0
- package/dist/esm/writeConfiguration/generateConfigurationContent.mjs.map +1 -0
- package/dist/esm/writeConfiguration/index.mjs +22 -0
- package/dist/esm/writeConfiguration/index.mjs.map +1 -0
- package/dist/esm/writeContentDeclaration/detectExportedComponentName.mjs +27 -0
- package/dist/esm/writeContentDeclaration/detectExportedComponentName.mjs.map +1 -0
- package/dist/esm/writeContentDeclaration/dictionaryStatus.mjs +0 -0
- package/dist/esm/writeContentDeclaration/index.mjs +6 -0
- package/dist/esm/writeContentDeclaration/processContentDeclarationContent.mjs +92 -0
- package/dist/esm/writeContentDeclaration/processContentDeclarationContent.mjs.map +1 -0
- package/dist/esm/writeContentDeclaration/transformJSFile.mjs +412 -0
- package/dist/esm/writeContentDeclaration/transformJSFile.mjs.map +1 -0
- package/dist/esm/writeContentDeclaration/transformJSONFile.mjs +125 -0
- package/dist/esm/writeContentDeclaration/transformJSONFile.mjs.map +1 -0
- package/dist/esm/writeContentDeclaration/writeContentDeclaration.mjs +162 -0
- package/dist/esm/writeContentDeclaration/writeContentDeclaration.mjs.map +1 -0
- package/dist/esm/writeContentDeclaration/writeJSFile.mjs +91 -0
- package/dist/esm/writeContentDeclaration/writeJSFile.mjs.map +1 -0
- package/dist/esm/writeContentDeclaration/writeMarkdownFile.mjs +64 -0
- package/dist/esm/writeContentDeclaration/writeMarkdownFile.mjs.map +1 -0
- package/dist/esm/writeContentDeclaration/writeYamlFile.mjs +42 -0
- package/dist/esm/writeContentDeclaration/writeYamlFile.mjs.map +1 -0
- package/dist/esm/writeFileIfChanged.mjs +49 -0
- package/dist/esm/writeFileIfChanged.mjs.map +1 -0
- package/dist/esm/writeJsonIfChanged.mjs +17 -0
- package/dist/esm/writeJsonIfChanged.mjs.map +1 -0
- package/dist/types/build.d.ts +26 -0
- package/dist/types/buildIntlayerDictionary/buildIntlayerDictionary.d.ts +25 -0
- package/dist/types/buildIntlayerDictionary/buildIntlayerDictionary.d.ts.map +1 -0
- package/dist/types/buildIntlayerDictionary/index.d.ts +3 -0
- package/dist/types/buildIntlayerDictionary/processContentDeclaration.d.ts +11 -0
- package/dist/types/buildIntlayerDictionary/processContentDeclaration.d.ts.map +1 -0
- package/dist/types/buildIntlayerDictionary/writeDynamicDictionary.d.ts +77 -0
- package/dist/types/buildIntlayerDictionary/writeDynamicDictionary.d.ts.map +1 -0
- package/dist/types/buildIntlayerDictionary/writeFetchDictionary.d.ts +25 -0
- package/dist/types/buildIntlayerDictionary/writeFetchDictionary.d.ts.map +1 -0
- package/dist/types/buildIntlayerDictionary/writeMergedDictionary.d.ts +40 -0
- package/dist/types/buildIntlayerDictionary/writeMergedDictionary.d.ts.map +1 -0
- package/dist/types/buildIntlayerDictionary/writeRemoteDictionary.d.ts +29 -0
- package/dist/types/buildIntlayerDictionary/writeRemoteDictionary.d.ts.map +1 -0
- package/dist/types/buildIntlayerDictionary/writeUnmergedDictionary.d.ts +34 -0
- package/dist/types/buildIntlayerDictionary/writeUnmergedDictionary.d.ts.map +1 -0
- package/dist/types/cleanOutputDir.d.ts +7 -0
- package/dist/types/cleanOutputDir.d.ts.map +1 -0
- package/dist/types/cleanRemovedContentDeclaration.d.ts +11 -0
- package/dist/types/cleanRemovedContentDeclaration.d.ts.map +1 -0
- package/dist/types/cli.d.ts +21 -0
- package/dist/types/createDictionaryEntryPoint/createDictionaryEntryPoint.d.ts +14 -0
- package/dist/types/createDictionaryEntryPoint/createDictionaryEntryPoint.d.ts.map +1 -0
- package/dist/types/createDictionaryEntryPoint/generateDictionaryListContent.d.ts +10 -0
- package/dist/types/createDictionaryEntryPoint/generateDictionaryListContent.d.ts.map +1 -0
- package/dist/types/createDictionaryEntryPoint/getBuiltDictionariesPath.d.ts +10 -0
- package/dist/types/createDictionaryEntryPoint/getBuiltDictionariesPath.d.ts.map +1 -0
- package/dist/types/createDictionaryEntryPoint/getBuiltDynamicDictionariesPath.d.ts +10 -0
- package/dist/types/createDictionaryEntryPoint/getBuiltDynamicDictionariesPath.d.ts.map +1 -0
- package/dist/types/createDictionaryEntryPoint/getBuiltFetchDictionariesPath.d.ts +10 -0
- package/dist/types/createDictionaryEntryPoint/getBuiltFetchDictionariesPath.d.ts.map +1 -0
- package/dist/types/createDictionaryEntryPoint/getBuiltRemoteDictionariesPath.d.ts +10 -0
- package/dist/types/createDictionaryEntryPoint/getBuiltRemoteDictionariesPath.d.ts.map +1 -0
- package/dist/types/createDictionaryEntryPoint/getBuiltUnmergedDictionariesPath.d.ts +10 -0
- package/dist/types/createDictionaryEntryPoint/getBuiltUnmergedDictionariesPath.d.ts.map +1 -0
- package/dist/types/createDictionaryEntryPoint/index.d.ts +8 -0
- package/dist/types/createType/createModuleAugmentation.d.ts +9 -0
- package/dist/types/createType/createModuleAugmentation.d.ts.map +1 -0
- package/dist/types/createType/createType.d.ts +12 -0
- package/dist/types/createType/createType.d.ts.map +1 -0
- package/dist/types/createType/index.d.ts +3 -0
- package/dist/types/detectFormatCommand.d.ts +7 -0
- package/dist/types/detectFormatCommand.d.ts.map +1 -0
- package/dist/types/docReview/alignBlocks.d.ts +18 -0
- package/dist/types/docReview/alignBlocks.d.ts.map +1 -0
- package/dist/types/docReview/computeSimilarity.d.ts +22 -0
- package/dist/types/docReview/computeSimilarity.d.ts.map +1 -0
- package/dist/types/docReview/fingerprintBlock.d.ts +18 -0
- package/dist/types/docReview/fingerprintBlock.d.ts.map +1 -0
- package/dist/types/docReview/index.d.ts +12 -0
- package/dist/types/docReview/mapChangedLinesToBlocks.d.ts +15 -0
- package/dist/types/docReview/mapChangedLinesToBlocks.d.ts.map +1 -0
- package/dist/types/docReview/normalizeBlock.d.ts +18 -0
- package/dist/types/docReview/normalizeBlock.d.ts.map +1 -0
- package/dist/types/docReview/pipeline.d.ts +46 -0
- package/dist/types/docReview/pipeline.d.ts.map +1 -0
- package/dist/types/docReview/planActions.d.ts +18 -0
- package/dist/types/docReview/planActions.d.ts.map +1 -0
- package/dist/types/docReview/rebuildDocument.d.ts +46 -0
- package/dist/types/docReview/rebuildDocument.d.ts.map +1 -0
- package/dist/types/docReview/reviewReport.d.ts +82 -0
- package/dist/types/docReview/reviewReport.d.ts.map +1 -0
- package/dist/types/docReview/segmentDocument.d.ts +40 -0
- package/dist/types/docReview/segmentDocument.d.ts.map +1 -0
- package/dist/types/docReview/types.d.ts +73 -0
- package/dist/types/docReview/types.d.ts.map +1 -0
- package/dist/types/fetchDistantDictionaries.d.ts +16 -0
- package/dist/types/fetchDistantDictionaries.d.ts.map +1 -0
- package/dist/types/filterInvalidDictionaries.d.ts +12 -0
- package/dist/types/filterInvalidDictionaries.d.ts.map +1 -0
- package/dist/types/formatDictionary.d.ts +62 -0
- package/dist/types/formatDictionary.d.ts.map +1 -0
- package/dist/types/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.d.ts +7 -0
- package/dist/types/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.d.ts.map +1 -0
- package/dist/types/getContentDeclarationFileTemplate/index.d.ts +2 -0
- package/dist/types/handleAdditionalContentDeclarationFile.d.ts +7 -0
- package/dist/types/handleAdditionalContentDeclarationFile.d.ts.map +1 -0
- package/dist/types/handleContentDeclarationFileChange.d.ts +7 -0
- package/dist/types/handleContentDeclarationFileChange.d.ts.map +1 -0
- package/dist/types/handleContentDeclarationFileMoved.d.ts +7 -0
- package/dist/types/handleContentDeclarationFileMoved.d.ts.map +1 -0
- package/dist/types/handleUnlinkedContentDeclarationFile.d.ts +7 -0
- package/dist/types/handleUnlinkedContentDeclarationFile.d.ts.map +1 -0
- package/dist/types/init/cms.d.ts +51 -0
- package/dist/types/init/cms.d.ts.map +1 -0
- package/dist/types/init/frameworkSetup/index.d.ts +13 -0
- package/dist/types/init/frameworkSetup/index.d.ts.map +1 -0
- package/dist/types/init/frameworkSetup/nextAppRouter/detect.d.ts +25 -0
- package/dist/types/init/frameworkSetup/nextAppRouter/detect.d.ts.map +1 -0
- package/dist/types/init/frameworkSetup/nextAppRouter/index.d.ts +12 -0
- package/dist/types/init/frameworkSetup/nextAppRouter/index.d.ts.map +1 -0
- package/dist/types/init/frameworkSetup/nextAppRouter/restructure.d.ts +56 -0
- package/dist/types/init/frameworkSetup/nextAppRouter/restructure.d.ts.map +1 -0
- package/dist/types/init/frameworkSetup/nextAppRouter/templates.d.ts +26 -0
- package/dist/types/init/frameworkSetup/nextAppRouter/templates.d.ts.map +1 -0
- package/dist/types/init/frameworkSetup/nextAppRouter/transforms.d.ts +23 -0
- package/dist/types/init/frameworkSetup/nextAppRouter/transforms.d.ts.map +1 -0
- package/dist/types/init/frameworkSetup/tanstackStart/detect.d.ts +19 -0
- package/dist/types/init/frameworkSetup/tanstackStart/detect.d.ts.map +1 -0
- package/dist/types/init/frameworkSetup/tanstackStart/index.d.ts +13 -0
- package/dist/types/init/frameworkSetup/tanstackStart/index.d.ts.map +1 -0
- package/dist/types/init/frameworkSetup/tanstackStart/restructure.d.ts +68 -0
- package/dist/types/init/frameworkSetup/tanstackStart/restructure.d.ts.map +1 -0
- package/dist/types/init/frameworkSetup/tanstackStart/templates.d.ts +22 -0
- package/dist/types/init/frameworkSetup/tanstackStart/templates.d.ts.map +1 -0
- package/dist/types/init/frameworkSetup/tanstackStart/transforms.d.ts +17 -0
- package/dist/types/init/frameworkSetup/tanstackStart/transforms.d.ts.map +1 -0
- package/dist/types/init/frameworkSetup/types.d.ts +43 -0
- package/dist/types/init/frameworkSetup/types.d.ts.map +1 -0
- package/dist/types/init/index.d.ts +46 -0
- package/dist/types/init/index.d.ts.map +1 -0
- package/dist/types/init/utils/astImports.d.ts +29 -0
- package/dist/types/init/utils/astImports.d.ts.map +1 -0
- package/dist/types/init/utils/configManipulation.d.ts +99 -0
- package/dist/types/init/utils/configManipulation.d.ts.map +1 -0
- package/dist/types/init/utils/fileSystem.d.ts +111 -0
- package/dist/types/init/utils/fileSystem.d.ts.map +1 -0
- package/dist/types/init/utils/githubActions.d.ts +19 -0
- package/dist/types/init/utils/githubActions.d.ts.map +1 -0
- package/dist/types/init/utils/index.d.ts +9 -0
- package/dist/types/init/utils/jsonParser.d.ts +8 -0
- package/dist/types/init/utils/jsonParser.d.ts.map +1 -0
- package/dist/types/init/utils/nextCompilerBabel.d.ts +53 -0
- package/dist/types/init/utils/nextCompilerBabel.d.ts.map +1 -0
- package/dist/types/init/utils/packageManager.d.ts +149 -0
- package/dist/types/init/utils/packageManager.d.ts.map +1 -0
- package/dist/types/init/utils/tsConfig.d.ts +8 -0
- package/dist/types/init/utils/tsConfig.d.ts.map +1 -0
- package/dist/types/initConfig/index.d.ts +10 -0
- package/dist/types/initConfig/index.d.ts.map +1 -0
- package/dist/types/installLSP.d.ts +12 -0
- package/dist/types/installLSP.d.ts.map +1 -0
- package/dist/types/installMCP/installMCP.d.ts +11 -0
- package/dist/types/installMCP/installMCP.d.ts.map +1 -0
- package/dist/types/installSkills/index.d.ts +42 -0
- package/dist/types/installSkills/index.d.ts.map +1 -0
- package/dist/types/listDictionariesPath.d.ts +17 -0
- package/dist/types/listDictionariesPath.d.ts.map +1 -0
- package/dist/types/listGitFiles.d.ts +27 -0
- package/dist/types/listGitFiles.d.ts.map +1 -0
- package/dist/types/listProjects.d.ts +26 -0
- package/dist/types/listProjects.d.ts.map +1 -0
- package/dist/types/loadDictionaries/getIntlayerBundle.d.ts +7 -0
- package/dist/types/loadDictionaries/getIntlayerBundle.d.ts.map +1 -0
- package/dist/types/loadDictionaries/index.d.ts +5 -0
- package/dist/types/loadDictionaries/loadContentDeclaration.d.ts +15 -0
- package/dist/types/loadDictionaries/loadContentDeclaration.d.ts.map +1 -0
- package/dist/types/loadDictionaries/loadDictionaries.d.ts +23 -0
- package/dist/types/loadDictionaries/loadDictionaries.d.ts.map +1 -0
- package/dist/types/loadDictionaries/loadLocalDictionaries.d.ts +8 -0
- package/dist/types/loadDictionaries/loadLocalDictionaries.d.ts.map +1 -0
- package/dist/types/loadDictionaries/loadMarkdownContentDeclaration.d.ts +7 -0
- package/dist/types/loadDictionaries/loadMarkdownContentDeclaration.d.ts.map +1 -0
- package/dist/types/loadDictionaries/loadRemoteDictionaries.d.ts +15 -0
- package/dist/types/loadDictionaries/loadRemoteDictionaries.d.ts.map +1 -0
- package/dist/types/loadDictionaries/loadYamlContentDeclaration.d.ts +7 -0
- package/dist/types/loadDictionaries/loadYamlContentDeclaration.d.ts.map +1 -0
- package/dist/types/loadDictionaries/log.d.ts +36 -0
- package/dist/types/loadDictionaries/log.d.ts.map +1 -0
- package/dist/types/loadDictionaries/logTypeScriptErrors.d.ts +7 -0
- package/dist/types/loadDictionaries/logTypeScriptErrors.d.ts.map +1 -0
- package/dist/types/logConfigDetails.d.ts +7 -0
- package/dist/types/logConfigDetails.d.ts.map +1 -0
- package/dist/types/prepareIntlayer.d.ts +15 -0
- package/dist/types/prepareIntlayer.d.ts.map +1 -0
- package/dist/types/reduceDictionaryContent/applyMask.d.ts +7 -0
- package/dist/types/reduceDictionaryContent/applyMask.d.ts.map +1 -0
- package/dist/types/reduceDictionaryContent/reduceDictionaryContent.d.ts +7 -0
- package/dist/types/reduceDictionaryContent/reduceDictionaryContent.d.ts.map +1 -0
- package/dist/types/scan/analyzeBundleContent.d.ts +16 -0
- package/dist/types/scan/analyzeBundleContent.d.ts.map +1 -0
- package/dist/types/scan/calculateScore.d.ts +65 -0
- package/dist/types/scan/calculateScore.d.ts.map +1 -0
- package/dist/types/scan/checks.d.ts +38 -0
- package/dist/types/scan/checks.d.ts.map +1 -0
- package/dist/types/scan/index.d.ts +7 -0
- package/dist/types/scan/parseHtml.d.ts +54 -0
- package/dist/types/scan/parseHtml.d.ts.map +1 -0
- package/dist/types/scan/scanWebsite.d.ts +18 -0
- package/dist/types/scan/scanWebsite.d.ts.map +1 -0
- package/dist/types/scan/types.d.ts +76 -0
- package/dist/types/scan/types.d.ts.map +1 -0
- package/dist/types/utils/autoDecorateContent.d.ts +13 -0
- package/dist/types/utils/autoDecorateContent.d.ts.map +1 -0
- package/dist/types/utils/buildComponentFilesList.d.ts +28 -0
- package/dist/types/utils/buildComponentFilesList.d.ts.map +1 -0
- package/dist/types/utils/buildFilesList.d.ts +62 -0
- package/dist/types/utils/buildFilesList.d.ts.map +1 -0
- package/dist/types/utils/chunkJSON.d.ts +56 -0
- package/dist/types/utils/chunkJSON.d.ts.map +1 -0
- package/dist/types/utils/formatter.d.ts +9 -0
- package/dist/types/utils/formatter.d.ts.map +1 -0
- package/dist/types/utils/getChunk.d.ts +11 -0
- package/dist/types/utils/getChunk.d.ts.map +1 -0
- package/dist/types/utils/getContentExtension.d.ts +15 -0
- package/dist/types/utils/getContentExtension.d.ts.map +1 -0
- package/dist/types/utils/getFormatFromExtension.d.ts +8 -0
- package/dist/types/utils/getFormatFromExtension.d.ts.map +1 -0
- package/dist/types/utils/getPathHash.d.ts +8 -0
- package/dist/types/utils/getPathHash.d.ts.map +1 -0
- package/dist/types/utils/index.d.ts +21 -0
- package/dist/types/utils/mergeChunks.d.ts +5 -0
- package/dist/types/utils/mergeChunks.d.ts.map +1 -0
- package/dist/types/utils/pLimit.d.ts +16 -0
- package/dist/types/utils/pLimit.d.ts.map +1 -0
- package/dist/types/utils/parallelize.d.ts +5 -0
- package/dist/types/utils/parallelize.d.ts.map +1 -0
- package/dist/types/utils/parallelizeGlobal.d.ts +20 -0
- package/dist/types/utils/parallelizeGlobal.d.ts.map +1 -0
- package/dist/types/utils/readDictionariesFromDisk.d.ts +9 -0
- package/dist/types/utils/readDictionariesFromDisk.d.ts.map +1 -0
- package/dist/types/utils/reduceObjectFormat.d.ts +30 -0
- package/dist/types/utils/reduceObjectFormat.d.ts.map +1 -0
- package/dist/types/utils/resolveObjectPromises.d.ts +9 -0
- package/dist/types/utils/resolveObjectPromises.d.ts.map +1 -0
- package/dist/types/utils/resolveRelativePath.d.ts +5 -0
- package/dist/types/utils/resolveRelativePath.d.ts.map +1 -0
- package/dist/types/utils/runOnce.d.ts +45 -0
- package/dist/types/utils/runOnce.d.ts.map +1 -0
- package/dist/types/utils/runParallel/bin.d.ts +15 -0
- package/dist/types/utils/runParallel/bin.d.ts.map +1 -0
- package/dist/types/utils/runParallel/bootstrap.d.ts +5 -0
- package/dist/types/utils/runParallel/bootstrap.d.ts.map +1 -0
- package/dist/types/utils/runParallel/index.d.ts +14 -0
- package/dist/types/utils/runParallel/index.d.ts.map +1 -0
- package/dist/types/utils/runParallel/pidTree.d.ts +24 -0
- package/dist/types/utils/runParallel/pidTree.d.ts.map +1 -0
- package/dist/types/utils/runParallel/ps.d.ts +11 -0
- package/dist/types/utils/runParallel/ps.d.ts.map +1 -0
- package/dist/types/utils/runParallel/runTask.d.ts +26 -0
- package/dist/types/utils/runParallel/runTask.d.ts.map +1 -0
- package/dist/types/utils/runParallel/spawnPosix.d.ts +20 -0
- package/dist/types/utils/runParallel/spawnPosix.d.ts.map +1 -0
- package/dist/types/utils/runParallel/spawnWin32.d.ts +20 -0
- package/dist/types/utils/runParallel/spawnWin32.d.ts.map +1 -0
- package/dist/types/utils/runParallel/wmic.d.ts +11 -0
- package/dist/types/utils/runParallel/wmic.d.ts.map +1 -0
- package/dist/types/utils/sortAlphabetically.d.ts +5 -0
- package/dist/types/utils/sortAlphabetically.d.ts.map +1 -0
- package/dist/types/utils/splitTextByLine.d.ts +5 -0
- package/dist/types/utils/splitTextByLine.d.ts.map +1 -0
- package/dist/types/utils/verifyIdenticObjectFormat.d.ts +23 -0
- package/dist/types/utils/verifyIdenticObjectFormat.d.ts.map +1 -0
- package/dist/types/watcher.d.ts +17 -0
- package/dist/types/watcher.d.ts.map +1 -0
- package/dist/types/writeConfiguration/generateConfigurationContent.d.ts +7 -0
- package/dist/types/writeConfiguration/generateConfigurationContent.d.ts.map +1 -0
- package/dist/types/writeConfiguration/index.d.ts +8 -0
- package/dist/types/writeConfiguration/index.d.ts.map +1 -0
- package/dist/types/writeContentDeclaration/detectExportedComponentName.d.ts +12 -0
- package/dist/types/writeContentDeclaration/detectExportedComponentName.d.ts.map +1 -0
- package/dist/types/writeContentDeclaration/dictionaryStatus.d.ts +5 -0
- package/dist/types/writeContentDeclaration/dictionaryStatus.d.ts.map +1 -0
- package/dist/types/writeContentDeclaration/index.d.ts +6 -0
- package/dist/types/writeContentDeclaration/processContentDeclarationContent.d.ts +14 -0
- package/dist/types/writeContentDeclaration/processContentDeclarationContent.d.ts.map +1 -0
- package/dist/types/writeContentDeclaration/transformJSFile.d.ts +11 -0
- package/dist/types/writeContentDeclaration/transformJSFile.d.ts.map +1 -0
- package/dist/types/writeContentDeclaration/transformJSONFile.d.ts +7 -0
- package/dist/types/writeContentDeclaration/transformJSONFile.d.ts.map +1 -0
- package/dist/types/writeContentDeclaration/writeContentDeclaration.d.ts +19 -0
- package/dist/types/writeContentDeclaration/writeContentDeclaration.d.ts.map +1 -0
- package/dist/types/writeContentDeclaration/writeJSFile.d.ts +14 -0
- package/dist/types/writeContentDeclaration/writeJSFile.d.ts.map +1 -0
- package/dist/types/writeContentDeclaration/writeMarkdownFile.d.ts +8 -0
- package/dist/types/writeContentDeclaration/writeMarkdownFile.d.ts.map +1 -0
- package/dist/types/writeContentDeclaration/writeYamlFile.d.ts +8 -0
- package/dist/types/writeContentDeclaration/writeYamlFile.d.ts.map +1 -0
- package/dist/types/writeFileIfChanged.d.ts +11 -0
- package/dist/types/writeFileIfChanged.d.ts.map +1 -0
- package/dist/types/writeJsonIfChanged.d.ts +9 -0
- package/dist/types/writeJsonIfChanged.d.ts.map +1 -0
- package/package.json +159 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
//#region src/init/frameworkSetup/nextAppRouter/restructure.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Detects whether a top-level App Router entry is already a locale segment, in
|
|
4
|
+
* any of the Next.js dynamic-segment forms:
|
|
5
|
+
* - `[locale]` — required segment (prefix every locale),
|
|
6
|
+
* - `[...locale]` / `[[...locale]]` — catch-all / optional catch-all segments.
|
|
7
|
+
*
|
|
8
|
+
* Used to skip the restructure when the project is already locale-aware, so an
|
|
9
|
+
* existing locale segment is never nested under a freshly created `[locale]`.
|
|
10
|
+
*/
|
|
11
|
+
declare const isLocaleSegment: (entryName: string) => boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Top-level App Router entries that must stay at the app root and never be
|
|
14
|
+
* moved under `[locale]`:
|
|
15
|
+
* - `api/` route handlers (not locale-prefixed),
|
|
16
|
+
* - global stylesheets,
|
|
17
|
+
* - metadata/asset file conventions (favicon, icon, sitemap, robots, manifest…),
|
|
18
|
+
* - `global-error` and `not-found` boundaries (kept as root fallbacks).
|
|
19
|
+
*
|
|
20
|
+
* Everything else (`page`, `loading`, `error`, `template`, `default`, the root
|
|
21
|
+
* `layout`, and nested route folders) is moved so it becomes locale-aware.
|
|
22
|
+
*/
|
|
23
|
+
declare const shouldKeepAppEntryAtRoot: (entryName: string) => boolean;
|
|
24
|
+
type RewriteContext = {
|
|
25
|
+
appDirAbs: string;
|
|
26
|
+
localeDirAbs: string;
|
|
27
|
+
movedTopLevelNames: string[];
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Rewrites relative import/export/`import()`/`require()` specifiers in a file
|
|
31
|
+
* that has moved from `oldAbs` to `newAbs`, so they keep resolving to the same
|
|
32
|
+
* modules after the move. Non-relative specifiers (bare packages, `@/` aliases)
|
|
33
|
+
* are left untouched. Returns the original code unchanged when nothing matched.
|
|
34
|
+
*/
|
|
35
|
+
declare const rewriteRelativeImports: (code: string, oldAbs: string, newAbs: string, context: RewriteContext) => string;
|
|
36
|
+
/** Outcome of an attempted `[locale]` restructure. */
|
|
37
|
+
type RestructureResult = {
|
|
38
|
+
status: 'already-structured';
|
|
39
|
+
localeSegment: string;
|
|
40
|
+
} | {
|
|
41
|
+
status: 'nothing-to-move';
|
|
42
|
+
} | {
|
|
43
|
+
status: 'moved';
|
|
44
|
+
movedEntries: string[];
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Moves the routable App Router entries of `appDir` under a new `[locale]`
|
|
48
|
+
* segment and rewrites relative imports in the moved files. Idempotent: it is a
|
|
49
|
+
* no-op when the app is already locale-aware in any prefix mode (see
|
|
50
|
+
* {@link isLocaleSegment}), which is reported via `localeSegment`. Root-only
|
|
51
|
+
* files (see {@link shouldKeepAppEntryAtRoot}) are left in place.
|
|
52
|
+
*/
|
|
53
|
+
declare const restructureAppIntoLocale: (rootDir: string, appDir: string) => Promise<RestructureResult>;
|
|
54
|
+
//#endregion
|
|
55
|
+
export { RestructureResult, isLocaleSegment, restructureAppIntoLocale, rewriteRelativeImports, shouldKeepAppEntryAtRoot };
|
|
56
|
+
//# sourceMappingURL=restructure.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"restructure.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/nextAppRouter/restructure.ts"],"mappings":";;AAuBA;;;;;AAcA;;;cAda,eAAA,GAAmB,SAAA;;AA2C9B;;;;;;;;;AA0CF;cAvEa,wBAAA,GAA4B,SAAA;AAAA,KA+BpC,cAAA;EACH,SAAA;EACA,YAAA;EACA,kBAAA;AAAA;;;;;AAoGF;;cA/Da,sBAAA,GACX,IAAA,UACA,MAAA,UACA,MAAA,UACA,OAAA,EAAS,cAAA;;KA2DC,iBAAA;EACN,MAAA;EAA8B,aAAA;AAAA;EAC9B,MAAA;AAAA;EACA,MAAA;EAAiB,YAAA;AAAA;;;;;;;;cASV,wBAAA,GACX,OAAA,UACA,MAAA,aACC,OAAA,CAAQ,iBAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
//#region src/init/frameworkSetup/nextAppRouter/templates.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* File templates for a fresh Next.js App Router integration. These are only
|
|
4
|
+
* written when the target file does not exist (or, for the locale layout/page,
|
|
5
|
+
* when the app is effectively empty) — they never overwrite user code.
|
|
6
|
+
*/
|
|
7
|
+
/** Next.js >= 16 locale-detection proxy (`src/proxy.ts`). */
|
|
8
|
+
declare const PROXY_TEMPLATE = "export { intlayerProxy as proxy } from \"next-intlayer/proxy\";\n\nexport const config = {\n matcher:\n \"/((?!api|static|assets|robots|sitemap|sw|service-worker|manifest|.*\\\\..*|_next).*)\",\n};\n";
|
|
9
|
+
/** Next.js < 16 locale-detection middleware (`src/middleware.ts`). */
|
|
10
|
+
declare const MIDDLEWARE_TEMPLATE = "export { intlayerMiddleware as middleware } from \"next-intlayer/middleware\";\n\nexport const config = {\n matcher:\n \"/((?!api|static|assets|robots|sitemap|sw|service-worker|manifest|.*\\\\..*|_next).*)\",\n};\n";
|
|
11
|
+
/** Minimal pass-through root layout (`app/layout.tsx`), lets `[locale]/layout` own `<html>`. */
|
|
12
|
+
declare const ROOT_LAYOUT_TEMPLATE_TS = "import type { PropsWithChildren, FC } from \"react\";\n\nconst RootLayout: FC<PropsWithChildren> = ({ children }) => <>{children}</>;\n\nexport default RootLayout;\n";
|
|
13
|
+
declare const ROOT_LAYOUT_TEMPLATE_JS = "const RootLayout = ({ children }) => <>{children}</>;\n\nexport default RootLayout;\n";
|
|
14
|
+
/** Locale layout (`app/[locale]/layout.tsx`) providing `<html>` + client provider. */
|
|
15
|
+
declare const LOCALE_LAYOUT_TEMPLATE_TS = "import { type NextLayoutIntlayer, IntlayerClientProvider } from \"next-intlayer\";\nimport { getHTMLTextDir } from \"intlayer\";\n\nexport { generateStaticParams } from \"next-intlayer\";\n\nconst LocaleLayout: NextLayoutIntlayer = async ({ children, params }) => {\n const { locale } = await params;\n\n return (\n <html lang={locale} dir={getHTMLTextDir(locale)}>\n <body>\n <IntlayerClientProvider locale={locale}>\n {children}\n </IntlayerClientProvider>\n </body>\n </html>\n );\n};\n\nexport default LocaleLayout;\n";
|
|
16
|
+
declare const LOCALE_LAYOUT_TEMPLATE_JS = "import { IntlayerClientProvider } from \"next-intlayer\";\nimport { getHTMLTextDir } from \"intlayer\";\n\nexport { generateStaticParams } from \"next-intlayer\";\n\nconst LocaleLayout = async ({ children, params }) => {\n const { locale } = await params;\n\n return (\n <html lang={locale} dir={getHTMLTextDir(locale)}>\n <body>\n <IntlayerClientProvider locale={locale}>\n {children}\n </IntlayerClientProvider>\n </body>\n </html>\n );\n};\n\nexport default LocaleLayout;\n";
|
|
17
|
+
/**
|
|
18
|
+
* Locale home page (`app/[locale]/page.tsx`). Self-contained starter that does
|
|
19
|
+
* not depend on an example content declaration — add Intlayer content (a
|
|
20
|
+
* `*.content.ts` file consumed via `useIntlayer`) as the next step.
|
|
21
|
+
*/
|
|
22
|
+
declare const LOCALE_PAGE_TEMPLATE_TS = "import { type NextPageIntlayer } from \"next-intlayer\";\n\nconst Page: NextPageIntlayer = async ({ params }) => {\n const { locale } = await params;\n\n return (\n <main>\n <h1>{locale}</h1>\n <p>Get started by editing this page.</p>\n </main>\n );\n};\n\nexport default Page;\n";
|
|
23
|
+
declare const LOCALE_PAGE_TEMPLATE_JS = "const Page = async ({ params }) => {\n const { locale } = await params;\n\n return (\n <main>\n <h1>{locale}</h1>\n <p>Get started by editing this page.</p>\n </main>\n );\n};\n\nexport default Page;\n";
|
|
24
|
+
//#endregion
|
|
25
|
+
export { LOCALE_LAYOUT_TEMPLATE_JS, LOCALE_LAYOUT_TEMPLATE_TS, LOCALE_PAGE_TEMPLATE_JS, LOCALE_PAGE_TEMPLATE_TS, MIDDLEWARE_TEMPLATE, PROXY_TEMPLATE, ROOT_LAYOUT_TEMPLATE_JS, ROOT_LAYOUT_TEMPLATE_TS };
|
|
26
|
+
//# sourceMappingURL=templates.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"templates.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/nextAppRouter/templates.ts"],"mappings":";;AAOA;;;;;cAAa,cAAA;;cASA,mBAAA;;cASA,uBAAA;AAAA,cAOA,uBAAA;;cAMA,yBAAA;AAAA,cAsBA,yBAAA;;AA5Bb;;;;cAuDa,uBAAA;AAAA,cAgBA,uBAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
//#region src/init/frameworkSetup/nextAppRouter/transforms.d.ts
|
|
2
|
+
/** Result of a source transform. `code` is unchanged for any non-`wrapped` status. */
|
|
3
|
+
type TransformResult = {
|
|
4
|
+
code: string;
|
|
5
|
+
status: 'wrapped' | 'already' | 'skipped-client' | 'skipped';
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Wraps the `{children}` of a Next.js App Router **layout** with
|
|
9
|
+
* `IntlayerClientProvider`, deriving the locale via `getLocale()`. Safe and
|
|
10
|
+
* idempotent: bails (returns the original code) for client components, when no
|
|
11
|
+
* `{children}` placeholder is found, or when there is no default export.
|
|
12
|
+
*/
|
|
13
|
+
declare const wrapLayoutWithProvider: (code: string) => TransformResult;
|
|
14
|
+
/**
|
|
15
|
+
* Wraps the returned JSX of a Next.js App Router **page** with
|
|
16
|
+
* `IntlayerServerProvider`, deriving the locale via `getLocale()`. Safe and
|
|
17
|
+
* idempotent: bails for client components, when the page has no single
|
|
18
|
+
* top-level JSX return, or when there is no default export.
|
|
19
|
+
*/
|
|
20
|
+
declare const wrapPageWithProvider: (code: string) => TransformResult;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { TransformResult, wrapLayoutWithProvider, wrapPageWithProvider };
|
|
23
|
+
//# sourceMappingURL=transforms.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transforms.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/nextAppRouter/transforms.ts"],"mappings":";;KAUY,eAAA;EACV,IAAA;EACA,MAAA;AAAA;;AAiLF;;;;;cAAa,sBAAA,GAA0B,IAAA,aAAe,eAAA;;;;;;;cAsFzC,oBAAA,GAAwB,IAAA,aAAe,eAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
//#region src/init/frameworkSetup/tanstackStart/detect.d.ts
|
|
2
|
+
/** Location of the TanStack Router file-based routes directory. */
|
|
3
|
+
type TanStackRoutesInfo = {
|
|
4
|
+
/** Routes directory relative to the root, e.g. `src/routes` or `routes`. */routesDir: string; /** `src` when the project uses a `src/` directory, otherwise `''`. */
|
|
5
|
+
srcDir: string;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Detects the TanStack Router routes directory, preferring `src/routes` over
|
|
9
|
+
* `routes`. Returns `null` when neither exists.
|
|
10
|
+
*/
|
|
11
|
+
declare const detectTanStackRoutesDir: (rootDir: string) => Promise<TanStackRoutesInfo | null>;
|
|
12
|
+
/**
|
|
13
|
+
* Returns true when the project depends on TanStack Start (`@tanstack/react-start`)
|
|
14
|
+
* or, failing that, on `@tanstack/react-router` (file-based routing).
|
|
15
|
+
*/
|
|
16
|
+
declare const hasTanStackStartDeps: (allDeps: Record<string, string>) => boolean;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { TanStackRoutesInfo, detectTanStackRoutesDir, hasTanStackStartDeps };
|
|
19
|
+
//# sourceMappingURL=detect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"detect.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/tanstackStart/detect.ts"],"mappings":";;KAIY,kBAAA;EAAkB,4EAE5B,SAAA;EAEA,MAAA;AAAA;;;;;cAOW,uBAAA,GACX,OAAA,aACC,OAAA,CAAQ,kBAAA;;;;AAcX;cAAa,oBAAA,GACX,OAAA,EAAS,MAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FrameworkAdapter } from "../types.js";
|
|
2
|
+
|
|
3
|
+
//#region src/init/frameworkSetup/tanstackStart/index.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* TanStack Start adapter. Restructures the file-based routes under a `{-$locale}`
|
|
6
|
+
* segment, scaffolds the locale segment route, and wraps the root document with
|
|
7
|
+
* the Intlayer provider — all idempotently and without overwriting user code it
|
|
8
|
+
* cannot confidently transform.
|
|
9
|
+
*/
|
|
10
|
+
declare const tanStackStartAdapter: FrameworkAdapter;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { tanStackStartAdapter };
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/tanstackStart/index.ts"],"mappings":";;;;;AA4EA;;;;cAAa,oBAAA,EAAsB,gBAAA"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { RoutingMode } from "../../utils/configManipulation.js";
|
|
2
|
+
|
|
3
|
+
//#region src/init/frameworkSetup/tanstackStart/restructure.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* The optional TanStack Router locale segment directory (`{-$locale}` param),
|
|
6
|
+
* used by every routing mode except `prefix-all` so the default locale stays
|
|
7
|
+
* prefix-free.
|
|
8
|
+
*/
|
|
9
|
+
declare const LOCALE_SEGMENT = "{-$locale}";
|
|
10
|
+
/**
|
|
11
|
+
* The required TanStack Router locale segment directory (`$locale` param), used
|
|
12
|
+
* by `prefix-all` routing where every URL — including the default locale — is
|
|
13
|
+
* prefixed.
|
|
14
|
+
*/
|
|
15
|
+
declare const PREFIX_ALL_LOCALE_SEGMENT = "$locale";
|
|
16
|
+
/**
|
|
17
|
+
* Picks the locale segment directory for the project's routing mode. `prefix-all`
|
|
18
|
+
* requires the mandatory `$locale` param so the default locale is also prefixed;
|
|
19
|
+
* all other modes use the optional `{-$locale}` param so the default locale stays
|
|
20
|
+
* prefix-free.
|
|
21
|
+
*/
|
|
22
|
+
declare const getLocaleSegment: (routingMode: RoutingMode) => string;
|
|
23
|
+
/**
|
|
24
|
+
* Detects whether a top-level route entry is already a locale segment, in any of
|
|
25
|
+
* the TanStack Router param forms:
|
|
26
|
+
* - `{-$locale}` — optional param (prefix every locale except the default),
|
|
27
|
+
* - `$locale` / `{$locale}` — required param (prefix **all** locales).
|
|
28
|
+
*
|
|
29
|
+
* Used to skip the restructure when the project is already locale-aware, so an
|
|
30
|
+
* existing prefix-all `$locale` directory is never nested under a freshly created
|
|
31
|
+
* `{-$locale}` (which would produce `{-$locale}/$locale`).
|
|
32
|
+
*/
|
|
33
|
+
declare const isLocaleSegment: (entryName: string) => boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Routes-directory entries that must stay at the root and never be moved under
|
|
36
|
+
* `{-$locale}`:
|
|
37
|
+
* - `__root` (the root route document),
|
|
38
|
+
* - `routeTree.gen` (generated route tree),
|
|
39
|
+
* - `api` (server / API routes — these are not locale-prefixed),
|
|
40
|
+
* - TanStack-ignored entries prefixed with `-` (e.g. `-components`, `-utils`),
|
|
41
|
+
* - stylesheets.
|
|
42
|
+
*
|
|
43
|
+
* Everything else (route files and nested route folders) is moved so it becomes
|
|
44
|
+
* locale-aware.
|
|
45
|
+
*/
|
|
46
|
+
declare const shouldKeepRouteAtRoot: (entryName: string) => boolean;
|
|
47
|
+
/** Outcome of an attempted `{-$locale}` restructure. */
|
|
48
|
+
type RestructureResult = {
|
|
49
|
+
status: 'already-structured';
|
|
50
|
+
localeSegment: string;
|
|
51
|
+
} | {
|
|
52
|
+
status: 'nothing-to-move';
|
|
53
|
+
} | {
|
|
54
|
+
status: 'moved';
|
|
55
|
+
movedEntries: string[];
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* Moves the routable entries of `routesDir` under a new `localeSegment` directory
|
|
59
|
+
* (the optional `{-$locale}` by default, or the required `$locale` for
|
|
60
|
+
* `prefix-all`) and rewrites relative imports in the moved files. Idempotent: a
|
|
61
|
+
* no-op when the routes are already locale-aware in any prefix mode (see
|
|
62
|
+
* {@link isLocaleSegment}), which is reported via `localeSegment`. Root-only
|
|
63
|
+
* files (see {@link shouldKeepRouteAtRoot}) are left in place.
|
|
64
|
+
*/
|
|
65
|
+
declare const restructureRoutesIntoLocale: (rootDir: string, routesDir: string, localeSegment?: string) => Promise<RestructureResult>;
|
|
66
|
+
//#endregion
|
|
67
|
+
export { LOCALE_SEGMENT, PREFIX_ALL_LOCALE_SEGMENT, RestructureResult, getLocaleSegment, isLocaleSegment, restructureRoutesIntoLocale, shouldKeepRouteAtRoot };
|
|
68
|
+
//# sourceMappingURL=restructure.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"restructure.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/tanstackStart/restructure.ts"],"mappings":";;;;;AAcA;;;cAAa,cAAA;;AAOb;;;;cAAa,yBAAA;AAQb;;;;;AAaA;AAbA,cAAa,gBAAA,GAAoB,WAAA,EAAa,WAAA;;;;AAgC9C;;;;;AAUA;;cA7Ba,eAAA,GAAmB,SAAA;;;;;;;;;AA0ChC;;;;cAvBa,qBAAA,GAAyB,SAAA;;KAU1B,iBAAA;EACN,MAAA;EAA8B,aAAA;AAAA;EAC9B,MAAA;AAAA;EACA,MAAA;EAAiB,YAAA;AAAA;;;;;;;;;cAUV,2BAAA,GACX,OAAA,UACA,SAAA,UACA,aAAA,cACC,OAAA,CAAQ,iBAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
//#region src/init/frameworkSetup/tanstackStart/templates.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* File templates for a fresh TanStack Start integration. These are only written
|
|
4
|
+
* when the target file does not exist — they never overwrite user code.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Builds the locale segment route (`routes/<localeSegment>/route.tsx`) for the
|
|
8
|
+
* given segment. The optional `{-$locale}` param makes the default locale
|
|
9
|
+
* prefix-free, while the required `$locale` param (`prefix-all`) prefixes every
|
|
10
|
+
* locale; in both cases `validatePrefix` redirects unknown prefixes to a valid
|
|
11
|
+
* one. Identical for TypeScript and JavaScript projects.
|
|
12
|
+
*/
|
|
13
|
+
declare const buildLocaleRouteTemplate: (localeSegment: string) => string;
|
|
14
|
+
/**
|
|
15
|
+
* Root route document (`routes/__root.tsx`) providing `<html>` + the Intlayer
|
|
16
|
+
* provider, with the locale read from the `{-$locale}` route param.
|
|
17
|
+
*/
|
|
18
|
+
declare const ROOT_TEMPLATE_TS = "import {\n createRootRoute,\n HeadContent,\n Scripts,\n useParams,\n} from \"@tanstack/react-router\";\nimport { defaultLocale, getHTMLTextDir } from \"intlayer\";\nimport type { ReactNode } from \"react\";\nimport { IntlayerProvider } from \"react-intlayer\";\n\nexport const Route = createRootRoute({\n shellComponent: RootDocument,\n});\n\nfunction RootDocument({ children }: { children: ReactNode }) {\n const params = useParams({ strict: false });\n const locale = params.locale ?? defaultLocale;\n\n return (\n <html dir={getHTMLTextDir(locale)} lang={locale}>\n <head>\n <HeadContent />\n </head>\n <body>\n <IntlayerProvider locale={locale}>{children}</IntlayerProvider>\n <Scripts />\n </body>\n </html>\n );\n}\n";
|
|
19
|
+
declare const ROOT_TEMPLATE_JS = "import {\n createRootRoute,\n HeadContent,\n Scripts,\n useParams,\n} from \"@tanstack/react-router\";\nimport { defaultLocale, getHTMLTextDir } from \"intlayer\";\nimport { IntlayerProvider } from \"react-intlayer\";\n\nexport const Route = createRootRoute({\n shellComponent: RootDocument,\n});\n\nfunction RootDocument({ children }) {\n const params = useParams({ strict: false });\n const locale = params.locale ?? defaultLocale;\n\n return (\n <html dir={getHTMLTextDir(locale)} lang={locale}>\n <head>\n <HeadContent />\n </head>\n <body>\n <IntlayerProvider locale={locale}>{children}</IntlayerProvider>\n <Scripts />\n </body>\n </html>\n );\n}\n";
|
|
20
|
+
//#endregion
|
|
21
|
+
export { ROOT_TEMPLATE_JS, ROOT_TEMPLATE_TS, buildLocaleRouteTemplate };
|
|
22
|
+
//# sourceMappingURL=templates.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"templates.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/tanstackStart/templates.ts"],"mappings":";;AAYA;;;;;AA4BA;;;;;cA5Ba,wBAAA,GACX,aAAA;;;;;cA2BW,gBAAA;AAAA,cAgCA,gBAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//#region src/init/frameworkSetup/tanstackStart/transforms.d.ts
|
|
2
|
+
/** Result of a source transform. `code` is unchanged for any non-`wrapped` status. */
|
|
3
|
+
type TransformResult = {
|
|
4
|
+
code: string;
|
|
5
|
+
status: 'wrapped' | 'already' | 'skipped';
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Wraps the `{children}` of a TanStack Start root document with
|
|
9
|
+
* `IntlayerProvider`, deriving the locale from the `{-$locale}` route param.
|
|
10
|
+
* Safe and idempotent: bails (returns the original code) when the provider is
|
|
11
|
+
* already present, when no `<html>` document function is found, or when there is
|
|
12
|
+
* no `{children}` placeholder to wrap.
|
|
13
|
+
*/
|
|
14
|
+
declare const wrapRootWithProvider: (code: string) => TransformResult;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { TransformResult, wrapRootWithProvider };
|
|
17
|
+
//# sourceMappingURL=transforms.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transforms.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/tanstackStart/transforms.ts"],"mappings":";;KAUY,eAAA;EACV,IAAA;EACA,MAAA;AAAA;;AAqJF;;;;;;cAAa,oBAAA,GAAwB,IAAA,aAAe,eAAA"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { PackageManager } from "../utils/packageManager.js";
|
|
2
|
+
import { RoutingMode } from "../utils/configManipulation.js";
|
|
3
|
+
|
|
4
|
+
//#region src/init/frameworkSetup/types.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Shared context passed to every framework adapter. Mirrors the data already
|
|
7
|
+
* computed by `initIntlayer` so adapters don't re-detect it.
|
|
8
|
+
*/
|
|
9
|
+
type FrameworkSetupContext = {
|
|
10
|
+
/** Absolute project root directory. */rootDir: string; /** Merged prod + dev dependencies of the project's package.json. */
|
|
11
|
+
allDeps: Record<string, string>; /** Detected package manager (unused today, kept for adapter parity). */
|
|
12
|
+
packageManager: PackageManager; /** Whether the project is a TypeScript project (drives file extensions). */
|
|
13
|
+
useTypeScript: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Effective locale routing mode for the project (the user's interactive
|
|
16
|
+
* choice, else the configured/`routing.mode` default). Drives whether the
|
|
17
|
+
* locale path segment is required (`prefix-all` → `$locale`) or optional
|
|
18
|
+
* (`prefix-no-default` → `{-$locale}`).
|
|
19
|
+
*/
|
|
20
|
+
routingMode: RoutingMode;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* A framework integration adapter. Each adapter knows how to recognize a
|
|
24
|
+
* project shape and scaffold the matching Intlayer integration (middleware,
|
|
25
|
+
* providers, example content) in a way that is safe to re-run.
|
|
26
|
+
*/
|
|
27
|
+
type FrameworkAdapter = {
|
|
28
|
+
/** Human-readable adapter name, used in logs. */name: string;
|
|
29
|
+
/**
|
|
30
|
+
* Returns true when this adapter applies to the project. Adapters are tried
|
|
31
|
+
* in registration order and the first match wins.
|
|
32
|
+
*/
|
|
33
|
+
detect: (context: FrameworkSetupContext) => boolean | Promise<boolean>;
|
|
34
|
+
/**
|
|
35
|
+
* Performs the (idempotent, non-destructive) scaffolding. Implementations
|
|
36
|
+
* must never overwrite user code they cannot confidently transform — they
|
|
37
|
+
* should skip and log guidance instead.
|
|
38
|
+
*/
|
|
39
|
+
setup: (context: FrameworkSetupContext) => Promise<void>;
|
|
40
|
+
};
|
|
41
|
+
//#endregion
|
|
42
|
+
export { FrameworkAdapter, FrameworkSetupContext };
|
|
43
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","names":[],"sources":["../../../../src/init/frameworkSetup/types.ts"],"mappings":";;;;;;AAOA;;KAAY,qBAAA;EAID,uCAFT,OAAA,UAaa;EAXb,OAAA,EAAS,MAAA,kBAWe;EATxB,cAAA,EAAgB,cAAA,EAFhB;EAIA,aAAA;EAFA;;;;;;EASA,WAAA,EAAa,WAAA;AAAA;;;;;;KAQH,gBAAA;EAawC,iDAXlD,IAAA;EAAA;;;;EAKA,MAAA,GAAS,OAAA,EAAS,qBAAA,eAAoC,OAAA;EAMtD;;;;;EAAA,KAAA,GAAQ,OAAA,EAAS,qBAAA,KAA0B,OAAA;AAAA"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { RoutingMode } from "./utils/configManipulation.js";
|
|
2
|
+
//#region src/init/index.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* OPTIONS
|
|
5
|
+
*/
|
|
6
|
+
type InitOptions = {
|
|
7
|
+
noGitignore?: boolean; /** Skip scaffolding the `fill` and `test` GitHub Actions workflows. */
|
|
8
|
+
noGithubActions?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Skip installing missing Intlayer dependencies and upgrading outdated ones.
|
|
11
|
+
*/
|
|
12
|
+
noInstallPackages?: boolean; /** Skip adding the Intlayer extension to `.vscode/extensions.json`. */
|
|
13
|
+
noVscodeExtension?: boolean; /** Skip writing the Intlayer LSP configuration to `.vscode/settings.json`. */
|
|
14
|
+
noLsp?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Skip framework-specific scaffolding (middleware/proxy, providers in
|
|
17
|
+
* layout/page, example content). Defaults to enabled.
|
|
18
|
+
*/
|
|
19
|
+
noFrameworkSetup?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Version that outdated Intlayer packages should be upgraded to (typically the
|
|
22
|
+
* running CLI version). When omitted, installed packages are left untouched and
|
|
23
|
+
* only missing ones are installed.
|
|
24
|
+
*/
|
|
25
|
+
upgradeToVersion?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Locale routing strategy to write to `routing.mode` in the generated/existing
|
|
28
|
+
* Intlayer configuration file. When omitted, the configuration default
|
|
29
|
+
* (`prefix-no-default`) is kept.
|
|
30
|
+
*/
|
|
31
|
+
routingMode?: RoutingMode;
|
|
32
|
+
/**
|
|
33
|
+
* Extra packages hinted by the interactive init prompt (compat i18n library
|
|
34
|
+
* selections made before those libraries are actually installed). These are
|
|
35
|
+
* merged into the dependency map used by {@link detectMissingIntlayerPackages}
|
|
36
|
+
* so the correct sync plugin and compat adapter are always scheduled.
|
|
37
|
+
*/
|
|
38
|
+
hintDependencies?: Record<string, string>;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* MAIN LOGIC
|
|
42
|
+
*/
|
|
43
|
+
declare const initIntlayer: (rootDir: string, options?: InitOptions) => Promise<void>;
|
|
44
|
+
//#endregion
|
|
45
|
+
export { InitOptions, initIntlayer };
|
|
46
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/init/index.ts"],"mappings":";;;;;KAuLY,WAAA;EACV,WAAA;EAEA,eAAA;EAFA;;;EAMA,iBAAA,YAIA;EAFA,iBAAA,YAaA;EAXA,KAAA;EAiBc;;;;EAZd,gBAAA;EAyBW;;;;;EAnBX,gBAAA;EAmBkD;;;;;EAblD,WAAA,GAAc,WAAA;;;;;;;EAOd,gBAAA,GAAmB,MAAA;AAAA;;;;cAMR,YAAA,GAAsB,OAAA,UAAiB,OAAA,GAAU,WAAA,KAAW,OAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
//#region src/init/utils/astImports.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Index just past the leading directives (e.g. `'use client'`) and import
|
|
4
|
+
* declarations — the safe insertion point for a new import.
|
|
5
|
+
*/
|
|
6
|
+
declare const firstInsertIndex: (ast: any) => number;
|
|
7
|
+
/**
|
|
8
|
+
* Whether `name` is already bound at module scope — by any import (under that
|
|
9
|
+
* local name, regardless of source) or by a top-level
|
|
10
|
+
* `const`/`let`/`var`/`function`/`class` declaration.
|
|
11
|
+
*
|
|
12
|
+
* Used to avoid redeclaring an identifier the file already provides (e.g. a
|
|
13
|
+
* `defaultLocale` re-exported from a local `i18n` module), which would otherwise
|
|
14
|
+
* produce an `Identifier '…' has already been declared` parse error.
|
|
15
|
+
*/
|
|
16
|
+
declare const isModuleScopeBinding: (ast: any, name: string) => boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Ensures `import { importName } from source`, merging into an existing import
|
|
19
|
+
* from the same source. No-ops when `importName` is already bound at module
|
|
20
|
+
* scope (imported from another source or declared locally), reusing that binding
|
|
21
|
+
* instead of redeclaring it.
|
|
22
|
+
*
|
|
23
|
+
* Shared across every framework adapter so injected identifiers never collide
|
|
24
|
+
* with bindings the user's file already provides.
|
|
25
|
+
*/
|
|
26
|
+
declare const ensureNamedImport: (ast: any, importName: string, source: string) => void;
|
|
27
|
+
//#endregion
|
|
28
|
+
export { ensureNamedImport, firstInsertIndex, isModuleScopeBinding };
|
|
29
|
+
//# sourceMappingURL=astImports.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"astImports.d.ts","names":[],"sources":["../../../../src/init/utils/astImports.ts"],"mappings":";;AAQA;;;cAAa,gBAAA,GAAoB,GAAA;;AAuBjC;;;;;AAoCA;;;cApCa,oBAAA,GAAwB,GAAA,OAAU,IAAA;;;;;;;;;;cAoClC,iBAAA,GACX,GAAA,OACA,UAAA,UACA,MAAA"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { CompatSyncConfig, CompatVitePluginConfig } from "./packageManager.js";
|
|
2
|
+
import { RoutingConfig } from "@intlayer/types/config";
|
|
3
|
+
|
|
4
|
+
//#region src/init/utils/configManipulation.d.ts
|
|
5
|
+
/** The locale routing strategies supported by the Intlayer configuration. */
|
|
6
|
+
type RoutingMode = RoutingConfig['mode'];
|
|
7
|
+
/**
|
|
8
|
+
* Sets `routing.mode` in an Intlayer configuration file to the requested
|
|
9
|
+
* strategy. Idempotent: re-running with the same mode produces identical
|
|
10
|
+
* output. Supports `.ts`, `.mjs`, `.js` and `.cjs` configs; JSON configs are
|
|
11
|
+
* handled with a scoped string replacement since they cannot be parsed by the
|
|
12
|
+
* TypeScript recast parser.
|
|
13
|
+
*/
|
|
14
|
+
declare const setIntlayerConfigRoutingMode: (content: string, extension: string, mode: RoutingMode) => string;
|
|
15
|
+
/**
|
|
16
|
+
* Enables the Intlayer visual editor in a configuration file: sets
|
|
17
|
+
* `editor.enabled` to `true` and wires `clientId` / `clientSecret` to the
|
|
18
|
+
* `INTLAYER_CLIENT_ID` / `INTLAYER_CLIENT_SECRET` environment variables.
|
|
19
|
+
* Idempotent and non-destructive — existing `clientId` / `clientSecret` values
|
|
20
|
+
* are preserved. Only `.ts`, `.mjs`, `.js` and `.cjs` configs are supported
|
|
21
|
+
* (JSON cannot reference `process.env`).
|
|
22
|
+
*/
|
|
23
|
+
declare const enableIntlayerEditorConfig: (content: string) => string;
|
|
24
|
+
declare const updateViteConfig: (content: string, extension: string) => string;
|
|
25
|
+
declare const updateAstroConfig: (content: string, extension: string) => string;
|
|
26
|
+
declare const updateNextConfig: (content: string, extension: string) => string;
|
|
27
|
+
/**
|
|
28
|
+
* Wraps a React Native Metro config's exported value with
|
|
29
|
+
* `configMetroIntlayerSync` from `react-native-intlayer/metro`, injecting the
|
|
30
|
+
* import. The synchronous helper is used because it wraps a plain config object
|
|
31
|
+
* and needs no IIFE, making it safe to inject into existing configs without
|
|
32
|
+
* restructuring them.
|
|
33
|
+
*
|
|
34
|
+
* Non-destructive: returns the content unchanged when the export is already
|
|
35
|
+
* wrapped, when the Intlayer Metro plugin is already present, or when the export
|
|
36
|
+
* is a custom async IIFE that cannot be wrapped synchronously. Callers should
|
|
37
|
+
* compare the result with the input to detect the skipped case.
|
|
38
|
+
*/
|
|
39
|
+
declare const updateMetroConfig: (content: string, extension: string) => string;
|
|
40
|
+
/**
|
|
41
|
+
* Builds the contents of a fresh `metro.config.js` wired with the Intlayer
|
|
42
|
+
* Metro plugin. Uses the async `configMetroIntlayer` helper (which can build
|
|
43
|
+
* dictionaries on server start) and picks the default-config source based on
|
|
44
|
+
* whether the project is an Expo app.
|
|
45
|
+
*/
|
|
46
|
+
declare const getMetroConfigTemplate: (isExpo: boolean) => string;
|
|
47
|
+
declare const updateNuxtConfig: (content: string) => string;
|
|
48
|
+
/**
|
|
49
|
+
* Updates a Vite config for vue-i18n compat: injects `vueI18nVitePlugin` from
|
|
50
|
+
* `@intlayer/vue-i18n/plugin` into the plugins array.
|
|
51
|
+
*/
|
|
52
|
+
declare const updateViteConfigForVueI18n: (content: string, extension: string) => string;
|
|
53
|
+
/**
|
|
54
|
+
* Generic vite config updater for any compat plugin that uses alias injection.
|
|
55
|
+
* Injects the named import from `pluginPackageSource` and appends the plugin
|
|
56
|
+
* call to the `plugins` array.
|
|
57
|
+
*/
|
|
58
|
+
declare const updateViteConfigForCompatPlugin: (content: string, extension: string, pluginConfig: CompatVitePluginConfig) => string;
|
|
59
|
+
/**
|
|
60
|
+
* Rewrites the module source of an existing named import in a vite config,
|
|
61
|
+
* keeping the imported binding and its call site untouched. Used when a compat
|
|
62
|
+
* plugin is a drop-in replacement for an i18n library's own vite plugin — e.g.
|
|
63
|
+
* lingui: `import { lingui } from "@lingui/vite-plugin"` becomes
|
|
64
|
+
* `import { lingui } from "@intlayer/lingui/plugin"`, leaving `lingui()` in the
|
|
65
|
+
* `plugins` array as-is. Returns the content unchanged when no matching import
|
|
66
|
+
* is found.
|
|
67
|
+
*/
|
|
68
|
+
declare const replaceViteConfigPluginImportSource: (content: string, importName: string, fromPackageSource: string, toPackageSource: string) => string;
|
|
69
|
+
/**
|
|
70
|
+
* Updates a Next.js config for next-translate compat: wraps the default export
|
|
71
|
+
* with `withNextTranslate` from `@intlayer/next-translate/plugin`.
|
|
72
|
+
*/
|
|
73
|
+
declare const updateNextConfigForNextTranslate: (content: string, extension: string) => string;
|
|
74
|
+
/**
|
|
75
|
+
* Updates a Nuxt config for nuxtjs-i18n compat: adds `@intlayer/nuxtjs-i18n`
|
|
76
|
+
* to the `modules` array.
|
|
77
|
+
*/
|
|
78
|
+
declare const updateNuxtConfigForNuxtjsI18n: (content: string) => string;
|
|
79
|
+
/**
|
|
80
|
+
* Updates a Next.js config for next-i18next compat: wraps the default export
|
|
81
|
+
* with `withI18next` from `@intlayer/next-i18next/plugin`.
|
|
82
|
+
*/
|
|
83
|
+
declare const updateNextConfigForNextI18next: (content: string, extension: string) => string;
|
|
84
|
+
/**
|
|
85
|
+
* Updates a Next.js config for next-intl compat: replaces any existing
|
|
86
|
+
* `next-intl/plugin` import source with `@intlayer/next-intl/plugin`, or
|
|
87
|
+
* injects `createNextIntlPlugin` with a factory-call wrapper when no such
|
|
88
|
+
* import is present.
|
|
89
|
+
*/
|
|
90
|
+
declare const updateNextConfigForNextIntl: (content: string, extension: string) => string;
|
|
91
|
+
/**
|
|
92
|
+
* Injects the sync plugin import (`syncJSON` / `syncPO`) and a configured
|
|
93
|
+
* `syncJSON(...)` / `syncPO(...)` call into the plugins array of an intlayer
|
|
94
|
+
* config file. Idempotent: skips when the plugin call is already present.
|
|
95
|
+
*/
|
|
96
|
+
declare const updateIntlayerConfigWithSyncPlugin: (content: string, extension: string, syncConfig: CompatSyncConfig) => string;
|
|
97
|
+
//#endregion
|
|
98
|
+
export { RoutingMode, enableIntlayerEditorConfig, getMetroConfigTemplate, replaceViteConfigPluginImportSource, setIntlayerConfigRoutingMode, updateAstroConfig, updateIntlayerConfigWithSyncPlugin, updateMetroConfig, updateNextConfig, updateNextConfigForNextI18next, updateNextConfigForNextIntl, updateNextConfigForNextTranslate, updateNuxtConfig, updateNuxtConfigForNuxtjsI18n, updateViteConfig, updateViteConfigForCompatPlugin, updateViteConfigForVueI18n };
|
|
99
|
+
//# sourceMappingURL=configManipulation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configManipulation.d.ts","names":[],"sources":["../../../../src/init/utils/configManipulation.ts"],"mappings":";;;;;KAWY,WAAA,GAAc,aAAA;AAA1B;;;;;AA0FA;;AA1FA,cA0Fa,4BAAA,GACX,OAAA,UACA,SAAA,UACA,IAAA,EAAM,WAAA;;;;;;;;AA0CR;cAAa,0BAAA,GAA8B,OAAA;AAAA,cA4M9B,gBAAA,GACX,OAAA,UACA,SAAA;AAAA,cAmBW,iBAAA,GACX,OAAA,UACA,SAAA;AAAA,cAmBW,gBAAA,GACX,OAAA,UACA,SAAA;AA5CF;;;;;AAqBA;;;;;AAqBA;;AA1CA,cAsHa,iBAAA,GACX,OAAA,UACA,SAAA;;;AAFF;;;;cA4Ea,sBAAA,GAA0B,MAAA;AAAA,cAgB1B,gBAAA,GAAoB,OAAA;;;;;cA6DpB,0BAAA,GACX,OAAA,UACA,SAAA;;;;;AAFF;cA+Ba,+BAAA,GACX,OAAA,UACA,SAAA,UACA,YAAA,EAAc,sBAAA;;;;AAHhB;;;;;;cAoCa,mCAAA,GACX,OAAA,UACA,UAAA,UACA,iBAAA,UACA,eAAA;;;;AAJF;cAwGa,gCAAA,GACX,OAAA,UACA,SAAA;;;;;cAaW,6BAAA,GAAiC,OAAA;;;;AAf9C;cA8Ea,8BAAA,GACX,OAAA,UACA,SAAA;;;;AAjEF;;;cAgFa,2BAAA,GACX,OAAA,UACA,SAAA;;AAnBF;;;;cAgPa,kCAAA,GACX,OAAA,UACA,SAAA,UACA,UAAA,EAAY,gBAAA"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
//#region src/init/utils/fileSystem.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Helper to check if a file exists
|
|
4
|
+
*/
|
|
5
|
+
declare const exists: (rootDir: string, filePath: string) => Promise<boolean>;
|
|
6
|
+
/**
|
|
7
|
+
* Helper to read a file
|
|
8
|
+
*/
|
|
9
|
+
declare const readFileFromRoot: (rootDir: string, filePath: string) => Promise<string>;
|
|
10
|
+
/**
|
|
11
|
+
* Helper to write a file
|
|
12
|
+
*/
|
|
13
|
+
declare const writeFileToRoot: (rootDir: string, filePath: string, content: string) => Promise<void>;
|
|
14
|
+
/**
|
|
15
|
+
* Helper to ensure a directory exists
|
|
16
|
+
*/
|
|
17
|
+
declare const ensureDirectory: (rootDir: string, dirPath: string) => Promise<void>;
|
|
18
|
+
/**
|
|
19
|
+
* Pattern type for locale JSON file organisation.
|
|
20
|
+
* - 'nested': files are at `{base}/{locale}/{key}.json`
|
|
21
|
+
* - 'flat': files are at `{base}/{locale}.json`
|
|
22
|
+
*/
|
|
23
|
+
type JsonLocalePatternType = 'nested' | 'flat';
|
|
24
|
+
/**
|
|
25
|
+
* Detected locale JSON file pattern and the corresponding source template.
|
|
26
|
+
* `template` uses `${locale}` and `${key}` as literal placeholders (not JS
|
|
27
|
+
* expressions) so it can be embedded directly in a template-literal string.
|
|
28
|
+
*/
|
|
29
|
+
type JsonLocalePattern = {
|
|
30
|
+
type: JsonLocalePatternType;
|
|
31
|
+
/**
|
|
32
|
+
* Source path template for syncJSON `source` option.
|
|
33
|
+
* Example nested: `./locales/${locale}/${key}.json`
|
|
34
|
+
* Example flat: `./locales/${locale}.json`
|
|
35
|
+
*/
|
|
36
|
+
template: string;
|
|
37
|
+
/**
|
|
38
|
+
* Detected locales in the directory.
|
|
39
|
+
*/
|
|
40
|
+
locales: string[];
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Scans the project for JSON files and determines whether locale files are
|
|
44
|
+
* organised as `{base}/{locale}/{key}.json` (nested) or `{base}/{locale}.json`
|
|
45
|
+
* (flat). Returns the most likely source template, or `null` when no locale
|
|
46
|
+
* JSON files are found.
|
|
47
|
+
*
|
|
48
|
+
* The returned `template` contains `${locale}` and `${key}` as **literal**
|
|
49
|
+
* placeholder strings so it can be embedded inside a JS template literal.
|
|
50
|
+
*/
|
|
51
|
+
declare const detectJsonLocalePattern: (rootDir: string) => Promise<JsonLocalePattern | null>;
|
|
52
|
+
/**
|
|
53
|
+
* Detected lingui catalog pattern. lingui stores one catalog file per locale
|
|
54
|
+
* (default name `messages`), as `.po` (its default) or `.json`.
|
|
55
|
+
*/
|
|
56
|
+
type LinguiCatalogPattern = {
|
|
57
|
+
/** Which sync plugin should ingest the catalogs. */format: 'po' | 'json';
|
|
58
|
+
/**
|
|
59
|
+
* Source path template, with `${locale}` and `${key}` as literal
|
|
60
|
+
* placeholders. The catalog filename (`messages`) is captured by `${key}` so
|
|
61
|
+
* the produced intlayer dictionary key is `messages` — matching the fixed
|
|
62
|
+
* `messages` namespace the lingui compat runtime reads from.
|
|
63
|
+
* Example: `./src/locales/${locale}/${key}.po`.
|
|
64
|
+
*/
|
|
65
|
+
template: string; /** Detected locales. */
|
|
66
|
+
locales: string[];
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* Scans the project for lingui catalog files (`{base}/{locale}/messages.po` or
|
|
70
|
+
* `…/messages.json`, lingui's default layout) and derives the `syncPO` /
|
|
71
|
+
* `syncJSON` `source` template.
|
|
72
|
+
*
|
|
73
|
+
* `.po` is preferred when present (lingui's default format). Returns `null`
|
|
74
|
+
* when no lingui catalog is found, in which case the caller falls back to the
|
|
75
|
+
* generic JSON detection.
|
|
76
|
+
*
|
|
77
|
+
* @param rootDir - Project root directory.
|
|
78
|
+
*/
|
|
79
|
+
declare const detectLinguiCatalogPattern: (rootDir: string) => Promise<LinguiCatalogPattern | null>;
|
|
80
|
+
/**
|
|
81
|
+
* The messages source template derived from a `next-intl` `i18n/request.ts`
|
|
82
|
+
* file, ready to be used as a `syncJSON` `source` builder.
|
|
83
|
+
*/
|
|
84
|
+
type NextIntlMessagesPattern = {
|
|
85
|
+
/** `'flat'` (one file per locale) or `'nested'` (per-namespace files). */type: JsonLocalePatternType;
|
|
86
|
+
/**
|
|
87
|
+
* Source path template relative to the project root, with `${locale}` (and
|
|
88
|
+
* `${key}` when nested) as literal placeholders, e.g. `./messages/${locale}.json`.
|
|
89
|
+
*/
|
|
90
|
+
template: string;
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* Derives the messages source template from a `next-intl` `i18n/request.ts`
|
|
94
|
+
* file, which is the authoritative location of the messages path in a next-intl
|
|
95
|
+
* project (e.g. `messages: (await import(\`../messages/${locale}.json\`)).default`).
|
|
96
|
+
*
|
|
97
|
+
* Reading it removes the ambiguity of globbing the file system and yields the
|
|
98
|
+
* exact `source` template for `syncJSON`. When the resulting template has no
|
|
99
|
+
* `${key}` segment (the common single-file-per-locale layout, where top-level
|
|
100
|
+
* keys are namespaces), `syncJSON` `splitKeys` auto-detection turns each
|
|
101
|
+
* top-level key into its own dictionary.
|
|
102
|
+
*
|
|
103
|
+
* Returns `null` when no request file is found, the messages import cannot be
|
|
104
|
+
* parsed, or the path is not project-root-relative (e.g. uses a TS path alias).
|
|
105
|
+
*
|
|
106
|
+
* @param rootDir - Project root directory.
|
|
107
|
+
*/
|
|
108
|
+
declare const detectNextIntlMessagesPattern: (rootDir: string) => Promise<NextIntlMessagesPattern | null>;
|
|
109
|
+
//#endregion
|
|
110
|
+
export { JsonLocalePattern, JsonLocalePatternType, LinguiCatalogPattern, NextIntlMessagesPattern, detectJsonLocalePattern, detectLinguiCatalogPattern, detectNextIntlMessagesPattern, ensureDirectory, exists, readFileFromRoot, writeFileToRoot };
|
|
111
|
+
//# sourceMappingURL=fileSystem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fileSystem.d.ts","names":[],"sources":["../../../../src/init/utils/fileSystem.ts"],"mappings":";;AASA;;cAAa,MAAA,GAAgB,OAAA,UAAiB,QAAA,aAAgB,OAAA;;;;cAYjD,gBAAA,GAA0B,OAAA,UAAiB,QAAA,aAAgB,OAAA;;;AAAxE;cAMa,eAAA,GACX,OAAA,UACA,QAAA,UACA,OAAA,aAAe,OAAA;;;;cAMJ,eAAA,GAAyB,OAAA,UAAiB,OAAA,aAAe,OAAA;;;;AATtE;;KAsBY,qBAAA;;;;;;KAOA,iBAAA;EACV,IAAA,EAAM,qBAAA;EArBK;;;;;EA2BX,QAAA;EA3BoE;;;EA+BpE,OAAA;AAAA;;;;AAXF;;;;;;cAuDa,uBAAA,GACX,OAAA,aACC,OAAA,CAAQ,iBAAA;;;;AAFX;KAgFY,oBAAA;sDAEV,MAAA;EAjFA;;;;;AA+EF;;EAUE,QAAA,UAV8B;EAY9B,OAAA;AAAA;;;;AAcF;;;;;;;;cAAa,0BAAA,GACX,OAAA,aACC,OAAA,CAAQ,oBAAA;AA4DX;;;;AAAA,KAAY,uBAAA;EAEJ,0EAAN,IAAA,EAAM,qBAAA;EAKE;;AAiCV;;EAjCE,QAAA;AAAA;;;;;;;;;;;;;;;;;cAiCW,6BAAA,GACX,OAAA,aACC,OAAA,CAAQ,uBAAA"}
|