marketplace-import-e2e-fixture.ts 501 B

123456789101112
  1. import { addZCodePluginMarketplace } from "../src/plugins.js";
  2. // popover 调用约定:source 为自由文本;pluginStorageRoot 真实运行时由 config 推导,
  3. // 这里显式覆盖到临时目录做隔离,等价「换一个干净工作区做导入」。
  4. export function addViaFacade(source: string, storageRoot: string, workingDirectory: string) {
  5. return addZCodePluginMarketplace({
  6. source,
  7. pluginStorageRoot: storageRoot,
  8. workingDirectory,
  9. skipUserConfig: true,
  10. });
  11. }