@alenfitz/spec-copilot 2.4.0 → 2.5.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 +23 -7
- package/README.zh-CN.md +24 -7
- package/adapters/index.js +3 -3
- package/bin/cli.js +3 -3
- package/bin/e2e-smoke.js +3 -3
- package/bin/frontend-checks.js +3 -3
- package/bin/guard.js +11 -0
- package/commands/spec:smoke.md +0 -7
- package/framework/AGENTS.md.template +6 -6
- package/framework/CHANGELOG.md +30 -12
- package/framework/VERSION +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -102,22 +102,38 @@ npx @alenfitz/spec-copilot gate <name> smoke
|
|
|
102
102
|
| Gate | Checks |
|
|
103
103
|
|------|--------|
|
|
104
104
|
| `apply` | Spec completeness + task interleaving + frontend task granularity |
|
|
105
|
-
| `smoke` | **Build verification** + **skeleton detection** + TS any abuse + **
|
|
105
|
+
| `smoke` | **Build verification** + **skeleton detection** + TS any abuse + **E2E browser smoke** |
|
|
106
106
|
| `review` | Smoke sentinel + feature coverage + dead code + stub handlers + hype language |
|
|
107
107
|
| `archive` | Review sentinel + spec audit conclusion |
|
|
108
108
|
|
|
109
|
-
### E2E Browser Smoke (v2.3.0
|
|
109
|
+
### E2E Browser Smoke (v2.3.0)
|
|
110
110
|
|
|
111
|
-
|
|
111
|
+
Playwright-based end-to-end verification — catches "compiles but doesn't work" issues:
|
|
112
112
|
|
|
113
113
|
- **Auto-detects** tech stack (Spring Boot + Vue3, Vite, etc.) and starts dev servers
|
|
114
114
|
- **Spec-driven** route extraction from spec.md + project router files
|
|
115
115
|
- **Checks per page**: white screen, uncaught JS errors, API failures, framework error overlays
|
|
116
|
-
- **
|
|
117
|
-
- **Auto mode**: playwright runs all pages → auth-gated pages retried via CDP engine
|
|
118
|
-
- **Zero config** for common stacks, flags: `--headed`, `--base-url`, `--engine auto|playwright|opencli`, `--no-e2e`
|
|
116
|
+
- **Zero config** for common stacks, optional flags: `--headed`, `--base-url`, `--no-e2e`
|
|
119
117
|
|
|
120
|
-
Uses system-installed Chrome — no extra installation needed.
|
|
118
|
+
Uses system-installed Chrome — no extra installation needed. Just have Chrome on your machine.
|
|
119
|
+
|
|
120
|
+
### Guard System (v2.5.0) — Code-Enforced Guardrails
|
|
121
|
+
|
|
122
|
+
AI tools ignore prompt-based rules. Guard moves critical constraints into git pre-commit hooks that **no AI tool can bypass**:
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
npx @alenfitz/spec-copilot guard install # Install pre-commit hook
|
|
126
|
+
npx @alenfitz/spec-copilot guard status # View protection status
|
|
127
|
+
npx @alenfitz/spec-copilot guard lock # Lock files by phase
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
**What the hook blocks:**
|
|
131
|
+
- ❌ Modifying `spec.md` after approval (auto-locked when gate passes)
|
|
132
|
+
- ❌ Modifying `domain-rules.md` / `project-context.md` (permanently protected)
|
|
133
|
+
- ❌ Committing skeleton `.vue` components (placeholder-only)
|
|
134
|
+
- ❌ Skipping smoke gate before review
|
|
135
|
+
|
|
136
|
+
Works with **all AI tools**: Claude Code, Cursor, Windsurf, Copilot, Cline, opencode. Human emergency override: `git commit --no-verify`.
|
|
121
137
|
|
|
122
138
|
## Complexity Tiers
|
|
123
139
|
|
package/README.zh-CN.md
CHANGED
|
@@ -103,22 +103,39 @@ npx @alenfitz/spec-copilot gate <变更名> smoke
|
|
|
103
103
|
| 门禁 | 检查项 |
|
|
104
104
|
|------|--------|
|
|
105
105
|
| `apply` | Spec 完整性 + 前后端 task 交织度 + 前端 task 粒度 |
|
|
106
|
-
| `smoke` | **构建验证** + **骨架检测** + TS any 泛滥 +
|
|
106
|
+
| `smoke` | **构建验证** + **骨架检测** + TS any 泛滥 + **E2E 浏览器冒烟** |
|
|
107
107
|
| `review` | smoke 哨兵 + 功能点覆盖 + 死代码 + stub handler + 嗨语言 |
|
|
108
108
|
| `archive` | review 哨兵 + spec 审查结论 |
|
|
109
109
|
|
|
110
|
-
### E2E 浏览器冒烟(v2.3.0
|
|
110
|
+
### E2E 浏览器冒烟(v2.3.0)
|
|
111
111
|
|
|
112
|
-
|
|
112
|
+
基于 Playwright 的端到端浏览器验证 — 抓住"能编译但不能用"的问题:
|
|
113
113
|
|
|
114
114
|
- **自动检测**技术栈(Spring Boot + Vue3、Vite 等)并启动开发服务器
|
|
115
115
|
- **Spec 驱动**路由提取:从 spec.md + 项目 router 文件自动生成测试页面
|
|
116
116
|
- **逐页面检查**:白屏、未捕获 JS 异常、API 连接失败、框架错误遮罩
|
|
117
|
-
-
|
|
118
|
-
- **auto 模式**:playwright 跑全量 → 登录重定向页面自动通过 CDP 引擎重试
|
|
119
|
-
- **零配置**适配常见栈,flags:`--headed`、`--base-url`、`--engine auto|playwright|opencli`、`--no-e2e`
|
|
117
|
+
- **零配置**适配常见栈,可选 flags:`--headed`、`--base-url`、`--no-e2e`
|
|
120
118
|
|
|
121
|
-
使用系统已安装的 Chrome —
|
|
119
|
+
使用系统已安装的 Chrome — 无需额外安装。只要电脑有 Chrome 即可。
|
|
120
|
+
|
|
121
|
+
### Guard 代码级护栏(v2.5.0)
|
|
122
|
+
|
|
123
|
+
AI 工具会无视提示词中的"铁律"。Guard 把关键约束搬到 git pre-commit hook,**所有 AI 工具绕不过**:
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
npx @alenfitz/spec-copilot guard install # 安装 pre-commit hook
|
|
127
|
+
npx @alenfitz/spec-copilot guard status # 查看保护状态
|
|
128
|
+
npx @alenfitz/spec-copilot guard lock # 按阶段锁定文件
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
**Hook 自动拦截:**
|
|
132
|
+
- ❌ 审批后修改 `spec.md`(gate 通过后自动锁定)
|
|
133
|
+
- ❌ 修改 `domain-rules.md` / `project-context.md`(永久保护)
|
|
134
|
+
- ❌ 提交骨架 `.vue` 组件(仅占位符)
|
|
135
|
+
- ❌ 跳过 smoke 直接 review
|
|
136
|
+
|
|
137
|
+
**所有 AI 工具通用**:Claude Code / Cursor / Windsurf / Copilot / Cline / opencode。
|
|
138
|
+
人类紧急操作:`git commit --no-verify`。
|
|
122
139
|
|
|
123
140
|
## 复杂度分级
|
|
124
141
|
|
package/adapters/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @alenfitz/spec-copilot v2.
|
|
2
|
+
* @alenfitz/spec-copilot v2.5.0
|
|
3
3
|
* Copyright (c) 2026 alenfitz. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* This file is proprietary and obfuscated. Reverse engineering, decompilation,
|
|
6
6
|
* disassembly, or unauthorized redistribution of any kind is strictly prohibited.
|
|
7
7
|
* Source code is NOT licensed under MIT/Apache and is NOT available for derivative work.
|
|
8
8
|
*
|
|
9
|
-
* Bugs / feature requests: https://github.com/Alenfitz/
|
|
9
|
+
* Bugs / feature requests: https://github.com/Alenfitz/spec_copilot/issues
|
|
10
10
|
*/
|
|
11
|
-
function _0x57b3(_0x28b98e,_0x3a8079){_0x28b98e=_0x28b98e-(0x1*-0x11b5+-0xdb6+0x4ac*0x7);const _0x315453=_0x5936();let _0x6bb481=_0x315453[_0x28b98e];if(_0x57b3['rxSwWP']===undefined){var _0x2f1a29=function(_0x3a247c){const _0xe55c7c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xac95e9='',_0x2eb925='',_0x572c52=_0xac95e9+_0x2f1a29,_0x308d65=(''+function(){return-0xd*-0x156+-0x7d*-0x2f+-0x2851;})['indexOf']('\x0a')!==-(-0x1*0x1ab3+0xe82+0xc32);for(let _0x10ba35=-0x61d+0x4a1+0x4*0x5f,_0x2ea835,_0x4727bb,_0x500499=0x233d+0x259d*0x1+0x19*-0x2ea;_0x4727bb=_0x3a247c['charAt'](_0x500499++);~_0x4727bb&&(_0x2ea835=_0x10ba35%(-0x119*0x19+0x1c6d+0x1f*-0x8)?_0x2ea835*(0xea1+-0x1b7d+-0xd1c*-0x1)+_0x4727bb:_0x4727bb,_0x10ba35++%(0x194e+0x941+-0x228b))?_0xac95e9+=_0x308d65||_0x572c52['charCodeAt'](_0x500499+(0x3*0x90f+0x55e*-0x2+-0x1067))-(0x9bd+-0x1*0x1d09+-0x21*-0x96)!==-0x13*0x49+0x22e+0x33d?String['fromCharCode'](0x5d2*0x1+-0x64a+0xf*0x19&_0x2ea835>>(-(0x2081+0x201+-0x2280)*_0x10ba35&0x1f8c+0x1*0x89f+0x2825*-0x1)):_0x10ba35:-0x104d*0x1+-0x22da+0xf*0x369){_0x4727bb=_0xe55c7c['indexOf'](_0x4727bb);}for(let _0x43e764=0x163e+0x1*-0x222f+0xbf1,_0x33a20a=_0xac95e9['length'];_0x43e764<_0x33a20a;_0x43e764++){_0x2eb925+='%'+('00'+_0xac95e9['charCodeAt'](_0x43e764)['toString'](-0x1*-0x1749+0x1313+-0x2a4c))['slice'](-(-0x38b*-0x1+0x710+0xa99*-0x1));}return decodeURIComponent(_0x2eb925);};_0x57b3['pWQveV']=_0x2f1a29,_0x57b3['LNluXr']={},_0x57b3['rxSwWP']=!![];}const _0x3147a8=_0x315453[-0x52*0x5f+-0x165c+-0x2*-0x1a65],_0x5c7b17=_0x28b98e+_0x3147a8,_0x5664b6=_0x57b3['LNluXr'][_0x5c7b17];if(!_0x5664b6){const _0x52f457=function(_0x2d3f19){this['TVAoYx']=_0x2d3f19,this['mJoLia']=[0x37*0x67+-0x572*-0x2+-0x2104*0x1,0x183+0xfd0+-0x1153,-0x567+0xa+0x55d],this['kBcZrE']=function(){return'newState';},this['ORfEVY']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['qznEPC']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x52f457['prototype']['OCcXar']=function(){const _0x4d313b=new RegExp(this['ORfEVY']+this['qznEPC']),_0x5f292d=_0x4d313b['test'](this['kBcZrE']['toString']())?--this['mJoLia'][0x1a5*-0x3+-0xd6c+0x4*0x497]:--this['mJoLia'][0x1*0xf21+0x58*-0xb+-0x53*0x23];return this['oQtvWP'](_0x5f292d);},_0x52f457['prototype']['oQtvWP']=function(_0x3b3232){if(!Boolean(~_0x3b3232))return _0x3b3232;return this['hYPvuL'](this['TVAoYx']);},_0x52f457['prototype']['hYPvuL']=function(_0x786ac2){for(let _0x59e9ff=0x10*-0x1e7+-0x2*-0xccc+0x5*0xf8,_0x297a41=this['mJoLia']['length'];_0x59e9ff<_0x297a41;_0x59e9ff++){this['mJoLia']['push'](Math['round'](Math['random']())),_0x297a41=this['mJoLia']['length'];}return _0x786ac2(this['mJoLia'][0xf9e*0x1+-0x1*0x264b+0x16ad]);},(''+function(){return 0x1*-0x145d+-0x1de*0x2+-0x1*-0x1819;})['indexOf']('\x0a')===-(0x5cd+0x1a2d*0x1+0x1ff9*-0x1)&&new _0x52f457(_0x57b3)['OCcXar'](),_0x6bb481=_0x57b3['pWQveV'](_0x6bb481),_0x57b3['LNluXr'][_0x5c7b17]=_0x6bb481;}else _0x6bb481=_0x5664b6;return _0x6bb481;}const _0x207fd7=_0x57b3,_0x357ac9=_0x57b3;(function(_0x46e15f,_0x48b88c){const _0x107129={_0x253126:0x1e6,_0x51f44e:0x1d0,_0x5b05df:0x1a7,_0x50e9a0:0x1f5,_0x3c72ce:0x1be},_0x2ff489=_0x57b3,_0x20778f=_0x57b3,_0x461373=_0x46e15f();while(!![]){try{const _0x25b868=parseInt(_0x2ff489(_0x107129._0x253126))/(-0xc71+0x1*0x1e63+-0x11f1)*(parseInt(_0x2ff489(_0x107129._0x51f44e))/(0x1*0x265+-0x1298+0x1035))+parseInt(_0x2ff489(_0x107129._0x5b05df))/(-0x85*-0x18+0x20a2+-0x2d17)+parseInt(_0x2ff489(0x209))/(0x1322+0x20f9+0x1*-0x3417)+-parseInt(_0x20778f(0x183))/(0xc87+0x2320+-0x2fa2)*(parseInt(_0x2ff489(0x192))/(0x15b*0xd+0x133f+0x189*-0x18))+parseInt(_0x2ff489(_0x107129._0x50e9a0))/(0xc3+-0x1*0x76d+0x6b1)+parseInt(_0x2ff489(0x1f6))/(-0x5c9*0x1+-0x25c5*-0x1+0x2*-0xffa)+parseInt(_0x2ff489(0x163))/(-0x1*0x1967+0x15b*-0x1c+0x3f64)*(-parseInt(_0x2ff489(_0x107129._0x3c72ce))/(-0x24f*0x1+0x64a+-0x3f1));if(_0x25b868===_0x48b88c)break;else _0x461373['push'](_0x461373['shift']());}catch(_0x506a98){_0x461373['push'](_0x461373['shift']());}}}(_0x5936,0x10fb2+0x540d*0x1d+-0x44e5a));const _0x2786ea=(function(){const _0x282aa0={_0x4941d5:0x1f1},_0x2e3319={_0xb14960:0x14f},_0x509499=_0x57b3,_0x5b2219=_0x57b3,_0x5cc65d={};_0x5cc65d[_0x509499(0x1f1)]=_0x509499(0x1bb);const _0x9cca0f=_0x5cc65d;let _0x4b16f6=!![];return function(_0x4036f6,_0x440877){const _0x2c26e8=_0x5b2219,_0x2c0825=_0x5b2219;if(_0x2c26e8(0x171)===_0x9cca0f[_0x2c26e8(_0x282aa0._0x4941d5)])return _0x500499['keys'](_0x43e764);else{const _0x2ed964=_0x4b16f6?function(){const _0xe1655a=_0x2c26e8;if(_0x440877){const _0x290292=_0x440877[_0xe1655a(_0x2e3319._0xb14960)](_0x4036f6,arguments);return _0x440877=null,_0x290292;}}:function(){};return _0x4b16f6=![],_0x2ed964;}};}()),_0x379d95=_0x2786ea(this,function(){const _0x21f410={_0x92d15d:0x1c7,_0x1b7264:0x165,_0x4d1a24:0x1af},_0x9b51ab=_0x57b3,_0x1b42d2=_0x57b3;return _0x379d95[_0x9b51ab(_0x21f410._0x92d15d)]()[_0x1b42d2(0x165)](_0x9b51ab(0x1af)+'+$')[_0x1b42d2(_0x21f410._0x92d15d)]()['constructo'+'r'](_0x379d95)[_0x1b42d2(_0x21f410._0x1b7264)](_0x9b51ab(_0x21f410._0x4d1a24)+'+$');});_0x379d95();const fs=require('fs'),path=require(_0x207fd7(0x1a2));function stripFrontmatter(_0x243462){const _0x356d3f=_0x243462['match'](/^---\n[\s\S]*?\n---\n?/);return _0x356d3f?_0x243462['slice'](_0x356d3f[0x6dc+0x142f*-0x1+0xd53]['length']):_0x243462;}function parseAgentMeta(_0x541db7){const _0x1c4de6={_0x51f6a5:0x212,_0x2da8a0:0x17b,_0x32d669:0x159,_0x35ff4d:0x20a,_0x13b5a8:0x1b5,_0x3882bc:0x20a,_0x34f322:0x1ea,_0x6caf5a:0x16e,_0x52d06b:0x1c4,_0xad634e:0x174,_0x1c243e:0x174,_0x4ddfd9:0x154},_0x21a7d0=_0x207fd7,_0x285a6b=_0x207fd7,_0x3e75a4={};_0x3e75a4['bQVUC']='DKiuq',_0x3e75a4['sMUxv']=function(_0xef55db,_0x2ae98d){return _0xef55db===_0x2ae98d;};const _0x2efe65=_0x3e75a4,_0x3d0e93=_0x541db7[_0x21a7d0(0x1c4)](/^---\n([\s\S]*?)\n---/),_0x1cf8ce={};_0x1cf8ce['name']='',_0x1cf8ce[_0x21a7d0(0x19b)]='',_0x1cf8ce[_0x21a7d0(_0x1c4de6._0x51f6a5)+'e']='';if(!_0x3d0e93)return _0x1cf8ce;const _0x43ad18={};for(const _0x2f7d77 of _0x3d0e93[0xd*-0x13d+0x246a+-0x1450]['split']('\x0a')){if(_0x2efe65[_0x21a7d0(_0x1c4de6._0x2da8a0)]===_0x285a6b(_0x1c4de6._0x32d669))return _0x3a3673[_0x285a6b(_0x1c4de6._0x35ff4d)](_0x17ada8[_0x285a6b(_0x1c4de6._0x13b5a8)](_0x33a423,_0x285a6b(0x1ec)))||_0x34efeb[_0x21a7d0(_0x1c4de6._0x3882bc)](_0x530765[_0x21a7d0(0x1b5)](_0x59178c,_0x285a6b(_0x1c4de6._0x34f322)+_0x21a7d0(_0x1c4de6._0x6caf5a)));else{const _0x54e4e8=_0x2f7d77[_0x285a6b(_0x1c4de6._0x52d06b)](/^(\w+):\s*(.+)$/);if(_0x54e4e8)_0x43ad18[_0x54e4e8[-0x1600+0x10d7+0x52a]]=_0x54e4e8[0x23db+0x2366*0x1+0x473f*-0x1]['trim']();}}return _0x43ad18[_0x285a6b(0x174)]&&_0x2efe65['sMUxv'](typeof _0x43ad18[_0x285a6b(0x174)],'string')&&(_0x43ad18[_0x285a6b(_0x1c4de6._0xad634e)]=_0x43ad18[_0x21a7d0(_0x1c4de6._0x1c243e)][_0x285a6b(0x20e)](',')[_0x285a6b(_0x1c4de6._0x4ddfd9)](_0x31621d=>_0x31621d[_0x285a6b(0x1c6)]())[_0x285a6b(0x1d1)](Boolean)),_0x43ad18;}function buildOpencodeAgentFrontmatter(_0x433ebf){const _0x1c72d2={_0x105c3c:0x1fd,_0x1b663f:0x198,_0x4fcca4:0x17c,_0x49d2e9:0x173,_0x3b1427:0x1d4,_0x531723:0x19a,_0x1ce07e:0x16d,_0x5ddef3:0x174,_0x50e929:0x1ae,_0x47a036:0x1e2,_0x33d1b2:0x154,_0x42a7cc:0x1a8,_0x2c6118:0x19b,_0x2c9999:0x1aa,_0x13c8ef:0x1b5},_0x2589c6=_0x207fd7,_0x1695f6=_0x207fd7,_0x299469={};_0x299469[_0x2589c6(0x14c)]=_0x1695f6(_0x1c72d2._0x105c3c),_0x299469[_0x1695f6(0x1d9)]=_0x2589c6(_0x1c72d2._0x1b663f),_0x299469[_0x2589c6(_0x1c72d2._0x4fcca4)]=_0x2589c6(0x17a),_0x299469['oYUPz']=_0x2589c6(0x1c5),_0x299469[_0x2589c6(_0x1c72d2._0x49d2e9)]=_0x1695f6(_0x1c72d2._0x3b1427),_0x299469[_0x2589c6(_0x1c72d2._0x531723)]='mode:\x20suba'+_0x2589c6(_0x1c72d2._0x1ce07e),_0x299469[_0x1695f6(0x1aa)]=_0x1695f6(0x1f7);const _0x435740=_0x299469,_0x14fea6=['read','grep',_0x435740['TYIMw'],_0x2589c6(0x17a)],_0x34d946=_0x433ebf[_0x1695f6(0x174)]&&_0x433ebf['tools']['length']>0x64f+0x96a*-0x1+0x31b?_0x433ebf[_0x1695f6(_0x1c72d2._0x5ddef3)]:_0x14fea6,_0x29d2f3=[_0x435740[_0x1695f6(0x1d9)],_0x1695f6(_0x1c72d2._0x50e929),'glob',_0x435740[_0x2589c6(0x17c)],_0x435740[_0x2589c6(0x1da)],_0x2589c6(_0x1c72d2._0x47a036)],_0x9380f1=_0x29d2f3[_0x2589c6(_0x1c72d2._0x33d1b2)](_0xf84be8=>'\x20\x20'+_0xf84be8+':\x20'+(_0x34d946[_0x2589c6(0x1b2)](_0xf84be8)?'true':_0x1695f6(0x184)));return[_0x435740['vlFmt'],_0x2589c6(0x1dc)+_0x2589c6(_0x1c72d2._0x42a7cc)+(_0x433ebf[_0x2589c6(_0x1c72d2._0x2c6118)]||_0x433ebf[_0x2589c6(0x1a4)]),_0x435740['zKLVL'],_0x435740[_0x1695f6(_0x1c72d2._0x2c9999)],..._0x9380f1,_0x435740[_0x1695f6(0x173)],''][_0x1695f6(_0x1c72d2._0x13c8ef)]('\x0a');}function buildClaudeCodeAgentFrontmatter(_0x5695ae){const _0x280f4a={_0x41bb05:0x168,_0x3ae034:0x1ce,_0x1bc214:0x1fe,_0x295e49:0x1f2,_0x497410:0x177,_0x2a895f:0x14e,_0x208c6b:0x198,_0x18e96a:0x1fd,_0x13ba10:0x17a,_0xb6e167:0x1fe,_0x890c4b:0x155,_0x325ad9:0x1f2,_0x1ad15a:0x1ae,_0x517fab:0x174,_0x5b5188:0x14e,_0x24955c:0x1b5,_0x4a6c9d:0x1d4,_0x587923:0x1a4,_0x30920d:0x1dc,_0x5a8be1:0x1a8,_0x3b4328:0x1d3},_0x137f13=_0x207fd7,_0x4d6b49=_0x207fd7,_0x52d541={};_0x52d541[_0x137f13(_0x280f4a._0x41bb05)]='Read',_0x52d541[_0x137f13(0x186)]=_0x137f13(_0x280f4a._0x3ae034),_0x52d541[_0x137f13(_0x280f4a._0x1bc214)]='Bash',_0x52d541[_0x137f13(0x155)]=_0x4d6b49(0x202),_0x52d541[_0x137f13(_0x280f4a._0x295e49)]=_0x137f13(_0x280f4a._0x497410),_0x52d541[_0x4d6b49(0x160)]=_0x4d6b49(0x17a),_0x52d541[_0x4d6b49(_0x280f4a._0x2a895f)]=function(_0xba8f,_0x3a22ec){return _0xba8f>_0x3a22ec;};const _0x445f8=_0x52d541,_0xbce8a1={};_0xbce8a1[_0x137f13(_0x280f4a._0x208c6b)]=_0x445f8[_0x137f13(0x168)],_0xbce8a1['grep']=_0x445f8[_0x137f13(0x186)],_0xbce8a1[_0x137f13(_0x280f4a._0x18e96a)]='Glob',_0xbce8a1[_0x4d6b49(_0x280f4a._0x13ba10)]=_0x445f8[_0x137f13(_0x280f4a._0xb6e167)],_0xbce8a1[_0x4d6b49(0x1c5)]=_0x445f8[_0x137f13(_0x280f4a._0x890c4b)],_0xbce8a1['edit']=_0x445f8[_0x4d6b49(_0x280f4a._0x325ad9)];const _0x3bccf0=_0xbce8a1,_0x4db58a=[_0x4d6b49(0x198),_0x4d6b49(_0x280f4a._0x1ad15a),'glob',_0x445f8[_0x137f13(0x160)]],_0x10f1bc=_0x5695ae[_0x4d6b49(_0x280f4a._0x517fab)]&&_0x445f8[_0x4d6b49(_0x280f4a._0x5b5188)](_0x5695ae['tools']['length'],-0x11a2+-0x46b+0x469*0x5)?_0x5695ae[_0x137f13(_0x280f4a._0x517fab)]:_0x4db58a,_0x26fdb5=_0x10f1bc[_0x137f13(0x154)](_0x84f999=>_0x3bccf0[_0x84f999]||_0x84f999)[_0x137f13(_0x280f4a._0x24955c)](',\x20');return[_0x4d6b49(_0x280f4a._0x4a6c9d),_0x4d6b49(0x15e)+_0x5695ae[_0x137f13(_0x280f4a._0x587923)],_0x137f13(_0x280f4a._0x30920d)+_0x4d6b49(_0x280f4a._0x5a8be1)+(_0x5695ae['role']||_0x5695ae[_0x137f13(0x1a4)]),_0x4d6b49(_0x280f4a._0x3b4328)+_0x26fdb5,'---',''][_0x137f13(_0x280f4a._0x24955c)]('\x0a');}function buildCommandRoutingSection(){const _0x4e2a8b={_0x27ce30:0x167,_0x5f9396:0x1cc,_0x4ab88d:0x204,_0x3481fe:0x1d5,_0x150ada:0x1d7,_0x25c4f9:0x1c2,_0x3bef54:0x213,_0x4fb186:0x1f0,_0x14dd68:0x1b7,_0x299220:0x215,_0x55f730:0x1e4,_0x36903a:0x175,_0x246d93:0x197,_0x50dc96:0x216,_0x5a0c38:0x1fb,_0x46a0c9:0x1fa,_0x4e5396:0x1f3,_0x4ca7ae:0x16c,_0x342b79:0x213,_0x1d46b3:0x18f,_0x1b3145:0x1c1,_0x4a7e1d:0x1b7,_0x378e61:0x191,_0x364e19:0x1db,_0x41056f:0x1ad,_0xae4a:0x19c,_0x42777c:0x194,_0x2491cd:0x1b0,_0x42f5a8:0x185,_0x1b8b93:0x157,_0x13fbfd:0x211},_0x4fe5e5=_0x207fd7,_0x5e3b73=_0x207fd7;return _0x4fe5e5(_0x4e2a8b._0x27ce30)+_0x5e3b73(_0x4e2a8b._0x5f9396)+_0x5e3b73(_0x4e2a8b._0x4ab88d)+_0x4fe5e5(_0x4e2a8b._0x3481fe)+_0x4fe5e5(_0x4e2a8b._0x150ada)+_0x5e3b73(0x19e)+_0x5e3b73(0x20c)+_0x5e3b73(_0x4e2a8b._0x25c4f9)+'spec:init`'+_0x5e3b73(0x17f)+'opilot/com'+_0x4fe5e5(0x182)+_0x4fe5e5(0x1c3)+_0x4fe5e5(0x1db)+_0x4fe5e5(0x150)+_0x4fe5e5(0x185)+'copilot/co'+_0x5e3b73(_0x4e2a8b._0x3bef54)+_0x4fe5e5(_0x4e2a8b._0x4fb186)+_0x4fe5e5(0x20b)+_0x4fe5e5(0x14a)+'pose\x20<需求>`'+_0x5e3b73(0x17f)+_0x4fe5e5(_0x4e2a8b._0x14dd68)+_0x4fe5e5(0x182)+_0x5e3b73(0x1a5)+'d`\x20|\x0a|\x20`/s'+_0x4fe5e5(0x19d)+_0x4fe5e5(_0x4e2a8b._0x299220)+'ec_copilot'+_0x5e3b73(_0x4e2a8b._0x55f730)+'spec:flow.'+_0x4fe5e5(_0x4e2a8b._0x36903a)+_0x4fe5e5(_0x4e2a8b._0x246d93)+_0x4fe5e5(_0x4e2a8b._0x50dc96)+_0x5e3b73(_0x4e2a8b._0x5a0c38)+_0x4fe5e5(0x16b)+_0x5e3b73(0x210)+_0x5e3b73(_0x4e2a8b._0x46a0c9)+_0x4fe5e5(0x20d)+_0x4fe5e5(_0x4e2a8b._0x4e5396)+_0x5e3b73(0x185)+_0x5e3b73(_0x4e2a8b._0x4ca7ae)+_0x5e3b73(_0x4e2a8b._0x342b79)+_0x5e3b73(0x15c)+_0x5e3b73(0x172)+_0x4fe5e5(_0x4e2a8b._0x1d46b3)+_0x4fe5e5(0x187)+'spec_copil'+_0x5e3b73(0x1ee)+_0x4fe5e5(0x178)+_0x5e3b73(0x1b3)+'|\x20`/spec:f'+_0x5e3b73(0x199)+'|\x20`spec_co'+_0x4fe5e5(0x1d6)+_0x4fe5e5(0x1d8)+'fix.md`\x20|\x0a'+_0x5e3b73(_0x4e2a8b._0x1b3145)+_0x4fe5e5(0x207)+_0x5e3b73(0x17f)+_0x5e3b73(_0x4e2a8b._0x4a7e1d)+'mands/spec'+_0x4fe5e5(_0x4e2a8b._0x378e61)+_0x4fe5e5(_0x4e2a8b._0x364e19)+_0x5e3b73(_0x4e2a8b._0x41056f)+_0x5e3b73(_0x4e2a8b._0xae4a)+_0x5e3b73(0x151)+_0x5e3b73(_0x4e2a8b._0x42777c)+_0x4fe5e5(0x17e)+_0x5e3b73(0x15f)+_0x4fe5e5(_0x4e2a8b._0x2491cd)+_0x5e3b73(0x1e9)+_0x4fe5e5(_0x4e2a8b._0x42f5a8)+_0x5e3b73(0x16c)+_0x4fe5e5(0x213)+'c:hotfix.m'+_0x5e3b73(0x1b1)+_0x5e3b73(_0x4e2a8b._0x1b8b93)+'读取对应文件并执行,'+_0x5e3b73(0x1eb)+_0x5e3b73(0x1f9)+'变更名>`、`<描述'+'>`\x20替换为用户在命'+_0x4fe5e5(_0x4e2a8b._0x13fbfd);}const adapters={'opencode':{'name':_0x357ac9(0x1c0),'displayName':_0x207fd7(0x1c0),'description':_0x207fd7(0x1c9)+_0x207fd7(0x1a0)+_0x207fd7(0x201)+_0x357ac9(0x1fc)+'ncode)','promptPath':_0x357ac9(0x214),'commandsDir':_0x357ac9(0x1ac)+'commands','hasNativeCommands':!![],'agentsDir':'.opencode/'+_0x207fd7(0x18b),'supportsSubagent':!![],'detect'(_0x566f5b){const _0x4ce458={_0x2f7491:0x1df,_0x3ce112:0x1ec,_0x1dee2b:0x193,_0x2f539f:0x1ea,_0x4ddf7e:0x1df},_0x1fdfcf=_0x357ac9,_0x35e2c5=_0x357ac9,_0x2b2ea2={};_0x2b2ea2[_0x1fdfcf(_0x4ce458._0x2f7491)]=_0x1fdfcf(_0x4ce458._0x3ce112),_0x2b2ea2[_0x1fdfcf(_0x4ce458._0x1dee2b)]=_0x1fdfcf(_0x4ce458._0x2f539f)+_0x35e2c5(0x16e);const _0x2e4ac7=_0x2b2ea2;return fs['existsSync'](path['join'](_0x566f5b,_0x2e4ac7[_0x1fdfcf(_0x4ce458._0x4ddf7e)]))||fs[_0x1fdfcf(0x20a)](path[_0x1fdfcf(0x1b5)](_0x566f5b,_0x2e4ac7['wieaU']));},'formatPrompt'(_0x4e6376){return _0x4e6376;},'formatCommand'(_0x2dd82f,_0x147aac){return _0x2dd82f;},'formatAgent'(_0x25ba29,_0x1af81f){const _0x38d849=_0x357ac9,_0x1b0cc8={'umPCJ':function(_0x4ab525,_0x5628e0){return _0x4ab525(_0x5628e0);}};return buildOpencodeAgentFrontmatter(_0x1af81f)+_0x1b0cc8[_0x38d849(0x200)](stripFrontmatter,_0x25ba29);},'cleanupPaths':['AGENTS.md',_0x357ac9(0x1ac)+_0x357ac9(0x162)]},'claude-code':{'name':_0x357ac9(0x18a)+'e','displayName':_0x357ac9(0x16a)+'e','description':_0x207fd7(0x16a)+_0x207fd7(0x1de)+_0x207fd7(0x188),'promptPath':_0x207fd7(0x1b4),'commandsDir':_0x357ac9(0x179)+_0x357ac9(0x161),'hasNativeCommands':!![],'agentsDir':'.claude/ag'+_0x357ac9(0x1ef),'supportsSubagent':!![],'detect'(_0x3fda8b){const _0x7dba1c={_0x1a4aef:0x156,_0x58eb2c:0x1b4,_0x3785d6:0x20a},_0x2979b7=_0x357ac9,_0x3ad3e3=_0x357ac9,_0x2f144a={};_0x2f144a[_0x2979b7(_0x7dba1c._0x1a4aef)]=_0x2979b7(0x1c8),_0x2f144a[_0x2979b7(0x14b)]=_0x2979b7(_0x7dba1c._0x58eb2c);const _0x2fbccc=_0x2f144a;return fs[_0x2979b7(_0x7dba1c._0x3785d6)](path[_0x2979b7(0x1b5)](_0x3fda8b,_0x2fbccc['LhcEs']))||fs['existsSync'](path[_0x2979b7(0x1b5)](_0x3fda8b,_0x2fbccc['LOaAI']));},'formatPrompt'(_0x52126b){return _0x52126b;},'formatCommand'(_0x1fac82,_0x2caa73){return _0x1fac82;},'formatAgent'(_0x15423c,_0xe8b240){const _0x276c3d={_0x5992f0:0x17d},_0x2bd09d=_0x357ac9,_0x5b2784=_0x357ac9,_0x562f3e={};_0x562f3e[_0x2bd09d(_0x276c3d._0x5992f0)]=function(_0x41113e,_0x49799e){return _0x41113e+_0x49799e;};const _0x1d4782=_0x562f3e;return _0x1d4782[_0x5b2784(0x17d)](buildClaudeCodeAgentFrontmatter(_0xe8b240),stripFrontmatter(_0x15423c));},'cleanupPaths':[_0x357ac9(0x1b4),'.claude/co'+_0x357ac9(0x161)]},'cursor':{'name':'cursor','displayName':_0x357ac9(0x1ab),'description':'Cursor\x20IDE'+_0x357ac9(0x1bc)+'rules/*.md'+'c)','promptPath':'.cursor/ru'+'les/spec-c'+'opilot.mdc','commandsDir':null,'hasNativeCommands':![],'detect'(_0x2c75fb){const _0x28b006={_0x4b395d:0x1b5,_0x3dc7b6:0x18e,_0x1af823:0x20a},_0x472af6=_0x207fd7,_0x36f445=_0x207fd7;return fs[_0x472af6(0x20a)](path[_0x36f445(_0x28b006._0x4b395d)](_0x2c75fb,_0x472af6(_0x28b006._0x3dc7b6)))||fs[_0x472af6(_0x28b006._0x1af823)](path[_0x472af6(0x1b5)](_0x2c75fb,'.cursorrul'+'es'));},'formatPrompt'(_0x4852dc){const _0x1549bd={_0x4baffd:0x1b9,_0x54c661:0x14d,_0x285c35:0x217,_0x161fd4:0x1b5},_0x40ded1=_0x207fd7,_0x48636b=_0x207fd7,_0x2e82bb={'VtmNR':_0x40ded1(0x1dc)+'n:\x20\x22Spec-D'+_0x48636b(0x15b)+'lopment\x20Fr'+_0x40ded1(_0x1549bd._0x4baffd)+'AI\x20编码协作规范\x22','hmjYM':_0x48636b(_0x1549bd._0x54c661)+_0x40ded1(_0x1549bd._0x285c35),'cwKjJ':function(_0x1ae5d4,_0x24cb52){return _0x1ae5d4+_0x24cb52;},'TJnYZ':function(_0x1858d2){return _0x1858d2();}},_0x15a803=['---',_0x2e82bb[_0x40ded1(0x158)],_0x2e82bb[_0x48636b(0x1a6)],'---',''][_0x40ded1(_0x1549bd._0x161fd4)]('\x0a');return _0x2e82bb[_0x48636b(0x1cb)](_0x2e82bb['cwKjJ'](_0x15a803,_0x4852dc),_0x2e82bb[_0x40ded1(0x153)](buildCommandRoutingSection));},'formatCommand'(_0x30d7d0,_0x4ca0fb){return _0x30d7d0;},'cleanupPaths':[_0x357ac9(0x1e0)+'les/spec-c'+'opilot.mdc']},'windsurf':{'name':'windsurf','displayName':_0x207fd7(0x169),'description':_0x357ac9(0x208)+_0x357ac9(0x176)+_0x207fd7(0x189)+')','promptPath':'.windsurf/'+_0x357ac9(0x1a3)+_0x207fd7(0x181)+'d','commandsDir':null,'hasNativeCommands':![],'detect'(_0x3ae1af){const _0x51f1d0={_0x13d2fb:0x1dd,_0x1d48c9:0x1ed,_0x4a2aae:0x20a,_0x24a52e:0x203},_0x49e275=_0x207fd7,_0x2b71ee=_0x207fd7,_0x5ac2ce={};_0x5ac2ce[_0x49e275(_0x51f1d0._0x13d2fb)]=_0x2b71ee(_0x51f1d0._0x1d48c9);const _0x1bb85d=_0x5ac2ce;return fs[_0x2b71ee(0x20a)](path['join'](_0x3ae1af,_0x1bb85d['mBDdg']))||fs[_0x49e275(_0x51f1d0._0x4a2aae)](path['join'](_0x3ae1af,_0x2b71ee(0x15d)+_0x49e275(_0x51f1d0._0x24a52e)));},'formatPrompt'(_0x2f36fa){const _0x3835b9={_0x1adda7:0x152},_0x374434=_0x357ac9,_0x5ac223={'YhHpN':function(_0x30f624){return _0x30f624();}};return _0x2f36fa+_0x5ac223[_0x374434(_0x3835b9._0x1adda7)](buildCommandRoutingSection);},'formatCommand'(_0x3faa68,_0x411929){return _0x3faa68;},'cleanupPaths':[_0x357ac9(0x1f4)+_0x357ac9(0x1a3)+_0x207fd7(0x181)+'d']},'copilot':{'name':'copilot','displayName':_0x357ac9(0x1b8)+_0x207fd7(0x1d2),'description':'GitHub\x20Cop'+_0x207fd7(0x170)+_0x357ac9(0x1e5)+_0x357ac9(0x1bf)+'ions.md)','promptPath':_0x357ac9(0x18c)+_0x357ac9(0x190)+'ructions.m'+'d','commandsDir':null,'hasNativeCommands':![],'detect'(_0x11b032){const _0x4c05b2={_0x2e53d5:0x1f8,_0x494ddf:0x1a1},_0x18c2b3=_0x357ac9,_0x22494f=_0x357ac9;return fs['existsSync'](path[_0x18c2b3(0x1b5)](_0x11b032,'.github',_0x22494f(_0x4c05b2._0x2e53d5)+'structions'+_0x18c2b3(_0x4c05b2._0x494ddf)));},'formatPrompt'(_0x506a6f){const _0x1769b2=_0x357ac9,_0x527241=_0x357ac9,_0x552147={};_0x552147[_0x1769b2(0x16f)]=function(_0x459ce1,_0x541ca7){return _0x459ce1+_0x541ca7;};const _0xbd1955=_0x552147;return _0xbd1955[_0x1769b2(0x16f)](_0x506a6f,buildCommandRoutingSection());},'formatCommand'(_0x40fa77,_0x5703f5){return _0x40fa77;},'cleanupPaths':['.github/co'+_0x207fd7(0x190)+'ructions.m'+'d']},'cline':{'name':_0x357ac9(0x19f),'displayName':_0x207fd7(0x1a9),'description':_0x357ac9(0x166)+_0x357ac9(0x1e1)+_0x207fd7(0x149)+_0x357ac9(0x1ff),'promptPath':_0x357ac9(0x1e8)+_0x207fd7(0x195)+'ilot.md','commandsDir':null,'hasNativeCommands':![],'detect'(_0x59fa3e){const _0x58bff3={_0x33c07b:0x1e8,_0x12f718:0x20a,_0xddeeea:0x1b5},_0x1fb716=_0x207fd7,_0xb200a4=_0x207fd7,_0xb89266={};_0xb89266[_0x1fb716(0x1bd)]=_0xb200a4(_0x58bff3._0x33c07b)+'s';const _0x525933=_0xb89266;return fs['existsSync'](path['join'](_0x59fa3e,_0x525933['wLpek']))||fs[_0xb200a4(_0x58bff3._0x12f718)](path[_0xb200a4(_0x58bff3._0xddeeea)](_0x59fa3e,_0x1fb716(0x1e3)));},'formatPrompt'(_0x7ff7f2){const _0x46c63f=_0x207fd7,_0x11b9ad=_0x207fd7,_0x4c8228={'Qrgmf':function(_0x2d23b5,_0x50fe45){return _0x2d23b5+_0x50fe45;},'UTsWj':function(_0x299e83){return _0x299e83();}};return _0x4c8228[_0x46c63f(0x1cf)](_0x7ff7f2,_0x4c8228[_0x11b9ad(0x1ba)](buildCommandRoutingSection));},'formatCommand'(_0x5746e2,_0x1b62b9){return _0x5746e2;},'cleanupPaths':[_0x357ac9(0x1e8)+_0x207fd7(0x195)+'ilot.md']}};function detectTools(_0xb4865c){const _0x4e5f20=_0x207fd7,_0x32e975=_0x207fd7;return Object['values'](adapters)[_0x4e5f20(0x1d1)](_0x2030da=>_0x2030da[_0x4e5f20(0x206)](_0xb4865c));}function supportedTools(){const _0x522cf5=_0x207fd7;return Object[_0x522cf5(0x164)](adapters);}const _0x5c7608={};function _0x5936(){const _0x156289=['AhvIl2nVCgLSBW','ndeZnJa1rK5yCeTU','twv0yq','lMnSAw5LCNvSzq','B3rMAxGGpoApJ+I/Sd4','B3bLBMnVzguUAG','5lIn6zYa6kAb5yAn5QYH56gU6k6K44cccUwWHG','lM9Wzw5JB2rL','lNDPBMrZDxjM','B3qVy29TBwfUza','zw50CW','yZPIB290C3rYyq','AKvqu2e','yNvhsMG','Bw9Rzsa85y+y5PU05zcnpG','lNDPBMrZDxjMlW','mZm0ndi3offLzMHLra','nJi2nJa0oe1PzgfJtG','Dg9VBhm6','y29WAwXVDc1PBG','iga86zYa5RgcpMdJGifGpa','CgX5lM1Kycb8cG','yhnWzwnFy29WAq','B2rLlwfPl29Wzq','z2XVyG','Aw1guum','CNvSzxmVkq','Dw1qq0O','lMnVBs9VCgvUyW','v3jPDgu','DwXLCW','5ywL5lUL5lIl5zg95lUK5PE277Ym6k+75y+w5A+5','BMrsB3v0Aw5NuW','zgv0zwn0','zxn0idZLJ5JMM7tLKi0+ya','v2LUzhn1CMyGsq','mtG1mJi3nKLjq1nzwq','zxHPC3rZu3LUyW','Cc5TzgaGFaP8ia','ls0TlxWTls0Tlq','FcbGl3nWzwm6CW','C3bSAxq','C3vWCg9YDgvKva','zhmVC3bLyZPHCa','5lUK5zco5O+q5l6B55Qe5y+c5PwW44cccG','D2HLBL90B191CW','Bw1HBMrZl3nWzq','quDftLrtlM1K','6zYa5RgcpMaGFcbGC3a','idZLJ5JMM7tLKi0+ycb8ia','EtOGDhj1zq','B24Gkc5JBgLUzq','yc9ZCgvJoNbYBW','te9HquK','vfLjtxC','ywX3yxLZqxbWBa','veTnsvy','yxbWBhK','oMjVB3rZDhjHCa','CgvJx2nVCgLSBW','wwHiCe4','vePUwvO','BwfW','ueTcz2y','tgHJrxm','5zg95lUK5zco77YmkIRNQ4VLJBmQkG','vNrTtLi','BMnrt3a','zgv0zwn0vg9VBa','CML2zw4Grgv2zq','yZPZBw9Rzs5Tza','lNDPBMrZDxjMCG','BMfTztOG','AxzLlM1Kycb8cG','DeDoAhO','Bw1HBMrZ','y29TBwfUzhm','mtqYmdm4otLkDfzTCfu','A2v5CW','C2vHCMnO','q2XPBMuGvLndBW','cGOTls0kcImJia','zwfdyNy','v2LUzhn1CMy','q2XHDwrLienVza','Bg90l2nVBw1HBG','y29WAwXVDc9JBW','z2vUDa','C29U','t0T5EKe','AwXVDcaOlMDPDa','whD6txO','ycb8cNWGyc9ZCa','DMXgBxq','Dg9VBhm','BwrGihWkFcbGlW','reuGkc53Aw5KCW','rwrPDa','CY9ZCgvJoNjLDG','lMnSyxvKzs9JBW','yMfZAa','yLfwvum','t3bNBuK','thjpweW','l3nWzwm6yxjJAa','ihWGyhnWzwnFyW','C3rYAxbgCM9UDa','lwnVCgLSB3qUBq','BwfUzhmVC3bLyW','nwzmu3vtuq','zMfSC2u','ycb8igbZCgvJxW','t0j6ru4','powpMoABTowqJt5GihWGya','AhjVCgLJkq','DxjMl3j1BgvZlW','y2XHDwrLlwnVza','ywDLBNq','lMDPDgH1yI9JBW','CgfYC2vbz2vUDa','lMn1CNnVCG','zwm6CMv2Awv3ia','CgLSB3qTAw5ZDa','oNrLC3qUBwrGia','nduWotK2nK9QB0n2wG','D2LLyvu','Dc9JB21Tyw5KCW','CY9ZCgvJlwnVCa','ywrHChrLCNm','C3bLyZPHChbSEq','CMvHza','AxGGpowpMoABTowqJt5Gia','EKTmvKW','CM9Szq','5y+y5PU05zcnpMaGFcbGCW','CgvJoMzSB3CGpa','6k+75y+w5PAh5lU2ihWkFc0T','y2XPBMu','teKGkgDPDgH1yG','lM1K','Cgf0Aa','CNvSzxmVC3bLyW','BMfTzq','oNbYB3bVC2uUBq','Ag1Qwu0','mtGXmdu5owPTs3PmsW','BJOG','q2XPBMu','tNLKALa','q3vYC29Y','lM9Wzw5JB2rLlW','oMfYy2HPDMuGpa','z3jLCa','kcGOlISPkYKRkq','FcbGl3nWzwm6Aa','zgaGFaOk55sO5OI36l6t5ywL','Aw5JBhvKzxm','Awv3lM1Kycb8cG','q0XbvurflM1K','AM9PBG','zxHWB3j0CW','B3bPBg90l2nVBq','r2L0shvIienVCa','yw1LD29YAYdIGjqG','vvrZv2O','vgjXD00','icGUy3vYC29YlW','D0XWzwS','mtbpz05dtvq','Dc1PBNn0CNvJDa','B3bLBMnVzgu','FcbGl3nWzwm6Da','ls0TlxWkFcbGlW','oMLUAxqUBwrGia','Bwf0y2G','D3jPDgu','DhjPBq','Dg9tDhjPBMC','lMnSyxvKzq','B3bLBMnVzguGqW','B29SCW','y3DlAKO','5zg95lUK6lEV55sXcGRLVzpNLkJMIlFOVPm','yNvPBgrdB21Tyq','r3jLCa','uxjNBwy','mLbhtM1HBW','zMLSDgvY','AwXVDa','Dg9VBhm6ia','ls0T','5BQu5PAh5lU25BM25OYj5yw25OYh5lUK5OMN6kgm','CgLSB3qVy29TBq','77YAcGP8iowrVEs7Pcb8ia','yw5KCY9ZCgvJoG','uuzTuM4','B1LvuhO','FaP8igaVC3bLyW','zgvZy3jPChrPBW','BujezgC','zsbdteKGkefUDa','vNbtDNC','lMn1CNnVCI9YDq','zguGzxH0zw5ZAq','zwrPDa','lMnSAw5L','l2nVBw1HBMrZlW'];_0x5936=function(){return _0x156289;};return _0x5936();}_0x5c7608[_0x207fd7(0x196)]=adapters,_0x5c7608[_0x207fd7(0x15a)+'s']=detectTools,_0x5c7608[_0x207fd7(0x20f)+_0x357ac9(0x1ca)]=supportedTools,_0x5c7608[_0x357ac9(0x1cd)+_0x357ac9(0x205)+'ection']=buildCommandRoutingSection,_0x5c7608[_0x357ac9(0x180)+'matter']=stripFrontmatter,_0x5c7608[_0x207fd7(0x18d)+_0x357ac9(0x1e7)]=parseAgentMeta,module[_0x207fd7(0x1b6)]=_0x5c7608;
|
|
11
|
+
const _0x3752a6=_0x3326,_0x2ed4ed=_0x3326;(function(_0x1c11c8,_0x3b4f2b){const _0x1d7544={_0x4374d7:0x185,_0x1b97cd:0xdb,_0x1dfd40:0x126,_0x546d89:0x18f},_0x16f244=_0x3326,_0x392163=_0x3326,_0x25b899=_0x1c11c8();while(!![]){try{const _0x169710=parseInt(_0x16f244(0x158))/(0x1205+0x3b*-0x94+-0x80c*-0x2)+parseInt(_0x16f244(_0x1d7544._0x4374d7))/(-0xee4+0xa8b*-0x3+0x2e87)+parseInt(_0x392163(_0x1d7544._0x1b97cd))/(0x20c6+0x415*0x7+-0x3*0x1472)*(parseInt(_0x392163(_0x1d7544._0x1dfd40))/(-0x1415*-0x1+-0x866+0x67*-0x1d))+-parseInt(_0x392163(0xde))/(0xc5*-0x13+-0x1129+-0x1*-0x1fcd)*(parseInt(_0x392163(0x117))/(-0x7c7*0x2+-0x75*-0x36+-0x91a))+parseInt(_0x392163(_0x1d7544._0x546d89))/(-0x2288+-0xaed*0x3+-0x4e*-0xdd)*(-parseInt(_0x16f244(0xe2))/(0x41*-0x93+0x3*-0xb6f+0x1*0x47a8))+parseInt(_0x392163(0x154))/(0x204f+0xb22+-0x2b68)+-parseInt(_0x16f244(0x123))/(0x167+-0x7*-0x155+0x1c8*-0x6);if(_0x169710===_0x3b4f2b)break;else _0x25b899['push'](_0x25b899['shift']());}catch(_0x266376){_0x25b899['push'](_0x25b899['shift']());}}}(_0x1299,-0x119*-0xcb4+0x6e731+0x1*-0xdca02));const _0x1f938b=(function(){const _0xe82595={_0x3822af:0x174,_0x5166b8:0xe8},_0x1fd5f8=_0x3326,_0x35ef87=_0x3326,_0x3bffef={};_0x3bffef[_0x1fd5f8(_0xe82595._0x3822af)]=function(_0x5d39b7,_0x405b33){return _0x5d39b7!==_0x405b33;},_0x3bffef['niXUB']=_0x1fd5f8(_0xe82595._0x5166b8);const _0x2614c1=_0x3bffef;let _0x46a4e4=!![];return function(_0x5b027e,_0x35ef76){const _0x4aea63=_0x35ef87,_0x377265=_0x35ef87;if(_0x2614c1[_0x4aea63(0x174)](_0x377265(0xe8),_0x2614c1[_0x4aea63(0x190)]))return _0x3fec8e[_0x4aea63(0x135)](_0x41c2c8)[_0x377265(0x11d)](_0x34a3a1=>_0x34a3a1[_0x4aea63(0x10f)](_0x3f3e57));else{const _0x1bac01=_0x46a4e4?function(){const _0x2e3259=_0x4aea63;if(_0x35ef76){const _0x57be55=_0x35ef76[_0x2e3259(0x118)](_0x5b027e,arguments);return _0x35ef76=null,_0x57be55;}}:function(){};return _0x46a4e4=![],_0x1bac01;}};}()),_0x2885b5=_0x1f938b(this,function(){const _0x4131b1={_0x2024f7:0x102,_0x5c5243:0x14f,_0x2fd4ad:0x167,_0x102c0a:0x14f},_0x17463e=_0x3326,_0x513ecb=_0x3326,_0x231521={};_0x231521[_0x17463e(0x14f)]=_0x17463e(0x149)+'+$';const _0x4d9d59=_0x231521;return _0x2885b5[_0x513ecb(_0x4131b1._0x2024f7)]()['search'](_0x4d9d59[_0x513ecb(_0x4131b1._0x5c5243)])[_0x513ecb(0x102)]()[_0x17463e(_0x4131b1._0x2fd4ad)+'r'](_0x2885b5)[_0x513ecb(0xd8)](_0x4d9d59[_0x17463e(_0x4131b1._0x102c0a)]);});_0x2885b5();const fs=require('fs'),path=require('path');function stripFrontmatter(_0x9e10da){const _0x1f823e={_0x323813:0x155,_0x2cee2d:0xff},_0x4d8d70=_0x3326,_0x24d799=_0x3326,_0x47f505=_0x9e10da[_0x4d8d70(_0x1f823e._0x323813)](/^---\n[\s\S]*?\n---\n?/);return _0x47f505?_0x9e10da['slice'](_0x47f505[-0x1c18+0x1f93+0x3*-0x129][_0x4d8d70(_0x1f823e._0x2cee2d)]):_0x9e10da;}function parseAgentMeta(_0x519579){const _0x543dbb={_0x5e58df:0x10c,_0x2bcac5:0x103,_0xb840e1:0x197,_0x52b100:0xd6,_0x1a7566:0x155,_0x5f1ff8:0xfb,_0x1ae44d:0x11a,_0x50356f:0x11a,_0x31a058:0x124,_0x52045f:0xf7,_0x56eeb6:0x193,_0x181afb:0x105,_0x53b8d6:0x10c},_0x436c8d=_0x3326,_0x373e3a=_0x3326,_0x2e4cbd={};_0x2e4cbd[_0x436c8d(_0x543dbb._0x5e58df)]='opencode.j'+_0x436c8d(0xe9),_0x2e4cbd['Xbibq']=_0x436c8d(_0x543dbb._0x2bcac5),_0x2e4cbd[_0x436c8d(_0x543dbb._0xb840e1)]=_0x436c8d(_0x543dbb._0x52b100);const _0x2f551d=_0x2e4cbd,_0x517cd4=_0x519579['match'](/^---\n([\s\S]*?)\n---/),_0x55f75a={};_0x55f75a['name']='',_0x55f75a[_0x436c8d(0x15a)]='',_0x55f75a['when_to_us'+'e']='';if(!_0x517cd4)return _0x55f75a;const _0x344619={};for(const _0x428acd of _0x517cd4[0x324+-0x1af8*0x1+0x17d5]['split']('\x0a')){const _0x50db3e=_0x428acd[_0x436c8d(_0x543dbb._0x1a7566)](/^(\w+):\s*(.+)$/);if(_0x50db3e)_0x344619[_0x50db3e[-0x24af+-0x251b+-0x49cb*-0x1]]=_0x50db3e[-0x1d*0xef+-0xfaa+0x1f*0x161][_0x436c8d(_0x543dbb._0x5f1ff8)]();}if(_0x344619[_0x436c8d(_0x543dbb._0x1ae44d)]&&typeof _0x344619[_0x373e3a(_0x543dbb._0x50356f)]===_0x2f551d[_0x436c8d(0x17e)]){if(_0x436c8d(_0x543dbb._0x31a058)!==_0x2f551d[_0x373e3a(_0x543dbb._0xb840e1)])_0x344619[_0x373e3a(0x11a)]=_0x344619[_0x373e3a(_0x543dbb._0x50356f)][_0x373e3a(_0x543dbb._0x52045f)](',')['map'](_0x29d24d=>_0x29d24d['trim']())[_0x436c8d(0x11d)](Boolean);else return _0xcd101a[_0x436c8d(_0x543dbb._0x56eeb6)](_0x2e9c57[_0x373e3a(0x19a)](_0x597594,_0x436c8d(_0x543dbb._0x181afb)))||_0x44a6bc[_0x436c8d(0x193)](_0x28e7ec[_0x373e3a(0x19a)](_0x20f11a,_0x2f551d[_0x436c8d(_0x543dbb._0x53b8d6)]));}return _0x344619;}function buildOpencodeAgentFrontmatter(_0x3c1e63){const _0x5d9f85={_0x3f7f7a:0x198,_0x531a3d:0x161,_0x537ef9:0x137,_0x13ceb2:0x15b,_0x40c679:0x133,_0x4f735a:0x11a,_0x21599c:0x18a,_0xf374f4:0x12f,_0x4751ba:0x17c,_0x395219:0x16d,_0x3be85c:0x15a},_0x3fc3e9=_0x3326,_0x4d0029=_0x3326,_0x52a2b9={};_0x52a2b9[_0x3fc3e9(0x104)]='glob',_0x52a2b9['ONXYl']=_0x4d0029(0x12f),_0x52a2b9['uDKHu']=function(_0x13ea81,_0x4e2276){return _0x13ea81>_0x4e2276;},_0x52a2b9[_0x3fc3e9(_0x5d9f85._0x3f7f7a)]=_0x4d0029(_0x5d9f85._0x531a3d),_0x52a2b9[_0x4d0029(_0x5d9f85._0x537ef9)]='---',_0x52a2b9[_0x3fc3e9(0xfa)]=_0x4d0029(0x10e)+_0x3fc3e9(_0x5d9f85._0x13ceb2);const _0x205b85=_0x52a2b9,_0x52c73c=[_0x3fc3e9(_0x5d9f85._0x40c679),_0x4d0029(0xf4),_0x205b85[_0x4d0029(0x104)],_0x205b85['ONXYl']],_0x1fccae=_0x3c1e63[_0x4d0029(0x11a)]&&_0x205b85['uDKHu'](_0x3c1e63[_0x4d0029(_0x5d9f85._0x4f735a)][_0x3fc3e9(0xff)],0xad4+-0x36b*0x6+-0x4d7*-0x2)?_0x3c1e63[_0x3fc3e9(0x11a)]:_0x52c73c,_0x328b46=[_0x4d0029(0x133),'grep',_0x3fc3e9(_0x5d9f85._0x21599c),_0x4d0029(_0x5d9f85._0xf374f4),_0x4d0029(0x179),_0x205b85[_0x4d0029(0x198)]],_0x55f0c2=_0x328b46['map'](_0xbd1a39=>'\x20\x20'+_0xbd1a39+':\x20'+(_0x1fccae[_0x4d0029(0x168)](_0xbd1a39)?_0x3fc3e9(0x140):'false'));return[_0x205b85[_0x4d0029(0x137)],_0x4d0029(_0x5d9f85._0x4751ba)+_0x4d0029(_0x5d9f85._0x395219)+(_0x3c1e63[_0x4d0029(_0x5d9f85._0x3be85c)]||_0x3c1e63[_0x3fc3e9(0xfe)]),_0x205b85[_0x4d0029(0xfa)],'tools:',..._0x55f0c2,_0x3fc3e9(0xed),''][_0x4d0029(0x19a)]('\x0a');}function buildClaudeCodeAgentFrontmatter(_0x32dc9d){const _0x21aef9={_0xad5114:0x194,_0x8af7e5:0x19f,_0x59039e:0xf1,_0x3bf34d:0xdf,_0xdf92f3:0x119,_0x8ff66e:0x133,_0x448ddd:0x18a,_0x59fea9:0x12f,_0x129a2d:0x171,_0x4acd0c:0x161,_0x40230d:0xdf,_0x3a8a71:0x176,_0x35ee6d:0x11a,_0x177df2:0xff,_0x558634:0x19a,_0x261327:0x148,_0x25c0ff:0x16d},_0x42614a=_0x3326,_0x4f9344=_0x3326,_0x1ed9e5={};_0x1ed9e5[_0x42614a(_0x21aef9._0xad5114)]=_0x4f9344(_0x21aef9._0x8af7e5),_0x1ed9e5['TLHcN']=_0x42614a(0xe3),_0x1ed9e5['CjRaU']=_0x4f9344(_0x21aef9._0x59039e),_0x1ed9e5[_0x4f9344(_0x21aef9._0x3bf34d)]='Edit',_0x1ed9e5[_0x42614a(0x176)]='read',_0x1ed9e5[_0x4f9344(0x13a)]='grep',_0x1ed9e5['oIyFt']=function(_0x3af985,_0x527a2d){return _0x3af985>_0x527a2d;},_0x1ed9e5[_0x4f9344(_0x21aef9._0xdf92f3)]=_0x42614a(0xed);const _0x22959b=_0x1ed9e5,_0xd9d92a={};_0xd9d92a[_0x42614a(_0x21aef9._0x8ff66e)]=_0x4f9344(0x18b),_0xd9d92a[_0x42614a(0xf4)]=_0x22959b[_0x42614a(0x194)],_0xd9d92a[_0x42614a(_0x21aef9._0x448ddd)]=_0x22959b[_0x4f9344(0x109)],_0xd9d92a[_0x42614a(_0x21aef9._0x59fea9)]='Bash',_0xd9d92a[_0x4f9344(0x179)]=_0x22959b[_0x4f9344(_0x21aef9._0x129a2d)],_0xd9d92a[_0x42614a(_0x21aef9._0x4acd0c)]=_0x22959b[_0x42614a(_0x21aef9._0x40230d)];const _0x25080d=_0xd9d92a,_0x5eadb6=[_0x22959b[_0x42614a(_0x21aef9._0x3a8a71)],_0x22959b['rrBhu'],_0x42614a(_0x21aef9._0x448ddd),_0x42614a(0x12f)],_0x4fbccf=_0x32dc9d[_0x4f9344(_0x21aef9._0x35ee6d)]&&_0x22959b['oIyFt'](_0x32dc9d[_0x42614a(_0x21aef9._0x35ee6d)][_0x4f9344(_0x21aef9._0x177df2)],0x1443+0xc2*0x1d+-0x2a3d*0x1)?_0x32dc9d[_0x4f9344(0x11a)]:_0x5eadb6,_0x4f8c48=_0x4fbccf['map'](_0x69f0ea=>_0x25080d[_0x69f0ea]||_0x69f0ea)[_0x4f9344(_0x21aef9._0x558634)](',\x20');return[_0x4f9344(0xed),_0x4f9344(_0x21aef9._0x261327)+_0x32dc9d[_0x4f9344(0xfe)],'descriptio'+_0x42614a(_0x21aef9._0x25c0ff)+(_0x32dc9d['role']||_0x32dc9d['name']),'tools:\x20'+_0x4f8c48,_0x22959b[_0x4f9344(0x119)],''][_0x4f9344(0x19a)]('\x0a');}function _0x3326(_0x52bb53,_0x2270c2){_0x52bb53=_0x52bb53-(0xfbe+0xbac+-0x1a95);const _0x867cce=_0x1299();let _0x234fd6=_0x867cce[_0x52bb53];if(_0x3326['ZxLFiE']===undefined){var _0x509d22=function(_0x282931){const _0x1112ed='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3495c4='',_0x1cb158='',_0x73c141=_0x3495c4+_0x509d22,_0x233ab4=(''+function(){return-0x17d5+0x2d6+0x14ff;})['indexOf']('\x0a')!==-(0xb*-0x114+0x26ca+-0x71*0x3d);for(let _0x4b8b65=0x907*0x2+0x19a4+-0x2bb2,_0xc699b0,_0x4e8282,_0x30483f=0x3*0x24+-0x1*-0x527+-0x593;_0x4e8282=_0x282931['charAt'](_0x30483f++);~_0x4e8282&&(_0xc699b0=_0x4b8b65%(0x109a+-0x239*-0xb+-0x2909)?_0xc699b0*(0x2*0x5+-0x1*0x8f5+0x1*0x92b)+_0x4e8282:_0x4e8282,_0x4b8b65++%(-0xc5a+-0x32*0x1+0x324*0x4))?_0x3495c4+=_0x233ab4||_0x73c141['charCodeAt'](_0x30483f+(-0x757*-0x1+-0xaf*0xc+0xe7))-(0x1*0x1565+0x1792+-0x2ced)!==-0x2*-0x12b8+0x2*0x11b9+-0x48e2?String['fromCharCode'](0x5c*-0x18+-0x8db*0x2+0x1b55&_0xc699b0>>(-(-0x1c6*0xf+-0x96a+0x2406)*_0x4b8b65&0x45*-0x6a+-0xe2+0x1d7a)):_0x4b8b65:0x264b+0x828+0xfd*-0x2f){_0x4e8282=_0x1112ed['indexOf'](_0x4e8282);}for(let _0x1ae1b8=-0x1cca+-0x1f3e+0x3c08,_0x7f08dd=_0x3495c4['length'];_0x1ae1b8<_0x7f08dd;_0x1ae1b8++){_0x1cb158+='%'+('00'+_0x3495c4['charCodeAt'](_0x1ae1b8)['toString'](0x4*-0x873+-0x4*0x766+0x3f74))['slice'](-(0x15e2+0x120b+-0x3a1*0xb));}return decodeURIComponent(_0x1cb158);};_0x3326['iQZZQn']=_0x509d22,_0x3326['BWYUtu']={},_0x3326['ZxLFiE']=!![];}const _0x552a68=_0x867cce[0x97b+0xf97+-0x1912],_0x48a74b=_0x52bb53+_0x552a68,_0xc0016a=_0x3326['BWYUtu'][_0x48a74b];if(!_0xc0016a){const _0x21e299=function(_0x5ad000){this['uywPZy']=_0x5ad000,this['qaYLqq']=[0x2500+0xa95+-0x2f94,-0xffe+-0x1e07*0x1+0x99*0x4d,0x18f1+-0x2d7*-0x5+-0x2724],this['ENHxKR']=function(){return'newState';},this['OEJKoZ']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['LVftSh']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x21e299['prototype']['dhjniy']=function(){const _0x297972=new RegExp(this['OEJKoZ']+this['LVftSh']),_0x13135a=_0x297972['test'](this['ENHxKR']['toString']())?--this['qaYLqq'][-0xb55+-0x345+0xe9b]:--this['qaYLqq'][0x1bae+0x1e34+-0x1de*0x1f];return this['TrrwGD'](_0x13135a);},_0x21e299['prototype']['TrrwGD']=function(_0x4928d7){if(!Boolean(~_0x4928d7))return _0x4928d7;return this['hHvpxb'](this['uywPZy']);},_0x21e299['prototype']['hHvpxb']=function(_0x3fec8e){for(let _0x41c2c8=0x1736*-0x1+-0x13f8+0x2b2e,_0x27eb66=this['qaYLqq']['length'];_0x41c2c8<_0x27eb66;_0x41c2c8++){this['qaYLqq']['push'](Math['round'](Math['random']())),_0x27eb66=this['qaYLqq']['length'];}return _0x3fec8e(this['qaYLqq'][0x9b4+-0x1*-0x17e2+-0x2196]);},(''+function(){return-0xb42+0x4c2+-0x1a0*-0x4;})['indexOf']('\x0a')===-(0x15f6+-0x934+-0xcc1)&&new _0x21e299(_0x3326)['dhjniy'](),_0x234fd6=_0x3326['iQZZQn'](_0x234fd6),_0x3326['BWYUtu'][_0x48a74b]=_0x234fd6;}else _0x234fd6=_0xc0016a;return _0x234fd6;}function buildCommandRoutingSection(){const _0x410c17={_0xbe1f5e:0xdc,_0x451b37:0x182,_0x5d9776:0x134,_0x63f2a7:0x10a,_0x2b197e:0x160,_0x49afdb:0x134,_0x3ad957:0x189,_0x367dee:0x178,_0x475c43:0x116,_0x536d2b:0x180,_0x23afb9:0xec,_0x31df28:0x14c,_0x4d5273:0x170,_0x709d14:0x186,_0x518ac3:0x115,_0x4147a0:0x151,_0x1a87db:0x101,_0x2c0137:0xf3,_0x460e9d:0x159,_0x477ff6:0x144,_0x4c7258:0xf2,_0x34ac30:0x164,_0x59acac:0x12b,_0x349c39:0x16c,_0x43f965:0x10d,_0x230d31:0x13d,_0x55dfbd:0x122,_0x3b4f4e:0xfc},_0x4019ba=_0x3326,_0x246963=_0x3326;return _0x4019ba(0x143)+_0x4019ba(0x15e)+'入以下命令时,读取对'+_0x246963(_0x410c17._0xbe1f5e)+_0x4019ba(0x17a)+_0x4019ba(0xd9)+'----|-----'+_0x4019ba(0xfd)+_0x4019ba(_0x410c17._0x451b37)+'\x20|\x20`spec_c'+_0x246963(0x19c)+_0x4019ba(_0x410c17._0x5d9776)+_0x246963(0x14d)+_0x246963(0x13f)+_0x246963(0x106)+_0x4019ba(_0x410c17._0x63f2a7)+_0x246963(0xf5)+'mmands/spe'+_0x246963(0x183)+'p.md`\x20|\x0a|\x20'+'`/spec:pro'+_0x4019ba(_0x410c17._0x2b197e)+_0x4019ba(0x11f)+_0x4019ba(0x19c)+_0x246963(_0x410c17._0x49afdb)+_0x4019ba(0xe7)+_0x246963(_0x410c17._0x3ad957)+_0x4019ba(0xea)+_0x246963(0x127)+_0x246963(0x110)+_0x246963(0x12d)+'spec:flow.'+_0x4019ba(0xd7)+_0x4019ba(_0x410c17._0x367dee)+_0x4019ba(_0x410c17._0x475c43)+_0x4019ba(_0x410c17._0x536d2b)+_0x246963(0x187)+_0x246963(_0x410c17._0x23afb9)+_0x4019ba(_0x410c17._0x31df28)+_0x4019ba(0x100)+_0x4019ba(_0x410c17._0x4d5273)+_0x246963(0x10a)+_0x246963(0xf5)+_0x4019ba(0x13d)+_0x4019ba(_0x410c17._0x709d14)+'`\x20|\x0a|\x20`/sp'+'ec:review\x20'+_0x4019ba(_0x410c17._0x518ac3)+_0x4019ba(_0x410c17._0x4147a0)+'ot/command'+_0x4019ba(0x196)+_0x246963(_0x410c17._0x1a87db)+_0x246963(_0x410c17._0x2c0137)+_0x4019ba(0x132)+_0x246963(0x13e)+_0x4019ba(_0x410c17._0x460e9d)+_0x4019ba(_0x410c17._0x477ff6)+_0x246963(0x192)+_0x4019ba(_0x410c17._0x4c7258)+_0x246963(0x15c)+'\x20|\x20`spec_c'+'opilot/com'+_0x246963(0x134)+':test.md`\x20'+_0x246963(0x13f)+_0x4019ba(0x16a)+_0x246963(0x177)+'pec_copilo'+_0x246963(_0x410c17._0x34ac30)+_0x246963(_0x410c17._0x59acac)+_0x246963(0x173)+_0x4019ba(_0x410c17._0x349c39)+_0x246963(_0x410c17._0x43f965)+_0x246963(0x10a)+_0x246963(0xf5)+_0x4019ba(_0x410c17._0x230d31)+'c:hotfix.m'+'d`\x20|\x0a\x0a用户输入'+_0x4019ba(_0x410c17._0x55dfbd)+'读取对应文件并执行,'+_0x246963(0x191)+_0x246963(0x107)+_0x4019ba(_0x410c17._0x3b4f4e)+'>`\x20替换为用户在命'+_0x246963(0xe6);}const adapters={'opencode':{'name':'opencode','displayName':'opencode','description':_0x3752a6(0x139)+_0x3752a6(0x130)+'.com/openc'+'ode-ai/ope'+'ncode)','promptPath':_0x3752a6(0x141),'commandsDir':'.opencode/'+_0x2ed4ed(0x188),'hasNativeCommands':!![],'agentsDir':'.opencode/'+_0x3752a6(0x19e),'supportsSubagent':!![],'detect'(_0x38e5cb){const _0x320ddc={_0x363c28:0x14b,_0x5c01d0:0x169,_0x3361a2:0xe9,_0x2ccf66:0x193,_0x5368ac:0x19a,_0x149825:0x19a},_0x3f5170=_0x2ed4ed,_0x30f1fe=_0x2ed4ed,_0x2cd268={};_0x2cd268[_0x3f5170(_0x320ddc._0x363c28)]=_0x30f1fe(_0x320ddc._0x5c01d0)+_0x3f5170(_0x320ddc._0x3361a2);const _0x20793a=_0x2cd268;return fs[_0x30f1fe(_0x320ddc._0x2ccf66)](path[_0x30f1fe(_0x320ddc._0x5368ac)](_0x38e5cb,'.opencode'))||fs[_0x30f1fe(_0x320ddc._0x2ccf66)](path[_0x3f5170(_0x320ddc._0x149825)](_0x38e5cb,_0x20793a['nyBex']));},'formatPrompt'(_0x3fd274){return _0x3fd274;},'formatCommand'(_0x36bdd5,_0x4c5101){return _0x36bdd5;},'formatAgent'(_0x12e877,_0xa477af){const _0x3e3b5a={_0x173bdb:0x136},_0x1bd04a=_0x2ed4ed,_0x4b51c8=_0x2ed4ed,_0x4f83f1={'yZqbO':function(_0x501d4c,_0x4e40b8){return _0x501d4c+_0x4e40b8;},'KFHrU':function(_0x295c49,_0x2c33ba){return _0x295c49(_0x2c33ba);}};return _0x4f83f1[_0x1bd04a(0x175)](buildOpencodeAgentFrontmatter(_0xa477af),_0x4f83f1[_0x4b51c8(_0x3e3b5a._0x173bdb)](stripFrontmatter,_0x12e877));},'cleanupPaths':[_0x3752a6(0x141),_0x3752a6(0xdd)+_0x3752a6(0x188)]},'claude-code':{'name':_0x3752a6(0x11c)+'e','displayName':_0x2ed4ed(0x15d)+'e','description':_0x3752a6(0x15d)+_0x2ed4ed(0xf6)+_0x2ed4ed(0x195),'promptPath':'CLAUDE.md','commandsDir':_0x3752a6(0x147)+_0x2ed4ed(0xf8),'hasNativeCommands':!![],'agentsDir':_0x2ed4ed(0x128)+'ents','supportsSubagent':!![],'detect'(_0x2d67d5){const _0x4c05cc={_0x507404:0x19a},_0x4aa719=_0x3752a6,_0x496310=_0x3752a6,_0x167a8e={};_0x167a8e[_0x4aa719(0x16f)]='.claude';const _0x21cc41=_0x167a8e;return fs[_0x4aa719(0x193)](path['join'](_0x2d67d5,_0x21cc41['yFxah']))||fs[_0x4aa719(0x193)](path[_0x4aa719(_0x4c05cc._0x507404)](_0x2d67d5,'CLAUDE.md'));},'formatPrompt'(_0x2fed35){return _0x2fed35;},'formatCommand'(_0x21f2b2,_0x83723){return _0x21f2b2;},'formatAgent'(_0x162e80,_0x11503e){const _0x3f4b49={_0x246274:0x162},_0xb7edc4=_0x3752a6,_0x18c0e4=_0x3752a6,_0xf5b3d={'uhyqz':function(_0x4acfc5,_0x52b992){return _0x4acfc5+_0x52b992;},'wzITr':function(_0x54dd32,_0x12732a){return _0x54dd32(_0x12732a);}};return _0xf5b3d[_0xb7edc4(0xe1)](_0xf5b3d[_0xb7edc4(_0x3f4b49._0x246274)](buildClaudeCodeAgentFrontmatter,_0x11503e),_0xf5b3d[_0xb7edc4(0x162)](stripFrontmatter,_0x162e80));},'cleanupPaths':[_0x2ed4ed(0x14a),_0x2ed4ed(0x147)+_0x2ed4ed(0xf8)]},'cursor':{'name':'cursor','displayName':_0x3752a6(0x129),'description':_0x3752a6(0xf0)+'\x20(.cursor/'+_0x3752a6(0x157)+'c)','promptPath':'.cursor/ru'+_0x3752a6(0x12e)+_0x3752a6(0x153),'commandsDir':null,'hasNativeCommands':![],'detect'(_0x5ed43d){const _0x1c76b0={_0x321bde:0x19a,_0x2f9e43:0xda,_0x510ca0:0x12c},_0x201c1d=_0x2ed4ed,_0x2fcbf4=_0x2ed4ed,_0x398b66={};_0x398b66[_0x201c1d(0xda)]='.cursor';const _0x173d5e=_0x398b66;return fs['existsSync'](path[_0x201c1d(_0x1c76b0._0x321bde)](_0x5ed43d,_0x173d5e[_0x201c1d(_0x1c76b0._0x2f9e43)]))||fs['existsSync'](path[_0x201c1d(0x19a)](_0x5ed43d,_0x2fcbf4(_0x1c76b0._0x510ca0)+'es'));},'formatPrompt'(_0x391e99){const _0xca4a82={_0x28ad3f:0x18d,_0x5d5e5e:0xe4,_0x547fe6:0x19a},_0x1fb214=_0x2ed4ed,_0x18be9e=_0x2ed4ed,_0x323306={'HMHcS':function(_0x4b8f38){return _0x4b8f38();}},_0x4557d0=[_0x1fb214(0xed),_0x1fb214(0x17c)+_0x1fb214(0x156)+_0x18be9e(0x13c)+_0x1fb214(0x152)+_0x18be9e(_0xca4a82._0x28ad3f)+_0x18be9e(_0xca4a82._0x5d5e5e),'alwaysAppl'+_0x18be9e(0x13b),'---',''][_0x1fb214(_0xca4a82._0x547fe6)]('\x0a');return _0x4557d0+_0x391e99+_0x323306['HMHcS'](buildCommandRoutingSection);},'formatCommand'(_0x3cf6fe,_0x1e3f9b){return _0x3cf6fe;},'cleanupPaths':[_0x2ed4ed(0x125)+'les/spec-c'+_0x3752a6(0x153)]},'windsurf':{'name':_0x2ed4ed(0x146),'displayName':_0x2ed4ed(0x111),'description':_0x2ed4ed(0x165)+_0x2ed4ed(0x150)+_0x3752a6(0x11e)+')','promptPath':'.windsurf/'+_0x3752a6(0x184)+_0x3752a6(0x16e)+'d','commandsDir':null,'hasNativeCommands':![],'detect'(_0x37396a){const _0xcc729c={_0x31d3ad:0x19b,_0xaab804:0x193,_0x27800a:0x19a,_0x39760e:0x19b,_0x3f0e28:0x193,_0x38058e:0x19a,_0x3bbad9:0xef,_0x2235dd:0x163},_0x1a69c2=_0x2ed4ed,_0x110293=_0x2ed4ed,_0xaa4f8f={};_0xaa4f8f[_0x1a69c2(_0xcc729c._0x31d3ad)]=_0x110293(0x1a0);const _0x576caf=_0xaa4f8f;return fs[_0x110293(_0xcc729c._0xaab804)](path[_0x1a69c2(_0xcc729c._0x27800a)](_0x37396a,_0x576caf[_0x1a69c2(_0xcc729c._0x39760e)]))||fs[_0x110293(_0xcc729c._0x3f0e28)](path[_0x1a69c2(_0xcc729c._0x38058e)](_0x37396a,_0x1a69c2(_0xcc729c._0x3bbad9)+_0x1a69c2(_0xcc729c._0x2235dd)));},'formatPrompt'(_0x25152d){return _0x25152d+buildCommandRoutingSection();},'formatCommand'(_0x46a8d5,_0x4785bd){return _0x46a8d5;},'cleanupPaths':[_0x2ed4ed(0x138)+_0x3752a6(0x184)+_0x2ed4ed(0x16e)+'d']},'copilot':{'name':_0x3752a6(0x18c),'displayName':'GitHub\x20Cop'+_0x2ed4ed(0x120),'description':'GitHub\x20Cop'+'ilot\x20(.git'+_0x3752a6(0x114)+_0x3752a6(0x166)+_0x2ed4ed(0x181),'promptPath':'.github/co'+_0x2ed4ed(0x131)+_0x2ed4ed(0x19d)+'d','commandsDir':null,'hasNativeCommands':![],'detect'(_0xe97a52){const _0x1b3eab={_0x487586:0x199,_0x459b61:0xee,_0x438d9e:0x193},_0x562b3c=_0x3752a6,_0x424d26=_0x3752a6,_0x3fced4={};_0x3fced4[_0x562b3c(_0x1b3eab._0x487586)]=_0x424d26(_0x1b3eab._0x459b61)+'structions'+'.md';const _0x4a3777=_0x3fced4;return fs[_0x424d26(_0x1b3eab._0x438d9e)](path['join'](_0xe97a52,_0x562b3c(0x172),_0x4a3777[_0x424d26(0x199)]));},'formatPrompt'(_0x3f6af2){const _0x1d9fff=_0x2ed4ed,_0x12ee38={'RpAqW':function(_0x31213f){return _0x31213f();}};return _0x3f6af2+_0x12ee38[_0x1d9fff(0x17f)](buildCommandRoutingSection);},'formatCommand'(_0x213899,_0x281090){return _0x213899;},'cleanupPaths':[_0x2ed4ed(0x18e)+_0x3752a6(0x131)+_0x3752a6(0x19d)+'d']},'cline':{'name':'cline','displayName':_0x3752a6(0x11b),'description':_0x2ed4ed(0x17b)+_0x2ed4ed(0x112)+_0x3752a6(0x121)+'rules/)','promptPath':_0x3752a6(0xe5)+'s/spec-cop'+'ilot.md','commandsDir':null,'hasNativeCommands':![],'detect'(_0x210fc7){const _0x5f3ed1={_0x341c73:0x12a,_0x109010:0x19a,_0x4ce9af:0x193},_0x3d14bd=_0x2ed4ed,_0xffb101=_0x2ed4ed,_0x12c449={};_0x12c449[_0x3d14bd(_0x5f3ed1._0x341c73)]=_0xffb101(0x145);const _0x17f870=_0x12c449;return fs['existsSync'](path[_0xffb101(_0x5f3ed1._0x109010)](_0x210fc7,_0x3d14bd(0xe5)+'s'))||fs[_0xffb101(_0x5f3ed1._0x4ce9af)](path['join'](_0x210fc7,_0x17f870['VAVNu']));},'formatPrompt'(_0xad6483){const _0x4492ab={_0x59cdf2:0x14e},_0x3858b7=_0x3752a6,_0x86e111=_0x3752a6,_0x4673fd={'Lrpfb':function(_0x48ba10,_0x32f495){return _0x48ba10+_0x32f495;},'iYeHv':function(_0x570746){return _0x570746();}};return _0x4673fd[_0x3858b7(0x17d)](_0xad6483,_0x4673fd[_0x86e111(_0x4492ab._0x59cdf2)](buildCommandRoutingSection));},'formatCommand'(_0x253bca,_0x3ade13){return _0x253bca;},'cleanupPaths':[_0x2ed4ed(0xe5)+_0x2ed4ed(0xd5)+'ilot.md']}};function detectTools(_0x5778b2){const _0x243c22={_0x214371:0x135,_0x91effa:0x11d},_0x17dbcb=_0x2ed4ed,_0x245743=_0x2ed4ed;return Object[_0x17dbcb(_0x243c22._0x214371)](adapters)[_0x245743(_0x243c22._0x91effa)](_0x2be8af=>_0x2be8af[_0x17dbcb(0x10f)](_0x5778b2));}function _0x1299(){const _0x421284=['lMnSAw5L','D2LUzhn1CMy','lMnSyxvKzs9JBW','BMfTztOG','kcGOlISPkYKRkq','q0XbvurflM1K','BNLczxG','CgX5lM1Kycb8cG','oMLUAxqUBwrGia','AvLLshy','wwH6Eg8','reuGkc53Aw5KCW','C3bLy19JB3bPBa','Bg9WBwvUDcbgCG','B3bPBg90lM1KyW','nJmZmJm2neHqtK5TAW','Bwf0y2G','BJOGiLnWzwmTra','CNvSzxmVkI5Tza','nti0nZG1sfroEvbt','CgLSB3qVy29TBq','CM9Szq','z2vUDa','zxn0idZLJ5JMM7tLKi0+ya','q2XHDwrLienVza','5zg95lUK6lEV55sXcGRLVzpNLkJMIlFOVPm','C3vWCg9YDgvKva','Cg9Zzsa86zYa5RgcpMa','zwrPDa','D3Pjvhi','DwXLCW','Dc9JB21Tyw5KCW','v2LUzhn1CMyGsq','Dc1PBNn0CNvJDa','y29UC3rYDwn0BW','Aw5JBhvKzxm','B3bLBMnVzguUAG','oMfYy2HPDMuGpa','CgfYC2vbz2vUDa','FcbGl3nWzwm6Aa','BJOG','lwnVCgLSB3qUBq','Euz4ywG','Bw9Rzsa85y+y5PU05zcnpG','q2Psyvu','lMDPDgH1yG','AxzLlM1Kycb8cG','swrfv2K','EvPXyK8','tgTXu3O','5y+y5PU05zcnpMaGFcbGCW','C3bLyZPHChbSEq','D3jPDgu','77YAcGP8iowrVEs7Pcb8ia','q2XPBMuGvLndBW','zgvZy3jPChrPBW','thjWzMi','wgjPyNe','uNbbCvC','yhnWzwnFy29WAq','Aw9UCY5TzcK','C3bLyZPPBML0ya','yZPIB290C3rYyq','CNvSzxmVC3bLyW','nti1nZi2EK5KEeXo','yZPZBw9Rzs5Tza','Bg90l2nVBw1HBG','y29TBwfUzhm','zgaGFaP8igaVCW','z2XVyG','uMvHza','y29WAwXVDa','yw1LD29YAYdIGjqG','lMDPDgH1yI9JBW','ndLJDvHNtNm','BMLyvui','5lIn6zYa6kAb5yAn5QYH56gU6k6K44cccUwWHG','zML4lM1Kycb8cG','zxHPC3rZu3LUyW','CfD6tKS','AhjVCgLJkq','CY9ZCgvJoNjLDG','EejSEha','zK50vKq','vwfYzwq','AM9PBG','yMnoBuC','B3bPBg90l2nVBq','CNvJDgLVBNmUBq','ywDLBNq','r3jLCa','lNDPBMrZDxjM','CY9ZCgvJlwnVCa','q3b6s2q','BwrGihWkFcbGlW','C2vHCMnO','6k+75y+w5PAh5lU2ihWkFc0T','tNfKCwO','mtqXndmYDg5iAeLb','5BQu5PAh5lU25BM25OYj5yw25OYh5lUK5OMN6kgm','lM9Wzw5JB2rLlW','mZvNCLDUu3q','tfnewhy','A2v5CW','DwH5CxO','mZa0mJq4CvnitMTU','r2XVyG','quKG57Yw56cb5y2p5l2C6kEe6iYdiG','lMnSAw5LCNvSzq','5lUK5zco5O+q5l6B55Qe5y+c5PwW44cccG','oNbYB3bVC2uUBq','se5wDu0','C29U','CgvJoMzSB3CGpa','C3rYAxbgCM9UDa','zhmVC3bLyZPHCa','ls0T','y29WAwXVDc1PBG','lNDPBMrZDxjMCG','q3vYC29YieLerq','v3jPDgu','FcbGl3nWzwm6Da','FcbGl3nWzwm6zG','z3jLCa','y29WAwXVDc9JBW','zsbdteKGkefUDa','C3bSAxq','Bw1HBMrZ','zwn0Aw9U','CuHAwNO','DhjPBq','5y+y5PU05zcnpMdJGifGpoApJ+I/Sa','ls0TlxWkFcbGlW','BMfTzq','BgvUz3rO','FcbGl3nWzwm6CW','Awv3lM1Kycb8cG','Dg9tDhjPBMC','C3rYAw5N','r2XIDeW','lM9Wzw5JB2rL','oMjVB3rZDhjHCa','iga86zYa5RgcpMdJGifGpa','yNvPBgrdB21Tyq','veXiy04','ycb8igbZCgvJxW','zgv0zwn0vg9VBa','CLLyDNi','B3rMAxGGpoApJ+I/Sd4','Bw9KztOGC3vIyq','zgv0zwn0','zwnFy29WAwXVDa','v2LUzhn1CMy','zguGzxH0zw5ZAq','B29SCW','AhvIl2nVCgLSBW','powpMoABTowqJt5GihWGya','idZLJ5JMM7tLKi0+ycb8ia','ntK4mta0yxD0tNHl','yxbWBhK','CuzgA1C','Dg9VBhm','q2XPBMu','y2XHDwrLlwnVza','zMLSDgvY','DxjMl3j1BgvZlW','ihWGyhnWzwnFyW','AwXVDa','B24Gkc5JBgLUzq','5zg95lUK5zco77YmkIRNQ4VLJBmQkG','mJuZmJG0me5UtgLlEq','EffzBLK','lMn1CNnVCI9YDq','mtzMzwDKCK8','6zYa5RgcpMaGFcbGC3a','lMnSyxvKzs9HzW','q3vYC29Y','vKfwtNu','l3nWzwm6yxjJAa','lMn1CNnVCNj1Ba','l2nVBw1HBMrZlW','BgvZl3nWzwmTyW','yMfZAa','teKGkgDPDgH1yG','CgLSB3qTAw5ZDa','AxGGpowpMoABTowqJt5Gia','CMvHza','BwfUzhmVC3bLyW','DMfSDwvZ','s0ziCLu','qxnOBNa','lNDPBMrZDxjMlW','B3bLBMnVzguGqW','CNjcAhu','EtOGDhj1zq','CML2zw4Grgv2zq','Bw1HBMrZl3nWzq','FcbGC3bLy19JBW','FaP8igaVC3bLyW','Dhj1zq','quDftLrtlM1K','zxHWB3j0CW','cGOTls0kcImJia','yw5KCY9ZCgvJoG'];_0x1299=function(){return _0x421284;};return _0x1299();}function supportedTools(){const _0x5609ad=_0x3752a6;return Object[_0x5609ad(0xe0)](adapters);}const _0x56656c={};_0x56656c['adapters']=adapters,_0x56656c[_0x3752a6(0x10b)+'s']=detectTools,_0x56656c[_0x3752a6(0x15f)+_0x3752a6(0x113)]=supportedTools,_0x56656c[_0x2ed4ed(0x108)+'ndRoutingS'+_0x2ed4ed(0xf9)]=buildCommandRoutingSection,_0x56656c[_0x3752a6(0xeb)+'matter']=stripFrontmatter,_0x56656c[_0x3752a6(0x16b)+'Meta']=parseAgentMeta,module[_0x2ed4ed(0x142)]=_0x56656c;
|