@intlayer/cli 9.0.0-canary.3 → 9.0.0-canary.5
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/auth/login.cjs +42 -29
- package/dist/cjs/auth/login.cjs.map +1 -1
- package/dist/cjs/cli.cjs +10 -6
- package/dist/cjs/cli.cjs.map +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/init.cjs +192 -2
- package/dist/cjs/init.cjs.map +1 -1
- package/dist/cjs/initBuildOptimization.cjs +81 -0
- package/dist/cjs/initBuildOptimization.cjs.map +1 -0
- package/dist/cjs/initCompiler.cjs +116 -0
- package/dist/cjs/initCompiler.cjs.map +1 -0
- package/dist/cjs/initMCP.cjs +22 -19
- package/dist/cjs/initMCP.cjs.map +1 -1
- package/dist/cjs/initSkills.cjs +21 -18
- package/dist/cjs/initSkills.cjs.map +1 -1
- package/dist/cjs/reviewDoc/reviewDocBlockAware.cjs +1 -1
- package/dist/cjs/translateDoc/translateFile.cjs +1 -1
- package/dist/esm/auth/login.mjs +42 -29
- package/dist/esm/auth/login.mjs.map +1 -1
- package/dist/esm/cli.mjs +10 -6
- package/dist/esm/cli.mjs.map +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/init.mjs +192 -4
- package/dist/esm/init.mjs.map +1 -1
- package/dist/esm/initBuildOptimization.mjs +78 -0
- package/dist/esm/initBuildOptimization.mjs.map +1 -0
- package/dist/esm/initCompiler.mjs +113 -0
- package/dist/esm/initCompiler.mjs.map +1 -0
- package/dist/esm/initMCP.mjs +22 -19
- package/dist/esm/initMCP.mjs.map +1 -1
- package/dist/esm/initSkills.mjs +21 -18
- package/dist/esm/initSkills.mjs.map +1 -1
- package/dist/esm/reviewDoc/reviewDocBlockAware.mjs +1 -1
- package/dist/esm/translateDoc/translateFile.mjs +1 -1
- package/dist/types/auth/login.d.ts +13 -4
- package/dist/types/auth/login.d.ts.map +1 -1
- package/dist/types/cli.d.ts.map +1 -1
- package/dist/types/init.d.ts +1 -1
- package/dist/types/init.d.ts.map +1 -1
- package/dist/types/initBuildOptimization.d.ts +20 -0
- package/dist/types/initBuildOptimization.d.ts.map +1 -0
- package/dist/types/initCompiler.d.ts +18 -0
- package/dist/types/initCompiler.d.ts.map +1 -0
- package/dist/types/initMCP.d.ts +3 -1
- package/dist/types/initMCP.d.ts.map +1 -1
- package/dist/types/initSkills.d.ts +1 -1
- package/dist/types/initSkills.d.ts.map +1 -1
- package/package.json +13 -13
|
@@ -5,12 +5,21 @@ type LoginOptions = {
|
|
|
5
5
|
cmsUrl?: string;
|
|
6
6
|
configOptions?: GetConfigurationOptions;
|
|
7
7
|
/**
|
|
8
|
-
* When false, do not call process.exit(0) after a successful
|
|
9
|
-
*
|
|
10
|
-
* Defaults to true to preserve existing standalone-login behaviour.
|
|
11
|
-
* Access-key login always exits because the user must configure .env first.
|
|
8
|
+
* When false, do not call process.exit(0) after a successful login so the
|
|
9
|
+
* caller can continue (e.g. retry a command inline, or finish an interactive
|
|
10
|
+
* setup). Defaults to true to preserve existing standalone-login behaviour.
|
|
12
11
|
*/
|
|
13
12
|
exitAfter?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Invoked with the access-key credentials when the login flow returns a
|
|
15
|
+
* `clientId` / `clientSecret` pair. When provided, the caller takes ownership
|
|
16
|
+
* of persisting the credentials (e.g. writing them to `.env` and enabling the
|
|
17
|
+
* editor in the config), so the default manual-setup instructions are skipped.
|
|
18
|
+
*/
|
|
19
|
+
onCredentials?: (credentials: {
|
|
20
|
+
clientId: string;
|
|
21
|
+
clientSecret: string;
|
|
22
|
+
}) => void | Promise<void>;
|
|
14
23
|
};
|
|
15
24
|
declare const login: (options?: LoginOptions) => Promise<void>;
|
|
16
25
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login.d.ts","names":[],"sources":["../../../src/auth/login.ts"],"mappings":";;;KAiEK,YAAA;EACH,MAAA;EACA,aAAA,GAAgB,uBAAA;EAFD
|
|
1
|
+
{"version":3,"file":"login.d.ts","names":[],"sources":["../../../src/auth/login.ts"],"mappings":";;;KAiEK,YAAA;EACH,MAAA;EACA,aAAA,GAAgB,uBAAA;EAFD;;;;;EAQf,SAAA;EAAA;;;;;;EAOA,aAAA,IAAiB,WAAA;IACf,QAAA;IACA,YAAA;EAAA,aACW,OAAA;AAAA;AAAA,cAGF,KAAA,GAAe,OAAA,GAAS,YAAA,KAAiB,OAAA"}
|
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":";;;cA4Ca,OAAA;AAAA,KA4IR,UAAA;EACH,MAAA;EACA,OAAA;AAAA;AAAA,KAGU,oBAAA;EACV,OAAA;EACA,GAAA;EACA,OAAA;EACA,OAAA;EACA,UAAA;AAAA,IACE,UAAA;AANJ;;;;;;;;AAAA,cAuEa,MAAA,QAAa,OAAA"}
|
package/dist/types/init.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { InitOptions } from "@intlayer/chokidar/cli";
|
|
|
2
2
|
|
|
3
3
|
//#region src/init.d.ts
|
|
4
4
|
declare const findProjectRoot: (startDir: string) => string;
|
|
5
|
-
declare const init: (projectRoot?: string, options?: InitOptions) => Promise<void>;
|
|
5
|
+
declare const init: (projectRoot?: string, options?: InitOptions, interactive?: boolean) => Promise<void>;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { findProjectRoot, init };
|
|
8
8
|
//# 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":";;;cAsBa,eAAA,GAAmB,QAAA;AAAA,cAmRnB,IAAA,GACX,WAAA,WACA,OAAA,GAAU,WAAA,EACV,WAAA,eAAqB,OAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
//#region src/initBuildOptimization.d.ts
|
|
2
|
+
/** Intlayer build optimization plugin choices for Next.js. */
|
|
3
|
+
type BuildOptimizationPlugin = 'babel' | 'swc';
|
|
4
|
+
/**
|
|
5
|
+
* Interactive prompt to select a build optimization plugin for Next.js and
|
|
6
|
+
* scaffold the required files. The two options are independent — pick one:
|
|
7
|
+
*
|
|
8
|
+
* - `@intlayer/babel` — runs the full compiler pipeline (extract, purge, minify,
|
|
9
|
+
* optimize) through Babel. Installs `@intlayer/babel` and creates a
|
|
10
|
+
* `babel.config.js`.
|
|
11
|
+
* - `@intlayer/swc` — lightweight SWC plugin that rewrites `useIntlayer` imports.
|
|
12
|
+
* Installs only the dependency; `withIntlayer` wires it in automatically, so
|
|
13
|
+
* no config file is required.
|
|
14
|
+
*
|
|
15
|
+
* @param projectRoot - Optional project root; defaults to the current directory.
|
|
16
|
+
*/
|
|
17
|
+
declare const initBuildOptimization: (projectRoot?: string) => Promise<void>;
|
|
18
|
+
//#endregion
|
|
19
|
+
export { BuildOptimizationPlugin, initBuildOptimization };
|
|
20
|
+
//# sourceMappingURL=initBuildOptimization.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"initBuildOptimization.d.ts","names":[],"sources":["../../src/initBuildOptimization.ts"],"mappings":";;KAWY,uBAAA;;;;;AAuBZ;;;;;;;;;cAAa,qBAAA,GACX,WAAA,cACC,OAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
//#region src/initCompiler.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Scaffolds the Intlayer compiler for the current project during interactive
|
|
4
|
+
* init.
|
|
5
|
+
*
|
|
6
|
+
* - **Vite** — nothing to do: the compiler is plugged in directly through the
|
|
7
|
+
* `intlayerCompiler()` plugin in `vite.config.ts`, so this only confirms the
|
|
8
|
+
* setup to the user.
|
|
9
|
+
* - **Next.js** — installs `@intlayer/babel` and writes a `babel.config.js`
|
|
10
|
+
* that runs the extract + optimize compiler passes.
|
|
11
|
+
*
|
|
12
|
+
* In non-interactive init this function is never called, so the compiler setup
|
|
13
|
+
* is left untouched.
|
|
14
|
+
*/
|
|
15
|
+
declare const initCompiler: (projectRoot?: string) => Promise<void>;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { initCompiler };
|
|
18
|
+
//# sourceMappingURL=initCompiler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"initCompiler.d.ts","names":[],"sources":["../../src/initCompiler.ts"],"mappings":";;AAwEA;;;;;;;;;;;;cAAa,YAAA,GAAsB,WAAA,cAAuB,OAAA"}
|
package/dist/types/initMCP.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { Platform } from "@intlayer/chokidar/cli";
|
|
2
|
+
|
|
1
3
|
//#region src/initMCP.d.ts
|
|
2
|
-
declare const initMCP: (projectRoot?: string) => Promise<void>;
|
|
4
|
+
declare const initMCP: (projectRoot?: string, preselectedPlatform?: Platform) => Promise<void>;
|
|
3
5
|
//#endregion
|
|
4
6
|
export { initMCP };
|
|
5
7
|
//# sourceMappingURL=initMCP.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initMCP.d.ts","names":[],"sources":["../../src/initMCP.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"initMCP.d.ts","names":[],"sources":["../../src/initMCP.ts"],"mappings":";;;cAYa,OAAA,GACX,WAAA,WACA,mBAAA,GAAsB,QAAA,KAAQ,OAAA"}
|
|
@@ -7,7 +7,7 @@ declare const PLATFORM_OPTIONS: Array<{
|
|
|
7
7
|
hint: string;
|
|
8
8
|
}>;
|
|
9
9
|
declare const getDetectedPlatform: () => Platform | undefined;
|
|
10
|
-
declare const initSkills: (projectRoot?: string) => Promise<void>;
|
|
10
|
+
declare const initSkills: (projectRoot?: string, preselectedPlatform?: Platform) => Promise<void>;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { PLATFORM_OPTIONS, getDetectedPlatform, initSkills };
|
|
13
13
|
//# sourceMappingURL=initSkills.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initSkills.d.ts","names":[],"sources":["../../src/initSkills.ts"],"mappings":";;;cAuBa,gBAAA,EAAkB,KAAA;EAC7B,KAAA,EAAO,QAAA;EACP,KAAA;EACA,IAAA;AAAA;AAAA,cAOW,mBAAA,QAA0B,QAAA;AAAA,cAiB1B,UAAA,
|
|
1
|
+
{"version":3,"file":"initSkills.d.ts","names":[],"sources":["../../src/initSkills.ts"],"mappings":";;;cAuBa,gBAAA,EAAkB,KAAA;EAC7B,KAAA,EAAO,QAAA;EACP,KAAA;EACA,IAAA;AAAA;AAAA,cAOW,mBAAA,QAA0B,QAAA;AAAA,cAiB1B,UAAA,GACX,WAAA,WACA,mBAAA,GAAsB,QAAA,KAAQ,OAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/cli",
|
|
3
|
-
"version": "9.0.0-canary.
|
|
3
|
+
"version": "9.0.0-canary.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Provides uniform command-line interface scripts for Intlayer, used in packages like intlayer-cli and intlayer.",
|
|
6
6
|
"keywords": [
|
|
@@ -67,23 +67,23 @@
|
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
69
|
"@clack/prompts": "0.11.0",
|
|
70
|
-
"@intlayer/api": "9.0.0-canary.
|
|
71
|
-
"@intlayer/babel": "9.0.0-canary.
|
|
72
|
-
"@intlayer/chokidar": "9.0.0-canary.
|
|
73
|
-
"@intlayer/config": "9.0.0-canary.
|
|
74
|
-
"@intlayer/core": "9.0.0-canary.
|
|
75
|
-
"@intlayer/dictionaries-entry": "9.0.0-canary.
|
|
76
|
-
"@intlayer/remote-dictionaries-entry": "9.0.0-canary.
|
|
77
|
-
"@intlayer/types": "9.0.0-canary.
|
|
78
|
-
"@intlayer/unmerged-dictionaries-entry": "9.0.0-canary.
|
|
70
|
+
"@intlayer/api": "9.0.0-canary.5",
|
|
71
|
+
"@intlayer/babel": "9.0.0-canary.4",
|
|
72
|
+
"@intlayer/chokidar": "9.0.0-canary.5",
|
|
73
|
+
"@intlayer/config": "9.0.0-canary.5",
|
|
74
|
+
"@intlayer/core": "9.0.0-canary.5",
|
|
75
|
+
"@intlayer/dictionaries-entry": "9.0.0-canary.5",
|
|
76
|
+
"@intlayer/remote-dictionaries-entry": "9.0.0-canary.5",
|
|
77
|
+
"@intlayer/types": "9.0.0-canary.5",
|
|
78
|
+
"@intlayer/unmerged-dictionaries-entry": "9.0.0-canary.5",
|
|
79
79
|
"commander": "14.0.3",
|
|
80
80
|
"enquirer": "2.4.1",
|
|
81
81
|
"eventsource": "4.1.0",
|
|
82
82
|
"fast-glob": "3.3.3"
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|
|
85
|
-
"@intlayer/ai": "9.0.0-canary.
|
|
86
|
-
"@types/node": "25.9.
|
|
85
|
+
"@intlayer/ai": "9.0.0-canary.5",
|
|
86
|
+
"@types/node": "25.9.4",
|
|
87
87
|
"@utils/ts-config": "1.0.4",
|
|
88
88
|
"@utils/ts-config-types": "1.0.4",
|
|
89
89
|
"@utils/tsdown-config": "1.0.4",
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"vitest": "4.1.9"
|
|
94
94
|
},
|
|
95
95
|
"peerDependencies": {
|
|
96
|
-
"@intlayer/ai": "9.0.0-canary.
|
|
96
|
+
"@intlayer/ai": "9.0.0-canary.5"
|
|
97
97
|
},
|
|
98
98
|
"peerDependenciesMeta": {
|
|
99
99
|
"@intlayer/ai": {
|