@lovrabet/rabetbase-cli 2.1.1 → 2.1.2-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 -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
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a115_0x13845a=a115_0x4456;(function(_0x102f4f,_0x388f08){const _0x513c7d=a115_0x4456,_0xfb3454=_0x102f4f();while(!![]){try{const _0x9dbc3b=parseInt(_0x513c7d(0x1ca))/0x1*(parseInt(_0x513c7d(0x1c7))/0x2)+parseInt(_0x513c7d(0x1d5))/0x3+parseInt(_0x513c7d(0x1bc))/0x4*(-parseInt(_0x513c7d(0x1cf))/0x5)+parseInt(_0x513c7d(0x1bf))/0x6+parseInt(_0x513c7d(0x1c8))/0x7*(-parseInt(_0x513c7d(0x1d3))/0x8)+-parseInt(_0x513c7d(0x1d0))/0x9*(-parseInt(_0x513c7d(0x1c5))/0xa)+parseInt(_0x513c7d(0x1c1))/0xb;if(_0x9dbc3b===_0x388f08)break;else _0xfb3454['push'](_0xfb3454['shift']());}catch(_0x4a0fbd){_0xfb3454['push'](_0xfb3454['shift']());}}}(a115_0x1124,0xbf317));import{access,mkdir,readdir,stat}from'node:fs/promises';import{constants}from'node:fs';import{dirname,join}from'node:path';import{findHookLocationByRemoteId,snakeToCamel}from'../../core/bff/utils.js';export const SUPPORTED_BFF_TYPES=[a115_0x13845a(0x1e1),a115_0x13845a(0x1d6),a115_0x13845a(0x1d9)];export function normalizeBffType(_0x367fc4){const _0x24cba7=a115_0x13845a;if(!_0x367fc4)return undefined;const _0x118c10=_0x367fc4['trim']()[_0x24cba7(0x1c4)]();return SUPPORTED_BFF_TYPES[_0x24cba7(0x1de)](_0x118c10)?_0x118c10:undefined;}async function scanJsFilesRecursively(_0x523a95,_0x5b8d6f){const _0x51df9f=a115_0x13845a,_0x570221=[];try{const _0x5b1b6e=await readdir(_0x523a95,{'withFileTypes':!![]});for(const _0x4a378a of _0x5b1b6e){const _0x189b9b=join(_0x523a95,_0x4a378a['name']);if(_0x4a378a[_0x51df9f(0x1c9)]())_0x570221[_0x51df9f(0x1cb)](...await scanJsFilesRecursively(_0x189b9b,_0x5b8d6f+'/'+_0x4a378a[_0x51df9f(0x1d2)]));else _0x4a378a['isFile']()&&_0x4a378a[_0x51df9f(0x1d2)][_0x51df9f(0x1db)](_0x51df9f(0x1c3))&&_0x570221['push']({'lockKey':_0x5b8d6f+'/'+_0x4a378a[_0x51df9f(0x1d2)][_0x51df9f(0x1c2)](/\.js$/,''),'filePath':_0x189b9b});}}catch(_0x2c10a2){if(_0x2c10a2[_0x51df9f(0x1c6)]!==_0x51df9f(0x1ce))throw _0x2c10a2;}return _0x570221;}async function scanFlatFunctions(_0x41d030,_0x43abe6){const _0x268e98=a115_0x13845a,_0x597eb7=join(_0x41d030[_0x268e98(0x1e3)],_0x43abe6),_0x3bd6ed=await scanJsFilesRecursively(_0x597eb7,_0x43abe6);return _0x3bd6ed[_0x268e98(0x1cd)](({lockKey:_0x42d25d,filePath:_0x20995a})=>({'type':_0x43abe6,'name':_0x42d25d[_0x268e98(0x1d1)]('/')['at'](-0x1)??'','filePath':_0x20995a,'lockKey':_0x42d25d}));}async function scanHookFunctions(_0x26e730){const _0x1640bc=a115_0x13845a,_0x48fad9=join(_0x26e730['scriptsRootDir'],_0x1640bc(0x1d9)),_0x19903c=[];try{const _0x46e43f=await readdir(_0x48fad9,{'withFileTypes':!![]});for(const _0x2d3880 of _0x46e43f){if(!_0x2d3880[_0x1640bc(0x1c9)]())continue;const _0x1a2117=_0x2d3880['name'],_0x42b4f6=join(_0x48fad9,_0x1a2117),_0x132a33=await readdir(_0x42b4f6,{'withFileTypes':!![]});for(const _0x3c189a of _0x132a33){if(!_0x3c189a['isDirectory']())continue;const _0x4b642c=_0x3c189a[_0x1640bc(0x1d2)],_0x24c0a1=join(_0x42b4f6,_0x4b642c),_0x6be944=await readdir(_0x24c0a1,{'withFileTypes':!![]});for(const _0x1a216b of _0x6be944){if(!_0x1a216b[_0x1640bc(0x1c9)]())continue;const _0x430ddd=_0x1a216b['name'],_0x5459e6=join(_0x24c0a1,_0x430ddd),_0x3000d1=await readdir(_0x5459e6,{'withFileTypes':!![]});for(const _0x4fc4a8 of _0x3000d1){if(!_0x4fc4a8[_0x1640bc(0x1c0)]()||!_0x4fc4a8['name'][_0x1640bc(0x1db)]('.js'))continue;const _0x5e5219=_0x4fc4a8['name'][_0x1640bc(0x1c2)](/\.js$/,'');_0x19903c[_0x1640bc(0x1cb)]({'type':_0x1640bc(0x1d9),'name':_0x5e5219,'filePath':join(_0x5459e6,_0x4fc4a8[_0x1640bc(0x1d2)]),'lockKey':_0x1640bc(0x1df)+_0x1a2117+'/'+_0x4b642c+'/'+_0x430ddd+'/'+_0x5e5219,'alias':_0x1a2117,'operationType':_0x4b642c,'functionNode':_0x430ddd});}}}}}catch(_0x170c22){if(_0x170c22[_0x1640bc(0x1c6)]!==_0x1640bc(0x1ce))throw _0x170c22;}return _0x19903c;}function a115_0x1124(){const _0x293804=['split','name','2656TZaoDa','beforeScriptId','37950mlTEen','ENDPOINT','F_OK','afterScriptId','HOOK','after','endsWith','set','get','includes','HOOK/','functionName','COMMON','datasetCode','scriptsRootDir','before','15172myAuxl','operationType','functionNode','3227820CwIoqY','isFile','3722466kHXQSO','replace','.js','toUpperCase','4753570LOhqeS','code','1342jVzAEH','18312ksXlQQ','isDirectory','1553SCBYBW','push','scriptType','map','ENOENT','995muIOrT','9HQPriA'];a115_0x1124=function(){return _0x293804;};return a115_0x1124();}export async function scanLocalBffFunctions(_0x351a99,_0x45b811){const _0x53e69e=a115_0x13845a;if(_0x45b811===_0x53e69e(0x1e1)||_0x45b811==='ENDPOINT')return scanFlatFunctions(_0x351a99,_0x45b811);if(_0x45b811===_0x53e69e(0x1d9))return scanHookFunctions(_0x351a99);const [_0x74541a,_0x46371a,_0x2fe692]=await Promise['all']([scanFlatFunctions(_0x351a99,_0x53e69e(0x1e1)),scanFlatFunctions(_0x351a99,'ENDPOINT'),scanHookFunctions(_0x351a99)]);return[..._0x74541a,..._0x46371a,..._0x2fe692];}export function resolveLocalFilePathFromLockKey(_0x19d695,_0x536410){const _0x58232c=a115_0x13845a;return join(_0x19d695[_0x58232c(0x1e3)],..._0x536410['split']('/'))+'.js';}export function createHookLocationMap(_0xe6e4ba){const _0x4922f9=a115_0x13845a,_0x1ee88c=new Map();for(const _0x31aa58 of _0xe6e4ba){_0x31aa58[_0x4922f9(0x1d4)]&&_0x1ee88c['set'](_0x31aa58[_0x4922f9(0x1d4)],{'datasetCode':_0x31aa58[_0x4922f9(0x1e2)],'operationType':snakeToCamel(_0x31aa58[_0x4922f9(0x1bd)]),'functionNode':_0x4922f9(0x1bb)}),_0x31aa58[_0x4922f9(0x1d8)]&&_0x1ee88c[_0x4922f9(0x1dc)](_0x31aa58[_0x4922f9(0x1d8)],{'datasetCode':_0x31aa58[_0x4922f9(0x1e2)],'operationType':snakeToCamel(_0x31aa58[_0x4922f9(0x1bd)]),'functionNode':_0x4922f9(0x1da)});}return _0x1ee88c;}function a115_0x4456(_0x364eee,_0x1d5f54){_0x364eee=_0x364eee-0x1bb;const _0x112405=a115_0x1124();let _0x44568c=_0x112405[_0x364eee];return _0x44568c;}export function resolveRemoteScriptTarget(_0x535b81,_0x1dd4f6,_0x2a2ce7,_0xe152af,_0x1a48b6){const _0x212707=a115_0x13845a,_0x132c4f=normalizeBffType(_0x1dd4f6[_0x212707(0x1cc)]);if(!_0x132c4f||!_0x1dd4f6[_0x212707(0x1e0)])return null;if(_0x132c4f===_0x212707(0x1d9)){const _0x5b030f=(_0x1dd4f6['id']?_0x2a2ce7[_0x212707(0x1dd)](_0x1dd4f6['id']):undefined)??findHookLocationByRemoteId(_0xe152af,_0x1dd4f6['id']);if(!_0x5b030f)return null;const _0x28f150=_0x5b030f['alias']||_0x1a48b6[_0x212707(0x1dd)](_0x5b030f['datasetCode']),_0x26cf1e=_0x28f150??_0x5b030f['datasetCode'],_0x5eb5fa={..._0x5b030f,'alias':_0x28f150},_0x1e5a83='HOOK/'+_0x26cf1e+'/'+_0x5eb5fa[_0x212707(0x1bd)]+'/'+_0x5eb5fa[_0x212707(0x1be)]+'/'+_0x1dd4f6[_0x212707(0x1e0)];return{'lockKey':_0x1e5a83,'filePath':resolveLocalFilePathFromLockKey(_0x535b81,_0x1e5a83),'type':'HOOK','hookLocation':_0x5eb5fa};}const _0x434916=_0x132c4f+'/'+_0x1dd4f6[_0x212707(0x1e0)];return{'lockKey':_0x434916,'filePath':resolveLocalFilePathFromLockKey(_0x535b81,_0x434916),'type':_0x132c4f};}export async function ensureParentDirectory(_0x2a1787){await mkdir(dirname(_0x2a1787),{'recursive':!![]});}export async function fileExists(_0x2a66f9){const _0x460d69=a115_0x13845a;try{return await access(_0x2a66f9,constants[_0x460d69(0x1d7)]),!![];}catch{return![];}}export async function directoryExists(_0x247d86){try{const _0x14857=await stat(_0x247d86);return _0x14857['isDirectory']();}catch{return![];}}
|
package/lib/core/bff/hash.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4a2c11,_0x5b82a6){const _0x49d697=a116_0x2528,_0x3dd771=_0x4a2c11();while(!![]){try{const _0x5748c5=parseInt(_0x49d697(0xf2))/0x1+-parseInt(_0x49d697(0xea))/0x2+parseInt(_0x49d697(0xee))/0x3+-parseInt(_0x49d697(0xef))/0x4*(-parseInt(_0x49d697(0xe9))/0x5)+-parseInt(_0x49d697(0xf0))/0x6*(parseInt(_0x49d697(0xf1))/0x7)+parseInt(_0x49d697(0xe7))/0x8+-parseInt(_0x49d697(0xe8))/0x9;if(_0x5748c5===_0x5b82a6)break;else _0x3dd771['push'](_0x3dd771['shift']());}catch(_0x50f8a8){_0x3dd771['push'](_0x3dd771['shift']());}}}(a116_0x3081,0xc0a52));import{readFile}from'node:fs/promises';import a116_0xa545a6 from'node:crypto';export function computeContentHash(_0x1e8ba3){const _0x254762=a116_0x2528;return a116_0xa545a6['createHash'](_0x254762(0xe6))[_0x254762(0xeb)](_0x1e8ba3)[_0x254762(0xec)](_0x254762(0xed));}function a116_0x2528(_0x1b76cb,_0x26b4be){_0x1b76cb=_0x1b76cb-0xe6;const _0x308192=a116_0x3081();let _0x252806=_0x308192[_0x1b76cb];return _0x252806;}function a116_0x3081(){const _0x46f21e=['digest','hex','3193665JXplCv','4292724lvpSZz','6RPtUjd','8825306tTMiQq','1014546dkrzBp','md5','2688400RGPRiG','6384573BbcTFu','5EpONWw','1458206ttESav','update'];a116_0x3081=function(){return _0x46f21e;};return a116_0x3081();}export async function computeFileHash(_0x30301d){const _0xa3e9f=await readFile(_0x30301d,'utf8');return computeContentHash(_0xa3e9f);}
|
package/lib/core/bff/lock.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1f97c3,_0x753208){const _0x14b19d=a117_0x2efb,_0x4649c6=_0x1f97c3();while(!![]){try{const _0x3c9514=-parseInt(_0x14b19d(0x84))/0x1*(parseInt(_0x14b19d(0x8e))/0x2)+-parseInt(_0x14b19d(0x81))/0x3*(parseInt(_0x14b19d(0x7f))/0x4)+-parseInt(_0x14b19d(0x80))/0x5*(-parseInt(_0x14b19d(0x8a))/0x6)+parseInt(_0x14b19d(0x86))/0x7+-parseInt(_0x14b19d(0x82))/0x8*(parseInt(_0x14b19d(0x78))/0x9)+-parseInt(_0x14b19d(0x83))/0xa+parseInt(_0x14b19d(0x7c))/0xb*(parseInt(_0x14b19d(0x7a))/0xc);if(_0x3c9514===_0x753208)break;else _0x4649c6['push'](_0x4649c6['shift']());}catch(_0x12dc99){_0x4649c6['push'](_0x4649c6['shift']());}}}(a117_0x1cab,0xc99be));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';function a117_0x2efb(_0x45aa9b,_0x50eb8){_0x45aa9b=_0x45aa9b-0x76;const _0x1cab5a=a117_0x1cab();let _0x2efb6c=_0x1cab5a[_0x45aa9b];return _0x2efb6c;}function a117_0x1cab(){const _0x1fbed2=['\x22.\x20','scriptsRoot','48kLKtZT','lastSync',':\x20scriptsRoot\x20mismatch\x20—\x20','Failed\x20to\x20read\x20BFF\x20lock\x20file:\x20','10URCnGd','code','parse','ENOENT','204480sGBIRF','utf8','125616VxNbmt','Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','1298fHndbR','\x22\x20vs\x20lock\x20\x22','object','24DNaaFK','349155SjZbNy','43107IPkaoo','16rrBiGO','1203060JRyqQU','242855jcfwRP','functions','3487071mREetD','apps'];a117_0x1cab=function(){return _0x1fbed2;};return a117_0x1cab();}export function createEmptyBffLock(){return{'apps':{}};}export function ensureLockScope(_0xca77e1,_0x39a379,_0x375092,_0x3b11c2){const _0x503efb=a117_0x2efb,_0x11f818={'apps':_0xca77e1['apps']&&typeof _0xca77e1['apps']===_0x503efb(0x7e)?_0xca77e1[_0x503efb(0x87)]:{}};let _0x2e643a=_0x11f818[_0x503efb(0x87)][_0x39a379];if(!_0x2e643a)return _0x2e643a={'scriptsRoot':_0x375092,'lastSync':'','functions':{}},_0x11f818[_0x503efb(0x87)][_0x39a379]=_0x2e643a,{'lockData':_0x11f818,'appLock':_0x2e643a};if(!_0x2e643a['scriptsRoot'])_0x2e643a[_0x503efb(0x89)]=_0x375092;else{if(_0x2e643a['scriptsRoot']!==_0x375092)throw new Error(_0x3b11c2+_0x503efb(0x8c)+('current\x20\x22'+_0x375092+_0x503efb(0x7d)+_0x2e643a['scriptsRoot']+_0x503efb(0x88))+_0x503efb(0x7b));}return!_0x2e643a[_0x503efb(0x85)]&&(_0x2e643a[_0x503efb(0x85)]={}),!_0x2e643a[_0x503efb(0x8b)]&&(_0x2e643a[_0x503efb(0x8b)]=''),{'lockData':_0x11f818,'appLock':_0x2e643a};}export async function readBffLockFile(_0x5ef846){const _0x2803bb=a117_0x2efb;try{const _0x10563f=await readFile(_0x5ef846,'utf8'),_0x1024ef=JSON[_0x2803bb(0x76)](_0x10563f);return{'apps':_0x1024ef[_0x2803bb(0x87)]&&typeof _0x1024ef[_0x2803bb(0x87)]===_0x2803bb(0x7e)?_0x1024ef[_0x2803bb(0x87)]:{}};}catch(_0x45cf71){if(_0x45cf71[_0x2803bb(0x8f)]===_0x2803bb(0x77))return null;throw new Error(_0x2803bb(0x8d)+String(_0x45cf71));}}export async function writeBffLockFile(_0x35cadd,_0x2163c0){const _0x146a1d=a117_0x2efb;await mkdir(dirname(_0x35cadd),{'recursive':!![]}),await writeFile(_0x35cadd,JSON['stringify'](_0x2163c0,null,0x2),_0x146a1d(0x79));}
|
package/lib/core/bff/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1a29ef,_0xcd0c52){const _0x1d8e8a=a119_0x251d,_0x532526=_0x1a29ef();while(!![]){try{const _0x1b6c6b=-parseInt(_0x1d8e8a(0x11b))/0x1+parseInt(_0x1d8e8a(0x126))/0x2+parseInt(_0x1d8e8a(0x114))/0x3*(-parseInt(_0x1d8e8a(0x112))/0x4)+parseInt(_0x1d8e8a(0x121))/0x5+parseInt(_0x1d8e8a(0x125))/0x6*(parseInt(_0x1d8e8a(0x11d))/0x7)+parseInt(_0x1d8e8a(0x119))/0x8+parseInt(_0x1d8e8a(0x117))/0x9*(-parseInt(_0x1d8e8a(0x123))/0xa);if(_0x1b6c6b===_0xcd0c52)break;else _0x532526['push'](_0x532526['shift']());}catch(_0x217e3e){_0x532526['push'](_0x532526['shift']());}}}(a119_0x4f8e,0xb5c70));export function snakeToCamel(_0x453e32){const _0x25a643=a119_0x251d;return _0x453e32[_0x25a643(0x120)]()[_0x25a643(0x11a)](/_([a-z])/g,(_0x5f3c1e,_0x25129b)=>_0x25129b[_0x25a643(0x113)]());}export function findHookLocationByRemoteId(_0x520f26,_0x3c6810){const _0x512956=a119_0x251d;if(!_0x3c6810)return undefined;for(const _0x2d2733 of Object['values'](_0x520f26)){if(_0x2d2733[_0x512956(0x115)]===_0x3c6810&&_0x2d2733[_0x512956(0x116)]&&_0x2d2733[_0x512956(0x118)]&&_0x2d2733[_0x512956(0x122)])return{'datasetCode':_0x2d2733[_0x512956(0x116)],'operationType':_0x2d2733[_0x512956(0x118)],'functionNode':_0x2d2733[_0x512956(0x122)]};}return undefined;}export function extractScriptDescription(_0x242396){const _0x429d16=a119_0x251d,_0x4ebd3d=_0x242396[_0x429d16(0x124)](/\[\s*脚本描述\s*]\s*(.+)/);return _0x4ebd3d?.[0x1]?.['trim']()||undefined;}function a119_0x251d(_0x674e13,_0x415066){_0x674e13=_0x674e13-0x112;const _0x4f8ed7=a119_0x4f8e();let _0x251d6f=_0x4f8ed7[_0x674e13];return _0x251d6f;}function a119_0x4f8e(){const _0x150214=['234ZZqUIM','operationType','8111072mnmkxT','replace','1070481UXjeHf','before','10146017IWUsAP','after','test','toLowerCase','3003990xQPmFb','functionNode','573530uixrhq','match','6Cloijb','2773174XmIKxD','352148VwTxkk','toUpperCase','39NILZNX','remoteId','datasetCode'];a119_0x4f8e=function(){return _0x150214;};return a119_0x4f8e();}export function isValidBffFunctionName(_0x5bb3b9){const _0x34940c=a119_0x251d;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0x34940c(0x11f)](_0x5bb3b9);}export function normalizeHookFunctionNode(_0x4372be){const _0x1bf4e7=a119_0x251d;if(!_0x4372be)return undefined;const _0x2dd885=_0x4372be['trim']()['toLowerCase']();if(_0x2dd885===_0x1bf4e7(0x11c)||_0x2dd885===_0x1bf4e7(0x11e))return _0x2dd885;return undefined;}
|
package/lib/core/db-resolver.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a120_0x1bc8(_0x2db305,_0x1c94d4){_0x2db305=_0x2db305-0x1c5;const _0x2ed063=a120_0x2ed0();let _0x1bc892=_0x2ed063[_0x2db305];return _0x1bc892;}(function(_0x3b369a,_0x408996){const _0x47abce=a120_0x1bc8,_0x236bb4=_0x3b369a();while(!![]){try{const _0x1c74e1=parseInt(_0x47abce(0x1d0))/0x1*(parseInt(_0x47abce(0x1da))/0x2)+parseInt(_0x47abce(0x1d4))/0x3*(parseInt(_0x47abce(0x1d1))/0x4)+-parseInt(_0x47abce(0x1ce))/0x5*(parseInt(_0x47abce(0x1e1))/0x6)+-parseInt(_0x47abce(0x1dd))/0x7+parseInt(_0x47abce(0x1e0))/0x8*(parseInt(_0x47abce(0x1d8))/0x9)+parseInt(_0x47abce(0x1d5))/0xa*(parseInt(_0x47abce(0x1dc))/0xb)+-parseInt(_0x47abce(0x1cd))/0xc;if(_0x1c74e1===_0x408996)break;else _0x236bb4['push'](_0x236bb4['shift']());}catch(_0x5e67a3){_0x236bb4['push'](_0x236bb4['shift']());}}}(a120_0x2ed0,0x30ab4));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x53b99c){const _0x163bc3=a120_0x1bc8;if(cache[_0x163bc3(0x1d2)](_0x53b99c))return cache[_0x163bc3(0x1cb)](_0x53b99c);const _0x42f292=await listDatasets(_0x53b99c),_0x1048b1=new Map();for(const _0x333b17 of _0x42f292){const _0x14c65c=_0x333b17[_0x163bc3(0x1c7)];_0x14c65c?.[_0x163bc3(0x1c8)]!=null&&_0x1048b1[_0x163bc3(0x1d3)](_0x14c65c[_0x163bc3(0x1c8)],_0x14c65c[_0x163bc3(0x1c9)]??'db-'+_0x14c65c[_0x163bc3(0x1c8)]);}const _0x3013d9=[..._0x1048b1[_0x163bc3(0x1d6)]()][_0x163bc3(0x1de)](([_0x4275cd,_0x2f2676])=>({'dbId':_0x4275cd,'dbName':_0x2f2676}));return cache[_0x163bc3(0x1d3)](_0x53b99c,_0x3013d9),_0x3013d9;}export async function resolveDb(_0x169131,_0x29c5dc){const _0x36faf9=a120_0x1bc8,_0x46ae8d=await listDatabases(_0x169131);if(_0x46ae8d[_0x36faf9(0x1d9)]===0x0)return{'resolved':[],'error':'No\x20linked\x20databases\x20found\x20for\x20this\x20app.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.'};if(!_0x29c5dc)return{'resolved':_0x46ae8d};const _0x436c58=Number(_0x29c5dc);if(!Number[_0x36faf9(0x1d7)](_0x436c58)){const _0x5e98b8=_0x46ae8d[_0x36faf9(0x1c5)](_0x5e8fad=>_0x5e8fad[_0x36faf9(0x1c8)]===_0x436c58);if(_0x5e98b8)return{'resolved':[_0x5e98b8]};}const _0xed8a3e=_0x29c5dc[_0x36faf9(0x1cf)](),_0x4a0c0e=_0x46ae8d['filter'](_0x5741bc=>_0x5741bc[_0x36faf9(0x1c9)][_0x36faf9(0x1cf)]()['includes'](_0xed8a3e));if(_0x4a0c0e[_0x36faf9(0x1d9)]>0x0)return{'resolved':_0x4a0c0e};const _0x46b67b=_0x46ae8d['map'](_0x52e75e=>_0x52e75e['dbName']+'\x20('+_0x52e75e[_0x36faf9(0x1c8)]+')')['join'](',\x20');return{'resolved':[],'error':_0x36faf9(0x1ca)+_0x29c5dc+_0x36faf9(0x1db)+_0x46b67b};}export async function resolveOneDb(_0x59bc30,_0x239da7){const _0x58cda7=a120_0x1bc8,{resolved:_0x22d28a,error:_0x786c03}=await resolveDb(_0x59bc30,_0x239da7);if(_0x786c03)return{'db':null,'error':_0x786c03};if(_0x22d28a[_0x58cda7(0x1d9)]===0x1)return{'db':_0x22d28a[0x0]};if(!_0x239da7){const _0x4ce97e=_0x22d28a[_0x58cda7(0x1de)](_0xf17fa5=>_0xf17fa5[_0x58cda7(0x1c9)]+'\x20('+_0xf17fa5[_0x58cda7(0x1c8)]+')')[_0x58cda7(0x1c6)](',\x20');return{'db':null,'error':'Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20'+_0x4ce97e};}const _0x57b2d2=_0x22d28a[_0x58cda7(0x1de)](_0x41ff2e=>_0x41ff2e[_0x58cda7(0x1c9)]+'\x20('+_0x41ff2e['dbId']+')')[_0x58cda7(0x1c6)](',\x20');return{'db':null,'error':'\x22'+_0x239da7+_0x58cda7(0x1cc)+_0x57b2d2+_0x58cda7(0x1df)};}function a120_0x2ed0(){const _0x46a70=['336864QFiXAU','5ymlxpF','toLowerCase','1513IcnlXH','60SSESbD','has','set','74106JHmctQ','60MSRVKD','entries','isNaN','680301EqYVDd','length','30vKYGEJ','\x22.\x20Available:\x20','253066WmObaI','1740550etkrmc','map','.\x20Be\x20more\x20specific.','24MGYXXz','1691748XBpVhG','find','join','dbtableConfig','dbId','dbName','No\x20database\x20matching\x20\x22','get','\x22\x20matches\x20multiple\x20databases:\x20'];a120_0x2ed0=function(){return _0x46a70;};return a120_0x2ed0();}export async function getDbName(_0x418516,_0x112ca1){const _0x3867d6=a120_0x1bc8,_0x1ff037=await listDatabases(_0x418516);return _0x1ff037[_0x3867d6(0x1c5)](_0x3defb5=>_0x3defb5['dbId']===_0x112ca1)?.['dbName'];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2429cf,_0x1a1c0d){const _0x2b3282=a121_0x3aa1,_0x292d28=_0x2429cf();while(!![]){try{const _0x36c182=-parseInt(_0x2b3282(0x16e))/0x1+-parseInt(_0x2b3282(0x15a))/0x2+parseInt(_0x2b3282(0x15c))/0x3*(parseInt(_0x2b3282(0x178))/0x4)+parseInt(_0x2b3282(0x179))/0x5*(parseInt(_0x2b3282(0x160))/0x6)+parseInt(_0x2b3282(0x17a))/0x7*(parseInt(_0x2b3282(0x168))/0x8)+-parseInt(_0x2b3282(0x157))/0x9*(parseInt(_0x2b3282(0x172))/0xa)+parseInt(_0x2b3282(0x167))/0xb*(parseInt(_0x2b3282(0x169))/0xc);if(_0x36c182===_0x1a1c0d)break;else _0x292d28['push'](_0x292d28['shift']());}catch(_0x1f1e88){_0x292d28['push'](_0x292d28['shift']());}}}(a121_0x3b16,0x7a2be));function a121_0x3b16(){const _0x24bbb1=['1947165UkaOvZ','119EEPECo','match','type','2169jsowTh','DELETE','replace','69482oUEKkK','test','30Bnyqwp','split','push','WITH','6sdrKik','matchAll','SELECT','length','UPDATE','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','\x20query\x20targeting\x20','22hzwCBI','91352tZTtqn','1625124WRkRRA','includes','UNKNOWN','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','add','649871xRcWDk','startsWith','unknown\x20table(s)','join','25540pMdJjH','reason','trim','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','INSERT','DDL','378452ccYDIr'];a121_0x3b16=function(){return _0x24bbb1;};return a121_0x3b16();}export function detectSqlType(_0x12b8bc){const _0x520268=a121_0x3aa1;if(!_0x12b8bc?.[_0x520268(0x174)]())return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![],'reason':'SQL\x20content\x20is\x20empty'};const _0x2e3f6a=_0x12b8bc[_0x520268(0x159)](/#\{[^}]*\}/g,'?')[_0x520268(0x159)](/\$\{[^}]*\}/g,'?')[_0x520268(0x159)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x520268(0x159)](/\/\*[\s\S]*?\*\//g,'')['trim'](),_0x5ba8f7=_0x2e3f6a[_0x520268(0x15d)]('\x0a');let _0x11f862='';for(const _0x4b0835 of _0x5ba8f7){const _0x55d388=_0x4b0835[_0x520268(0x174)]();if(!_0x55d388||_0x55d388[_0x520268(0x16f)]('--')||_0x55d388[_0x520268(0x16f)]('/*'))continue;_0x11f862=_0x55d388;break;}const _0x4f7167=_0x11f862['toUpperCase']();if(_0x4f7167[_0x520268(0x16f)](_0x520268(0x162))||_0x4f7167[_0x520268(0x16f)](_0x520268(0x15f))){const _0x7a89e1=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x520268(0x15b)](_0x2e3f6a);return{'type':_0x520268(0x162),'isSelectOnly':!_0x7a89e1,'isDangerous':_0x7a89e1,'reason':_0x7a89e1?_0x520268(0x16c):undefined};}if(_0x4f7167[_0x520268(0x16f)](_0x520268(0x176)))return{'type':'INSERT','isSelectOnly':![],'isDangerous':![]};if(_0x4f7167[_0x520268(0x16f)]('UPDATE'))return{'type':_0x520268(0x164),'isSelectOnly':![],'isDangerous':![]};if(_0x4f7167['startsWith'](_0x520268(0x158)))return{'type':'DELETE','isSelectOnly':![],'isDangerous':!![],'reason':'DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save'};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x520268(0x15b)](_0x4f7167))return{'type':_0x520268(0x177),'isSelectOnly':![],'isDangerous':!![],'reason':'DDL\x20statements\x20are\x20blocked\x20from\x20auto-save'};return{'type':_0x520268(0x16b),'isSelectOnly':![],'isDangerous':![]};}function a121_0x3aa1(_0x1f11a8,_0x7882a4){_0x1f11a8=_0x1f11a8-0x156;const _0x3b1679=a121_0x3b16();let _0x3aa1b1=_0x3b1679[_0x1f11a8];return _0x3aa1b1;}function extractTables(_0x4a81b2){const _0x1250b6=a121_0x3aa1,_0xde4fd=_0x4a81b2[_0x1250b6(0x159)](/#\{[^}]*\}/g,'?')[_0x1250b6(0x159)](/\$\{[^}]*\}/g,'?')[_0x1250b6(0x159)](/'[^']*'/g,'\x27\x27')[_0x1250b6(0x159)](/--.*$/gm,'')[_0x1250b6(0x159)](/\/\*[\s\S]*?\*\//g,''),_0xf1f7d1=[],_0x1b24aa=_0xde4fd['match'](/FROM\s+([^\s,)(]+)/i);if(_0x1b24aa?.[0x1])_0xf1f7d1[_0x1250b6(0x15e)](_0x1b24aa[0x1][_0x1250b6(0x159)](/[`"]/g,''));for(const _0x5c1c85 of _0xde4fd[_0x1250b6(0x161)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x197ae5=_0x5c1c85[0x1]?.[_0x1250b6(0x159)](/[`"]/g,'');if(_0x197ae5&&!_0xf1f7d1[_0x1250b6(0x16a)](_0x197ae5))_0xf1f7d1[_0x1250b6(0x15e)](_0x197ae5);}const _0x557e37=_0xde4fd['match'](/INTO\s+([^\s(]+)/i);if(_0x557e37?.[0x1]){const _0x2dedb0=_0x557e37[0x1][_0x1250b6(0x159)](/[`"]/g,'');if(!_0xf1f7d1[_0x1250b6(0x16a)](_0x2dedb0))_0xf1f7d1[_0x1250b6(0x15e)](_0x2dedb0);}const _0x5bc1a8=_0xde4fd[_0x1250b6(0x17b)](/UPDATE\s+([^\s,)(]+)/i);if(_0x5bc1a8?.[0x1]){const _0x10ace4=_0x5bc1a8[0x1][_0x1250b6(0x159)](/[`"]/g,'');if(!_0xf1f7d1['includes'](_0x10ace4))_0xf1f7d1[_0x1250b6(0x15e)](_0x10ace4);}return _0xf1f7d1;}function extractParameters(_0x1f818b){const _0xbd75ab=a121_0x3aa1,_0x41d1d0=new Set();for(const _0x50d6aa of _0x1f818b[_0xbd75ab(0x161)](/#\{(\w+)\}/g))if(_0x50d6aa[0x1])_0x41d1d0['add'](_0x50d6aa[0x1]);for(const _0x56c8fb of _0x1f818b[_0xbd75ab(0x161)](/\$\{(\w+)\}/g))if(_0x56c8fb[0x1])_0x41d1d0[_0xbd75ab(0x16d)](_0x56c8fb[0x1]);return Array['from'](_0x41d1d0);}export function validateSql(_0x381830){const _0x45f0e1=a121_0x3aa1,_0x4730ed=detectSqlType(_0x381830),_0xce87f9=extractTables(_0x381830),_0x5bdcda=extractParameters(_0x381830);if(_0x4730ed['isDangerous'])return{'valid':![],'sqlType':_0x4730ed,'tables':_0xce87f9,'parameters':_0x5bdcda,'message':_0x4730ed[_0x45f0e1(0x173)]||_0x4730ed[_0x45f0e1(0x156)]+_0x45f0e1(0x175)};if(_0x4730ed['type']==='UNKNOWN')return{'valid':![],'sqlType':_0x4730ed,'tables':_0xce87f9,'parameters':_0x5bdcda,'message':_0x45f0e1(0x165)};return{'valid':!![],'sqlType':_0x4730ed,'tables':_0xce87f9,'parameters':_0x5bdcda,'message':_0x4730ed[_0x45f0e1(0x156)]+_0x45f0e1(0x166)+(_0xce87f9[_0x45f0e1(0x163)]?_0xce87f9['join'](',\x20'):_0x45f0e1(0x170))+(_0x5bdcda[_0x45f0e1(0x163)]?'\x20with\x20parameters:\x20'+_0x5bdcda[_0x45f0e1(0x171)](',\x20'):'')};}
|
package/lib/errors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a122_0x48c4(_0xdc062,_0x130f0c){_0xdc062=_0xdc062-0x90;const _0x2bd513=a122_0x2bd5();let _0x48c4e4=_0x2bd513[_0xdc062];return _0x48c4e4;}const a122_0x497f07=a122_0x48c4;(function(_0x68b2eb,_0x346222){const _0x488c55=a122_0x48c4,_0x1e227c=_0x68b2eb();while(!![]){try{const _0x232d7f=-parseInt(_0x488c55(0x95))/0x1+parseInt(_0x488c55(0x90))/0x2+-parseInt(_0x488c55(0x98))/0x3*(parseInt(_0x488c55(0x94))/0x4)+-parseInt(_0x488c55(0x9d))/0x5+-parseInt(_0x488c55(0x9e))/0x6*(-parseInt(_0x488c55(0x92))/0x7)+parseInt(_0x488c55(0x91))/0x8+-parseInt(_0x488c55(0x9b))/0x9;if(_0x232d7f===_0x346222)break;else _0x1e227c['push'](_0x1e227c['shift']());}catch(_0x4b924f){_0x1e227c['push'](_0x1e227c['shift']());}}}(a122_0x2bd5,0x39542));function a122_0x2bd5(){const _0x526c55=['18qdLsyA','835226IrQBRH','1640760raFvas','856429eNMSOk','Tip:\x20`','32392oKviPk','42152hSlXkZ','Set\x20appcode\x20via\x20`','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','69DzUqaW','\x0a\x20\x20\x20\x20\x20\x20\x20','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','1642689BYBiXW','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','1720020liMxia'];a122_0x2bd5=function(){return _0x526c55;};return a122_0x2bd5();}import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':'Run\x20`'+CLI_BIN_NAME+'\x20auth`\x20to\x20login\x20first.','configMissingHint':[a122_0x497f07(0x96)+CLI_BIN_NAME+a122_0x497f07(0x9a),a122_0x497f07(0x93)+CLI_BIN_NAME+a122_0x497f07(0x9c)]['join'](a122_0x497f07(0x99)),'notInProjectHint':a122_0x497f07(0x97)});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a123_0x5287(_0x294265,_0x280d6d){_0x294265=_0x294265-0x105;var _0x4513d7=a123_0x4513();var _0x528706=_0x4513d7[_0x294265];return _0x528706;}(function(_0x4cec5c,_0x33d2e6){var _0x4df988=a123_0x5287,_0x5712b6=_0x4cec5c();while(!![]){try{var _0x10b8bd=-parseInt(_0x4df988(0x109))/0x1*(parseInt(_0x4df988(0x106))/0x2)+parseInt(_0x4df988(0x10c))/0x3+-parseInt(_0x4df988(0x10e))/0x4*(-parseInt(_0x4df988(0x107))/0x5)+-parseInt(_0x4df988(0x10d))/0x6+-parseInt(_0x4df988(0x10b))/0x7+-parseInt(_0x4df988(0x10a))/0x8+parseInt(_0x4df988(0x108))/0x9*(parseInt(_0x4df988(0x105))/0xa);if(_0x10b8bd===_0x33d2e6)break;else _0x5712b6['push'](_0x5712b6['shift']());}catch(_0x540671){_0x5712b6['push'](_0x5712b6['shift']());}}}(a123_0x4513,0x1ba56));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a123_0x4513(){var _0x26d7c6=['411484FSCHzN','3765iIZVHI','18126sraZKy','1iyLKKp','63848fpehqX','1227170sELwLP','674865UfdVpB','919530SzAcFD','308EefEXK','1850xFWkPN'];a123_0x4513=function(){return _0x26d7c6;};return a123_0x4513();}import{buildAllFlags as a123_0x5c98d2}from'@lovrabet/cli-framework';export function buildAllFlags(_0x12eace){return a123_0x5c98d2(_0x12eace,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
|
package/lib/framework/flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a124_0x24a041=a124_0x37bc;(function(_0x40ddb5,_0x8e8f75){const _0x66a0ba=a124_0x37bc,_0x25d93c=_0x40ddb5();while(!![]){try{const _0x25df95=parseInt(_0x66a0ba(0x95))/0x1*(parseInt(_0x66a0ba(0x9d))/0x2)+-parseInt(_0x66a0ba(0x99))/0x3*(-parseInt(_0x66a0ba(0x9f))/0x4)+-parseInt(_0x66a0ba(0x9e))/0x5*(parseInt(_0x66a0ba(0x96))/0x6)+parseInt(_0x66a0ba(0x9c))/0x7+-parseInt(_0x66a0ba(0x98))/0x8+parseInt(_0x66a0ba(0x9a))/0x9+-parseInt(_0x66a0ba(0x97))/0xa;if(_0x25df95===_0x8e8f75)break;else _0x25d93c['push'](_0x25d93c['shift']());}catch(_0x41efd7){_0x25d93c['push'](_0x25d93c['shift']());}}}(a124_0x3b6a,0x4111c));function a124_0x37bc(_0x156fb2,_0x13d18a){_0x156fb2=_0x156fb2-0x95;const _0x3b6a0e=a124_0x3b6a();let _0x37bc9e=_0x3b6a0e[_0x156fb2];return _0x37bc9e;}import{createFlagHelpers}from'@lovrabet/cli-framework';function a124_0x3b6a(){const _0xe70e60=['19540BFxlQr','1225335nPtwho','28peisog','parseFlags','31peDVvx','12mNnrnl','1824250iMVIJy','129240EEoUhc','84291FPyqko','915903OjNFsM','validateFlags','2477454ehocuQ'];a124_0x3b6a=function(){return _0xe70e60;};return a124_0x3b6a();}import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a124_0x24a041(0xa0)];export const validateFlags=helpers[a124_0x24a041(0x9b)];
|
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
|
+
function a125_0x5d4a(){const _0x511edd=['1059432ipwVBm','generateServiceHelp','1895934bHyZJO','119WhNgMS','generateCommandHelp','5466xNrdWX','generateFullHelp','1dWsFbu','5530nvKnfa','393056CmZJUL','22082159fFDJlV','6985vKihpA','23490wHBHlD','\x20project\x20init`\x20or\x20--appcode).','4669744XhthBu'];a125_0x5d4a=function(){return _0x511edd;};return a125_0x5d4a();}const a125_0xa41b40=a125_0x4606;(function(_0x3b8597,_0x7e170f){const _0x154478=a125_0x4606,_0x597083=_0x3b8597();while(!![]){try{const _0x5a18f5=parseInt(_0x154478(0x10f))/0x1*(parseInt(_0x154478(0x10a))/0x2)+-parseInt(_0x154478(0x108))/0x3+parseInt(_0x154478(0x107))/0x4+parseInt(_0x154478(0x104))/0x5*(-parseInt(_0x154478(0x10d))/0x6)+-parseInt(_0x154478(0x10b))/0x7*(-parseInt(_0x154478(0x111))/0x8)+parseInt(_0x154478(0x105))/0x9*(parseInt(_0x154478(0x110))/0xa)+-parseInt(_0x154478(0x112))/0xb;if(_0x5a18f5===_0x7e170f)break;else _0x597083['push'](_0x597083['shift']());}catch(_0x4c37c7){_0x597083['push'](_0x597083['shift']());}}}(a125_0x5d4a,0xb9b79));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';function a125_0x4606(_0x3e0117,_0x508249){_0x3e0117=_0x3e0117-0x104;const _0x5d4a96=a125_0x5d4a();let _0x460638=_0x5d4a96[_0x3e0117];return _0x460638;}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':_0x112381=>serviceGroups['get'](_0x112381),'buildAllFlags':buildAllFlags,'appPrerequisiteText':'Requires\x20appcode\x20(set\x20via\x20`'+CLI_BIN_NAME+a125_0xa41b40(0x106),'serviceUsageSuffix':'\x20[args]\x20[flags]','includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x386fa0){const _0x9631df=a125_0xa41b40;return generators[_0x9631df(0x10c)](_0x386fa0);}export const generateServiceHelp=generators[a125_0xa41b40(0x109)];export const generateFullHelp=generators[a125_0xa41b40(0x10e)];
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3111dd,_0x1f3f76){var _0x1c4fd2=a126_0x6be9,_0x5074fd=_0x3111dd();while(!![]){try{var _0x378164=parseInt(_0x1c4fd2(0x1bb))/0x1*(parseInt(_0x1c4fd2(0x1b8))/0x2)+-parseInt(_0x1c4fd2(0x1bf))/0x3+-parseInt(_0x1c4fd2(0x1b9))/0x4*(parseInt(_0x1c4fd2(0x1c0))/0x5)+-parseInt(_0x1c4fd2(0x1bc))/0x6*(-parseInt(_0x1c4fd2(0x1b7))/0x7)+-parseInt(_0x1c4fd2(0x1bd))/0x8+parseInt(_0x1c4fd2(0x1be))/0x9*(parseInt(_0x1c4fd2(0x1b6))/0xa)+parseInt(_0x1c4fd2(0x1ba))/0xb;if(_0x378164===_0x1f3f76)break;else _0x5074fd['push'](_0x5074fd['shift']());}catch(_0x5e9715){_0x5074fd['push'](_0x5074fd['shift']());}}}(a126_0x452e,0x1bbe3));export{runCommand}from'../framework/runner.js';function a126_0x6be9(_0x565d70,_0x1b4073){_0x565d70=_0x565d70-0x1b6;var _0x452e75=a126_0x452e();var _0x6be961=_0x452e75[_0x565d70];return _0x6be961;}export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';function a126_0x452e(){var _0x30f49b=['227170ZKxBpn','1504idOmXO','1869472yJxrsy','1PhehqV','150znxIDE','1684512gwiTJi','876159XKGlTZ','308889ivjRSO','505JfXmYP','10UAXNIX','23590yZKKzP'];a126_0x452e=function(){return _0x30f49b;};return a126_0x452e();}export{riskLevelOrder}from'../framework/types.js';
|
package/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4ddb1a,_0x44b198){var _0x2014a8=a127_0x1877,_0x463b4c=_0x4ddb1a();while(!![]){try{var _0x4c9df6=-parseInt(_0x2014a8(0x135))/0x1+parseInt(_0x2014a8(0x137))/0x2*(-parseInt(_0x2014a8(0x131))/0x3)+-parseInt(_0x2014a8(0x132))/0x4+-parseInt(_0x2014a8(0x130))/0x5*(parseInt(_0x2014a8(0x12e))/0x6)+-parseInt(_0x2014a8(0x133))/0x7*(-parseInt(_0x2014a8(0x136))/0x8)+-parseInt(_0x2014a8(0x12f))/0x9+-parseInt(_0x2014a8(0x138))/0xa*(-parseInt(_0x2014a8(0x134))/0xb);if(_0x4c9df6===_0x44b198)break;else _0x463b4c['push'](_0x463b4c['shift']());}catch(_0x2c37a9){_0x463b4c['push'](_0x463b4c['shift']());}}}(a127_0x49ae,0xe5e32));function a127_0x1877(_0x49d993,_0x3d43c1){_0x49d993=_0x49d993-0x12e;var _0x49ae91=a127_0x49ae();var _0x1877ae=_0x49ae91[_0x49d993];return _0x1877ae;}function a127_0x49ae(){var _0x1d8bb5=['34120kxbPPC','4370811kmJTSD','2349508sCZXDT','10969NXoWqX','11fMQMdv','1512319FFeKxZ','6224tDNGQD','2iJjqsP','53180730sfrsxK','624tCSWbf','11963268NMCFTy'];a127_0x49ae=function(){return _0x1d8bb5;};return a127_0x49ae();}export{formatOutput}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a128_0x4789(_0x4ed0b6,_0x3986c1){_0x4ed0b6=_0x4ed0b6-0x133;var _0x2f0f12=a128_0x2f0f();var _0x478993=_0x2f0f12[_0x4ed0b6];return _0x478993;}(function(_0x3fbe94,_0x11915b){var _0xe3f91d=a128_0x4789,_0x165433=_0x3fbe94();while(!![]){try{var _0x27e9c7=-parseInt(_0xe3f91d(0x136))/0x1*(parseInt(_0xe3f91d(0x13c))/0x2)+-parseInt(_0xe3f91d(0x134))/0x3+parseInt(_0xe3f91d(0x133))/0x4*(parseInt(_0xe3f91d(0x13b))/0x5)+-parseInt(_0xe3f91d(0x137))/0x6+parseInt(_0xe3f91d(0x135))/0x7*(parseInt(_0xe3f91d(0x139))/0x8)+parseInt(_0xe3f91d(0x13a))/0x9+-parseInt(_0xe3f91d(0x138))/0xa;if(_0x27e9c7===_0x11915b)break;else _0x165433['push'](_0x165433['shift']());}catch(_0x11497d){_0x165433['push'](_0x165433['shift']());}}}(a128_0x2f0f,0x9906a));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a128_0x2f0f(){var _0x487384=['565302svFLlk','306530bLIkqa','72ycdQok','370188EBgmZh','15GUgdPe','38rMOVFx','813496YcRTsv','1784484QVQoUV','769412vbNVCB','15474wqaGrG'];a128_0x2f0f=function(){return _0x487384;};return a128_0x2f0f();}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x3567f4,_0x8ab52d){const _0x1da1b6=a129_0x1a22,_0x1a01b2=_0x3567f4();while(!![]){try{const _0x2407d0=-parseInt(_0x1da1b6(0x1d9))/0x1*(-parseInt(_0x1da1b6(0x1da))/0x2)+-parseInt(_0x1da1b6(0x1d7))/0x3+-parseInt(_0x1da1b6(0x1dd))/0x4*(-parseInt(_0x1da1b6(0x1c9))/0x5)+-parseInt(_0x1da1b6(0x1d4))/0x6*(-parseInt(_0x1da1b6(0x1c6))/0x7)+parseInt(_0x1da1b6(0x1d6))/0x8+-parseInt(_0x1da1b6(0x1cd))/0x9*(-parseInt(_0x1da1b6(0x1cc))/0xa)+-parseInt(_0x1da1b6(0x1de))/0xb;if(_0x2407d0===_0x8ab52d)break;else _0x1a01b2['push'](_0x1a01b2['shift']());}catch(_0x32fc05){_0x1a01b2['push'](_0x1a01b2['shift']());}}}(a129_0x44e8,0x28094));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';function a129_0x1a22(_0x3347d6,_0x5aa065){_0x3347d6=_0x3347d6-0x1c4;const _0x44e8fa=a129_0x44e8();let _0x1a221e=_0x44e8fa[_0x3347d6];return _0x1a221e;}function a129_0x44e8(){const _0x31e47d=['2ePqLhs','\x20api\x20pull`\x20first.','code','1098092fQmJzP','8242179LAEHjG','alias','name','1801156XYHxuH','type','validation','5joMgur','length','`\x20requires\x20either\x20--code\x20or\x20--alias.','66350BcrlOL','342IQjJeQ','Available\x20aliases:\x20','\x22.\x20','some','map','Unknown\x20alias\x20\x22','string','6EUSgRA','flags','697888rEVUjU','298971CGgqCv','.\x20Run\x20`','141737qVpjTk'];a129_0x44e8=function(){return _0x31e47d;};return a129_0x44e8();}import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x48644f,_0x165597,_0x50d960,_0x22ff2d){const _0x1e90f3=a129_0x1a22,_0x48858d=_0x48644f[_0x1e90f3(0x1d5)][_0x1e90f3(0x1d0)](_0x3fcd89=>_0x3fcd89[_0x1e90f3(0x1c5)]===_0x1e90f3(0x1dc)&&_0x3fcd89[_0x1e90f3(0x1c7)]===_0x1e90f3(0x1d3)),_0x4ee25f=_0x48644f[_0x1e90f3(0x1d5)][_0x1e90f3(0x1d0)](_0x31983b=>_0x31983b[_0x1e90f3(0x1c5)]===_0x1e90f3(0x1c4)&&_0x31983b[_0x1e90f3(0x1c7)]===_0x1e90f3(0x1d3));if(!_0x48858d||!_0x4ee25f)return;const _0x4940c9=_0x165597[_0x1e90f3(0x1dc)]?String(_0x165597[_0x1e90f3(0x1dc)]):'',_0x1f543b=_0x165597[_0x1e90f3(0x1c4)]?String(_0x165597['alias']):'';if(!_0x4940c9&&!_0x1f543b)throw CliErrors[_0x1e90f3(0x1c8)]('`'+_0x22ff2d+_0x1e90f3(0x1cb));if(_0x1f543b&&!_0x4940c9){const _0x3c665d=resolveAlias(_0x50d960,_0x1f543b);if(!_0x3c665d){const _0x3814cd=listAliases(_0x50d960)[_0x1e90f3(0x1d1)](_0x3275f1=>_0x3275f1['alias']),_0x3683f7=_0x3814cd[_0x1e90f3(0x1ca)]?_0x1e90f3(0x1ce)+_0x3814cd['join'](',\x20'):'No\x20api.ts\x20found\x20in\x20'+_0x50d960+_0x1e90f3(0x1d8)+CLI_BIN_NAME+_0x1e90f3(0x1db);throw CliErrors[_0x1e90f3(0x1c8)](_0x1e90f3(0x1d2)+_0x1f543b+_0x1e90f3(0x1cf)+_0x3683f7);}_0x165597[_0x1e90f3(0x1dc)]=_0x3c665d;}}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a130_0x4e77ba=a130_0x1d81;(function(_0x5feef4,_0x338d71){const _0x4dc2e4=a130_0x1d81,_0x516493=_0x5feef4();while(!![]){try{const _0x2ea8ed=parseInt(_0x4dc2e4(0xa4))/0x1+-parseInt(_0x4dc2e4(0xab))/0x2*(-parseInt(_0x4dc2e4(0xb5))/0x3)+-parseInt(_0x4dc2e4(0xc0))/0x4+-parseInt(_0x4dc2e4(0xae))/0x5*(-parseInt(_0x4dc2e4(0xac))/0x6)+-parseInt(_0x4dc2e4(0x9f))/0x7+-parseInt(_0x4dc2e4(0xaf))/0x8+parseInt(_0x4dc2e4(0xb8))/0x9;if(_0x2ea8ed===_0x338d71)break;else _0x516493['push'](_0x516493['shift']());}catch(_0x4e1b43){_0x516493['push'](_0x516493['shift']());}}}(a130_0x3197,0xb6ac0));function a130_0x3197(){const _0x518911=['requiresAuth','3503703LFEPkL','filter','⚠\x20\x20High-risk\x20operation:\x20','appCode','configMissing','660937jXoSFS','validation','apiDir','command','cookie','mergedCli','has','46qcTrXT','1350534IGoPPp','../core/api-client.js','5QCIdEM','7536456DRqzNH','explicitAppName','isNonInteractive','authRequired','map','requiresAppCode','140619gtwqGy','name','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','9754659zlfXOF','pageSize','resolveApiDomain','resolveCookie','defaultVerbose','apps','appcode','Set\x20appcode\x20via\x20`','3428584BisMHs','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','verbose','defaultPageSize','cancelled'];a130_0x3197=function(){return _0x518911;};return a130_0x3197();}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';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a130_0x462a8b}from'../utils/is-non-interactive.js';function a130_0x1d81(_0x3e6019,_0x5195ba){_0x3e6019=_0x3e6019-0x9d;const _0x319796=a130_0x3197();let _0x1d812d=_0x319796[_0x3e6019];return _0x1d812d;}import{resolveAliasToCode}from'../framework/runner-alias.js';export function createPipelineEnv(_0xacb5d2,_0x9d8335,_0x3cd360=[]){const _0x496caa=a130_0x1d81;return{'rawFlags':_0x9d8335,'args':_0x3cd360,'resolveAppCode':()=>_0xacb5d2['appCode']||_0x9d8335[_0x496caa(0xbe)]||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0xacb5d2[_0x496caa(0xa8)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a130_0x462a8b(_0x9d8335),'defaultFormat':_0xacb5d2['format'],'defaultPageSize':_0xacb5d2[_0x496caa(0xb9)],'defaultVerbose':_0xacb5d2[_0x496caa(0xc2)],'apiDir':_0xacb5d2['apiDir'],'riskLevel':_0xacb5d2['riskLevel'],'selectedAppName':_0xacb5d2[_0x496caa(0xb0)],'mergedCli':{'defaultApp':_0xacb5d2['defaultApp'],'currentApp':_0xacb5d2['currentApp'],'appCode':_0xacb5d2[_0x496caa(0xa2)],'apps':_0xacb5d2[_0x496caa(0xbd)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a130_0x4e77ba(0xa0)](_0x3e0239=>PIPELINE_FLAG_NAMES[a130_0x4e77ba(0xaa)](_0x3e0239[a130_0x4e77ba(0xb6)]))[a130_0x4e77ba(0xb3)](({name:_0x33141e,type:_0x16ca35,description:_0x5aede7})=>({'name':_0x33141e,'type':_0x16ca35,'description':_0x5aede7})),'formatOutput':formatOutput,'getCommandLabel'(_0x3f7f10){const _0x27e199=a130_0x4e77ba;return CLI_BIN_NAME+'\x20'+_0x3f7f10['service']+'\x20'+_0x3f7f10[_0x27e199(0xa7)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x2b5665){return CliErrors['validation'](_0x2b5665);}},async 'prepare'(_0x56a2f8,_0x26cd18,_0x3e6b96,_0x33411d){const _0x39f3dc=a130_0x4e77ba,_0x5bb992=_0x26cd18[_0x39f3dc(0xa6)]||DEFAULT_API_DIR;resolveAliasToCode(_0x56a2f8,_0x3e6b96,_0x5bb992,_0x33411d);let _0x27786b='';if(_0x56a2f8[_0x39f3dc(0x9e)]!==![]){_0x27786b=_0x26cd18[_0x39f3dc(0xbb)]();if(!_0x27786b)throw CliErrors[_0x39f3dc(0xb2)]();const {setActiveCookie:_0x29a3c8}=await import(_0x39f3dc(0xad));_0x29a3c8(_0x27786b);}let _0x57c529='';if(_0x56a2f8[_0x39f3dc(0xb4)]!==![]){_0x57c529=_0x26cd18['resolveAppCode']()??'';if(!_0x57c529)throw CliErrors[_0x39f3dc(0xa3)](_0x39f3dc(0xbf)+CLI_BIN_NAME+_0x39f3dc(0xb7));}return{'defaults':{'booleans':{'verbose':_0x26cd18[_0x39f3dc(0xbc)]},'numbers':{'pagesize':_0x26cd18[_0x39f3dc(0xc3)]}},'extras':{'appCode':_0x57c529,'cookie':_0x27786b,'apiDomain':_0x26cd18[_0x39f3dc(0xba)](),'apiDir':_0x5bb992,'selectedAppName':_0x26cd18['selectedAppName'],'mergedCli':_0x26cd18[_0x39f3dc(0xa9)]}};},async 'confirmHighRisk'({env:_0x5f0941,commandLabel:_0x5b760f}){const _0x498447=a130_0x4e77ba;if(_0x5f0941[_0x498447(0xb1)])throw CliErrors[_0x498447(0xa5)]('High-risk\x20operation\x20`'+_0x5b760f+_0x498447(0xc1));await requireConfirmationPrompt({'lines':[_0x498447(0xa1)+_0x5b760f,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x637de=>CliErrors[_0x498447(0x9d)](_0x637de)});},async 'finalize'(){const {clearActiveCookie:_0x212a72}=await import('../core/api-client.js');_0x212a72();}};export async function runCommand(_0x5d6c15,_0x1df279){await runCommandWithAdapter(_0x5d6c15,_0x1df279,runnerAdapter);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x29c521,_0x3187db){const _0x2b5e60=a131_0x29ee,_0x13656b=_0x29c521();while(!![]){try{const _0xa2b8c9=parseInt(_0x2b5e60(0x87))/0x1+-parseInt(_0x2b5e60(0x82))/0x2*(-parseInt(_0x2b5e60(0x89))/0x3)+parseInt(_0x2b5e60(0x8a))/0x4+-parseInt(_0x2b5e60(0x83))/0x5+parseInt(_0x2b5e60(0x81))/0x6*(parseInt(_0x2b5e60(0x86))/0x7)+parseInt(_0x2b5e60(0x80))/0x8*(-parseInt(_0x2b5e60(0x84))/0x9)+-parseInt(_0x2b5e60(0x88))/0xa*(parseInt(_0x2b5e60(0x85))/0xb);if(_0xa2b8c9===_0x3187db)break;else _0x13656b['push'](_0x13656b['shift']());}catch(_0x22e876){_0x13656b['push'](_0x13656b['shift']());}}}(a131_0x5993,0xf3a8e));import{buildSchemaPayload as a131_0xd6c662}from'@lovrabet/cli-framework';function a131_0x5993(){const _0x184ccf=['3080644IbdMty','1599331EwofvA','44130GtWKmi','681avikHR','4733216cytpNh','../commands/registry.js','8kfauSV','6MkwYHw','8306gMDpKp','2868315ckEuEM','10396143nYTRKk','3586YoMAJv'];a131_0x5993=function(){return _0x184ccf;};return a131_0x5993();}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 a131_0x29ee(_0x79c8f4,_0x4346bc){_0x79c8f4=_0x79c8f4-0x7f;const _0x5993f2=a131_0x5993();let _0x29ee9d=_0x5993f2[_0x79c8f4];return _0x29ee9d;}export async function buildSchemaPayload(){const _0x1124b7=a131_0x29ee,{serviceRegistry:_0x58b606,findDefinition:_0x5b6f5a}=await import(_0x1124b7(0x7f));return a131_0xd6c662({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x58b606,'buildAllFlags':buildAllFlags,'findDefinition':_0x5b6f5a});}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a132_0x1f61(_0x18c9fa,_0x2b1948){_0x18c9fa=_0x18c9fa-0xb6;var _0x1ac129=a132_0x1ac1();var _0x1f6132=_0x1ac129[_0x18c9fa];return _0x1f6132;}(function(_0xb9e32f,_0x323f62){var _0x6e3070=a132_0x1f61,_0x4e18ed=_0xb9e32f();while(!![]){try{var _0x898dbb=-parseInt(_0x6e3070(0xbe))/0x1+parseInt(_0x6e3070(0xbf))/0x2*(parseInt(_0x6e3070(0xb9))/0x3)+-parseInt(_0x6e3070(0xbb))/0x4*(parseInt(_0x6e3070(0xbc))/0x5)+-parseInt(_0x6e3070(0xb6))/0x6+-parseInt(_0x6e3070(0xbd))/0x7*(parseInt(_0x6e3070(0xb7))/0x8)+-parseInt(_0x6e3070(0xb8))/0x9*(parseInt(_0x6e3070(0xc0))/0xa)+parseInt(_0x6e3070(0xba))/0xb;if(_0x898dbb===_0x323f62)break;else _0x4e18ed['push'](_0x4e18ed['shift']());}catch(_0x5277af){_0x4e18ed['push'](_0x4e18ed['shift']());}}}(a132_0x1ac1,0x99975));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a132_0x1ac1(){var _0xfb0aa=['33366971BDlnVC','2331860ewEqWp','10JshRJX','5327gHxCEy','271761EdueQW','1182yvHzqM','10JBdJfH','1494858ebeOir','8944zshCZR','7171686JspnFz','4722prSxBa'];a132_0x1ac1=function(){return _0xfb0aa;};return a132_0x1ac1();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a133_0x1d4e20=a133_0xff91;(function(_0x5bcb18,_0x1e9bef){const _0x109339=a133_0xff91,_0x4f7fd0=_0x5bcb18();while(!![]){try{const _0x4409fb=parseInt(_0x109339(0xf2))/0x1*(-parseInt(_0x109339(0xf7))/0x2)+-parseInt(_0x109339(0xf0))/0x3+parseInt(_0x109339(0xf9))/0x4+-parseInt(_0x109339(0xef))/0x5*(-parseInt(_0x109339(0xf6))/0x6)+parseInt(_0x109339(0xed))/0x7*(-parseInt(_0x109339(0xee))/0x8)+-parseInt(_0x109339(0xf1))/0x9+parseInt(_0x109339(0xf4))/0xa;if(_0x4409fb===_0x1e9bef)break;else _0x4f7fd0['push'](_0x4f7fd0['shift']());}catch(_0xfad7c5){_0x4f7fd0['push'](_0x4f7fd0['shift']());}}}(a133_0xfdbb,0xc855f));function a133_0xff91(_0x2fd62b,_0x46811c){_0x2fd62b=_0x2fd62b-0xec;const _0xfdbbb2=a133_0xfdbb();let _0xff913d=_0xfdbbb2[_0x2fd62b];return _0xff913d;}function a133_0xfdbb(){const _0x2a8ad8=['14606NatnVn','2026-04-12T11:09:19.712Z','5850440dINcGm','2.1.2-beta.1','3217067fmnarf','16tBcSCg','4535ysGGbo','2110851hcSjku','4077261EDhbXb','59mTHARG','v2.1.2-beta.1','6991550gOfNzl','1e3c6f5','7710MaVDru'];a133_0xfdbb=function(){return _0x2a8ad8;};return a133_0xfdbb();}export const VERSION=a133_0x1d4e20(0xec);export const GIT_TAG=a133_0x1d4e20(0xf3);export const GIT_COMMIT=a133_0x1d4e20(0xf5);export const BUILD_TIME=a133_0x1d4e20(0xf8);
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2e51b3,_0xfabc03){var _0x25f82d=a134_0x2b6a,_0x470a09=_0x2e51b3();while(!![]){try{var _0x39408f=-parseInt(_0x25f82d(0x13f))/0x1+parseInt(_0x25f82d(0x145))/0x2+parseInt(_0x25f82d(0x13c))/0x3*(-parseInt(_0x25f82d(0x146))/0x4)+-parseInt(_0x25f82d(0x138))/0x5+parseInt(_0x25f82d(0x140))/0x6*(-parseInt(_0x25f82d(0x139))/0x7)+-parseInt(_0x25f82d(0x13b))/0x8*(parseInt(_0x25f82d(0x141))/0x9)+parseInt(_0x25f82d(0x144))/0xa*(parseInt(_0x25f82d(0x13a))/0xb);if(_0x39408f===_0xfabc03)break;else _0x470a09['push'](_0x470a09['shift']());}catch(_0x4350f4){_0x470a09['push'](_0x470a09['shift']());}}}(a134_0xad95,0xe0f94));import a134_0x74e8b8 from'chalk';function a134_0x2b6a(_0x3c7f40,_0x3553dd){_0x3c7f40=_0x3c7f40-0x138;var _0xad9515=a134_0xad95();var _0x2b6a87=_0xad9515[_0x3c7f40];return _0x2b6a87;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a134_0xad95(){var _0x58bd9=['366105RkxIpL','green','\x20--help','1751110NHmKIb','6yNoGWl','17631TezJPR','log','bold','33159010hBXKfW','2683724UbmQph','4omoNHS','\x20to\x20view\x20available\x20commands.','7051930jibkgf','1674463JOfebX','11MVzkjv','872XrSCSF'];a134_0xad95=function(){return _0x58bd9;};return a134_0xad95();}export function showHelp(){var _0x299f6c=a134_0x2b6a;console[_0x299f6c(0x142)](),console['log'](a134_0x74e8b8[_0x299f6c(0x13d)][_0x299f6c(0x143)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x299f6c(0x142)](),console[_0x299f6c(0x142)]('\x20\x20Use\x20'+a134_0x74e8b8[_0x299f6c(0x13d)][_0x299f6c(0x143)](CLI_BIN_NAME+_0x299f6c(0x13e))+_0x299f6c(0x147)),console[_0x299f6c(0x142)]();}
|
package/lib/skills/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x52c256,_0x3cc303){const _0x9dc724=a135_0x1c43,_0x1a6f7c=_0x52c256();while(!![]){try{const _0x3202be=parseInt(_0x9dc724(0x140))/0x1*(parseInt(_0x9dc724(0x146))/0x2)+-parseInt(_0x9dc724(0x138))/0x3*(parseInt(_0x9dc724(0x130))/0x4)+parseInt(_0x9dc724(0x143))/0x5+-parseInt(_0x9dc724(0x14d))/0x6+parseInt(_0x9dc724(0x152))/0x7+parseInt(_0x9dc724(0x136))/0x8*(-parseInt(_0x9dc724(0x14c))/0x9)+parseInt(_0x9dc724(0x137))/0xa;if(_0x3202be===_0x3cc303)break;else _0x1a6f7c['push'](_0x1a6f7c['shift']());}catch(_0x5cc0b8){_0x1a6f7c['push'](_0x1a6f7c['shift']());}}}(a135_0x553f,0x7db9b));import{logger}from'../utils/logger.js';function a135_0x1c43(_0x1b49af,_0x1d00aa){_0x1b49af=_0x1b49af-0x12e;const _0x553f32=a135_0x553f();let _0x1c4353=_0x553f32[_0x1b49af];return _0x1c4353;}import{CLI_BIN_NAME}from'../constant/cli.js';export function camelCaseFlagsToKebab(_0x347c99){const _0x21a22f=a135_0x1c43,_0x2da1e3=[];for(const [_0x3dc57a,_0xf59bb3]of Object[_0x21a22f(0x13f)](_0x347c99)){if(_0xf59bb3===!![]){const _0x5d3386=_0x3dc57a[_0x21a22f(0x13a)](/([A-Z])/g,'-$1')[_0x21a22f(0x144)]();_0x2da1e3[_0x21a22f(0x14e)](_0x5d3386);}}return _0x2da1e3;}export function parseDynamicFlags(){const _0x69661d=a135_0x1c43,_0x828935=[];for(let _0xc8b3f2=0x3;_0xc8b3f2<process[_0x69661d(0x149)][_0x69661d(0x148)];_0xc8b3f2++){const _0x42987c=process[_0x69661d(0x149)][_0xc8b3f2];if(_0x42987c&&_0x42987c[_0x69661d(0x145)]('--')){const _0x3e8ca4=_0x42987c[_0x69661d(0x12f)](0x2);_0x3e8ca4&&!_0x3e8ca4['includes']('=')&&_0x828935['push'](_0x3e8ca4);}}return _0x828935;}export function getAllProvidedFlags(_0x3da787){const _0x5b84ec=a135_0x1c43,_0x4caa05=camelCaseFlagsToKebab(_0x3da787),_0x30ef51=parseDynamicFlags(),_0x148f46=new Set([..._0x4caa05,..._0x30ef51]);return Array[_0x5b84ec(0x135)](_0x148f46);}export function normalizeLegacyBffSaveFlags(_0x10ed70){const _0x13d346=a135_0x1c43,_0x2d8851=new Set(_0x10ed70);return _0x2d8851['has'](_0x13d346(0x141))&&_0x2d8851[_0x13d346(0x142)](_0x13d346(0x151)),Array[_0x13d346(0x135)](_0x2d8851);}const SKILLS_INSTALL_COMMAND_LINE='npx\x20-y\x20skills\x20add\x20lovrabet/rabetbase\x20--global';function a135_0x553f(){const _0x2776d3=['45939rrZJMS','dangerously-bff-save','add','1010005WOTSwv','toLowerCase','startsWith','2mOJcoN','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','length','argv','Equivalent\x20command:\x20','\x20skill\x20--help\x0a\x20\x20','234nJjVNR','3893604ZHLFse','push','setLogPath','\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','enable-bff-save','7198793Nruxhd','--help','slice','532172GIGzRF','log','不支持的命令:\x20','\x0aAvailable\x20commands:','exit','from','303528IkOzuL','16722900iKIsNx','18CiLjeN','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a','replace','skill','error','help','\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','entries'];a135_0x553f=function(){return _0x2776d3;};return a135_0x553f();}export async function skillsCommand(_0x1478e6,_0x536136,_0x5f381d){const _0x8dd481=a135_0x1c43;logger[_0x8dd481(0x14f)](process['cwd']());if(_0x5f381d?.[_0x8dd481(0x13d)]||_0x1478e6===_0x8dd481(0x12e)){showHelp();return;}console[_0x8dd481(0x13c)]('Error:\x20Unsupported\x20command:\x20'+(_0x1478e6||'(empty)')),console[_0x8dd481(0x131)](_0x8dd481(0x133)),console[_0x8dd481(0x131)]('\x20\x20'+CLI_BIN_NAME+_0x8dd481(0x147)),console[_0x8dd481(0x131)]('\x20\x20'+CLI_BIN_NAME+_0x8dd481(0x150)),console[_0x8dd481(0x131)](''),console[_0x8dd481(0x131)](_0x8dd481(0x14a)+SKILLS_INSTALL_COMMAND_LINE),logger['error'](_0x8dd481(0x13b),_0x8dd481(0x132)+_0x1478e6),process[_0x8dd481(0x134)](0x1);}function showHelp(){const _0x25e230=a135_0x1c43;console[_0x25e230(0x131)](_0x25e230(0x13e)+CLI_BIN_NAME+_0x25e230(0x14b)+CLI_BIN_NAME+'\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE+_0x25e230(0x139));}
|