@lovrabet/rabetbase-cli 2.1.9 → 2.1.10-beta.1
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/login-success-html.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/generate.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/discover.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.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/create.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/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/data/filter.js +1 -1
- package/lib/commands/data/getOne.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/data/shared.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -0
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/link-create.js +1 -1
- package/lib/commands/dataset/link-delete.js +1 -1
- package/lib/commands/dataset/link-shared.js +1 -1
- package/lib/commands/dataset/link-update.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/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/init/index.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/report.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/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/standard-page-status.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/non-interactive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/init.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.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/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/save.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/risk.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/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.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-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.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/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.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/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/copy-directory.js +1 -1
- package/lib/utils/entity-with-id.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/params.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/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +2 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x559b87,_0x3a2d47){const _0xf0d2d5=a153_0x493e,_0x221b35=_0x559b87();while(!![]){try{const _0x7639a7=parseInt(_0xf0d2d5(0x7f))/0x1+-parseInt(_0xf0d2d5(0x86))/0x2+parseInt(_0xf0d2d5(0x82))/0x3+parseInt(_0xf0d2d5(0x89))/0x4+parseInt(_0xf0d2d5(0x8e))/0x5+-parseInt(_0xf0d2d5(0x8b))/0x6+-parseInt(_0xf0d2d5(0x8d))/0x7;if(_0x7639a7===_0x3a2d47)break;else _0x221b35['push'](_0x221b35['shift']());}catch(_0x539225){_0x221b35['push'](_0x221b35['shift']());}}}(a153_0x3ed5,0x72643));function a153_0x493e(_0x4b4fb0,_0x2f2dcc){_0x4b4fb0=_0x4b4fb0-0x7e;const _0x3ed5fc=a153_0x3ed5();let _0x493ec2=_0x3ed5fc[_0x4b4fb0];return _0x493ec2;}import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';function a153_0x3ed5(){const _0x2e23ec=['2557329iUqteb','lastSync','sqls','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','1365316botvJl',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','\x22\x20vs\x20lock\x20\x22','679824YnIDey','sqlRoot','4323228uzylyH','utf8','783223byUypF','2678035NeBTTp','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','stringify','apps','425626TMDfYW','ENOENT','code'];a153_0x3ed5=function(){return _0x2e23ec;};return a153_0x3ed5();}export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x248775,_0x2ecbe9,_0x277da1,_0x24be86){const _0x5879e1=a153_0x493e,_0x315d3e=_0x248775??createEmptySqlLock();let _0x2fa38d=_0x315d3e[_0x5879e1(0x7e)][_0x2ecbe9];if(!_0x2fa38d)return _0x2fa38d={'sqlRoot':_0x277da1,'lastSync':'','sqls':{}},_0x315d3e[_0x5879e1(0x7e)][_0x2ecbe9]=_0x2fa38d,{'lockData':_0x315d3e,'appLock':_0x2fa38d};if(!_0x2fa38d[_0x5879e1(0x8a)])_0x2fa38d[_0x5879e1(0x8a)]=_0x277da1;else{if(_0x2fa38d[_0x5879e1(0x8a)]!==_0x277da1)throw new Error(_0x24be86+_0x5879e1(0x87)+_0x277da1+_0x5879e1(0x88)+_0x2fa38d['sqlRoot']+'\x22.\x20'+_0x5879e1(0x8f));}return!_0x2fa38d[_0x5879e1(0x84)]&&(_0x2fa38d[_0x5879e1(0x84)]={}),!_0x2fa38d['lastSync']&&(_0x2fa38d[_0x5879e1(0x83)]=''),{'lockData':_0x315d3e,'appLock':_0x2fa38d};}export async function readSqlLockFile(_0x4d532f){const _0x2e6c77=a153_0x493e;try{const _0x3e3607=await readFile(_0x4d532f,_0x2e6c77(0x8c));return JSON['parse'](_0x3e3607);}catch(_0x26055b){if(_0x26055b[_0x2e6c77(0x81)]===_0x2e6c77(0x80))return null;throw new Error(_0x2e6c77(0x85)+String(_0x26055b));}}export async function writeSqlLockFile(_0xb044a3,_0x270447){const _0x48eec7=a153_0x493e;await mkdir(dirname(_0xb044a3),{'recursive':!![]}),await writeFile(_0xb044a3,JSON[_0x48eec7(0x90)](_0x270447,null,0x2),_0x48eec7(0x8c));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x50f02a,_0x16c35a){const _0x3571da=a155_0x482b,_0x5c65e2=_0x50f02a();while(!![]){try{const _0x52da66=parseInt(_0x3571da(0x1e4))/0x1*(parseInt(_0x3571da(0x1eb))/0x2)+-parseInt(_0x3571da(0x1ee))/0x3*(-parseInt(_0x3571da(0x1e3))/0x4)+-parseInt(_0x3571da(0x1dd))/0x5+parseInt(_0x3571da(0x1e1))/0x6+-parseInt(_0x3571da(0x1e0))/0x7+-parseInt(_0x3571da(0x1e5))/0x8*(-parseInt(_0x3571da(0x1e8))/0x9)+parseInt(_0x3571da(0x1e9))/0xa*(-parseInt(_0x3571da(0x1ed))/0xb);if(_0x52da66===_0x16c35a)break;else _0x5c65e2['push'](_0x5c65e2['shift']());}catch(_0x18747f){_0x5c65e2['push'](_0x5c65e2['shift']());}}}(a155_0x49bd,0x97892));export function detectSqlMode(_0x28f3ee){const _0x712e71=a155_0x482b,_0x4b0d60=_0x28f3ee[_0x712e71(0x1e6)]();if(/^<(select|insert|update|delete)\b/i[_0x712e71(0x1df)](_0x4b0d60))return _0x712e71(0x1ea);return _0x712e71(0x1e7);}export function getSqlFileExtension(_0x27cb87){const _0x419fc6=a155_0x482b;return _0x27cb87===_0x419fc6(0x1ea)?_0x419fc6(0x1f0):_0x419fc6(0x1ef);}export function buildDefaultSqlFileName(_0x13b6ba,_0x71495c){return''+_0x13b6ba+getSqlFileExtension(_0x71495c);}function a155_0x482b(_0x172ab8,_0x23ee35){_0x172ab8=_0x172ab8-0x1dd;const _0x49bdb4=a155_0x49bd();let _0x482bd4=_0x49bdb4[_0x172ab8];return _0x482bd4;}export function sanitizeSqlPathSegment(_0x21dd68,_0x2f8a32){const _0x53f9fe=a155_0x482b,_0x4f25a9=String(_0x21dd68??'')['trim'](),_0x4d4ac2=_0x4f25a9[_0x53f9fe(0x1ec)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x53f9fe(0x1ec)](/\s+/g,'-')[_0x53f9fe(0x1ec)](/-+/g,'-')['replace'](/^\.+/,'')['replace'](/\.+$/,'')['replace'](/^-+/,'')[_0x53f9fe(0x1ec)](/-+$/,'');return _0x4d4ac2||_0x2f8a32;}function a155_0x49bd(){const _0x5829d9=['db-','test','4613329tmCZos','1935450LmhneQ','unknown-sql','18452ZlpghR','589411eBDpnn','3100536zRbDWw','trimStart','sql','9hQLfuc','10qwkpia','mybatisXml','2aekgLm','replace','5664967FQQPKP','369zztgRm','.sql','.xml','361090uOuzBr'];a155_0x49bd=function(){return _0x5829d9;};return a155_0x49bd();}export function buildDbDirectoryName(_0x36202a,_0x4d305a){const _0xf0450c=a155_0x482b;return sanitizeSqlPathSegment(_0x36202a,_0x4d305a!=null?_0xf0450c(0x1de)+_0x4d305a:'unknown-db');}export function buildSqlRelativePath(_0x20d987,_0x1dc0ec,_0x39ef46,_0x503229,_0x5229fd){const _0x1a0708=a155_0x482b,_0x39d52f=buildDbDirectoryName(_0x39ef46,_0x5229fd),_0x283b3f=sanitizeSqlPathSegment(_0x20d987,_0x1a0708(0x1e2)),_0x4f2931=sanitizeSqlPathSegment(_0x1dc0ec,_0x283b3f);return _0x39d52f+'/'+_0x283b3f+'_'+_0x4f2931+getSqlFileExtension(_0x503229);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5238ab,_0x3e9058){const _0x551519=a156_0x41a3,_0x9ad68f=_0x5238ab();while(!![]){try{const _0x3558a3=-parseInt(_0x551519(0x86))/0x1*(parseInt(_0x551519(0x7f))/0x2)+parseInt(_0x551519(0x85))/0x3+parseInt(_0x551519(0x93))/0x4+-parseInt(_0x551519(0x7c))/0x5+-parseInt(_0x551519(0x98))/0x6+-parseInt(_0x551519(0x9a))/0x7+-parseInt(_0x551519(0x7d))/0x8*(-parseInt(_0x551519(0x83))/0x9);if(_0x3558a3===_0x3e9058)break;else _0x9ad68f['push'](_0x9ad68f['shift']());}catch(_0x21c7ea){_0x9ad68f['push'](_0x9ad68f['shift']());}}}(a156_0xc12b,0x7f081));export function detectSqlType(_0x5f407a){const _0x16f65b=a156_0x41a3;if(!_0x5f407a?.[_0x16f65b(0x87)]())return{'type':_0x16f65b(0x89),'isSelectOnly':![],'isDangerous':![],'reason':_0x16f65b(0x8e)};const _0x488e7b=_0x5f407a[_0x16f65b(0x94)](/#\{[^}]*\}/g,'?')[_0x16f65b(0x94)](/\$\{[^}]*\}/g,'?')[_0x16f65b(0x94)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x16f65b(0x94)](/\/\*[\s\S]*?\*\//g,'')[_0x16f65b(0x87)](),_0xaa515a=_0x488e7b['split']('\x0a');let _0x27bcd3='';for(const _0x4dc3e5 of _0xaa515a){const _0x2a1c71=_0x4dc3e5[_0x16f65b(0x87)]();if(!_0x2a1c71||_0x2a1c71[_0x16f65b(0x7b)]('--')||_0x2a1c71['startsWith']('/*'))continue;_0x27bcd3=_0x2a1c71;break;}const _0x1fb880=_0x27bcd3['toUpperCase']();if(_0x1fb880[_0x16f65b(0x7b)]('SELECT')||_0x1fb880[_0x16f65b(0x7b)](_0x16f65b(0x80))){const _0x31f977=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x16f65b(0x8c)](_0x488e7b);return{'type':'SELECT','isSelectOnly':!_0x31f977,'isDangerous':_0x31f977,'reason':_0x31f977?_0x16f65b(0x81):undefined};}if(_0x1fb880[_0x16f65b(0x7b)]('INSERT'))return{'type':_0x16f65b(0x96),'isSelectOnly':![],'isDangerous':![]};if(_0x1fb880['startsWith'](_0x16f65b(0x97)))return{'type':_0x16f65b(0x97),'isSelectOnly':![],'isDangerous':![]};if(_0x1fb880[_0x16f65b(0x7b)](_0x16f65b(0x8f)))return{'type':'DELETE','isSelectOnly':![],'isDangerous':!![],'reason':_0x16f65b(0x8d)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x16f65b(0x8c)](_0x1fb880))return{'type':_0x16f65b(0x84),'isSelectOnly':![],'isDangerous':!![],'reason':'DDL\x20statements\x20are\x20blocked\x20from\x20auto-save'};return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![]};}function a156_0xc12b(){const _0x12514c=['37413kAzCYj','DDL','787053xIqRCf','359AaEKMa','trim','add','UNKNOWN','matchAll','\x20with\x20parameters:\x20','test','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','SQL\x20content\x20is\x20empty','DELETE','type','join','push','765212rNzhJm','replace','match','INSERT','UPDATE','5880630BgkOxL','from','5222077tyRRNY','length','startsWith','1002365ZPgLYj','5416WoJRIu','includes','4574ktWHsm','WITH','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','\x20query\x20targeting\x20'];a156_0xc12b=function(){return _0x12514c;};return a156_0xc12b();}function extractTables(_0x5466da){const _0xe173f4=a156_0x41a3,_0x551cb2=_0x5466da[_0xe173f4(0x94)](/#\{[^}]*\}/g,'?')[_0xe173f4(0x94)](/\$\{[^}]*\}/g,'?')[_0xe173f4(0x94)](/'[^']*'/g,'\x27\x27')[_0xe173f4(0x94)](/--.*$/gm,'')[_0xe173f4(0x94)](/\/\*[\s\S]*?\*\//g,''),_0x2677c3=[],_0x4fd571=_0x551cb2['match'](/FROM\s+([^\s,)(]+)/i);if(_0x4fd571?.[0x1])_0x2677c3[_0xe173f4(0x92)](_0x4fd571[0x1][_0xe173f4(0x94)](/[`"]/g,''));for(const _0x446168 of _0x551cb2[_0xe173f4(0x8a)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x5c6a2c=_0x446168[0x1]?.[_0xe173f4(0x94)](/[`"]/g,'');if(_0x5c6a2c&&!_0x2677c3['includes'](_0x5c6a2c))_0x2677c3['push'](_0x5c6a2c);}const _0xbae475=_0x551cb2[_0xe173f4(0x95)](/INTO\s+([^\s(]+)/i);if(_0xbae475?.[0x1]){const _0xc304f0=_0xbae475[0x1][_0xe173f4(0x94)](/[`"]/g,'');if(!_0x2677c3['includes'](_0xc304f0))_0x2677c3[_0xe173f4(0x92)](_0xc304f0);}const _0x2604e2=_0x551cb2[_0xe173f4(0x95)](/UPDATE\s+([^\s,)(]+)/i);if(_0x2604e2?.[0x1]){const _0x199851=_0x2604e2[0x1]['replace'](/[`"]/g,'');if(!_0x2677c3[_0xe173f4(0x7e)](_0x199851))_0x2677c3[_0xe173f4(0x92)](_0x199851);}return _0x2677c3;}function extractParameters(_0x508f49){const _0x2fc464=a156_0x41a3,_0x1ab1ec=new Set();for(const _0x1af4b1 of _0x508f49[_0x2fc464(0x8a)](/#\{(\w+)\}/g))if(_0x1af4b1[0x1])_0x1ab1ec[_0x2fc464(0x88)](_0x1af4b1[0x1]);for(const _0x28f38f of _0x508f49[_0x2fc464(0x8a)](/\$\{(\w+)\}/g))if(_0x28f38f[0x1])_0x1ab1ec[_0x2fc464(0x88)](_0x28f38f[0x1]);return Array[_0x2fc464(0x99)](_0x1ab1ec);}function a156_0x41a3(_0x313204,_0x25b53f){_0x313204=_0x313204-0x7b;const _0xc12b81=a156_0xc12b();let _0x41a397=_0xc12b81[_0x313204];return _0x41a397;}export function validateSql(_0x492a94){const _0x2615fd=a156_0x41a3,_0x2d2861=detectSqlType(_0x492a94),_0x1f4294=extractTables(_0x492a94),_0x4025fb=extractParameters(_0x492a94);if(_0x2d2861['isDangerous'])return{'valid':![],'sqlType':_0x2d2861,'tables':_0x1f4294,'parameters':_0x4025fb,'message':_0x2d2861['reason']||_0x2d2861[_0x2615fd(0x90)]+'\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.'};if(_0x2d2861[_0x2615fd(0x90)]===_0x2615fd(0x89))return{'valid':![],'sqlType':_0x2d2861,'tables':_0x1f4294,'parameters':_0x4025fb,'message':'Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.'};return{'valid':!![],'sqlType':_0x2d2861,'tables':_0x1f4294,'parameters':_0x4025fb,'message':_0x2d2861[_0x2615fd(0x90)]+_0x2615fd(0x82)+(_0x1f4294[_0x2615fd(0x9b)]?_0x1f4294[_0x2615fd(0x91)](',\x20'):'unknown\x20table(s)')+(_0x4025fb[_0x2615fd(0x9b)]?_0x2615fd(0x8b)+_0x4025fb[_0x2615fd(0x91)](',\x20'):'')};}
|
package/lib/errors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a157_0xd0d517=a157_0x33e8;(function(_0x471085,_0x399887){const _0x1a14ed=a157_0x33e8,_0x54ecce=_0x471085();while(!![]){try{const _0x405251=parseInt(_0x1a14ed(0xdf))/0x1+parseInt(_0x1a14ed(0xe4))/0x2+parseInt(_0x1a14ed(0xe9))/0x3*(-parseInt(_0x1a14ed(0xde))/0x4)+parseInt(_0x1a14ed(0xe1))/0x5+parseInt(_0x1a14ed(0xe6))/0x6+-parseInt(_0x1a14ed(0xec))/0x7*(-parseInt(_0x1a14ed(0xe0))/0x8)+parseInt(_0x1a14ed(0xe7))/0x9*(parseInt(_0x1a14ed(0xe2))/0xa);if(_0x405251===_0x399887)break;else _0x54ecce['push'](_0x54ecce['shift']());}catch(_0x13a272){_0x54ecce['push'](_0x54ecce['shift']());}}}(a157_0x56ac,0xc424f));function a157_0x33e8(_0x31bd44,_0x1c249a){_0x31bd44=_0x31bd44-0xdc;const _0x56ac78=a157_0x56ac();let _0x33e805=_0x56ac78[_0x31bd44];return _0x33e805;}import{CliError,createCliErrors}from'@lovrabet/cli-framework';function a157_0x56ac(){const _0x4aa073=['\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','\x20auth`\x20to\x20login\x20first.','236thUpgl','632786GqQIWF','1361496ErTsqJ','2049615xpVyJr','190LmGKuJ','Set\x20appcode\x20via\x20`','409150NKnTdN','Run\x20`','4389990MWHWXi','93960qfSpjY','Tip:\x20`','78513WwOOdV','join','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','7pSlLyo'];a157_0x56ac=function(){return _0x4aa073;};return a157_0x56ac();}import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a157_0xd0d517(0xe5)+CLI_BIN_NAME+a157_0xd0d517(0xdd),'configMissingHint':[a157_0xd0d517(0xe3)+CLI_BIN_NAME+a157_0xd0d517(0xdc),a157_0xd0d517(0xe8)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.'][a157_0xd0d517(0xea)]('\x0a\x20\x20\x20\x20\x20\x20\x20'),'notInProjectHint':a157_0xd0d517(0xeb)});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a158_0x295a(){var _0x26b6be=['10341IVenlo','6zxOzbm','2770430eTGVUM','7Vspqew','3376008WPmcNT','217973qJEZdW','5505504UtSrQM','2628160TMwEfa','848gXKTSQ','200660xuJWGY','279DIuYgM','11HLihXR'];a158_0x295a=function(){return _0x26b6be;};return a158_0x295a();}(function(_0x2e7aaa,_0x493a4f){var _0x448af7=a158_0x6aaf,_0x347e29=_0x2e7aaa();while(!![]){try{var _0x2bde24=-parseInt(_0x448af7(0x1fb))/0x1*(parseInt(_0x448af7(0x1f7))/0x2)+parseInt(_0x448af7(0x1f6))/0x3*(parseInt(_0x448af7(0x1f2))/0x4)+-parseInt(_0x448af7(0x1f8))/0x5+-parseInt(_0x448af7(0x1fa))/0x6+-parseInt(_0x448af7(0x1f9))/0x7*(-parseInt(_0x448af7(0x1f1))/0x8)+parseInt(_0x448af7(0x1f4))/0x9*(parseInt(_0x448af7(0x1f3))/0xa)+-parseInt(_0x448af7(0x1f5))/0xb*(-parseInt(_0x448af7(0x1fc))/0xc);if(_0x2bde24===_0x493a4f)break;else _0x347e29['push'](_0x347e29['shift']());}catch(_0x21f642){_0x347e29['push'](_0x347e29['shift']());}}}(a158_0x295a,0x5a329));function a158_0x6aaf(_0x4ba98c,_0x195b36){_0x4ba98c=_0x4ba98c-0x1f1;var _0x295aca=a158_0x295a();var _0x6aaf8=_0x295aca[_0x4ba98c];return _0x6aaf8;}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a158_0x3cea62}from'@lovrabet/cli-framework';export function buildAllFlags(_0x3af30b){return a158_0x3cea62(_0x3af30b,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
|
package/lib/framework/flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a159_0xcc9182=a159_0x5c00;function a159_0x19af(){const _0x1cc1ce=['34Wrfaxt','validateFlags','19452KcPfpv','5649740Njbred','355UhxLoR','parseFlags','4261026tFEuHW','1592STWaXd','18368400uJTKbM','63917aWJJLc','72990rTTWtI','2598302BEmMan'];a159_0x19af=function(){return _0x1cc1ce;};return a159_0x19af();}(function(_0x4028f4,_0x262fac){const _0x54ce9e=a159_0x5c00,_0x423eab=_0x4028f4();while(!![]){try{const _0x3d29ad=-parseInt(_0x54ce9e(0x161))/0x1*(-parseInt(_0x54ce9e(0x164))/0x2)+-parseInt(_0x54ce9e(0x15e))/0x3+parseInt(_0x54ce9e(0x167))/0x4+parseInt(_0x54ce9e(0x168))/0x5*(-parseInt(_0x54ce9e(0x166))/0x6)+parseInt(_0x54ce9e(0x163))/0x7+parseInt(_0x54ce9e(0x15f))/0x8*(parseInt(_0x54ce9e(0x162))/0x9)+-parseInt(_0x54ce9e(0x160))/0xa;if(_0x3d29ad===_0x262fac)break;else _0x423eab['push'](_0x423eab['shift']());}catch(_0x2e777d){_0x423eab['push'](_0x423eab['shift']());}}}(a159_0x19af,0xf3580));import{createFlagHelpers}from'@lovrabet/cli-framework';function a159_0x5c00(_0x6496a2,_0x5df5d0){_0x6496a2=_0x6496a2-0x15d;const _0x19af32=a159_0x19af();let _0x5c00a8=_0x19af32[_0x6496a2];return _0x5c00a8;}import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a159_0xcc9182(0x15d)];export const validateFlags=helpers[a159_0xcc9182(0x165)];
|
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a160_0x37210a=a160_0x41cf;(function(_0x2ce534,_0x249598){const _0x5baac4=a160_0x41cf,_0x233a98=_0x2ce534();while(!![]){try{const _0x1977ca=-parseInt(_0x5baac4(0xca))/0x1*(-parseInt(_0x5baac4(0xc7))/0x2)+parseInt(_0x5baac4(0xd4))/0x3+parseInt(_0x5baac4(0xcc))/0x4+parseInt(_0x5baac4(0xd5))/0x5*(parseInt(_0x5baac4(0xd1))/0x6)+-parseInt(_0x5baac4(0xd0))/0x7*(-parseInt(_0x5baac4(0xd6))/0x8)+parseInt(_0x5baac4(0xce))/0x9+-parseInt(_0x5baac4(0xd3))/0xa;if(_0x1977ca===_0x249598)break;else _0x233a98['push'](_0x233a98['shift']());}catch(_0x4757e1){_0x233a98['push'](_0x233a98['shift']());}}}(a160_0x1540,0x3c8c8));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';function a160_0x41cf(_0x202def,_0x3a3f52){_0x202def=_0x202def-0xc7;const _0x15405b=a160_0x1540();let _0x41cf9c=_0x15405b[_0x202def];return _0x41cf9c;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x113088=>serviceGroups[a160_0x37210a(0xcd)](_0x113088),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a160_0x37210a(0xcf)+CLI_BIN_NAME+a160_0x37210a(0xc8),'serviceUsageSuffix':a160_0x37210a(0xc9),'includeWildcardExtraInFullHelp':!![]});function a160_0x1540(){const _0x4461d1=['4zHJppp','\x20project\x20init`\x20or\x20--appcode).','\x20[args]\x20[flags]','129258Bftlzd','generateFullHelp','1298008EkOjYu','get','685818fquiXY','Requires\x20appcode\x20(set\x20via\x20`','224777JkJDID','354pDtSpq','generateServiceHelp','13304880bovsTB','1237614xzKHup','23895nWUkaP','56ObRRgr'];a160_0x1540=function(){return _0x4461d1;};return a160_0x1540();}export function generateCommandHelp(_0xd02060){return generators['generateCommandHelp'](_0xd02060);}export const generateServiceHelp=generators[a160_0x37210a(0xd2)];export const generateFullHelp=generators[a160_0x37210a(0xcb)];
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x559107,_0x881363){var _0x4b7c84=a161_0x3d3c,_0x279462=_0x559107();while(!![]){try{var _0x46b098=parseInt(_0x4b7c84(0xa1))/0x1+parseInt(_0x4b7c84(0xa8))/0x2+parseInt(_0x4b7c84(0xa6))/0x3*(parseInt(_0x4b7c84(0xa5))/0x4)+-parseInt(_0x4b7c84(0xa2))/0x5+-parseInt(_0x4b7c84(0xa3))/0x6+parseInt(_0x4b7c84(0xa7))/0x7*(parseInt(_0x4b7c84(0xa0))/0x8)+parseInt(_0x4b7c84(0xa4))/0x9;if(_0x46b098===_0x881363)break;else _0x279462['push'](_0x279462['shift']());}catch(_0x41ae92){_0x279462['push'](_0x279462['shift']());}}}(a161_0x18db,0x51b3a));export{runCommand}from'../framework/runner.js';function a161_0x18db(){var _0x588323=['116739bdVjvN','65276dEJxns','8mjnAuz','603819DPHPwd','2743020jawYBD','3029940PqsCFg','1473318ZOcMtO','1136EqAbsC','6036JhqVXT'];a161_0x18db=function(){return _0x588323;};return a161_0x18db();}export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';function a161_0x3d3c(_0x534690,_0x746beb){_0x534690=_0x534690-0xa0;var _0x18db05=a161_0x18db();var _0x3d3cae=_0x18db05[_0x534690];return _0x3d3cae;}export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
|
package/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x22dd94,_0x2ff33a){const _0x1df958=a162_0xbcab,_0x25f6b3=_0x22dd94();while(!![]){try{const _0x2bfb52=-parseInt(_0x1df958(0x176))/0x1*(-parseInt(_0x1df958(0x170))/0x2)+parseInt(_0x1df958(0x177))/0x3+parseInt(_0x1df958(0x16e))/0x4+parseInt(_0x1df958(0x16d))/0x5*(-parseInt(_0x1df958(0x171))/0x6)+-parseInt(_0x1df958(0x174))/0x7*(-parseInt(_0x1df958(0x175))/0x8)+parseInt(_0x1df958(0x16f))/0x9*(parseInt(_0x1df958(0x172))/0xa)+-parseInt(_0x1df958(0x173))/0xb;if(_0x2bfb52===_0x2ff33a)break;else _0x25f6b3['push'](_0x25f6b3['shift']());}catch(_0xe3dda7){_0x25f6b3['push'](_0x25f6b3['shift']());}}}(a162_0xfb96,0x67459));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a162_0xfb96(){const _0x4b91a1=['1842dxueZQ','20FogfCI','12413467XJsdsV','195279iVlFuX','40HONsUy','11uxGTPa','827748bZjTdv','3470GFQuSy','2507884GODiTq','1845117GYDVxz','56756XNIJuE'];a162_0xfb96=function(){return _0x4b91a1;};return a162_0xfb96();}function a162_0xbcab(_0xb2332e,_0x15f342){_0xb2332e=_0xb2332e-0x16d;const _0xfb9614=a162_0xfb96();let _0xbcab7f=_0xfb9614[_0xb2332e];return _0xbcab7f;}export const formatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a163_0x42c2(_0x9824c,_0x4900b4){_0x9824c=_0x9824c-0x11f;var _0x16c360=a163_0x16c3();var _0x42c299=_0x16c360[_0x9824c];return _0x42c299;}(function(_0x591e6c,_0x20df01){var _0x2227ec=a163_0x42c2,_0x29ad60=_0x591e6c();while(!![]){try{var _0x3f3635=parseInt(_0x2227ec(0x11f))/0x1+-parseInt(_0x2227ec(0x122))/0x2*(-parseInt(_0x2227ec(0x125))/0x3)+parseInt(_0x2227ec(0x126))/0x4*(parseInt(_0x2227ec(0x127))/0x5)+parseInt(_0x2227ec(0x124))/0x6+parseInt(_0x2227ec(0x120))/0x7+parseInt(_0x2227ec(0x123))/0x8+-parseInt(_0x2227ec(0x121))/0x9;if(_0x3f3635===_0x20df01)break;else _0x29ad60['push'](_0x29ad60['shift']());}catch(_0x223635){_0x29ad60['push'](_0x29ad60['shift']());}}}(a163_0x16c3,0xbac70));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a163_0x16c3(){var _0x5e09a1=['5492004DIKgIr','3sEJpba','229900VrcMbX','80DvCkjI','1521205cFzILm','9630789feSnms','60807663EhWhiD','2677558LzXhDi','11605616polKQk'];a163_0x16c3=function(){return _0x5e09a1;};return a163_0x16c3();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3229b9,_0x26ebc9){const _0x3acc6c=a164_0x3c90,_0xe43eba=_0x3229b9();while(!![]){try{const _0x22b949=-parseInt(_0x3acc6c(0x106))/0x1+-parseInt(_0x3acc6c(0x100))/0x2+-parseInt(_0x3acc6c(0x10c))/0x3+-parseInt(_0x3acc6c(0x109))/0x4*(-parseInt(_0x3acc6c(0xfb))/0x5)+parseInt(_0x3acc6c(0x10d))/0x6*(parseInt(_0x3acc6c(0x105))/0x7)+parseInt(_0x3acc6c(0x108))/0x8+-parseInt(_0x3acc6c(0xfa))/0x9;if(_0x22b949===_0x26ebc9)break;else _0xe43eba['push'](_0xe43eba['shift']());}catch(_0x8e89d9){_0xe43eba['push'](_0xe43eba['shift']());}}}(a164_0x12f3,0x190d2));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';function a164_0x12f3(){const _0x70bbd1=['36YWshoY','some','name','`\x20requires\x20either\x20--code\x20or\x20--alias.','validation','1210410QXJjUq','15AvLiou','\x20api\x20pull`\x20first.','alias','type','code','43290uSTZtE','flags','Available\x20aliases:\x20','\x22.\x20','.\x20Run\x20`','155981CwfIfl','23893fByTOj','No\x20api.ts\x20found\x20in\x20','1223312SgRfEW','198632OleQHh','Unknown\x20alias\x20\x22','length','458844XKuWbf'];a164_0x12f3=function(){return _0x70bbd1;};return a164_0x12f3();}function a164_0x3c90(_0x34c801,_0x12b76c){_0x34c801=_0x34c801-0xfa;const _0x12f3b1=a164_0x12f3();let _0x3c9069=_0x12f3b1[_0x34c801];return _0x3c9069;}import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x2fc831,_0x28b366,_0x529c08,_0x416786){const _0x146ec1=a164_0x3c90,_0x194d97=_0x2fc831[_0x146ec1(0x101)]['some'](_0x6f3a1d=>_0x6f3a1d[_0x146ec1(0x10f)]===_0x146ec1(0xff)&&_0x6f3a1d[_0x146ec1(0xfe)]==='string'),_0x2bd514=_0x2fc831[_0x146ec1(0x101)][_0x146ec1(0x10e)](_0x26ae2c=>_0x26ae2c[_0x146ec1(0x10f)]===_0x146ec1(0xfd)&&_0x26ae2c[_0x146ec1(0xfe)]==='string');if(!_0x194d97||!_0x2bd514)return;const _0x4e8bb1=_0x28b366['code']?String(_0x28b366[_0x146ec1(0xff)]):'',_0x3761cd=_0x28b366[_0x146ec1(0xfd)]?String(_0x28b366[_0x146ec1(0xfd)]):'';if(!_0x4e8bb1&&!_0x3761cd)throw CliErrors[_0x146ec1(0x111)]('`'+_0x416786+_0x146ec1(0x110));if(_0x3761cd&&!_0x4e8bb1){const _0x24ea05=resolveAlias(_0x529c08,_0x3761cd);if(!_0x24ea05){const _0x243ea9=listAliases(_0x529c08)['map'](_0x433117=>_0x433117[_0x146ec1(0xfd)]),_0x38d366=_0x243ea9[_0x146ec1(0x10b)]?_0x146ec1(0x102)+_0x243ea9['join'](',\x20'):_0x146ec1(0x107)+_0x529c08+_0x146ec1(0x104)+CLI_BIN_NAME+_0x146ec1(0xfc);throw CliErrors[_0x146ec1(0x111)](_0x146ec1(0x10a)+_0x3761cd+_0x146ec1(0x103)+_0x38d366);}_0x28b366[_0x146ec1(0xff)]=_0x24ea05;}}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a165_0x3e82e6=a165_0x456b;(function(_0x2fc462,_0x326446){const _0x207419=a165_0x456b,_0x5b7b72=_0x2fc462();while(!![]){try{const _0x2bb55f=-parseInt(_0x207419(0xb4))/0x1+parseInt(_0x207419(0xbb))/0x2*(-parseInt(_0x207419(0xa5))/0x3)+-parseInt(_0x207419(0xb6))/0x4*(parseInt(_0x207419(0xb3))/0x5)+parseInt(_0x207419(0xb5))/0x6*(parseInt(_0x207419(0xab))/0x7)+parseInt(_0x207419(0xa4))/0x8+parseInt(_0x207419(0xc4))/0x9+parseInt(_0x207419(0xb8))/0xa;if(_0x2bb55f===_0x326446)break;else _0x5b7b72['push'](_0x5b7b72['shift']());}catch(_0x47c5cf){_0x5b7b72['push'](_0x5b7b72['shift']());}}}(a165_0x39c3,0xd224e));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';function a165_0x456b(_0x42fd90,_0xfef36c){_0x42fd90=_0x42fd90-0xa0;const _0x39c321=a165_0x39c3();let _0x456bf6=_0x39c321[_0x42fd90];return _0x456bf6;}import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a165_0x12a03b}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';export function createPipelineEnv(_0x17c95e,_0xb9485b,_0x500412=[]){const _0x55d38a=a165_0x456b;return{'rawFlags':_0xb9485b,'args':_0x500412,'resolveAppCode':()=>_0x17c95e[_0x55d38a(0xa3)]||_0xb9485b[_0x55d38a(0xc1)]||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0x17c95e[_0x55d38a(0xa1)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a165_0x12a03b(_0xb9485b),'defaultFormat':_0x17c95e['format'],'defaultPageSize':_0x17c95e[_0x55d38a(0xaf)],'defaultVerbose':_0x17c95e[_0x55d38a(0xba)],'apiDir':_0x17c95e[_0x55d38a(0xb1)],'riskLevel':_0x17c95e[_0x55d38a(0xb9)],'selectedAppName':_0x17c95e['explicitAppName'],'mergedCli':{'defaultApp':_0x17c95e[_0x55d38a(0xa2)],'currentApp':_0x17c95e['currentApp'],'appCode':_0x17c95e[_0x55d38a(0xa3)],'apps':_0x17c95e['apps']}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a165_0x3e82e6(0xc0)](_0x24eb86=>PIPELINE_FLAG_NAMES[a165_0x3e82e6(0xb2)](_0x24eb86[a165_0x3e82e6(0xa9)]))[a165_0x3e82e6(0xbc)](({name:_0x199d56,type:_0x23f746,description:_0x37f99b})=>({'name':_0x199d56,'type':_0x23f746,'description':_0x37f99b})),'formatOutput':formatOutput,'getCommandLabel'(_0x1643c9){const _0x21ae64=a165_0x3e82e6;return CLI_BIN_NAME+'\x20'+_0x1643c9['service']+'\x20'+_0x1643c9[_0x21ae64(0xb7)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x286d4a){const _0xa7730=a165_0x3e82e6;return CliErrors[_0xa7730(0xa0)](_0x286d4a);}},async 'prepare'(_0x4aca61,_0x4779e3,_0x26ca8e,_0x50f7d8){const _0x5a5284=a165_0x3e82e6,_0x28fc69=_0x4779e3[_0x5a5284(0xb1)]||DEFAULT_API_DIR;resolveAliasToCode(_0x4aca61,_0x26ca8e,_0x28fc69,_0x50f7d8);let _0x467574='';if(_0x4aca61['requiresAuth']!==![]){_0x467574=_0x4779e3[_0x5a5284(0xa7)]();if(!_0x467574)throw CliErrors[_0x5a5284(0xae)]();const {setActiveCookie:_0x225f33}=await import(_0x5a5284(0xa6));_0x225f33(_0x467574);}const _0x13139f=_0x4779e3['resolveAppCode']()??'';if(_0x4aca61[_0x5a5284(0xbd)]!==![]){if(!_0x13139f)throw CliErrors[_0x5a5284(0xbf)](_0x5a5284(0xac)+CLI_BIN_NAME+_0x5a5284(0xa8));}return{'defaults':{'booleans':{'verbose':_0x4779e3[_0x5a5284(0xc2)]},'numbers':{'pagesize':_0x4779e3['defaultPageSize']}},'extras':{'appCode':_0x13139f,'cookie':_0x467574,'apiDomain':_0x4779e3[_0x5a5284(0xc3)](),'apiDir':_0x28fc69,'selectedAppName':_0x4779e3['selectedAppName'],'mergedCli':_0x4779e3[_0x5a5284(0xbe)]}};},async 'confirmHighRisk'({env:_0x11b68e,commandLabel:_0x4524eb}){const _0x594a8e=a165_0x3e82e6;if(_0x11b68e[_0x594a8e(0xb0)])throw CliErrors[_0x594a8e(0xa0)]('High-risk\x20operation\x20`'+_0x4524eb+_0x594a8e(0xaa));await requireConfirmationPrompt({'lines':['⚠\x20\x20High-risk\x20operation:\x20'+_0x4524eb,_0x594a8e(0xad)],'createCancelledError':_0xcfd77e=>CliErrors['cancelled'](_0xcfd77e)});},async 'finalize'(){const {clearActiveCookie:_0x587875}=await import('../core/api-client.js');_0x587875();}};function a165_0x39c3(){const _0x4ecc91=['map','requiresAppCode','mergedCli','configMissing','filter','appcode','defaultVerbose','resolveApiDomain','14738859upZFfJ','validation','cookie','defaultApp','appCode','8612128LEZfCp','531ThWAto','../core/api-client.js','resolveCookie','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','name','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','7ahXagw','Set\x20appcode\x20via\x20`','\x20\x20\x20Continue?\x20[y/N]\x20','authRequired','pageSize','isNonInteractive','apiDir','has','5bHtbXj','1290409bmhxeB','3114222XVjzyX','2390664sDtdlt','command','9284350ERfIBi','riskLevel','verbose','15964rRfaBm'];a165_0x39c3=function(){return _0x4ecc91;};return a165_0x39c3();}export async function runCommand(_0x396b23,_0x305685){await runCommandWithAdapter(_0x396b23,_0x305685,runnerAdapter);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x7ad8a3,_0x34467d){const _0x141efc=a166_0x553a,_0x10ca67=_0x7ad8a3();while(!![]){try{const _0x3c84c0=-parseInt(_0x141efc(0xf5))/0x1+parseInt(_0x141efc(0xf8))/0x2*(parseInt(_0x141efc(0xfd))/0x3)+parseInt(_0x141efc(0xfb))/0x4+parseInt(_0x141efc(0xfa))/0x5+-parseInt(_0x141efc(0xf9))/0x6+-parseInt(_0x141efc(0xf6))/0x7*(parseInt(_0x141efc(0xfe))/0x8)+-parseInt(_0x141efc(0xfc))/0x9;if(_0x3c84c0===_0x34467d)break;else _0x10ca67['push'](_0x10ca67['shift']());}catch(_0xbef601){_0x10ca67['push'](_0x10ca67['shift']());}}}(a166_0x4a0c,0x733fc));import{buildSchemaPayload as a166_0x21e3b8}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';function a166_0x553a(_0x4b7884,_0x587ad8){_0x4b7884=_0x4b7884-0xf5;const _0x4a0c98=a166_0x4a0c();let _0x553ad6=_0x4a0c98[_0x4b7884];return _0x553ad6;}function a166_0x4a0c(){const _0x56b13c=['18082JJSGiD','5048730BEZlcI','4598990AaTiOz','501700WCeppi','612675hpIiQL','219ElxsNi','1104xQnkjA','2638vUFpjc','16282gBkhfu','../commands/registry.js'];a166_0x4a0c=function(){return _0x56b13c;};return a166_0x4a0c();}export async function buildSchemaPayload(){const _0x3776a4=a166_0x553a,{serviceRegistry:_0x568b04,findDefinition:_0x5162a9}=await import(_0x3776a4(0xf7));return a166_0x21e3b8({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x568b04,'buildAllFlags':buildAllFlags,'findDefinition':_0x5162a9});}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2f0c6e,_0x2d4c2e){var _0x38441e=a167_0xe8f6,_0x386873=_0x2f0c6e();while(!![]){try{var _0x3ef3ce=parseInt(_0x38441e(0x1cc))/0x1+parseInt(_0x38441e(0x1c7))/0x2*(parseInt(_0x38441e(0x1c6))/0x3)+parseInt(_0x38441e(0x1c4))/0x4*(parseInt(_0x38441e(0x1ca))/0x5)+parseInt(_0x38441e(0x1cb))/0x6+-parseInt(_0x38441e(0x1c8))/0x7+parseInt(_0x38441e(0x1c9))/0x8+-parseInt(_0x38441e(0x1c5))/0x9;if(_0x3ef3ce===_0x2d4c2e)break;else _0x386873['push'](_0x386873['shift']());}catch(_0x9337ec){_0x386873['push'](_0x386873['shift']());}}}(a167_0x57e5,0x97aac));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a167_0xe8f6(_0x5c5482,_0x8d6ee){_0x5c5482=_0x5c5482-0x1c4;var _0x57e5a0=a167_0x57e5();var _0xe8f6=_0x57e5a0[_0x5c5482];return _0xe8f6;}function a167_0x57e5(){var _0x3c8e34=['57eQelNY','129636GOsibs','2493512LOkQVr','4151400GhPfNJ','1060090GVrHBs','5674650QvUxXj','1010852CdSSHa','4NolqIV','26475012TgNmqN'];a167_0x57e5=function(){return _0x3c8e34;};return a167_0x57e5();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a168_0x13a349=a168_0x22c3;(function(_0x5bd621,_0x3d8210){const _0x72b0b5=a168_0x22c3,_0x3e6d0f=_0x5bd621();while(!![]){try{const _0x13a6b5=-parseInt(_0x72b0b5(0x1a1))/0x1*(-parseInt(_0x72b0b5(0x19d))/0x2)+parseInt(_0x72b0b5(0x19c))/0x3+-parseInt(_0x72b0b5(0x1a2))/0x4*(-parseInt(_0x72b0b5(0x19f))/0x5)+parseInt(_0x72b0b5(0x1a3))/0x6*(-parseInt(_0x72b0b5(0x19b))/0x7)+parseInt(_0x72b0b5(0x1a6))/0x8+-parseInt(_0x72b0b5(0x199))/0x9*(parseInt(_0x72b0b5(0x1a0))/0xa)+-parseInt(_0x72b0b5(0x19a))/0xb;if(_0x13a6b5===_0x3d8210)break;else _0x3e6d0f['push'](_0x3e6d0f['shift']());}catch(_0x1a5e7c){_0x3e6d0f['push'](_0x3e6d0f['shift']());}}}(a168_0x12b7,0xccbfe));function a168_0x22c3(_0x5dfce5,_0x4e7142){_0x5dfce5=_0x5dfce5-0x199;const _0x12b712=a168_0x12b7();let _0x22c3c7=_0x12b712[_0x5dfce5];return _0x22c3c7;}export const VERSION='2.1.10-beta.1';export const GIT_TAG=a168_0x13a349(0x19e);function a168_0x12b7(){const _0x5091d3=['419118QvBcvu','6zWUFNn','v2.1.10-beta.1','5fdqRcY','1976440iheTQU','456725ElAPtr','6530012grXKYR','27942eKBgxy','2026-05-13T04:04:10.737Z','d2667c4','2453144SdqdZn','27EQnqQO','18657188MYVOSZ','483MmUfGc'];a168_0x12b7=function(){return _0x5091d3;};return a168_0x12b7();}export const GIT_COMMIT=a168_0x13a349(0x1a5);export const BUILD_TIME=a168_0x13a349(0x1a4);
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x181589,_0x5d5fb6){var _0x36ff07=a169_0x56e2,_0x4f1214=_0x181589();while(!![]){try{var _0x461ef6=parseInt(_0x36ff07(0x191))/0x1*(-parseInt(_0x36ff07(0x194))/0x2)+parseInt(_0x36ff07(0x196))/0x3+-parseInt(_0x36ff07(0x190))/0x4+-parseInt(_0x36ff07(0x197))/0x5+-parseInt(_0x36ff07(0x18d))/0x6+-parseInt(_0x36ff07(0x193))/0x7+parseInt(_0x36ff07(0x18f))/0x8;if(_0x461ef6===_0x5d5fb6)break;else _0x4f1214['push'](_0x4f1214['shift']());}catch(_0x5f41b4){_0x4f1214['push'](_0x4f1214['shift']());}}}(a169_0x5099,0xd991e));function a169_0x5099(){var _0x897caf=['\x20to\x20view\x20available\x20commands.','38815288oshCJQ','2326460ChiGmP','7061sCbfcO','green','7838089sNslRp','194JaiLAK','log','2732166DYlEGF','8487020gEdbeR','\x20--help','bold','4726824YyoWHx'];a169_0x5099=function(){return _0x897caf;};return a169_0x5099();}import a169_0x45fafb from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a169_0x56e2(_0xa6410c,_0x25c505){_0xa6410c=_0xa6410c-0x18b;var _0x509986=a169_0x5099();var _0x56e2f1=_0x509986[_0xa6410c];return _0x56e2f1;}export function showHelp(){var _0x51cc3c=a169_0x56e2;console[_0x51cc3c(0x195)](),console[_0x51cc3c(0x195)](a169_0x45fafb[_0x51cc3c(0x192)][_0x51cc3c(0x18c)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x51cc3c(0x195)](),console[_0x51cc3c(0x195)]('\x20\x20Use\x20'+a169_0x45fafb[_0x51cc3c(0x192)][_0x51cc3c(0x18c)](CLI_BIN_NAME+_0x51cc3c(0x18b))+_0x51cc3c(0x18e)),console[_0x51cc3c(0x195)]();}
|
package/lib/skills/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a170_0x4c32(_0x1028c3,_0x1b16f7){_0x1028c3=_0x1028c3-0x179;const _0xe5b803=a170_0xe5b8();let _0x4c3205=_0xe5b803[_0x1028c3];return _0x4c3205;}(function(_0x6733be,_0x401c0c){const _0x1c304e=a170_0x4c32,_0x5603f6=_0x6733be();while(!![]){try{const _0x169cd1=parseInt(_0x1c304e(0x181))/0x1*(-parseInt(_0x1c304e(0x17d))/0x2)+parseInt(_0x1c304e(0x194))/0x3+-parseInt(_0x1c304e(0x18e))/0x4+-parseInt(_0x1c304e(0x197))/0x5*(parseInt(_0x1c304e(0x17b))/0x6)+parseInt(_0x1c304e(0x193))/0x7+parseInt(_0x1c304e(0x195))/0x8*(-parseInt(_0x1c304e(0x179))/0x9)+parseInt(_0x1c304e(0x192))/0xa;if(_0x169cd1===_0x401c0c)break;else _0x5603f6['push'](_0x5603f6['shift']());}catch(_0x766d00){_0x5603f6['push'](_0x5603f6['shift']());}}}(a170_0xe5b8,0x2498d));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a170_0xe5b8(){const _0x4f675a=['32670AhLfGG','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','4HTsiXN','includes','from','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a','88471ffseSm','add','push','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','replace','\x20skill\x20--help\x0a\x20\x20','has','setLogPath','toLowerCase','-$1','dangerously-bff-save','skill','Error:\x20Unsupported\x20command:\x20','546180pnoZIU','log','(empty)','\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','3527990qvXxJk','1250249tuXYuo','788250qfgBks','72MBiEfB','error','255zdpvUr','argv','--help','length','53073OEfRYo','enable-bff-save'];a170_0xe5b8=function(){return _0x4f675a;};return a170_0xe5b8();}import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x106d99){const _0x25ba3a=a170_0x4c32,_0x101663=[];for(const [_0x824f18,_0x339a74]of Object['entries'](_0x106d99)){if(_0x339a74===!![]){const _0x576604=_0x824f18[_0x25ba3a(0x185)](/([A-Z])/g,_0x25ba3a(0x18a))[_0x25ba3a(0x189)]();_0x101663[_0x25ba3a(0x183)](_0x576604);}}return _0x101663;}export function parseDynamicFlags(){const _0x475576=a170_0x4c32,_0x36d6c9=[];for(let _0x17ad5e=0x3;_0x17ad5e<process[_0x475576(0x198)][_0x475576(0x19a)];_0x17ad5e++){const _0x5ce629=process[_0x475576(0x198)][_0x17ad5e];if(_0x5ce629&&_0x5ce629['startsWith']('--')){const _0x55a9d1=_0x5ce629['slice'](0x2);_0x55a9d1&&!_0x55a9d1[_0x475576(0x17e)]('=')&&_0x36d6c9[_0x475576(0x183)](_0x55a9d1);}}return _0x36d6c9;}export function getAllProvidedFlags(_0x4a5b46){const _0x452951=a170_0x4c32,_0x55e0ad=camelCaseFlagsToKebab(_0x4a5b46),_0xecde78=parseDynamicFlags(),_0x16b028=new Set([..._0x55e0ad,..._0xecde78]);return Array[_0x452951(0x17f)](_0x16b028);}export function normalizeLegacyBffSaveFlags(_0x28e715){const _0x1e802e=a170_0x4c32,_0x226b82=new Set(_0x28e715);return _0x226b82[_0x1e802e(0x187)](_0x1e802e(0x18b))&&_0x226b82[_0x1e802e(0x182)](_0x1e802e(0x17a)),Array[_0x1e802e(0x17f)](_0x226b82);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x13d594,_0x19c4e2,_0x1196f9){const _0x9f2256=a170_0x4c32;logger[_0x9f2256(0x188)](process['cwd']());if(_0x1196f9?.['help']||_0x13d594===_0x9f2256(0x199)){showHelp();return;}console['error'](_0x9f2256(0x18d)+(_0x13d594||_0x9f2256(0x190))),console[_0x9f2256(0x18f)]('\x0aAvailable\x20commands:'),console['log']('\x20\x20'+CLI_BIN_NAME+_0x9f2256(0x184)),console['log']('\x20\x20'+CLI_BIN_NAME+'\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a'),console[_0x9f2256(0x18f)](''),console[_0x9f2256(0x18f)]('Equivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE),logger[_0x9f2256(0x196)](_0x9f2256(0x18c),'不支持的命令:\x20'+_0x13d594),process['exit'](0x1);}function showHelp(){const _0xecebe=a170_0x4c32;console['log'](_0xecebe(0x191)+CLI_BIN_NAME+_0xecebe(0x186)+CLI_BIN_NAME+_0xecebe(0x17c)+SKILLS_INSTALL_COMMAND_LINE+_0xecebe(0x180));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a171_0x262660=a171_0xeba8;(function(_0x447952,_0x50366c){const _0x16d8d6=a171_0xeba8,_0x1118e4=_0x447952();while(!![]){try{const _0x443615=parseInt(_0x16d8d6(0x148))/0x1+parseInt(_0x16d8d6(0x14f))/0x2+-parseInt(_0x16d8d6(0x14b))/0x3+parseInt(_0x16d8d6(0x144))/0x4*(-parseInt(_0x16d8d6(0x143))/0x5)+parseInt(_0x16d8d6(0x13f))/0x6+-parseInt(_0x16d8d6(0x146))/0x7+-parseInt(_0x16d8d6(0x14a))/0x8;if(_0x443615===_0x50366c)break;else _0x1118e4['push'](_0x1118e4['shift']());}catch(_0x22d4cd){_0x1118e4['push'](_0x1118e4['shift']());}}}(a171_0x11ed,0xd1b23));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI='skills';export const NPX_SKILLS_SUBCOMMAND_ADD=a171_0x262660(0x14c);export const NPX_SKILLS_FLAG_SKILL=a171_0x262660(0x145);export const RABETBASE_SKILL_SOURCE=a171_0x262660(0x150);export const LEGACY_RABETBASE_SKILL_SOURCE=a171_0x262660(0x141);export const DEFAULT_RABETBASE_SKILL_NAME=a171_0x262660(0x158);export function buildNpxSkillsAddArgv(_0x2317c0){const _0xe35df1=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x2317c0&&_0xe35df1['push'](NPX_SKILLS_FLAG_SKILL,_0x2317c0),_0xe35df1;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a171_0x262660(0x15a),...buildNpxSkillsAddArgv()]['join']('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a171_0x262660(0x15a),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a171_0x262660(0x15b)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}function a171_0x11ed(){const _0x5d6897=['--skill','8201186EgLyBx','inherit','877018YEoYoT','pipe','5601152dqEcTX','1715598gKeDhG','add','status','stdout','3260738hkRzlY','lovrabet/rabetbase','exit\x20','stderr','toString','trim','remove','yes','log','Lovrabet','stdio','npx','join','9135894mHLYeV','skill','lovrabet/lovrabet-skill','unknown','77395aqyMvx','188bHUXsw'];a171_0x11ed=function(){return _0x5d6897;};return a171_0x11ed();}export function runNpxSkillsAdd(_0x19122d,_0x1276a1){const _0x133da2=a171_0x262660;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5969cf=_0x1276a1?.[_0x133da2(0x159)]??_0x133da2(0x147),_0x1fea4f=resolveNpmBin('npx'),_0x5dbffa=buildNpxSkillsAddArgv(_0x1276a1?.[_0x133da2(0x140)]),_0x272c8b=[_0x133da2(0x15a),..._0x5dbffa][_0x133da2(0x15b)]('\x20');console[_0x133da2(0x157)]('*\x20'+_0x272c8b);const _0x51d15e=spawnSync(_0x1fea4f,_0x5dbffa,{'cwd':_0x19122d,'stdio':_0x5969cf,'env':process.env,'shell':![]}),_0x8b7d20=_0x51d15e[_0x133da2(0x14d)];if(_0x8b7d20===0x0)return{'ok':!![],'status':0x0};let _0x534b2e=_0x133da2(0x151)+(_0x8b7d20??_0x133da2(0x142));if(_0x5969cf==='pipe'){const _0x503134=_0x51d15e['stderr']?_0x51d15e['stderr'][_0x133da2(0x153)]()['trim']():'',_0x4a7d86=_0x51d15e[_0x133da2(0x14e)]?_0x51d15e[_0x133da2(0x14e)][_0x133da2(0x153)]()[_0x133da2(0x154)]():'';if(_0x503134)_0x534b2e=_0x503134;else{if(_0x4a7d86)_0x534b2e=_0x4a7d86;}}return{'ok':![],'status':_0x8b7d20??null,'error':_0x534b2e};}export function runNpxSkillsRemove(_0x37a4fa,_0x470058,_0x21820a=LEGACY_RABETBASE_SKILL_SOURCE){const _0x31cf59=a171_0x262660;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x40681f=_0x470058?.['stdio']??_0x31cf59(0x147),_0x266bd5=resolveNpmBin(_0x31cf59(0x15a)),_0x58dab6=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x31cf59(0x155),_0x21820a,NPX_SKILLS_FLAG_SKILL,_0x470058?.[_0x31cf59(0x140)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x470058?.[_0x31cf59(0x156)]?['-y']:[]],_0x312d8d=[_0x266bd5,..._0x58dab6][_0x31cf59(0x15b)]('\x20');console['log']('*\x20'+_0x312d8d);const _0x3afe9a=spawnSync(_0x266bd5,_0x58dab6,{'cwd':_0x37a4fa,'stdio':_0x40681f,'env':process.env,'shell':![]}),_0x458e8d=_0x3afe9a['status'];if(_0x458e8d===0x0)return{'ok':!![],'status':0x0};let _0x3fe318=_0x31cf59(0x151)+(_0x458e8d??_0x31cf59(0x142));if(_0x40681f===_0x31cf59(0x149)){const _0xb598b7=_0x3afe9a['stderr']?_0x3afe9a['stderr']['toString']()['trim']():'',_0x3a1c67=_0x3afe9a[_0x31cf59(0x14e)]?_0x3afe9a[_0x31cf59(0x14e)][_0x31cf59(0x153)]()[_0x31cf59(0x154)]():'';if(_0xb598b7)_0x3fe318=_0xb598b7;else{if(_0x3a1c67)_0x3fe318=_0x3a1c67;}}return{'ok':![],'status':_0x458e8d??null,'error':_0x3fe318};}function a171_0xeba8(_0x25f1c0,_0x26b42b){_0x25f1c0=_0x25f1c0-0x13f;const _0x11ed6b=a171_0x11ed();let _0xeba8b6=_0x11ed6b[_0x25f1c0];return _0xeba8b6;}export function runNpxSkillsAddGlobal(_0x326ab5,_0x172ecb,_0x546eac){const _0x5879d0=a171_0x262660;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x45eed0=_0x546eac?.[_0x5879d0(0x159)]??_0x5879d0(0x147),_0x4a029d=resolveNpmBin(_0x5879d0(0x15a)),_0x7e2673=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x172ecb,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x3a8aa1=['npx',NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x172ecb,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x5879d0(0x15b)]('\x20');console[_0x5879d0(0x157)]('*\x20'+_0x3a8aa1);const _0x1df31e=spawnSync(_0x4a029d,_0x7e2673,{'cwd':_0x326ab5,'stdio':_0x45eed0,'env':process.env,'shell':![]}),_0xf065f0=_0x1df31e[_0x5879d0(0x14d)];if(_0xf065f0===0x0)return{'ok':!![],'status':0x0};let _0xfe5258=_0x5879d0(0x151)+(_0xf065f0??_0x5879d0(0x142));if(_0x45eed0===_0x5879d0(0x149)){const _0xd1f13b=_0x1df31e[_0x5879d0(0x152)]?_0x1df31e['stderr'][_0x5879d0(0x153)]()[_0x5879d0(0x154)]():'',_0x502d6f=_0x1df31e['stdout']?_0x1df31e[_0x5879d0(0x14e)][_0x5879d0(0x153)]()[_0x5879d0(0x154)]():'';if(_0xd1f13b)_0xfe5258=_0xd1f13b;else{if(_0x502d6f)_0xfe5258=_0x502d6f;}}return{'ok':![],'status':_0xf065f0??null,'error':_0xfe5258};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a172_0x1f8b(_0x4e9480,_0x589641){_0x4e9480=_0x4e9480-0x187;const _0x3067e8=a172_0x3067();let _0x1f8b5b=_0x3067e8[_0x4e9480];return _0x1f8b5b;}(function(_0x4cd653,_0x596846){const _0xd06122=a172_0x1f8b,_0x3ecf46=_0x4cd653();while(!![]){try{const _0x2aa4b7=-parseInt(_0xd06122(0x18b))/0x1*(parseInt(_0xd06122(0x189))/0x2)+-parseInt(_0xd06122(0x194))/0x3*(parseInt(_0xd06122(0x18a))/0x4)+-parseInt(_0xd06122(0x18f))/0x5+-parseInt(_0xd06122(0x190))/0x6*(-parseInt(_0xd06122(0x187))/0x7)+-parseInt(_0xd06122(0x196))/0x8*(parseInt(_0xd06122(0x193))/0x9)+parseInt(_0xd06122(0x195))/0xa+parseInt(_0xd06122(0x188))/0xb;if(_0x2aa4b7===_0x596846)break;else _0x3ecf46['push'](_0x3ecf46['shift']());}catch(_0x1fcfd5){_0x3ecf46['push'](_0x3ecf46['shift']());}}}(a172_0x3067,0x58e61));import{sendCliTraceLog}from'../telemetry/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 isSensitiveKey(_0x59d440){return SENSITIVE_PATTERNS['some'](_0x4ba64f=>_0x4ba64f['test'](_0x59d440));}function a172_0x3067(){const _0x5192c5=['service','2183820JaEQNL','2927946teifrt','flags','entries','768114vSoQFT','91551GjmwvQ','3442960lOeJlN','32nnxDhs','durationMs','7OokVgv','14317314PkAwbi','640420FGloBf','88mlvYil','1VsQhkV','command','error'];a172_0x3067=function(){return _0x5192c5;};return a172_0x3067();}function sanitizeFlags(_0x16a0ec){const _0x5969ac=a172_0x1f8b,_0x47b745={};for(const [_0x4773f3,_0x21a9f7]of Object[_0x5969ac(0x192)](_0x16a0ec)){isSensitiveKey(_0x4773f3)?_0x47b745[_0x4773f3]=_0x21a9f7!=null&&_0x21a9f7!==''?'[REDACTED]':_0x21a9f7:_0x47b745[_0x4773f3]=_0x21a9f7;}return _0x47b745;}export async function reportCommandTrace(_0x191e88){const _0x424eff=a172_0x1f8b;try{const _0x113317=sanitizeFlags(_0x191e88[_0x424eff(0x191)]);await sendCliTraceLog({'spanName':'rabetbase.command','logData':{'command.cli_version':getCliVersion(),'command.service':_0x191e88[_0x424eff(0x18e)],'command.name':_0x191e88[_0x424eff(0x18c)],'command.flags':JSON['stringify'](_0x113317),..._0x191e88[_0x424eff(0x197)]!=null?{'command.duration_ms':_0x191e88[_0x424eff(0x197)]}:{},..._0x191e88['error']?{'command.error':_0x191e88[_0x424eff(0x18d)]instanceof Error?_0x191e88[_0x424eff(0x18d)]['message']:String(_0x191e88['error'])}:{}}});}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x371332,_0x10c7db){var _0x319c30=a173_0x4c50,_0x3061f5=_0x371332();while(!![]){try{var _0x4dd6d9=parseInt(_0x319c30(0x153))/0x1*(parseInt(_0x319c30(0x159))/0x2)+-parseInt(_0x319c30(0x152))/0x3+-parseInt(_0x319c30(0x15a))/0x4+parseInt(_0x319c30(0x157))/0x5+-parseInt(_0x319c30(0x150))/0x6+parseInt(_0x319c30(0x158))/0x7*(-parseInt(_0x319c30(0x14f))/0x8)+-parseInt(_0x319c30(0x151))/0x9*(-parseInt(_0x319c30(0x156))/0xa);if(_0x4dd6d9===_0x10c7db)break;else _0x3061f5['push'](_0x3061f5['shift']());}catch(_0x2f1552){_0x3061f5['push'](_0x3061f5['shift']());}}}(a173_0x5c90,0x7c94e));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a173_0x4c50(_0x432bc2,_0x549049){_0x432bc2=_0x432bc2-0x14e;var _0x5c90ed=a173_0x5c90();var _0x4c504a=_0x5c90ed[_0x432bc2];return _0x4c504a;}function a173_0x5c90(){var _0x4acd33=['50tZBLfd','402620TJVkhV','7lVpqns','280806jGJess','224964ZLwAPP','Failed\x20to\x20report\x20CLI\x20help\x20trace:','5130416jjtHOP','5441172fNvGOk','3193479GHemaa','62382EUMakL','2JnKRir','cli.help','error'];a173_0x5c90=function(){return _0x4acd33;};return a173_0x5c90();}export async function reportCliHelpTrace(_0x1b8910,_0x3fb1e1){var _0x18c653=a173_0x4c50;try{await sendCliTraceLog({'spanName':_0x18c653(0x154),'logData':{'rabetbase.help.kind':_0x1b8910,..._0x3fb1e1?.['service']&&{'rabetbase.help.service':_0x3fb1e1['service']}}});}catch(_0x3117a9){console[_0x18c653(0x155)](_0x18c653(0x14e),_0x3117a9);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3dd790,_0x385242){const _0x2b0ba6=a174_0x3a84,_0x900ffc=_0x3dd790();while(!![]){try{const _0xd467f3=-parseInt(_0x2b0ba6(0x12c))/0x1+parseInt(_0x2b0ba6(0x129))/0x2+parseInt(_0x2b0ba6(0x126))/0x3*(parseInt(_0x2b0ba6(0x131))/0x4)+-parseInt(_0x2b0ba6(0x12f))/0x5+parseInt(_0x2b0ba6(0x12b))/0x6+parseInt(_0x2b0ba6(0x12d))/0x7*(-parseInt(_0x2b0ba6(0x12e))/0x8)+parseInt(_0x2b0ba6(0x133))/0x9;if(_0xd467f3===_0x385242)break;else _0x900ffc['push'](_0x900ffc['shift']());}catch(_0x1e411a){_0x900ffc['push'](_0x900ffc['shift']());}}}(a174_0x2299,0xb8d96));import a174_0x361ffc from'node:os';import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';function a174_0x2299(){const _0x29ecbe=['production','4670346XkAVEB','966880fXAJKG','12019phlGzJ','2056GvBCcG','2876375vslUBK','rabetbase-cli','20nyCLTA','nickname','1475946fJLWeJ','userInfo','daily','345693bbEjHg','user','username','2444052WkMhzz'];a174_0x2299=function(){return _0x29ecbe;};return a174_0x2299();}import{setTraceConfig,getOtelLoggerVersion}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';let cliOtelTraceInitialized=![];function a174_0x3a84(_0x5c54cf,_0x5c3941){_0x5c54cf=_0x5c54cf-0x126;const _0x22995b=a174_0x2299();let _0x3a8474=_0x22995b[_0x5c54cf];return _0x3a8474;}export async function ensureCliOtelTraceConfig(){const _0x4f8756=a174_0x3a84,_0x26d3e8=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x3ffc8c=_0x26d3e8?.[_0x4f8756(0x127)];setTraceConfig({'otelLoggerVersion':getOtelLoggerVersion(),'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!=='unknown'?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x4f8756(0x135):_0x4f8756(0x12a)),'username':_0x3ffc8c?.[_0x4f8756(0x128)]??a174_0x361ffc[_0x4f8756(0x134)]()[_0x4f8756(0x128)]??_0x4f8756(0x130),..._0x3ffc8c&&{'nickname':_0x3ffc8c[_0x4f8756(0x132)]}}),cliOtelTraceInitialized=!![];}return _0x26d3e8;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1cdd5e,_0x5d67ed){const _0x492362=a175_0x2426,_0x573a62=_0x1cdd5e();while(!![]){try{const _0x5d40d2=parseInt(_0x492362(0xa7))/0x1+-parseInt(_0x492362(0xa4))/0x2*(-parseInt(_0x492362(0x9c))/0x3)+parseInt(_0x492362(0xa3))/0x4*(parseInt(_0x492362(0xa1))/0x5)+-parseInt(_0x492362(0xa8))/0x6+parseInt(_0x492362(0x9b))/0x7+-parseInt(_0x492362(0xa9))/0x8*(parseInt(_0x492362(0x9a))/0x9)+-parseInt(_0x492362(0xa0))/0xa;if(_0x5d40d2===_0x5d67ed)break;else _0x573a62['push'](_0x573a62['shift']());}catch(_0x28dfb1){_0x573a62['push'](_0x573a62['shift']());}}}(a175_0x56b9,0x25061));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;function a175_0x56b9(){const _0x3114e5=['SIGINT','3024GomAUe','74iyhzaz','SIGTERM','beforeExit','283855YWpzmX','1700850bQFkMS','568PrwbOF','27990GwVGhj','1745506IjOzLo','4194vkvQOc','then','exit','once','393810OaqAjv','730ypXPiz'];a175_0x56b9=function(){return _0x3114e5;};return a175_0x56b9();}export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}function a175_0x2426(_0x3d6a83,_0x562e15){_0x3d6a83=_0x3d6a83-0x9a;const _0x56b974=a175_0x56b9();let _0x24261f=_0x56b974[_0x3d6a83];return _0x24261f;}export function registerOtelShutdownOnExit(){const _0x4d8318=a175_0x2426;process['once'](_0x4d8318(0xa6),()=>{void flushOtelNodeIfUsed();});const _0x25011b=()=>{const _0x553ccb=_0x4d8318;void flushOtelNodeIfUsed()[_0x553ccb(0x9d)](()=>process['exit'](0x0));};process['once'](_0x4d8318(0xa2),_0x25011b),process[_0x4d8318(0x9f)](_0x4d8318(0xa5),_0x25011b);}export async function exitWithOtelShutdown(_0x4c3e52){const _0x3210fc=a175_0x2426;await flushOtelNodeIfUsed(),process[_0x3210fc(0x9e)](_0x4c3e52);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xb9f2a2,_0x14b76c){const _0x11c133=a176_0x4307,_0xcbc8e9=_0xb9f2a2();while(!![]){try{const _0x31e705=parseInt(_0x11c133(0xd1))/0x1*(-parseInt(_0x11c133(0xd0))/0x2)+parseInt(_0x11c133(0xcc))/0x3*(-parseInt(_0x11c133(0xcf))/0x4)+parseInt(_0x11c133(0xd7))/0x5+parseInt(_0x11c133(0xd2))/0x6*(parseInt(_0x11c133(0xcb))/0x7)+parseInt(_0x11c133(0xcd))/0x8*(-parseInt(_0x11c133(0xd8))/0x9)+-parseInt(_0x11c133(0xd3))/0xa*(-parseInt(_0x11c133(0xd4))/0xb)+-parseInt(_0x11c133(0xd6))/0xc;if(_0x31e705===_0x14b76c)break;else _0xcbc8e9['push'](_0xcbc8e9['shift']());}catch(_0xc88bc7){_0xcbc8e9['push'](_0xcbc8e9['shift']());}}}(a176_0x865d,0xe7c36));function a176_0x865d(){const _0x20210b=['60zTOmXh','2905592RvOcXO','spanName','324172ZbBHcg','285372xqlhKs','8tNzVIl','190758AOJeBi','2900180DnqTmr','66kCOyeN','traceparent','1485252pXTjAn','7046715sItPHj','9TklQkr','traceName','logData','231lQbhaF'];a176_0x865d=function(){return _0x20210b;};return a176_0x865d();}import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME='rabetbase-cli';function a176_0x4307(_0x245600,_0x196e14){_0x245600=_0x245600-0xca;const _0x865dcf=a176_0x865d();let _0x43074b=_0x865dcf[_0x245600];return _0x43074b;}export async function sendCliTraceLog(_0x3114a9){const _0xabb7b4=a176_0x4307;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x3114a9[_0xabb7b4(0xd9)]??DEFAULT_TRACE_NAME,'version':_0x3114a9['version']??getCliVersion(),'spanName':_0x3114a9[_0xabb7b4(0xce)],'eventType':'manual','logData':_0x3114a9[_0xabb7b4(0xca)],..._0x3114a9['traceparent']&&{'traceparent':_0x3114a9[_0xabb7b4(0xd5)]}});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a177_0x19afbb=a177_0x4a1c;function a177_0x3706(){const _0x350751=['31611TUksXN','106IDPmGD','133227LaoQCW','139272lGPdky','869435zZYKgY','1190936csmDml','issue.log.collect','135234VLGPbB','47556OxPSlm','platform-issue-log-collect','20xPltBF','610uuDdmg'];a177_0x3706=function(){return _0x350751;};return a177_0x3706();}(function(_0xcee733,_0x5a470e){const _0x336820=a177_0x4a1c,_0x3394d1=_0xcee733();while(!![]){try{const _0x1f6c59=-parseInt(_0x336820(0x19e))/0x1+parseInt(_0x336820(0x19d))/0x2*(-parseInt(_0x336820(0x19c))/0x3)+parseInt(_0x336820(0x19f))/0x4*(parseInt(_0x336820(0x19a))/0x5)+parseInt(_0x336820(0x198))/0x6+-parseInt(_0x336820(0x1a0))/0x7+parseInt(_0x336820(0x1a1))/0x8+-parseInt(_0x336820(0x1a3))/0x9*(-parseInt(_0x336820(0x19b))/0xa);if(_0x1f6c59===_0x5a470e)break;else _0x3394d1['push'](_0x3394d1['shift']());}catch(_0x369944){_0x3394d1['push'](_0x3394d1['shift']());}}}(a177_0x3706,0x60dd6));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a177_0x19afbb(0x199);function a177_0x4a1c(_0x43fe94,_0x43df99){_0x43fe94=_0x43fe94-0x198;const _0x3706cc=a177_0x3706();let _0x4a1c39=_0x3706cc[_0x43fe94];return _0x4a1c39;}export const PLATFORM_ISSUE_SPAN_NAME=a177_0x19afbb(0x1a2);export async function sendPlatformIssueCollectLog(_0xd7b54d){await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0xd7b54d['title'],'issue.description':_0xd7b54d['description']}});}
|
package/lib/utils/ai_config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a179_0xb9d176=a179_0x279c;(function(_0x3a9092,_0x15d461){const _0x2a5df5=a179_0x279c,_0x1384b9=_0x3a9092();while(!![]){try{const _0x39e1c1=parseInt(_0x2a5df5(0x8a))/0x1+parseInt(_0x2a5df5(0x79))/0x2*(-parseInt(_0x2a5df5(0xab))/0x3)+-parseInt(_0x2a5df5(0x9f))/0x4*(parseInt(_0x2a5df5(0xa7))/0x5)+-parseInt(_0x2a5df5(0x7e))/0x6*(-parseInt(_0x2a5df5(0x7c))/0x7)+-parseInt(_0x2a5df5(0x7a))/0x8*(parseInt(_0x2a5df5(0xb0))/0x9)+parseInt(_0x2a5df5(0x85))/0xa*(parseInt(_0x2a5df5(0x83))/0xb)+-parseInt(_0x2a5df5(0x80))/0xc;if(_0x39e1c1===_0x15d461)break;else _0x1384b9['push'](_0x1384b9['shift']());}catch(_0x7dd72c){_0x1384b9['push'](_0x1384b9['shift']());}}}(a179_0x2595,0x68d7f));export const CORE_IDE_CONFIGS={'cursor':{'name':a179_0xb9d176(0xa4),'description':a179_0xb9d176(0x7d),'folders':['.cursorrules',a179_0xb9d176(0xa6)],'files':[{'type':a179_0xb9d176(0x90),'path':a179_0xb9d176(0xb1),'template':a179_0xb9d176(0xa9)}]},'windsurf':{'name':a179_0xb9d176(0xa5),'description':a179_0xb9d176(0x96),'folders':['.windsurf'],'files':[{'type':'file','path':a179_0xb9d176(0xaa),'template':a179_0xb9d176(0xa9)}]},'claude':{'name':a179_0xb9d176(0x7f),'description':a179_0xb9d176(0x7f),'folders':['.claude'],'files':[{'type':a179_0xb9d176(0x90),'path':'.claude/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]},'cline':{'name':a179_0xb9d176(0x95),'description':a179_0xb9d176(0x8c),'folders':[a179_0xb9d176(0x92)],'files':[{'type':'file','path':a179_0xb9d176(0xa8),'template':'SKILL.md.tpl'}]},'codex':{'name':a179_0xb9d176(0xae),'description':'Codex\x20IDE','folders':[a179_0xb9d176(0x84)],'files':[{'type':a179_0xb9d176(0x90),'path':a179_0xb9d176(0x87),'template':a179_0xb9d176(0xa9)}]},'opencode':{'name':a179_0xb9d176(0xac),'description':a179_0xb9d176(0x86),'folders':[a179_0xb9d176(0x82)],'files':[{'type':a179_0xb9d176(0x90),'path':a179_0xb9d176(0x8e),'template':a179_0xb9d176(0xa9)}]},'qoder':{'name':a179_0xb9d176(0xa1),'description':a179_0xb9d176(0x8b),'folders':['.qoder'],'files':[{'type':a179_0xb9d176(0x90),'path':'.qoder/rules/rabetbase.md','template':a179_0xb9d176(0xa9)},{'type':a179_0xb9d176(0x90),'path':'.qoder/skills/lovrabet/SKILL.md','template':a179_0xb9d176(0xa9)}]},'codebuddy':{'name':a179_0xb9d176(0x93),'description':'CodeBuddy\x20IDE','folders':[a179_0xb9d176(0x98)],'files':[{'type':a179_0xb9d176(0x90),'path':a179_0xb9d176(0x9b),'template':a179_0xb9d176(0xa9)}]},'trae':{'name':a179_0xb9d176(0xa0),'description':'Trae\x20IDE','folders':[a179_0xb9d176(0x9a)],'files':[{'type':a179_0xb9d176(0x90),'path':a179_0xb9d176(0xaf),'template':a179_0xb9d176(0xa9)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a179_0xb9d176(0xa3),'description':a179_0xb9d176(0x9d),'folders':[a179_0xb9d176(0x91)],'files':[{'type':'file','path':a179_0xb9d176(0x9c),'template':a179_0xb9d176(0xa9)}]},'antigravity':{'name':a179_0xb9d176(0x97),'description':a179_0xb9d176(0xa2),'folders':['.agent'],'files':[{'type':a179_0xb9d176(0x90),'path':'.agent/skills/lovrabet/SKILL.md','template':a179_0xb9d176(0xa9)}]}};function a179_0x279c(_0x3d8a20,_0x4e28e){_0x3d8a20=_0x3d8a20-0x79;const _0x259588=a179_0x2595();let _0x279cac=_0x259588[_0x3d8a20];return _0x279cac;}export const CORE_IDE_LIST=['claude','cline',a179_0xb9d176(0xad),a179_0xb9d176(0x89),a179_0xb9d176(0x8d),a179_0xb9d176(0x8f),'qoder',a179_0xb9d176(0x88),a179_0xb9d176(0x99)];function a179_0x2595(){const _0x15cf97=['Qoder\x20IDE','Cline\x20IDE','cursor','.opencode/skills/lovrabet/SKILL.md','opencode','file','.agent','.cline','CodeBuddy','agent','Cline','Windsurf\x20IDE','Antigravity','.codebuddy','windsurf','.trae','.codebuddy/skills/lovrabet/SKILL.md','.agent/skills/lovrabet/SKILL.md','通用模板\x20-\x20兜底方案','qoder','325320wePinn','Trae','Qoder','Antigravity\x20IDE','其他\x20(通用模板)','Cursor','Windsurf','.cursor','25djNxCX','.cline/skills/lovrabet/SKILL.md','SKILL.md.tpl','.windsurf/workflows/rabetbase.md','11253LFtQwo','OpenCode','codebuddy','Codex','.trae/skills/lovrabet/SKILL.md','945nyNDWe','.cursor/skills/rabetbase.md','182utBpyq','22792tnYsTj','claude','454608LJGItU','Cursor\x20IDE','42IstJXU','Claude\x20Code','3121860qAAgFA','antigravity','.opencode','862411jvGLhj','.codex','80XJdntT','OpenCode\x20IDE','.codex/skills/lovrabet/SKILL.md','trae','codex','654914lSHYlR'];a179_0x2595=function(){return _0x15cf97;};return a179_0x2595();}export const IDE_LIST=[a179_0xb9d176(0x81),a179_0xb9d176(0x7b),'cline','codebuddy',a179_0xb9d176(0x89),a179_0xb9d176(0x8d),'opencode',a179_0xb9d176(0x9e),'trae',a179_0xb9d176(0x99),a179_0xb9d176(0x94)];export const ALL_CORE_IDES=[a179_0xb9d176(0x8d),'windsurf',a179_0xb9d176(0x7b),'cline',a179_0xb9d176(0x89),a179_0xb9d176(0x8f),'qoder',a179_0xb9d176(0xad),'trae'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4ea075,_0x2f01da){const _0x4624cb=a180_0xcec5,_0x8a3074=_0x4ea075();while(!![]){try{const _0x4338ed=-parseInt(_0x4624cb(0x15f))/0x1+-parseInt(_0x4624cb(0x161))/0x2*(parseInt(_0x4624cb(0x160))/0x3)+parseInt(_0x4624cb(0x15d))/0x4+parseInt(_0x4624cb(0x162))/0x5+parseInt(_0x4624cb(0x163))/0x6+parseInt(_0x4624cb(0x15e))/0x7*(parseInt(_0x4624cb(0x165))/0x8)+-parseInt(_0x4624cb(0x164))/0x9;if(_0x4338ed===_0x2f01da)break;else _0x8a3074['push'](_0x8a3074['shift']());}catch(_0x5a985d){_0x8a3074['push'](_0x8a3074['shift']());}}}(a180_0x3646,0xeabdb));function a180_0x3646(){const _0x28abd9=['6398550BBgygL','39328XuRMix','3850516utMwwb','1603zPKBeK','1044284dsyAdQ','6EdlfAE','325118sRdWjh','3442425ewYFKd','1589838VeqiUe'];a180_0x3646=function(){return _0x28abd9;};return a180_0x3646();}function a180_0xcec5(_0x14ec7a,_0xe595fd){_0x14ec7a=_0x14ec7a-0x15d;const _0x36463e=a180_0x3646();let _0xcec5f0=_0x36463e[_0x14ec7a];return _0xcec5f0;}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
|