@intlayer/cli 9.6.0 → 9.7.1
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/IntlayerEventListener.cjs +1 -2
- package/dist/cjs/IntlayerEventListener.cjs.map +1 -1
- package/dist/cjs/_virtual/_rolldown/runtime.cjs +1 -2
- package/dist/cjs/_virtual/_utils_asset.cjs +2 -3
- package/dist/cjs/auth/login.cjs +19 -9
- package/dist/cjs/auth/login.cjs.map +1 -1
- package/dist/cjs/auth/sessionToken.cjs +1 -2
- package/dist/cjs/auth/setupRepository.cjs +94 -0
- package/dist/cjs/auth/setupRepository.cjs.map +1 -0
- package/dist/cjs/build.cjs +2 -3
- package/dist/cjs/bundle.cjs +1 -2
- package/dist/cjs/ci.cjs +2 -3
- package/dist/cjs/cli.cjs +17 -12
- package/dist/cjs/cli.cjs.map +1 -1
- package/dist/cjs/config.cjs +2 -3
- package/dist/cjs/editor.cjs +62 -34
- package/dist/cjs/editor.cjs.map +1 -1
- package/dist/cjs/extract.cjs +7 -8
- package/dist/cjs/fill/deepMergeContent.cjs +1 -2
- package/dist/cjs/fill/extractTranslatableContent.cjs +1 -2
- package/dist/cjs/fill/fill.cjs +9 -10
- package/dist/cjs/fill/fill.cjs.map +1 -1
- package/dist/cjs/fill/formatAutoFilledFilePath.cjs +2 -3
- package/dist/cjs/fill/formatFillData.cjs +2 -3
- package/dist/cjs/fill/getAvailableLocalesInDictionary.cjs +1 -2
- package/dist/cjs/fill/getFilterMissingContentPerLocale.cjs +1 -2
- package/dist/cjs/fill/index.cjs +2 -2
- package/dist/cjs/fill/listTranslationsTasks.cjs +4 -5
- package/dist/cjs/fill/translateDictionary.cjs +6 -7
- package/dist/cjs/fill/translateDictionary.cjs.map +1 -1
- package/dist/cjs/fill/writeFill.cjs +4 -5
- package/dist/cjs/getTargetDictionary.cjs +2 -3
- package/dist/cjs/index.cjs +37 -23
- package/dist/cjs/init.cjs +175 -22
- package/dist/cjs/init.cjs.map +1 -1
- package/dist/cjs/initChromeExtension.cjs +5 -6
- package/dist/cjs/initInfra.cjs +3 -4
- package/dist/cjs/initMCP.cjs +6 -7
- package/dist/cjs/initSkills.cjs +6 -7
- package/dist/cjs/listContentDeclaration.cjs +3 -4
- package/dist/cjs/listProjects.cjs +1 -2
- package/dist/cjs/liveSync.cjs +4 -5
- package/dist/cjs/liveSync.cjs.map +1 -1
- package/dist/cjs/loadPrompts.cjs +1 -2
- package/dist/cjs/pull.cjs +9 -11
- package/dist/cjs/pull.cjs.map +1 -1
- package/dist/cjs/push/pullLog.cjs +2 -3
- package/dist/cjs/push/push.cjs +10 -10
- package/dist/cjs/push/push.cjs.map +1 -1
- package/dist/cjs/pushConfig.cjs +4 -5
- package/dist/cjs/pushLog.cjs +2 -3
- package/dist/cjs/reviewDoc/reviewDoc.cjs +15 -15
- package/dist/cjs/reviewDoc/reviewDoc.cjs.map +1 -1
- package/dist/cjs/reviewDoc/reviewDocBlockAware.cjs +8 -9
- package/dist/cjs/reviewDoc/reviewDocBlockAware.cjs.map +1 -1
- package/dist/cjs/reviewDoc/reviewDocLog.cjs +2 -3
- package/dist/cjs/reviewDoc/reviewDocProgress.cjs +2 -3
- package/dist/cjs/reviewDoc/reviewDocSynthesis.cjs +2 -3
- package/dist/cjs/scan.cjs +2 -3
- package/dist/cjs/searchDoc.cjs +2 -3
- package/dist/cjs/test/index.cjs +2 -2
- package/dist/cjs/test/listMissingTranslations.cjs +2 -3
- package/dist/cjs/test/test.cjs +3 -4
- package/dist/cjs/translateDoc/index.cjs +3 -3
- package/dist/cjs/translateDoc/translateDoc.cjs +12 -13
- package/dist/cjs/translateDoc/translateDoc.cjs.map +1 -1
- package/dist/cjs/translateDoc/translateFile.cjs +8 -9
- package/dist/cjs/translateDoc/validation.cjs +1 -2
- package/dist/cjs/upgrade.cjs +2 -3
- package/dist/cjs/utils/calculateChunks.cjs +1 -2
- package/dist/cjs/utils/checkAccess.cjs +5 -6
- package/dist/cjs/utils/checkAccess.cjs.map +1 -1
- package/dist/cjs/utils/checkConfigConsistency.cjs +1 -2
- package/dist/cjs/utils/checkFileModifiedRange.cjs +3 -4
- package/dist/cjs/utils/checkLastUpdateTime.cjs +1 -2
- package/dist/cjs/utils/chunkInference.cjs +2 -3
- package/dist/cjs/utils/detectGitRepository.cjs +86 -0
- package/dist/cjs/utils/detectGitRepository.cjs.map +1 -0
- package/dist/cjs/utils/fixChunkStartEndChars.cjs +1 -2
- package/dist/cjs/utils/formatLineRanges.cjs +1 -2
- package/dist/cjs/utils/formatTimeDiff.cjs +1 -2
- package/dist/cjs/utils/getIsFileUpdatedRecently.cjs +1 -2
- package/dist/cjs/utils/getOutputFilePath.cjs +1 -2
- package/dist/cjs/utils/getParentPackageJSON.cjs +2 -3
- package/dist/cjs/utils/isInteractiveTerminal.cjs +1 -2
- package/dist/cjs/utils/listSpecialChars.cjs +1 -2
- package/dist/cjs/utils/mapChunksBetweenFiles.cjs +2 -3
- package/dist/cjs/utils/openBrowser.cjs +1 -2
- package/dist/cjs/utils/parseChoice.cjs +1 -2
- package/dist/cjs/utils/reorderParagraphs.cjs +2 -3
- package/dist/cjs/utils/selectCmsEnvironment.cjs +2 -3
- package/dist/cjs/utils/setupAI.cjs +3 -4
- package/dist/cjs/watch.cjs +2 -3
- package/dist/esm/IntlayerEventListener.mjs +1 -2
- package/dist/esm/IntlayerEventListener.mjs.map +1 -1
- package/dist/esm/_virtual/_rolldown/runtime.mjs +1 -2
- package/dist/esm/_virtual/_utils_asset.mjs +2 -3
- package/dist/esm/auth/login.mjs +15 -5
- package/dist/esm/auth/login.mjs.map +1 -1
- package/dist/esm/auth/sessionToken.mjs +1 -2
- package/dist/esm/auth/setupRepository.mjs +89 -0
- package/dist/esm/auth/setupRepository.mjs.map +1 -0
- package/dist/esm/build.mjs +2 -3
- package/dist/esm/bundle.mjs +1 -2
- package/dist/esm/ci.mjs +2 -3
- package/dist/esm/cli.mjs +16 -11
- package/dist/esm/cli.mjs.map +1 -1
- package/dist/esm/config.mjs +2 -3
- package/dist/esm/editor.mjs +63 -36
- package/dist/esm/editor.mjs.map +1 -1
- package/dist/esm/extract.mjs +5 -6
- package/dist/esm/fill/deepMergeContent.mjs +1 -2
- package/dist/esm/fill/extractTranslatableContent.mjs +1 -2
- package/dist/esm/fill/fill.mjs +3 -4
- package/dist/esm/fill/fill.mjs.map +1 -1
- package/dist/esm/fill/formatAutoFilledFilePath.mjs +2 -3
- package/dist/esm/fill/formatFillData.mjs +1 -2
- package/dist/esm/fill/getAvailableLocalesInDictionary.mjs +1 -2
- package/dist/esm/fill/getFilterMissingContentPerLocale.mjs +1 -2
- package/dist/esm/fill/index.mjs +1 -1
- package/dist/esm/fill/listTranslationsTasks.mjs +2 -3
- package/dist/esm/fill/translateDictionary.mjs +2 -3
- package/dist/esm/fill/translateDictionary.mjs.map +1 -1
- package/dist/esm/fill/writeFill.mjs +2 -3
- package/dist/esm/getTargetDictionary.mjs +2 -3
- package/dist/esm/index.mjs +15 -11
- package/dist/esm/init.mjs +169 -20
- package/dist/esm/init.mjs.map +1 -1
- package/dist/esm/initChromeExtension.mjs +2 -3
- package/dist/esm/initInfra.mjs +1 -2
- package/dist/esm/initMCP.mjs +3 -4
- package/dist/esm/initSkills.mjs +2 -3
- package/dist/esm/listContentDeclaration.mjs +3 -4
- package/dist/esm/listProjects.mjs +1 -2
- package/dist/esm/liveSync.mjs +2 -3
- package/dist/esm/liveSync.mjs.map +1 -1
- package/dist/esm/loadPrompts.mjs +1 -2
- package/dist/esm/pull.mjs +6 -8
- package/dist/esm/pull.mjs.map +1 -1
- package/dist/esm/push/pullLog.mjs +1 -2
- package/dist/esm/push/push.mjs +6 -6
- package/dist/esm/push/push.mjs.map +1 -1
- package/dist/esm/pushConfig.mjs +2 -3
- package/dist/esm/pushLog.mjs +1 -2
- package/dist/esm/reviewDoc/reviewDoc.mjs +8 -8
- package/dist/esm/reviewDoc/reviewDoc.mjs.map +1 -1
- package/dist/esm/reviewDoc/reviewDocBlockAware.mjs +3 -4
- package/dist/esm/reviewDoc/reviewDocBlockAware.mjs.map +1 -1
- package/dist/esm/reviewDoc/reviewDocLog.mjs +2 -3
- package/dist/esm/reviewDoc/reviewDocProgress.mjs +1 -2
- package/dist/esm/reviewDoc/reviewDocSynthesis.mjs +1 -2
- package/dist/esm/scan.mjs +1 -2
- package/dist/esm/searchDoc.mjs +2 -3
- package/dist/esm/test/listMissingTranslations.mjs +2 -3
- package/dist/esm/test/test.mjs +1 -2
- package/dist/esm/translateDoc/index.mjs +2 -2
- package/dist/esm/translateDoc/translateDoc.mjs +7 -8
- package/dist/esm/translateDoc/translateDoc.mjs.map +1 -1
- package/dist/esm/translateDoc/translateFile.mjs +4 -5
- package/dist/esm/translateDoc/validation.mjs +1 -2
- package/dist/esm/upgrade.mjs +1 -2
- package/dist/esm/utils/calculateChunks.mjs +1 -2
- package/dist/esm/utils/checkAccess.mjs +2 -3
- package/dist/esm/utils/checkAccess.mjs.map +1 -1
- package/dist/esm/utils/checkConfigConsistency.mjs +1 -2
- package/dist/esm/utils/checkFileModifiedRange.mjs +1 -2
- package/dist/esm/utils/checkLastUpdateTime.mjs +1 -2
- package/dist/esm/utils/chunkInference.mjs +1 -2
- package/dist/esm/utils/detectGitRepository.mjs +84 -0
- package/dist/esm/utils/detectGitRepository.mjs.map +1 -0
- package/dist/esm/utils/fixChunkStartEndChars.mjs +1 -2
- package/dist/esm/utils/formatLineRanges.mjs +1 -2
- package/dist/esm/utils/formatTimeDiff.mjs +1 -2
- package/dist/esm/utils/getIsFileUpdatedRecently.mjs +1 -2
- package/dist/esm/utils/getOutputFilePath.mjs +1 -2
- package/dist/esm/utils/getParentPackageJSON.mjs +2 -3
- package/dist/esm/utils/isInteractiveTerminal.mjs +1 -2
- package/dist/esm/utils/listSpecialChars.mjs +1 -2
- package/dist/esm/utils/mapChunksBetweenFiles.mjs +1 -2
- package/dist/esm/utils/openBrowser.mjs +1 -2
- package/dist/esm/utils/parseChoice.mjs +1 -2
- package/dist/esm/utils/reorderParagraphs.mjs +1 -2
- package/dist/esm/utils/selectCmsEnvironment.mjs +1 -2
- package/dist/esm/utils/setupAI.mjs +1 -2
- package/dist/esm/watch.mjs +2 -3
- package/dist/types/IntlayerEventListener.d.ts +1 -3
- package/dist/types/IntlayerEventListener.d.ts.map +1 -1
- package/dist/types/auth/login.d.ts +6 -2
- package/dist/types/auth/login.d.ts.map +1 -1
- package/dist/types/auth/sessionToken.d.ts +0 -2
- package/dist/types/auth/sessionToken.d.ts.map +1 -1
- package/dist/types/auth/setupRepository.d.ts +24 -0
- package/dist/types/auth/setupRepository.d.ts.map +1 -0
- package/dist/types/build.d.ts +1 -2
- package/dist/types/build.d.ts.map +1 -1
- package/dist/types/bundle.d.ts +0 -2
- package/dist/types/bundle.d.ts.map +1 -1
- package/dist/types/ci.d.ts +1 -2
- package/dist/types/ci.d.ts.map +1 -1
- package/dist/types/cli.d.ts +1 -2
- package/dist/types/cli.d.ts.map +1 -1
- package/dist/types/config.d.ts +1 -2
- package/dist/types/config.d.ts.map +1 -1
- package/dist/types/editor.d.ts +11 -2
- package/dist/types/editor.d.ts.map +1 -1
- package/dist/types/extract.d.ts +1 -2
- package/dist/types/extract.d.ts.map +1 -1
- package/dist/types/fill/deepMergeContent.d.ts +0 -2
- package/dist/types/fill/deepMergeContent.d.ts.map +1 -1
- package/dist/types/fill/extractTranslatableContent.d.ts +0 -2
- package/dist/types/fill/extractTranslatableContent.d.ts.map +1 -1
- package/dist/types/fill/fill.d.ts +1 -3
- package/dist/types/fill/fill.d.ts.map +1 -1
- package/dist/types/fill/formatAutoFilledFilePath.d.ts +0 -2
- package/dist/types/fill/formatAutoFilledFilePath.d.ts.map +1 -1
- package/dist/types/fill/formatFillData.d.ts +0 -2
- package/dist/types/fill/formatFillData.d.ts.map +1 -1
- package/dist/types/fill/getAvailableLocalesInDictionary.d.ts +0 -2
- package/dist/types/fill/getAvailableLocalesInDictionary.d.ts.map +1 -1
- package/dist/types/fill/getFilterMissingContentPerLocale.d.ts +0 -2
- package/dist/types/fill/getFilterMissingContentPerLocale.d.ts.map +1 -1
- package/dist/types/fill/listTranslationsTasks.d.ts +0 -2
- package/dist/types/fill/listTranslationsTasks.d.ts.map +1 -1
- package/dist/types/fill/translateDictionary.d.ts +3 -5
- package/dist/types/fill/translateDictionary.d.ts.map +1 -1
- package/dist/types/fill/writeFill.d.ts +0 -2
- package/dist/types/fill/writeFill.d.ts.map +1 -1
- package/dist/types/getTargetDictionary.d.ts +0 -2
- package/dist/types/getTargetDictionary.d.ts.map +1 -1
- package/dist/types/index.d.ts +7 -3
- package/dist/types/init.d.ts +20 -4
- package/dist/types/init.d.ts.map +1 -1
- package/dist/types/initChromeExtension.d.ts +0 -2
- package/dist/types/initChromeExtension.d.ts.map +1 -1
- package/dist/types/initInfra.d.ts +0 -2
- package/dist/types/initInfra.d.ts.map +1 -1
- package/dist/types/initMCP.d.ts +0 -2
- package/dist/types/initMCP.d.ts.map +1 -1
- package/dist/types/initSkills.d.ts +0 -2
- package/dist/types/initSkills.d.ts.map +1 -1
- package/dist/types/listContentDeclaration.d.ts +1 -2
- package/dist/types/listContentDeclaration.d.ts.map +1 -1
- package/dist/types/listProjects.d.ts +0 -2
- package/dist/types/listProjects.d.ts.map +1 -1
- package/dist/types/liveSync.d.ts +1 -2
- package/dist/types/liveSync.d.ts.map +1 -1
- package/dist/types/loadPrompts.d.ts +0 -2
- package/dist/types/loadPrompts.d.ts.map +1 -1
- package/dist/types/pull.d.ts +1 -2
- package/dist/types/pull.d.ts.map +1 -1
- package/dist/types/push/pullLog.d.ts +0 -2
- package/dist/types/push/pullLog.d.ts.map +1 -1
- package/dist/types/push/push.d.ts +1 -2
- package/dist/types/push/push.d.ts.map +1 -1
- package/dist/types/pushConfig.d.ts +1 -2
- package/dist/types/pushConfig.d.ts.map +1 -1
- package/dist/types/pushLog.d.ts +0 -2
- package/dist/types/pushLog.d.ts.map +1 -1
- package/dist/types/reviewDoc/reviewDoc.d.ts +2 -3
- package/dist/types/reviewDoc/reviewDoc.d.ts.map +1 -1
- package/dist/types/reviewDoc/reviewDocBlockAware.d.ts +1 -4
- package/dist/types/reviewDoc/reviewDocBlockAware.d.ts.map +1 -1
- package/dist/types/reviewDoc/reviewDocLog.d.ts +0 -2
- package/dist/types/reviewDoc/reviewDocLog.d.ts.map +1 -1
- package/dist/types/reviewDoc/reviewDocProgress.d.ts +0 -2
- package/dist/types/reviewDoc/reviewDocProgress.d.ts.map +1 -1
- package/dist/types/reviewDoc/reviewDocSynthesis.d.ts +0 -2
- package/dist/types/reviewDoc/reviewDocSynthesis.d.ts.map +1 -1
- package/dist/types/scan.d.ts +0 -2
- package/dist/types/scan.d.ts.map +1 -1
- package/dist/types/searchDoc.d.ts +1 -2
- package/dist/types/searchDoc.d.ts.map +1 -1
- package/dist/types/test/listMissingTranslations.d.ts +0 -2
- package/dist/types/test/listMissingTranslations.d.ts.map +1 -1
- package/dist/types/test/test.d.ts +1 -2
- package/dist/types/test/test.d.ts.map +1 -1
- package/dist/types/translateDoc/index.d.ts +1 -1
- package/dist/types/translateDoc/translateDoc.d.ts +0 -2
- package/dist/types/translateDoc/translateDoc.d.ts.map +1 -1
- package/dist/types/translateDoc/translateFile.d.ts +0 -2
- package/dist/types/translateDoc/translateFile.d.ts.map +1 -1
- package/dist/types/translateDoc/types.d.ts +1 -3
- package/dist/types/translateDoc/types.d.ts.map +1 -1
- package/dist/types/translateDoc/validation.d.ts +0 -2
- package/dist/types/translateDoc/validation.d.ts.map +1 -1
- package/dist/types/upgrade.d.ts +0 -2
- package/dist/types/upgrade.d.ts.map +1 -1
- package/dist/types/utils/calculateChunks.d.ts +0 -2
- package/dist/types/utils/calculateChunks.d.ts.map +1 -1
- package/dist/types/utils/checkAccess.d.ts +2 -3
- package/dist/types/utils/checkAccess.d.ts.map +1 -1
- package/dist/types/utils/checkConfigConsistency.d.ts +0 -2
- package/dist/types/utils/checkConfigConsistency.d.ts.map +1 -1
- package/dist/types/utils/checkFileModifiedRange.d.ts +1 -2
- package/dist/types/utils/checkFileModifiedRange.d.ts.map +1 -1
- package/dist/types/utils/checkLastUpdateTime.d.ts +0 -2
- package/dist/types/utils/checkLastUpdateTime.d.ts.map +1 -1
- package/dist/types/utils/chunkInference.d.ts +1 -2
- package/dist/types/utils/chunkInference.d.ts.map +1 -1
- package/dist/types/utils/detectGitRepository.d.ts +32 -0
- package/dist/types/utils/detectGitRepository.d.ts.map +1 -0
- package/dist/types/utils/fixChunkStartEndChars.d.ts +0 -2
- package/dist/types/utils/fixChunkStartEndChars.d.ts.map +1 -1
- package/dist/types/utils/formatLineRanges.d.ts +0 -2
- package/dist/types/utils/formatLineRanges.d.ts.map +1 -1
- package/dist/types/utils/formatTimeDiff.d.ts +0 -2
- package/dist/types/utils/formatTimeDiff.d.ts.map +1 -1
- package/dist/types/utils/getIsFileUpdatedRecently.d.ts +0 -2
- package/dist/types/utils/getIsFileUpdatedRecently.d.ts.map +1 -1
- package/dist/types/utils/getOutputFilePath.d.ts +0 -2
- package/dist/types/utils/getOutputFilePath.d.ts.map +1 -1
- package/dist/types/utils/getParentPackageJSON.d.ts +1 -2
- package/dist/types/utils/getParentPackageJSON.d.ts.map +1 -1
- package/dist/types/utils/isInteractiveTerminal.d.ts +0 -2
- package/dist/types/utils/isInteractiveTerminal.d.ts.map +1 -1
- package/dist/types/utils/listSpecialChars.d.ts +1 -2
- package/dist/types/utils/listSpecialChars.d.ts.map +1 -1
- package/dist/types/utils/mapChunksBetweenFiles.d.ts +0 -2
- package/dist/types/utils/mapChunksBetweenFiles.d.ts.map +1 -1
- package/dist/types/utils/openBrowser.d.ts +0 -2
- package/dist/types/utils/openBrowser.d.ts.map +1 -1
- package/dist/types/utils/parseChoice.d.ts +0 -2
- package/dist/types/utils/parseChoice.d.ts.map +1 -1
- package/dist/types/utils/reorderParagraphs.d.ts +0 -2
- package/dist/types/utils/reorderParagraphs.d.ts.map +1 -1
- package/dist/types/utils/selectCmsEnvironment.d.ts +1 -3
- package/dist/types/utils/selectCmsEnvironment.d.ts.map +1 -1
- package/dist/types/utils/setupAI.d.ts +1 -2
- package/dist/types/utils/setupAI.d.ts.map +1 -1
- package/dist/types/watch.d.ts +1 -2
- package/dist/types/watch.d.ts.map +1 -1
- package/package.json +14 -14
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utils/parseChoice.ts
|
|
2
2
|
/**
|
|
3
3
|
* Resolves a command-line value against its allowed choices, ignoring case.
|
|
4
4
|
*
|
|
@@ -15,6 +15,5 @@ const parseChoice = (value, choices, optionName) => {
|
|
|
15
15
|
return choice;
|
|
16
16
|
};
|
|
17
17
|
|
|
18
|
-
//#endregion
|
|
19
18
|
export { parseChoice };
|
|
20
19
|
//# sourceMappingURL=parseChoice.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { listSpecialChars } from "./listSpecialChars.mjs";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/utils/reorderParagraphs.ts
|
|
4
4
|
/**
|
|
5
5
|
* Split a text into paragraphs.
|
|
6
6
|
*
|
|
@@ -88,6 +88,5 @@ const reorderParagraphs = (textToReorder, baseFileContent) => {
|
|
|
88
88
|
return [...leadingExtras, ...result].join("\n\n");
|
|
89
89
|
};
|
|
90
90
|
|
|
91
|
-
//#endregion
|
|
92
91
|
export { reorderParagraphs };
|
|
93
92
|
//# sourceMappingURL=reorderParagraphs.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as ANSIColors from "@intlayer/config/colors";
|
|
2
2
|
import { colorize, getAppLogger } from "@intlayer/config/logger";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/utils/selectCmsEnvironment.ts
|
|
5
5
|
/**
|
|
6
6
|
* Selects the CMS project environment that matches `environmentName`.
|
|
7
7
|
*
|
|
@@ -39,6 +39,5 @@ const selectCmsEnvironment = async (environmentName, intlayerAPI, config) => {
|
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
|
|
42
|
-
//#endregion
|
|
43
42
|
export { selectCmsEnvironment };
|
|
44
43
|
//# sourceMappingURL=selectCmsEnvironment.mjs.map
|
|
@@ -2,7 +2,7 @@ import { checkAIAccess } from "./checkAccess.mjs";
|
|
|
2
2
|
import * as ANSIColors from "@intlayer/config/colors";
|
|
3
3
|
import { colorize, getAppLogger } from "@intlayer/config/logger";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/utils/setupAI.ts
|
|
6
6
|
globalThis.AI_SDK_LOG_WARNINGS = false;
|
|
7
7
|
const logAIConfig = (aiOptions, appLogger) => {
|
|
8
8
|
appLogger([
|
|
@@ -60,6 +60,5 @@ const setupAI = async (configuration, aiOptions) => {
|
|
|
60
60
|
};
|
|
61
61
|
};
|
|
62
62
|
|
|
63
|
-
//#endregion
|
|
64
63
|
export { setupAI };
|
|
65
64
|
//# sourceMappingURL=setupAI.mjs.map
|
package/dist/esm/watch.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { logConfigDetails } from "@intlayer/engine/cli";
|
|
2
1
|
import { getAppLogger } from "@intlayer/config/logger";
|
|
3
2
|
import { getConfiguration } from "@intlayer/config/node";
|
|
3
|
+
import { logConfigDetails } from "@intlayer/engine/cli";
|
|
4
4
|
import { claimCliContentWatcher, reportRedundantContentWatcher, runParallel } from "@intlayer/engine/utils";
|
|
5
5
|
import { watch } from "@intlayer/engine/watcher";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/watch.ts
|
|
8
8
|
/**
|
|
9
9
|
* Grace period granted to the `--with` child (e.g. Next.js/Turbopack) to exit
|
|
10
10
|
* after SIGTERM before it is force-killed with SIGKILL. Detached dev servers
|
|
@@ -67,6 +67,5 @@ const watchContentDeclaration = async (options) => {
|
|
|
67
67
|
process.on("SIGTERM", handleShutdown);
|
|
68
68
|
};
|
|
69
69
|
|
|
70
|
-
//#endregion
|
|
71
70
|
export { watchContentDeclaration };
|
|
72
71
|
//# sourceMappingURL=watch.mjs.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { DictionaryAPI } from "@intlayer/
|
|
1
|
+
import { DictionaryAPI } from "@intlayer/api";
|
|
2
2
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
3
|
-
//#region src/IntlayerEventListener.d.ts
|
|
4
3
|
export type IntlayerMessageEvent = MessageEvent;
|
|
5
4
|
/**
|
|
6
5
|
* IntlayerEventListener class to listen for dictionary changes via SSE (Server-Sent Events).
|
|
@@ -83,5 +82,4 @@ export declare class IntlayerEventListener {
|
|
|
83
82
|
*/
|
|
84
83
|
private handleError;
|
|
85
84
|
}
|
|
86
|
-
//#endregion
|
|
87
85
|
//# sourceMappingURL=IntlayerEventListener.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IntlayerEventListener.d.ts","names":[],"sources":["../../src/IntlayerEventListener.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"IntlayerEventListener.d.ts","names":[],"sources":["../../src/IntlayerEventListener.ts"],"mappings":";;YAOY,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;qBA0BtB;UAoCD;UAnCF;UAEA;UACA;UACA;UACA;UACA;UACA;;;;EAKD,qBAAqB,YAAY;;;;EAKjC,sBAAsB,YAAY;;;;EAKlC,uBAAuB,YAAY;;;;EAKnC;;;;EAKA,qBAAqB,OAAO;EAEnC,YACU,iBAAgB,KAAK;;;;;EAYlB,cAAc;;;;UAQb;;;;EAmDP;;;;UAiBC;;;;;UAoCM;;;;UA8CN"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { GetConfigurationOptions } from "@intlayer/config/node";
|
|
2
|
-
//#region src/auth/login.d.ts
|
|
3
2
|
type LoginOptions = {
|
|
4
3
|
cmsUrl?: string;
|
|
5
4
|
configOptions?: GetConfigurationOptions;
|
|
@@ -19,7 +18,12 @@ type LoginOptions = {
|
|
|
19
18
|
clientId: string;
|
|
20
19
|
clientSecret: string;
|
|
21
20
|
}) => void | Promise<void>;
|
|
21
|
+
/**
|
|
22
|
+
* Aborts a login still waiting for the browser callback: the callback
|
|
23
|
+
* server is shut down and the returned promise resolves.
|
|
24
|
+
*/
|
|
25
|
+
signal?: AbortSignal;
|
|
22
26
|
};
|
|
23
27
|
export declare const login: (options?: LoginOptions) => Promise<void>;
|
|
24
|
-
|
|
28
|
+
export {};
|
|
25
29
|
//# sourceMappingURL=login.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login.d.ts","names":[],"sources":["../../../src/auth/login.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"login.d.ts","names":[],"sources":["../../../src/auth/login.ts"],"mappings":";KAiEK;EACH;EACA,gBAAgB;;;;;;EAMhB;;;;;;;EAOA,iBAAiB;IACf;IACA;eACW;;;;;EAKb,SAAS;;qBAGE,QAAK,UAAmB,iBAAY"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
2
|
-
//#region src/auth/sessionToken.d.ts
|
|
3
2
|
export type CliSessionData = {
|
|
4
3
|
token: string;
|
|
5
4
|
expiresAt: string;
|
|
@@ -7,5 +6,4 @@ export type CliSessionData = {
|
|
|
7
6
|
export declare const writeCliSessionToken: (config: IntlayerConfig, token: string, expiresAt: Date) => Promise<void>;
|
|
8
7
|
export declare const readCliSessionToken: (config: IntlayerConfig) => Promise<CliSessionData | null>;
|
|
9
8
|
export declare const clearCliSessionToken: (config: IntlayerConfig) => Promise<void>;
|
|
10
|
-
//#endregion
|
|
11
9
|
//# sourceMappingURL=sessionToken.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sessionToken.d.ts","names":[],"sources":["../../../src/auth/sessionToken.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"sessionToken.d.ts","names":[],"sources":["../../../src/auth/sessionToken.ts"],"mappings":";YAMY;EACV;EACA;;qBAMW,uBAAoB,QACvB,gBAAc,eACT,WACF,SACV;qBASU,sBAAmB,QACtB,mBACP,QAAQ;qBAsBE,uBAAoB,QACvB,mBACP"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { DetectedGitRepository } from "../utils/detectGitRepository.js";
|
|
2
|
+
import { GetConfigurationOptions } from "@intlayer/config/node";
|
|
3
|
+
/**
|
|
4
|
+
* Search params pre-filling the repository page with the local repository.
|
|
5
|
+
* Empty when none was detected: the user then picks it in the browser.
|
|
6
|
+
*/
|
|
7
|
+
export declare const getRepositorySearchParams: (detectedRepository: DetectedGitRepository | null | undefined) => URLSearchParams;
|
|
8
|
+
type SetupRepositoryOptions = {
|
|
9
|
+
cmsUrl?: string;
|
|
10
|
+
configOptions?: GetConfigurationOptions;
|
|
11
|
+
/** Local repository pre-filling the page */
|
|
12
|
+
detectedRepository?: DetectedGitRepository | null;
|
|
13
|
+
};
|
|
14
|
+
/** Outcome of the browser step: `provider:owner/repository`, or skipped. */
|
|
15
|
+
export type SetupRepositoryResult = {
|
|
16
|
+
linkedRepository: string | null;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Opens the CMS repository page (`/auth/cli-repository`) and waits for it to
|
|
20
|
+
* call back the local server once the repository and build settings are set.
|
|
21
|
+
*/
|
|
22
|
+
export declare const setupRepository: (options?: SetupRepositoryOptions) => Promise<SetupRepositoryResult>;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=setupRepository.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setupRepository.d.ts","names":[],"sources":["../../../src/auth/setupRepository.ts"],"mappings":";;;;;;qBAqCa,4BAAyB,oBAChB,6CACnB;KAkBE;EACH;EACA,gBAAgB;;EAEhB,qBAAqB;;;YAIX;EACV;;;;;;qBAOW,kBAAe,UACjB,2BACR,QAAQ"}
|
package/dist/types/build.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { GetConfigurationOptions } from "@intlayer/config/node";
|
|
2
|
-
//#region src/build.d.ts
|
|
3
2
|
type BuildOptions = {
|
|
4
3
|
watch?: boolean;
|
|
5
4
|
skipPrepare?: boolean;
|
|
@@ -11,5 +10,5 @@ type BuildOptions = {
|
|
|
11
10
|
* Watch mode available to get the change in the .content.{json|ts|tsx|js|jsx|mjs|cjs}
|
|
12
11
|
*/
|
|
13
12
|
export declare const build: (options?: BuildOptions) => Promise<void>;
|
|
14
|
-
|
|
13
|
+
export {};
|
|
15
14
|
//# sourceMappingURL=build.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.ts","names":[],"sources":["../../src/build.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"build.d.ts","names":[],"sources":["../../src/build.ts"],"mappings":";KAaK;EACH;EACA;EACA;EACA,gBAAgB;;;;;;qBAOL,QAAK,UAAoB,iBAAY"}
|
package/dist/types/bundle.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundle.d.ts","names":[],"sources":["../../src/bundle.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"bundle.d.ts","names":[],"sources":["../../src/bundle.ts"],"mappings":";qBA8Ca,SAAM,SAAmB,0BAAwB"}
|
package/dist/types/ci.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/ci.d.ts
|
|
2
1
|
/** Command used to run the locally installed `intlayer` binary. */
|
|
3
2
|
type PackageManagerCommand = {
|
|
4
3
|
command: string;
|
|
@@ -51,5 +50,5 @@ export declare const removeCIFlag: (args: string[]) => string[];
|
|
|
51
50
|
* failed in at least one project, `0` otherwise.
|
|
52
51
|
*/
|
|
53
52
|
export declare const runCI: (commands: string[]) => Promise<number>;
|
|
54
|
-
|
|
53
|
+
export {};
|
|
55
54
|
//# sourceMappingURL=ci.d.ts.map
|
package/dist/types/ci.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ci.d.ts","names":[],"sources":["../../src/ci.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ci.d.ts","names":[],"sources":["../../src/ci.ts"],"mappings":";KAuBK;EACH;EACA;;;;;;;;qBASW,2BAAwB,8BAElC;;;;;;;;;;qBAuCU,+BAA4B,aAC5B,qBACQ;;;;;;;;qBA2BR,sBAAmB,2BACL,mBACR;EAEd;EAAyB;;;qBAoBjB;;;;;qBAMA,eAAY;;;;;;;;;;;;qBAcZ,QAAK,uBAA+B"}
|
package/dist/types/cli.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Command } from "commander";
|
|
2
|
-
//#region src/cli.d.ts
|
|
3
2
|
export declare const dirname: string;
|
|
4
3
|
type LogOptions = {
|
|
5
4
|
prefix?: string;
|
|
@@ -21,5 +20,5 @@ export type ConfigurationOptions = {
|
|
|
21
20
|
* npm run intlayer push --dictionaries id1 id2 id3 --deleteLocaleDir
|
|
22
21
|
*/
|
|
23
22
|
export declare const setAPI: () => Command;
|
|
24
|
-
|
|
23
|
+
export {};
|
|
25
24
|
//# sourceMappingURL=cli.d.ts.map
|
package/dist/types/cli.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","names":[],"sources":["../../src/cli.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"cli.d.ts","names":[],"sources":["../../src/cli.ts"],"mappings":";qBAqBa;KAuJR;EACH;EACA;;YAGU;EACV;EACA;EACA;EACA;EACA;IACE;;;;;;;;;qBAiES,cAAa"}
|
package/dist/types/config.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { GetConfigurationOptions } from "@intlayer/config/node";
|
|
2
|
-
//#region src/config.d.ts
|
|
3
2
|
type ConfigOptions = {
|
|
4
3
|
configOptions?: GetConfigurationOptions;
|
|
5
4
|
};
|
|
6
5
|
export declare const getConfig: (options?: ConfigOptions) => void;
|
|
7
|
-
|
|
6
|
+
export {};
|
|
8
7
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","names":[],"sources":["../../src/config.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"config.d.ts","names":[],"sources":["../../src/config.ts"],"mappings":";KAOK;EACH,gBAAgB;;qBAgBL,YAAS,UAAc"}
|
package/dist/types/editor.d.ts
CHANGED
|
@@ -1,8 +1,17 @@
|
|
|
1
|
-
//#region src/editor.d.ts
|
|
2
1
|
type StartEditorOptions = {
|
|
3
2
|
env?: string;
|
|
4
3
|
envFile?: string;
|
|
5
4
|
};
|
|
5
|
+
/**
|
|
6
|
+
* Package runners trying `intlayer-editor` without it being installed. The
|
|
7
|
+
* editor is pinned to the CLI version, so both speak the same protocol.
|
|
8
|
+
*/
|
|
9
|
+
export declare const getRemoteEditorRunners: (cliVersion: string | undefined) => [command: string, args: string[]][];
|
|
10
|
+
/**
|
|
11
|
+
* Starts the visual editor: the installed `intlayer-editor`, else one of the
|
|
12
|
+
* CLI version run by `bun x` or `npx` (the next runner is tried when one is
|
|
13
|
+
* not installed).
|
|
14
|
+
*/
|
|
6
15
|
export declare const startEditor: (options: StartEditorOptions) => void;
|
|
7
|
-
|
|
16
|
+
export {};
|
|
8
17
|
//# sourceMappingURL=editor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor.d.ts","names":[],"sources":["../../src/editor.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"editor.d.ts","names":[],"sources":["../../src/editor.ts"],"mappings":"A,KAYK;EACH;EACA;;;;;;qBAaW,yBAAsB,oCAE/B,iBAAiB;;;;;;qBA8DR,cAAW,SAAa"}
|
package/dist/types/extract.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { GetConfigurationOptions } from "@intlayer/config/node";
|
|
2
2
|
import { FilePathPattern } from "@intlayer/types/filePathPattern";
|
|
3
|
-
//#region src/extract.d.ts
|
|
4
3
|
type ExtractOptions = {
|
|
5
4
|
files?: string[];
|
|
6
5
|
output?: FilePathPattern;
|
|
@@ -9,5 +8,5 @@ type ExtractOptions = {
|
|
|
9
8
|
declarationOnly?: boolean;
|
|
10
9
|
};
|
|
11
10
|
export declare const extract: (options: ExtractOptions) => Promise<void>;
|
|
12
|
-
|
|
11
|
+
export {};
|
|
13
12
|
//# sourceMappingURL=extract.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extract.d.ts","names":[],"sources":["../../src/extract.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"extract.d.ts","names":[],"sources":["../../src/extract.ts"],"mappings":";;KAgBK;EACH;EACA,SAAS;EACT,gBAAgB;EAChB;EACA;;qBAGW,UAAO,SAAmB,mBAAc"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/fill/deepMergeContent.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Deep merge two plain objects (for per-locale content).
|
|
4
3
|
* The second object's values take precedence over the first.
|
|
@@ -8,5 +7,4 @@
|
|
|
8
7
|
* @returns The merged object
|
|
9
8
|
*/
|
|
10
9
|
export declare const deepMergeContent: <T = any>(target: T, source: T) => T;
|
|
11
|
-
//#endregion
|
|
12
10
|
//# sourceMappingURL=deepMergeContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deepMergeContent.d.ts","names":[],"sources":["../../../src/fill/deepMergeContent.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"deepMergeContent.d.ts","names":[],"sources":["../../../src/fill/deepMergeContent.ts"],"mappings":";;;;;;;;qBAQa,mBAAoB,SAAO,QAAU,GAAC,QAAU,MAAI"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/fill/extractTranslatableContent.d.ts
|
|
2
1
|
export type ExtractedContentProps = {
|
|
3
2
|
index: number;
|
|
4
3
|
path: (string | number)[];
|
|
@@ -15,5 +14,4 @@ export declare const extractTranslatableContent: (content: any, currentPath?: (s
|
|
|
15
14
|
translatableDictionary: Record<number, string>;
|
|
16
15
|
}) => ExtractedContentResult;
|
|
17
16
|
export declare const reinsertTranslatedContent: (baseContent: any, extractedContentProps: ExtractedContentProps[], translatedDictionary: Record<number, string>) => any;
|
|
18
|
-
//#endregion
|
|
19
17
|
//# sourceMappingURL=extractTranslatableContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extractTranslatableContent.d.ts","names":[],"sources":["../../../src/fill/extractTranslatableContent.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"extractTranslatableContent.d.ts","names":[],"sources":["../../../src/fill/extractTranslatableContent.ts"],"mappings":"A,YAAY;EACV;EACA;EACA;EACA,cAAc;;YAGJ;EACV,kBAAkB;EAClB,wBAAwB;;qBAGb,6BAA0B,cACzB,mCACoB;EAE9B;EACA,kBAAwB;EACxB,wBAA8B;MAE/B;qBA6CU,4BAAyB,kBACpB,uBACO,yBAAuB,sBACxB"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { GetTargetDictionaryOptions } from "../getTargetDictionary.js";
|
|
2
|
-
import { AIOptions } from "@intlayer/
|
|
2
|
+
import { AIOptions } from "@intlayer/ai";
|
|
3
3
|
import { ListGitFilesOptions } from "@intlayer/engine/cli";
|
|
4
4
|
import { Locale } from "@intlayer/types/allLocales";
|
|
5
|
-
//#region src/fill/fill.d.ts
|
|
6
5
|
export type FillOptions = {
|
|
7
6
|
sourceLocale?: Locale;
|
|
8
7
|
outputLocales?: Locale | Locale[];
|
|
@@ -40,5 +39,4 @@ export type FillResult = {
|
|
|
40
39
|
* MCP) can tell a completed run from one that translated nothing.
|
|
41
40
|
*/
|
|
42
41
|
export declare const fill: (options?: FillOptions) => Promise<FillResult>;
|
|
43
|
-
//#endregion
|
|
44
42
|
//# sourceMappingURL=fill.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fill.d.ts","names":[],"sources":["../../../src/fill/fill.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"fill.d.ts","names":[],"sources":["../../../src/fill/fill.ts"],"mappings":";;;;YA2CY;EACV,eAAe;EACf,gBAAgB,SAAS;EACzB;EACA,aAAa;EACb,YAAY;EACZ;EACA;EACA;EACA;EACA;IACE;;YAGQ;;EAGN;;EAEA;;;EAIA;;EAGA;;EAEA;;EAEA;;EAEA;;;;;;;;qBASO,OAAI,UAAoB,gBAAc,QAAQ"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
2
2
|
import { FilePathPattern } from "@intlayer/types/filePathPattern";
|
|
3
3
|
import { Locale } from "@intlayer/types/allLocales";
|
|
4
|
-
//#region src/fill/formatAutoFilledFilePath.d.ts
|
|
5
4
|
export declare const formatAutoFilledFilePath: (autoFillField: FilePathPattern, dictionaryKey: string, dictionaryFilePath: string, baseDir: string, configuration: IntlayerConfig, locale?: Locale) => Promise<string>;
|
|
6
|
-
//#endregion
|
|
7
5
|
//# sourceMappingURL=formatAutoFilledFilePath.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatAutoFilledFilePath.d.ts","names":[],"sources":["../../../src/fill/formatAutoFilledFilePath.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"formatAutoFilledFilePath.d.ts","names":[],"sources":["../../../src/fill/formatAutoFilledFilePath.ts"],"mappings":";;;qBASa,2BAAwB,eACpB,iBAAe,uBACT,4BACK,iBACX,eACA,gBAAc,SACpB,WACR"}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
2
2
|
import { Locale } from "@intlayer/types/allLocales";
|
|
3
3
|
import { DictionaryKey, Fill } from "@intlayer/types/dictionary";
|
|
4
|
-
//#region src/fill/formatFillData.d.ts
|
|
5
4
|
export type FillData = {
|
|
6
5
|
localeList: Locale[];
|
|
7
6
|
filePath: string;
|
|
8
7
|
isPerLocale: boolean;
|
|
9
8
|
};
|
|
10
9
|
export declare const formatFillData: (fillField: Fill, localeList: Locale[], filePath: string, dictionaryKey: DictionaryKey, configuration: IntlayerConfig) => Promise<FillData[]>;
|
|
11
|
-
//#endregion
|
|
12
10
|
//# sourceMappingURL=formatFillData.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatFillData.d.ts","names":[],"sources":["../../../src/fill/formatFillData.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"formatFillData.d.ts","names":[],"sources":["../../../src/fill/formatFillData.ts"],"mappings":";;;YAWY;EACV,YAAY;EACZ;EACA;;qBAmBW,iBAAc,WACd,MAAI,YACH,UAAQ,kBACJ,eACD,eAAa,eACb,mBACd,QAAQ"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { Locale } from "@intlayer/types/allLocales";
|
|
2
2
|
import { Dictionary } from "@intlayer/types/dictionary";
|
|
3
|
-
//#region src/fill/getAvailableLocalesInDictionary.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Gets all locales that have actual translations in the dictionary content.
|
|
6
5
|
* Only returns locales that are present in at least one translation node.
|
|
7
6
|
*/
|
|
8
7
|
export declare const getAvailableLocalesInDictionary: (dictionary: Dictionary) => Locale[];
|
|
9
|
-
//#endregion
|
|
10
8
|
//# sourceMappingURL=getAvailableLocalesInDictionary.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAvailableLocalesInDictionary.d.ts","names":[],"sources":["../../../src/fill/getAvailableLocalesInDictionary.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"getAvailableLocalesInDictionary.d.ts","names":[],"sources":["../../../src/fill/getAvailableLocalesInDictionary.ts"],"mappings":";;;;;;qBAqCa,kCAA+B,YAC9B,eACX"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Dictionary } from "@intlayer/types/dictionary";
|
|
2
|
-
//#region src/fill/getFilterMissingContentPerLocale.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Filters a dictionary to only include content that's missing in the target dictionary.
|
|
5
4
|
* Used for per-locale content declarations in 'complete' mode.
|
|
@@ -9,5 +8,4 @@ import { Dictionary } from "@intlayer/types/dictionary";
|
|
|
9
8
|
* @returns A dictionary with only the missing content
|
|
10
9
|
*/
|
|
11
10
|
export declare const getFilterMissingContentPerLocale: (sourceDictionary: Dictionary, targetDictionary: Dictionary | undefined) => Dictionary;
|
|
12
|
-
//#endregion
|
|
13
11
|
//# sourceMappingURL=getFilterMissingContentPerLocale.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getFilterMissingContentPerLocale.d.ts","names":[],"sources":["../../../src/fill/getFilterMissingContentPerLocale.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"getFilterMissingContentPerLocale.d.ts","names":[],"sources":["../../../src/fill/getFilterMissingContentPerLocale.ts"],"mappings":";;;;;;;;;qBAgEa,mCAAgC,kBACzB,YAAU,kBACV,2BACjB"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
2
2
|
import { Locale } from "@intlayer/types/allLocales";
|
|
3
3
|
import { LocalDictionaryId } from "@intlayer/types/dictionary";
|
|
4
|
-
//#region src/fill/listTranslationsTasks.d.ts
|
|
5
4
|
export type TranslationTask = {
|
|
6
5
|
dictionaryKey: string;
|
|
7
6
|
dictionaryLocalId: LocalDictionaryId;
|
|
@@ -11,5 +10,4 @@ export type TranslationTask = {
|
|
|
11
10
|
dictionaryFilePath: string;
|
|
12
11
|
};
|
|
13
12
|
export declare const listTranslationsTasks: (localIds: LocalDictionaryId[], outputLocales: Locale[], mode: 'complete' | 'review', baseLocale: Locale, configuration: IntlayerConfig) => TranslationTask[];
|
|
14
|
-
//#endregion
|
|
15
13
|
//# sourceMappingURL=listTranslationsTasks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listTranslationsTasks.d.ts","names":[],"sources":["../../../src/fill/listTranslationsTasks.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"listTranslationsTasks.d.ts","names":[],"sources":["../../../src/fill/listTranslationsTasks.ts"],"mappings":";;;YAkBY;EACV;EACA,mBAAmB;EACnB,cAAc;EACd,eAAe;EACf;EACA;;qBAGW,wBAAqB,UACtB,qBAAmB,eACd,UAAQ,6BACI,YACf,QAAM,eACH,mBACd"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { TranslationTask } from "./listTranslationsTasks.js";
|
|
2
1
|
import { AIClient } from "../utils/setupAI.js";
|
|
2
|
+
import { TranslationTask } from "./listTranslationsTasks.js";
|
|
3
3
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
4
|
-
import { AIOptions } from "@intlayer/
|
|
4
|
+
import { AIConfig, AIOptions } from "@intlayer/ai";
|
|
5
5
|
import { Dictionary } from "@intlayer/types/dictionary";
|
|
6
|
-
import { AIConfig } from "@intlayer/ai";
|
|
7
|
-
//#region src/fill/translateDictionary.d.ts
|
|
8
6
|
type TranslateDictionaryResult = TranslationTask & {
|
|
9
7
|
dictionaryOutput: Dictionary | null;
|
|
10
8
|
};
|
|
@@ -20,5 +18,5 @@ type TranslateDictionaryOptions = {
|
|
|
20
18
|
aiConfig?: AIConfig;
|
|
21
19
|
};
|
|
22
20
|
export declare const translateDictionary: (task: TranslationTask, configuration: IntlayerConfig, options?: TranslateDictionaryOptions) => Promise<TranslateDictionaryResult>;
|
|
23
|
-
|
|
21
|
+
export {};
|
|
24
22
|
//# sourceMappingURL=translateDictionary.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translateDictionary.d.ts","names":[],"sources":["../../../src/fill/translateDictionary.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"translateDictionary.d.ts","names":[],"sources":["../../../src/fill/translateDictionary.ts"],"mappings":";;;;;KAuCK,4BAA4B;EAC/B,kBAAkB;;KAGf;EACH;EACA,YAAY;EACZ;EACA,WAAW,mDAC+B;EAE1C;EACA,WAAW;EACX,sBAAsB;EACtB,WAAW;EACX,WAAW;;qBAyCA,sBAAmB,MACxB,iBAAe,eACN,gBAAc,UACnB,+BACT,QAAQ"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
2
2
|
import { Locale } from "@intlayer/types/allLocales";
|
|
3
3
|
import { Dictionary } from "@intlayer/types/dictionary";
|
|
4
|
-
//#region src/fill/writeFill.d.ts
|
|
5
4
|
export declare const writeFill: (contentDeclarationFile: Dictionary, outputLocales: Locale[], parentLocales: Locale[], configuration: IntlayerConfig) => Promise<void>;
|
|
6
|
-
//#endregion
|
|
7
5
|
//# sourceMappingURL=writeFill.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"writeFill.d.ts","names":[],"sources":["../../../src/fill/writeFill.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"writeFill.d.ts","names":[],"sources":["../../../src/fill/writeFill.ts"],"mappings":";;;qBAWa,YAAS,wBACI,YAAU,eACnB,UAAQ,eACR,UAAQ,eACR,mBAAc"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { GetConfigurationOptions } from "@intlayer/config/node";
|
|
2
2
|
import { ListGitFilesOptions } from "@intlayer/engine/cli";
|
|
3
3
|
import { Dictionary } from "@intlayer/types/dictionary";
|
|
4
|
-
//#region src/getTargetDictionary.d.ts
|
|
5
4
|
export declare const ensureArray: <T>(value: T | T[]) => T[];
|
|
6
5
|
export type GetTargetDictionaryOptions = {
|
|
7
6
|
file?: string | string[];
|
|
@@ -13,5 +12,4 @@ export type GetTargetDictionaryOptions = {
|
|
|
13
12
|
configOptions?: GetConfigurationOptions;
|
|
14
13
|
};
|
|
15
14
|
export declare const getTargetUnmergedDictionaries: (options?: GetTargetDictionaryOptions) => Promise<Dictionary[]>;
|
|
16
|
-
//#endregion
|
|
17
15
|
//# sourceMappingURL=getTargetDictionary.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getTargetDictionary.d.ts","names":[],"sources":["../../src/getTargetDictionary.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"getTargetDictionary.d.ts","names":[],"sources":["../../src/getTargetDictionary.ts"],"mappings":";;;qBASa,cAAe,GAAC,OAAS,IAAI,QAAM;YAGpC;EACV;EACA;EACA;EACA,UAAU,OAAO;EACjB;EACA,aAAa;EACb,gBAAgB;;qBAGL,gCAA6B,UAC9B,+BACT,QAAQ"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
|
+
import { login } from "./auth/login.js";
|
|
2
|
+
import { clearCliSessionToken, readCliSessionToken } from "./auth/sessionToken.js";
|
|
1
3
|
import { build } from "./build.js";
|
|
2
4
|
import { bundle } from "./bundle.js";
|
|
3
5
|
import { ConfigurationOptions, dirname, setAPI } from "./cli.js";
|
|
4
|
-
import { startEditor } from "./editor.js";
|
|
6
|
+
import { getRemoteEditorRunners, startEditor } from "./editor.js";
|
|
5
7
|
import { extract } from "./extract.js";
|
|
6
8
|
import { FillOptions, FillResult, fill } from "./fill/fill.js";
|
|
7
|
-
import {
|
|
9
|
+
import { IntlayerEventListener, IntlayerMessageEvent } from "./IntlayerEventListener.js";
|
|
10
|
+
import { CONTENT_LAYOUT_CHOICES, DEFAULT_INIT_STEPS, ESLINT_CONFIG_FILES, INIT_STEP_COMMANDS, INIT_STEP_GROUPS, InitStep, InitStepOption, LOCALE_ROUTING_CHOICES, LocaleRoutingChoice, OPT_IN_INIT_STEPS, findProjectRoot, getContentInitOptions, getInitOptionsForSteps, getInitialInitSteps, getProjectDependencies, getRoutingInitOptions, init, initCms, initRepository, initSteps, isEslintInstalled, parseContentLayoutChoice, parseLocaleRoutingChoice, resolveProjectRoot } from "./init.js";
|
|
8
11
|
import { BROWSER_EXTENSION_OPTIONS, CHROME_EXTENSION_URL, EXTENSION_BROWSERS, EXTENSION_URL_BY_BROWSER, ExtensionBrowser, InitChromeExtensionOptions, MOZILLA_EXTENSION_URL, initChromeExtension, parseExtensionBrowsers } from "./initChromeExtension.js";
|
|
9
12
|
import { INFRA_MODES, INSTALL_SCRIPT_URL, INSTALL_SCRIPT_URL_WINDOWS, InfraMode, InitInfraOptions, initInfra, parseInfraMode } from "./initInfra.js";
|
|
10
13
|
import { InitSkillsOptions, PLATFORM_OPTIONS, initSkills, parsePlatform, parseSkills, promptPlatform, resolvePlatformWithoutPrompt } from "./initSkills.js";
|
|
@@ -22,8 +25,9 @@ import { testMissingTranslations } from "./test/test.js";
|
|
|
22
25
|
import "./test/index.js";
|
|
23
26
|
import { translateDoc } from "./translateDoc/translateDoc.js";
|
|
24
27
|
import { checkCMSAuth, getAuthenticatedAPI } from "./utils/checkAccess.js";
|
|
28
|
+
import { checkConfigConsistency } from "./utils/checkConfigConsistency.js";
|
|
25
29
|
export type * from "@intlayer/engine/cli";
|
|
26
30
|
export type * from "@intlayer/engine/build";
|
|
27
31
|
export type * from "@intlayer/engine/utils";
|
|
28
32
|
export type * from "@intlayer/engine/watcher";
|
|
29
|
-
export { BROWSER_EXTENSION_OPTIONS, CHROME_EXTENSION_URL, ConfigurationOptions, DEFAULT_INIT_STEPS, ESLINT_CONFIG_FILES, EXTENSION_BROWSERS, EXTENSION_URL_BY_BROWSER, ExtensionBrowser, FillOptions, FillResult, INFRA_MODES, INIT_STEP_COMMANDS, INIT_STEP_GROUPS, INSTALL_SCRIPT_URL, INSTALL_SCRIPT_URL_WINDOWS, InfraMode, InitChromeExtensionOptions, InitInfraOptions, InitSkillsOptions, InitStep, InitStepOption, LOCALE_ROUTING_CHOICES, ListProjectsCommandOptions, LocaleRoutingChoice, MOZILLA_EXTENSION_URL, OPT_IN_INIT_STEPS, PLATFORM_OPTIONS, ReviewDocMode, ScanCommandOptions, build, bundle, checkCMSAuth, dirname, extract, fill, findProjectRoot, getAuthenticatedAPI, getInitOptionsForSteps, getInitialInitSteps, getProjectDependencies, getRoutingInitOptions, init, initChromeExtension, initCms, initInfra, initSkills, initSteps, isEslintInstalled, listContentDeclaration, listContentDeclarationRows, listMissingTranslations, listMissingTranslationsWithConfig, listProjectsCommand, liveSync, parseExtensionBrowsers, parseInfraMode, parseLocaleRoutingChoice, parsePlatform, parseSkills, promptPlatform, pull, push, pushConfig, resolvePlatformWithoutPrompt, resolveProjectRoot, reviewDoc, scan, searchDoc, setAPI, startEditor, testMissingTranslations, translateDoc };
|
|
33
|
+
export { BROWSER_EXTENSION_OPTIONS, CHROME_EXTENSION_URL, CONTENT_LAYOUT_CHOICES, ConfigurationOptions, DEFAULT_INIT_STEPS, ESLINT_CONFIG_FILES, EXTENSION_BROWSERS, EXTENSION_URL_BY_BROWSER, ExtensionBrowser, FillOptions, FillResult, INFRA_MODES, INIT_STEP_COMMANDS, INIT_STEP_GROUPS, INSTALL_SCRIPT_URL, INSTALL_SCRIPT_URL_WINDOWS, InfraMode, InitChromeExtensionOptions, InitInfraOptions, InitSkillsOptions, InitStep, InitStepOption, IntlayerEventListener, IntlayerMessageEvent, LOCALE_ROUTING_CHOICES, ListProjectsCommandOptions, LocaleRoutingChoice, MOZILLA_EXTENSION_URL, OPT_IN_INIT_STEPS, PLATFORM_OPTIONS, ReviewDocMode, ScanCommandOptions, build, bundle, checkCMSAuth, checkConfigConsistency, clearCliSessionToken, dirname, extract, fill, findProjectRoot, getAuthenticatedAPI, getContentInitOptions, getInitOptionsForSteps, getInitialInitSteps, getProjectDependencies, getRemoteEditorRunners, getRoutingInitOptions, init, initChromeExtension, initCms, initInfra, initRepository, initSkills, initSteps, isEslintInstalled, listContentDeclaration, listContentDeclarationRows, listMissingTranslations, listMissingTranslationsWithConfig, listProjectsCommand, liveSync, login, parseContentLayoutChoice, parseExtensionBrowsers, parseInfraMode, parseLocaleRoutingChoice, parsePlatform, parseSkills, promptPlatform, pull, push, pushConfig, readCliSessionToken, resolvePlatformWithoutPrompt, resolveProjectRoot, reviewDoc, scan, searchDoc, setAPI, startEditor, testMissingTranslations, translateDoc };
|
package/dist/types/init.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { InitOptions, RoutingMode } from "@intlayer/engine/cli";
|
|
2
|
-
//#region src/init.d.ts
|
|
1
|
+
import { ContentLayout, InitOptions, RoutingMode } from "@intlayer/engine/cli";
|
|
3
2
|
export declare const findProjectRoot: (startDir: string) => string;
|
|
4
3
|
/** Resolves the project root from `--project-root`, else the working directory. */
|
|
5
4
|
export declare const resolveProjectRoot: (projectRoot?: string) => string;
|
|
6
5
|
/** Individually selectable setup steps exposed by the interactive init flow. */
|
|
7
|
-
export type InitStep = 'packages' | 'githubActions' | 'projectSetup' | 'vscodeExtension' | 'lsp' | 'eslint' | 'skills' | 'mcp' | 'infra' | 'cms' | 'chromeExtension';
|
|
6
|
+
export type InitStep = 'packages' | 'githubActions' | 'projectSetup' | 'vscodeExtension' | 'lsp' | 'eslint' | 'skills' | 'mcp' | 'infra' | 'cms' | 'repository' | 'chromeExtension';
|
|
8
7
|
/** A checkbox entry of the interactive init flow. */
|
|
9
8
|
export type InitStepOption = {
|
|
10
9
|
value: InitStep;
|
|
@@ -46,6 +45,11 @@ export declare const initSteps: (projectRoot: string | undefined, steps: InitSte
|
|
|
46
45
|
* credentials in `.env` and enables the editor in the config file.
|
|
47
46
|
*/
|
|
48
47
|
export declare const initCms: (projectRoot?: string) => Promise<void>;
|
|
48
|
+
/**
|
|
49
|
+
* Connects the git repository of the project to its CMS project (and sets
|
|
50
|
+
* its build settings) in the browser, pre-filled with the `origin` remote.
|
|
51
|
+
*/
|
|
52
|
+
export declare const initRepository: (projectRoot?: string) => Promise<void>;
|
|
49
53
|
/** Grouped checkbox entries of the interactive init flow, in display order. */
|
|
50
54
|
export declare const INIT_STEP_GROUPS: Record<string, InitStepOption[]>;
|
|
51
55
|
/**
|
|
@@ -59,6 +63,18 @@ export declare const LOCALE_ROUTING_CHOICES: LocaleRoutingChoice[];
|
|
|
59
63
|
export declare const parseLocaleRoutingChoice: (value: string) => LocaleRoutingChoice;
|
|
60
64
|
/** Maps a routing choice to the init options it sets. */
|
|
61
65
|
export declare const getRoutingInitOptions: (choice: LocaleRoutingChoice) => Pick<InitOptions, 'routingMode' | 'enableProxy'>;
|
|
66
|
+
/** Content layouts accepted by `--content`. */
|
|
67
|
+
export declare const CONTENT_LAYOUT_CHOICES: ContentLayout[];
|
|
68
|
+
/** Validates a `--content` value, throwing on an unknown layout. */
|
|
69
|
+
export declare const parseContentLayoutChoice: (value: string) => ContentLayout;
|
|
70
|
+
/** Init options set by the content layout questions / flags. */
|
|
71
|
+
type ContentInitOptions = Pick<InitOptions, 'contentLayout' | 'contentFormat' | 'contentMessageFormat'>;
|
|
72
|
+
/**
|
|
73
|
+
* Validates `--content` / `--content-format` / `--message-format` and maps
|
|
74
|
+
* them to the init options. The format must be one the layout accepts, and the
|
|
75
|
+
* message format only applies to JSON catalogs.
|
|
76
|
+
*/
|
|
77
|
+
export declare const getContentInitOptions: (layoutValue?: string, formatValue?: string, messageFormatValue?: string) => ContentInitOptions;
|
|
62
78
|
/** Known ESLint and oxlint configuration file names. */
|
|
63
79
|
export declare const ESLINT_CONFIG_FILES: string[];
|
|
64
80
|
/**
|
|
@@ -80,5 +96,5 @@ export declare const getProjectDependencies: (root: string) => Record<string, st
|
|
|
80
96
|
* terminal; without one it fails and lists the single-step commands instead.
|
|
81
97
|
*/
|
|
82
98
|
export declare const init: (projectRoot?: string, options?: InitOptions, interactive?: boolean) => Promise<void>;
|
|
83
|
-
|
|
99
|
+
export {};
|
|
84
100
|
//# sourceMappingURL=init.d.ts.map
|
package/dist/types/init.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","names":[],"sources":["../../src/init.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"init.d.ts","names":[],"sources":["../../src/init.ts"],"mappings":";qBA4Ba,kBAAe;;qBAgBf,qBAAkB;;YAInB;;YAeA;EACV,OAAO;EACP;EACA;;;;;;;qBAQW,mBAAmB;;;;;;;qBAQnB,oBAAoB;;;;;qBAMpB,oBAAoB,OAAO;;;;;;qBAqB3B,yBAAsB,OAC1B,YAAU,cACH,gBACb;;;;;;qBAwBU,YAAS,iCACW,OACxB,YAAU,UACP,gBACT;;;;;qBAWU,UAAO,yBAAiC;;;;;qBAiBxC,iBAAc,yBAAiC;;qBAyB/C,kBAAkB,eAAe;;;;;YA2ElC,sBAAsB;;qBAoCrB,wBAAsB;;qBAKtB,2BAAwB,kBAAoB;;qBAI5C,wBAAqB,QACxB,wBACP,KAAK;;qBAoDK,wBAAsB;;qBAKtB,2BAAwB,kBAAoB;;KAIpD,qBAAqB,KACxB;;;;;;qBAaW,wBAAqB,sBACZ,sBACA,gCAEnB;;qBAwCU;;;;;qBAoBA,oBAAiB,cACd,wBAAsB;;;;;;qBAkBzB,sBAAmB,cAChB,wBAAsB,kBAEnC;;qBAcU,yBAAsB,iBAEhC;;;;;;qBA0MU,OAAI,sBACK,UACV,aAAW,0BACA"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/initChromeExtension.d.ts
|
|
2
1
|
export declare const CHROME_EXTENSION_URL = "https://chromewebstore.google.com/detail/intlayer_i18n_scanner/pmlehcgmjmfimmjnembihbakhnheiabc";
|
|
3
2
|
export declare const MOZILLA_EXTENSION_URL = "https://addons.mozilla.org/en-US/firefox/addon/intlayer-i18n-scanner/";
|
|
4
3
|
export declare const BROWSER_EXTENSION_OPTIONS: {
|
|
@@ -25,5 +24,4 @@ export type InitChromeExtensionOptions = {
|
|
|
25
24
|
* links are only printed, since the install needs a person anyway.
|
|
26
25
|
*/
|
|
27
26
|
export declare const initChromeExtension: (options?: InitChromeExtensionOptions) => Promise<void>;
|
|
28
|
-
//#endregion
|
|
29
27
|
//# sourceMappingURL=initChromeExtension.d.ts.map
|