dsh-plugin-beyond-simulator 1.0.7

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.
@@ -0,0 +1 @@
1
+ import{existsSync as c}from"node:fs";import{cp as p,mkdir as m}from"node:fs/promises";import{homedir as u}from"node:os";import{join as a}from"node:path";var q="qxqy-simulator-preset",e="wonderland-lua-builder",l=".agent-presets";function d(){return[new URL(`../presets/${e}`,import.meta.url),new URL(`../../agent/${e}`,import.meta.url)].find(t=>c(t))}function f(){return process.env.DSH_HOME||a(u(),".dsh")}function i(r,t,o){try{r.logger?.[t]?.(o)}catch{}}function E(r){(async()=>{let t=d(),o=f(),s=a(o,l,e);try{if(!t)throw new Error(`bundled agent preset "${e}" is missing from the package`);if(c(s)){i(r,"info",`[qxqy-simulator-preset] agent preset "${e}" already installed at ${s}; skipping (delete it to reinstall)`);return}await m(a(o,l),{recursive:!0}),await p(t,s,{recursive:!0}),i(r,"info",`[qxqy-simulator-preset] agent preset "${e}" installed \u2192 ${s}`)}catch(n){i(r,"error",`[qxqy-simulator-preset] failed to install preset "${e}": ${n instanceof Error?n.message:String(n)}`)}})()}export{E as apply,q as name};
@@ -0,0 +1 @@
1
+ import{existsSync as s,readFileSync as e}from"node:fs";var a="qxqy-simulator-skill",d=["skills"],n="qxqy-simulator",r='\u6307\u5BFC\u5982\u4F55\u901A\u8FC7\u5343\u661F\u6C99\u7BB1 UI \u6A21\u62DF\u5668\u63D2\u4EF6\u5B8C\u6210 UI\u2192JSON/GIA \u8F6C\u6362\u4E0E\u5BFC\u5165\u5C1D\u8BD5\u3001\u7F16\u8F91\u5668\u6216\u8BD5\u73A9\u622A\u56FE\u9A8C\u8BC1\u3001AI \u9A71\u52A8\u7684\u4EA4\u4E92\u6D4B\u8BD5\u3002\u5F53\u4F1A\u8BDD\u4E2D\u53EF\u89C1 qxqy_studio_get / qxqy_studio_patch / qxqy_studio_play / qxqy_studio_ui_screenshot / qxqy_studio_play_screenshot / qxqy_studio_load \u5DE5\u5177\uFF0C\u6216\u7528\u6237\u63D0\u5230\u5343\u661F\u6C99\u7BB1\u6A21\u62DF\u5668\u3001"\u6A21\u62DF\u5668"\u6807\u7B7E\u3001UI \u8F6C JSON\u3001GIA \u5BFC\u5165\u5BFC\u51FA\u3001\u5DE5\u4F5C\u533A\u5B58\u6863\u3001\u8BD5\u73A9\u3001\u4EA4\u4E92\u6D4B\u8BD5\u961F\u5217\u65F6\u4F7F\u7528\u3002';function l(){let i=[new URL("../skill.md",import.meta.url),new URL("../../skill/SKILL.md",import.meta.url)].find(o=>s(o));if(!i)throw new Error("simulator skill body is missing");return e(i,"utf8")}function u(t){t.skills.register({name:n,description:r,source:"runtime",content:l()})}export{r as SKILL_DESCRIPTION,n as SKILL_NAME,u as apply,d as inject,a as name};