@fastgpt-plugin/cli 0.1.0-alpha.4 → 0.1.0-alpha.6

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.
@@ -1 +1 @@
1
- import{b as e}from"./index.js";const t=globalThis.process.getBuiltinModule(`node:path`),n=e(`rolldown-plugin-dts:tsc-context`);function r(){return{programs:[],files:new Map,projects:new Map}}function i(e,r){r=t.resolve(r).replaceAll(`\\`,`/`),n(`invalidating context file: ${r}`),e.files.delete(r),e.programs=e.programs.filter(e=>!e.getSourceFiles().some(e=>e.fileName===r)),e.projects.clear()}const a=r();export{a as n,i as r,r as t};
1
+ import{y as e}from"./index.js";const t=globalThis.process.getBuiltinModule(`node:path`),n=e(`rolldown-plugin-dts:tsc-context`);function r(){return{programs:[],files:new Map,projects:new Map}}function i(e,r){r=t.resolve(r).replaceAll(`\\`,`/`),n(`invalidating context file: ${r}`),e.files.delete(r),e.programs=e.programs.filter(e=>!e.getSourceFiles().some(e=>e.fileName===r)),e.projects.clear()}const a=r();export{a as n,i as r,r as t};
@@ -1,4 +1,4 @@
1
- import{i as e}from"./index.js";import{builtinModules as t,createRequire as n}from"node:module";import r from"node:path";import i from"node:process";import{spawn as a}from"node:child_process";import o,{existsSync as s}from"node:fs";import{tmpdir as c}from"node:os";import l from"node:crypto";import{fileURLToPath as u,pathToFileURL as d}from"node:url";import{Buffer as f}from"node:buffer";import.meta.url;function p(e,t){if(e.preset===`bundle-require`)return t;if(e.preset===`jiti`){let n=r.extname(e.path);if(t&&typeof t==`object`&&t[Symbol.toStringTag]===`Module`&&Object.keys(t).length===0)return n===`.mjs`?t:{}}return t&&typeof t==`object`&&`default`in t?t.default:t}function m(e){if(!e)return`index.ts`;if(e instanceof URL)return e.protocol===`file:`?u(e):e.href;if(typeof e==`string`){if(!e.startsWith(`file:`))return e;try{return u(e)}catch{try{return u(new URL(e))}catch{return e}}}return String(e)}function h(e={}){let t={path:r.resolve(i.cwd(),m(e.path)),debug:e.debug||!1,preset:e.preset||`none`,inputOptions:e.inputOptions,outputOptions:e.outputOptions};if(!o.existsSync(t.path))throw Error(`[unrun] File not found: ${t.path}`);if(!new Set([`none`,`jiti`,`bundle-require`]).has(t.preset))throw Error(`[unrun] Invalid preset "${t.preset}" (expected: none | jiti | bundle-require)`);return t}const g=new Set([...t,...t.map(e=>`node:${e}`)]);function _(e){return e?g.has(e)||e.startsWith(`node:`):!1}function v(e){let t=r.dirname(e.path),n=e=>{let n=y(e);if(!n)return!1;let i=t;for(;;){if(s(r.join(i,`node_modules`,n)))return!0;let e=r.dirname(i);if(e===i)break;i=e}return!1};return function(e){return!e||e.startsWith(`\0`)||e.startsWith(`.`)||e.startsWith(`#`)||r.isAbsolute(e)?!1:_(e)?!0:!!n(e)}}function y(e){if(!e)return;if(e.startsWith(`@`)){let t=e.split(`/`);return t.length>=2?`${t[0]}/${t[1]}`:void 0}let[t]=e.split(`/`);return t||void 0}const b=`(function(){
1
+ import{r as e}from"./index.js";import{builtinModules as t,createRequire as n}from"node:module";import r from"node:path";import i from"node:process";import{spawn as a}from"node:child_process";import o,{existsSync as s}from"node:fs";import{tmpdir as c}from"node:os";import l from"node:crypto";import{fileURLToPath as u,pathToFileURL as d}from"node:url";import{Buffer as f}from"node:buffer";import.meta.url;function p(e,t){if(e.preset===`bundle-require`)return t;if(e.preset===`jiti`){let n=r.extname(e.path);if(t&&typeof t==`object`&&t[Symbol.toStringTag]===`Module`&&Object.keys(t).length===0)return n===`.mjs`?t:{}}return t&&typeof t==`object`&&`default`in t?t.default:t}function m(e){if(!e)return`index.ts`;if(e instanceof URL)return e.protocol===`file:`?u(e):e.href;if(typeof e==`string`){if(!e.startsWith(`file:`))return e;try{return u(e)}catch{try{return u(new URL(e))}catch{return e}}}return String(e)}function h(e={}){let t={path:r.resolve(i.cwd(),m(e.path)),debug:e.debug||!1,preset:e.preset||`none`,inputOptions:e.inputOptions,outputOptions:e.outputOptions};if(!o.existsSync(t.path))throw Error(`[unrun] File not found: ${t.path}`);if(!new Set([`none`,`jiti`,`bundle-require`]).has(t.preset))throw Error(`[unrun] Invalid preset "${t.preset}" (expected: none | jiti | bundle-require)`);return t}const g=new Set([...t,...t.map(e=>`node:${e}`)]);function _(e){return e?g.has(e)||e.startsWith(`node:`):!1}function v(e){let t=r.dirname(e.path),n=e=>{let n=y(e);if(!n)return!1;let i=t;for(;;){if(s(r.join(i,`node_modules`,n)))return!0;let e=r.dirname(i);if(e===i)break;i=e}return!1};return function(e){return!e||e.startsWith(`\0`)||e.startsWith(`.`)||e.startsWith(`#`)||r.isAbsolute(e)?!1:_(e)?!0:!!n(e)}}function y(e){if(!e)return;if(e.startsWith(`@`)){let t=e.split(`/`);return t.length>=2?`${t[0]}/${t[1]}`:void 0}let[t]=e.split(`/`);return t||void 0}const b=`(function(){
2
2
  function __unrun__fmt(names, getter, np){
3
3
  var onlyDefault = names.length === 1 && names[0] === "default";
4
4
  var o = np ? Object.create(null) : {};