@lovrabet/lovrabet-cli 2.0.4 → 2.0.5-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/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
|
-
function a16_0x2921(){const _0x1f0849=['\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\x20PAGINATION','risk','map','aggregate','\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}','2AIENed','\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}}','Preview:\x20data\x20','command','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','\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','code','3389135DBfOBp','Get\x20a\x20single\x20record\x20by\x20ID','\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}','430749bHWwPj','1330aXyJTw','\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$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\x20AGGREGATE\x20TYPES','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','Filter\x20dataset\x20records\x20with\x20query\x20conditions','\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}','1836tylSqx','delete','\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}}','24CRgeAN','\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}','\x20completed\x20in\x20','\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#\x20Count\x20orders\x20per\x20region\x20with\x20filter','join','description','\x20\x20LOGICAL\x20COMBINATORS','\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}]','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','filter','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','\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','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','291249bwrpMe','\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.','POST','\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}}','6KHZwMW','\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}}','\x20\x20EXAMPLES','\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}}]}','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','batchCreate','write','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','operation','dryRun','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','7569352wECiLj','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','high-risk-write','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','getOne','body','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','read','build','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','105471zgEeDi','Update\x20an\x20existing\x20record','\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','helpExtra','\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\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','now','params','str','368777sYoDMA','data\x20','paramsHint','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','\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\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\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}}','4120449CEzGAt','\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\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}'];a16_0x2921=function(){return _0x1f0849;};return a16_0x2921();}const a16_0x2dafdc=a16_0x39a7;function a16_0x39a7(_0x28b881,_0x2df0ed){_0x28b881=_0x28b881-0x1bb;const _0x2921dd=a16_0x2921();let _0x39a712=_0x2921dd[_0x28b881];return _0x39a712;}(function(_0x47fccc,_0x25e9b1){const _0x3090a7=a16_0x39a7,_0x4ca8c1=_0x47fccc();while(!![]){try{const _0x29cc31=-parseInt(_0x3090a7(0x1ce))/0x1*(-parseInt(_0x3090a7(0x1de))/0x2)+-parseInt(_0x3090a7(0x1d5))/0x3+-parseInt(_0x3090a7(0x1bb))/0x4+-parseInt(_0x3090a7(0x1e5))/0x5*(parseInt(_0x3090a7(0x205))/0x6)+-parseInt(_0x3090a7(0x201))/0x7*(-parseInt(_0x3090a7(0x1f3))/0x8)+-parseInt(_0x3090a7(0x1c5))/0x9*(parseInt(_0x3090a7(0x1e9))/0xa)+parseInt(_0x3090a7(0x1e8))/0xb*(parseInt(_0x3090a7(0x1f0))/0xc);if(_0x29cc31===_0x25e9b1)break;else _0x4ca8c1['push'](_0x4ca8c1['shift']());}catch(_0x434ae0){_0x4ca8c1['push'](_0x4ca8c1['shift']());}}}(a16_0x2921,0xefe7a));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_0x2dafdc(0x1fd),'operation':'filter','risk':'read','paramsRequired':![],'description':a16_0x2dafdc(0x1ee),'paramsHint':a16_0x2dafdc(0x1c1)+a16_0x2dafdc(0x1c4),'helpExtra':['\x20\x20WHERE\x20OPERATORS',a16_0x2dafdc(0x1df),a16_0x2dafdc(0x1d4),a16_0x2dafdc(0x1d6),a16_0x2dafdc(0x1f2),a16_0x2dafdc(0x1d8),'\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\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]}}',a16_0x2dafdc(0x1f6),a16_0x2dafdc(0x206),a16_0x2dafdc(0x1eb),'',a16_0x2dafdc(0x1fa),a16_0x2dafdc(0x1ea),a16_0x2dafdc(0x208),'',a16_0x2dafdc(0x1d3),a16_0x2dafdc(0x1d1),'\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_0x2dafdc(0x1fb),'\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)',a16_0x2dafdc(0x20c),'',a16_0x2dafdc(0x1d9),a16_0x2dafdc(0x202),a16_0x2dafdc(0x1c7),a16_0x2dafdc(0x20f)][a16_0x2dafdc(0x1f8)]('\x0a')},{'command':a16_0x2dafdc(0x1bf),'operation':a16_0x2dafdc(0x1bf),'risk':a16_0x2dafdc(0x1c2),'paramsRequired':!![],'description':a16_0x2dafdc(0x1e6),'paramsHint':a16_0x2dafdc(0x1e2)},{'command':'create','operation':'create','risk':'write','paramsRequired':!![],'description':a16_0x2dafdc(0x1fe),'paramsHint':a16_0x2dafdc(0x1fc)},{'command':a16_0x2dafdc(0x20a),'operation':a16_0x2dafdc(0x20a),'risk':a16_0x2dafdc(0x20b),'paramsRequired':!![],'description':a16_0x2dafdc(0x1be),'paramsHint':'JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27'},{'command':'update','operation':'update','risk':a16_0x2dafdc(0x20b),'paramsRequired':!![],'description':a16_0x2dafdc(0x1c6),'paramsHint':'JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20Example:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27'},{'command':a16_0x2dafdc(0x1f1),'operation':a16_0x2dafdc(0x1f1),'risk':a16_0x2dafdc(0x1bd),'paramsRequired':!![],'description':a16_0x2dafdc(0x200),'paramsHint':a16_0x2dafdc(0x1e2)},{'command':a16_0x2dafdc(0x1dc),'operation':a16_0x2dafdc(0x1dc),'risk':a16_0x2dafdc(0x1c2),'paramsRequired':![],'description':a16_0x2dafdc(0x1ed),'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_0x2dafdc(0x1ec),a16_0x2dafdc(0x1e7),a16_0x2dafdc(0x1dd),a16_0x2dafdc(0x1ef),a16_0x2dafdc(0x1f4),a16_0x2dafdc(0x1d2),a16_0x2dafdc(0x1d7),'\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}','','\x20\x20PARAMS\x20STRUCTURE',a16_0x2dafdc(0x1c9),a16_0x2dafdc(0x209),a16_0x2dafdc(0x1bc),'\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]',a16_0x2dafdc(0x204),a16_0x2dafdc(0x1ca),'',a16_0x2dafdc(0x207),'\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status',a16_0x2dafdc(0x1ff),'',a16_0x2dafdc(0x1f7),a16_0x2dafdc(0x1e3)][a16_0x2dafdc(0x1f8)]('\x0a')}];function makeDataCommand(_0x1986d0){const _0x43b588=a16_0x2dafdc,_0x5c135e=_0x43b588(0x1cf)+_0x1986d0['command'],_0x43d6dd={'service':'data','command':_0x1986d0[_0x43b588(0x1e1)],'description':_0x1986d0[_0x43b588(0x1f9)],'risk':_0x1986d0[_0x43b588(0x1da)],'helpExtra':_0x1986d0[_0x43b588(0x1c8)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x1986d0[_0x43b588(0x1d0)]}],'validate':async _0x39bb2a=>{const _0x46c4f4=_0x43b588;_0x1986d0['paramsRequired']&&requireAnyOf(_0x39bb2a,['params'],_0x5c135e),_0x1986d0[_0x46c4f4(0x20d)]===_0x46c4f4(0x20a)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x39bb2a[_0x46c4f4(0x1cd)]('params')));},async 'execute'(_0x461464){const _0x319bee=_0x43b588,_0x5b4915=_0x461464['str'](_0x319bee(0x1e4)),_0x2cb811=_0x1986d0[_0x319bee(0x20d)]===_0x319bee(0x20a)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x461464[_0x319bee(0x1cd)](_0x319bee(0x1cc)))):parseJsonParams(_0x461464[_0x319bee(0x1cd)](_0x319bee(0x1cc)))??{},_0x100e35=Date[_0x319bee(0x1cb)](),_0x393eb1=await executeData(_0x5b4915,_0x1986d0[_0x319bee(0x20d)],_0x2cb811),_0x4e2c84=Date[_0x319bee(0x1cb)]()-_0x100e35;return{'ok':!![],'data':{'result':_0x393eb1,'elapsed':_0x4e2c84},'message':'data\x20'+_0x1986d0[_0x319bee(0x1e1)]+_0x319bee(0x1f5)+_0x4e2c84+'ms'};}};return _0x1986d0[_0x43b588(0x1da)]!==_0x43b588(0x1c2)&&(_0x43d6dd[_0x43b588(0x20e)]=async _0x25d1cf=>{const _0x7088fe=_0x43b588,_0x3a7424=_0x25d1cf['str']('code'),_0x396500=_0x1986d0[_0x7088fe(0x20d)]==='batchCreate'?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x25d1cf['str'](_0x7088fe(0x1cc)))):parseJsonParams(_0x25d1cf[_0x7088fe(0x1cd)](_0x7088fe(0x1cc)))??{};return dryRun(_0x7088fe(0x203),'/api/{appCode}/'+_0x3a7424+'/'+_0x1986d0[_0x7088fe(0x20d)])[_0x7088fe(0x1c0)](_0x396500)[_0x7088fe(0x1f9)](_0x7088fe(0x1e0)+_0x1986d0[_0x7088fe(0x1e1)]+'\x20on\x20dataset\x20'+_0x3a7424)[_0x7088fe(0x1c3)]();}),_0x43d6dd;}export const dataDefinitions=specs[a16_0x2dafdc(0x1db)](makeDataCommand);
|
|
1
|
+
const a16_0x4e8c6e=a16_0x4166;function a16_0x4166(_0xb129ee,_0x733d85){_0xb129ee=_0xb129ee-0x67;const _0x5af3c5=a16_0x5af3();let _0x41669a=_0x5af3c5[_0xb129ee];return _0x41669a;}(function(_0x405f87,_0x2f320e){const _0x109e04=a16_0x4166,_0x3e7a15=_0x405f87();while(!![]){try{const _0x5c263f=-parseInt(_0x109e04(0x9e))/0x1*(parseInt(_0x109e04(0x69))/0x2)+-parseInt(_0x109e04(0x95))/0x3*(parseInt(_0x109e04(0x8e))/0x4)+parseInt(_0x109e04(0x6f))/0x5*(parseInt(_0x109e04(0x90))/0x6)+-parseInt(_0x109e04(0xae))/0x7*(parseInt(_0x109e04(0x97))/0x8)+parseInt(_0x109e04(0x83))/0x9+parseInt(_0x109e04(0x74))/0xa+parseInt(_0x109e04(0xa8))/0xb;if(_0x5c263f===_0x2f320e)break;else _0x3e7a15['push'](_0x3e7a15['shift']());}catch(_0x31903b){_0x3e7a15['push'](_0x3e7a15['shift']());}}}(a16_0x5af3,0x94528));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';function a16_0x5af3(){const _0x24ede2=['\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','write','high-risk-write','map','\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}}]}','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','Example:\x20\x27{\x22aggregate\x22:[{\x22field\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','\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]}}','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','\x20completed\x20in\x20','36804jJGCRs','\x20\x20LOGICAL\x20COMBINATORS','2376642MAdQLD','\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}]','Get\x20a\x20single\x20record\x20by\x20ID','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','Filter\x20dataset\x20records\x20with\x20query\x20conditions','285inVhUi','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','648MkCNXI','code','\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}','aggregate','\x20\x20PARAMS\x20STRUCTURE','\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','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','1awYoDo','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','\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}}]}','description','delete','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20Example:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','operation','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','5836864EutVPF','command','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','build','\x20\x20WHERE\x20OPERATORS','\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}','45647VNxWAd','\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}}','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','\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}}','filter','body','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','update','join','read','paramsHint','\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.','1189778jdAhrK','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','\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}}','data\x20','\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\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','10uNoKpr','dryRun','helpExtra','str','POST','6083830MkBJfH','now','batchCreate','create','Preview:\x20data\x20','\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\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}}','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\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\x20$gte\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20or\x20equal\x20\x20{\x22amount\x22:{\x22$gte\x22:100}}','params','data','\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}}','6061428FJvpBr'];a16_0x5af3=function(){return _0x24ede2;};return a16_0x5af3();}import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':a16_0x4e8c6e(0xb2),'operation':a16_0x4e8c6e(0xb2),'risk':a16_0x4e8c6e(0xb7),'paramsRequired':![],'description':a16_0x4e8c6e(0x94),'paramsHint':a16_0x4e8c6e(0x7b)+'Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','helpExtra':[a16_0x4e8c6e(0xac),'\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}}',a16_0x4e8c6e(0x6d),a16_0x4e8c6e(0x82),a16_0x4e8c6e(0x7f),a16_0x4e8c6e(0xb1),a16_0x4e8c6e(0xaf),a16_0x4e8c6e(0x8b),a16_0x4e8c6e(0x6b),'\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_0x4e8c6e(0x7a),'',a16_0x4e8c6e(0x8f),a16_0x4e8c6e(0x88),a16_0x4e8c6e(0xa1),'','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)',a16_0x4e8c6e(0xa0),'\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_0x4e8c6e(0x91),a16_0x4e8c6e(0xb4),a16_0x4e8c6e(0x6a),'','\x20\x20PAGINATION',a16_0x4e8c6e(0x68),a16_0x4e8c6e(0x84),a16_0x4e8c6e(0xa5)][a16_0x4e8c6e(0xb6)]('\x0a')},{'command':'getOne','operation':'getOne','risk':a16_0x4e8c6e(0xb7),'paramsRequired':!![],'description':a16_0x4e8c6e(0x92),'paramsHint':a16_0x4e8c6e(0x9f)},{'command':'create','operation':a16_0x4e8c6e(0x77),'risk':a16_0x4e8c6e(0x85),'paramsRequired':!![],'description':a16_0x4e8c6e(0xb0),'paramsHint':a16_0x4e8c6e(0x6e)},{'command':a16_0x4e8c6e(0x76),'operation':'batchCreate','risk':a16_0x4e8c6e(0x85),'paramsRequired':!![],'description':a16_0x4e8c6e(0x89),'paramsHint':a16_0x4e8c6e(0x93)},{'command':a16_0x4e8c6e(0xb5),'operation':'update','risk':a16_0x4e8c6e(0x85),'paramsRequired':!![],'description':'Update\x20an\x20existing\x20record','paramsHint':a16_0x4e8c6e(0xa4)},{'command':'delete','operation':a16_0x4e8c6e(0xa3),'risk':a16_0x4e8c6e(0x86),'paramsRequired':!![],'description':'Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','paramsHint':a16_0x4e8c6e(0x9f)},{'command':a16_0x4e8c6e(0x9a),'operation':a16_0x4e8c6e(0x9a),'risk':'read','paramsRequired':![],'description':a16_0x4e8c6e(0x96),'paramsHint':a16_0x4e8c6e(0xa7)+a16_0x4e8c6e(0x8a),'helpExtra':['\x20\x20AGGREGATE\x20TYPES','\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\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\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\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_0x4e8c6e(0xad),'\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}',a16_0x4e8c6e(0x99),'',a16_0x4e8c6e(0x9b),'\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]',a16_0x4e8c6e(0x8c),a16_0x4e8c6e(0x79),a16_0x4e8c6e(0x7d),'\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}}',a16_0x4e8c6e(0xaa),'','\x20\x20EXAMPLES',a16_0x4e8c6e(0x7c),a16_0x4e8c6e(0x7e),'',a16_0x4e8c6e(0x9d),a16_0x4e8c6e(0x9c)][a16_0x4e8c6e(0xb6)]('\x0a')}];function makeDataCommand(_0x5958ee){const _0x323fe0=a16_0x4e8c6e,_0x3e7bec=_0x323fe0(0x6c)+_0x5958ee[_0x323fe0(0xa9)],_0x2e149e={'service':_0x323fe0(0x81),'command':_0x5958ee[_0x323fe0(0xa9)],'description':_0x5958ee[_0x323fe0(0xa2)],'risk':_0x5958ee['risk'],'helpExtra':_0x5958ee[_0x323fe0(0x71)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x5958ee[_0x323fe0(0x67)]}],'validate':async _0x25eca5=>{const _0x19cc02=_0x323fe0;_0x5958ee['paramsRequired']&&requireAnyOf(_0x25eca5,['params'],_0x3e7bec),_0x5958ee[_0x19cc02(0xa6)]===_0x19cc02(0x76)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x25eca5['str'](_0x19cc02(0x80))));},async 'execute'(_0x15a6c4){const _0xcb10cb=_0x323fe0,_0x3dc51e=_0x15a6c4[_0xcb10cb(0x72)](_0xcb10cb(0x98)),_0x2e99e5=_0x5958ee[_0xcb10cb(0xa6)]==='batchCreate'?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x15a6c4[_0xcb10cb(0x72)](_0xcb10cb(0x80)))):parseJsonParams(_0x15a6c4['str']('params'))??{},_0x155aa5=Date['now'](),_0x5c0c8f=await executeData(_0x3dc51e,_0x5958ee[_0xcb10cb(0xa6)],_0x2e99e5),_0x5cf6ee=Date[_0xcb10cb(0x75)]()-_0x155aa5;return{'ok':!![],'data':{'result':_0x5c0c8f,'elapsed':_0x5cf6ee},'message':_0xcb10cb(0x6c)+_0x5958ee['command']+_0xcb10cb(0x8d)+_0x5cf6ee+'ms'};}};return _0x5958ee['risk']!==_0x323fe0(0xb7)&&(_0x2e149e[_0x323fe0(0x70)]=async _0x3dcf77=>{const _0xffc292=_0x323fe0,_0x31e828=_0x3dcf77[_0xffc292(0x72)]('code'),_0x2d8eb3=_0x5958ee['operation']===_0xffc292(0x76)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x3dcf77[_0xffc292(0x72)]('params'))):parseJsonParams(_0x3dcf77['str']('params'))??{};return dryRun(_0xffc292(0x73),'/api/{appCode}/'+_0x31e828+'/'+_0x5958ee[_0xffc292(0xa6)])[_0xffc292(0xb3)](_0x2d8eb3)[_0xffc292(0xa2)](_0xffc292(0x78)+_0x5958ee[_0xffc292(0xa9)]+'\x20on\x20dataset\x20'+_0x31e828)[_0xffc292(0xab)]();}),_0x2e149e;}export const dataDefinitions=specs[a16_0x4e8c6e(0x87)](makeDataCommand);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a17_0xac529a=a17_0x3e40;(function(_0x4b9ad7,_0x4b847b){const _0x20a8c7=a17_0x3e40,_0x28838a=_0x4b9ad7();while(!![]){try{const _0x45ce99=parseInt(_0x20a8c7(0x197))/0x1+parseInt(_0x20a8c7(0x1a8))/0x2*(parseInt(_0x20a8c7(0x1db))/0x3)+-parseInt(_0x20a8c7(0x1b4))/0x4*(parseInt(_0x20a8c7(0x1bb))/0x5)+-parseInt(_0x20a8c7(0x196))/0x6+-parseInt(_0x20a8c7(0x1ce))/0x7*(parseInt(_0x20a8c7(0x1a7))/0x8)+-parseInt(_0x20a8c7(0x19f))/0x9*(parseInt(_0x20a8c7(0x1b1))/0xa)+-parseInt(_0x20a8c7(0x1d7))/0xb*(-parseInt(_0x20a8c7(0x1bf))/0xc);if(_0x45ce99===_0x4b847b)break;else _0x28838a['push'](_0x28838a['shift']());}catch(_0xbfbdd8){_0x28838a['push'](_0x28838a['shift']());}}}(a17_0x1837,0x87420));function a17_0x1837(){const _0x500aad=['toFieldLabel','path','creatorNameField','modelCode','responseBody','host','tableComment','195940ZbxDfL','requestFields','modifierIdField','542636lEXbbS','afterScriptId','map','creatorIdField','string','relatedPageInfoList','read','15IlcwMM','push','options','method','5484aivGwJ','updateTimeField','toTableName','trim','operations','sourceType','fromField','beforeScriptId','allFields','detail','datasetKey','required','dataType','filter','doType','2471QsRHtN','dblinkInfoDTO','deleted','fields','toField','dbId','code','dbtableConfig','columnCodeListWithDeleted','14069EEHdWg','displayName','dataset','dbName','6EcDgtZ','length','parse','pkField','extend','type','validateRules','requestBody','4323990SxPDCX','848364DqARXD','indexes','doVersion','responseFields','isArray','dbType','formatRules','object','198EbnzRq','properties','modelId','name','title','split','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','tableName','8408aWbFnu','1050862CRGNuO','description'];a17_0x1837=function(){return _0x500aad;};return a17_0x1837();}import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x540d89){const _0x33e66c=a17_0x3e40;if(_0x540d89[_0x33e66c(0x1d0)])return null;const _0x362c82=Boolean(_0x540d89[_0x33e66c(0x1d8)]!==undefined||_0x540d89[_0x33e66c(0x1cd)]!==undefined);let _0x37957a={};if(!_0x362c82&&typeof _0x540d89[_0x33e66c(0x192)]==='string')try{_0x37957a=JSON[_0x33e66c(0x190)](_0x540d89[_0x33e66c(0x192)]);}catch{}const _0xeaf477=_0x362c82?_0x540d89[_0x33e66c(0x1a2)]:_0x540d89[_0x33e66c(0x1d4)],_0x4ead4d=_0x362c82?_0x540d89[_0x33e66c(0x1d8)]:_0x540d89[_0x33e66c(0x1a2)],_0x2dd4c4=_0x362c82?_0x540d89[_0x33e66c(0x1cd)]:_0x540d89[_0x33e66c(0x193)]||_0x540d89[_0x33e66c(0x1cb)],_0x5289cc=_0x362c82?_0x540d89[_0x33e66c(0x191)]===!![]:_0x37957a[_0x33e66c(0x191)]===!![],_0x3a5a49=_0x362c82?_0x540d89[_0x33e66c(0x1ca)]===!![]:_0x37957a[_0x33e66c(0x1ca)]===!![],_0x1808e7=_0x362c82?_0x540d89['options']??null:_0x37957a[_0x33e66c(0x1bd)]??null,_0xb89a12={'name':_0xeaf477,'displayName':_0x4ead4d||_0xeaf477,'type':_0x2dd4c4,'dbType':_0x540d89[_0x33e66c(0x19c)],'pk':_0x5289cc,'required':_0x3a5a49,'description':_0x540d89[_0x33e66c(0x1a9)]||undefined};return Array[_0x33e66c(0x19b)](_0x1808e7)&&_0x1808e7['length']>0x0&&(_0xb89a12[_0x33e66c(0x1bd)]=_0x1808e7),_0xb89a12;}function parseJsonMaybe(_0x24bfbd){const _0x1465c3=a17_0x3e40;if(typeof _0x24bfbd!==_0x1465c3(0x1b8))return _0x24bfbd;try{return JSON['parse'](_0x24bfbd);}catch{return _0x24bfbd;}}function normalizeOperationEntry(_0x26a65f,_0x56b07a){const _0x9877ef=a17_0x3e40;if(!_0x56b07a||typeof _0x56b07a!==_0x9877ef(0x19e))return null;if(!_0x56b07a['method']||!_0x56b07a[_0x9877ef(0x1ab)])return null;const _0x17c2cf={'name':_0x26a65f,'method':_0x56b07a[_0x9877ef(0x1be)],'path':_0x56b07a[_0x9877ef(0x1ab)]};if(_0x56b07a['host'])_0x17c2cf[_0x9877ef(0x1af)]=_0x56b07a[_0x9877ef(0x1af)];if(_0x56b07a[_0x9877ef(0x195)]!=null)_0x17c2cf['requestBody']=parseJsonMaybe(_0x56b07a[_0x9877ef(0x195)]);if(_0x56b07a[_0x9877ef(0x1ae)]!=null)_0x17c2cf[_0x9877ef(0x1ae)]=parseJsonMaybe(_0x56b07a['responseBody']);if(_0x56b07a[_0x9877ef(0x1c6)]!=null)_0x17c2cf[_0x9877ef(0x1c6)]=_0x56b07a[_0x9877ef(0x1c6)];if(_0x56b07a[_0x9877ef(0x1b5)]!=null)_0x17c2cf[_0x9877ef(0x1b5)]=_0x56b07a[_0x9877ef(0x1b5)];if(Array['isArray'](_0x56b07a['requestFields']))_0x17c2cf[_0x9877ef(0x1b2)]=_0x56b07a['requestFields'];if(Array[_0x9877ef(0x19b)](_0x56b07a[_0x9877ef(0x19a)]))_0x17c2cf['responseFields']=_0x56b07a['responseFields'];return _0x17c2cf;}function summarizeDbtable(_0xd51467){const _0x3ce7d8=a17_0x3e40,_0x459d3c={},_0xe5c4a6=[_0x3ce7d8(0x1d3),'dbName',_0x3ce7d8(0x1a6),_0x3ce7d8(0x1c9),_0x3ce7d8(0x191),'allFields','logicField','createTimeField',_0x3ce7d8(0x1c0),_0x3ce7d8(0x1b7),_0x3ce7d8(0x1ac),_0x3ce7d8(0x1b3),'modifierNameField','labelField',_0x3ce7d8(0x1cf)];for(const _0x5b9f4b of _0xe5c4a6){if(_0xd51467[_0x5b9f4b]!==undefined)_0x459d3c[_0x5b9f4b]=_0xd51467[_0x5b9f4b];}return typeof _0x459d3c[_0x3ce7d8(0x1c7)]==='string'&&_0x459d3c[_0x3ce7d8(0x1c7)]['length']>0x0&&(_0x459d3c['allFieldNames']=_0x459d3c['allFields'][_0x3ce7d8(0x1a4)](',')[_0x3ce7d8(0x1b6)](_0x523793=>_0x523793[_0x3ce7d8(0x1c2)]())[_0x3ce7d8(0x1cc)](Boolean)),_0x459d3c;}function normalizeRelatedPages(_0x3302e4){const _0x32934d=a17_0x3e40;if(!Array['isArray'](_0x3302e4))return[];return _0x3302e4['filter'](_0x4735a6=>_0x4735a6&&typeof _0x4735a6==='object')[_0x32934d(0x1b6)](_0x541f1b=>({'id':_0x541f1b['id'],'type':_0x541f1b[_0x32934d(0x193)],'code':_0x541f1b[_0x32934d(0x1d4)],'title':_0x541f1b[_0x32934d(0x1a3)],'deleted':_0x541f1b[_0x32934d(0x1d0)]===!![]}));}function a17_0x3e40(_0x1706c2,_0x5a6e02){_0x1706c2=_0x1706c2-0x18f;const _0x183771=a17_0x1837();let _0x3e40cc=_0x183771[_0x1706c2];return _0x3e40cc;}export const datasetDetail={'service':a17_0xac529a(0x1d9),'command':a17_0xac529a(0x1c8),'description':a17_0xac529a(0x1a5),'risk':a17_0xac529a(0x1ba),'flags':[CODE_FLAG],async 'execute'(_0xd994e4){const _0x23ce6a=a17_0xac529a,_0x895a6c=await getDatasetDetail(_0xd994e4['str'](_0x23ce6a(0x1d4))),_0x484179=Array[_0x23ce6a(0x19b)](_0x895a6c[_0x23ce6a(0x1d1)])?_0x895a6c['fields']:Array[_0x23ce6a(0x19b)](_0x895a6c[_0x23ce6a(0x1a0)])?_0x895a6c[_0x23ce6a(0x1a0)]:[],_0x5857ca=_0x484179[_0x23ce6a(0x1b6)](_0x53a3cf=>normalizeField(_0x53a3cf))[_0x23ce6a(0x1cc)](_0x16a895=>_0x16a895!==null),_0x7f63ce=_0x895a6c[_0x23ce6a(0x1c3)]??{},_0x335a2e=[];for(const [_0x298d95,_0x5176fb]of Object['entries'](_0x7f63ce)){const _0x5e1723=normalizeOperationEntry(_0x298d95,_0x5176fb);if(_0x5e1723)_0x335a2e[_0x23ce6a(0x1bc)](_0x5e1723);}const _0x3ed14e=_0x895a6c[_0x23ce6a(0x1d5)]??{},_0x4f5d0d=_0x895a6c[_0x23ce6a(0x1d9)]??{},_0x398c16=_0x3ed14e[_0x23ce6a(0x1d3)]!=null?{'id':_0x3ed14e[_0x23ce6a(0x1d3)],'name':_0x3ed14e[_0x23ce6a(0x1da)]??null}:undefined;let _0x56d611;return typeof _0x895a6c[_0x23ce6a(0x192)]===_0x23ce6a(0x1b8)&&(_0x56d611=parseJsonMaybe(_0x895a6c[_0x23ce6a(0x192)])),{'ok':!![],'data':{'id':_0x895a6c[_0x23ce6a(0x1a1)]??_0x895a6c['id'],'name':_0x895a6c[_0x23ce6a(0x1a2)],'code':_0x895a6c[_0x23ce6a(0x1ad)]||_0x895a6c[_0x23ce6a(0x1d4)],'doVersion':_0x895a6c[_0x23ce6a(0x199)],'description':_0x895a6c[_0x23ce6a(0x1a9)]||_0x4f5d0d[_0x23ce6a(0x1b0)]||undefined,'source':_0x895a6c['source']||_0x4f5d0d[_0x23ce6a(0x1c4)],'table':_0x3ed14e[_0x23ce6a(0x1a6)]||_0x4f5d0d[_0x23ce6a(0x1a6)],'datasetKey':_0x3ed14e[_0x23ce6a(0x1c9)],'pk':_0x3ed14e[_0x23ce6a(0x191)],'db':_0x398c16,'dbtable':summarizeDbtable(_0x3ed14e),'fields':_0x5857ca,'operations':_0x335a2e,'indexes':Array[_0x23ce6a(0x19b)](_0x4f5d0d[_0x23ce6a(0x198)])?_0x4f5d0d['indexes']:[],'relations':Array[_0x23ce6a(0x19b)](_0x895a6c['relations'])?_0x895a6c['relations'][_0x23ce6a(0x1b6)](_0x2ef4a9=>({'fromField':_0x2ef4a9[_0x23ce6a(0x1c5)],'toDataset':_0x2ef4a9['toDatasetName'],'toCode':_0x2ef4a9['toDatasetCode'],'toTable':_0x2ef4a9[_0x23ce6a(0x1c1)],'toField':_0x2ef4a9[_0x23ce6a(0x1d2)],'labelField':_0x2ef4a9[_0x23ce6a(0x1aa)]||undefined})):[],'relatedPages':normalizeRelatedPages(_0x895a6c[_0x23ce6a(0x1b9)]),...Array[_0x23ce6a(0x19b)](_0x895a6c[_0x23ce6a(0x1d6)])?{'columnCodeListWithDeleted':_0x895a6c[_0x23ce6a(0x1d6)]}:{},'formatRules':Array[_0x23ce6a(0x19b)](_0x895a6c[_0x23ce6a(0x19d)])?_0x895a6c[_0x23ce6a(0x19d)]:[],'validateRules':Array['isArray'](_0x895a6c[_0x23ce6a(0x194)])?_0x895a6c['validateRules']:[],..._0x56d611!==undefined?{'extend':_0x56d611}:{},'stats':{'fieldCount':_0x5857ca[_0x23ce6a(0x18f)],'operationCount':_0x335a2e[_0x23ce6a(0x18f)]}}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a18_0x33c9(_0x40b83f,_0x40df06){_0x40b83f=_0x40b83f-0x7d;const _0x2bc0bd=a18_0x2bc0();let _0x33c9fc=_0x2bc0bd[_0x40b83f];return _0x33c9fc;}(function(_0x4c0574,_0x198248){const _0xbda70d=a18_0x33c9,_0x2c7733=_0x4c0574();while(!![]){try{const _0x5795f9=parseInt(_0xbda70d(0x86))/0x1+-parseInt(_0xbda70d(0x7f))/0x2*(parseInt(_0xbda70d(0x85))/0x3)+parseInt(_0xbda70d(0x7e))/0x4+parseInt(_0xbda70d(0x84))/0x5+-parseInt(_0xbda70d(0x82))/0x6*(parseInt(_0xbda70d(0x83))/0x7)+-parseInt(_0xbda70d(0x81))/0x8*(parseInt(_0xbda70d(0x80))/0x9)+-parseInt(_0xbda70d(0x7d))/0xa;if(_0x5795f9===_0x198248)break;else _0x2c7733['push'](_0x2c7733['shift']());}catch(_0x4826ef){_0x2c7733['push'](_0x2c7733['shift']());}}}(a18_0x2bc0,0x1ef8f));function a18_0x2bc0(){const _0x51a0c3=['10086TYSaGJ','21qHcTwQ','706170oMQVOT','186321SOTkxR','211772pxohjd','466040iRHpoI','248960WZTTCe','4eECdzQ','506349jGEikR','16wdTMxr'];a18_0x2bc0=function(){return _0x51a0c3;};return a18_0x2bc0();}import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';export const datasetDefinitions=[datasetList,datasetDetail];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a19_0x7057(){const _0xd2d1ae=['List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','code','split','datasetKey','dataset','7hpPkMI','1317032VMxHwM','5ALKZGO','description','name','source','read','1936734piwexX','7275357sDqLlI','943365cWjkkx','allFields','str','list','185717DloBRX','map','82596QwnQjG','length','string','258484VSSNRV','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','trim','10rKQjoU','tableName','appCode','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)'];a19_0x7057=function(){return _0xd2d1ae;};return a19_0x7057();}function a19_0x1414(_0x18491c,_0x8d0e98){_0x18491c=_0x18491c-0xe5;const _0x7057b4=a19_0x7057();let _0x141493=_0x7057b4[_0x18491c];return _0x141493;}const a19_0x50cb4a=a19_0x1414;(function(_0x1cd3fd,_0x1ea5a6){const _0x4cdc9e=a19_0x1414,_0x1cdb22=_0x1cd3fd();while(!![]){try{const _0x1c706d=parseInt(_0x4cdc9e(0xf1))/0x1+parseInt(_0x4cdc9e(0xf3))/0x2+-parseInt(_0x4cdc9e(0xed))/0x3+parseInt(_0x4cdc9e(0xf6))/0x4*(-parseInt(_0x4cdc9e(0xe6))/0x5)+-parseInt(_0x4cdc9e(0xeb))/0x6*(parseInt(_0x4cdc9e(0x102))/0x7)+-parseInt(_0x4cdc9e(0xe5))/0x8+-parseInt(_0x4cdc9e(0xec))/0x9*(-parseInt(_0x4cdc9e(0xf9))/0xa);if(_0x1c706d===_0x1ea5a6)break;else _0x1cdb22['push'](_0x1cdb22['shift']());}catch(_0x11037a){_0x1cdb22['push'](_0x1cdb22['shift']());}}}(a19_0x7057,0x293be));import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a19_0x50cb4a(0x101),'command':a19_0x50cb4a(0xf0),'description':a19_0x50cb4a(0xfd),'risk':a19_0x50cb4a(0xea),'flags':[{'name':a19_0x50cb4a(0xe8),'type':a19_0x50cb4a(0xf5),'description':a19_0x50cb4a(0xf7)},{...CODE_FLAG,'required':![],'description':a19_0x50cb4a(0xfc)}],async 'execute'(_0x567c10){const _0x59708e=a19_0x50cb4a,_0x5521d2=_0x567c10[_0x59708e(0xef)](_0x59708e(0xe8)),_0x3e82db=_0x567c10[_0x59708e(0xef)](_0x59708e(0xfe)),_0x5c19e7=await listDatasets(_0x567c10[_0x59708e(0xfb)],{..._0x5521d2&&{'name':_0x5521d2},..._0x3e82db&&{'code':_0x3e82db}});return{'ok':!![],'data':{'total':_0x5c19e7[_0x59708e(0xf4)],'datasets':_0x5c19e7[_0x59708e(0xf2)](_0x451b66=>{const _0x3f52c7=_0x59708e,_0x27afba=_0x451b66['dbtableConfig']??{};return{'id':_0x451b66['id'],'code':_0x451b66[_0x3f52c7(0xfe)],'name':_0x451b66[_0x3f52c7(0xe8)],'source':_0x451b66[_0x3f52c7(0xe9)],'description':_0x451b66[_0x3f52c7(0xe7)],'table':_0x27afba[_0x3f52c7(0xfa)],'datasetKey':_0x27afba[_0x3f52c7(0x100)],'pk':_0x27afba['pkField'],'fields':_0x27afba[_0x3f52c7(0xee)]?_0x27afba[_0x3f52c7(0xee)][_0x3f52c7(0xff)](',')[_0x3f52c7(0xf2)](_0x2781f3=>_0x2781f3[_0x3f52c7(0xf8)]()):[]};})}};}};
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a20_0x31a1ca=a20_0x5ef6;function a20_0x5ef6(_0x548a29,_0x2802f4){_0x548a29=_0x548a29-0x167;const _0x4508ff=a20_0x4508();let _0x5ef618=_0x4508ff[_0x548a29];return _0x5ef618;}function a20_0x4508(){const _0x3aa66a=['yellow','version','9VsVahn','(not\x20found)','2276071WbtBxI','status','log','riskLevel','\x20\x20Session\x20check:\x20\x20\x20','72CwtKak','\x20\x20─','message','padEnd','(missing)','4023704WFvRcF','3520oHrgUz','✓\x20Valid\x20JSON','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Merged\x20Config','bold','(default:\x20','Project','66BqCZgk','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Auth','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20(legacy/compat\x20only)','\x20doctor','pageSize','100ElGILm','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','41931arWwOG','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','green','platform','red','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','currentApp','repeat','format','\x20(accessKey)','length','11116068XXNOSF','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20API\x20Endpoints','accessKey','Global','(not\x20set)','12178OSutqG','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20auth\x20(effective):\x20','locale','ClientAk','env','defaultApp','(default)','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(removed\x20—\x20cookie\x20auth\x20disabled)','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','(none)','Diagnose\x20CLI\x20configuration\x20and\x20environment','33671CKUsoz','doctor','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','read','missing','(set,\x20length=','gray','empty','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','arch','(no\x20file)','347365aPiglP'];a20_0x4508=function(){return _0x3aa66a;};return a20_0x4508();}(function(_0x3a22f3,_0x5b98e0){const _0x2b9ee5=a20_0x5ef6,_0x233a55=_0x3a22f3();while(!![]){try{const _0x1e1128=parseInt(_0x2b9ee5(0x181))/0x1*(parseInt(_0x2b9ee5(0x196))/0x2)+parseInt(_0x2b9ee5(0x184))/0x3*(-parseInt(_0x2b9ee5(0x16d))/0x4)+-parseInt(_0x2b9ee5(0x1ae))/0x5*(parseInt(_0x2b9ee5(0x17a))/0x6)+-parseInt(_0x2b9ee5(0x168))/0x7+parseInt(_0x2b9ee5(0x172))/0x8*(-parseInt(_0x2b9ee5(0x1b1))/0x9)+parseInt(_0x2b9ee5(0x173))/0xa*(parseInt(_0x2b9ee5(0x1a3))/0xb)+parseInt(_0x2b9ee5(0x190))/0xc;if(_0x1e1128===_0x5b98e0)break;else _0x233a55['push'](_0x233a55['shift']());}catch(_0x108210){_0x233a55['push'](_0x233a55['shift']());}}}(a20_0x4508,0xbbb26));import a20_0x4b3843 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(_0x19b243){const _0x5b6134=a20_0x5ef6,_0x3a94c5=getCliVersion(),_0x4389d1=buildConfigFromFlags({});await initGlobalEnvironment(_0x4389d1),console[_0x5b6134(0x16a)](),console[_0x5b6134(0x16a)](a20_0x4b3843[_0x5b6134(0x177)](CLI_BIN_NAME+_0x5b6134(0x17f))),console[_0x5b6134(0x16a)](a20_0x4b3843[_0x5b6134(0x1a9)]('─'[_0x5b6134(0x18c)](0x32))),console[_0x5b6134(0x16a)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x3a94c5),console[_0x5b6134(0x16a)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x5b6134(0x1b0)]),console[_0x5b6134(0x16a)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x5b6134(0x188)]+'\x20'+process[_0x5b6134(0x1ac)]),console[_0x5b6134(0x16a)](),console[_0x5b6134(0x16a)](a20_0x4b3843['bold']('\x20\x20Config\x20Files')),console[_0x5b6134(0x16a)](a20_0x4b3843[_0x5b6134(0x1a9)](_0x5b6134(0x16e)[_0x5b6134(0x18c)](0x1e)));const _0x260794=getGlobalConfigPath(),_0x1e7e17=getProjectConfigPath();console[_0x5b6134(0x16a)](_0x5b6134(0x19e)+(_0x260794||a20_0x4b3843[_0x5b6134(0x1a9)](_0x5b6134(0x167)))),console[_0x5b6134(0x16a)](_0x5b6134(0x1ab)+(_0x1e7e17||a20_0x4b3843['gray'](_0x5b6134(0x167)))),console[_0x5b6134(0x16a)](),console[_0x5b6134(0x16a)](a20_0x4b3843[_0x5b6134(0x177)]('\x20\x20Config\x20JSON')),console[_0x5b6134(0x16a)](a20_0x4b3843['gray']('\x20\x20─'[_0x5b6134(0x18c)](0x1e)));const _0x480310=(_0x5d960f,_0x443fb8)=>{const _0x1e49f7=_0x5b6134;if(!_0x443fb8){console[_0x1e49f7(0x16a)]('\x20\x20'+_0x5d960f['padEnd'](0x11)+'\x20'+a20_0x4b3843[_0x1e49f7(0x1a9)](_0x1e49f7(0x1ad)));return;}const _0xc746af=inspectCliConfigJsonFile(_0x443fb8);if(_0xc746af[_0x1e49f7(0x169)]==='ok')console[_0x1e49f7(0x16a)]('\x20\x20'+_0x5d960f[_0x1e49f7(0x170)](0x11)+'\x20'+a20_0x4b3843[_0x1e49f7(0x187)](_0x1e49f7(0x174)));else{if(_0xc746af[_0x1e49f7(0x169)]===_0x1e49f7(0x1aa))console[_0x1e49f7(0x16a)]('\x20\x20'+_0x5d960f[_0x1e49f7(0x170)](0x11)+'\x20'+a20_0x4b3843[_0x1e49f7(0x1af)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0xc746af[_0x1e49f7(0x169)]===_0x1e49f7(0x1a7)?console[_0x1e49f7(0x16a)]('\x20\x20'+_0x5d960f[_0x1e49f7(0x170)](0x11)+'\x20'+a20_0x4b3843[_0x1e49f7(0x1a9)](_0x1e49f7(0x171))):(console[_0x1e49f7(0x16a)]('\x20\x20'+_0x5d960f['padEnd'](0x11)+'\x20'+a20_0x4b3843[_0x1e49f7(0x189)]('✗\x20Invalid\x20JSON')),console['log']('\x20\x20'+''[_0x1e49f7(0x170)](0x11)+'\x20'+a20_0x4b3843[_0x1e49f7(0x189)](_0xc746af[_0x1e49f7(0x16f)])));}};_0x480310(_0x5b6134(0x194),_0x260794),_0x480310(_0x5b6134(0x179),_0x1e7e17),console[_0x5b6134(0x16a)](),console[_0x5b6134(0x16a)](a20_0x4b3843['bold'](_0x5b6134(0x176))),console[_0x5b6134(0x16a)](a20_0x4b3843[_0x5b6134(0x1a9)](_0x5b6134(0x16e)['repeat'](0x1e))),console[_0x5b6134(0x16a)](_0x5b6134(0x1a5)+(_0x4389d1['appCode']||a20_0x4b3843['red'](_0x5b6134(0x195)))),console[_0x5b6134(0x16a)]('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4389d1[_0x5b6134(0x19b)]);const _0x25c6a1=isLegacyCompatConfigKey(_0x5b6134(0x199))?a20_0x4b3843[_0x5b6134(0x1a9)](_0x4389d1[_0x5b6134(0x199)]+_0x5b6134(0x17e)):_0x4389d1[_0x5b6134(0x199)];return console[_0x5b6134(0x16a)](_0x5b6134(0x186)+_0x25c6a1),console[_0x5b6134(0x16a)](_0x5b6134(0x185)+(_0x4389d1[_0x5b6134(0x19c)]||a20_0x4b3843[_0x5b6134(0x1a9)](_0x5b6134(0x1a1)))),console[_0x5b6134(0x16a)](_0x5b6134(0x191)+(_0x4389d1[_0x5b6134(0x18b)]||a20_0x4b3843[_0x5b6134(0x1a9)](_0x5b6134(0x1a1)))),console['log']('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x4389d1[_0x5b6134(0x18d)]||a20_0x4b3843[_0x5b6134(0x1a9)](_0x5b6134(0x178)+DEFAULT_CONFIG_VALUES[_0x5b6134(0x18d)]+')'))),console[_0x5b6134(0x16a)](_0x5b6134(0x17d)+(_0x4389d1[_0x5b6134(0x180)]??a20_0x4b3843[_0x5b6134(0x1a9)](_0x5b6134(0x19d)))),console[_0x5b6134(0x16a)](_0x5b6134(0x183)+_0x4389d1[_0x5b6134(0x16b)]),console[_0x5b6134(0x16a)](_0x5b6134(0x175)+_0x4389d1['verbose']),console[_0x5b6134(0x16a)](_0x5b6134(0x198)+AUTH_MODE[_0x5b6134(0x19a)]),console[_0x5b6134(0x16a)](_0x5b6134(0x18a)+(_0x4389d1['accessKey']?a20_0x4b3843['green'](_0x5b6134(0x1a8)+_0x4389d1[_0x5b6134(0x193)][_0x5b6134(0x18f)]+')'):a20_0x4b3843['gray'](_0x5b6134(0x1a1)))),console[_0x5b6134(0x16a)](),console[_0x5b6134(0x16a)](a20_0x4b3843[_0x5b6134(0x177)](_0x5b6134(0x192))),console[_0x5b6134(0x16a)](a20_0x4b3843[_0x5b6134(0x1a9)]('\x20\x20─'[_0x5b6134(0x18c)](0x1e))),console[_0x5b6134(0x16a)](_0x5b6134(0x197)+getApiDomain()),console['log'](_0x5b6134(0x1a0)+getUserDomain()),console[_0x5b6134(0x16a)](_0x5b6134(0x182)+getRuntimeDomain()),console['log'](),console[_0x5b6134(0x16a)](a20_0x4b3843[_0x5b6134(0x177)](_0x5b6134(0x17c))),console[_0x5b6134(0x16a)](a20_0x4b3843[_0x5b6134(0x1a9)](_0x5b6134(0x16e)[_0x5b6134(0x18c)](0x1e))),console[_0x5b6134(0x16a)](_0x5b6134(0x17b)+a20_0x4b3843['green'](AUTH_MODE[_0x5b6134(0x19a)]+_0x5b6134(0x18e))),console[_0x5b6134(0x16a)](_0x5b6134(0x16c)+a20_0x4b3843[_0x5b6134(0x1a9)](_0x5b6134(0x19f))),console['log'](),{'ok':!![]};}export const doctorDefinition={'service':a20_0x31a1ca(0x1a4),'command':'check','description':a20_0x31a1ca(0x1a2),'risk':a20_0x31a1ca(0x1a6),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
package/lib/commands/init.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a21_0xa6626e=a21_0x156b;(function(_0x3e8751,_0x29ee0a){const _0x6f6821=a21_0x156b,_0x2b3871=_0x3e8751();while(!![]){try{const _0x2fc6f5=parseInt(_0x6f6821(0x176))/0x1*(-parseInt(_0x6f6821(0x17a))/0x2)+-parseInt(_0x6f6821(0x184))/0x3+parseInt(_0x6f6821(0x163))/0x4+parseInt(_0x6f6821(0x186))/0x5*(parseInt(_0x6f6821(0x178))/0x6)+-parseInt(_0x6f6821(0x164))/0x7+-parseInt(_0x6f6821(0x195))/0x8+parseInt(_0x6f6821(0x188))/0x9;if(_0x2fc6f5===_0x29ee0a)break;else _0x2b3871['push'](_0x2b3871['shift']());}catch(_0x518fde){_0x2b3871['push'](_0x2b3871['shift']());}}}(a21_0x1d7e,0xcb621));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':'appcode','type':a21_0xa6626e(0x192),'description':'App\x20code\x20for\x20the\x20project'},{'name':a21_0xa6626e(0x191),'type':a21_0xa6626e(0x192),'description':a21_0xa6626e(0x183)+DEFAULT_CONFIG_VALUES[a21_0xa6626e(0x191)]+')','enum':[...RUNTIME_ENV_VALUES]},{'name':a21_0xa6626e(0x16f),'type':a21_0xa6626e(0x18e),'description':'Write\x20to\x20global\x20(~/.lovrabet.json)\x20instead\x20of\x20project','default':![]},{'name':a21_0xa6626e(0x197),'type':a21_0xa6626e(0x18e),'description':a21_0xa6626e(0x171),'default':![]}];export const initImportFlagDefs=[{'name':'file','type':a21_0xa6626e(0x192),'description':a21_0xa6626e(0x190),'required':!![]},{'name':'appcode','type':a21_0xa6626e(0x192),'description':'Override\x20imported\x20default\x20appcode'},{'name':'env','type':'string','description':a21_0xa6626e(0x15b),'enum':[...RUNTIME_ENV_VALUES]},{'name':'global','type':a21_0xa6626e(0x18e),'description':a21_0xa6626e(0x165),'default':![]},{'name':a21_0xa6626e(0x197),'type':a21_0xa6626e(0x18e),'description':a21_0xa6626e(0x171),'default':![]}];export async function runInit(_0xeb094f){const _0x3f3dc1=a21_0xa6626e,_0x5c6cf1=isNonInteractiveMode(_0xeb094f),_0x44526d=_0xeb094f[_0x3f3dc1(0x16f)]?_0x3f3dc1(0x16f):'project',_0xbb8f38=resolveWriteConfigPath(_0x44526d);try{_0x5c6cf1?await runNonInteractive(_0xeb094f,_0xbb8f38):await runInteractive(_0xeb094f,_0xbb8f38);}catch(_0xc50a5d){if(_0xc50a5d instanceof AbortPrompt)throw CliErrors[_0x3f3dc1(0x194)]();throw _0xc50a5d;}}function a21_0x1d7e(){const _0x3a5a50=['Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.','join','AbortPrompt','global','name','Skip\x20confirmation\x20when\x20overwriting','Source\x20file\x20not\x20found:\x20','\x20init\x20—\x20Create\x20.lovrabet.json\x0a','riskLevel','\x20already\x20exists.\x20Overwrite?','13XpiLpO','appcode','2141454EdATNM','includes','24142yDnhXE','\x20\x20env:\x20\x20\x20\x20\x20','Initialized\x20','Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','\x20\x20appcode:\x20','utf8','file','App\x20code\x20cannot\x20be\x20empty.','app','Target\x20environment\x20(default\x20','626118vQuDdP','stdout','10cRAnIe','flagMissing','19438524fHSfzB','Aborted.','apps','):\x20','once','SIGINT','boolean','parse','Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','env','string','race','cancelled','5785840NxmrOB','\x20\x20config:\x20\x20','yes','stdin','cwd','\x22.\x20Allowed:\x20','removeListener','toLowerCase','defaultApp','[y/N]','Override\x20imported\x20default\x20env','Imported\x20from\x20','close','User\x20aborted\x20prompt','\x20\x20default:\x20','apiDir','trim','object','2550748oClBHr','11125975LAmPJp','Write\x20to\x20global\x20(~/.lovrabet.json)\x20instead\x20of\x20project','Usage:\x20','log','App\x20code','Failed\x20to\x20parse\x20source\x20file:\x20','question','validation'];a21_0x1d7e=function(){return _0x3a5a50;};return a21_0x1d7e();}export async function runInitImport(_0xe24a02){const _0x77d398=a21_0xa6626e,_0x59c286=_0xe24a02['global']?_0x77d398(0x16f):'project',_0x698248=resolveWriteConfigPath(_0x59c286);await runFromImport(_0xe24a02,_0x698248);}const RUNTIME_IRRELEVANT_KEYS=new Set([a21_0xa6626e(0x160)]);async function runFromImport(_0x51871e,_0x1bd96f){const _0x47a884=a21_0xa6626e,_0x167add=resolveFilePath(_0x51871e[_0x47a884(0x180)]);if(!existsSync(_0x167add))throw CliErrors[_0x47a884(0x16b)](_0x47a884(0x172)+_0x167add);const _0x5c162d=readSourceFile(_0x167add),_0x5235e3=convertToRuntimeConfig(_0x5c162d);_0x51871e['appcode']&&(_0x5235e3[_0x47a884(0x177)]=String(_0x51871e[_0x47a884(0x177)]));_0x51871e[_0x47a884(0x191)]&&(_0x5235e3[_0x47a884(0x191)]=resolveInitEnv(_0x51871e));if(!_0x5235e3[_0x47a884(0x177)])throw CliErrors['validation']('Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','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`.');await writeInitConfig(_0x1bd96f,_0x5235e3,_0x51871e),console[_0x47a884(0x167)](_0x47a884(0x15c)+_0x167add),console[_0x47a884(0x167)](_0x47a884(0x196)+_0x1bd96f),console[_0x47a884(0x167)]('\x20\x20appcode:\x20'+_0x5235e3[_0x47a884(0x177)]);if(_0x5235e3['defaultApp'])console[_0x47a884(0x167)](_0x47a884(0x15f)+_0x5235e3[_0x47a884(0x159)]);}function a21_0x156b(_0x38effa,_0x5183da){_0x38effa=_0x38effa-0x155;const _0x1d7e04=a21_0x1d7e();let _0x156b17=_0x1d7e04[_0x38effa];return _0x156b17;}function convertToRuntimeConfig(_0x48ec4e){const _0x348bfd=a21_0xa6626e;if(_0x48ec4e[_0x348bfd(0x18a)]&&typeof _0x48ec4e[_0x348bfd(0x18a)]===_0x348bfd(0x162))throw CliErrors[_0x348bfd(0x16b)](_0x348bfd(0x17d),_0x348bfd(0x16c));const _0x5283b4={};for(const _0x12944d of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x48ec4e[_0x12944d]!==undefined&&(_0x5283b4[_0x12944d]=_0x48ec4e[_0x12944d]);}return!_0x5283b4[_0x348bfd(0x174)]&&(_0x5283b4['riskLevel']=DEFAULT_CONFIG_VALUES[_0x348bfd(0x174)]),_0x5283b4;}async function runNonInteractive(_0x28d479,_0x14939d){const _0x37ed42=a21_0xa6626e,_0x176b8a=_0x28d479['appcode'];if(!_0x176b8a)throw CliErrors[_0x37ed42(0x187)](_0x37ed42(0x177),_0x37ed42(0x166)+CLI_BIN_NAME+'\x20app\x20init\x20--appcode\x20<code>\x20[--env\x20daily]\x20[--global]');const _0x3fdf35=resolveInitEnv(_0x28d479);await writeInitConfig(_0x14939d,{'appcode':_0x176b8a,'env':_0x3fdf35},_0x28d479),console[_0x37ed42(0x167)](_0x37ed42(0x17c)+_0x14939d),console['log'](_0x37ed42(0x17e)+_0x176b8a),console[_0x37ed42(0x167)](_0x37ed42(0x17b)+_0x3fdf35);}async function runInteractive(_0x2b870d,_0x461695){const _0x4ed0fa=a21_0xa6626e,_0x4bb24b=loadExisting(_0x461695),_0x34b061=typeof _0x4bb24b?.[_0x4ed0fa(0x177)]===_0x4ed0fa(0x192)?_0x4bb24b[_0x4ed0fa(0x177)]:'',_0x38aed0=resolveInitEnv(_0x2b870d);console[_0x4ed0fa(0x167)](CLI_BIN_NAME+_0x4ed0fa(0x173));if(existsSync(_0x461695)&&!_0x2b870d['yes']){const _0x2ea256=await promptYesNo('File\x20'+_0x461695+_0x4ed0fa(0x175),![]);if(!_0x2ea256){console[_0x4ed0fa(0x167)](_0x4ed0fa(0x189));return;}}const _0x37d5c4=typeof _0x2b870d[_0x4ed0fa(0x177)]===_0x4ed0fa(0x192)?_0x2b870d[_0x4ed0fa(0x177)][_0x4ed0fa(0x161)]():'';let _0x490806=_0x37d5c4;!_0x490806&&(_0x490806=await promptInput(_0x4ed0fa(0x168),_0x34b061));if(!_0x490806[_0x4ed0fa(0x161)]())throw CliErrors[_0x4ed0fa(0x16b)](_0x4ed0fa(0x181));await writeInitConfig(_0x461695,{'appcode':_0x490806[_0x4ed0fa(0x161)](),'env':_0x38aed0},_0x2b870d),console[_0x4ed0fa(0x167)]('\x0aInitialized\x20'+_0x461695),console['log']('\x20\x20appcode:\x20'+_0x490806[_0x4ed0fa(0x161)]()),console['log']('\x20\x20env:\x20\x20\x20\x20\x20'+_0x38aed0);}async function writeInitConfig(_0x13745a,_0x3f299f,_0x401b52){const _0x26bd1a=a21_0xa6626e;let _0x25cbf5={};existsSync(_0x13745a)&&!_0x401b52[_0x26bd1a(0x197)]&&(_0x25cbf5=readConfigFile(_0x13745a));for(const [_0x565e97,_0x4423ed]of Object['entries'](_0x3f299f)){_0x4423ed!==undefined&&(_0x25cbf5[_0x565e97]=_0x4423ed);}if(_0x25cbf5[_0x26bd1a(0x182)])delete _0x25cbf5[_0x26bd1a(0x182)];writeConfigFile(_0x13745a,_0x25cbf5);}class AbortPrompt extends Error{constructor(){const _0x38a86f=a21_0xa6626e;super(_0x38a86f(0x15e)),this[_0x38a86f(0x170)]=_0x38a86f(0x16e);}}function createSafeRl(){const _0x28980b=a21_0xa6626e,_0x55837b=createInterface({'input':process[_0x28980b(0x198)],'output':process[_0x28980b(0x185)]});let _0x1d15d6;const _0x44bb00=new Promise((_0x1cbbe9,_0x5da84f)=>{const _0x4737e3=_0x28980b;_0x1d15d6=()=>{const _0x4389e4=a21_0x156b;_0x1d15d6&&(_0x55837b['removeListener'](_0x4389e4(0x18d),_0x1d15d6),_0x1d15d6=undefined);try{_0x55837b['close']();}catch{}_0x5da84f(new AbortPrompt());},_0x55837b[_0x4737e3(0x18c)](_0x4737e3(0x18d),_0x1d15d6);}),_0x8ec9d2=()=>{const _0x5b25a6=_0x28980b;_0x1d15d6&&(_0x55837b[_0x5b25a6(0x157)](_0x5b25a6(0x18d),_0x1d15d6),_0x1d15d6=undefined);try{_0x55837b[_0x5b25a6(0x15d)]();}catch{}};return{'rl':_0x55837b,'abortPromise':_0x44bb00,'disposeSuccess':_0x8ec9d2};}async function promptInput(_0x5d8745,_0x1e13e6){const _0x4a4cff=a21_0xa6626e,{rl:_0xaf5e70,abortPromise:_0x25a8b2,disposeSuccess:_0x201fe5}=createSafeRl(),_0x46f4da=new Promise(_0x17ae56=>{const _0x3f2f0b=a21_0x156b,_0x463b1e=_0x1e13e6?'\x20\x20'+_0x5d8745+'\x20('+_0x1e13e6+_0x3f2f0b(0x18b):'\x20\x20'+_0x5d8745+':\x20';_0xaf5e70[_0x3f2f0b(0x16a)](_0x463b1e,_0x4d3772=>{const _0x25e0b5=_0x3f2f0b;_0x201fe5(),_0x17ae56(_0x4d3772[_0x25e0b5(0x161)]()||_0x1e13e6);});});return Promise[_0x4a4cff(0x193)]([_0x46f4da,_0x25a8b2]);}async function promptYesNo(_0x4e38dd,_0x165ede){const _0x26a14c=a21_0xa6626e,{rl:_0x1a1c72,abortPromise:_0x39dc50,disposeSuccess:_0xb5e809}=createSafeRl(),_0x1dcda8=new Promise(_0x5db05d=>{const _0x539572=a21_0x156b,_0x339beb=_0x165ede?'[Y/n]':_0x539572(0x15a);_0x1a1c72[_0x539572(0x16a)]('\x20\x20'+_0x4e38dd+'\x20'+_0x339beb+':\x20',_0x5c9a74=>{const _0x4b543a=_0x539572;_0xb5e809();const _0x14a18a=_0x5c9a74[_0x4b543a(0x161)]()[_0x4b543a(0x158)]();if(_0x14a18a==='y'||_0x14a18a===_0x4b543a(0x197))_0x5db05d(!![]);else{if(_0x14a18a==='n'||_0x14a18a==='no')_0x5db05d(![]);else _0x5db05d(_0x165ede);}});});return Promise[_0x26a14c(0x193)]([_0x1dcda8,_0x39dc50]);}function loadExisting(_0x27a994){if(!existsSync(_0x27a994))return null;return readConfigFile(_0x27a994);}function resolveFilePath(_0x3c1c93){const _0x252951=a21_0xa6626e;return isAbsolute(_0x3c1c93)?_0x3c1c93:resolve(process[_0x252951(0x155)](),_0x3c1c93);}function readSourceFile(_0x401112){const _0x5146c5=a21_0xa6626e;try{const _0xcb5370=readFileSync(_0x401112,{'encoding':_0x5146c5(0x17f)});return JSON[_0x5146c5(0x18f)](_0xcb5370);}catch(_0x3e8916){throw CliErrors[_0x5146c5(0x16b)](_0x5146c5(0x169)+_0x3e8916['message']);}}function resolveInitEnv(_0x2dbc84){const _0x9566e2=a21_0xa6626e,_0x58d06a=_0x2dbc84[_0x9566e2(0x191)];if(_0x58d06a===undefined||_0x58d06a==='')return DEFAULT_CONFIG_VALUES['env'];if(!RUNTIME_ENV_VALUES[_0x9566e2(0x179)](_0x58d06a))throw CliErrors[_0x9566e2(0x16b)]('Invalid\x20env\x20\x22'+_0x58d06a+_0x9566e2(0x156)+RUNTIME_ENV_VALUES[_0x9566e2(0x16d)](',\x20'));return _0x58d06a;}
|
|
1
|
+
const a21_0x38248e=a21_0x2128;(function(_0x3d6ee1,_0x1e3074){const _0x1929fc=a21_0x2128,_0x459cb6=_0x3d6ee1();while(!![]){try{const _0x335ddc=-parseInt(_0x1929fc(0xf4))/0x1+parseInt(_0x1929fc(0xdd))/0x2*(-parseInt(_0x1929fc(0xd0))/0x3)+parseInt(_0x1929fc(0x10a))/0x4+-parseInt(_0x1929fc(0xd3))/0x5*(parseInt(_0x1929fc(0xf9))/0x6)+-parseInt(_0x1929fc(0x102))/0x7*(parseInt(_0x1929fc(0xe7))/0x8)+-parseInt(_0x1929fc(0xe0))/0x9+parseInt(_0x1929fc(0xf0))/0xa;if(_0x335ddc===_0x1e3074)break;else _0x459cb6['push'](_0x459cb6['shift']());}catch(_0x1de07d){_0x459cb6['push'](_0x459cb6['shift']());}}}(a21_0x415b,0xeff82));import{existsSync,readFileSync}from'node:fs';function a21_0x415b(){const _0x22e1da=['65468510KqEARx','Target\x20environment\x20(default\x20','\x20init\x20—\x20Create\x20.lovrabet.json\x0a','global','643043iUzpPM','includes','env','App\x20code','yes','148926rNRWqB','boolean','appcode','string','User\x20aborted\x20prompt','Initialized\x20','entries','message','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`.','7623xwuXAB','validation','Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','[y/N]','close','SIGINT','project','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','25176yZOgsb','log','object','question','Imported\x20from\x20','Write\x20to\x20global\x20(~/.lovrabet.json)\x20instead\x20of\x20project','stdin','Aborted.','):\x20','43653KWykoe','\x20app\x20init\x20--appcode\x20<code>\x20[--env\x20daily]\x20[--global]','parse','130Kgehaj','\x20\x20appcode:\x20','name','\x20already\x20exists.\x20Overwrite?','Source\x20file\x20not\x20found:\x20','\x20\x20env:\x20\x20\x20\x20\x20','Override\x20imported\x20default\x20env','app','cwd','once','106olhhWH','trim','flagMissing','16962858ggiqAB','\x20\x20default:\x20','race','apps','AbortPrompt','apiDir','defaultApp','11944rawbgF','cancelled','\x20\x20config:\x20\x20','Skip\x20confirmation\x20when\x20overwriting','App\x20code\x20for\x20the\x20project','[Y/n]','stdout','\x0aInitialized\x20','file'];a21_0x415b=function(){return _0x22e1da;};return a21_0x415b();}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_0x38248e(0xfb),'type':a21_0x38248e(0xfc),'description':a21_0x38248e(0xeb)},{'name':'env','type':a21_0x38248e(0xfc),'description':a21_0x38248e(0xf1)+DEFAULT_CONFIG_VALUES[a21_0x38248e(0xf6)]+')','enum':[...RUNTIME_ENV_VALUES]},{'name':'global','type':'boolean','description':a21_0x38248e(0x10f),'default':![]},{'name':a21_0x38248e(0xf8),'type':a21_0x38248e(0xfa),'description':a21_0x38248e(0xea),'default':![]}];export const initImportFlagDefs=[{'name':a21_0x38248e(0xef),'type':a21_0x38248e(0xfc),'description':'Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','required':!![]},{'name':a21_0x38248e(0xfb),'type':a21_0x38248e(0xfc),'description':'Override\x20imported\x20default\x20appcode'},{'name':'env','type':a21_0x38248e(0xfc),'description':a21_0x38248e(0xd9),'enum':[...RUNTIME_ENV_VALUES]},{'name':a21_0x38248e(0xf3),'type':a21_0x38248e(0xfa),'description':a21_0x38248e(0x10f),'default':![]},{'name':a21_0x38248e(0xf8),'type':a21_0x38248e(0xfa),'description':'Skip\x20confirmation\x20when\x20overwriting','default':![]}];export async function runInit(_0x5c815d){const _0x364b32=a21_0x38248e,_0x5d426c=isNonInteractiveMode(_0x5c815d),_0x2ca6d9=_0x5c815d['global']?_0x364b32(0xf3):_0x364b32(0x108),_0x9e5707=resolveWriteConfigPath(_0x2ca6d9);try{_0x5d426c?await runNonInteractive(_0x5c815d,_0x9e5707):await runInteractive(_0x5c815d,_0x9e5707);}catch(_0x131351){if(_0x131351 instanceof AbortPrompt)throw CliErrors[_0x364b32(0xe8)]();throw _0x131351;}}export async function runInitImport(_0x5b4af4){const _0xd96db9=a21_0x38248e,_0x3b9b3c=_0x5b4af4[_0xd96db9(0xf3)]?_0xd96db9(0xf3):_0xd96db9(0x108),_0x5ec84c=resolveWriteConfigPath(_0x3b9b3c);await runFromImport(_0x5b4af4,_0x5ec84c);}const RUNTIME_IRRELEVANT_KEYS=new Set([a21_0x38248e(0xe5)]);async function runFromImport(_0x58063a,_0x13d652){const _0x4435e3=a21_0x38248e,_0x4e425d=resolveFilePath(_0x58063a[_0x4435e3(0xef)]);if(!existsSync(_0x4e425d))throw CliErrors[_0x4435e3(0x103)](_0x4435e3(0xd7)+_0x4e425d);const _0xb979b7=readSourceFile(_0x4e425d),_0x438461=convertToRuntimeConfig(_0xb979b7);_0x58063a[_0x4435e3(0xfb)]&&(_0x438461[_0x4435e3(0xfb)]=String(_0x58063a[_0x4435e3(0xfb)]));_0x58063a['env']&&(_0x438461[_0x4435e3(0xf6)]=resolveInitEnv(_0x58063a));if(!_0x438461[_0x4435e3(0xfb)])throw CliErrors['validation'](_0x4435e3(0x109),_0x4435e3(0x101));await writeInitConfig(_0x13d652,_0x438461,_0x58063a),console[_0x4435e3(0x10b)](_0x4435e3(0x10e)+_0x4e425d),console[_0x4435e3(0x10b)](_0x4435e3(0xe9)+_0x13d652),console['log'](_0x4435e3(0xd4)+_0x438461[_0x4435e3(0xfb)]);if(_0x438461[_0x4435e3(0xe6)])console[_0x4435e3(0x10b)](_0x4435e3(0xe1)+_0x438461[_0x4435e3(0xe6)]);}function convertToRuntimeConfig(_0xe4094d){const _0x332e06=a21_0x38248e;if(_0xe4094d['apps']&&typeof _0xe4094d[_0x332e06(0xe3)]===_0x332e06(0x10c))throw CliErrors[_0x332e06(0x103)](_0x332e06(0x104),'Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.');const _0x1f5a5a={};for(const _0xace184 of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0xe4094d[_0xace184]!==undefined&&(_0x1f5a5a[_0xace184]=_0xe4094d[_0xace184]);}return!_0x1f5a5a['riskLevel']&&(_0x1f5a5a['riskLevel']=DEFAULT_CONFIG_VALUES['riskLevel']),_0x1f5a5a;}async function runNonInteractive(_0x501935,_0x47c681){const _0x28efa8=a21_0x38248e,_0x306e4d=_0x501935['appcode'];if(!_0x306e4d)throw CliErrors[_0x28efa8(0xdf)](_0x28efa8(0xfb),'Usage:\x20'+CLI_BIN_NAME+_0x28efa8(0xd1));const _0x3190c8=resolveInitEnv(_0x501935);await writeInitConfig(_0x47c681,{'appcode':_0x306e4d,'env':_0x3190c8},_0x501935),console[_0x28efa8(0x10b)](_0x28efa8(0xfe)+_0x47c681),console['log'](_0x28efa8(0xd4)+_0x306e4d),console[_0x28efa8(0x10b)](_0x28efa8(0xd8)+_0x3190c8);}async function runInteractive(_0x6a2639,_0x3aed01){const _0x30e1e9=a21_0x38248e,_0x5ccd18=loadExisting(_0x3aed01),_0x82704b=typeof _0x5ccd18?.[_0x30e1e9(0xfb)]===_0x30e1e9(0xfc)?_0x5ccd18[_0x30e1e9(0xfb)]:'',_0x39e0c7=resolveInitEnv(_0x6a2639);console[_0x30e1e9(0x10b)](CLI_BIN_NAME+_0x30e1e9(0xf2));if(existsSync(_0x3aed01)&&!_0x6a2639[_0x30e1e9(0xf8)]){const _0x1db305=await promptYesNo('File\x20'+_0x3aed01+_0x30e1e9(0xd6),![]);if(!_0x1db305){console[_0x30e1e9(0x10b)](_0x30e1e9(0xce));return;}}const _0x36b50d=typeof _0x6a2639[_0x30e1e9(0xfb)]==='string'?_0x6a2639[_0x30e1e9(0xfb)][_0x30e1e9(0xde)]():'';let _0x5b0b55=_0x36b50d;!_0x5b0b55&&(_0x5b0b55=await promptInput(_0x30e1e9(0xf7),_0x82704b));if(!_0x5b0b55['trim']())throw CliErrors[_0x30e1e9(0x103)]('App\x20code\x20cannot\x20be\x20empty.');await writeInitConfig(_0x3aed01,{'appcode':_0x5b0b55[_0x30e1e9(0xde)](),'env':_0x39e0c7},_0x6a2639),console['log'](_0x30e1e9(0xee)+_0x3aed01),console[_0x30e1e9(0x10b)](_0x30e1e9(0xd4)+_0x5b0b55[_0x30e1e9(0xde)]()),console[_0x30e1e9(0x10b)]('\x20\x20env:\x20\x20\x20\x20\x20'+_0x39e0c7);}async function writeInitConfig(_0x3419c4,_0x190097,_0x2eeff2){const _0x15d587=a21_0x38248e;let _0x129271={};existsSync(_0x3419c4)&&!_0x2eeff2[_0x15d587(0xf8)]&&(_0x129271=readConfigFile(_0x3419c4));for(const [_0x5b7582,_0x45eaca]of Object[_0x15d587(0xff)](_0x190097)){_0x45eaca!==undefined&&(_0x129271[_0x5b7582]=_0x45eaca);}if(_0x129271[_0x15d587(0xda)])delete _0x129271[_0x15d587(0xda)];writeConfigFile(_0x3419c4,_0x129271);}class AbortPrompt extends Error{constructor(){const _0x334dc0=a21_0x38248e;super(_0x334dc0(0xfd)),this[_0x334dc0(0xd5)]=_0x334dc0(0xe4);}}function createSafeRl(){const _0x4c4c95=a21_0x38248e,_0x44c0db=createInterface({'input':process[_0x4c4c95(0x110)],'output':process[_0x4c4c95(0xed)]});let _0x1f3548;const _0x56267a=new Promise((_0x4e05d7,_0x3949b0)=>{const _0x18913c=_0x4c4c95;_0x1f3548=()=>{const _0x1e5945=a21_0x2128;_0x1f3548&&(_0x44c0db['removeListener'](_0x1e5945(0x107),_0x1f3548),_0x1f3548=undefined);try{_0x44c0db[_0x1e5945(0x106)]();}catch{}_0x3949b0(new AbortPrompt());},_0x44c0db[_0x18913c(0xdc)](_0x18913c(0x107),_0x1f3548);}),_0x2368d8=()=>{const _0x475619=_0x4c4c95;_0x1f3548&&(_0x44c0db['removeListener']('SIGINT',_0x1f3548),_0x1f3548=undefined);try{_0x44c0db[_0x475619(0x106)]();}catch{}};return{'rl':_0x44c0db,'abortPromise':_0x56267a,'disposeSuccess':_0x2368d8};}async function promptInput(_0x2103a7,_0x274c4a){const _0xea9866=a21_0x38248e,{rl:_0x5be854,abortPromise:_0x5b959e,disposeSuccess:_0x48e460}=createSafeRl(),_0x1d92df=new Promise(_0x4b06ca=>{const _0x5dfe19=a21_0x2128,_0x336eda=_0x274c4a?'\x20\x20'+_0x2103a7+'\x20('+_0x274c4a+_0x5dfe19(0xcf):'\x20\x20'+_0x2103a7+':\x20';_0x5be854[_0x5dfe19(0x10d)](_0x336eda,_0x16b690=>{const _0x5e8c46=_0x5dfe19;_0x48e460(),_0x4b06ca(_0x16b690[_0x5e8c46(0xde)]()||_0x274c4a);});});return Promise[_0xea9866(0xe2)]([_0x1d92df,_0x5b959e]);}async function promptYesNo(_0x15b10f,_0x893beb){const _0xbe04f5=a21_0x38248e,{rl:_0x13fc4d,abortPromise:_0x572f57,disposeSuccess:_0x40a41f}=createSafeRl(),_0x412184=new Promise(_0xfdac3f=>{const _0x55b700=a21_0x2128,_0x39117a=_0x893beb?_0x55b700(0xec):_0x55b700(0x105);_0x13fc4d[_0x55b700(0x10d)]('\x20\x20'+_0x15b10f+'\x20'+_0x39117a+':\x20',_0x23bf62=>{const _0x15e7f5=_0x55b700;_0x40a41f();const _0x222ffa=_0x23bf62['trim']()['toLowerCase']();if(_0x222ffa==='y'||_0x222ffa===_0x15e7f5(0xf8))_0xfdac3f(!![]);else{if(_0x222ffa==='n'||_0x222ffa==='no')_0xfdac3f(![]);else _0xfdac3f(_0x893beb);}});});return Promise[_0xbe04f5(0xe2)]([_0x412184,_0x572f57]);}function loadExisting(_0x2be7c4){if(!existsSync(_0x2be7c4))return null;return readConfigFile(_0x2be7c4);}function a21_0x2128(_0x5dab51,_0x235930){_0x5dab51=_0x5dab51-0xce;const _0x415bd2=a21_0x415b();let _0x2128b4=_0x415bd2[_0x5dab51];return _0x2128b4;}function resolveFilePath(_0x505712){const _0x398c55=a21_0x38248e;return isAbsolute(_0x505712)?_0x505712:resolve(process[_0x398c55(0xdb)](),_0x505712);}function readSourceFile(_0xb7acba){const _0x2abb3d=a21_0x38248e;try{const _0xfac1b6=readFileSync(_0xb7acba,{'encoding':'utf8'});return JSON[_0x2abb3d(0xd2)](_0xfac1b6);}catch(_0x15988a){throw CliErrors[_0x2abb3d(0x103)]('Failed\x20to\x20parse\x20source\x20file:\x20'+_0x15988a[_0x2abb3d(0x100)]);}}function resolveInitEnv(_0x30e6a5){const _0x2ad780=a21_0x38248e,_0x27c51f=_0x30e6a5[_0x2ad780(0xf6)];if(_0x27c51f===undefined||_0x27c51f==='')return DEFAULT_CONFIG_VALUES[_0x2ad780(0xf6)];if(!RUNTIME_ENV_VALUES[_0x2ad780(0xf5)](_0x27c51f))throw CliErrors[_0x2ad780(0x103)]('Invalid\x20env\x20\x22'+_0x27c51f+'\x22.\x20Allowed:\x20'+RUNTIME_ENV_VALUES['join'](',\x20'));return _0x27c51f;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a22_0x9d9a3c=a22_0x2118;(function(_0x1f83e1,_0x2a83a0){const _0x39d77b=a22_0x2118,_0x50d94b=_0x1f83e1();while(!![]){try{const _0x4c894d=-parseInt(_0x39d77b(0x10c))/0x1*(-parseInt(_0x39d77b(0x113))/0x2)+parseInt(_0x39d77b(0x125))/0x3+-parseInt(_0x39d77b(0x11a))/0x4*(-parseInt(_0x39d77b(0x10b))/0x5)+parseInt(_0x39d77b(0x126))/0x6*(-parseInt(_0x39d77b(0x10d))/0x7)+-parseInt(_0x39d77b(0x129))/0x8+parseInt(_0x39d77b(0x110))/0x9+parseInt(_0x39d77b(0x117))/0xa*(-parseInt(_0x39d77b(0x11d))/0xb);if(_0x4c894d===_0x2a83a0)break;else _0x50d94b['push'](_0x50d94b['shift']());}catch(_0x37896b){_0x50d94b['push'](_0x50d94b['shift']());}}}(a22_0x3ba8,0x6e126));function a22_0x2118(_0x4784a4,_0x1e422c){_0x4784a4=_0x4784a4-0x108;const _0x3ba889=a22_0x3ba8();let _0x211878=_0x3ba889[_0x4784a4];return _0x211878;}import{logger}from'../../utils/logger.js';function printLogs(_0x2290c9){const _0xb07d3=a22_0x2118;if(_0x2290c9[_0xb07d3(0x115)]===0x0){console['log'](_0xb07d3(0x112));return;}console[_0xb07d3(0x114)]('*\x20Lovrabet\x20Runtime\x20CLI\x20logs:\x0a'),_0x2290c9[_0xb07d3(0x111)]((_0x2b194b,_0x360572)=>{const _0x5236f3=_0xb07d3,_0x4c2467=new Date(_0x2b194b[_0x5236f3(0x12a)])[_0x5236f3(0x122)](_0x5236f3(0x123)),_0x48ebf7=_0x2b194b[_0x5236f3(0x11e)]==='success'?'√':_0x2b194b[_0x5236f3(0x11e)]===_0x5236f3(0x11c)?'×':_0x2b194b[_0x5236f3(0x11e)]===_0x5236f3(0x10f)?'!':'i';console['log'](_0x360572+0x1+'.\x20'+_0x48ebf7+'\x20['+_0x2b194b[_0x5236f3(0x11b)]+']\x20'+_0x2b194b['message']),console[_0x5236f3(0x114)](_0x5236f3(0x119)+_0x4c2467),_0x2b194b[_0x5236f3(0x108)]&&console[_0x5236f3(0x114)](_0x5236f3(0x120)+_0x2b194b[_0x5236f3(0x108)]+'ms'),_0x2b194b[_0x5236f3(0x116)]&&Object[_0x5236f3(0x118)](_0x2b194b['details'])[_0x5236f3(0x115)]>0x0&&console[_0x5236f3(0x114)](_0x5236f3(0x109)+JSON[_0x5236f3(0x124)](_0x2b194b['details'],null,0x2)),console['log']('');});}function a22_0x3ba8(){const _0x5f52c2=['length','details','14090FLTnSP','keys','\x20\x20\x20Time:\x20','16RoCtoE','command','error','14597Jhrlgl','level','*\x20Logs\x20cleared','\x20\x20\x20Duration:\x20','Clear\x20command\x20history\x20logs','toLocaleString','en-US','stringify','1231566lowQHA','32250CjZFBR','View\x20command\x20history\x20logs','logs','1559256VbrXUQ','timestamp','read','clear','duration','\x20\x20\x20Details:\x20','clearLogs','1080220tdwuQa','1FDuwPY','147mbcBmO','readLogs','warn','6831108KQOPto','forEach','*\x20No\x20logs\x20found','1189338hrHaFZ','log'];a22_0x3ba8=function(){return _0x5f52c2;};return a22_0x3ba8();}export const logsDefinitions=[{'service':'logs','command':'show','description':a22_0x9d9a3c(0x127),'risk':a22_0x9d9a3c(0x12b),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x1fe296){const _0x191ffc=a22_0x9d9a3c;return printLogs(logger[_0x191ffc(0x10e)]()),{'ok':!![]};}},{'service':a22_0x9d9a3c(0x128),'command':a22_0x9d9a3c(0x12c),'description':a22_0x9d9a3c(0x121),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x32a1a9){const _0x3952f8=a22_0x9d9a3c;return logger[_0x3952f8(0x10a)](),console['log'](_0x3952f8(0x11f)),{'ok':!![]};}}];
|
package/lib/commands/registry.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a23_0x5c393a=a23_0x3156;function a23_0x3156(_0x55f5fe,_0x493e5a){_0x55f5fe=_0x55f5fe-0xbe;const _0x143aa6=a23_0x143a();let _0x315688=_0x143aa6[_0x55f5fe];return _0x315688;}(function(_0x4b095b,_0x1bf78c){const _0x5a5963=a23_0x3156,_0xf71450=_0x4b095b();while(!![]){try{const _0x330f60=-parseInt(_0x5a5963(0xc4))/0x1*(parseInt(_0x5a5963(0xc9))/0x2)+parseInt(_0x5a5963(0xd4))/0x3+-parseInt(_0x5a5963(0xc1))/0x4+-parseInt(_0x5a5963(0xc6))/0x5+-parseInt(_0x5a5963(0xcf))/0x6*(-parseInt(_0x5a5963(0xd0))/0x7)+parseInt(_0x5a5963(0xc0))/0x8*(parseInt(_0x5a5963(0xd7))/0x9)+-parseInt(_0x5a5963(0xc3))/0xa;if(_0x330f60===_0x1bf78c)break;else _0xf71450['push'](_0xf71450['shift']());}catch(_0x32ff44){_0xf71450['push'](_0xf71450['shift']());}}}(a23_0x143a,0x1d2f9));import{authDefinitions}from'../commands/auth/index.js';import{logsDefinitions}from'../commands/logs/index.js';import{skillDefinitions}from'../commands/skill/index.js';import{doctorDefinition}from'../commands/doctor.js';function a23_0x143a(){const _0x2b2112=['1040810sUAEvP','Diagnostics','Instant\x20API','208492HynJjn','get','show','Schema','list','install','6mQCxPm','1543430lfeMdD','Datasets','BFF\x20Scripts','defaultCommand','623262GmVzZM','App\x20Management','push','99noHdDM','\x20\x20[high-risk-write]','isSingleCommand','Authentication','service','from','write','172320VmqdzF','805952aSiAVW','has','317430XvKkLD','1MqchkC','command'];a23_0x143a=function(){return _0x2b2112;};return a23_0x143a();}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(_0x34a72a){const _0x36f53f=a23_0x3156;for(const _0x5e62a9 of _0x34a72a){definitions['set'](_0x5e62a9['service']+':'+_0x5e62a9[_0x36f53f(0xc5)],_0x5e62a9);let _0x26deeb=serviceGroups[_0x36f53f(0xca)](_0x5e62a9[_0x36f53f(0xdb)]);!_0x26deeb&&(_0x26deeb=[],serviceGroups['set'](_0x5e62a9[_0x36f53f(0xdb)],_0x26deeb)),_0x26deeb[_0x36f53f(0xd6)](_0x5e62a9);}}function registerService(_0x18c831,_0x4d0eae,_0x31e016){const _0x573be1=a23_0x3156;registerDefinitions(_0x4d0eae);const _0x502892=_0x48daed=>_0x48daed==='read'?'':_0x48daed===_0x573be1(0xbf)?'\x20\x20[write]':_0x573be1(0xd8),_0x2c104a={'service':_0x4d0eae[0x0][_0x573be1(0xdb)],'label':_0x18c831,'commands':_0x4d0eae['map'](_0x30e47b=>({'command':_0x30e47b[_0x573be1(0xc5)],'description':_0x30e47b['description'],'tag':_0x502892(_0x30e47b['risk'])})),'defaultCommand':_0x31e016?.[_0x573be1(0xd3)]??(_0x31e016?.[_0x573be1(0xd9)]?_0x4d0eae[0x0]['command']:undefined),'isSingleCommand':_0x31e016?.[_0x573be1(0xd9)]};serviceRegistry[_0x573be1(0xd6)](_0x2c104a),serviceByName['set'](_0x2c104a[_0x573be1(0xdb)],_0x2c104a);}registerService(a23_0x5c393a(0xda),authDefinitions,{'defaultCommand':'login'}),registerService(a23_0x5c393a(0xd1),datasetDefinitions),registerService(a23_0x5c393a(0xc8),dataDefinitions),registerService('SQL\x20Queries',sqlDefinitions),registerService(a23_0x5c393a(0xd2),bffDefinitions),registerService(a23_0x5c393a(0xd5),appDefinitions,{'defaultCommand':a23_0x5c393a(0xcd)}),registerService('Configuration',configDefinitions,{'defaultCommand':a23_0x5c393a(0xcd)}),registerService('Skills',skillDefinitions,{'defaultCommand':a23_0x5c393a(0xce)}),registerService(a23_0x5c393a(0xc7),[doctorDefinition],{'isSingleCommand':!![]}),registerService(a23_0x5c393a(0xcc),[schemaDefinition],{'isSingleCommand':!![]}),registerService('Logs',logsDefinitions,{'defaultCommand':a23_0x5c393a(0xcb)});export function findDefinition(_0x5b5e78,_0x32ae55){const _0x3faafe=a23_0x5c393a;return definitions[_0x3faafe(0xca)](_0x5b5e78+':'+_0x32ae55);}export function isKnownService(_0x1768fa){const _0x477eab=a23_0x5c393a;return serviceByName[_0x477eab(0xc2)](_0x1768fa);}export function getServiceEntry(_0x9cccaa){const _0x26f961=a23_0x5c393a;return serviceByName[_0x26f961(0xca)](_0x9cccaa);}export function getAllDefinitions(){const _0x22c434=a23_0x5c393a;return Array[_0x22c434(0xbe)](definitions['values']());}
|
package/lib/commands/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a24_0x520cbc=a24_0x32c2;(function(_0x5604f3,_0x4bccc8){const _0x484808=a24_0x32c2,_0x284e32=_0x5604f3();while(!![]){try{const _0x5570e3=parseInt(_0x484808(0x1c2))/0x1+parseInt(_0x484808(0x1c0))/0x2+-parseInt(_0x484808(0x1c1))/0x3+parseInt(_0x484808(0x1bb))/0x4+parseInt(_0x484808(0x1be))/0x5*(-parseInt(_0x484808(0x1b7))/0x6)+-parseInt(_0x484808(0x1bd))/0x7*(parseInt(_0x484808(0x1b9))/0x8)+-parseInt(_0x484808(0x1bc))/0x9*(-parseInt(_0x484808(0x1c3))/0xa);if(_0x5570e3===_0x4bccc8)break;else _0x284e32['push'](_0x284e32['shift']());}catch(_0x4a3c4c){_0x284e32['push'](_0x284e32['shift']());}}}(a24_0x5c8e,0x355d2));function a24_0x5c8e(){const _0x45921b=['151165LCktRF','8343350QWJkSy','227946dccWLp','Export\x20machine-readable\x20command\x20schema\x20(JSON)','2993312hhLaCO','schema','200536axuyNg','9OiySmi','7Dykdci','45OGgMVp','read','79972jhkWRB','422877BTADtp'];a24_0x5c8e=function(){return _0x45921b;};return a24_0x5c8e();}import{buildSchemaPayload}from'../framework/schema-export.js';function a24_0x32c2(_0x4aff31,_0x2d095d){_0x4aff31=_0x4aff31-0x1b7;const _0x5c8ef8=a24_0x5c8e();let _0x32c2e2=_0x5c8ef8[_0x4aff31];return _0x32c2e2;}async function execute(_0x2d3a66){const _0x3e4c9d=await buildSchemaPayload();return{'ok':!![],'data':_0x3e4c9d};}export const schemaDefinition={'service':a24_0x520cbc(0x1ba),'command':'export','description':a24_0x520cbc(0x1b8),'risk':a24_0x520cbc(0x1bf),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a25_0x48c1(_0x217069,_0x2a2ef4){_0x217069=_0x217069-0x104;const _0x3f2ee5=a25_0x3f2e();let _0x48c1fe=_0x3f2ee5[_0x217069];return _0x48c1fe;}const a25_0x5ad246=a25_0x48c1;(function(_0x196061,_0x3648c1){const _0x3c932b=a25_0x48c1,_0x507c8c=_0x196061();while(!![]){try{const _0x1f07e2=parseInt(_0x3c932b(0x112))/0x1*(-parseInt(_0x3c932b(0x106))/0x2)+parseInt(_0x3c932b(0x111))/0x3+-parseInt(_0x3c932b(0x116))/0x4*(parseInt(_0x3c932b(0x11b))/0x5)+parseInt(_0x3c932b(0x10c))/0x6*(-parseInt(_0x3c932b(0x120))/0x7)+parseInt(_0x3c932b(0x119))/0x8*(parseInt(_0x3c932b(0x105))/0x9)+parseInt(_0x3c932b(0x121))/0xa*(-parseInt(_0x3c932b(0x10e))/0xb)+-parseInt(_0x3c932b(0x11a))/0xc*(-parseInt(_0x3c932b(0x10b))/0xd);if(_0x1f07e2===_0x3648c1)break;else _0x507c8c['push'](_0x507c8c['shift']());}catch(_0x10ab07){_0x507c8c['push'](_0x507c8c['shift']());}}}(a25_0x3f2e,0x5c9d8));import{CLI_BIN_NAME}from'../../constant/cli.js';import{CliErrors}from'../../errors.js';import{logger}from'../../utils/logger.js';function a25_0x3f2e(){const _0x2fd6a1=['110ktuyzv','Installing\x20official\x20skill\x20via\x20npx\x20(npx\x20skills\x20add\x20','Skipped\x20npx\x20(LOVRABET_SKIP_NPX_SKILLS=1);\x20assuming\x20skill\x20is\x20already\x20present.','unknown','Installing\x20published\x20Lovrabet\x20skill\x20via\x20npx.','7414069npetPN','601242QtoDOB','error','1309zlKAXF','\x20skill\x20installed','\x20-g\x20-y)...','1369641aiUYSP','6542Hsnalf','nonInteractive','setLogPath','skipped','716MQgcfa','Check\x20network\x20connectivity\x20and\x20try\x20again.','../../skills/npx-skills-add.js','127080XAtAfq','24amgxTj','7255RPgmzB','install','pipe','log','skill-install','35TnmsmU','29530hzgfPq','cwd','144NLPQxq'];a25_0x3f2e=function(){return _0x2fd6a1;};return a25_0x3f2e();}export const skillDefinitions=[{'service':'skill','command':a25_0x5ad246(0x11c),'description':'Install\x20the\x20published\x20Lovrabet\x20developer\x20skill','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x2bc727){const _0x50367a=a25_0x5ad246;logger[_0x50367a(0x114)](process['cwd']()),logger['info'](_0x50367a(0x11f),_0x50367a(0x10a));const {LOVRABET_SKILL_SOURCE:_0xeb957d,runNpxSkillsAddGlobal:_0x1e9b3d}=await import(_0x50367a(0x118)),_0x4111fc=_0x2bc727[_0x50367a(0x113)]?_0x50367a(0x11d):'inherit';console[_0x50367a(0x11e)](_0x50367a(0x107)+_0xeb957d+_0x50367a(0x110));const _0x3dd714=_0x1e9b3d(process[_0x50367a(0x104)](),_0xeb957d,{'stdio':_0x4111fc});if(_0x3dd714[_0x50367a(0x115)])console[_0x50367a(0x11e)](_0x50367a(0x108));else{if(_0x3dd714['ok'])console['log'](CLI_BIN_NAME+_0x50367a(0x10f));else throw CliErrors['apiError']('npx\x20skills\x20add\x20failed:\x20'+(_0x3dd714[_0x50367a(0x10d)]||_0x50367a(0x109)),_0x50367a(0x117));}return{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a26_0x597c(){const _0x4bb788=['verbose','31610XBRKzc','read','sqlcode','7246TQtHqc','20CmMiWM','15144isxoMA','234354TvfkOx','bool','description','Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','str','detail','701420EXlfOq','sqlName','4627LAaCXK','appCode','sqlCode','6189640HOXivT','18SCmpQR','5401cfcQPO','3780567DEZxWT','dbId'];a26_0x597c=function(){return _0x4bb788;};return a26_0x597c();}function a26_0x4ee3(_0x2325e7,_0x2d64b6){_0x2325e7=_0x2325e7-0xdd;const _0x597cce=a26_0x597c();let _0x4ee319=_0x597cce[_0x2325e7];return _0x4ee319;}const a26_0x2bbed9=a26_0x4ee3;(function(_0x2a496a,_0x591247){const _0xcb9a45=a26_0x4ee3,_0x288238=_0x2a496a();while(!![]){try{const _0x441f9c=-parseInt(_0xcb9a45(0xe2))/0x1+parseInt(_0xcb9a45(0xf0))/0x2*(parseInt(_0xcb9a45(0xe8))/0x3)+parseInt(_0xcb9a45(0xe7))/0x4+-parseInt(_0xcb9a45(0xf1))/0x5*(-parseInt(_0xcb9a45(0xf3))/0x6)+parseInt(_0xcb9a45(0xe4))/0x7*(-parseInt(_0xcb9a45(0xf2))/0x8)+-parseInt(_0xcb9a45(0xea))/0x9+-parseInt(_0xcb9a45(0xed))/0xa*(-parseInt(_0xcb9a45(0xe9))/0xb);if(_0x441f9c===_0x591247)break;else _0x288238['push'](_0x288238['shift']());}catch(_0x5911a6){_0x288238['push'](_0x288238['shift']());}}}(a26_0x597c,0xdcde7));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':'sql','command':a26_0x2bbed9(0xe1),'description':a26_0x2bbed9(0xdf),'risk':a26_0x2bbed9(0xee),'flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x659bd5){const _0x5627a1=a26_0x2bbed9,_0x567d0d=await getSqlQueryInfo(_0x659bd5[_0x5627a1(0xe5)],_0x659bd5[_0x5627a1(0xe0)](_0x5627a1(0xef))),_0x5d9dd3=_0x659bd5[_0x5627a1(0xdd)](_0x5627a1(0xec));if(_0x5d9dd3)return{'ok':!![],'data':_0x567d0d};const _0x12e6f0=_0x567d0d[_0x5627a1(0xeb)]?await getDbName(_0x659bd5[_0x5627a1(0xe5)],_0x567d0d[_0x5627a1(0xeb)]):undefined;return{'ok':!![],'data':{'sqlCode':_0x567d0d[_0x5627a1(0xe6)],'sqlName':_0x567d0d[_0x5627a1(0xe3)],'db':_0x12e6f0?_0x12e6f0+'\x20('+_0x567d0d[_0x5627a1(0xeb)]+')':_0x567d0d['dbId']??'','description':_0x567d0d[_0x5627a1(0xde)]??'','sqlContent':_0x567d0d['sqlContent']??''}};}};
|
package/lib/commands/sql/exec.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a27_0x561305=a27_0x4227;(function(_0x4e724b,_0x19122f){const _0xe584aa=a27_0x4227,_0x514c41=_0x4e724b();while(!![]){try{const _0x207afe=-parseInt(_0xe584aa(0xa1))/0x1*(parseInt(_0xe584aa(0xa3))/0x2)+parseInt(_0xe584aa(0x99))/0x3+-parseInt(_0xe584aa(0xa0))/0x4*(-parseInt(_0xe584aa(0xa8))/0x5)+parseInt(_0xe584aa(0x9a))/0x6+parseInt(_0xe584aa(0x9e))/0x7*(-parseInt(_0xe584aa(0xa2))/0x8)+-parseInt(_0xe584aa(0xa7))/0x9+-parseInt(_0xe584aa(0x98))/0xa*(parseInt(_0xe584aa(0xa5))/0xb);if(_0x207afe===_0x19122f)break;else _0x514c41['push'](_0x514c41['shift']());}catch(_0x3614b3){_0x514c41['push'](_0x514c41['shift']());}}}(a27_0x237e,0x986ae));import{executeSdkSql}from'../../core/sdk-client.js';import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a27_0x4227(_0x35f570,_0xb7de80){_0x35f570=_0x35f570-0x98;const _0x237e87=a27_0x237e();let _0x422765=_0x237e87[_0x35f570];return _0x422765;}function a27_0x237e(){const _0x5cffc7=['read','execError','6529470psoxdG','3120792DPWxVM','1899294ghoNaB','length','SQL\x20execution\x20failed','Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','185514MumtJC','execSuccess','132wvaCrs','4edPEUt','80uUaaeu','207148eCuUck','str','11ZNrnVH','Returned\x20','3932487RYNZPI','157075VCZZSI','now','execResult','sql'];a27_0x237e=function(){return _0x5cffc7;};return a27_0x237e();}import{parseJsonParams}from'../../utils/params.js';export const sqlExec={'service':a27_0x561305(0xab),'command':'exec','description':a27_0x561305(0x9d),'risk':a27_0x561305(0xac),'flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x2e5591){const _0xc807c6=a27_0x561305,_0x3e786b=parseJsonParams(_0x2e5591[_0xc807c6(0xa4)]('params')),_0x334610=Date['now'](),_0x2e73af=await executeSdkSql(_0x2e5591['str']('sqlcode'),_0x3e786b),_0x56c0b6=Date[_0xc807c6(0xa9)]()-_0x334610,_0x14d319=_0x2e73af?.[_0xc807c6(0xaa)]??_0x2e73af,_0x4f82a0=_0x2e73af?.[_0xc807c6(0x9f)]??!![];if(!_0x4f82a0)return{'ok':![],'data':{'error':_0x2e73af?.[_0xc807c6(0xad)]||_0xc807c6(0x9c),'elapsed':_0x56c0b6},'message':_0xc807c6(0x9c)};const _0x1eb6cb=Array['isArray'](_0x14d319)?_0x14d319:[];return{'ok':!![],'data':{'rows':_0x1eb6cb,'rowCount':_0x1eb6cb[_0xc807c6(0x9b)],'elapsed':_0x56c0b6},'message':_0xc807c6(0xa6)+_0x1eb6cb['length']+'\x20row(s)\x20in\x20'+_0x56c0b6+'ms'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x18ec61,_0x5d3dc6){const _0x36833d=a28_0x5745,_0x14f598=_0x18ec61();while(!![]){try{const _0x467b22=parseInt(_0x36833d(0x125))/0x1*(parseInt(_0x36833d(0x126))/0x2)+parseInt(_0x36833d(0x123))/0x3+-parseInt(_0x36833d(0x11f))/0x4+parseInt(_0x36833d(0x124))/0x5*(parseInt(_0x36833d(0x128))/0x6)+parseInt(_0x36833d(0x122))/0x7*(parseInt(_0x36833d(0x120))/0x8)+parseInt(_0x36833d(0x127))/0x9+-parseInt(_0x36833d(0x121))/0xa*(parseInt(_0x36833d(0x11e))/0xb);if(_0x467b22===_0x5d3dc6)break;else _0x14f598['push'](_0x14f598['shift']());}catch(_0x391d69){_0x14f598['push'](_0x14f598['shift']());}}}(a28_0x5acd,0x6a7c3));function a28_0x5745(_0x69a71c,_0x5acd28){_0x69a71c=_0x69a71c-0x11e;const _0x5acd5c=a28_0x5acd();let _0x574523=_0x5acd5c[_0x69a71c];return _0x574523;}import{sqlDetail}from'../../commands/sql/detail.js';function a28_0x5acd(){const _0x2163a6=['720981Rwcfwo','4527408sSoPWk','11TdhtVb','105056xuNAyE','3008iCWWXZ','16718020gwgLTu','9569JwxXKe','1707999picHxo','5KwNIde','1787gjStqj','242yEpAeZ'];a28_0x5acd=function(){return _0x2163a6;};return a28_0x5acd();}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_0x4668a4=a29_0x1827;(function(_0x3eaa73,_0x337c60){const _0xd2e648=a29_0x1827,_0x5ef9cc=_0x3eaa73();while(!![]){try{const _0x1fc4c4=parseInt(_0xd2e648(0xab))/0x1*(-parseInt(_0xd2e648(0xb9))/0x2)+parseInt(_0xd2e648(0xa7))/0x3*(-parseInt(_0xd2e648(0xbf))/0x4)+parseInt(_0xd2e648(0xc1))/0x5*(-parseInt(_0xd2e648(0xb6))/0x6)+parseInt(_0xd2e648(0xc4))/0x7*(parseInt(_0xd2e648(0xad))/0x8)+-parseInt(_0xd2e648(0xa9))/0x9*(-parseInt(_0xd2e648(0xaf))/0xa)+-parseInt(_0xd2e648(0xa6))/0xb+parseInt(_0xd2e648(0xac))/0xc*(parseInt(_0xd2e648(0xb3))/0xd);if(_0x1fc4c4===_0x337c60)break;else _0x5ef9cc['push'](_0x5ef9cc['shift']());}catch(_0x2d0082){_0x5ef9cc['push'](_0x5ef9cc['shift']());}}}(a29_0x3d67,0x27e8b));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_0x4668a4(0xc3)],'importable':!![]},'format':{'description':'Default\x20output\x20format','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a29_0x4668a4(0xb2)],'importable':!![]},'pageSize':{'description':a29_0x4668a4(0xc5),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':a29_0x4668a4(0xb1),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a29_0x4668a4(0xa8),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':a29_0x4668a4(0xbc),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a29_0x4668a4(0xa5),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a29_0x4668a4(0xba),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES['riskLevel'],'importable':!![]},'locale':{'description':a29_0x4668a4(0xb8),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a29_0x4668a4(0xc0)],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object[a29_0x4668a4(0xbd)](CONFIG_FIELD_SCHEMAS)[a29_0x4668a4(0xc2)](([,_0x19ec87])=>_0x19ec87[a29_0x4668a4(0xbe)])[a29_0x4668a4(0xb4)](([_0x5b8e35])=>_0x5b8e35));export const CONFIG_ENUM_VALUES=Object['fromEntries'](Object['entries'](CONFIG_FIELD_SCHEMAS)['filter'](([,_0xc0fcd4])=>_0xc0fcd4[a29_0x4668a4(0xae)])['map'](([_0x2238bf,_0x565ce6])=>[_0x2238bf,[..._0x565ce6[a29_0x4668a4(0xae)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a29_0x4668a4(0xbd)](CONFIG_FIELD_SCHEMAS)[a29_0x4668a4(0xc2)](([,_0x21ae67])=>_0x21ae67[a29_0x4668a4(0xb7)])['map'](([_0xdbabcf])=>_0xdbabcf);function a29_0x1827(_0x53e48b,_0x3787ae){_0x53e48b=_0x53e48b-0xa5;const _0x3d6776=a29_0x3d67();let _0x18272f=_0x3d6776[_0x53e48b];return _0x18272f;}export function getConfigFieldSchema(_0x3a423f){return CONFIG_FIELD_SCHEMAS[_0x3a423f];}export function getConfigEnumValues(_0x24f8c0){const _0x376fe1=a29_0x4668a4;return getConfigFieldSchema(_0x24f8c0)?.[_0x376fe1(0xae)];}export function getConfigDefaultValue(_0x3a184d){const _0x1e147a=a29_0x4668a4;return getConfigFieldSchema(_0x3a184d)?.[_0x1e147a(0xaa)];}function a29_0x3d67(){const _0x16f741=['has','102UWzbjZ','importable','Locale','454katpOm','Risk\x20level','join','Override\x20runtime\x20domain','entries','cliSettableTopLevel','1260892YmDgll','locale','49810yqaGYK','filter','env','175DcQAXJ','Default\x20page\x20size','Access\x20key\x20(client-ak\x20auth)','297297wVWjbE','3ywemic','Override\x20user\x20domain','774RIJruN','defaultValue','181NAMJfv','1620WVLKwK','50920VIOsLF','enumValues','26830ldOyxU','Config\x20key.\x20Top-level:\x20','Override\x20API\x20domain','format','31421xIEPKf','map'];a29_0x3d67=function(){return _0x16f741;};return a29_0x3d67();}export function isTopLevelConfigKey(_0x2588a5){const _0x5019d0=a29_0x4668a4;return TOP_LEVEL_CONFIG_KEYS[_0x5019d0(0xb5)](_0x2588a5);}export function isLegacyCompatConfigKey(_0x4b7804){return getConfigFieldSchema(_0x4b7804)?.['legacyCompatOnly']===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x22d3f0){const _0x16ac4e=a29_0x4668a4;return[..._0x22d3f0][_0x16ac4e(0xbb)](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x55b0ae=a29_0x4668a4;return _0x55b0ae(0xb0)+getTopLevelConfigKeySummary();}export function buildAppProfileListFields(_0x22cc41){return{'env':_0x22cc41,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a30_0x286a63=a30_0x40a6;function a30_0x5d90(){const _0x2b7098=['ClientAk','12041368puJVMk','6180tOrQkg','216756ToJODE','134508FQuHsE','141283LYwYXi','5871800jJuQEM','462xNgXsR','client-ak','2398eKVxnV','224FNRBZy','16EnvOgZ','340710ZJNwAq','189jvhxiv'];a30_0x5d90=function(){return _0x2b7098;};return a30_0x5d90();}(function(_0xdd7b22,_0x220060){const _0x15022d=a30_0x40a6,_0x2873e4=_0xdd7b22();while(!![]){try{const _0x2dab11=parseInt(_0x15022d(0x16f))/0x1*(-parseInt(_0x15022d(0x175))/0x2)+-parseInt(_0x15022d(0x171))/0x3*(-parseInt(_0x15022d(0x16c))/0x4)+parseInt(_0x15022d(0x170))/0x5+parseInt(_0x15022d(0x16d))/0x6*(-parseInt(_0x15022d(0x174))/0x7)+-parseInt(_0x15022d(0x16b))/0x8+-parseInt(_0x15022d(0x177))/0x9*(-parseInt(_0x15022d(0x176))/0xa)+-parseInt(_0x15022d(0x173))/0xb*(-parseInt(_0x15022d(0x16e))/0xc);if(_0x2dab11===_0x220060)break;else _0x2873e4['push'](_0x2873e4['shift']());}catch(_0xd67fdf){_0x2873e4['push'](_0x2873e4['shift']());}}}(a30_0x5d90,0xbe664));export const AUTH_MODE={'ClientAk':a30_0x286a63(0x172)};function a30_0x40a6(_0x48feac,_0x2c0f75){_0x48feac=_0x48feac-0x16a;const _0x5d9071=a30_0x5d90();let _0x40a6fb=_0x5d9071[_0x48feac];return _0x40a6fb;}export function isAuthMode(_0x4ece08){const _0x586494=a30_0x286a63;return _0x4ece08===AUTH_MODE[_0x586494(0x16a)];}
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a31_0x597009=a31_0xfd99;(function(_0x2d0374,_0x2e0441){const _0x3fcc47=a31_0xfd99,_0xed63e4=_0x2d0374();while(!![]){try{const _0x284ce9=-parseInt(_0x3fcc47(0x1a3))/0x1+parseInt(_0x3fcc47(0x1a9))/0x2*(-parseInt(_0x3fcc47(0x1ac))/0x3)+parseInt(_0x3fcc47(0x1ba))/0x4*(parseInt(_0x3fcc47(0x1a6))/0x5)+-parseInt(_0x3fcc47(0x1b9))/0x6+-parseInt(_0x3fcc47(0x19b))/0x7+parseInt(_0x3fcc47(0x1b2))/0x8+-parseInt(_0x3fcc47(0x19f))/0x9*(-parseInt(_0x3fcc47(0x19d))/0xa);if(_0x284ce9===_0x2e0441)break;else _0xed63e4['push'](_0xed63e4['shift']());}catch(_0x7d7429){_0xed63e4['push'](_0xed63e4['shift']());}}}(a31_0x3e3e,0xed020));export const CLI_BIN_NAME=a31_0x597009(0x19e);function a31_0x3e3e(){const _0x38b265=['params','Preview\x20operation\x20without\x20executing','SQL\x20query\x20code','2527572FJBZQI','22832yRAiIp','Force\x20non-interactive\x20mode\x20(CI)','Clear\x20output','string','non-interactive','help','json\x20|\x20pretty\x20|\x20compress','sqlcode','boolean','app','Override\x20appcode','<expr>','Show\x20help','yes','dry-run','production\x20|\x20development\x20|\x20daily','9283582afDPEw','verbose','100EVYmtO','lovrabet','3611061brADat','Alias\x20for\x20--non-interactive','dryRun','meowKey','1781230VEBafc','appcode','nonInteractive','1115TbJQHH','Record\x20ID','clear','2nwkEsc','name','Output\x20format','5518521OMZMrk','<code>','env','format','type','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','8430680wElCVi','Environment','Name\x20filter','Verbose\x20output'];a31_0x3e3e=function(){return _0x38b265;};return a31_0x3e3e();}export const CLI_DISPLAY_NAME='Lovrabet\x20Runtime\x20CLI';export const NPM_PACKAGE_NAME='@lovrabet/lovrabet-cli';function a31_0xfd99(_0x2c830e,_0x16c63e){_0x2c830e=_0x2c830e-0x198;const _0x3e3e86=a31_0x3e3e();let _0xfd99a5=_0x3e3e86[_0x2c830e];return _0xfd99a5;}export const GLOBAL_FLAGS=[{'name':a31_0x597009(0x1a4),'meowKey':a31_0x597009(0x1a4),'type':a31_0x597009(0x1bd),'description':a31_0x597009(0x1c4),'hint':a31_0x597009(0x1ad)},{'name':a31_0x597009(0x1c3),'meowKey':a31_0x597009(0x1c3),'type':a31_0x597009(0x1bd),'description':'Select\x20app\x20profile\x20by\x20name','hint':'<name>'},{'name':'env','meowKey':a31_0x597009(0x1ae),'type':a31_0x597009(0x1bd),'description':a31_0x597009(0x1b3),'hint':a31_0x597009(0x19a)},{'name':a31_0x597009(0x1af),'meowKey':'format','type':a31_0x597009(0x1bd),'description':a31_0x597009(0x1ab),'hint':a31_0x597009(0x1c0)},{'name':'jq','meowKey':'jq','type':a31_0x597009(0x1bd),'description':a31_0x597009(0x1b1),'hint':a31_0x597009(0x1c5)},{'name':a31_0x597009(0x199),'meowKey':a31_0x597009(0x1a1),'type':a31_0x597009(0x1c2),'description':a31_0x597009(0x1b7)},{'name':'yes','meowKey':a31_0x597009(0x198),'type':'boolean','description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':a31_0x597009(0x1be),'meowKey':a31_0x597009(0x1a5),'type':'boolean','description':a31_0x597009(0x1bb)},{'name':'global','meowKey':'global','type':a31_0x597009(0x1c2),'description':'Use\x20global\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':a31_0x597009(0x1c2),'description':a31_0x597009(0x1a0),'hidden':!![]},{'name':a31_0x597009(0x1bf),'meowKey':a31_0x597009(0x1bf),'type':a31_0x597009(0x1c2),'description':a31_0x597009(0x1c6)},{'name':'id','meowKey':'id','type':a31_0x597009(0x1bd),'description':a31_0x597009(0x1a7),'hidden':!![]},{'name':'name','meowKey':a31_0x597009(0x1aa),'type':'string','description':a31_0x597009(0x1b4),'hidden':!![]},{'name':a31_0x597009(0x1c1),'meowKey':a31_0x597009(0x1c1),'type':a31_0x597009(0x1bd),'description':a31_0x597009(0x1b8),'hidden':!![]},{'name':'params','meowKey':a31_0x597009(0x1b6),'type':a31_0x597009(0x1bd),'description':'JSON\x20params\x20for\x20execute\x20commands','hidden':!![]},{'name':a31_0x597009(0x19c),'meowKey':'verbose','type':a31_0x597009(0x1c2),'description':a31_0x597009(0x1b5),'hidden':!![]},{'name':a31_0x597009(0x1a8),'meowKey':'clear','type':'boolean','description':a31_0x597009(0x1bc),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a31_0x597009(0x1a4),'app',a31_0x597009(0x1ae),a31_0x597009(0x1af),'jq','dry-run','yes',a31_0x597009(0x1be),'ci']);export function buildMeowFlags(){const _0x2368eb=a31_0x597009;return Object['fromEntries'](GLOBAL_FLAGS['map'](_0x31bcc5=>[_0x31bcc5[_0x2368eb(0x1a2)],{'type':_0x31bcc5[_0x2368eb(0x1b0)]}]));}
|