@intlayer/engine 9.4.2 → 9.4.4
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/dist/cjs/init/utils/configManipulation.cjs +30 -1
- package/dist/cjs/init/utils/configManipulation.cjs.map +1 -1
- package/dist/cjs/init/utils/packageManager.cjs +2 -1
- package/dist/cjs/init/utils/packageManager.cjs.map +1 -1
- package/dist/esm/init/utils/configManipulation.mjs +30 -1
- package/dist/esm/init/utils/configManipulation.mjs.map +1 -1
- package/dist/esm/init/utils/packageManager.mjs +2 -1
- package/dist/esm/init/utils/packageManager.mjs.map +1 -1
- package/dist/types/buildIntlayerDictionary/buildIntlayerDictionary.d.ts +2 -3
- package/dist/types/buildIntlayerDictionary/buildIntlayerDictionary.d.ts.map +1 -1
- package/dist/types/buildIntlayerDictionary/processContentDeclaration.d.ts +1 -2
- package/dist/types/buildIntlayerDictionary/processContentDeclaration.d.ts.map +1 -1
- package/dist/types/buildIntlayerDictionary/writeDynamicDictionary.d.ts +10 -11
- package/dist/types/buildIntlayerDictionary/writeDynamicDictionary.d.ts.map +1 -1
- package/dist/types/buildIntlayerDictionary/writeFetchDictionary.d.ts +2 -3
- package/dist/types/buildIntlayerDictionary/writeFetchDictionary.d.ts.map +1 -1
- package/dist/types/buildIntlayerDictionary/writeMergedDictionary.d.ts +5 -6
- package/dist/types/buildIntlayerDictionary/writeMergedDictionary.d.ts.map +1 -1
- package/dist/types/buildIntlayerDictionary/writeNestedDictionary.d.ts +4 -5
- package/dist/types/buildIntlayerDictionary/writeNestedDictionary.d.ts.map +1 -1
- package/dist/types/buildIntlayerDictionary/writeRemoteDictionary.d.ts +3 -4
- package/dist/types/buildIntlayerDictionary/writeRemoteDictionary.d.ts.map +1 -1
- package/dist/types/buildIntlayerDictionary/writeUnmergedDictionary.d.ts +4 -5
- package/dist/types/buildIntlayerDictionary/writeUnmergedDictionary.d.ts.map +1 -1
- package/dist/types/cleanOutputDir.d.ts +1 -2
- package/dist/types/cleanOutputDir.d.ts.map +1 -1
- package/dist/types/cleanRemovedContentDeclaration.d.ts +1 -2
- package/dist/types/cleanRemovedContentDeclaration.d.ts.map +1 -1
- package/dist/types/createDictionaryEntryPoint/createDictionaryEntryPoint.d.ts +2 -3
- package/dist/types/createDictionaryEntryPoint/createDictionaryEntryPoint.d.ts.map +1 -1
- package/dist/types/createDictionaryEntryPoint/generateDictionaryListContent.d.ts +1 -2
- package/dist/types/createDictionaryEntryPoint/generateDictionaryListContent.d.ts.map +1 -1
- package/dist/types/createDictionaryEntryPoint/getBuiltDictionariesPath.d.ts +1 -2
- package/dist/types/createDictionaryEntryPoint/getBuiltDictionariesPath.d.ts.map +1 -1
- package/dist/types/createDictionaryEntryPoint/getBuiltDynamicDictionariesPath.d.ts +1 -2
- package/dist/types/createDictionaryEntryPoint/getBuiltDynamicDictionariesPath.d.ts.map +1 -1
- package/dist/types/createDictionaryEntryPoint/getBuiltFetchDictionariesPath.d.ts +1 -2
- package/dist/types/createDictionaryEntryPoint/getBuiltFetchDictionariesPath.d.ts.map +1 -1
- package/dist/types/createDictionaryEntryPoint/getBuiltRemoteDictionariesPath.d.ts +1 -2
- package/dist/types/createDictionaryEntryPoint/getBuiltRemoteDictionariesPath.d.ts.map +1 -1
- package/dist/types/createDictionaryEntryPoint/getBuiltUnmergedDictionariesPath.d.ts +1 -2
- package/dist/types/createDictionaryEntryPoint/getBuiltUnmergedDictionariesPath.d.ts.map +1 -1
- package/dist/types/createType/createModuleAugmentation.d.ts +4 -5
- package/dist/types/createType/createModuleAugmentation.d.ts.map +1 -1
- package/dist/types/createType/createType.d.ts +2 -3
- package/dist/types/createType/createType.d.ts.map +1 -1
- package/dist/types/detectFormatCommand.d.ts +1 -2
- package/dist/types/detectFormatCommand.d.ts.map +1 -1
- package/dist/types/docReview/alignBlocks.d.ts +1 -2
- package/dist/types/docReview/alignBlocks.d.ts.map +1 -1
- package/dist/types/docReview/computeSimilarity.d.ts +2 -3
- package/dist/types/docReview/computeSimilarity.d.ts.map +1 -1
- package/dist/types/docReview/fingerprintBlock.d.ts +1 -2
- package/dist/types/docReview/fingerprintBlock.d.ts.map +1 -1
- package/dist/types/docReview/mapChangedLinesToBlocks.d.ts +1 -2
- package/dist/types/docReview/mapChangedLinesToBlocks.d.ts.map +1 -1
- package/dist/types/docReview/normalizeBlock.d.ts +1 -2
- package/dist/types/docReview/normalizeBlock.d.ts.map +1 -1
- package/dist/types/docReview/pipeline.d.ts +4 -4
- package/dist/types/docReview/pipeline.d.ts.map +1 -1
- package/dist/types/docReview/planActions.d.ts +1 -2
- package/dist/types/docReview/planActions.d.ts.map +1 -1
- package/dist/types/docReview/rebuildDocument.d.ts +5 -6
- package/dist/types/docReview/rebuildDocument.d.ts.map +1 -1
- package/dist/types/docReview/reviewReport.d.ts +8 -9
- package/dist/types/docReview/reviewReport.d.ts.map +1 -1
- package/dist/types/docReview/segmentDocument.d.ts +2 -3
- package/dist/types/docReview/segmentDocument.d.ts.map +1 -1
- package/dist/types/docReview/types.d.ts +9 -10
- package/dist/types/docReview/types.d.ts.map +1 -1
- package/dist/types/fetchDistantDictionaries.d.ts +1 -2
- package/dist/types/fetchDistantDictionaries.d.ts.map +1 -1
- package/dist/types/filterInvalidDictionaries.d.ts +2 -3
- package/dist/types/filterInvalidDictionaries.d.ts.map +1 -1
- package/dist/types/formatDictionary.d.ts +7 -7
- package/dist/types/formatDictionary.d.ts.map +1 -1
- package/dist/types/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.d.ts +1 -2
- package/dist/types/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.d.ts.map +1 -1
- package/dist/types/handleAdditionalContentDeclarationFile.d.ts +1 -2
- package/dist/types/handleAdditionalContentDeclarationFile.d.ts.map +1 -1
- package/dist/types/handleContentDeclarationFileChange.d.ts +1 -2
- package/dist/types/handleContentDeclarationFileChange.d.ts.map +1 -1
- package/dist/types/handleContentDeclarationFileMoved.d.ts +1 -2
- package/dist/types/handleContentDeclarationFileMoved.d.ts.map +1 -1
- package/dist/types/handleUnlinkedContentDeclarationFile.d.ts +1 -2
- package/dist/types/handleUnlinkedContentDeclarationFile.d.ts.map +1 -1
- package/dist/types/init/cms.d.ts +8 -9
- package/dist/types/init/cms.d.ts.map +1 -1
- package/dist/types/init/frameworkSetup/index.d.ts +2 -2
- package/dist/types/init/frameworkSetup/index.d.ts.map +1 -1
- package/dist/types/init/frameworkSetup/nextAppRouter/detect.d.ts +4 -4
- package/dist/types/init/frameworkSetup/nextAppRouter/detect.d.ts.map +1 -1
- package/dist/types/init/frameworkSetup/nextAppRouter/index.d.ts +1 -2
- package/dist/types/init/frameworkSetup/nextAppRouter/index.d.ts.map +1 -1
- package/dist/types/init/frameworkSetup/nextAppRouter/restructure.d.ts +5 -6
- package/dist/types/init/frameworkSetup/nextAppRouter/restructure.d.ts.map +1 -1
- package/dist/types/init/frameworkSetup/nextAppRouter/templates.d.ts +8 -9
- package/dist/types/init/frameworkSetup/nextAppRouter/templates.d.ts.map +1 -1
- package/dist/types/init/frameworkSetup/nextAppRouter/transforms.d.ts +2 -3
- package/dist/types/init/frameworkSetup/nextAppRouter/transforms.d.ts.map +1 -1
- package/dist/types/init/frameworkSetup/tanstackStart/detect.d.ts +3 -4
- package/dist/types/init/frameworkSetup/tanstackStart/detect.d.ts.map +1 -1
- package/dist/types/init/frameworkSetup/tanstackStart/index.d.ts +1 -2
- package/dist/types/init/frameworkSetup/tanstackStart/index.d.ts.map +1 -1
- package/dist/types/init/frameworkSetup/tanstackStart/restructure.d.ts +7 -8
- package/dist/types/init/frameworkSetup/tanstackStart/restructure.d.ts.map +1 -1
- package/dist/types/init/frameworkSetup/tanstackStart/templates.d.ts +3 -4
- package/dist/types/init/frameworkSetup/tanstackStart/templates.d.ts.map +1 -1
- package/dist/types/init/frameworkSetup/tanstackStart/transforms.d.ts +2 -3
- package/dist/types/init/frameworkSetup/tanstackStart/transforms.d.ts.map +1 -1
- package/dist/types/init/frameworkSetup/types.d.ts +2 -3
- package/dist/types/init/frameworkSetup/types.d.ts.map +1 -1
- package/dist/types/init/index.d.ts +4 -5
- package/dist/types/init/index.d.ts.map +1 -1
- package/dist/types/init/utils/astImports.d.ts +3 -4
- package/dist/types/init/utils/astImports.d.ts.map +1 -1
- package/dist/types/init/utils/configManipulation.d.ts +19 -20
- package/dist/types/init/utils/configManipulation.d.ts.map +1 -1
- package/dist/types/init/utils/fileSystem.d.ts +11 -12
- package/dist/types/init/utils/fileSystem.d.ts.map +1 -1
- package/dist/types/init/utils/githubActions.d.ts +7 -8
- package/dist/types/init/utils/githubActions.d.ts.map +1 -1
- package/dist/types/init/utils/jsonParser.d.ts +1 -2
- package/dist/types/init/utils/jsonParser.d.ts.map +1 -1
- package/dist/types/init/utils/nextCompilerBabel.d.ts +2 -3
- package/dist/types/init/utils/nextCompilerBabel.d.ts.map +1 -1
- package/dist/types/init/utils/packageManager.d.ts +17 -18
- package/dist/types/init/utils/packageManager.d.ts.map +1 -1
- package/dist/types/init/utils/tsConfig.d.ts +1 -2
- package/dist/types/init/utils/tsConfig.d.ts.map +1 -1
- package/dist/types/init/utils/version.d.ts +1 -2
- package/dist/types/init/utils/version.d.ts.map +1 -1
- package/dist/types/initConfig/index.d.ts +2 -3
- package/dist/types/initConfig/index.d.ts.map +1 -1
- package/dist/types/installLSP.d.ts +1 -2
- package/dist/types/installLSP.d.ts.map +1 -1
- package/dist/types/installMCP/installMCP.d.ts +2 -3
- package/dist/types/installMCP/installMCP.d.ts.map +1 -1
- package/dist/types/installSkills/index.d.ts +9 -10
- package/dist/types/installSkills/index.d.ts.map +1 -1
- package/dist/types/intlayer/dist/types/index.d.ts +14 -0
- package/dist/types/listDictionariesPath.d.ts +2 -3
- package/dist/types/listDictionariesPath.d.ts.map +1 -1
- package/dist/types/listGitFiles.d.ts +5 -6
- package/dist/types/listGitFiles.d.ts.map +1 -1
- package/dist/types/listProjects.d.ts +3 -4
- package/dist/types/listProjects.d.ts.map +1 -1
- package/dist/types/loadDictionaries/getIntlayerBundle.d.ts +1 -2
- package/dist/types/loadDictionaries/getIntlayerBundle.d.ts.map +1 -1
- package/dist/types/loadDictionaries/loadContentDeclaration.d.ts +4 -5
- package/dist/types/loadDictionaries/loadContentDeclaration.d.ts.map +1 -1
- package/dist/types/loadDictionaries/loadDictionaries.d.ts +2 -3
- package/dist/types/loadDictionaries/loadDictionaries.d.ts.map +1 -1
- package/dist/types/loadDictionaries/loadLocalDictionaries.d.ts +1 -2
- package/dist/types/loadDictionaries/loadLocalDictionaries.d.ts.map +1 -1
- package/dist/types/loadDictionaries/loadMarkdownContentDeclaration.d.ts +1 -2
- package/dist/types/loadDictionaries/loadMarkdownContentDeclaration.d.ts.map +1 -1
- package/dist/types/loadDictionaries/loadRemoteDictionaries.d.ts +2 -3
- package/dist/types/loadDictionaries/loadRemoteDictionaries.d.ts.map +1 -1
- package/dist/types/loadDictionaries/loadYamlContentDeclaration.d.ts +1 -2
- package/dist/types/loadDictionaries/loadYamlContentDeclaration.d.ts.map +1 -1
- package/dist/types/loadDictionaries/log.d.ts +1 -2
- package/dist/types/loadDictionaries/log.d.ts.map +1 -1
- package/dist/types/loadDictionaries/logTypeScriptErrors.d.ts +1 -2
- package/dist/types/loadDictionaries/logTypeScriptErrors.d.ts.map +1 -1
- package/dist/types/logConfigDetails.d.ts +1 -2
- package/dist/types/logConfigDetails.d.ts.map +1 -1
- package/dist/types/prepareIntlayer.d.ts +1 -2
- package/dist/types/prepareIntlayer.d.ts.map +1 -1
- package/dist/types/reduceDictionaryContent/applyMask.d.ts +1 -2
- package/dist/types/reduceDictionaryContent/applyMask.d.ts.map +1 -1
- package/dist/types/reduceDictionaryContent/reduceDictionaryContent.d.ts +1 -2
- package/dist/types/reduceDictionaryContent/reduceDictionaryContent.d.ts.map +1 -1
- package/dist/types/scan/analyzeBundleContent.d.ts +1 -2
- package/dist/types/scan/analyzeBundleContent.d.ts.map +1 -1
- package/dist/types/scan/calculateScore.d.ts +6 -7
- package/dist/types/scan/calculateScore.d.ts.map +1 -1
- package/dist/types/scan/checks.d.ts +8 -9
- package/dist/types/scan/checks.d.ts.map +1 -1
- package/dist/types/scan/parseHtml.d.ts +13 -14
- package/dist/types/scan/parseHtml.d.ts.map +1 -1
- package/dist/types/scan/scanWebsite.d.ts +1 -2
- package/dist/types/scan/scanWebsite.d.ts.map +1 -1
- package/dist/types/scan/types.d.ts +9 -10
- package/dist/types/scan/types.d.ts.map +1 -1
- package/dist/types/syncPluginKit/createFileAdapter.d.ts +4 -5
- package/dist/types/syncPluginKit/createFileAdapter.d.ts.map +1 -1
- package/dist/types/syncPluginKit/createSyncPlugin.d.ts +1 -2
- package/dist/types/syncPluginKit/createSyncPlugin.d.ts.map +1 -1
- package/dist/types/syncPluginKit/extractKeyAndLocaleFromPath.d.ts +1 -2
- package/dist/types/syncPluginKit/extractKeyAndLocaleFromPath.d.ts.map +1 -1
- package/dist/types/syncPluginKit/filePathPatternHelpers.d.ts +1 -2
- package/dist/types/syncPluginKit/filePathPatternHelpers.d.ts.map +1 -1
- package/dist/types/syncPluginKit/types.d.ts +8 -9
- package/dist/types/syncPluginKit/types.d.ts.map +1 -1
- package/dist/types/utils/autoDecorateContent.d.ts +1 -2
- package/dist/types/utils/autoDecorateContent.d.ts.map +1 -1
- package/dist/types/utils/babelParser.d.ts +3 -3
- package/dist/types/utils/babelParser.d.ts.map +1 -1
- package/dist/types/utils/buildComponentFilesList.d.ts +1 -2
- package/dist/types/utils/buildComponentFilesList.d.ts.map +1 -1
- package/dist/types/utils/buildFilesList.d.ts +3 -4
- package/dist/types/utils/buildFilesList.d.ts.map +1 -1
- package/dist/types/utils/chunkArray.d.ts +1 -2
- package/dist/types/utils/chunkArray.d.ts.map +1 -1
- package/dist/types/utils/chunkJSON.d.ts +5 -6
- package/dist/types/utils/chunkJSON.d.ts.map +1 -1
- package/dist/types/utils/formatter.d.ts +2 -3
- package/dist/types/utils/formatter.d.ts.map +1 -1
- package/dist/types/utils/getChunk.d.ts +1 -2
- package/dist/types/utils/getChunk.d.ts.map +1 -1
- package/dist/types/utils/getContentExtension.d.ts +1 -2
- package/dist/types/utils/getContentExtension.d.ts.map +1 -1
- package/dist/types/utils/getFormatFromExtension.d.ts +4 -5
- package/dist/types/utils/getFormatFromExtension.d.ts.map +1 -1
- package/dist/types/utils/getPathHash.d.ts +1 -2
- package/dist/types/utils/getPathHash.d.ts.map +1 -1
- package/dist/types/utils/mergeChunks.d.ts +1 -2
- package/dist/types/utils/mergeChunks.d.ts.map +1 -1
- package/dist/types/utils/pLimit.d.ts +2 -3
- package/dist/types/utils/pLimit.d.ts.map +1 -1
- package/dist/types/utils/parallelize.d.ts +1 -2
- package/dist/types/utils/parallelize.d.ts.map +1 -1
- package/dist/types/utils/parallelizeGlobal.d.ts +3 -4
- package/dist/types/utils/parallelizeGlobal.d.ts.map +1 -1
- package/dist/types/utils/readDictionariesFromDisk.d.ts +1 -2
- package/dist/types/utils/readDictionariesFromDisk.d.ts.map +1 -1
- package/dist/types/utils/reduceObjectFormat.d.ts +4 -5
- package/dist/types/utils/reduceObjectFormat.d.ts.map +1 -1
- package/dist/types/utils/resolveObjectPromises.d.ts +1 -2
- package/dist/types/utils/resolveObjectPromises.d.ts.map +1 -1
- package/dist/types/utils/resolveRelativePath.d.ts +1 -2
- package/dist/types/utils/resolveRelativePath.d.ts.map +1 -1
- package/dist/types/utils/runOnce.d.ts +2 -3
- package/dist/types/utils/runOnce.d.ts.map +1 -1
- package/dist/types/utils/runParallel/bin.d.ts +1 -2
- package/dist/types/utils/runParallel/bin.d.ts.map +1 -1
- package/dist/types/utils/runParallel/bootstrap.d.ts +1 -2
- package/dist/types/utils/runParallel/bootstrap.d.ts.map +1 -1
- package/dist/types/utils/runParallel/index.d.ts +2 -3
- package/dist/types/utils/runParallel/index.d.ts.map +1 -1
- package/dist/types/utils/runParallel/pidTree.d.ts +1 -2
- package/dist/types/utils/runParallel/pidTree.d.ts.map +1 -1
- package/dist/types/utils/runParallel/ps.d.ts +1 -2
- package/dist/types/utils/runParallel/ps.d.ts.map +1 -1
- package/dist/types/utils/runParallel/runTask.d.ts +1 -2
- package/dist/types/utils/runParallel/runTask.d.ts.map +1 -1
- package/dist/types/utils/runParallel/spawnPosix.d.ts +1 -2
- package/dist/types/utils/runParallel/spawnPosix.d.ts.map +1 -1
- package/dist/types/utils/runParallel/spawnWin32.d.ts +1 -2
- package/dist/types/utils/runParallel/spawnWin32.d.ts.map +1 -1
- package/dist/types/utils/runParallel/wmic.d.ts +1 -2
- package/dist/types/utils/runParallel/wmic.d.ts.map +1 -1
- package/dist/types/utils/sortAlphabetically.d.ts +1 -2
- package/dist/types/utils/sortAlphabetically.d.ts.map +1 -1
- package/dist/types/utils/splitTextByLine.d.ts +1 -2
- package/dist/types/utils/splitTextByLine.d.ts.map +1 -1
- package/dist/types/utils/verifyIdenticObjectFormat.d.ts +1 -2
- package/dist/types/utils/verifyIdenticObjectFormat.d.ts.map +1 -1
- package/dist/types/watcher.d.ts +2 -3
- package/dist/types/watcher.d.ts.map +1 -1
- package/dist/types/writeConfiguration/generateConfigurationContent.d.ts +1 -2
- package/dist/types/writeConfiguration/generateConfigurationContent.d.ts.map +1 -1
- package/dist/types/writeConfiguration/index.d.ts +2 -3
- package/dist/types/writeConfiguration/index.d.ts.map +1 -1
- package/dist/types/writeContentDeclaration/detectExportedComponentName.d.ts +1 -2
- package/dist/types/writeContentDeclaration/detectExportedComponentName.d.ts.map +1 -1
- package/dist/types/writeContentDeclaration/dictionaryStatus.d.ts +1 -2
- package/dist/types/writeContentDeclaration/dictionaryStatus.d.ts.map +1 -1
- package/dist/types/writeContentDeclaration/processContentDeclarationContent.d.ts +1 -2
- package/dist/types/writeContentDeclaration/processContentDeclarationContent.d.ts.map +1 -1
- package/dist/types/writeContentDeclaration/transformJSFile.d.ts +1 -2
- package/dist/types/writeContentDeclaration/transformJSFile.d.ts.map +1 -1
- package/dist/types/writeContentDeclaration/transformJSONFile.d.ts +1 -2
- package/dist/types/writeContentDeclaration/transformJSONFile.d.ts.map +1 -1
- package/dist/types/writeContentDeclaration/writeContentDeclaration.d.ts +1 -2
- package/dist/types/writeContentDeclaration/writeContentDeclaration.d.ts.map +1 -1
- package/dist/types/writeContentDeclaration/writeJSFile.d.ts +1 -2
- package/dist/types/writeContentDeclaration/writeJSFile.d.ts.map +1 -1
- package/dist/types/writeContentDeclaration/writeMarkdownFile.d.ts +1 -2
- package/dist/types/writeContentDeclaration/writeMarkdownFile.d.ts.map +1 -1
- package/dist/types/writeContentDeclaration/writeYamlFile.d.ts +1 -2
- package/dist/types/writeContentDeclaration/writeYamlFile.d.ts.map +1 -1
- package/dist/types/writeFileIfChanged.d.ts +2 -3
- package/dist/types/writeFileIfChanged.d.ts.map +1 -1
- package/dist/types/writeJsonIfChanged.d.ts +1 -2
- package/dist/types/writeJsonIfChanged.d.ts.map +1 -1
- package/package.json +11 -11
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
* Returns true when the dependency `version` range targets a major >= `major`.
|
|
4
4
|
* Tolerant of leading range characters, e.g. `^16.0.0`, `~16`, `16.1.0`.
|
|
5
5
|
*/
|
|
6
|
-
declare const isVersionAtLeast: (version: string | undefined, major: number) => boolean;
|
|
6
|
+
export declare const isVersionAtLeast: (version: string | undefined, major: number) => boolean;
|
|
7
7
|
//#endregion
|
|
8
|
-
export { isVersionAtLeast };
|
|
9
8
|
//# sourceMappingURL=version.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","names":[],"sources":["../../../../src/init/utils/version.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"version.d.ts","names":[],"sources":["../../../../src/init/utils/version.ts"],"mappings":";;;;;qBAIa,mBAAgB,6BACA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { configurationFilesCandidates } from "@intlayer/config/node";
|
|
2
2
|
//#region src/initConfig/index.d.ts
|
|
3
3
|
/** Values injected into the configuration file template. */
|
|
4
|
-
type InitConfigOptions = {
|
|
4
|
+
export type InitConfigOptions = {
|
|
5
5
|
/** Locales detected in the project, inserted into `internationalization.locales`. */
|
|
6
6
|
locales?: string[];
|
|
7
7
|
/**
|
|
@@ -14,7 +14,6 @@ type InitConfigOptions = {
|
|
|
14
14
|
* Initialize the Intlayer configuration file. No-ops when a configuration file
|
|
15
15
|
* already exists at `baseDir`.
|
|
16
16
|
*/
|
|
17
|
-
declare const initConfig: (format: (typeof configurationFilesCandidates)[number], baseDir: string, options?: InitConfigOptions) => Promise<void>;
|
|
17
|
+
export declare const initConfig: (format: (typeof configurationFilesCandidates)[number], baseDir: string, options?: InitConfigOptions) => Promise<void>;
|
|
18
18
|
//#endregion
|
|
19
|
-
export { InitConfigOptions, initConfig };
|
|
20
19
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/initConfig/index.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/initConfig/index.ts"],"mappings":";;;YA6BY;;EAEV;;;;;EAKA;;;;;;qBAOW,aAAU,gBACL,uCAAqC,iBACtC,UACL,sBAAiB"}
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
*
|
|
7
7
|
* Returns a human-readable summary of what was done plus next-step instructions.
|
|
8
8
|
*/
|
|
9
|
-
declare const installLSP: (projectRoot: string) => Promise<string>;
|
|
9
|
+
export declare const installLSP: (projectRoot: string) => Promise<string>;
|
|
10
10
|
//#endregion
|
|
11
|
-
export { installLSP };
|
|
12
11
|
//# sourceMappingURL=installLSP.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"installLSP.d.ts","names":[],"sources":["../../src/installLSP.ts"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"installLSP.d.ts","names":[],"sources":["../../src/installLSP.ts"],"mappings":";;;;;;;;qBAkBa,aAAU,wBAAgC"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { Platform } from "../installSkills/index.js";
|
|
2
2
|
//#region src/installMCP/installMCP.d.ts
|
|
3
|
-
type MCPTransport = 'stdio' | 'sse';
|
|
3
|
+
export type MCPTransport = 'stdio' | 'sse';
|
|
4
4
|
/**
|
|
5
5
|
* Installs the Intlayer MCP server configuration for a specific platform.
|
|
6
6
|
*/
|
|
7
|
-
declare const installMCP: (projectRoot: string, platform: Platform, transport: MCPTransport) => Promise<string>;
|
|
7
|
+
export declare const installMCP: (projectRoot: string, platform: Platform, transport: MCPTransport) => Promise<string>;
|
|
8
8
|
//#endregion
|
|
9
|
-
export { MCPTransport, installMCP };
|
|
10
9
|
//# sourceMappingURL=installMCP.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"installMCP.d.ts","names":[],"sources":["../../../src/installMCP/installMCP.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"installMCP.d.ts","names":[],"sources":["../../../src/installMCP/installMCP.ts"],"mappings":";;YAKY;;;;qBAsBC,aAAU,qBACF,UACT,UAAQ,WACP,iBACV"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Metadata for each available documentation skill.
|
|
4
4
|
*/
|
|
5
|
-
declare const SKILLS_METADATA: {
|
|
5
|
+
export declare const SKILLS_METADATA: {
|
|
6
6
|
readonly Config: 'Intlayer configuration documentation';
|
|
7
7
|
readonly Content: 'Reference for all Intlayer content node types (t, enu, etc.)';
|
|
8
8
|
readonly Usage: 'How to use Intlayer in your project';
|
|
@@ -18,10 +18,10 @@ declare const SKILLS_METADATA: {
|
|
|
18
18
|
readonly Solid: 'Integrates Intlayer internationalization with SolidJS components. Use when the user asks to "setup SolidJS i18n", use the "useIntlayer" hook in Solid, or manage locales in a SolidJS application.';
|
|
19
19
|
readonly Astro: 'Astro-specific usage and getIntlayer';
|
|
20
20
|
};
|
|
21
|
-
type Skill = keyof typeof SKILLS_METADATA;
|
|
22
|
-
declare const SKILLS: Skill[];
|
|
23
|
-
declare const getInitialSkills: (deps: Record<string, string>) => (keyof typeof SKILLS_METADATA)[];
|
|
24
|
-
interface PlatformMetadata {
|
|
21
|
+
export type Skill = keyof typeof SKILLS_METADATA;
|
|
22
|
+
export declare const SKILLS: Skill[];
|
|
23
|
+
export declare const getInitialSkills: (deps: Record<string, string>) => (keyof typeof SKILLS_METADATA)[];
|
|
24
|
+
export interface PlatformMetadata {
|
|
25
25
|
label: string;
|
|
26
26
|
dir: string;
|
|
27
27
|
check?: () => boolean;
|
|
@@ -29,14 +29,13 @@ interface PlatformMetadata {
|
|
|
29
29
|
/**
|
|
30
30
|
* Metadata and configuration for each supported platform.
|
|
31
31
|
*/
|
|
32
|
-
declare const PLATFORMS_METADATA: Record<string, PlatformMetadata>;
|
|
33
|
-
type Platform = keyof typeof PLATFORMS_METADATA;
|
|
34
|
-
declare const PLATFORMS: Platform[];
|
|
32
|
+
export declare const PLATFORMS_METADATA: Record<string, PlatformMetadata>;
|
|
33
|
+
export type Platform = keyof typeof PLATFORMS_METADATA;
|
|
34
|
+
export declare const PLATFORMS: Platform[];
|
|
35
35
|
/**
|
|
36
36
|
* Installs skills using the "Agent Skills" directory standard.
|
|
37
37
|
* Standard: <PROJECT_ROOT>/<CONFIG_DIR>/skills/<SKILL_NAME>/SKILL.md
|
|
38
38
|
*/
|
|
39
|
-
declare const installSkills: (projectRoot: string, platform: Platform, skills: Skill[]) => Promise<string>;
|
|
39
|
+
export declare const installSkills: (projectRoot: string, platform: Platform, skills: Skill[]) => Promise<string>;
|
|
40
40
|
//#endregion
|
|
41
|
-
export { PLATFORMS, PLATFORMS_METADATA, Platform, PlatformMetadata, SKILLS, SKILLS_METADATA, Skill, getInitialSkills, installSkills };
|
|
42
41
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/installSkills/index.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/installSkills/index.ts"],"mappings":";;;;qBASa;WACX;WACA;WACA;WACA;WACA;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WAEA;;YAGU,qBAAqB;qBAEpB,QAAyC;qBAEzC,mBAAgB,MACrB,yCACS;iBAoBA;EACf;EACA;EACA;;;;;qBAMW,oBAAoB,eAAe;YA6JpC,wBAAwB;qBAEvB,WAA+C;;;;;qBA8G/C,gBAAa,qBACL,UACT,UAAQ,QACV,YACP"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IntlayerConfig } from "@intlayer/types/config";
|
|
2
|
+
import { Dictionary } from "@intlayer/types/dictionary";
|
|
3
|
+
import "@intlayer/types/allLocales";
|
|
4
|
+
import { LocalesValues as LocalesValues$1 } from "@intlayer/types/module_augmentation";
|
|
5
|
+
import "@intlayer/types/locales";
|
|
6
|
+
import "@intlayer/config/built";
|
|
7
|
+
import "@intlayer/core/file";
|
|
8
|
+
import "@intlayer/core/formatters";
|
|
9
|
+
import "@intlayer/core/interpreter";
|
|
10
|
+
import "@intlayer/core/localization";
|
|
11
|
+
import "@intlayer/core/markdown";
|
|
12
|
+
import "@intlayer/core/transpiler";
|
|
13
|
+
import "@intlayer/core/utils";
|
|
14
|
+
export type { LocalesValues$1 as LocalesValues };
|
|
@@ -5,11 +5,10 @@ import { IntlayerConfig } from "@intlayer/types/config";
|
|
|
5
5
|
* @param configuration - The configuration object
|
|
6
6
|
* @returns An array of dictionary paths
|
|
7
7
|
*/
|
|
8
|
-
declare const listDictionaries: (configuration: IntlayerConfig) => Promise<string[]>;
|
|
9
|
-
declare const listDictionariesWithStats: (configuration: IntlayerConfig) => Promise<{
|
|
8
|
+
export declare const listDictionaries: (configuration: IntlayerConfig) => Promise<string[]>;
|
|
9
|
+
export declare const listDictionariesWithStats: (configuration: IntlayerConfig) => Promise<{
|
|
10
10
|
path: string;
|
|
11
11
|
stats: import("node:fs").Stats;
|
|
12
12
|
}[]>;
|
|
13
13
|
//#endregion
|
|
14
|
-
export { listDictionaries, listDictionariesWithStats };
|
|
15
14
|
//# sourceMappingURL=listDictionariesPath.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listDictionariesPath.d.ts","names":[],"sources":["../../src/listDictionariesPath.ts"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"listDictionariesPath.d.ts","names":[],"sources":["../../src/listDictionariesPath.ts"],"mappings":";;;;;;;qBAUa,mBAAgB,eACZ,mBACd;qBAgDU,4BAAyB,eACrB,mBAAc"}
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
//#region src/listGitFiles.d.ts
|
|
2
|
-
type DiffMode = 'gitDiff' | 'uncommitted' | 'unpushed' | 'untracked';
|
|
3
|
-
type ListGitFilesOptions = {
|
|
2
|
+
export type DiffMode = 'gitDiff' | 'uncommitted' | 'unpushed' | 'untracked';
|
|
3
|
+
export type ListGitFilesOptions = {
|
|
4
4
|
mode: DiffMode[];
|
|
5
5
|
baseRef?: string;
|
|
6
6
|
currentRef?: string;
|
|
7
7
|
absolute?: boolean;
|
|
8
8
|
};
|
|
9
|
-
declare const listGitFiles: ({ mode, baseRef, currentRef, absolute }: ListGitFilesOptions) => Promise<string[]>;
|
|
10
|
-
type ListGitLinesOptions = {
|
|
9
|
+
export declare const listGitFiles: ({ mode, baseRef, currentRef, absolute }: ListGitFilesOptions) => Promise<string[]>;
|
|
10
|
+
export type ListGitLinesOptions = {
|
|
11
11
|
mode: DiffMode[];
|
|
12
12
|
baseRef?: string;
|
|
13
13
|
currentRef?: string;
|
|
14
14
|
};
|
|
15
|
-
declare const listGitLines: (filePath: string, { mode, baseRef, currentRef }: ListGitLinesOptions) => Promise<number[]>;
|
|
15
|
+
export declare const listGitLines: (filePath: string, { mode, baseRef, currentRef }: ListGitLinesOptions) => Promise<number[]>;
|
|
16
16
|
//#endregion
|
|
17
|
-
export { DiffMode, ListGitFilesOptions, ListGitLinesOptions, listGitFiles, listGitLines };
|
|
18
17
|
//# sourceMappingURL=listGitFiles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listGitFiles.d.ts","names":[],"sources":["../../src/listGitFiles.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"listGitFiles.d.ts","names":[],"sources":["../../src/listGitFiles.ts"],"mappings":";YAMY;YAgBA;EACV,MAAM;EACN;EACA;EACA;;qBAGW,iBAAY,MAAA,SAAA,YAAA,YAKtB,wBAAmB;YAiEV;EACV,MAAM;EACN;EACA;;qBAGW,eAAY,oBACP,MAAA,SAAA,cAKb,wBACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/listProjects.d.ts
|
|
2
|
-
type ListProjectsOptions = {
|
|
2
|
+
export type ListProjectsOptions = {
|
|
3
3
|
/**
|
|
4
4
|
* Base directory to search from
|
|
5
5
|
* @default process.cwd()
|
|
@@ -15,17 +15,16 @@ type ListProjectsOptions = {
|
|
|
15
15
|
* Returns the git repository root directory, or `null` when the given
|
|
16
16
|
* directory is not inside a git repository.
|
|
17
17
|
*/
|
|
18
|
-
declare const getGitRootDir: (cwd?: string) => Promise<string | null>;
|
|
18
|
+
export declare const getGitRootDir: (cwd?: string) => Promise<string | null>;
|
|
19
19
|
/**
|
|
20
20
|
* List all Intlayer projects by searching for configuration files
|
|
21
21
|
*
|
|
22
22
|
* @param options - Options for listing projects
|
|
23
23
|
* @returns Array of absolute paths to project directories containing Intlayer config
|
|
24
24
|
*/
|
|
25
|
-
declare const listProjects: (options?: ListProjectsOptions) => Promise<{
|
|
25
|
+
export declare const listProjects: (options?: ListProjectsOptions) => Promise<{
|
|
26
26
|
searchDir: string;
|
|
27
27
|
projectsPath: string[];
|
|
28
28
|
}>;
|
|
29
29
|
//#endregion
|
|
30
|
-
export { ListProjectsOptions, getGitRootDir, listProjects };
|
|
31
30
|
//# sourceMappingURL=listProjects.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listProjects.d.ts","names":[],"sources":["../../src/listProjects.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"listProjects.d.ts","names":[],"sources":["../../src/listProjects.ts"],"mappings":";YAKY;;;;;EAKV;;;;;EAKA;;;;;;qBAOW,gBAAa,iBAAyB;;;;;;;qBAgBtC,eAAY,UACb,wBACT;EAAU;EAAmB"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
2
2
|
//#region src/loadDictionaries/getIntlayerBundle.d.ts
|
|
3
|
-
declare const getIntlayerBundle: (configuration: IntlayerConfig) => Promise<string>;
|
|
3
|
+
export declare const getIntlayerBundle: (configuration: IntlayerConfig) => Promise<string>;
|
|
4
4
|
//#endregion
|
|
5
|
-
export { getIntlayerBundle };
|
|
6
5
|
//# sourceMappingURL=getIntlayerBundle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getIntlayerBundle.d.ts","names":[],"sources":["../../../src/loadDictionaries/getIntlayerBundle.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"getIntlayerBundle.d.ts","names":[],"sources":["../../../src/loadDictionaries/getIntlayerBundle.ts"],"mappings":";;qBA4Da,oBAAiB,eAAyB,mBAAc"}
|
|
@@ -2,13 +2,12 @@ import { DictionariesStatus } from "./loadDictionaries.js";
|
|
|
2
2
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
3
3
|
import { Dictionary } from "@intlayer/types/dictionary";
|
|
4
4
|
//#region src/loadDictionaries/loadContentDeclaration.d.ts
|
|
5
|
-
declare const formatLocalDictionaries: (dictionariesRecord: Record<string, Dictionary>, configuration: IntlayerConfig) => Dictionary[];
|
|
6
|
-
declare const ensureIntlayerBundle: (configuration: IntlayerConfig) => Promise<string>;
|
|
5
|
+
export declare const formatLocalDictionaries: (dictionariesRecord: Record<string, Dictionary>, configuration: IntlayerConfig) => Dictionary[];
|
|
6
|
+
export declare const ensureIntlayerBundle: (configuration: IntlayerConfig) => Promise<string>;
|
|
7
7
|
type LoadContentDeclarationOptions = {
|
|
8
8
|
logError?: boolean;
|
|
9
9
|
};
|
|
10
|
-
declare const loadContentDeclaration: (path: string, configuration: IntlayerConfig, bundleFilePath?: string, options?: LoadContentDeclarationOptions) => Promise<Dictionary | undefined>;
|
|
11
|
-
declare const loadContentDeclarations: (contentDeclarationFilePath: string[], configuration: IntlayerConfig, onStatusUpdate?: (status: DictionariesStatus[]) => void, options?: LoadContentDeclarationOptions) => Promise<Dictionary[]>;
|
|
10
|
+
export declare const loadContentDeclaration: (path: string, configuration: IntlayerConfig, bundleFilePath?: string, options?: LoadContentDeclarationOptions) => Promise<Dictionary | undefined>;
|
|
11
|
+
export declare const loadContentDeclarations: (contentDeclarationFilePath: string[], configuration: IntlayerConfig, onStatusUpdate?: (status: DictionariesStatus[]) => void, options?: LoadContentDeclarationOptions) => Promise<Dictionary[]>;
|
|
12
12
|
//#endregion
|
|
13
|
-
export { ensureIntlayerBundle, formatLocalDictionaries, loadContentDeclaration, loadContentDeclarations };
|
|
14
13
|
//# sourceMappingURL=loadContentDeclaration.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loadContentDeclaration.d.ts","names":[],"sources":["../../../src/loadDictionaries/loadContentDeclaration.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"loadContentDeclaration.d.ts","names":[],"sources":["../../../src/loadDictionaries/loadContentDeclaration.ts"],"mappings":";;;;qBAmBa,0BAAuB,oBACd,eAAe,aAAW,eAC/B,mBACd;qBAQU,uBAAoB,eAChB,mBACd;KAmBE;EACH;;qBA+CW,yBAAsB,cACrB,eACG,gBAAc,yBACN,UACb,kCACT,QAAQ;qBAuDE,0BAAuB,sCACE,eACrB,gBAAc,kBACX,QAAQ,+BAA6B,UAC7C,kCACT,QAAQ"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
2
2
|
import { Dictionary } from "@intlayer/types/dictionary";
|
|
3
3
|
//#region src/loadDictionaries/loadDictionaries.d.ts
|
|
4
|
-
type DictionariesStatus = {
|
|
4
|
+
export type DictionariesStatus = {
|
|
5
5
|
dictionaryKey: string;
|
|
6
6
|
type: 'local' | 'remote';
|
|
7
7
|
status: 'pending' | 'fetching' | 'fetched' | 'error' | 'imported' | 'found' | 'building' | 'built';
|
|
8
8
|
error?: string;
|
|
9
9
|
};
|
|
10
|
-
declare const loadDictionaries: (contentDeclarationsPaths: string[] | string, configuration: IntlayerConfig) => Promise<{
|
|
10
|
+
export declare const loadDictionaries: (contentDeclarationsPaths: string[] | string, configuration: IntlayerConfig) => Promise<{
|
|
11
11
|
localDictionaries: Dictionary[];
|
|
12
12
|
remoteDictionaries: Dictionary[];
|
|
13
13
|
pluginDictionaries: Dictionary[];
|
|
@@ -18,5 +18,4 @@ declare const loadDictionaries: (contentDeclarationsPaths: string[] | string, co
|
|
|
18
18
|
};
|
|
19
19
|
}>;
|
|
20
20
|
//#endregion
|
|
21
|
-
export { DictionariesStatus, loadDictionaries };
|
|
22
21
|
//# sourceMappingURL=loadDictionaries.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loadDictionaries.d.ts","names":[],"sources":["../../../src/loadDictionaries/loadDictionaries.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"loadDictionaries.d.ts","names":[],"sources":["../../../src/loadDictionaries/loadDictionaries.ts"],"mappings":";;;YAeY;EACV;EACA;EACA;EASA;;qBAiIW,mBAAgB,6CACgB,eAC5B,mBACd;EACD,mBAAmB;EACnB,oBAAoB;EACpB,oBAAoB;EACpB;IACE;IACA;IACA"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
2
2
|
import { Dictionary } from "@intlayer/types/dictionary";
|
|
3
3
|
//#region src/loadDictionaries/loadLocalDictionaries.d.ts
|
|
4
|
-
declare const loadLocalDictionaries: (contentDeclarationsPaths: string[] | string, configuration: IntlayerConfig) => Promise<Dictionary[]>;
|
|
4
|
+
export declare const loadLocalDictionaries: (contentDeclarationsPaths: string[] | string, configuration: IntlayerConfig) => Promise<Dictionary[]>;
|
|
5
5
|
//#endregion
|
|
6
|
-
export { loadLocalDictionaries };
|
|
7
6
|
//# sourceMappingURL=loadLocalDictionaries.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loadLocalDictionaries.d.ts","names":[],"sources":["../../../src/loadDictionaries/loadLocalDictionaries.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"loadLocalDictionaries.d.ts","names":[],"sources":["../../../src/loadDictionaries/loadLocalDictionaries.ts"],"mappings":";;;qBAMa,wBAAqB,6CACW,eAC5B,mBACd,QAAQ"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Dictionary } from "@intlayer/types/dictionary";
|
|
2
2
|
//#region src/loadDictionaries/loadMarkdownContentDeclaration.d.ts
|
|
3
|
-
declare const loadMarkdownContentDeclaration: (path: string) => Promise<Dictionary | undefined>;
|
|
3
|
+
export declare const loadMarkdownContentDeclaration: (path: string) => Promise<Dictionary | undefined>;
|
|
4
4
|
//#endregion
|
|
5
|
-
export { loadMarkdownContentDeclaration };
|
|
6
5
|
//# sourceMappingURL=loadMarkdownContentDeclaration.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loadMarkdownContentDeclaration.d.ts","names":[],"sources":["../../../src/loadDictionaries/loadMarkdownContentDeclaration.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"loadMarkdownContentDeclaration.d.ts","names":[],"sources":["../../../src/loadDictionaries/loadMarkdownContentDeclaration.ts"],"mappings":";;qBAoBa,iCAA8B,iBAExC,QAAQ"}
|
|
@@ -2,12 +2,11 @@ import { DictionariesStatus } from "./loadDictionaries.js";
|
|
|
2
2
|
import { Dictionary } from "@intlayer/types/dictionary";
|
|
3
3
|
import { DictionaryAPI } from "@intlayer/backend";
|
|
4
4
|
//#region src/loadDictionaries/loadRemoteDictionaries.d.ts
|
|
5
|
-
declare const formatDistantDictionaries: (dictionaries: (DictionaryAPI | Dictionary)[]) => Dictionary[];
|
|
6
|
-
declare const loadRemoteDictionaries: (configuration?: import("@intlayer/types").IntlayerConfig, onStatusUpdate?: (status: DictionariesStatus[]) => void, options?: {
|
|
5
|
+
export declare const formatDistantDictionaries: (dictionaries: (DictionaryAPI | Dictionary)[]) => Dictionary[];
|
|
6
|
+
export declare const loadRemoteDictionaries: (configuration?: import("@intlayer/types").IntlayerConfig, onStatusUpdate?: (status: DictionariesStatus[]) => void, options?: {
|
|
7
7
|
onStartRemoteCheck?: () => void;
|
|
8
8
|
onStopRemoteCheck?: () => void;
|
|
9
9
|
onError?: (error: Error) => void;
|
|
10
10
|
}) => Promise<Dictionary[]>;
|
|
11
11
|
//#endregion
|
|
12
|
-
export { formatDistantDictionaries, loadRemoteDictionaries };
|
|
13
12
|
//# sourceMappingURL=loadRemoteDictionaries.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loadRemoteDictionaries.d.ts","names":[],"sources":["../../../src/loadDictionaries/loadRemoteDictionaries.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"loadRemoteDictionaries.d.ts","names":[],"sources":["../../../src/loadDictionaries/loadRemoteDictionaries.ts"],"mappings":";;;;qBAea,4BAAyB,eACrB,gBAAgB,kBAC9B;qBAOU,yBAAsB,0CAAA,gBAAA,kBAEf,QAAQ,+BAA6B;EAErD;EACA;EACA,WAAW,OAAO;MAEnB,QAAQ"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Dictionary } from "@intlayer/types/dictionary";
|
|
2
2
|
//#region src/loadDictionaries/loadYamlContentDeclaration.d.ts
|
|
3
|
-
declare const loadYamlContentDeclaration: (path: string) => Promise<Dictionary | undefined>;
|
|
3
|
+
export declare const loadYamlContentDeclaration: (path: string) => Promise<Dictionary | undefined>;
|
|
4
4
|
//#endregion
|
|
5
|
-
export { loadYamlContentDeclaration };
|
|
6
5
|
//# sourceMappingURL=loadYamlContentDeclaration.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loadYamlContentDeclaration.d.ts","names":[],"sources":["../../../src/loadDictionaries/loadYamlContentDeclaration.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"loadYamlContentDeclaration.d.ts","names":[],"sources":["../../../src/loadDictionaries/loadYamlContentDeclaration.ts"],"mappings":";;qBAIa,6BAA0B,iBAEpC,QAAQ"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DictionariesStatus } from "./loadDictionaries.js";
|
|
2
2
|
//#region src/loadDictionaries/log.d.ts
|
|
3
|
-
declare class DictionariesLogger {
|
|
3
|
+
export declare class DictionariesLogger {
|
|
4
4
|
private statuses;
|
|
5
5
|
private spinnerTimer;
|
|
6
6
|
private spinnerIndex;
|
|
@@ -46,5 +46,4 @@ declare class DictionariesLogger {
|
|
|
46
46
|
private computeProgress;
|
|
47
47
|
}
|
|
48
48
|
//#endregion
|
|
49
|
-
export { DictionariesLogger };
|
|
50
49
|
//# sourceMappingURL=log.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log.d.ts","names":[],"sources":["../../../src/loadDictionaries/log.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"log.d.ts","names":[],"sources":["../../../src/loadDictionaries/log.ts"],"mappings":";;qBAYa;UACH;UACA;UACA;UACA;mBACS;UACT;mBACS;UACT;UACA;UACA;UACA;UACA;UACA;UACA;UACA;EAER;EAIA,gBAAgB;EAIhB;EAOA;EAIA,OAAO,aAAa;EAyBpB;UAOQ;UAQA;EAMD,iBAAc,QAAY;;;;;;;;EAejC,eAAe;EAOf,eAAe;EASf,cAAc;;;;;;;EAYd,eAAe,QAAQ,OAAO;UAStB;UA0GA"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
2
2
|
//#region src/loadDictionaries/logTypeScriptErrors.d.ts
|
|
3
|
-
declare const logTypeScriptErrors: (filePaths: string[], configuration: IntlayerConfig) => Promise<void>;
|
|
3
|
+
export declare const logTypeScriptErrors: (filePaths: string[], configuration: IntlayerConfig) => Promise<void>;
|
|
4
4
|
//#endregion
|
|
5
|
-
export { logTypeScriptErrors };
|
|
6
5
|
//# sourceMappingURL=logTypeScriptErrors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logTypeScriptErrors.d.ts","names":[],"sources":["../../../src/loadDictionaries/logTypeScriptErrors.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"logTypeScriptErrors.d.ts","names":[],"sources":["../../../src/loadDictionaries/logTypeScriptErrors.ts"],"mappings":";;qBAIa,sBAAmB,qBACX,eACJ,mBAAc"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { GetConfigurationOptions } from "@intlayer/config/node";
|
|
2
2
|
//#region src/logConfigDetails.d.ts
|
|
3
|
-
declare const logConfigDetails: (options?: GetConfigurationOptions) => void;
|
|
3
|
+
export declare const logConfigDetails: (options?: GetConfigurationOptions) => void;
|
|
4
4
|
//#endregion
|
|
5
|
-
export { logConfigDetails };
|
|
6
5
|
//# sourceMappingURL=logConfigDetails.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logConfigDetails.d.ts","names":[],"sources":["../../src/logConfigDetails.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"logConfigDetails.d.ts","names":[],"sources":["../../src/logConfigDetails.ts"],"mappings":";;qBAgBa,mBAAgB,UAAc"}
|
|
@@ -8,7 +8,6 @@ type PrepareIntlayerOptions = {
|
|
|
8
8
|
cacheTimeoutMs?: number;
|
|
9
9
|
onIsCached?: () => void | Promise<void>;
|
|
10
10
|
};
|
|
11
|
-
declare const prepareIntlayer: (configuration: IntlayerConfig, options?: PrepareIntlayerOptions) => Promise<void>;
|
|
11
|
+
export declare const prepareIntlayer: (configuration: IntlayerConfig, options?: PrepareIntlayerOptions) => Promise<void>;
|
|
12
12
|
//#endregion
|
|
13
|
-
export { prepareIntlayer };
|
|
14
13
|
//# sourceMappingURL=prepareIntlayer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prepareIntlayer.d.ts","names":[],"sources":["../../src/prepareIntlayer.ts"],"mappings":";;KAoBK;EACH;EACA;EACA;EACA;EACA;EACA,0BAA0B;;
|
|
1
|
+
{"version":3,"file":"prepareIntlayer.d.ts","names":[],"sources":["../../src/prepareIntlayer.ts"],"mappings":";;KAoBK;EACH;EACA;EACA;EACA;EACA;EACA,0BAA0B;;qBAUf,kBAAe,eACX,gBAAc,UACnB,2BAAsB"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Dictionary } from "@intlayer/types/dictionary";
|
|
2
2
|
//#region src/reduceDictionaryContent/applyMask.d.ts
|
|
3
|
-
declare const applyMask: (full: Dictionary, mask: any) => Dictionary;
|
|
3
|
+
export declare const applyMask: (full: Dictionary, mask: any) => Dictionary;
|
|
4
4
|
//#endregion
|
|
5
|
-
export { applyMask };
|
|
6
5
|
//# sourceMappingURL=applyMask.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applyMask.d.ts","names":[],"sources":["../../../src/reduceDictionaryContent/applyMask.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"applyMask.d.ts","names":[],"sources":["../../../src/reduceDictionaryContent/applyMask.ts"],"mappings":";;qBAEa,YAAS,MAAU,YAAU,cAAc"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Dictionary } from "@intlayer/types/dictionary";
|
|
2
2
|
//#region src/reduceDictionaryContent/reduceDictionaryContent.d.ts
|
|
3
|
-
declare const reduceDictionaryContent: (fullDictionary: Dictionary, partialDictionary: Dictionary) => Dictionary;
|
|
3
|
+
export declare const reduceDictionaryContent: (fullDictionary: Dictionary, partialDictionary: Dictionary) => Dictionary;
|
|
4
4
|
//#endregion
|
|
5
|
-
export { reduceDictionaryContent };
|
|
6
5
|
//# sourceMappingURL=reduceDictionaryContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reduceDictionaryContent.d.ts","names":[],"sources":["../../../src/reduceDictionaryContent/reduceDictionaryContent.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"reduceDictionaryContent.d.ts","names":[],"sources":["../../../src/reduceDictionaryContent/reduceDictionaryContent.ts"],"mappings":";;qBAIa,0BAAuB,gBAClB,YAAU,mBACP,eAAU"}
|
|
@@ -9,7 +9,6 @@ import { BundleChunkInput, BundleContentAnalysis } from "./types.js";
|
|
|
9
9
|
* @param totalPageSize - The total transferred bytes measured for the page.
|
|
10
10
|
* @returns The aggregated {@link BundleContentAnalysis}.
|
|
11
11
|
*/
|
|
12
|
-
declare const analyzeBundleContent: (chunks: BundleChunkInput[], htmlContent: string, currentLocale: string, totalPageSize: number) => BundleContentAnalysis;
|
|
12
|
+
export declare const analyzeBundleContent: (chunks: BundleChunkInput[], htmlContent: string, currentLocale: string, totalPageSize: number) => BundleContentAnalysis;
|
|
13
13
|
//#endregion
|
|
14
|
-
export { analyzeBundleContent };
|
|
15
14
|
//# sourceMappingURL=analyzeBundleContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analyzeBundleContent.d.ts","names":[],"sources":["../../../src/scan/analyzeBundleContent.ts"],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"analyzeBundleContent.d.ts","names":[],"sources":["../../../src/scan/analyzeBundleContent.ts"],"mappings":";;;;;;;;;;;qBA6Ka,uBAAoB,QACvB,oBAAkB,qBACP,uBACE,0BAEpB"}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* of any server-only dependency (no Fastify, no Cheerio, no logger coupling).
|
|
9
9
|
*/
|
|
10
10
|
/** Accumulated score across all checks that ran. */
|
|
11
|
-
type Score = {
|
|
11
|
+
export type Score = {
|
|
12
12
|
/** Sum of points obtained (success = full, warning = half, error = none). */
|
|
13
13
|
score: number;
|
|
14
14
|
/** Maximum achievable points for the checks that ran. */
|
|
@@ -21,12 +21,12 @@ type Score = {
|
|
|
21
21
|
* URL using a backslash separator (e.g. `url_htmlLang\https://example.com`), so
|
|
22
22
|
* only the part before the first backslash is used to look up the weight.
|
|
23
23
|
*/
|
|
24
|
-
type ScorableEvent = {
|
|
24
|
+
export type ScorableEvent = {
|
|
25
25
|
type?: string;
|
|
26
26
|
status?: string;
|
|
27
27
|
};
|
|
28
28
|
/** Weight (in points) of every scorable check. */
|
|
29
|
-
declare const scoreRecord: {
|
|
29
|
+
export declare const scoreRecord: {
|
|
30
30
|
readonly robots_robotsPresent: 10;
|
|
31
31
|
readonly robots_noLocalizedUrlsForgotten: 8;
|
|
32
32
|
readonly sitemap_sitemapPresent: 10;
|
|
@@ -44,7 +44,7 @@ declare const scoreRecord: {
|
|
|
44
44
|
readonly url_unusedBundleContent: 8;
|
|
45
45
|
};
|
|
46
46
|
/** Identifier of a scorable check (without the URL suffix). */
|
|
47
|
-
type ScoreCheckType = keyof typeof scoreRecord;
|
|
47
|
+
export type ScoreCheckType = keyof typeof scoreRecord;
|
|
48
48
|
/**
|
|
49
49
|
* Apply a single event to the running score, returning a new {@link Score}.
|
|
50
50
|
* Unknown check types are ignored so the function is safe to call on every
|
|
@@ -54,14 +54,13 @@ type ScoreCheckType = keyof typeof scoreRecord;
|
|
|
54
54
|
* @param event - The event to fold into the score.
|
|
55
55
|
* @returns A new score with the event applied.
|
|
56
56
|
*/
|
|
57
|
-
declare const mutateScore: (score: Score, event: ScorableEvent) => Score;
|
|
57
|
+
export declare const mutateScore: (score: Score, event: ScorableEvent) => Score;
|
|
58
58
|
/**
|
|
59
59
|
* Convert a raw {@link Score} into a 0–100 percentage.
|
|
60
60
|
*
|
|
61
61
|
* @param score - The accumulated score.
|
|
62
62
|
* @returns The rounded percentage, or 0 when no check ran.
|
|
63
63
|
*/
|
|
64
|
-
declare const toScorePercent: (score: Score) => number;
|
|
64
|
+
export declare const toScorePercent: (score: Score) => number;
|
|
65
65
|
//#endregion
|
|
66
|
-
export { ScorableEvent, Score, ScoreCheckType, mutateScore, scoreRecord, toScorePercent };
|
|
67
66
|
//# sourceMappingURL=calculateScore.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calculateScore.d.ts","names":[],"sources":["../../../src/scan/calculateScore.ts"],"mappings":";;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"calculateScore.d.ts","names":[],"sources":["../../../src/scan/calculateScore.ts"],"mappings":";;;;;;;;;;YAUY;;EAEV;;EAEA;;;;;;;;;YAUU;EACV;EACA;;;qBAgBW;WACX;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;;YAIU,8BAA8B;;;;;;;;;;qBAW7B,cAAW,OAAW,OAAK,OAAS,kBAAgB;;;;;;;qBAyBpD,iBAAc,OAAW"}
|
|
@@ -2,36 +2,35 @@ import { BundleChunkInput, BundleContentAnalysis, ScanEvent } from "./types.js";
|
|
|
2
2
|
import { Anchor } from "./parseHtml.js";
|
|
3
3
|
//#region src/scan/checks.d.ts
|
|
4
4
|
/** Format a byte count as a human-readable size. */
|
|
5
|
-
declare const formatSize: (bytes: number) => string;
|
|
5
|
+
export declare const formatSize: (bytes: number) => string;
|
|
6
6
|
/**
|
|
7
7
|
* Check the `<html>` element attributes (`lang`, `dir`) and the resulting
|
|
8
8
|
* current-locale signal. Returns the detected language tag.
|
|
9
9
|
*/
|
|
10
|
-
declare const checkHtmlAttributes: (html: string, targetUrl: string, events: ScanEvent[]) => {
|
|
10
|
+
export declare const checkHtmlAttributes: (html: string, targetUrl: string, events: ScanEvent[]) => {
|
|
11
11
|
langTag: string | undefined;
|
|
12
12
|
};
|
|
13
13
|
/** Check the presence of a canonical link. */
|
|
14
|
-
declare const checkCanonical: (html: string, targetUrl: string, events: ScanEvent[]) => void;
|
|
14
|
+
export declare const checkCanonical: (html: string, targetUrl: string, events: ScanEvent[]) => void;
|
|
15
15
|
/**
|
|
16
16
|
* Check the page's hreflang structure and collect discovered locales into
|
|
17
17
|
* `localesSet`.
|
|
18
18
|
*/
|
|
19
|
-
declare const checkLinguisticStructure: (html: string, targetUrl: string, localesSet: Set<string>, events: ScanEvent[]) => void;
|
|
19
|
+
export declare const checkLinguisticStructure: (html: string, targetUrl: string, localesSet: Set<string>, events: ScanEvent[]) => void;
|
|
20
20
|
/**
|
|
21
21
|
* Check whether internal links carry a locale segment, mirroring the hosted
|
|
22
22
|
* audit's URL-structure analysis but operating on parsed anchors instead of a
|
|
23
23
|
* live DOM.
|
|
24
24
|
*/
|
|
25
|
-
declare const checkUrlStructure: (anchors: Anchor[], origin: string, targetUrl: string, events: ScanEvent[]) => void;
|
|
25
|
+
export declare const checkUrlStructure: (anchors: Anchor[], origin: string, targetUrl: string, events: ScanEvent[]) => void;
|
|
26
26
|
/**
|
|
27
27
|
* Analyze the JavaScript bundles for unused locale content and emit the
|
|
28
28
|
* corresponding event. Returns the analysis so callers can report on it.
|
|
29
29
|
*/
|
|
30
|
-
declare const checkBundleContent: (chunks: BundleChunkInput[], html: string, currentLocale: string | undefined, targetUrl: string, totalPageSize: number, events: ScanEvent[]) => BundleContentAnalysis | undefined;
|
|
30
|
+
export declare const checkBundleContent: (chunks: BundleChunkInput[], html: string, currentLocale: string | undefined, targetUrl: string, totalPageSize: number, events: ScanEvent[]) => BundleContentAnalysis | undefined;
|
|
31
31
|
/** Fetch and check `robots.txt`, emitting robots-related events. */
|
|
32
|
-
declare const checkRobots: (origin: string, discoveredLocales: Set<string>, userAgent: string, events: ScanEvent[]) => Promise<void>;
|
|
32
|
+
export declare const checkRobots: (origin: string, discoveredLocales: Set<string>, userAgent: string, events: ScanEvent[]) => Promise<void>;
|
|
33
33
|
/** Fetch and check `sitemap.xml`, emitting sitemap-related events. */
|
|
34
|
-
declare const checkSitemap: (origin: string, discoveredLocales: Set<string>, userAgent: string, events: ScanEvent[]) => Promise<void>;
|
|
34
|
+
export declare const checkSitemap: (origin: string, discoveredLocales: Set<string>, userAgent: string, events: ScanEvent[]) => Promise<void>;
|
|
35
35
|
//#endregion
|
|
36
|
-
export { checkBundleContent, checkCanonical, checkHtmlAttributes, checkLinguisticStructure, checkRobots, checkSitemap, checkUrlStructure, formatSize };
|
|
37
36
|
//# sourceMappingURL=checks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checks.d.ts","names":[],"sources":["../../../src/scan/checks.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"checks.d.ts","names":[],"sources":["../../../src/scan/checks.ts"],"mappings":";;;;qBAgBa,aAAU;;;;;qBAUV,sBAAmB,cAClB,mBACK,QACT;EACL;;;qBAmCQ,iBAAc,cACb,mBACK,QACT;;;;;qBAcG,2BAAwB,cACvB,mBACK,YACL,aAAW,QACf;;;;;;qBAwCG,oBAAiB,SACnB,UAAQ,gBACH,mBACG,QACT;;;;;qBAwEG,qBAAkB,QACrB,oBAAkB,cACd,mCACqB,mBAChB,uBACI,QACb,gBACP;;qBA0CU,cAAW,gBACR,mBACK,aAAW,mBACb,QACT,gBACP;;qBA0DU,eAAY,gBACT,mBACK,aAAW,mBACb,QACT,gBACP"}
|