@lovrabet/rabetbase-cli 2.1.1-beta.0 → 2.1.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/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/doc.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/add.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/remote.js +1 -1
- package/lib/commands/app/remove.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app/use.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/new.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/links.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/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/constant/cli.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/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.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 +1 -1
package/lib/core/bff/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a114_0x115a(){const _0x303853=['datasetCode','7WhKXZg','toLowerCase','68874KoZTko','2925028IcWnXy','functionNode','1938990ycgfxW','remoteId','before','8XyWETi','values','after','20418417vosvgR','toUpperCase','test','trim','708138OafraP','641592PdvjZM','1554903TerODG','operationType'];a114_0x115a=function(){return _0x303853;};return a114_0x115a();}(function(_0x424675,_0xcb2b4b){const _0x4bfe37=a114_0x2d13,_0x38aed8=_0x424675();while(!![]){try{const _0x4c6462=-parseInt(_0x4bfe37(0xd7))/0x1+-parseInt(_0x4bfe37(0xd8))/0x2+-parseInt(_0x4bfe37(0xd9))/0x3+-parseInt(_0x4bfe37(0xcb))/0x4+parseInt(_0x4bfe37(0xcd))/0x5+parseInt(_0x4bfe37(0xca))/0x6*(parseInt(_0x4bfe37(0xdc))/0x7)+parseInt(_0x4bfe37(0xd0))/0x8*(parseInt(_0x4bfe37(0xd3))/0x9);if(_0x4c6462===_0xcb2b4b)break;else _0x38aed8['push'](_0x38aed8['shift']());}catch(_0x479a70){_0x38aed8['push'](_0x38aed8['shift']());}}}(a114_0x115a,0x5f17a));function a114_0x2d13(_0x330a14,_0x1e6abc){_0x330a14=_0x330a14-0xc9;const _0x115a48=a114_0x115a();let _0x2d132e=_0x115a48[_0x330a14];return _0x2d132e;}export function snakeToCamel(_0x326fae){const _0x5557a2=a114_0x2d13;return _0x326fae['toLowerCase']()['replace'](/_([a-z])/g,(_0x11e2a1,_0x5d8a75)=>_0x5d8a75[_0x5557a2(0xd4)]());}export function findHookLocationByRemoteId(_0x2f2ac2,_0x1e4b63){const _0x2b9cc9=a114_0x2d13;if(!_0x1e4b63)return undefined;for(const _0x689266 of Object[_0x2b9cc9(0xd1)](_0x2f2ac2)){if(_0x689266[_0x2b9cc9(0xce)]===_0x1e4b63&&_0x689266['datasetCode']&&_0x689266[_0x2b9cc9(0xda)]&&_0x689266[_0x2b9cc9(0xcc)])return{'datasetCode':_0x689266[_0x2b9cc9(0xdb)],'operationType':_0x689266[_0x2b9cc9(0xda)],'functionNode':_0x689266['functionNode']};}return undefined;}export function extractScriptDescription(_0x204a2f){const _0x573e8a=_0x204a2f['match'](/\[\s*脚本描述\s*]\s*(.+)/);return _0x573e8a?.[0x1]?.['trim']()||undefined;}export function isValidBffFunctionName(_0x5b0f66){const _0x5a2d1f=a114_0x2d13;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0x5a2d1f(0xd5)](_0x5b0f66);}export function normalizeHookFunctionNode(_0x4e52af){const _0x13b724=a114_0x2d13;if(!_0x4e52af)return undefined;const _0x266712=_0x4e52af[_0x13b724(0xd6)]()[_0x13b724(0xc9)]();if(_0x266712===_0x13b724(0xcf)||_0x266712===_0x13b724(0xd2))return _0x266712;return undefined;}
|
package/lib/core/db-resolver.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3a49f6,_0x58c192){const _0x20674b=a115_0x525f,_0x1d20f7=_0x3a49f6();while(!![]){try{const _0x481ead=parseInt(_0x20674b(0x194))/0x1+parseInt(_0x20674b(0x1a0))/0x2+parseInt(_0x20674b(0x1a2))/0x3+parseInt(_0x20674b(0x19a))/0x4*(parseInt(_0x20674b(0x197))/0x5)+parseInt(_0x20674b(0x18e))/0x6*(-parseInt(_0x20674b(0x19f))/0x7)+parseInt(_0x20674b(0x18a))/0x8*(parseInt(_0x20674b(0x19e))/0x9)+parseInt(_0x20674b(0x195))/0xa*(-parseInt(_0x20674b(0x191))/0xb);if(_0x481ead===_0x58c192)break;else _0x1d20f7['push'](_0x1d20f7['shift']());}catch(_0x4d2bd9){_0x1d20f7['push'](_0x1d20f7['shift']());}}}(a115_0x5620,0xb65b2));function a115_0x525f(_0x1fcb2b,_0x35b221){_0x1fcb2b=_0x1fcb2b-0x188;const _0x56206f=a115_0x5620();let _0x525f77=_0x56206f[_0x1fcb2b];return _0x525f77;}import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0xd26bd4){const _0x46079b=a115_0x525f;if(cache[_0x46079b(0x1a3)](_0xd26bd4))return cache['get'](_0xd26bd4);const _0x2753f0=await listDatasets(_0xd26bd4),_0x16d814=new Map();for(const _0xe388b3 of _0x2753f0){const _0x37072d=_0xe388b3[_0x46079b(0x196)];_0x37072d?.[_0x46079b(0x199)]!=null&&_0x16d814[_0x46079b(0x19b)](_0x37072d[_0x46079b(0x199)],_0x37072d[_0x46079b(0x190)]??_0x46079b(0x19c)+_0x37072d[_0x46079b(0x199)]);}const _0x3b66e0=[..._0x16d814[_0x46079b(0x189)]()]['map'](([_0xaf0c0c,_0x1b8bd9])=>({'dbId':_0xaf0c0c,'dbName':_0x1b8bd9}));return cache[_0x46079b(0x19b)](_0xd26bd4,_0x3b66e0),_0x3b66e0;}export async function resolveDb(_0x531678,_0x3a37c0){const _0x164957=a115_0x525f,_0x28cf0f=await listDatabases(_0x531678);if(_0x28cf0f[_0x164957(0x193)]===0x0)return{'resolved':[],'error':_0x164957(0x18c)};if(!_0x3a37c0)return{'resolved':_0x28cf0f};const _0x5abdc2=Number(_0x3a37c0);if(!Number['isNaN'](_0x5abdc2)){const _0x362679=_0x28cf0f[_0x164957(0x198)](_0x553266=>_0x553266[_0x164957(0x199)]===_0x5abdc2);if(_0x362679)return{'resolved':[_0x362679]};}const _0x31c61e=_0x3a37c0[_0x164957(0x19d)](),_0x302b81=_0x28cf0f[_0x164957(0x18f)](_0x32a6f=>_0x32a6f[_0x164957(0x190)]['toLowerCase']()[_0x164957(0x188)](_0x31c61e));if(_0x302b81[_0x164957(0x193)]>0x0)return{'resolved':_0x302b81};const _0x271987=_0x28cf0f['map'](_0x169f7f=>_0x169f7f[_0x164957(0x190)]+'\x20('+_0x169f7f[_0x164957(0x199)]+')')['join'](',\x20');return{'resolved':[],'error':'No\x20database\x20matching\x20\x22'+_0x3a37c0+_0x164957(0x192)+_0x271987};}function a115_0x5620(){const _0x2a8daf=['dbName','24975511VLeHJf','\x22.\x20Available:\x20','length','722784ktnkSF','10BrGoWN','dbtableConfig','425yHglCI','find','dbId','60484IhUnPk','set','db-','toLowerCase','45DjoZCD','7ITndVw','262042xIKsLd','join','3221760uSZVHV','has','includes','entries','1897880OyjuHe','Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20','No\x20linked\x20databases\x20found\x20for\x20this\x20app.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','\x22\x20matches\x20multiple\x20databases:\x20','8290524cPwNvY','filter'];a115_0x5620=function(){return _0x2a8daf;};return a115_0x5620();}export async function resolveOneDb(_0x5192ec,_0x1bbdb4){const _0x3af854=a115_0x525f,{resolved:_0xcfd2ff,error:_0x352a79}=await resolveDb(_0x5192ec,_0x1bbdb4);if(_0x352a79)return{'db':null,'error':_0x352a79};if(_0xcfd2ff['length']===0x1)return{'db':_0xcfd2ff[0x0]};if(!_0x1bbdb4){const _0xb67ed2=_0xcfd2ff['map'](_0x556582=>_0x556582['dbName']+'\x20('+_0x556582['dbId']+')')[_0x3af854(0x1a1)](',\x20');return{'db':null,'error':_0x3af854(0x18b)+_0xb67ed2};}const _0x1cdc1a=_0xcfd2ff['map'](_0x5e4754=>_0x5e4754['dbName']+'\x20('+_0x5e4754[_0x3af854(0x199)]+')')[_0x3af854(0x1a1)](',\x20');return{'db':null,'error':'\x22'+_0x1bbdb4+_0x3af854(0x18d)+_0x1cdc1a+'.\x20Be\x20more\x20specific.'};}export async function getDbName(_0x4f04b4,_0x9a5576){const _0x3c63fb=a115_0x525f,_0x1aefd6=await listDatabases(_0x4f04b4);return _0x1aefd6[_0x3c63fb(0x198)](_0x9f8229=>_0x9f8229[_0x3c63fb(0x199)]===_0x9a5576)?.[_0x3c63fb(0x190)];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1dcbc9,_0x19b4a8){const _0x405820=a116_0x3baf,_0x363dee=_0x1dcbc9();while(!![]){try{const _0x5f8389=-parseInt(_0x405820(0x1ab))/0x1+-parseInt(_0x405820(0x1a2))/0x2*(-parseInt(_0x405820(0x1ba))/0x3)+-parseInt(_0x405820(0x1a6))/0x4*(parseInt(_0x405820(0x1b6))/0x5)+-parseInt(_0x405820(0x19e))/0x6+-parseInt(_0x405820(0x1aa))/0x7+-parseInt(_0x405820(0x1b4))/0x8*(parseInt(_0x405820(0x1a3))/0x9)+parseInt(_0x405820(0x19a))/0xa*(parseInt(_0x405820(0x1ad))/0xb);if(_0x5f8389===_0x19b4a8)break;else _0x363dee['push'](_0x363dee['shift']());}catch(_0x3281d1){_0x363dee['push'](_0x363dee['shift']());}}}(a116_0x28a3,0xefa10));function a116_0x28a3(){const _0x3ac613=['type','\x20with\x20parameters:\x20','unknown\x20table(s)','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','50ylPIGW','\x20query\x20targeting\x20','replace','WITH','6694134xVBltk','reason','test','matchAll','30GGamYb','9aeeonq','push','join','4WaYoko','SQL\x20content\x20is\x20empty','trim','isDangerous','8957718URfldr','309649YdkhpA','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','13529340akFNdb','startsWith','add','UPDATE','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','INSERT','toUpperCase','13051816upweKn','match','8879330QxNqbJ','length','SELECT','DDL','188835oOrFAg','includes','DELETE','UNKNOWN'];a116_0x28a3=function(){return _0x3ac613;};return a116_0x28a3();}export function detectSqlType(_0x13a66c){const _0x3e699d=a116_0x3baf;if(!_0x13a66c?.[_0x3e699d(0x1a8)]())return{'type':_0x3e699d(0x1bd),'isSelectOnly':![],'isDangerous':![],'reason':_0x3e699d(0x1a7)};const _0x5579d7=_0x13a66c[_0x3e699d(0x19c)](/#\{[^}]*\}/g,'?')[_0x3e699d(0x19c)](/\$\{[^}]*\}/g,'?')[_0x3e699d(0x19c)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x3e699d(0x19c)](/\/\*[\s\S]*?\*\//g,'')[_0x3e699d(0x1a8)](),_0x175608=_0x5579d7['split']('\x0a');let _0x38352c='';for(const _0xcbe5c of _0x175608){const _0x580c53=_0xcbe5c[_0x3e699d(0x1a8)]();if(!_0x580c53||_0x580c53['startsWith']('--')||_0x580c53[_0x3e699d(0x1ae)]('/*'))continue;_0x38352c=_0x580c53;break;}const _0x3a7967=_0x38352c[_0x3e699d(0x1b3)]();if(_0x3a7967['startsWith'](_0x3e699d(0x1b8))||_0x3a7967[_0x3e699d(0x1ae)](_0x3e699d(0x19d))){const _0x3ebc2a=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x3e699d(0x1a0)](_0x5579d7);return{'type':'SELECT','isSelectOnly':!_0x3ebc2a,'isDangerous':_0x3ebc2a,'reason':_0x3ebc2a?_0x3e699d(0x1ac):undefined};}if(_0x3a7967[_0x3e699d(0x1ae)](_0x3e699d(0x1b2)))return{'type':'INSERT','isSelectOnly':![],'isDangerous':![]};if(_0x3a7967['startsWith'](_0x3e699d(0x1b0)))return{'type':_0x3e699d(0x1b0),'isSelectOnly':![],'isDangerous':![]};if(_0x3a7967['startsWith'](_0x3e699d(0x1bc)))return{'type':_0x3e699d(0x1bc),'isSelectOnly':![],'isDangerous':!![],'reason':_0x3e699d(0x1c1)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x3e699d(0x1a0)](_0x3a7967))return{'type':_0x3e699d(0x1b9),'isSelectOnly':![],'isDangerous':!![],'reason':'DDL\x20statements\x20are\x20blocked\x20from\x20auto-save'};return{'type':_0x3e699d(0x1bd),'isSelectOnly':![],'isDangerous':![]};}function a116_0x3baf(_0x149752,_0x17ad6e){_0x149752=_0x149752-0x19a;const _0x28a3=a116_0x28a3();let _0x3bafe2=_0x28a3[_0x149752];return _0x3bafe2;}function extractTables(_0x247c5e){const _0x26526e=a116_0x3baf,_0x5cfd27=_0x247c5e[_0x26526e(0x19c)](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')[_0x26526e(0x19c)](/'[^']*'/g,'\x27\x27')[_0x26526e(0x19c)](/--.*$/gm,'')[_0x26526e(0x19c)](/\/\*[\s\S]*?\*\//g,''),_0x2f4b60=[],_0x1a7bd7=_0x5cfd27['match'](/FROM\s+([^\s,)(]+)/i);if(_0x1a7bd7?.[0x1])_0x2f4b60[_0x26526e(0x1a4)](_0x1a7bd7[0x1]['replace'](/[`"]/g,''));for(const _0x23fb4b of _0x5cfd27[_0x26526e(0x1a1)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x2a25c3=_0x23fb4b[0x1]?.['replace'](/[`"]/g,'');if(_0x2a25c3&&!_0x2f4b60[_0x26526e(0x1bb)](_0x2a25c3))_0x2f4b60[_0x26526e(0x1a4)](_0x2a25c3);}const _0x420170=_0x5cfd27[_0x26526e(0x1b5)](/INTO\s+([^\s(]+)/i);if(_0x420170?.[0x1]){const _0x30fbd6=_0x420170[0x1]['replace'](/[`"]/g,'');if(!_0x2f4b60['includes'](_0x30fbd6))_0x2f4b60['push'](_0x30fbd6);}const _0x2cd3cc=_0x5cfd27['match'](/UPDATE\s+([^\s,)(]+)/i);if(_0x2cd3cc?.[0x1]){const _0x2ca3a0=_0x2cd3cc[0x1][_0x26526e(0x19c)](/[`"]/g,'');if(!_0x2f4b60[_0x26526e(0x1bb)](_0x2ca3a0))_0x2f4b60[_0x26526e(0x1a4)](_0x2ca3a0);}return _0x2f4b60;}function extractParameters(_0x36802e){const _0x4d18f8=a116_0x3baf,_0x3a5e90=new Set();for(const _0x2ca9a9 of _0x36802e[_0x4d18f8(0x1a1)](/#\{(\w+)\}/g))if(_0x2ca9a9[0x1])_0x3a5e90[_0x4d18f8(0x1af)](_0x2ca9a9[0x1]);for(const _0x110db6 of _0x36802e[_0x4d18f8(0x1a1)](/\$\{(\w+)\}/g))if(_0x110db6[0x1])_0x3a5e90['add'](_0x110db6[0x1]);return Array['from'](_0x3a5e90);}export function validateSql(_0x383515){const _0x15ae2c=a116_0x3baf,_0x50d347=detectSqlType(_0x383515),_0x311730=extractTables(_0x383515),_0x36b735=extractParameters(_0x383515);if(_0x50d347[_0x15ae2c(0x1a9)])return{'valid':![],'sqlType':_0x50d347,'tables':_0x311730,'parameters':_0x36b735,'message':_0x50d347[_0x15ae2c(0x19f)]||_0x50d347[_0x15ae2c(0x1be)]+_0x15ae2c(0x1b1)};if(_0x50d347['type']===_0x15ae2c(0x1bd))return{'valid':![],'sqlType':_0x50d347,'tables':_0x311730,'parameters':_0x36b735,'message':'Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.'};return{'valid':!![],'sqlType':_0x50d347,'tables':_0x311730,'parameters':_0x36b735,'message':_0x50d347[_0x15ae2c(0x1be)]+_0x15ae2c(0x19b)+(_0x311730[_0x15ae2c(0x1b7)]?_0x311730[_0x15ae2c(0x1a5)](',\x20'):_0x15ae2c(0x1c0))+(_0x36b735[_0x15ae2c(0x1b7)]?_0x15ae2c(0x1bf)+_0x36b735[_0x15ae2c(0x1a5)](',\x20'):'')};}
|
package/lib/errors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a117_0x3614(){const _0x23c1d2=['auth_required','\x20project\x20directory','362644EqDnoq','423QyuuFu','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','code','192120ylqXkg','\x0a\x20\x20\x20\x20\x20\x20\x20','754407HdCqPA','3636xfCLtV','api_error','681908RLjcCS','10935240BXIjcW','4QbSWqw','12845PJtSdU','flag_missing','Operation\x20cancelled.','validation_error','\x20--help`\x20to\x20see\x20available\x20commands.','Check\x20your\x20internet\x20connection\x20and\x20try\x20again.','network_error','CliError','cancelled','Run\x20`','Authentication\x20required','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','35BwHCfY','join','Not\x20in\x20a\x20','not_in_project','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','7591650fqVyua','Set\x20appcode\x20via\x20`','name','Unknown\x20command:\x20','\x20auth`\x20to\x20login\x20first.','Configuration\x20file\x20not\x20found'];a117_0x3614=function(){return _0x23c1d2;};return a117_0x3614();}const a117_0x4b89e2=a117_0x44d6;(function(_0x341d3b,_0x21ea10){const _0x22a255=a117_0x44d6,_0x4c0693=_0x341d3b();while(!![]){try{const _0xbf022e=parseInt(_0x22a255(0x1be))/0x1*(-parseInt(_0x22a255(0x1b3))/0x2)+parseInt(_0x22a255(0x1b9))/0x3+parseInt(_0x22a255(0x1bc))/0x4*(-parseInt(_0x22a255(0x1cb))/0x5)+parseInt(_0x22a255(0x1ba))/0x6*(parseInt(_0x22a255(0x1bf))/0x7)+parseInt(_0x22a255(0x1b7))/0x8*(parseInt(_0x22a255(0x1b4))/0x9)+parseInt(_0x22a255(0x1bd))/0xa+-parseInt(_0x22a255(0x1d0))/0xb;if(_0xbf022e===_0x21ea10)break;else _0x4c0693['push'](_0x4c0693['shift']());}catch(_0x1bb8bb){_0x4c0693['push'](_0x4c0693['shift']());}}}(a117_0x3614,0xee823));function a117_0x44d6(_0x240e3b,_0x3adf9e){_0x240e3b=_0x240e3b-0x1b1;const _0x361458=a117_0x3614();let _0x44d6dd=_0x361458[_0x240e3b];return _0x44d6dd;}import{CLI_BIN_NAME}from'./constant/cli.js';export class CliError extends Error{['code'];['exitCode'];['hint'];constructor(_0x27f91b,_0x3eb2a0,_0x1b1039,_0x4d55d9){const _0x28dfdb=a117_0x44d6;super(_0x1b1039),this[_0x28dfdb(0x1d2)]=_0x28dfdb(0x1c6),this[_0x28dfdb(0x1b6)]=_0x27f91b,this['exitCode']=_0x3eb2a0,this['hint']=_0x4d55d9;}}export const CliErrors={'authRequired':_0x10f825=>new CliError(a117_0x4b89e2(0x1b1),0x1,a117_0x4b89e2(0x1c9),_0x10f825??a117_0x4b89e2(0x1c8)+CLI_BIN_NAME+a117_0x4b89e2(0x1d4)),'configMissing':_0x4b33cc=>new CliError('config_missing',0x1,a117_0x4b89e2(0x1d5),_0x4b33cc??[a117_0x4b89e2(0x1d1)+CLI_BIN_NAME+a117_0x4b89e2(0x1ca),'Tip:\x20`'+CLI_BIN_NAME+a117_0x4b89e2(0x1cf)][a117_0x4b89e2(0x1cc)](a117_0x4b89e2(0x1b8))),'notInProject':()=>new CliError(a117_0x4b89e2(0x1ce),0x1,a117_0x4b89e2(0x1cd)+CLI_BIN_NAME+a117_0x4b89e2(0x1b2),a117_0x4b89e2(0x1b5)),'apiError':(_0xb014ee,_0x578c3a)=>new CliError(a117_0x4b89e2(0x1bb),0x2,_0xb014ee,_0x578c3a),'networkError':_0xc64726=>new CliError(a117_0x4b89e2(0x1c5),0x2,'Network\x20error:\x20'+_0xc64726,a117_0x4b89e2(0x1c4)),'unknownCommand':_0x2955ca=>new CliError('unknown_command',0x1,a117_0x4b89e2(0x1d3)+_0x2955ca,a117_0x4b89e2(0x1c8)+CLI_BIN_NAME+a117_0x4b89e2(0x1c3)),'flagMissing':(_0x4dd345,_0x29a245)=>new CliError(a117_0x4b89e2(0x1c0),0x1,'Missing\x20required\x20flag:\x20--'+_0x4dd345,_0x29a245),'validation':(_0x59f9bf,_0x1ebed3)=>new CliError(a117_0x4b89e2(0x1c2),0x1,_0x59f9bf,_0x1ebed3),'cancelled':_0x1d30ca=>new CliError(a117_0x4b89e2(0x1c7),0x0,_0x1d30ca??a117_0x4b89e2(0x1c1),undefined)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a118_0x2a81(_0x13655f,_0x520f0a){_0x13655f=_0x13655f-0x14f;const _0x50fb46=a118_0x50fb();let _0x2a811a=_0x50fb46[_0x13655f];return _0x2a811a;}function a118_0x50fb(){const _0x1f19c3=['yes','dryRun','3161370euXAUx','58596pzlwbx','pretty','2195290UdiBzN','boolean','6280NhlHTS','231oPUjNR','flags','push','hasFormat','string','dry-run','Output\x20format','Skip\x20confirmation\x20prompt','26111250ElixJi','114354hIihCK','712acosto','463HmXRwl','format','14IzgpMy','json','9444540fcGOMf','defaultOutputFormat','Preview\x20the\x20operation\x20without\x20executing'];a118_0x50fb=function(){return _0x1f19c3;};return a118_0x50fb();}(function(_0x909ccf,_0x3f2589){const _0x559587=a118_0x2a81,_0x36acf8=_0x909ccf();while(!![]){try{const _0x2401c2=parseInt(_0x559587(0x151))/0x1*(-parseInt(_0x559587(0x15f))/0x2)+-parseInt(_0x559587(0x160))/0x3*(-parseInt(_0x559587(0x15b))/0x4)+parseInt(_0x559587(0x15d))/0x5+-parseInt(_0x559587(0x15a))/0x6*(-parseInt(_0x559587(0x153))/0x7)+-parseInt(_0x559587(0x150))/0x8*(-parseInt(_0x559587(0x14f))/0x9)+parseInt(_0x559587(0x155))/0xa+-parseInt(_0x559587(0x168))/0xb;if(_0x2401c2===_0x3f2589)break;else _0x36acf8['push'](_0x36acf8['shift']());}catch(_0x11c578){_0x36acf8['push'](_0x36acf8['shift']());}}}(a118_0x50fb,0xd40bb));export function buildAllFlags(_0x1e8c89){const _0x459759=a118_0x2a81,_0x71c4a3=[..._0x1e8c89[_0x459759(0x161)]];return _0x1e8c89[_0x459759(0x159)]&&_0x71c4a3[_0x459759(0x162)]({'name':_0x459759(0x165),'type':_0x459759(0x15e),'description':_0x459759(0x157)}),_0x1e8c89[_0x459759(0x163)]!==![]&&_0x71c4a3[_0x459759(0x162)]({'name':_0x459759(0x152),'type':_0x459759(0x164),'default':_0x1e8c89[_0x459759(0x156)]??'pretty','enum':[_0x459759(0x154),_0x459759(0x15c),'compress'],'description':_0x459759(0x166)}),_0x1e8c89['risk']==='high-risk-write'&&_0x71c4a3[_0x459759(0x162)]({'name':_0x459759(0x158),'type':_0x459759(0x15e),'description':_0x459759(0x167)}),_0x71c4a3;}
|
package/lib/framework/flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x275141,_0x198c54){const _0x1b1ec9=a119_0x4c4a,_0x109263=_0x275141();while(!![]){try{const _0xa5ee32=parseInt(_0x1b1ec9(0x133))/0x1+parseInt(_0x1b1ec9(0x120))/0x2*(parseInt(_0x1b1ec9(0x11b))/0x3)+-parseInt(_0x1b1ec9(0x12b))/0x4*(parseInt(_0x1b1ec9(0x123))/0x5)+parseInt(_0x1b1ec9(0x124))/0x6+-parseInt(_0x1b1ec9(0x12f))/0x7+parseInt(_0x1b1ec9(0x12a))/0x8*(-parseInt(_0x1b1ec9(0x12e))/0x9)+parseInt(_0x1b1ec9(0x11c))/0xa;if(_0xa5ee32===_0x198c54)break;else _0x109263['push'](_0x109263['shift']());}catch(_0xdf1435){_0x109263['push'](_0x109263['shift']());}}}(a119_0x5378,0x896d2));import{CliErrors}from'../errors.js';export function parseFlags(_0x3e36c0,_0x19a0ba){const _0x54ecd5=a119_0x4c4a,_0x56604f={};for(const _0x5b4829 of _0x3e36c0){const _0x479ca8=_0x19a0ba[_0x5b4829[_0x54ecd5(0x11a)]]??_0x19a0ba[toCamelCase(_0x5b4829[_0x54ecd5(0x11a)])];if(_0x479ca8===undefined||_0x479ca8===null){_0x5b4829[_0x54ecd5(0x122)]!==undefined&&(_0x56604f[_0x5b4829[_0x54ecd5(0x11a)]]=_0x5b4829['default']);continue;}_0x56604f[_0x5b4829[_0x54ecd5(0x11a)]]=coerce(_0x5b4829,_0x479ca8);}for(const _0xd56afa of[_0x54ecd5(0x116),'dryRun','yes',_0x54ecd5(0x128),'jq']){const _0x331817=_0x19a0ba[_0xd56afa];if(_0x331817!==undefined){const _0x40fc93=_0xd56afa===_0x54ecd5(0x12d)?_0x54ecd5(0x116):_0xd56afa;_0x56604f[_0x40fc93]=_0x331817;}}return _0x56604f;}function a119_0x5378(){const _0x1f3f8c=['984yYTdoU','400820RJQcJu','\x22\x20for\x20--',',\x20got\x20\x22','replace','3346gHBVIb','test','default','6695sUWKfW','526680VnsajE','description','type','regex','format','validation','1901872clRZIk','1068dDrAvf','Invalid\x20value\x20\x22','dryRun','9bYFAMY','436324YMBkZP','flagMissing','pattern','boolean','543871dSeBic','number','enum','dry-run','Invalid\x20--','toUpperCase','.\x20Allowed:\x20','name'];a119_0x5378=function(){return _0x1f3f8c;};return a119_0x5378();}export function validateFlags(_0x1cc16e,_0x69e5ec,_0x2371a8){const _0x3b3227=a119_0x4c4a;for(const _0x45d09f of _0x1cc16e){const _0x5d11bf=_0x69e5ec[_0x45d09f[_0x3b3227(0x11a)]];if(_0x45d09f['required']&&(_0x5d11bf===undefined||_0x5d11bf===''))throw CliErrors[_0x3b3227(0x130)](_0x45d09f[_0x3b3227(0x11a)],'--'+_0x45d09f[_0x3b3227(0x11a)]+'\x20is\x20required\x20for\x20`'+_0x2371a8+'`.');if(_0x45d09f[_0x3b3227(0x115)]&&_0x45d09f[_0x3b3227(0x115)]['length']>0x0&&_0x5d11bf!==undefined&&_0x5d11bf!==''){if(!_0x45d09f[_0x3b3227(0x115)]['includes'](String(_0x5d11bf)))throw CliErrors[_0x3b3227(0x129)](_0x3b3227(0x12c)+_0x5d11bf+_0x3b3227(0x11d)+_0x45d09f[_0x3b3227(0x11a)]+_0x3b3227(0x119)+_0x45d09f['enum']['join'](',\x20'));}if(_0x45d09f[_0x3b3227(0x131)]&&_0x5d11bf!==undefined&&_0x5d11bf!==''){if(!_0x45d09f['pattern'][_0x3b3227(0x127)][_0x3b3227(0x121)](String(_0x5d11bf)))throw CliErrors[_0x3b3227(0x129)](_0x3b3227(0x117)+_0x45d09f[_0x3b3227(0x11a)]+':\x20expected\x20'+_0x45d09f[_0x3b3227(0x131)][_0x3b3227(0x125)]+_0x3b3227(0x11e)+_0x5d11bf+'\x22.');}}}function coerce(_0x34eabb,_0x322b23){const _0x19eb1d=a119_0x4c4a;switch(_0x34eabb[_0x19eb1d(0x126)]){case _0x19eb1d(0x132):return _0x322b23===!![]||_0x322b23==='true';case _0x19eb1d(0x114):{const _0x9d68f1=Number(_0x322b23);if(isNaN(_0x9d68f1))throw CliErrors[_0x19eb1d(0x129)]('--'+_0x34eabb['name']+'\x20expects\x20a\x20number,\x20got\x20\x22'+_0x322b23+'\x22');return _0x9d68f1;}default:return String(_0x322b23);}}function a119_0x4c4a(_0x461a46,_0x5a7f63){_0x461a46=_0x461a46-0x114;const _0x537872=a119_0x5378();let _0x4c4a1f=_0x537872[_0x461a46];return _0x4c4a1f;}function toCamelCase(_0x11cb78){const _0x5ef0ab=a119_0x4c4a;return _0x11cb78[_0x5ef0ab(0x11f)](/-([a-z])/g,(_0x51019a,_0x19f608)=>_0x19f608[_0x5ef0ab(0x118)]());}
|
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a120_0x1bba4c=a120_0x1b48;function a120_0x1b48(_0x48e822,_0x185807){_0x48e822=_0x48e822-0xa3;const _0x4a522f=a120_0x4a52();let _0x1b4879=_0x4a522f[_0x48e822];return _0x1b4879;}(function(_0x465ced,_0x312f5f){const _0x3ac60f=a120_0x1b48,_0x20f4a5=_0x465ced();while(!![]){try{const _0x91e67c=-parseInt(_0x3ac60f(0xde))/0x1+-parseInt(_0x3ac60f(0xe5))/0x2*(-parseInt(_0x3ac60f(0xe4))/0x3)+parseInt(_0x3ac60f(0xad))/0x4*(parseInt(_0x3ac60f(0xa6))/0x5)+parseInt(_0x3ac60f(0xa8))/0x6+-parseInt(_0x3ac60f(0xbf))/0x7+parseInt(_0x3ac60f(0xbb))/0x8*(parseInt(_0x3ac60f(0xc1))/0x9)+parseInt(_0x3ac60f(0xdd))/0xa*(-parseInt(_0x3ac60f(0xe2))/0xb);if(_0x91e67c===_0x312f5f)break;else _0x20f4a5['push'](_0x20f4a5['shift']());}catch(_0x2d53ca){_0x20f4a5['push'](_0x20f4a5['shift']());}}}(a120_0x4a52,0xc4b93));import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a120_0x4a52(){const _0x18a104=['\x20\x20Run\x20`','get','boolean','\x20<n>','\x20\x20\x20\x20\x20\x20','\x20\x20[high-risk-write]','\x20[flags]','\x20\x20GLOBAL\x20OPTIONS','split','19112IeGRKN','description','\x20\x20ARGS','risk','861707kBBsBU','commands','4905CBfBVn','length','\x20auth`\x20first).','\x20[global-options]\x20<service>\x20<command>\x20[flags]','function','enum','\x20\x20[write]','\x20\x20USAGE','required','name','Requires\x20authentication\x20(run\x20`','\x20<service>\x20<command>\x20--help`\x20for\x20command\x20flags.','wildcardDef','Requires\x20appcode\x20(set\x20via\x20`','type','flags','\x20|\x20','args','service','\x20<command>\x20[args]\x20[flags]','label','\x20\x20\x20\x20','\x20\x20PREREQUISITES','\x20project\x20init`\x20or\x20--appcode).','\x20<service>\x20--help`\x20for\x20service\x20commands.','\x20<value>','(required)','trim','18406090grYcNj','856275XnLvfN','join','helpExtra','hint','11LMeLgH','max','4702389HOayuo','2DkMpEp','push','requiresAuth','map','\x20\x20\x20\x20$\x20','\x20\x20FLAGS','dryRun','\x20\x20\x20\x20\x20\x20\x20\x20','filter','number','35YOdqkn','requiresAppCode','3293106ECvzoi','padEnd','command','high-risk-write','default','118540eIOiIs','tag','find','\x20\x20COMMANDS','\x20\x20\x20\x20Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.'];a120_0x4a52=function(){return _0x18a104;};return a120_0x4a52();}const RISK_LABELS={'read':'','write':a120_0x1bba4c(0xc7),'high-risk-write':a120_0x1bba4c(0xb7)};export function generateCommandHelp(_0x2d7afb){const _0x49b41f=a120_0x1bba4c,_0x11af7d=[],_0x37c888=_0x2d7afb[_0x49b41f(0xd3)]===_0x2d7afb[_0x49b41f(0xaa)]?CLI_BIN_NAME+'\x20'+_0x2d7afb[_0x49b41f(0xd3)]:CLI_BIN_NAME+'\x20'+_0x2d7afb[_0x49b41f(0xd3)]+'\x20'+_0x2d7afb[_0x49b41f(0xaa)],_0x4c542f=_0x2d7afb[_0x49b41f(0xd2)]?_0x2d7afb['args'][_0x49b41f(0xe8)](_0x522b4e=>_0x522b4e['required']!==![]?'<'+_0x522b4e[_0x49b41f(0xca)]+'>':'['+_0x522b4e[_0x49b41f(0xca)]+']')[_0x49b41f(0xdf)]('\x20'):'',_0x4b76e3=_0x4c542f?_0x37c888+'\x20'+_0x4c542f+_0x49b41f(0xb8):_0x37c888+'\x20[flags]';_0x11af7d[_0x49b41f(0xe6)](''),_0x11af7d[_0x49b41f(0xe6)]('\x20\x20'+_0x2d7afb[_0x49b41f(0xbc)]),_0x11af7d['push'](''),_0x11af7d[_0x49b41f(0xe6)](_0x49b41f(0xc8)),_0x11af7d['push'](_0x49b41f(0xd6)+_0x4b76e3),_0x11af7d[_0x49b41f(0xe6)](''),_0x11af7d['push']('\x20\x20RISK:\x20'+_0x2d7afb[_0x49b41f(0xbe)]);_0x2d7afb['risk']===_0x49b41f(0xab)&&_0x11af7d['push'](_0x49b41f(0xb1));_0x11af7d[_0x49b41f(0xe6)]('');if(_0x2d7afb[_0x49b41f(0xd2)]&&_0x2d7afb[_0x49b41f(0xd2)][_0x49b41f(0xc2)]>0x0){_0x11af7d[_0x49b41f(0xe6)](_0x49b41f(0xbd));const _0x55867c=Math[_0x49b41f(0xe3)](..._0x2d7afb[_0x49b41f(0xd2)][_0x49b41f(0xe8)](_0x4823aa=>_0x4823aa[_0x49b41f(0xca)][_0x49b41f(0xc2)]+0x2));for(const _0x16d017 of _0x2d7afb[_0x49b41f(0xd2)]){const _0x3d27b4=('<'+_0x16d017['name']+'>')['padEnd'](_0x55867c+0x2),_0x40bbed=_0x16d017[_0x49b41f(0xc9)]!==![]?'\x20(required)':'';_0x11af7d[_0x49b41f(0xe6)](_0x49b41f(0xd6)+_0x3d27b4+_0x16d017[_0x49b41f(0xbc)]+_0x40bbed);}_0x11af7d[_0x49b41f(0xe6)]('');}if(_0x2d7afb[_0x49b41f(0xd0)][_0x49b41f(0xc2)]>0x0||_0x2d7afb[_0x49b41f(0xeb)]||_0x2d7afb['hasFormat']!==![]){_0x11af7d['push'](_0x49b41f(0xea));const _0x43fbbd=buildAllFlags(_0x2d7afb),_0x1bbd39=Math[_0x49b41f(0xe3)](..._0x43fbbd[_0x49b41f(0xe8)](_0x5244f9=>formatFlagName(_0x5244f9)[_0x49b41f(0xc2)]));for(const _0x268202 of _0x43fbbd){_0x11af7d[_0x49b41f(0xe6)]('\x20\x20\x20\x20'+formatFlagName(_0x268202)['padEnd'](_0x1bbd39+0x2)+renderFlagDesc(_0x268202));}_0x11af7d[_0x49b41f(0xe6)]('');}const _0x4e81c9=[];_0x2d7afb[_0x49b41f(0xe7)]!==![]&&_0x4e81c9[_0x49b41f(0xe6)](_0x49b41f(0xcb)+CLI_BIN_NAME+_0x49b41f(0xc3));_0x2d7afb[_0x49b41f(0xa7)]!==![]&&_0x4e81c9[_0x49b41f(0xe6)](_0x49b41f(0xce)+CLI_BIN_NAME+_0x49b41f(0xd8));if(_0x4e81c9[_0x49b41f(0xc2)]>0x0){_0x11af7d['push'](_0x49b41f(0xd7));for(const _0x2ed7c6 of _0x4e81c9){_0x11af7d[_0x49b41f(0xe6)]('\x20\x20\x20\x20•\x20'+_0x2ed7c6);}_0x11af7d[_0x49b41f(0xe6)]('');}if(_0x2d7afb[_0x49b41f(0xe0)]){const _0x5f0114=typeof _0x2d7afb[_0x49b41f(0xe0)]===_0x49b41f(0xc5)?_0x2d7afb[_0x49b41f(0xe0)]():_0x2d7afb[_0x49b41f(0xe0)];_0x11af7d['push'](_0x5f0114),_0x11af7d['push']('');}return _0x11af7d['join']('\x0a');}export function generateServiceHelp(_0x2433e8){const _0x3881f7=a120_0x1bba4c,_0x224c78=getServiceEntry(_0x2433e8);if(!_0x224c78)return'\x20\x20Unknown\x20service:\x20'+_0x2433e8+'\x0a';const _0x43f200=[],_0x47fd9e=serviceGroups[_0x3881f7(0xb3)](_0x2433e8);_0x43f200[_0x3881f7(0xe6)](''),_0x43f200['push']('\x20\x20'+_0x224c78[_0x3881f7(0xd5)]),_0x43f200['push'](''),_0x43f200[_0x3881f7(0xe6)]('\x20\x20USAGE'),_0x43f200[_0x3881f7(0xe6)](_0x3881f7(0xd6)+CLI_BIN_NAME+'\x20'+_0x2433e8+_0x3881f7(0xd4)),_0x43f200[_0x3881f7(0xe6)](''),_0x43f200['push'](_0x3881f7(0xb0));for(const _0x4c961b of _0x224c78[_0x3881f7(0xc0)]){_0x43f200[_0x3881f7(0xe6)]('');const _0x4bea65=_0x4c961b[_0x3881f7(0xae)]?'\x20\x20'+_0x4c961b['tag'][_0x3881f7(0xdc)]():'';_0x43f200[_0x3881f7(0xe6)]('\x20\x20\x20\x20'+_0x4c961b['command']+_0x4bea65),_0x43f200['push'](_0x3881f7(0xb6)+_0x4c961b[_0x3881f7(0xbc)]);const _0x3322e0=_0x47fd9e?.[_0x3881f7(0xaf)](_0x5c9562=>_0x5c9562['command']===_0x4c961b[_0x3881f7(0xaa)]);if(_0x3322e0?.[_0x3881f7(0xd2)]&&_0x3322e0[_0x3881f7(0xd2)][_0x3881f7(0xc2)]>0x0){_0x43f200[_0x3881f7(0xe6)]('\x20\x20\x20\x20\x20\x20ARGS');const _0x585495=Math[_0x3881f7(0xe3)](..._0x3322e0['args'][_0x3881f7(0xe8)](_0xe7c08a=>_0xe7c08a[_0x3881f7(0xca)]['length']+0x2));for(const _0xb55a3c of _0x3322e0[_0x3881f7(0xd2)]){const _0x3459b1=('<'+_0xb55a3c[_0x3881f7(0xca)]+'>')[_0x3881f7(0xa9)](_0x585495+0x2),_0x394335=_0xb55a3c[_0x3881f7(0xc9)]!==![]?'\x20(required)':'';_0x43f200['push'](_0x3881f7(0xa3)+_0x3459b1+_0xb55a3c[_0x3881f7(0xbc)]+_0x394335);}}const _0xb88d6d=getCommandFlags(_0x2433e8,_0x4c961b['command'],_0x47fd9e);if(_0xb88d6d[_0x3881f7(0xc2)]>0x0){const _0x335257=Math['max'](..._0xb88d6d[_0x3881f7(0xe8)](_0x256c96=>formatFlagName(_0x256c96)[_0x3881f7(0xc2)]));for(const _0x15fbba of _0xb88d6d){_0x43f200[_0x3881f7(0xe6)](_0x3881f7(0xb6)+formatFlagName(_0x15fbba)['padEnd'](_0x335257+0x2)+renderFlagDesc(_0x15fbba));}}}return _0x43f200[_0x3881f7(0xe6)](''),_0x43f200[_0x3881f7(0xdf)]('\x0a');}export function generateFullHelp(){const _0x55bf25=a120_0x1bba4c,_0xc622cf=[];_0xc622cf[_0x55bf25(0xe6)](''),_0xc622cf[_0x55bf25(0xe6)]('\x20\x20'+CLI_DISPLAY_NAME),_0xc622cf[_0x55bf25(0xe6)](''),_0xc622cf[_0x55bf25(0xe6)](_0x55bf25(0xc8)),_0xc622cf[_0x55bf25(0xe6)](_0x55bf25(0xe9)+CLI_BIN_NAME+_0x55bf25(0xc4)),_0xc622cf[_0x55bf25(0xe6)](''),_0xc622cf[_0x55bf25(0xe6)](_0x55bf25(0xb9));const _0x1a75dc=GLOBAL_FLAGS[_0x55bf25(0xa4)](_0x458945=>!_0x458945['hidden']),_0x992511=Math[_0x55bf25(0xe3)](..._0x1a75dc[_0x55bf25(0xe8)](_0x73ce1c=>{const _0x4319ad=_0x55bf25,_0x381249=_0x73ce1c[_0x4319ad(0xe1)]?'\x20'+_0x73ce1c[_0x4319ad(0xe1)]:'';return('--'+_0x73ce1c['name']+_0x381249)[_0x4319ad(0xc2)];}));for(const _0x183c74 of _0x1a75dc){const _0x9e029d=_0x183c74[_0x55bf25(0xe1)]?'\x20'+_0x183c74[_0x55bf25(0xe1)]:'',_0x4b83d5=('--'+_0x183c74[_0x55bf25(0xca)]+_0x9e029d)['padEnd'](_0x992511+0x2);_0xc622cf[_0x55bf25(0xe6)](_0x55bf25(0xd6)+_0x4b83d5+_0x183c74[_0x55bf25(0xbc)]);}_0xc622cf[_0x55bf25(0xe6)](''),_0xc622cf['push'](_0x55bf25(0xb0)),_0xc622cf[_0x55bf25(0xe6)]('');for(const _0x4318a1 of serviceRegistry){_0xc622cf[_0x55bf25(0xe6)]('\x20\x20'+_0x4318a1['label']);if(_0x4318a1['isSingleCommand']){const _0x5f2fed=_0x4318a1[_0x55bf25(0xc0)][0x0],_0xb82f01=_0x5f2fed[_0x55bf25(0xae)]??'';_0xc622cf[_0x55bf25(0xe6)](_0x55bf25(0xd6)+_0x4318a1[_0x55bf25(0xd3)][_0x55bf25(0xa9)](0x12)+_0x5f2fed[_0x55bf25(0xbc)]+_0xb82f01);}else{const _0x3b39bd=_0x4318a1['commands']['map'](_0x7676=>_0x4318a1[_0x55bf25(0xd3)]+'\x20'+_0x7676['command']),_0x23b943=Math['max'](..._0x3b39bd[_0x55bf25(0xe8)](_0xa5d11d=>_0xa5d11d[_0x55bf25(0xc2)]));for(let _0x4bd561=0x0;_0x4bd561<_0x4318a1[_0x55bf25(0xc0)][_0x55bf25(0xc2)];_0x4bd561++){const _0x18876c=_0x4318a1[_0x55bf25(0xc0)][_0x4bd561],_0x333276=_0x18876c[_0x55bf25(0xae)]??'';_0xc622cf[_0x55bf25(0xe6)](_0x55bf25(0xd6)+_0x3b39bd[_0x4bd561][_0x55bf25(0xa9)](_0x23b943+0x2)+_0x18876c[_0x55bf25(0xbc)]+_0x333276);}}if(_0x4318a1[_0x55bf25(0xcd)]?.[_0x55bf25(0xe0)]){const _0x2d894c=typeof _0x4318a1['wildcardDef'][_0x55bf25(0xe0)]===_0x55bf25(0xc5)?_0x4318a1['wildcardDef'][_0x55bf25(0xe0)]():_0x4318a1[_0x55bf25(0xcd)][_0x55bf25(0xe0)];for(const _0x12e3f5 of _0x2d894c[_0x55bf25(0xba)]('\x0a')){_0xc622cf['push']('\x20\x20'+_0x12e3f5);}}_0xc622cf['push']('');}return _0xc622cf[_0x55bf25(0xe6)](_0x55bf25(0xb2)+CLI_BIN_NAME+_0x55bf25(0xd9)),_0xc622cf['push']('\x20\x20Run\x20`'+CLI_BIN_NAME+_0x55bf25(0xcc)),_0xc622cf['push'](''),_0xc622cf[_0x55bf25(0xdf)]('\x0a');}function getCommandFlags(_0x32563d,_0x29f7f2,_0x5333b4){const _0x5b1caa=a120_0x1bba4c;if(_0x5333b4){const _0x503de1=_0x5333b4['find'](_0x2752a6=>_0x2752a6[_0x5b1caa(0xaa)]===_0x29f7f2);if(_0x503de1)return buildAllFlags(_0x503de1);}return[];}function renderFlagDesc(_0x4f7a68){const _0x58c493=a120_0x1bba4c;let _0x4b625f=_0x4f7a68[_0x58c493(0xbc)];return _0x4f7a68[_0x58c493(0xc6)]&&_0x4f7a68[_0x58c493(0xc6)]['length']>0x0&&(_0x4b625f+='\x20('+_0x4f7a68[_0x58c493(0xc6)][_0x58c493(0xdf)](_0x58c493(0xd1))+')'),_0x4f7a68[_0x58c493(0xac)]!==undefined&&_0x4f7a68[_0x58c493(0xac)]!==''&&_0x4f7a68[_0x58c493(0xac)]!==![]&&(_0x4b625f+='\x20[default:\x20'+_0x4f7a68[_0x58c493(0xac)]+']'),_0x4f7a68[_0x58c493(0xc9)]&&!_0x4b625f['includes'](_0x58c493(0xdb))&&(_0x4b625f+='\x20(required)'),_0x4b625f;}function formatFlagName(_0xfe4312){const _0x32b372=a120_0x1bba4c,_0xc15e29=_0xfe4312[_0x32b372(0xcf)]===_0x32b372(0xb4)?'':_0xfe4312['type']===_0x32b372(0xa5)?_0x32b372(0xb5):_0x32b372(0xda);return'--'+_0xfe4312['name']+_0xc15e29;}
|
|
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();}
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x372f20,_0x815e21){var _0x5de4ba=a121_0x59d7,_0x2f062f=_0x372f20();while(!![]){try{var _0x44d5d4=-parseInt(_0x5de4ba(0x1d6))/0x1+parseInt(_0x5de4ba(0x1db))/0x2+-parseInt(_0x5de4ba(0x1dc))/0x3+parseInt(_0x5de4ba(0x1d7))/0x4*(-parseInt(_0x5de4ba(0x1de))/0x5)+-parseInt(_0x5de4ba(0x1d8))/0x6*(-parseInt(_0x5de4ba(0x1dd))/0x7)+-parseInt(_0x5de4ba(0x1da))/0x8+parseInt(_0x5de4ba(0x1d9))/0x9;if(_0x44d5d4===_0x815e21)break;else _0x2f062f['push'](_0x2f062f['shift']());}catch(_0x4716ae){_0x2f062f['push'](_0x2f062f['shift']());}}}(a121_0x1943,0xa060f));function a121_0x1943(){var _0x5a7473=['1768938aodusX','1950618RgGOdf','127015xHIXKX','685SyKmzK','1179699RQuXbT','852OcGLUD','90Wlpkjs','20658465FjwJDg','7488256diSctC'];a121_0x1943=function(){return _0x5a7473;};return a121_0x1943();}export{runCommand}from'../framework/runner.js';function a121_0x59d7(_0x3a7979,_0x450d31){_0x3a7979=_0x3a7979-0x1d6;var _0x1943b9=a121_0x1943();var _0x59d781=_0x1943b9[_0x3a7979];return _0x59d781;}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';export{riskLevelOrder}from'../framework/types.js';
|
package/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x40c46f,_0x2fc4c4){const _0x4723fa=a122_0x1078,_0x4cc0b4=_0x40c46f();while(!![]){try{const _0x13ec57=-parseInt(_0x4723fa(0x14c))/0x1*(-parseInt(_0x4723fa(0x148))/0x2)+parseInt(_0x4723fa(0x152))/0x3+-parseInt(_0x4723fa(0x151))/0x4*(-parseInt(_0x4723fa(0x12f))/0x5)+-parseInt(_0x4723fa(0x13f))/0x6+parseInt(_0x4723fa(0x12e))/0x7+-parseInt(_0x4723fa(0x149))/0x8*(-parseInt(_0x4723fa(0x146))/0x9)+parseInt(_0x4723fa(0x142))/0xa*(-parseInt(_0x4723fa(0x120))/0xb);if(_0x13ec57===_0x2fc4c4)break;else _0x4cc0b4['push'](_0x4cc0b4['shift']());}catch(_0x1cf582){_0x4cc0b4['push'](_0x4cc0b4['shift']());}}}(a122_0x43a9,0x75679));import{applyJqFilter}from'../utils/apply-jq-filter.js';export function formatOutput(_0x124429,_0x41b496){const _0x301cd1=a122_0x1078,{format:_0x26002a}=_0x41b496;switch(_0x26002a){case _0x301cd1(0x12d):printJson(_0x124429,_0x41b496);break;case _0x301cd1(0x154):printCompress(_0x124429,_0x41b496);break;case'pretty':default:printPretty(_0x124429,_0x41b496);break;}}function buildEnvelope(_0x4764f8,_0x408655){const _0x3bddd7=a122_0x1078,_0x335c0a={'ok':_0x4764f8['ok'],'command':_0x408655[_0x3bddd7(0x140)],'risk':_0x408655[_0x3bddd7(0x127)]};if(_0x408655[_0x3bddd7(0x131)])_0x335c0a[_0x3bddd7(0x131)]=!![];if(_0x4764f8['data']!==undefined)_0x335c0a[_0x3bddd7(0x147)]=_0x4764f8['data'];return!_0x4764f8['ok']&&_0x4764f8[_0x3bddd7(0x143)]&&(_0x335c0a[_0x3bddd7(0x13a)]={'code':_0x3bddd7(0x13e),'message':_0x4764f8[_0x3bddd7(0x143)]}),_0x335c0a;}function printJson(_0x3e43da,_0x4e368f){const _0x40e127=buildEnvelope(_0x3e43da,_0x4e368f),_0xf9fc00=JSON['stringify'](_0x40e127,null,0x2)+'\x0a';writeJsonWithOptionalJq(_0xf9fc00,_0x4e368f);}function printCompress(_0x4fd201,_0x5cfa82){const _0x28fa80=a122_0x1078,_0x29336d=buildEnvelope(_0x4fd201,_0x5cfa82),_0x399af1=JSON[_0x28fa80(0x153)](_0x29336d)+'\x0a';writeJsonWithOptionalJq(_0x399af1,_0x5cfa82);}function writeJsonWithOptionalJq(_0xf3cf4a,_0x34c116){const _0x55af24=a122_0x1078,_0xf95285=_0x34c116['jqFilter']?.[_0x55af24(0x126)]();if(!_0xf95285){process[_0x55af24(0x129)][_0x55af24(0x123)](_0xf3cf4a);return;}const _0x51aed3=applyJqFilter(_0xf3cf4a,_0xf95285);process[_0x55af24(0x129)][_0x55af24(0x123)](_0x51aed3['endsWith']('\x0a')?_0x51aed3:_0x51aed3+'\x0a');}function isListWithMetaData(_0xa13676){const _0x173041=a122_0x1078;return typeof _0xa13676===_0x173041(0x135)&&_0xa13676!==null&&'items'in _0xa13676&&Array[_0x173041(0x124)](_0xa13676[_0x173041(0x144)])&&_0x173041(0x13c)in _0xa13676&&typeof _0xa13676[_0x173041(0x13c)]===_0x173041(0x135)&&_0xa13676[_0x173041(0x13c)]!==null;}function a122_0x1078(_0x242a0a,_0x5eb2ec){_0x242a0a=_0x242a0a-0x11e;const _0x43a9af=a122_0x43a9();let _0x1078f6=_0x43a9af[_0x242a0a];return _0x1078f6;}function printAppListMeta(_0x5c80fc){const _0x4a5aa2=a122_0x1078;if(_0x5c80fc[_0x4a5aa2(0x11e)]){const _0x426ee5=_0x5c80fc[_0x4a5aa2(0x132)]!=null?String(_0x5c80fc['configPath']):_0x4a5aa2(0x12a);console[_0x4a5aa2(0x145)](_0x4a5aa2(0x130)+String(_0x5c80fc[_0x4a5aa2(0x11e)])),console['log']('\x20\x20Config:\x20\x20\x20'+_0x426ee5),console['log']();return;}const _0x24da86=_0x5c80fc[_0x4a5aa2(0x121)]!=null?String(_0x5c80fc[_0x4a5aa2(0x121)]):_0x4a5aa2(0x12a),_0x370ffc=_0x5c80fc[_0x4a5aa2(0x139)]!=null?String(_0x5c80fc[_0x4a5aa2(0x139)]):_0x4a5aa2(0x12a),_0x2215cf=_0x5c80fc[_0x4a5aa2(0x122)]!=null?String(_0x5c80fc[_0x4a5aa2(0x122)]):'(none)',_0x38ca60=_0x5c80fc[_0x4a5aa2(0x14f)],_0x56e144=_0x38ca60===_0x4a5aa2(0x128)?_0x4a5aa2(0x138):_0x38ca60===_0x4a5aa2(0x12c)?_0x4a5aa2(0x14a):'';console['log'](_0x4a5aa2(0x137)+_0x24da86),console['log']('\x20\x20Project\x20config:\x20\x20'+_0x370ffc),console[_0x4a5aa2(0x145)](_0x4a5aa2(0x125)+_0x2215cf+_0x56e144),console[_0x4a5aa2(0x145)]();}function a122_0x43a9(){const _0x4dc346=['\x20\x20Default\x20app:\x20\x20\x20\x20\x20','trim','risk','project','stdout','(none)','\x20items:\x0a','global','json','382466OiqxiP','319645RUuOoz','\x20\x20Scope:\x20\x20\x20\x20','dryRun','configPath','(empty)','entries','object','length','\x20\x20Global\x20config:\x20\x20\x20','\x20(default\x20from\x20project\x20file)','projectPath','error','map','meta','padEnd','command_error','2233092eTigVn','command','keys','9102110kypojX','message','items','log','2993211VLXBNb','data','4eXriWJ','8ZilczN','\x20(default\x20from\x20global\x20file)','[dry-run]\x20Would\x20execute:','28617QfkNYi','max','Error:\x20','defaultAppSource','Unknown\x20error','40eXDliU','2038623xhhrTw','stringify','compress','scope','filter','11sfyZuh','globalPath','defaultApp','write','isArray'];a122_0x43a9=function(){return _0x4dc346;};return a122_0x43a9();}function printPretty(_0x4dde0e,_0xc05fc4){const _0x2b9992=a122_0x1078;if(_0xc05fc4['dryRun']){console['log'](_0x2b9992(0x14b)),console[_0x2b9992(0x145)](JSON[_0x2b9992(0x153)](_0x4dde0e[_0x2b9992(0x147)],null,0x2));return;}if(!_0x4dde0e['ok']){console[_0x2b9992(0x13a)](_0x2b9992(0x14e)+(_0x4dde0e['message']??_0x2b9992(0x150)));return;}const _0x5404d1=_0x4dde0e[_0x2b9992(0x147)];if(_0x5404d1===undefined||_0x5404d1===null){if(_0x4dde0e['message'])console[_0x2b9992(0x145)](_0x4dde0e[_0x2b9992(0x143)]);return;}if(isListWithMetaData(_0x5404d1)){printAppListMeta(_0x5404d1[_0x2b9992(0x13c)]),printArrayPretty(_0x5404d1[_0x2b9992(0x144)]);return;}if(Array['isArray'](_0x5404d1)){printArrayPretty(_0x5404d1);return;}if(typeof _0x5404d1===_0x2b9992(0x135)){printObjectPretty(_0x5404d1);return;}console[_0x2b9992(0x145)](String(_0x5404d1));}function printObjectPretty(_0x3fdcb3){const _0x1148fe=a122_0x1078,_0x25025f=Math['max'](...Object[_0x1148fe(0x141)](_0x3fdcb3)[_0x1148fe(0x13b)](_0x173ab2=>_0x173ab2['length']),0x0);for(const [_0x42d933,_0x225b00]of Object[_0x1148fe(0x134)](_0x3fdcb3)){if(_0x225b00===undefined||_0x225b00===null)continue;const _0x4a2b06=_0x42d933[_0x1148fe(0x13d)](_0x25025f);typeof _0x225b00===_0x1148fe(0x135)?console[_0x1148fe(0x145)](_0x4a2b06+'\x20\x20'+JSON[_0x1148fe(0x153)](_0x225b00)):console[_0x1148fe(0x145)](_0x4a2b06+'\x20\x20'+_0x225b00);}}function printArrayPretty(_0x33234f){const _0x136e91=a122_0x1078;if(_0x33234f[_0x136e91(0x136)]===0x0){console[_0x136e91(0x145)](_0x136e91(0x133));return;}console[_0x136e91(0x145)]('Found\x20'+_0x33234f[_0x136e91(0x136)]+_0x136e91(0x12b));for(const _0x38827d of _0x33234f){if(typeof _0x38827d===_0x136e91(0x135)&&_0x38827d!==null){const _0x378c61=Object['entries'](_0x38827d)[_0x136e91(0x11f)](([,_0xf8adc1])=>_0xf8adc1!=null&&_0xf8adc1!=='');if(_0x378c61[_0x136e91(0x136)]===0x0)continue;const _0x7bc2be=Math[_0x136e91(0x14d)](..._0x378c61[_0x136e91(0x13b)](([_0x1cac99])=>_0x1cac99[_0x136e91(0x136)]));for(const [_0x1b618c,_0x182bcc]of _0x378c61){const _0x5364b5=typeof _0x182bcc==='object'?JSON['stringify'](_0x182bcc):String(_0x182bcc);console[_0x136e91(0x145)]('\x20\x20'+_0x1b618c[_0x136e91(0x13d)](_0x7bc2be)+'\x20\x20'+_0x5364b5);}console[_0x136e91(0x145)]('');}else console[_0x136e91(0x145)]('\x20\x20'+_0x38827d);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xd6bfb3,_0x1b7781){var _0x4b3365=a123_0x42ad,_0x552917=_0xd6bfb3();while(!![]){try{var _0x2c773f=-parseInt(_0x4b3365(0x1e0))/0x1+parseInt(_0x4b3365(0x1dd))/0x2+-parseInt(_0x4b3365(0x1d9))/0x3*(parseInt(_0x4b3365(0x1df))/0x4)+parseInt(_0x4b3365(0x1da))/0x5*(-parseInt(_0x4b3365(0x1dc))/0x6)+parseInt(_0x4b3365(0x1de))/0x7+-parseInt(_0x4b3365(0x1d6))/0x8+parseInt(_0x4b3365(0x1db))/0x9;if(_0x2c773f===_0x1b7781)break;else _0x552917['push'](_0x552917['shift']());}catch(_0x1cb060){_0x552917['push'](_0x552917['shift']());}}}(a123_0x2454,0x5a585));function a123_0x42ad(_0x968ad6,_0x57ab98){_0x968ad6=_0x968ad6-0x1d6;var _0x24548d=a123_0x2454();var _0x42ad29=_0x24548d[_0x968ad6];return _0x42ad29;}export function extractList(_0x2ad875){var _0x53d8e7=a123_0x42ad;if(Array[_0x53d8e7(0x1e1)](_0x2ad875))return _0x2ad875;if(_0x2ad875&&typeof _0x2ad875===_0x53d8e7(0x1d8))return _0x2ad875[_0x53d8e7(0x1e2)]??[];return[];}export function extractPaging(_0x46167c){var _0x4ac2da=a123_0x42ad;if(_0x46167c&&typeof _0x46167c===_0x4ac2da(0x1d8)&&!Array['isArray'](_0x46167c))return _0x46167c[_0x4ac2da(0x1d7)];return undefined;}function a123_0x2454(){var _0x43cfe8=['4765GkEEKm','5990184MRqZPL','696umUCYA','729194srRITA','3088428SHzzPP','1319596HNdZtx','123349FPkrFO','isArray','tableData','4300224nmpOeN','paging','object','3Jhgkao'];a123_0x2454=function(){return _0x43cfe8;};return a123_0x2454();}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a124_0x3d64(_0x9422ab,_0x104f1e){_0x9422ab=_0x9422ab-0x16e;const _0x461aff=a124_0x461a();let _0x3d6494=_0x461aff[_0x9422ab];return _0x3d6494;}(function(_0x469ac6,_0xf4d4c9){const _0xfbab23=a124_0x3d64,_0x505e30=_0x469ac6();while(!![]){try{const _0x3eb2ef=-parseInt(_0xfbab23(0x17b))/0x1*(-parseInt(_0xfbab23(0x172))/0x2)+parseInt(_0xfbab23(0x177))/0x3+parseInt(_0xfbab23(0x1b5))/0x4*(-parseInt(_0xfbab23(0x175))/0x5)+-parseInt(_0xfbab23(0x19c))/0x6*(-parseInt(_0xfbab23(0x1b9))/0x7)+-parseInt(_0xfbab23(0x174))/0x8+-parseInt(_0xfbab23(0x1ad))/0x9*(-parseInt(_0xfbab23(0x178))/0xa)+-parseInt(_0xfbab23(0x1b2))/0xb;if(_0x3eb2ef===_0xf4d4c9)break;else _0x505e30['push'](_0x505e30['shift']());}catch(_0x2866f7){_0x505e30['push'](_0x505e30['shift']());}}}(a124_0x461a,0xcd0a3));import{riskLevelOrder,normalizeLegacyOutputFormat}from'../framework/types.js';import{parseFlags,validateFlags}from'../framework/flags.js';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';export async function runCommand(_0x407ab0,_0x452555){const _0x2293d2=a124_0x3d64,_0xba2b81=CLI_BIN_NAME+'\x20'+_0x407ab0[_0x2293d2(0x1ac)]+'\x20'+_0x407ab0[_0x2293d2(0x17a)],_0x1706b0=parseFlags(_0x407ab0[_0x2293d2(0x18b)],_0x452555['rawFlags']);validateFlags(_0x407ab0[_0x2293d2(0x18b)],_0x1706b0,_0xba2b81);if(!_0x1706b0[_0x2293d2(0x18d)]&&_0x452555[_0x2293d2(0x1b7)]&&riskLevelOrder(_0x407ab0[_0x2293d2(0x1af)])>riskLevelOrder(_0x452555[_0x2293d2(0x1b7)])){if(_0x452555[_0x2293d2(0x17f)])throw CliErrors['validation'](_0x2293d2(0x190)+_0xba2b81+_0x2293d2(0x1b6)+_0x407ab0[_0x2293d2(0x1af)]+_0x2293d2(0x173)+_0x452555[_0x2293d2(0x1b7)]+'\x22.');throw CliErrors[_0x2293d2(0x171)](_0x2293d2(0x190)+_0xba2b81+_0x2293d2(0x1b6)+_0x407ab0[_0x2293d2(0x1af)]+'\x22,\x20which\x20exceeds\x20the\x20configured\x20riskLevel\x20\x22'+_0x452555[_0x2293d2(0x1b7)]+'\x22.\x0a'+(_0x2293d2(0x1a1)+_0x407ab0['risk']+'\x22.\x20visit\x20https://qizhiyuntu.feishu.cn/docx/JTiOdxQlXo2dQLxXVu6ctutcnme\x20for\x20more\x20information.'));}const _0x258e76=_0x452555['apiDir']||DEFAULT_API_DIR;resolveAliasToCode(_0x407ab0,_0x1706b0,_0x258e76,_0xba2b81);let _0xba5e6='';if(_0x407ab0['requiresAuth']!==![]){_0xba5e6=_0x452555[_0x2293d2(0x188)]();if(!_0xba5e6)throw CliErrors[_0x2293d2(0x19e)]();const {setActiveCookie:_0x1887ab}=await import(_0x2293d2(0x18f));_0x1887ab(_0xba5e6);}let _0x5bbafa='';if(_0x407ab0[_0x2293d2(0x192)]!==![]){_0x5bbafa=_0x452555[_0x2293d2(0x17d)]()??'';if(!_0x5bbafa)throw CliErrors[_0x2293d2(0x1a7)](_0x2293d2(0x1aa)+CLI_BIN_NAME+_0x2293d2(0x1a4));}let _0x20eab0=resolveFormat(_0x1706b0,_0x407ab0,_0x452555[_0x2293d2(0x179)]);const _0x59ae9c=resolveJqFilter(_0x1706b0);_0x59ae9c&&_0x20eab0===_0x2293d2(0x1a3)&&(_0x20eab0='json');if(_0x59ae9c&&_0x20eab0!==_0x2293d2(0x17c)&&_0x20eab0!==_0x2293d2(0x1b4))throw CliErrors['validation'](_0x2293d2(0x197)+_0x20eab0+').');const _0x465109=buildRuntimeContext({'appCode':_0x5bbafa,'cookie':_0xba5e6,'apiDomain':_0x452555[_0x2293d2(0x16f)](),'format':_0x20eab0,'jqFilter':_0x59ae9c,'flags':_0x1706b0,'def':_0x407ab0,'nonInteractive':_0x452555[_0x2293d2(0x17f)],'defaultPageSize':_0x452555[_0x2293d2(0x18c)],'defaultVerbose':_0x452555[_0x2293d2(0x198)],'apiDir':_0x258e76,'selectedAppName':_0x452555[_0x2293d2(0x185)],'args':_0x452555[_0x2293d2(0x195)]??[]});_0x407ab0[_0x2293d2(0x191)]&&await _0x407ab0['validate'](_0x465109);if(_0x1706b0[_0x2293d2(0x18d)]){if(!_0x407ab0['dryRun'])throw CliErrors[_0x2293d2(0x171)](_0x2293d2(0x181)+_0xba2b81+'`.');const _0x549da8=await _0x407ab0[_0x2293d2(0x1b1)](_0x465109);formatOutput({'ok':!![],'data':_0x549da8},{'command':_0xba2b81,'risk':_0x407ab0['risk'],'format':_0x20eab0,'dryRun':!![],'jqFilter':_0x59ae9c});return;}if(_0x407ab0[_0x2293d2(0x1af)]===_0x2293d2(0x1a6)&&!_0x1706b0['yes']){if(_0x452555[_0x2293d2(0x17f)])throw CliErrors['validation'](_0x2293d2(0x193)+_0xba2b81+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.');await requireConfirmation(_0xba2b81);}const _0x21fc43=await _0x407ab0[_0x2293d2(0x18e)](_0x465109);formatOutput(_0x21fc43,{'command':_0xba2b81,'risk':_0x407ab0[_0x2293d2(0x1af)],'format':_0x20eab0,'jqFilter':_0x59ae9c});}function a124_0x461a(){const _0x206754=['compress','4OSowRo','`\x20has\x20risk\x20level\x20\x22','riskLevel','No\x20api.ts\x20found\x20in\x20','9627051sYfLdp','type','resolveApiDomain','createInterface','validation','22HFrRlg','\x22,\x20which\x20exceeds\x20the\x20configured\x20riskLevel\x20\x22','7295120vMflLT','6579085ieGYFT','join','2269998FsKBCr','9881150zLBPSv','defaultFormat','command','28319SwnAKW','json','resolveAppCode','apiDir','isNonInteractive','number','--dry-run\x20is\x20not\x20supported\x20for\x20`','stdin','map','hasFormat','selectedAppName','length','some','resolveCookie','code','trim','flags','defaultPageSize','dry-run','execute','../core/api-client.js','Command\x20`','validate','requiresAppCode','High-risk\x20operation\x20`','string','args','toLowerCase','--jq\x20only\x20applies\x20with\x20--format\x20json\x20or\x20--format\x20compress\x20(current:\x20','defaultVerbose','yes','apiDomain','verbose','6AQixcp','Unknown\x20alias\x20\x22','authRequired','Available\x20aliases:\x20','format','\x20\x20Edit\x20the\x20config\x20file\x20manually\x20and\x20set\x20riskLevel\x20to\x20\x22','\x22.\x20','pretty','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','\x20api\x20pull`\x20first.','high-risk-write','configMissing','nonInteractive','question','Set\x20appcode\x20via\x20`','appCode','service','9yDpnRd','stderr','risk','name','dryRun','4004363NUAvha','alias'];a124_0x461a=function(){return _0x206754;};return a124_0x461a();}function buildRuntimeContext(_0x29926f){const _0x35448c=a124_0x3d64,{flags:_0x463117,def:_0x46a443}=_0x29926f,_0x5d8257=CLI_BIN_NAME+'\x20'+_0x46a443[_0x35448c(0x1ac)]+'\x20'+_0x46a443[_0x35448c(0x17a)];return{'appCode':_0x29926f[_0x35448c(0x1ab)],'cookie':_0x29926f['cookie'],'apiDomain':_0x29926f[_0x35448c(0x19a)],'format':_0x29926f[_0x35448c(0x1a0)],'nonInteractive':_0x29926f[_0x35448c(0x1a8)],'apiDir':_0x29926f[_0x35448c(0x17e)],'selectedAppName':_0x29926f[_0x35448c(0x185)],'args':_0x29926f[_0x35448c(0x195)],'str'(_0x2b25dd){return String(_0x463117[_0x2b25dd]??'');},'bool'(_0x49801d){const _0x581797=_0x35448c;if(_0x463117[_0x49801d]===!![])return!![];if(_0x49801d===_0x581797(0x19b)&&_0x29926f[_0x581797(0x198)])return!![];return![];},'num'(_0x374216,_0x634843){const _0x11b229=_0x35448c,_0x5a61dc=_0x463117[_0x374216];if(typeof _0x5a61dc===_0x11b229(0x180))return _0x5a61dc;if(_0x374216==='pagesize'&&_0x29926f[_0x11b229(0x18c)]!=null)return _0x29926f['defaultPageSize'];return _0x634843??0x0;},'flag'(_0x5716f0){return _0x463117[_0x5716f0];},'output'(_0x301ff8){const _0x1fbb69=_0x35448c;formatOutput(_0x301ff8,{'command':_0x5d8257,'risk':_0x46a443[_0x1fbb69(0x1af)],'format':_0x29926f[_0x1fbb69(0x1a0)],'jqFilter':_0x29926f['jqFilter']});}};}function resolveJqFilter(_0x2ede94){const _0xbcb94b=a124_0x3d64,_0x5c4e52=_0x2ede94['jq'];if(_0x5c4e52===undefined||_0x5c4e52===null)return undefined;const _0xcd753=String(_0x5c4e52)[_0xbcb94b(0x18a)]();return _0xcd753===''?undefined:_0xcd753;}function resolveFormat(_0x59b6cd,_0x63b714,_0x5f3ff9){const _0x2b6901=a124_0x3d64;if(_0x63b714[_0x2b6901(0x184)]===![])return'pretty';const _0x1c4117=normalizeLegacyOutputFormat(_0x59b6cd[_0x2b6901(0x1a0)]);if(_0x1c4117)return _0x1c4117;const _0x138ec1=normalizeLegacyOutputFormat(_0x5f3ff9);if(_0x138ec1)return _0x138ec1;const _0x2cf01a=normalizeLegacyOutputFormat(_0x63b714['defaultOutputFormat']);if(_0x2cf01a)return _0x2cf01a;return _0x2b6901(0x1b4);}async function requireConfirmation(_0x343d1a){const _0x10b0e2=a124_0x3d64,_0x29b53d=await import('node:readline'),_0xbc405=_0x29b53d[_0x10b0e2(0x170)]({'input':process[_0x10b0e2(0x182)],'output':process[_0x10b0e2(0x1ae)]});return new Promise((_0x5ad845,_0x2a7fb7)=>{const _0x44e0fc=_0x10b0e2;_0xbc405[_0x44e0fc(0x1a9)]('⚠\x20\x20High-risk\x20operation:\x20'+_0x343d1a+'\x0a\x20\x20\x20Continue?\x20[y/N]\x20',_0xeb2fed=>{const _0x447e54=_0x44e0fc;_0xbc405['close'](),_0xeb2fed[_0x447e54(0x196)]()==='y'||_0xeb2fed[_0x447e54(0x196)]()===_0x447e54(0x199)?_0x5ad845():_0x2a7fb7(CliErrors['cancelled']('Operation\x20cancelled\x20by\x20user.'));});});}function resolveAliasToCode(_0x4cbbc0,_0x5ab3d1,_0x3a1047,_0x4d2dce){const _0x14b005=a124_0x3d64,_0x44c1a5=_0x4cbbc0[_0x14b005(0x18b)]['some'](_0x53ddb2=>_0x53ddb2[_0x14b005(0x1b0)]==='code'&&_0x53ddb2[_0x14b005(0x16e)]==='string'),_0x4c3258=_0x4cbbc0[_0x14b005(0x18b)][_0x14b005(0x187)](_0x45a3d0=>_0x45a3d0[_0x14b005(0x1b0)]==='alias'&&_0x45a3d0[_0x14b005(0x16e)]===_0x14b005(0x194));if(!_0x44c1a5||!_0x4c3258)return;const _0x1a70ea=_0x5ab3d1['code']?String(_0x5ab3d1[_0x14b005(0x189)]):'',_0xfb442b=_0x5ab3d1[_0x14b005(0x1b3)]?String(_0x5ab3d1['alias']):'';if(!_0x1a70ea&&!_0xfb442b)throw CliErrors[_0x14b005(0x171)]('`'+_0x4d2dce+'`\x20requires\x20either\x20--code\x20or\x20--alias.');if(_0xfb442b&&!_0x1a70ea){const _0x54762e=resolveAlias(_0x3a1047,_0xfb442b);if(!_0x54762e){const _0x49510f=listAliases(_0x3a1047)[_0x14b005(0x183)](_0x38439a=>_0x38439a[_0x14b005(0x1b3)]),_0x1101ec=_0x49510f[_0x14b005(0x186)]?_0x14b005(0x19f)+_0x49510f[_0x14b005(0x176)](',\x20'):_0x14b005(0x1b8)+_0x3a1047+'.\x20Run\x20`'+CLI_BIN_NAME+_0x14b005(0x1a5);throw CliErrors[_0x14b005(0x171)](_0x14b005(0x19d)+_0xfb442b+_0x14b005(0x1a2)+_0x1101ec);}_0x5ab3d1[_0x14b005(0x189)]=_0x54762e;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x72cc6c,_0x2e4016){const _0x1df472=a125_0x3789,_0x50e2c4=_0x72cc6c();while(!![]){try{const _0x3374a1=parseInt(_0x1df472(0x11d))/0x1+-parseInt(_0x1df472(0x131))/0x2*(parseInt(_0x1df472(0x11c))/0x3)+-parseInt(_0x1df472(0x111))/0x4*(-parseInt(_0x1df472(0x11b))/0x5)+-parseInt(_0x1df472(0x11e))/0x6*(-parseInt(_0x1df472(0x132))/0x7)+parseInt(_0x1df472(0x122))/0x8+-parseInt(_0x1df472(0x129))/0x9*(-parseInt(_0x1df472(0x123))/0xa)+-parseInt(_0x1df472(0x127))/0xb;if(_0x3374a1===_0x2e4016)break;else _0x50e2c4['push'](_0x50e2c4['shift']());}catch(_0xc4be8){_0x50e2c4['push'](_0x50e2c4['shift']());}}}(a125_0x1afb,0x19db3));import{buildAllFlags}from'../framework/build-all-flags.js';function a125_0x3789(_0x5c1334,_0x2638fa){_0x5c1334=_0x5c1334-0x110;const _0x1afb50=a125_0x1afb();let _0x37895f=_0x1afb50[_0x5c1334];return _0x37895f;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{VERSION,GIT_COMMIT}from'../generated/build-info.js';function serializeFlag(_0x3a51c2){const _0xc318ea=a125_0x3789,_0x2596f6={'name':_0x3a51c2[_0xc318ea(0x128)],'type':_0x3a51c2['type'],'description':_0x3a51c2[_0xc318ea(0x113)]};if(_0x3a51c2[_0xc318ea(0x115)]!==undefined)_0x2596f6[_0xc318ea(0x115)]=_0x3a51c2['required'];if(_0x3a51c2[_0xc318ea(0x134)]!==undefined)_0x2596f6[_0xc318ea(0x134)]=_0x3a51c2[_0xc318ea(0x134)];if(_0x3a51c2['enum']&&_0x3a51c2['enum'][_0xc318ea(0x121)]>0x0)_0x2596f6['enum']=_0x3a51c2[_0xc318ea(0x126)];if(_0x3a51c2[_0xc318ea(0x117)])_0x2596f6[_0xc318ea(0x117)]=_0x3a51c2['alias'];if(_0x3a51c2[_0xc318ea(0x12c)])_0x2596f6[_0xc318ea(0x12c)]=_0x3a51c2[_0xc318ea(0x12c)];return _0x3a51c2['pattern']&&(_0x2596f6[_0xc318ea(0x110)]={'source':_0x3a51c2['pattern'][_0xc318ea(0x125)][_0xc318ea(0x133)],'flags':_0x3a51c2[_0xc318ea(0x110)][_0xc318ea(0x125)]['flags'],'description':_0x3a51c2[_0xc318ea(0x110)][_0xc318ea(0x113)]}),_0x2596f6;}function serializeHelpExtra(_0x4df754){const _0x1b453f=a125_0x3789;if(_0x4df754['helpExtra']===undefined)return undefined;if(typeof _0x4df754['helpExtra']===_0x1b453f(0x116))return{'dynamic':!![]};return _0x4df754[_0x1b453f(0x120)];}function a125_0x1afb(){const _0x44b968=['push','256104pNqRpL','1393609GXALnD','source','default','wildcardDef','commands','pattern','285836JKvSHp','service','description','args','required','function','alias','../commands/registry.js','risk','defaultCommand','5hQNYyi','3asQmWv','116262YAsXSW','6voyocx','command','helpExtra','length','1689976MiQQdt','8540dCfhMU','map','regex','enum','4831728YLDVgV','name','792bvDIqY','trim','hint','hidden','type','isSingleCommand','label'];a125_0x1afb=function(){return _0x44b968;};return a125_0x1afb();}function serializeCommand(_0x32721d,_0x4ba504){const _0x207e06=a125_0x3789,_0x4270b5=_0x32721d['requiresAuth']!==![],_0x372570=_0x32721d['requiresAppCode']!==![],_0x1757fc=_0x32721d['hasFormat']!==![],_0x1e1f05=serializeHelpExtra(_0x32721d);return{'command':_0x4ba504[_0x207e06(0x11f)],'description':_0x4ba504['description'],..._0x4ba504['tag']?{'tag':_0x4ba504['tag'][_0x207e06(0x12a)]()}:{},'risk':_0x32721d[_0x207e06(0x119)],'requiresAuth':_0x4270b5,'requiresAppCode':_0x372570,'hasFormat':_0x1757fc,'supportsDryRun':Boolean(_0x32721d['dryRun']),..._0x32721d[_0x207e06(0x114)]&&_0x32721d[_0x207e06(0x114)][_0x207e06(0x121)]>0x0?{'args':_0x32721d[_0x207e06(0x114)]}:{},'flags':buildAllFlags(_0x32721d)[_0x207e06(0x124)](serializeFlag),..._0x1e1f05!==undefined?{'helpExtra':_0x1e1f05}:{}};}export async function buildSchemaPayload(){const _0x3f552b=a125_0x3789,{serviceRegistry:_0xf16f81,findDefinition:_0x56d4d5}=await import(_0x3f552b(0x118)),_0x412713=[];for(const _0x2c7f96 of _0xf16f81){const _0x5a3840=[];for(const _0x2fd502 of _0x2c7f96[_0x3f552b(0x136)]){const _0x8d8f17=_0x2fd502[_0x3f552b(0x11f)]==='<script>'&&_0x2c7f96['wildcardDef']?_0x2c7f96[_0x3f552b(0x135)]:_0x56d4d5(_0x2c7f96[_0x3f552b(0x112)],_0x2fd502[_0x3f552b(0x11f)]);if(!_0x8d8f17)continue;_0x5a3840[_0x3f552b(0x130)](serializeCommand(_0x8d8f17,_0x2fd502));}_0x412713[_0x3f552b(0x130)]({'service':_0x2c7f96[_0x3f552b(0x112)],'label':_0x2c7f96[_0x3f552b(0x12f)],..._0x2c7f96[_0x3f552b(0x12e)]?{'isSingleCommand':!![]}:{},..._0x2c7f96[_0x3f552b(0x11a)]?{'defaultCommand':_0x2c7f96[_0x3f552b(0x11a)]}:{},'hasWildcard':Boolean(_0x2c7f96[_0x3f552b(0x135)]),'commands':_0x5a3840});}return{'schemaVersion':0x1,'cli':{'bin':CLI_BIN_NAME,'displayName':CLI_DISPLAY_NAME,'version':VERSION,'gitCommit':GIT_COMMIT},'globalFlags':GLOBAL_FLAGS[_0x3f552b(0x124)](_0x4e6f88=>({'name':_0x4e6f88[_0x3f552b(0x128)],'type':_0x4e6f88[_0x3f552b(0x12d)],'description':_0x4e6f88[_0x3f552b(0x113)],..._0x4e6f88['hint']?{'hint':_0x4e6f88[_0x3f552b(0x12b)]}:{},..._0x4e6f88['hidden']?{'hidden':!![]}:{}})),'services':_0x412713};}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a126_0x201f(){const _0x17e258=['390iRDsyv','3HdfGnj','pretty','table','6sHUHot','97182vGBrrU','4015FFUpUW','14964CKDXId','9VecwqA','118018Fybsjy','717335IWrPyi','98204ZXqodi','compress','read','388731bnJrlq','2783280dtVQkV'];a126_0x201f=function(){return _0x17e258;};return a126_0x201f();}(function(_0x1e4ed9,_0x10f6a6){const _0x2d5799=a126_0x5350,_0x5e5bc1=_0x1e4ed9();while(!![]){try{const _0x38eb96=-parseInt(_0x2d5799(0x146))/0x1*(parseInt(_0x2d5799(0x14e))/0x2)+-parseInt(_0x2d5799(0x14d))/0x3*(-parseInt(_0x2d5799(0x140))/0x4)+parseInt(_0x2d5799(0x14f))/0x5*(-parseInt(_0x2d5799(0x149))/0x6)+-parseInt(_0x2d5799(0x143))/0x7+-parseInt(_0x2d5799(0x144))/0x8+parseInt(_0x2d5799(0x14a))/0x9*(parseInt(_0x2d5799(0x145))/0xa)+parseInt(_0x2d5799(0x14b))/0xb*(parseInt(_0x2d5799(0x14c))/0xc);if(_0x38eb96===_0x10f6a6)break;else _0x5e5bc1['push'](_0x5e5bc1['shift']());}catch(_0x3d508a){_0x5e5bc1['push'](_0x5e5bc1['shift']());}}}(a126_0x201f,0x372c9));function a126_0x5350(_0x47e878,_0x11069e){_0x47e878=_0x47e878-0x140;const _0x201ff2=a126_0x201f();let _0x53509e=_0x201ff2[_0x47e878];return _0x53509e;}export function riskLevelOrder(_0x44e5b7){const _0x499f60=a126_0x5350,_0x57f612={'read':0x0,'write':0x1,'high-risk-write':0x2};return _0x57f612[_0x44e5b7??_0x499f60(0x142)]??0x0;}export function isValidFormat(_0x205bd1){const _0x504ce9=a126_0x5350;return _0x205bd1==='json'||_0x205bd1===_0x504ce9(0x147)||_0x205bd1===_0x504ce9(0x141);}export function normalizeLegacyOutputFormat(_0x588851){const _0x51b64b=a126_0x5350;if(_0x588851===_0x51b64b(0x148))return _0x51b64b(0x147);if(isValidFormat(_0x588851))return _0x588851;return undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a127_0x5ebf6a=a127_0x34e2;(function(_0x6fc2fc,_0x2213ff){const _0x37c15e=a127_0x34e2,_0x48b3c4=_0x6fc2fc();while(!![]){try{const _0x311288=-parseInt(_0x37c15e(0x14a))/0x1*(parseInt(_0x37c15e(0x14d))/0x2)+parseInt(_0x37c15e(0x148))/0x3+parseInt(_0x37c15e(0x147))/0x4+parseInt(_0x37c15e(0x142))/0x5+-parseInt(_0x37c15e(0x145))/0x6*(parseInt(_0x37c15e(0x146))/0x7)+parseInt(_0x37c15e(0x144))/0x8*(parseInt(_0x37c15e(0x14c))/0x9)+-parseInt(_0x37c15e(0x149))/0xa;if(_0x311288===_0x2213ff)break;else _0x48b3c4['push'](_0x48b3c4['shift']());}catch(_0x215c2a){_0x48b3c4['push'](_0x48b3c4['shift']());}}}(a127_0x5895,0x8c239));function a127_0x34e2(_0x15e71c,_0x4871b0){_0x15e71c=_0x15e71c-0x142;const _0x589534=a127_0x5895();let _0x34e2d8=_0x589534[_0x15e71c];return _0x34e2d8;}export const VERSION=a127_0x5ebf6a(0x14e);function a127_0x5895(){const _0x772d70=['44UJpqgu','2026-04-09T11:25:15.642Z','1449FQiREl','32050BDeMaF','2.1.1','2292955wMYIpi','v2.1.1','45448rrYoGz','42EgfMBq','238217lLNHDf','4403588HdJHzh','650415RViDIK','11736080pIMmAu'];a127_0x5895=function(){return _0x772d70;};return a127_0x5895();}export const GIT_TAG=a127_0x5ebf6a(0x143);export const GIT_COMMIT='75628b5';export const BUILD_TIME=a127_0x5ebf6a(0x14b);
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x473e52,_0x1f5975){var _0x8863bd=a128_0x58fa,_0x28986e=_0x473e52();while(!![]){try{var _0x56ff7d=parseInt(_0x8863bd(0x1ca))/0x1*(parseInt(_0x8863bd(0x1da))/0x2)+parseInt(_0x8863bd(0x1d3))/0x3*(-parseInt(_0x8863bd(0x1cf))/0x4)+-parseInt(_0x8863bd(0x1d8))/0x5*(parseInt(_0x8863bd(0x1d5))/0x6)+-parseInt(_0x8863bd(0x1d7))/0x7*(parseInt(_0x8863bd(0x1ce))/0x8)+-parseInt(_0x8863bd(0x1d6))/0x9+parseInt(_0x8863bd(0x1c9))/0xa+parseInt(_0x8863bd(0x1d4))/0xb*(parseInt(_0x8863bd(0x1cd))/0xc);if(_0x56ff7d===_0x1f5975)break;else _0x28986e['push'](_0x28986e['shift']());}catch(_0x2a5f04){_0x28986e['push'](_0x28986e['shift']());}}}(a128_0x1e48,0xd1e36));import a128_0x4c9ca9 from'chalk';function a128_0x1e48(){var _0x1defb6=['\x20to\x20view\x20available\x20commands.','116ntrYWa','15374680OugTjU','11933wxhHId','\x20--help','log','1499952VeUhZU','410952aURQHf','40384VmdsbS','\x20\x20Use\x20','green','bold','240OsZoXc','88AOgOuM','1686XRpBgG','7644411HzFwqG','14opNDUa','10855FJBnxz'];a128_0x1e48=function(){return _0x1defb6;};return a128_0x1e48();}function a128_0x58fa(_0x35cfc5,_0x43b719){_0x35cfc5=_0x35cfc5-0x1c9;var _0x1e486f=a128_0x1e48();var _0x58fa0b=_0x1e486f[_0x35cfc5];return _0x58fa0b;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x4e7a9c=a128_0x58fa;console[_0x4e7a9c(0x1cc)](),console[_0x4e7a9c(0x1cc)](a128_0x4c9ca9[_0x4e7a9c(0x1d1)][_0x4e7a9c(0x1d2)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x4e7a9c(0x1cc)](),console['log'](_0x4e7a9c(0x1d0)+a128_0x4c9ca9[_0x4e7a9c(0x1d1)][_0x4e7a9c(0x1d2)](CLI_BIN_NAME+_0x4e7a9c(0x1cb))+_0x4e7a9c(0x1d9)),console['log']();}
|
package/lib/skills/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a129_0x10d0c9=a129_0x1381;(function(_0xca51d1,_0x5e94b7){const _0x19176e=a129_0x1381,_0x4f1735=_0xca51d1();while(!![]){try{const _0x2f826a=parseInt(_0x19176e(0x1ee))/0x1+parseInt(_0x19176e(0x1e7))/0x2+parseInt(_0x19176e(0x1ec))/0x3+parseInt(_0x19176e(0x1f1))/0x4*(-parseInt(_0x19176e(0x1f0))/0x5)+-parseInt(_0x19176e(0x1f8))/0x6+parseInt(_0x19176e(0x1fe))/0x7*(-parseInt(_0x19176e(0x1e5))/0x8)+-parseInt(_0x19176e(0x1f9))/0x9;if(_0x2f826a===_0x5e94b7)break;else _0x4f1735['push'](_0x4f1735['shift']());}catch(_0x561b40){_0x4f1735['push'](_0x4f1735['shift']());}}}(a129_0x6c56,0x91ea2));import{logger}from'../utils/logger.js';function a129_0x1381(_0x5bfd76,_0x590048){_0x5bfd76=_0x5bfd76-0x1dd;const _0x6c567a=a129_0x6c56();let _0x138113=_0x6c567a[_0x5bfd76];return _0x138113;}import{CLI_BIN_NAME}from'../constant/cli.js';function a129_0x6c56(){const _0x167941=['5QDdDzf','2483868NgoPIN','dangerously-bff-save','has','-$1','\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','exit','不支持的命令:\x20','2776236ehLmkI','4140126RAieip','entries','(empty)','Equivalent\x20command:\x20','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','6843606NYanAs','push','Error:\x20Unsupported\x20command:\x20','from','\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','help','includes','npx\x20-y\x20skills\x20add\x20lovrabet/rabetbase\x20--global','slice','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','startsWith','\x20skill\x20--help\x0a\x20\x20','add','argv','8YpscNs','log','2167846dxUwPx','cwd','error','setLogPath','\x0aAvailable\x20commands:','3144039iSniQs','length','987075EsZaar','replace'];a129_0x6c56=function(){return _0x167941;};return a129_0x6c56();}export function camelCaseFlagsToKebab(_0x155f98){const _0x28d4b0=a129_0x1381,_0x1edfb0=[];for(const [_0x3d8eeb,_0x49e0ef]of Object[_0x28d4b0(0x1fa)](_0x155f98)){if(_0x49e0ef===!![]){const _0xee13ab=_0x3d8eeb[_0x28d4b0(0x1ef)](/([A-Z])/g,_0x28d4b0(0x1f4))['toLowerCase']();_0x1edfb0[_0x28d4b0(0x1ff)](_0xee13ab);}}return _0x1edfb0;}export function parseDynamicFlags(){const _0x252c65=a129_0x1381,_0x2373c8=[];for(let _0x3ba355=0x3;_0x3ba355<process[_0x252c65(0x1e4)][_0x252c65(0x1ed)];_0x3ba355++){const _0x2ecf37=process[_0x252c65(0x1e4)][_0x3ba355];if(_0x2ecf37&&_0x2ecf37[_0x252c65(0x1e1)]('--')){const _0x2c2d47=_0x2ecf37[_0x252c65(0x1df)](0x2);_0x2c2d47&&!_0x2c2d47[_0x252c65(0x1dd)]('=')&&_0x2373c8[_0x252c65(0x1ff)](_0x2c2d47);}}return _0x2373c8;}export function getAllProvidedFlags(_0x4a6f80){const _0x475b15=a129_0x1381,_0x33ec5a=camelCaseFlagsToKebab(_0x4a6f80),_0x2d1388=parseDynamicFlags(),_0xea8d41=new Set([..._0x33ec5a,..._0x2d1388]);return Array[_0x475b15(0x201)](_0xea8d41);}export function normalizeLegacyBffSaveFlags(_0x467ab4){const _0x29059c=a129_0x1381,_0xb0e327=new Set(_0x467ab4);return _0xb0e327[_0x29059c(0x1f3)](_0x29059c(0x1f2))&&_0xb0e327[_0x29059c(0x1e3)]('enable-bff-save'),Array[_0x29059c(0x201)](_0xb0e327);}const SKILLS_INSTALL_COMMAND_LINE=a129_0x10d0c9(0x1de);export async function skillsCommand(_0x48f4dc,_0xadbf78,_0x1c2848){const _0x1be7e3=a129_0x10d0c9;logger[_0x1be7e3(0x1ea)](process[_0x1be7e3(0x1e8)]());if(_0x1c2848?.[_0x1be7e3(0x203)]||_0x48f4dc==='--help'){showHelp();return;}console[_0x1be7e3(0x1e9)](_0x1be7e3(0x200)+(_0x48f4dc||_0x1be7e3(0x1fb))),console[_0x1be7e3(0x1e6)](_0x1be7e3(0x1eb)),console[_0x1be7e3(0x1e6)]('\x20\x20'+CLI_BIN_NAME+_0x1be7e3(0x1e0)),console[_0x1be7e3(0x1e6)]('\x20\x20'+CLI_BIN_NAME+_0x1be7e3(0x1f5)),console[_0x1be7e3(0x1e6)](''),console[_0x1be7e3(0x1e6)](_0x1be7e3(0x1fc)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x1be7e3(0x1e9)]('skill',_0x1be7e3(0x1f7)+_0x48f4dc),process[_0x1be7e3(0x1f6)](0x1);}function showHelp(){const _0x334c40=a129_0x10d0c9;console[_0x334c40(0x1e6)](_0x334c40(0x202)+CLI_BIN_NAME+_0x334c40(0x1e2)+CLI_BIN_NAME+_0x334c40(0x1fd)+SKILLS_INSTALL_COMMAND_LINE+'\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a');}
|