magpie-pi 0.1.2 → 0.2.0

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 CHANGED
@@ -37,6 +37,21 @@ Configuration is created automatically in `~/.local/share/magpie-pi`; manual JSO
37
37
  - `MAGPIE_PI_BUN`: override the Bun executable.
38
38
  - `/logout`: disables the provider without deleting plugin credentials; use `/login` to enable it again.
39
39
 
40
+ ## Embedding
41
+
42
+ Hosts that run Pi through its SDK with one shared model runtime for many sessions (for example a GUI backend) should not load the extension per session. Use the embedding API instead: it starts the plugin host once and returns Pi provider definitions to register in the host's own runtime.
43
+
44
+ ```js
45
+ import {startMagpie, PluginManager} from "magpie-pi/embed";
46
+
47
+ const magpie = await startMagpie(); // {providers, errors, close}
48
+ for (const provider of magpie.providers) modelRuntime.registerProvider(provider.id, provider);
49
+ // After installing or removing plugins with PluginManager, close() and start again to apply them.
50
+ await magpie.close();
51
+ ```
52
+
53
+ Configuration and plugin problems are returned in `errors` instead of being thrown. `startMagpie()` sets `MAGPIE_PI_EMBEDDED=1`, so the Pi extension stays inactive in that process even if a user also installed it as a Pi package. Login uses Pi's `AuthInteraction` protocol, so the host's own login UI drives plugin sign-in.
54
+
40
55
  ## License
41
56
 
42
57
  The project's own license is currently `UNLICENSED`. The extracted host retains its upstream MIT license in [vendor/LICENSE](vendor/LICENSE).
package/README.zh-CN.md CHANGED
@@ -37,6 +37,21 @@ npm 包包含预编译宿主程序,**无需安装 Go,也无需执行构建
37
37
  - `MAGPIE_PI_BUN`:指定 Bun 可执行文件。
38
38
  - `/logout`:停用服务但不删除插件凭据;再次使用时执行 `/login`。
39
39
 
40
+ ## 嵌入使用
41
+
42
+ 通过 SDK 运行 Pi、并且多个会话共用一个模型运行时的宿主程序(例如 GUI 后端),不应在每个会话里加载扩展,而应使用嵌入 API:它只启动一次插件宿主,返回 Pi provider 定义,由宿主注册到自己的运行时中。
43
+
44
+ ```js
45
+ import {startMagpie, PluginManager} from "magpie-pi/embed";
46
+
47
+ const magpie = await startMagpie(); // {providers, errors, close}
48
+ for (const provider of magpie.providers) modelRuntime.registerProvider(provider.id, provider);
49
+ // 用 PluginManager 安装或卸载插件后,close() 再重新启动即可生效。
50
+ await magpie.close();
51
+ ```
52
+
53
+ 配置和插件问题通过 `errors` 返回,不会抛出异常。`startMagpie()` 会设置 `MAGPIE_PI_EMBEDDED=1`,因此即使用户同时把它装成了 Pi 包,扩展在该进程里也不会生效。登录走 Pi 的 `AuthInteraction` 协议,因此由宿主自己的登录界面驱动插件登录。
54
+
40
55
  ## 许可证
41
56
 
42
57
  项目自身暂标为 `UNLICENSED`。抽取的宿主保留 [vendor/LICENSE](vendor/LICENSE) 中的上游 MIT 许可证。
