@lovrabet/rabetbase-cli 2.0.5 → 2.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.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/doc.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/add.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/remote.js +1 -1
- package/lib/commands/app/remove.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app/use.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/new.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/links.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/init/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/update.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -0
- package/lib/commands/project/create/format-elapsed.js +1 -0
- package/lib/commands/project/create/main.js +1 -0
- package/lib/commands/project/create/non-interactive.js +1 -0
- package/lib/commands/project/create/project-template-path.js +1 -0
- package/lib/commands/project/create/use-copy-project-template.js +1 -0
- package/lib/commands/project/create/use-format-code.js +1 -0
- package/lib/commands/project/create/use-install-dependencies.js +1 -0
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/init.js +1 -0
- package/lib/commands/project/upgrade.js +1 -0
- package/lib/commands/registry.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/save.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/copy-directory.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/rules-cdn.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/package.json +1 -1
- package/lib/commands/build.js +0 -1
- package/lib/commands/preview.js +0 -1
- package/lib/commands/project-upgrade.js +0 -1
- package/lib/commands/start.js +0 -1
- package/lib/create-app/enhanced-guided-create.js +0 -1
- package/lib/create-app/format-elapsed.js +0 -1
- package/lib/create-app/main.js +0 -1
- package/lib/create-app/non-interactive.js +0 -1
- package/lib/create-app/use-copy-project-template.js +0 -1
- package/lib/create-app/use-format-code.js +0 -1
- package/lib/create-app/use-install-dependencies.js +0 -1
- package/lib/init/main.js +0 -1
package/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a104_0x109d(){const _0x54e33d=['30wZlXOm','15knKaoE','24tPPFyg','error','filter','log','Unknown\x20error','11994ljrBNl','5131IVmVVc','object','3060594otJsKu','join','padEnd','length','risk','isArray','data','keys','table','max','pretty','command','map','entries','message','\x20items:\x0a','1353263oJBJzq','Found\x20','stdout','18245777iXDakw','(empty)','[dry-run]\x20Would\x20execute:','stringify','write','2131845KyrRxm','dryRun','2924544FlCPcu','Error:\x20','1238284NxNgcd'];a104_0x109d=function(){return _0x54e33d;};return a104_0x109d();}(function(_0x418ab8,_0x4902d1){const _0x154bdd=a104_0x2f6d,_0x59e52b=_0x418ab8();while(!![]){try{const _0x599896=-parseInt(_0x154bdd(0x11a))/0x1+-parseInt(_0x154bdd(0xfd))/0x2+-parseInt(_0x154bdd(0x101))/0x3*(-parseInt(_0x154bdd(0xff))/0x4)+-parseInt(_0x154bdd(0xfb))/0x5+-parseInt(_0x154bdd(0x107))/0x6*(parseInt(_0x154bdd(0x108))/0x7)+-parseInt(_0x154bdd(0x102))/0x8*(parseInt(_0x154bdd(0x10a))/0x9)+-parseInt(_0x154bdd(0x100))/0xa*(-parseInt(_0x154bdd(0x11d))/0xb);if(_0x599896===_0x4902d1)break;else _0x59e52b['push'](_0x59e52b['shift']());}catch(_0xb02ec){_0x59e52b['push'](_0x59e52b['shift']());}}}(a104_0x109d,0xc27bf));export function formatOutput(_0x6172e2,_0x4a3d59){const _0x4dfaa7=a104_0x2f6d,{format:_0x69a5b4}=_0x4a3d59;switch(_0x69a5b4){case'json':printJson(_0x6172e2,_0x4a3d59);break;case _0x4dfaa7(0x112):printTable(_0x6172e2,_0x4a3d59);break;case _0x4dfaa7(0x114):default:printPretty(_0x6172e2,_0x4a3d59);break;}}function a104_0x2f6d(_0x313317,_0x47cecf){_0x313317=_0x313317-0xfa;const _0x109d94=a104_0x109d();let _0x2f6d0a=_0x109d94[_0x313317];return _0x2f6d0a;}function printJson(_0x46c4cc,_0x2fca8e){const _0x69690e=a104_0x2f6d,_0x463abf={'ok':_0x46c4cc['ok'],'command':_0x2fca8e[_0x69690e(0x115)],'risk':_0x2fca8e[_0x69690e(0x10e)]};if(_0x2fca8e[_0x69690e(0xfc)])_0x463abf['dryRun']=!![];if(_0x46c4cc[_0x69690e(0x110)]!==undefined)_0x463abf[_0x69690e(0x110)]=_0x46c4cc[_0x69690e(0x110)];!_0x46c4cc['ok']&&_0x46c4cc[_0x69690e(0x118)]&&(_0x463abf[_0x69690e(0x103)]={'code':'command_error','message':_0x46c4cc[_0x69690e(0x118)]}),process[_0x69690e(0x11c)][_0x69690e(0xfa)](JSON[_0x69690e(0x120)](_0x463abf,null,0x2)+'\x0a');}function printPretty(_0x17f85f,_0x48a4c3){const _0x31fb3e=a104_0x2f6d;if(_0x48a4c3[_0x31fb3e(0xfc)]){console[_0x31fb3e(0x105)](_0x31fb3e(0x11f)),console[_0x31fb3e(0x105)](JSON['stringify'](_0x17f85f['data'],null,0x2));return;}if(!_0x17f85f['ok']){console['error'](_0x31fb3e(0xfe)+(_0x17f85f[_0x31fb3e(0x118)]??_0x31fb3e(0x106)));return;}const _0x1f3406=_0x17f85f[_0x31fb3e(0x110)];if(_0x1f3406===undefined||_0x1f3406===null){if(_0x17f85f[_0x31fb3e(0x118)])console[_0x31fb3e(0x105)](_0x17f85f[_0x31fb3e(0x118)]);return;}if(Array[_0x31fb3e(0x10f)](_0x1f3406)){printArrayPretty(_0x1f3406);return;}if(typeof _0x1f3406===_0x31fb3e(0x109)){printObjectPretty(_0x1f3406);return;}console['log'](String(_0x1f3406));}function printObjectPretty(_0x69f279){const _0x39067d=a104_0x2f6d,_0x2dbc19=Math[_0x39067d(0x113)](...Object[_0x39067d(0x111)](_0x69f279)[_0x39067d(0x116)](_0x22708d=>_0x22708d['length']),0x0);for(const [_0x2ff097,_0xbfbfad]of Object[_0x39067d(0x117)](_0x69f279)){if(_0xbfbfad===undefined||_0xbfbfad===null)continue;const _0x51a8bd=_0x2ff097['padEnd'](_0x2dbc19);typeof _0xbfbfad===_0x39067d(0x109)?console[_0x39067d(0x105)](_0x51a8bd+'\x20\x20'+JSON[_0x39067d(0x120)](_0xbfbfad)):console[_0x39067d(0x105)](_0x51a8bd+'\x20\x20'+_0xbfbfad);}}function printArrayPretty(_0x4dde5e){const _0x43dd3b=a104_0x2f6d;if(_0x4dde5e[_0x43dd3b(0x10d)]===0x0){console['log'](_0x43dd3b(0x11e));return;}console[_0x43dd3b(0x105)](_0x43dd3b(0x11b)+_0x4dde5e[_0x43dd3b(0x10d)]+_0x43dd3b(0x119));for(const _0x4f63cc of _0x4dde5e){if(typeof _0x4f63cc===_0x43dd3b(0x109)&&_0x4f63cc!==null){const _0x20634d=Object[_0x43dd3b(0x117)](_0x4f63cc)[_0x43dd3b(0x104)](([,_0x4fe810])=>_0x4fe810!=null&&_0x4fe810!=='');if(_0x20634d[_0x43dd3b(0x10d)]===0x0)continue;const _0x379116=Math['max'](..._0x20634d[_0x43dd3b(0x116)](([_0x1fec52])=>_0x1fec52[_0x43dd3b(0x10d)]));for(const [_0x4d8f3f,_0x80503]of _0x20634d){const _0x5edead=typeof _0x80503===_0x43dd3b(0x109)?JSON[_0x43dd3b(0x120)](_0x80503):String(_0x80503);console[_0x43dd3b(0x105)]('\x20\x20'+_0x4d8f3f['padEnd'](_0x379116)+'\x20\x20'+_0x5edead);}console[_0x43dd3b(0x105)]('');}else console['log']('\x20\x20'+_0x4f63cc);}}function printTable(_0x4cea86,_0x253034){const _0x1a07d3=a104_0x2f6d,_0x2f38a9=_0x4cea86['data'];if(!_0x4cea86['ok']){console['error'](_0x1a07d3(0xfe)+(_0x4cea86['message']??_0x1a07d3(0x106)));return;}const _0x129c7f=Array['isArray'](_0x2f38a9)?_0x2f38a9:_0x2f38a9?[_0x2f38a9]:[];if(_0x129c7f[_0x1a07d3(0x10d)]===0x0){console[_0x1a07d3(0x105)](_0x1a07d3(0x11e));return;}const _0x527303=Object[_0x1a07d3(0x111)](_0x129c7f[0x0]),_0x31766f=_0x527303[_0x1a07d3(0x116)](_0x2b2c29=>Math[_0x1a07d3(0x113)](_0x2b2c29[_0x1a07d3(0x10d)],..._0x129c7f[_0x1a07d3(0x116)](_0x18b5ba=>String(_0x18b5ba[_0x2b2c29]??'')[_0x1a07d3(0x10d)]))),_0x46ad54=_0x527303[_0x1a07d3(0x116)]((_0x38fe61,_0x22a636)=>_0x38fe61['padEnd'](_0x31766f[_0x22a636]))[_0x1a07d3(0x10b)]('\x20\x20'),_0x2c580b=_0x31766f[_0x1a07d3(0x116)](_0x1a3ef0=>'-'['repeat'](_0x1a3ef0))['join']('\x20\x20');console[_0x1a07d3(0x105)](_0x46ad54),console[_0x1a07d3(0x105)](_0x2c580b);for(const _0x4c6543 of _0x129c7f){const _0x92425b=_0x527303[_0x1a07d3(0x116)]((_0x137e45,_0x502588)=>String(_0x4c6543[_0x137e45]??'')[_0x1a07d3(0x10c)](_0x31766f[_0x502588]))[_0x1a07d3(0x10b)]('\x20\x20');console[_0x1a07d3(0x105)](_0x92425b);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x24679c,_0x62be8a){var _0x50768a=a105_0x20a1,_0x5aa52d=_0x24679c();while(!![]){try{var _0x4e352c=parseInt(_0x50768a(0x1bf))/0x1+-parseInt(_0x50768a(0x1be))/0x2+-parseInt(_0x50768a(0x1bc))/0x3+parseInt(_0x50768a(0x1c1))/0x4+-parseInt(_0x50768a(0x1bb))/0x5*(-parseInt(_0x50768a(0x1c2))/0x6)+parseInt(_0x50768a(0x1c3))/0x7+parseInt(_0x50768a(0x1c4))/0x8*(parseInt(_0x50768a(0x1c5))/0x9);if(_0x4e352c===_0x62be8a)break;else _0x5aa52d['push'](_0x5aa52d['shift']());}catch(_0x3f20fd){_0x5aa52d['push'](_0x5aa52d['shift']());}}}(a105_0x3cc8,0xa3abb));function a105_0x20a1(_0x5b7496,_0x289503){_0x5b7496=_0x5b7496-0x1b9;var _0x3cc884=a105_0x3cc8();var _0x20a152=_0x3cc884[_0x5b7496];return _0x20a152;}export function extractList(_0x32ff19){var _0x1c162e=a105_0x20a1;if(Array[_0x1c162e(0x1bd)](_0x32ff19))return _0x32ff19;if(_0x32ff19&&typeof _0x32ff19==='object')return _0x32ff19[_0x1c162e(0x1b9)]??[];return[];}function a105_0x3cc8(){var _0x3c72b5=['isArray','2499408THmrWF','125765nQRmfM','object','1752908pgBGDT','642bVbmQO','4973605xWHADD','872yPrtoT','38601hmzYyN','tableData','paging','43825ArXlin','2279292nhBcBR'];a105_0x3cc8=function(){return _0x3c72b5;};return a105_0x3cc8();}export function extractPaging(_0x2f2905){var _0x5aace2=a105_0x20a1;if(_0x2f2905&&typeof _0x2f2905===_0x5aace2(0x1c0)&&!Array['isArray'](_0x2f2905))return _0x2f2905[_0x5aace2(0x1ba)];return undefined;}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x29293e,_0x1105b3){const _0x1d836e=a106_0x2311,_0x4c9d44=_0x29293e();while(!![]){try{const _0x4993d3=-parseInt(_0x1d836e(0xe0))/0x1+-parseInt(_0x1d836e(0xba))/0x2*(parseInt(_0x1d836e(0xf1))/0x3)+-parseInt(_0x1d836e(0xc4))/0x4+-parseInt(_0x1d836e(0xd2))/0x5*(-parseInt(_0x1d836e(0xee))/0x6)+parseInt(_0x1d836e(0xe5))/0x7*(parseInt(_0x1d836e(0xcf))/0x8)+-parseInt(_0x1d836e(0xbc))/0x9+parseInt(_0x1d836e(0xf8))/0xa*(parseInt(_0x1d836e(0xc1))/0xb);if(_0x4993d3===_0x1105b3)break;else _0x4c9d44['push'](_0x4c9d44['shift']());}catch(_0x5cfa53){_0x4c9d44['push'](_0x4c9d44['shift']());}}}(a106_0x59cc,0x9eec9));import{riskLevelOrder,isValidFormat}from'./types.js';import{parseFlags,validateFlags}from'./flags.js';import{formatOutput}from'./output.js';import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';function a106_0x2311(_0x234bd7,_0x87ba59){_0x234bd7=_0x234bd7-0xb7;const _0x59cc0f=a106_0x59cc();let _0x23119e=_0x59cc0f[_0x234bd7];return _0x23119e;}import{CLI_BIN_NAME}from'../constant/cli.js';export async function runCommand(_0x2dd4fb,_0x4e63c1){const _0x5acd86=a106_0x2311,_0x4a11f9=CLI_BIN_NAME+'\x20'+_0x2dd4fb['service']+'\x20'+_0x2dd4fb['command'],_0x2c1d59=parseFlags(_0x2dd4fb['flags'],_0x4e63c1[_0x5acd86(0xbb)]);validateFlags(_0x2dd4fb['flags'],_0x2c1d59,_0x4a11f9);if(!_0x2c1d59['dry-run']&&_0x4e63c1[_0x5acd86(0xea)]&&riskLevelOrder(_0x2dd4fb[_0x5acd86(0xbf)])>riskLevelOrder(_0x4e63c1[_0x5acd86(0xea)])){if(_0x4e63c1[_0x5acd86(0xc6)])throw CliErrors[_0x5acd86(0xbd)](_0x5acd86(0xc5)+_0x4a11f9+_0x5acd86(0xc7)+_0x2dd4fb['risk']+'\x22,\x20which\x20exceeds\x20the\x20configured\x20riskLevel\x20\x22'+_0x4e63c1[_0x5acd86(0xea)]+'\x22.');throw CliErrors[_0x5acd86(0xbd)](_0x5acd86(0xc5)+_0x4a11f9+'`\x20has\x20risk\x20level\x20\x22'+_0x2dd4fb[_0x5acd86(0xbf)]+'\x22,\x20which\x20exceeds\x20the\x20configured\x20riskLevel\x20\x22'+_0x4e63c1['riskLevel']+_0x5acd86(0xd5)+('\x20\x20Edit\x20the\x20config\x20file\x20manually\x20and\x20set\x20riskLevel\x20to\x20\x22'+_0x2dd4fb[_0x5acd86(0xbf)]+_0x5acd86(0xe1)));}const _0x5462f3=_0x4e63c1[_0x5acd86(0xdb)]||_0x5acd86(0xe8);resolveAliasToCode(_0x2dd4fb,_0x2c1d59,_0x5462f3,_0x4a11f9);let _0x4fd0fb='';if(_0x2dd4fb[_0x5acd86(0xcd)]!==![]){_0x4fd0fb=_0x4e63c1[_0x5acd86(0xc9)]();if(!_0x4fd0fb)throw CliErrors[_0x5acd86(0xc2)]();const {setActiveCookie:_0x4dcd16}=await import('../core/api-client.js');_0x4dcd16(_0x4fd0fb);}let _0x536401='';if(_0x2dd4fb['requiresAppCode']!==![]){_0x536401=_0x4e63c1[_0x5acd86(0xd8)]()??'';if(!_0x536401)throw CliErrors[_0x5acd86(0xdf)](_0x5acd86(0xca)+CLI_BIN_NAME+_0x5acd86(0xdc));}const _0x394589=resolveFormat(_0x2c1d59,_0x2dd4fb,_0x4e63c1[_0x5acd86(0xf0)]),_0x5876c3=buildRuntimeContext({'appCode':_0x536401,'cookie':_0x4fd0fb,'apiDomain':_0x4e63c1['resolveApiDomain'](),'format':_0x394589,'flags':_0x2c1d59,'def':_0x2dd4fb,'nonInteractive':_0x4e63c1[_0x5acd86(0xc6)],'defaultPageSize':_0x4e63c1[_0x5acd86(0xf5)],'defaultVerbose':_0x4e63c1['defaultVerbose'],'apiDir':_0x5462f3,'selectedAppName':_0x4e63c1[_0x5acd86(0xda)],'args':_0x4e63c1[_0x5acd86(0xe4)]??[]});_0x2dd4fb[_0x5acd86(0xf9)]&&await _0x2dd4fb[_0x5acd86(0xf9)](_0x5876c3);if(_0x2c1d59[_0x5acd86(0xd1)]){if(!_0x2dd4fb[_0x5acd86(0xcc)])throw CliErrors[_0x5acd86(0xbd)](_0x5acd86(0xfe)+_0x4a11f9+'`.');const _0x3d556d=await _0x2dd4fb[_0x5acd86(0xcc)](_0x5876c3);formatOutput({'ok':!![],'data':_0x3d556d},{'command':_0x4a11f9,'risk':_0x2dd4fb[_0x5acd86(0xbf)],'format':_0x394589,'dryRun':!![]});return;}if(_0x2dd4fb['risk']===_0x5acd86(0xed)&&!_0x2c1d59[_0x5acd86(0xfb)]){if(_0x4e63c1[_0x5acd86(0xc6)])throw CliErrors['validation']('High-risk\x20operation\x20`'+_0x4a11f9+_0x5acd86(0xe3));await requireConfirmation(_0x4a11f9);}const _0xd017f5=await _0x2dd4fb[_0x5acd86(0xc8)](_0x5876c3);formatOutput(_0xd017f5,{'command':_0x4a11f9,'risk':_0x2dd4fb[_0x5acd86(0xbf)],'format':_0x394589});}function buildRuntimeContext(_0x1c074a){const _0x287313=a106_0x2311,{flags:_0x5272d1,def:_0x250997}=_0x1c074a,_0x28c631=CLI_BIN_NAME+'\x20'+_0x250997[_0x287313(0xe6)]+'\x20'+_0x250997[_0x287313(0xe7)];return{'appCode':_0x1c074a[_0x287313(0xb9)],'cookie':_0x1c074a[_0x287313(0xf4)],'apiDomain':_0x1c074a[_0x287313(0xec)],'format':_0x1c074a[_0x287313(0xbe)],'nonInteractive':_0x1c074a['nonInteractive'],'apiDir':_0x1c074a[_0x287313(0xdb)],'selectedAppName':_0x1c074a[_0x287313(0xda)],'args':_0x1c074a[_0x287313(0xe4)],'str'(_0x2e4d87){return String(_0x5272d1[_0x2e4d87]??'');},'bool'(_0x14ba13){const _0x55d53f=_0x287313;if(_0x5272d1[_0x14ba13]===!![])return!![];if(_0x14ba13==='verbose'&&_0x1c074a[_0x55d53f(0xfc)])return!![];return![];},'num'(_0x4d9eba,_0x1772e9){const _0x4cb91b=_0x287313,_0x296470=_0x5272d1[_0x4d9eba];if(typeof _0x296470===_0x4cb91b(0xce))return _0x296470;if(_0x4d9eba==='pagesize'&&_0x1c074a[_0x4cb91b(0xf5)]!=null)return _0x1c074a[_0x4cb91b(0xf5)];return _0x1772e9??0x0;},'flag'(_0x27be45){return _0x5272d1[_0x27be45];},'output'(_0x3af7ea){const _0x1fe88c=_0x287313;formatOutput(_0x3af7ea,{'command':_0x28c631,'risk':_0x250997[_0x1fe88c(0xbf)],'format':_0x1c074a['format']});}};}function resolveFormat(_0x35f5f4,_0x48f7fd,_0x237842){const _0x56b54c=a106_0x2311;if(_0x48f7fd['hasFormat']===![])return _0x56b54c(0xef);const _0x349f9a=_0x35f5f4[_0x56b54c(0xbe)];if(isValidFormat(_0x349f9a))return _0x349f9a;if(_0x237842)return _0x237842;return _0x56b54c(0xef);}async function requireConfirmation(_0x90d1dd){const _0x1358ae=a106_0x2311,_0xa8920b=await import('node:readline'),_0x5ae0eb=_0xa8920b[_0x1358ae(0xd9)]({'input':process['stdin'],'output':process[_0x1358ae(0xfd)]});return new Promise((_0x423284,_0x18a5c4)=>{const _0x196c2b=_0x1358ae;_0x5ae0eb[_0x196c2b(0xde)]('⚠\x20\x20High-risk\x20operation:\x20'+_0x90d1dd+'\x0a\x20\x20\x20Continue?\x20[y/N]\x20',_0x22d6ba=>{const _0x3bcc10=_0x196c2b;_0x5ae0eb[_0x3bcc10(0xd4)](),_0x22d6ba['toLowerCase']()==='y'||_0x22d6ba[_0x3bcc10(0xcb)]()===_0x3bcc10(0xfb)?_0x423284():_0x18a5c4(CliErrors[_0x3bcc10(0xeb)](_0x3bcc10(0xd6)));});});}function resolveAliasToCode(_0x2e590f,_0x321930,_0x376075,_0x2ab391){const _0x1f38a0=a106_0x2311,_0x105940=_0x2e590f[_0x1f38a0(0xe2)][_0x1f38a0(0xe9)](_0x5c86ca=>_0x5c86ca[_0x1f38a0(0xd0)]===_0x1f38a0(0xf3)&&_0x5c86ca[_0x1f38a0(0xdd)]===_0x1f38a0(0xd3)),_0x47400b=_0x2e590f['flags']['some'](_0x56b72b=>_0x56b72b[_0x1f38a0(0xd0)]===_0x1f38a0(0xf2)&&_0x56b72b[_0x1f38a0(0xdd)]===_0x1f38a0(0xd3));if(!_0x105940||!_0x47400b)return;const _0x5a406c=_0x321930[_0x1f38a0(0xf3)]?String(_0x321930[_0x1f38a0(0xf3)]):'',_0x206910=_0x321930['alias']?String(_0x321930['alias']):'';if(!_0x5a406c&&!_0x206910)throw CliErrors['validation']('`'+_0x2ab391+_0x1f38a0(0xd7));if(_0x206910&&!_0x5a406c){const _0x5afcf0=resolveAlias(_0x376075,_0x206910);if(!_0x5afcf0){const _0x11868d=listAliases(_0x376075)[_0x1f38a0(0xb8)](_0x6024ac=>_0x6024ac[_0x1f38a0(0xf2)]),_0x2518b=_0x11868d[_0x1f38a0(0xf7)]?_0x1f38a0(0xf6)+_0x11868d['join'](',\x20'):_0x1f38a0(0xb7)+_0x376075+'.\x20Run\x20`'+CLI_BIN_NAME+_0x1f38a0(0xc3);throw CliErrors[_0x1f38a0(0xbd)](_0x1f38a0(0xfa)+_0x206910+_0x1f38a0(0xc0)+_0x2518b);}_0x321930[_0x1f38a0(0xf3)]=_0x5afcf0;}}function a106_0x59cc(){const _0x12fe67=['stderr','--dry-run\x20is\x20not\x20supported\x20for\x20`','No\x20api.ts\x20found\x20in\x20','map','appCode','116bZlsZN','rawFlags','8954028eWhqhI','validation','format','risk','\x22.\x20','36322jnGcjF','authRequired','\x20api\x20pull`\x20first.','1976660YpIiRQ','Command\x20`','isNonInteractive','`\x20has\x20risk\x20level\x20\x22','execute','resolveCookie','Set\x20appcode\x20via\x20`','toLowerCase','dryRun','requiresAuth','number','8gWgkoA','name','dry-run','18015zbRuLJ','string','close','\x22.\x0a','Operation\x20cancelled\x20by\x20user.','`\x20requires\x20either\x20--code\x20or\x20--alias.','resolveAppCode','createInterface','selectedAppName','apiDir','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','type','question','configMissing','1092854IYiULQ','\x22.\x20visit\x20https://qizhiyuntu.feishu.cn/docx/JTiOdxQlXo2dQLxXVu6ctutcnme\x20for\x20more\x20information.','flags','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','args','4098283JpgtmQ','service','command','./src/api','some','riskLevel','cancelled','apiDomain','high-risk-write','2010hsdtAA','pretty','defaultFormat','36171lWJjpw','alias','code','cookie','defaultPageSize','Available\x20aliases:\x20','length','6480wYOjJd','validate','Unknown\x20alias\x20\x22','yes','defaultVerbose'];a106_0x59cc=function(){return _0x12fe67;};return a106_0x59cc();}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a107_0x204f(){const _0x13739c=['445826lbcpCq','6689168ozciFn','6235544mzMZmt','725352LkEeor','pretty','8VpDGdC','794040QyHYjf','27yZWhCz','20923960IClahP','11782863gMACZs','54cTisEV'];a107_0x204f=function(){return _0x13739c;};return a107_0x204f();}function a107_0x201b(_0x1b6e99,_0x37d7ca){_0x1b6e99=_0x1b6e99-0x182;const _0x204f8c=a107_0x204f();let _0x201bc8=_0x204f8c[_0x1b6e99];return _0x201bc8;}(function(_0x225969,_0x33986a){const _0x3ec84f=a107_0x201b,_0x2c586a=_0x225969();while(!![]){try{const _0x48aa10=parseInt(_0x3ec84f(0x18b))/0x1*(-parseInt(_0x3ec84f(0x185))/0x2)+parseInt(_0x3ec84f(0x187))/0x3*(parseInt(_0x3ec84f(0x183))/0x4)+-parseInt(_0x3ec84f(0x186))/0x5*(parseInt(_0x3ec84f(0x18a))/0x6)+parseInt(_0x3ec84f(0x182))/0x7+parseInt(_0x3ec84f(0x18c))/0x8+-parseInt(_0x3ec84f(0x189))/0x9+parseInt(_0x3ec84f(0x188))/0xa;if(_0x48aa10===_0x33986a)break;else _0x2c586a['push'](_0x2c586a['shift']());}catch(_0x346f46){_0x2c586a['push'](_0x2c586a['shift']());}}}(a107_0x204f,0xe2f39));export function riskLevelOrder(_0x49a6ac){const _0x979d98={'read':0x0,'write':0x1,'high-risk-write':0x2};return _0x979d98[_0x49a6ac??'read']??0x0;}export function isValidFormat(_0x21c9bd){const _0x40597f=a107_0x201b;return _0x21c9bd==='json'||_0x21c9bd===_0x40597f(0x184)||_0x21c9bd==='table';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a108_0xe45b12=a108_0x5c6b;function a108_0x327a(){const _0x39565e=['2888391gYMOJJ','690982wEeGlK','30LhyMPm','156lyObHe','18Zlzhgp','803316xafMFg','8tGFkXR','602545btFNtY','4907yzgeLG','1609592bDRXNd','211480UyhGeP','v2.0.7','2026-04-03T15:54:59.410Z'];a108_0x327a=function(){return _0x39565e;};return a108_0x327a();}function a108_0x5c6b(_0x3d52f7,_0x129572){_0x3d52f7=_0x3d52f7-0x19b;const _0x327a7b=a108_0x327a();let _0x5c6be4=_0x327a7b[_0x3d52f7];return _0x5c6be4;}(function(_0x38a5ea,_0x5cd467){const _0x59cc0c=a108_0x5c6b,_0x3aebd1=_0x38a5ea();while(!![]){try{const _0x25a672=-parseInt(_0x59cc0c(0x19c))/0x1+parseInt(_0x59cc0c(0x1a0))/0x2+parseInt(_0x59cc0c(0x1a4))/0x3+-parseInt(_0x59cc0c(0x1a5))/0x4*(-parseInt(_0x59cc0c(0x1a6))/0x5)+parseInt(_0x59cc0c(0x1a2))/0x6*(-parseInt(_0x59cc0c(0x1a7))/0x7)+parseInt(_0x59cc0c(0x19b))/0x8*(parseInt(_0x59cc0c(0x1a3))/0x9)+-parseInt(_0x59cc0c(0x1a1))/0xa*(parseInt(_0x59cc0c(0x19f))/0xb);if(_0x25a672===_0x5cd467)break;else _0x3aebd1['push'](_0x3aebd1['shift']());}catch(_0x26b223){_0x3aebd1['push'](_0x3aebd1['shift']());}}}(a108_0x327a,0x3a67e));export const VERSION='2.0.7';export const GIT_TAG=a108_0xe45b12(0x19d);export const GIT_COMMIT='11fd927';export const BUILD_TIME=a108_0xe45b12(0x19e);
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a109_0x46a8(){var _0x5997ea=['\x20to\x20view\x20available\x20commands.','log','8gLEHCE','bold','474990kzrHNK','\x20\x20Use\x20','green','\x20--help','730989gIrBgn','1070030lhsXju','349JUqiLH','2223318gWIhGb','4666669KizjkG','22779nllpUL','4036ZBavFe','432kCoyVm'];a109_0x46a8=function(){return _0x5997ea;};return a109_0x46a8();}function a109_0x3aae(_0x29fc09,_0x12d66f){_0x29fc09=_0x29fc09-0xcf;var _0x46a8e7=a109_0x46a8();var _0x3aae81=_0x46a8e7[_0x29fc09];return _0x3aae81;}(function(_0x3b9a23,_0x234cf6){var _0x85feee=a109_0x3aae,_0x1d48cd=_0x3b9a23();while(!![]){try{var _0x149060=-parseInt(_0x85feee(0xd8))/0x1*(parseInt(_0x85feee(0xdc))/0x2)+-parseInt(_0x85feee(0xd6))/0x3*(-parseInt(_0x85feee(0xd0))/0x4)+parseInt(_0x85feee(0xd2))/0x5+-parseInt(_0x85feee(0xd9))/0x6+parseInt(_0x85feee(0xda))/0x7+-parseInt(_0x85feee(0xdd))/0x8*(-parseInt(_0x85feee(0xdb))/0x9)+parseInt(_0x85feee(0xd7))/0xa;if(_0x149060===_0x234cf6)break;else _0x1d48cd['push'](_0x1d48cd['shift']());}catch(_0x42afc9){_0x1d48cd['push'](_0x1d48cd['shift']());}}}(a109_0x46a8,0x66029));import a109_0x1150a7 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x8c6435=a109_0x3aae;console[_0x8c6435(0xcf)](),console[_0x8c6435(0xcf)](a109_0x1150a7[_0x8c6435(0xd4)][_0x8c6435(0xd1)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x8c6435(0xcf)](),console[_0x8c6435(0xcf)](_0x8c6435(0xd3)+a109_0x1150a7['green'][_0x8c6435(0xd1)](CLI_BIN_NAME+_0x8c6435(0xd5))+_0x8c6435(0xde)),console['log']();}
|
package/lib/skills/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3e416a,_0x48f26e){const _0x391f66=a110_0x3934,_0x53a9ac=_0x3e416a();while(!![]){try{const _0x1fdfad=-parseInt(_0x391f66(0x8b))/0x1*(parseInt(_0x391f66(0x8a))/0x2)+parseInt(_0x391f66(0xa4))/0x3+-parseInt(_0x391f66(0x9b))/0x4+parseInt(_0x391f66(0x9a))/0x5*(parseInt(_0x391f66(0xa7))/0x6)+parseInt(_0x391f66(0x93))/0x7*(parseInt(_0x391f66(0xa2))/0x8)+parseInt(_0x391f66(0xa8))/0x9+-parseInt(_0x391f66(0x99))/0xa;if(_0x1fdfad===_0x48f26e)break;else _0x53a9ac['push'](_0x53a9ac['shift']());}catch(_0x2f2983){_0x53a9ac['push'](_0x53a9ac['shift']());}}}(a110_0x27e2,0x380e4));function a110_0x3934(_0x317b7b,_0x116996){_0x317b7b=_0x317b7b-0x88;const _0x27e2ea=a110_0x27e2();let _0x3934ed=_0x27e2ea[_0x317b7b];return _0x3934ed;}import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function camelCaseFlagsToKebab(_0x585baa){const _0x15ace1=a110_0x3934,_0x465950=[];for(const [_0x45dc11,_0x52a95f]of Object[_0x15ace1(0x98)](_0x585baa)){if(_0x52a95f===!![]){const _0x2b932c=_0x45dc11[_0x15ace1(0x97)](/([A-Z])/g,_0x15ace1(0x88))['toLowerCase']();_0x465950['push'](_0x2b932c);}}return _0x465950;}export function parseDynamicFlags(){const _0x5b8e64=a110_0x3934,_0x362651=[];for(let _0x210fbb=0x3;_0x210fbb<process[_0x5b8e64(0xa1)][_0x5b8e64(0x8d)];_0x210fbb++){const _0x4cf6c9=process['argv'][_0x210fbb];if(_0x4cf6c9&&_0x4cf6c9[_0x5b8e64(0x9e)]('--')){const _0x3756df=_0x4cf6c9[_0x5b8e64(0xa0)](0x2);_0x3756df&&!_0x3756df[_0x5b8e64(0xaa)]('=')&&_0x362651[_0x5b8e64(0x8c)](_0x3756df);}}return _0x362651;}export function getAllProvidedFlags(_0x5459d4){const _0x458fe2=camelCaseFlagsToKebab(_0x5459d4),_0x52bf41=parseDynamicFlags(),_0x1cb03a=new Set([..._0x458fe2,..._0x52bf41]);return Array['from'](_0x1cb03a);}export function normalizeLegacyBffSaveFlags(_0xb3bb38){const _0x4008fd=a110_0x3934,_0x1b6286=new Set(_0xb3bb38);return _0x1b6286[_0x4008fd(0x89)]('dangerously-bff-save')&&_0x1b6286[_0x4008fd(0x95)](_0x4008fd(0x91)),Array[_0x4008fd(0x9f)](_0x1b6286);}const SKILLS_INSTALL_COMMAND_LINE='npx\x20-y\x20skills\x20add\x20lovrabet/rabetbase\x20--global';export async function skillsCommand(_0x59dfbe,_0x2a0d5f,_0x4cdb6a){const _0x15346b=a110_0x3934;logger[_0x15346b(0x92)](process[_0x15346b(0xa9)]());if(_0x4cdb6a?.[_0x15346b(0x8e)]||_0x59dfbe===_0x15346b(0x94)){showHelp();return;}console[_0x15346b(0xa5)]('Error:\x20Unsupported\x20command:\x20'+(_0x59dfbe||_0x15346b(0xab))),console['log'](_0x15346b(0x9c)),console[_0x15346b(0x8f)]('\x20\x20'+CLI_BIN_NAME+'\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation'),console[_0x15346b(0x8f)]('\x20\x20'+CLI_BIN_NAME+'\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a'),console['log'](''),console[_0x15346b(0x8f)](_0x15346b(0xa3)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x15346b(0xa5)](_0x15346b(0x9d),_0x15346b(0xa6)+_0x59dfbe),process['exit'](0x1);}function showHelp(){const _0x3427bc=a110_0x3934;console[_0x3427bc(0x8f)]('\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20'+CLI_BIN_NAME+'\x20skill\x20--help\x0a\x20\x20'+CLI_BIN_NAME+_0x3427bc(0x96)+SKILLS_INSTALL_COMMAND_LINE+_0x3427bc(0x90));}function a110_0x27e2(){const _0xf9ac5f=['entries','2351220BVlgfa','10MhfNxb','1118920NXWNqx','\x0aAvailable\x20commands:','skill','startsWith','from','slice','argv','304qDBPMA','Equivalent\x20command:\x20','1308477MdbIie','error','不支持的命令:\x20','1349382kpypze','370728cUifKJ','cwd','includes','(empty)','-$1','has','102822oWwEpA','5JoUaDk','push','length','help','log','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a','enable-bff-save','setLogPath','13699HugGxh','--help','add','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','replace'];a110_0x27e2=function(){return _0xf9ac5f;};return a110_0x27e2();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a111_0x5acf9f=a111_0x3bb0;(function(_0x2a2d73,_0x3f53e9){const _0x562c6a=a111_0x3bb0,_0x293a5a=_0x2a2d73();while(!![]){try{const _0x42445d=-parseInt(_0x562c6a(0x207))/0x1+-parseInt(_0x562c6a(0x1f5))/0x2*(-parseInt(_0x562c6a(0x1f2))/0x3)+parseInt(_0x562c6a(0x200))/0x4*(-parseInt(_0x562c6a(0x1fa))/0x5)+-parseInt(_0x562c6a(0x201))/0x6+-parseInt(_0x562c6a(0x1f3))/0x7+parseInt(_0x562c6a(0x1f4))/0x8*(-parseInt(_0x562c6a(0x204))/0x9)+parseInt(_0x562c6a(0x1fe))/0xa*(parseInt(_0x562c6a(0x1fb))/0xb);if(_0x42445d===_0x3f53e9)break;else _0x293a5a['push'](_0x293a5a['shift']());}catch(_0x179292){_0x293a5a['push'](_0x293a5a['shift']());}}}(a111_0x43d3,0x47650));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const NPX_SKILLS_CLI='skills';export const NPX_SKILLS_SUBCOMMAND_ADD='add';export const NPX_SKILLS_FLAG_SKILL=a111_0x5acf9f(0x1ed);export const RABETBASE_SKILL_SOURCE=a111_0x5acf9f(0x206);function a111_0x3bb0(_0x5907fc,_0xd4fe18){_0x5907fc=_0x5907fc-0x1ed;const _0x43d3c1=a111_0x43d3();let _0x3bb0b9=_0x43d3c1[_0x5907fc];return _0x3bb0b9;}export const DEFAULT_RABETBASE_SKILL_NAME=a111_0x5acf9f(0x202);export function buildNpxSkillsAddArgv(_0x2636fa=DEFAULT_RABETBASE_SKILL_NAME){return[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x2636fa];}function a111_0x43d3(){const _0x5676c8=['npx','10fploEu','stdio','4DjUhFd','1241052NGmyjH','Lovrabet','inherit','117657LyUmKM','unknown','lovrabet/lovrabet-skill','438683qWwLcu','stderr','pipe','--skill','--global','status','skill','stdout','1180617AcoNWu','2231187EsHBmo','128HSwQdW','2lqtpEV','toString','trim','join','log','909745rdIPRA','13797036xQmJdv','exit\x20'];a111_0x43d3=function(){return _0x5676c8;};return a111_0x43d3();}export const NPX_SKILLS_ADD_COMMAND_LINE=[a111_0x5acf9f(0x1fd),...buildNpxSkillsAddArgv()][a111_0x5acf9f(0x1f8)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x58d4e7,_0x4bd58a){const _0x21ab1a=a111_0x5acf9f;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1b3a9b=_0x4bd58a?.[_0x21ab1a(0x1ff)]??_0x21ab1a(0x203),_0x163a0f=resolveNpmBin(_0x21ab1a(0x1fd)),_0x15de19=buildNpxSkillsAddArgv(_0x4bd58a?.[_0x21ab1a(0x1f0)]??DEFAULT_RABETBASE_SKILL_NAME),_0x28e503=[_0x163a0f,..._0x15de19][_0x21ab1a(0x1f8)]('\x20');console[_0x21ab1a(0x1f9)]('*\x20'+_0x28e503);const _0x3f3285=spawnSync(_0x163a0f,_0x15de19,{'cwd':_0x58d4e7,'stdio':_0x1b3a9b,'env':process.env,'shell':![]}),_0x5c9d03=_0x3f3285[_0x21ab1a(0x1ef)];if(_0x5c9d03===0x0)return{'ok':!![],'status':0x0};let _0x72ea53=_0x21ab1a(0x1fc)+(_0x5c9d03??'unknown');if(_0x1b3a9b==='pipe'){const _0x4df919=_0x3f3285[_0x21ab1a(0x208)]?_0x3f3285[_0x21ab1a(0x208)][_0x21ab1a(0x1f6)]()[_0x21ab1a(0x1f7)]():'',_0x272e55=_0x3f3285[_0x21ab1a(0x1f1)]?_0x3f3285[_0x21ab1a(0x1f1)][_0x21ab1a(0x1f6)]()[_0x21ab1a(0x1f7)]():'';if(_0x4df919)_0x72ea53=_0x4df919;else{if(_0x272e55)_0x72ea53=_0x272e55;}}return{'ok':![],'status':_0x5c9d03??null,'error':_0x72ea53};}export function runNpxSkillsRemove(_0x2aecef,_0x6922a7){const _0x507aa4=a111_0x5acf9f,_0x435127=_0x6922a7?.[_0x507aa4(0x1ff)]??_0x507aa4(0x203),_0x3bdf5c=resolveNpmBin(_0x507aa4(0x1fd)),_0x55f65a=[NPX_FLAG_YES,NPX_SKILLS_CLI,'remove',RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x6922a7?.[_0x507aa4(0x1f0)]??DEFAULT_RABETBASE_SKILL_NAME],_0x3c4d16=[_0x3bdf5c,..._0x55f65a][_0x507aa4(0x1f8)]('\x20');console[_0x507aa4(0x1f9)]('*\x20'+_0x3c4d16);const _0x5e379e=spawnSync(_0x3bdf5c,_0x55f65a,{'cwd':_0x2aecef,'stdio':_0x435127,'env':process.env,'shell':![]}),_0x2a9b0e=_0x5e379e[_0x507aa4(0x1ef)];if(_0x2a9b0e===0x0)return{'ok':!![],'status':0x0};let _0x886dbc='exit\x20'+(_0x2a9b0e??'unknown');if(_0x435127===_0x507aa4(0x209)){const _0x56c069=_0x5e379e[_0x507aa4(0x208)]?_0x5e379e[_0x507aa4(0x208)][_0x507aa4(0x1f6)]()[_0x507aa4(0x1f7)]():'',_0x2e3029=_0x5e379e[_0x507aa4(0x1f1)]?_0x5e379e[_0x507aa4(0x1f1)]['toString']()[_0x507aa4(0x1f7)]():'';if(_0x56c069)_0x886dbc=_0x56c069;else{if(_0x2e3029)_0x886dbc=_0x2e3029;}}return{'ok':![],'status':_0x2a9b0e??null,'error':_0x886dbc};}export function runNpxSkillsAddGlobal(_0x1b9851,_0x2b1b73,_0x480572){const _0x26fc15=a111_0x5acf9f,_0x196dfe=_0x480572?.['stdio']??'inherit',_0x275be8=resolveNpmBin(_0x26fc15(0x1fd)),_0x17f848=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x2b1b73,_0x26fc15(0x1ee)],_0x5418c7=[_0x275be8,..._0x17f848][_0x26fc15(0x1f8)]('\x20');console[_0x26fc15(0x1f9)]('*\x20'+_0x5418c7);const _0xe5586e=spawnSync(_0x275be8,_0x17f848,{'cwd':_0x1b9851,'stdio':_0x196dfe,'env':process.env,'shell':![]}),_0x347db0=_0xe5586e[_0x26fc15(0x1ef)];if(_0x347db0===0x0)return{'ok':!![],'status':0x0};let _0x45b52d=_0x26fc15(0x1fc)+(_0x347db0??_0x26fc15(0x205));if(_0x196dfe===_0x26fc15(0x209)){const _0x7d6ef8=_0xe5586e[_0x26fc15(0x208)]?_0xe5586e[_0x26fc15(0x208)][_0x26fc15(0x1f6)]()['trim']():'',_0x2722ad=_0xe5586e['stdout']?_0xe5586e[_0x26fc15(0x1f1)][_0x26fc15(0x1f6)]()[_0x26fc15(0x1f7)]():'';if(_0x7d6ef8)_0x45b52d=_0x7d6ef8;else{if(_0x2722ad)_0x45b52d=_0x2722ad;}}return{'ok':![],'status':_0x347db0??null,'error':_0x45b52d};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x42ad1a,_0x5b91ae){const _0x4906d4=a112_0xb242,_0xf2d13=_0x42ad1a();while(!![]){try{const _0x41d77d=parseInt(_0x4906d4(0xf6))/0x1*(parseInt(_0x4906d4(0xee))/0x2)+parseInt(_0x4906d4(0x103))/0x3*(-parseInt(_0x4906d4(0xfe))/0x4)+-parseInt(_0x4906d4(0xf9))/0x5*(parseInt(_0x4906d4(0xf2))/0x6)+parseInt(_0x4906d4(0x104))/0x7*(-parseInt(_0x4906d4(0xf7))/0x8)+parseInt(_0x4906d4(0xfc))/0x9*(-parseInt(_0x4906d4(0xfd))/0xa)+parseInt(_0x4906d4(0x102))/0xb+parseInt(_0x4906d4(0xfa))/0xc;if(_0x41d77d===_0x5b91ae)break;else _0xf2d13['push'](_0xf2d13['shift']());}catch(_0x11c16b){_0xf2d13['push'](_0xf2d13['shift']());}}}(a112_0x5afe,0x5db71));import{sendCliTraceLog}from'./send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i];function a112_0xb242(_0x442667,_0x2eb5b7){_0x442667=_0x442667-0xed;const _0x5afe4e=a112_0x5afe();let _0xb24252=_0x5afe4e[_0x442667];return _0xb24252;}function isSensitiveKey(_0x15d4c0){const _0xf6cfde=a112_0xb242;return SENSITIVE_PATTERNS[_0xf6cfde(0xf5)](_0x4e988f=>_0x4e988f[_0xf6cfde(0x100)](_0x15d4c0));}function a112_0x5afe(){const _0x145ee6=['7htAEos','durationMs','2DMRiGE','[REDACTED]','flags','stringify','12JMOzbt','command','entries','some','116079ZMEwbc','5309976zQaQtv','service','1304645tRlbHA','27610344WUFlZk','error','7461eTysUa','5870KZMHFs','4VcfFpa','rabetbase.command','test','message','4141599CbgolK','2212095xkzkay'];a112_0x5afe=function(){return _0x145ee6;};return a112_0x5afe();}function sanitizeFlags(_0x3806da){const _0xbfa4e0=a112_0xb242,_0x59b260={};for(const [_0x3bba97,_0xcb2b27]of Object[_0xbfa4e0(0xf4)](_0x3806da)){isSensitiveKey(_0x3bba97)?_0x59b260[_0x3bba97]=_0xcb2b27!=null&&_0xcb2b27!==''?_0xbfa4e0(0xef):_0xcb2b27:_0x59b260[_0x3bba97]=_0xcb2b27;}return _0x59b260;}export async function reportCommandTrace(_0x5ad145){const _0x2ec2b5=a112_0xb242;try{const _0x2b2e7f=sanitizeFlags(_0x5ad145[_0x2ec2b5(0xf0)]);await sendCliTraceLog({'spanName':_0x2ec2b5(0xff),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x5ad145[_0x2ec2b5(0xf8)],'command.name':_0x5ad145[_0x2ec2b5(0xf3)],'command.flags':JSON[_0x2ec2b5(0xf1)](_0x2b2e7f),..._0x5ad145[_0x2ec2b5(0xed)]!=null?{'command.duration_ms':_0x5ad145[_0x2ec2b5(0xed)]}:{},..._0x5ad145['error']?{'command.error':_0x5ad145[_0x2ec2b5(0xfb)]instanceof Error?_0x5ad145['error'][_0x2ec2b5(0x101)]:String(_0x5ad145[_0x2ec2b5(0xfb)])}:{}}});}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a113_0x1970(){var _0x2fe3cd=['2107006hVqkOy','5lWMSkW','Failed\x20to\x20report\x20CLI\x20help\x20trace:','18IJBWQe','39067eijeEA','3723290lNnEnU','cli.help','2378490UxrjFv','1470915gdufRJ','280qUdkSj','541333WWWTVG','service','2oVhGrS','3546196sRAqwk'];a113_0x1970=function(){return _0x2fe3cd;};return a113_0x1970();}(function(_0x4c564a,_0x5a75f9){var _0x5e052f=a113_0x58bd,_0x1bcd80=_0x4c564a();while(!![]){try{var _0x37252a=-parseInt(_0x5e052f(0x1e6))/0x1*(-parseInt(_0x5e052f(0x1e8))/0x2)+parseInt(_0x5e052f(0x1e4))/0x3+parseInt(_0x5e052f(0x1e9))/0x4*(-parseInt(_0x5e052f(0x1eb))/0x5)+-parseInt(_0x5e052f(0x1e3))/0x6+parseInt(_0x5e052f(0x1e0))/0x7*(-parseInt(_0x5e052f(0x1e5))/0x8)+parseInt(_0x5e052f(0x1ed))/0x9*(parseInt(_0x5e052f(0x1e1))/0xa)+parseInt(_0x5e052f(0x1ea))/0xb;if(_0x37252a===_0x5a75f9)break;else _0x1bcd80['push'](_0x1bcd80['shift']());}catch(_0x1af230){_0x1bcd80['push'](_0x1bcd80['shift']());}}}(a113_0x1970,0x77847));function a113_0x58bd(_0x7504cf,_0x21319b){_0x7504cf=_0x7504cf-0x1e0;var _0x1970eb=a113_0x1970();var _0x58bd82=_0x1970eb[_0x7504cf];return _0x58bd82;}import{sendCliTraceLog}from'./send-cli-trace-log.js';export async function reportCliHelpTrace(_0x1961c5,_0x14409e){var _0x5c8863=a113_0x58bd;try{await sendCliTraceLog({'spanName':_0x5c8863(0x1e2),'logData':{'rabetbase.help.kind':_0x1961c5,..._0x14409e?.[_0x5c8863(0x1e7)]&&{'rabetbase.help.service':_0x14409e[_0x5c8863(0x1e7)]}}});}catch(_0x359b5b){console['error'](_0x5c8863(0x1ec),_0x359b5b);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3d7d8b,_0x5455f1){const _0x120537=a114_0x520c,_0x5df2a9=_0x3d7d8b();while(!![]){try{const _0x5bf72b=-parseInt(_0x120537(0x1fd))/0x1*(parseInt(_0x120537(0x1fc))/0x2)+-parseInt(_0x120537(0x1f8))/0x3+-parseInt(_0x120537(0x1fb))/0x4*(parseInt(_0x120537(0x1f2))/0x5)+-parseInt(_0x120537(0x203))/0x6*(-parseInt(_0x120537(0x1ff))/0x7)+-parseInt(_0x120537(0x1fa))/0x8+-parseInt(_0x120537(0x1f5))/0x9+parseInt(_0x120537(0x202))/0xa*(parseInt(_0x120537(0x200))/0xb);if(_0x5bf72b===_0x5455f1)break;else _0x5df2a9['push'](_0x5df2a9['shift']());}catch(_0x40ded5){_0x5df2a9['push'](_0x5df2a9['shift']());}}}(a114_0x4cda,0x4e5c8));import a114_0x528ff7 from'node:os';import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setTraceConfig,getOtelLoggerVersion}from'@lovrabet/otel-logger';function a114_0x520c(_0x52ca0e,_0xf54c83){_0x52ca0e=_0x52ca0e-0x1f2;const _0x4cdaa4=a114_0x4cda();let _0x520c49=_0x4cdaa4[_0x52ca0e];return _0x520c49;}import{NPM_PACKAGE_NAME}from'../constant/cli.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x2df437=a114_0x520c,_0x555b9b=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x1d71bf=_0x555b9b?.[_0x2df437(0x1f6)];setTraceConfig({'otelLoggerVersion':getOtelLoggerVersion(),'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x2df437(0x201)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x2df437(0x1f4):_0x2df437(0x1f7)),'username':_0x1d71bf?.['username']??a114_0x528ff7[_0x2df437(0x1f9)]()[_0x2df437(0x1fe)]??_0x2df437(0x1f3),..._0x1d71bf&&{'nickname':_0x1d71bf['nickname']}}),cliOtelTraceInitialized=!![];}return _0x555b9b;}function a114_0x4cda(){const _0x4731c6=['username','1225SkKuUN','34364ehIZwl','unknown','4430noOotR','19698LaWdKF','2118335OCjVbH','rabetbase-cli','daily','998118cEuYgF','user','production','488076PEiDiA','userInfo','2899752QLofoZ','4NXlAqi','1274CaSRvO','907wXtiMs'];a114_0x4cda=function(){return _0x4731c6;};return a114_0x4cda();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a115_0x37f4(){const _0x4246b8=['SIGINT','872220qaIBuG','1231129MwLOHH','96XDFZio','129326wyxLja','213017lRBfYd','18ivLwAa','3609135ETUFZA','4567904AhNsQE','31601890cWGONd','SIGTERM','9ithRGJ','then','exit'];a115_0x37f4=function(){return _0x4246b8;};return a115_0x37f4();}(function(_0x47d1d7,_0x3f1471){const _0x5c3ee7=a115_0x5d74,_0x12c3f3=_0x47d1d7();while(!![]){try{const _0x18384c=-parseInt(_0x5c3ee7(0x190))/0x1+parseInt(_0x5c3ee7(0x192))/0x2*(parseInt(_0x5c3ee7(0x194))/0x3)+-parseInt(_0x5c3ee7(0x196))/0x4+-parseInt(_0x5c3ee7(0x195))/0x5+-parseInt(_0x5c3ee7(0x18f))/0x6+-parseInt(_0x5c3ee7(0x193))/0x7*(-parseInt(_0x5c3ee7(0x191))/0x8)+parseInt(_0x5c3ee7(0x199))/0x9*(parseInt(_0x5c3ee7(0x197))/0xa);if(_0x18384c===_0x3f1471)break;else _0x12c3f3['push'](_0x12c3f3['shift']());}catch(_0x817328){_0x12c3f3['push'](_0x12c3f3['shift']());}}}(a115_0x37f4,0xa450d));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;function a115_0x5d74(_0x2f359c,_0x2a656c){_0x2f359c=_0x2f359c-0x18e;const _0x37f487=a115_0x37f4();let _0x5d74e1=_0x37f487[_0x2f359c];return _0x5d74e1;}export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x59761e=a115_0x5d74;process['once']('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x711574=()=>{const _0x161613=a115_0x5d74;void flushOtelNodeIfUsed()[_0x161613(0x19a)](()=>process[_0x161613(0x19b)](0x0));};process['once'](_0x59761e(0x18e),_0x711574),process['once'](_0x59761e(0x198),_0x711574);}export async function exitWithOtelShutdown(_0x529f64){const _0x599a6a=a115_0x5d74;await flushOtelNodeIfUsed(),process[_0x599a6a(0x19b)](_0x529f64);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a116_0x4eb77e=a116_0x4c64;(function(_0x1a4705,_0x2b8fd4){const _0x425b53=a116_0x4c64,_0x4eb6b=_0x1a4705();while(!![]){try{const _0x1bcc12=-parseInt(_0x425b53(0x1e0))/0x1*(-parseInt(_0x425b53(0x1e3))/0x2)+parseInt(_0x425b53(0x1de))/0x3*(-parseInt(_0x425b53(0x1d6))/0x4)+parseInt(_0x425b53(0x1d3))/0x5+-parseInt(_0x425b53(0x1db))/0x6+-parseInt(_0x425b53(0x1e2))/0x7*(parseInt(_0x425b53(0x1e1))/0x8)+parseInt(_0x425b53(0x1d7))/0x9*(parseInt(_0x425b53(0x1df))/0xa)+-parseInt(_0x425b53(0x1d8))/0xb*(-parseInt(_0x425b53(0x1d5))/0xc);if(_0x1bcc12===_0x2b8fd4)break;else _0x4eb6b['push'](_0x4eb6b['shift']());}catch(_0x1b1dd4){_0x4eb6b['push'](_0x4eb6b['shift']());}}}(a116_0x19c9,0x5bed2));function a116_0x4c64(_0x12c7f5,_0x18118f){_0x12c7f5=_0x12c7f5-0x1d2;const _0x19c925=a116_0x19c9();let _0x4c64f1=_0x19c925[_0x12c7f5];return _0x4c64f1;}import{sendTraceLog}from'@lovrabet/otel-logger';function a116_0x19c9(){const _0x524cfb=['936804txbdRC','18LhLIta','64526OLsohP','traceparent','traceName','225714CrunjN','logData','rabetbase-cli','6PwovQC','1600360bqIHXj','410819Jfciww','5636872VcASuI','7wWLQYr','2lUPohs','version','3636085DPhRCl','manual','264HbNShb'];a116_0x19c9=function(){return _0x524cfb;};return a116_0x19c9();}import{ensureCliOtelTraceConfig}from'./ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a116_0x4eb77e(0x1dd);export async function sendCliTraceLog(_0xc35dae){const _0x171603=a116_0x4eb77e;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0xc35dae[_0x171603(0x1da)]??DEFAULT_TRACE_NAME,'version':_0xc35dae[_0x171603(0x1d2)]??getCliVersion(),'spanName':_0xc35dae['spanName'],'eventType':_0x171603(0x1d4),'logData':_0xc35dae[_0x171603(0x1dc)],..._0xc35dae[_0x171603(0x1d9)]&&{'traceparent':_0xc35dae[_0x171603(0x1d9)]}});}
|
package/lib/utils/ai_config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a118_0x2ee717=a118_0x4ee2;function a118_0x4ee2(_0x3e6368,_0x54d644){_0x3e6368=_0x3e6368-0xa5;const _0x1d078d=a118_0x1d07();let _0x4ee216=_0x1d078d[_0x3e6368];return _0x4ee216;}(function(_0x4d2ae4,_0x4add62){const _0x4ac435=a118_0x4ee2,_0x5546b2=_0x4d2ae4();while(!![]){try{const _0x107eec=parseInt(_0x4ac435(0xcc))/0x1+-parseInt(_0x4ac435(0xce))/0x2+parseInt(_0x4ac435(0xbd))/0x3+parseInt(_0x4ac435(0xd1))/0x4*(-parseInt(_0x4ac435(0xcd))/0x5)+-parseInt(_0x4ac435(0xd3))/0x6+-parseInt(_0x4ac435(0xc2))/0x7*(-parseInt(_0x4ac435(0xc9))/0x8)+parseInt(_0x4ac435(0xc1))/0x9;if(_0x107eec===_0x4add62)break;else _0x5546b2['push'](_0x5546b2['shift']());}catch(_0x24ecff){_0x5546b2['push'](_0x5546b2['shift']());}}}(a118_0x1d07,0xccbd6));export const CORE_IDE_CONFIGS={'cursor':{'name':a118_0x2ee717(0xb8),'description':a118_0x2ee717(0xdc),'folders':[a118_0x2ee717(0xd9),a118_0x2ee717(0xbc)],'files':[{'type':a118_0x2ee717(0xa8),'path':'.cursor/skills/rabetbase.md','template':'SKILL.md.tpl'}]},'windsurf':{'name':'Windsurf','description':a118_0x2ee717(0xab),'folders':[a118_0x2ee717(0xd4)],'files':[{'type':'file','path':a118_0x2ee717(0xaa),'template':a118_0x2ee717(0xb0)}]},'claude':{'name':'Claude\x20Code','description':a118_0x2ee717(0xb3),'folders':[a118_0x2ee717(0xbb)],'files':[{'type':'file','path':'.claude/skills/lovrabet/SKILL.md','template':a118_0x2ee717(0xb0)}]},'cline':{'name':a118_0x2ee717(0xca),'description':a118_0x2ee717(0xbf),'folders':[a118_0x2ee717(0xdb)],'files':[{'type':a118_0x2ee717(0xa8),'path':a118_0x2ee717(0xd6),'template':'SKILL.md.tpl'}]},'codex':{'name':a118_0x2ee717(0xc3),'description':a118_0x2ee717(0xa9),'folders':[a118_0x2ee717(0xb6)],'files':[{'type':a118_0x2ee717(0xa8),'path':a118_0x2ee717(0xb5),'template':a118_0x2ee717(0xb0)}]},'opencode':{'name':a118_0x2ee717(0xa7),'description':a118_0x2ee717(0xd8),'folders':['.opencode'],'files':[{'type':a118_0x2ee717(0xa8),'path':'.opencode/skills/lovrabet/SKILL.md','template':a118_0x2ee717(0xb0)}]},'qoder':{'name':a118_0x2ee717(0xaf),'description':a118_0x2ee717(0xb2),'folders':[a118_0x2ee717(0xc6)],'files':[{'type':a118_0x2ee717(0xa8),'path':a118_0x2ee717(0xb7),'template':a118_0x2ee717(0xb0)},{'type':'file','path':'.qoder/skills/lovrabet/SKILL.md','template':a118_0x2ee717(0xb0)}]},'codebuddy':{'name':a118_0x2ee717(0xda),'description':a118_0x2ee717(0xc8),'folders':[a118_0x2ee717(0xd2)],'files':[{'type':a118_0x2ee717(0xa8),'path':'.codebuddy/skills/lovrabet/SKILL.md','template':a118_0x2ee717(0xb0)}]},'trae':{'name':a118_0x2ee717(0xba),'description':'Trae\x20IDE','folders':[a118_0x2ee717(0xc5)],'files':[{'type':a118_0x2ee717(0xa8),'path':a118_0x2ee717(0xc4),'template':'SKILL.md.tpl'}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a118_0x2ee717(0xae),'description':a118_0x2ee717(0xac),'folders':[a118_0x2ee717(0xcb)],'files':[{'type':a118_0x2ee717(0xa8),'path':a118_0x2ee717(0xb4),'template':a118_0x2ee717(0xb0)}]},'antigravity':{'name':a118_0x2ee717(0xd0),'description':a118_0x2ee717(0xd7),'folders':[a118_0x2ee717(0xcb)],'files':[{'type':a118_0x2ee717(0xa8),'path':'.agent/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]}};function a118_0x1d07(){const _0x4d2e1b=['3885tHXylf','Codex','.trae/skills/lovrabet/SKILL.md','.trae','.qoder','codex','CodeBuddy\x20IDE','8408xHTMnx','Cline','.agent','294824BCfSHn','460RPXHby','630912IXAwjP','windsurf','Antigravity','18188jnqbFa','.codebuddy','3483462ocIfVr','.windsurf','codebuddy','.cline/skills/lovrabet/SKILL.md','Antigravity\x20IDE','OpenCode\x20IDE','.cursorrules','CodeBuddy','.cline','Cursor\x20IDE','claude','qoder','OpenCode','file','Codex\x20IDE','.windsurf/workflows/rabetbase.md','Windsurf\x20IDE','通用模板\x20-\x20兜底方案','cursor','其他\x20(通用模板)','Qoder','SKILL.md.tpl','trae','Qoder\x20IDE','Claude\x20Code','.agent/skills/lovrabet/SKILL.md','.codex/skills/lovrabet/SKILL.md','.codex','.qoder/rules/rabetbase.md','Cursor','antigravity','Trae','.claude','.cursor','3451521CiLUgi','opencode','Cline\x20IDE','cline','1119015SSBClW'];a118_0x1d07=function(){return _0x4d2e1b;};return a118_0x1d07();}export const CORE_IDE_LIST=['claude',a118_0x2ee717(0xc0),'codebuddy','codex',a118_0x2ee717(0xad),a118_0x2ee717(0xbe),a118_0x2ee717(0xa6),'trae',a118_0x2ee717(0xcf)];export const IDE_LIST=[a118_0x2ee717(0xb9),'claude','cline','codebuddy',a118_0x2ee717(0xc7),a118_0x2ee717(0xad),'opencode','qoder',a118_0x2ee717(0xb1),a118_0x2ee717(0xcf),'agent'];export const ALL_CORE_IDES=[a118_0x2ee717(0xad),a118_0x2ee717(0xcf),a118_0x2ee717(0xa5),a118_0x2ee717(0xc0),a118_0x2ee717(0xc7),a118_0x2ee717(0xbe),a118_0x2ee717(0xa6),a118_0x2ee717(0xd5),a118_0x2ee717(0xb1)];
|
package/lib/utils/cdn-config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1a1cbe,_0x4f757e){const _0x15a994=a119_0x4af3,_0x42f1f6=_0x1a1cbe();while(!![]){try{const _0x59798b=parseInt(_0x15a994(0x1d2))/0x1+parseInt(_0x15a994(0x1c3))/0x2+-parseInt(_0x15a994(0x1c6))/0x3*(-parseInt(_0x15a994(0x1cd))/0x4)+parseInt(_0x15a994(0x1cb))/0x5+-parseInt(_0x15a994(0x1c8))/0x6+parseInt(_0x15a994(0x1c4))/0x7+parseInt(_0x15a994(0x1d1))/0x8*(-parseInt(_0x15a994(0x1ca))/0x9);if(_0x59798b===_0x4f757e)break;else _0x42f1f6['push'](_0x42f1f6['shift']());}catch(_0x2677d2){_0x42f1f6['push'](_0x42f1f6['shift']());}}}(a119_0x2c84,0x86e79));function a119_0x2c84(){const _0x55eae4=['5594157OODWjI','4483445FBwgji','now','116fyjazA','sdk','cli','application/json','40rupUMO','959969muyWEV','810994XkZNsG','7678475JMjnTR','node','63237mGyFiO','stableVersion','1859622awFZdI','/config.json'];a119_0x2c84=function(){return _0x55eae4;};return a119_0x2c84();}import{getTemplateBaseUrl}from'./config.js';export async function fetchCdnConfig(){const _0x21493b=a119_0x4af3;try{const _0x26a0cf=getTemplateBaseUrl(),_0x3d3c3f=_0x26a0cf+_0x21493b(0x1c9),_0x5a848d=await fetch(_0x3d3c3f,{'headers':{'Accept':_0x21493b(0x1d0)}});if(!_0x5a848d['ok'])return null;const _0xc046ea=await _0x5a848d['json']();if(!_0xc046ea[_0x21493b(0x1cf)]?.[_0x21493b(0x1c7)]||!_0xc046ea[_0x21493b(0x1ce)]?.[_0x21493b(0x1c5)]?.[_0x21493b(0x1c7)])return null;return _0xc046ea;}catch{return null;}}function a119_0x4af3(_0x1b3f10,_0x3e264d){_0x1b3f10=_0x1b3f10-0x1c3;const _0x2c84a7=a119_0x2c84();let _0x4af327=_0x2c84a7[_0x1b3f10];return _0x4af327;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8;export async function getCdnConfig(){const _0xf9c01d=a119_0x4af3,_0x271661=Date[_0xf9c01d(0x1cc)]();if(cachedConfig&&_0x271661-cacheTime<CACHE_TTL)return cachedConfig;const _0x596f55=await fetchCdnConfig();return _0x596f55&&(cachedConfig=_0x596f55,cacheTime=_0x271661),_0x596f55;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a120_0x43fe(_0xa5841e,_0x4fae75){_0xa5841e=_0xa5841e-0xb7;const _0x4d6443=a120_0x4d64();let _0x43fe75=_0x4d6443[_0xa5841e];return _0x43fe75;}const a120_0xbf2119=a120_0x43fe;(function(_0x4c26f2,_0x4328e3){const _0x147878=a120_0x43fe,_0x3474a8=_0x4c26f2();while(!![]){try{const _0x5c823d=-parseInt(_0x147878(0xd0))/0x1*(-parseInt(_0x147878(0xca))/0x2)+-parseInt(_0x147878(0xc6))/0x3+-parseInt(_0x147878(0xd8))/0x4*(parseInt(_0x147878(0xcc))/0x5)+-parseInt(_0x147878(0xbe))/0x6*(parseInt(_0x147878(0xc1))/0x7)+parseInt(_0x147878(0xcd))/0x8*(parseInt(_0x147878(0xc7))/0x9)+-parseInt(_0x147878(0xcb))/0xa*(parseInt(_0x147878(0xbc))/0xb)+parseInt(_0x147878(0xd3))/0xc;if(_0x5c823d===_0x4328e3)break;else _0x3474a8['push'](_0x3474a8['shift']());}catch(_0x5abac2){_0x3474a8['push'](_0x3474a8['shift']());}}}(a120_0x4d64,0x98278));import a120_0x4e47ee from'node:fs';import a120_0xae3625 from'node:path';import a120_0x446a1a from'semver';import{getCdnConfig}from'./cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a120_0xbf2119(0xbd);function isNonNumericVersion(_0x55dc68){const _0x6a9132=a120_0xbf2119,_0x442d2b=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x442d2b['some'](_0x21f4ab=>_0x21f4ab[_0x6a9132(0xd4)](_0x55dc68));}function getInstalledVersion(_0x49e443,_0x21d706){const _0x27732d=a120_0xbf2119;try{const _0x14e8aa=a120_0xae3625[_0x27732d(0xda)](_0x49e443,_0x27732d(0xcf),_0x21d706,'package.json');if(a120_0x4e47ee[_0x27732d(0xd1)](_0x14e8aa)){const _0x5c7e2d=JSON[_0x27732d(0xd5)](a120_0x4e47ee[_0x27732d(0xbf)](_0x14e8aa,'utf-8'));return _0x5c7e2d[_0x27732d(0xc4)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x4ef49b=a120_0xbf2119;try{const _0x2534e4=await getCdnConfig();return _0x2534e4?.[_0x4ef49b(0xc2)]?.['node']?.[_0x4ef49b(0xc9)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x21d754=a120_0xbf2119;try{const _0x5913f3=await getCdnConfig();return _0x5913f3?.[_0x21d754(0xc2)]?.['node']?.[_0x21d754(0xd6)]||'@lovrabet/sdk';}catch{return _0x21d754(0xdb);}}export async function checkSdkVersion(_0x4fd3b4){const _0x7836a=a120_0xbf2119,_0x4af0fc=a120_0xae3625['join'](_0x4fd3b4,_0x7836a(0xbb)),[_0x3a62b1,_0x4ff2ca]=await Promise[_0x7836a(0xb9)]([getSdkStableVersion(),getSdkPackageName()]),_0x2f6ed4=_0x3a62b1||FALLBACK_MIN_SDK_VERSION;if(!a120_0x4e47ee[_0x7836a(0xd1)](_0x4af0fc))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2f6ed4,'packageName':_0x4ff2ca,'stableVersion':_0x3a62b1};try{const _0x13b5df=JSON[_0x7836a(0xd5)](a120_0x4e47ee[_0x7836a(0xbf)](_0x4af0fc,_0x7836a(0xb8))),_0x27cd71=_0x13b5df[_0x7836a(0xc5)]||{},_0x255307=_0x13b5df[_0x7836a(0xc3)]||{},_0x4c60ed=_0x27cd71[_0x4ff2ca]||_0x255307[_0x4ff2ca];if(!_0x4c60ed)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2f6ed4,'packageName':_0x4ff2ca,'stableVersion':_0x3a62b1};let _0x20c37e=getInstalledVersion(_0x4fd3b4,_0x4ff2ca);!_0x20c37e&&(_0x20c37e=_0x4c60ed);if(isNonNumericVersion(_0x4c60ed))return{'installed':!![],'version':_0x20c37e,'needsUpgrade':![],'minVersion':_0x2f6ed4,'packageName':_0x4ff2ca,'stableVersion':_0x3a62b1};const _0x99992c=a120_0x446a1a[_0x7836a(0xd9)](_0x20c37e),_0x31bf54=a120_0x446a1a['coerce'](_0x2f6ed4),_0x474676=_0x99992c&&_0x31bf54?a120_0x446a1a['lt'](_0x99992c,_0x31bf54):![];return{'installed':!![],'version':_0x20c37e,'needsUpgrade':_0x474676,'minVersion':_0x2f6ed4,'packageName':_0x4ff2ca,'stableVersion':_0x3a62b1};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2f6ed4,'packageName':_0x4ff2ca,'stableVersion':_0x3a62b1};}}export function checkSdkVersionSync(_0x10b1ac){const _0x3b08db=a120_0xbf2119,_0x4055d0=a120_0xae3625['join'](_0x10b1ac,_0x3b08db(0xbb)),_0x25f8ba=_0x3b08db(0xdb);if(!a120_0x4e47ee[_0x3b08db(0xd1)](_0x4055d0))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x25f8ba,'stableVersion':null};try{const _0x492124=JSON[_0x3b08db(0xd5)](a120_0x4e47ee[_0x3b08db(0xbf)](_0x4055d0,_0x3b08db(0xb8))),_0x26df44=_0x492124[_0x3b08db(0xc5)]||{},_0x35e2ed=_0x492124[_0x3b08db(0xc3)]||{},_0xae46bf=_0x26df44[_0x25f8ba]||_0x35e2ed[_0x25f8ba];if(!_0xae46bf)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x25f8ba,'stableVersion':null};let _0x571601=getInstalledVersion(_0x10b1ac,_0x25f8ba);!_0x571601&&(_0x571601=_0xae46bf);if(isNonNumericVersion(_0xae46bf))return{'installed':!![],'version':_0x571601,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x25f8ba,'stableVersion':null};const _0x5586e0=a120_0x446a1a['coerce'](_0x571601),_0x441294=_0x5586e0?a120_0x446a1a['lt'](_0x5586e0,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x571601,'needsUpgrade':_0x441294,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x25f8ba,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x25f8ba,'stableVersion':null};}}function a120_0x4d64(){const _0x1a86a4=['node_modules','31chXSbt','existsSync','↪\x20SDK\x20update\x20available','30125616VjsgeT','test','parse','packageName','\x20\x20\x20Stable\x20version:\x20','174012bdUdDb','coerce','join','@lovrabet/sdk','\x20\x20\x20Upgrade\x20command:\x20','utf8','all','npm\x20install\x20','package.json','820699juztzF','1.2.0','48CwQnwu','readFileSync','latest','473074EmbUnP','sdk','devDependencies','version','dependencies','3374949wwGYTY','160299MwoACT','log','stableVersion','1086KzRvjo','50YOWpgX','5kMtISK','80WXoqDk','\x1b[0m'];a120_0x4d64=function(){return _0x1a86a4;};return a120_0x4d64();}export function printSdkUpgradeWarning(_0x34def8){const _0x5d3c0e=a120_0xbf2119;if(!_0x34def8['needsUpgrade'])return;const _0x577575='\x1b[33m',_0x33840d=_0x5d3c0e(0xce),_0x4f221d='\x1b[1m',_0x16b19c=_0x34def8[_0x5d3c0e(0xd6)]||_0x5d3c0e(0xdb),_0x1d83e3=_0x34def8[_0x5d3c0e(0xc9)]||_0x34def8['minVersion'],_0x59d219=_0x5d3c0e(0xba)+_0x16b19c+'@'+(_0x1d83e3||_0x5d3c0e(0xc0));console['log'](),console[_0x5d3c0e(0xc8)](''+_0x577575+_0x4f221d+_0x5d3c0e(0xd2)+_0x33840d),console[_0x5d3c0e(0xc8)](_0x577575+'\x20\x20\x20Current\x20version:\x20'+_0x16b19c+'@'+_0x34def8['version']+_0x33840d),console[_0x5d3c0e(0xc8)](_0x577575+_0x5d3c0e(0xd7)+_0x1d83e3+_0x33840d),console[_0x5d3c0e(0xc8)](_0x577575+_0x5d3c0e(0xb7)+_0x59d219+_0x33840d),console[_0x5d3c0e(0xc8)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x28f7d7,_0x1c658e){const _0x29e80d=a121_0x4361,_0x17196a=_0x28f7d7();while(!![]){try{const _0x81ecc1=parseInt(_0x29e80d(0x179))/0x1+parseInt(_0x29e80d(0x16f))/0x2+-parseInt(_0x29e80d(0x17f))/0x3*(parseInt(_0x29e80d(0x176))/0x4)+parseInt(_0x29e80d(0x17e))/0x5*(parseInt(_0x29e80d(0x174))/0x6)+-parseInt(_0x29e80d(0x187))/0x7*(parseInt(_0x29e80d(0x16e))/0x8)+parseInt(_0x29e80d(0x17d))/0x9*(parseInt(_0x29e80d(0x17c))/0xa)+parseInt(_0x29e80d(0x180))/0xb;if(_0x81ecc1===_0x1c658e)break;else _0x17196a['push'](_0x17196a['shift']());}catch(_0x460764){_0x17196a['push'](_0x17196a['shift']());}}}(a121_0x12ca,0xb581f));import{readFileSync}from'node:fs';function a121_0x4361(_0x4471e8,_0xfb1f6d){_0x4471e8=_0x4471e8-0x16c;const _0x12ca46=a121_0x12ca();let _0x436163=_0x12ca46[_0x4471e8];return _0x436163;}import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a121_0x5c33a1 from'semver';import{getCdnConfig}from'./cdn-config.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function getCurrentCliVersion(){const _0x550da3=a121_0x4361;try{const _0x3d29c3=fileURLToPath(import.meta.url),_0x4625dd=resolve(dirname(_0x3d29c3),_0x550da3(0x173)),_0x2ee065=resolve(_0x4625dd,'package.json'),_0x147375=JSON['parse'](readFileSync(_0x2ee065,_0x550da3(0x172)));return _0x147375[_0x550da3(0x178)]||_0x550da3(0x177);}catch{return _0x550da3(0x177);}}function a121_0x12ca(){const _0x497b6a=['177kfqfiO','1112441kNsudD','coerce','↪\x20New\x20version\x20available','currentVersion','\x20\x20\x20Current\x20CLI\x20version:\x20','cli','\x1b[1m','8498MIyxIy','\x20\x20\x20Upgrade\x20command:\x20','npm\x20install\x20-g\x20','some','5112EwAaMY','1122444oAStHw','log','stableVersion','utf-8','../..','76542zXZcFL','\x20\x20\x20Stable\x20version:\x20','6528HuozCz','1.0.0','version','336466wCSxim','@latest','needsUpgrade','10iDypCJ','3368583iAEEBr','95UgilMb'];a121_0x12ca=function(){return _0x497b6a;};return a121_0x12ca();}function isNonNumericVersion(_0x445707){const _0x2b5ef5=a121_0x4361,_0x145f06=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\^/,/^~/,/^>/,/^</,/^\*/,/^x$/];return _0x145f06[_0x2b5ef5(0x16d)](_0x41e73b=>_0x41e73b['test'](_0x445707));}export async function checkCliVersion(){const _0x39eec2=a121_0x4361,_0x4c3241=getCurrentCliVersion(),_0x4bb41b=await getCdnConfig(),_0x4610c7=_0x4bb41b?.[_0x39eec2(0x185)]?.[_0x39eec2(0x171)]||null;let _0x2363d9=![];if(_0x4610c7)try{const _0x3f5eb0=a121_0x5c33a1[_0x39eec2(0x181)](_0x4c3241),_0x1ad758=a121_0x5c33a1[_0x39eec2(0x181)](_0x4610c7);_0x3f5eb0&&_0x1ad758&&(_0x2363d9=a121_0x5c33a1['lt'](_0x3f5eb0,_0x1ad758));}catch{_0x2363d9=![];}return{'currentVersion':_0x4c3241,'stableVersion':_0x4610c7,'needsUpgrade':_0x2363d9,'isPreRelease':![]};}export function printCliUpgradeWarning(_0x42ce94){const _0x15dfc1=a121_0x4361;if(!_0x42ce94[_0x15dfc1(0x17b)])return;const _0x2043c7='\x1b[33m',_0x267213='\x1b[0m',_0x21fe21=_0x15dfc1(0x186),_0xfddc4=_0x15dfc1(0x16c)+NPM_PACKAGE_NAME+_0x15dfc1(0x17a);console[_0x15dfc1(0x170)](),console['log'](''+_0x2043c7+_0x21fe21+_0x15dfc1(0x182)+_0x267213),console['log'](_0x2043c7+_0x15dfc1(0x184)+_0x42ce94[_0x15dfc1(0x183)]+_0x267213),console['log'](_0x2043c7+_0x15dfc1(0x175)+_0x42ce94[_0x15dfc1(0x171)]+_0x267213),console['log'](_0x2043c7+_0x15dfc1(0x188)+_0xfddc4+_0x267213),console['log']();}
|
package/lib/utils/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x835266,_0x5774f1){const _0x451f5f=a122_0x3f6f,_0x3a0e31=_0x835266();while(!![]){try{const _0xdd98c6=parseInt(_0x451f5f(0x1a7))/0x1*(parseInt(_0x451f5f(0x1a5))/0x2)+-parseInt(_0x451f5f(0x1a3))/0x3+-parseInt(_0x451f5f(0x1ac))/0x4*(-parseInt(_0x451f5f(0x19e))/0x5)+-parseInt(_0x451f5f(0x194))/0x6+-parseInt(_0x451f5f(0x1a4))/0x7*(parseInt(_0x451f5f(0x1a8))/0x8)+-parseInt(_0x451f5f(0x19d))/0x9*(-parseInt(_0x451f5f(0x196))/0xa)+-parseInt(_0x451f5f(0x1a1))/0xb;if(_0xdd98c6===_0x5774f1)break;else _0x3a0e31['push'](_0x3a0e31['shift']());}catch(_0x4fbe2a){_0x3a0e31['push'](_0x3a0e31['shift']());}}}(a122_0x1a94,0xb3816));import{initEnv}from'../constant/env.js';function a122_0x1a94(){const _0x3e8847=['45IYlbbw','265gaZeho','app','apiDir','1545654UAYtBb','replace','1229376vSlZEm','52493raYbyH','6408kHzJiB','appcode','251XAtqcC','512YNJdnB','defaultApp','string','keys','55228sIUsmR','entries','env','object','6287064xRobji','cookie','2554730Pzntig','apps','trim','map','https://g.lovrabet.com/dist/lovrabet-skill','values','template_base_url'];a122_0x1a94=function(){return _0x3e8847;};return a122_0x1a94();}import{readRawConfig}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';function a122_0x3f6f(_0x29969f,_0x1c7429){_0x29969f=_0x29969f-0x194;const _0x1a94d1=a122_0x1a94();let _0x3f6f44=_0x1a94d1[_0x29969f];return _0x3f6f44;}export{isInProject}from'../context.js';export function readConfig(_0x4ac76c){const _0x57cb7f=a122_0x3f6f,_0x12f017=readRawConfig(_0x4ac76c);return _0x12f017['env']&&typeof _0x12f017[_0x57cb7f(0x1ae)]==='string'&&initEnv(_0x12f017[_0x57cb7f(0x1ae)]),_0x12f017;}export function getConfigAppCode(){const _0x5ce275=a122_0x3f6f,_0x223866=readRawConfig();if(_0x223866[_0x5ce275(0x197)]&&typeof _0x223866[_0x5ce275(0x197)]===_0x5ce275(0x1af)){const _0x72d582=_0x223866[_0x5ce275(0x1a9)];if(_0x72d582&&_0x223866[_0x5ce275(0x197)][_0x72d582]?.[_0x5ce275(0x1a6)])return String(_0x223866[_0x5ce275(0x197)][_0x72d582]['appcode'])[_0x5ce275(0x198)]();const _0x51cc9b=Object[_0x5ce275(0x19b)](_0x223866[_0x5ce275(0x197)])[0x0];if(_0x51cc9b?.['appcode'])return String(_0x51cc9b['appcode'])[_0x5ce275(0x198)]();}const _0x72cc87=_0x223866[_0x5ce275(0x1a6)]||_0x223866[_0x5ce275(0x19f)];if(typeof _0x72cc87!==_0x5ce275(0x1aa)||_0x72cc87[_0x5ce275(0x198)]()==='')return undefined;return _0x72cc87[_0x5ce275(0x198)]();}export function getMultiAppConfigs(){const _0x53793f=a122_0x3f6f,_0x5a7a4a=readRawConfig(),_0x2f9f5f=_0x5a7a4a[_0x53793f(0x197)];if(!_0x2f9f5f||typeof _0x2f9f5f!==_0x53793f(0x1af)||Object[_0x53793f(0x1ab)](_0x2f9f5f)['length']===0x0)return null;const _0x2ca972=_0x5a7a4a['defaultApp'];return Object[_0x53793f(0x1ad)](_0x2f9f5f)[_0x53793f(0x199)](([_0x415b61,_0x2f23cb])=>({'name':_0x415b61,'appcode':_0x2f23cb?.[_0x53793f(0x1a6)]||'','isDefault':_0x415b61===_0x2ca972,'env':_0x2f23cb?.[_0x53793f(0x1ae)],'apiDir':_0x2f23cb?.[_0x53793f(0x1a0)],'cookie':_0x2f23cb?.[_0x53793f(0x195)]||undefined}))['filter'](_0x402e4f=>_0x402e4f[_0x53793f(0x1a6)]);}export function getTemplateBaseUrl(){const _0x2ad64d=a122_0x3f6f,_0x456dcf=readRawConfig();if(_0x456dcf['template_base_url']&&typeof _0x456dcf[_0x2ad64d(0x19c)]==='string')return _0x456dcf['template_base_url'][_0x2ad64d(0x1a2)](/\/$/,'');return _0x2ad64d(0x19a);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a123_0x2bca(){const _0x3ad02a=['readdirSync','13665KXbEuo','name','复制目录时出错:','284568GOKFYt','2559375pQKxDK','error','isDirectory','1719ouJVLZ','copyFileSync','mkdirSync','415689VFGwyq','join','628KNxSvx','552974MPXPwY','8688VaUaSf','767430lEWmRt'];a123_0x2bca=function(){return _0x3ad02a;};return a123_0x2bca();}(function(_0xb949bf,_0x269893){const _0x835317=a123_0x3435,_0x111b31=_0xb949bf();while(!![]){try{const _0x5320fc=parseInt(_0x835317(0x1d1))/0x1+parseInt(_0x835317(0x1ca))/0x2+parseInt(_0x835317(0x1c7))/0x3+-parseInt(_0x835317(0x1c9))/0x4*(parseInt(_0x835317(0x1ce))/0x5)+parseInt(_0x835317(0x1cc))/0x6+-parseInt(_0x835317(0x1d2))/0x7+parseInt(_0x835317(0x1cb))/0x8*(parseInt(_0x835317(0x1c4))/0x9);if(_0x5320fc===_0x269893)break;else _0x111b31['push'](_0x111b31['shift']());}catch(_0x280bf1){_0x111b31['push'](_0x111b31['shift']());}}}(a123_0x2bca,0x3aa73));function a123_0x3435(_0x5c0357,_0x4898c2){_0x5c0357=_0x5c0357-0x1c2;const _0x2bca21=a123_0x2bca();let _0x34355a=_0x2bca21[_0x5c0357];return _0x34355a;}import a123_0xf1082a from'node:path';import a123_0xb63ffe from'node:fs';export async function copyDirectory(_0x383a35,_0x298d10){const _0x707386=a123_0x3435;try{const _0x1aee46=a123_0xb63ffe[_0x707386(0x1cd)](_0x383a35,{'withFileTypes':!![]});a123_0xb63ffe[_0x707386(0x1c6)](_0x298d10,{'recursive':!![]});for(const _0x58a9f5 of _0x1aee46){const _0x7a6fdb=a123_0xf1082a[_0x707386(0x1c8)](_0x383a35,_0x58a9f5[_0x707386(0x1cf)]),_0x28df15=a123_0xf1082a['join'](_0x298d10,_0x58a9f5[_0x707386(0x1cf)]);_0x58a9f5[_0x707386(0x1c3)]()?await copyDirectory(_0x7a6fdb,_0x28df15):a123_0xb63ffe[_0x707386(0x1c5)](_0x7a6fdb,_0x28df15);}}catch(_0x529897){console[_0x707386(0x1c2)](_0x707386(0x1d0),_0x529897);}}
|
package/lib/utils/file-utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a124_0x1caf(_0x57c313,_0x1573aa){_0x57c313=_0x57c313-0xbf;const _0x5ae951=a124_0x5ae9();let _0x1caf94=_0x5ae951[_0x57c313];return _0x1caf94;}(function(_0x34ea16,_0x55047a){const _0x2bed64=a124_0x1caf,_0x422ef2=_0x34ea16();while(!![]){try{const _0xd5f90=parseInt(_0x2bed64(0xca))/0x1+parseInt(_0x2bed64(0xc0))/0x2+parseInt(_0x2bed64(0xc8))/0x3+parseInt(_0x2bed64(0xc3))/0x4*(-parseInt(_0x2bed64(0xc7))/0x5)+parseInt(_0x2bed64(0xc2))/0x6*(-parseInt(_0x2bed64(0xc6))/0x7)+parseInt(_0x2bed64(0xc5))/0x8*(-parseInt(_0x2bed64(0xbf))/0x9)+parseInt(_0x2bed64(0xc9))/0xa*(-parseInt(_0x2bed64(0xc4))/0xb);if(_0xd5f90===_0x55047a)break;else _0x422ef2['push'](_0x422ef2['shift']());}catch(_0x8ea5ce){_0x422ef2['push'](_0x422ef2['shift']());}}}(a124_0x5ae9,0xaaa72));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';function a124_0x5ae9(){const _0x2562fb=['417230Woyybb','1146593bXmvvk','10269bliKOs','1748834DjBwDX','isDirectory','6EJRAYJ','501924CUMHsw','209VDkyRS','72jTULaT','7977186tBOPvE','5ISjwZY','2238207dEzsMH'];a124_0x5ae9=function(){return _0x2562fb;};return a124_0x5ae9();}export async function copyDir(_0x16901f,_0x405a23){const _0x84b8ad=a124_0x1caf,_0x48fdf2=statSync(_0x16901f);if(_0x48fdf2[_0x84b8ad(0xc1)]()){!existsSync(_0x405a23)&&mkdirSync(_0x405a23,{'recursive':!![]});const _0x52cc97=readdirSync(_0x16901f);for(const _0x337b9e of _0x52cc97){await copyDir(join(_0x16901f,_0x337b9e),join(_0x405a23,_0x337b9e));}}else copyFileSync(_0x16901f,_0x405a23);}export function ensureDir(_0x1d391d){!existsSync(_0x1d391d)&&mkdirSync(_0x1d391d,{'recursive':!![]});}export function pathExists(_0x5e35cb){return existsSync(_0x5e35cb);}
|