@lovrabet/lovrabet-cli 2.0.5-beta.1 → 2.0.6
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/cli.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/registry.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/config/schema.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.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/preparse.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.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/help.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a16_0x5594e0=a16_0x3397;(function(_0x45d51e,_0x3d39a3){const _0x3e7fbf=a16_0x3397,_0x88278b=_0x45d51e();while(!![]){try{const _0x2a666f=-parseInt(_0x3e7fbf(0x150))/0x1+parseInt(_0x3e7fbf(0x152))/0x2+-parseInt(_0x3e7fbf(0x15a))/0x3*(parseInt(_0x3e7fbf(0x14f))/0x4)+-parseInt(_0x3e7fbf(0x131))/0x5*(-parseInt(_0x3e7fbf(0x148))/0x6)+parseInt(_0x3e7fbf(0x164))/0x7*(-parseInt(_0x3e7fbf(0x128))/0x8)+-parseInt(_0x3e7fbf(0x15f))/0x9+parseInt(_0x3e7fbf(0x161))/0xa;if(_0x2a666f===_0x3d39a3)break;else _0x88278b['push'](_0x88278b['shift']());}catch(_0x413562){_0x88278b['push'](_0x88278b['shift']());}}}(a16_0x24d9,0x4d258));import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{requireAnyOf}from'../../commands/common/constraints.js';import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';function a16_0x3397(_0x4de389,_0x38b4b6){_0x4de389=_0x4de389-0x120;const _0x24d987=a16_0x24d9();let _0x3397c2=_0x24d987[_0x4de389];return _0x3397c2;}function a16_0x24d9(){const _0x40526a=['6rEutkL','\x20\x20\x20\x20$endWith\x20\x20\x20\x20\x20Ends\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22email\x22:{\x22$endWith\x22:\x22@example.com\x22}}','delete','\x20on\x20dataset\x20','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','2054367nSxukQ','paramsHint','8218390NBvfvq','update','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','329Ggidpb','getOne','\x20\x20\x20\x20$lt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lt\x22:1000}}','\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','risk','command','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20distinct\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22,\x22distinct\x22:true}','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\x20completed\x20in\x20','now','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','high-risk-write','\x20\x20\x20\x20$in\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Value\x20in\x20set\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22country\x22:{\x22$in\x22:[\x22CN\x22,\x22US\x22]}}','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22field\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20of\x20records\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}','\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.','\x20\x20PARAMS\x20STRUCTURE','helpExtra','3728kJUIQl','write','dryRun','filter','create','\x20\x20\x20\x20having\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Post-aggregation\x20filter,\x20e.g.\x20{\x22total\x22:{\x22$gt\x22:1000}}','\x20\x20\x20\x20$lte\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20or\x20equal\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lte\x22:1000}}','read','\x20\x20\x20\x20$or\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Any\x20condition\x20matches\x20\x20{\x22$or\x22:[{\x22status\x22:{\x22$eq\x22:\x22active\x22}},{\x22status\x22:{\x22$eq\x22:\x22pending\x22}}]}','1130ABCNjI','\x20\x20PAGINATION','\x20\x20AGGREGATE\x20TYPES','/api/{appCode}/','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','description','\x20\x20\x20\x20MAX\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Maximum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\x22}','params','\x20\x20WHERE\x20OPERATORS','code','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]','Preview:\x20data\x20','data','map','aggregate','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','operation','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rounded\x20average\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg\x22,\x22round\x22:true,\x22precision\x22:2}','build','5622mxNYlr','data\x20','\x20\x20\x20\x20$eq\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22age\x22:{\x22$eq\x22:18}}','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','Filter\x20dataset\x20records\x20with\x20query\x20conditions','batchCreate','211436eTtIxB','618948nLjehv','join','514444fUYLec','\x20\x20EXAMPLES','\x20\x20\x20\x20SUM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Sum\x20of\x20field\x20values\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}','\x20\x20\x20\x20$gte\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20or\x20equal\x20\x20{\x22amount\x22:{\x22$gte\x22:100}}','str','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','Update\x20an\x20existing\x20record','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27'];a16_0x24d9=function(){return _0x40526a;};return a16_0x24d9();}const specs=[{'command':'filter','operation':a16_0x5594e0(0x12b),'risk':a16_0x5594e0(0x12f),'paramsRequired':![],'description':a16_0x5594e0(0x14d),'paramsHint':a16_0x5594e0(0x137)+a16_0x5594e0(0x159),'helpExtra':[a16_0x5594e0(0x13b),a16_0x5594e0(0x14a),'\x20\x20\x20\x20$ne\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Not\x20equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22status\x22:{\x22$ne\x22:\x22deleted\x22}}','\x20\x20\x20\x20$gt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$gt\x22:100}}',a16_0x5594e0(0x155),a16_0x5594e0(0x166),a16_0x5594e0(0x12e),a16_0x5594e0(0x121),'\x20\x20\x20\x20$contain\x20\x20\x20\x20\x20Substring\x20match\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$contain\x22:\x22test\x22}}','\x20\x20\x20\x20$startWith\x20\x20\x20Starts\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$startWith\x22:\x22Mr.\x22}}',a16_0x5594e0(0x15b),'','\x20\x20LOGICAL\x20COMBINATORS','\x20\x20\x20\x20$and\x20\x20\x20\x20\x20\x20\x20\x20\x20All\x20conditions\x20match\x20\x20\x20{\x22$and\x22:[{\x22age\x22:{\x22$gte\x22:18}},{\x22status\x22:{\x22$eq\x22:\x22active\x22}}]}',a16_0x5594e0(0x130),'',a16_0x5594e0(0x16b),'\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]',a16_0x5594e0(0x13e),a16_0x5594e0(0x163),a16_0x5594e0(0x13d),'',a16_0x5594e0(0x132),a16_0x5594e0(0x125),a16_0x5594e0(0x167),a16_0x5594e0(0x135)]['join']('\x0a')},{'command':'getOne','operation':a16_0x5594e0(0x165),'risk':a16_0x5594e0(0x12f),'paramsRequired':!![],'description':'Get\x20a\x20single\x20record\x20by\x20ID','paramsHint':a16_0x5594e0(0x14c)},{'command':a16_0x5594e0(0x12c),'operation':a16_0x5594e0(0x12c),'risk':a16_0x5594e0(0x129),'paramsRequired':!![],'description':a16_0x5594e0(0x15e),'paramsHint':a16_0x5594e0(0x16e)},{'command':a16_0x5594e0(0x14e),'operation':a16_0x5594e0(0x14e),'risk':'write','paramsRequired':!![],'description':a16_0x5594e0(0x122),'paramsHint':a16_0x5594e0(0x157)},{'command':a16_0x5594e0(0x162),'operation':a16_0x5594e0(0x162),'risk':'write','paramsRequired':!![],'description':a16_0x5594e0(0x158),'paramsHint':'JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20Example:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27'},{'command':a16_0x5594e0(0x15c),'operation':a16_0x5594e0(0x15c),'risk':a16_0x5594e0(0x120),'paramsRequired':!![],'description':a16_0x5594e0(0x16f),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':a16_0x5594e0(0x142),'operation':a16_0x5594e0(0x142),'risk':a16_0x5594e0(0x12f),'paramsRequired':![],'description':a16_0x5594e0(0x136),'paramsHint':'JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20'+'Example:\x20\x27{\x22aggregate\x22:[{\x22field\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','helpExtra':[a16_0x5594e0(0x133),a16_0x5594e0(0x154),a16_0x5594e0(0x124),a16_0x5594e0(0x16a),'\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Average\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}',a16_0x5594e0(0x146),a16_0x5594e0(0x139),'\x20\x20\x20\x20MIN\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Minimum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22price\x22,\x22type\x22:\x22MIN\x22,\x22alias\x22:\x22min_price\x22}','',a16_0x5594e0(0x126),a16_0x5594e0(0x14b),'\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]',a16_0x5594e0(0x12d),'\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','',a16_0x5594e0(0x153),a16_0x5594e0(0x143),a16_0x5594e0(0x123),'',a16_0x5594e0(0x145),'\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22field\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[\x22region\x22],\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}}}\x27'][a16_0x5594e0(0x151)]('\x0a')}];function makeDataCommand(_0x10f708){const _0x31c474=a16_0x5594e0,_0xe91be=_0x31c474(0x149)+_0x10f708[_0x31c474(0x169)],_0x53dade={'service':_0x31c474(0x140),'command':_0x10f708[_0x31c474(0x169)],'description':_0x10f708[_0x31c474(0x138)],'risk':_0x10f708['risk'],'helpExtra':_0x10f708[_0x31c474(0x127)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x10f708[_0x31c474(0x160)]}],'validate':async _0x237f88=>{const _0x13b36f=_0x31c474;_0x10f708['paramsRequired']&&requireAnyOf(_0x237f88,['params'],_0xe91be),_0x10f708[_0x13b36f(0x144)]==='batchCreate'&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x237f88[_0x13b36f(0x156)]('params')));},async 'execute'(_0x9952c2){const _0x469f30=_0x31c474,_0x1b3fce=_0x9952c2[_0x469f30(0x156)](_0x469f30(0x13c)),_0x3ad231=_0x10f708[_0x469f30(0x144)]===_0x469f30(0x14e)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x9952c2[_0x469f30(0x156)]('params'))):parseJsonParams(_0x9952c2[_0x469f30(0x156)](_0x469f30(0x13a)))??{},_0x13b8a4=Date[_0x469f30(0x16d)](),_0x378956=await executeData(_0x1b3fce,_0x10f708[_0x469f30(0x144)],_0x3ad231),_0x56762a=Date[_0x469f30(0x16d)]()-_0x13b8a4;return{'ok':!![],'data':{'result':_0x378956,'elapsed':_0x56762a},'message':'data\x20'+_0x10f708[_0x469f30(0x169)]+_0x469f30(0x16c)+_0x56762a+'ms'};}};return _0x10f708[_0x31c474(0x168)]!==_0x31c474(0x12f)&&(_0x53dade[_0x31c474(0x12a)]=async _0x3c8436=>{const _0xd536ba=_0x31c474,_0x137db8=_0x3c8436['str'](_0xd536ba(0x13c)),_0x1a6918=_0x10f708[_0xd536ba(0x144)]===_0xd536ba(0x14e)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x3c8436['str'](_0xd536ba(0x13a)))):parseJsonParams(_0x3c8436[_0xd536ba(0x156)](_0xd536ba(0x13a)))??{};return dryRun('POST',_0xd536ba(0x134)+_0x137db8+'/'+_0x10f708[_0xd536ba(0x144)])['body'](_0x1a6918)[_0xd536ba(0x138)](_0xd536ba(0x13f)+_0x10f708[_0xd536ba(0x169)]+_0xd536ba(0x15d)+_0x137db8)[_0xd536ba(0x147)]();}),_0x53dade;}export const dataDefinitions=specs[a16_0x5594e0(0x141)](makeDataCommand);
|
|
1
|
+
function a16_0x2ed4(_0x41fd07,_0x261f0b){_0x41fd07=_0x41fd07-0x18e;const _0x20dbea=a16_0x20db();let _0x2ed4a8=_0x20dbea[_0x41fd07];return _0x2ed4a8;}const a16_0x484120=a16_0x2ed4;(function(_0x446e49,_0x2b1fdc){const _0x41939a=a16_0x2ed4,_0x5e56b1=_0x446e49();while(!![]){try{const _0x3cda45=parseInt(_0x41939a(0x199))/0x1*(-parseInt(_0x41939a(0x198))/0x2)+parseInt(_0x41939a(0x191))/0x3*(-parseInt(_0x41939a(0x1b7))/0x4)+parseInt(_0x41939a(0x1e0))/0x5*(-parseInt(_0x41939a(0x1c3))/0x6)+-parseInt(_0x41939a(0x1d9))/0x7+-parseInt(_0x41939a(0x1a8))/0x8*(parseInt(_0x41939a(0x1c1))/0x9)+parseInt(_0x41939a(0x1dd))/0xa*(-parseInt(_0x41939a(0x1da))/0xb)+parseInt(_0x41939a(0x1a5))/0xc*(parseInt(_0x41939a(0x19b))/0xd);if(_0x3cda45===_0x2b1fdc)break;else _0x5e56b1['push'](_0x5e56b1['shift']());}catch(_0x14a98f){_0x5e56b1['push'](_0x5e56b1['shift']());}}}(a16_0x20db,0x2aff2));import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{requireAnyOf}from'../../commands/common/constraints.js';import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':a16_0x484120(0x1ab),'operation':'filter','risk':'read','paramsRequired':![],'description':a16_0x484120(0x18f),'paramsHint':a16_0x484120(0x1ca)+a16_0x484120(0x1a1),'helpExtra':[a16_0x484120(0x1e6),a16_0x484120(0x1b1),a16_0x484120(0x1c9),a16_0x484120(0x19f),a16_0x484120(0x1c0),a16_0x484120(0x193),a16_0x484120(0x1e1),a16_0x484120(0x1a4),a16_0x484120(0x1be),a16_0x484120(0x1b4),a16_0x484120(0x1cf),'',a16_0x484120(0x19c),a16_0x484120(0x1b3),'\x20\x20\x20\x20$or\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Any\x20condition\x20matches\x20\x20{\x22$or\x22:[{\x22status\x22:{\x22$eq\x22:\x22active\x22}},{\x22status\x22:{\x22$eq\x22:\x22pending\x22}}]}','',a16_0x484120(0x1d1),a16_0x484120(0x1e7),'\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]',a16_0x484120(0x1a2),a16_0x484120(0x1d0),'\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','',a16_0x484120(0x1a0),'\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.',a16_0x484120(0x1ae),a16_0x484120(0x1a9)][a16_0x484120(0x197)]('\x0a')},{'command':a16_0x484120(0x1ba),'operation':a16_0x484120(0x1ba),'risk':a16_0x484120(0x18e),'paramsRequired':!![],'description':a16_0x484120(0x1e5),'paramsHint':a16_0x484120(0x1af)},{'command':a16_0x484120(0x1aa),'operation':a16_0x484120(0x1aa),'risk':a16_0x484120(0x1bb),'paramsRequired':!![],'description':a16_0x484120(0x1d5),'paramsHint':a16_0x484120(0x1cd)},{'command':'batchCreate','operation':a16_0x484120(0x1db),'risk':'write','paramsRequired':!![],'description':a16_0x484120(0x1c2),'paramsHint':'JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27'},{'command':a16_0x484120(0x19e),'operation':a16_0x484120(0x19e),'risk':a16_0x484120(0x1bb),'paramsRequired':!![],'description':'Update\x20an\x20existing\x20record','paramsHint':a16_0x484120(0x1d7)},{'command':a16_0x484120(0x194),'operation':'delete','risk':a16_0x484120(0x1a3),'paramsRequired':!![],'description':'Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','paramsHint':a16_0x484120(0x1af)},{'command':a16_0x484120(0x1a6),'operation':a16_0x484120(0x1a6),'risk':'read','paramsRequired':![],'description':a16_0x484120(0x1bd),'paramsHint':a16_0x484120(0x1cc)+'Example:\x20\x27{\x22aggregate\x22:[{\x22field\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','helpExtra':['\x20\x20AGGREGATE\x20TYPES',a16_0x484120(0x1d8),a16_0x484120(0x19a),a16_0x484120(0x192),'\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Average\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}',a16_0x484120(0x1b5),a16_0x484120(0x1e2),a16_0x484120(0x1dc),'',a16_0x484120(0x1b9),a16_0x484120(0x1ad),a16_0x484120(0x1ce),a16_0x484120(0x1bc),a16_0x484120(0x1b8),a16_0x484120(0x196),'\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','',a16_0x484120(0x190),'\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status',a16_0x484120(0x1b6),'',a16_0x484120(0x1d3),a16_0x484120(0x1c4)][a16_0x484120(0x197)]('\x0a')}];function makeDataCommand(_0xee00ec){const _0x353050=a16_0x484120,_0x266de0=_0x353050(0x1b0)+_0xee00ec['command'],_0x58aa94={'service':_0x353050(0x1d2),'command':_0xee00ec[_0x353050(0x1e4)],'description':_0xee00ec[_0x353050(0x1c5)],'risk':_0xee00ec[_0x353050(0x19d)],'helpExtra':_0xee00ec[_0x353050(0x1e3)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0xee00ec[_0x353050(0x1a7)]}],'validate':async _0x57ddb8=>{const _0x5b1525=_0x353050;_0xee00ec[_0x5b1525(0x195)]&&requireAnyOf(_0x57ddb8,[_0x5b1525(0x1de)],_0x266de0),_0xee00ec['operation']===_0x5b1525(0x1db)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x57ddb8[_0x5b1525(0x1b2)]('params')));},async 'execute'(_0x4b9f42){const _0x57fb94=_0x353050,_0x598a22=_0x4b9f42[_0x57fb94(0x1b2)](_0x57fb94(0x1c6)),_0x44a62a=_0xee00ec['operation']==='batchCreate'?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x4b9f42[_0x57fb94(0x1b2)]('params'))):parseJsonParams(_0x4b9f42['str'](_0x57fb94(0x1de)))??{},_0x206528=Date[_0x57fb94(0x1ac)](),_0x3c30f5=await executeData(_0x598a22,_0xee00ec[_0x57fb94(0x1d4)],_0x44a62a),_0x7691d7=Date[_0x57fb94(0x1ac)]()-_0x206528;return{'ok':!![],'data':{'result':_0x3c30f5,'elapsed':_0x7691d7},'message':_0x57fb94(0x1b0)+_0xee00ec['command']+_0x57fb94(0x1d6)+_0x7691d7+'ms'};}};return _0xee00ec['risk']!==_0x353050(0x18e)&&(_0x58aa94[_0x353050(0x1bf)]=async _0xe21152=>{const _0x393685=_0x353050,_0x596f83=_0xe21152[_0x393685(0x1b2)](_0x393685(0x1c6)),_0x5387f8=_0xee00ec[_0x393685(0x1d4)]===_0x393685(0x1db)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0xe21152[_0x393685(0x1b2)](_0x393685(0x1de)))):parseJsonParams(_0xe21152[_0x393685(0x1b2)](_0x393685(0x1de)))??{};return dryRun(_0x393685(0x1c8),_0x393685(0x1c7)+_0x596f83+'/'+_0xee00ec['operation'])[_0x393685(0x1df)](_0x5387f8)['description'](_0x393685(0x1cb)+_0xee00ec['command']+'\x20on\x20dataset\x20'+_0x596f83)['build']();}),_0x58aa94;}function a16_0x20db(){const _0x56d9f2=['\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rounded\x20average\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg\x22,\x22round\x22:true,\x22precision\x22:2}','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22field\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','16sGNbyX','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\x20\x20PARAMS\x20STRUCTURE','getOne','write','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','\x20\x20\x20\x20$contain\x20\x20\x20\x20\x20Substring\x20match\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$contain\x22:\x22test\x22}}','dryRun','\x20\x20\x20\x20$gte\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20or\x20equal\x20\x20{\x22amount\x22:{\x22$gte\x22:100}}','9Ohxmnf','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','9768VyHzJJ','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22field\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[\x22region\x22],\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}}}\x27','description','code','/api/{appCode}/','POST','\x20\x20\x20\x20$ne\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Not\x20equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22status\x22:{\x22$ne\x22:\x22deleted\x22}}','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','Preview:\x20data\x20','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','\x20\x20\x20\x20$endWith\x20\x20\x20\x20\x20Ends\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22email\x22:{\x22$endWith\x22:\x22@example.com\x22}}','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','data','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','operation','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','\x20completed\x20in\x20','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20Example:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27','\x20\x20\x20\x20SUM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Sum\x20of\x20field\x20values\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}','49511bGEsov','3007609GVgKGh','batchCreate','\x20\x20\x20\x20MIN\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Minimum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22price\x22,\x22type\x22:\x22MIN\x22,\x22alias\x22:\x22min_price\x22}','10dHgTVd','params','body','160iEdNwa','\x20\x20\x20\x20$lte\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20or\x20equal\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lte\x22:1000}}','\x20\x20\x20\x20MAX\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Maximum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\x22}','helpExtra','command','Get\x20a\x20single\x20record\x20by\x20ID','\x20\x20WHERE\x20OPERATORS','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','read','Filter\x20dataset\x20records\x20with\x20query\x20conditions','\x20\x20EXAMPLES','177549BKyTJE','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20distinct\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22,\x22distinct\x22:true}','\x20\x20\x20\x20$lt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lt\x22:1000}}','delete','paramsRequired','\x20\x20\x20\x20having\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Post-aggregation\x20filter,\x20e.g.\x20{\x22total\x22:{\x22$gt\x22:1000}}','join','2OvJttp','148639CmQPqu','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20of\x20records\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}','65PaQuIj','\x20\x20LOGICAL\x20COMBINATORS','risk','update','\x20\x20\x20\x20$gt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$gt\x22:100}}','\x20\x20PAGINATION','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]','high-risk-write','\x20\x20\x20\x20$in\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Value\x20in\x20set\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22country\x22:{\x22$in\x22:[\x22CN\x22,\x22US\x22]}}','2245008hOgmZt','aggregate','paramsHint','330776tMqCpt','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','create','filter','now','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','data\x20','\x20\x20\x20\x20$eq\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22age\x22:{\x22$eq\x22:18}}','str','\x20\x20\x20\x20$and\x20\x20\x20\x20\x20\x20\x20\x20\x20All\x20conditions\x20match\x20\x20\x20{\x22$and\x22:[{\x22age\x22:{\x22$gte\x22:18}},{\x22status\x22:{\x22$eq\x22:\x22active\x22}}]}','\x20\x20\x20\x20$startWith\x20\x20\x20Starts\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$startWith\x22:\x22Mr.\x22}}'];a16_0x20db=function(){return _0x56d9f2;};return a16_0x20db();}export const dataDefinitions=specs['map'](makeDataCommand);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a17_0x28bc(_0x27c3d4,_0x5a0f54){_0x27c3d4=_0x27c3d4-0x163;const _0x3d52f7=a17_0x3d52();let _0x28bc20=_0x3d52f7[_0x27c3d4];return _0x28bc20;}function a17_0x3d52(){const _0x5a6d4f=['dbId','8lRALMS','toDatasetCode','11GeqzQx','host','filter','options','dblinkInfoDTO','4gmHlOg','responseFields','displayName','dbType','toTableName','modelCode','dataset','push','source','sourceType','pkField','createTimeField','creatorIdField','801830lYObZa','title','8280380mwytjT','relations','length','239690lVxMTu','tableComment','formatRules','code','properties','datasetKey','read','path','required','string','1IZKlxB','detail','beforeScriptId','toField','deleted','afterScriptId','allFieldNames','modelId','responseBody','requestFields','updateTimeField','name','parse','allFields','dbName','14NKQSrA','map','operations','relatedPageInfoList','trim','dataType','requestBody','toDatasetName','fields','tableName','split','extend','2451279qyBKHM','logicField','creatorNameField','type','columnCodeListWithDeleted','834984dUsgjn','validateRules','modifierNameField','isArray','indexes','modifierIdField','object','method','13dnoDmc','toFieldLabel','4964376XUeBuG','str','6906987vxtZJQ','description','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations'];a17_0x3d52=function(){return _0x5a6d4f;};return a17_0x3d52();}const a17_0x20fa51=a17_0x28bc;(function(_0x3cbfc8,_0xa4764a){const _0x5b27fc=a17_0x28bc,_0x4ad336=_0x3cbfc8();while(!![]){try{const _0x4efd1d=parseInt(_0x5b27fc(0x167))/0x1*(-parseInt(_0x5b27fc(0x1ab))/0x2)+parseInt(_0x5b27fc(0x182))/0x3*(-parseInt(_0x5b27fc(0x19e))/0x4)+-parseInt(_0x5b27fc(0x1b0))/0x5+parseInt(_0x5b27fc(0x187))/0x6*(-parseInt(_0x5b27fc(0x176))/0x7)+-parseInt(_0x5b27fc(0x197))/0x8*(-parseInt(_0x5b27fc(0x193))/0x9)+parseInt(_0x5b27fc(0x1ad))/0xa*(parseInt(_0x5b27fc(0x199))/0xb)+-parseInt(_0x5b27fc(0x191))/0xc*(-parseInt(_0x5b27fc(0x18f))/0xd);if(_0x4efd1d===_0xa4764a)break;else _0x4ad336['push'](_0x4ad336['shift']());}catch(_0x472d68){_0x4ad336['push'](_0x4ad336['shift']());}}}(a17_0x3d52,0x71809));import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x548b71){const _0x123545=a17_0x28bc;if(_0x548b71['deleted'])return null;const _0x16283e=Boolean(_0x548b71[_0x123545(0x1a0)]!==undefined||_0x548b71['doType']!==undefined);let _0x42cd49={};if(!_0x16283e&&typeof _0x548b71[_0x123545(0x181)]==='string')try{_0x42cd49=JSON[_0x123545(0x173)](_0x548b71['extend']);}catch{}const _0x3a1c37=_0x16283e?_0x548b71[_0x123545(0x172)]:_0x548b71[_0x123545(0x1b3)],_0x58cf20=_0x16283e?_0x548b71[_0x123545(0x1a0)]:_0x548b71[_0x123545(0x172)],_0x30e9db=_0x16283e?_0x548b71['doType']:_0x548b71['type']||_0x548b71[_0x123545(0x17b)],_0x5a1152=_0x16283e?_0x548b71[_0x123545(0x1a8)]===!![]:_0x42cd49['pkField']===!![],_0x521cd9=_0x16283e?_0x548b71['required']===!![]:_0x42cd49[_0x123545(0x165)]===!![],_0x47735e=_0x16283e?_0x548b71[_0x123545(0x19c)]??null:_0x42cd49[_0x123545(0x19c)]??null,_0x4fde24={'name':_0x3a1c37,'displayName':_0x58cf20||_0x3a1c37,'type':_0x30e9db,'dbType':_0x548b71[_0x123545(0x1a1)],'pk':_0x5a1152,'required':_0x521cd9,'description':_0x548b71[_0x123545(0x194)]||undefined};return Array[_0x123545(0x18a)](_0x47735e)&&_0x47735e['length']>0x0&&(_0x4fde24['options']=_0x47735e),_0x4fde24;}function parseJsonMaybe(_0x164aab){const _0x20d630=a17_0x28bc;if(typeof _0x164aab!==_0x20d630(0x166))return _0x164aab;try{return JSON['parse'](_0x164aab);}catch{return _0x164aab;}}function normalizeOperationEntry(_0x4170c6,_0x1d0533){const _0x1f1125=a17_0x28bc;if(!_0x1d0533||typeof _0x1d0533!=='object')return null;if(!_0x1d0533['method']||!_0x1d0533[_0x1f1125(0x164)])return null;const _0x1472a6={'name':_0x4170c6,'method':_0x1d0533[_0x1f1125(0x18e)],'path':_0x1d0533[_0x1f1125(0x164)]};if(_0x1d0533[_0x1f1125(0x19a)])_0x1472a6['host']=_0x1d0533[_0x1f1125(0x19a)];if(_0x1d0533[_0x1f1125(0x17c)]!=null)_0x1472a6[_0x1f1125(0x17c)]=parseJsonMaybe(_0x1d0533[_0x1f1125(0x17c)]);if(_0x1d0533[_0x1f1125(0x16f)]!=null)_0x1472a6[_0x1f1125(0x16f)]=parseJsonMaybe(_0x1d0533['responseBody']);if(_0x1d0533['beforeScriptId']!=null)_0x1472a6[_0x1f1125(0x169)]=_0x1d0533[_0x1f1125(0x169)];if(_0x1d0533[_0x1f1125(0x16c)]!=null)_0x1472a6[_0x1f1125(0x16c)]=_0x1d0533[_0x1f1125(0x16c)];if(Array[_0x1f1125(0x18a)](_0x1d0533['requestFields']))_0x1472a6[_0x1f1125(0x170)]=_0x1d0533[_0x1f1125(0x170)];if(Array['isArray'](_0x1d0533[_0x1f1125(0x19f)]))_0x1472a6[_0x1f1125(0x19f)]=_0x1d0533['responseFields'];return _0x1472a6;}function summarizeDbtable(_0x14b15e){const _0x394464=a17_0x28bc,_0x59d3cc={},_0x1e8b38=[_0x394464(0x196),_0x394464(0x175),_0x394464(0x17f),_0x394464(0x1b5),_0x394464(0x1a8),_0x394464(0x174),_0x394464(0x183),_0x394464(0x1a9),_0x394464(0x171),_0x394464(0x1aa),_0x394464(0x184),_0x394464(0x18c),_0x394464(0x189),'labelField',_0x394464(0x19d)];for(const _0x20c2df of _0x1e8b38){if(_0x14b15e[_0x20c2df]!==undefined)_0x59d3cc[_0x20c2df]=_0x14b15e[_0x20c2df];}return typeof _0x59d3cc['allFields']===_0x394464(0x166)&&_0x59d3cc['allFields'][_0x394464(0x1af)]>0x0&&(_0x59d3cc[_0x394464(0x16d)]=_0x59d3cc['allFields'][_0x394464(0x180)](',')[_0x394464(0x177)](_0x43a76f=>_0x43a76f[_0x394464(0x17a)]())[_0x394464(0x19b)](Boolean)),_0x59d3cc;}function normalizeRelatedPages(_0x25648e){const _0x9e20e1=a17_0x28bc;if(!Array[_0x9e20e1(0x18a)](_0x25648e))return[];return _0x25648e[_0x9e20e1(0x19b)](_0x4b1618=>_0x4b1618&&typeof _0x4b1618===_0x9e20e1(0x18d))[_0x9e20e1(0x177)](_0x33ce39=>({'id':_0x33ce39['id'],'type':_0x33ce39[_0x9e20e1(0x185)],'code':_0x33ce39[_0x9e20e1(0x1b3)],'title':_0x33ce39[_0x9e20e1(0x1ac)],'deleted':_0x33ce39[_0x9e20e1(0x16b)]===!![]}));}export const datasetDetail={'service':a17_0x20fa51(0x1a4),'command':a17_0x20fa51(0x168),'description':a17_0x20fa51(0x195),'risk':a17_0x20fa51(0x163),'flags':[CODE_FLAG],async 'execute'(_0x275db2){const _0x23a6af=a17_0x20fa51,_0x2295dd=await getDatasetDetail(_0x275db2[_0x23a6af(0x192)](_0x23a6af(0x1b3))),_0x38bfcc=Array[_0x23a6af(0x18a)](_0x2295dd[_0x23a6af(0x17e)])?_0x2295dd[_0x23a6af(0x17e)]:Array[_0x23a6af(0x18a)](_0x2295dd['properties'])?_0x2295dd[_0x23a6af(0x1b4)]:[],_0x1c4439=_0x38bfcc[_0x23a6af(0x177)](_0x112925=>normalizeField(_0x112925))[_0x23a6af(0x19b)](_0x279f56=>_0x279f56!==null),_0x2d8e3e=_0x2295dd[_0x23a6af(0x178)]??{},_0x353865=[];for(const [_0xe131f1,_0x2a5558]of Object['entries'](_0x2d8e3e)){const _0x3f9266=normalizeOperationEntry(_0xe131f1,_0x2a5558);if(_0x3f9266)_0x353865[_0x23a6af(0x1a5)](_0x3f9266);}const _0x871ed8=_0x2295dd['dbtableConfig']??{},_0x2461af=_0x2295dd[_0x23a6af(0x1a4)]??{},_0x15853e=_0x871ed8['dbId']!=null?{'id':_0x871ed8[_0x23a6af(0x196)],'name':_0x871ed8['dbName']??null}:undefined;let _0x16d520;return typeof _0x2295dd['extend']===_0x23a6af(0x166)&&(_0x16d520=parseJsonMaybe(_0x2295dd[_0x23a6af(0x181)])),{'ok':!![],'data':{'id':_0x2295dd[_0x23a6af(0x16e)]??_0x2295dd['id'],'name':_0x2295dd[_0x23a6af(0x172)],'code':_0x2295dd[_0x23a6af(0x1a3)]||_0x2295dd[_0x23a6af(0x1b3)],'doVersion':_0x2295dd['doVersion'],'description':_0x2295dd[_0x23a6af(0x194)]||_0x2461af[_0x23a6af(0x1b1)]||undefined,'source':_0x2295dd[_0x23a6af(0x1a6)]||_0x2461af[_0x23a6af(0x1a7)],'table':_0x871ed8[_0x23a6af(0x17f)]||_0x2461af[_0x23a6af(0x17f)],'datasetKey':_0x871ed8[_0x23a6af(0x1b5)],'pk':_0x871ed8[_0x23a6af(0x1a8)],'db':_0x15853e,'dbtable':summarizeDbtable(_0x871ed8),'fields':_0x1c4439,'operations':_0x353865,'indexes':Array[_0x23a6af(0x18a)](_0x2461af['indexes'])?_0x2461af[_0x23a6af(0x18b)]:[],'relations':Array[_0x23a6af(0x18a)](_0x2295dd[_0x23a6af(0x1ae)])?_0x2295dd[_0x23a6af(0x1ae)][_0x23a6af(0x177)](_0x87369e=>({'fromField':_0x87369e['fromField'],'toDataset':_0x87369e[_0x23a6af(0x17d)],'toCode':_0x87369e[_0x23a6af(0x198)],'toTable':_0x87369e[_0x23a6af(0x1a2)],'toField':_0x87369e[_0x23a6af(0x16a)],'labelField':_0x87369e[_0x23a6af(0x190)]||undefined})):[],'relatedPages':normalizeRelatedPages(_0x2295dd[_0x23a6af(0x179)]),...Array[_0x23a6af(0x18a)](_0x2295dd[_0x23a6af(0x186)])?{'columnCodeListWithDeleted':_0x2295dd['columnCodeListWithDeleted']}:{},'formatRules':Array[_0x23a6af(0x18a)](_0x2295dd[_0x23a6af(0x1b2)])?_0x2295dd['formatRules']:[],'validateRules':Array[_0x23a6af(0x18a)](_0x2295dd[_0x23a6af(0x188)])?_0x2295dd[_0x23a6af(0x188)]:[],..._0x16d520!==undefined?{'extend':_0x16d520}:{},'stats':{'fieldCount':_0x1c4439[_0x23a6af(0x1af)],'operationCount':_0x353865[_0x23a6af(0x1af)]}}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5cf85f,_0x1d903e){const _0x4ed5ec=a18_0x26df,_0x483d75=_0x5cf85f();while(!![]){try{const _0x1a2c07=parseInt(_0x4ed5ec(0x1aa))/0x1*(-parseInt(_0x4ed5ec(0x1a9))/0x2)+parseInt(_0x4ed5ec(0x1a8))/0x3*(parseInt(_0x4ed5ec(0x1a5))/0x4)+parseInt(_0x4ed5ec(0x1ab))/0x5*(-parseInt(_0x4ed5ec(0x1a0))/0x6)+-parseInt(_0x4ed5ec(0x1a7))/0x7+parseInt(_0x4ed5ec(0x1a1))/0x8*(parseInt(_0x4ed5ec(0x1a3))/0x9)+parseInt(_0x4ed5ec(0x1ac))/0xa*(-parseInt(_0x4ed5ec(0x1a4))/0xb)+-parseInt(_0x4ed5ec(0x1a6))/0xc*(-parseInt(_0x4ed5ec(0x1a2))/0xd);if(_0x1a2c07===_0x1d903e)break;else _0x483d75['push'](_0x483d75['shift']());}catch(_0x1b1255){_0x483d75['push'](_0x483d75['shift']());}}}(a18_0x4768,0x5774d));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';export const datasetDefinitions=[datasetList,datasetDetail];function a18_0x26df(_0x13205a,_0x53e15d){_0x13205a=_0x13205a-0x1a0;const _0x47682d=a18_0x4768();let _0x26df71=_0x47682d[_0x13205a];return _0x26df71;}function a18_0x4768(){const _0xc13490=['9zorGDt','4136RJeoeK','4tgOyrl','446412zoYePK','1946336RNeHbE','895974fQeKDQ','46zqpIjn','22493LWwXzC','222655qkessI','7760prgwBX','24gAmMlM','4944248hfXzJc','247KdfXuh'];a18_0x4768=function(){return _0xc13490;};return a18_0x4768();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a19_0x33df94=a19_0x6233;function a19_0x6233(_0x39dec2,_0x389f51){_0x39dec2=_0x39dec2-0x194;const _0x12d2ae=a19_0x12d2();let _0x62333f=_0x12d2ae[_0x39dec2];return _0x62333f;}(function(_0x558d7a,_0x5c52a8){const _0x5d841d=a19_0x6233,_0x30c4b9=_0x558d7a();while(!![]){try{const _0x59820a=-parseInt(_0x5d841d(0x19b))/0x1*(parseInt(_0x5d841d(0x1a7))/0x2)+-parseInt(_0x5d841d(0x194))/0x3*(-parseInt(_0x5d841d(0x19a))/0x4)+-parseInt(_0x5d841d(0x198))/0x5+-parseInt(_0x5d841d(0x1a9))/0x6*(-parseInt(_0x5d841d(0x1a3))/0x7)+parseInt(_0x5d841d(0x197))/0x8+-parseInt(_0x5d841d(0x1ab))/0x9+parseInt(_0x5d841d(0x1a4))/0xa;if(_0x59820a===_0x5c52a8)break;else _0x30c4b9['push'](_0x30c4b9['shift']());}catch(_0x3c42dd){_0x30c4b9['push'](_0x30c4b9['shift']());}}}(a19_0x12d2,0xc88f9));import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a19_0x33df94(0x195),'command':a19_0x33df94(0x199),'description':a19_0x33df94(0x1ac),'risk':a19_0x33df94(0x1aa),'flags':[{'name':a19_0x33df94(0x19f),'type':a19_0x33df94(0x19e),'description':a19_0x33df94(0x1a1)},{...CODE_FLAG,'required':![],'description':'Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)'}],async 'execute'(_0x102a2a){const _0x46ef16=a19_0x33df94,_0x256dd7=_0x102a2a[_0x46ef16(0x19d)]('name'),_0x19346b=_0x102a2a['str'](_0x46ef16(0x1a0)),_0x50ecee=await listDatasets(_0x102a2a['appCode'],{..._0x256dd7&&{'name':_0x256dd7},..._0x19346b&&{'code':_0x19346b}});return{'ok':!![],'data':{'total':_0x50ecee['length'],'datasets':_0x50ecee[_0x46ef16(0x1a5)](_0x4116e8=>{const _0x35b57a=_0x46ef16,_0x59a8c4=_0x4116e8[_0x35b57a(0x1ad)]??{};return{'id':_0x4116e8['id'],'code':_0x4116e8[_0x35b57a(0x1a0)],'name':_0x4116e8['name'],'source':_0x4116e8[_0x35b57a(0x1ae)],'description':_0x4116e8['description'],'table':_0x59a8c4[_0x35b57a(0x19c)],'datasetKey':_0x59a8c4['datasetKey'],'pk':_0x59a8c4[_0x35b57a(0x1a2)],'fields':_0x59a8c4[_0x35b57a(0x1a6)]?_0x59a8c4[_0x35b57a(0x1a6)][_0x35b57a(0x196)](',')[_0x35b57a(0x1a5)](_0x13102e=>_0x13102e[_0x35b57a(0x1a8)]()):[]};})}};}};function a19_0x12d2(){const _0x42b1a2=['3663138ZlBdql','read','871524YfyRpk','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','dbtableConfig','source','8733xZFuOH','dataset','split','12868160QUjTzi','7162710AcUYBV','list','460RhweRR','2wVAydG','tableName','str','string','name','code','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','pkField','7txBNcj','1597270XugaOL','map','allFields','362660WCoxjz','trim'];a19_0x12d2=function(){return _0x42b1a2;};return a19_0x12d2();}
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a20_0x8c33a8=a20_0x32a9;function a20_0x32a9(_0x157e13,_0x372d42){_0x157e13=_0x157e13-0x1cf;const _0xc4aa98=a20_0xc4aa();let _0x32a94f=_0xc4aa98[_0x157e13];return _0x32a94f;}(function(_0x456908,_0x3192bc){const _0x22738d=a20_0x32a9,_0x3e5b40=_0x456908();while(!![]){try{const _0x4a04a8=-parseInt(_0x22738d(0x210))/0x1+parseInt(_0x22738d(0x1fd))/0x2*(-parseInt(_0x22738d(0x1d6))/0x3)+-parseInt(_0x22738d(0x1da))/0x4*(parseInt(_0x22738d(0x1f6))/0x5)+parseInt(_0x22738d(0x202))/0x6*(-parseInt(_0x22738d(0x1ef))/0x7)+parseInt(_0x22738d(0x1ee))/0x8+parseInt(_0x22738d(0x1de))/0x9+parseInt(_0x22738d(0x1eb))/0xa;if(_0x4a04a8===_0x3192bc)break;else _0x3e5b40['push'](_0x3e5b40['shift']());}catch(_0x5d33db){_0x3e5b40['push'](_0x3e5b40['shift']());}}}(a20_0xc4aa,0xa660e));import a20_0x13c8e9 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{getCliVersion}from'../utils/version.js';import{getApiDomain,getRuntimeDomain,getUserDomain}from'../constant/domain.js';import{buildConfigFromFlags,initGlobalEnvironment,getProjectConfigPath,getGlobalConfigPath,inspectCliConfigJsonFile}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{isLegacyCompatConfigKey}from'../config/schema.js';async function execute(_0x5137ff){const _0x1ce0d2=a20_0x32a9,_0x532728=getCliVersion(),_0x485f68=buildConfigFromFlags({});await initGlobalEnvironment(_0x485f68),console[_0x1ce0d2(0x1e5)](),console[_0x1ce0d2(0x1e5)](a20_0x13c8e9[_0x1ce0d2(0x206)](CLI_BIN_NAME+_0x1ce0d2(0x203))),console['log'](a20_0x13c8e9['gray']('─'[_0x1ce0d2(0x1ed)](0x32))),console[_0x1ce0d2(0x1e5)](_0x1ce0d2(0x205)+_0x532728),console['log'](_0x1ce0d2(0x1d3)+process['version']),console[_0x1ce0d2(0x1e5)](_0x1ce0d2(0x1e6)+process[_0x1ce0d2(0x1ea)]+'\x20'+process[_0x1ce0d2(0x1f9)]),console['log'](),console['log'](a20_0x13c8e9[_0x1ce0d2(0x206)]('\x20\x20Config\x20Files')),console[_0x1ce0d2(0x1e5)](a20_0x13c8e9[_0x1ce0d2(0x1e1)](_0x1ce0d2(0x204)[_0x1ce0d2(0x1ed)](0x1e)));const _0x2b98c9=getGlobalConfigPath(),_0x20ad81=getProjectConfigPath();console['log']('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2b98c9||a20_0x13c8e9[_0x1ce0d2(0x1e1)]('(not\x20found)'))),console[_0x1ce0d2(0x1e5)](_0x1ce0d2(0x1f2)+(_0x20ad81||a20_0x13c8e9[_0x1ce0d2(0x1e1)](_0x1ce0d2(0x20e)))),console['log'](),console['log'](a20_0x13c8e9[_0x1ce0d2(0x206)](_0x1ce0d2(0x1df))),console['log'](a20_0x13c8e9['gray'](_0x1ce0d2(0x204)['repeat'](0x1e)));const _0x521cff=(_0x1d8d42,_0x280274)=>{const _0x4cc024=_0x1ce0d2;if(!_0x280274){console['log']('\x20\x20'+_0x1d8d42[_0x4cc024(0x20a)](0x11)+'\x20'+a20_0x13c8e9['gray']('(no\x20file)'));return;}const _0x4d3cc1=inspectCliConfigJsonFile(_0x280274);if(_0x4d3cc1[_0x4cc024(0x1d2)]==='ok')console[_0x4cc024(0x1e5)]('\x20\x20'+_0x1d8d42['padEnd'](0x11)+'\x20'+a20_0x13c8e9[_0x4cc024(0x208)]('✓\x20Valid\x20JSON'));else{if(_0x4d3cc1['status']===_0x4cc024(0x1e2))console[_0x4cc024(0x1e5)]('\x20\x20'+_0x1d8d42['padEnd'](0x11)+'\x20'+a20_0x13c8e9[_0x4cc024(0x1d8)](_0x4cc024(0x1ec)));else _0x4d3cc1[_0x4cc024(0x1d2)]===_0x4cc024(0x1e9)?console[_0x4cc024(0x1e5)]('\x20\x20'+_0x1d8d42['padEnd'](0x11)+'\x20'+a20_0x13c8e9[_0x4cc024(0x1e1)](_0x4cc024(0x1f7))):(console[_0x4cc024(0x1e5)]('\x20\x20'+_0x1d8d42[_0x4cc024(0x20a)](0x11)+'\x20'+a20_0x13c8e9[_0x4cc024(0x1d7)]('✗\x20Invalid\x20JSON')),console[_0x4cc024(0x1e5)]('\x20\x20'+''['padEnd'](0x11)+'\x20'+a20_0x13c8e9[_0x4cc024(0x1d7)](_0x4d3cc1[_0x4cc024(0x1d1)])));}};_0x521cff(_0x1ce0d2(0x1fc),_0x2b98c9),_0x521cff(_0x1ce0d2(0x209),_0x20ad81),console['log'](),console[_0x1ce0d2(0x1e5)](a20_0x13c8e9['bold'](_0x1ce0d2(0x201))),console[_0x1ce0d2(0x1e5)](a20_0x13c8e9[_0x1ce0d2(0x1e1)](_0x1ce0d2(0x204)[_0x1ce0d2(0x1ed)](0x1e))),console[_0x1ce0d2(0x1e5)](_0x1ce0d2(0x20f)+(_0x485f68[_0x1ce0d2(0x1f4)]||a20_0x13c8e9['red'](_0x1ce0d2(0x1fe)))),console[_0x1ce0d2(0x1e5)]('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x485f68[_0x1ce0d2(0x200)]);const _0x1b284c=isLegacyCompatConfigKey('locale')?a20_0x13c8e9[_0x1ce0d2(0x1e1)](_0x485f68[_0x1ce0d2(0x1e0)]+'\x20(legacy/compat\x20only)'):_0x485f68['locale'];return console[_0x1ce0d2(0x1e5)](_0x1ce0d2(0x1d5)+_0x1b284c),console[_0x1ce0d2(0x1e5)](_0x1ce0d2(0x212)+(_0x485f68[_0x1ce0d2(0x1d0)]||a20_0x13c8e9['gray'](_0x1ce0d2(0x1f0)))),console[_0x1ce0d2(0x1e5)](_0x1ce0d2(0x1d9)+(_0x485f68['currentApp']||a20_0x13c8e9[_0x1ce0d2(0x1e1)](_0x1ce0d2(0x1f0)))),console[_0x1ce0d2(0x1e5)](_0x1ce0d2(0x207)+(_0x485f68['format']||a20_0x13c8e9[_0x1ce0d2(0x1e1)]('(default:\x20'+DEFAULT_CONFIG_VALUES[_0x1ce0d2(0x1fb)]+')'))),console[_0x1ce0d2(0x1e5)](_0x1ce0d2(0x1f1)+(_0x485f68['pageSize']??a20_0x13c8e9[_0x1ce0d2(0x1e1)](_0x1ce0d2(0x1cf)))),console[_0x1ce0d2(0x1e5)]('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x485f68[_0x1ce0d2(0x1e7)]),console[_0x1ce0d2(0x1e5)](_0x1ce0d2(0x1fa)+_0x485f68[_0x1ce0d2(0x1e4)]),console[_0x1ce0d2(0x1e5)](_0x1ce0d2(0x1ff)+AUTH_MODE[_0x1ce0d2(0x213)]),console[_0x1ce0d2(0x1e5)](_0x1ce0d2(0x20c)+(_0x485f68['accessKey']?a20_0x13c8e9[_0x1ce0d2(0x208)](_0x1ce0d2(0x20b)+_0x485f68[_0x1ce0d2(0x1dd)][_0x1ce0d2(0x1e3)]+')'):a20_0x13c8e9[_0x1ce0d2(0x1e1)](_0x1ce0d2(0x1f0)))),console[_0x1ce0d2(0x1e5)](),console[_0x1ce0d2(0x1e5)](a20_0x13c8e9[_0x1ce0d2(0x206)](_0x1ce0d2(0x211))),console['log'](a20_0x13c8e9[_0x1ce0d2(0x1e1)](_0x1ce0d2(0x204)[_0x1ce0d2(0x1ed)](0x1e))),console[_0x1ce0d2(0x1e5)](_0x1ce0d2(0x1f8)+getApiDomain()),console['log'](_0x1ce0d2(0x1dc)+getUserDomain()),console['log'](_0x1ce0d2(0x1db)+getRuntimeDomain()),console[_0x1ce0d2(0x1e5)](),console['log'](a20_0x13c8e9[_0x1ce0d2(0x206)]('\x20\x20Auth')),console[_0x1ce0d2(0x1e5)](a20_0x13c8e9[_0x1ce0d2(0x1e1)]('\x20\x20─'[_0x1ce0d2(0x1ed)](0x1e))),console[_0x1ce0d2(0x1e5)]('\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a20_0x13c8e9[_0x1ce0d2(0x208)](AUTH_MODE[_0x1ce0d2(0x213)]+_0x1ce0d2(0x1d4))),console[_0x1ce0d2(0x1e5)]('\x20\x20Session\x20check:\x20\x20\x20'+a20_0x13c8e9[_0x1ce0d2(0x1e1)](_0x1ce0d2(0x1f5))),console[_0x1ce0d2(0x1e5)](),{'ok':!![]};}function a20_0xc4aa(){const _0x17b5a7=['length','verbose','log','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','riskLevel','Diagnose\x20CLI\x20configuration\x20and\x20environment','missing','platform','13310920hSzOwl','⚠\x20Empty\x20(treated\x20as\x20{})','repeat','9392704HIYEVE','21jAhHBj','(none)','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','read','appCode','(removed\x20—\x20cookie\x20auth\x20disabled)','328765AtxHuc','(missing)','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','arch','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','format','Global','18cHYXJp','(not\x20set)','\x20\x20auth\x20(effective):\x20','env','\x20\x20Merged\x20Config','1149486DYBSfY','\x20doctor','\x20\x20─','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','bold','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','green','Project','padEnd','(set,\x20length=','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','check','(not\x20found)','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','1130877gJcJAa','\x20\x20API\x20Endpoints','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','ClientAk','(default)','defaultApp','message','status','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20(accessKey)','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','228219bQTxYT','red','yellow','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','16uBELXI','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','accessKey','7466355HRQkAM','\x20\x20Config\x20JSON','locale','gray','empty'];a20_0xc4aa=function(){return _0x17b5a7;};return a20_0xc4aa();}export const doctorDefinition={'service':'doctor','command':a20_0x8c33a8(0x20d),'description':a20_0x8c33a8(0x1e8),'risk':a20_0x8c33a8(0x1f3),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
package/lib/commands/init.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a21_0x1df400=a21_0xf157;function a21_0x39a2(){const _0x400c76=['project','\x20already\x20exists.\x20Overwrite?','Invalid\x20env\x20\x22','log','cancelled','trim','yes','join','global','Failed\x20to\x20parse\x20source\x20file:\x20','parse','toLowerCase','SIGINT','105TUUDDt','314KfPXHI','):\x20','Initialized\x20','stdin','boolean','\x20\x20default:\x20','1376505NwXcrq','removeListener','close','entries','User\x20aborted\x20prompt','app','env','581VoKyYe','flagMissing','App\x20code\x20cannot\x20be\x20empty.','race','15324yNmldk','Skip\x20confirmation\x20when\x20overwriting','Provide\x20--appcode\x20<code>\x20or\x20use\x20an\x20upgraded\x20.rabetbase.json\x20with\x20top-level\x20appcode.\x20Legacy\x20files\x20must\x20be\x20upgraded\x20first\x20with\x20`rabetbase\x20project\x20upgrade`.','defaultApp','Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','3674VkVxCL','\x20\x20appcode:\x20','3366jVJgYD','File\x20','message','Imported\x20from\x20','App\x20code','Write\x20to\x20global\x20(~/.lovrabet.json)\x20instead\x20of\x20project','appcode','string','\x20\x20config:\x20\x20','2459110LXcZJN','\x22.\x20Allowed:\x20','Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','name','[y/N]','892LEKSNa','[Y/n]','riskLevel','8xHffAg','153774crPgnT','\x0aInitialized\x20','Usage:\x20','stdout','apps','Override\x20imported\x20default\x20env','2022mbLwmZ','question','utf8','\x20\x20env:\x20\x20\x20\x20\x20','once','apiDir','Target\x20environment\x20(default\x20','\x20app\x20init\x20--appcode\x20<code>\x20[--env\x20daily]\x20[--global]','validation'];a21_0x39a2=function(){return _0x400c76;};return a21_0x39a2();}(function(_0x2c0d0e,_0x5a0dd4){const _0x26435e=a21_0xf157,_0x26e7ba=_0x2c0d0e();while(!![]){try{const _0x4cf183=parseInt(_0x26435e(0x12d))/0x1*(parseInt(_0x26435e(0x12e))/0x2)+parseInt(_0x26435e(0xff))/0x3*(parseInt(_0x26435e(0x10d))/0x4)+parseInt(_0x26435e(0x134))/0x5+parseInt(_0x26435e(0x117))/0x6*(-parseInt(_0x26435e(0x13b))/0x7)+parseInt(_0x26435e(0x110))/0x8*(-parseInt(_0x26435e(0x111))/0x9)+parseInt(_0x26435e(0x108))/0xa+-parseInt(_0x26435e(0xfd))/0xb*(parseInt(_0x26435e(0xf8))/0xc);if(_0x4cf183===_0x5a0dd4)break;else _0x26e7ba['push'](_0x26e7ba['shift']());}catch(_0x5b5fba){_0x26e7ba['push'](_0x26e7ba['shift']());}}}(a21_0x39a2,0x4d3a8));import{existsSync,readFileSync}from'node:fs';import{resolve,isAbsolute}from'node:path';import{createInterface}from'node:readline';import{CliErrors}from'../errors.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{IMPORTABLE_RUNTIME_CONFIG_KEYS}from'../config/schema.js';import{resolveWriteConfigPath,readConfigFile,writeConfigFile,isNonInteractiveMode}from'../context.js';import{CLI_BIN_NAME}from'../constant/cli.js';export const initCreateFlagDefs=[{'name':a21_0x1df400(0x105),'type':a21_0x1df400(0x106),'description':'App\x20code\x20for\x20the\x20project'},{'name':'env','type':a21_0x1df400(0x106),'description':a21_0x1df400(0x11d)+DEFAULT_CONFIG_VALUES[a21_0x1df400(0x13a)]+')','enum':[...RUNTIME_ENV_VALUES]},{'name':a21_0x1df400(0x128),'type':'boolean','description':a21_0x1df400(0x104),'default':![]},{'name':a21_0x1df400(0x126),'type':a21_0x1df400(0x132),'description':a21_0x1df400(0xf9),'default':![]}];export const initImportFlagDefs=[{'name':'file','type':a21_0x1df400(0x106),'description':a21_0x1df400(0xfc),'required':!![]},{'name':a21_0x1df400(0x105),'type':a21_0x1df400(0x106),'description':'Override\x20imported\x20default\x20appcode'},{'name':a21_0x1df400(0x13a),'type':a21_0x1df400(0x106),'description':a21_0x1df400(0x116),'enum':[...RUNTIME_ENV_VALUES]},{'name':a21_0x1df400(0x128),'type':'boolean','description':a21_0x1df400(0x104),'default':![]},{'name':a21_0x1df400(0x126),'type':'boolean','description':a21_0x1df400(0xf9),'default':![]}];export async function runInit(_0x170a1b){const _0x3fe91a=a21_0x1df400,_0x3c2ff4=isNonInteractiveMode(_0x170a1b),_0x86856d=_0x170a1b['global']?'global':'project',_0x261f76=resolveWriteConfigPath(_0x86856d);try{_0x3c2ff4?await runNonInteractive(_0x170a1b,_0x261f76):await runInteractive(_0x170a1b,_0x261f76);}catch(_0x20e8d2){if(_0x20e8d2 instanceof AbortPrompt)throw CliErrors[_0x3fe91a(0x124)]();throw _0x20e8d2;}}export async function runInitImport(_0x273d20){const _0xe8125=a21_0x1df400,_0xaab844=_0x273d20[_0xe8125(0x128)]?_0xe8125(0x128):_0xe8125(0x120),_0x49325a=resolveWriteConfigPath(_0xaab844);await runFromImport(_0x273d20,_0x49325a);}const RUNTIME_IRRELEVANT_KEYS=new Set([a21_0x1df400(0x11c)]);async function runFromImport(_0x5e1456,_0xe9d33b){const _0x59f9fa=a21_0x1df400,_0x5cfae6=resolveFilePath(_0x5e1456['file']);if(!existsSync(_0x5cfae6))throw CliErrors[_0x59f9fa(0x11f)]('Source\x20file\x20not\x20found:\x20'+_0x5cfae6);const _0x5094e7=readSourceFile(_0x5cfae6),_0x38a454=convertToRuntimeConfig(_0x5094e7);_0x5e1456[_0x59f9fa(0x105)]&&(_0x38a454[_0x59f9fa(0x105)]=String(_0x5e1456[_0x59f9fa(0x105)]));_0x5e1456[_0x59f9fa(0x13a)]&&(_0x38a454['env']=resolveInitEnv(_0x5e1456));if(!_0x38a454[_0x59f9fa(0x105)])throw CliErrors[_0x59f9fa(0x11f)]('Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.',_0x59f9fa(0xfa));await writeInitConfig(_0xe9d33b,_0x38a454,_0x5e1456),console[_0x59f9fa(0x123)](_0x59f9fa(0x102)+_0x5cfae6),console[_0x59f9fa(0x123)](_0x59f9fa(0x107)+_0xe9d33b),console['log'](_0x59f9fa(0xfe)+_0x38a454[_0x59f9fa(0x105)]);if(_0x38a454[_0x59f9fa(0xfb)])console[_0x59f9fa(0x123)](_0x59f9fa(0x133)+_0x38a454[_0x59f9fa(0xfb)]);}function convertToRuntimeConfig(_0x515002){const _0x1fdd5e=a21_0x1df400;if(_0x515002[_0x1fdd5e(0x115)]&&typeof _0x515002[_0x1fdd5e(0x115)]==='object')throw CliErrors[_0x1fdd5e(0x11f)](_0x1fdd5e(0x10a),'Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.');const _0x18b46d={};for(const _0x5749cb of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x515002[_0x5749cb]!==undefined&&(_0x18b46d[_0x5749cb]=_0x515002[_0x5749cb]);}return!_0x18b46d[_0x1fdd5e(0x10f)]&&(_0x18b46d[_0x1fdd5e(0x10f)]=DEFAULT_CONFIG_VALUES['riskLevel']),_0x18b46d;}async function runNonInteractive(_0x443d21,_0x16049a){const _0x5a611f=a21_0x1df400,_0x232072=_0x443d21['appcode'];if(!_0x232072)throw CliErrors[_0x5a611f(0x13c)](_0x5a611f(0x105),_0x5a611f(0x113)+CLI_BIN_NAME+_0x5a611f(0x11e));const _0x267efc=resolveInitEnv(_0x443d21);await writeInitConfig(_0x16049a,{'appcode':_0x232072,'env':_0x267efc},_0x443d21),console[_0x5a611f(0x123)](_0x5a611f(0x130)+_0x16049a),console[_0x5a611f(0x123)](_0x5a611f(0xfe)+_0x232072),console['log'](_0x5a611f(0x11a)+_0x267efc);}async function runInteractive(_0x13cd1c,_0x2f8caa){const _0x2c0827=a21_0x1df400,_0x23d264=loadExisting(_0x2f8caa),_0x1b6485=typeof _0x23d264?.[_0x2c0827(0x105)]===_0x2c0827(0x106)?_0x23d264[_0x2c0827(0x105)]:'',_0x33ae1d=resolveInitEnv(_0x13cd1c);console[_0x2c0827(0x123)](CLI_BIN_NAME+'\x20init\x20—\x20Create\x20.lovrabet.json\x0a');if(existsSync(_0x2f8caa)&&!_0x13cd1c[_0x2c0827(0x126)]){const _0x5bf1e1=await promptYesNo(_0x2c0827(0x100)+_0x2f8caa+_0x2c0827(0x121),![]);if(!_0x5bf1e1){console[_0x2c0827(0x123)]('Aborted.');return;}}const _0x3d5614=typeof _0x13cd1c[_0x2c0827(0x105)]===_0x2c0827(0x106)?_0x13cd1c[_0x2c0827(0x105)]['trim']():'';let _0x284ce3=_0x3d5614;!_0x284ce3&&(_0x284ce3=await promptInput(_0x2c0827(0x103),_0x1b6485));if(!_0x284ce3[_0x2c0827(0x125)]())throw CliErrors[_0x2c0827(0x11f)](_0x2c0827(0x13d));await writeInitConfig(_0x2f8caa,{'appcode':_0x284ce3[_0x2c0827(0x125)](),'env':_0x33ae1d},_0x13cd1c),console[_0x2c0827(0x123)](_0x2c0827(0x112)+_0x2f8caa),console[_0x2c0827(0x123)]('\x20\x20appcode:\x20'+_0x284ce3[_0x2c0827(0x125)]()),console[_0x2c0827(0x123)](_0x2c0827(0x11a)+_0x33ae1d);}async function writeInitConfig(_0x21a991,_0x4bf598,_0x185df8){const _0x2f8b08=a21_0x1df400;let _0x51341a={};existsSync(_0x21a991)&&!_0x185df8[_0x2f8b08(0x126)]&&(_0x51341a=readConfigFile(_0x21a991));for(const [_0x30312f,_0x4fa163]of Object[_0x2f8b08(0x137)](_0x4bf598)){_0x4fa163!==undefined&&(_0x51341a[_0x30312f]=_0x4fa163);}if(_0x51341a[_0x2f8b08(0x139)])delete _0x51341a[_0x2f8b08(0x139)];writeConfigFile(_0x21a991,_0x51341a);}class AbortPrompt extends Error{constructor(){const _0x567237=a21_0x1df400;super(_0x567237(0x138)),this[_0x567237(0x10b)]='AbortPrompt';}}function createSafeRl(){const _0x3851f9=a21_0x1df400,_0x31d895=createInterface({'input':process[_0x3851f9(0x131)],'output':process[_0x3851f9(0x114)]});let _0x2e5ee5;const _0x34659f=new Promise((_0x142b7d,_0x3923db)=>{const _0x4e1692=_0x3851f9;_0x2e5ee5=()=>{const _0x25e9cf=a21_0xf157;_0x2e5ee5&&(_0x31d895[_0x25e9cf(0x135)](_0x25e9cf(0x12c),_0x2e5ee5),_0x2e5ee5=undefined);try{_0x31d895[_0x25e9cf(0x136)]();}catch{}_0x3923db(new AbortPrompt());},_0x31d895[_0x4e1692(0x11b)](_0x4e1692(0x12c),_0x2e5ee5);}),_0x4a90d5=()=>{const _0xe3f96a=_0x3851f9;_0x2e5ee5&&(_0x31d895[_0xe3f96a(0x135)]('SIGINT',_0x2e5ee5),_0x2e5ee5=undefined);try{_0x31d895['close']();}catch{}};return{'rl':_0x31d895,'abortPromise':_0x34659f,'disposeSuccess':_0x4a90d5};}function a21_0xf157(_0x2a5c75,_0x32044c){_0x2a5c75=_0x2a5c75-0xf7;const _0x39a221=a21_0x39a2();let _0xf1577e=_0x39a221[_0x2a5c75];return _0xf1577e;}async function promptInput(_0x9f2c1f,_0x2bb22e){const {rl:_0x4b95d7,abortPromise:_0x31271f,disposeSuccess:_0xe50a26}=createSafeRl(),_0x352a04=new Promise(_0x32ff6d=>{const _0x260c73=a21_0xf157,_0x3b299=_0x2bb22e?'\x20\x20'+_0x9f2c1f+'\x20('+_0x2bb22e+_0x260c73(0x12f):'\x20\x20'+_0x9f2c1f+':\x20';_0x4b95d7[_0x260c73(0x118)](_0x3b299,_0x18f3f9=>{_0xe50a26(),_0x32ff6d(_0x18f3f9['trim']()||_0x2bb22e);});});return Promise['race']([_0x352a04,_0x31271f]);}async function promptYesNo(_0x16294c,_0x2d2e91){const _0x159be2=a21_0x1df400,{rl:_0x1cf4bb,abortPromise:_0x261d35,disposeSuccess:_0x431aa4}=createSafeRl(),_0x4e1704=new Promise(_0x251c83=>{const _0x20c2af=a21_0xf157,_0x5f1a5a=_0x2d2e91?_0x20c2af(0x10e):_0x20c2af(0x10c);_0x1cf4bb[_0x20c2af(0x118)]('\x20\x20'+_0x16294c+'\x20'+_0x5f1a5a+':\x20',_0x20a32e=>{const _0x2da9a7=_0x20c2af;_0x431aa4();const _0x42e9c8=_0x20a32e[_0x2da9a7(0x125)]()[_0x2da9a7(0x12b)]();if(_0x42e9c8==='y'||_0x42e9c8===_0x2da9a7(0x126))_0x251c83(!![]);else{if(_0x42e9c8==='n'||_0x42e9c8==='no')_0x251c83(![]);else _0x251c83(_0x2d2e91);}});});return Promise[_0x159be2(0xf7)]([_0x4e1704,_0x261d35]);}function loadExisting(_0x114d1a){if(!existsSync(_0x114d1a))return null;return readConfigFile(_0x114d1a);}function resolveFilePath(_0x3d892f){return isAbsolute(_0x3d892f)?_0x3d892f:resolve(process['cwd'](),_0x3d892f);}function readSourceFile(_0x5ebdd1){const _0x151cfb=a21_0x1df400;try{const _0x17551f=readFileSync(_0x5ebdd1,{'encoding':_0x151cfb(0x119)});return JSON[_0x151cfb(0x12a)](_0x17551f);}catch(_0xd6a440){throw CliErrors[_0x151cfb(0x11f)](_0x151cfb(0x129)+_0xd6a440[_0x151cfb(0x101)]);}}function resolveInitEnv(_0x444275){const _0x5bf0f3=a21_0x1df400,_0x3f9a78=_0x444275[_0x5bf0f3(0x13a)];if(_0x3f9a78===undefined||_0x3f9a78==='')return DEFAULT_CONFIG_VALUES[_0x5bf0f3(0x13a)];if(!RUNTIME_ENV_VALUES['includes'](_0x3f9a78))throw CliErrors[_0x5bf0f3(0x11f)](_0x5bf0f3(0x122)+_0x3f9a78+_0x5bf0f3(0x109)+RUNTIME_ENV_VALUES[_0x5bf0f3(0x127)](',\x20'));return _0x3f9a78;}
|
|
1
|
+
const a21_0xffbc7a=a21_0x220c;(function(_0x49cea3,_0x3259ed){const _0x280fb4=a21_0x220c,_0x55087d=_0x49cea3();while(!![]){try{const _0x2a3478=-parseInt(_0x280fb4(0x1e4))/0x1*(parseInt(_0x280fb4(0x1b4))/0x2)+parseInt(_0x280fb4(0x1dd))/0x3+parseInt(_0x280fb4(0x1da))/0x4*(-parseInt(_0x280fb4(0x1b6))/0x5)+-parseInt(_0x280fb4(0x1be))/0x6*(-parseInt(_0x280fb4(0x1de))/0x7)+parseInt(_0x280fb4(0x1b3))/0x8+parseInt(_0x280fb4(0x1dc))/0x9+parseInt(_0x280fb4(0x1bd))/0xa;if(_0x2a3478===_0x3259ed)break;else _0x55087d['push'](_0x55087d['shift']());}catch(_0x5e4d92){_0x55087d['push'](_0x55087d['shift']());}}}(a21_0x20d8,0xccc31));import{existsSync,readFileSync}from'node:fs';function a21_0x20d8(){const _0x35cb71=['trim','Source\x20file\x20not\x20found:\x20','stdout','\x20\x20env:\x20\x20\x20\x20\x20','cwd','App\x20code\x20cannot\x20be\x20empty.','message','close','parse','\x20\x20config:\x20\x20','Skip\x20confirmation\x20when\x20overwriting','object','global','Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.','Target\x20environment\x20(default\x20','flagMissing','4388720KTuPUM','3714VmoSZS','App\x20code','425405nblLby','stdin','\x0aInitialized\x20','appcode','env','boolean','toLowerCase','4834520SjLBMt','6DzSVKe','\x22.\x20Allowed:\x20','Provide\x20--appcode\x20<code>\x20or\x20use\x20an\x20upgraded\x20.rabetbase.json\x20with\x20top-level\x20appcode.\x20Legacy\x20files\x20must\x20be\x20upgraded\x20first\x20with\x20`rabetbase\x20project\x20upgrade`.','Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','defaultApp','app','validation','Imported\x20from\x20','race','Override\x20imported\x20default\x20env','AbortPrompt','\x20\x20default:\x20','Aborted.','\x20\x20appcode:\x20','\x20app\x20init\x20--appcode\x20<code>\x20[--env\x20daily]\x20[--global]','[y/N]','Usage:\x20','string','App\x20code\x20for\x20the\x20project','join','[Y/n]','log','Initialized\x20','entries','Failed\x20to\x20parse\x20source\x20file:\x20','SIGINT','File\x20','64XFLcBv','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','1953828uLsJFJ','403821LfiVdF','7104713QOaODz','project','Invalid\x20env\x20\x22','):\x20','removeListener','\x20init\x20—\x20Create\x20.lovrabet.json\x0a','107JCKhMe','yes','utf8'];a21_0x20d8=function(){return _0x35cb71;};return a21_0x20d8();}import{resolve,isAbsolute}from'node:path';import{createInterface}from'node:readline';import{CliErrors}from'../errors.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{IMPORTABLE_RUNTIME_CONFIG_KEYS}from'../config/schema.js';import{resolveWriteConfigPath,readConfigFile,writeConfigFile,isNonInteractiveMode}from'../context.js';import{CLI_BIN_NAME}from'../constant/cli.js';export const initCreateFlagDefs=[{'name':a21_0xffbc7a(0x1b9),'type':a21_0xffbc7a(0x1d0),'description':a21_0xffbc7a(0x1d1)},{'name':a21_0xffbc7a(0x1ba),'type':a21_0xffbc7a(0x1d0),'description':a21_0xffbc7a(0x1b1)+DEFAULT_CONFIG_VALUES['env']+')','enum':[...RUNTIME_ENV_VALUES]},{'name':a21_0xffbc7a(0x1af),'type':'boolean','description':'Write\x20to\x20global\x20(~/.lovrabet.json)\x20instead\x20of\x20project','default':![]},{'name':a21_0xffbc7a(0x1a1),'type':a21_0xffbc7a(0x1bb),'description':a21_0xffbc7a(0x1ad),'default':![]}];export const initImportFlagDefs=[{'name':'file','type':a21_0xffbc7a(0x1d0),'description':a21_0xffbc7a(0x1c2),'required':!![]},{'name':a21_0xffbc7a(0x1b9),'type':a21_0xffbc7a(0x1d0),'description':'Override\x20imported\x20default\x20appcode'},{'name':a21_0xffbc7a(0x1ba),'type':a21_0xffbc7a(0x1d0),'description':a21_0xffbc7a(0x1c8),'enum':[...RUNTIME_ENV_VALUES]},{'name':a21_0xffbc7a(0x1af),'type':a21_0xffbc7a(0x1bb),'description':'Write\x20to\x20global\x20(~/.lovrabet.json)\x20instead\x20of\x20project','default':![]},{'name':a21_0xffbc7a(0x1a1),'type':'boolean','description':a21_0xffbc7a(0x1ad),'default':![]}];export async function runInit(_0x58af2e){const _0x44a87a=a21_0xffbc7a,_0x5ebd54=isNonInteractiveMode(_0x58af2e),_0x32c2d4=_0x58af2e[_0x44a87a(0x1af)]?_0x44a87a(0x1af):_0x44a87a(0x1df),_0x442be5=resolveWriteConfigPath(_0x32c2d4);try{_0x5ebd54?await runNonInteractive(_0x58af2e,_0x442be5):await runInteractive(_0x58af2e,_0x442be5);}catch(_0x37af88){if(_0x37af88 instanceof AbortPrompt)throw CliErrors['cancelled']();throw _0x37af88;}}export async function runInitImport(_0x34ae3a){const _0xc6efab=a21_0xffbc7a,_0x52d682=_0x34ae3a['global']?_0xc6efab(0x1af):'project',_0x40e937=resolveWriteConfigPath(_0x52d682);await runFromImport(_0x34ae3a,_0x40e937);}const RUNTIME_IRRELEVANT_KEYS=new Set(['apiDir']);function a21_0x220c(_0x17d83e,_0x41d62e){_0x17d83e=_0x17d83e-0x1a1;const _0x20d889=a21_0x20d8();let _0x220c98=_0x20d889[_0x17d83e];return _0x220c98;}async function runFromImport(_0xbf3529,_0x3280e8){const _0x172b90=a21_0xffbc7a,_0x19b7a7=resolveFilePath(_0xbf3529['file']);if(!existsSync(_0x19b7a7))throw CliErrors[_0x172b90(0x1c5)](_0x172b90(0x1a4)+_0x19b7a7);const _0x49edcd=readSourceFile(_0x19b7a7),_0x1d8bf6=convertToRuntimeConfig(_0x49edcd);_0xbf3529[_0x172b90(0x1b9)]&&(_0x1d8bf6[_0x172b90(0x1b9)]=String(_0xbf3529['appcode']));_0xbf3529[_0x172b90(0x1ba)]&&(_0x1d8bf6[_0x172b90(0x1ba)]=resolveInitEnv(_0xbf3529));if(!_0x1d8bf6[_0x172b90(0x1b9)])throw CliErrors['validation'](_0x172b90(0x1db),_0x172b90(0x1c0));await writeInitConfig(_0x3280e8,_0x1d8bf6,_0xbf3529),console['log'](_0x172b90(0x1c6)+_0x19b7a7),console[_0x172b90(0x1d4)](_0x172b90(0x1ac)+_0x3280e8),console[_0x172b90(0x1d4)]('\x20\x20appcode:\x20'+_0x1d8bf6[_0x172b90(0x1b9)]);if(_0x1d8bf6[_0x172b90(0x1c3)])console[_0x172b90(0x1d4)](_0x172b90(0x1ca)+_0x1d8bf6[_0x172b90(0x1c3)]);}function convertToRuntimeConfig(_0x210fce){const _0x2aa77e=a21_0xffbc7a;if(_0x210fce['apps']&&typeof _0x210fce['apps']===_0x2aa77e(0x1ae))throw CliErrors[_0x2aa77e(0x1c5)](_0x2aa77e(0x1c1),_0x2aa77e(0x1b0));const _0x62d3b7={};for(const _0x535f73 of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x210fce[_0x535f73]!==undefined&&(_0x62d3b7[_0x535f73]=_0x210fce[_0x535f73]);}return!_0x62d3b7['riskLevel']&&(_0x62d3b7['riskLevel']=DEFAULT_CONFIG_VALUES['riskLevel']),_0x62d3b7;}async function runNonInteractive(_0x30fd0,_0x25484e){const _0x255b27=a21_0xffbc7a,_0x2dddbc=_0x30fd0[_0x255b27(0x1b9)];if(!_0x2dddbc)throw CliErrors[_0x255b27(0x1b2)](_0x255b27(0x1b9),_0x255b27(0x1cf)+CLI_BIN_NAME+_0x255b27(0x1cd));const _0xaec404=resolveInitEnv(_0x30fd0);await writeInitConfig(_0x25484e,{'appcode':_0x2dddbc,'env':_0xaec404},_0x30fd0),console[_0x255b27(0x1d4)](_0x255b27(0x1d5)+_0x25484e),console[_0x255b27(0x1d4)](_0x255b27(0x1cc)+_0x2dddbc),console[_0x255b27(0x1d4)]('\x20\x20env:\x20\x20\x20\x20\x20'+_0xaec404);}async function runInteractive(_0x3edc59,_0x32e9aa){const _0x2189d0=a21_0xffbc7a,_0x3ee629=loadExisting(_0x32e9aa),_0x10fc36=typeof _0x3ee629?.[_0x2189d0(0x1b9)]===_0x2189d0(0x1d0)?_0x3ee629[_0x2189d0(0x1b9)]:'',_0x1050aa=resolveInitEnv(_0x3edc59);console['log'](CLI_BIN_NAME+_0x2189d0(0x1e3));if(existsSync(_0x32e9aa)&&!_0x3edc59['yes']){const _0x540efa=await promptYesNo(_0x2189d0(0x1d9)+_0x32e9aa+'\x20already\x20exists.\x20Overwrite?',![]);if(!_0x540efa){console[_0x2189d0(0x1d4)](_0x2189d0(0x1cb));return;}}const _0x39f217=typeof _0x3edc59['appcode']===_0x2189d0(0x1d0)?_0x3edc59[_0x2189d0(0x1b9)][_0x2189d0(0x1a3)]():'';let _0x778cde=_0x39f217;!_0x778cde&&(_0x778cde=await promptInput(_0x2189d0(0x1b5),_0x10fc36));if(!_0x778cde[_0x2189d0(0x1a3)]())throw CliErrors[_0x2189d0(0x1c5)](_0x2189d0(0x1a8));await writeInitConfig(_0x32e9aa,{'appcode':_0x778cde[_0x2189d0(0x1a3)](),'env':_0x1050aa},_0x3edc59),console['log'](_0x2189d0(0x1b8)+_0x32e9aa),console[_0x2189d0(0x1d4)]('\x20\x20appcode:\x20'+_0x778cde[_0x2189d0(0x1a3)]()),console[_0x2189d0(0x1d4)](_0x2189d0(0x1a6)+_0x1050aa);}async function writeInitConfig(_0x48db58,_0x465920,_0xd401ee){const _0x1b1a11=a21_0xffbc7a;let _0x1f1f4f={};existsSync(_0x48db58)&&!_0xd401ee[_0x1b1a11(0x1a1)]&&(_0x1f1f4f=readConfigFile(_0x48db58));for(const [_0x71ded7,_0x18b396]of Object[_0x1b1a11(0x1d6)](_0x465920)){_0x18b396!==undefined&&(_0x1f1f4f[_0x71ded7]=_0x18b396);}if(_0x1f1f4f[_0x1b1a11(0x1c4)])delete _0x1f1f4f[_0x1b1a11(0x1c4)];writeConfigFile(_0x48db58,_0x1f1f4f);}class AbortPrompt extends Error{constructor(){const _0x3e78ea=a21_0xffbc7a;super('User\x20aborted\x20prompt'),this['name']=_0x3e78ea(0x1c9);}}function createSafeRl(){const _0x2f0fe5=a21_0xffbc7a,_0x2905c6=createInterface({'input':process[_0x2f0fe5(0x1b7)],'output':process[_0x2f0fe5(0x1a5)]});let _0x1fa710;const _0x191067=new Promise((_0x47a561,_0x5d8dfa)=>{const _0x231b6e=_0x2f0fe5;_0x1fa710=()=>{const _0x2572bc=a21_0x220c;_0x1fa710&&(_0x2905c6[_0x2572bc(0x1e2)]('SIGINT',_0x1fa710),_0x1fa710=undefined);try{_0x2905c6[_0x2572bc(0x1aa)]();}catch{}_0x5d8dfa(new AbortPrompt());},_0x2905c6['once'](_0x231b6e(0x1d8),_0x1fa710);}),_0x4fe65a=()=>{const _0x7e0af=_0x2f0fe5;_0x1fa710&&(_0x2905c6[_0x7e0af(0x1e2)](_0x7e0af(0x1d8),_0x1fa710),_0x1fa710=undefined);try{_0x2905c6['close']();}catch{}};return{'rl':_0x2905c6,'abortPromise':_0x191067,'disposeSuccess':_0x4fe65a};}async function promptInput(_0x4b4102,_0x5da779){const _0x451bf8=a21_0xffbc7a,{rl:_0x25ebcd,abortPromise:_0x586fc8,disposeSuccess:_0x16b32a}=createSafeRl(),_0x4a3457=new Promise(_0x4be371=>{const _0x3e18b4=a21_0x220c,_0x29cdce=_0x5da779?'\x20\x20'+_0x4b4102+'\x20('+_0x5da779+_0x3e18b4(0x1e1):'\x20\x20'+_0x4b4102+':\x20';_0x25ebcd['question'](_0x29cdce,_0x4e7317=>{const _0x1f59b7=_0x3e18b4;_0x16b32a(),_0x4be371(_0x4e7317[_0x1f59b7(0x1a3)]()||_0x5da779);});});return Promise[_0x451bf8(0x1c7)]([_0x4a3457,_0x586fc8]);}async function promptYesNo(_0x135aa5,_0x56ee71){const _0x3bb412=a21_0xffbc7a,{rl:_0x764801,abortPromise:_0x2cc3d6,disposeSuccess:_0x570e1a}=createSafeRl(),_0x5cf93a=new Promise(_0x3fb4dc=>{const _0x276a48=a21_0x220c,_0x306eae=_0x56ee71?_0x276a48(0x1d3):_0x276a48(0x1ce);_0x764801['question']('\x20\x20'+_0x135aa5+'\x20'+_0x306eae+':\x20',_0x358873=>{const _0x507946=_0x276a48;_0x570e1a();const _0x1b480e=_0x358873[_0x507946(0x1a3)]()[_0x507946(0x1bc)]();if(_0x1b480e==='y'||_0x1b480e===_0x507946(0x1a1))_0x3fb4dc(!![]);else{if(_0x1b480e==='n'||_0x1b480e==='no')_0x3fb4dc(![]);else _0x3fb4dc(_0x56ee71);}});});return Promise[_0x3bb412(0x1c7)]([_0x5cf93a,_0x2cc3d6]);}function loadExisting(_0x26cc12){if(!existsSync(_0x26cc12))return null;return readConfigFile(_0x26cc12);}function resolveFilePath(_0x1d7b0c){const _0x80aed4=a21_0xffbc7a;return isAbsolute(_0x1d7b0c)?_0x1d7b0c:resolve(process[_0x80aed4(0x1a7)](),_0x1d7b0c);}function readSourceFile(_0x5531c5){const _0x262ea4=a21_0xffbc7a;try{const _0x38b4c9=readFileSync(_0x5531c5,{'encoding':_0x262ea4(0x1a2)});return JSON[_0x262ea4(0x1ab)](_0x38b4c9);}catch(_0x134023){throw CliErrors['validation'](_0x262ea4(0x1d7)+_0x134023[_0x262ea4(0x1a9)]);}}function resolveInitEnv(_0x13768b){const _0x18f8b6=a21_0xffbc7a,_0x18e9ec=_0x13768b[_0x18f8b6(0x1ba)];if(_0x18e9ec===undefined||_0x18e9ec==='')return DEFAULT_CONFIG_VALUES[_0x18f8b6(0x1ba)];if(!RUNTIME_ENV_VALUES['includes'](_0x18e9ec))throw CliErrors[_0x18f8b6(0x1c5)](_0x18f8b6(0x1e0)+_0x18e9ec+_0x18f8b6(0x1bf)+RUNTIME_ENV_VALUES[_0x18f8b6(0x1d2)](',\x20'));return _0x18e9ec;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a22_0x596ce0=a22_0x1462;(function(_0x21bfd7,_0x1227b1){const _0x271bfe=a22_0x1462,_0x4ec092=_0x21bfd7();while(!![]){try{const _0x362bec=parseInt(_0x271bfe(0xe0))/0x1+-parseInt(_0x271bfe(0xd0))/0x2+parseInt(_0x271bfe(0xd8))/0x3*(parseInt(_0x271bfe(0xed))/0x4)+-parseInt(_0x271bfe(0xe8))/0x5+-parseInt(_0x271bfe(0xde))/0x6+-parseInt(_0x271bfe(0xcf))/0x7*(parseInt(_0x271bfe(0xe3))/0x8)+parseInt(_0x271bfe(0xcd))/0x9;if(_0x362bec===_0x1227b1)break;else _0x4ec092['push'](_0x4ec092['shift']());}catch(_0x2b3537){_0x4ec092['push'](_0x4ec092['shift']());}}}(a22_0x49c7,0x7dc8a));import{logger}from'../../utils/logger.js';function printLogs(_0x218adf){const _0x20b1fc=a22_0x1462;if(_0x218adf[_0x20b1fc(0xe7)]===0x0){console[_0x20b1fc(0xd9)](_0x20b1fc(0xdb));return;}console[_0x20b1fc(0xd9)](_0x20b1fc(0xd4)),_0x218adf[_0x20b1fc(0xcc)]((_0x58155f,_0x377b2d)=>{const _0x4b56bd=_0x20b1fc,_0x1cbe1a=new Date(_0x58155f[_0x4b56bd(0xe2)])['toLocaleString'](_0x4b56bd(0xdd)),_0x2c4836=_0x58155f[_0x4b56bd(0xda)]===_0x4b56bd(0xe6)?'√':_0x58155f[_0x4b56bd(0xda)]===_0x4b56bd(0xe4)?'×':_0x58155f[_0x4b56bd(0xda)]===_0x4b56bd(0xd5)?'!':'i';console[_0x4b56bd(0xd9)](_0x377b2d+0x1+'.\x20'+_0x2c4836+'\x20['+_0x58155f[_0x4b56bd(0xea)]+']\x20'+_0x58155f[_0x4b56bd(0xe1)]),console[_0x4b56bd(0xd9)](_0x4b56bd(0xd3)+_0x1cbe1a),_0x58155f['duration']&&console[_0x4b56bd(0xd9)](_0x4b56bd(0xcb)+_0x58155f[_0x4b56bd(0xce)]+'ms'),_0x58155f[_0x4b56bd(0xd7)]&&Object[_0x4b56bd(0xd2)](_0x58155f[_0x4b56bd(0xd7)])['length']>0x0&&console[_0x4b56bd(0xd9)]('\x20\x20\x20Details:\x20'+JSON['stringify'](_0x58155f[_0x4b56bd(0xd7)],null,0x2)),console[_0x4b56bd(0xd9)]('');});}function a22_0x49c7(){const _0xb978d5=['*\x20Logs\x20cleared','success','length','2424605IeWwOI','show','command','Clear\x20command\x20history\x20logs','read','55612QRDkfy','\x20\x20\x20Duration:\x20','forEach','20588265CwnupP','duration','7vCJwZN','1851874xlNHbm','clearLogs','keys','\x20\x20\x20Time:\x20','*\x20Lovrabet\x20Runtime\x20CLI\x20logs:\x0a','warn','View\x20command\x20history\x20logs','details','15QygBgF','log','level','*\x20No\x20logs\x20found','write','en-US','1503210iDYBTx','logs','163892fQMxcE','message','timestamp','2755112tPBHHI','error'];a22_0x49c7=function(){return _0xb978d5;};return a22_0x49c7();}function a22_0x1462(_0x50bb3f,_0x4f44ce){_0x50bb3f=_0x50bb3f-0xcb;const _0x49c720=a22_0x49c7();let _0x146280=_0x49c720[_0x50bb3f];return _0x146280;}export const logsDefinitions=[{'service':a22_0x596ce0(0xdf),'command':a22_0x596ce0(0xe9),'description':a22_0x596ce0(0xd6),'risk':a22_0x596ce0(0xec),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x6702be){return printLogs(logger['readLogs']()),{'ok':!![]};}},{'service':a22_0x596ce0(0xdf),'command':'clear','description':a22_0x596ce0(0xeb),'risk':a22_0x596ce0(0xdc),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x390c3c){const _0x149ca9=a22_0x596ce0;return logger[_0x149ca9(0xd1)](),console[_0x149ca9(0xd9)](_0x149ca9(0xe5)),{'ok':!![]};}}];
|
package/lib/commands/registry.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a23_0x7a5a7d=a23_0x4824;(function(_0x4354d0,_0x5a1ef9){const _0x7ed7f6=a23_0x4824,_0x48da2a=_0x4354d0();while(!![]){try{const _0x5f0fa1=parseInt(_0x7ed7f6(0x14e))/0x1*(-parseInt(_0x7ed7f6(0x150))/0x2)+-parseInt(_0x7ed7f6(0x14f))/0x3*(-parseInt(_0x7ed7f6(0x144))/0x4)+parseInt(_0x7ed7f6(0x147))/0x5+-parseInt(_0x7ed7f6(0x137))/0x6*(-parseInt(_0x7ed7f6(0x14a))/0x7)+-parseInt(_0x7ed7f6(0x131))/0x8*(-parseInt(_0x7ed7f6(0x13e))/0x9)+-parseInt(_0x7ed7f6(0x12e))/0xa*(-parseInt(_0x7ed7f6(0x12d))/0xb)+-parseInt(_0x7ed7f6(0x145))/0xc;if(_0x5f0fa1===_0x5a1ef9)break;else _0x48da2a['push'](_0x48da2a['shift']());}catch(_0x274e70){_0x48da2a['push'](_0x48da2a['shift']());}}}(a23_0x4f69,0xafc79));import{authDefinitions}from'../commands/auth/index.js';function a23_0x4f69(){const _0x162681=['push','3704YkMqqC','App\x20Management','service','set','install','get','6MrGQCL','map','Datasets','isSingleCommand','Diagnostics','values','Configuration','19413CPdMOu','Schema','defaultCommand','Authentication','Skills','list','191736pTGieJ','29904612ebMLHT','\x20\x20[write]','2956360GULenr','SQL\x20Queries','read','2855279agntzp','has','login','write','3XUVNHw','81vsXDUW','308222IxFaHV','description','3883uAYDrv','10830CHUSYA','command'];a23_0x4f69=function(){return _0x162681;};return a23_0x4f69();}import{logsDefinitions}from'../commands/logs/index.js';function a23_0x4824(_0x1b01ba,_0x527721){_0x1b01ba=_0x1b01ba-0x12d;const _0x4f691b=a23_0x4f69();let _0x48243d=_0x4f691b[_0x1b01ba];return _0x48243d;}import{skillDefinitions}from'../commands/skill/index.js';import{doctorDefinition}from'../commands/doctor.js';import{schemaDefinition}from'../commands/schema.js';import{appDefinitions}from'../commands/app/definitions.js';import{configDefinitions}from'../commands/config/definitions.js';import{bffDefinitions}from'../commands/bff/index.js';import{sqlDefinitions}from'../commands/sql/index.js';import{datasetDefinitions}from'../commands/dataset/index.js';import{dataDefinitions}from'../commands/data/index.js';export const serviceRegistry=[];const serviceByName=new Map();export const definitions=new Map();export const serviceGroups=new Map();function registerDefinitions(_0x5753fa){const _0x5bfcd4=a23_0x4824;for(const _0x2b4f2d of _0x5753fa){definitions['set'](_0x2b4f2d[_0x5bfcd4(0x133)]+':'+_0x2b4f2d[_0x5bfcd4(0x12f)],_0x2b4f2d);let _0x2c2108=serviceGroups[_0x5bfcd4(0x136)](_0x2b4f2d[_0x5bfcd4(0x133)]);!_0x2c2108&&(_0x2c2108=[],serviceGroups['set'](_0x2b4f2d[_0x5bfcd4(0x133)],_0x2c2108)),_0x2c2108[_0x5bfcd4(0x130)](_0x2b4f2d);}}function registerService(_0x3677b1,_0x572090,_0x59be38){const _0x2303e5=a23_0x4824;registerDefinitions(_0x572090);const _0x2b963d=_0x2f7aa9=>_0x2f7aa9===_0x2303e5(0x149)?'':_0x2f7aa9===_0x2303e5(0x14d)?_0x2303e5(0x146):'\x20\x20[high-risk-write]',_0x5d424d={'service':_0x572090[0x0][_0x2303e5(0x133)],'label':_0x3677b1,'commands':_0x572090[_0x2303e5(0x138)](_0x24f582=>({'command':_0x24f582[_0x2303e5(0x12f)],'description':_0x24f582[_0x2303e5(0x151)],'tag':_0x2b963d(_0x24f582['risk'])})),'defaultCommand':_0x59be38?.[_0x2303e5(0x140)]??(_0x59be38?.[_0x2303e5(0x13a)]?_0x572090[0x0][_0x2303e5(0x12f)]:undefined),'isSingleCommand':_0x59be38?.['isSingleCommand']};serviceRegistry[_0x2303e5(0x130)](_0x5d424d),serviceByName[_0x2303e5(0x134)](_0x5d424d[_0x2303e5(0x133)],_0x5d424d);}registerService(a23_0x7a5a7d(0x141),authDefinitions,{'defaultCommand':a23_0x7a5a7d(0x14c)}),registerService(a23_0x7a5a7d(0x139),datasetDefinitions),registerService('Instant\x20API',dataDefinitions),registerService(a23_0x7a5a7d(0x148),sqlDefinitions),registerService('BFF\x20Scripts',bffDefinitions),registerService(a23_0x7a5a7d(0x132),appDefinitions,{'defaultCommand':a23_0x7a5a7d(0x143)}),registerService(a23_0x7a5a7d(0x13d),configDefinitions,{'defaultCommand':'list'}),registerService(a23_0x7a5a7d(0x142),skillDefinitions,{'defaultCommand':a23_0x7a5a7d(0x135)}),registerService(a23_0x7a5a7d(0x13b),[doctorDefinition],{'isSingleCommand':!![]}),registerService(a23_0x7a5a7d(0x13f),[schemaDefinition],{'isSingleCommand':!![]}),registerService('Logs',logsDefinitions,{'defaultCommand':'show'});export function findDefinition(_0x1c686a,_0x4a0523){return definitions['get'](_0x1c686a+':'+_0x4a0523);}export function isKnownService(_0x2226db){const _0x50a8ee=a23_0x7a5a7d;return serviceByName[_0x50a8ee(0x14b)](_0x2226db);}export function getServiceEntry(_0x1f8022){const _0x48d4cb=a23_0x7a5a7d;return serviceByName[_0x48d4cb(0x136)](_0x1f8022);}export function getAllDefinitions(){const _0x2baa42=a23_0x7a5a7d;return Array['from'](definitions[_0x2baa42(0x13c)]());}
|
package/lib/commands/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a24_0x4542a6=a24_0x268f;(function(_0x61a780,_0x44cc8f){const _0x23547b=a24_0x268f,_0x11caf8=_0x61a780();while(!![]){try{const _0x319c2c=parseInt(_0x23547b(0xad))/0x1+parseInt(_0x23547b(0xae))/0x2+-parseInt(_0x23547b(0xa5))/0x3*(parseInt(_0x23547b(0xaa))/0x4)+parseInt(_0x23547b(0xa6))/0x5*(parseInt(_0x23547b(0xa8))/0x6)+-parseInt(_0x23547b(0xab))/0x7+-parseInt(_0x23547b(0xac))/0x8+parseInt(_0x23547b(0xa7))/0x9;if(_0x319c2c===_0x44cc8f)break;else _0x11caf8['push'](_0x11caf8['shift']());}catch(_0x12efa9){_0x11caf8['push'](_0x11caf8['shift']());}}}(a24_0x1adc,0xdcb4c));function a24_0x1adc(){const _0x1be0a6=['371652EkTOfj','5scFgIC','7887024Zixkai','6326592WYscdn','schema','4jXwjTd','7308714VsXAHt','8090112dkPyax','782922PEvfPf','739144xtajXP','export'];a24_0x1adc=function(){return _0x1be0a6;};return a24_0x1adc();}import{buildSchemaPayload}from'../framework/schema-export.js';function a24_0x268f(_0x59703e,_0x5c2a55){_0x59703e=_0x59703e-0xa5;const _0x1adc5a=a24_0x1adc();let _0x268f63=_0x1adc5a[_0x59703e];return _0x268f63;}async function execute(_0x33511c){const _0x2cb4d1=await buildSchemaPayload();return{'ok':!![],'data':_0x2cb4d1};}export const schemaDefinition={'service':a24_0x4542a6(0xa9),'command':a24_0x4542a6(0xaf),'description':'Export\x20machine-readable\x20command\x20schema\x20(JSON)','risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a25_0x44ea42=a25_0x2f72;(function(_0x433fe1,_0x1c6792){const _0x35c5c2=a25_0x2f72,_0x2e6dcb=_0x433fe1();while(!![]){try{const _0x1375e8=parseInt(_0x35c5c2(0x80))/0x1+parseInt(_0x35c5c2(0x92))/0x2*(parseInt(_0x35c5c2(0x82))/0x3)+parseInt(_0x35c5c2(0x78))/0x4*(-parseInt(_0x35c5c2(0x90))/0x5)+parseInt(_0x35c5c2(0x8f))/0x6*(-parseInt(_0x35c5c2(0x88))/0x7)+parseInt(_0x35c5c2(0x7f))/0x8+-parseInt(_0x35c5c2(0x85))/0x9*(parseInt(_0x35c5c2(0x84))/0xa)+parseInt(_0x35c5c2(0x77))/0xb*(-parseInt(_0x35c5c2(0x89))/0xc);if(_0x1375e8===_0x1c6792)break;else _0x2e6dcb['push'](_0x2e6dcb['shift']());}catch(_0x503e76){_0x2e6dcb['push'](_0x2e6dcb['shift']());}}}(a25_0x462c,0x33b1e));import{CLI_BIN_NAME}from'../../constant/cli.js';import{CliErrors}from'../../errors.js';function a25_0x2f72(_0x1dc166,_0x1c9bbb){_0x1dc166=_0x1dc166-0x76;const _0x462c6f=a25_0x462c();let _0x2f725c=_0x462c6f[_0x1dc166];return _0x2f725c;}function a25_0x462c(){const _0x444b7a=['cwd','\x20skill\x20installed','nonInteractive','Installing\x20official\x20skill\x20via\x20npx\x20(npx\x20skills\x20add\x20','24rMIlCM','1195945fRHrPQ','unknown','116vTvPDp','inherit','skipped','Check\x20network\x20connectivity\x20and\x20try\x20again.','install','write','10274jBMCmu','4EkIlpJ','Installing\x20published\x20Lovrabet\x20skill\x20via\x20npx.','skill','skill-install','log','error','apiError','3042560iPTscQ','267513NflhXp','Install\x20the\x20published\x20Lovrabet\x20developer\x20skill','20406BCLHnc','pipe','97480SpNRQZ','9FNBIEU','setLogPath','Skipped\x20npx\x20(LOVRABET_SKIP_NPX_SKILLS=1);\x20assuming\x20skill\x20is\x20already\x20present.','68278bVUwug','6972yRjbhw','info'];a25_0x462c=function(){return _0x444b7a;};return a25_0x462c();}import{logger}from'../../utils/logger.js';export const skillDefinitions=[{'service':a25_0x44ea42(0x7a),'command':a25_0x44ea42(0x96),'description':a25_0x44ea42(0x81),'risk':a25_0x44ea42(0x76),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x156526){const _0x46dca3=a25_0x44ea42;logger[_0x46dca3(0x86)](process['cwd']()),logger[_0x46dca3(0x8a)](_0x46dca3(0x7b),_0x46dca3(0x79));const {LOVRABET_SKILL_SOURCE:_0x2f0dff,runNpxSkillsAddGlobal:_0x32da99}=await import('../../skills/npx-skills-add.js'),_0x53edb4=_0x156526[_0x46dca3(0x8d)]?_0x46dca3(0x83):_0x46dca3(0x93);console[_0x46dca3(0x7c)](_0x46dca3(0x8e)+_0x2f0dff+'\x20-g\x20-y)...');const _0x526b0e=_0x32da99(process[_0x46dca3(0x8b)](),_0x2f0dff,{'stdio':_0x53edb4});if(_0x526b0e[_0x46dca3(0x94)])console[_0x46dca3(0x7c)](_0x46dca3(0x87));else{if(_0x526b0e['ok'])console[_0x46dca3(0x7c)](CLI_BIN_NAME+_0x46dca3(0x8c));else throw CliErrors[_0x46dca3(0x7e)]('npx\x20skills\x20add\x20failed:\x20'+(_0x526b0e[_0x46dca3(0x7d)]||_0x46dca3(0x91)),_0x46dca3(0x95));}return{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a26_0x212e(_0x36268a,_0x513909){_0x36268a=_0x36268a-0xaf;const _0x463017=a26_0x4630();let _0x212eec=_0x463017[_0x36268a];return _0x212eec;}function a26_0x4630(){const _0x186e76=['str','122178NQOCtW','6639160iFvSQw','sqlContent','7471448FLgUut','bool','sqlcode','dbId','837840UWbIPk','sqlCode','6473952MQLjzv','verbose','detail','1085877gwwOnN','sql','Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','593172CbxFoO','sqlName','18AQxdxJ','appCode','27KNCykJ'];a26_0x4630=function(){return _0x186e76;};return a26_0x4630();}const a26_0x2a5976=a26_0x212e;(function(_0x1e3134,_0x5c3d52){const _0x463508=a26_0x212e,_0x3f6154=_0x1e3134();while(!![]){try{const _0x29e6bb=parseInt(_0x463508(0xb9))/0x1+-parseInt(_0x463508(0xb4))/0x2+-parseInt(_0x463508(0xc0))/0x3*(-parseInt(_0x463508(0xbc))/0x4)+-parseInt(_0x463508(0xc3))/0x5+parseInt(_0x463508(0xbe))/0x6*(-parseInt(_0x463508(0xc2))/0x7)+parseInt(_0x463508(0xb0))/0x8+-parseInt(_0x463508(0xb6))/0x9;if(_0x29e6bb===_0x5c3d52)break;else _0x3f6154['push'](_0x3f6154['shift']());}catch(_0x25801e){_0x3f6154['push'](_0x3f6154['shift']());}}}(a26_0x4630,0xcc1a3));import{getSqlQueryInfo}from'../../core/api-client.js';import{getDbName}from'../../core/db-resolver.js';import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const sqlDetail={'service':a26_0x2a5976(0xba),'command':a26_0x2a5976(0xb8),'description':a26_0x2a5976(0xbb),'risk':'read','flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x4137b0){const _0x357b59=a26_0x2a5976,_0x36e07a=await getSqlQueryInfo(_0x4137b0[_0x357b59(0xbf)],_0x4137b0[_0x357b59(0xc1)](_0x357b59(0xb2))),_0x36484d=_0x4137b0[_0x357b59(0xb1)](_0x357b59(0xb7));if(_0x36484d)return{'ok':!![],'data':_0x36e07a};const _0x322b4d=_0x36e07a['dbId']?await getDbName(_0x4137b0[_0x357b59(0xbf)],_0x36e07a[_0x357b59(0xb3)]):undefined;return{'ok':!![],'data':{'sqlCode':_0x36e07a[_0x357b59(0xb5)],'sqlName':_0x36e07a[_0x357b59(0xbd)],'db':_0x322b4d?_0x322b4d+'\x20('+_0x36e07a[_0x357b59(0xb3)]+')':_0x36e07a[_0x357b59(0xb3)]??'','description':_0x36e07a['description']??'','sqlContent':_0x36e07a[_0x357b59(0xaf)]??''}};}};
|
package/lib/commands/sql/exec.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a27_0x46c939=a27_0x2b95;(function(_0x1a99b1,_0x4fef3d){const _0x2222a8=a27_0x2b95,_0x2ff5b9=_0x1a99b1();while(!![]){try{const _0x121f04=parseInt(_0x2222a8(0x140))/0x1*(parseInt(_0x2222a8(0x143))/0x2)+-parseInt(_0x2222a8(0x148))/0x3*(-parseInt(_0x2222a8(0x144))/0x4)+-parseInt(_0x2222a8(0x147))/0x5+-parseInt(_0x2222a8(0x132))/0x6+-parseInt(_0x2222a8(0x134))/0x7*(parseInt(_0x2222a8(0x131))/0x8)+parseInt(_0x2222a8(0x135))/0x9*(-parseInt(_0x2222a8(0x141))/0xa)+parseInt(_0x2222a8(0x13f))/0xb;if(_0x121f04===_0x4fef3d)break;else _0x2ff5b9['push'](_0x2ff5b9['shift']());}catch(_0x38a320){_0x2ff5b9['push'](_0x2ff5b9['shift']());}}}(a27_0x4998,0x2faaf));function a27_0x4998(){const _0x44d94b=['241232XIhfFh','337662QWpVpa','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','56BHjsPC','1910151TamrIJ','str','execResult','sqlcode','SQL\x20execution\x20failed','length','params','\x20row(s)\x20in\x20','Returned\x20','execSuccess','6195277sYnCjB','47786lyldRh','10EDGXyI','now','14vnBInP','4hvBQlm','isArray','exec','964430YQUzUt','516UDkdTw'];a27_0x4998=function(){return _0x44d94b;};return a27_0x4998();}import{executeSdkSql}from'../../core/sdk-client.js';import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a27_0x2b95(_0x3dfc58,_0x328ea9){_0x3dfc58=_0x3dfc58-0x131;const _0x49982f=a27_0x4998();let _0x2b95c3=_0x49982f[_0x3dfc58];return _0x2b95c3;}import{parseJsonParams}from'../../utils/params.js';export const sqlExec={'service':'sql','command':a27_0x46c939(0x146),'description':a27_0x46c939(0x133),'risk':'read','flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x4d7387){const _0x363b2b=a27_0x46c939,_0x101dbb=parseJsonParams(_0x4d7387[_0x363b2b(0x136)](_0x363b2b(0x13b))),_0xd88b91=Date[_0x363b2b(0x142)](),_0x4d30c4=await executeSdkSql(_0x4d7387['str'](_0x363b2b(0x138)),_0x101dbb),_0x16abe2=Date[_0x363b2b(0x142)]()-_0xd88b91,_0x19269e=_0x4d30c4?.[_0x363b2b(0x137)]??_0x4d30c4,_0x3893e2=_0x4d30c4?.[_0x363b2b(0x13e)]??!![];if(!_0x3893e2)return{'ok':![],'data':{'error':_0x4d30c4?.['execError']||_0x363b2b(0x139),'elapsed':_0x16abe2},'message':_0x363b2b(0x139)};const _0x46f23d=Array[_0x363b2b(0x145)](_0x19269e)?_0x19269e:[];return{'ok':!![],'data':{'rows':_0x46f23d,'rowCount':_0x46f23d['length'],'elapsed':_0x16abe2},'message':_0x363b2b(0x13d)+_0x46f23d[_0x363b2b(0x13a)]+_0x363b2b(0x13c)+_0x16abe2+'ms'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a28_0x2f99(_0x30f5a8,_0x3dd6e4){_0x30f5a8=_0x30f5a8-0x144;const _0x349464=a28_0x3494();let _0x2f99c6=_0x349464[_0x30f5a8];return _0x2f99c6;}function a28_0x3494(){const _0x40bcb0=['18ZIrsWN','395115MMvfHZ','1118250SdrCAK','189DmSylj','6876976xlkFcz','45462KbUHDo','98825tCffEv','10bGbyLv','7107310OfaeFr','1428124sHvneI'];a28_0x3494=function(){return _0x40bcb0;};return a28_0x3494();}(function(_0x5aee08,_0x3d5023){const _0x4a7908=a28_0x2f99,_0x3a9539=_0x5aee08();while(!![]){try{const _0x3355ae=-parseInt(_0x4a7908(0x144))/0x1*(-parseInt(_0x4a7908(0x148))/0x2)+-parseInt(_0x4a7908(0x149))/0x3+-parseInt(_0x4a7908(0x147))/0x4*(parseInt(_0x4a7908(0x145))/0x5)+parseInt(_0x4a7908(0x14d))/0x6*(parseInt(_0x4a7908(0x14b))/0x7)+parseInt(_0x4a7908(0x14c))/0x8+parseInt(_0x4a7908(0x14a))/0x9+-parseInt(_0x4a7908(0x146))/0xa;if(_0x3355ae===_0x3d5023)break;else _0x3a9539['push'](_0x3a9539['shift']());}catch(_0x5dffa7){_0x3a9539['push'](_0x3a9539['shift']());}}}(a28_0x3494,0x7f4a2));import{sqlDetail}from'../../commands/sql/detail.js';import{sqlExec}from'../../commands/sql/exec.js';export const sqlDefinitions=[sqlDetail,sqlExec];
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a29_0x4385fb=a29_0x2e22;(function(_0x134ad4,_0x44bcfc){const _0x542b13=a29_0x2e22,_0x974782=_0x134ad4();while(!![]){try{const _0x177fba=parseInt(_0x542b13(0x74))/0x1+parseInt(_0x542b13(0x6e))/0x2+parseInt(_0x542b13(0x6f))/0x3+-parseInt(_0x542b13(0x7e))/0x4+parseInt(_0x542b13(0x6c))/0x5*(-parseInt(_0x542b13(0x6d))/0x6)+-parseInt(_0x542b13(0x80))/0x7*(parseInt(_0x542b13(0x81))/0x8)+-parseInt(_0x542b13(0x77))/0x9*(-parseInt(_0x542b13(0x68))/0xa);if(_0x177fba===_0x44bcfc)break;else _0x974782['push'](_0x974782['shift']());}catch(_0x26b68c){_0x974782['push'](_0x974782['shift']());}}}(a29_0x23de,0xccfe5));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{OUTPUT_FORMAT_VALUES}from'../constant/output.js';export const CONFIG_FIELD_SCHEMAS={'env':{'description':'Target\x20environment','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a29_0x4385fb(0x70)],'importable':!![]},'format':{'description':a29_0x4385fb(0x7a),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES['format'],'importable':!![]},'pageSize':{'description':a29_0x4385fb(0x7f),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':'Override\x20API\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a29_0x4385fb(0x6b),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a29_0x4385fb(0x73),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':'Access\x20key\x20(client-ak\x20auth)','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':'Risk\x20level','topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a29_0x4385fb(0x7b)],'importable':!![]},'locale':{'description':'Locale','topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES['locale'],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a29_0x4385fb(0x75)](CONFIG_FIELD_SCHEMAS)[a29_0x4385fb(0x78)](([,_0x315f4d])=>_0x315f4d[a29_0x4385fb(0x6a)])['map'](([_0x390e7d])=>_0x390e7d));export const CONFIG_ENUM_VALUES=Object['fromEntries'](Object[a29_0x4385fb(0x75)](CONFIG_FIELD_SCHEMAS)[a29_0x4385fb(0x78)](([,_0x2bfb13])=>_0x2bfb13['enumValues'])['map'](([_0x42c925,_0x1c35d1])=>[_0x42c925,[..._0x1c35d1[a29_0x4385fb(0x7d)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a29_0x4385fb(0x75)](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x2c7c02])=>_0x2c7c02[a29_0x4385fb(0x7c)])[a29_0x4385fb(0x76)](([_0x9c854a])=>_0x9c854a);export function getConfigFieldSchema(_0x1b484f){return CONFIG_FIELD_SCHEMAS[_0x1b484f];}export function getConfigEnumValues(_0x3176ab){const _0x4fc461=a29_0x4385fb;return getConfigFieldSchema(_0x3176ab)?.[_0x4fc461(0x7d)];}export function getConfigDefaultValue(_0x3b2c7b){const _0x234636=a29_0x4385fb;return getConfigFieldSchema(_0x3b2c7b)?.[_0x234636(0x71)];}export function isTopLevelConfigKey(_0xe956f2){const _0x386292=a29_0x4385fb;return TOP_LEVEL_CONFIG_KEYS[_0x386292(0x72)](_0xe956f2);}export function isLegacyCompatConfigKey(_0x1212a6){const _0x22c1c3=a29_0x4385fb;return getConfigFieldSchema(_0x1212a6)?.[_0x22c1c3(0x69)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x1cb3a5){return[..._0x1cb3a5]['join'](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x1e18d8=a29_0x4385fb;return _0x1e18d8(0x79)+getTopLevelConfigKeySummary();}function a29_0x2e22(_0xa45211,_0x24fddc){_0xa45211=_0xa45211-0x68;const _0x23de53=a29_0x23de();let _0x2e2222=_0x23de53[_0xa45211];return _0x2e2222;}export function buildAppProfileListFields(_0x357a97){return{'env':_0x357a97,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}function a29_0x23de(){const _0xbd36be=['cliSettableTopLevel','Override\x20user\x20domain','15RuuzjY','1066158tkjcIj','1280720dCtykI','4140060pKlfCf','env','defaultValue','has','Override\x20runtime\x20domain','375564HKQVRt','entries','map','12042naYeyz','filter','Config\x20key.\x20Top-level:\x20','Default\x20output\x20format','riskLevel','importable','enumValues','4758516qVuMiG','Default\x20page\x20size','105259SisBQL','88dEoKUW','2480ocdFsr','legacyCompatOnly'];a29_0x23de=function(){return _0xbd36be;};return a29_0x23de();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a30_0x5a183f=a30_0x3757;(function(_0x4ddd52,_0x663de2){const _0x5ddb55=a30_0x3757,_0x218db3=_0x4ddd52();while(!![]){try{const _0x53edef=-parseInt(_0x5ddb55(0x13f))/0x1*(parseInt(_0x5ddb55(0x138))/0x2)+-parseInt(_0x5ddb55(0x137))/0x3*(parseInt(_0x5ddb55(0x139))/0x4)+-parseInt(_0x5ddb55(0x13a))/0x5+parseInt(_0x5ddb55(0x13c))/0x6*(-parseInt(_0x5ddb55(0x142))/0x7)+-parseInt(_0x5ddb55(0x13b))/0x8+parseInt(_0x5ddb55(0x141))/0x9+parseInt(_0x5ddb55(0x13d))/0xa;if(_0x53edef===_0x663de2)break;else _0x218db3['push'](_0x218db3['shift']());}catch(_0x37d713){_0x218db3['push'](_0x218db3['shift']());}}}(a30_0x1650,0xf3fb2));export const AUTH_MODE={'ClientAk':a30_0x5a183f(0x13e)};function a30_0x3757(_0x490996,_0x3ac13f){_0x490996=_0x490996-0x137;const _0x165010=a30_0x1650();let _0x3757eb=_0x165010[_0x490996];return _0x3757eb;}export function isAuthMode(_0x2777f0){const _0x5b98e6=a30_0x5a183f;return _0x2777f0===AUTH_MODE[_0x5b98e6(0x140)];}function a30_0x1650(){const _0x1e2dc9=['13071474UmGCXo','49bAaihB','3dDFNnl','1132gFZUzb','2018984GNWoqQ','9975330ykECRc','4141744pNZBYX','196158EdgyWh','32523670eZvTVw','client-ak','811xmyyDm','ClientAk'];a30_0x1650=function(){return _0x1e2dc9;};return a30_0x1650();}
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a31_0x5b98(_0x552e72,_0x55ac77){_0x552e72=_0x552e72-0x73;const _0x547123=a31_0x5471();let _0x5b98f4=_0x547123[_0x552e72];return _0x5b98f4;}const a31_0x3c921a=a31_0x5b98;(function(_0x5d335d,_0x494539){const _0x14a07f=a31_0x5b98,_0x2877d7=_0x5d335d();while(!![]){try{const _0x5ad71e=-parseInt(_0x14a07f(0x87))/0x1*(-parseInt(_0x14a07f(0x82))/0x2)+-parseInt(_0x14a07f(0x88))/0x3*(-parseInt(_0x14a07f(0x74))/0x4)+parseInt(_0x14a07f(0x7d))/0x5+parseInt(_0x14a07f(0x86))/0x6+-parseInt(_0x14a07f(0x8b))/0x7+parseInt(_0x14a07f(0x80))/0x8*(parseInt(_0x14a07f(0x99))/0x9)+parseInt(_0x14a07f(0x78))/0xa*(-parseInt(_0x14a07f(0x75))/0xb);if(_0x5ad71e===_0x494539)break;else _0x2877d7['push'](_0x2877d7['shift']());}catch(_0x2c5c8a){_0x2877d7['push'](_0x2877d7['shift']());}}}(a31_0x5471,0xd8af6));export const CLI_BIN_NAME='lovrabet';export const CLI_DISPLAY_NAME=a31_0x3c921a(0xa2);export const NPM_PACKAGE_NAME=a31_0x3c921a(0xa0);export const GLOBAL_FLAGS=[{'name':a31_0x3c921a(0xa3),'meowKey':a31_0x3c921a(0xa3),'type':a31_0x3c921a(0x95),'description':'Override\x20appcode','hint':a31_0x3c921a(0x93)},{'name':a31_0x3c921a(0x73),'meowKey':a31_0x3c921a(0x73),'type':a31_0x3c921a(0x95),'description':a31_0x3c921a(0x83),'hint':a31_0x3c921a(0x8f)},{'name':a31_0x3c921a(0x98),'meowKey':'env','type':'string','description':a31_0x3c921a(0x90),'hint':a31_0x3c921a(0x97)},{'name':'format','meowKey':a31_0x3c921a(0x9c),'type':a31_0x3c921a(0x95),'description':a31_0x3c921a(0xa4),'hint':a31_0x3c921a(0x81)},{'name':'jq','meowKey':'jq','type':a31_0x3c921a(0x95),'description':a31_0x3c921a(0xa1),'hint':a31_0x3c921a(0x85)},{'name':a31_0x3c921a(0x89),'meowKey':a31_0x3c921a(0x9a),'type':'boolean','description':a31_0x3c921a(0x76)},{'name':a31_0x3c921a(0x96),'meowKey':'yes','type':'boolean','description':a31_0x3c921a(0x7b)},{'name':a31_0x3c921a(0x7a),'meowKey':'nonInteractive','type':a31_0x3c921a(0x84),'description':a31_0x3c921a(0x7e)},{'name':'global','meowKey':a31_0x3c921a(0x8d),'type':a31_0x3c921a(0x84),'description':a31_0x3c921a(0x77)},{'name':'ci','meowKey':'ci','type':a31_0x3c921a(0x84),'description':a31_0x3c921a(0xa5),'hidden':!![]},{'name':a31_0x3c921a(0x9d),'meowKey':'help','type':a31_0x3c921a(0x84),'description':'Show\x20help'},{'name':'id','meowKey':'id','type':'string','description':a31_0x3c921a(0x8a),'hidden':!![]},{'name':a31_0x3c921a(0x9f),'meowKey':a31_0x3c921a(0x9f),'type':a31_0x3c921a(0x95),'description':a31_0x3c921a(0x79),'hidden':!![]},{'name':a31_0x3c921a(0x8e),'meowKey':a31_0x3c921a(0x8e),'type':a31_0x3c921a(0x95),'description':a31_0x3c921a(0x9e),'hidden':!![]},{'name':a31_0x3c921a(0x9b),'meowKey':a31_0x3c921a(0x9b),'type':a31_0x3c921a(0x95),'description':a31_0x3c921a(0x92),'hidden':!![]},{'name':a31_0x3c921a(0x91),'meowKey':a31_0x3c921a(0x91),'type':a31_0x3c921a(0x84),'description':a31_0x3c921a(0x7f),'hidden':!![]},{'name':'clear','meowKey':a31_0x3c921a(0x94),'type':a31_0x3c921a(0x84),'description':a31_0x3c921a(0x7c),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode',a31_0x3c921a(0x73),a31_0x3c921a(0x98),a31_0x3c921a(0x9c),'jq',a31_0x3c921a(0x89),a31_0x3c921a(0x96),a31_0x3c921a(0x7a),'ci']);function a31_0x5471(){const _0x5acc4b=['non-interactive','Skip\x20confirmation\x20for\x20high-risk\x20writes','Clear\x20output','6737565kRMDQj','Force\x20non-interactive\x20mode\x20(CI)','Verbose\x20output','8gqAzHt','json\x20|\x20pretty\x20|\x20compress','102rxwWlS','Select\x20app\x20profile\x20by\x20name','boolean','<expr>','1522974gDAHRv','4199QnuZFQ','18564UvzHGO','dry-run','Record\x20ID','9940777KZTRbs','map','global','sqlcode','<name>','Environment','verbose','JSON\x20params\x20for\x20execute\x20commands','<code>','clear','string','yes','production\x20|\x20development\x20|\x20daily','env','4267521ewhvLx','dryRun','params','format','help','SQL\x20query\x20code','name','@lovrabet/lovrabet-cli','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','Lovrabet\x20Runtime\x20CLI','appcode','Output\x20format','Alias\x20for\x20--non-interactive','app','1056bpWGNG','413303EnIONe','Preview\x20operation\x20without\x20executing','Use\x20global\x20config\x20scope','430kJzTgS','Name\x20filter'];a31_0x5471=function(){return _0x5acc4b;};return a31_0x5471();}export function buildMeowFlags(){const _0x1c6820=a31_0x3c921a;return Object['fromEntries'](GLOBAL_FLAGS[_0x1c6820(0x8c)](_0x1ea485=>[_0x1ea485['meowKey'],{'type':_0x1ea485['type']}]));}
|