package/bin/magpie-pi CHANGED
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,46 @@
1
+ /** A Pi provider definition, as accepted by `ModelRuntime.registerProvider(id, config)`. */
2
+ export interface MagpieProvider {
3
+ id: string;
4
+ name: string;
5
+ [key: string]: unknown;
6
+ }
7
+
8
+ export interface MagpieHost {
9
+ /** State directory in use (MAGPIE_PI_STATE or ~/.local/share/magpie-pi). */
10
+ state: string;
11
+ configPath: string;
12
+ providers: MagpieProvider[];
13
+ /** Configuration or plugin-host problems; `providers` is empty when there are any. */
14
+ errors: string[];
15
+ /** Stop the plugin host. Safe to call more than once. */
16
+ close(): Promise<void>;
17
+ }
18
+
19
+ /** Also sets MAGPIE_PI_EMBEDDED=1: the Pi extension stays inactive in this process. */
20
+ export function startMagpie(options?: { state?: string; bun?: string }): Promise<MagpieHost>;
21
+
22
+ export function defaultState(): string;
23
+
24
+ export interface MagpiePluginEntry {
25
+ spec?: string;
26
+ target?: string;
27
+ magpieManaged?: boolean;
28
+ }
29
+
30
+ export interface MagpieSearchResult {
31
+ name: string;
32
+ version: string;
33
+ description?: string;
34
+ }
35
+
36
+ export class PluginManager {
37
+ constructor(state: string, options?: { fetcher?: typeof fetch; runner?: unknown });
38
+ cleanup(): Promise<void>;
39
+ search(query: string): Promise<MagpieSearchResult[]>;
40
+ list(): Promise<MagpiePluginEntry[]>;
41
+ /** `confirm` must resolve true for the change to happen; returns a status message. */
42
+ mutate(action: "install" | "remove", input: string, confirm: (name: string) => Promise<boolean>): Promise<string>;
43
+ }
44
+
45
+ /** Validate a community package name with an optional exact version (aliases: cursor, workbuddy). */
46
+ export function parse(input: string): { name: string; version?: string };
@@ -0,0 +1,47 @@
1
+ // Embedding API for hosts that run Pi through its SDK with one shared model runtime across
2
+ // sessions (for example a GUI backend). The Pi extension starts one plugin host per Pi process
3
+ // and registers providers per session; an embedder instead starts the host once, registers the
4
+ // returned providers in its own runtime, and restarts the host to apply plugin changes.
5
+ //
6
+ // import {startMagpie, PluginManager} from "magpie-pi/embed";
7
+ // const magpie = await startMagpie();
8
+ // for (const provider of magpie.providers) modelRuntime.registerProvider(provider.id, provider);
9
+ // ...
10
+ // await magpie.close();
11
+ import {PluginManager} from "./plugins.mjs";
12
+ import {createProviders,defaultState,loadConfig,startBridge} from "./providers.mjs";
13
+
14
+ export {PluginManager,parse} from "./plugins.mjs";
15
+ export {defaultState} from "./providers.mjs";
16
+
17
+ /**
18
+ * Start magpie: mark the process as embedding (MAGPIE_PI_EMBEDDED=1, which keeps the Pi extension
19
+ * inactive in it), clean up deferred plugin deletions, read the config, start the plugin host and build
20
+ * Pi provider definitions. Never throws for configuration or plugin problems: they are returned in
21
+ * `errors` (with no providers) so the embedder keeps working; `close()` is always safe to call.
22
+ *
23
+ * @param {{state?: string, bun?: string}} [options]
24
+ * @returns {Promise<{state: string, configPath: string, providers: any[], errors: string[], close: () => Promise<void>}>}
25
+ */
26
+ export async function startMagpie(options={}){
27
+ // The Pi extension, if also installed (any source), stays inactive in this process.
28
+ process.env.MAGPIE_PI_EMBEDDED="1";
29
+ const state=options.state||defaultState();
30
+ const none=async()=>{};
31
+ await new PluginManager(state).cleanup();
32
+ let loaded;
33
+ try {loaded=await loadConfig(state);}
34
+ catch(e){return {state,configPath:"",providers:[],errors:[String(e)],close:none};}
35
+ const {config,configPath}=loaded;
36
+ if(config.plugins.length===0)return {state,configPath,providers:[],errors:[],close:none};
37
+ let bridge;
38
+ try {bridge=startBridge(state,options.bun);}
39
+ catch(e){return {state,configPath,providers:[],errors:[String(e)],close:none};}
40
+ const close=()=>bridge.close().then(()=>undefined);
41
+ try {
42
+ return {state,configPath,providers:await createProviders(bridge,config,state),errors:[],close};
43
+ }catch(e){
44
+ await close();
45
+ return {state,configPath,providers:[],errors:[String(e)],close:none};
46
+ }
47
+ }
@@ -1,105 +1,29 @@
1
- import {readFile,mkdir,writeFile} from "node:fs/promises";
2
- import {fileURLToPath} from "node:url";
3
1
  import path from "node:path";
4
- import os from "node:os";
5
2
  import type {ExtensionAPI} from "@earendil-works/pi-coding-agent";
