@lovrabet/lovrabet-cli 2.0.4 → 2.0.5-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/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_0x5594e0=a16_0x3397;(function(_0x45d51e,_0x3d39a3){const _0x3e7fbf=a16_0x3397,_0x88278b=_0x45d51e();while(!![]){try{const _0x2a666f=-parseInt(_0x3e7fbf(0x150))/0x1+parseInt(_0x3e7fbf(0x152))/0x2+-parseInt(_0x3e7fbf(0x15a))/0x3*(parseInt(_0x3e7fbf(0x14f))/0x4)+-parseInt(_0x3e7fbf(0x131))/0x5*(-parseInt(_0x3e7fbf(0x148))/0x6)+parseInt(_0x3e7fbf(0x164))/0x7*(-parseInt(_0x3e7fbf(0x128))/0x8)+-parseInt(_0x3e7fbf(0x15f))/0x9+parseInt(_0x3e7fbf(0x161))/0xa;if(_0x2a666f===_0x3d39a3)break;else _0x88278b['push'](_0x88278b['shift']());}catch(_0x413562){_0x88278b['push'](_0x88278b['shift']());}}}(a16_0x24d9,0x4d258));import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{requireAnyOf}from'../../commands/common/constraints.js';import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';function a16_0x3397(_0x4de389,_0x38b4b6){_0x4de389=_0x4de389-0x120;const _0x24d987=a16_0x24d9();let _0x3397c2=_0x24d987[_0x4de389];return _0x3397c2;}function a16_0x24d9(){const _0x40526a=['6rEutkL','\x20\x20\x20\x20$endWith\x20\x20\x20\x20\x20Ends\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22email\x22:{\x22$endWith\x22:\x22@example.com\x22}}','delete','\x20on\x20dataset\x20','Create\x20a\x20new\x20record\x20in\x20a\x20dataset','2054367nSxukQ','paramsHint','8218390NBvfvq','update','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','329Ggidpb','getOne','\x20\x20\x20\x20$lt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lt\x22:1000}}','\x20\x20\x20\x20Correct:\x20\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:10}\x27','risk','command','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20distinct\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22,\x22distinct\x22:true}','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\x20completed\x20in\x20','now','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','Delete\x20a\x20record\x20(requires\x20--yes\x20in\x20non-interactive)','high-risk-write','\x20\x20\x20\x20$in\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Value\x20in\x20set\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22country\x22:{\x22$in\x22:[\x22CN\x22,\x22US\x22]}}','Create\x20multiple\x20records\x20in\x20one\x20request\x20(SDK\x20batchCreate)','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22field\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20of\x20records\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}','\x20\x20\x20\x20Pagination\x20is\x20controlled\x20via\x20JSON\x20in\x20--params.\x20Do\x20NOT\x20use\x20--page-size\x20as\x20a\x20CLI\x20flag.','\x20\x20PARAMS\x20STRUCTURE','helpExtra','3728kJUIQl','write','dryRun','filter','create','\x20\x20\x20\x20having\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Post-aggregation\x20filter,\x20e.g.\x20{\x22total\x22:{\x22$gt\x22:1000}}','\x20\x20\x20\x20$lte\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20or\x20equal\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lte\x22:1000}}','read','\x20\x20\x20\x20$or\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Any\x20condition\x20matches\x20\x20{\x22$or\x22:[{\x22status\x22:{\x22$eq\x22:\x22active\x22}},{\x22status\x22:{\x22$eq\x22:\x22pending\x22}}]}','1130ABCNjI','\x20\x20PAGINATION','\x20\x20AGGREGATE\x20TYPES','/api/{appCode}/','\x20\x20\x20\x20Wrong:\x20\x20\x20\x20--page-size\x2010\x20\x20(this\x20is\x20not\x20a\x20valid\x20flag)','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','description','\x20\x20\x20\x20MAX\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Maximum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\x22}','params','\x20\x20WHERE\x20OPERATORS','code','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]','Preview:\x20data\x20','data','map','aggregate','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','operation','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rounded\x20average\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg\x22,\x22round\x22:true,\x22precision\x22:2}','build','5622mxNYlr','data\x20','\x20\x20\x20\x20$eq\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22age\x22:{\x22$eq\x22:18}}','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','Filter\x20dataset\x20records\x20with\x20query\x20conditions','batchCreate','211436eTtIxB','618948nLjehv','join','514444fUYLec','\x20\x20EXAMPLES','\x20\x20\x20\x20SUM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Sum\x20of\x20field\x20values\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}','\x20\x20\x20\x20$gte\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20or\x20equal\x20\x20{\x22amount\x22:{\x22$gte\x22:100}}','str','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','Update\x20an\x20existing\x20record','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27'];a16_0x24d9=function(){return _0x40526a;};return a16_0x24d9();}const specs=[{'command':'filter','operation':a16_0x5594e0(0x12b),'risk':a16_0x5594e0(0x12f),'paramsRequired':![],'description':a16_0x5594e0(0x14d),'paramsHint':a16_0x5594e0(0x137)+a16_0x5594e0(0x159),'helpExtra':[a16_0x5594e0(0x13b),a16_0x5594e0(0x14a),'\x20\x20\x20\x20$ne\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Not\x20equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22status\x22:{\x22$ne\x22:\x22deleted\x22}}','\x20\x20\x20\x20$gt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$gt\x22:100}}',a16_0x5594e0(0x155),a16_0x5594e0(0x166),a16_0x5594e0(0x12e),a16_0x5594e0(0x121),'\x20\x20\x20\x20$contain\x20\x20\x20\x20\x20Substring\x20match\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$contain\x22:\x22test\x22}}','\x20\x20\x20\x20$startWith\x20\x20\x20Starts\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$startWith\x22:\x22Mr.\x22}}',a16_0x5594e0(0x15b),'','\x20\x20LOGICAL\x20COMBINATORS','\x20\x20\x20\x20$and\x20\x20\x20\x20\x20\x20\x20\x20\x20All\x20conditions\x20match\x20\x20\x20{\x22$and\x22:[{\x22age\x22:{\x22$gte\x22:18}},{\x22status\x22:{\x22$eq\x22:\x22active\x22}}]}',a16_0x5594e0(0x130),'',a16_0x5594e0(0x16b),'\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]',a16_0x5594e0(0x13e),a16_0x5594e0(0x163),a16_0x5594e0(0x13d),'',a16_0x5594e0(0x132),a16_0x5594e0(0x125),a16_0x5594e0(0x167),a16_0x5594e0(0x135)]['join']('\x0a')},{'command':'getOne','operation':a16_0x5594e0(0x165),'risk':a16_0x5594e0(0x12f),'paramsRequired':!![],'description':'Get\x20a\x20single\x20record\x20by\x20ID','paramsHint':a16_0x5594e0(0x14c)},{'command':a16_0x5594e0(0x12c),'operation':a16_0x5594e0(0x12c),'risk':a16_0x5594e0(0x129),'paramsRequired':!![],'description':a16_0x5594e0(0x15e),'paramsHint':a16_0x5594e0(0x16e)},{'command':a16_0x5594e0(0x14e),'operation':a16_0x5594e0(0x14e),'risk':'write','paramsRequired':!![],'description':a16_0x5594e0(0x122),'paramsHint':a16_0x5594e0(0x157)},{'command':a16_0x5594e0(0x162),'operation':a16_0x5594e0(0x162),'risk':'write','paramsRequired':!![],'description':a16_0x5594e0(0x158),'paramsHint':'JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20Example:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27'},{'command':a16_0x5594e0(0x15c),'operation':a16_0x5594e0(0x15c),'risk':a16_0x5594e0(0x120),'paramsRequired':!![],'description':a16_0x5594e0(0x16f),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':a16_0x5594e0(0x142),'operation':a16_0x5594e0(0x142),'risk':a16_0x5594e0(0x12f),'paramsRequired':![],'description':a16_0x5594e0(0x136),'paramsHint':'JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20'+'Example:\x20\x27{\x22aggregate\x22:[{\x22field\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','helpExtra':[a16_0x5594e0(0x133),a16_0x5594e0(0x154),a16_0x5594e0(0x124),a16_0x5594e0(0x16a),'\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Average\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}',a16_0x5594e0(0x146),a16_0x5594e0(0x139),'\x20\x20\x20\x20MIN\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Minimum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22field\x22:\x22price\x22,\x22type\x22:\x22MIN\x22,\x22alias\x22:\x22min_price\x22}','',a16_0x5594e0(0x126),a16_0x5594e0(0x14b),'\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]',a16_0x5594e0(0x12d),'\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','',a16_0x5594e0(0x153),a16_0x5594e0(0x143),a16_0x5594e0(0x123),'',a16_0x5594e0(0x145),'\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22field\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[\x22region\x22],\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}}}\x27'][a16_0x5594e0(0x151)]('\x0a')}];function makeDataCommand(_0x10f708){const _0x31c474=a16_0x5594e0,_0xe91be=_0x31c474(0x149)+_0x10f708[_0x31c474(0x169)],_0x53dade={'service':_0x31c474(0x140),'command':_0x10f708[_0x31c474(0x169)],'description':_0x10f708[_0x31c474(0x138)],'risk':_0x10f708['risk'],'helpExtra':_0x10f708[_0x31c474(0x127)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x10f708[_0x31c474(0x160)]}],'validate':async _0x237f88=>{const _0x13b36f=_0x31c474;_0x10f708['paramsRequired']&&requireAnyOf(_0x237f88,['params'],_0xe91be),_0x10f708[_0x13b36f(0x144)]==='batchCreate'&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x237f88[_0x13b36f(0x156)]('params')));},async 'execute'(_0x9952c2){const _0x469f30=_0x31c474,_0x1b3fce=_0x9952c2[_0x469f30(0x156)](_0x469f30(0x13c)),_0x3ad231=_0x10f708[_0x469f30(0x144)]===_0x469f30(0x14e)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x9952c2[_0x469f30(0x156)]('params'))):parseJsonParams(_0x9952c2[_0x469f30(0x156)](_0x469f30(0x13a)))??{},_0x13b8a4=Date[_0x469f30(0x16d)](),_0x378956=await executeData(_0x1b3fce,_0x10f708[_0x469f30(0x144)],_0x3ad231),_0x56762a=Date[_0x469f30(0x16d)]()-_0x13b8a4;return{'ok':!![],'data':{'result':_0x378956,'elapsed':_0x56762a},'message':'data\x20'+_0x10f708[_0x469f30(0x169)]+_0x469f30(0x16c)+_0x56762a+'ms'};}};return _0x10f708[_0x31c474(0x168)]!==_0x31c474(0x12f)&&(_0x53dade[_0x31c474(0x12a)]=async _0x3c8436=>{const _0xd536ba=_0x31c474,_0x137db8=_0x3c8436['str'](_0xd536ba(0x13c)),_0x1a6918=_0x10f708[_0xd536ba(0x144)]===_0xd536ba(0x14e)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x3c8436['str'](_0xd536ba(0x13a)))):parseJsonParams(_0x3c8436[_0xd536ba(0x156)](_0xd536ba(0x13a)))??{};return dryRun('POST',_0xd536ba(0x134)+_0x137db8+'/'+_0x10f708[_0xd536ba(0x144)])['body'](_0x1a6918)[_0xd536ba(0x138)](_0xd536ba(0x13f)+_0x10f708[_0xd536ba(0x169)]+_0xd536ba(0x15d)+_0x137db8)[_0xd536ba(0x147)]();}),_0x53dade;}export const dataDefinitions=specs[a16_0x5594e0(0x141)](makeDataCommand);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a17_0x330a(_0xb477e1,_0x14942f){_0xb477e1=_0xb477e1-0x10c;const _0x5acfa1=a17_0x5acf();let _0x330a91=_0x5acfa1[_0xb477e1];return _0x330a91;}const a17_0x3a4703=a17_0x330a;(function(_0x489c30,_0x1e3478){const _0x472455=a17_0x330a,_0x4f9fe3=_0x489c30();while(!![]){try{const _0x2cf049=-parseInt(_0x472455(0x137))/0x1+parseInt(_0x472455(0x129))/0x2*(-parseInt(_0x472455(0x154))/0x3)+parseInt(_0x472455(0x116))/0x4*(parseInt(_0x472455(0x112))/0x5)+-parseInt(_0x472455(0x126))/0x6+parseInt(_0x472455(0x142))/0x7*(parseInt(_0x472455(0x111))/0x8)+parseInt(_0x472455(0x149))/0x9+-parseInt(_0x472455(0x141))/0xa*(-parseInt(_0x472455(0x140))/0xb);if(_0x2cf049===_0x1e3478)break;else _0x4f9fe3['push'](_0x4f9fe3['shift']());}catch(_0x4497d3){_0x4f9fe3['push'](_0x4f9fe3['shift']());}}}(a17_0x5acf,0xbc85d));import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x1dabaf){const _0x1278d9=a17_0x330a;if(_0x1dabaf[_0x1278d9(0x138)])return null;const _0x4a51b2=Boolean(_0x1dabaf[_0x1278d9(0x14a)]!==undefined||_0x1dabaf['doType']!==undefined);let _0x5f3da6={};if(!_0x4a51b2&&typeof _0x1dabaf[_0x1278d9(0x145)]==='string')try{_0x5f3da6=JSON[_0x1278d9(0x157)](_0x1dabaf[_0x1278d9(0x145)]);}catch{}const _0x161a38=_0x4a51b2?_0x1dabaf[_0x1278d9(0x133)]:_0x1dabaf['code'],_0x66a292=_0x4a51b2?_0x1dabaf[_0x1278d9(0x14a)]:_0x1dabaf[_0x1278d9(0x133)],_0x42b75c=_0x4a51b2?_0x1dabaf[_0x1278d9(0x118)]:_0x1dabaf[_0x1278d9(0x10c)]||_0x1dabaf[_0x1278d9(0x150)],_0x2d4f4a=_0x4a51b2?_0x1dabaf[_0x1278d9(0x13c)]===!![]:_0x5f3da6['pkField']===!![],_0x6da73a=_0x4a51b2?_0x1dabaf[_0x1278d9(0x125)]===!![]:_0x5f3da6[_0x1278d9(0x125)]===!![],_0x4a3f8b=_0x4a51b2?_0x1dabaf[_0x1278d9(0x123)]??null:_0x5f3da6[_0x1278d9(0x123)]??null,_0x29b601={'name':_0x161a38,'displayName':_0x66a292||_0x161a38,'type':_0x42b75c,'dbType':_0x1dabaf[_0x1278d9(0x11d)],'pk':_0x2d4f4a,'required':_0x6da73a,'description':_0x1dabaf[_0x1278d9(0x151)]||undefined};return Array[_0x1278d9(0x11c)](_0x4a3f8b)&&_0x4a3f8b[_0x1278d9(0x153)]>0x0&&(_0x29b601[_0x1278d9(0x123)]=_0x4a3f8b),_0x29b601;}function parseJsonMaybe(_0x42f004){const _0xa6798e=a17_0x330a;if(typeof _0x42f004!==_0xa6798e(0x134))return _0x42f004;try{return JSON[_0xa6798e(0x157)](_0x42f004);}catch{return _0x42f004;}}function a17_0x5acf(){const _0x55282a=['requestBody','pkField','creatorNameField','tableName','createTimeField','16433450TbGiSM','10lKeQPo','168847vYNEVi','fromField','validateRules','extend','path','tableComment','labelField','134163WYDXEv','displayName','push','beforeScriptId','filter','toTableName','columnCodeListWithDeleted','dataType','description','map','length','21VsMTMv','modifierIdField','doVersion','parse','operations','dbName','logicField','type','formatRules','indexes','dblinkInfoDTO','updateTimeField','224GpTlVn','5pfbjsg','modelCode','afterScriptId','code','2518748FCuRog','responseBody','doType','split','modifierNameField','host','isArray','dbType','properties','fields','method','responseFields','entries','options','datasetKey','required','1549374blYgFh','relations','requestFields','235786buKRkk','object','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','dataset','dbId','read','dbtableConfig','toFieldLabel','toField','modelId','name','string','trim','creatorIdField','958263lGHHzA','deleted','allFields','toDatasetName'];a17_0x5acf=function(){return _0x55282a;};return a17_0x5acf();}function normalizeOperationEntry(_0x5d1bc1,_0x234028){const _0xc630b=a17_0x330a;if(!_0x234028||typeof _0x234028!==_0xc630b(0x12a))return null;if(!_0x234028[_0xc630b(0x120)]||!_0x234028[_0xc630b(0x146)])return null;const _0x2e0972={'name':_0x5d1bc1,'method':_0x234028[_0xc630b(0x120)],'path':_0x234028[_0xc630b(0x146)]};if(_0x234028['host'])_0x2e0972[_0xc630b(0x11b)]=_0x234028[_0xc630b(0x11b)];if(_0x234028[_0xc630b(0x13b)]!=null)_0x2e0972[_0xc630b(0x13b)]=parseJsonMaybe(_0x234028[_0xc630b(0x13b)]);if(_0x234028[_0xc630b(0x117)]!=null)_0x2e0972[_0xc630b(0x117)]=parseJsonMaybe(_0x234028[_0xc630b(0x117)]);if(_0x234028[_0xc630b(0x14c)]!=null)_0x2e0972['beforeScriptId']=_0x234028[_0xc630b(0x14c)];if(_0x234028['afterScriptId']!=null)_0x2e0972[_0xc630b(0x114)]=_0x234028['afterScriptId'];if(Array[_0xc630b(0x11c)](_0x234028[_0xc630b(0x128)]))_0x2e0972['requestFields']=_0x234028[_0xc630b(0x128)];if(Array[_0xc630b(0x11c)](_0x234028[_0xc630b(0x121)]))_0x2e0972['responseFields']=_0x234028[_0xc630b(0x121)];return _0x2e0972;}function summarizeDbtable(_0x3834a7){const _0x19f6dc=a17_0x330a,_0x5498b4={},_0x352768=[_0x19f6dc(0x12d),_0x19f6dc(0x159),_0x19f6dc(0x13e),_0x19f6dc(0x124),_0x19f6dc(0x13c),_0x19f6dc(0x139),_0x19f6dc(0x15a),_0x19f6dc(0x13f),_0x19f6dc(0x110),_0x19f6dc(0x136),_0x19f6dc(0x13d),_0x19f6dc(0x155),_0x19f6dc(0x11a),_0x19f6dc(0x148),_0x19f6dc(0x10f)];for(const _0x406d01 of _0x352768){if(_0x3834a7[_0x406d01]!==undefined)_0x5498b4[_0x406d01]=_0x3834a7[_0x406d01];}return typeof _0x5498b4[_0x19f6dc(0x139)]===_0x19f6dc(0x134)&&_0x5498b4[_0x19f6dc(0x139)][_0x19f6dc(0x153)]>0x0&&(_0x5498b4['allFieldNames']=_0x5498b4[_0x19f6dc(0x139)][_0x19f6dc(0x119)](',')[_0x19f6dc(0x152)](_0x24a6c9=>_0x24a6c9[_0x19f6dc(0x135)]())[_0x19f6dc(0x14d)](Boolean)),_0x5498b4;}function normalizeRelatedPages(_0x5113ad){const _0x2ab3e8=a17_0x330a;if(!Array[_0x2ab3e8(0x11c)](_0x5113ad))return[];return _0x5113ad[_0x2ab3e8(0x14d)](_0x49857c=>_0x49857c&&typeof _0x49857c===_0x2ab3e8(0x12a))[_0x2ab3e8(0x152)](_0x3cf1b4=>({'id':_0x3cf1b4['id'],'type':_0x3cf1b4['type'],'code':_0x3cf1b4['code'],'title':_0x3cf1b4['title'],'deleted':_0x3cf1b4[_0x2ab3e8(0x138)]===!![]}));}export const datasetDetail={'service':a17_0x3a4703(0x12c),'command':'detail','description':a17_0x3a4703(0x12b),'risk':a17_0x3a4703(0x12e),'flags':[CODE_FLAG],async 'execute'(_0x156fa8){const _0x11f084=a17_0x3a4703,_0x4a59d3=await getDatasetDetail(_0x156fa8['str'](_0x11f084(0x115))),_0x30ae0c=Array['isArray'](_0x4a59d3[_0x11f084(0x11f)])?_0x4a59d3[_0x11f084(0x11f)]:Array[_0x11f084(0x11c)](_0x4a59d3['properties'])?_0x4a59d3[_0x11f084(0x11e)]:[],_0xc0c7da=_0x30ae0c[_0x11f084(0x152)](_0x1b3fd3=>normalizeField(_0x1b3fd3))[_0x11f084(0x14d)](_0x38cc44=>_0x38cc44!==null),_0x3afd37=_0x4a59d3[_0x11f084(0x158)]??{},_0x5d42b5=[];for(const [_0x3621c7,_0x3f9706]of Object[_0x11f084(0x122)](_0x3afd37)){const _0x3f3b77=normalizeOperationEntry(_0x3621c7,_0x3f9706);if(_0x3f3b77)_0x5d42b5[_0x11f084(0x14b)](_0x3f3b77);}const _0x54d7a4=_0x4a59d3[_0x11f084(0x12f)]??{},_0x2c0521=_0x4a59d3['dataset']??{},_0x3c8f5c=_0x54d7a4[_0x11f084(0x12d)]!=null?{'id':_0x54d7a4[_0x11f084(0x12d)],'name':_0x54d7a4[_0x11f084(0x159)]??null}:undefined;let _0x2d198b;return typeof _0x4a59d3[_0x11f084(0x145)]==='string'&&(_0x2d198b=parseJsonMaybe(_0x4a59d3[_0x11f084(0x145)])),{'ok':!![],'data':{'id':_0x4a59d3[_0x11f084(0x132)]??_0x4a59d3['id'],'name':_0x4a59d3[_0x11f084(0x133)],'code':_0x4a59d3[_0x11f084(0x113)]||_0x4a59d3[_0x11f084(0x115)],'doVersion':_0x4a59d3[_0x11f084(0x156)],'description':_0x4a59d3[_0x11f084(0x151)]||_0x2c0521[_0x11f084(0x147)]||undefined,'source':_0x4a59d3['source']||_0x2c0521['sourceType'],'table':_0x54d7a4[_0x11f084(0x13e)]||_0x2c0521[_0x11f084(0x13e)],'datasetKey':_0x54d7a4['datasetKey'],'pk':_0x54d7a4[_0x11f084(0x13c)],'db':_0x3c8f5c,'dbtable':summarizeDbtable(_0x54d7a4),'fields':_0xc0c7da,'operations':_0x5d42b5,'indexes':Array[_0x11f084(0x11c)](_0x2c0521[_0x11f084(0x10e)])?_0x2c0521[_0x11f084(0x10e)]:[],'relations':Array[_0x11f084(0x11c)](_0x4a59d3[_0x11f084(0x127)])?_0x4a59d3[_0x11f084(0x127)][_0x11f084(0x152)](_0x3c8345=>({'fromField':_0x3c8345[_0x11f084(0x143)],'toDataset':_0x3c8345[_0x11f084(0x13a)],'toCode':_0x3c8345['toDatasetCode'],'toTable':_0x3c8345[_0x11f084(0x14e)],'toField':_0x3c8345[_0x11f084(0x131)],'labelField':_0x3c8345[_0x11f084(0x130)]||undefined})):[],'relatedPages':normalizeRelatedPages(_0x4a59d3['relatedPageInfoList']),...Array[_0x11f084(0x11c)](_0x4a59d3[_0x11f084(0x14f)])?{'columnCodeListWithDeleted':_0x4a59d3[_0x11f084(0x14f)]}:{},'formatRules':Array['isArray'](_0x4a59d3['formatRules'])?_0x4a59d3[_0x11f084(0x10d)]:[],'validateRules':Array[_0x11f084(0x11c)](_0x4a59d3[_0x11f084(0x144)])?_0x4a59d3[_0x11f084(0x144)]:[],..._0x2d198b!==undefined?{'extend':_0x2d198b}:{},'stats':{'fieldCount':_0xc0c7da['length'],'operationCount':_0x5d42b5[_0x11f084(0x153)]}}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x522af6,_0x43cb7b){const _0x3ae10a=a18_0x446d,_0x52504c=_0x522af6();while(!![]){try{const _0x1b204e=-parseInt(_0x3ae10a(0x17e))/0x1*(-parseInt(_0x3ae10a(0x185))/0x2)+-parseInt(_0x3ae10a(0x186))/0x3*(-parseInt(_0x3ae10a(0x180))/0x4)+parseInt(_0x3ae10a(0x17c))/0x5+-parseInt(_0x3ae10a(0x181))/0x6*(-parseInt(_0x3ae10a(0x184))/0x7)+parseInt(_0x3ae10a(0x17f))/0x8+parseInt(_0x3ae10a(0x182))/0x9+-parseInt(_0x3ae10a(0x17d))/0xa*(parseInt(_0x3ae10a(0x183))/0xb);if(_0x1b204e===_0x43cb7b)break;else _0x52504c['push'](_0x52504c['shift']());}catch(_0x2db637){_0x52504c['push'](_0x52504c['shift']());}}}(a18_0x2db0,0x50c0d));import{datasetList}from'../../commands/dataset/list.js';function a18_0x2db0(){const _0xd1ab38=['121jVkXmC','3563CDGluy','2wrtdmo','1752gEHkaT','1025300XlMiUP','1678850EIgCWp','223985LJJxdl','4735080zMZUVJ','2928ofSJSf','2010DAgKQJ','5027103KYoAOT'];a18_0x2db0=function(){return _0xd1ab38;};return a18_0x2db0();}function a18_0x446d(_0x3f0cb4,_0x3ccaf5){_0x3f0cb4=_0x3f0cb4-0x17c;const _0x2db0f2=a18_0x2db0();let _0x446df4=_0x2db0f2[_0x3f0cb4];return _0x446df4;}import{datasetDetail}from'../../commands/dataset/detail.js';export const datasetDefinitions=[datasetList,datasetDetail];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a19_0x35f64f=a19_0x3d2f;function a19_0x1156(){const _0x464e35=['dbtableConfig','28mOOpON','name','42615CoaCiK','appCode','List\x20datasets\x20in\x20the\x20app\x20(supports\x20server-side\x20name/code\x20filtering)','map','tableName','70138leYJjL','read','108UrkcBX','5532SgVrun','string','5424732wQLknf','dataset','length','list','111ItvWeB','59347cGapvJ','42977mLLEzj','description','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','code','2046808ukwuAQ','str','datasetKey','10cmgoRV','380830sBZijL'];a19_0x1156=function(){return _0x464e35;};return a19_0x1156();}function a19_0x3d2f(_0x5d92a7,_0x3907ee){_0x5d92a7=_0x5d92a7-0x13b;const _0x115685=a19_0x1156();let _0x3d2f35=_0x115685[_0x5d92a7];return _0x3d2f35;}(function(_0x125a42,_0x50ba65){const _0xb94dec=a19_0x3d2f,_0x50006e=_0x125a42();while(!![]){try{const _0x11518f=parseInt(_0xb94dec(0x14e))/0x1+parseInt(_0xb94dec(0x144))/0x2*(-parseInt(_0xb94dec(0x14d))/0x3)+parseInt(_0xb94dec(0x149))/0x4+parseInt(_0xb94dec(0x13b))/0x5*(parseInt(_0xb94dec(0x146))/0x6)+parseInt(_0xb94dec(0x13d))/0x7*(parseInt(_0xb94dec(0x153))/0x8)+parseInt(_0xb94dec(0x13f))/0x9*(parseInt(_0xb94dec(0x156))/0xa)+parseInt(_0xb94dec(0x14f))/0xb*(-parseInt(_0xb94dec(0x147))/0xc);if(_0x11518f===_0x50ba65)break;else _0x50006e['push'](_0x50006e['shift']());}catch(_0xb98221){_0x50006e['push'](_0x50006e['shift']());}}}(a19_0x1156,0xaecc9));import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a19_0x35f64f(0x14a),'command':a19_0x35f64f(0x14c),'description':a19_0x35f64f(0x141),'risk':a19_0x35f64f(0x145),'flags':[{'name':a19_0x35f64f(0x13e),'type':a19_0x35f64f(0x148),'description':'Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)'},{...CODE_FLAG,'required':![],'description':a19_0x35f64f(0x151)}],async 'execute'(_0x6fc81d){const _0xf7b38e=a19_0x35f64f,_0x5d2c5f=_0x6fc81d[_0xf7b38e(0x154)](_0xf7b38e(0x13e)),_0x1f1bab=_0x6fc81d[_0xf7b38e(0x154)](_0xf7b38e(0x152)),_0x34e1ec=await listDatasets(_0x6fc81d[_0xf7b38e(0x140)],{..._0x5d2c5f&&{'name':_0x5d2c5f},..._0x1f1bab&&{'code':_0x1f1bab}});return{'ok':!![],'data':{'total':_0x34e1ec[_0xf7b38e(0x14b)],'datasets':_0x34e1ec['map'](_0x2f1c2b=>{const _0x359fcb=_0xf7b38e,_0x27a980=_0x2f1c2b[_0x359fcb(0x13c)]??{};return{'id':_0x2f1c2b['id'],'code':_0x2f1c2b['code'],'name':_0x2f1c2b['name'],'source':_0x2f1c2b['source'],'description':_0x2f1c2b[_0x359fcb(0x150)],'table':_0x27a980[_0x359fcb(0x143)],'datasetKey':_0x27a980[_0x359fcb(0x155)],'pk':_0x27a980['pkField'],'fields':_0x27a980['allFields']?_0x27a980['allFields']['split'](',')[_0x359fcb(0x142)](_0x4bc4e6=>_0x4bc4e6['trim']()):[]};})}};}};
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a20_0x1f8ed8=a20_0x3fb6;(function(_0x55c4f3,_0x3e32df){const _0x5e3fa5=a20_0x3fb6,_0x2226cf=_0x55c4f3();while(!![]){try{const _0x39cea2=-parseInt(_0x5e3fa5(0x12e))/0x1*(parseInt(_0x5e3fa5(0x153))/0x2)+-parseInt(_0x5e3fa5(0x155))/0x3+-parseInt(_0x5e3fa5(0x14b))/0x4*(-parseInt(_0x5e3fa5(0x122))/0x5)+-parseInt(_0x5e3fa5(0x13f))/0x6*(parseInt(_0x5e3fa5(0x129))/0x7)+-parseInt(_0x5e3fa5(0x136))/0x8+parseInt(_0x5e3fa5(0x14c))/0x9+parseInt(_0x5e3fa5(0x15c))/0xa;if(_0x39cea2===_0x3e32df)break;else _0x2226cf['push'](_0x2226cf['shift']());}catch(_0x375a30){_0x2226cf['push'](_0x2226cf['shift']());}}}(a20_0x275e,0x4a1e5));import a20_0x30c6a3 from'chalk';function a20_0x275e(){const _0x38c9fb=['9284500KvHOmm','yellow','(not\x20found)','\x20\x20Config\x20Files','gray','\x20\x20Config\x20JSON','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','status','\x20\x20Merged\x20Config','\x20(accessKey)','Project','version','10845GmvQoz','⚠\x20Empty\x20(treated\x20as\x20{})','(no\x20file)','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Valid\x20JSON','7pvhaRD','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','repeat','locale','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','213qIsRCR','red','\x20(legacy/compat\x20only)','currentApp','format','appCode','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20auth\x20(effective):\x20','2212336WESUlK','(not\x20set)','ClientAk','accessKey','\x20\x20Auth','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(none)','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','empty','1127010FApVxt','missing','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','check','green','pageSize','padEnd','Global','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','length','log','message','148hGggPC','381114aCTfyP','✗\x20Invalid\x20JSON','(missing)','bold','(default)','(removed\x20—\x20cookie\x20auth\x20disabled)','(default:\x20','2474enKFUm','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','58806CGEtJC','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','defaultApp','\x20\x20─','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20doctor','riskLevel'];a20_0x275e=function(){return _0x38c9fb;};return a20_0x275e();}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(_0xc87384){const _0x57f052=a20_0x3fb6,_0xab3aec=getCliVersion(),_0x1eb945=buildConfigFromFlags({});await initGlobalEnvironment(_0x1eb945),console[_0x57f052(0x149)](),console[_0x57f052(0x149)](a20_0x30c6a3[_0x57f052(0x14f)](CLI_BIN_NAME+_0x57f052(0x15a))),console[_0x57f052(0x149)](a20_0x30c6a3[_0x57f052(0x160)]('─'[_0x57f052(0x12b)](0x32))),console[_0x57f052(0x149)](_0x57f052(0x141)+_0xab3aec),console[_0x57f052(0x149)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x57f052(0x121)]),console['log'](_0x57f052(0x159)+process['platform']+'\x20'+process['arch']),console['log'](),console[_0x57f052(0x149)](a20_0x30c6a3['bold'](_0x57f052(0x15f))),console[_0x57f052(0x149)](a20_0x30c6a3[_0x57f052(0x160)](_0x57f052(0x158)['repeat'](0x1e)));const _0x25fa66=getGlobalConfigPath(),_0x205458=getProjectConfigPath();console[_0x57f052(0x149)](_0x57f052(0x13b)+(_0x25fa66||a20_0x30c6a3['gray'](_0x57f052(0x15e)))),console[_0x57f052(0x149)](_0x57f052(0x156)+(_0x205458||a20_0x30c6a3[_0x57f052(0x160)](_0x57f052(0x15e)))),console[_0x57f052(0x149)](),console[_0x57f052(0x149)](a20_0x30c6a3[_0x57f052(0x14f)](_0x57f052(0x161))),console[_0x57f052(0x149)](a20_0x30c6a3[_0x57f052(0x160)](_0x57f052(0x158)[_0x57f052(0x12b)](0x1e)));const _0x3cb8fd=(_0x2c323c,_0x25b580)=>{const _0x26c707=_0x57f052;if(!_0x25b580){console[_0x26c707(0x149)]('\x20\x20'+_0x2c323c[_0x26c707(0x145)](0x11)+'\x20'+a20_0x30c6a3[_0x26c707(0x160)](_0x26c707(0x124)));return;}const _0x39b026=inspectCliConfigJsonFile(_0x25b580);if(_0x39b026[_0x26c707(0x163)]==='ok')console[_0x26c707(0x149)]('\x20\x20'+_0x2c323c['padEnd'](0x11)+'\x20'+a20_0x30c6a3[_0x26c707(0x143)](_0x26c707(0x128)));else{if(_0x39b026[_0x26c707(0x163)]===_0x26c707(0x13e))console['log']('\x20\x20'+_0x2c323c['padEnd'](0x11)+'\x20'+a20_0x30c6a3[_0x26c707(0x15d)](_0x26c707(0x123)));else _0x39b026[_0x26c707(0x163)]===_0x26c707(0x140)?console[_0x26c707(0x149)]('\x20\x20'+_0x2c323c[_0x26c707(0x145)](0x11)+'\x20'+a20_0x30c6a3[_0x26c707(0x160)](_0x26c707(0x14e))):(console['log']('\x20\x20'+_0x2c323c[_0x26c707(0x145)](0x11)+'\x20'+a20_0x30c6a3[_0x26c707(0x12f)](_0x26c707(0x14d))),console[_0x26c707(0x149)]('\x20\x20'+''['padEnd'](0x11)+'\x20'+a20_0x30c6a3[_0x26c707(0x12f)](_0x39b026[_0x26c707(0x14a)])));}};_0x3cb8fd(_0x57f052(0x146),_0x25fa66),_0x3cb8fd(_0x57f052(0x120),_0x205458),console[_0x57f052(0x149)](),console[_0x57f052(0x149)](a20_0x30c6a3[_0x57f052(0x14f)](_0x57f052(0x164))),console[_0x57f052(0x149)](a20_0x30c6a3[_0x57f052(0x160)](_0x57f052(0x158)[_0x57f052(0x12b)](0x1e))),console[_0x57f052(0x149)](_0x57f052(0x154)+(_0x1eb945[_0x57f052(0x133)]||a20_0x30c6a3['red'](_0x57f052(0x137)))),console[_0x57f052(0x149)](_0x57f052(0x127)+_0x1eb945['env']);const _0x500964=isLegacyCompatConfigKey(_0x57f052(0x12c))?a20_0x30c6a3[_0x57f052(0x160)](_0x1eb945[_0x57f052(0x12c)]+_0x57f052(0x130)):_0x1eb945['locale'];return console['log'](_0x57f052(0x134)+_0x500964),console[_0x57f052(0x149)](_0x57f052(0x13d)+(_0x1eb945[_0x57f052(0x157)]||a20_0x30c6a3[_0x57f052(0x160)](_0x57f052(0x13c)))),console[_0x57f052(0x149)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x1eb945[_0x57f052(0x131)]||a20_0x30c6a3[_0x57f052(0x160)]('(none)'))),console[_0x57f052(0x149)](_0x57f052(0x12a)+(_0x1eb945[_0x57f052(0x132)]||a20_0x30c6a3[_0x57f052(0x160)](_0x57f052(0x152)+DEFAULT_CONFIG_VALUES[_0x57f052(0x132)]+')'))),console[_0x57f052(0x149)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1eb945[_0x57f052(0x144)]??a20_0x30c6a3[_0x57f052(0x160)](_0x57f052(0x150)))),console['log'](_0x57f052(0x147)+_0x1eb945[_0x57f052(0x15b)]),console[_0x57f052(0x149)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1eb945['verbose']),console['log'](_0x57f052(0x135)+AUTH_MODE['ClientAk']),console['log'](_0x57f052(0x126)+(_0x1eb945['accessKey']?a20_0x30c6a3['green']('(set,\x20length='+_0x1eb945[_0x57f052(0x139)][_0x57f052(0x148)]+')'):a20_0x30c6a3[_0x57f052(0x160)](_0x57f052(0x13c)))),console[_0x57f052(0x149)](),console[_0x57f052(0x149)](a20_0x30c6a3[_0x57f052(0x14f)]('\x20\x20API\x20Endpoints')),console['log'](a20_0x30c6a3[_0x57f052(0x160)]('\x20\x20─'['repeat'](0x1e))),console[_0x57f052(0x149)](_0x57f052(0x12d)+getApiDomain()),console['log'](_0x57f052(0x125)+getUserDomain()),console[_0x57f052(0x149)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x57f052(0x149)](),console[_0x57f052(0x149)](a20_0x30c6a3[_0x57f052(0x14f)](_0x57f052(0x13a))),console[_0x57f052(0x149)](a20_0x30c6a3['gray'](_0x57f052(0x158)[_0x57f052(0x12b)](0x1e))),console[_0x57f052(0x149)](_0x57f052(0x162)+a20_0x30c6a3[_0x57f052(0x143)](AUTH_MODE[_0x57f052(0x138)]+_0x57f052(0x11f))),console[_0x57f052(0x149)]('\x20\x20Session\x20check:\x20\x20\x20'+a20_0x30c6a3[_0x57f052(0x160)](_0x57f052(0x151))),console[_0x57f052(0x149)](),{'ok':!![]};}function a20_0x3fb6(_0xe68dc9,_0x27df9d){_0xe68dc9=_0xe68dc9-0x11f;const _0x275e07=a20_0x275e();let _0x3fb64c=_0x275e07[_0xe68dc9];return _0x3fb64c;}export const doctorDefinition={'service':'doctor','command':a20_0x1f8ed8(0x142),'description':'Diagnose\x20CLI\x20configuration\x20and\x20environment','risk':'read','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_0x1df400=a21_0xf157;function a21_0x39a2(){const _0x400c76=['project','\x20already\x20exists.\x20Overwrite?','Invalid\x20env\x20\x22','log','cancelled','trim','yes','join','global','Failed\x20to\x20parse\x20source\x20file:\x20','parse','toLowerCase','SIGINT','105TUUDDt','314KfPXHI','):\x20','Initialized\x20','stdin','boolean','\x20\x20default:\x20','1376505NwXcrq','removeListener','close','entries','User\x20aborted\x20prompt','app','env','581VoKyYe','flagMissing','App\x20code\x20cannot\x20be\x20empty.','race','15324yNmldk','Skip\x20confirmation\x20when\x20overwriting','Provide\x20--appcode\x20<code>\x20or\x20use\x20an\x20upgraded\x20.rabetbase.json\x20with\x20top-level\x20appcode.\x20Legacy\x20files\x20must\x20be\x20upgraded\x20first\x20with\x20`rabetbase\x20project\x20upgrade`.','defaultApp','Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','3674VkVxCL','\x20\x20appcode:\x20','3366jVJgYD','File\x20','message','Imported\x20from\x20','App\x20code','Write\x20to\x20global\x20(~/.lovrabet.json)\x20instead\x20of\x20project','appcode','string','\x20\x20config:\x20\x20','2459110LXcZJN','\x22.\x20Allowed:\x20','Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','name','[y/N]','892LEKSNa','[Y/n]','riskLevel','8xHffAg','153774crPgnT','\x0aInitialized\x20','Usage:\x20','stdout','apps','Override\x20imported\x20default\x20env','2022mbLwmZ','question','utf8','\x20\x20env:\x20\x20\x20\x20\x20','once','apiDir','Target\x20environment\x20(default\x20','\x20app\x20init\x20--appcode\x20<code>\x20[--env\x20daily]\x20[--global]','validation'];a21_0x39a2=function(){return _0x400c76;};return a21_0x39a2();}(function(_0x2c0d0e,_0x5a0dd4){const _0x26435e=a21_0xf157,_0x26e7ba=_0x2c0d0e();while(!![]){try{const _0x4cf183=parseInt(_0x26435e(0x12d))/0x1*(parseInt(_0x26435e(0x12e))/0x2)+parseInt(_0x26435e(0xff))/0x3*(parseInt(_0x26435e(0x10d))/0x4)+parseInt(_0x26435e(0x134))/0x5+parseInt(_0x26435e(0x117))/0x6*(-parseInt(_0x26435e(0x13b))/0x7)+parseInt(_0x26435e(0x110))/0x8*(-parseInt(_0x26435e(0x111))/0x9)+parseInt(_0x26435e(0x108))/0xa+-parseInt(_0x26435e(0xfd))/0xb*(parseInt(_0x26435e(0xf8))/0xc);if(_0x4cf183===_0x5a0dd4)break;else _0x26e7ba['push'](_0x26e7ba['shift']());}catch(_0x5b5fba){_0x26e7ba['push'](_0x26e7ba['shift']());}}}(a21_0x39a2,0x4d3a8));import{existsSync,readFileSync}from'node:fs';import{resolve,isAbsolute}from'node:path';import{createInterface}from'node:readline';import{CliErrors}from'../errors.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{IMPORTABLE_RUNTIME_CONFIG_KEYS}from'../config/schema.js';import{resolveWriteConfigPath,readConfigFile,writeConfigFile,isNonInteractiveMode}from'../context.js';import{CLI_BIN_NAME}from'../constant/cli.js';export const initCreateFlagDefs=[{'name':a21_0x1df400(0x105),'type':a21_0x1df400(0x106),'description':'App\x20code\x20for\x20the\x20project'},{'name':'env','type':a21_0x1df400(0x106),'description':a21_0x1df400(0x11d)+DEFAULT_CONFIG_VALUES[a21_0x1df400(0x13a)]+')','enum':[...RUNTIME_ENV_VALUES]},{'name':a21_0x1df400(0x128),'type':'boolean','description':a21_0x1df400(0x104),'default':![]},{'name':a21_0x1df400(0x126),'type':a21_0x1df400(0x132),'description':a21_0x1df400(0xf9),'default':![]}];export const initImportFlagDefs=[{'name':'file','type':a21_0x1df400(0x106),'description':a21_0x1df400(0xfc),'required':!![]},{'name':a21_0x1df400(0x105),'type':a21_0x1df400(0x106),'description':'Override\x20imported\x20default\x20appcode'},{'name':a21_0x1df400(0x13a),'type':a21_0x1df400(0x106),'description':a21_0x1df400(0x116),'enum':[...RUNTIME_ENV_VALUES]},{'name':a21_0x1df400(0x128),'type':'boolean','description':a21_0x1df400(0x104),'default':![]},{'name':a21_0x1df400(0x126),'type':'boolean','description':a21_0x1df400(0xf9),'default':![]}];export async function runInit(_0x170a1b){const _0x3fe91a=a21_0x1df400,_0x3c2ff4=isNonInteractiveMode(_0x170a1b),_0x86856d=_0x170a1b['global']?'global':'project',_0x261f76=resolveWriteConfigPath(_0x86856d);try{_0x3c2ff4?await runNonInteractive(_0x170a1b,_0x261f76):await runInteractive(_0x170a1b,_0x261f76);}catch(_0x20e8d2){if(_0x20e8d2 instanceof AbortPrompt)throw CliErrors[_0x3fe91a(0x124)]();throw _0x20e8d2;}}export async function runInitImport(_0x273d20){const _0xe8125=a21_0x1df400,_0xaab844=_0x273d20[_0xe8125(0x128)]?_0xe8125(0x128):_0xe8125(0x120),_0x49325a=resolveWriteConfigPath(_0xaab844);await runFromImport(_0x273d20,_0x49325a);}const RUNTIME_IRRELEVANT_KEYS=new Set([a21_0x1df400(0x11c)]);async function runFromImport(_0x5e1456,_0xe9d33b){const _0x59f9fa=a21_0x1df400,_0x5cfae6=resolveFilePath(_0x5e1456['file']);if(!existsSync(_0x5cfae6))throw CliErrors[_0x59f9fa(0x11f)]('Source\x20file\x20not\x20found:\x20'+_0x5cfae6);const _0x5094e7=readSourceFile(_0x5cfae6),_0x38a454=convertToRuntimeConfig(_0x5094e7);_0x5e1456[_0x59f9fa(0x105)]&&(_0x38a454[_0x59f9fa(0x105)]=String(_0x5e1456[_0x59f9fa(0x105)]));_0x5e1456[_0x59f9fa(0x13a)]&&(_0x38a454['env']=resolveInitEnv(_0x5e1456));if(!_0x38a454[_0x59f9fa(0x105)])throw CliErrors[_0x59f9fa(0x11f)]('Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.',_0x59f9fa(0xfa));await writeInitConfig(_0xe9d33b,_0x38a454,_0x5e1456),console[_0x59f9fa(0x123)](_0x59f9fa(0x102)+_0x5cfae6),console[_0x59f9fa(0x123)](_0x59f9fa(0x107)+_0xe9d33b),console['log'](_0x59f9fa(0xfe)+_0x38a454[_0x59f9fa(0x105)]);if(_0x38a454[_0x59f9fa(0xfb)])console[_0x59f9fa(0x123)](_0x59f9fa(0x133)+_0x38a454[_0x59f9fa(0xfb)]);}function convertToRuntimeConfig(_0x515002){const _0x1fdd5e=a21_0x1df400;if(_0x515002[_0x1fdd5e(0x115)]&&typeof _0x515002[_0x1fdd5e(0x115)]==='object')throw CliErrors[_0x1fdd5e(0x11f)](_0x1fdd5e(0x10a),'Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.');const _0x18b46d={};for(const _0x5749cb of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x515002[_0x5749cb]!==undefined&&(_0x18b46d[_0x5749cb]=_0x515002[_0x5749cb]);}return!_0x18b46d[_0x1fdd5e(0x10f)]&&(_0x18b46d[_0x1fdd5e(0x10f)]=DEFAULT_CONFIG_VALUES['riskLevel']),_0x18b46d;}async function runNonInteractive(_0x443d21,_0x16049a){const _0x5a611f=a21_0x1df400,_0x232072=_0x443d21['appcode'];if(!_0x232072)throw CliErrors[_0x5a611f(0x13c)](_0x5a611f(0x105),_0x5a611f(0x113)+CLI_BIN_NAME+_0x5a611f(0x11e));const _0x267efc=resolveInitEnv(_0x443d21);await writeInitConfig(_0x16049a,{'appcode':_0x232072,'env':_0x267efc},_0x443d21),console[_0x5a611f(0x123)](_0x5a611f(0x130)+_0x16049a),console[_0x5a611f(0x123)](_0x5a611f(0xfe)+_0x232072),console['log'](_0x5a611f(0x11a)+_0x267efc);}async function runInteractive(_0x13cd1c,_0x2f8caa){const _0x2c0827=a21_0x1df400,_0x23d264=loadExisting(_0x2f8caa),_0x1b6485=typeof _0x23d264?.[_0x2c0827(0x105)]===_0x2c0827(0x106)?_0x23d264[_0x2c0827(0x105)]:'',_0x33ae1d=resolveInitEnv(_0x13cd1c);console[_0x2c0827(0x123)](CLI_BIN_NAME+'\x20init\x20—\x20Create\x20.lovrabet.json\x0a');if(existsSync(_0x2f8caa)&&!_0x13cd1c[_0x2c0827(0x126)]){const _0x5bf1e1=await promptYesNo(_0x2c0827(0x100)+_0x2f8caa+_0x2c0827(0x121),![]);if(!_0x5bf1e1){console[_0x2c0827(0x123)]('Aborted.');return;}}const _0x3d5614=typeof _0x13cd1c[_0x2c0827(0x105)]===_0x2c0827(0x106)?_0x13cd1c[_0x2c0827(0x105)]['trim']():'';let _0x284ce3=_0x3d5614;!_0x284ce3&&(_0x284ce3=await promptInput(_0x2c0827(0x103),_0x1b6485));if(!_0x284ce3[_0x2c0827(0x125)]())throw CliErrors[_0x2c0827(0x11f)](_0x2c0827(0x13d));await writeInitConfig(_0x2f8caa,{'appcode':_0x284ce3[_0x2c0827(0x125)](),'env':_0x33ae1d},_0x13cd1c),console[_0x2c0827(0x123)](_0x2c0827(0x112)+_0x2f8caa),console[_0x2c0827(0x123)]('\x20\x20appcode:\x20'+_0x284ce3[_0x2c0827(0x125)]()),console[_0x2c0827(0x123)](_0x2c0827(0x11a)+_0x33ae1d);}async function writeInitConfig(_0x21a991,_0x4bf598,_0x185df8){const _0x2f8b08=a21_0x1df400;let _0x51341a={};existsSync(_0x21a991)&&!_0x185df8[_0x2f8b08(0x126)]&&(_0x51341a=readConfigFile(_0x21a991));for(const [_0x30312f,_0x4fa163]of Object[_0x2f8b08(0x137)](_0x4bf598)){_0x4fa163!==undefined&&(_0x51341a[_0x30312f]=_0x4fa163);}if(_0x51341a[_0x2f8b08(0x139)])delete _0x51341a[_0x2f8b08(0x139)];writeConfigFile(_0x21a991,_0x51341a);}class AbortPrompt extends Error{constructor(){const _0x567237=a21_0x1df400;super(_0x567237(0x138)),this[_0x567237(0x10b)]='AbortPrompt';}}function createSafeRl(){const _0x3851f9=a21_0x1df400,_0x31d895=createInterface({'input':process[_0x3851f9(0x131)],'output':process[_0x3851f9(0x114)]});let _0x2e5ee5;const _0x34659f=new Promise((_0x142b7d,_0x3923db)=>{const _0x4e1692=_0x3851f9;_0x2e5ee5=()=>{const _0x25e9cf=a21_0xf157;_0x2e5ee5&&(_0x31d895[_0x25e9cf(0x135)](_0x25e9cf(0x12c),_0x2e5ee5),_0x2e5ee5=undefined);try{_0x31d895[_0x25e9cf(0x136)]();}catch{}_0x3923db(new AbortPrompt());},_0x31d895[_0x4e1692(0x11b)](_0x4e1692(0x12c),_0x2e5ee5);}),_0x4a90d5=()=>{const _0xe3f96a=_0x3851f9;_0x2e5ee5&&(_0x31d895[_0xe3f96a(0x135)]('SIGINT',_0x2e5ee5),_0x2e5ee5=undefined);try{_0x31d895['close']();}catch{}};return{'rl':_0x31d895,'abortPromise':_0x34659f,'disposeSuccess':_0x4a90d5};}function a21_0xf157(_0x2a5c75,_0x32044c){_0x2a5c75=_0x2a5c75-0xf7;const _0x39a221=a21_0x39a2();let _0xf1577e=_0x39a221[_0x2a5c75];return _0xf1577e;}async function promptInput(_0x9f2c1f,_0x2bb22e){const {rl:_0x4b95d7,abortPromise:_0x31271f,disposeSuccess:_0xe50a26}=createSafeRl(),_0x352a04=new Promise(_0x32ff6d=>{const _0x260c73=a21_0xf157,_0x3b299=_0x2bb22e?'\x20\x20'+_0x9f2c1f+'\x20('+_0x2bb22e+_0x260c73(0x12f):'\x20\x20'+_0x9f2c1f+':\x20';_0x4b95d7[_0x260c73(0x118)](_0x3b299,_0x18f3f9=>{_0xe50a26(),_0x32ff6d(_0x18f3f9['trim']()||_0x2bb22e);});});return Promise['race']([_0x352a04,_0x31271f]);}async function promptYesNo(_0x16294c,_0x2d2e91){const _0x159be2=a21_0x1df400,{rl:_0x1cf4bb,abortPromise:_0x261d35,disposeSuccess:_0x431aa4}=createSafeRl(),_0x4e1704=new Promise(_0x251c83=>{const _0x20c2af=a21_0xf157,_0x5f1a5a=_0x2d2e91?_0x20c2af(0x10e):_0x20c2af(0x10c);_0x1cf4bb[_0x20c2af(0x118)]('\x20\x20'+_0x16294c+'\x20'+_0x5f1a5a+':\x20',_0x20a32e=>{const _0x2da9a7=_0x20c2af;_0x431aa4();const _0x42e9c8=_0x20a32e[_0x2da9a7(0x125)]()[_0x2da9a7(0x12b)]();if(_0x42e9c8==='y'||_0x42e9c8===_0x2da9a7(0x126))_0x251c83(!![]);else{if(_0x42e9c8==='n'||_0x42e9c8==='no')_0x251c83(![]);else _0x251c83(_0x2d2e91);}});});return Promise[_0x159be2(0xf7)]([_0x4e1704,_0x261d35]);}function loadExisting(_0x114d1a){if(!existsSync(_0x114d1a))return null;return readConfigFile(_0x114d1a);}function resolveFilePath(_0x3d892f){return isAbsolute(_0x3d892f)?_0x3d892f:resolve(process['cwd'](),_0x3d892f);}function readSourceFile(_0x5ebdd1){const _0x151cfb=a21_0x1df400;try{const _0x17551f=readFileSync(_0x5ebdd1,{'encoding':_0x151cfb(0x119)});return JSON[_0x151cfb(0x12a)](_0x17551f);}catch(_0xd6a440){throw CliErrors[_0x151cfb(0x11f)](_0x151cfb(0x129)+_0xd6a440[_0x151cfb(0x101)]);}}function resolveInitEnv(_0x444275){const _0x5bf0f3=a21_0x1df400,_0x3f9a78=_0x444275[_0x5bf0f3(0x13a)];if(_0x3f9a78===undefined||_0x3f9a78==='')return DEFAULT_CONFIG_VALUES[_0x5bf0f3(0x13a)];if(!RUNTIME_ENV_VALUES['includes'](_0x3f9a78))throw CliErrors[_0x5bf0f3(0x11f)](_0x5bf0f3(0x122)+_0x3f9a78+_0x5bf0f3(0x109)+RUNTIME_ENV_VALUES[_0x5bf0f3(0x127)](',\x20'));return _0x3f9a78;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a22_0x574a0d=a22_0x47ac;function a22_0x47ac(_0x37897e,_0x9d8294){_0x37897e=_0x37897e-0x13e;const _0x319703=a22_0x3197();let _0x47ac21=_0x319703[_0x37897e];return _0x47ac21;}(function(_0x5767de,_0x5c7c80){const _0x34ccc5=a22_0x47ac,_0x206c50=_0x5767de();while(!![]){try{const _0x418e4b=parseInt(_0x34ccc5(0x14f))/0x1+-parseInt(_0x34ccc5(0x142))/0x2*(-parseInt(_0x34ccc5(0x15a))/0x3)+-parseInt(_0x34ccc5(0x13f))/0x4*(-parseInt(_0x34ccc5(0x159))/0x5)+parseInt(_0x34ccc5(0x151))/0x6*(parseInt(_0x34ccc5(0x149))/0x7)+-parseInt(_0x34ccc5(0x153))/0x8+-parseInt(_0x34ccc5(0x15b))/0x9*(-parseInt(_0x34ccc5(0x15f))/0xa)+-parseInt(_0x34ccc5(0x147))/0xb*(parseInt(_0x34ccc5(0x150))/0xc);if(_0x418e4b===_0x5c7c80)break;else _0x206c50['push'](_0x206c50['shift']());}catch(_0x55ae4d){_0x206c50['push'](_0x206c50['shift']());}}}(a22_0x3197,0x1e144));function a22_0x3197(){const _0x3b4001=['135UfoICf','command','clear','readLogs','108430SycTCm','success','error','en-US','*\x20Lovrabet\x20Runtime\x20CLI\x20logs:\x0a','logs','391304rTQslV','warn','write','2WWPuRl','duration','timestamp','details','message','98758wqVwRp','*\x20Logs\x20cleared','90615FjPHfG','stringify','length','read','toLocaleString','View\x20command\x20history\x20logs','126614XkKvUX','444oOyXad','48XmEVmc','log','682944qYGdGU','Clear\x20command\x20history\x20logs','clearLogs','level','\x20\x20\x20Time:\x20','show','5zGlCqG','150339CXVqHh'];a22_0x3197=function(){return _0x3b4001;};return a22_0x3197();}import{logger}from'../../utils/logger.js';function printLogs(_0x359399){const _0x4d5fac=a22_0x47ac;if(_0x359399[_0x4d5fac(0x14b)]===0x0){console['log']('*\x20No\x20logs\x20found');return;}console['log'](_0x4d5fac(0x163)),_0x359399['forEach']((_0x8f34df,_0x60a0)=>{const _0x9e6266=_0x4d5fac,_0x348e5a=new Date(_0x8f34df[_0x9e6266(0x144)])[_0x9e6266(0x14d)](_0x9e6266(0x162)),_0x37cd54=_0x8f34df[_0x9e6266(0x156)]===_0x9e6266(0x160)?'√':_0x8f34df[_0x9e6266(0x156)]===_0x9e6266(0x161)?'×':_0x8f34df[_0x9e6266(0x156)]===_0x9e6266(0x140)?'!':'i';console[_0x9e6266(0x152)](_0x60a0+0x1+'.\x20'+_0x37cd54+'\x20['+_0x8f34df[_0x9e6266(0x15c)]+']\x20'+_0x8f34df[_0x9e6266(0x146)]),console[_0x9e6266(0x152)](_0x9e6266(0x157)+_0x348e5a),_0x8f34df[_0x9e6266(0x143)]&&console[_0x9e6266(0x152)]('\x20\x20\x20Duration:\x20'+_0x8f34df['duration']+'ms'),_0x8f34df[_0x9e6266(0x145)]&&Object['keys'](_0x8f34df['details'])['length']>0x0&&console[_0x9e6266(0x152)]('\x20\x20\x20Details:\x20'+JSON[_0x9e6266(0x14a)](_0x8f34df[_0x9e6266(0x145)],null,0x2)),console['log']('');});}export const logsDefinitions=[{'service':a22_0x574a0d(0x13e),'command':a22_0x574a0d(0x158),'description':a22_0x574a0d(0x14e),'risk':a22_0x574a0d(0x14c),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x51263a){const _0x48e23d=a22_0x574a0d;return printLogs(logger[_0x48e23d(0x15e)]()),{'ok':!![]};}},{'service':a22_0x574a0d(0x13e),'command':a22_0x574a0d(0x15d),'description':a22_0x574a0d(0x154),'risk':a22_0x574a0d(0x141),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x5d7bb7){const _0x51622f=a22_0x574a0d;return logger[_0x51622f(0x155)](),console[_0x51622f(0x152)](_0x51622f(0x148)),{'ok':!![]};}}];
|
package/lib/commands/registry.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a23_0xfa9e5f=a23_0x2148;(function(_0x1d8b08,_0xb28561){const _0x84cd6b=a23_0x2148,_0x2b59c5=_0x1d8b08();while(!![]){try{const _0x41bd69=-parseInt(_0x84cd6b(0x181))/0x1*(-parseInt(_0x84cd6b(0x189))/0x2)+parseInt(_0x84cd6b(0x18b))/0x3*(-parseInt(_0x84cd6b(0x17b))/0x4)+-parseInt(_0x84cd6b(0x17a))/0x5*(parseInt(_0x84cd6b(0x18c))/0x6)+-parseInt(_0x84cd6b(0x180))/0x7+parseInt(_0x84cd6b(0x194))/0x8+-parseInt(_0x84cd6b(0x178))/0x9+-parseInt(_0x84cd6b(0x196))/0xa*(-parseInt(_0x84cd6b(0x195))/0xb);if(_0x41bd69===_0xb28561)break;else _0x2b59c5['push'](_0x2b59c5['shift']());}catch(_0x563c23){_0x2b59c5['push'](_0x2b59c5['shift']());}}}(a23_0x5edf,0xc62df));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_0x5edf(){const _0x4d9c7a=['set','SQL\x20Queries','1162822hDzNGE','push','148263eprksJ','13494NxuHhn','Skills','description','Logs','read','values','Datasets','Instant\x20API','4470640aqqwcs','306647PIczPc','870vHtdhG','App\x20Management','Configuration','write','command','has','Authentication','2573865QBNHhP','service','1950gkdXvc','20zSZmXP','defaultCommand','\x20\x20[high-risk-write]','login','map','9405179UMOAtX','1dkBdDC','Diagnostics','get','risk','list','isSingleCommand'];a23_0x5edf=function(){return _0x4d9c7a;};return a23_0x5edf();}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();function a23_0x2148(_0x5278b1,_0x58889a){_0x5278b1=_0x5278b1-0x172;const _0x5edfcc=a23_0x5edf();let _0x214826=_0x5edfcc[_0x5278b1];return _0x214826;}export const definitions=new Map();export const serviceGroups=new Map();function registerDefinitions(_0x251d01){const _0x3c0a94=a23_0x2148;for(const _0x36ef8d of _0x251d01){definitions[_0x3c0a94(0x187)](_0x36ef8d[_0x3c0a94(0x179)]+':'+_0x36ef8d[_0x3c0a94(0x175)],_0x36ef8d);let _0x6a195a=serviceGroups[_0x3c0a94(0x183)](_0x36ef8d[_0x3c0a94(0x179)]);!_0x6a195a&&(_0x6a195a=[],serviceGroups[_0x3c0a94(0x187)](_0x36ef8d['service'],_0x6a195a)),_0x6a195a[_0x3c0a94(0x18a)](_0x36ef8d);}}function registerService(_0x41869a,_0x4b3705,_0x4e5db0){const _0x153aaa=a23_0x2148;registerDefinitions(_0x4b3705);const _0x1a6a60=_0x2afd85=>_0x2afd85===_0x153aaa(0x190)?'':_0x2afd85===_0x153aaa(0x174)?'\x20\x20[write]':_0x153aaa(0x17d),_0xa5a91b={'service':_0x4b3705[0x0][_0x153aaa(0x179)],'label':_0x41869a,'commands':_0x4b3705[_0x153aaa(0x17f)](_0x16eb8f=>({'command':_0x16eb8f[_0x153aaa(0x175)],'description':_0x16eb8f[_0x153aaa(0x18e)],'tag':_0x1a6a60(_0x16eb8f[_0x153aaa(0x184)])})),'defaultCommand':_0x4e5db0?.[_0x153aaa(0x17c)]??(_0x4e5db0?.['isSingleCommand']?_0x4b3705[0x0][_0x153aaa(0x175)]:undefined),'isSingleCommand':_0x4e5db0?.[_0x153aaa(0x186)]};serviceRegistry[_0x153aaa(0x18a)](_0xa5a91b),serviceByName[_0x153aaa(0x187)](_0xa5a91b[_0x153aaa(0x179)],_0xa5a91b);}registerService(a23_0xfa9e5f(0x177),authDefinitions,{'defaultCommand':a23_0xfa9e5f(0x17e)}),registerService(a23_0xfa9e5f(0x192),datasetDefinitions),registerService(a23_0xfa9e5f(0x193),dataDefinitions),registerService(a23_0xfa9e5f(0x188),sqlDefinitions),registerService('BFF\x20Scripts',bffDefinitions),registerService(a23_0xfa9e5f(0x172),appDefinitions,{'defaultCommand':'list'}),registerService(a23_0xfa9e5f(0x173),configDefinitions,{'defaultCommand':a23_0xfa9e5f(0x185)}),registerService(a23_0xfa9e5f(0x18d),skillDefinitions,{'defaultCommand':'install'}),registerService(a23_0xfa9e5f(0x182),[doctorDefinition],{'isSingleCommand':!![]}),registerService('Schema',[schemaDefinition],{'isSingleCommand':!![]}),registerService(a23_0xfa9e5f(0x18f),logsDefinitions,{'defaultCommand':'show'});export function findDefinition(_0x5c5c3f,_0x458030){return definitions['get'](_0x5c5c3f+':'+_0x458030);}export function isKnownService(_0x57e52f){const _0x4b8f10=a23_0xfa9e5f;return serviceByName[_0x4b8f10(0x176)](_0x57e52f);}export function getServiceEntry(_0x2e092e){const _0x3ca37f=a23_0xfa9e5f;return serviceByName[_0x3ca37f(0x183)](_0x2e092e);}export function getAllDefinitions(){const _0x23acc9=a23_0xfa9e5f;return Array['from'](definitions[_0x23acc9(0x191)]());}
|
package/lib/commands/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a24_0x4bb0(){const _0x41964e=['4824355OhNprN','128UpGBsS','4NppNfD','export','2pEWdVK','6141858CJrNID','27496mpBDJG','Export\x20machine-readable\x20command\x20schema\x20(JSON)','9961434pOHlqb','451971LGbuPL','659370KSJvtt','2568477NwlIpi'];a24_0x4bb0=function(){return _0x41964e;};return a24_0x4bb0();}const a24_0x443deb=a24_0x1add;function a24_0x1add(_0xeb62be,_0x1f2900){_0xeb62be=_0xeb62be-0x1ac;const _0x4bb093=a24_0x4bb0();let _0x1addfd=_0x4bb093[_0xeb62be];return _0x1addfd;}(function(_0x1e25ea,_0x452e43){const _0x422efc=a24_0x1add,_0x555f67=_0x1e25ea();while(!![]){try{const _0x43fce9=parseInt(_0x422efc(0x1b3))/0x1+-parseInt(_0x422efc(0x1ae))/0x2*(-parseInt(_0x422efc(0x1b5))/0x3)+-parseInt(_0x422efc(0x1ac))/0x4*(parseInt(_0x422efc(0x1b6))/0x5)+-parseInt(_0x422efc(0x1af))/0x6+-parseInt(_0x422efc(0x1b0))/0x7*(-parseInt(_0x422efc(0x1b7))/0x8)+parseInt(_0x422efc(0x1b2))/0x9+parseInt(_0x422efc(0x1b4))/0xa;if(_0x43fce9===_0x452e43)break;else _0x555f67['push'](_0x555f67['shift']());}catch(_0x5cb090){_0x555f67['push'](_0x555f67['shift']());}}}(a24_0x4bb0,0x878db));import{buildSchemaPayload}from'../framework/schema-export.js';async function execute(_0x410589){const _0x739cd3=await buildSchemaPayload();return{'ok':!![],'data':_0x739cd3};}export const schemaDefinition={'service':'schema','command':a24_0x443deb(0x1ad),'description':a24_0x443deb(0x1b1),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a25_0x4e509c=a25_0x2944;function a25_0x2944(_0x164915,_0x568622){_0x164915=_0x164915-0x131;const _0x1e77d0=a25_0x1e77();let _0x294419=_0x1e77d0[_0x164915];return _0x294419;}(function(_0x6c76de,_0x2aa1d3){const _0x523df4=a25_0x2944,_0x5a4c78=_0x6c76de();while(!![]){try{const _0x363900=parseInt(_0x523df4(0x132))/0x1*(-parseInt(_0x523df4(0x137))/0x2)+parseInt(_0x523df4(0x141))/0x3+parseInt(_0x523df4(0x134))/0x4+parseInt(_0x523df4(0x14a))/0x5*(parseInt(_0x523df4(0x13b))/0x6)+-parseInt(_0x523df4(0x133))/0x7*(-parseInt(_0x523df4(0x13e))/0x8)+parseInt(_0x523df4(0x147))/0x9+-parseInt(_0x523df4(0x146))/0xa;if(_0x363900===_0x2aa1d3)break;else _0x5a4c78['push'](_0x5a4c78['shift']());}catch(_0x334f37){_0x5a4c78['push'](_0x5a4c78['shift']());}}}(a25_0x1e77,0x20bd1));import{CLI_BIN_NAME}from'../../constant/cli.js';function a25_0x1e77(){const _0x19a742=['2247LtaeDy','423928yBnDeE','pipe','cwd','224790ZfmLME','Install\x20the\x20published\x20Lovrabet\x20developer\x20skill','../../skills/npx-skills-add.js','skipped','792372jkXPHg','Installing\x20official\x20skill\x20via\x20npx\x20(npx\x20skills\x20add\x20','log','4456fAkIxs','nonInteractive','skill','428970QErKwa','inherit','Skipped\x20npx\x20(LOVRABET_SKIP_NPX_SKILLS=1);\x20assuming\x20skill\x20is\x20already\x20present.','\x20-g\x20-y)...','\x20skill\x20installed','7128800CAuVyS','2407311filqUr','npx\x20skills\x20add\x20failed:\x20','unknown','10CwPUTx','Installing\x20published\x20Lovrabet\x20skill\x20via\x20npx.','1WHSxMX'];a25_0x1e77=function(){return _0x19a742;};return a25_0x1e77();}import{CliErrors}from'../../errors.js';import{logger}from'../../utils/logger.js';export const skillDefinitions=[{'service':a25_0x4e509c(0x140),'command':'install','description':a25_0x4e509c(0x138),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x2e41ae){const _0x3b515b=a25_0x4e509c;logger['setLogPath'](process[_0x3b515b(0x136)]()),logger['info']('skill-install',_0x3b515b(0x131));const {LOVRABET_SKILL_SOURCE:_0xfdc050,runNpxSkillsAddGlobal:_0x289a26}=await import(_0x3b515b(0x139)),_0x5dfc76=_0x2e41ae[_0x3b515b(0x13f)]?_0x3b515b(0x135):_0x3b515b(0x142);console[_0x3b515b(0x13d)](_0x3b515b(0x13c)+_0xfdc050+_0x3b515b(0x144));const _0xb788ef=_0x289a26(process[_0x3b515b(0x136)](),_0xfdc050,{'stdio':_0x5dfc76});if(_0xb788ef[_0x3b515b(0x13a)])console[_0x3b515b(0x13d)](_0x3b515b(0x143));else{if(_0xb788ef['ok'])console[_0x3b515b(0x13d)](CLI_BIN_NAME+_0x3b515b(0x145));else throw CliErrors['apiError'](_0x3b515b(0x148)+(_0xb788ef['error']||_0x3b515b(0x149)),'Check\x20network\x20connectivity\x20and\x20try\x20again.');}return{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a26_0x5629(_0x4a0eff,_0x5e1cd9){_0x4a0eff=_0x4a0eff-0xbb;const _0x3d0d51=a26_0x3d0d();let _0x562995=_0x3d0d51[_0x4a0eff];return _0x562995;}const a26_0x4b83f7=a26_0x5629;(function(_0x30957d,_0x315bb4){const _0x23e55d=a26_0x5629,_0x1cfd01=_0x30957d();while(!![]){try{const _0x4de996=parseInt(_0x23e55d(0xc9))/0x1*(-parseInt(_0x23e55d(0xbb))/0x2)+-parseInt(_0x23e55d(0xbf))/0x3*(parseInt(_0x23e55d(0xc6))/0x4)+-parseInt(_0x23e55d(0xc8))/0x5+parseInt(_0x23e55d(0xd0))/0x6+parseInt(_0x23e55d(0xc4))/0x7*(-parseInt(_0x23e55d(0xcd))/0x8)+parseInt(_0x23e55d(0xc3))/0x9+-parseInt(_0x23e55d(0xcc))/0xa*(-parseInt(_0x23e55d(0xc0))/0xb);if(_0x4de996===_0x315bb4)break;else _0x1cfd01['push'](_0x1cfd01['shift']());}catch(_0x3a35dc){_0x1cfd01['push'](_0x1cfd01['shift']());}}}(a26_0x3d0d,0xb6cbb));import{getSqlQueryInfo}from'../../core/api-client.js';import{getDbName}from'../../core/db-resolver.js';function a26_0x3d0d(){const _0x47d90d=['bool','11737764AwreGu','8435mvKgMZ','description','652EReVUp','detail','4668030GIDnpe','1OQLXOK','verbose','dbId','430qmUqQl','6928NxwpFH','str','Get\x20custom\x20SQL\x20query\x20details\x20by\x20sqlCode','6009534PbeNhH','sql','2803918DBJHkJ','appCode','sqlName','sqlcode','14205jbAaYp','663542VKeyTM','sqlContent'];a26_0x3d0d=function(){return _0x47d90d;};return a26_0x3d0d();}import{SQLCODE_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const sqlDetail={'service':a26_0x4b83f7(0xd1),'command':a26_0x4b83f7(0xc7),'description':a26_0x4b83f7(0xcf),'risk':'read','flags':[SQLCODE_FLAG,VERBOSE_FLAG],async 'execute'(_0x425a56){const _0x16a634=a26_0x4b83f7,_0x2e1706=await getSqlQueryInfo(_0x425a56[_0x16a634(0xbc)],_0x425a56[_0x16a634(0xce)](_0x16a634(0xbe))),_0x158875=_0x425a56[_0x16a634(0xc2)](_0x16a634(0xca));if(_0x158875)return{'ok':!![],'data':_0x2e1706};const _0x3c6f2e=_0x2e1706[_0x16a634(0xcb)]?await getDbName(_0x425a56[_0x16a634(0xbc)],_0x2e1706[_0x16a634(0xcb)]):undefined;return{'ok':!![],'data':{'sqlCode':_0x2e1706['sqlCode'],'sqlName':_0x2e1706[_0x16a634(0xbd)],'db':_0x3c6f2e?_0x3c6f2e+'\x20('+_0x2e1706[_0x16a634(0xcb)]+')':_0x2e1706['dbId']??'','description':_0x2e1706[_0x16a634(0xc5)]??'','sqlContent':_0x2e1706[_0x16a634(0xc1)]??''}};}};
|
package/lib/commands/sql/exec.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a27_0x3088ca=a27_0x56e6;(function(_0x59d7e5,_0x2215e4){const _0x56b6b6=a27_0x56e6,_0xbac936=_0x59d7e5();while(!![]){try{const _0x45d88c=parseInt(_0x56b6b6(0x89))/0x1+parseInt(_0x56b6b6(0x7b))/0x2+parseInt(_0x56b6b6(0x84))/0x3+parseInt(_0x56b6b6(0x86))/0x4*(parseInt(_0x56b6b6(0x83))/0x5)+parseInt(_0x56b6b6(0x82))/0x6*(-parseInt(_0x56b6b6(0x8a))/0x7)+parseInt(_0x56b6b6(0x87))/0x8*(-parseInt(_0x56b6b6(0x7c))/0x9)+parseInt(_0x56b6b6(0x7f))/0xa*(-parseInt(_0x56b6b6(0x80))/0xb);if(_0x45d88c===_0x2215e4)break;else _0xbac936['push'](_0xbac936['shift']());}catch(_0x3ecda8){_0xbac936['push'](_0xbac936['shift']());}}}(a27_0x34e5,0xac4f1));import{executeSdkSql}from'../../core/sdk-client.js';import{SQLCODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a27_0x56e6(_0x32fb0a,_0x36a721){_0x32fb0a=_0x32fb0a-0x75;const _0x34e5c0=a27_0x34e5();let _0x56e627=_0x34e5c0[_0x32fb0a];return _0x56e627;}function a27_0x34e5(){const _0xb15931=['execError','1630924juvrGm','7984iTCuqu','\x20row(s)\x20in\x20','1285884RaeeYU','7JxqrYU','execResult','execSuccess','str','Returned\x20','read','length','2357938bhndyg','9063HHizld','exec','now','70UhXErt','2663155gagXxV','sqlcode','5268948EYIwCX','5nCfztG','4233216WHssjp'];a27_0x34e5=function(){return _0xb15931;};return a27_0x34e5();}import{parseJsonParams}from'../../utils/params.js';export const sqlExec={'service':'sql','command':a27_0x3088ca(0x7d),'description':'Execute\x20a\x20custom\x20SQL\x20query\x20by\x20sqlCode','risk':a27_0x3088ca(0x79),'flags':[SQLCODE_FLAG,PARAMS_FLAG],async 'execute'(_0x313dca){const _0xd31b2d=a27_0x3088ca,_0x386040=parseJsonParams(_0x313dca[_0xd31b2d(0x77)]('params')),_0x94b675=Date[_0xd31b2d(0x7e)](),_0x329fa7=await executeSdkSql(_0x313dca['str'](_0xd31b2d(0x81)),_0x386040),_0x1bf7c2=Date[_0xd31b2d(0x7e)]()-_0x94b675,_0x43dc79=_0x329fa7?.[_0xd31b2d(0x75)]??_0x329fa7,_0xbd5c8f=_0x329fa7?.[_0xd31b2d(0x76)]??!![];if(!_0xbd5c8f)return{'ok':![],'data':{'error':_0x329fa7?.[_0xd31b2d(0x85)]||'SQL\x20execution\x20failed','elapsed':_0x1bf7c2},'message':'SQL\x20execution\x20failed'};const _0x18e461=Array['isArray'](_0x43dc79)?_0x43dc79:[];return{'ok':!![],'data':{'rows':_0x18e461,'rowCount':_0x18e461[_0xd31b2d(0x7a)],'elapsed':_0x1bf7c2},'message':_0xd31b2d(0x78)+_0x18e461[_0xd31b2d(0x7a)]+_0xd31b2d(0x88)+_0x1bf7c2+'ms'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x98282e,_0x17e31c){const _0x4e2d59=a28_0xbac6,_0x285765=_0x98282e();while(!![]){try{const _0x139833=parseInt(_0x4e2d59(0x196))/0x1+parseInt(_0x4e2d59(0x19c))/0x2+parseInt(_0x4e2d59(0x198))/0x3*(-parseInt(_0x4e2d59(0x194))/0x4)+parseInt(_0x4e2d59(0x199))/0x5+parseInt(_0x4e2d59(0x19b))/0x6*(parseInt(_0x4e2d59(0x197))/0x7)+parseInt(_0x4e2d59(0x195))/0x8*(parseInt(_0x4e2d59(0x19d))/0x9)+-parseInt(_0x4e2d59(0x19a))/0xa;if(_0x139833===_0x17e31c)break;else _0x285765['push'](_0x285765['shift']());}catch(_0xbaaaec){_0x285765['push'](_0x285765['shift']());}}}(a28_0x1695,0x69fb8));function a28_0xbac6(_0x2dcd7f,_0x1b174b){_0x2dcd7f=_0x2dcd7f-0x194;const _0x169587=a28_0x1695();let _0xbac68f=_0x169587[_0x2dcd7f];return _0xbac68f;}import{sqlDetail}from'../../commands/sql/detail.js';import{sqlExec}from'../../commands/sql/exec.js';function a28_0x1695(){const _0x13092d=['2335835ZPjuqJ','12258770zKAQcy','81876ZYsAzt','208736OLeMHG','1773cUiCod','428qEBjZv','13584SCzyDk','642240sbkDoY','91vxsFbx','1842HWyNUG'];a28_0x1695=function(){return _0x13092d;};return a28_0x1695();}export const sqlDefinitions=[sqlDetail,sqlExec];
|
package/lib/config/schema.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a29_0x49c6ef=a29_0x5a0a;(function(_0x4af296,_0x558609){const _0x4881f3=a29_0x5a0a,_0x47aef3=_0x4af296();while(!![]){try{const _0x5cc369=-parseInt(_0x4881f3(0xe9))/0x1*(parseInt(_0x4881f3(0xff))/0x2)+parseInt(_0x4881f3(0xfa))/0x3+-parseInt(_0x4881f3(0xec))/0x4*(parseInt(_0x4881f3(0xf3))/0x5)+-parseInt(_0x4881f3(0x105))/0x6+-parseInt(_0x4881f3(0xe7))/0x7*(-parseInt(_0x4881f3(0xf2))/0x8)+-parseInt(_0x4881f3(0xfd))/0x9*(-parseInt(_0x4881f3(0xf9))/0xa)+-parseInt(_0x4881f3(0xf1))/0xb;if(_0x5cc369===_0x558609)break;else _0x47aef3['push'](_0x47aef3['shift']());}catch(_0x50d193){_0x47aef3['push'](_0x47aef3['shift']());}}}(a29_0x41c7,0xe4491));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':a29_0x49c6ef(0xfb),'topLevel':!![],'cliSettableTopLevel':!![],'enumValues':RUNTIME_ENV_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a29_0x49c6ef(0xfc)],'importable':!![]},'format':{'description':'Default\x20output\x20format','topLevel':!![],'cliSettableTopLevel':!![],'enumValues':OUTPUT_FORMAT_VALUES,'defaultValue':DEFAULT_CONFIG_VALUES[a29_0x49c6ef(0xeb)],'importable':!![]},'pageSize':{'description':a29_0x49c6ef(0xfe),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'apiDomain':{'description':'Override\x20API\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'userDomain':{'description':a29_0x49c6ef(0xf4),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'runtimeDomain':{'description':'Override\x20runtime\x20domain','topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'accessKey':{'description':a29_0x49c6ef(0xf5),'topLevel':!![],'cliSettableTopLevel':!![],'importable':!![]},'riskLevel':{'description':a29_0x49c6ef(0xf6),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES[a29_0x49c6ef(0xf8)],'importable':!![]},'locale':{'description':a29_0x49c6ef(0xed),'topLevel':!![],'defaultValue':DEFAULT_CONFIG_VALUES['locale'],'importable':!![],'legacyCompatOnly':!![]}};export const TOP_LEVEL_CONFIG_KEYS=new Set(Object['entries'](CONFIG_FIELD_SCHEMAS)[a29_0x49c6ef(0x104)](([,_0x50530e])=>_0x50530e[a29_0x49c6ef(0xee)])[a29_0x49c6ef(0x103)](([_0x47e718])=>_0x47e718));export const CONFIG_ENUM_VALUES=Object[a29_0x49c6ef(0xef)](Object['entries'](CONFIG_FIELD_SCHEMAS)['filter'](([,_0x51fe79])=>_0x51fe79[a29_0x49c6ef(0xf0)])[a29_0x49c6ef(0x103)](([_0x182676,_0x208bc0])=>[_0x182676,[..._0x208bc0[a29_0x49c6ef(0xf0)]||[]]]));export const IMPORTABLE_RUNTIME_CONFIG_KEYS=Object[a29_0x49c6ef(0xe8)](CONFIG_FIELD_SCHEMAS)[a29_0x49c6ef(0x104)](([,_0x28c510])=>_0x28c510[a29_0x49c6ef(0xea)])[a29_0x49c6ef(0x103)](([_0x396eb4])=>_0x396eb4);function a29_0x41c7(){const _0x4479e3=['defaultValue','Config\x20key.\x20Top-level:\x20','map','filter','7348650nRiTpY','54803iqyxeu','entries','22993KNDrnK','importable','format','1219748pKTkvQ','Locale','cliSettableTopLevel','fromEntries','enumValues','1856470gbrNOY','1864HvuwkO','20ByXizH','Override\x20user\x20domain','Access\x20key\x20(client-ak\x20auth)','Risk\x20level','legacyCompatOnly','riskLevel','10uuuWiv','4882698HevbBa','Target\x20environment','env','16182981EwgqHm','Default\x20page\x20size','148tJHmgO','has'];a29_0x41c7=function(){return _0x4479e3;};return a29_0x41c7();}export function getConfigFieldSchema(_0x2c2b32){return CONFIG_FIELD_SCHEMAS[_0x2c2b32];}export function getConfigEnumValues(_0x3f5c3a){const _0x3f7240=a29_0x49c6ef;return getConfigFieldSchema(_0x3f5c3a)?.[_0x3f7240(0xf0)];}export function getConfigDefaultValue(_0x1fa21f){const _0x49164c=a29_0x49c6ef;return getConfigFieldSchema(_0x1fa21f)?.[_0x49164c(0x101)];}function a29_0x5a0a(_0x3cf7e1,_0x91e4e0){_0x3cf7e1=_0x3cf7e1-0xe7;const _0x41c7f1=a29_0x41c7();let _0x5a0acf=_0x41c7f1[_0x3cf7e1];return _0x5a0acf;}export function isTopLevelConfigKey(_0x1e8970){const _0x18e888=a29_0x49c6ef;return TOP_LEVEL_CONFIG_KEYS[_0x18e888(0x100)](_0x1e8970);}export function isLegacyCompatConfigKey(_0x19a8cc){const _0x9405fc=a29_0x49c6ef;return getConfigFieldSchema(_0x19a8cc)?.[_0x9405fc(0xf7)]===!![];}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function formatConfigKeyList(_0x7ec519){return[..._0x7ec519]['join'](',\x20');}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x287cd8=a29_0x49c6ef;return _0x287cd8(0x102)+getTopLevelConfigKeySummary();}export function buildAppProfileListFields(_0x11d659){return{'env':_0x11d659,'hasAccessKey':![],'format':null,'pageSize':null,'riskLevel':null,'locale':null};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a30_0x318424=a30_0x2e28;(function(_0x530259,_0x1f2ffc){const _0x42ecc6=a30_0x2e28,_0x379ba8=_0x530259();while(!![]){try{const _0xc63efb=-parseInt(_0x42ecc6(0x18b))/0x1+-parseInt(_0x42ecc6(0x18e))/0x2*(-parseInt(_0x42ecc6(0x191))/0x3)+-parseInt(_0x42ecc6(0x192))/0x4*(-parseInt(_0x42ecc6(0x18d))/0x5)+parseInt(_0x42ecc6(0x193))/0x6*(parseInt(_0x42ecc6(0x196))/0x7)+-parseInt(_0x42ecc6(0x190))/0x8+parseInt(_0x42ecc6(0x195))/0x9*(-parseInt(_0x42ecc6(0x197))/0xa)+parseInt(_0x42ecc6(0x18f))/0xb;if(_0xc63efb===_0x1f2ffc)break;else _0x379ba8['push'](_0x379ba8['shift']());}catch(_0x2b10c6){_0x379ba8['push'](_0x379ba8['shift']());}}}(a30_0x4cde,0x6fc49));export const AUTH_MODE={'ClientAk':a30_0x318424(0x194)};function a30_0x2e28(_0x166e8a,_0x57df6b){_0x166e8a=_0x166e8a-0x18b;const _0x4cde27=a30_0x4cde();let _0x2e28ba=_0x4cde27[_0x166e8a];return _0x2e28ba;}export function isAuthMode(_0x472071){const _0x26a1af=a30_0x318424;return _0x472071===AUTH_MODE[_0x26a1af(0x18c)];}function a30_0x4cde(){const _0x2b445b=['30740OCRAoo','6CaMvev','11956263TFjcOL','7207184neiiMz','361659sPeSfm','52qiCaKO','2118hYhVaJ','client-ak','243630sTqzYX','105msPBaz','40fmjhCx','66832DCDkYA','ClientAk'];a30_0x4cde=function(){return _0x2b445b;};return a30_0x4cde();}
|
package/lib/constant/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a31_0x32f7e0=a31_0x5c1c;function a31_0x5827(){const _0x2b4e55=['2232YXqCtz','Show\x20help','17782FWTmtd','app','11851bfJaNY','boolean','22ZAiKha','1206120rLMBHf','appcode','sqlcode','yes','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','env','dry-run','global','1031925pMuLya','Name\x20filter','Select\x20app\x20profile\x20by\x20name','<expr>','997490EyEOgA','JSON\x20params\x20for\x20execute\x20commands','verbose','lovrabet','Lovrabet\x20Runtime\x20CLI','Use\x20global\x20config\x20scope','format','production\x20|\x20development\x20|\x20daily','string','help','non-interactive','Force\x20non-interactive\x20mode\x20(CI)','json\x20|\x20pretty\x20|\x20compress','params','type','Output\x20format','Environment','map','@lovrabet/lovrabet-cli','Verbose\x20output','Alias\x20for\x20--non-interactive','dryRun','clear','Clear\x20output','8WEhixn','Skip\x20confirmation\x20for\x20high-risk\x20writes','nonInteractive','2542390YBTCJj','SQL\x20query\x20code','5116401aVoqzi'];a31_0x5827=function(){return _0x2b4e55;};return a31_0x5827();}(function(_0x208370,_0x246e2e){const _0x94494=a31_0x5c1c,_0x1235d5=_0x208370();while(!![]){try{const _0x876ae9=-parseInt(_0x94494(0x205))/0x1*(-parseInt(_0x94494(0x201))/0x2)+parseInt(_0x94494(0x20e))/0x3+parseInt(_0x94494(0x206))/0x4+-parseInt(_0x94494(0x1fc))/0x5+-parseInt(_0x94494(0x1ff))/0x6*(parseInt(_0x94494(0x203))/0x7)+-parseInt(_0x94494(0x1f9))/0x8*(-parseInt(_0x94494(0x1fe))/0x9)+parseInt(_0x94494(0x212))/0xa;if(_0x876ae9===_0x246e2e)break;else _0x1235d5['push'](_0x1235d5['shift']());}catch(_0x4182b3){_0x1235d5['push'](_0x1235d5['shift']());}}}(a31_0x5827,0x5a97f));export const CLI_BIN_NAME=a31_0x32f7e0(0x215);export const CLI_DISPLAY_NAME=a31_0x32f7e0(0x216);export const NPM_PACKAGE_NAME=a31_0x32f7e0(0x1f3);export const GLOBAL_FLAGS=[{'name':a31_0x32f7e0(0x207),'meowKey':'appcode','type':a31_0x32f7e0(0x21a),'description':'Override\x20appcode','hint':'<code>'},{'name':a31_0x32f7e0(0x202),'meowKey':a31_0x32f7e0(0x202),'type':a31_0x32f7e0(0x21a),'description':a31_0x32f7e0(0x210),'hint':'<name>'},{'name':a31_0x32f7e0(0x20b),'meowKey':'env','type':'string','description':a31_0x32f7e0(0x1f1),'hint':a31_0x32f7e0(0x219)},{'name':'format','meowKey':a31_0x32f7e0(0x218),'type':a31_0x32f7e0(0x21a),'description':a31_0x32f7e0(0x1f0),'hint':a31_0x32f7e0(0x21e)},{'name':'jq','meowKey':'jq','type':a31_0x32f7e0(0x21a),'description':a31_0x32f7e0(0x20a),'hint':a31_0x32f7e0(0x211)},{'name':a31_0x32f7e0(0x20c),'meowKey':a31_0x32f7e0(0x1f6),'type':'boolean','description':'Preview\x20operation\x20without\x20executing'},{'name':'yes','meowKey':a31_0x32f7e0(0x209),'type':a31_0x32f7e0(0x204),'description':a31_0x32f7e0(0x1fa)},{'name':a31_0x32f7e0(0x21c),'meowKey':a31_0x32f7e0(0x1fb),'type':a31_0x32f7e0(0x204),'description':a31_0x32f7e0(0x21d)},{'name':a31_0x32f7e0(0x20d),'meowKey':a31_0x32f7e0(0x20d),'type':'boolean','description':a31_0x32f7e0(0x217)},{'name':'ci','meowKey':'ci','type':a31_0x32f7e0(0x204),'description':a31_0x32f7e0(0x1f5),'hidden':!![]},{'name':a31_0x32f7e0(0x21b),'meowKey':a31_0x32f7e0(0x21b),'type':a31_0x32f7e0(0x204),'description':a31_0x32f7e0(0x200)},{'name':'id','meowKey':'id','type':a31_0x32f7e0(0x21a),'description':'Record\x20ID','hidden':!![]},{'name':'name','meowKey':'name','type':a31_0x32f7e0(0x21a),'description':a31_0x32f7e0(0x20f),'hidden':!![]},{'name':a31_0x32f7e0(0x208),'meowKey':a31_0x32f7e0(0x208),'type':a31_0x32f7e0(0x21a),'description':a31_0x32f7e0(0x1fd),'hidden':!![]},{'name':a31_0x32f7e0(0x1ee),'meowKey':a31_0x32f7e0(0x1ee),'type':a31_0x32f7e0(0x21a),'description':a31_0x32f7e0(0x213),'hidden':!![]},{'name':a31_0x32f7e0(0x214),'meowKey':a31_0x32f7e0(0x214),'type':'boolean','description':a31_0x32f7e0(0x1f4),'hidden':!![]},{'name':a31_0x32f7e0(0x1f7),'meowKey':a31_0x32f7e0(0x1f7),'type':a31_0x32f7e0(0x204),'description':a31_0x32f7e0(0x1f8),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a31_0x32f7e0(0x207),a31_0x32f7e0(0x202),a31_0x32f7e0(0x20b),a31_0x32f7e0(0x218),'jq',a31_0x32f7e0(0x20c),a31_0x32f7e0(0x209),a31_0x32f7e0(0x21c),'ci']);function a31_0x5c1c(_0x2ad5fa,_0x404bdf){_0x2ad5fa=_0x2ad5fa-0x1ee;const _0x58270d=a31_0x5827();let _0x5c1c66=_0x58270d[_0x2ad5fa];return _0x5c1c66;}export function buildMeowFlags(){const _0xa94256=a31_0x32f7e0;return Object['fromEntries'](GLOBAL_FLAGS[_0xa94256(0x1f2)](_0x14ea58=>[_0x14ea58['meowKey'],{'type':_0x14ea58[_0xa94256(0x1ef)]}]));}
|