@lovrabet/rabetbase-cli 2.1.1 → 2.1.2-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 -0
- 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 -0
- 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 -0
- 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/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/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/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 -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/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/save.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/config/schema.js +1 -0
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -0
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -0
- package/lib/constant/paths.js +1 -1
- package/lib/constant/risk.js +1 -0
- 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/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 -0
- 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/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/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/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +3 -2
- package/lib/commands/api/doc.js +0 -1
- package/lib/commands/app/remote.js +0 -1
package/lib/core/bff/lock.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x128f2e,_0x31fb2b){const _0x54c005=a117_0xdf08,_0x1c990a=_0x128f2e();while(!![]){try{const _0x2fe453=-parseInt(_0x54c005(0x162))/0x1*(-parseInt(_0x54c005(0x14d))/0x2)+-parseInt(_0x54c005(0x14f))/0x3+-parseInt(_0x54c005(0x152))/0x4*(parseInt(_0x54c005(0x159))/0x5)+parseInt(_0x54c005(0x14c))/0x6+parseInt(_0x54c005(0x15e))/0x7*(parseInt(_0x54c005(0x14b))/0x8)+-parseInt(_0x54c005(0x160))/0x9*(parseInt(_0x54c005(0x161))/0xa)+parseInt(_0x54c005(0x155))/0xb;if(_0x2fe453===_0x31fb2b)break;else _0x1c990a['push'](_0x1c990a['shift']());}catch(_0x1c3ea8){_0x1c990a['push'](_0x1c990a['shift']());}}}(a117_0x175f,0x395df));function a117_0xdf08(_0x31a1b4,_0x23c5d1){_0x31a1b4=_0x31a1b4-0x14b;const _0x175f48=a117_0x175f();let _0xdf08cb=_0x175f48[_0x31a1b4];return _0xdf08cb;}function a117_0x175f(){const _0x2830f6=['8KGHrKG','313770FnLJhH','120ubtDYX',':\x20scriptsRoot\x20mismatch\x20—\x20','815586hFpQHF','functions','utf8','597768foisWs','Failed\x20to\x20read\x20BFF\x20lock\x20file:\x20','Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','10082435uoomjc','apps','current\x20\x22','code','15QIPKVR','scriptsRoot','stringify','lastSync','object','1286173AwwYSb','parse','18Aeurfn','1163380QgVaws','587ibGtYH'];a117_0x175f=function(){return _0x2830f6;};return a117_0x175f();}import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyBffLock(){return{'apps':{}};}export function ensureLockScope(_0x43cfdc,_0x5a3d45,_0x538b2d,_0x4716c3){const _0x15e4a3=a117_0xdf08,_0x47d20a={'apps':_0x43cfdc[_0x15e4a3(0x156)]&&typeof _0x43cfdc[_0x15e4a3(0x156)]===_0x15e4a3(0x15d)?_0x43cfdc[_0x15e4a3(0x156)]:{}};let _0x58d05b=_0x47d20a['apps'][_0x5a3d45];if(!_0x58d05b)return _0x58d05b={'scriptsRoot':_0x538b2d,'lastSync':'','functions':{}},_0x47d20a[_0x15e4a3(0x156)][_0x5a3d45]=_0x58d05b,{'lockData':_0x47d20a,'appLock':_0x58d05b};if(!_0x58d05b['scriptsRoot'])_0x58d05b[_0x15e4a3(0x15a)]=_0x538b2d;else{if(_0x58d05b[_0x15e4a3(0x15a)]!==_0x538b2d)throw new Error(_0x4716c3+_0x15e4a3(0x14e)+(_0x15e4a3(0x157)+_0x538b2d+'\x22\x20vs\x20lock\x20\x22'+_0x58d05b['scriptsRoot']+'\x22.\x20')+_0x15e4a3(0x154));}return!_0x58d05b[_0x15e4a3(0x150)]&&(_0x58d05b[_0x15e4a3(0x150)]={}),!_0x58d05b['lastSync']&&(_0x58d05b[_0x15e4a3(0x15c)]=''),{'lockData':_0x47d20a,'appLock':_0x58d05b};}export async function readBffLockFile(_0x55678a){const _0x19a4db=a117_0xdf08;try{const _0x55a015=await readFile(_0x55678a,_0x19a4db(0x151)),_0x9b8a8f=JSON[_0x19a4db(0x15f)](_0x55a015);return{'apps':_0x9b8a8f[_0x19a4db(0x156)]&&typeof _0x9b8a8f[_0x19a4db(0x156)]==='object'?_0x9b8a8f[_0x19a4db(0x156)]:{}};}catch(_0x3770fc){if(_0x3770fc[_0x19a4db(0x158)]==='ENOENT')return null;throw new Error(_0x19a4db(0x153)+String(_0x3770fc));}}export async function writeBffLockFile(_0x4c2ced,_0x394e60){const _0x282a67=a117_0xdf08;await mkdir(dirname(_0x4c2ced),{'recursive':!![]}),await writeFile(_0x4c2ced,JSON[_0x282a67(0x15b)](_0x394e60,null,0x2),_0x282a67(0x151));}
|
package/lib/core/bff/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3fb7b3,_0x580a72){const _0x2c53cc=a119_0x2b17,_0x528bc3=_0x3fb7b3();while(!![]){try{const _0xc093e=-parseInt(_0x2c53cc(0xdd))/0x1*(parseInt(_0x2c53cc(0xd7))/0x2)+-parseInt(_0x2c53cc(0xdf))/0x3+parseInt(_0x2c53cc(0xe4))/0x4+-parseInt(_0x2c53cc(0xe7))/0x5+parseInt(_0x2c53cc(0xe2))/0x6*(-parseInt(_0x2c53cc(0xe0))/0x7)+parseInt(_0x2c53cc(0xe3))/0x8*(parseInt(_0x2c53cc(0xe6))/0x9)+parseInt(_0x2c53cc(0xd3))/0xa;if(_0xc093e===_0x580a72)break;else _0x528bc3['push'](_0x528bc3['shift']());}catch(_0x479ff0){_0x528bc3['push'](_0x528bc3['shift']());}}}(a119_0x27ae,0x8d2af));export function snakeToCamel(_0x4ce7b0){const _0x4c1438=a119_0x2b17;return _0x4ce7b0[_0x4c1438(0xde)]()[_0x4c1438(0xd5)](/_([a-z])/g,(_0x9538a9,_0x5a42fe)=>_0x5a42fe[_0x4c1438(0xd4)]());}function a119_0x2b17(_0x3a9de9,_0x3f7009){_0x3a9de9=_0x3a9de9-0xd2;const _0x27ae8c=a119_0x27ae();let _0x2b1751=_0x27ae8c[_0x3a9de9];return _0x2b1751;}export function findHookLocationByRemoteId(_0x5affac,_0x492708){const _0x27ba64=a119_0x2b17;if(!_0x492708)return undefined;for(const _0x4ea534 of Object['values'](_0x5affac)){if(_0x4ea534[_0x27ba64(0xd9)]===_0x492708&&_0x4ea534[_0x27ba64(0xe1)]&&_0x4ea534['operationType']&&_0x4ea534[_0x27ba64(0xda)])return{'datasetCode':_0x4ea534[_0x27ba64(0xe1)],'operationType':_0x4ea534[_0x27ba64(0xd6)],'functionNode':_0x4ea534[_0x27ba64(0xda)]};}return undefined;}function a119_0x27ae(){const _0x219418=['operationType','6mxMMEM','match','remoteId','functionNode','trim','before','327983EGUqqN','toLowerCase','591471GOfhfI','797083YwJZnt','datasetCode','6ZQZLSh','5963464CTrdoP','3146780FwcbIE','test','9zVjvsB','2293885JeJWZH','after','7998470BmsHLe','toUpperCase','replace'];a119_0x27ae=function(){return _0x219418;};return a119_0x27ae();}export function extractScriptDescription(_0xda9769){const _0x17cadc=a119_0x2b17,_0x6bcf1e=_0xda9769[_0x17cadc(0xd8)](/\[\s*脚本描述\s*]\s*(.+)/);return _0x6bcf1e?.[0x1]?.[_0x17cadc(0xdb)]()||undefined;}export function isValidBffFunctionName(_0x24fb9d){const _0xe749fa=a119_0x2b17;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0xe749fa(0xe5)](_0x24fb9d);}export function normalizeHookFunctionNode(_0x4d42ce){const _0x412f00=a119_0x2b17;if(!_0x4d42ce)return undefined;const _0x5baa6d=_0x4d42ce['trim']()[_0x412f00(0xde)]();if(_0x5baa6d===_0x412f00(0xdc)||_0x5baa6d===_0x412f00(0xd2))return _0x5baa6d;return undefined;}
|
package/lib/core/db-resolver.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x176699,_0x4a0dda){const _0x48b513=a120_0x1287,_0x3cf82d=_0x176699();while(!![]){try{const _0x119ecd=-parseInt(_0x48b513(0x128))/0x1+parseInt(_0x48b513(0x13a))/0x2*(parseInt(_0x48b513(0x122))/0x3)+parseInt(_0x48b513(0x12e))/0x4+parseInt(_0x48b513(0x126))/0x5*(-parseInt(_0x48b513(0x127))/0x6)+parseInt(_0x48b513(0x11f))/0x7*(parseInt(_0x48b513(0x130))/0x8)+-parseInt(_0x48b513(0x138))/0x9+parseInt(_0x48b513(0x129))/0xa;if(_0x119ecd===_0x4a0dda)break;else _0x3cf82d['push'](_0x3cf82d['shift']());}catch(_0x4a316b){_0x3cf82d['push'](_0x3cf82d['shift']());}}}(a120_0x4870,0x67a25));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x28928c){const _0x1b1b1c=a120_0x1287;if(cache['has'](_0x28928c))return cache[_0x1b1b1c(0x123)](_0x28928c);const _0x27019e=await listDatasets(_0x28928c),_0x3bcdc8=new Map();for(const _0x27cd83 of _0x27019e){const _0x1dce42=_0x27cd83[_0x1b1b1c(0x134)];_0x1dce42?.[_0x1b1b1c(0x131)]!=null&&_0x3bcdc8[_0x1b1b1c(0x137)](_0x1dce42['dbId'],_0x1dce42[_0x1b1b1c(0x12b)]??_0x1b1b1c(0x132)+_0x1dce42[_0x1b1b1c(0x131)]);}const _0x129e4c=[..._0x3bcdc8['entries']()][_0x1b1b1c(0x121)](([_0x14d05d,_0xef47fc])=>({'dbId':_0x14d05d,'dbName':_0xef47fc}));return cache[_0x1b1b1c(0x137)](_0x28928c,_0x129e4c),_0x129e4c;}function a120_0x1287(_0x1d344b,_0x34abe2){_0x1d344b=_0x1d344b-0x11f;const _0x4870f7=a120_0x4870();let _0x128732=_0x4870f7[_0x1d344b];return _0x128732;}export async function resolveDb(_0x50a756,_0x1c135a){const _0x373f54=a120_0x1287,_0x5644e1=await listDatabases(_0x50a756);if(_0x5644e1['length']===0x0)return{'resolved':[],'error':_0x373f54(0x12a)};if(!_0x1c135a)return{'resolved':_0x5644e1};const _0x47ba08=Number(_0x1c135a);if(!Number['isNaN'](_0x47ba08)){const _0x5266f7=_0x5644e1[_0x373f54(0x124)](_0x4ca652=>_0x4ca652[_0x373f54(0x131)]===_0x47ba08);if(_0x5266f7)return{'resolved':[_0x5266f7]};}const _0x417011=_0x1c135a[_0x373f54(0x13b)](),_0x353108=_0x5644e1[_0x373f54(0x135)](_0x19805e=>_0x19805e[_0x373f54(0x12b)]['toLowerCase']()[_0x373f54(0x125)](_0x417011));if(_0x353108[_0x373f54(0x120)]>0x0)return{'resolved':_0x353108};const _0xdd5f35=_0x5644e1[_0x373f54(0x121)](_0xcba23f=>_0xcba23f[_0x373f54(0x12b)]+'\x20('+_0xcba23f[_0x373f54(0x131)]+')')[_0x373f54(0x136)](',\x20');return{'resolved':[],'error':_0x373f54(0x12d)+_0x1c135a+_0x373f54(0x12c)+_0xdd5f35};}export async function resolveOneDb(_0x206ae5,_0x493880){const _0x26673a=a120_0x1287,{resolved:_0x3fad03,error:_0xa9fde2}=await resolveDb(_0x206ae5,_0x493880);if(_0xa9fde2)return{'db':null,'error':_0xa9fde2};if(_0x3fad03[_0x26673a(0x120)]===0x1)return{'db':_0x3fad03[0x0]};if(!_0x493880){const _0x5bf966=_0x3fad03[_0x26673a(0x121)](_0x5022f6=>_0x5022f6['dbName']+'\x20('+_0x5022f6[_0x26673a(0x131)]+')')[_0x26673a(0x136)](',\x20');return{'db':null,'error':_0x26673a(0x139)+_0x5bf966};}const _0x182301=_0x3fad03[_0x26673a(0x121)](_0x1be764=>_0x1be764['dbName']+'\x20('+_0x1be764[_0x26673a(0x131)]+')')[_0x26673a(0x136)](',\x20');return{'db':null,'error':'\x22'+_0x493880+_0x26673a(0x133)+_0x182301+_0x26673a(0x12f)};}export async function getDbName(_0x1929f4,_0x158572){const _0x5b4348=a120_0x1287,_0x363073=await listDatabases(_0x1929f4);return _0x363073['find'](_0x1d7577=>_0x1d7577[_0x5b4348(0x131)]===_0x158572)?.[_0x5b4348(0x12b)];}function a120_0x4870(){const _0x166784=['6GmWYAJ','755230pfzDdC','3223720AcYLEu','No\x20linked\x20databases\x20found\x20for\x20this\x20app.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','dbName','\x22.\x20Available:\x20','No\x20database\x20matching\x20\x22','2422468iBYAkd','.\x20Be\x20more\x20specific.','8arQcDo','dbId','db-','\x22\x20matches\x20multiple\x20databases:\x20','dbtableConfig','filter','join','set','6320718RpkCnl','Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20','945388FXQErF','toLowerCase','5309437HAxmQa','length','map','3aQyKkv','get','find','includes','1385785ihvUfh'];a120_0x4870=function(){return _0x166784;};return a120_0x4870();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a121_0x2d21(_0x2b03b7,_0x215c86){_0x2b03b7=_0x2b03b7-0xc4;const _0x49109b=a121_0x4910();let _0x2d2151=_0x49109b[_0x2b03b7];return _0x2d2151;}function a121_0x4910(){const _0x47c609=['toUpperCase','add','\x20query\x20targeting\x20','3264GuNHLR','type','8071mKsxZQ','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','startsWith','24zFjdYu','5307809MQHimS','unknown\x20table(s)','DELETE','2875371uFprSO','UPDATE','UNKNOWN','from','test','10HNuIqL','SQL\x20content\x20is\x20empty','4404RUdXlD','\x20with\x20parameters:\x20','9604107SuCTRf','length','trim','reason','DDL','4kjNtGx','replace','push','matchAll','INSERT','4YOcyhC','includes','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','11815xQuIsZ','isDangerous','1661kGsOlt','598385NykjTn','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save'];a121_0x4910=function(){return _0x47c609;};return a121_0x4910();}(function(_0x39a815,_0x22540d){const _0x524e77=a121_0x2d21,_0x536093=_0x39a815();while(!![]){try{const _0x253430=parseInt(_0x524e77(0xe4))/0x1*(parseInt(_0x524e77(0xde))/0x2)+parseInt(_0x524e77(0xcb))/0x3*(-parseInt(_0x524e77(0xd9))/0x4)+-parseInt(_0x524e77(0xe1))/0x5*(-parseInt(_0x524e77(0xe9))/0x6)+-parseInt(_0x524e77(0xc4))/0x7*(parseInt(_0x524e77(0xc7))/0x8)+parseInt(_0x524e77(0xd4))/0x9*(-parseInt(_0x524e77(0xd0))/0xa)+parseInt(_0x524e77(0xe3))/0xb*(-parseInt(_0x524e77(0xd2))/0xc)+parseInt(_0x524e77(0xc8))/0xd;if(_0x253430===_0x22540d)break;else _0x536093['push'](_0x536093['shift']());}catch(_0x59b260){_0x536093['push'](_0x536093['shift']());}}}(a121_0x4910,0xc4cbf));export function detectSqlType(_0x46f1cd){const _0x96005e=a121_0x2d21;if(!_0x46f1cd?.[_0x96005e(0xd6)]())return{'type':_0x96005e(0xcd),'isSelectOnly':![],'isDangerous':![],'reason':_0x96005e(0xd1)};const _0x36e6f5=_0x46f1cd['replace'](/#\{[^}]*\}/g,'?')[_0x96005e(0xda)](/\$\{[^}]*\}/g,'?')[_0x96005e(0xda)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x96005e(0xda)](/\/\*[\s\S]*?\*\//g,'')[_0x96005e(0xd6)](),_0x38dfc4=_0x36e6f5['split']('\x0a');let _0x28735b='';for(const _0x140b51 of _0x38dfc4){const _0x53361e=_0x140b51['trim']();if(!_0x53361e||_0x53361e[_0x96005e(0xc6)]('--')||_0x53361e[_0x96005e(0xc6)]('/*'))continue;_0x28735b=_0x53361e;break;}const _0x47985f=_0x28735b[_0x96005e(0xe6)]();if(_0x47985f[_0x96005e(0xc6)]('SELECT')||_0x47985f[_0x96005e(0xc6)]('WITH')){const _0x4134ef=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x96005e(0xcf)](_0x36e6f5);return{'type':'SELECT','isSelectOnly':!_0x4134ef,'isDangerous':_0x4134ef,'reason':_0x4134ef?'SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT':undefined};}if(_0x47985f[_0x96005e(0xc6)](_0x96005e(0xdd)))return{'type':_0x96005e(0xdd),'isSelectOnly':![],'isDangerous':![]};if(_0x47985f[_0x96005e(0xc6)]('UPDATE'))return{'type':_0x96005e(0xcc),'isSelectOnly':![],'isDangerous':![]};if(_0x47985f[_0x96005e(0xc6)]('DELETE'))return{'type':_0x96005e(0xca),'isSelectOnly':![],'isDangerous':!![],'reason':_0x96005e(0xe5)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x96005e(0xcf)](_0x47985f))return{'type':_0x96005e(0xd8),'isSelectOnly':![],'isDangerous':!![],'reason':_0x96005e(0xc5)};return{'type':_0x96005e(0xcd),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x16ec05){const _0x3a8edb=a121_0x2d21,_0x3d1530=_0x16ec05[_0x3a8edb(0xda)](/#\{[^}]*\}/g,'?')[_0x3a8edb(0xda)](/\$\{[^}]*\}/g,'?')['replace'](/'[^']*'/g,'\x27\x27')[_0x3a8edb(0xda)](/--.*$/gm,'')[_0x3a8edb(0xda)](/\/\*[\s\S]*?\*\//g,''),_0x35bc09=[],_0x1ee3cc=_0x3d1530['match'](/FROM\s+([^\s,)(]+)/i);if(_0x1ee3cc?.[0x1])_0x35bc09[_0x3a8edb(0xdb)](_0x1ee3cc[0x1][_0x3a8edb(0xda)](/[`"]/g,''));for(const _0x2ba407 of _0x3d1530['matchAll'](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x22b93a=_0x2ba407[0x1]?.['replace'](/[`"]/g,'');if(_0x22b93a&&!_0x35bc09['includes'](_0x22b93a))_0x35bc09[_0x3a8edb(0xdb)](_0x22b93a);}const _0x1253d8=_0x3d1530['match'](/INTO\s+([^\s(]+)/i);if(_0x1253d8?.[0x1]){const _0x576194=_0x1253d8[0x1][_0x3a8edb(0xda)](/[`"]/g,'');if(!_0x35bc09[_0x3a8edb(0xdf)](_0x576194))_0x35bc09[_0x3a8edb(0xdb)](_0x576194);}const _0x4136c9=_0x3d1530['match'](/UPDATE\s+([^\s,)(]+)/i);if(_0x4136c9?.[0x1]){const _0x17fb16=_0x4136c9[0x1][_0x3a8edb(0xda)](/[`"]/g,'');if(!_0x35bc09['includes'](_0x17fb16))_0x35bc09[_0x3a8edb(0xdb)](_0x17fb16);}return _0x35bc09;}function extractParameters(_0x3d5584){const _0x57d68=a121_0x2d21,_0x251704=new Set();for(const _0x5a1974 of _0x3d5584[_0x57d68(0xdc)](/#\{(\w+)\}/g))if(_0x5a1974[0x1])_0x251704[_0x57d68(0xe7)](_0x5a1974[0x1]);for(const _0x54ccc4 of _0x3d5584[_0x57d68(0xdc)](/\$\{(\w+)\}/g))if(_0x54ccc4[0x1])_0x251704[_0x57d68(0xe7)](_0x54ccc4[0x1]);return Array[_0x57d68(0xce)](_0x251704);}export function validateSql(_0x819d69){const _0x13bd28=a121_0x2d21,_0x4fdee8=detectSqlType(_0x819d69),_0x7697a4=extractTables(_0x819d69),_0x276f9b=extractParameters(_0x819d69);if(_0x4fdee8[_0x13bd28(0xe2)])return{'valid':![],'sqlType':_0x4fdee8,'tables':_0x7697a4,'parameters':_0x276f9b,'message':_0x4fdee8[_0x13bd28(0xd7)]||_0x4fdee8['type']+_0x13bd28(0xe0)};if(_0x4fdee8[_0x13bd28(0xea)]===_0x13bd28(0xcd))return{'valid':![],'sqlType':_0x4fdee8,'tables':_0x7697a4,'parameters':_0x276f9b,'message':'Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.'};return{'valid':!![],'sqlType':_0x4fdee8,'tables':_0x7697a4,'parameters':_0x276f9b,'message':_0x4fdee8[_0x13bd28(0xea)]+_0x13bd28(0xe8)+(_0x7697a4['length']?_0x7697a4['join'](',\x20'):_0x13bd28(0xc9))+(_0x276f9b[_0x13bd28(0xd5)]?_0x13bd28(0xd3)+_0x276f9b['join'](',\x20'):'')};}
|
package/lib/errors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a122_0x49ffbb=a122_0x27d0;(function(_0x16cc73,_0x153d4c){const _0x27d33f=a122_0x27d0,_0x183759=_0x16cc73();while(!![]){try{const _0x5426d6=parseInt(_0x27d33f(0x116))/0x1*(parseInt(_0x27d33f(0x111))/0x2)+parseInt(_0x27d33f(0x10e))/0x3*(-parseInt(_0x27d33f(0x118))/0x4)+-parseInt(_0x27d33f(0x109))/0x5*(-parseInt(_0x27d33f(0x110))/0x6)+-parseInt(_0x27d33f(0x108))/0x7*(parseInt(_0x27d33f(0x119))/0x8)+parseInt(_0x27d33f(0x11a))/0x9+parseInt(_0x27d33f(0x10d))/0xa*(-parseInt(_0x27d33f(0x10b))/0xb)+-parseInt(_0x27d33f(0x117))/0xc*(parseInt(_0x27d33f(0x114))/0xd);if(_0x5426d6===_0x153d4c)break;else _0x183759['push'](_0x183759['shift']());}catch(_0x8e9b4c){_0x183759['push'](_0x183759['shift']());}}}(a122_0x2b88,0xb8e6b));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';function a122_0x2b88(){const _0x1e283b=['2640065qaLOof','join','22yekPRH','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','2061820yGwhxQ','32244KFHznU','\x0a\x20\x20\x20\x20\x20\x20\x20','12WwQaAj','5440pkVnLQ','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','13aSUjnj','\x20auth`\x20to\x20login\x20first.','293AVaxrk','16417428Zxrqnc','92MTBGCG','56yQfLSA','9919719YfbnpG','170135MtTdma'];a122_0x2b88=function(){return _0x1e283b;};return a122_0x2b88();}export{CliError};function a122_0x27d0(_0x533c1b,_0x2bca6a){_0x533c1b=_0x533c1b-0x108;const _0x2b884f=a122_0x2b88();let _0x27d029=_0x2b884f[_0x533c1b];return _0x27d029;}export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':'Run\x20`'+CLI_BIN_NAME+a122_0x49ffbb(0x115),'configMissingHint':['Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+a122_0x49ffbb(0x112),'Tip:\x20`'+CLI_BIN_NAME+a122_0x49ffbb(0x10c)][a122_0x49ffbb(0x10a)](a122_0x49ffbb(0x10f)),'notInProjectHint':a122_0x49ffbb(0x113)});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x308054,_0x4100c5){var _0x410fd6=a123_0x43db,_0x2d80dd=_0x308054();while(!![]){try{var _0x846c14=-parseInt(_0x410fd6(0x13c))/0x1*(-parseInt(_0x410fd6(0x13a))/0x2)+-parseInt(_0x410fd6(0x139))/0x3+-parseInt(_0x410fd6(0x13f))/0x4*(parseInt(_0x410fd6(0x13b))/0x5)+parseInt(_0x410fd6(0x138))/0x6*(parseInt(_0x410fd6(0x141))/0x7)+parseInt(_0x410fd6(0x136))/0x8*(parseInt(_0x410fd6(0x13d))/0x9)+parseInt(_0x410fd6(0x135))/0xa*(parseInt(_0x410fd6(0x140))/0xb)+-parseInt(_0x410fd6(0x13e))/0xc*(parseInt(_0x410fd6(0x137))/0xd);if(_0x846c14===_0x4100c5)break;else _0x2d80dd['push'](_0x2d80dd['shift']());}catch(_0x5f1ec4){_0x2d80dd['push'](_0x2d80dd['shift']());}}}(a123_0x43c7,0xa4365));function a123_0x43db(_0x327f59,_0x1066d9){_0x327f59=_0x327f59-0x135;var _0x43c76e=a123_0x43c7();var _0x43db95=_0x43c76e[_0x327f59];return _0x43db95;}function a123_0x43c7(){var _0xbd0571=['65244NrPXiZ','4EDrfYO','4653QSIecW','7slfHMJ','22170eCPnMn','8LSkLKr','6305WhLFhy','7657278qqAebu','235623ixzwiu','62994ZowQMf','1628645FVdkiP','29RwOQHp','5277699BcuXhn'];a123_0x43c7=function(){return _0xbd0571;};return a123_0x43c7();}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a123_0x2b2058}from'@lovrabet/cli-framework';export function buildAllFlags(_0x53a5d3){return a123_0x2b2058(_0x53a5d3,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
|
package/lib/framework/flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a124_0x36ce33=a124_0x1c83;function a124_0x1c83(_0x39042f,_0x24499a){_0x39042f=_0x39042f-0x146;const _0x55ea75=a124_0x55ea();let _0x1c830d=_0x55ea75[_0x39042f];return _0x1c830d;}function a124_0x55ea(){const _0x112763=['3928281CgCyOZ','5214232GnDFPn','2361724Tyexaz','1878708zpaitU','427KpVumG','2681586jioWgx','70XeZXLA','1969595MOQXWQ','1erZyym','validateFlags','123594VecnkJ'];a124_0x55ea=function(){return _0x112763;};return a124_0x55ea();}(function(_0x433d8d,_0x4319db){const _0x555459=a124_0x1c83,_0x1b3109=_0x433d8d();while(!![]){try{const _0x1f0ca4=-parseInt(_0x555459(0x14d))/0x1*(parseInt(_0x555459(0x147))/0x2)+parseInt(_0x555459(0x150))/0x3+-parseInt(_0x555459(0x148))/0x4+-parseInt(_0x555459(0x14c))/0x5+parseInt(_0x555459(0x14f))/0x6*(-parseInt(_0x555459(0x149))/0x7)+parseInt(_0x555459(0x146))/0x8+parseInt(_0x555459(0x14a))/0x9*(parseInt(_0x555459(0x14b))/0xa);if(_0x1f0ca4===_0x4319db)break;else _0x1b3109['push'](_0x1b3109['shift']());}catch(_0x13e9cc){_0x1b3109['push'](_0x1b3109['shift']());}}}(a124_0x55ea,0xb619f));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers['parseFlags'];export const validateFlags=helpers[a124_0x36ce33(0x14e)];
|
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a120_0x37c836=a120_0x331e;(function(_0xe9df7a,_0x5ce7da){const _0x64dbe7=a120_0x331e,_0x376e36=_0xe9df7a();while(!![]){try{const _0x2dadb8=parseInt(_0x64dbe7(0xe6))/0x1+-parseInt(_0x64dbe7(0xbd))/0x2*(parseInt(_0x64dbe7(0xd3))/0x3)+-parseInt(_0x64dbe7(0xe4))/0x4+-parseInt(_0x64dbe7(0xeb))/0x5*(parseInt(_0x64dbe7(0xdb))/0x6)+-parseInt(_0x64dbe7(0xe1))/0x7*(-parseInt(_0x64dbe7(0xc3))/0x8)+-parseInt(_0x64dbe7(0xb6))/0x9*(-parseInt(_0x64dbe7(0xba))/0xa)+parseInt(_0x64dbe7(0xec))/0xb;if(_0x2dadb8===_0x5ce7da)break;else _0x376e36['push'](_0x376e36['shift']());}catch(_0x16abfa){_0x376e36['push'](_0x376e36['shift']());}}}(a120_0x1a74,0xe5001));import{buildAllFlags}from'../framework/build-all-flags.js';function a120_0x331e(_0x33e91e,_0x5dada8){_0x33e91e=_0x33e91e-0xb6;const _0x1a7432=a120_0x1a74();let _0x331ed7=_0x1a7432[_0x33e91e];return _0x331ed7;}import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';const RISK_LABELS={'read':'','write':a120_0x37c836(0xfa),'high-risk-write':'\x20\x20[high-risk-write]'};export function generateCommandHelp(_0x53664b){const _0x34be15=a120_0x37c836,_0x328fd8=[],_0x1efa70=_0x53664b[_0x34be15(0xe3)]===_0x53664b[_0x34be15(0xbc)]?CLI_BIN_NAME+'\x20'+_0x53664b[_0x34be15(0xe3)]:CLI_BIN_NAME+'\x20'+_0x53664b[_0x34be15(0xe3)]+'\x20'+_0x53664b[_0x34be15(0xbc)],_0x16d81e=_0x53664b[_0x34be15(0xd7)]?_0x53664b[_0x34be15(0xd7)][_0x34be15(0xb8)](_0x170e82=>_0x170e82[_0x34be15(0xdc)]!==![]?'<'+_0x170e82['name']+'>':'['+_0x170e82[_0x34be15(0xcb)]+']')[_0x34be15(0xbb)]('\x20'):'',_0x45c0d4=_0x16d81e?_0x1efa70+'\x20'+_0x16d81e+_0x34be15(0xbe):_0x1efa70+_0x34be15(0xbe);_0x328fd8['push'](''),_0x328fd8['push']('\x20\x20'+_0x53664b['description']),_0x328fd8[_0x34be15(0xca)](''),_0x328fd8[_0x34be15(0xca)](_0x34be15(0xf3)),_0x328fd8[_0x34be15(0xca)]('\x20\x20\x20\x20'+_0x45c0d4),_0x328fd8[_0x34be15(0xca)](''),_0x328fd8[_0x34be15(0xca)]('\x20\x20RISK:\x20'+_0x53664b[_0x34be15(0xf1)]);_0x53664b[_0x34be15(0xf1)]===_0x34be15(0xe5)&&_0x328fd8['push'](_0x34be15(0xc4));_0x328fd8[_0x34be15(0xca)]('');if(_0x53664b[_0x34be15(0xd7)]&&_0x53664b['args'][_0x34be15(0xe2)]>0x0){_0x328fd8[_0x34be15(0xca)](_0x34be15(0xee));const _0x257036=Math['max'](..._0x53664b[_0x34be15(0xd7)][_0x34be15(0xb8)](_0x2c09fa=>_0x2c09fa[_0x34be15(0xcb)][_0x34be15(0xe2)]+0x2));for(const _0x3fc7eb of _0x53664b[_0x34be15(0xd7)]){const _0x20ff41=('<'+_0x3fc7eb['name']+'>')[_0x34be15(0xed)](_0x257036+0x2),_0x2ab7fa=_0x3fc7eb[_0x34be15(0xdc)]!==![]?_0x34be15(0xda):'';_0x328fd8[_0x34be15(0xca)](_0x34be15(0xc6)+_0x20ff41+_0x3fc7eb[_0x34be15(0xc2)]+_0x2ab7fa);}_0x328fd8[_0x34be15(0xca)]('');}if(_0x53664b[_0x34be15(0xef)][_0x34be15(0xe2)]>0x0||_0x53664b['dryRun']||_0x53664b[_0x34be15(0xce)]!==![]){_0x328fd8['push'](_0x34be15(0xd0));const _0x5c7182=buildAllFlags(_0x53664b),_0x341f15=Math['max'](..._0x5c7182[_0x34be15(0xb8)](_0x271f9e=>formatFlagName(_0x271f9e)[_0x34be15(0xe2)]));for(const _0x6e1cbf of _0x5c7182){_0x328fd8[_0x34be15(0xca)](_0x34be15(0xc6)+formatFlagName(_0x6e1cbf)[_0x34be15(0xed)](_0x341f15+0x2)+renderFlagDesc(_0x6e1cbf));}_0x328fd8[_0x34be15(0xca)]('');}const _0x166386=[];_0x53664b[_0x34be15(0xcc)]!==![]&&_0x166386['push'](_0x34be15(0xf4)+CLI_BIN_NAME+_0x34be15(0xf9));_0x53664b[_0x34be15(0xbf)]!==![]&&_0x166386['push']('Requires\x20appcode\x20(set\x20via\x20`'+CLI_BIN_NAME+_0x34be15(0xd6));if(_0x166386[_0x34be15(0xe2)]>0x0){_0x328fd8[_0x34be15(0xca)](_0x34be15(0xc5));for(const _0x32acae of _0x166386){_0x328fd8[_0x34be15(0xca)](_0x34be15(0xdf)+_0x32acae);}_0x328fd8[_0x34be15(0xca)]('');}if(_0x53664b['helpExtra']){const _0x26c1fd=typeof _0x53664b[_0x34be15(0xf0)]===_0x34be15(0xd8)?_0x53664b[_0x34be15(0xf0)]():_0x53664b[_0x34be15(0xf0)];_0x328fd8[_0x34be15(0xca)](_0x26c1fd),_0x328fd8[_0x34be15(0xca)]('');}return _0x328fd8[_0x34be15(0xbb)]('\x0a');}export function generateServiceHelp(_0x115673){const _0x3f9ce1=a120_0x37c836,_0x1332c4=getServiceEntry(_0x115673);if(!_0x1332c4)return'\x20\x20Unknown\x20service:\x20'+_0x115673+'\x0a';const _0x315f75=[],_0x5b8f5b=serviceGroups['get'](_0x115673);_0x315f75[_0x3f9ce1(0xca)](''),_0x315f75[_0x3f9ce1(0xca)]('\x20\x20'+_0x1332c4['label']),_0x315f75[_0x3f9ce1(0xca)](''),_0x315f75['push'](_0x3f9ce1(0xf3)),_0x315f75[_0x3f9ce1(0xca)](_0x3f9ce1(0xc6)+CLI_BIN_NAME+'\x20'+_0x115673+_0x3f9ce1(0xf7)),_0x315f75['push'](''),_0x315f75[_0x3f9ce1(0xca)](_0x3f9ce1(0xd2));for(const _0xd30044 of _0x1332c4[_0x3f9ce1(0xe0)]){_0x315f75[_0x3f9ce1(0xca)]('');const _0x7965d2=_0xd30044[_0x3f9ce1(0xd5)]?'\x20\x20'+_0xd30044[_0x3f9ce1(0xd5)][_0x3f9ce1(0xcf)]():'';_0x315f75[_0x3f9ce1(0xca)](_0x3f9ce1(0xc6)+_0xd30044[_0x3f9ce1(0xbc)]+_0x7965d2),_0x315f75[_0x3f9ce1(0xca)]('\x20\x20\x20\x20\x20\x20'+_0xd30044[_0x3f9ce1(0xc2)]);const _0x440818=_0x5b8f5b?.[_0x3f9ce1(0xd4)](_0x4ee494=>_0x4ee494['command']===_0xd30044[_0x3f9ce1(0xbc)]);if(_0x440818?.[_0x3f9ce1(0xd7)]&&_0x440818[_0x3f9ce1(0xd7)][_0x3f9ce1(0xe2)]>0x0){_0x315f75['push'](_0x3f9ce1(0xf5));const _0x48eef3=Math[_0x3f9ce1(0xc9)](..._0x440818[_0x3f9ce1(0xd7)][_0x3f9ce1(0xb8)](_0x157ffe=>_0x157ffe['name'][_0x3f9ce1(0xe2)]+0x2));for(const _0x5c5526 of _0x440818[_0x3f9ce1(0xd7)]){const _0x59c9ba=('<'+_0x5c5526[_0x3f9ce1(0xcb)]+'>')['padEnd'](_0x48eef3+0x2),_0x5a974a=_0x5c5526['required']!==![]?_0x3f9ce1(0xda):'';_0x315f75[_0x3f9ce1(0xca)]('\x20\x20\x20\x20\x20\x20\x20\x20'+_0x59c9ba+_0x5c5526[_0x3f9ce1(0xc2)]+_0x5a974a);}}const _0x168f38=getCommandFlags(_0x115673,_0xd30044[_0x3f9ce1(0xbc)],_0x5b8f5b);if(_0x168f38[_0x3f9ce1(0xe2)]>0x0){const _0x44b7da=Math[_0x3f9ce1(0xc9)](..._0x168f38[_0x3f9ce1(0xb8)](_0x51db23=>formatFlagName(_0x51db23)['length']));for(const _0x152978 of _0x168f38){_0x315f75[_0x3f9ce1(0xca)]('\x20\x20\x20\x20\x20\x20'+formatFlagName(_0x152978)[_0x3f9ce1(0xed)](_0x44b7da+0x2)+renderFlagDesc(_0x152978));}}}return _0x315f75[_0x3f9ce1(0xca)](''),_0x315f75['join']('\x0a');}export function generateFullHelp(){const _0x17dc30=a120_0x37c836,_0x3e2f34=[];_0x3e2f34['push'](''),_0x3e2f34[_0x17dc30(0xca)]('\x20\x20'+CLI_DISPLAY_NAME),_0x3e2f34[_0x17dc30(0xca)](''),_0x3e2f34[_0x17dc30(0xca)](_0x17dc30(0xf3)),_0x3e2f34[_0x17dc30(0xca)](_0x17dc30(0xea)+CLI_BIN_NAME+_0x17dc30(0xe9)),_0x3e2f34[_0x17dc30(0xca)](''),_0x3e2f34['push'](_0x17dc30(0xde));const _0x567baf=GLOBAL_FLAGS['filter'](_0x30f6da=>!_0x30f6da['hidden']),_0x41ae86=Math['max'](..._0x567baf[_0x17dc30(0xb8)](_0x3547f8=>{const _0x36086c=_0x17dc30,_0x2c5dbd=_0x3547f8[_0x36086c(0xf8)]?'\x20'+_0x3547f8[_0x36086c(0xf8)]:'';return('--'+_0x3547f8['name']+_0x2c5dbd)[_0x36086c(0xe2)];}));for(const _0x585c1e of _0x567baf){const _0x3124d6=_0x585c1e[_0x17dc30(0xf8)]?'\x20'+_0x585c1e[_0x17dc30(0xf8)]:'',_0x1f551e=('--'+_0x585c1e[_0x17dc30(0xcb)]+_0x3124d6)[_0x17dc30(0xed)](_0x41ae86+0x2);_0x3e2f34[_0x17dc30(0xca)]('\x20\x20\x20\x20'+_0x1f551e+_0x585c1e['description']);}_0x3e2f34[_0x17dc30(0xca)](''),_0x3e2f34[_0x17dc30(0xca)](_0x17dc30(0xd2)),_0x3e2f34[_0x17dc30(0xca)]('');for(const _0x4e65a0 of serviceRegistry){_0x3e2f34['push']('\x20\x20'+_0x4e65a0[_0x17dc30(0xe7)]);if(_0x4e65a0[_0x17dc30(0xf2)]){const _0x1f401b=_0x4e65a0[_0x17dc30(0xe0)][0x0],_0x2614ed=_0x1f401b[_0x17dc30(0xd5)]??'';_0x3e2f34['push'](_0x17dc30(0xc6)+_0x4e65a0[_0x17dc30(0xe3)]['padEnd'](0x12)+_0x1f401b[_0x17dc30(0xc2)]+_0x2614ed);}else{const _0x446a35=_0x4e65a0[_0x17dc30(0xe0)][_0x17dc30(0xb8)](_0x422e07=>_0x4e65a0[_0x17dc30(0xe3)]+'\x20'+_0x422e07[_0x17dc30(0xbc)]),_0x3b396d=Math[_0x17dc30(0xc9)](..._0x446a35[_0x17dc30(0xb8)](_0xd356b9=>_0xd356b9[_0x17dc30(0xe2)]));for(let _0x40f160=0x0;_0x40f160<_0x4e65a0[_0x17dc30(0xe0)]['length'];_0x40f160++){const _0x1071c9=_0x4e65a0[_0x17dc30(0xe0)][_0x40f160],_0x1f289d=_0x1071c9[_0x17dc30(0xd5)]??'';_0x3e2f34['push'](_0x17dc30(0xc6)+_0x446a35[_0x40f160][_0x17dc30(0xed)](_0x3b396d+0x2)+_0x1071c9['description']+_0x1f289d);}}if(_0x4e65a0[_0x17dc30(0xc1)]?.[_0x17dc30(0xf0)]){const _0x4ff83f=typeof _0x4e65a0['wildcardDef'][_0x17dc30(0xf0)]===_0x17dc30(0xd8)?_0x4e65a0[_0x17dc30(0xc1)]['helpExtra']():_0x4e65a0[_0x17dc30(0xc1)][_0x17dc30(0xf0)];for(const _0x4ffcf0 of _0x4ff83f['split']('\x0a')){_0x3e2f34[_0x17dc30(0xca)]('\x20\x20'+_0x4ffcf0);}}_0x3e2f34[_0x17dc30(0xca)]('');}return _0x3e2f34[_0x17dc30(0xca)]('\x20\x20Run\x20`'+CLI_BIN_NAME+'\x20<service>\x20--help`\x20for\x20service\x20commands.'),_0x3e2f34['push'](_0x17dc30(0xf6)+CLI_BIN_NAME+_0x17dc30(0xe8)),_0x3e2f34[_0x17dc30(0xca)](''),_0x3e2f34['join']('\x0a');}function getCommandFlags(_0x534ebf,_0x13631a,_0x1ea1b4){const _0x49ebfa=a120_0x37c836;if(_0x1ea1b4){const _0x231d3d=_0x1ea1b4['find'](_0x107754=>_0x107754[_0x49ebfa(0xbc)]===_0x13631a);if(_0x231d3d)return buildAllFlags(_0x231d3d);}return[];}function renderFlagDesc(_0x296aa4){const _0x4556c4=a120_0x37c836;let _0xab21d3=_0x296aa4[_0x4556c4(0xc2)];return _0x296aa4['enum']&&_0x296aa4[_0x4556c4(0xd9)][_0x4556c4(0xe2)]>0x0&&(_0xab21d3+='\x20('+_0x296aa4[_0x4556c4(0xd9)][_0x4556c4(0xbb)](_0x4556c4(0xcd))+')'),_0x296aa4[_0x4556c4(0xd1)]!==undefined&&_0x296aa4['default']!==''&&_0x296aa4[_0x4556c4(0xd1)]!==![]&&(_0xab21d3+=_0x4556c4(0xc0)+_0x296aa4[_0x4556c4(0xd1)]+']'),_0x296aa4[_0x4556c4(0xdc)]&&!_0xab21d3[_0x4556c4(0xc7)](_0x4556c4(0xdd))&&(_0xab21d3+=_0x4556c4(0xda)),_0xab21d3;}function formatFlagName(_0x3ae481){const _0x2b6a42=a120_0x37c836,_0x5dc724=_0x3ae481[_0x2b6a42(0xc8)]==='boolean'?'':_0x3ae481[_0x2b6a42(0xc8)]==='number'?_0x2b6a42(0xb7):_0x2b6a42(0xb9);return'--'+_0x3ae481[_0x2b6a42(0xcb)]+_0x5dc724;}function a120_0x1a74(){const _0x5a103c=['\x20[default:\x20','wildcardDef','description','32aLLqql','\x20\x20\x20\x20Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.','\x20\x20PREREQUISITES','\x20\x20\x20\x20','includes','type','max','push','name','requiresAuth','\x20|\x20','hasFormat','trim','\x20\x20FLAGS','default','\x20\x20COMMANDS','7164WFapMX','find','tag','\x20project\x20init`\x20or\x20--appcode).','args','function','enum','\x20(required)','5155998JpHDgZ','required','(required)','\x20\x20GLOBAL\x20OPTIONS','\x20\x20\x20\x20•\x20','commands','2144261OMpLoa','length','service','4549540fekEbT','high-risk-write','330193VaQZkP','label','\x20<service>\x20<command>\x20--help`\x20for\x20command\x20flags.','\x20[global-options]\x20<service>\x20<command>\x20[flags]','\x20\x20\x20\x20$\x20','5dZvgLd','15760888VfttZT','padEnd','\x20\x20ARGS','flags','helpExtra','risk','isSingleCommand','\x20\x20USAGE','Requires\x20authentication\x20(run\x20`','\x20\x20\x20\x20\x20\x20ARGS','\x20\x20Run\x20`','\x20<command>\x20[args]\x20[flags]','hint','\x20auth`\x20first).','\x20\x20[write]','6485841Jwlhwj','\x20<n>','map','\x20<value>','20dQgLwP','join','command','1252FwWYES','\x20[flags]','requiresAppCode'];a120_0x1a74=function(){return _0x5a103c;};return a120_0x1a74();}
|
|
1
|
+
const a125_0x49bbbd=a125_0x84f5;(function(_0x19c22a,_0x363a64){const _0x66f2d1=a125_0x84f5,_0x1bea04=_0x19c22a();while(!![]){try{const _0xc207f5=parseInt(_0x66f2d1(0xd9))/0x1*(-parseInt(_0x66f2d1(0xd7))/0x2)+-parseInt(_0x66f2d1(0xdf))/0x3*(parseInt(_0x66f2d1(0xd6))/0x4)+parseInt(_0x66f2d1(0xd5))/0x5*(parseInt(_0x66f2d1(0xe2))/0x6)+parseInt(_0x66f2d1(0xe3))/0x7+parseInt(_0x66f2d1(0xd8))/0x8+parseInt(_0x66f2d1(0xda))/0x9+-parseInt(_0x66f2d1(0xd4))/0xa;if(_0xc207f5===_0x363a64)break;else _0x1bea04['push'](_0x1bea04['shift']());}catch(_0x5cc795){_0x1bea04['push'](_0x1bea04['shift']());}}}(a125_0x2313,0xef452));function a125_0x2313(){const _0x31c0fa=['27484velmYN','4uAPjXV','5172920WfueIl','419577KDnnQk','13699017tijiMY','\x20project\x20init`\x20or\x20--appcode).','generateServiceHelp','get','generateFullHelp','822rpAiwq','generateCommandHelp','Requires\x20appcode\x20(set\x20via\x20`','5630064EhgHkM','8669759XXilFu','6437510YdIuqf','5oBUBhT'];a125_0x2313=function(){return _0x31c0fa;};return a125_0x2313();}import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';function a125_0x84f5(_0x6fa9da,_0x1b8ffa){_0x6fa9da=_0x6fa9da-0xd4;const _0x2313fc=a125_0x2313();let _0x84f58a=_0x2313fc[_0x6fa9da];return _0x84f58a;}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':_0x3d93f4=>serviceGroups[a125_0x49bbbd(0xdd)](_0x3d93f4),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a125_0x49bbbd(0xe1)+CLI_BIN_NAME+a125_0x49bbbd(0xdb),'serviceUsageSuffix':'\x20[args]\x20[flags]','includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x31279a){const _0x1841b9=a125_0x49bbbd;return generators[_0x1841b9(0xe0)](_0x31279a);}export const generateServiceHelp=generators[a125_0x49bbbd(0xdc)];export const generateFullHelp=generators[a125_0x49bbbd(0xde)];
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a126_0xe9b5(){var _0x29bbc3=['8348584dmYGdy','7RSydwi','6091785ndqbwF','4132695DrQGas','6614310tGKYmk','243026vJVQoM','4563307eHADSU','4739740gYHvFo'];a126_0xe9b5=function(){return _0x29bbc3;};return a126_0xe9b5();}(function(_0x7bb4a5,_0x4a2946){var _0x32bcd4=a126_0x3f08,_0x37c309=_0x7bb4a5();while(!![]){try{var _0x5813b3=parseInt(_0x32bcd4(0x1a1))/0x1*(parseInt(_0x32bcd4(0x19d))/0x2)+parseInt(_0x32bcd4(0x19b))/0x3+parseInt(_0x32bcd4(0x19f))/0x4+-parseInt(_0x32bcd4(0x19a))/0x5+-parseInt(_0x32bcd4(0x19c))/0x6+parseInt(_0x32bcd4(0x19e))/0x7+-parseInt(_0x32bcd4(0x1a0))/0x8;if(_0x5813b3===_0x4a2946)break;else _0x37c309['push'](_0x37c309['shift']());}catch(_0x563b80){_0x37c309['push'](_0x37c309['shift']());}}}(a126_0xe9b5,0xab105));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';function a126_0x3f08(_0x766c7a,_0x4a62d7){_0x766c7a=_0x766c7a-0x19a;var _0xe9b520=a126_0xe9b5();var _0x3f08e2=_0xe9b520[_0x766c7a];return _0x3f08e2;}export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
|
package/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a127_0x20a1(){var _0x521312=['77HSqRQL','18xHsIfa','1199592EhneeM','1156670Xysywt','97273OkbaPt','8UpTjPh','1471134nKDsFw','259936rXREed','704235cklasF','1902252DQoMMk','2MwyHrn'];a127_0x20a1=function(){return _0x521312;};return a127_0x20a1();}function a127_0x353f(_0x442726,_0x1ebefe){_0x442726=_0x442726-0x10e;var _0x20a161=a127_0x20a1();var _0x353f46=_0x20a161[_0x442726];return _0x353f46;}(function(_0x320035,_0x23510a){var _0x1d09ee=a127_0x353f,_0x3c066a=_0x320035();while(!![]){try{var _0x5d0cde=-parseInt(_0x1d09ee(0x110))/0x1+-parseInt(_0x1d09ee(0x116))/0x2*(parseInt(_0x1d09ee(0x112))/0x3)+-parseInt(_0x1d09ee(0x111))/0x4*(-parseInt(_0x1d09ee(0x114))/0x5)+-parseInt(_0x1d09ee(0x10e))/0x6+parseInt(_0x1d09ee(0x117))/0x7*(parseInt(_0x1d09ee(0x113))/0x8)+parseInt(_0x1d09ee(0x118))/0x9*(parseInt(_0x1d09ee(0x10f))/0xa)+parseInt(_0x1d09ee(0x115))/0xb;if(_0x5d0cde===_0x23510a)break;else _0x3c066a['push'](_0x3c066a['shift']());}catch(_0x5850bf){_0x3c066a['push'](_0x3c066a['shift']());}}}(a127_0x20a1,0x3e72d));export{formatOutput}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3cf123,_0x24a91f){var _0x133d3b=a128_0x54c8,_0x3daf69=_0x3cf123();while(!![]){try{var _0x4dd094=-parseInt(_0x133d3b(0x15f))/0x1*(parseInt(_0x133d3b(0x158))/0x2)+parseInt(_0x133d3b(0x15d))/0x3*(parseInt(_0x133d3b(0x15c))/0x4)+-parseInt(_0x133d3b(0x159))/0x5+parseInt(_0x133d3b(0x15e))/0x6+-parseInt(_0x133d3b(0x15b))/0x7+parseInt(_0x133d3b(0x15a))/0x8+parseInt(_0x133d3b(0x160))/0x9;if(_0x4dd094===_0x24a91f)break;else _0x3daf69['push'](_0x3daf69['shift']());}catch(_0x1148b4){_0x3daf69['push'](_0x3daf69['shift']());}}}(a128_0x3865,0x89185));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a128_0x54c8(_0x5dc415,_0x94da22){_0x5dc415=_0x5dc415-0x158;var _0x3865e3=a128_0x3865();var _0x54c882=_0x3865e3[_0x5dc415];return _0x54c882;}function a128_0x3865(){var _0x3f61d9=['4qJLVVJ','3233664wucZUy','3076506uLMaSn','910703ekMQpB','7676127JWrWKz','2eBtNrt','5237875kquNGB','7278152GLMusf','5834444OZdetX'];a128_0x3865=function(){return _0x3f61d9;};return a128_0x3865();}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x23eefa,_0x580368){const _0x17b4e6=a129_0x328b,_0x59fdef=_0x23eefa();while(!![]){try{const _0x289f57=parseInt(_0x17b4e6(0x1ee))/0x1+parseInt(_0x17b4e6(0x1dc))/0x2+-parseInt(_0x17b4e6(0x1e9))/0x3+parseInt(_0x17b4e6(0x1e3))/0x4+parseInt(_0x17b4e6(0x1f1))/0x5*(-parseInt(_0x17b4e6(0x1e2))/0x6)+-parseInt(_0x17b4e6(0x1db))/0x7+-parseInt(_0x17b4e6(0x1eb))/0x8*(parseInt(_0x17b4e6(0x1f0))/0x9);if(_0x289f57===_0x580368)break;else _0x59fdef['push'](_0x59fdef['shift']());}catch(_0x50218c){_0x59fdef['push'](_0x59fdef['shift']());}}}(a129_0x31b3,0xd3b01));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';function a129_0x328b(_0x627225,_0x13c596){_0x627225=_0x627225-0x1d9;const _0x31b3f3=a129_0x31b3();let _0x328bf1=_0x31b3f3[_0x627225];return _0x328bf1;}import{CLI_BIN_NAME}from'../constant/cli.js';function a129_0x31b3(){const _0x1e17fc=['alias','3515049PeTzVt','`\x20requires\x20either\x20--code\x20or\x20--alias.','8HnqbzG','code','Unknown\x20alias\x20\x22','1521081NauLHE','validation','10078587ajyEBg','3059960wWktLZ','type','name','1582679mEFdNz','1695778mgDBzy','\x20api\x20pull`\x20first.','some','flags','.\x20Run\x20`','Available\x20aliases:\x20','6TZiMbm','6510872WAxCUZ','No\x20api.ts\x20found\x20in\x20','length','string','join'];a129_0x31b3=function(){return _0x1e17fc;};return a129_0x31b3();}export function resolveAliasToCode(_0x13d9ad,_0x13d6d3,_0xf7176f,_0x1f30fb){const _0x28d9cb=a129_0x328b,_0x4a16fc=_0x13d9ad[_0x28d9cb(0x1df)][_0x28d9cb(0x1de)](_0x45e481=>_0x45e481[_0x28d9cb(0x1da)]===_0x28d9cb(0x1ec)&&_0x45e481[_0x28d9cb(0x1d9)]===_0x28d9cb(0x1e6)),_0x1b9d8b=_0x13d9ad[_0x28d9cb(0x1df)]['some'](_0x438e43=>_0x438e43[_0x28d9cb(0x1da)]===_0x28d9cb(0x1e8)&&_0x438e43[_0x28d9cb(0x1d9)]===_0x28d9cb(0x1e6));if(!_0x4a16fc||!_0x1b9d8b)return;const _0x487709=_0x13d6d3[_0x28d9cb(0x1ec)]?String(_0x13d6d3[_0x28d9cb(0x1ec)]):'',_0x4592cd=_0x13d6d3[_0x28d9cb(0x1e8)]?String(_0x13d6d3[_0x28d9cb(0x1e8)]):'';if(!_0x487709&&!_0x4592cd)throw CliErrors[_0x28d9cb(0x1ef)]('`'+_0x1f30fb+_0x28d9cb(0x1ea));if(_0x4592cd&&!_0x487709){const _0x48dab7=resolveAlias(_0xf7176f,_0x4592cd);if(!_0x48dab7){const _0x3bb44b=listAliases(_0xf7176f)['map'](_0x14df32=>_0x14df32[_0x28d9cb(0x1e8)]),_0x52b4e5=_0x3bb44b[_0x28d9cb(0x1e5)]?_0x28d9cb(0x1e1)+_0x3bb44b[_0x28d9cb(0x1e7)](',\x20'):_0x28d9cb(0x1e4)+_0xf7176f+_0x28d9cb(0x1e0)+CLI_BIN_NAME+_0x28d9cb(0x1dd);throw CliErrors['validation'](_0x28d9cb(0x1ed)+_0x4592cd+'\x22.\x20'+_0x52b4e5);}_0x13d6d3[_0x28d9cb(0x1ec)]=_0x48dab7;}}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a130_0x2d4874=a130_0x3fe6;function a130_0x4c14(){const _0x31440f=['⚠\x20\x20High-risk\x20operation:\x20','selectedAppName','mergedCli','2365990kLsPkD','defaultVerbose','1385brwVSG','cookie','2284tIzAyl','service','resolveCookie','has','435536xyAIzZ','181704jsiKkP','riskLevel','\x20\x20\x20Continue?\x20[y/N]\x20','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','verbose','defaultApp','710457yGjShk','filter','currentApp','../core/api-client.js','3781392QqCREF','validation','requiresAuth','63yCdoiJ','apps','authRequired','resolveApiDomain','appCode','explicitAppName','command','apiDir','format','High-risk\x20operation\x20`','170VoIjef','cancelled','60804gbSbFH','configMissing','defaultPageSize','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.'];a130_0x4c14=function(){return _0x31440f;};return a130_0x4c14();}(function(_0xec5ddf,_0x129a9c){const _0x274644=a130_0x3fe6,_0x95d2d3=_0xec5ddf();while(!![]){try{const _0xc5607c=-parseInt(_0x274644(0x1ef))/0x1+parseInt(_0x274644(0x1e0))/0x2+-parseInt(_0x274644(0x1e9))/0x3+parseInt(_0x274644(0x1e4))/0x4*(parseInt(_0x274644(0x1e2))/0x5)+parseInt(_0x274644(0x1ca))/0x6+parseInt(_0x274644(0x1cd))/0x7*(-parseInt(_0x274644(0x1e8))/0x8)+-parseInt(_0x274644(0x1d9))/0x9*(parseInt(_0x274644(0x1d7))/0xa);if(_0xc5607c===_0x129a9c)break;else _0x95d2d3['push'](_0x95d2d3['shift']());}catch(_0x3039a6){_0x95d2d3['push'](_0x95d2d3['shift']());}}}(a130_0x4c14,0x91653));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';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';function a130_0x3fe6(_0xf3a298,_0x3dd219){_0xf3a298=_0xf3a298-0x1c8;const _0x4c145d=a130_0x4c14();let _0x3fe6f3=_0x4c145d[_0xf3a298];return _0x3fe6f3;}import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a130_0x227ec9}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';export function createPipelineEnv(_0x2cf2d6,_0x351aa0,_0x49efaf=[]){const _0x2065c8=a130_0x3fe6;return{'rawFlags':_0x351aa0,'args':_0x49efaf,'resolveAppCode':()=>_0x2cf2d6[_0x2065c8(0x1d1)]||_0x351aa0['appcode']||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0x2cf2d6[_0x2065c8(0x1e3)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a130_0x227ec9(_0x351aa0),'defaultFormat':_0x2cf2d6[_0x2065c8(0x1d5)],'defaultPageSize':_0x2cf2d6['pageSize'],'defaultVerbose':_0x2cf2d6[_0x2065c8(0x1ed)],'apiDir':_0x2cf2d6[_0x2065c8(0x1d4)],'riskLevel':_0x2cf2d6[_0x2065c8(0x1ea)],'selectedAppName':_0x2cf2d6[_0x2065c8(0x1d2)],'mergedCli':{'defaultApp':_0x2cf2d6[_0x2065c8(0x1ee)],'currentApp':_0x2cf2d6[_0x2065c8(0x1c8)],'appCode':_0x2cf2d6['appCode'],'apps':_0x2cf2d6[_0x2065c8(0x1ce)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a130_0x2d4874(0x1f0)](_0x45f925=>PIPELINE_FLAG_NAMES[a130_0x2d4874(0x1e7)](_0x45f925['name']))['map'](({name:_0x1e2c9b,type:_0x1ea840,description:_0x26050c})=>({'name':_0x1e2c9b,'type':_0x1ea840,'description':_0x26050c})),'formatOutput':formatOutput,'getCommandLabel'(_0x76b2ed){const _0x1593bc=a130_0x2d4874;return CLI_BIN_NAME+'\x20'+_0x76b2ed[_0x1593bc(0x1e5)]+'\x20'+_0x76b2ed[_0x1593bc(0x1d3)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x3e5cb4){const _0x364870=a130_0x2d4874;return CliErrors[_0x364870(0x1cb)](_0x3e5cb4);}},async 'prepare'(_0x573e0f,_0x35798c,_0x212295,_0x3da7ab){const _0x5b091a=a130_0x2d4874,_0xec8e11=_0x35798c[_0x5b091a(0x1d4)]||DEFAULT_API_DIR;resolveAliasToCode(_0x573e0f,_0x212295,_0xec8e11,_0x3da7ab);let _0xae8e21='';if(_0x573e0f[_0x5b091a(0x1cc)]!==![]){_0xae8e21=_0x35798c[_0x5b091a(0x1e6)]();if(!_0xae8e21)throw CliErrors[_0x5b091a(0x1cf)]();const {setActiveCookie:_0x2c8d79}=await import('../core/api-client.js');_0x2c8d79(_0xae8e21);}let _0x17207f='';if(_0x573e0f['requiresAppCode']!==![]){_0x17207f=_0x35798c['resolveAppCode']()??'';if(!_0x17207f)throw CliErrors[_0x5b091a(0x1da)]('Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+_0x5b091a(0x1dc));}return{'defaults':{'booleans':{'verbose':_0x35798c[_0x5b091a(0x1e1)]},'numbers':{'pagesize':_0x35798c[_0x5b091a(0x1db)]}},'extras':{'appCode':_0x17207f,'cookie':_0xae8e21,'apiDomain':_0x35798c[_0x5b091a(0x1d0)](),'apiDir':_0xec8e11,'selectedAppName':_0x35798c[_0x5b091a(0x1de)],'mergedCli':_0x35798c[_0x5b091a(0x1df)]}};},async 'confirmHighRisk'({env:_0x3295a1,commandLabel:_0x56520c}){const _0x1fe506=a130_0x2d4874;if(_0x3295a1['isNonInteractive'])throw CliErrors[_0x1fe506(0x1cb)](_0x1fe506(0x1d6)+_0x56520c+_0x1fe506(0x1ec));await requireConfirmationPrompt({'lines':[_0x1fe506(0x1dd)+_0x56520c,_0x1fe506(0x1eb)],'createCancelledError':_0x49fc25=>CliErrors[_0x1fe506(0x1d8)](_0x49fc25)});},async 'finalize'(){const _0xf8d378=a130_0x2d4874,{clearActiveCookie:_0x178602}=await import(_0xf8d378(0x1c9));_0x178602();}};export async function runCommand(_0x39d979,_0x316421){await runCommandWithAdapter(_0x39d979,_0x316421,runnerAdapter);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a131_0x30c7(_0x367a05,_0x312bbd){_0x367a05=_0x367a05-0x1d4;const _0x5766fb=a131_0x5766();let _0x30c7d1=_0x5766fb[_0x367a05];return _0x30c7d1;}(function(_0x50b279,_0x31688b){const _0x2e4de1=a131_0x30c7,_0xa42750=_0x50b279();while(!![]){try{const _0x589b94=-parseInt(_0x2e4de1(0x1d7))/0x1+-parseInt(_0x2e4de1(0x1d4))/0x2+parseInt(_0x2e4de1(0x1dd))/0x3*(parseInt(_0x2e4de1(0x1da))/0x4)+parseInt(_0x2e4de1(0x1de))/0x5+parseInt(_0x2e4de1(0x1d8))/0x6*(-parseInt(_0x2e4de1(0x1d5))/0x7)+-parseInt(_0x2e4de1(0x1db))/0x8+parseInt(_0x2e4de1(0x1d6))/0x9*(parseInt(_0x2e4de1(0x1d9))/0xa);if(_0x589b94===_0x31688b)break;else _0xa42750['push'](_0xa42750['shift']());}catch(_0x4e3dad){_0xa42750['push'](_0xa42750['shift']());}}}(a131_0x5766,0xdebf4));function a131_0x5766(){const _0x2863f0=['5842071DHcNlL','827823jWTAgr','4463016VMQbZn','60SLlYqK','4ygQmmb','12253632FwpInl','../commands/registry.js','4655505OEsICU','1288870ekGsYj','1889504bolEKH','14UnSRwA'];a131_0x5766=function(){return _0x2863f0;};return a131_0x5766();}import{buildSchemaPayload as a131_0x4070cc}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';export async function buildSchemaPayload(){const _0x1c5d1a=a131_0x30c7,{serviceRegistry:_0x358557,findDefinition:_0x3fa5ac}=await import(_0x1c5d1a(0x1dc));return a131_0x4070cc({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x358557,'buildAllFlags':buildAllFlags,'findDefinition':_0x3fa5ac});}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a132_0x3a91(_0x3fb1f2,_0xccace6){_0x3fb1f2=_0x3fb1f2-0x199;var _0x2b71ed=a132_0x2b71();var _0x3a911f=_0x2b71ed[_0x3fb1f2];return _0x3a911f;}function a132_0x2b71(){var _0x2ed14d=['600yIlTft','2249192krFXfH','1670106rXZeUp','1224720XgehGL','4825070jQeEmp','5283360lyJqoq','21osSBUQ','370871rNjzSU','146988rZwwLs','2aHOmGX'];a132_0x2b71=function(){return _0x2ed14d;};return a132_0x2b71();}(function(_0x3c4f08,_0x10f680){var _0x4c2705=a132_0x3a91,_0x56b09a=_0x3c4f08();while(!![]){try{var _0x1681c=-parseInt(_0x4c2705(0x199))/0x1+parseInt(_0x4c2705(0x19b))/0x2*(parseInt(_0x4c2705(0x19f))/0x3)+parseInt(_0x4c2705(0x19d))/0x4+parseInt(_0x4c2705(0x1a0))/0x5+-parseInt(_0x4c2705(0x19e))/0x6*(-parseInt(_0x4c2705(0x1a2))/0x7)+-parseInt(_0x4c2705(0x1a1))/0x8+-parseInt(_0x4c2705(0x19a))/0x9*(parseInt(_0x4c2705(0x19c))/0xa);if(_0x1681c===_0x10f680)break;else _0x56b09a['push'](_0x56b09a['shift']());}catch(_0x23b0a1){_0x56b09a['push'](_0x56b09a['shift']());}}}(a132_0x2b71,0xb9662));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a133_0x2527(){const _0x32ce81=['2rpISQn','1225917HIyBFo','2189712HlqxFl','2026-04-12T04:52:50.547Z','10HQibtL','10105839LOpAkD','5pKofCd','b8a2383','2.1.2-beta.0','v2.1.2-beta.0','4001977RueTEm','1878484gWIVSe','978433LUqPKh','10245088GbHZjU'];a133_0x2527=function(){return _0x32ce81;};return a133_0x2527();}const a133_0x1d875c=a133_0x36eb;(function(_0x42c204,_0x73de41){const _0x51b00d=a133_0x36eb,_0x33b0c0=_0x42c204();while(!![]){try{const _0x5cd7e1=-parseInt(_0x51b00d(0x9f))/0x1*(-parseInt(_0x51b00d(0xa1))/0x2)+parseInt(_0x51b00d(0xa2))/0x3+parseInt(_0x51b00d(0x9e))/0x4+-parseInt(_0x51b00d(0x99))/0x5*(parseInt(_0x51b00d(0xa3))/0x6)+-parseInt(_0x51b00d(0x9d))/0x7+-parseInt(_0x51b00d(0xa0))/0x8+-parseInt(_0x51b00d(0x98))/0x9*(-parseInt(_0x51b00d(0xa5))/0xa);if(_0x5cd7e1===_0x73de41)break;else _0x33b0c0['push'](_0x33b0c0['shift']());}catch(_0x4a5b28){_0x33b0c0['push'](_0x33b0c0['shift']());}}}(a133_0x2527,0xba199));export const VERSION=a133_0x1d875c(0x9b);export const GIT_TAG=a133_0x1d875c(0x9c);export const GIT_COMMIT=a133_0x1d875c(0x9a);function a133_0x36eb(_0xddcd01,_0x2075ed){_0xddcd01=_0xddcd01-0x98;const _0x252742=a133_0x2527();let _0x36eb9b=_0x252742[_0xddcd01];return _0x36eb9b;}export const BUILD_TIME=a133_0x1d875c(0xa4);
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x170d9e,_0x3b829c){var _0x50ad3e=a134_0x350c,_0x2b5ace=_0x170d9e();while(!![]){try{var _0x47dbcd=parseInt(_0x50ad3e(0x1bc))/0x1*(-parseInt(_0x50ad3e(0x1c0))/0x2)+parseInt(_0x50ad3e(0x1c8))/0x3*(parseInt(_0x50ad3e(0x1bd))/0x4)+parseInt(_0x50ad3e(0x1c4))/0x5*(-parseInt(_0x50ad3e(0x1c5))/0x6)+-parseInt(_0x50ad3e(0x1c2))/0x7*(-parseInt(_0x50ad3e(0x1bf))/0x8)+-parseInt(_0x50ad3e(0x1c6))/0x9+parseInt(_0x50ad3e(0x1c9))/0xa+parseInt(_0x50ad3e(0x1c7))/0xb;if(_0x47dbcd===_0x3b829c)break;else _0x2b5ace['push'](_0x2b5ace['shift']());}catch(_0x53ac65){_0x2b5ace['push'](_0x2b5ace['shift']());}}}(a134_0x26d9,0x4039a));function a134_0x350c(_0x19220f,_0x5ffdb8){_0x19220f=_0x19220f-0x1bb;var _0x26d91f=a134_0x26d9();var _0x350cf1=_0x26d91f[_0x19220f];return _0x350cf1;}function a134_0x26d9(){var _0x280d36=['1qJpsHi','1056252zJeIcp','\x20\x20Use\x20','96ShFqwE','955146zBsuXP','bold','42224YBxgFT','\x20to\x20view\x20available\x20commands.','10xrlfhe','529368LdgApT','3104847CAilbT','7595676wajLIo','3FrWyFw','2351150tldvAl','log'];a134_0x26d9=function(){return _0x280d36;};return a134_0x26d9();}import a134_0x1ed3e7 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0xb4f531=a134_0x350c;console[_0xb4f531(0x1bb)](),console[_0xb4f531(0x1bb)](a134_0x1ed3e7['green'][_0xb4f531(0x1c1)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0xb4f531(0x1bb)](),console['log'](_0xb4f531(0x1be)+a134_0x1ed3e7['green'][_0xb4f531(0x1c1)](CLI_BIN_NAME+'\x20--help')+_0xb4f531(0x1c3)),console['log']();}
|
package/lib/skills/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5b0a6b,_0x9fe8cf){const _0x1eaad1=a135_0x414d,_0x436b73=_0x5b0a6b();while(!![]){try{const _0x526e82=parseInt(_0x1eaad1(0xea))/0x1+parseInt(_0x1eaad1(0xde))/0x2*(-parseInt(_0x1eaad1(0xd7))/0x3)+-parseInt(_0x1eaad1(0xe6))/0x4*(-parseInt(_0x1eaad1(0xd5))/0x5)+-parseInt(_0x1eaad1(0xe7))/0x6+-parseInt(_0x1eaad1(0xcf))/0x7*(-parseInt(_0x1eaad1(0xdd))/0x8)+parseInt(_0x1eaad1(0xca))/0x9+-parseInt(_0x1eaad1(0xe9))/0xa;if(_0x526e82===_0x9fe8cf)break;else _0x436b73['push'](_0x436b73['shift']());}catch(_0x1cc670){_0x436b73['push'](_0x436b73['shift']());}}}(a135_0x4c41,0xb2ab1));import{logger}from'../utils/logger.js';function a135_0x4c41(){const _0x385099=['\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a','7555797hTOKDw','Error:\x20Unsupported\x20command:\x20','dangerously-bff-save','不支持的命令:\x20','log','7KyLTiE','skill','\x0aAvailable\x20commands:','from','help','-$1','2292340lSCcjJ','\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','225FrLcUG','argv','enable-bff-save','length','push','startsWith','6658712xkaOXh','4578hGLpBn','error','entries','setLogPath','\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','has','slice','exit','12oQhnQf','1636968FZqloO','toLowerCase','28121070WSOcwH','941159LHsDgg','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','\x20skill\x20--help\x0a\x20\x20','includes','Equivalent\x20command:\x20','--help'];a135_0x4c41=function(){return _0x385099;};return a135_0x4c41();}import{CLI_BIN_NAME}from'../constant/cli.js';function a135_0x414d(_0x4cea3f,_0x2d9523){_0x4cea3f=_0x4cea3f-0xc7;const _0x4c4163=a135_0x4c41();let _0x414d44=_0x4c4163[_0x4cea3f];return _0x414d44;}export function camelCaseFlagsToKebab(_0x239667){const _0xe52d21=a135_0x414d,_0x3ca11f=[];for(const [_0xf64e2c,_0x5db73b]of Object[_0xe52d21(0xe0)](_0x239667)){if(_0x5db73b===!![]){const _0x42fb53=_0xf64e2c['replace'](/([A-Z])/g,_0xe52d21(0xd4))[_0xe52d21(0xe8)]();_0x3ca11f[_0xe52d21(0xdb)](_0x42fb53);}}return _0x3ca11f;}export function parseDynamicFlags(){const _0x5f2229=a135_0x414d,_0x3aea96=[];for(let _0x44310f=0x3;_0x44310f<process[_0x5f2229(0xd8)][_0x5f2229(0xda)];_0x44310f++){const _0x5c0e3d=process['argv'][_0x44310f];if(_0x5c0e3d&&_0x5c0e3d[_0x5f2229(0xdc)]('--')){const _0x277dd0=_0x5c0e3d[_0x5f2229(0xe4)](0x2);_0x277dd0&&!_0x277dd0[_0x5f2229(0xed)]('=')&&_0x3aea96[_0x5f2229(0xdb)](_0x277dd0);}}return _0x3aea96;}export function getAllProvidedFlags(_0x266139){const _0x1a5732=camelCaseFlagsToKebab(_0x266139),_0x44d469=parseDynamicFlags(),_0x54d5fa=new Set([..._0x1a5732,..._0x44d469]);return Array['from'](_0x54d5fa);}export function normalizeLegacyBffSaveFlags(_0x17206b){const _0x32b837=a135_0x414d,_0x3d26b1=new Set(_0x17206b);return _0x3d26b1[_0x32b837(0xe3)](_0x32b837(0xcc))&&_0x3d26b1['add'](_0x32b837(0xd9)),Array[_0x32b837(0xd2)](_0x3d26b1);}const SKILLS_INSTALL_COMMAND_LINE='npx\x20-y\x20skills\x20add\x20lovrabet/rabetbase\x20--global';export async function skillsCommand(_0x1c9f86,_0x28fde4,_0x8b61bb){const _0x573b27=a135_0x414d;logger[_0x573b27(0xe1)](process['cwd']());if(_0x8b61bb?.[_0x573b27(0xd3)]||_0x1c9f86===_0x573b27(0xc8)){showHelp();return;}console[_0x573b27(0xdf)](_0x573b27(0xcb)+(_0x1c9f86||'(empty)')),console[_0x573b27(0xce)](_0x573b27(0xd1)),console['log']('\x20\x20'+CLI_BIN_NAME+_0x573b27(0xeb)),console[_0x573b27(0xce)]('\x20\x20'+CLI_BIN_NAME+_0x573b27(0xd6)),console[_0x573b27(0xce)](''),console[_0x573b27(0xce)](_0x573b27(0xc7)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x573b27(0xdf)](_0x573b27(0xd0),_0x573b27(0xcd)+_0x1c9f86),process[_0x573b27(0xe5)](0x1);}function showHelp(){const _0x4a0460=a135_0x414d;console[_0x4a0460(0xce)](_0x4a0460(0xe2)+CLI_BIN_NAME+_0x4a0460(0xec)+CLI_BIN_NAME+'\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE+_0x4a0460(0xc9));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a136_0x4a9f4a=a136_0x193c;(function(_0x2a76c0,_0x1d1616){const _0x29e87b=a136_0x193c,_0x2a6118=_0x2a76c0();while(!![]){try{const _0xcede2e=-parseInt(_0x29e87b(0x7a))/0x1*(parseInt(_0x29e87b(0x84))/0x2)+parseInt(_0x29e87b(0x79))/0x3+-parseInt(_0x29e87b(0x8b))/0x4*(-parseInt(_0x29e87b(0x78))/0x5)+parseInt(_0x29e87b(0x8a))/0x6+parseInt(_0x29e87b(0x86))/0x7+parseInt(_0x29e87b(0x7d))/0x8+-parseInt(_0x29e87b(0x81))/0x9;if(_0xcede2e===_0x1d1616)break;else _0x2a6118['push'](_0x2a6118['shift']());}catch(_0x57d350){_0x2a6118['push'](_0x2a6118['shift']());}}}(a136_0xfa29,0x5701b));function a136_0xfa29(){const _0x3d9d80=['yes','1903872xwLEWb','1489652SzdejB','log','exit\x20','stderr','--skill','lovrabet/lovrabet-skill','pipe','inherit','5YVbSjI','1681356eKCRyT','224947hUxQFx','unknown','status','1420440svLNQl','stdio','join','npx','13895046zMLFwn','trim','Lovrabet','2BpOAwF','skills','4882416MRlzXn','toString','stdout'];a136_0xfa29=function(){return _0x3d9d80;};return a136_0xfa29();}function a136_0x193c(_0x4a55ad,_0x5ef56e){_0x4a55ad=_0x4a55ad-0x71;const _0xfa29a2=a136_0xfa29();let _0x193ced=_0xfa29a2[_0x4a55ad];return _0x193ced;}import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const NPX_SKILLS_CLI=a136_0x4a9f4a(0x85);export const NPX_SKILLS_SUBCOMMAND_ADD='add';export const NPX_SKILLS_FLAG_SKILL=a136_0x4a9f4a(0x74);export const RABETBASE_SKILL_SOURCE=a136_0x4a9f4a(0x75);export const DEFAULT_RABETBASE_SKILL_NAME=a136_0x4a9f4a(0x83);export function buildNpxSkillsAddArgv(_0x114141=DEFAULT_RABETBASE_SKILL_NAME){return[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x114141];}export const NPX_SKILLS_ADD_COMMAND_LINE=[a136_0x4a9f4a(0x80),...buildNpxSkillsAddArgv()]['join']('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x50e30c,_0x5e84e2){const _0x3204b2=a136_0x4a9f4a;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5340b7=_0x5e84e2?.['stdio']??_0x3204b2(0x77),_0x165919=resolveNpmBin(_0x3204b2(0x80)),_0x10cfdb=buildNpxSkillsAddArgv(_0x5e84e2?.['skill']??DEFAULT_RABETBASE_SKILL_NAME),_0x1197d4=[_0x165919,..._0x10cfdb]['join']('\x20');console['log']('*\x20'+_0x1197d4);const _0x1e574d=spawnSync(_0x165919,_0x10cfdb,{'cwd':_0x50e30c,'stdio':_0x5340b7,'env':process.env,'shell':![]}),_0x88eb48=_0x1e574d[_0x3204b2(0x7c)];if(_0x88eb48===0x0)return{'ok':!![],'status':0x0};let _0x3dbe32=_0x3204b2(0x72)+(_0x88eb48??'unknown');if(_0x5340b7==='pipe'){const _0x10175d=_0x1e574d['stderr']?_0x1e574d['stderr'][_0x3204b2(0x87)]()['trim']():'',_0x49ceb6=_0x1e574d['stdout']?_0x1e574d[_0x3204b2(0x88)][_0x3204b2(0x87)]()[_0x3204b2(0x82)]():'';if(_0x10175d)_0x3dbe32=_0x10175d;else{if(_0x49ceb6)_0x3dbe32=_0x49ceb6;}}return{'ok':![],'status':_0x88eb48??null,'error':_0x3dbe32};}export function runNpxSkillsRemove(_0x375639,_0x12041d){const _0x21d822=a136_0x4a9f4a;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x20de70=_0x12041d?.[_0x21d822(0x7e)]??'inherit',_0x3ffe61=resolveNpmBin(_0x21d822(0x80)),_0x13a2d3=[NPX_FLAG_YES,NPX_SKILLS_CLI,'remove',RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x12041d?.['skill']??DEFAULT_RABETBASE_SKILL_NAME,..._0x12041d?.[_0x21d822(0x89)]?['-y']:[]],_0x4dc43b=[_0x3ffe61,..._0x13a2d3][_0x21d822(0x7f)]('\x20');console[_0x21d822(0x71)]('*\x20'+_0x4dc43b);const _0x53310a=spawnSync(_0x3ffe61,_0x13a2d3,{'cwd':_0x375639,'stdio':_0x20de70,'env':process.env,'shell':![]}),_0x825d2b=_0x53310a[_0x21d822(0x7c)];if(_0x825d2b===0x0)return{'ok':!![],'status':0x0};let _0x275bfc=_0x21d822(0x72)+(_0x825d2b??_0x21d822(0x7b));if(_0x20de70==='pipe'){const _0x562876=_0x53310a[_0x21d822(0x73)]?_0x53310a[_0x21d822(0x73)]['toString']()[_0x21d822(0x82)]():'',_0xb48189=_0x53310a[_0x21d822(0x88)]?_0x53310a[_0x21d822(0x88)]['toString']()[_0x21d822(0x82)]():'';if(_0x562876)_0x275bfc=_0x562876;else{if(_0xb48189)_0x275bfc=_0xb48189;}}return{'ok':![],'status':_0x825d2b??null,'error':_0x275bfc};}export function runNpxSkillsAddGlobal(_0x1cfefb,_0x12c5ca,_0x5b9233){const _0x3c462d=a136_0x4a9f4a;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x190a8e=_0x5b9233?.[_0x3c462d(0x7e)]??_0x3c462d(0x77),_0x29fdb8=resolveNpmBin(_0x3c462d(0x80)),_0x248baf=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x12c5ca,'--global',..._0x5b9233?.[_0x3c462d(0x89)]?['-y']:[]],_0x87caa=[_0x29fdb8,..._0x248baf][_0x3c462d(0x7f)]('\x20');console[_0x3c462d(0x71)]('*\x20'+_0x87caa);const _0x148c63=spawnSync(_0x29fdb8,_0x248baf,{'cwd':_0x1cfefb,'stdio':_0x190a8e,'env':process.env,'shell':![]}),_0x321db6=_0x148c63[_0x3c462d(0x7c)];if(_0x321db6===0x0)return{'ok':!![],'status':0x0};let _0x59dade=_0x3c462d(0x72)+(_0x321db6??_0x3c462d(0x7b));if(_0x190a8e===_0x3c462d(0x76)){const _0xed981b=_0x148c63['stderr']?_0x148c63[_0x3c462d(0x73)][_0x3c462d(0x87)]()[_0x3c462d(0x82)]():'',_0x3764c8=_0x148c63['stdout']?_0x148c63[_0x3c462d(0x88)][_0x3c462d(0x87)]()[_0x3c462d(0x82)]():'';if(_0xed981b)_0x59dade=_0xed981b;else{if(_0x3764c8)_0x59dade=_0x3764c8;}}return{'ok':![],'status':_0x321db6??null,'error':_0x59dade};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a137_0x47c3(){const _0x56796c=['rabetbase.command','126279ytcOUs','10381840LQoqxD','error','238677EyPFyK','test','16rpLNAm','service','868875HTQFbY','412218dpmFFT','command','message','durationMs','629745NNlZjF','3550314uDBxWS','[REDACTED]'];a137_0x47c3=function(){return _0x56796c;};return a137_0x47c3();}(function(_0x5985b5,_0x4e3a6d){const _0x56f5f1=a137_0x5e89,_0x26dda2=_0x5985b5();while(!![]){try{const _0x58e2b9=parseInt(_0x56f5f1(0x1a5))/0x1+parseInt(_0x56f5f1(0x1aa))/0x2+-parseInt(_0x56f5f1(0x1a2))/0x3+parseInt(_0x56f5f1(0x1a7))/0x4*(parseInt(_0x56f5f1(0x1ae))/0x5)+parseInt(_0x56f5f1(0x1af))/0x6+parseInt(_0x56f5f1(0x1a9))/0x7+-parseInt(_0x56f5f1(0x1a3))/0x8;if(_0x58e2b9===_0x4e3a6d)break;else _0x26dda2['push'](_0x26dda2['shift']());}catch(_0x4dfd10){_0x26dda2['push'](_0x26dda2['shift']());}}}(a137_0x47c3,0x4f3fb));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 a137_0x5e89(_0x4d6afc,_0x597683){_0x4d6afc=_0x4d6afc-0x1a0;const _0x47c3ee=a137_0x47c3();let _0x5e8933=_0x47c3ee[_0x4d6afc];return _0x5e8933;}function isSensitiveKey(_0x63253a){const _0x314e81=a137_0x5e89;return SENSITIVE_PATTERNS['some'](_0x1ffc9d=>_0x1ffc9d[_0x314e81(0x1a6)](_0x63253a));}function sanitizeFlags(_0x58c6ad){const _0xe21202=a137_0x5e89,_0x31eed2={};for(const [_0x88ccd9,_0x136c2c]of Object['entries'](_0x58c6ad)){isSensitiveKey(_0x88ccd9)?_0x31eed2[_0x88ccd9]=_0x136c2c!=null&&_0x136c2c!==''?_0xe21202(0x1a0):_0x136c2c:_0x31eed2[_0x88ccd9]=_0x136c2c;}return _0x31eed2;}export async function reportCommandTrace(_0x3847aa){const _0x337951=a137_0x5e89;try{const _0x2bccdd=sanitizeFlags(_0x3847aa['flags']);await sendCliTraceLog({'spanName':_0x337951(0x1a1),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x3847aa[_0x337951(0x1a8)],'command.name':_0x3847aa[_0x337951(0x1ab)],'command.flags':JSON['stringify'](_0x2bccdd),..._0x3847aa['durationMs']!=null?{'command.duration_ms':_0x3847aa[_0x337951(0x1ad)]}:{},..._0x3847aa['error']?{'command.error':_0x3847aa[_0x337951(0x1a4)]instanceof Error?_0x3847aa[_0x337951(0x1a4)][_0x337951(0x1ac)]:String(_0x3847aa[_0x337951(0x1a4)])}:{}}});}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xd0557b,_0x11b8d3){var _0x463c5c=a138_0x2dbd,_0x751485=_0xd0557b();while(!![]){try{var _0x323aa3=-parseInt(_0x463c5c(0xbf))/0x1+parseInt(_0x463c5c(0xc0))/0x2+-parseInt(_0x463c5c(0xca))/0x3+parseInt(_0x463c5c(0xcb))/0x4*(-parseInt(_0x463c5c(0xc5))/0x5)+parseInt(_0x463c5c(0xc1))/0x6*(parseInt(_0x463c5c(0xc4))/0x7)+-parseInt(_0x463c5c(0xc3))/0x8*(parseInt(_0x463c5c(0xc8))/0x9)+-parseInt(_0x463c5c(0xcc))/0xa*(-parseInt(_0x463c5c(0xbe))/0xb);if(_0x323aa3===_0x11b8d3)break;else _0x751485['push'](_0x751485['shift']());}catch(_0x5acbb4){_0x751485['push'](_0x751485['shift']());}}}(a138_0xcd6c,0xd3e33));function a138_0xcd6c(){var _0xe17034=['26785170CFCfvo','11MdHNML','1347947gVSZJn','2900718XWeVPj','1623666VhGwgx','service','265704qnNXCC','21zGskoU','6290PGwRhz','error','cli.help','162dITwaS','Failed\x20to\x20report\x20CLI\x20help\x20trace:','1539069LYOxLr','5132oZnKkS'];a138_0xcd6c=function(){return _0xe17034;};return a138_0xcd6c();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a138_0x2dbd(_0x24b679,_0x419acc){_0x24b679=_0x24b679-0xbe;var _0xcd6cd=a138_0xcd6c();var _0x2dbda8=_0xcd6cd[_0x24b679];return _0x2dbda8;}export async function reportCliHelpTrace(_0x40f67c,_0x4787cc){var _0xe60831=a138_0x2dbd;try{await sendCliTraceLog({'spanName':_0xe60831(0xc7),'logData':{'rabetbase.help.kind':_0x40f67c,..._0x4787cc?.[_0xe60831(0xc2)]&&{'rabetbase.help.service':_0x4787cc[_0xe60831(0xc2)]}}});}catch(_0x4ba219){console[_0xe60831(0xc6)](_0xe60831(0xc9),_0x4ba219);}}
|