6
- // The Pi extension loader exposes the compat entry, not the per-API subpaths.
7
- import {openAICompletionsApi,anthropicMessagesApi} from "@earendil-works/pi-ai/compat";
8
- import {Bridge} from "./bridge.mjs";
9
- import {supervisorPath} from "./platform.mjs";
10
3
  import {registerPlugins,PluginManager} from "./plugins.mjs";
4
+ import {createProviders,defaultState,loadConfig,packageRoot,startBridge} from "./providers.mjs";
11
5
 
12
6
  export default async function(pi:ExtensionAPI){
13
- const root=fileURLToPath(new URL("..",import.meta.url));
14
- const state=process.env.MAGPIE_PI_STATE || path.join(os.homedir(),".local","share","magpie-pi");
7
+ // A host in this process already runs magpie through the embedding API (embed.mjs): stay inactive
8
+ // so providers are not registered twice and no second plugin host starts.
9
+ if(process.env.MAGPIE_PI_EMBEDDED==="1")return;
10
+ const state=defaultState();
15
11
  registerPlugins(pi,state);
16
12
  await new PluginManager(state).cleanup();
17
- const configPath=path.join(state,"config.json");
18
- let source:string;
19
- try {source=await readFile(configPath,"utf8");}
20
- catch(error){
21
- if((error as NodeJS.ErrnoException).code!=="ENOENT")throw error;
22
- await mkdir(state,{recursive:true,mode:0o700});
23
- try {await writeFile(configPath,JSON.stringify({plugins:[],accounts:{},opencode:{}},null,2)+"\n",{flag:"wx",mode:0o600});}
24
- catch(error){if((error as NodeJS.ErrnoException).code!=="EEXIST")throw error;}
25
- source=await readFile(configPath,"utf8");
26
- }
27
- const config=JSON.parse(source);
28
- if(!config||!Array.isArray(config.plugins))throw new Error(`magpie-pi: ${configPath} must contain a plugins array`);
13
+ const {config,configPath}=await loadConfig(state);
29
14
  if(config.plugins.length===0){
30
15
  pi.on("session_start",async(_event,ctx)=>{
31
- if(ctx.hasUI)ctx.ui.notify(`No magpie-pi providers configured. Use /magpie-plugins to search and install plugins, or edit ${configPath}; restart Pi after configuration. See ${path.join(root,"README.md")}`,"info");
16
+ if(ctx.hasUI)ctx.ui.notify(`No magpie-pi providers configured. Use /magpie-plugins to search and install plugins, or edit ${configPath}; restart Pi after configuration. See ${path.join(packageRoot,"README.md")}`,"info");
32
17
  });
33
18
  return;
34
19
  }
35
- let executable:string;
36
- try {executable=supervisorPath(root);}catch(e){
20
+ let bridge:ReturnType<typeof startBridge>;
21
+ try {bridge=startBridge(state);}catch(e){
37
22
  pi.on("session_start",async(_event,ctx)=>{if(ctx.hasUI)ctx.ui.notify(String(e),"error")});
38
23
  return;
39
24
  }
40
- const bridge=new Bridge(executable,path.join(root,"vendor","host.js"),state,process.env.MAGPIE_PI_BUN);
41
25
  pi.on("session_shutdown",async()=>{await bridge.close();});
42
26
  try {
43
- const initialized=await bridge.call("init",{plugins:config.plugins,config:config.opencode || {},authPath:path.join(state,"plugin-auth.json"),directory:state});
44
- for(const p of initialized.plugins)if(p.error)throw new Error(p.error);
45
- const rows=await bridge.call("providers");
46
- const completions=openAICompletionsApi();
47
- const anthropic=anthropicMessagesApi();
48
- for(const initial of rows){
49
- let row=initial;
50
- const id="magpie-"+row.id;
51
- const models=()=>row.models.filter((m:any)=>["@ai-sdk/openai-compatible","@ai-sdk/anthropic"].includes(m.npm)).map((m:any)=>({
52
- type:"chat",id:m.id,name:m.name||m.id,provider:id,
53
- api:m.npm==="@ai-sdk/anthropic"?"anthropic-messages":"openai-completions",
54
- baseUrl:m.url||row.api,reasoning:m.reasoning,input:m.image?["text","image"]:["text"],
55
- cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:m.context||128000,maxTokens:m.output||8192
56
- }));
57
- const stream=(simple:boolean)=>(model:any,context:any,options:any={})=>{
58
- const m=row.models.find((m:any)=>m.id===model.id);
59
- const api=model.api==="anthropic-messages"?anthropic:completions;
60
- return api[simple?"streamSimple":"stream"]({...model,id:m.apiId||model.id},context,{...options,apiKey:"plugin-owned",fetch:bridge.fetch(row.id,config.accounts?.[row.id],m.npm,m.id)});
61
- };
62
- pi.registerProvider({
63
- id,name:row.name||row.id,
64
- auth:{apiKey:{name:"Plugin-managed account",
65
- resolve:async({credential})=>credential?.key==="plugin-owned"&&row.signedIn?{auth:{apiKey:"plugin-owned"}}:undefined,
66
- login:async interaction=>{
67
- const method=Number(await interaction.prompt({type:"select",message:"Sign-in method",options:row.methods.map((m:any,i:number)=>({id:String(i),label:m.label}))}));
68
- const m=row.methods[method];let result;
69
- const inputs:Record<string,string>={};
70
- while(true){
71
- const {prompt}=await bridge.call("prompt",{provider:row.id,method,inputs},interaction.signal);
72
- if(!prompt)break;
73
- const value=await interaction.prompt(prompt.type==="select"?{
74
- type:"select",message:prompt.message,options:prompt.options.map((o:any)=>({id:o.value,label:o.label,description:o.hint}))
75
- }:{type:"secret",message:prompt.message,placeholder:prompt.placeholder});
76
- const {error}=await bridge.call("validate",{provider:row.id,method,key:prompt.key,value},interaction.signal);
77
- if(error){interaction.notify({type:"info",message:error});continue;}
78
- inputs[prompt.key]=value;
79
- }
80
- if(m.type==="api"){
81
- const key=m.keyless||m.keyAsked?"":await interaction.prompt({type:"secret",message:"API key"});
82
- result=await bridge.call("apiKey",{provider:row.id,method,key,inputs},interaction.signal);
83
- }else{
84
- const a=await bridge.call("authorize",{provider:row.id,method,inputs},interaction.signal);
85
- if(!a.ok)throw new Error(a.error||"Sign-in failed");
86
- if(a.url)interaction.notify({type:"auth_url",url:a.url,instructions:a.instructions});
87
- const code=a.method==="code"?await interaction.prompt({type:"manual_code",message:a.instructions||"Authorization code"}):undefined;
88
- result=await bridge.call("callback",{session:a.session,code},interaction.signal);
89
- }
90
- if(!result.ok)throw new Error(result.error||"Sign-in failed");
91
- row=(await bridge.call("providers")).find((r:any)=>r.id===row.id);
92
- return {type:"api_key",key:"plugin-owned"};
93
- }}},
94
- getModels:models,
95
- refreshModels:async context=>{
96
- if(!context.allowNetwork)return;
97
- const next=(await bridge.call("providers",{},context.signal)).find((r:any)=>r.id===row.id);
98
- if(!next||next.fellBack)throw new Error(next?.listError||"Model discovery failed");
99
- await context.publish({update:()=>{row=next}});
100
- },
101
- stream:stream(false),streamSimple:stream(true)
102
- });
103
- }
27
+ for(const provider of await createProviders(bridge,config,state))pi.registerProvider(provider as any);
104
28
  }catch(e){await bridge.close();pi.on("session_start",async(_event,ctx)=>{if(ctx.hasUI)ctx.ui.notify(String(e)+"; use /magpie-plugins to fix the configuration","error")});}
105
29
  }
@@ -0,0 +1,106 @@
1
+ // Shared by the Pi extension (index.ts) and the embedding API (embed.mjs): state/config handling,
2
+ // host startup and Pi provider definitions. Behavior must stay identical for both entry points.
3
+ import {readFile,mkdir,writeFile} from "node:fs/promises";
4
+ import {fileURLToPath} from "node:url";
5
+ import path from "node:path";
6
+ import os from "node:os";
7
+ // The Pi extension loader exposes the compat entry, not the per-API subpaths.
8
+ import {openAICompletionsApi,anthropicMessagesApi} from "@earendil-works/pi-ai/compat";
9
+ import {Bridge} from "./bridge.mjs";
10
+ import {supervisorPath} from "./platform.mjs";
11
+
12
+ export const packageRoot=fileURLToPath(new URL("..",import.meta.url));
13
+
14
+ export function defaultState(){
15
+ return process.env.MAGPIE_PI_STATE || path.join(os.homedir(),".local","share","magpie-pi");
16
+ }
17
+
18
+ /** Read config.json, creating a private empty one on first use. */
19
+ export async function loadConfig(state){
20
+ const configPath=path.join(state,"config.json");
21
+ let source;
22
+ try {source=await readFile(configPath,"utf8");}
23
+ catch(error){
24
+ if(error.code!=="ENOENT")throw error;
25
+ await mkdir(state,{recursive:true,mode:0o700});
26
+ try {await writeFile(configPath,JSON.stringify({plugins:[],accounts:{},opencode:{}},null,2)+"\n",{flag:"wx",mode:0o600});}
27
+ catch(error){if(error.code!=="EEXIST")throw error;}
28
+ source=await readFile(configPath,"utf8");
29
+ }
30
+ const config=JSON.parse(source);
31
+ if(!config||!Array.isArray(config.plugins))throw new Error(`magpie-pi: ${configPath} must contain a plugins array`);
32
+ return {config,configPath};
33
+ }
34
+
35
+ /** Start the plugin host for a non-empty config. Throws if the supervisor is unavailable. */
36
+ export function startBridge(state,bun=process.env.MAGPIE_PI_BUN){
37
+ return new Bridge(supervisorPath(packageRoot),path.join(packageRoot,"vendor","host.js"),state,bun);
38
+ }
39
+
40
+ /**
41
+ * Initialize the configured plugins and return Pi provider definitions (`registerProvider` input).
42
+ * Throws on plugin initialization errors; the caller closes the bridge.
43
+ */
44
+ export async function createProviders(bridge,config,state){
45
+ const initialized=await bridge.call("init",{plugins:config.plugins,config:config.opencode || {},authPath:path.join(state,"plugin-auth.json"),directory:state});
46
+ for(const p of initialized.plugins)if(p.error)throw new Error(p.error);
47
+ const rows=await bridge.call("providers");
48
+ const completions=openAICompletionsApi();
49
+ const anthropic=anthropicMessagesApi();
50
+ return rows.map(initial=>{
51
+ let row=initial;
52
+ const id="magpie-"+row.id;
53
+ const models=()=>row.models.filter(m=>["@ai-sdk/openai-compatible","@ai-sdk/anthropic"].includes(m.npm)).map(m=>({
54
+ type:"chat",id:m.id,name:m.name||m.id,provider:id,
55
+ api:m.npm==="@ai-sdk/anthropic"?"anthropic-messages":"openai-completions",
56
+ baseUrl:m.url||row.api,reasoning:m.reasoning,input:m.image?["text","image"]:["text"],
57
+ cost:{input:0,output:0,cacheRead:0,cacheWrite:0},contextWindow:m.context||128000,maxTokens:m.output||8192
58
+ }));
59
+ const stream=simple=>(model,context,options={})=>{
60
+ const m=row.models.find(m=>m.id===model.id);
61
+ const api=model.api==="anthropic-messages"?anthropic:completions;
62
+ return api[simple?"streamSimple":"stream"]({...model,id:m.apiId||model.id},context,{...options,apiKey:"plugin-owned",fetch:bridge.fetch(row.id,config.accounts?.[row.id],m.npm,m.id)});
63
+ };
64
+ return {
65
+ id,name:row.name||row.id,
66
+ auth:{apiKey:{name:"Plugin-managed account",
67
+ resolve:async({credential})=>credential?.key==="plugin-owned"&&row.signedIn?{auth:{apiKey:"plugin-owned"}}:undefined,
68
+ login:async interaction=>{
69
+ const method=Number(await interaction.prompt({type:"select",message:"Sign-in method",options:row.methods.map((m,i)=>({id:String(i),label:m.label}))}));
70
+ const m=row.methods[method];let result;
71
+ const inputs={};
72
+ while(true){
73
+ const {prompt}=await bridge.call("prompt",{provider:row.id,method,inputs},interaction.signal);
74
+ if(!prompt)break;
75
+ const value=await interaction.prompt(prompt.type==="select"?{
76
+ type:"select",message:prompt.message,options:prompt.options.map(o=>({id:o.value,label:o.label,description:o.hint}))
77
+ }:{type:"secret",message:prompt.message,placeholder:prompt.placeholder});
78
+ const {error}=await bridge.call("validate",{provider:row.id,method,key:prompt.key,value},interaction.signal);
79
+ if(error){interaction.notify({type:"info",message:error});continue;}
80
+ inputs[prompt.key]=value;
81
+ }
82
+ if(m.type==="api"){
83
+ const key=m.keyless||m.keyAsked?"":await interaction.prompt({type:"secret",message:"API key"});
84
+ result=await bridge.call("apiKey",{provider:row.id,method,key,inputs},interaction.signal);
85
+ }else{
86
+ const a=await bridge.call("authorize",{provider:row.id,method,inputs},interaction.signal);
87
+ if(!a.ok)throw new Error(a.error||"Sign-in failed");
88
+ if(a.url)interaction.notify({type:"auth_url",url:a.url,instructions:a.instructions});
89
+ const code=a.method==="code"?await interaction.prompt({type:"manual_code",message:a.instructions||"Authorization code"}):undefined;
90
+ result=await bridge.call("callback",{session:a.session,code},interaction.signal);
91
+ }
92
+ if(!result.ok)throw new Error(result.error||"Sign-in failed");
93
+ row=(await bridge.call("providers")).find(r=>r.id===row.id);
94
+ return {type:"api_key",key:"plugin-owned"};
95
+ }}},
96
+ getModels:models,
97
+ refreshModels:async context=>{
98
+ if(!context.allowNetwork)return;
99
+ const next=(await bridge.call("providers",{},context.signal)).find(r=>r.id===row.id);
100
+ if(!next||next.fellBack)throw new Error(next?.listError||"Model discovery failed");
101
+ await context.publish({update:()=>{row=next}});
102
+ },
103
+ stream:stream(false),streamSimple:stream(true)
104
+ };
105
+ });
106
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "magpie-pi",
3
- "version": "0.1.2",
3
+ "version": "0.2.0",
4
4
  "description": "Magpie community plugin integration for Pi",
5
5
  "license": "UNLICENSED",
6
6
  "keywords": [
@@ -16,19 +16,33 @@
16
16
  ],
17
17
  "repository": {
18
18
  "type": "git",
19
- "url": "https://github.com/arklee/magpie-pi.git"
19
+ "url": "https://github.com/arklee/magpie-pi.git",
20
+ "directory": "packages/magpie-pi"
20
21
  },
21
22
  "type": "module",
23
+ "exports": {
24
+ "./embed": {
25
+ "types": "./extension/embed.d.ts",
26
+ "default": "./extension/embed.mjs"
27
+ },
28
+ "./extension/*": "./extension/*",
29
+ "./package.json": "./package.json"
30
+ },
22
31
  "pi": {
23
32
  "extensions": [
24
33
  "./extension/index.ts"
25
34
  ]
26
35
  },
27
36
  "peerDependencies": {
28
- "@earendil-works/pi-ai": "1.6.0",
29
- "@earendil-works/pi-coding-agent": "1.6.0"
37
+ "@earendil-works/pi-ai": "~1.6.0",
38
+ "@earendil-works/pi-coding-agent": "~1.6.0"
30
39
  },
31
40
  "scripts": {
41
+ "build": "node scripts/build.mjs",
42
+ "build:all": "node scripts/build.mjs --all",
43
+ "verify:extraction": "node scripts/extraction.mjs",
44
+ "test:provider": "bun test tests/provider.test.ts",
45
+ "check": "npm run verify:extraction && npm run build && npm test && npm run test:provider && npm run typecheck && go vet ./... && go test ./...",
32
46
  "test": "node --test tests/*.test.mjs",
33
47
  "typecheck": "npm exec --yes --package typescript@7.0.2 -- tsc --noEmit --allowJs --skipLibCheck --module nodenext --moduleResolution nodenext --target es2022 extension/index.ts"
34
48
  }