@intlayer/cli 9.4.1 → 9.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/fill/writeFill.cjs +1 -1
- package/dist/cjs/fill/writeFill.cjs.map +1 -1
- package/dist/esm/fill/writeFill.mjs +1 -1
- package/dist/esm/fill/writeFill.mjs.map +1 -1
- package/dist/types/IntlayerEventListener.d.ts +2 -3
- package/dist/types/IntlayerEventListener.d.ts.map +1 -1
- package/dist/types/auth/login.d.ts +1 -2
- package/dist/types/auth/login.d.ts.map +1 -1
- package/dist/types/auth/sessionToken.d.ts +4 -5
- package/dist/types/auth/sessionToken.d.ts.map +1 -1
- package/dist/types/build.d.ts +1 -2
- package/dist/types/build.d.ts.map +1 -1
- package/dist/types/bundle.d.ts +1 -2
- package/dist/types/bundle.d.ts.map +1 -1
- package/dist/types/ci.d.ts +4 -5
- package/dist/types/ci.d.ts.map +1 -1
- package/dist/types/cli.d.ts +3 -4
- 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 +1 -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 +1 -2
- package/dist/types/fill/deepMergeContent.d.ts.map +1 -1
- package/dist/types/fill/extractTranslatableContent.d.ts +4 -5
- package/dist/types/fill/extractTranslatableContent.d.ts.map +1 -1
- package/dist/types/fill/fill.d.ts +2 -3
- package/dist/types/fill/fill.d.ts.map +1 -1
- package/dist/types/fill/formatAutoFilledFilePath.d.ts +1 -2
- package/dist/types/fill/formatAutoFilledFilePath.d.ts.map +1 -1
- package/dist/types/fill/formatFillData.d.ts +2 -3
- package/dist/types/fill/formatFillData.d.ts.map +1 -1
- package/dist/types/fill/getAvailableLocalesInDictionary.d.ts +1 -2
- package/dist/types/fill/getAvailableLocalesInDictionary.d.ts.map +1 -1
- package/dist/types/fill/getFilterMissingContentPerLocale.d.ts +1 -2
- package/dist/types/fill/getFilterMissingContentPerLocale.d.ts.map +1 -1
- package/dist/types/fill/listTranslationsTasks.d.ts +2 -3
- package/dist/types/fill/listTranslationsTasks.d.ts.map +1 -1
- package/dist/types/fill/translateDictionary.d.ts +1 -2
- package/dist/types/fill/translateDictionary.d.ts.map +1 -1
- package/dist/types/fill/writeFill.d.ts +1 -2
- package/dist/types/fill/writeFill.d.ts.map +1 -1
- package/dist/types/getTargetDictionary.d.ts +3 -4
- package/dist/types/getTargetDictionary.d.ts.map +1 -1
- package/dist/types/init.d.ts +2 -3
- package/dist/types/init.d.ts.map +1 -1
- package/dist/types/initBuildOptimization.d.ts +2 -3
- package/dist/types/initBuildOptimization.d.ts.map +1 -1
- package/dist/types/initCompiler.d.ts +1 -2
- package/dist/types/initCompiler.d.ts.map +1 -1
- package/dist/types/initMCP.d.ts +1 -2
- package/dist/types/initMCP.d.ts.map +1 -1
- package/dist/types/initSkills.d.ts +3 -4
- package/dist/types/initSkills.d.ts.map +1 -1
- package/dist/types/listContentDeclaration.d.ts +2 -3
- package/dist/types/listContentDeclaration.d.ts.map +1 -1
- package/dist/types/listProjects.d.ts +2 -3
- 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/pull.d.ts +1 -2
- package/dist/types/pull.d.ts.map +1 -1
- package/dist/types/push/pullLog.d.ts +2 -3
- 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 +2 -3
- 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 -2
- package/dist/types/reviewDoc/reviewDocBlockAware.d.ts.map +1 -1
- package/dist/types/reviewDoc/reviewDocLog.d.ts +2 -3
- package/dist/types/reviewDoc/reviewDocLog.d.ts.map +1 -1
- package/dist/types/reviewDoc/reviewDocProgress.d.ts +2 -3
- package/dist/types/reviewDoc/reviewDocProgress.d.ts.map +1 -1
- package/dist/types/reviewDoc/reviewDocSynthesis.d.ts +4 -5
- package/dist/types/reviewDoc/reviewDocSynthesis.d.ts.map +1 -1
- package/dist/types/scan.d.ts +2 -3
- 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 +2 -3
- 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/translateDoc.d.ts +1 -2
- package/dist/types/translateDoc/translateDoc.d.ts.map +1 -1
- package/dist/types/translateDoc/translateFile.d.ts +1 -2
- package/dist/types/translateDoc/translateFile.d.ts.map +1 -1
- package/dist/types/translateDoc/types.d.ts +5 -6
- package/dist/types/translateDoc/types.d.ts.map +1 -1
- package/dist/types/translateDoc/validation.d.ts +2 -3
- package/dist/types/translateDoc/validation.d.ts.map +1 -1
- package/dist/types/utils/calculateChunks.d.ts +2 -3
- package/dist/types/utils/calculateChunks.d.ts.map +1 -1
- package/dist/types/utils/checkAccess.d.ts +3 -4
- package/dist/types/utils/checkAccess.d.ts.map +1 -1
- package/dist/types/utils/checkConfigConsistency.d.ts +1 -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 +1 -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/fixChunkStartEndChars.d.ts +1 -2
- package/dist/types/utils/fixChunkStartEndChars.d.ts.map +1 -1
- package/dist/types/utils/formatLineRanges.d.ts +1 -2
- package/dist/types/utils/formatLineRanges.d.ts.map +1 -1
- package/dist/types/utils/formatTimeDiff.d.ts +1 -2
- package/dist/types/utils/formatTimeDiff.d.ts.map +1 -1
- package/dist/types/utils/getIsFileUpdatedRecently.d.ts +1 -2
- package/dist/types/utils/getIsFileUpdatedRecently.d.ts.map +1 -1
- package/dist/types/utils/getOutputFilePath.d.ts +3 -4
- 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/listSpecialChars.d.ts +1 -2
- package/dist/types/utils/listSpecialChars.d.ts.map +1 -1
- package/dist/types/utils/mapChunksBetweenFiles.d.ts +2 -3
- package/dist/types/utils/mapChunksBetweenFiles.d.ts.map +1 -1
- package/dist/types/utils/openBrowser.d.ts +1 -2
- package/dist/types/utils/openBrowser.d.ts.map +1 -1
- package/dist/types/utils/reorderParagraphs.d.ts +1 -2
- package/dist/types/utils/reorderParagraphs.d.ts.map +1 -1
- package/dist/types/utils/selectCmsEnvironment.d.ts +1 -2
- package/dist/types/utils/selectCmsEnvironment.d.ts.map +1 -1
- package/dist/types/utils/setupAI.d.ts +2 -3
- 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 +16 -16
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { Platform } from "@intlayer/engine/cli";
|
|
2
2
|
//#region src/initSkills.d.ts
|
|
3
|
-
declare const PLATFORM_OPTIONS: Array<{
|
|
3
|
+
export declare const PLATFORM_OPTIONS: Array<{
|
|
4
4
|
value: Platform;
|
|
5
5
|
label: string;
|
|
6
6
|
hint: string;
|
|
7
7
|
}>;
|
|
8
|
-
declare const getDetectedPlatform: () => Platform | undefined;
|
|
9
|
-
declare const initSkills: (projectRoot?: string, preselectedPlatform?: Platform) => Promise<void>;
|
|
8
|
+
export declare const getDetectedPlatform: () => Platform | undefined;
|
|
9
|
+
export declare const initSkills: (projectRoot?: string, preselectedPlatform?: Platform) => Promise<void>;
|
|
10
10
|
//#endregion
|
|
11
|
-
export { PLATFORM_OPTIONS, getDetectedPlatform, initSkills };
|
|
12
11
|
//# sourceMappingURL=initSkills.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initSkills.d.ts","names":[],"sources":["../../src/initSkills.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"initSkills.d.ts","names":[],"sources":["../../src/initSkills.ts"],"mappings":";;qBAuBa,kBAAkB;EAC7B,OAAO;EACP;EACA;;qBAOW,2BAA0B;qBAiB1B,aAAU,sBACD,sBACE,aAAQ"}
|
|
@@ -5,11 +5,10 @@ type ListContentDeclarationOptions = {
|
|
|
5
5
|
json?: boolean;
|
|
6
6
|
absolute?: boolean;
|
|
7
7
|
};
|
|
8
|
-
declare const listContentDeclarationRows: (options?: ListContentDeclarationOptions) => Promise<{
|
|
8
|
+
export declare const listContentDeclarationRows: (options?: ListContentDeclarationOptions) => Promise<{
|
|
9
9
|
key: string;
|
|
10
10
|
path: string;
|
|
11
11
|
}[]>;
|
|
12
|
-
declare const listContentDeclaration: (options?: ListContentDeclarationOptions) => Promise<void>;
|
|
12
|
+
export declare const listContentDeclaration: (options?: ListContentDeclarationOptions) => Promise<void>;
|
|
13
13
|
//#endregion
|
|
14
|
-
export { listContentDeclaration, listContentDeclarationRows };
|
|
15
14
|
//# sourceMappingURL=listContentDeclaration.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listContentDeclaration.d.ts","names":[],"sources":["../../src/listContentDeclaration.ts"],"mappings":";;KAeK;EACH,gBAAgB;EAChB;EACA;;
|
|
1
|
+
{"version":3,"file":"listContentDeclaration.d.ts","names":[],"sources":["../../src/listContentDeclaration.ts"],"mappings":";;KAeK;EACH,gBAAgB;EAChB;EACA;;qBAGW,6BAA0B,UAC3B,kCAA6B;;;;qBAmB5B,yBAAsB,UACvB,kCAA6B"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { ListProjectsOptions } from "@intlayer/engine/cli";
|
|
2
2
|
//#region src/listProjects.d.ts
|
|
3
|
-
type ListProjectsCommandOptions = ListProjectsOptions & {
|
|
3
|
+
export type ListProjectsCommandOptions = ListProjectsOptions & {
|
|
4
4
|
json?: boolean;
|
|
5
5
|
absolute?: boolean;
|
|
6
6
|
};
|
|
7
|
-
declare const listProjectsCommand: (options?: ListProjectsCommandOptions) => Promise<void>;
|
|
7
|
+
export declare const listProjectsCommand: (options?: ListProjectsCommandOptions) => Promise<void>;
|
|
8
8
|
//#endregion
|
|
9
|
-
export { ListProjectsCommandOptions, listProjectsCommand };
|
|
10
9
|
//# 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":";;YAGY,6BAA6B;EACvC;EACA;;qBAGW,sBAAmB,UACpB,+BAA0B"}
|
package/dist/types/liveSync.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ type LiveSyncOptions = {
|
|
|
4
4
|
with?: string | string[];
|
|
5
5
|
configOptions?: GetConfigurationOptions;
|
|
6
6
|
};
|
|
7
|
-
declare const liveSync: (options?: LiveSyncOptions) => Promise<void>;
|
|
7
|
+
export declare const liveSync: (options?: LiveSyncOptions) => Promise<void>;
|
|
8
8
|
//#endregion
|
|
9
|
-
export { liveSync };
|
|
10
9
|
//# sourceMappingURL=liveSync.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"liveSync.d.ts","names":[],"sources":["../../src/liveSync.ts"],"mappings":";;KAkBK;EACH;EACA,gBAAgB;;
|
|
1
|
+
{"version":3,"file":"liveSync.d.ts","names":[],"sources":["../../src/liveSync.ts"],"mappings":";;KAkBK;EACH;EACA,gBAAgB;;qBAYL,WAAQ,UAAoB,oBAAe"}
|
package/dist/types/pull.d.ts
CHANGED
|
@@ -9,7 +9,6 @@ type PullOptions = {
|
|
|
9
9
|
* Fetch distant dictionaries and write them locally,
|
|
10
10
|
* with progress indicators and concurrency control.
|
|
11
11
|
*/
|
|
12
|
-
declare const pull: (options?: PullOptions) => Promise<void>;
|
|
12
|
+
export declare const pull: (options?: PullOptions) => Promise<void>;
|
|
13
13
|
//#endregion
|
|
14
|
-
export { pull };
|
|
15
14
|
//# sourceMappingURL=pull.d.ts.map
|
package/dist/types/pull.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pull.d.ts","names":[],"sources":["../../src/pull.ts"],"mappings":";;KAqBK;EACH;EACA;EACA,gBAAgB;;;;;;
|
|
1
|
+
{"version":3,"file":"pull.d.ts","names":[],"sources":["../../src/pull.ts"],"mappings":";;KAqBK;EACH;EACA;EACA,gBAAgB;;;;;;qBAcL,OAAI,UAAoB,gBAAc"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { DictionaryStatus } from "@intlayer/engine/build";
|
|
2
2
|
//#region src/push/pullLog.d.ts
|
|
3
|
-
type PullStatus = {
|
|
3
|
+
export type PullStatus = {
|
|
4
4
|
dictionaryKey: string;
|
|
5
5
|
status: DictionaryStatus | 'pending' | 'fetching';
|
|
6
6
|
errorMessage?: string;
|
|
7
7
|
};
|
|
8
|
-
declare class PullLogger {
|
|
8
|
+
export declare class PullLogger {
|
|
9
9
|
private statuses;
|
|
10
10
|
private spinnerTimer;
|
|
11
11
|
private spinnerIndex;
|
|
@@ -23,5 +23,4 @@ declare class PullLogger {
|
|
|
23
23
|
private computeProgress;
|
|
24
24
|
}
|
|
25
25
|
//#endregion
|
|
26
|
-
export { PullLogger, PullStatus };
|
|
27
26
|
//# sourceMappingURL=pullLog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pullLog.d.ts","names":[],"sources":["../../../src/push/pullLog.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"pullLog.d.ts","names":[],"sources":["../../../src/push/pullLog.ts"],"mappings":";;YAKY;EACV;EACA,QAAQ;EACR;;qBAGW;UACH;UACA;UACA;UACA;mBACS;UACT;mBACS;UACT;EAER;EAKA,OAAO,aAAa;EAiBpB;UAMQ;UAQA;UAMA;UA+CA"}
|
|
@@ -12,7 +12,6 @@ type PushOptions = {
|
|
|
12
12
|
/**
|
|
13
13
|
* Get all local dictionaries and push them simultaneously.
|
|
14
14
|
*/
|
|
15
|
-
declare const push: (options?: PushOptions) => Promise<void>;
|
|
15
|
+
export declare const push: (options?: PushOptions) => Promise<void>;
|
|
16
16
|
//#endregion
|
|
17
|
-
export { push };
|
|
18
17
|
//# sourceMappingURL=push.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"push.d.ts","names":[],"sources":["../../../src/push/push.ts"],"mappings":";;;KAwBK;EACH;EACA;EACA;EACA,aAAa;EACb,gBAAgB;EAChB;;;;;
|
|
1
|
+
{"version":3,"file":"push.d.ts","names":[],"sources":["../../../src/push/push.ts"],"mappings":";;;KAwBK;EACH;EACA;EACA;EACA,aAAa;EACb,gBAAgB;EAChB;;;;;qBAoCW,OAAI,UAAoB,gBAAc"}
|
|
@@ -3,7 +3,6 @@ import { GetConfigurationOptions } from "@intlayer/config/node";
|
|
|
3
3
|
type PushOptions = {
|
|
4
4
|
configOptions?: GetConfigurationOptions;
|
|
5
5
|
};
|
|
6
|
-
declare const pushConfig: (options?: PushOptions) => Promise<void>;
|
|
6
|
+
export declare const pushConfig: (options?: PushOptions) => Promise<void>;
|
|
7
7
|
//#endregion
|
|
8
|
-
export { pushConfig };
|
|
9
8
|
//# sourceMappingURL=pushConfig.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pushConfig.d.ts","names":[],"sources":["../../src/pushConfig.ts"],"mappings":";;KAcK;EACH,gBAAgB;;
|
|
1
|
+
{"version":3,"file":"pushConfig.d.ts","names":[],"sources":["../../src/pushConfig.ts"],"mappings":";;KAcK;EACH,gBAAgB;;qBAGL,aAAU,UAAoB,gBAAW"}
|
package/dist/types/pushLog.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
//#region src/pushLog.d.ts
|
|
2
|
-
type PushStatus = {
|
|
2
|
+
export type PushStatus = {
|
|
3
3
|
dictionaryKey: string;
|
|
4
4
|
status: 'pending' | 'pushing' | 'pushed' | 'modified' | 'up-to-date' | 'error';
|
|
5
5
|
errorMessage?: string;
|
|
6
6
|
};
|
|
7
|
-
declare class PushLogger {
|
|
7
|
+
export declare class PushLogger {
|
|
8
8
|
private statuses;
|
|
9
9
|
private spinnerTimer;
|
|
10
10
|
private spinnerIndex;
|
|
@@ -20,5 +20,4 @@ declare class PushLogger {
|
|
|
20
20
|
private computeProgress;
|
|
21
21
|
}
|
|
22
22
|
//#endregion
|
|
23
|
-
export { PushLogger, PushStatus };
|
|
24
23
|
//# sourceMappingURL=pushLog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pushLog.d.ts","names":[],"sources":["../../src/pushLog.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"pushLog.d.ts","names":[],"sources":["../../src/pushLog.ts"],"mappings":";YAOY;EACV;EACA;EAOA;;qBAGW;UACH;UACA;UACA;UACA;mBACS;UACT;UACA;EAER,OAAO,aAAa;EAiBpB;UAMQ;UAQA;UAMA;UAyDA"}
|
|
@@ -13,7 +13,7 @@ import { Locale } from "@intlayer/types/allLocales";
|
|
|
13
13
|
* - `synthesis`: no AI, no per-block output. Only log the final synthesis of the
|
|
14
14
|
* documents that are up to date and the ones that still have blocks to edit.
|
|
15
15
|
*/
|
|
16
|
-
type ReviewDocMode = 'apply' | 'report' | 'synthesis';
|
|
16
|
+
export type ReviewDocMode = 'apply' | 'report' | 'synthesis';
|
|
17
17
|
type ReviewDocOptions = {
|
|
18
18
|
docPattern: string[];
|
|
19
19
|
locales: Locale[];
|
|
@@ -34,7 +34,6 @@ type ReviewDocOptions = {
|
|
|
34
34
|
* Main audit function: scans all .md files in "en/" (unless you specified DOC_LIST),
|
|
35
35
|
* then audits them to each locale in LOCALE_LIST.
|
|
36
36
|
*/
|
|
37
|
-
declare const reviewDoc: ({ docPattern, locales, excludedGlobPattern, baseLocale, aiOptions, nbSimultaneousFileProcessed, configOptions, customInstructions, skipIfModifiedBefore, skipIfModifiedAfter, skipIfExists, gitOptions, mode }: ReviewDocOptions) => Promise<ReviewFileResult[]>;
|
|
37
|
+
export declare const reviewDoc: ({ docPattern, locales, excludedGlobPattern, baseLocale, aiOptions, nbSimultaneousFileProcessed, configOptions, customInstructions, skipIfModifiedBefore, skipIfModifiedAfter, skipIfExists, gitOptions, mode }: ReviewDocOptions) => Promise<ReviewFileResult[]>;
|
|
38
38
|
//#endregion
|
|
39
|
-
export { ReviewDocMode, reviewDoc };
|
|
40
39
|
//# sourceMappingURL=reviewDoc.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reviewDoc.d.ts","names":[],"sources":["../../../src/reviewDoc/reviewDoc.ts"],"mappings":";;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"reviewDoc.d.ts","names":[],"sources":["../../../src/reviewDoc/reviewDoc.ts"],"mappings":";;;;;;;;;;;;;;;YAmDY;KAEP;EACH;EACA,SAAS;EACT;EACA,YAAY;EACZ,YAAY;EACZ;EACA,gBAAgB;EAChB;EACA,yCAAyC;EACzC,wCAAwC;EACxC;EACA,aAAa;;EAEb,OAAO;;;;;;qBAOI,cAAS,YAAA,SAAA,qBAAA,YAAA,WAAA,6BAAA,eAAA,oBAAA,sBAAA,qBAAA,cAAA,YAAA,QAcnB,qBAAgB,QAAA"}
|
|
@@ -19,7 +19,6 @@ import { ReviewReportSummary } from "@intlayer/engine/docReview";
|
|
|
19
19
|
* @returns The per-action block counts of the alignment plan, so the caller can
|
|
20
20
|
* synthesize what was reused and what had to be edited.
|
|
21
21
|
*/
|
|
22
|
-
declare const reviewFileBlockAware: (baseFilePath: string, outputFilePath: string, locale: Locale, baseLocale: Locale, aiOptions?: AIOptions, configOptions?: GetConfigurationOptions, customInstructions?: string, changedLines?: number[], aiClient?: AIClient, aiConfig?: AIConfig) => Promise<ReviewReportSummary>;
|
|
22
|
+
export declare const reviewFileBlockAware: (baseFilePath: string, outputFilePath: string, locale: Locale, baseLocale: Locale, aiOptions?: AIOptions, configOptions?: GetConfigurationOptions, customInstructions?: string, changedLines?: number[], aiClient?: AIClient, aiConfig?: AIConfig) => Promise<ReviewReportSummary>;
|
|
23
23
|
//#endregion
|
|
24
|
-
export { reviewFileBlockAware };
|
|
25
24
|
//# sourceMappingURL=reviewDocBlockAware.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reviewDocBlockAware.d.ts","names":[],"sources":["../../../src/reviewDoc/reviewDocBlockAware.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"reviewDocBlockAware.d.ts","names":[],"sources":["../../../src/reviewDoc/reviewDocBlockAware.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;qBA+Ca,uBAAoB,sBACX,wBACE,QACd,QAAM,YACF,QAAM,YACN,WAAS,gBACL,yBAAuB,6BACZ,yBACJ,WACZ,UAAQ,WACR,aACV,QAAQ"}
|
|
@@ -10,7 +10,7 @@ import { ReviewReport } from "@intlayer/engine/docReview";
|
|
|
10
10
|
* @param changedLines - 1-based base line numbers that changed (from git), if any.
|
|
11
11
|
* @returns The structured review report.
|
|
12
12
|
*/
|
|
13
|
-
declare const buildFileReviewReport: (baseFilePath: string, outputFilePath: string, changedLines?: number[]) => Promise<ReviewReport>;
|
|
13
|
+
export declare const buildFileReviewReport: (baseFilePath: string, outputFilePath: string, changedLines?: number[]) => Promise<ReviewReport>;
|
|
14
14
|
/**
|
|
15
15
|
* Log the blocks that need attention (with their line ranges and content) for a
|
|
16
16
|
* single file/locale pair, so another agent or a human can generate the missing
|
|
@@ -22,7 +22,6 @@ declare const buildFileReviewReport: (baseFilePath: string, outputFilePath: stri
|
|
|
22
22
|
* @param baseLocale - The base locale used as reference.
|
|
23
23
|
* @param configOptions - Optional Intlayer configuration overrides.
|
|
24
24
|
*/
|
|
25
|
-
declare const logReviewFileBlocks: (report: ReviewReport, baseFilePath: string, locale: Locale, baseLocale: Locale, configOptions?: GetConfigurationOptions) => void;
|
|
25
|
+
export declare const logReviewFileBlocks: (report: ReviewReport, baseFilePath: string, locale: Locale, baseLocale: Locale, configOptions?: GetConfigurationOptions) => void;
|
|
26
26
|
//#endregion
|
|
27
|
-
export { buildFileReviewReport, logReviewFileBlocks };
|
|
28
27
|
//# sourceMappingURL=reviewDocLog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reviewDocLog.d.ts","names":[],"sources":["../../../src/reviewDoc/reviewDocLog.ts"],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"reviewDocLog.d.ts","names":[],"sources":["../../../src/reviewDoc/reviewDocLog.ts"],"mappings":";;;;;;;;;;;;qBAuBa,wBAAqB,sBACZ,wBACE,4BAErB,QAAQ;;;;;;;;;;;;qBAoBE,sBAAmB,QACtB,cAAY,sBACA,QACZ,QAAM,YACF,QAAM,gBACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/reviewDoc/reviewDocProgress.d.ts
|
|
2
|
-
type ReviewProgressLogger = {
|
|
2
|
+
export type ReviewProgressLogger = {
|
|
3
3
|
/** Show the progress line and start animating the spinner. */
|
|
4
4
|
start: () => void;
|
|
5
5
|
/** Count one processed document/locale pair and refresh the progress line. */
|
|
@@ -19,7 +19,6 @@ type ReviewProgressLogger = {
|
|
|
19
19
|
* @param totalCount - Number of document/locale pairs to process.
|
|
20
20
|
* @returns The progress logger handles.
|
|
21
21
|
*/
|
|
22
|
-
declare const createReviewProgressLogger: (totalCount: number) => ReviewProgressLogger;
|
|
22
|
+
export declare const createReviewProgressLogger: (totalCount: number) => ReviewProgressLogger;
|
|
23
23
|
//#endregion
|
|
24
|
-
export { ReviewProgressLogger, createReviewProgressLogger };
|
|
25
24
|
//# sourceMappingURL=reviewDocProgress.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reviewDocProgress.d.ts","names":[],"sources":["../../../src/reviewDoc/reviewDocProgress.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"reviewDocProgress.d.ts","names":[],"sources":["../../../src/reviewDoc/reviewDocProgress.ts"],"mappings":";YAUY;;EAEV;;EAEA;;EAEA;;;;;;;;;;;;;;qBAeW,6BAA0B,uBAEpC"}
|
|
@@ -8,9 +8,9 @@ import { ReviewReportSummary } from "@intlayer/engine/docReview";
|
|
|
8
8
|
* - `toEdit`: at least one block diverges (to review, to add, or to delete).
|
|
9
9
|
* - `skipped`: the pair was not reviewed (already exists, modification range…).
|
|
10
10
|
*/
|
|
11
|
-
type ReviewOutcome = 'upToDate' | 'toEdit' | 'skipped';
|
|
11
|
+
export type ReviewOutcome = 'upToDate' | 'toEdit' | 'skipped';
|
|
12
12
|
/** The result of reviewing a single base document / target locale pair. */
|
|
13
|
-
type ReviewFileResult = {
|
|
13
|
+
export type ReviewFileResult = {
|
|
14
14
|
/** Path of the base document, as matched by the doc pattern. */
|
|
15
15
|
docPath: string;
|
|
16
16
|
/** The reviewed target locale. */
|
|
@@ -20,7 +20,7 @@ type ReviewFileResult = {
|
|
|
20
20
|
/** Per-action block counts, when the document was actually compared. */
|
|
21
21
|
summary?: ReviewReportSummary;
|
|
22
22
|
};
|
|
23
|
-
type FormatReviewSynthesisOptions = {
|
|
23
|
+
export type FormatReviewSynthesisOptions = {
|
|
24
24
|
/**
|
|
25
25
|
* When `true`, the diverging blocks were fixed during the run, so the section
|
|
26
26
|
* is labelled `Updated` instead of `To edit`.
|
|
@@ -35,7 +35,6 @@ type FormatReviewSynthesisOptions = {
|
|
|
35
35
|
* @param options - Rendering options.
|
|
36
36
|
* @returns A multi-line string, ready to be logged.
|
|
37
37
|
*/
|
|
38
|
-
declare const formatReviewSynthesis: (results: ReviewFileResult[], options?: FormatReviewSynthesisOptions) => string;
|
|
38
|
+
export declare const formatReviewSynthesis: (results: ReviewFileResult[], options?: FormatReviewSynthesisOptions) => string;
|
|
39
39
|
//#endregion
|
|
40
|
-
export { FormatReviewSynthesisOptions, ReviewFileResult, ReviewOutcome, formatReviewSynthesis };
|
|
41
40
|
//# sourceMappingURL=reviewDocSynthesis.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reviewDocSynthesis.d.ts","names":[],"sources":["../../../src/reviewDoc/reviewDocSynthesis.ts"],"mappings":";;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"reviewDocSynthesis.d.ts","names":[],"sources":["../../../src/reviewDoc/reviewDocSynthesis.ts"],"mappings":";;;;;;;;;;YAiBY;;YAGA;;EAEV;;EAEA,QAAQ;;EAER,SAAS;;EAET,UAAU;;YAGA;;;;;EAKV;;;;;;;;;;qBA+EW,wBAAqB,SACvB,oBAAkB,UACjB"}
|
package/dist/types/scan.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ConfigurationOptions } from "./cli.js";
|
|
2
2
|
//#region src/scan.d.ts
|
|
3
3
|
/** Options accepted by the {@link scan} command. */
|
|
4
|
-
type ScanCommandOptions = {
|
|
4
|
+
export type ScanCommandOptions = {
|
|
5
5
|
/** Disable the deeper puppeteer-based render scan. */
|
|
6
6
|
deep?: boolean;
|
|
7
7
|
/** Output the raw {@link ScanResult} as JSON instead of formatted text. */
|
|
@@ -17,7 +17,6 @@ type ScanCommandOptions = {
|
|
|
17
17
|
* npx intlayer scan https://intlayer.org
|
|
18
18
|
* ```
|
|
19
19
|
*/
|
|
20
|
-
declare const scan: (url: string, options?: ScanCommandOptions) => Promise<void>;
|
|
20
|
+
export declare const scan: (url: string, options?: ScanCommandOptions) => Promise<void>;
|
|
21
21
|
//#endregion
|
|
22
|
-
export { ScanCommandOptions, scan };
|
|
23
22
|
//# sourceMappingURL=scan.d.ts.map
|
package/dist/types/scan.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scan.d.ts","names":[],"sources":["../../src/scan.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"scan.d.ts","names":[],"sources":["../../src/scan.ts"],"mappings":";;;YAOY;;EAEV;;EAEA;EACA,gBAAgB;;;;;;;;;;;qBA2CL,OAAI,aACJ,UACF,uBACR"}
|
|
@@ -5,7 +5,6 @@ interface SearchDocOptions {
|
|
|
5
5
|
limit?: number;
|
|
6
6
|
configOptions?: GetConfigurationOptions;
|
|
7
7
|
}
|
|
8
|
-
declare const searchDoc: ({ query, limit, configOptions }: SearchDocOptions) => Promise<void>;
|
|
8
|
+
export declare const searchDoc: ({ query, limit, configOptions }: SearchDocOptions) => Promise<void>;
|
|
9
9
|
//#endregion
|
|
10
|
-
export { searchDoc };
|
|
11
10
|
//# sourceMappingURL=searchDoc.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"searchDoc.d.ts","names":[],"sources":["../../src/searchDoc.ts"],"mappings":";;UAYU;EACR;EACA;EACA,gBAAgB;;
|
|
1
|
+
{"version":3,"file":"searchDoc.d.ts","names":[],"sources":["../../src/searchDoc.ts"],"mappings":";;UAYU;EACR;EACA;EACA,gBAAgB;;qBAGL,cAAS,OAAA,OAAA,iBAInB,qBAAgB"}
|
|
@@ -2,7 +2,7 @@ import { IntlayerConfig } from "@intlayer/types/config";
|
|
|
2
2
|
import { GetConfigurationOptions } from "@intlayer/config/node";
|
|
3
3
|
import { Locale } from "@intlayer/types/allLocales";
|
|
4
4
|
//#region src/test/listMissingTranslations.d.ts
|
|
5
|
-
declare const listMissingTranslationsWithConfig: (configuration: IntlayerConfig) => {
|
|
5
|
+
export declare const listMissingTranslationsWithConfig: (configuration: IntlayerConfig) => {
|
|
6
6
|
missingTranslations: {
|
|
7
7
|
key: string;
|
|
8
8
|
filePath?: string;
|
|
@@ -12,7 +12,7 @@ declare const listMissingTranslationsWithConfig: (configuration: IntlayerConfig)
|
|
|
12
12
|
missingLocales: Locale[];
|
|
13
13
|
missingRequiredLocales: Locale[];
|
|
14
14
|
};
|
|
15
|
-
declare const listMissingTranslations: (configurationOptions?: GetConfigurationOptions) => {
|
|
15
|
+
export declare const listMissingTranslations: (configurationOptions?: GetConfigurationOptions) => {
|
|
16
16
|
missingTranslations: {
|
|
17
17
|
key: string;
|
|
18
18
|
filePath?: string;
|
|
@@ -23,5 +23,4 @@ declare const listMissingTranslations: (configurationOptions?: GetConfigurationO
|
|
|
23
23
|
missingRequiredLocales: Locale[];
|
|
24
24
|
};
|
|
25
25
|
//#endregion
|
|
26
|
-
export { listMissingTranslations, listMissingTranslationsWithConfig };
|
|
27
26
|
//# sourceMappingURL=listMissingTranslations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listMissingTranslations.d.ts","names":[],"sources":["../../../src/test/listMissingTranslations.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"listMissingTranslations.d.ts","names":[],"sources":["../../../src/test/listMissingTranslations.ts"],"mappings":";;;;qBAYa,oCAAiC,eAC7B;;IAMR;IACM;IACN;IACI,SAAA;;;;;qBAmGA,0BAAuB,uBACX;;IAvGhB;IACM;IACN;IACI,SAAA"}
|
|
@@ -4,7 +4,6 @@ type ListMissingTranslationsOptions = {
|
|
|
4
4
|
configOptions?: GetConfigurationOptions;
|
|
5
5
|
build?: boolean;
|
|
6
6
|
};
|
|
7
|
-
declare const testMissingTranslations: (options?: ListMissingTranslationsOptions) => Promise<void>;
|
|
7
|
+
export declare const testMissingTranslations: (options?: ListMissingTranslationsOptions) => Promise<void>;
|
|
8
8
|
//#endregion
|
|
9
|
-
export { testMissingTranslations };
|
|
10
9
|
//# sourceMappingURL=test.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test.d.ts","names":[],"sources":["../../../src/test/test.ts"],"mappings":";;KAgBK;EACH,gBAAgB;EAChB;;
|
|
1
|
+
{"version":3,"file":"test.d.ts","names":[],"sources":["../../../src/test/test.ts"],"mappings":";;KAgBK;EACH,gBAAgB;EAChB;;qBAGW,0BAAuB,UACxB,mCAA8B"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { TranslateDocOptions } from "./types.js";
|
|
2
2
|
//#region src/translateDoc/translateDoc.d.ts
|
|
3
|
-
declare const translateDoc: ({ docPattern, locales, excludedGlobPattern, baseLocale, aiOptions, nbSimultaneousFileProcessed, configOptions, customInstructions, skipIfModifiedBefore, skipIfModifiedAfter, skipIfExists, gitOptions, flushStrategy }: TranslateDocOptions) => Promise<void>;
|
|
3
|
+
export declare const translateDoc: ({ docPattern, locales, excludedGlobPattern, baseLocale, aiOptions, nbSimultaneousFileProcessed, configOptions, customInstructions, skipIfModifiedBefore, skipIfModifiedAfter, skipIfExists, gitOptions, flushStrategy }: TranslateDocOptions) => Promise<void>;
|
|
4
4
|
//#endregion
|
|
5
|
-
export { translateDoc };
|
|
6
5
|
//# sourceMappingURL=translateDoc.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translateDoc.d.ts","names":[],"sources":["../../../src/translateDoc/translateDoc.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"translateDoc.d.ts","names":[],"sources":["../../../src/translateDoc/translateDoc.ts"],"mappings":";;qBAqBa,iBAAY,YAAA,SAAA,qBAAA,YAAA,WAAA,6BAAA,eAAA,oBAAA,sBAAA,qBAAA,cAAA,YAAA,iBActB,wBAAmB"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { TranslateFileOptions } from "./types.js";
|
|
2
2
|
//#region src/translateDoc/translateFile.d.ts
|
|
3
|
-
declare const translateFile: ({ baseFilePath, outputFilePath, locale, baseLocale, configuration, errorState, aiOptions, customInstructions, aiClient, aiConfig, flushStrategy, onChunkReceive, limit }: TranslateFileOptions) => Promise<string | null>;
|
|
3
|
+
export declare const translateFile: ({ baseFilePath, outputFilePath, locale, baseLocale, configuration, errorState, aiOptions, customInstructions, aiClient, aiConfig, flushStrategy, onChunkReceive, limit }: TranslateFileOptions) => Promise<string | null>;
|
|
4
4
|
//#endregion
|
|
5
|
-
export { translateFile };
|
|
6
5
|
//# sourceMappingURL=translateFile.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translateFile.d.ts","names":[],"sources":["../../../src/translateDoc/translateFile.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"translateFile.d.ts","names":[],"sources":["../../../src/translateDoc/translateFile.ts"],"mappings":";;qBAmBa,kBAAa,cAAA,gBAAA,QAAA,YAAA,eAAA,YAAA,WAAA,oBAAA,UAAA,UAAA,eAAA,gBAAA,SAcvB,yBAAuB"}
|
|
@@ -5,14 +5,14 @@ import { ListGitFilesOptions } from "@intlayer/engine/cli";
|
|
|
5
5
|
import { Locale } from "@intlayer/types/allLocales";
|
|
6
6
|
import { AIConfig, AIOptions } from "@intlayer/ai";
|
|
7
7
|
//#region src/translateDoc/types.d.ts
|
|
8
|
-
type ErrorState = {
|
|
8
|
+
export type ErrorState = {
|
|
9
9
|
count: number;
|
|
10
10
|
maxErrors: number;
|
|
11
11
|
shouldStop: boolean;
|
|
12
12
|
};
|
|
13
|
-
type FlushStrategy = 'incremental' | 'end' | 'none';
|
|
14
|
-
type LimitFunction = (fn: () => Promise<any>, ...args: any[]) => Promise<any>;
|
|
15
|
-
type TranslateFileOptions = {
|
|
13
|
+
export type FlushStrategy = 'incremental' | 'end' | 'none';
|
|
14
|
+
export type LimitFunction = (fn: () => Promise<any>, ...args: any[]) => Promise<any>;
|
|
15
|
+
export type TranslateFileOptions = {
|
|
16
16
|
baseFilePath: string;
|
|
17
17
|
outputFilePath: string;
|
|
18
18
|
locale: Locale;
|
|
@@ -27,7 +27,7 @@ type TranslateFileOptions = {
|
|
|
27
27
|
onChunkReceive?: (chunk: string, index: number, total: number) => void;
|
|
28
28
|
limit?: LimitFunction;
|
|
29
29
|
};
|
|
30
|
-
type TranslateDocOptions = {
|
|
30
|
+
export type TranslateDocOptions = {
|
|
31
31
|
docPattern: string[];
|
|
32
32
|
locales: Locale[];
|
|
33
33
|
excludedGlobPattern: string[];
|
|
@@ -43,5 +43,4 @@ type TranslateDocOptions = {
|
|
|
43
43
|
flushStrategy?: FlushStrategy;
|
|
44
44
|
};
|
|
45
45
|
//#endregion
|
|
46
|
-
export { ErrorState, FlushStrategy, LimitFunction, TranslateDocOptions, TranslateFileOptions };
|
|
47
46
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","names":[],"sources":["../../../src/translateDoc/types.ts"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"types.d.ts","names":[],"sources":["../../../src/translateDoc/types.ts"],"mappings":";;;;;;;YAOY;EACV;EACA;EACA;;YAGU;YAGA,iBACV,UAAU,iBACP,gBACA;YAEO;EACV;EACA;EACA,QAAQ;EACR,YAAY;EACZ,eAAe;EACf,YAAY;EACZ,YAAY;EACZ;EACA,WAAW;EACX,WAAW;EACX,gBAAgB;EAChB,kBAAkB,eAAe,eAAe;EAChD,QAAQ;;YAGE;EACV;EACA,SAAS;EACT;EACA,YAAY;EACZ,YAAY;EACZ;EACA,gBAAgB;EAChB;EACA,yCAAyC;EACzC,wCAAwC;EACxC;EACA,aAAa;EACb,gBAAgB"}
|
|
@@ -4,11 +4,10 @@ import { Logger } from "@intlayer/config/logger";
|
|
|
4
4
|
* Validates that the translated content matches the structure of the original.
|
|
5
5
|
* Throws an error if a mismatch is found, triggering a retry.
|
|
6
6
|
*/
|
|
7
|
-
declare const validateTranslation: (original: string, translated: string, logger: Logger) => boolean;
|
|
7
|
+
export declare const validateTranslation: (original: string, translated: string, logger: Logger) => boolean;
|
|
8
8
|
/**
|
|
9
9
|
* Clean common AI artifacts
|
|
10
10
|
*/
|
|
11
|
-
declare const sanitizeChunk: (translated: string, original: string) => string;
|
|
11
|
+
export declare const sanitizeChunk: (translated: string, original: string) => string;
|
|
12
12
|
//#endregion
|
|
13
|
-
export { sanitizeChunk, validateTranslation };
|
|
14
13
|
//# sourceMappingURL=validation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation.d.ts","names":[],"sources":["../../../src/translateDoc/validation.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"validation.d.ts","names":[],"sources":["../../../src/translateDoc/validation.ts"],"mappings":";;;;;;qBAMa,sBAAmB,kBACd,oBACE,QACV;;;;qBAiEG,gBAAa,oBAAsB"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
//#region src/utils/calculateChunks.d.ts
|
|
2
|
-
type ChunkLineResult = {
|
|
2
|
+
export type ChunkLineResult = {
|
|
3
3
|
lineStart: number;
|
|
4
4
|
lineLength: number;
|
|
5
5
|
charStart: number;
|
|
6
6
|
charLength: number;
|
|
7
7
|
content: string;
|
|
8
8
|
};
|
|
9
|
-
declare const chunkText: (text: string, maxCharsPerChunk?: number, overlapChars?: number) => ChunkLineResult[];
|
|
9
|
+
export declare const chunkText: (text: string, maxCharsPerChunk?: number, overlapChars?: number) => ChunkLineResult[];
|
|
10
10
|
//#endregion
|
|
11
|
-
export { ChunkLineResult, chunkText };
|
|
12
11
|
//# sourceMappingURL=calculateChunks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calculateChunks.d.ts","names":[],"sources":["../../../src/utils/calculateChunks.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"calculateChunks.d.ts","names":[],"sources":["../../../src/utils/calculateChunks.ts"],"mappings":";YAEY;EACV;EACA;EACA;EACA;EACA;;qBAMW,YAAS,cACR,2BACY,0BAEvB"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
2
2
|
import { AIOptions, IntlayerAPIProxy } from "@intlayer/api";
|
|
3
3
|
//#region src/utils/checkAccess.d.ts
|
|
4
|
-
declare const getAuthenticatedAPI: (configuration?: IntlayerConfig) => Promise<IntlayerAPIProxy>;
|
|
5
|
-
declare const checkCMSAuth: (configuration: IntlayerConfig, shouldCheckConfigConsistency?: boolean, shouldAutoLogin?: boolean) => Promise<boolean>;
|
|
6
|
-
declare const checkAIAccess: (configuration: IntlayerConfig, aiOptions?: AIOptions, shouldCheckConfigConsistency?: boolean) => Promise<boolean>;
|
|
4
|
+
export declare const getAuthenticatedAPI: (configuration?: IntlayerConfig) => Promise<IntlayerAPIProxy>;
|
|
5
|
+
export declare const checkCMSAuth: (configuration: IntlayerConfig, shouldCheckConfigConsistency?: boolean, shouldAutoLogin?: boolean) => Promise<boolean>;
|
|
6
|
+
export declare const checkAIAccess: (configuration: IntlayerConfig, aiOptions?: AIOptions, shouldCheckConfigConsistency?: boolean) => Promise<boolean>;
|
|
7
7
|
//#endregion
|
|
8
|
-
export { checkAIAccess, checkCMSAuth, getAuthenticatedAPI };
|
|
9
8
|
//# sourceMappingURL=checkAccess.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkAccess.d.ts","names":[],"sources":["../../../src/utils/checkAccess.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"checkAccess.d.ts","names":[],"sources":["../../../src/utils/checkAccess.ts"],"mappings":";;;qBAUa,sBAAmB,gBACd,mBACf,QAAQ;qBAiDE,eAAY,eACR,gBAAc,wCACQ,8BAEpC;qBA4GU,gBAAa,eACT,gBAAc,YACjB,WAAS,2CAEpB"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
//#region src/utils/checkConfigConsistency.d.ts
|
|
2
|
-
declare const checkConfigConsistency: (subset: any, superset: any) => void;
|
|
2
|
+
export declare const checkConfigConsistency: (subset: any, superset: any) => void;
|
|
3
3
|
//#endregion
|
|
4
|
-
export { checkConfigConsistency };
|
|
5
4
|
//# sourceMappingURL=checkConfigConsistency.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkConfigConsistency.d.ts","names":[],"sources":["../../../src/utils/checkConfigConsistency.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"checkConfigConsistency.d.ts","names":[],"sources":["../../../src/utils/checkConfigConsistency.ts"],"mappings":";qBAAa,yBAAsB,aAAe"}
|
|
@@ -7,7 +7,6 @@ type CheckFileModifiedRangeOptions = {
|
|
|
7
7
|
skipIfModifiedBefore?: Date | number | string;
|
|
8
8
|
skipIfModifiedAfter?: Date | number | string;
|
|
9
9
|
};
|
|
10
|
-
declare const checkFileModifiedRange: (filePath: string, options: CheckFileModifiedRangeOptions) => CheckFileModifiedRangeResult;
|
|
10
|
+
export declare const checkFileModifiedRange: (filePath: string, options: CheckFileModifiedRangeOptions) => CheckFileModifiedRangeResult;
|
|
11
11
|
//#endregion
|
|
12
|
-
export { checkFileModifiedRange };
|
|
13
12
|
//# sourceMappingURL=checkFileModifiedRange.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkFileModifiedRange.d.ts","names":[],"sources":["../../../src/utils/checkFileModifiedRange.ts"],"mappings":";KAgFK;EACH;EACA;;KAGG;EACH,uBAAuB;EACvB,sBAAsB;;
|
|
1
|
+
{"version":3,"file":"checkFileModifiedRange.d.ts","names":[],"sources":["../../../src/utils/checkFileModifiedRange.ts"],"mappings":";KAgFK;EACH;EACA;;KAGG;EACH,uBAAuB;EACvB,sBAAsB;;qBAGX,yBAAsB,kBACjB,SACP,kCACR"}
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
* @returns Date instance representing the file's last modified time (mtime).
|
|
7
7
|
* @throws Will propagate any error thrown by fs.statSync (e.g., file not found).
|
|
8
8
|
*/
|
|
9
|
-
declare const checkLastUpdateTime: (filePath: string) => Date;
|
|
9
|
+
export declare const checkLastUpdateTime: (filePath: string) => Date;
|
|
10
10
|
//#endregion
|
|
11
|
-
export { checkLastUpdateTime };
|
|
12
11
|
//# sourceMappingURL=checkLastUpdateTime.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkLastUpdateTime.d.ts","names":[],"sources":["../../../src/utils/checkLastUpdateTime.ts"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"checkLastUpdateTime.d.ts","names":[],"sources":["../../../src/utils/checkLastUpdateTime.ts"],"mappings":";;;;;;;;qBASa,sBAAmB,qBAAuB"}
|
|
@@ -10,7 +10,6 @@ type ChunkInferenceResult = {
|
|
|
10
10
|
* Translates a single chunk via the OpenAI API.
|
|
11
11
|
* Includes retry logic if the call fails.
|
|
12
12
|
*/
|
|
13
|
-
declare const chunkInference: (system: SystemMessage, messages: Messages, aiOptions?: AIOptions, configuration?: IntlayerConfig, aiClient?: AIClient, aiConfig?: AIConfig) => Promise<ChunkInferenceResult>;
|
|
13
|
+
export declare const chunkInference: (system: SystemMessage, messages: Messages, aiOptions?: AIOptions, configuration?: IntlayerConfig, aiClient?: AIClient, aiConfig?: AIConfig) => Promise<ChunkInferenceResult>;
|
|
14
14
|
//#endregion
|
|
15
|
-
export { chunkInference };
|
|
16
15
|
//# sourceMappingURL=chunkInference.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chunkInference.d.ts","names":[],"sources":["../../../src/utils/chunkInference.ts"],"mappings":";;;;KAWK;EACH;EACA;;;;;;
|
|
1
|
+
{"version":3,"file":"chunkInference.d.ts","names":[],"sources":["../../../src/utils/chunkInference.ts"],"mappings":";;;;KAWK;EACH;EACA;;;;;;qBAOW,iBAAc,QACjB,eAAa,UACX,UAAQ,YACN,WAAS,gBACL,gBAAc,WACnB,UAAQ,WACR,aACV,QAAQ"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
//#region src/utils/fixChunkStartEndChars.d.ts
|
|
2
|
-
declare const fixChunkStartEndChars: (reviewedChunkResult: string, baseChunkContext: string) => string;
|
|
2
|
+
export declare const fixChunkStartEndChars: (reviewedChunkResult: string, baseChunkContext: string) => string;
|
|
3
3
|
//#endregion
|
|
4
|
-
export { fixChunkStartEndChars };
|
|
5
4
|
//# sourceMappingURL=fixChunkStartEndChars.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fixChunkStartEndChars.d.ts","names":[],"sources":["../../../src/utils/fixChunkStartEndChars.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"fixChunkStartEndChars.d.ts","names":[],"sources":["../../../src/utils/fixChunkStartEndChars.ts"],"mappings":";qBAYa,wBAAqB,6BACL"}
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
* @param separator - String inserted between groups. Defaults to `', '`.
|
|
16
16
|
* @returns The grouped string, or an empty string when no lines are provided.
|
|
17
17
|
*/
|
|
18
|
-
declare const formatLineRanges: (lineNumbers: number[], separator?: string) => string;
|
|
18
|
+
export declare const formatLineRanges: (lineNumbers: number[], separator?: string) => string;
|
|
19
19
|
//#endregion
|
|
20
|
-
export { formatLineRanges };
|
|
21
20
|
//# sourceMappingURL=formatLineRanges.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatLineRanges.d.ts","names":[],"sources":["../../../src/utils/formatLineRanges.ts"],"mappings":";;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"formatLineRanges.d.ts","names":[],"sources":["../../../src/utils/formatLineRanges.ts"],"mappings":";;;;;;;;;;;;;;;;;qBAgBa,mBAAgB,uBACN"}
|